From bdb4a1dd9efea79a778474f56f803ce40a89a576 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Fri, 11 Sep 2026 17:13:35 +0800 Subject: [PATCH] Add approval run URL command with security-guarded SSO option --- dist/mcp/server.js | 222 ++++++++++++++++-------------- skills/seal-use/SKILL.md | 10 ++ skills/seal-use/references/cli.md | 5 +- src/cli/commands/approval-runs.ts | 12 +- src/cli/help.ts | 7 +- src/core/auth/hose.ts | 14 ++ src/domains/seal/tools.test.ts | 48 ++++++- src/domains/seal/tools.ts | 86 +++++++++++- 8 files changed, 287 insertions(+), 117 deletions(-) diff --git a/dist/mcp/server.js b/dist/mcp/server.js index 25da705..503748e 100644 --- a/dist/mcp/server.js +++ b/dist/mcp/server.js @@ -1,97 +1,97 @@ -import{createRequire as _L0}from"node:module";var AL0=Object.create;var{getPrototypeOf:PL0,defineProperty:IO,getOwnPropertyNames:TL0}=Object;var EL0=Object.prototype.hasOwnProperty;function BL0($){return this[$]}var vL0,RL0,FI=($,I,U)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=I?vL0??=new WeakMap:RL0??=new WeakMap,Q=J.get($);if(Q)return Q}U=$!=null?AL0(PL0($)):{};let K=I||!$||!$.__esModule?IO(U,"default",{value:$,enumerable:!0}):U;for(let q of TL0($))if(!EL0.call(K,q))IO(K,q,{get:BL0.bind($,q),enumerable:!0});if(Y)J.set($,K);return K};var O=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports);var jL0=($)=>$;function CL0($,I){this[$]=jL0.bind(null,I)}var $5=($,I)=>{for(var U in I)IO($,U,{get:I[U],enumerable:!0,configurable:!0,set:CL0.bind(I,U)})};var t=_L0(import.meta.url);var fQ=O((Gb)=>{Object.defineProperty(Gb,"__esModule",{value:!0});Gb.regexpCode=Gb.getEsmExportName=Gb.getProperty=Gb.safeStringify=Gb.stringify=Gb.strConcat=Gb.addCodeArg=Gb.str=Gb._=Gb.nil=Gb._Code=Gb.Name=Gb.IDENTIFIER=Gb._CodeOrName=void 0;class iW{}Gb._CodeOrName=iW;Gb.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class YU extends iW{constructor($){super();if(!Gb.IDENTIFIER.test($))throw Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}Gb.Name=YU;class l$ extends iW{constructor($){super();this._items=typeof $==="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((I,U)=>`${I}${U}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((I,U)=>{if(U instanceof YU)I[U.str]=(I[U.str]||0)+1;return I},{})}}Gb._Code=l$;Gb.nil=new l$("");function qb($,...I){let U=[$[0]],Y=0;while(Y{Object.defineProperty(Zb,"__esModule",{value:!0});Zb.ValueScope=Zb.ValueScopeName=Zb.Scope=Zb.varKinds=Zb.UsedValueState=void 0;var c6=fQ();class wb extends Error{constructor($){super(`CodeGen: "code" for ${$} not defined`);this.value=$.value}}var pW;(function($){$[$.Started=0]="Started",$[$.Completed=1]="Completed"})(pW||(Zb.UsedValueState=pW={}));Zb.varKinds={const:new c6.Name("const"),let:new c6.Name("let"),var:new c6.Name("var")};class LT{constructor({prefixes:$,parent:I}={}){this._names={},this._prefixes=$,this._parent=I}toName($){return $ instanceof c6.Name?$:this.name($)}name($){return new c6.Name(this._newName($))}_newName($){let I=this._names[$]||this._nameGroup($);return`${$}${I.index++}`}_nameGroup($){var I,U;if(((U=(I=this._parent)===null||I===void 0?void 0:I._prefixes)===null||U===void 0?void 0:U.has($))||this._prefixes&&!this._prefixes.has($))throw Error(`CodeGen: prefix "${$}" is not allowed in this scope`);return this._names[$]={prefix:$,index:0}}}Zb.Scope=LT;class DT extends c6.Name{constructor($,I){super(I);this.prefix=$}setValue($,{property:I,itemIndex:U}){this.value=$,this.scopePath=c6._`.${new c6.Name(I)}[${U}]`}}Zb.ValueScopeName=DT;var OM0=c6._`\n`;class Vb extends LT{constructor($){super($);this._values={},this._scope=$.scope,this.opts={...$,_n:$.lines?OM0:c6.nil}}get(){return this._scope}name($){return new DT($,this._newName($))}value($,I){var U;if(I.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName($),{prefix:J}=Y,Q=(U=I.key)!==null&&U!==void 0?U:I.ref,K=this._values[J];if(K){let G=K.get(Q);if(G)return G}else K=this._values[J]=new Map;K.set(Q,Y);let q=this._scope[J]||(this._scope[J]=[]),H=q.length;return q[H]=I.ref,Y.setValue(I,{property:J,itemIndex:H}),Y}getValue($,I){let U=this._values[$];if(!U)return;return U.get(I)}scopeRefs($,I=this._values){return this._reduceValues(I,(U)=>{if(U.scopePath===void 0)throw Error(`CodeGen: name "${U}" has no value`);return c6._`${$}${U.scopePath}`})}scopeCode($=this._values,I,U){return this._reduceValues($,(Y)=>{if(Y.value===void 0)throw Error(`CodeGen: name "${Y}" has no value`);return Y.value.code},I,U)}_reduceValues($,I,U={},Y){let J=c6.nil;for(let Q in $){let K=$[Q];if(!K)continue;let q=U[Q]=U[Q]||new Map;K.forEach((H)=>{if(q.has(H))return;q.set(H,pW.Started);let G=I(H);if(G){let W=this.opts.es5?Zb.varKinds.var:Zb.varKinds.const;J=c6._`${J}${W} ${H} = ${G};${this.opts._n}`}else if(G=Y===null||Y===void 0?void 0:Y(H))J=c6._`${J}${G}${this.opts._n}`;else throw new wb(H);q.set(H,pW.Completed)})}return J}}Zb.ValueScope=Vb});var a0=O((d6)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.or=d6.and=d6.not=d6.CodeGen=d6.operators=d6.varKinds=d6.ValueScopeName=d6.ValueScope=d6.Scope=d6.Name=d6.regexpCode=d6.stringify=d6.getProperty=d6.nil=d6.strConcat=d6.str=d6._=void 0;var W1=fQ(),o$=OT(),V9=fQ();Object.defineProperty(d6,"_",{enumerable:!0,get:function(){return V9._}});Object.defineProperty(d6,"str",{enumerable:!0,get:function(){return V9.str}});Object.defineProperty(d6,"strConcat",{enumerable:!0,get:function(){return V9.strConcat}});Object.defineProperty(d6,"nil",{enumerable:!0,get:function(){return V9.nil}});Object.defineProperty(d6,"getProperty",{enumerable:!0,get:function(){return V9.getProperty}});Object.defineProperty(d6,"stringify",{enumerable:!0,get:function(){return V9.stringify}});Object.defineProperty(d6,"regexpCode",{enumerable:!0,get:function(){return V9.regexpCode}});Object.defineProperty(d6,"Name",{enumerable:!0,get:function(){return V9.Name}});var rW=OT();Object.defineProperty(d6,"Scope",{enumerable:!0,get:function(){return rW.Scope}});Object.defineProperty(d6,"ValueScope",{enumerable:!0,get:function(){return rW.ValueScope}});Object.defineProperty(d6,"ValueScopeName",{enumerable:!0,get:function(){return rW.ValueScopeName}});Object.defineProperty(d6,"varKinds",{enumerable:!0,get:function(){return rW.varKinds}});d6.operators={GT:new W1._Code(">"),GTE:new W1._Code(">="),LT:new W1._Code("<"),LTE:new W1._Code("<="),EQ:new W1._Code("==="),NEQ:new W1._Code("!=="),NOT:new W1._Code("!"),OR:new W1._Code("||"),AND:new W1._Code("&&"),ADD:new W1._Code("+")};class Z9{optimizeNodes(){return this}optimizeNames($,I){return this}}class Xb extends Z9{constructor($,I,U){super();this.varKind=$,this.name=I,this.rhs=U}render({es5:$,_n:I}){let U=$?o$.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${Y};`+I}optimizeNames($,I){if(!$[this.name.str])return;if(this.rhs)this.rhs=QU(this.rhs,$,I);return this}get names(){return this.rhs instanceof W1._CodeOrName?this.rhs.names:{}}}class MT extends Z9{constructor($,I,U){super();this.lhs=$,this.rhs=I,this.sideEffects=U}render({_n:$}){return`${this.lhs} = ${this.rhs};`+$}optimizeNames($,I){if(this.lhs instanceof W1.Name&&!$[this.lhs.str]&&!this.sideEffects)return;return this.rhs=QU(this.rhs,$,I),this}get names(){let $=this.lhs instanceof W1.Name?{}:{...this.lhs.names};return oW($,this.rhs)}}class Lb extends MT{constructor($,I,U,Y){super($,U,Y);this.op=I}render({_n:$}){return`${this.lhs} ${this.op}= ${this.rhs};`+$}}class Db extends Z9{constructor($){super();this.label=$,this.names={}}render({_n:$}){return`${this.label}:`+$}}class Ob extends Z9{constructor($){super();this.label=$,this.names={}}render({_n:$}){return`break${this.label?` ${this.label}`:""};`+$}}class Fb extends Z9{constructor($){super();this.error=$}render({_n:$}){return`throw ${this.error};`+$}get names(){return this.error.names}}class Nb extends Z9{constructor($){super();this.code=$}render({_n:$}){return`${this.code};`+$}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames($,I){return this.code=QU(this.code,$,I),this}get names(){return this.code instanceof W1._CodeOrName?this.code.names:{}}}class tW extends Z9{constructor($=[]){super();this.nodes=$}render($){return this.nodes.reduce((I,U)=>I+U.render($),"")}optimizeNodes(){let{nodes:$}=this,I=$.length;while(I--){let U=$[I].optimizeNodes();if(Array.isArray(U))$.splice(I,1,...U);else if(U)$[I]=U;else $.splice(I,1)}return $.length>0?this:void 0}optimizeNames($,I){let{nodes:U}=this,Y=U.length;while(Y--){let J=U[Y];if(J.optimizeNames($,I))continue;AM0($,J.names),U.splice(Y,1)}return U.length>0?this:void 0}get names(){return this.nodes.reduce(($,I)=>u7($,I.names),{})}}class z9 extends tW{render($){return"{"+$._n+super.render($)+"}"+$._n}}class Mb extends tW{}class bQ extends z9{}bQ.kind="else";class Q5 extends z9{constructor($,I){super(I);this.condition=$}render($){let I=`if(${this.condition})`+super.render($);if(this.else)I+="else "+this.else.render($);return I}optimizeNodes(){super.optimizeNodes();let $=this.condition;if($===!0)return this.nodes;let I=this.else;if(I){let U=I.optimizeNodes();I=this.else=Array.isArray(U)?new bQ(U):U}if(I){if($===!1)return I instanceof Q5?I:I.nodes;if(this.nodes.length)return this;return new Q5(Bb($),I instanceof Q5?[I]:I.nodes)}if($===!1||!this.nodes.length)return;return this}optimizeNames($,I){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames($,I),!(super.optimizeNames($,I)||this.else))return;return this.condition=QU(this.condition,$,I),this}get names(){let $=super.names;if(oW($,this.condition),this.else)u7($,this.else.names);return $}}Q5.kind="if";class JU extends z9{}JU.kind="for";class Ab extends JU{constructor($){super();this.iteration=$}render($){return`for(${this.iteration})`+super.render($)}optimizeNames($,I){if(!super.optimizeNames($,I))return;return this.iteration=QU(this.iteration,$,I),this}get names(){return u7(super.names,this.iteration.names)}}class Pb extends JU{constructor($,I,U,Y){super();this.varKind=$,this.name=I,this.from=U,this.to=Y}render($){let I=$.es5?o$.varKinds.var:this.varKind,{name:U,from:Y,to:J}=this;return`for(${I} ${U}=${Y}; ${U}<${J}; ${U}++)`+super.render($)}get names(){let $=oW(super.names,this.from);return oW($,this.to)}}class FT extends JU{constructor($,I,U,Y){super();this.loop=$,this.varKind=I,this.name=U,this.iterable=Y}render($){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render($)}optimizeNames($,I){if(!super.optimizeNames($,I))return;return this.iterable=QU(this.iterable,$,I),this}get names(){return u7(super.names,this.iterable.names)}}class cW extends z9{constructor($,I,U){super();this.name=$,this.args=I,this.async=U}render($){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render($)}}cW.kind="func";class dW extends tW{render($){return"return "+super.render($)}}dW.kind="return";class Tb extends z9{render($){let I="try"+super.render($);if(this.catch)I+=this.catch.render($);if(this.finally)I+=this.finally.render($);return I}optimizeNodes(){var $,I;return super.optimizeNodes(),($=this.catch)===null||$===void 0||$.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames($,I){var U,Y;return super.optimizeNames($,I),(U=this.catch)===null||U===void 0||U.optimizeNames($,I),(Y=this.finally)===null||Y===void 0||Y.optimizeNames($,I),this}get names(){let $=super.names;if(this.catch)u7($,this.catch.names);if(this.finally)u7($,this.finally.names);return $}}class mW extends z9{constructor($){super();this.error=$}render($){return`catch(${this.error})`+super.render($)}}mW.kind="catch";class lW extends z9{render($){return"finally"+super.render($)}}lW.kind="finally";class Eb{constructor($,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?` -`:""},this._extScope=$,this._scope=new o$.Scope({parent:$}),this._nodes=[new Mb]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,I){let U=this._extScope.value($,I);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue($,I){return this._extScope.getValue($,I)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,I,U,Y){let J=this._scope.toName(I);if(U!==void 0&&Y)this._constants[J.str]=U;return this._leafNode(new Xb($,J,U)),J}const($,I,U){return this._def(o$.varKinds.const,$,I,U)}let($,I,U){return this._def(o$.varKinds.let,$,I,U)}var($,I,U){return this._def(o$.varKinds.var,$,I,U)}assign($,I,U){return this._leafNode(new MT($,I,U))}add($,I){return this._leafNode(new Lb($,d6.operators.ADD,I))}code($){if(typeof $=="function")$();else if($!==W1.nil)this._leafNode(new Nb($));return this}object(...$){let I=["{"];for(let[U,Y]of $){if(I.length>1)I.push(",");if(I.push(U),U!==Y||this.opts.es5)I.push(":"),(0,W1.addCodeArg)(I,Y)}return I.push("}"),new W1._Code(I)}if($,I,U){if(this._blockNode(new Q5($)),I&&U)this.code(I).else().code(U).endIf();else if(I)this.code(I).endIf();else if(U)throw Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new Q5($))}else(){return this._elseNode(new bQ)}endIf(){return this._endBlockNode(Q5,bQ)}_for($,I){if(this._blockNode($),I)this.code(I).endFor();return this}for($,I){return this._for(new Ab($),I)}forRange($,I,U,Y,J=this.opts.es5?o$.varKinds.var:o$.varKinds.let){let Q=this._scope.toName($);return this._for(new Pb(J,Q,I,U),()=>Y(Q))}forOf($,I,U,Y=o$.varKinds.const){let J=this._scope.toName($);if(this.opts.es5){let Q=I instanceof W1.Name?I:this.var("_arr",I);return this.forRange("_i",0,W1._`${Q}.length`,(K)=>{this.var(J,W1._`${Q}[${K}]`),U(J)})}return this._for(new FT("of",Y,J,I),()=>U(J))}forIn($,I,U,Y=this.opts.es5?o$.varKinds.var:o$.varKinds.const){if(this.opts.ownProperties)return this.forOf($,W1._`Object.keys(${I})`,U);let J=this._scope.toName($);return this._for(new FT("in",Y,J,I),()=>U(J))}endFor(){return this._endBlockNode(JU)}label($){return this._leafNode(new Db($))}break($){return this._leafNode(new Ob($))}return($){let I=new dW;if(this._blockNode(I),this.code($),I.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(dW)}try($,I,U){if(!I&&!U)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new Tb;if(this._blockNode(Y),this.code($),I){let J=this.name("e");this._currNode=Y.catch=new mW(J),I(J)}if(U)this._currNode=Y.finally=new lW,this.code(U);return this._endBlockNode(mW,lW)}throw($){return this._leafNode(new Fb($))}block($,I){if(this._blockStarts.push(this._nodes.length),$)this.code($).endBlock(I);return this}endBlock($){let I=this._blockStarts.pop();if(I===void 0)throw Error("CodeGen: not in self-balancing block");let U=this._nodes.length-I;if(U<0||$!==void 0&&U!==$)throw Error(`CodeGen: wrong number of nodes: ${U} vs ${$} expected`);return this._nodes.length=I,this}func($,I=W1.nil,U,Y){if(this._blockNode(new cW($,I,U)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(cW)}optimize($=1){while($-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,I){let U=this._currNode;if(U instanceof $||I&&U instanceof I)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${I?`${$.kind}/${I.kind}`:$.kind}"`)}_elseNode($){let I=this._currNode;if(!(I instanceof Q5))throw Error('CodeGen: "else" without "if"');return this._currNode=I.else=$,this}get _root(){return this._nodes[0]}get _currNode(){let $=this._nodes;return $[$.length-1]}set _currNode($){let I=this._nodes;I[I.length-1]=$}}d6.CodeGen=Eb;function u7($,I){for(let U in I)$[U]=($[U]||0)+(I[U]||0);return $}function oW($,I){return I instanceof W1._CodeOrName?u7($,I.names):$}function QU($,I,U){if($ instanceof W1.Name)return Y($);if(!J($))return $;return new W1._Code($._items.reduce((Q,K)=>{if(K instanceof W1.Name)K=Y(K);if(K instanceof W1._Code)Q.push(...K._items);else Q.push(K);return Q},[]));function Y(Q){let K=U[Q.str];if(K===void 0||I[Q.str]!==1)return Q;return delete I[Q.str],K}function J(Q){return Q instanceof W1._Code&&Q._items.some((K)=>K instanceof W1.Name&&I[K.str]===1&&U[K.str]!==void 0)}}function AM0($,I){for(let U in I)$[U]=($[U]||0)-(I[U]||0)}function Bb($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:W1._`!${NT($)}`}d6.not=Bb;var PM0=vb(d6.operators.AND);function TM0(...$){return $.reduce(PM0)}d6.and=TM0;var EM0=vb(d6.operators.OR);function BM0(...$){return $.reduce(EM0)}d6.or=BM0;function vb($){return(I,U)=>I===W1.nil?U:U===W1.nil?I:W1._`${NT(I)} ${$} ${NT(U)}`}function NT($){return $ instanceof W1.Name?$:W1._`(${$})`}});var z1=O((ub)=>{Object.defineProperty(ub,"__esModule",{value:!0});ub.checkStrictMode=ub.getErrorPath=ub.Type=ub.useFunc=ub.setEvaluated=ub.evaluatedPropsToName=ub.mergeEvaluated=ub.eachItem=ub.unescapeJsonPointer=ub.escapeJsonPointer=ub.escapeFragment=ub.unescapeFragment=ub.schemaRefOrVal=ub.schemaHasRulesButRef=ub.schemaHasRules=ub.checkUnknownRules=ub.alwaysValidSchema=ub.toHash=void 0;var c1=a0(),CM0=fQ();function _M0($){let I={};for(let U of $)I[U]=!0;return I}ub.toHash=_M0;function SM0($,I){if(typeof I=="boolean")return I;if(Object.keys(I).length===0)return!0;return _b($,I),!Sb(I,$.self.RULES.all)}ub.alwaysValidSchema=SM0;function _b($,I=$.schema){let{opts:U,self:Y}=$;if(!U.strictSchema)return;if(typeof I==="boolean")return;let J=Y.RULES.keywords;for(let Q in I)if(!J[Q])hb($,`unknown keyword: "${Q}"`)}ub.checkUnknownRules=_b;function Sb($,I){if(typeof $=="boolean")return!$;for(let U in $)if(I[U])return!0;return!1}ub.schemaHasRules=Sb;function gM0($,I){if(typeof $=="boolean")return!$;for(let U in $)if(U!=="$ref"&&I.all[U])return!0;return!1}ub.schemaHasRulesButRef=gM0;function yM0({topSchemaRef:$,schemaPath:I},U,Y,J){if(!J){if(typeof U=="number"||typeof U=="boolean")return U;if(typeof U=="string")return c1._`${U}`}return c1._`${$}${I}${(0,c1.getProperty)(Y)}`}ub.schemaRefOrVal=yM0;function hM0($){return gb(decodeURIComponent($))}ub.unescapeFragment=hM0;function uM0($){return encodeURIComponent(PT($))}ub.escapeFragment=uM0;function PT($){if(typeof $=="number")return`${$}`;return $.replace(/~/g,"~0").replace(/\//g,"~1")}ub.escapeJsonPointer=PT;function gb($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}ub.unescapeJsonPointer=gb;function xM0($,I){if(Array.isArray($))for(let U of $)I(U);else I($)}ub.eachItem=xM0;function jb({mergeNames:$,mergeToName:I,mergeValues:U,resultToName:Y}){return(J,Q,K,q)=>{let H=K===void 0?Q:K instanceof c1.Name?(Q instanceof c1.Name?$(J,Q,K):I(J,Q,K),K):Q instanceof c1.Name?(I(J,K,Q),Q):U(Q,K);return q===c1.Name&&!(H instanceof c1.Name)?Y(J,H):H}}ub.mergeEvaluated={props:jb({mergeNames:($,I,U)=>$.if(c1._`${U} !== true && ${I} !== undefined`,()=>{$.if(c1._`${I} === true`,()=>$.assign(U,!0),()=>$.assign(U,c1._`${U} || {}`).code(c1._`Object.assign(${U}, ${I})`))}),mergeToName:($,I,U)=>$.if(c1._`${U} !== true`,()=>{if(I===!0)$.assign(U,!0);else $.assign(U,c1._`${U} || {}`),TT($,U,I)}),mergeValues:($,I)=>$===!0?!0:{...$,...I},resultToName:yb}),items:jb({mergeNames:($,I,U)=>$.if(c1._`${U} !== true && ${I} !== undefined`,()=>$.assign(U,c1._`${I} === true ? true : ${U} > ${I} ? ${U} : ${I}`)),mergeToName:($,I,U)=>$.if(c1._`${U} !== true`,()=>$.assign(U,I===!0?!0:c1._`${U} > ${I} ? ${U} : ${I}`)),mergeValues:($,I)=>$===!0?!0:Math.max($,I),resultToName:($,I)=>$.var("items",I)})};function yb($,I){if(I===!0)return $.var("props",!0);let U=$.var("props",c1._`{}`);if(I!==void 0)TT($,U,I);return U}ub.evaluatedPropsToName=yb;function TT($,I,U){Object.keys(U).forEach((Y)=>$.assign(c1._`${I}${(0,c1.getProperty)(Y)}`,!0))}ub.setEvaluated=TT;var Cb={};function kM0($,I){return $.scopeValue("func",{ref:I,code:Cb[I.code]||(Cb[I.code]=new CM0._Code(I.code))})}ub.useFunc=kM0;var AT;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(AT||(ub.Type=AT={}));function fM0($,I,U){if($ instanceof c1.Name){let Y=I===AT.Num;return U?Y?c1._`"[" + ${$} + "]"`:c1._`"['" + ${$} + "']"`:Y?c1._`"/" + ${$}`:c1._`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return U?(0,c1.getProperty)($).toString():"/"+PT($)}ub.getErrorPath=fM0;function hb($,I,U=$.opts.strictSchema){if(!U)return;if(I=`strict mode: ${I}`,U===!0)throw Error(I);$.self.logger.warn(I)}ub.checkStrictMode=hb});var K5=O((kb)=>{Object.defineProperty(kb,"__esModule",{value:!0});var X6=a0(),YA0={data:new X6.Name("data"),valCxt:new X6.Name("valCxt"),instancePath:new X6.Name("instancePath"),parentData:new X6.Name("parentData"),parentDataProperty:new X6.Name("parentDataProperty"),rootData:new X6.Name("rootData"),dynamicAnchors:new X6.Name("dynamicAnchors"),vErrors:new X6.Name("vErrors"),errors:new X6.Name("errors"),this:new X6.Name("this"),self:new X6.Name("self"),scope:new X6.Name("scope"),json:new X6.Name("json"),jsonPos:new X6.Name("jsonPos"),jsonLen:new X6.Name("jsonLen"),jsonPart:new X6.Name("jsonPart")};kb.default=YA0});var iQ=O((nb)=>{Object.defineProperty(nb,"__esModule",{value:!0});nb.extendErrors=nb.resetErrorsCount=nb.reportExtraError=nb.reportError=nb.keyword$DataError=nb.keywordError=void 0;var X1=a0(),sW=z1(),R6=K5();nb.keywordError={message:({keyword:$})=>X1.str`must pass "${$}" keyword validation`};nb.keyword$DataError={message:({keyword:$,schemaType:I})=>I?X1.str`"${$}" keyword must be ${I} ($data)`:X1.str`"${$}" keyword is invalid ($data)`};function QA0($,I=nb.keywordError,U,Y){let{it:J}=$,{gen:Q,compositeRule:K,allErrors:q}=J,H=ib($,I,U);if(Y!==null&&Y!==void 0?Y:K||q)fb(Q,H);else bb(J,X1._`[${H}]`)}nb.reportError=QA0;function KA0($,I=nb.keywordError,U){let{it:Y}=$,{gen:J,compositeRule:Q,allErrors:K}=Y,q=ib($,I,U);if(fb(J,q),!(Q||K))bb(Y,R6.default.vErrors)}nb.reportExtraError=KA0;function qA0($,I){$.assign(R6.default.errors,I),$.if(X1._`${R6.default.vErrors} !== null`,()=>$.if(I,()=>$.assign(X1._`${R6.default.vErrors}.length`,I),()=>$.assign(R6.default.vErrors,null)))}nb.resetErrorsCount=qA0;function HA0({gen:$,keyword:I,schemaValue:U,data:Y,errsCount:J,it:Q}){if(J===void 0)throw Error("ajv implementation error");let K=$.name("err");$.forRange("i",J,R6.default.errors,(q)=>{if($.const(K,X1._`${R6.default.vErrors}[${q}]`),$.if(X1._`${K}.instancePath === undefined`,()=>$.assign(X1._`${K}.instancePath`,(0,X1.strConcat)(R6.default.instancePath,Q.errorPath))),$.assign(X1._`${K}.schemaPath`,X1.str`${Q.errSchemaPath}/${I}`),Q.opts.verbose)$.assign(X1._`${K}.schema`,U),$.assign(X1._`${K}.data`,Y)})}nb.extendErrors=HA0;function fb($,I){let U=$.const("err",I);$.if(X1._`${R6.default.vErrors} === null`,()=>$.assign(R6.default.vErrors,X1._`[${U}]`),X1._`${R6.default.vErrors}.push(${U})`),$.code(X1._`${R6.default.errors}++`)}function bb($,I){let{gen:U,validateName:Y,schemaEnv:J}=$;if(J.$async)U.throw(X1._`new ${$.ValidationError}(${I})`);else U.assign(X1._`${Y}.errors`,I),U.return(!1)}var x7={keyword:new X1.Name("keyword"),schemaPath:new X1.Name("schemaPath"),params:new X1.Name("params"),propertyName:new X1.Name("propertyName"),message:new X1.Name("message"),schema:new X1.Name("schema"),parentSchema:new X1.Name("parentSchema")};function ib($,I,U){let{createErrors:Y}=$.it;if(Y===!1)return X1._`{}`;return GA0($,I,U)}function GA0($,I,U={}){let{gen:Y,it:J}=$,Q=[WA0(J,U),wA0($,U)];return VA0($,I,Q),Y.object(...Q)}function WA0({errorPath:$},{instancePath:I}){let U=I?X1.str`${$}${(0,sW.getErrorPath)(I,sW.Type.Str)}`:$;return[R6.default.instancePath,(0,X1.strConcat)(R6.default.instancePath,U)]}function wA0({keyword:$,it:{errSchemaPath:I}},{schemaPath:U,parentSchema:Y}){let J=Y?I:X1.str`${I}/${$}`;if(U)J=X1.str`${J}${(0,sW.getErrorPath)(U,sW.Type.Str)}`;return[x7.schemaPath,J]}function VA0($,{params:I,message:U},Y){let{keyword:J,data:Q,schemaValue:K,it:q}=$,{opts:H,propertyName:G,topSchemaRef:W,schemaPath:w}=q;if(Y.push([x7.keyword,J],[x7.params,typeof I=="function"?I($):I||X1._`{}`]),H.messages)Y.push([x7.message,typeof U=="function"?U($):U]);if(H.verbose)Y.push([x7.schema,K],[x7.parentSchema,X1._`${W}${w}`],[R6.default.data,Q]);if(G)Y.push([x7.propertyName,G])}});var lb=O((db)=>{Object.defineProperty(db,"__esModule",{value:!0});db.boolOrEmptySchema=db.topBoolOrEmptySchema=void 0;var DA0=iQ(),OA0=a0(),FA0=K5(),NA0={message:"boolean schema is false"};function MA0($){let{gen:I,schema:U,validateName:Y}=$;if(U===!1)cb($,!1);else if(typeof U=="object"&&U.$async===!0)I.return(FA0.default.data);else I.assign(OA0._`${Y}.errors`,null),I.return(!0)}db.topBoolOrEmptySchema=MA0;function AA0($,I){let{gen:U,schema:Y}=$;if(Y===!1)U.var(I,!1),cb($);else U.var(I,!0)}db.boolOrEmptySchema=AA0;function cb($,I){let{gen:U,data:Y}=$,J={gen:U,keyword:"false schema",data:Y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:$};(0,DA0.reportError)(J,NA0,void 0,I)}});var BT=O((ob)=>{Object.defineProperty(ob,"__esModule",{value:!0});ob.getRules=ob.isJSONType=void 0;var TA0=["string","number","integer","boolean","null","object","array"],EA0=new Set(TA0);function BA0($){return typeof $=="string"&&EA0.has($)}ob.isJSONType=BA0;function vA0(){let $={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...$,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},$.number,$.string,$.array,$.object],post:{rules:[]},all:{},keywords:{}}}ob.getRules=vA0});var vT=O((sb)=>{Object.defineProperty(sb,"__esModule",{value:!0});sb.shouldUseRule=sb.shouldUseGroup=sb.schemaHasRulesForType=void 0;function jA0({schema:$,self:I},U){let Y=I.RULES.types[U];return Y&&Y!==!0&&tb($,Y)}sb.schemaHasRulesForType=jA0;function tb($,I){return I.rules.some((U)=>ab($,U))}sb.shouldUseGroup=tb;function ab($,I){var U;return $[I.keyword]!==void 0||((U=I.definition.implements)===null||U===void 0?void 0:U.some((Y)=>$[Y]!==void 0))}sb.shouldUseRule=ab});var nQ=O((Yi)=>{Object.defineProperty(Yi,"__esModule",{value:!0});Yi.reportTypeError=Yi.checkDataTypes=Yi.checkDataType=Yi.coerceAndCheckDataType=Yi.getJSONTypes=Yi.getSchemaTypes=Yi.DataType=void 0;var SA0=BT(),gA0=vT(),yA0=iQ(),t0=a0(),$i=z1(),KU;(function($){$[$.Correct=0]="Correct",$[$.Wrong=1]="Wrong"})(KU||(Yi.DataType=KU={}));function hA0($){let I=Ii($.type);if(I.includes("null")){if($.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!I.length&&$.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if($.nullable===!0)I.push("null")}return I}Yi.getSchemaTypes=hA0;function Ii($){let I=Array.isArray($)?$:$?[$]:[];if(I.every(SA0.isJSONType))return I;throw Error("type must be JSONType or JSONType[]: "+I.join(","))}Yi.getJSONTypes=Ii;function uA0($,I){let{gen:U,data:Y,opts:J}=$,Q=xA0(I,J.coerceTypes),K=I.length>0&&!(Q.length===0&&I.length===1&&(0,gA0.schemaHasRulesForType)($,I[0]));if(K){let q=jT(I,Y,J.strictNumbers,KU.Wrong);U.if(q,()=>{if(Q.length)kA0($,I,Q);else CT($)})}return K}Yi.coerceAndCheckDataType=uA0;var Ui=new Set(["string","number","integer","boolean","null"]);function xA0($,I){return I?$.filter((U)=>Ui.has(U)||I==="array"&&U==="array"):[]}function kA0($,I,U){let{gen:Y,data:J,opts:Q}=$,K=Y.let("dataType",t0._`typeof ${J}`),q=Y.let("coerced",t0._`undefined`);if(Q.coerceTypes==="array")Y.if(t0._`${K} == 'object' && Array.isArray(${J}) && ${J}.length == 1`,()=>Y.assign(J,t0._`${J}[0]`).assign(K,t0._`typeof ${J}`).if(jT(I,J,Q.strictNumbers),()=>Y.assign(q,J)));Y.if(t0._`${q} !== undefined`);for(let G of U)if(Ui.has(G)||G==="array"&&Q.coerceTypes==="array")H(G);Y.else(),CT($),Y.endIf(),Y.if(t0._`${q} !== undefined`,()=>{Y.assign(J,q),fA0($,q)});function H(G){switch(G){case"string":Y.elseIf(t0._`${K} == "number" || ${K} == "boolean"`).assign(q,t0._`"" + ${J}`).elseIf(t0._`${J} === null`).assign(q,t0._`""`);return;case"number":Y.elseIf(t0._`${K} == "boolean" || ${J} === null +import{createRequire as _L0}from"node:module";var AL0=Object.create;var{getPrototypeOf:PL0,defineProperty:UO,getOwnPropertyNames:TL0}=Object;var EL0=Object.prototype.hasOwnProperty;function BL0($){return this[$]}var vL0,RL0,FI=($,I,U)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=I?vL0??=new WeakMap:RL0??=new WeakMap,Q=J.get($);if(Q)return Q}U=$!=null?AL0(PL0($)):{};let K=I||!$||!$.__esModule?UO(U,"default",{value:$,enumerable:!0}):U;for(let q of TL0($))if(!EL0.call(K,q))UO(K,q,{get:BL0.bind($,q),enumerable:!0});if(Y)J.set($,K);return K};var O=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports);var jL0=($)=>$;function CL0($,I){this[$]=jL0.bind(null,I)}var $5=($,I)=>{for(var U in I)UO($,U,{get:I[U],enumerable:!0,configurable:!0,set:CL0.bind(I,U)})};var t=_L0(import.meta.url);var bQ=O((wi)=>{Object.defineProperty(wi,"__esModule",{value:!0});wi.regexpCode=wi.getEsmExportName=wi.getProperty=wi.safeStringify=wi.stringify=wi.strConcat=wi.addCodeArg=wi.str=wi._=wi.nil=wi._Code=wi.Name=wi.IDENTIFIER=wi._CodeOrName=void 0;class bW{}wi._CodeOrName=bW;wi.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class YU extends bW{constructor($){super();if(!wi.IDENTIFIER.test($))throw Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}wi.Name=YU;class l$ extends bW{constructor($){super();this._items=typeof $==="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((I,U)=>`${I}${U}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((I,U)=>{if(U instanceof YU)I[U.str]=(I[U.str]||0)+1;return I},{})}}wi._Code=l$;wi.nil=new l$("");function Gi($,...I){let U=[$[0]],Y=0;while(Y{Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ValueScope=Xi.ValueScopeName=Xi.Scope=Xi.varKinds=Xi.UsedValueState=void 0;var c6=bQ();class Zi extends Error{constructor($){super(`CodeGen: "code" for ${$} not defined`);this.value=$.value}}var pW;(function($){$[$.Started=0]="Started",$[$.Completed=1]="Completed"})(pW||(Xi.UsedValueState=pW={}));Xi.varKinds={const:new c6.Name("const"),let:new c6.Name("let"),var:new c6.Name("var")};class DT{constructor({prefixes:$,parent:I}={}){this._names={},this._prefixes=$,this._parent=I}toName($){return $ instanceof c6.Name?$:this.name($)}name($){return new c6.Name(this._newName($))}_newName($){let I=this._names[$]||this._nameGroup($);return`${$}${I.index++}`}_nameGroup($){var I,U;if(((U=(I=this._parent)===null||I===void 0?void 0:I._prefixes)===null||U===void 0?void 0:U.has($))||this._prefixes&&!this._prefixes.has($))throw Error(`CodeGen: prefix "${$}" is not allowed in this scope`);return this._names[$]={prefix:$,index:0}}}Xi.Scope=DT;class OT extends c6.Name{constructor($,I){super(I);this.prefix=$}setValue($,{property:I,itemIndex:U}){this.value=$,this.scopePath=c6._`.${new c6.Name(I)}[${U}]`}}Xi.ValueScopeName=OT;var OM0=c6._`\n`;class zi extends DT{constructor($){super($);this._values={},this._scope=$.scope,this.opts={...$,_n:$.lines?OM0:c6.nil}}get(){return this._scope}name($){return new OT($,this._newName($))}value($,I){var U;if(I.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName($),{prefix:J}=Y,Q=(U=I.key)!==null&&U!==void 0?U:I.ref,K=this._values[J];if(K){let G=K.get(Q);if(G)return G}else K=this._values[J]=new Map;K.set(Q,Y);let q=this._scope[J]||(this._scope[J]=[]),H=q.length;return q[H]=I.ref,Y.setValue(I,{property:J,itemIndex:H}),Y}getValue($,I){let U=this._values[$];if(!U)return;return U.get(I)}scopeRefs($,I=this._values){return this._reduceValues(I,(U)=>{if(U.scopePath===void 0)throw Error(`CodeGen: name "${U}" has no value`);return c6._`${$}${U.scopePath}`})}scopeCode($=this._values,I,U){return this._reduceValues($,(Y)=>{if(Y.value===void 0)throw Error(`CodeGen: name "${Y}" has no value`);return Y.value.code},I,U)}_reduceValues($,I,U={},Y){let J=c6.nil;for(let Q in $){let K=$[Q];if(!K)continue;let q=U[Q]=U[Q]||new Map;K.forEach((H)=>{if(q.has(H))return;q.set(H,pW.Started);let G=I(H);if(G){let W=this.opts.es5?Xi.varKinds.var:Xi.varKinds.const;J=c6._`${J}${W} ${H} = ${G};${this.opts._n}`}else if(G=Y===null||Y===void 0?void 0:Y(H))J=c6._`${J}${G}${this.opts._n}`;else throw new Zi(H);q.set(H,pW.Completed)})}return J}}Xi.ValueScope=zi});var a0=O((d6)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.or=d6.and=d6.not=d6.CodeGen=d6.operators=d6.varKinds=d6.ValueScopeName=d6.ValueScope=d6.Scope=d6.Name=d6.regexpCode=d6.stringify=d6.getProperty=d6.nil=d6.strConcat=d6.str=d6._=void 0;var W1=bQ(),o$=FT(),V9=bQ();Object.defineProperty(d6,"_",{enumerable:!0,get:function(){return V9._}});Object.defineProperty(d6,"str",{enumerable:!0,get:function(){return V9.str}});Object.defineProperty(d6,"strConcat",{enumerable:!0,get:function(){return V9.strConcat}});Object.defineProperty(d6,"nil",{enumerable:!0,get:function(){return V9.nil}});Object.defineProperty(d6,"getProperty",{enumerable:!0,get:function(){return V9.getProperty}});Object.defineProperty(d6,"stringify",{enumerable:!0,get:function(){return V9.stringify}});Object.defineProperty(d6,"regexpCode",{enumerable:!0,get:function(){return V9.regexpCode}});Object.defineProperty(d6,"Name",{enumerable:!0,get:function(){return V9.Name}});var rW=FT();Object.defineProperty(d6,"Scope",{enumerable:!0,get:function(){return rW.Scope}});Object.defineProperty(d6,"ValueScope",{enumerable:!0,get:function(){return rW.ValueScope}});Object.defineProperty(d6,"ValueScopeName",{enumerable:!0,get:function(){return rW.ValueScopeName}});Object.defineProperty(d6,"varKinds",{enumerable:!0,get:function(){return rW.varKinds}});d6.operators={GT:new W1._Code(">"),GTE:new W1._Code(">="),LT:new W1._Code("<"),LTE:new W1._Code("<="),EQ:new W1._Code("==="),NEQ:new W1._Code("!=="),NOT:new W1._Code("!"),OR:new W1._Code("||"),AND:new W1._Code("&&"),ADD:new W1._Code("+")};class Z9{optimizeNodes(){return this}optimizeNames($,I){return this}}class Di extends Z9{constructor($,I,U){super();this.varKind=$,this.name=I,this.rhs=U}render({es5:$,_n:I}){let U=$?o$.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${Y};`+I}optimizeNames($,I){if(!$[this.name.str])return;if(this.rhs)this.rhs=QU(this.rhs,$,I);return this}get names(){return this.rhs instanceof W1._CodeOrName?this.rhs.names:{}}}class AT extends Z9{constructor($,I,U){super();this.lhs=$,this.rhs=I,this.sideEffects=U}render({_n:$}){return`${this.lhs} = ${this.rhs};`+$}optimizeNames($,I){if(this.lhs instanceof W1.Name&&!$[this.lhs.str]&&!this.sideEffects)return;return this.rhs=QU(this.rhs,$,I),this}get names(){let $=this.lhs instanceof W1.Name?{}:{...this.lhs.names};return oW($,this.rhs)}}class Oi extends AT{constructor($,I,U,Y){super($,U,Y);this.op=I}render({_n:$}){return`${this.lhs} ${this.op}= ${this.rhs};`+$}}class Fi extends Z9{constructor($){super();this.label=$,this.names={}}render({_n:$}){return`${this.label}:`+$}}class Ni extends Z9{constructor($){super();this.label=$,this.names={}}render({_n:$}){return`break${this.label?` ${this.label}`:""};`+$}}class Mi extends Z9{constructor($){super();this.error=$}render({_n:$}){return`throw ${this.error};`+$}get names(){return this.error.names}}class Ai extends Z9{constructor($){super();this.code=$}render({_n:$}){return`${this.code};`+$}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames($,I){return this.code=QU(this.code,$,I),this}get names(){return this.code instanceof W1._CodeOrName?this.code.names:{}}}class tW extends Z9{constructor($=[]){super();this.nodes=$}render($){return this.nodes.reduce((I,U)=>I+U.render($),"")}optimizeNodes(){let{nodes:$}=this,I=$.length;while(I--){let U=$[I].optimizeNodes();if(Array.isArray(U))$.splice(I,1,...U);else if(U)$[I]=U;else $.splice(I,1)}return $.length>0?this:void 0}optimizeNames($,I){let{nodes:U}=this,Y=U.length;while(Y--){let J=U[Y];if(J.optimizeNames($,I))continue;AM0($,J.names),U.splice(Y,1)}return U.length>0?this:void 0}get names(){return this.nodes.reduce(($,I)=>u7($,I.names),{})}}class z9 extends tW{render($){return"{"+$._n+super.render($)+"}"+$._n}}class Pi extends tW{}class nQ extends z9{}nQ.kind="else";class Q5 extends z9{constructor($,I){super(I);this.condition=$}render($){let I=`if(${this.condition})`+super.render($);if(this.else)I+="else "+this.else.render($);return I}optimizeNodes(){super.optimizeNodes();let $=this.condition;if($===!0)return this.nodes;let I=this.else;if(I){let U=I.optimizeNodes();I=this.else=Array.isArray(U)?new nQ(U):U}if(I){if($===!1)return I instanceof Q5?I:I.nodes;if(this.nodes.length)return this;return new Q5(Ri($),I instanceof Q5?[I]:I.nodes)}if($===!1||!this.nodes.length)return;return this}optimizeNames($,I){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames($,I),!(super.optimizeNames($,I)||this.else))return;return this.condition=QU(this.condition,$,I),this}get names(){let $=super.names;if(oW($,this.condition),this.else)u7($,this.else.names);return $}}Q5.kind="if";class JU extends z9{}JU.kind="for";class Ti extends JU{constructor($){super();this.iteration=$}render($){return`for(${this.iteration})`+super.render($)}optimizeNames($,I){if(!super.optimizeNames($,I))return;return this.iteration=QU(this.iteration,$,I),this}get names(){return u7(super.names,this.iteration.names)}}class Ei extends JU{constructor($,I,U,Y){super();this.varKind=$,this.name=I,this.from=U,this.to=Y}render($){let I=$.es5?o$.varKinds.var:this.varKind,{name:U,from:Y,to:J}=this;return`for(${I} ${U}=${Y}; ${U}<${J}; ${U}++)`+super.render($)}get names(){let $=oW(super.names,this.from);return oW($,this.to)}}class NT extends JU{constructor($,I,U,Y){super();this.loop=$,this.varKind=I,this.name=U,this.iterable=Y}render($){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render($)}optimizeNames($,I){if(!super.optimizeNames($,I))return;return this.iterable=QU(this.iterable,$,I),this}get names(){return u7(super.names,this.iterable.names)}}class cW extends z9{constructor($,I,U){super();this.name=$,this.args=I,this.async=U}render($){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render($)}}cW.kind="func";class dW extends tW{render($){return"return "+super.render($)}}dW.kind="return";class Bi extends z9{render($){let I="try"+super.render($);if(this.catch)I+=this.catch.render($);if(this.finally)I+=this.finally.render($);return I}optimizeNodes(){var $,I;return super.optimizeNodes(),($=this.catch)===null||$===void 0||$.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames($,I){var U,Y;return super.optimizeNames($,I),(U=this.catch)===null||U===void 0||U.optimizeNames($,I),(Y=this.finally)===null||Y===void 0||Y.optimizeNames($,I),this}get names(){let $=super.names;if(this.catch)u7($,this.catch.names);if(this.finally)u7($,this.finally.names);return $}}class mW extends z9{constructor($){super();this.error=$}render($){return`catch(${this.error})`+super.render($)}}mW.kind="catch";class lW extends z9{render($){return"finally"+super.render($)}}lW.kind="finally";class vi{constructor($,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?` +`:""},this._extScope=$,this._scope=new o$.Scope({parent:$}),this._nodes=[new Pi]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,I){let U=this._extScope.value($,I);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue($,I){return this._extScope.getValue($,I)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,I,U,Y){let J=this._scope.toName(I);if(U!==void 0&&Y)this._constants[J.str]=U;return this._leafNode(new Di($,J,U)),J}const($,I,U){return this._def(o$.varKinds.const,$,I,U)}let($,I,U){return this._def(o$.varKinds.let,$,I,U)}var($,I,U){return this._def(o$.varKinds.var,$,I,U)}assign($,I,U){return this._leafNode(new AT($,I,U))}add($,I){return this._leafNode(new Oi($,d6.operators.ADD,I))}code($){if(typeof $=="function")$();else if($!==W1.nil)this._leafNode(new Ai($));return this}object(...$){let I=["{"];for(let[U,Y]of $){if(I.length>1)I.push(",");if(I.push(U),U!==Y||this.opts.es5)I.push(":"),(0,W1.addCodeArg)(I,Y)}return I.push("}"),new W1._Code(I)}if($,I,U){if(this._blockNode(new Q5($)),I&&U)this.code(I).else().code(U).endIf();else if(I)this.code(I).endIf();else if(U)throw Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new Q5($))}else(){return this._elseNode(new nQ)}endIf(){return this._endBlockNode(Q5,nQ)}_for($,I){if(this._blockNode($),I)this.code(I).endFor();return this}for($,I){return this._for(new Ti($),I)}forRange($,I,U,Y,J=this.opts.es5?o$.varKinds.var:o$.varKinds.let){let Q=this._scope.toName($);return this._for(new Ei(J,Q,I,U),()=>Y(Q))}forOf($,I,U,Y=o$.varKinds.const){let J=this._scope.toName($);if(this.opts.es5){let Q=I instanceof W1.Name?I:this.var("_arr",I);return this.forRange("_i",0,W1._`${Q}.length`,(K)=>{this.var(J,W1._`${Q}[${K}]`),U(J)})}return this._for(new NT("of",Y,J,I),()=>U(J))}forIn($,I,U,Y=this.opts.es5?o$.varKinds.var:o$.varKinds.const){if(this.opts.ownProperties)return this.forOf($,W1._`Object.keys(${I})`,U);let J=this._scope.toName($);return this._for(new NT("in",Y,J,I),()=>U(J))}endFor(){return this._endBlockNode(JU)}label($){return this._leafNode(new Fi($))}break($){return this._leafNode(new Ni($))}return($){let I=new dW;if(this._blockNode(I),this.code($),I.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(dW)}try($,I,U){if(!I&&!U)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new Bi;if(this._blockNode(Y),this.code($),I){let J=this.name("e");this._currNode=Y.catch=new mW(J),I(J)}if(U)this._currNode=Y.finally=new lW,this.code(U);return this._endBlockNode(mW,lW)}throw($){return this._leafNode(new Mi($))}block($,I){if(this._blockStarts.push(this._nodes.length),$)this.code($).endBlock(I);return this}endBlock($){let I=this._blockStarts.pop();if(I===void 0)throw Error("CodeGen: not in self-balancing block");let U=this._nodes.length-I;if(U<0||$!==void 0&&U!==$)throw Error(`CodeGen: wrong number of nodes: ${U} vs ${$} expected`);return this._nodes.length=I,this}func($,I=W1.nil,U,Y){if(this._blockNode(new cW($,I,U)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(cW)}optimize($=1){while($-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,I){let U=this._currNode;if(U instanceof $||I&&U instanceof I)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${I?`${$.kind}/${I.kind}`:$.kind}"`)}_elseNode($){let I=this._currNode;if(!(I instanceof Q5))throw Error('CodeGen: "else" without "if"');return this._currNode=I.else=$,this}get _root(){return this._nodes[0]}get _currNode(){let $=this._nodes;return $[$.length-1]}set _currNode($){let I=this._nodes;I[I.length-1]=$}}d6.CodeGen=vi;function u7($,I){for(let U in I)$[U]=($[U]||0)+(I[U]||0);return $}function oW($,I){return I instanceof W1._CodeOrName?u7($,I.names):$}function QU($,I,U){if($ instanceof W1.Name)return Y($);if(!J($))return $;return new W1._Code($._items.reduce((Q,K)=>{if(K instanceof W1.Name)K=Y(K);if(K instanceof W1._Code)Q.push(...K._items);else Q.push(K);return Q},[]));function Y(Q){let K=U[Q.str];if(K===void 0||I[Q.str]!==1)return Q;return delete I[Q.str],K}function J(Q){return Q instanceof W1._Code&&Q._items.some((K)=>K instanceof W1.Name&&I[K.str]===1&&U[K.str]!==void 0)}}function AM0($,I){for(let U in I)$[U]=($[U]||0)-(I[U]||0)}function Ri($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:W1._`!${MT($)}`}d6.not=Ri;var PM0=ji(d6.operators.AND);function TM0(...$){return $.reduce(PM0)}d6.and=TM0;var EM0=ji(d6.operators.OR);function BM0(...$){return $.reduce(EM0)}d6.or=BM0;function ji($){return(I,U)=>I===W1.nil?U:U===W1.nil?I:W1._`${MT(I)} ${$} ${MT(U)}`}function MT($){return $ instanceof W1.Name?$:W1._`(${$})`}});var z1=O((xi)=>{Object.defineProperty(xi,"__esModule",{value:!0});xi.checkStrictMode=xi.getErrorPath=xi.Type=xi.useFunc=xi.setEvaluated=xi.evaluatedPropsToName=xi.mergeEvaluated=xi.eachItem=xi.unescapeJsonPointer=xi.escapeJsonPointer=xi.escapeFragment=xi.unescapeFragment=xi.schemaRefOrVal=xi.schemaHasRulesButRef=xi.schemaHasRules=xi.checkUnknownRules=xi.alwaysValidSchema=xi.toHash=void 0;var c1=a0(),CM0=bQ();function _M0($){let I={};for(let U of $)I[U]=!0;return I}xi.toHash=_M0;function SM0($,I){if(typeof I=="boolean")return I;if(Object.keys(I).length===0)return!0;return gi($,I),!yi(I,$.self.RULES.all)}xi.alwaysValidSchema=SM0;function gi($,I=$.schema){let{opts:U,self:Y}=$;if(!U.strictSchema)return;if(typeof I==="boolean")return;let J=Y.RULES.keywords;for(let Q in I)if(!J[Q])ki($,`unknown keyword: "${Q}"`)}xi.checkUnknownRules=gi;function yi($,I){if(typeof $=="boolean")return!$;for(let U in $)if(I[U])return!0;return!1}xi.schemaHasRules=yi;function gM0($,I){if(typeof $=="boolean")return!$;for(let U in $)if(U!=="$ref"&&I.all[U])return!0;return!1}xi.schemaHasRulesButRef=gM0;function yM0({topSchemaRef:$,schemaPath:I},U,Y,J){if(!J){if(typeof U=="number"||typeof U=="boolean")return U;if(typeof U=="string")return c1._`${U}`}return c1._`${$}${I}${(0,c1.getProperty)(Y)}`}xi.schemaRefOrVal=yM0;function hM0($){return hi(decodeURIComponent($))}xi.unescapeFragment=hM0;function uM0($){return encodeURIComponent(TT($))}xi.escapeFragment=uM0;function TT($){if(typeof $=="number")return`${$}`;return $.replace(/~/g,"~0").replace(/\//g,"~1")}xi.escapeJsonPointer=TT;function hi($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}xi.unescapeJsonPointer=hi;function kM0($,I){if(Array.isArray($))for(let U of $)I(U);else I($)}xi.eachItem=kM0;function _i({mergeNames:$,mergeToName:I,mergeValues:U,resultToName:Y}){return(J,Q,K,q)=>{let H=K===void 0?Q:K instanceof c1.Name?(Q instanceof c1.Name?$(J,Q,K):I(J,Q,K),K):Q instanceof c1.Name?(I(J,K,Q),Q):U(Q,K);return q===c1.Name&&!(H instanceof c1.Name)?Y(J,H):H}}xi.mergeEvaluated={props:_i({mergeNames:($,I,U)=>$.if(c1._`${U} !== true && ${I} !== undefined`,()=>{$.if(c1._`${I} === true`,()=>$.assign(U,!0),()=>$.assign(U,c1._`${U} || {}`).code(c1._`Object.assign(${U}, ${I})`))}),mergeToName:($,I,U)=>$.if(c1._`${U} !== true`,()=>{if(I===!0)$.assign(U,!0);else $.assign(U,c1._`${U} || {}`),ET($,U,I)}),mergeValues:($,I)=>$===!0?!0:{...$,...I},resultToName:ui}),items:_i({mergeNames:($,I,U)=>$.if(c1._`${U} !== true && ${I} !== undefined`,()=>$.assign(U,c1._`${I} === true ? true : ${U} > ${I} ? ${U} : ${I}`)),mergeToName:($,I,U)=>$.if(c1._`${U} !== true`,()=>$.assign(U,I===!0?!0:c1._`${U} > ${I} ? ${U} : ${I}`)),mergeValues:($,I)=>$===!0?!0:Math.max($,I),resultToName:($,I)=>$.var("items",I)})};function ui($,I){if(I===!0)return $.var("props",!0);let U=$.var("props",c1._`{}`);if(I!==void 0)ET($,U,I);return U}xi.evaluatedPropsToName=ui;function ET($,I,U){Object.keys(U).forEach((Y)=>$.assign(c1._`${I}${(0,c1.getProperty)(Y)}`,!0))}xi.setEvaluated=ET;var Si={};function xM0($,I){return $.scopeValue("func",{ref:I,code:Si[I.code]||(Si[I.code]=new CM0._Code(I.code))})}xi.useFunc=xM0;var PT;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(PT||(xi.Type=PT={}));function fM0($,I,U){if($ instanceof c1.Name){let Y=I===PT.Num;return U?Y?c1._`"[" + ${$} + "]"`:c1._`"['" + ${$} + "']"`:Y?c1._`"/" + ${$}`:c1._`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return U?(0,c1.getProperty)($).toString():"/"+TT($)}xi.getErrorPath=fM0;function ki($,I,U=$.opts.strictSchema){if(!U)return;if(I=`strict mode: ${I}`,U===!0)throw Error(I);$.self.logger.warn(I)}xi.checkStrictMode=ki});var K5=O((ii)=>{Object.defineProperty(ii,"__esModule",{value:!0});var X6=a0(),YA0={data:new X6.Name("data"),valCxt:new X6.Name("valCxt"),instancePath:new X6.Name("instancePath"),parentData:new X6.Name("parentData"),parentDataProperty:new X6.Name("parentDataProperty"),rootData:new X6.Name("rootData"),dynamicAnchors:new X6.Name("dynamicAnchors"),vErrors:new X6.Name("vErrors"),errors:new X6.Name("errors"),this:new X6.Name("this"),self:new X6.Name("self"),scope:new X6.Name("scope"),json:new X6.Name("json"),jsonPos:new X6.Name("jsonPos"),jsonLen:new X6.Name("jsonLen"),jsonPart:new X6.Name("jsonPart")};ii.default=YA0});var pQ=O((ci)=>{Object.defineProperty(ci,"__esModule",{value:!0});ci.extendErrors=ci.resetErrorsCount=ci.reportExtraError=ci.reportError=ci.keyword$DataError=ci.keywordError=void 0;var X1=a0(),sW=z1(),R6=K5();ci.keywordError={message:({keyword:$})=>X1.str`must pass "${$}" keyword validation`};ci.keyword$DataError={message:({keyword:$,schemaType:I})=>I?X1.str`"${$}" keyword must be ${I} ($data)`:X1.str`"${$}" keyword is invalid ($data)`};function QA0($,I=ci.keywordError,U,Y){let{it:J}=$,{gen:Q,compositeRule:K,allErrors:q}=J,H=pi($,I,U);if(Y!==null&&Y!==void 0?Y:K||q)bi(Q,H);else ni(J,X1._`[${H}]`)}ci.reportError=QA0;function KA0($,I=ci.keywordError,U){let{it:Y}=$,{gen:J,compositeRule:Q,allErrors:K}=Y,q=pi($,I,U);if(bi(J,q),!(Q||K))ni(Y,R6.default.vErrors)}ci.reportExtraError=KA0;function qA0($,I){$.assign(R6.default.errors,I),$.if(X1._`${R6.default.vErrors} !== null`,()=>$.if(I,()=>$.assign(X1._`${R6.default.vErrors}.length`,I),()=>$.assign(R6.default.vErrors,null)))}ci.resetErrorsCount=qA0;function HA0({gen:$,keyword:I,schemaValue:U,data:Y,errsCount:J,it:Q}){if(J===void 0)throw Error("ajv implementation error");let K=$.name("err");$.forRange("i",J,R6.default.errors,(q)=>{if($.const(K,X1._`${R6.default.vErrors}[${q}]`),$.if(X1._`${K}.instancePath === undefined`,()=>$.assign(X1._`${K}.instancePath`,(0,X1.strConcat)(R6.default.instancePath,Q.errorPath))),$.assign(X1._`${K}.schemaPath`,X1.str`${Q.errSchemaPath}/${I}`),Q.opts.verbose)$.assign(X1._`${K}.schema`,U),$.assign(X1._`${K}.data`,Y)})}ci.extendErrors=HA0;function bi($,I){let U=$.const("err",I);$.if(X1._`${R6.default.vErrors} === null`,()=>$.assign(R6.default.vErrors,X1._`[${U}]`),X1._`${R6.default.vErrors}.push(${U})`),$.code(X1._`${R6.default.errors}++`)}function ni($,I){let{gen:U,validateName:Y,schemaEnv:J}=$;if(J.$async)U.throw(X1._`new ${$.ValidationError}(${I})`);else U.assign(X1._`${Y}.errors`,I),U.return(!1)}var k7={keyword:new X1.Name("keyword"),schemaPath:new X1.Name("schemaPath"),params:new X1.Name("params"),propertyName:new X1.Name("propertyName"),message:new X1.Name("message"),schema:new X1.Name("schema"),parentSchema:new X1.Name("parentSchema")};function pi($,I,U){let{createErrors:Y}=$.it;if(Y===!1)return X1._`{}`;return GA0($,I,U)}function GA0($,I,U={}){let{gen:Y,it:J}=$,Q=[WA0(J,U),wA0($,U)];return VA0($,I,Q),Y.object(...Q)}function WA0({errorPath:$},{instancePath:I}){let U=I?X1.str`${$}${(0,sW.getErrorPath)(I,sW.Type.Str)}`:$;return[R6.default.instancePath,(0,X1.strConcat)(R6.default.instancePath,U)]}function wA0({keyword:$,it:{errSchemaPath:I}},{schemaPath:U,parentSchema:Y}){let J=Y?I:X1.str`${I}/${$}`;if(U)J=X1.str`${J}${(0,sW.getErrorPath)(U,sW.Type.Str)}`;return[k7.schemaPath,J]}function VA0($,{params:I,message:U},Y){let{keyword:J,data:Q,schemaValue:K,it:q}=$,{opts:H,propertyName:G,topSchemaRef:W,schemaPath:w}=q;if(Y.push([k7.keyword,J],[k7.params,typeof I=="function"?I($):I||X1._`{}`]),H.messages)Y.push([k7.message,typeof U=="function"?U($):U]);if(H.verbose)Y.push([k7.schema,K],[k7.parentSchema,X1._`${W}${w}`],[R6.default.data,Q]);if(G)Y.push([k7.propertyName,G])}});var ri=O((li)=>{Object.defineProperty(li,"__esModule",{value:!0});li.boolOrEmptySchema=li.topBoolOrEmptySchema=void 0;var DA0=pQ(),OA0=a0(),FA0=K5(),NA0={message:"boolean schema is false"};function MA0($){let{gen:I,schema:U,validateName:Y}=$;if(U===!1)mi($,!1);else if(typeof U=="object"&&U.$async===!0)I.return(FA0.default.data);else I.assign(OA0._`${Y}.errors`,null),I.return(!0)}li.topBoolOrEmptySchema=MA0;function AA0($,I){let{gen:U,schema:Y}=$;if(Y===!1)U.var(I,!1),mi($);else U.var(I,!0)}li.boolOrEmptySchema=AA0;function mi($,I){let{gen:U,data:Y}=$,J={gen:U,keyword:"false schema",data:Y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:$};(0,DA0.reportError)(J,NA0,void 0,I)}});var vT=O((ti)=>{Object.defineProperty(ti,"__esModule",{value:!0});ti.getRules=ti.isJSONType=void 0;var TA0=["string","number","integer","boolean","null","object","array"],EA0=new Set(TA0);function BA0($){return typeof $=="string"&&EA0.has($)}ti.isJSONType=BA0;function vA0(){let $={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...$,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},$.number,$.string,$.array,$.object],post:{rules:[]},all:{},keywords:{}}}ti.getRules=vA0});var RT=O(($b)=>{Object.defineProperty($b,"__esModule",{value:!0});$b.shouldUseRule=$b.shouldUseGroup=$b.schemaHasRulesForType=void 0;function jA0({schema:$,self:I},U){let Y=I.RULES.types[U];return Y&&Y!==!0&&si($,Y)}$b.schemaHasRulesForType=jA0;function si($,I){return I.rules.some((U)=>ei($,U))}$b.shouldUseGroup=si;function ei($,I){var U;return $[I.keyword]!==void 0||((U=I.definition.implements)===null||U===void 0?void 0:U.some((Y)=>$[Y]!==void 0))}$b.shouldUseRule=ei});var cQ=O((Qb)=>{Object.defineProperty(Qb,"__esModule",{value:!0});Qb.reportTypeError=Qb.checkDataTypes=Qb.checkDataType=Qb.coerceAndCheckDataType=Qb.getJSONTypes=Qb.getSchemaTypes=Qb.DataType=void 0;var SA0=vT(),gA0=RT(),yA0=pQ(),t0=a0(),Ub=z1(),KU;(function($){$[$.Correct=0]="Correct",$[$.Wrong=1]="Wrong"})(KU||(Qb.DataType=KU={}));function hA0($){let I=Yb($.type);if(I.includes("null")){if($.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!I.length&&$.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if($.nullable===!0)I.push("null")}return I}Qb.getSchemaTypes=hA0;function Yb($){let I=Array.isArray($)?$:$?[$]:[];if(I.every(SA0.isJSONType))return I;throw Error("type must be JSONType or JSONType[]: "+I.join(","))}Qb.getJSONTypes=Yb;function uA0($,I){let{gen:U,data:Y,opts:J}=$,Q=kA0(I,J.coerceTypes),K=I.length>0&&!(Q.length===0&&I.length===1&&(0,gA0.schemaHasRulesForType)($,I[0]));if(K){let q=CT(I,Y,J.strictNumbers,KU.Wrong);U.if(q,()=>{if(Q.length)xA0($,I,Q);else _T($)})}return K}Qb.coerceAndCheckDataType=uA0;var Jb=new Set(["string","number","integer","boolean","null"]);function kA0($,I){return I?$.filter((U)=>Jb.has(U)||I==="array"&&U==="array"):[]}function xA0($,I,U){let{gen:Y,data:J,opts:Q}=$,K=Y.let("dataType",t0._`typeof ${J}`),q=Y.let("coerced",t0._`undefined`);if(Q.coerceTypes==="array")Y.if(t0._`${K} == 'object' && Array.isArray(${J}) && ${J}.length == 1`,()=>Y.assign(J,t0._`${J}[0]`).assign(K,t0._`typeof ${J}`).if(CT(I,J,Q.strictNumbers),()=>Y.assign(q,J)));Y.if(t0._`${q} !== undefined`);for(let G of U)if(Jb.has(G)||G==="array"&&Q.coerceTypes==="array")H(G);Y.else(),_T($),Y.endIf(),Y.if(t0._`${q} !== undefined`,()=>{Y.assign(J,q),fA0($,q)});function H(G){switch(G){case"string":Y.elseIf(t0._`${K} == "number" || ${K} == "boolean"`).assign(q,t0._`"" + ${J}`).elseIf(t0._`${J} === null`).assign(q,t0._`""`);return;case"number":Y.elseIf(t0._`${K} == "boolean" || ${J} === null || (${K} == "string" && ${J} && ${J} == +${J})`).assign(q,t0._`+${J}`);return;case"integer":Y.elseIf(t0._`${K} === "boolean" || ${J} === null || (${K} === "string" && ${J} && ${J} == +${J} && !(${J} % 1))`).assign(q,t0._`+${J}`);return;case"boolean":Y.elseIf(t0._`${J} === "false" || ${J} === 0 || ${J} === null`).assign(q,!1).elseIf(t0._`${J} === "true" || ${J} === 1`).assign(q,!0);return;case"null":Y.elseIf(t0._`${J} === "" || ${J} === 0 || ${J} === false`),Y.assign(q,null);return;case"array":Y.elseIf(t0._`${K} === "string" || ${K} === "number" - || ${K} === "boolean" || ${J} === null`).assign(q,t0._`[${J}]`)}}}function fA0({gen:$,parentData:I,parentDataProperty:U},Y){$.if(t0._`${I} !== undefined`,()=>$.assign(t0._`${I}[${U}]`,Y))}function RT($,I,U,Y=KU.Correct){let J=Y===KU.Correct?t0.operators.EQ:t0.operators.NEQ,Q;switch($){case"null":return t0._`${I} ${J} null`;case"array":Q=t0._`Array.isArray(${I})`;break;case"object":Q=t0._`${I} && typeof ${I} == "object" && !Array.isArray(${I})`;break;case"integer":Q=K(t0._`!(${I} % 1) && !isNaN(${I})`);break;case"number":Q=K();break;default:return t0._`typeof ${I} ${J} ${$}`}return Y===KU.Correct?Q:(0,t0.not)(Q);function K(q=t0.nil){return(0,t0.and)(t0._`typeof ${I} == "number"`,q,U?t0._`isFinite(${I})`:t0.nil)}}Yi.checkDataType=RT;function jT($,I,U,Y){if($.length===1)return RT($[0],I,U,Y);let J,Q=(0,$i.toHash)($);if(Q.array&&Q.object){let K=t0._`typeof ${I} != "object"`;J=Q.null?K:t0._`!${I} || ${K}`,delete Q.null,delete Q.array,delete Q.object}else J=t0.nil;if(Q.number)delete Q.integer;for(let K in Q)J=(0,t0.and)(J,RT(K,I,U,Y));return J}Yi.checkDataTypes=jT;var bA0={message:({schema:$})=>`must be ${$}`,params:({schema:$,schemaValue:I})=>typeof $=="string"?t0._`{type: ${$}}`:t0._`{type: ${I}}`};function CT($){let I=iA0($);(0,yA0.reportError)(I,bA0)}Yi.reportTypeError=CT;function iA0($){let{gen:I,data:U,schema:Y}=$,J=(0,$i.schemaRefOrVal)($,Y,"type");return{gen:I,keyword:"type",data:U,schema:Y.type,schemaCode:J,schemaValue:J,parentSchema:Y,params:{},it:$}}});var Hi=O((Ki)=>{Object.defineProperty(Ki,"__esModule",{value:!0});Ki.assignDefaults=void 0;var qU=a0(),oA0=z1();function rA0($,I){let{properties:U,items:Y}=$.schema;if(I==="object"&&U)for(let J in U)Qi($,J,U[J].default);else if(I==="array"&&Array.isArray(Y))Y.forEach((J,Q)=>Qi($,Q,J.default))}Ki.assignDefaults=rA0;function Qi($,I,U){let{gen:Y,compositeRule:J,data:Q,opts:K}=$;if(U===void 0)return;let q=qU._`${Q}${(0,qU.getProperty)(I)}`;if(J){(0,oA0.checkStrictMode)($,`default is ignored for: ${q}`);return}let H=qU._`${q} === undefined`;if(K.useDefaults==="empty")H=qU._`${H} || ${q} === null || ${q} === ""`;Y.if(H,qU._`${q} = ${(0,qU.stringify)(U)}`)}});var E$=O((wi)=>{Object.defineProperty(wi,"__esModule",{value:!0});wi.validateUnion=wi.validateArray=wi.usePattern=wi.callValidateCode=wi.schemaProperties=wi.allSchemaProperties=wi.noPropertyInData=wi.propertyInData=wi.isOwnProperty=wi.hasPropFunc=wi.reportMissingProp=wi.checkMissingProp=wi.checkReportMissingProp=void 0;var a1=a0(),_T=z1(),X9=K5(),tA0=z1();function aA0($,I){let{gen:U,data:Y,it:J}=$;U.if(gT(U,Y,I,J.opts.ownProperties),()=>{$.setParams({missingProperty:a1._`${I}`},!0),$.error()})}wi.checkReportMissingProp=aA0;function sA0({gen:$,data:I,it:{opts:U}},Y,J){return(0,a1.or)(...Y.map((Q)=>(0,a1.and)(gT($,I,Q,U.ownProperties),a1._`${J} = ${Q}`)))}wi.checkMissingProp=sA0;function eA0($,I){$.setParams({missingProperty:I},!0),$.error()}wi.reportMissingProp=eA0;function Gi($){return $.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:a1._`Object.prototype.hasOwnProperty`})}wi.hasPropFunc=Gi;function ST($,I,U){return a1._`${Gi($)}.call(${I}, ${U})`}wi.isOwnProperty=ST;function $P0($,I,U,Y){let J=a1._`${I}${(0,a1.getProperty)(U)} !== undefined`;return Y?a1._`${J} && ${ST($,I,U)}`:J}wi.propertyInData=$P0;function gT($,I,U,Y){let J=a1._`${I}${(0,a1.getProperty)(U)} === undefined`;return Y?(0,a1.or)(J,(0,a1.not)(ST($,I,U))):J}wi.noPropertyInData=gT;function Wi($){return $?Object.keys($).filter((I)=>I!=="__proto__"):[]}wi.allSchemaProperties=Wi;function IP0($,I){return Wi(I).filter((U)=>!(0,_T.alwaysValidSchema)($,I[U]))}wi.schemaProperties=IP0;function UP0({schemaCode:$,data:I,it:{gen:U,topSchemaRef:Y,schemaPath:J,errorPath:Q},it:K},q,H,G){let W=G?a1._`${$}, ${I}, ${Y}${J}`:I,w=[[X9.default.instancePath,(0,a1.strConcat)(X9.default.instancePath,Q)],[X9.default.parentData,K.parentData],[X9.default.parentDataProperty,K.parentDataProperty],[X9.default.rootData,X9.default.rootData]];if(K.opts.dynamicRef)w.push([X9.default.dynamicAnchors,X9.default.dynamicAnchors]);let Z=a1._`${W}, ${U.object(...w)}`;return H!==a1.nil?a1._`${q}.call(${H}, ${Z})`:a1._`${q}(${Z})`}wi.callValidateCode=UP0;var YP0=a1._`new RegExp`;function JP0({gen:$,it:{opts:I}},U){let Y=I.unicodeRegExp?"u":"",{regExp:J}=I.code,Q=J(U,Y);return $.scopeValue("pattern",{key:Q.toString(),ref:Q,code:a1._`${J.code==="new RegExp"?YP0:(0,tA0.useFunc)($,J)}(${U}, ${Y})`})}wi.usePattern=JP0;function QP0($){let{gen:I,data:U,keyword:Y,it:J}=$,Q=I.name("valid");if(J.allErrors){let q=I.let("valid",!0);return K(()=>I.assign(q,!1)),q}return I.var(Q,!0),K(()=>I.break()),Q;function K(q){let H=I.const("len",a1._`${U}.length`);I.forRange("i",0,H,(G)=>{$.subschema({keyword:Y,dataProp:G,dataPropType:_T.Type.Num},Q),I.if((0,a1.not)(Q),q)})}}wi.validateArray=QP0;function KP0($){let{gen:I,schema:U,keyword:Y,it:J}=$;if(!Array.isArray(U))throw Error("ajv implementation error");if(U.some((H)=>(0,_T.alwaysValidSchema)(J,H))&&!J.opts.unevaluated)return;let K=I.let("valid",!1),q=I.name("_valid");I.block(()=>U.forEach((H,G)=>{let W=$.subschema({keyword:Y,schemaProp:G,compositeRule:!0},q);if(I.assign(K,a1._`${K} || ${q}`),!$.mergeValidEvaluated(W,q))I.if((0,a1.not)(K))})),$.result(K,()=>$.reset(),()=>$.error(!0))}wi.validateUnion=KP0});var Di=O((Xi)=>{Object.defineProperty(Xi,"__esModule",{value:!0});Xi.validateKeywordUsage=Xi.validSchemaType=Xi.funcKeywordCode=Xi.macroKeywordCode=void 0;var j6=a0(),k7=K5(),FP0=E$(),NP0=iQ();function MP0($,I){let{gen:U,keyword:Y,schema:J,parentSchema:Q,it:K}=$,q=I.macro.call(K.self,J,Q,K),H=zi(U,Y,q);if(K.opts.validateSchema!==!1)K.self.validateSchema(q,!0);let G=U.name("valid");$.subschema({schema:q,schemaPath:j6.nil,errSchemaPath:`${K.errSchemaPath}/${Y}`,topSchemaRef:H,compositeRule:!0},G),$.pass(G,()=>$.error(!0))}Xi.macroKeywordCode=MP0;function AP0($,I){var U;let{gen:Y,keyword:J,schema:Q,parentSchema:K,$data:q,it:H}=$;TP0(H,I);let G=!q&&I.compile?I.compile.call(H.self,Q,K,H):I.validate,W=zi(Y,J,G),w=Y.let("valid");$.block$data(w,Z),$.ok((U=I.valid)!==null&&U!==void 0?U:w);function Z(){if(I.errors===!1){if(L(),I.modifying)Zi($);D(()=>$.error())}else{let F=I.async?V():X();if(I.modifying)Zi($);D(()=>PP0($,F))}}function V(){let F=Y.let("ruleErrs",null);return Y.try(()=>L(j6._`await `),(P)=>Y.assign(w,!1).if(j6._`${P} instanceof ${H.ValidationError}`,()=>Y.assign(F,j6._`${P}.errors`),()=>Y.throw(P))),F}function X(){let F=j6._`${W}.errors`;return Y.assign(F,null),L(j6.nil),F}function L(F=I.async?j6._`await `:j6.nil){let P=H.opts.passContext?k7.default.this:k7.default.self,E=!(("compile"in I)&&!q||I.schema===!1);Y.assign(w,j6._`${F}${(0,FP0.callValidateCode)($,W,P,E)}`,I.modifying)}function D(F){var P;Y.if((0,j6.not)((P=I.valid)!==null&&P!==void 0?P:w),F)}}Xi.funcKeywordCode=AP0;function Zi($){let{gen:I,data:U,it:Y}=$;I.if(Y.parentData,()=>I.assign(U,j6._`${Y.parentData}[${Y.parentDataProperty}]`))}function PP0($,I){let{gen:U}=$;U.if(j6._`Array.isArray(${I})`,()=>{U.assign(k7.default.vErrors,j6._`${k7.default.vErrors} === null ? ${I} : ${k7.default.vErrors}.concat(${I})`).assign(k7.default.errors,j6._`${k7.default.vErrors}.length`),(0,NP0.extendErrors)($)},()=>$.error())}function TP0({schemaEnv:$},I){if(I.async&&!$.$async)throw Error("async keyword in sync schema")}function zi($,I,U){if(U===void 0)throw Error(`keyword "${I}" failed to compile`);return $.scopeValue("keyword",typeof U=="function"?{ref:U}:{ref:U,code:(0,j6.stringify)(U)})}function EP0($,I,U=!1){return!I.length||I.some((Y)=>Y==="array"?Array.isArray($):Y==="object"?$&&typeof $=="object"&&!Array.isArray($):typeof $==Y||U&&typeof $>"u")}Xi.validSchemaType=EP0;function BP0({schema:$,opts:I,self:U,errSchemaPath:Y},J,Q){if(Array.isArray(J.keyword)?!J.keyword.includes(Q):J.keyword!==Q)throw Error("ajv implementation error");let K=J.dependencies;if(K===null||K===void 0?void 0:K.some((q)=>!Object.prototype.hasOwnProperty.call($,q)))throw Error(`parent schema must have dependencies of ${Q}: ${K.join(",")}`);if(J.validateSchema){if(!J.validateSchema($[Q])){let H=`keyword "${Q}" value is invalid at path "${Y}": `+U.errorsText(J.validateSchema.errors);if(I.validateSchema==="log")U.logger.error(H);else throw Error(H)}}}Xi.validateKeywordUsage=BP0});var Mi=O((Fi)=>{Object.defineProperty(Fi,"__esModule",{value:!0});Fi.extendSubschemaMode=Fi.extendSubschemaData=Fi.getSubschema=void 0;var O8=a0(),Oi=z1();function CP0($,{keyword:I,schemaProp:U,schema:Y,schemaPath:J,errSchemaPath:Q,topSchemaRef:K}){if(I!==void 0&&Y!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(I!==void 0){let q=$.schema[I];return U===void 0?{schema:q,schemaPath:O8._`${$.schemaPath}${(0,O8.getProperty)(I)}`,errSchemaPath:`${$.errSchemaPath}/${I}`}:{schema:q[U],schemaPath:O8._`${$.schemaPath}${(0,O8.getProperty)(I)}${(0,O8.getProperty)(U)}`,errSchemaPath:`${$.errSchemaPath}/${I}/${(0,Oi.escapeFragment)(U)}`}}if(Y!==void 0){if(J===void 0||Q===void 0||K===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Y,schemaPath:J,topSchemaRef:K,errSchemaPath:Q}}throw Error('either "keyword" or "schema" must be passed')}Fi.getSubschema=CP0;function _P0($,I,{dataProp:U,dataPropType:Y,data:J,dataTypes:Q,propertyName:K}){if(J!==void 0&&U!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:q}=I;if(U!==void 0){let{errorPath:G,dataPathArr:W,opts:w}=I,Z=q.let("data",O8._`${I.data}${(0,O8.getProperty)(U)}`,!0);H(Z),$.errorPath=O8.str`${G}${(0,Oi.getErrorPath)(U,Y,w.jsPropertySyntax)}`,$.parentDataProperty=O8._`${U}`,$.dataPathArr=[...W,$.parentDataProperty]}if(J!==void 0){let G=J instanceof O8.Name?J:q.let("data",J,!0);if(H(G),K!==void 0)$.propertyName=K}if(Q)$.dataTypes=Q;function H(G){$.data=G,$.dataLevel=I.dataLevel+1,$.dataTypes=[],I.definedProperties=new Set,$.parentData=I.data,$.dataNames=[...I.dataNames,G]}}Fi.extendSubschemaData=_P0;function SP0($,{jtdDiscriminator:I,jtdMetadata:U,compositeRule:Y,createErrors:J,allErrors:Q}){if(Y!==void 0)$.compositeRule=Y;if(J!==void 0)$.createErrors=J;if(Q!==void 0)$.allErrors=Q;$.jtdDiscriminator=I,$.jtdMetadata=U}Fi.extendSubschemaMode=SP0});var yT=O((eD1,Ai)=>{Ai.exports=function $(I,U){if(I===U)return!0;if(I&&U&&typeof I=="object"&&typeof U=="object"){if(I.constructor!==U.constructor)return!1;var Y,J,Q;if(Array.isArray(I)){if(Y=I.length,Y!=U.length)return!1;for(J=Y;J--!==0;)if(!$(I[J],U[J]))return!1;return!0}if(I.constructor===RegExp)return I.source===U.source&&I.flags===U.flags;if(I.valueOf!==Object.prototype.valueOf)return I.valueOf()===U.valueOf();if(I.toString!==Object.prototype.toString)return I.toString()===U.toString();if(Q=Object.keys(I),Y=Q.length,Y!==Object.keys(U).length)return!1;for(J=Y;J--!==0;)if(!Object.prototype.hasOwnProperty.call(U,Q[J]))return!1;for(J=Y;J--!==0;){var K=Q[J];if(!$(I[K],U[K]))return!1}return!0}return I!==I&&U!==U}});var Ti=O(($O1,Pi)=>{var L9=Pi.exports=function($,I,U){if(typeof I=="function")U=I,I={};U=I.cb||U;var Y=typeof U=="function"?U:U.pre||function(){},J=U.post||function(){};eW(I,Y,J,$,"",$)};L9.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};L9.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};L9.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};L9.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function eW($,I,U,Y,J,Q,K,q,H,G){if(Y&&typeof Y=="object"&&!Array.isArray(Y)){I(Y,J,Q,K,q,H,G);for(var W in Y){var w=Y[W];if(Array.isArray(w)){if(W in L9.arrayKeywords)for(var Z=0;Z{Object.defineProperty(Ri,"__esModule",{value:!0});Ri.getSchemaRefs=Ri.resolveUrl=Ri.normalizeId=Ri._getFullPath=Ri.getFullPath=Ri.inlineRef=void 0;var uP0=z1(),xP0=yT(),kP0=Ti(),fP0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function bP0($,I=!0){if(typeof $=="boolean")return!0;if(I===!0)return!hT($);if(!I)return!1;return Ei($)<=I}Ri.inlineRef=bP0;var iP0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hT($){for(let I in $){if(iP0.has(I))return!0;let U=$[I];if(Array.isArray(U)&&U.some(hT))return!0;if(typeof U=="object"&&hT(U))return!0}return!1}function Ei($){let I=0;for(let U in $){if(U==="$ref")return 1/0;if(I++,fP0.has(U))continue;if(typeof $[U]=="object")(0,uP0.eachItem)($[U],(Y)=>I+=Ei(Y));if(I===1/0)return 1/0}return I}function Bi($,I="",U){if(U!==!1)I=HU(I);let Y=$.parse(I);return vi($,Y)}Ri.getFullPath=Bi;function vi($,I){return $.serialize(I).split("#")[0]+"#"}Ri._getFullPath=vi;var nP0=/#\/?$/;function HU($){return $?$.replace(nP0,""):""}Ri.normalizeId=HU;function pP0($,I,U){return U=HU(U),$.resolve(I,U)}Ri.resolveUrl=pP0;var cP0=/^[a-z_][-a-z0-9._]*$/i;function dP0($,I){if(typeof $=="boolean")return{};let{schemaId:U,uriResolver:Y}=this.opts,J=HU($[U]||I),Q={"":J},K=Bi(Y,J,!1),q={},H=new Set;return kP0($,{allKeys:!0},(w,Z,V,X)=>{if(X===void 0)return;let L=K+Z,D=Q[X];if(typeof w[U]=="string")D=F.call(this,w[U]);P.call(this,w.$anchor),P.call(this,w.$dynamicAnchor),Q[Z]=D;function F(E){let A=this.opts.uriResolver.resolve;if(E=HU(D?A(D,E):E),H.has(E))throw W(E);H.add(E);let R=this.refs[E];if(typeof R=="string")R=this.refs[R];if(typeof R=="object")G(w,R.schema,E);else if(E!==HU(L))if(E[0]==="#")G(w,q[E],E),q[E]=w;else this.refs[E]=L;return E}function P(E){if(typeof E=="string"){if(!cP0.test(E))throw Error(`invalid anchor "${E}"`);F.call(this,`#${E}`)}}}),q;function G(w,Z,V){if(Z!==void 0&&!xP0(w,Z))throw W(V)}function W(w){return Error(`reference "${w}" resolves to more than one schema`)}}Ri.getSchemaRefs=dP0});var mQ=O((ci)=>{Object.defineProperty(ci,"__esModule",{value:!0});ci.getData=ci.KeywordCxt=ci.validateFunctionCode=void 0;var yi=lb(),Ci=nQ(),xT=vT(),$w=nQ(),aP0=Hi(),dQ=Di(),uT=Mi(),y0=a0(),p0=K5(),sP0=pQ(),q5=z1(),cQ=iQ();function eP0($){if(xi($)){if(ki($),ui($)){UT0($);return}}hi($,()=>(0,yi.topBoolOrEmptySchema)($))}ci.validateFunctionCode=eP0;function hi({gen:$,validateName:I,schema:U,schemaEnv:Y,opts:J},Q){if(J.code.es5)$.func(I,y0._`${p0.default.data}, ${p0.default.valCxt}`,Y.$async,()=>{$.code(y0._`"use strict"; ${_i(U,J)}`),IT0($,J),$.code(Q)});else $.func(I,y0._`${p0.default.data}, ${$T0(J)}`,Y.$async,()=>$.code(_i(U,J)).code(Q))}function $T0($){return y0._`{${p0.default.instancePath}="", ${p0.default.parentData}, ${p0.default.parentDataProperty}, ${p0.default.rootData}=${p0.default.data}${$.dynamicRef?y0._`, ${p0.default.dynamicAnchors}={}`:y0.nil}}={}`}function IT0($,I){$.if(p0.default.valCxt,()=>{if($.var(p0.default.instancePath,y0._`${p0.default.valCxt}.${p0.default.instancePath}`),$.var(p0.default.parentData,y0._`${p0.default.valCxt}.${p0.default.parentData}`),$.var(p0.default.parentDataProperty,y0._`${p0.default.valCxt}.${p0.default.parentDataProperty}`),$.var(p0.default.rootData,y0._`${p0.default.valCxt}.${p0.default.rootData}`),I.dynamicRef)$.var(p0.default.dynamicAnchors,y0._`${p0.default.valCxt}.${p0.default.dynamicAnchors}`)},()=>{if($.var(p0.default.instancePath,y0._`""`),$.var(p0.default.parentData,y0._`undefined`),$.var(p0.default.parentDataProperty,y0._`undefined`),$.var(p0.default.rootData,p0.default.data),I.dynamicRef)$.var(p0.default.dynamicAnchors,y0._`{}`)})}function UT0($){let{schema:I,opts:U,gen:Y}=$;hi($,()=>{if(U.$comment&&I.$comment)bi($);if(qT0($),Y.let(p0.default.vErrors,null),Y.let(p0.default.errors,0),U.unevaluated)YT0($);fi($),WT0($)});return}function YT0($){let{gen:I,validateName:U}=$;$.evaluated=I.const("evaluated",y0._`${U}.evaluated`),I.if(y0._`${$.evaluated}.dynamicProps`,()=>I.assign(y0._`${$.evaluated}.props`,y0._`undefined`)),I.if(y0._`${$.evaluated}.dynamicItems`,()=>I.assign(y0._`${$.evaluated}.items`,y0._`undefined`))}function _i($,I){let U=typeof $=="object"&&$[I.schemaId];return U&&(I.code.source||I.code.process)?y0._`/*# sourceURL=${U} */`:y0.nil}function JT0($,I){if(xi($)){if(ki($),ui($)){QT0($,I);return}}(0,yi.boolOrEmptySchema)($,I)}function ui({schema:$,self:I}){if(typeof $=="boolean")return!$;for(let U in $)if(I.RULES.all[U])return!0;return!1}function xi($){return typeof $.schema!="boolean"}function QT0($,I){let{schema:U,gen:Y,opts:J}=$;if(J.$comment&&U.$comment)bi($);HT0($),GT0($);let Q=Y.const("_errs",p0.default.errors);fi($,Q),Y.var(I,y0._`${Q} === ${p0.default.errors}`)}function ki($){(0,q5.checkUnknownRules)($),KT0($)}function fi($,I){if($.opts.jtd)return Si($,[],!1,I);let U=(0,Ci.getSchemaTypes)($.schema),Y=(0,Ci.coerceAndCheckDataType)($,U);Si($,U,!Y,I)}function KT0($){let{schema:I,errSchemaPath:U,opts:Y,self:J}=$;if(I.$ref&&Y.ignoreKeywordsWithRef&&(0,q5.schemaHasRulesButRef)(I,J.RULES))J.logger.warn(`$ref: keywords ignored in schema at path "${U}"`)}function qT0($){let{schema:I,opts:U}=$;if(I.default!==void 0&&U.useDefaults&&U.strictSchema)(0,q5.checkStrictMode)($,"default is ignored in the schema root")}function HT0($){let I=$.schema[$.opts.schemaId];if(I)$.baseId=(0,sP0.resolveUrl)($.opts.uriResolver,$.baseId,I)}function GT0($){if($.schema.$async&&!$.schemaEnv.$async)throw Error("async schema in sync schema")}function bi({gen:$,schemaEnv:I,schema:U,errSchemaPath:Y,opts:J}){let Q=U.$comment;if(J.$comment===!0)$.code(y0._`${p0.default.self}.logger.log(${Q})`);else if(typeof J.$comment=="function"){let K=y0.str`${Y}/$comment`,q=$.scopeValue("root",{ref:I.root});$.code(y0._`${p0.default.self}.opts.$comment(${Q}, ${K}, ${q}.schema)`)}}function WT0($){let{gen:I,schemaEnv:U,validateName:Y,ValidationError:J,opts:Q}=$;if(U.$async)I.if(y0._`${p0.default.errors} === 0`,()=>I.return(p0.default.data),()=>I.throw(y0._`new ${J}(${p0.default.vErrors})`));else{if(I.assign(y0._`${Y}.errors`,p0.default.vErrors),Q.unevaluated)wT0($);I.return(y0._`${p0.default.errors} === 0`)}}function wT0({gen:$,evaluated:I,props:U,items:Y}){if(U instanceof y0.Name)$.assign(y0._`${I}.props`,U);if(Y instanceof y0.Name)$.assign(y0._`${I}.items`,Y)}function Si($,I,U,Y){let{gen:J,schema:Q,data:K,allErrors:q,opts:H,self:G}=$,{RULES:W}=G;if(Q.$ref&&(H.ignoreKeywordsWithRef||!(0,q5.schemaHasRulesButRef)(Q,W))){J.block(()=>ni($,"$ref",W.all.$ref.definition));return}if(!H.jtd)VT0($,I);J.block(()=>{for(let Z of W.rules)w(Z);w(W.post)});function w(Z){if(!(0,xT.shouldUseGroup)(Q,Z))return;if(Z.type){if(J.if((0,$w.checkDataType)(Z.type,K,H.strictNumbers)),gi($,Z),I.length===1&&I[0]===Z.type&&U)J.else(),(0,$w.reportTypeError)($);J.endIf()}else gi($,Z);if(!q)J.if(y0._`${p0.default.errors} === ${Y||0}`)}}function gi($,I){let{gen:U,schema:Y,opts:{useDefaults:J}}=$;if(J)(0,aP0.assignDefaults)($,I.type);U.block(()=>{for(let Q of I.rules)if((0,xT.shouldUseRule)(Y,Q))ni($,Q.keyword,Q.definition,I.type)})}function VT0($,I){if($.schemaEnv.meta||!$.opts.strictTypes)return;if(ZT0($,I),!$.opts.allowUnionTypes)zT0($,I);XT0($,$.dataTypes)}function ZT0($,I){if(!I.length)return;if(!$.dataTypes.length){$.dataTypes=I;return}I.forEach((U)=>{if(!ii($.dataTypes,U))kT($,`type "${U}" not allowed by context "${$.dataTypes.join(",")}"`)}),DT0($,I)}function zT0($,I){if(I.length>1&&!(I.length===2&&I.includes("null")))kT($,"use allowUnionTypes to allow union type keyword")}function XT0($,I){let U=$.self.RULES.all;for(let Y in U){let J=U[Y];if(typeof J=="object"&&(0,xT.shouldUseRule)($.schema,J)){let{type:Q}=J.definition;if(Q.length&&!Q.some((K)=>LT0(I,K)))kT($,`missing type "${Q.join(",")}" for keyword "${Y}"`)}}}function LT0($,I){return $.includes(I)||I==="number"&&$.includes("integer")}function ii($,I){return $.includes(I)||I==="integer"&&$.includes("number")}function DT0($,I){let U=[];for(let Y of $.dataTypes)if(ii(I,Y))U.push(Y);else if(I.includes("integer")&&Y==="number")U.push("integer");$.dataTypes=U}function kT($,I){let U=$.schemaEnv.baseId+$.errSchemaPath;I+=` at "${U}" (strictTypes)`,(0,q5.checkStrictMode)($,I,$.opts.strictTypes)}class fT{constructor($,I,U){if((0,dQ.validateKeywordUsage)($,I,U),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=U,this.data=$.data,this.schema=$.schema[U],this.$data=I.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,q5.schemaRefOrVal)($,this.schema,U,this.$data),this.schemaType=I.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=I,this.$data)this.schemaCode=$.gen.const("vSchema",pi(this.$data,$));else if(this.schemaCode=this.schemaValue,!(0,dQ.validSchemaType)(this.schema,I.schemaType,I.allowUndefined))throw Error(`${U} value must be ${JSON.stringify(I.schemaType)}`);if("code"in I?I.trackErrors:I.errors!==!1)this.errsCount=$.gen.const("_errs",p0.default.errors)}result($,I,U){this.failResult((0,y0.not)($),I,U)}failResult($,I,U){if(this.gen.if($),U)U();else this.error();if(I){if(this.gen.else(),I(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass($,I){this.failResult((0,y0.not)($),void 0,I)}fail($){if($===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if($),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data($){if(!this.$data)return this.fail($);let{schemaCode:I}=this;this.fail(y0._`${I} !== undefined && (${(0,y0.or)(this.invalid$data(),$)})`)}error($,I,U){if(I){this.setParams(I),this._error($,U),this.setParams({});return}this._error($,U)}_error($,I){($?cQ.reportExtraError:cQ.reportError)(this,this.def.error,I)}$dataError(){(0,cQ.reportError)(this,this.def.$dataError||cQ.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,cQ.resetErrorsCount)(this.gen,this.errsCount)}ok($){if(!this.allErrors)this.gen.if($)}setParams($,I){if(I)Object.assign(this.params,$);else this.params=$}block$data($,I,U=y0.nil){this.gen.block(()=>{this.check$data($,U),I()})}check$data($=y0.nil,I=y0.nil){if(!this.$data)return;let{gen:U,schemaCode:Y,schemaType:J,def:Q}=this;if(U.if((0,y0.or)(y0._`${Y} === undefined`,I)),$!==y0.nil)U.assign($,!0);if(J.length||Q.validateSchema){if(U.elseIf(this.invalid$data()),this.$dataError(),$!==y0.nil)U.assign($,!1)}U.else()}invalid$data(){let{gen:$,schemaCode:I,schemaType:U,def:Y,it:J}=this;return(0,y0.or)(Q(),K());function Q(){if(U.length){if(!(I instanceof y0.Name))throw Error("ajv implementation error");let q=Array.isArray(U)?U:[U];return y0._`${(0,$w.checkDataTypes)(q,I,J.opts.strictNumbers,$w.DataType.Wrong)}`}return y0.nil}function K(){if(Y.validateSchema){let q=$.scopeValue("validate$data",{ref:Y.validateSchema});return y0._`!${q}(${I})`}return y0.nil}}subschema($,I){let U=(0,uT.getSubschema)(this.it,$);(0,uT.extendSubschemaData)(U,this.it,$),(0,uT.extendSubschemaMode)(U,$);let Y={...this.it,...U,items:void 0,props:void 0};return JT0(Y,I),Y}mergeEvaluated($,I){let{it:U,gen:Y}=this;if(!U.opts.unevaluated)return;if(U.props!==!0&&$.props!==void 0)U.props=q5.mergeEvaluated.props(Y,$.props,U.props,I);if(U.items!==!0&&$.items!==void 0)U.items=q5.mergeEvaluated.items(Y,$.items,U.items,I)}mergeValidEvaluated($,I){let{it:U,gen:Y}=this;if(U.opts.unevaluated&&(U.props!==!0||U.items!==!0))return Y.if(I,()=>this.mergeEvaluated($,y0.Name)),!0}}ci.KeywordCxt=fT;function ni($,I,U,Y){let J=new fT($,U,I);if("code"in U)U.code(J,Y);else if(J.$data&&U.validate)(0,dQ.funcKeywordCode)(J,U);else if("macro"in U)(0,dQ.macroKeywordCode)(J,U);else if(U.compile||U.validate)(0,dQ.funcKeywordCode)(J,U)}var OT0=/^\/(?:[^~]|~0|~1)*$/,FT0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function pi($,{dataLevel:I,dataNames:U,dataPathArr:Y}){let J,Q;if($==="")return p0.default.rootData;if($[0]==="/"){if(!OT0.test($))throw Error(`Invalid JSON-pointer: ${$}`);J=$,Q=p0.default.rootData}else{let G=FT0.exec($);if(!G)throw Error(`Invalid JSON-pointer: ${$}`);let W=+G[1];if(J=G[2],J==="#"){if(W>=I)throw Error(H("property/index",W));return Y[I-W]}if(W>I)throw Error(H("data",W));if(Q=U[I-W],!J)return Q}let K=Q,q=J.split("/");for(let G of q)if(G)Q=y0._`${Q}${(0,y0.getProperty)((0,q5.unescapeJsonPointer)(G))}`,K=y0._`${K} && ${Q}`;return K;function H(G,W){return`Cannot access ${G} ${W} levels up, current level is ${I}`}}ci.getData=pi});var Iw=O((li)=>{Object.defineProperty(li,"__esModule",{value:!0});class mi extends Error{constructor($){super("validation failed");this.errors=$,this.ajv=this.validation=!0}}li.default=mi});var lQ=O((ri)=>{Object.defineProperty(ri,"__esModule",{value:!0});var bT=pQ();class oi extends Error{constructor($,I,U,Y){super(Y||`can't resolve reference ${U} from id ${I}`);this.missingRef=(0,bT.resolveUrl)($,I,U),this.missingSchema=(0,bT.normalizeId)((0,bT.getFullPath)($,this.missingRef))}}ri.default=oi});var Yw=O((si)=>{Object.defineProperty(si,"__esModule",{value:!0});si.resolveSchema=si.getCompilingSchema=si.resolveRef=si.compileSchema=si.SchemaEnv=void 0;var r$=a0(),TT0=Iw(),f7=K5(),t$=pQ(),ti=z1(),ET0=mQ();class oQ{constructor($){var I;this.refs={},this.dynamicAnchors={};let U;if(typeof $.schema=="object")U=$.schema;this.schema=$.schema,this.schemaId=$.schemaId,this.root=$.root||this,this.baseId=(I=$.baseId)!==null&&I!==void 0?I:(0,t$.normalizeId)(U===null||U===void 0?void 0:U[$.schemaId||"$id"]),this.schemaPath=$.schemaPath,this.localRefs=$.localRefs,this.meta=$.meta,this.$async=U===null||U===void 0?void 0:U.$async,this.refs={}}}si.SchemaEnv=oQ;function nT($){let I=ai.call(this,$);if(I)return I;let U=(0,t$.getFullPath)(this.opts.uriResolver,$.root.baseId),{es5:Y,lines:J}=this.opts.code,{ownProperties:Q}=this.opts,K=new r$.CodeGen(this.scope,{es5:Y,lines:J,ownProperties:Q}),q;if($.$async)q=K.scopeValue("Error",{ref:TT0.default,code:r$._`require("ajv/dist/runtime/validation_error").default`});let H=K.scopeName("validate");$.validateName=H;let G={gen:K,allErrors:this.opts.allErrors,data:f7.default.data,parentData:f7.default.parentData,parentDataProperty:f7.default.parentDataProperty,dataNames:[f7.default.data],dataPathArr:[r$.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:K.scopeValue("schema",this.opts.code.source===!0?{ref:$.schema,code:(0,r$.stringify)($.schema)}:{ref:$.schema}),validateName:H,ValidationError:q,schema:$.schema,schemaEnv:$,rootId:U,baseId:$.baseId||U,schemaPath:r$.nil,errSchemaPath:$.schemaPath||(this.opts.jtd?"":"#"),errorPath:r$._`""`,opts:this.opts,self:this},W;try{this._compilations.add($),(0,ET0.validateFunctionCode)(G),K.optimize(this.opts.code.optimize);let w=K.toString();if(W=`${K.scopeRefs(f7.default.scope)}return ${w}`,this.opts.code.process)W=this.opts.code.process(W,$);let V=Function(`${f7.default.self}`,`${f7.default.scope}`,W)(this,this.scope.get());if(this.scope.value(H,{ref:V}),V.errors=null,V.schema=$.schema,V.schemaEnv=$,$.$async)V.$async=!0;if(this.opts.code.source===!0)V.source={validateName:H,validateCode:w,scopeValues:K._values};if(this.opts.unevaluated){let{props:X,items:L}=G;if(V.evaluated={props:X instanceof r$.Name?void 0:X,items:L instanceof r$.Name?void 0:L,dynamicProps:X instanceof r$.Name,dynamicItems:L instanceof r$.Name},V.source)V.source.evaluated=(0,r$.stringify)(V.evaluated)}return $.validate=V,$}catch(w){if(delete $.validate,delete $.validateName,W)this.logger.error("Error compiling schema, function code:",W);throw w}finally{this._compilations.delete($)}}si.compileSchema=nT;function BT0($,I,U){var Y;U=(0,t$.resolveUrl)(this.opts.uriResolver,I,U);let J=$.refs[U];if(J)return J;let Q=jT0.call(this,$,U);if(Q===void 0){let K=(Y=$.localRefs)===null||Y===void 0?void 0:Y[U],{schemaId:q}=this.opts;if(K)Q=new oQ({schema:K,schemaId:q,root:$,baseId:I})}if(Q===void 0)return;return $.refs[U]=vT0.call(this,Q)}si.resolveRef=BT0;function vT0($){if((0,t$.inlineRef)($.schema,this.opts.inlineRefs))return $.schema;return $.validate?$:nT.call(this,$)}function ai($){for(let I of this._compilations)if(RT0(I,$))return I}si.getCompilingSchema=ai;function RT0($,I){return $.schema===I.schema&&$.root===I.root&&$.baseId===I.baseId}function jT0($,I){let U;while(typeof(U=this.refs[I])=="string")I=U;return U||this.schemas[I]||Uw.call(this,$,I)}function Uw($,I){let U=this.opts.uriResolver.parse(I),Y=(0,t$._getFullPath)(this.opts.uriResolver,U),J=(0,t$.getFullPath)(this.opts.uriResolver,$.baseId,void 0);if(Object.keys($.schema).length>0&&Y===J)return iT.call(this,U,$);let Q=(0,t$.normalizeId)(Y),K=this.refs[Q]||this.schemas[Q];if(typeof K=="string"){let q=Uw.call(this,$,K);if(typeof(q===null||q===void 0?void 0:q.schema)!=="object")return;return iT.call(this,U,q)}if(typeof(K===null||K===void 0?void 0:K.schema)!=="object")return;if(!K.validate)nT.call(this,K);if(Q===(0,t$.normalizeId)(I)){let{schema:q}=K,{schemaId:H}=this.opts,G=q[H];if(G)J=(0,t$.resolveUrl)(this.opts.uriResolver,J,G);return new oQ({schema:q,schemaId:H,root:$,baseId:J})}return iT.call(this,U,K)}si.resolveSchema=Uw;var CT0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function iT($,{baseId:I,schema:U,root:Y}){var J;if(((J=$.fragment)===null||J===void 0?void 0:J[0])!=="/")return;for(let q of $.fragment.slice(1).split("/")){if(typeof U==="boolean")return;let H=U[(0,ti.unescapeFragment)(q)];if(H===void 0)return;U=H;let G=typeof U==="object"&&U[this.opts.schemaId];if(!CT0.has(q)&&G)I=(0,t$.resolveUrl)(this.opts.uriResolver,I,G)}let Q;if(typeof U!="boolean"&&U.$ref&&!(0,ti.schemaHasRulesButRef)(U,this.RULES)){let q=(0,t$.resolveUrl)(this.opts.uriResolver,I,U.$ref);Q=Uw.call(this,Y,q)}let{schemaId:K}=this.opts;if(Q=Q||new oQ({schema:U,schemaId:K,root:Y,baseId:I}),Q.schema!==Q.root.schema)return Q;return}});var $n=O((KO1,hT0)=>{hT0.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var dT=O((qO1,Kn)=>{var uT0=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Un=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),pT=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Yn=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),xT0=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function cT($){let I="",U=0,Y=0;for(Y=0;Y<$.length;Y++){if(U=$[Y].charCodeAt(0),U===48)continue;if(!(U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102))return"";I+=$[Y];break}for(Y+=1;Y<$.length;Y++){if(U=$[Y].charCodeAt(0),!(U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102))return"";I+=$[Y]}return I}var kT0=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function In($){return $.length=0,!0}function fT0($,I,U){if($.length){let Y=cT($);if(Y!=="")I.push(Y);else return U.error=!0,!1;$.length=0}return!0}function bT0($){let I=0,U={error:!1,address:"",zone:""},Y=[],J=[],Q=!1,K=!1,q=fT0;for(let H=0;H<$.length;H++){let G=$[H];if(G==="["||G==="]")continue;if(G===":"){if(Q===!0)K=!0;if(!q(J,Y,U))break;if(++I>7){U.error=!0;break}if(H>0&&$[H-1]===":")Q=!0;Y.push(":");continue}else if(G==="%"){if(!q(J,Y,U))break;q=In}else{J.push(G);continue}}if(J.length)if(q===In)U.zone=J.join("");else if(K)Y.push(J.join(""));else Y.push(cT(J));return U.address=Y.join(""),U}function Jn($){if(iT0($,":")<2)return{host:$,isIPV6:!1};let I=bT0($);if(!I.error){let{address:U,address:Y}=I;if(I.zone)U+="%"+I.zone,Y+="%25"+I.zone;return{host:U,isIPV6:!0,escapedHost:Y}}else return{host:$,isIPV6:!1}}function iT0($,I){let U=0;for(let Y=0;Y<$.length;Y++)if($[Y]===I)U++;return U}function nT0($){let I=$,U=[],Y=-1,J=0;while(J=I.length){if(J===1)if(I===".")break;else if(I==="/"){U.push("/");break}else{U.push(I);break}else if(J===2){if(I[0]==="."){if(I[1]===".")break;else if(I[1]==="/"){I=I.slice(2);continue}}else if(I[0]==="/"){if(I[1]==="."||I[1]==="/"){U.push("/");break}}}else if(J===3){if(I==="/.."){if(U.length!==0)U.pop();U.push("/");break}}if(I[0]==="."){if(I[1]==="."){if(I[2]==="/"){I=I.slice(3);continue}}else if(I[1]==="/"){I=I.slice(2);continue}}else if(I[0]==="/"){if(I[1]==="."){if(I[2]==="/"){I=I.slice(2);continue}else if(I[2]==="."){if(I[3]==="/"){if(I=I.slice(3),U.length!==0)U.pop();continue}}}}if((Y=I.indexOf("/",1))===-1){U.push(I);break}else U.push(I.slice(0,Y)),I=I.slice(Y)}return U.join("")}var pT0={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},cT0=/[@/?#:]/g,dT0=/[@/?#]/g;function Qn($,I){let U=I?dT0:cT0;return U.lastIndex=0,$.replace(U,(Y)=>pT0[Y])}function mT0($,I=!1){if($.indexOf("%")===-1)return $;let U="";for(let Y=0;Y<$.length;Y++){if($[Y]==="%"&&Y+2<$.length){let J=$.slice(Y+1,Y+3);if(pT(J)){let Q=J.toUpperCase(),K=String.fromCharCode(parseInt(Q,16));if(I&&Yn(K))U+=K;else U+="%"+Q;Y+=2;continue}}U+=$[Y]}return U}function lT0($){let I="";for(let U=0;U<$.length;U++){if($[U]==="%"&&U+2<$.length){let Y=$.slice(U+1,U+3);if(pT(Y)){let J=Y.toUpperCase(),Q=String.fromCharCode(parseInt(J,16));if(Q!=="."&&Yn(Q))I+=Q;else I+="%"+J;U+=2;continue}}if(xT0($[U]))I+=$[U];else I+=escape($[U])}return I}function oT0($){let I="";for(let U=0;U<$.length;U++){if($[U]==="%"&&U+2<$.length){let Y=$.slice(U+1,U+3);if(pT(Y)){I+="%"+Y.toUpperCase(),U+=2;continue}}I+=escape($[U])}return I}function rT0($){let I=[];if($.userinfo!==void 0)I.push($.userinfo),I.push("@");if($.host!==void 0){let U=unescape($.host);if(!Un(U)){let Y=Jn(U);if(Y.isIPV6===!0)U=`[${Y.escapedHost}]`;else U=Qn(U,!1)}I.push(U)}if(typeof $.port==="number"||typeof $.port==="string")I.push(":"),I.push(String($.port));return I.length?I.join(""):void 0}Kn.exports={nonSimpleDomain:kT0,recomposeAuthority:rT0,reescapeHostDelimiters:Qn,normalizePercentEncoding:mT0,normalizePathEncoding:lT0,escapePreservingEscapes:oT0,removeDotSegments:nT0,isIPv4:Un,isUUID:uT0,normalizeIPv6:Jn,stringArrayToHexStripped:cT}});var wn=O((HO1,Wn)=>{var{isUUID:tT0}=dT(),aT0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,sT0=["http","https","ws","wss","urn","urn:uuid"];function eT0($){return sT0.indexOf($)!==-1}function mT($){if($.secure===!0)return!0;else if($.secure===!1)return!1;else if($.scheme)return $.scheme.length===3&&($.scheme[0]==="w"||$.scheme[0]==="W")&&($.scheme[1]==="s"||$.scheme[1]==="S")&&($.scheme[2]==="s"||$.scheme[2]==="S");else return!1}function qn($){if(!$.host)$.error=$.error||"HTTP URIs must have a host.";return $}function Hn($){let I=String($.scheme).toLowerCase()==="https";if($.port===(I?443:80)||$.port==="")$.port=void 0;if(!$.path)$.path="/";return $}function $E0($){return $.secure=mT($),$.resourceName=($.path||"/")+($.query?"?"+$.query:""),$.path=void 0,$.query=void 0,$}function IE0($){if($.port===(mT($)?443:80)||$.port==="")$.port=void 0;if(typeof $.secure==="boolean")$.scheme=$.secure?"wss":"ws",$.secure=void 0;if($.resourceName){let[I,U]=$.resourceName.split("?");$.path=I&&I!=="/"?I:void 0,$.query=U,$.resourceName=void 0}return $.fragment=void 0,$}function UE0($,I){if(!$.path)return $.error="URN can not be parsed",$;let U=$.path.match(aT0);if(U){let Y=I.scheme||$.scheme||"urn";$.nid=U[1].toLowerCase(),$.nss=U[2];let J=`${Y}:${I.nid||$.nid}`,Q=lT(J);if($.path=void 0,Q)$=Q.parse($,I)}else $.error=$.error||"URN can not be parsed.";return $}function YE0($,I){if($.nid===void 0)throw Error("URN without nid cannot be serialized");let U=I.scheme||$.scheme||"urn",Y=$.nid.toLowerCase(),J=`${U}:${I.nid||Y}`,Q=lT(J);if(Q)$=Q.serialize($,I);let K=$,q=$.nss;return K.path=`${Y||I.nid}:${q}`,I.skipEscape=!0,K}function JE0($,I){let U=$;if(U.uuid=U.nss,U.nss=void 0,!I.tolerant&&(!U.uuid||!tT0(U.uuid)))U.error=U.error||"UUID is not valid.";return U}function QE0($){let I=$;return I.nss=($.uuid||"").toLowerCase(),I}var Gn={scheme:"http",domainHost:!0,parse:qn,serialize:Hn},KE0={scheme:"https",domainHost:Gn.domainHost,parse:qn,serialize:Hn},Jw={scheme:"ws",domainHost:!0,parse:$E0,serialize:IE0},qE0={scheme:"wss",domainHost:Jw.domainHost,parse:Jw.parse,serialize:Jw.serialize},HE0={scheme:"urn",parse:UE0,serialize:YE0,skipNormalize:!0},GE0={scheme:"urn:uuid",parse:JE0,serialize:QE0,skipNormalize:!0},Qw={http:Gn,https:KE0,ws:Jw,wss:qE0,urn:HE0,"urn:uuid":GE0};Object.setPrototypeOf(Qw,null);function lT($){return $&&(Qw[$]||Qw[$.toLowerCase()])||void 0}Wn.exports={wsIsSecure:mT,SCHEMES:Qw,isValidSchemeName:eT0,getSchemeHandler:lT}});var Dn=O((GO1,Kw)=>{var{normalizeIPv6:WE0,removeDotSegments:rQ,recomposeAuthority:wE0,normalizePercentEncoding:VE0,normalizePathEncoding:ZE0,escapePreservingEscapes:zE0,reescapeHostDelimiters:XE0,isIPv4:LE0,nonSimpleDomain:DE0}=dT(),{SCHEMES:OE0,getSchemeHandler:Zn}=wn();function FE0($,I){if(typeof $==="string")$=TE0($,I);else if(typeof $==="object")$=GU(b7($,I),I);return $}function NE0($,I,U){let Y=U?Object.assign({scheme:"null"},U):{scheme:"null"},J=zn(GU($,Y),GU(I,Y),Y,!0);return Y.skipEscape=!0,b7(J,Y)}function zn($,I,U,Y){let J={};if(!Y)$=GU(b7($,U),U),I=GU(b7(I,U),U);if(U=U||{},!U.tolerant&&I.scheme)J.scheme=I.scheme,J.userinfo=I.userinfo,J.host=I.host,J.port=I.port,J.path=rQ(I.path||""),J.query=I.query;else{if(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0)J.userinfo=I.userinfo,J.host=I.host,J.port=I.port,J.path=rQ(I.path||""),J.query=I.query;else{if(!I.path)if(J.path=$.path,I.query!==void 0)J.query=I.query;else J.query=$.query;else{if(I.path[0]==="/")J.path=rQ(I.path);else{if(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path)J.path="/"+I.path;else if(!$.path)J.path=I.path;else J.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+I.path;J.path=rQ(J.path)}J.query=I.query}J.userinfo=$.userinfo,J.host=$.host,J.port=$.port}J.scheme=$.scheme}return J.fragment=I.fragment,J}function ME0($,I,U){let Y=Vn($,U),J=Vn(I,U);return Y!==void 0&&J!==void 0&&Y.toLowerCase()===J.toLowerCase()}function b7($,I){let U={host:$.host,scheme:$.scheme,userinfo:$.userinfo,port:$.port,path:$.path,query:$.query,nid:$.nid,nss:$.nss,uuid:$.uuid,fragment:$.fragment,reference:$.reference,resourceName:$.resourceName,secure:$.secure,error:""},Y=Object.assign({},I),J=[],Q=Zn(Y.scheme||U.scheme);if(Q&&Q.serialize)Q.serialize(U,Y);if(U.path!==void 0)if(!Y.skipEscape){if(U.path=zE0(U.path),U.scheme!==void 0)U.path=U.path.split("%3A").join(":")}else U.path=VE0(U.path);if(Y.reference!=="suffix"&&U.scheme)J.push(U.scheme,":");let K=wE0(U);if(K!==void 0){if(Y.reference!=="suffix")J.push("//");if(J.push(K),U.path&&U.path[0]!=="/")J.push("/")}if(U.path!==void 0){let q=U.path;if(!Y.absolutePath&&(!Q||!Q.absolutePath))q=rQ(q);if(K===void 0&&q[0]==="/"&&q[1]==="/")q="/%2F"+q.slice(2);J.push(q)}if(U.query!==void 0)J.push("?",U.query);if(U.fragment!==void 0)J.push("#",U.fragment);return J.join("")}var AE0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function PE0($,I){if(I[2]!==void 0&&$.path&&$.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof $.port==="number"&&($.port<0||$.port>65535))return"URI port is malformed.";return}function Xn($,I){let U=Object.assign({},I),Y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},J=!1,Q=!1;if(U.reference==="suffix")if(U.scheme)$=U.scheme+":"+$;else $="//"+$;let K=$.match(AE0);if(K){if(Y.scheme=K[1],Y.userinfo=K[3],Y.host=K[4],Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=K[7],Y.fragment=K[8],isNaN(Y.port))Y.port=K[5];let q=PE0(Y,K);if(q!==void 0)Y.error=Y.error||q,J=!0;if(Y.host)if(LE0(Y.host)===!1){let W=WE0(Y.host);Y.host=W.host.toLowerCase(),Q=W.isIPV6}else Q=!0;if(Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&Y.query===void 0&&!Y.path)Y.reference="same-document";else if(Y.scheme===void 0)Y.reference="relative";else if(Y.fragment===void 0)Y.reference="absolute";else Y.reference="uri";if(U.reference&&U.reference!=="suffix"&&U.reference!==Y.reference)Y.error=Y.error||"URI is not a "+U.reference+" reference.";let H=Zn(U.scheme||Y.scheme);if(!U.unicodeSupport&&(!H||!H.unicodeSupport)){if(Y.host&&(U.domainHost||H&&H.domainHost)&&Q===!1&&DE0(Y.host))try{Y.host=URL.domainToASCII(Y.host.toLowerCase())}catch(G){Y.error=Y.error||"Host's domain name can not be converted to ASCII: "+G}}if(!H||H&&!H.skipNormalize){if($.indexOf("%")!==-1){if(Y.scheme!==void 0)Y.scheme=unescape(Y.scheme);if(Y.host!==void 0)Y.host=XE0(unescape(Y.host),Q)}if(Y.path)Y.path=ZE0(Y.path);if(Y.fragment)try{Y.fragment=encodeURI(decodeURIComponent(Y.fragment))}catch{Y.error=Y.error||"URI malformed"}}if(H&&H.parse)H.parse(Y,U)}else Y.error=Y.error||"URI can not be parsed.";return{parsed:Y,malformedAuthorityOrPort:J}}function GU($,I){return Xn($,I).parsed}function TE0($,I){return Ln($,I).normalized}function Ln($,I){let{parsed:U,malformedAuthorityOrPort:Y}=Xn($,I);return{normalized:Y?$:b7(U,I),malformedAuthorityOrPort:Y}}function Vn($,I){if(typeof $==="string"){let{normalized:U,malformedAuthorityOrPort:Y}=Ln($,I);return Y?void 0:U}if(typeof $==="object")return b7($,I)}var oT={SCHEMES:OE0,normalize:FE0,resolve:NE0,resolveComponent:zn,equal:ME0,serialize:b7,parse:GU};Kw.exports=oT;Kw.exports.default=oT;Kw.exports.fastUri=oT});var Nn=O((Fn)=>{Object.defineProperty(Fn,"__esModule",{value:!0});var On=Dn();On.code='require("ajv/dist/runtime/uri").default';Fn.default=On});var Rn=O((H5)=>{Object.defineProperty(H5,"__esModule",{value:!0});H5.CodeGen=H5.Name=H5.nil=H5.stringify=H5.str=H5._=H5.KeywordCxt=void 0;var BE0=mQ();Object.defineProperty(H5,"KeywordCxt",{enumerable:!0,get:function(){return BE0.KeywordCxt}});var WU=a0();Object.defineProperty(H5,"_",{enumerable:!0,get:function(){return WU._}});Object.defineProperty(H5,"str",{enumerable:!0,get:function(){return WU.str}});Object.defineProperty(H5,"stringify",{enumerable:!0,get:function(){return WU.stringify}});Object.defineProperty(H5,"nil",{enumerable:!0,get:function(){return WU.nil}});Object.defineProperty(H5,"Name",{enumerable:!0,get:function(){return WU.Name}});Object.defineProperty(H5,"CodeGen",{enumerable:!0,get:function(){return WU.CodeGen}});var vE0=Iw(),En=lQ(),RE0=BT(),tQ=Yw(),jE0=a0(),aQ=pQ(),qw=nQ(),tT=z1(),Mn=$n(),CE0=Nn(),Bn=($,I)=>new RegExp($,I);Bn.code="new RegExp";var _E0=["removeAdditional","useDefaults","coerceTypes"],SE0=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),gE0={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},yE0={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},An=200;function hE0($){var I,U,Y,J,Q,K,q,H,G,W,w,Z,V,X,L,D,F,P,E,A,R,k,y,f,j;let p=$.strict,n=(I=$.code)===null||I===void 0?void 0:I.optimize,S=n===!0||n===void 0?1:n||0,b=(Y=(U=$.code)===null||U===void 0?void 0:U.regExp)!==null&&Y!==void 0?Y:Bn,i=(J=$.uriResolver)!==null&&J!==void 0?J:CE0.default;return{strictSchema:(K=(Q=$.strictSchema)!==null&&Q!==void 0?Q:p)!==null&&K!==void 0?K:!0,strictNumbers:(H=(q=$.strictNumbers)!==null&&q!==void 0?q:p)!==null&&H!==void 0?H:!0,strictTypes:(W=(G=$.strictTypes)!==null&&G!==void 0?G:p)!==null&&W!==void 0?W:"log",strictTuples:(Z=(w=$.strictTuples)!==null&&w!==void 0?w:p)!==null&&Z!==void 0?Z:"log",strictRequired:(X=(V=$.strictRequired)!==null&&V!==void 0?V:p)!==null&&X!==void 0?X:!1,code:$.code?{...$.code,optimize:S,regExp:b}:{optimize:S,regExp:b},loopRequired:(L=$.loopRequired)!==null&&L!==void 0?L:An,loopEnum:(D=$.loopEnum)!==null&&D!==void 0?D:An,meta:(F=$.meta)!==null&&F!==void 0?F:!0,messages:(P=$.messages)!==null&&P!==void 0?P:!0,inlineRefs:(E=$.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(A=$.schemaId)!==null&&A!==void 0?A:"$id",addUsedSchema:(R=$.addUsedSchema)!==null&&R!==void 0?R:!0,validateSchema:(k=$.validateSchema)!==null&&k!==void 0?k:!0,validateFormats:(y=$.validateFormats)!==null&&y!==void 0?y:!0,unicodeRegExp:(f=$.unicodeRegExp)!==null&&f!==void 0?f:!0,int32range:(j=$.int32range)!==null&&j!==void 0?j:!0,uriResolver:i}}class Hw{constructor($={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,$=this.opts={...$,...hE0($)};let{es5:I,lines:U}=this.opts.code;this.scope=new jE0.ValueScope({scope:{},prefixes:SE0,es5:I,lines:U}),this.logger=iE0($.logger);let Y=$.validateFormats;if($.validateFormats=!1,this.RULES=(0,RE0.getRules)(),Pn.call(this,gE0,$,"NOT SUPPORTED"),Pn.call(this,yE0,$,"DEPRECATED","warn"),this._metaOpts=fE0.call(this),$.formats)xE0.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),$.keywords)kE0.call(this,$.keywords);if(typeof $.meta=="object")this.addMetaSchema($.meta);uE0.call(this),$.validateFormats=Y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:$,meta:I,schemaId:U}=this.opts,Y=Mn;if(U==="id")Y={...Mn},Y.id=Y.$id,delete Y.$id;if(I&&$)this.addMetaSchema(Y,Y[U],!1)}defaultMeta(){let{meta:$,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof $=="object"?$[I]||$:void 0}validate($,I){let U;if(typeof $=="string"){if(U=this.getSchema($),!U)throw Error(`no schema with key or ref "${$}"`)}else U=this.compile($);let Y=U(I);if(!("$async"in U))this.errors=U.errors;return Y}compile($,I){let U=this._addSchema($,I);return U.validate||this._compileSchemaEnv(U)}compileAsync($,I){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:U}=this.opts;return Y.call(this,$,I);async function Y(G,W){await J.call(this,G.$schema);let w=this._addSchema(G,W);return w.validate||Q.call(this,w)}async function J(G){if(G&&!this.getSchema(G))await Y.call(this,{$ref:G},!0)}async function Q(G){try{return this._compileSchemaEnv(G)}catch(W){if(!(W instanceof En.default))throw W;return K.call(this,W),await q.call(this,W.missingSchema),Q.call(this,G)}}function K({missingSchema:G,missingRef:W}){if(this.refs[G])throw Error(`AnySchema ${G} is loaded but ${W} cannot be resolved`)}async function q(G){let W=await H.call(this,G);if(!this.refs[G])await J.call(this,W.$schema);if(!this.refs[G])this.addSchema(W,G,I)}async function H(G){let W=this._loading[G];if(W)return W;try{return await(this._loading[G]=U(G))}finally{delete this._loading[G]}}}addSchema($,I,U,Y=this.opts.validateSchema){if(Array.isArray($)){for(let Q of $)this.addSchema(Q,void 0,U,Y);return this}let J;if(typeof $==="object"){let{schemaId:Q}=this.opts;if(J=$[Q],J!==void 0&&typeof J!="string")throw Error(`schema ${Q} must be string`)}return I=(0,aQ.normalizeId)(I||J),this._checkUnique(I),this.schemas[I]=this._addSchema($,U,I,Y,!0),this}addMetaSchema($,I,U=this.opts.validateSchema){return this.addSchema($,I,!0,U),this}validateSchema($,I){if(typeof $=="boolean")return!0;let U;if(U=$.$schema,U!==void 0&&typeof U!="string")throw Error("$schema must be a string");if(U=U||this.opts.defaultMeta||this.defaultMeta(),!U)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let Y=this.validate(U,$);if(!Y&&I){let J="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(J);else throw Error(J)}return Y}getSchema($){let I;while(typeof(I=Tn.call(this,$))=="string")$=I;if(I===void 0){let{schemaId:U}=this.opts,Y=new tQ.SchemaEnv({schema:{},schemaId:U});if(I=tQ.resolveSchema.call(this,Y,$),!I)return;this.refs[$]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema($){if($ instanceof RegExp)return this._removeAllSchemas(this.schemas,$),this._removeAllSchemas(this.refs,$),this;switch(typeof $){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let I=Tn.call(this,$);if(typeof I=="object")this._cache.delete(I.schema);return delete this.schemas[$],delete this.refs[$],this}case"object":{let I=$;this._cache.delete(I);let U=$[this.opts.schemaId];if(U)U=(0,aQ.normalizeId)(U),delete this.schemas[U],delete this.refs[U];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary($){for(let I of $)this.addKeyword(I);return this}addKeyword($,I){let U;if(typeof $=="string"){if(U=$,typeof I=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=U}else if(typeof $=="object"&&I===void 0){if(I=$,U=I.keyword,Array.isArray(U)&&!U.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(pE0.call(this,U,I),!I)return(0,tT.eachItem)(U,(J)=>rT.call(this,J)),this;dE0.call(this,I);let Y={...I,type:(0,qw.getJSONTypes)(I.type),schemaType:(0,qw.getJSONTypes)(I.schemaType)};return(0,tT.eachItem)(U,Y.type.length===0?(J)=>rT.call(this,J,Y):(J)=>Y.type.forEach((Q)=>rT.call(this,J,Y,Q))),this}getKeyword($){let I=this.RULES.all[$];return typeof I=="object"?I.definition:!!I}removeKeyword($){let{RULES:I}=this;delete I.keywords[$],delete I.all[$];for(let U of I.rules){let Y=U.rules.findIndex((J)=>J.keyword===$);if(Y>=0)U.rules.splice(Y,1)}return this}addFormat($,I){if(typeof I=="string")I=new RegExp(I);return this.formats[$]=I,this}errorsText($=this.errors,{separator:I=", ",dataVar:U="data"}={}){if(!$||$.length===0)return"No errors";return $.map((Y)=>`${U}${Y.instancePath} ${Y.message}`).reduce((Y,J)=>Y+I+J)}$dataMetaSchema($,I){let U=this.RULES.all;$=JSON.parse(JSON.stringify($));for(let Y of I){let J=Y.split("/").slice(1),Q=$;for(let K of J)Q=Q[K];for(let K in U){let q=U[K];if(typeof q!="object")continue;let{$data:H}=q.definition,G=Q[K];if(H&&G)Q[K]=vn(G)}}return $}_removeAllSchemas($,I){for(let U in $){let Y=$[U];if(!I||I.test(U)){if(typeof Y=="string")delete $[U];else if(Y&&!Y.meta)this._cache.delete(Y.schema),delete $[U]}}}_addSchema($,I,U,Y=this.opts.validateSchema,J=this.opts.addUsedSchema){let Q,{schemaId:K}=this.opts;if(typeof $=="object")Q=$[K];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof $!="boolean")throw Error("schema must be object or boolean");let q=this._cache.get($);if(q!==void 0)return q;U=(0,aQ.normalizeId)(Q||U);let H=aQ.getSchemaRefs.call(this,$,U);if(q=new tQ.SchemaEnv({schema:$,schemaId:K,meta:I,baseId:U,localRefs:H}),this._cache.set(q.schema,q),J&&!U.startsWith("#")){if(U)this._checkUnique(U);this.refs[U]=q}if(Y)this.validateSchema($,!0);return q}_checkUnique($){if(this.schemas[$]||this.refs[$])throw Error(`schema with key or id "${$}" already exists`)}_compileSchemaEnv($){if($.meta)this._compileMetaSchema($);else tQ.compileSchema.call(this,$);if(!$.validate)throw Error("ajv implementation error");return $.validate}_compileMetaSchema($){let I=this.opts;this.opts=this._metaOpts;try{tQ.compileSchema.call(this,$)}finally{this.opts=I}}}Hw.ValidationError=vE0.default;Hw.MissingRefError=En.default;H5.default=Hw;function Pn($,I,U,Y="error"){for(let J in $){let Q=J;if(Q in I)this.logger[Y](`${U}: option ${J}. ${$[Q]}`)}}function Tn($){return $=(0,aQ.normalizeId)($),this.schemas[$]||this.refs[$]}function uE0(){let $=this.opts.schemas;if(!$)return;if(Array.isArray($))this.addSchema($);else for(let I in $)this.addSchema($[I],I)}function xE0(){for(let $ in this.opts.formats){let I=this.opts.formats[$];if(I)this.addFormat($,I)}}function kE0($){if(Array.isArray($)){this.addVocabulary($);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let I in $){let U=$[I];if(!U.keyword)U.keyword=I;this.addKeyword(U)}}function fE0(){let $={...this.opts};for(let I of _E0)delete $[I];return $}var bE0={log(){},warn(){},error(){}};function iE0($){if($===!1)return bE0;if($===void 0)return console;if($.log&&$.warn&&$.error)return $;throw Error("logger must implement log, warn and error methods")}var nE0=/^[a-z_$][a-z0-9_$:-]*$/i;function pE0($,I){let{RULES:U}=this;if((0,tT.eachItem)($,(Y)=>{if(U.keywords[Y])throw Error(`Keyword ${Y} is already defined`);if(!nE0.test(Y))throw Error(`Keyword ${Y} has invalid name`)}),!I)return;if(I.$data&&!(("code"in I)||("validate"in I)))throw Error('$data keyword must have "code" or "validate" function')}function rT($,I,U){var Y;let J=I===null||I===void 0?void 0:I.post;if(U&&J)throw Error('keyword with "post" flag cannot have "type"');let{RULES:Q}=this,K=J?Q.post:Q.rules.find(({type:H})=>H===U);if(!K)K={type:U,rules:[]},Q.rules.push(K);if(Q.keywords[$]=!0,!I)return;let q={keyword:$,definition:{...I,type:(0,qw.getJSONTypes)(I.type),schemaType:(0,qw.getJSONTypes)(I.schemaType)}};if(I.before)cE0.call(this,K,q,I.before);else K.rules.push(q);Q.all[$]=q,(Y=I.implements)===null||Y===void 0||Y.forEach((H)=>this.addKeyword(H))}function cE0($,I,U){let Y=$.rules.findIndex((J)=>J.keyword===U);if(Y>=0)$.rules.splice(Y,0,I);else $.rules.push(I),this.logger.warn(`rule ${U} is not defined`)}function dE0($){let{metaSchema:I}=$;if(I===void 0)return;if($.$data&&this.opts.$data)I=vn(I);$.validateSchema=this.compile(I,!0)}var mE0={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function vn($){return{anyOf:[$,mE0]}}});var Cn=O((jn)=>{Object.defineProperty(jn,"__esModule",{value:!0});var rE0={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};jn.default=rE0});var un=O((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.callRef=yn.getValidate=void 0;var aE0=lQ(),_n=E$(),m6=a0(),wU=K5(),Sn=Yw(),Gw=z1(),sE0={keyword:"$ref",schemaType:"string",code($){let{gen:I,schema:U,it:Y}=$,{baseId:J,schemaEnv:Q,validateName:K,opts:q,self:H}=Y,{root:G}=Q;if((U==="#"||U==="#/")&&J===G.baseId)return w();let W=Sn.resolveRef.call(H,G,J,U);if(W===void 0)throw new aE0.default(Y.opts.uriResolver,J,U);if(W instanceof Sn.SchemaEnv)return Z(W);return V(W);function w(){if(Q===G)return Ww($,K,Q,Q.$async);let X=I.scopeValue("root",{ref:G});return Ww($,m6._`${X}.validate`,G,G.$async)}function Z(X){let L=gn($,X);Ww($,L,X,X.$async)}function V(X){let L=I.scopeValue("schema",q.code.source===!0?{ref:X,code:(0,m6.stringify)(X)}:{ref:X}),D=I.name("valid"),F=$.subschema({schema:X,dataTypes:[],schemaPath:m6.nil,topSchemaRef:L,errSchemaPath:U},D);$.mergeEvaluated(F),$.ok(D)}}};function gn($,I){let{gen:U}=$;return I.validate?U.scopeValue("validate",{ref:I.validate}):m6._`${U.scopeValue("wrapper",{ref:I})}.validate`}yn.getValidate=gn;function Ww($,I,U,Y){let{gen:J,it:Q}=$,{allErrors:K,schemaEnv:q,opts:H}=Q,G=H.passContext?wU.default.this:m6.nil;if(Y)W();else w();function W(){if(!q.$async)throw Error("async schema referenced by sync schema");let X=J.let("valid");J.try(()=>{if(J.code(m6._`await ${(0,_n.callValidateCode)($,I,G)}`),V(I),!K)J.assign(X,!0)},(L)=>{if(J.if(m6._`!(${L} instanceof ${Q.ValidationError})`,()=>J.throw(L)),Z(L),!K)J.assign(X,!1)}),$.ok(X)}function w(){$.result((0,_n.callValidateCode)($,I,G),()=>V(I),()=>Z(I))}function Z(X){let L=m6._`${X}.errors`;J.assign(wU.default.vErrors,m6._`${wU.default.vErrors} === null ? ${L} : ${wU.default.vErrors}.concat(${L})`),J.assign(wU.default.errors,m6._`${wU.default.vErrors}.length`)}function V(X){var L;if(!Q.opts.unevaluated)return;let D=(L=U===null||U===void 0?void 0:U.validate)===null||L===void 0?void 0:L.evaluated;if(Q.props!==!0)if(D&&!D.dynamicProps){if(D.props!==void 0)Q.props=Gw.mergeEvaluated.props(J,D.props,Q.props)}else{let F=J.var("props",m6._`${X}.evaluated.props`);Q.props=Gw.mergeEvaluated.props(J,F,Q.props,m6.Name)}if(Q.items!==!0)if(D&&!D.dynamicItems){if(D.items!==void 0)Q.items=Gw.mergeEvaluated.items(J,D.items,Q.items)}else{let F=J.var("items",m6._`${X}.evaluated.items`);Q.items=Gw.mergeEvaluated.items(J,F,Q.items,m6.Name)}}}yn.callRef=Ww;yn.default=sE0});var kn=O((xn)=>{Object.defineProperty(xn,"__esModule",{value:!0});var IB0=Cn(),UB0=un(),YB0=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",IB0.default,UB0.default];xn.default=YB0});var bn=O((fn)=>{Object.defineProperty(fn,"__esModule",{value:!0});var ww=a0(),D9=ww.operators,Vw={maximum:{okStr:"<=",ok:D9.LTE,fail:D9.GT},minimum:{okStr:">=",ok:D9.GTE,fail:D9.LT},exclusiveMaximum:{okStr:"<",ok:D9.LT,fail:D9.GTE},exclusiveMinimum:{okStr:">",ok:D9.GT,fail:D9.LTE}},QB0={message:({keyword:$,schemaCode:I})=>ww.str`must be ${Vw[$].okStr} ${I}`,params:({keyword:$,schemaCode:I})=>ww._`{comparison: ${Vw[$].okStr}, limit: ${I}}`},KB0={keyword:Object.keys(Vw),type:"number",schemaType:"number",$data:!0,error:QB0,code($){let{keyword:I,data:U,schemaCode:Y}=$;$.fail$data(ww._`${U} ${Vw[I].fail} ${Y} || isNaN(${U})`)}};fn.default=KB0});var pn=O((nn)=>{Object.defineProperty(nn,"__esModule",{value:!0});var sQ=a0(),HB0={message:({schemaCode:$})=>sQ.str`must be multiple of ${$}`,params:({schemaCode:$})=>sQ._`{multipleOf: ${$}}`},GB0={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:HB0,code($){let{gen:I,data:U,schemaCode:Y,it:J}=$,Q=J.opts.multipleOfPrecision,K=I.let("res"),q=Q?sQ._`Math.abs(Math.round(${K}) - ${K}) > 1e-${Q}`:sQ._`${K} !== parseInt(${K})`;$.fail$data(sQ._`(${Y} === 0 || (${K} = ${U}/${Y}, ${q}))`)}};nn.default=GB0});var mn=O((dn)=>{Object.defineProperty(dn,"__esModule",{value:!0});function cn($){let I=$.length,U=0,Y=0,J;while(Y=55296&&J<=56319&&Y{Object.defineProperty(ln,"__esModule",{value:!0});var i7=a0(),VB0=z1(),ZB0=mn(),zB0={message({keyword:$,schemaCode:I}){let U=$==="maxLength"?"more":"fewer";return i7.str`must NOT have ${U} than ${I} characters`},params:({schemaCode:$})=>i7._`{limit: ${$}}`},XB0={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zB0,code($){let{keyword:I,data:U,schemaCode:Y,it:J}=$,Q=I==="maxLength"?i7.operators.GT:i7.operators.LT,K=J.opts.unicode===!1?i7._`${U}.length`:i7._`${(0,VB0.useFunc)($.gen,ZB0.default)}(${U})`;$.fail$data(i7._`${K} ${Q} ${Y}`)}};ln.default=XB0});var tn=O((rn)=>{Object.defineProperty(rn,"__esModule",{value:!0});var DB0=E$(),OB0=z1(),VU=a0(),FB0={message:({schemaCode:$})=>VU.str`must match pattern "${$}"`,params:({schemaCode:$})=>VU._`{pattern: ${$}}`},NB0={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:FB0,code($){let{gen:I,data:U,$data:Y,schema:J,schemaCode:Q,it:K}=$,q=K.opts.unicodeRegExp?"u":"";if(Y){let{regExp:H}=K.opts.code,G=H.code==="new RegExp"?VU._`new RegExp`:(0,OB0.useFunc)(I,H),W=I.let("valid");I.try(()=>I.assign(W,VU._`${G}(${Q}, ${q}).test(${U})`),()=>I.assign(W,!1)),$.fail$data(VU._`!${W}`)}else{let H=(0,DB0.usePattern)($,J);$.fail$data(VU._`!${H}.test(${U})`)}}};rn.default=NB0});var sn=O((an)=>{Object.defineProperty(an,"__esModule",{value:!0});var eQ=a0(),AB0={message({keyword:$,schemaCode:I}){let U=$==="maxProperties"?"more":"fewer";return eQ.str`must NOT have ${U} than ${I} properties`},params:({schemaCode:$})=>eQ._`{limit: ${$}}`},PB0={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:AB0,code($){let{keyword:I,data:U,schemaCode:Y}=$,J=I==="maxProperties"?eQ.operators.GT:eQ.operators.LT;$.fail$data(eQ._`Object.keys(${U}).length ${J} ${Y}`)}};an.default=PB0});var $p=O((en)=>{Object.defineProperty(en,"__esModule",{value:!0});var $2=E$(),I2=a0(),EB0=z1(),BB0={message:({params:{missingProperty:$}})=>I2.str`must have required property '${$}'`,params:({params:{missingProperty:$}})=>I2._`{missingProperty: ${$}}`},vB0={keyword:"required",type:"object",schemaType:"array",$data:!0,error:BB0,code($){let{gen:I,schema:U,schemaCode:Y,data:J,$data:Q,it:K}=$,{opts:q}=K;if(!Q&&U.length===0)return;let H=U.length>=q.loopRequired;if(K.allErrors)G();else W();if(q.strictRequired){let V=$.parentSchema.properties,{definedProperties:X}=$.it;for(let L of U)if((V===null||V===void 0?void 0:V[L])===void 0&&!X.has(L)){let D=K.schemaEnv.baseId+K.errSchemaPath,F=`required property "${L}" is not defined at "${D}" (strictRequired)`;(0,EB0.checkStrictMode)(K,F,K.opts.strictRequired)}}function G(){if(H||Q)$.block$data(I2.nil,w);else for(let V of U)(0,$2.checkReportMissingProp)($,V)}function W(){let V=I.let("missing");if(H||Q){let X=I.let("valid",!0);$.block$data(X,()=>Z(V,X)),$.ok(X)}else I.if((0,$2.checkMissingProp)($,U,V)),(0,$2.reportMissingProp)($,V),I.else()}function w(){I.forOf("prop",Y,(V)=>{$.setParams({missingProperty:V}),I.if((0,$2.noPropertyInData)(I,J,V,q.ownProperties),()=>$.error())})}function Z(V,X){$.setParams({missingProperty:V}),I.forOf(V,Y,()=>{I.assign(X,(0,$2.propertyInData)(I,J,V,q.ownProperties)),I.if((0,I2.not)(X),()=>{$.error(),I.break()})},I2.nil)}}};en.default=vB0});var Up=O((Ip)=>{Object.defineProperty(Ip,"__esModule",{value:!0});var U2=a0(),jB0={message({keyword:$,schemaCode:I}){let U=$==="maxItems"?"more":"fewer";return U2.str`must NOT have ${U} than ${I} items`},params:({schemaCode:$})=>U2._`{limit: ${$}}`},CB0={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jB0,code($){let{keyword:I,data:U,schemaCode:Y}=$,J=I==="maxItems"?U2.operators.GT:U2.operators.LT;$.fail$data(U2._`${U}.length ${J} ${Y}`)}};Ip.default=CB0});var Zw=O((Jp)=>{Object.defineProperty(Jp,"__esModule",{value:!0});var Yp=yT();Yp.code='require("ajv/dist/runtime/equal").default';Jp.default=Yp});var Kp=O((Qp)=>{Object.defineProperty(Qp,"__esModule",{value:!0});var aT=nQ(),e4=a0(),gB0=z1(),yB0=Zw(),hB0={message:({params:{i:$,j:I}})=>e4.str`must NOT have duplicate items (items ## ${I} and ${$} are identical)`,params:({params:{i:$,j:I}})=>e4._`{i: ${$}, j: ${I}}`},uB0={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:hB0,code($){let{gen:I,data:U,$data:Y,schema:J,parentSchema:Q,schemaCode:K,it:q}=$;if(!Y&&!J)return;let H=I.let("valid"),G=Q.items?(0,aT.getSchemaTypes)(Q.items):[];$.block$data(H,W,e4._`${K} === false`),$.ok(H);function W(){let X=I.let("i",e4._`${U}.length`),L=I.let("j");$.setParams({i:X,j:L}),I.assign(H,!0),I.if(e4._`${X} > 1`,()=>(w()?Z:V)(X,L))}function w(){return G.length>0&&!G.some((X)=>X==="object"||X==="array")}function Z(X,L){let D=I.name("item"),F=(0,aT.checkDataTypes)(G,D,q.opts.strictNumbers,aT.DataType.Wrong),P=I.const("indices",e4._`{}`);I.for(e4._`;${X}--;`,()=>{if(I.let(D,e4._`${U}[${X}]`),I.if(F,e4._`continue`),G.length>1)I.if(e4._`typeof ${D} == "string"`,e4._`${D} += "_"`);I.if(e4._`typeof ${P}[${D}] == "number"`,()=>{I.assign(L,e4._`${P}[${D}]`),$.error(),I.assign(H,!1).break()}).code(e4._`${P}[${D}] = ${X}`)})}function V(X,L){let D=(0,gB0.useFunc)(I,yB0.default),F=I.name("outer");I.label(F).for(e4._`;${X}--;`,()=>I.for(e4._`${L} = ${X}; ${L}--;`,()=>I.if(e4._`${D}(${U}[${X}], ${U}[${L}])`,()=>{$.error(),I.assign(H,!1).break(F)})))}}};Qp.default=uB0});var Hp=O((qp)=>{Object.defineProperty(qp,"__esModule",{value:!0});var sT=a0(),kB0=z1(),fB0=Zw(),bB0={message:"must be equal to constant",params:({schemaCode:$})=>sT._`{allowedValue: ${$}}`},iB0={keyword:"const",$data:!0,error:bB0,code($){let{gen:I,data:U,$data:Y,schemaCode:J,schema:Q}=$;if(Y||Q&&typeof Q=="object")$.fail$data(sT._`!${(0,kB0.useFunc)(I,fB0.default)}(${U}, ${J})`);else $.fail(sT._`${Q} !== ${U}`)}};qp.default=iB0});var Wp=O((Gp)=>{Object.defineProperty(Gp,"__esModule",{value:!0});var Y2=a0(),pB0=z1(),cB0=Zw(),dB0={message:"must be equal to one of the allowed values",params:({schemaCode:$})=>Y2._`{allowedValues: ${$}}`},mB0={keyword:"enum",schemaType:"array",$data:!0,error:dB0,code($){let{gen:I,data:U,$data:Y,schema:J,schemaCode:Q,it:K}=$;if(!Y&&J.length===0)throw Error("enum must have non-empty array");let q=J.length>=K.opts.loopEnum,H,G=()=>H!==null&&H!==void 0?H:H=(0,pB0.useFunc)(I,cB0.default),W;if(q||Y)W=I.let("valid"),$.block$data(W,w);else{if(!Array.isArray(J))throw Error("ajv implementation error");let V=I.const("vSchema",Q);W=(0,Y2.or)(...J.map((X,L)=>Z(V,L)))}$.pass(W);function w(){I.assign(W,!1),I.forOf("v",Q,(V)=>I.if(Y2._`${G()}(${U}, ${V})`,()=>I.assign(W,!0).break()))}function Z(V,X){let L=J[X];return typeof L==="object"&&L!==null?Y2._`${G()}(${U}, ${V}[${X}])`:Y2._`${U} === ${L}`}}};Gp.default=mB0});var Vp=O((wp)=>{Object.defineProperty(wp,"__esModule",{value:!0});var oB0=bn(),rB0=pn(),tB0=on(),aB0=tn(),sB0=sn(),eB0=$p(),$v0=Up(),Iv0=Kp(),Uv0=Hp(),Yv0=Wp(),Jv0=[oB0.default,rB0.default,tB0.default,aB0.default,sB0.default,eB0.default,$v0.default,Iv0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Uv0.default,Yv0.default];wp.default=Jv0});var $E=O((zp)=>{Object.defineProperty(zp,"__esModule",{value:!0});zp.validateAdditionalItems=void 0;var n7=a0(),eT=z1(),Kv0={message:({params:{len:$}})=>n7.str`must NOT have more than ${$} items`,params:({params:{len:$}})=>n7._`{limit: ${$}}`},qv0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Kv0,code($){let{parentSchema:I,it:U}=$,{items:Y}=I;if(!Array.isArray(Y)){(0,eT.checkStrictMode)(U,'"additionalItems" is ignored when "items" is not an array of schemas');return}Zp($,Y)}};function Zp($,I){let{gen:U,schema:Y,data:J,keyword:Q,it:K}=$;K.items=!0;let q=U.const("len",n7._`${J}.length`);if(Y===!1)$.setParams({len:I.length}),$.pass(n7._`${q} <= ${I.length}`);else if(typeof Y=="object"&&!(0,eT.alwaysValidSchema)(K,Y)){let G=U.var("valid",n7._`${q} <= ${I.length}`);U.if((0,n7.not)(G),()=>H(G)),$.ok(G)}function H(G){U.forRange("i",I.length,q,(W)=>{if($.subschema({keyword:Q,dataProp:W,dataPropType:eT.Type.Num},G),!K.allErrors)U.if((0,n7.not)(G),()=>U.break())})}}zp.validateAdditionalItems=Zp;zp.default=qv0});var IE=O((Op)=>{Object.defineProperty(Op,"__esModule",{value:!0});Op.validateTuple=void 0;var Lp=a0(),zw=z1(),Gv0=E$(),Wv0={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code($){let{schema:I,it:U}=$;if(Array.isArray(I))return Dp($,"additionalItems",I);if(U.items=!0,(0,zw.alwaysValidSchema)(U,I))return;$.ok((0,Gv0.validateArray)($))}};function Dp($,I,U=$.schema){let{gen:Y,parentSchema:J,data:Q,keyword:K,it:q}=$;if(W(J),q.opts.unevaluated&&U.length&&q.items!==!0)q.items=zw.mergeEvaluated.items(Y,U.length,q.items);let H=Y.name("valid"),G=Y.const("len",Lp._`${Q}.length`);U.forEach((w,Z)=>{if((0,zw.alwaysValidSchema)(q,w))return;Y.if(Lp._`${G} > ${Z}`,()=>$.subschema({keyword:K,schemaProp:Z,dataProp:Z},H)),$.ok(H)});function W(w){let{opts:Z,errSchemaPath:V}=q,X=U.length,L=X===w.minItems&&(X===w.maxItems||w[I]===!1);if(Z.strictTuples&&!L){let D=`"${K}" is ${X}-tuple, but minItems or maxItems/${I} are not specified or different at path "${V}"`;(0,zw.checkStrictMode)(q,D,Z.strictTuples)}}}Op.validateTuple=Dp;Op.default=Wv0});var Mp=O((Np)=>{Object.defineProperty(Np,"__esModule",{value:!0});var Vv0=IE(),Zv0={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:($)=>(0,Vv0.validateTuple)($,"items")};Np.default=Zv0});var Tp=O((Pp)=>{Object.defineProperty(Pp,"__esModule",{value:!0});var Ap=a0(),Xv0=z1(),Lv0=E$(),Dv0=$E(),Ov0={message:({params:{len:$}})=>Ap.str`must NOT have more than ${$} items`,params:({params:{len:$}})=>Ap._`{limit: ${$}}`},Fv0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Ov0,code($){let{schema:I,parentSchema:U,it:Y}=$,{prefixItems:J}=U;if(Y.items=!0,(0,Xv0.alwaysValidSchema)(Y,I))return;if(J)(0,Dv0.validateAdditionalItems)($,J);else $.ok((0,Lv0.validateArray)($))}};Pp.default=Fv0});var Bp=O((Ep)=>{Object.defineProperty(Ep,"__esModule",{value:!0});var B$=a0(),Xw=z1(),Mv0={message:({params:{min:$,max:I}})=>I===void 0?B$.str`must contain at least ${$} valid item(s)`:B$.str`must contain at least ${$} and no more than ${I} valid item(s)`,params:({params:{min:$,max:I}})=>I===void 0?B$._`{minContains: ${$}}`:B$._`{minContains: ${$}, maxContains: ${I}}`},Av0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Mv0,code($){let{gen:I,schema:U,parentSchema:Y,data:J,it:Q}=$,K,q,{minContains:H,maxContains:G}=Y;if(Q.opts.next)K=H===void 0?1:H,q=G;else K=1;let W=I.const("len",B$._`${J}.length`);if($.setParams({min:K,max:q}),q===void 0&&K===0){(0,Xw.checkStrictMode)(Q,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(q!==void 0&&K>q){(0,Xw.checkStrictMode)(Q,'"minContains" > "maxContains" is always invalid'),$.fail();return}if((0,Xw.alwaysValidSchema)(Q,U)){let L=B$._`${W} >= ${K}`;if(q!==void 0)L=B$._`${L} && ${W} <= ${q}`;$.pass(L);return}Q.items=!0;let w=I.name("valid");if(q===void 0&&K===1)V(w,()=>I.if(w,()=>I.break()));else if(K===0){if(I.let(w,!0),q!==void 0)I.if(B$._`${J}.length > 0`,Z)}else I.let(w,!1),Z();$.result(w,()=>$.reset());function Z(){let L=I.name("_valid"),D=I.let("count",0);V(L,()=>I.if(L,()=>X(D)))}function V(L,D){I.forRange("i",0,W,(F)=>{$.subschema({keyword:"contains",dataProp:F,dataPropType:Xw.Type.Num,compositeRule:!0},L),D()})}function X(L){if(I.code(B$._`${L}++`),q===void 0)I.if(B$._`${L} >= ${K}`,()=>I.assign(w,!0).break());else if(I.if(B$._`${L} > ${q}`,()=>I.assign(w,!1).break()),K===1)I.assign(w,!0);else I.if(B$._`${L} >= ${K}`,()=>I.assign(w,!0))}}};Ep.default=Av0});var Sp=O((jp)=>{Object.defineProperty(jp,"__esModule",{value:!0});jp.validateSchemaDeps=jp.validatePropertyDeps=jp.error=void 0;var UE=a0(),Tv0=z1(),J2=E$();jp.error={message:({params:{property:$,depsCount:I,deps:U}})=>{let Y=I===1?"property":"properties";return UE.str`must have ${Y} ${U} when property ${$} is present`},params:({params:{property:$,depsCount:I,deps:U,missingProperty:Y}})=>UE._`{property: ${$}, + || ${K} === "boolean" || ${J} === null`).assign(q,t0._`[${J}]`)}}}function fA0({gen:$,parentData:I,parentDataProperty:U},Y){$.if(t0._`${I} !== undefined`,()=>$.assign(t0._`${I}[${U}]`,Y))}function jT($,I,U,Y=KU.Correct){let J=Y===KU.Correct?t0.operators.EQ:t0.operators.NEQ,Q;switch($){case"null":return t0._`${I} ${J} null`;case"array":Q=t0._`Array.isArray(${I})`;break;case"object":Q=t0._`${I} && typeof ${I} == "object" && !Array.isArray(${I})`;break;case"integer":Q=K(t0._`!(${I} % 1) && !isNaN(${I})`);break;case"number":Q=K();break;default:return t0._`typeof ${I} ${J} ${$}`}return Y===KU.Correct?Q:(0,t0.not)(Q);function K(q=t0.nil){return(0,t0.and)(t0._`typeof ${I} == "number"`,q,U?t0._`isFinite(${I})`:t0.nil)}}Qb.checkDataType=jT;function CT($,I,U,Y){if($.length===1)return jT($[0],I,U,Y);let J,Q=(0,Ub.toHash)($);if(Q.array&&Q.object){let K=t0._`typeof ${I} != "object"`;J=Q.null?K:t0._`!${I} || ${K}`,delete Q.null,delete Q.array,delete Q.object}else J=t0.nil;if(Q.number)delete Q.integer;for(let K in Q)J=(0,t0.and)(J,jT(K,I,U,Y));return J}Qb.checkDataTypes=CT;var iA0={message:({schema:$})=>`must be ${$}`,params:({schema:$,schemaValue:I})=>typeof $=="string"?t0._`{type: ${$}}`:t0._`{type: ${I}}`};function _T($){let I=bA0($);(0,yA0.reportError)(I,iA0)}Qb.reportTypeError=_T;function bA0($){let{gen:I,data:U,schema:Y}=$,J=(0,Ub.schemaRefOrVal)($,Y,"type");return{gen:I,keyword:"type",data:U,schema:Y.type,schemaCode:J,schemaValue:J,parentSchema:Y,params:{},it:$}}});var Wb=O((Hb)=>{Object.defineProperty(Hb,"__esModule",{value:!0});Hb.assignDefaults=void 0;var qU=a0(),oA0=z1();function rA0($,I){let{properties:U,items:Y}=$.schema;if(I==="object"&&U)for(let J in U)qb($,J,U[J].default);else if(I==="array"&&Array.isArray(Y))Y.forEach((J,Q)=>qb($,Q,J.default))}Hb.assignDefaults=rA0;function qb($,I,U){let{gen:Y,compositeRule:J,data:Q,opts:K}=$;if(U===void 0)return;let q=qU._`${Q}${(0,qU.getProperty)(I)}`;if(J){(0,oA0.checkStrictMode)($,`default is ignored for: ${q}`);return}let H=qU._`${q} === undefined`;if(K.useDefaults==="empty")H=qU._`${H} || ${q} === null || ${q} === ""`;Y.if(H,qU._`${q} = ${(0,qU.stringify)(U)}`)}});var B$=O((Zb)=>{Object.defineProperty(Zb,"__esModule",{value:!0});Zb.validateUnion=Zb.validateArray=Zb.usePattern=Zb.callValidateCode=Zb.schemaProperties=Zb.allSchemaProperties=Zb.noPropertyInData=Zb.propertyInData=Zb.isOwnProperty=Zb.hasPropFunc=Zb.reportMissingProp=Zb.checkMissingProp=Zb.checkReportMissingProp=void 0;var a1=a0(),ST=z1(),X9=K5(),tA0=z1();function aA0($,I){let{gen:U,data:Y,it:J}=$;U.if(yT(U,Y,I,J.opts.ownProperties),()=>{$.setParams({missingProperty:a1._`${I}`},!0),$.error()})}Zb.checkReportMissingProp=aA0;function sA0({gen:$,data:I,it:{opts:U}},Y,J){return(0,a1.or)(...Y.map((Q)=>(0,a1.and)(yT($,I,Q,U.ownProperties),a1._`${J} = ${Q}`)))}Zb.checkMissingProp=sA0;function eA0($,I){$.setParams({missingProperty:I},!0),$.error()}Zb.reportMissingProp=eA0;function wb($){return $.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:a1._`Object.prototype.hasOwnProperty`})}Zb.hasPropFunc=wb;function gT($,I,U){return a1._`${wb($)}.call(${I}, ${U})`}Zb.isOwnProperty=gT;function $P0($,I,U,Y){let J=a1._`${I}${(0,a1.getProperty)(U)} !== undefined`;return Y?a1._`${J} && ${gT($,I,U)}`:J}Zb.propertyInData=$P0;function yT($,I,U,Y){let J=a1._`${I}${(0,a1.getProperty)(U)} === undefined`;return Y?(0,a1.or)(J,(0,a1.not)(gT($,I,U))):J}Zb.noPropertyInData=yT;function Vb($){return $?Object.keys($).filter((I)=>I!=="__proto__"):[]}Zb.allSchemaProperties=Vb;function IP0($,I){return Vb(I).filter((U)=>!(0,ST.alwaysValidSchema)($,I[U]))}Zb.schemaProperties=IP0;function UP0({schemaCode:$,data:I,it:{gen:U,topSchemaRef:Y,schemaPath:J,errorPath:Q},it:K},q,H,G){let W=G?a1._`${$}, ${I}, ${Y}${J}`:I,w=[[X9.default.instancePath,(0,a1.strConcat)(X9.default.instancePath,Q)],[X9.default.parentData,K.parentData],[X9.default.parentDataProperty,K.parentDataProperty],[X9.default.rootData,X9.default.rootData]];if(K.opts.dynamicRef)w.push([X9.default.dynamicAnchors,X9.default.dynamicAnchors]);let Z=a1._`${W}, ${U.object(...w)}`;return H!==a1.nil?a1._`${q}.call(${H}, ${Z})`:a1._`${q}(${Z})`}Zb.callValidateCode=UP0;var YP0=a1._`new RegExp`;function JP0({gen:$,it:{opts:I}},U){let Y=I.unicodeRegExp?"u":"",{regExp:J}=I.code,Q=J(U,Y);return $.scopeValue("pattern",{key:Q.toString(),ref:Q,code:a1._`${J.code==="new RegExp"?YP0:(0,tA0.useFunc)($,J)}(${U}, ${Y})`})}Zb.usePattern=JP0;function QP0($){let{gen:I,data:U,keyword:Y,it:J}=$,Q=I.name("valid");if(J.allErrors){let q=I.let("valid",!0);return K(()=>I.assign(q,!1)),q}return I.var(Q,!0),K(()=>I.break()),Q;function K(q){let H=I.const("len",a1._`${U}.length`);I.forRange("i",0,H,(G)=>{$.subschema({keyword:Y,dataProp:G,dataPropType:ST.Type.Num},Q),I.if((0,a1.not)(Q),q)})}}Zb.validateArray=QP0;function KP0($){let{gen:I,schema:U,keyword:Y,it:J}=$;if(!Array.isArray(U))throw Error("ajv implementation error");if(U.some((H)=>(0,ST.alwaysValidSchema)(J,H))&&!J.opts.unevaluated)return;let K=I.let("valid",!1),q=I.name("_valid");I.block(()=>U.forEach((H,G)=>{let W=$.subschema({keyword:Y,schemaProp:G,compositeRule:!0},q);if(I.assign(K,a1._`${K} || ${q}`),!$.mergeValidEvaluated(W,q))I.if((0,a1.not)(K))})),$.result(K,()=>$.reset(),()=>$.error(!0))}Zb.validateUnion=KP0});var Fb=O((Db)=>{Object.defineProperty(Db,"__esModule",{value:!0});Db.validateKeywordUsage=Db.validSchemaType=Db.funcKeywordCode=Db.macroKeywordCode=void 0;var j6=a0(),x7=K5(),FP0=B$(),NP0=pQ();function MP0($,I){let{gen:U,keyword:Y,schema:J,parentSchema:Q,it:K}=$,q=I.macro.call(K.self,J,Q,K),H=Lb(U,Y,q);if(K.opts.validateSchema!==!1)K.self.validateSchema(q,!0);let G=U.name("valid");$.subschema({schema:q,schemaPath:j6.nil,errSchemaPath:`${K.errSchemaPath}/${Y}`,topSchemaRef:H,compositeRule:!0},G),$.pass(G,()=>$.error(!0))}Db.macroKeywordCode=MP0;function AP0($,I){var U;let{gen:Y,keyword:J,schema:Q,parentSchema:K,$data:q,it:H}=$;TP0(H,I);let G=!q&&I.compile?I.compile.call(H.self,Q,K,H):I.validate,W=Lb(Y,J,G),w=Y.let("valid");$.block$data(w,Z),$.ok((U=I.valid)!==null&&U!==void 0?U:w);function Z(){if(I.errors===!1){if(L(),I.modifying)Xb($);D(()=>$.error())}else{let F=I.async?V():X();if(I.modifying)Xb($);D(()=>PP0($,F))}}function V(){let F=Y.let("ruleErrs",null);return Y.try(()=>L(j6._`await `),(P)=>Y.assign(w,!1).if(j6._`${P} instanceof ${H.ValidationError}`,()=>Y.assign(F,j6._`${P}.errors`),()=>Y.throw(P))),F}function X(){let F=j6._`${W}.errors`;return Y.assign(F,null),L(j6.nil),F}function L(F=I.async?j6._`await `:j6.nil){let P=H.opts.passContext?x7.default.this:x7.default.self,T=!(("compile"in I)&&!q||I.schema===!1);Y.assign(w,j6._`${F}${(0,FP0.callValidateCode)($,W,P,T)}`,I.modifying)}function D(F){var P;Y.if((0,j6.not)((P=I.valid)!==null&&P!==void 0?P:w),F)}}Db.funcKeywordCode=AP0;function Xb($){let{gen:I,data:U,it:Y}=$;I.if(Y.parentData,()=>I.assign(U,j6._`${Y.parentData}[${Y.parentDataProperty}]`))}function PP0($,I){let{gen:U}=$;U.if(j6._`Array.isArray(${I})`,()=>{U.assign(x7.default.vErrors,j6._`${x7.default.vErrors} === null ? ${I} : ${x7.default.vErrors}.concat(${I})`).assign(x7.default.errors,j6._`${x7.default.vErrors}.length`),(0,NP0.extendErrors)($)},()=>$.error())}function TP0({schemaEnv:$},I){if(I.async&&!$.$async)throw Error("async keyword in sync schema")}function Lb($,I,U){if(U===void 0)throw Error(`keyword "${I}" failed to compile`);return $.scopeValue("keyword",typeof U=="function"?{ref:U}:{ref:U,code:(0,j6.stringify)(U)})}function EP0($,I,U=!1){return!I.length||I.some((Y)=>Y==="array"?Array.isArray($):Y==="object"?$&&typeof $=="object"&&!Array.isArray($):typeof $==Y||U&&typeof $>"u")}Db.validSchemaType=EP0;function BP0({schema:$,opts:I,self:U,errSchemaPath:Y},J,Q){if(Array.isArray(J.keyword)?!J.keyword.includes(Q):J.keyword!==Q)throw Error("ajv implementation error");let K=J.dependencies;if(K===null||K===void 0?void 0:K.some((q)=>!Object.prototype.hasOwnProperty.call($,q)))throw Error(`parent schema must have dependencies of ${Q}: ${K.join(",")}`);if(J.validateSchema){if(!J.validateSchema($[Q])){let H=`keyword "${Q}" value is invalid at path "${Y}": `+U.errorsText(J.validateSchema.errors);if(I.validateSchema==="log")U.logger.error(H);else throw Error(H)}}}Db.validateKeywordUsage=BP0});var Pb=O((Mb)=>{Object.defineProperty(Mb,"__esModule",{value:!0});Mb.extendSubschemaMode=Mb.extendSubschemaData=Mb.getSubschema=void 0;var O8=a0(),Nb=z1();function CP0($,{keyword:I,schemaProp:U,schema:Y,schemaPath:J,errSchemaPath:Q,topSchemaRef:K}){if(I!==void 0&&Y!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(I!==void 0){let q=$.schema[I];return U===void 0?{schema:q,schemaPath:O8._`${$.schemaPath}${(0,O8.getProperty)(I)}`,errSchemaPath:`${$.errSchemaPath}/${I}`}:{schema:q[U],schemaPath:O8._`${$.schemaPath}${(0,O8.getProperty)(I)}${(0,O8.getProperty)(U)}`,errSchemaPath:`${$.errSchemaPath}/${I}/${(0,Nb.escapeFragment)(U)}`}}if(Y!==void 0){if(J===void 0||Q===void 0||K===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Y,schemaPath:J,topSchemaRef:K,errSchemaPath:Q}}throw Error('either "keyword" or "schema" must be passed')}Mb.getSubschema=CP0;function _P0($,I,{dataProp:U,dataPropType:Y,data:J,dataTypes:Q,propertyName:K}){if(J!==void 0&&U!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:q}=I;if(U!==void 0){let{errorPath:G,dataPathArr:W,opts:w}=I,Z=q.let("data",O8._`${I.data}${(0,O8.getProperty)(U)}`,!0);H(Z),$.errorPath=O8.str`${G}${(0,Nb.getErrorPath)(U,Y,w.jsPropertySyntax)}`,$.parentDataProperty=O8._`${U}`,$.dataPathArr=[...W,$.parentDataProperty]}if(J!==void 0){let G=J instanceof O8.Name?J:q.let("data",J,!0);if(H(G),K!==void 0)$.propertyName=K}if(Q)$.dataTypes=Q;function H(G){$.data=G,$.dataLevel=I.dataLevel+1,$.dataTypes=[],I.definedProperties=new Set,$.parentData=I.data,$.dataNames=[...I.dataNames,G]}}Mb.extendSubschemaData=_P0;function SP0($,{jtdDiscriminator:I,jtdMetadata:U,compositeRule:Y,createErrors:J,allErrors:Q}){if(Y!==void 0)$.compositeRule=Y;if(J!==void 0)$.createErrors=J;if(Q!==void 0)$.allErrors=Q;$.jtdDiscriminator=I,$.jtdMetadata=U}Mb.extendSubschemaMode=SP0});var hT=O(($O1,Tb)=>{Tb.exports=function $(I,U){if(I===U)return!0;if(I&&U&&typeof I=="object"&&typeof U=="object"){if(I.constructor!==U.constructor)return!1;var Y,J,Q;if(Array.isArray(I)){if(Y=I.length,Y!=U.length)return!1;for(J=Y;J--!==0;)if(!$(I[J],U[J]))return!1;return!0}if(I.constructor===RegExp)return I.source===U.source&&I.flags===U.flags;if(I.valueOf!==Object.prototype.valueOf)return I.valueOf()===U.valueOf();if(I.toString!==Object.prototype.toString)return I.toString()===U.toString();if(Q=Object.keys(I),Y=Q.length,Y!==Object.keys(U).length)return!1;for(J=Y;J--!==0;)if(!Object.prototype.hasOwnProperty.call(U,Q[J]))return!1;for(J=Y;J--!==0;){var K=Q[J];if(!$(I[K],U[K]))return!1}return!0}return I!==I&&U!==U}});var Bb=O((IO1,Eb)=>{var L9=Eb.exports=function($,I,U){if(typeof I=="function")U=I,I={};U=I.cb||U;var Y=typeof U=="function"?U:U.pre||function(){},J=U.post||function(){};eW(I,Y,J,$,"",$)};L9.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};L9.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};L9.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};L9.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function eW($,I,U,Y,J,Q,K,q,H,G){if(Y&&typeof Y=="object"&&!Array.isArray(Y)){I(Y,J,Q,K,q,H,G);for(var W in Y){var w=Y[W];if(Array.isArray(w)){if(W in L9.arrayKeywords)for(var Z=0;Z{Object.defineProperty(Cb,"__esModule",{value:!0});Cb.getSchemaRefs=Cb.resolveUrl=Cb.normalizeId=Cb._getFullPath=Cb.getFullPath=Cb.inlineRef=void 0;var uP0=z1(),kP0=hT(),xP0=Bb(),fP0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function iP0($,I=!0){if(typeof $=="boolean")return!0;if(I===!0)return!uT($);if(!I)return!1;return vb($)<=I}Cb.inlineRef=iP0;var bP0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function uT($){for(let I in $){if(bP0.has(I))return!0;let U=$[I];if(Array.isArray(U)&&U.some(uT))return!0;if(typeof U=="object"&&uT(U))return!0}return!1}function vb($){let I=0;for(let U in $){if(U==="$ref")return 1/0;if(I++,fP0.has(U))continue;if(typeof $[U]=="object")(0,uP0.eachItem)($[U],(Y)=>I+=vb(Y));if(I===1/0)return 1/0}return I}function Rb($,I="",U){if(U!==!1)I=HU(I);let Y=$.parse(I);return jb($,Y)}Cb.getFullPath=Rb;function jb($,I){return $.serialize(I).split("#")[0]+"#"}Cb._getFullPath=jb;var nP0=/#\/?$/;function HU($){return $?$.replace(nP0,""):""}Cb.normalizeId=HU;function pP0($,I,U){return U=HU(U),$.resolve(I,U)}Cb.resolveUrl=pP0;var cP0=/^[a-z_][-a-z0-9._]*$/i;function dP0($,I){if(typeof $=="boolean")return{};let{schemaId:U,uriResolver:Y}=this.opts,J=HU($[U]||I),Q={"":J},K=Rb(Y,J,!1),q={},H=new Set;return xP0($,{allKeys:!0},(w,Z,V,X)=>{if(X===void 0)return;let L=K+Z,D=Q[X];if(typeof w[U]=="string")D=F.call(this,w[U]);P.call(this,w.$anchor),P.call(this,w.$dynamicAnchor),Q[Z]=D;function F(T){let A=this.opts.uriResolver.resolve;if(T=HU(D?A(D,T):T),H.has(T))throw W(T);H.add(T);let R=this.refs[T];if(typeof R=="string")R=this.refs[R];if(typeof R=="object")G(w,R.schema,T);else if(T!==HU(L))if(T[0]==="#")G(w,q[T],T),q[T]=w;else this.refs[T]=L;return T}function P(T){if(typeof T=="string"){if(!cP0.test(T))throw Error(`invalid anchor "${T}"`);F.call(this,`#${T}`)}}}),q;function G(w,Z,V){if(Z!==void 0&&!kP0(w,Z))throw W(V)}function W(w){return Error(`reference "${w}" resolves to more than one schema`)}}Cb.getSchemaRefs=dP0});var oQ=O((mb)=>{Object.defineProperty(mb,"__esModule",{value:!0});mb.getData=mb.KeywordCxt=mb.validateFunctionCode=void 0;var ub=ri(),Sb=cQ(),xT=RT(),$w=cQ(),aP0=Wb(),lQ=Fb(),kT=Pb(),y0=a0(),c0=K5(),sP0=dQ(),q5=z1(),mQ=pQ();function eP0($){if(fb($)){if(ib($),xb($)){UT0($);return}}kb($,()=>(0,ub.topBoolOrEmptySchema)($))}mb.validateFunctionCode=eP0;function kb({gen:$,validateName:I,schema:U,schemaEnv:Y,opts:J},Q){if(J.code.es5)$.func(I,y0._`${c0.default.data}, ${c0.default.valCxt}`,Y.$async,()=>{$.code(y0._`"use strict"; ${gb(U,J)}`),IT0($,J),$.code(Q)});else $.func(I,y0._`${c0.default.data}, ${$T0(J)}`,Y.$async,()=>$.code(gb(U,J)).code(Q))}function $T0($){return y0._`{${c0.default.instancePath}="", ${c0.default.parentData}, ${c0.default.parentDataProperty}, ${c0.default.rootData}=${c0.default.data}${$.dynamicRef?y0._`, ${c0.default.dynamicAnchors}={}`:y0.nil}}={}`}function IT0($,I){$.if(c0.default.valCxt,()=>{if($.var(c0.default.instancePath,y0._`${c0.default.valCxt}.${c0.default.instancePath}`),$.var(c0.default.parentData,y0._`${c0.default.valCxt}.${c0.default.parentData}`),$.var(c0.default.parentDataProperty,y0._`${c0.default.valCxt}.${c0.default.parentDataProperty}`),$.var(c0.default.rootData,y0._`${c0.default.valCxt}.${c0.default.rootData}`),I.dynamicRef)$.var(c0.default.dynamicAnchors,y0._`${c0.default.valCxt}.${c0.default.dynamicAnchors}`)},()=>{if($.var(c0.default.instancePath,y0._`""`),$.var(c0.default.parentData,y0._`undefined`),$.var(c0.default.parentDataProperty,y0._`undefined`),$.var(c0.default.rootData,c0.default.data),I.dynamicRef)$.var(c0.default.dynamicAnchors,y0._`{}`)})}function UT0($){let{schema:I,opts:U,gen:Y}=$;kb($,()=>{if(U.$comment&&I.$comment)nb($);if(qT0($),Y.let(c0.default.vErrors,null),Y.let(c0.default.errors,0),U.unevaluated)YT0($);bb($),WT0($)});return}function YT0($){let{gen:I,validateName:U}=$;$.evaluated=I.const("evaluated",y0._`${U}.evaluated`),I.if(y0._`${$.evaluated}.dynamicProps`,()=>I.assign(y0._`${$.evaluated}.props`,y0._`undefined`)),I.if(y0._`${$.evaluated}.dynamicItems`,()=>I.assign(y0._`${$.evaluated}.items`,y0._`undefined`))}function gb($,I){let U=typeof $=="object"&&$[I.schemaId];return U&&(I.code.source||I.code.process)?y0._`/*# sourceURL=${U} */`:y0.nil}function JT0($,I){if(fb($)){if(ib($),xb($)){QT0($,I);return}}(0,ub.boolOrEmptySchema)($,I)}function xb({schema:$,self:I}){if(typeof $=="boolean")return!$;for(let U in $)if(I.RULES.all[U])return!0;return!1}function fb($){return typeof $.schema!="boolean"}function QT0($,I){let{schema:U,gen:Y,opts:J}=$;if(J.$comment&&U.$comment)nb($);HT0($),GT0($);let Q=Y.const("_errs",c0.default.errors);bb($,Q),Y.var(I,y0._`${Q} === ${c0.default.errors}`)}function ib($){(0,q5.checkUnknownRules)($),KT0($)}function bb($,I){if($.opts.jtd)return yb($,[],!1,I);let U=(0,Sb.getSchemaTypes)($.schema),Y=(0,Sb.coerceAndCheckDataType)($,U);yb($,U,!Y,I)}function KT0($){let{schema:I,errSchemaPath:U,opts:Y,self:J}=$;if(I.$ref&&Y.ignoreKeywordsWithRef&&(0,q5.schemaHasRulesButRef)(I,J.RULES))J.logger.warn(`$ref: keywords ignored in schema at path "${U}"`)}function qT0($){let{schema:I,opts:U}=$;if(I.default!==void 0&&U.useDefaults&&U.strictSchema)(0,q5.checkStrictMode)($,"default is ignored in the schema root")}function HT0($){let I=$.schema[$.opts.schemaId];if(I)$.baseId=(0,sP0.resolveUrl)($.opts.uriResolver,$.baseId,I)}function GT0($){if($.schema.$async&&!$.schemaEnv.$async)throw Error("async schema in sync schema")}function nb({gen:$,schemaEnv:I,schema:U,errSchemaPath:Y,opts:J}){let Q=U.$comment;if(J.$comment===!0)$.code(y0._`${c0.default.self}.logger.log(${Q})`);else if(typeof J.$comment=="function"){let K=y0.str`${Y}/$comment`,q=$.scopeValue("root",{ref:I.root});$.code(y0._`${c0.default.self}.opts.$comment(${Q}, ${K}, ${q}.schema)`)}}function WT0($){let{gen:I,schemaEnv:U,validateName:Y,ValidationError:J,opts:Q}=$;if(U.$async)I.if(y0._`${c0.default.errors} === 0`,()=>I.return(c0.default.data),()=>I.throw(y0._`new ${J}(${c0.default.vErrors})`));else{if(I.assign(y0._`${Y}.errors`,c0.default.vErrors),Q.unevaluated)wT0($);I.return(y0._`${c0.default.errors} === 0`)}}function wT0({gen:$,evaluated:I,props:U,items:Y}){if(U instanceof y0.Name)$.assign(y0._`${I}.props`,U);if(Y instanceof y0.Name)$.assign(y0._`${I}.items`,Y)}function yb($,I,U,Y){let{gen:J,schema:Q,data:K,allErrors:q,opts:H,self:G}=$,{RULES:W}=G;if(Q.$ref&&(H.ignoreKeywordsWithRef||!(0,q5.schemaHasRulesButRef)(Q,W))){J.block(()=>cb($,"$ref",W.all.$ref.definition));return}if(!H.jtd)VT0($,I);J.block(()=>{for(let Z of W.rules)w(Z);w(W.post)});function w(Z){if(!(0,xT.shouldUseGroup)(Q,Z))return;if(Z.type){if(J.if((0,$w.checkDataType)(Z.type,K,H.strictNumbers)),hb($,Z),I.length===1&&I[0]===Z.type&&U)J.else(),(0,$w.reportTypeError)($);J.endIf()}else hb($,Z);if(!q)J.if(y0._`${c0.default.errors} === ${Y||0}`)}}function hb($,I){let{gen:U,schema:Y,opts:{useDefaults:J}}=$;if(J)(0,aP0.assignDefaults)($,I.type);U.block(()=>{for(let Q of I.rules)if((0,xT.shouldUseRule)(Y,Q))cb($,Q.keyword,Q.definition,I.type)})}function VT0($,I){if($.schemaEnv.meta||!$.opts.strictTypes)return;if(ZT0($,I),!$.opts.allowUnionTypes)zT0($,I);XT0($,$.dataTypes)}function ZT0($,I){if(!I.length)return;if(!$.dataTypes.length){$.dataTypes=I;return}I.forEach((U)=>{if(!pb($.dataTypes,U))fT($,`type "${U}" not allowed by context "${$.dataTypes.join(",")}"`)}),DT0($,I)}function zT0($,I){if(I.length>1&&!(I.length===2&&I.includes("null")))fT($,"use allowUnionTypes to allow union type keyword")}function XT0($,I){let U=$.self.RULES.all;for(let Y in U){let J=U[Y];if(typeof J=="object"&&(0,xT.shouldUseRule)($.schema,J)){let{type:Q}=J.definition;if(Q.length&&!Q.some((K)=>LT0(I,K)))fT($,`missing type "${Q.join(",")}" for keyword "${Y}"`)}}}function LT0($,I){return $.includes(I)||I==="number"&&$.includes("integer")}function pb($,I){return $.includes(I)||I==="integer"&&$.includes("number")}function DT0($,I){let U=[];for(let Y of $.dataTypes)if(pb(I,Y))U.push(Y);else if(I.includes("integer")&&Y==="number")U.push("integer");$.dataTypes=U}function fT($,I){let U=$.schemaEnv.baseId+$.errSchemaPath;I+=` at "${U}" (strictTypes)`,(0,q5.checkStrictMode)($,I,$.opts.strictTypes)}class iT{constructor($,I,U){if((0,lQ.validateKeywordUsage)($,I,U),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=U,this.data=$.data,this.schema=$.schema[U],this.$data=I.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,q5.schemaRefOrVal)($,this.schema,U,this.$data),this.schemaType=I.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=I,this.$data)this.schemaCode=$.gen.const("vSchema",db(this.$data,$));else if(this.schemaCode=this.schemaValue,!(0,lQ.validSchemaType)(this.schema,I.schemaType,I.allowUndefined))throw Error(`${U} value must be ${JSON.stringify(I.schemaType)}`);if("code"in I?I.trackErrors:I.errors!==!1)this.errsCount=$.gen.const("_errs",c0.default.errors)}result($,I,U){this.failResult((0,y0.not)($),I,U)}failResult($,I,U){if(this.gen.if($),U)U();else this.error();if(I){if(this.gen.else(),I(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass($,I){this.failResult((0,y0.not)($),void 0,I)}fail($){if($===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if($),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data($){if(!this.$data)return this.fail($);let{schemaCode:I}=this;this.fail(y0._`${I} !== undefined && (${(0,y0.or)(this.invalid$data(),$)})`)}error($,I,U){if(I){this.setParams(I),this._error($,U),this.setParams({});return}this._error($,U)}_error($,I){($?mQ.reportExtraError:mQ.reportError)(this,this.def.error,I)}$dataError(){(0,mQ.reportError)(this,this.def.$dataError||mQ.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,mQ.resetErrorsCount)(this.gen,this.errsCount)}ok($){if(!this.allErrors)this.gen.if($)}setParams($,I){if(I)Object.assign(this.params,$);else this.params=$}block$data($,I,U=y0.nil){this.gen.block(()=>{this.check$data($,U),I()})}check$data($=y0.nil,I=y0.nil){if(!this.$data)return;let{gen:U,schemaCode:Y,schemaType:J,def:Q}=this;if(U.if((0,y0.or)(y0._`${Y} === undefined`,I)),$!==y0.nil)U.assign($,!0);if(J.length||Q.validateSchema){if(U.elseIf(this.invalid$data()),this.$dataError(),$!==y0.nil)U.assign($,!1)}U.else()}invalid$data(){let{gen:$,schemaCode:I,schemaType:U,def:Y,it:J}=this;return(0,y0.or)(Q(),K());function Q(){if(U.length){if(!(I instanceof y0.Name))throw Error("ajv implementation error");let q=Array.isArray(U)?U:[U];return y0._`${(0,$w.checkDataTypes)(q,I,J.opts.strictNumbers,$w.DataType.Wrong)}`}return y0.nil}function K(){if(Y.validateSchema){let q=$.scopeValue("validate$data",{ref:Y.validateSchema});return y0._`!${q}(${I})`}return y0.nil}}subschema($,I){let U=(0,kT.getSubschema)(this.it,$);(0,kT.extendSubschemaData)(U,this.it,$),(0,kT.extendSubschemaMode)(U,$);let Y={...this.it,...U,items:void 0,props:void 0};return JT0(Y,I),Y}mergeEvaluated($,I){let{it:U,gen:Y}=this;if(!U.opts.unevaluated)return;if(U.props!==!0&&$.props!==void 0)U.props=q5.mergeEvaluated.props(Y,$.props,U.props,I);if(U.items!==!0&&$.items!==void 0)U.items=q5.mergeEvaluated.items(Y,$.items,U.items,I)}mergeValidEvaluated($,I){let{it:U,gen:Y}=this;if(U.opts.unevaluated&&(U.props!==!0||U.items!==!0))return Y.if(I,()=>this.mergeEvaluated($,y0.Name)),!0}}mb.KeywordCxt=iT;function cb($,I,U,Y){let J=new iT($,U,I);if("code"in U)U.code(J,Y);else if(J.$data&&U.validate)(0,lQ.funcKeywordCode)(J,U);else if("macro"in U)(0,lQ.macroKeywordCode)(J,U);else if(U.compile||U.validate)(0,lQ.funcKeywordCode)(J,U)}var OT0=/^\/(?:[^~]|~0|~1)*$/,FT0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function db($,{dataLevel:I,dataNames:U,dataPathArr:Y}){let J,Q;if($==="")return c0.default.rootData;if($[0]==="/"){if(!OT0.test($))throw Error(`Invalid JSON-pointer: ${$}`);J=$,Q=c0.default.rootData}else{let G=FT0.exec($);if(!G)throw Error(`Invalid JSON-pointer: ${$}`);let W=+G[1];if(J=G[2],J==="#"){if(W>=I)throw Error(H("property/index",W));return Y[I-W]}if(W>I)throw Error(H("data",W));if(Q=U[I-W],!J)return Q}let K=Q,q=J.split("/");for(let G of q)if(G)Q=y0._`${Q}${(0,y0.getProperty)((0,q5.unescapeJsonPointer)(G))}`,K=y0._`${K} && ${Q}`;return K;function H(G,W){return`Cannot access ${G} ${W} levels up, current level is ${I}`}}mb.getData=db});var Iw=O((rb)=>{Object.defineProperty(rb,"__esModule",{value:!0});class ob extends Error{constructor($){super("validation failed");this.errors=$,this.ajv=this.validation=!0}}rb.default=ob});var rQ=O((ab)=>{Object.defineProperty(ab,"__esModule",{value:!0});var bT=dQ();class tb extends Error{constructor($,I,U,Y){super(Y||`can't resolve reference ${U} from id ${I}`);this.missingRef=(0,bT.resolveUrl)($,I,U),this.missingSchema=(0,bT.normalizeId)((0,bT.getFullPath)($,this.missingRef))}}ab.default=tb});var Yw=O(($n)=>{Object.defineProperty($n,"__esModule",{value:!0});$n.resolveSchema=$n.getCompilingSchema=$n.resolveRef=$n.compileSchema=$n.SchemaEnv=void 0;var r$=a0(),TT0=Iw(),f7=K5(),t$=dQ(),sb=z1(),ET0=oQ();class tQ{constructor($){var I;this.refs={},this.dynamicAnchors={};let U;if(typeof $.schema=="object")U=$.schema;this.schema=$.schema,this.schemaId=$.schemaId,this.root=$.root||this,this.baseId=(I=$.baseId)!==null&&I!==void 0?I:(0,t$.normalizeId)(U===null||U===void 0?void 0:U[$.schemaId||"$id"]),this.schemaPath=$.schemaPath,this.localRefs=$.localRefs,this.meta=$.meta,this.$async=U===null||U===void 0?void 0:U.$async,this.refs={}}}$n.SchemaEnv=tQ;function pT($){let I=eb.call(this,$);if(I)return I;let U=(0,t$.getFullPath)(this.opts.uriResolver,$.root.baseId),{es5:Y,lines:J}=this.opts.code,{ownProperties:Q}=this.opts,K=new r$.CodeGen(this.scope,{es5:Y,lines:J,ownProperties:Q}),q;if($.$async)q=K.scopeValue("Error",{ref:TT0.default,code:r$._`require("ajv/dist/runtime/validation_error").default`});let H=K.scopeName("validate");$.validateName=H;let G={gen:K,allErrors:this.opts.allErrors,data:f7.default.data,parentData:f7.default.parentData,parentDataProperty:f7.default.parentDataProperty,dataNames:[f7.default.data],dataPathArr:[r$.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:K.scopeValue("schema",this.opts.code.source===!0?{ref:$.schema,code:(0,r$.stringify)($.schema)}:{ref:$.schema}),validateName:H,ValidationError:q,schema:$.schema,schemaEnv:$,rootId:U,baseId:$.baseId||U,schemaPath:r$.nil,errSchemaPath:$.schemaPath||(this.opts.jtd?"":"#"),errorPath:r$._`""`,opts:this.opts,self:this},W;try{this._compilations.add($),(0,ET0.validateFunctionCode)(G),K.optimize(this.opts.code.optimize);let w=K.toString();if(W=`${K.scopeRefs(f7.default.scope)}return ${w}`,this.opts.code.process)W=this.opts.code.process(W,$);let V=Function(`${f7.default.self}`,`${f7.default.scope}`,W)(this,this.scope.get());if(this.scope.value(H,{ref:V}),V.errors=null,V.schema=$.schema,V.schemaEnv=$,$.$async)V.$async=!0;if(this.opts.code.source===!0)V.source={validateName:H,validateCode:w,scopeValues:K._values};if(this.opts.unevaluated){let{props:X,items:L}=G;if(V.evaluated={props:X instanceof r$.Name?void 0:X,items:L instanceof r$.Name?void 0:L,dynamicProps:X instanceof r$.Name,dynamicItems:L instanceof r$.Name},V.source)V.source.evaluated=(0,r$.stringify)(V.evaluated)}return $.validate=V,$}catch(w){if(delete $.validate,delete $.validateName,W)this.logger.error("Error compiling schema, function code:",W);throw w}finally{this._compilations.delete($)}}$n.compileSchema=pT;function BT0($,I,U){var Y;U=(0,t$.resolveUrl)(this.opts.uriResolver,I,U);let J=$.refs[U];if(J)return J;let Q=jT0.call(this,$,U);if(Q===void 0){let K=(Y=$.localRefs)===null||Y===void 0?void 0:Y[U],{schemaId:q}=this.opts;if(K)Q=new tQ({schema:K,schemaId:q,root:$,baseId:I})}if(Q===void 0)return;return $.refs[U]=vT0.call(this,Q)}$n.resolveRef=BT0;function vT0($){if((0,t$.inlineRef)($.schema,this.opts.inlineRefs))return $.schema;return $.validate?$:pT.call(this,$)}function eb($){for(let I of this._compilations)if(RT0(I,$))return I}$n.getCompilingSchema=eb;function RT0($,I){return $.schema===I.schema&&$.root===I.root&&$.baseId===I.baseId}function jT0($,I){let U;while(typeof(U=this.refs[I])=="string")I=U;return U||this.schemas[I]||Uw.call(this,$,I)}function Uw($,I){let U=this.opts.uriResolver.parse(I),Y=(0,t$._getFullPath)(this.opts.uriResolver,U),J=(0,t$.getFullPath)(this.opts.uriResolver,$.baseId,void 0);if(Object.keys($.schema).length>0&&Y===J)return nT.call(this,U,$);let Q=(0,t$.normalizeId)(Y),K=this.refs[Q]||this.schemas[Q];if(typeof K=="string"){let q=Uw.call(this,$,K);if(typeof(q===null||q===void 0?void 0:q.schema)!=="object")return;return nT.call(this,U,q)}if(typeof(K===null||K===void 0?void 0:K.schema)!=="object")return;if(!K.validate)pT.call(this,K);if(Q===(0,t$.normalizeId)(I)){let{schema:q}=K,{schemaId:H}=this.opts,G=q[H];if(G)J=(0,t$.resolveUrl)(this.opts.uriResolver,J,G);return new tQ({schema:q,schemaId:H,root:$,baseId:J})}return nT.call(this,U,K)}$n.resolveSchema=Uw;var CT0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function nT($,{baseId:I,schema:U,root:Y}){var J;if(((J=$.fragment)===null||J===void 0?void 0:J[0])!=="/")return;for(let q of $.fragment.slice(1).split("/")){if(typeof U==="boolean")return;let H=U[(0,sb.unescapeFragment)(q)];if(H===void 0)return;U=H;let G=typeof U==="object"&&U[this.opts.schemaId];if(!CT0.has(q)&&G)I=(0,t$.resolveUrl)(this.opts.uriResolver,I,G)}let Q;if(typeof U!="boolean"&&U.$ref&&!(0,sb.schemaHasRulesButRef)(U,this.RULES)){let q=(0,t$.resolveUrl)(this.opts.uriResolver,I,U.$ref);Q=Uw.call(this,Y,q)}let{schemaId:K}=this.opts;if(Q=Q||new tQ({schema:U,schemaId:K,root:Y,baseId:I}),Q.schema!==Q.root.schema)return Q;return}});var Un=O((qO1,hT0)=>{hT0.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var mT=O((HO1,Hn)=>{var uT0=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Jn=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),cT=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Qn=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),kT0=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function dT($){let I="",U=0,Y=0;for(Y=0;Y<$.length;Y++){if(U=$[Y].charCodeAt(0),U===48)continue;if(!(U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102))return"";I+=$[Y];break}for(Y+=1;Y<$.length;Y++){if(U=$[Y].charCodeAt(0),!(U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102))return"";I+=$[Y]}return I}var xT0=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Yn($){return $.length=0,!0}function fT0($,I,U){if($.length){let Y=dT($);if(Y!=="")I.push(Y);else return U.error=!0,!1;$.length=0}return!0}function iT0($){let I=0,U={error:!1,address:"",zone:""},Y=[],J=[],Q=!1,K=!1,q=fT0;for(let H=0;H<$.length;H++){let G=$[H];if(G==="["||G==="]")continue;if(G===":"){if(Q===!0)K=!0;if(!q(J,Y,U))break;if(++I>7){U.error=!0;break}if(H>0&&$[H-1]===":")Q=!0;Y.push(":");continue}else if(G==="%"){if(!q(J,Y,U))break;q=Yn}else{J.push(G);continue}}if(J.length)if(q===Yn)U.zone=J.join("");else if(K)Y.push(J.join(""));else Y.push(dT(J));return U.address=Y.join(""),U}function Kn($){if(bT0($,":")<2)return{host:$,isIPV6:!1};let I=iT0($);if(!I.error){let{address:U,address:Y}=I;if(I.zone)U+="%"+I.zone,Y+="%25"+I.zone;return{host:U,isIPV6:!0,escapedHost:Y}}else return{host:$,isIPV6:!1}}function bT0($,I){let U=0;for(let Y=0;Y<$.length;Y++)if($[Y]===I)U++;return U}function nT0($){let I=$,U=[],Y=-1,J=0;while(J=I.length){if(J===1)if(I===".")break;else if(I==="/"){U.push("/");break}else{U.push(I);break}else if(J===2){if(I[0]==="."){if(I[1]===".")break;else if(I[1]==="/"){I=I.slice(2);continue}}else if(I[0]==="/"){if(I[1]==="."||I[1]==="/"){U.push("/");break}}}else if(J===3){if(I==="/.."){if(U.length!==0)U.pop();U.push("/");break}}if(I[0]==="."){if(I[1]==="."){if(I[2]==="/"){I=I.slice(3);continue}}else if(I[1]==="/"){I=I.slice(2);continue}}else if(I[0]==="/"){if(I[1]==="."){if(I[2]==="/"){I=I.slice(2);continue}else if(I[2]==="."){if(I[3]==="/"){if(I=I.slice(3),U.length!==0)U.pop();continue}}}}if((Y=I.indexOf("/",1))===-1){U.push(I);break}else U.push(I.slice(0,Y)),I=I.slice(Y)}return U.join("")}var pT0={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},cT0=/[@/?#:]/g,dT0=/[@/?#]/g;function qn($,I){let U=I?dT0:cT0;return U.lastIndex=0,$.replace(U,(Y)=>pT0[Y])}function mT0($,I=!1){if($.indexOf("%")===-1)return $;let U="";for(let Y=0;Y<$.length;Y++){if($[Y]==="%"&&Y+2<$.length){let J=$.slice(Y+1,Y+3);if(cT(J)){let Q=J.toUpperCase(),K=String.fromCharCode(parseInt(Q,16));if(I&&Qn(K))U+=K;else U+="%"+Q;Y+=2;continue}}U+=$[Y]}return U}function lT0($){let I="";for(let U=0;U<$.length;U++){if($[U]==="%"&&U+2<$.length){let Y=$.slice(U+1,U+3);if(cT(Y)){let J=Y.toUpperCase(),Q=String.fromCharCode(parseInt(J,16));if(Q!=="."&&Qn(Q))I+=Q;else I+="%"+J;U+=2;continue}}if(kT0($[U]))I+=$[U];else I+=escape($[U])}return I}function oT0($){let I="";for(let U=0;U<$.length;U++){if($[U]==="%"&&U+2<$.length){let Y=$.slice(U+1,U+3);if(cT(Y)){I+="%"+Y.toUpperCase(),U+=2;continue}}I+=escape($[U])}return I}function rT0($){let I=[];if($.userinfo!==void 0)I.push($.userinfo),I.push("@");if($.host!==void 0){let U=unescape($.host);if(!Jn(U)){let Y=Kn(U);if(Y.isIPV6===!0)U=`[${Y.escapedHost}]`;else U=qn(U,!1)}I.push(U)}if(typeof $.port==="number"||typeof $.port==="string")I.push(":"),I.push(String($.port));return I.length?I.join(""):void 0}Hn.exports={nonSimpleDomain:xT0,recomposeAuthority:rT0,reescapeHostDelimiters:qn,normalizePercentEncoding:mT0,normalizePathEncoding:lT0,escapePreservingEscapes:oT0,removeDotSegments:nT0,isIPv4:Jn,isUUID:uT0,normalizeIPv6:Kn,stringArrayToHexStripped:dT}});var Zn=O((GO1,Vn)=>{var{isUUID:tT0}=mT(),aT0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,sT0=["http","https","ws","wss","urn","urn:uuid"];function eT0($){return sT0.indexOf($)!==-1}function lT($){if($.secure===!0)return!0;else if($.secure===!1)return!1;else if($.scheme)return $.scheme.length===3&&($.scheme[0]==="w"||$.scheme[0]==="W")&&($.scheme[1]==="s"||$.scheme[1]==="S")&&($.scheme[2]==="s"||$.scheme[2]==="S");else return!1}function Gn($){if(!$.host)$.error=$.error||"HTTP URIs must have a host.";return $}function Wn($){let I=String($.scheme).toLowerCase()==="https";if($.port===(I?443:80)||$.port==="")$.port=void 0;if(!$.path)$.path="/";return $}function $E0($){return $.secure=lT($),$.resourceName=($.path||"/")+($.query?"?"+$.query:""),$.path=void 0,$.query=void 0,$}function IE0($){if($.port===(lT($)?443:80)||$.port==="")$.port=void 0;if(typeof $.secure==="boolean")$.scheme=$.secure?"wss":"ws",$.secure=void 0;if($.resourceName){let[I,U]=$.resourceName.split("?");$.path=I&&I!=="/"?I:void 0,$.query=U,$.resourceName=void 0}return $.fragment=void 0,$}function UE0($,I){if(!$.path)return $.error="URN can not be parsed",$;let U=$.path.match(aT0);if(U){let Y=I.scheme||$.scheme||"urn";$.nid=U[1].toLowerCase(),$.nss=U[2];let J=`${Y}:${I.nid||$.nid}`,Q=oT(J);if($.path=void 0,Q)$=Q.parse($,I)}else $.error=$.error||"URN can not be parsed.";return $}function YE0($,I){if($.nid===void 0)throw Error("URN without nid cannot be serialized");let U=I.scheme||$.scheme||"urn",Y=$.nid.toLowerCase(),J=`${U}:${I.nid||Y}`,Q=oT(J);if(Q)$=Q.serialize($,I);let K=$,q=$.nss;return K.path=`${Y||I.nid}:${q}`,I.skipEscape=!0,K}function JE0($,I){let U=$;if(U.uuid=U.nss,U.nss=void 0,!I.tolerant&&(!U.uuid||!tT0(U.uuid)))U.error=U.error||"UUID is not valid.";return U}function QE0($){let I=$;return I.nss=($.uuid||"").toLowerCase(),I}var wn={scheme:"http",domainHost:!0,parse:Gn,serialize:Wn},KE0={scheme:"https",domainHost:wn.domainHost,parse:Gn,serialize:Wn},Jw={scheme:"ws",domainHost:!0,parse:$E0,serialize:IE0},qE0={scheme:"wss",domainHost:Jw.domainHost,parse:Jw.parse,serialize:Jw.serialize},HE0={scheme:"urn",parse:UE0,serialize:YE0,skipNormalize:!0},GE0={scheme:"urn:uuid",parse:JE0,serialize:QE0,skipNormalize:!0},Qw={http:wn,https:KE0,ws:Jw,wss:qE0,urn:HE0,"urn:uuid":GE0};Object.setPrototypeOf(Qw,null);function oT($){return $&&(Qw[$]||Qw[$.toLowerCase()])||void 0}Vn.exports={wsIsSecure:lT,SCHEMES:Qw,isValidSchemeName:eT0,getSchemeHandler:oT}});var Fn=O((WO1,Kw)=>{var{normalizeIPv6:WE0,removeDotSegments:aQ,recomposeAuthority:wE0,normalizePercentEncoding:VE0,normalizePathEncoding:ZE0,escapePreservingEscapes:zE0,reescapeHostDelimiters:XE0,isIPv4:LE0,nonSimpleDomain:DE0}=mT(),{SCHEMES:OE0,getSchemeHandler:Xn}=Zn();function FE0($,I){if(typeof $==="string")$=TE0($,I);else if(typeof $==="object")$=GU(i7($,I),I);return $}function NE0($,I,U){let Y=U?Object.assign({scheme:"null"},U):{scheme:"null"},J=Ln(GU($,Y),GU(I,Y),Y,!0);return Y.skipEscape=!0,i7(J,Y)}function Ln($,I,U,Y){let J={};if(!Y)$=GU(i7($,U),U),I=GU(i7(I,U),U);if(U=U||{},!U.tolerant&&I.scheme)J.scheme=I.scheme,J.userinfo=I.userinfo,J.host=I.host,J.port=I.port,J.path=aQ(I.path||""),J.query=I.query;else{if(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0)J.userinfo=I.userinfo,J.host=I.host,J.port=I.port,J.path=aQ(I.path||""),J.query=I.query;else{if(!I.path)if(J.path=$.path,I.query!==void 0)J.query=I.query;else J.query=$.query;else{if(I.path[0]==="/")J.path=aQ(I.path);else{if(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path)J.path="/"+I.path;else if(!$.path)J.path=I.path;else J.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+I.path;J.path=aQ(J.path)}J.query=I.query}J.userinfo=$.userinfo,J.host=$.host,J.port=$.port}J.scheme=$.scheme}return J.fragment=I.fragment,J}function ME0($,I,U){let Y=zn($,U),J=zn(I,U);return Y!==void 0&&J!==void 0&&Y.toLowerCase()===J.toLowerCase()}function i7($,I){let U={host:$.host,scheme:$.scheme,userinfo:$.userinfo,port:$.port,path:$.path,query:$.query,nid:$.nid,nss:$.nss,uuid:$.uuid,fragment:$.fragment,reference:$.reference,resourceName:$.resourceName,secure:$.secure,error:""},Y=Object.assign({},I),J=[],Q=Xn(Y.scheme||U.scheme);if(Q&&Q.serialize)Q.serialize(U,Y);if(U.path!==void 0)if(!Y.skipEscape){if(U.path=zE0(U.path),U.scheme!==void 0)U.path=U.path.split("%3A").join(":")}else U.path=VE0(U.path);if(Y.reference!=="suffix"&&U.scheme)J.push(U.scheme,":");let K=wE0(U);if(K!==void 0){if(Y.reference!=="suffix")J.push("//");if(J.push(K),U.path&&U.path[0]!=="/")J.push("/")}if(U.path!==void 0){let q=U.path;if(!Y.absolutePath&&(!Q||!Q.absolutePath))q=aQ(q);if(K===void 0&&q[0]==="/"&&q[1]==="/")q="/%2F"+q.slice(2);J.push(q)}if(U.query!==void 0)J.push("?",U.query);if(U.fragment!==void 0)J.push("#",U.fragment);return J.join("")}var AE0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function PE0($,I){if(I[2]!==void 0&&$.path&&$.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof $.port==="number"&&($.port<0||$.port>65535))return"URI port is malformed.";return}function Dn($,I){let U=Object.assign({},I),Y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},J=!1,Q=!1;if(U.reference==="suffix")if(U.scheme)$=U.scheme+":"+$;else $="//"+$;let K=$.match(AE0);if(K){if(Y.scheme=K[1],Y.userinfo=K[3],Y.host=K[4],Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=K[7],Y.fragment=K[8],isNaN(Y.port))Y.port=K[5];let q=PE0(Y,K);if(q!==void 0)Y.error=Y.error||q,J=!0;if(Y.host)if(LE0(Y.host)===!1){let W=WE0(Y.host);Y.host=W.host.toLowerCase(),Q=W.isIPV6}else Q=!0;if(Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&Y.query===void 0&&!Y.path)Y.reference="same-document";else if(Y.scheme===void 0)Y.reference="relative";else if(Y.fragment===void 0)Y.reference="absolute";else Y.reference="uri";if(U.reference&&U.reference!=="suffix"&&U.reference!==Y.reference)Y.error=Y.error||"URI is not a "+U.reference+" reference.";let H=Xn(U.scheme||Y.scheme);if(!U.unicodeSupport&&(!H||!H.unicodeSupport)){if(Y.host&&(U.domainHost||H&&H.domainHost)&&Q===!1&&DE0(Y.host))try{Y.host=URL.domainToASCII(Y.host.toLowerCase())}catch(G){Y.error=Y.error||"Host's domain name can not be converted to ASCII: "+G}}if(!H||H&&!H.skipNormalize){if($.indexOf("%")!==-1){if(Y.scheme!==void 0)Y.scheme=unescape(Y.scheme);if(Y.host!==void 0)Y.host=XE0(unescape(Y.host),Q)}if(Y.path)Y.path=ZE0(Y.path);if(Y.fragment)try{Y.fragment=encodeURI(decodeURIComponent(Y.fragment))}catch{Y.error=Y.error||"URI malformed"}}if(H&&H.parse)H.parse(Y,U)}else Y.error=Y.error||"URI can not be parsed.";return{parsed:Y,malformedAuthorityOrPort:J}}function GU($,I){return Dn($,I).parsed}function TE0($,I){return On($,I).normalized}function On($,I){let{parsed:U,malformedAuthorityOrPort:Y}=Dn($,I);return{normalized:Y?$:i7(U,I),malformedAuthorityOrPort:Y}}function zn($,I){if(typeof $==="string"){let{normalized:U,malformedAuthorityOrPort:Y}=On($,I);return Y?void 0:U}if(typeof $==="object")return i7($,I)}var rT={SCHEMES:OE0,normalize:FE0,resolve:NE0,resolveComponent:Ln,equal:ME0,serialize:i7,parse:GU};Kw.exports=rT;Kw.exports.default=rT;Kw.exports.fastUri=rT});var An=O((Mn)=>{Object.defineProperty(Mn,"__esModule",{value:!0});var Nn=Fn();Nn.code='require("ajv/dist/runtime/uri").default';Mn.default=Nn});var Cn=O((H5)=>{Object.defineProperty(H5,"__esModule",{value:!0});H5.CodeGen=H5.Name=H5.nil=H5.stringify=H5.str=H5._=H5.KeywordCxt=void 0;var BE0=oQ();Object.defineProperty(H5,"KeywordCxt",{enumerable:!0,get:function(){return BE0.KeywordCxt}});var WU=a0();Object.defineProperty(H5,"_",{enumerable:!0,get:function(){return WU._}});Object.defineProperty(H5,"str",{enumerable:!0,get:function(){return WU.str}});Object.defineProperty(H5,"stringify",{enumerable:!0,get:function(){return WU.stringify}});Object.defineProperty(H5,"nil",{enumerable:!0,get:function(){return WU.nil}});Object.defineProperty(H5,"Name",{enumerable:!0,get:function(){return WU.Name}});Object.defineProperty(H5,"CodeGen",{enumerable:!0,get:function(){return WU.CodeGen}});var vE0=Iw(),vn=rQ(),RE0=vT(),sQ=Yw(),jE0=a0(),eQ=dQ(),qw=cQ(),aT=z1(),Pn=Un(),CE0=An(),Rn=($,I)=>new RegExp($,I);Rn.code="new RegExp";var _E0=["removeAdditional","useDefaults","coerceTypes"],SE0=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),gE0={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},yE0={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Tn=200;function hE0($){var I,U,Y,J,Q,K,q,H,G,W,w,Z,V,X,L,D,F,P,T,A,R,x,y,f,j;let p=$.strict,n=(I=$.code)===null||I===void 0?void 0:I.optimize,S=n===!0||n===void 0?1:n||0,i=(Y=(U=$.code)===null||U===void 0?void 0:U.regExp)!==null&&Y!==void 0?Y:Rn,b=(J=$.uriResolver)!==null&&J!==void 0?J:CE0.default;return{strictSchema:(K=(Q=$.strictSchema)!==null&&Q!==void 0?Q:p)!==null&&K!==void 0?K:!0,strictNumbers:(H=(q=$.strictNumbers)!==null&&q!==void 0?q:p)!==null&&H!==void 0?H:!0,strictTypes:(W=(G=$.strictTypes)!==null&&G!==void 0?G:p)!==null&&W!==void 0?W:"log",strictTuples:(Z=(w=$.strictTuples)!==null&&w!==void 0?w:p)!==null&&Z!==void 0?Z:"log",strictRequired:(X=(V=$.strictRequired)!==null&&V!==void 0?V:p)!==null&&X!==void 0?X:!1,code:$.code?{...$.code,optimize:S,regExp:i}:{optimize:S,regExp:i},loopRequired:(L=$.loopRequired)!==null&&L!==void 0?L:Tn,loopEnum:(D=$.loopEnum)!==null&&D!==void 0?D:Tn,meta:(F=$.meta)!==null&&F!==void 0?F:!0,messages:(P=$.messages)!==null&&P!==void 0?P:!0,inlineRefs:(T=$.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(A=$.schemaId)!==null&&A!==void 0?A:"$id",addUsedSchema:(R=$.addUsedSchema)!==null&&R!==void 0?R:!0,validateSchema:(x=$.validateSchema)!==null&&x!==void 0?x:!0,validateFormats:(y=$.validateFormats)!==null&&y!==void 0?y:!0,unicodeRegExp:(f=$.unicodeRegExp)!==null&&f!==void 0?f:!0,int32range:(j=$.int32range)!==null&&j!==void 0?j:!0,uriResolver:b}}class Hw{constructor($={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,$=this.opts={...$,...hE0($)};let{es5:I,lines:U}=this.opts.code;this.scope=new jE0.ValueScope({scope:{},prefixes:SE0,es5:I,lines:U}),this.logger=bE0($.logger);let Y=$.validateFormats;if($.validateFormats=!1,this.RULES=(0,RE0.getRules)(),En.call(this,gE0,$,"NOT SUPPORTED"),En.call(this,yE0,$,"DEPRECATED","warn"),this._metaOpts=fE0.call(this),$.formats)kE0.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),$.keywords)xE0.call(this,$.keywords);if(typeof $.meta=="object")this.addMetaSchema($.meta);uE0.call(this),$.validateFormats=Y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:$,meta:I,schemaId:U}=this.opts,Y=Pn;if(U==="id")Y={...Pn},Y.id=Y.$id,delete Y.$id;if(I&&$)this.addMetaSchema(Y,Y[U],!1)}defaultMeta(){let{meta:$,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof $=="object"?$[I]||$:void 0}validate($,I){let U;if(typeof $=="string"){if(U=this.getSchema($),!U)throw Error(`no schema with key or ref "${$}"`)}else U=this.compile($);let Y=U(I);if(!("$async"in U))this.errors=U.errors;return Y}compile($,I){let U=this._addSchema($,I);return U.validate||this._compileSchemaEnv(U)}compileAsync($,I){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:U}=this.opts;return Y.call(this,$,I);async function Y(G,W){await J.call(this,G.$schema);let w=this._addSchema(G,W);return w.validate||Q.call(this,w)}async function J(G){if(G&&!this.getSchema(G))await Y.call(this,{$ref:G},!0)}async function Q(G){try{return this._compileSchemaEnv(G)}catch(W){if(!(W instanceof vn.default))throw W;return K.call(this,W),await q.call(this,W.missingSchema),Q.call(this,G)}}function K({missingSchema:G,missingRef:W}){if(this.refs[G])throw Error(`AnySchema ${G} is loaded but ${W} cannot be resolved`)}async function q(G){let W=await H.call(this,G);if(!this.refs[G])await J.call(this,W.$schema);if(!this.refs[G])this.addSchema(W,G,I)}async function H(G){let W=this._loading[G];if(W)return W;try{return await(this._loading[G]=U(G))}finally{delete this._loading[G]}}}addSchema($,I,U,Y=this.opts.validateSchema){if(Array.isArray($)){for(let Q of $)this.addSchema(Q,void 0,U,Y);return this}let J;if(typeof $==="object"){let{schemaId:Q}=this.opts;if(J=$[Q],J!==void 0&&typeof J!="string")throw Error(`schema ${Q} must be string`)}return I=(0,eQ.normalizeId)(I||J),this._checkUnique(I),this.schemas[I]=this._addSchema($,U,I,Y,!0),this}addMetaSchema($,I,U=this.opts.validateSchema){return this.addSchema($,I,!0,U),this}validateSchema($,I){if(typeof $=="boolean")return!0;let U;if(U=$.$schema,U!==void 0&&typeof U!="string")throw Error("$schema must be a string");if(U=U||this.opts.defaultMeta||this.defaultMeta(),!U)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let Y=this.validate(U,$);if(!Y&&I){let J="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(J);else throw Error(J)}return Y}getSchema($){let I;while(typeof(I=Bn.call(this,$))=="string")$=I;if(I===void 0){let{schemaId:U}=this.opts,Y=new sQ.SchemaEnv({schema:{},schemaId:U});if(I=sQ.resolveSchema.call(this,Y,$),!I)return;this.refs[$]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema($){if($ instanceof RegExp)return this._removeAllSchemas(this.schemas,$),this._removeAllSchemas(this.refs,$),this;switch(typeof $){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let I=Bn.call(this,$);if(typeof I=="object")this._cache.delete(I.schema);return delete this.schemas[$],delete this.refs[$],this}case"object":{let I=$;this._cache.delete(I);let U=$[this.opts.schemaId];if(U)U=(0,eQ.normalizeId)(U),delete this.schemas[U],delete this.refs[U];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary($){for(let I of $)this.addKeyword(I);return this}addKeyword($,I){let U;if(typeof $=="string"){if(U=$,typeof I=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=U}else if(typeof $=="object"&&I===void 0){if(I=$,U=I.keyword,Array.isArray(U)&&!U.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(pE0.call(this,U,I),!I)return(0,aT.eachItem)(U,(J)=>tT.call(this,J)),this;dE0.call(this,I);let Y={...I,type:(0,qw.getJSONTypes)(I.type),schemaType:(0,qw.getJSONTypes)(I.schemaType)};return(0,aT.eachItem)(U,Y.type.length===0?(J)=>tT.call(this,J,Y):(J)=>Y.type.forEach((Q)=>tT.call(this,J,Y,Q))),this}getKeyword($){let I=this.RULES.all[$];return typeof I=="object"?I.definition:!!I}removeKeyword($){let{RULES:I}=this;delete I.keywords[$],delete I.all[$];for(let U of I.rules){let Y=U.rules.findIndex((J)=>J.keyword===$);if(Y>=0)U.rules.splice(Y,1)}return this}addFormat($,I){if(typeof I=="string")I=new RegExp(I);return this.formats[$]=I,this}errorsText($=this.errors,{separator:I=", ",dataVar:U="data"}={}){if(!$||$.length===0)return"No errors";return $.map((Y)=>`${U}${Y.instancePath} ${Y.message}`).reduce((Y,J)=>Y+I+J)}$dataMetaSchema($,I){let U=this.RULES.all;$=JSON.parse(JSON.stringify($));for(let Y of I){let J=Y.split("/").slice(1),Q=$;for(let K of J)Q=Q[K];for(let K in U){let q=U[K];if(typeof q!="object")continue;let{$data:H}=q.definition,G=Q[K];if(H&&G)Q[K]=jn(G)}}return $}_removeAllSchemas($,I){for(let U in $){let Y=$[U];if(!I||I.test(U)){if(typeof Y=="string")delete $[U];else if(Y&&!Y.meta)this._cache.delete(Y.schema),delete $[U]}}}_addSchema($,I,U,Y=this.opts.validateSchema,J=this.opts.addUsedSchema){let Q,{schemaId:K}=this.opts;if(typeof $=="object")Q=$[K];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof $!="boolean")throw Error("schema must be object or boolean");let q=this._cache.get($);if(q!==void 0)return q;U=(0,eQ.normalizeId)(Q||U);let H=eQ.getSchemaRefs.call(this,$,U);if(q=new sQ.SchemaEnv({schema:$,schemaId:K,meta:I,baseId:U,localRefs:H}),this._cache.set(q.schema,q),J&&!U.startsWith("#")){if(U)this._checkUnique(U);this.refs[U]=q}if(Y)this.validateSchema($,!0);return q}_checkUnique($){if(this.schemas[$]||this.refs[$])throw Error(`schema with key or id "${$}" already exists`)}_compileSchemaEnv($){if($.meta)this._compileMetaSchema($);else sQ.compileSchema.call(this,$);if(!$.validate)throw Error("ajv implementation error");return $.validate}_compileMetaSchema($){let I=this.opts;this.opts=this._metaOpts;try{sQ.compileSchema.call(this,$)}finally{this.opts=I}}}Hw.ValidationError=vE0.default;Hw.MissingRefError=vn.default;H5.default=Hw;function En($,I,U,Y="error"){for(let J in $){let Q=J;if(Q in I)this.logger[Y](`${U}: option ${J}. ${$[Q]}`)}}function Bn($){return $=(0,eQ.normalizeId)($),this.schemas[$]||this.refs[$]}function uE0(){let $=this.opts.schemas;if(!$)return;if(Array.isArray($))this.addSchema($);else for(let I in $)this.addSchema($[I],I)}function kE0(){for(let $ in this.opts.formats){let I=this.opts.formats[$];if(I)this.addFormat($,I)}}function xE0($){if(Array.isArray($)){this.addVocabulary($);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let I in $){let U=$[I];if(!U.keyword)U.keyword=I;this.addKeyword(U)}}function fE0(){let $={...this.opts};for(let I of _E0)delete $[I];return $}var iE0={log(){},warn(){},error(){}};function bE0($){if($===!1)return iE0;if($===void 0)return console;if($.log&&$.warn&&$.error)return $;throw Error("logger must implement log, warn and error methods")}var nE0=/^[a-z_$][a-z0-9_$:-]*$/i;function pE0($,I){let{RULES:U}=this;if((0,aT.eachItem)($,(Y)=>{if(U.keywords[Y])throw Error(`Keyword ${Y} is already defined`);if(!nE0.test(Y))throw Error(`Keyword ${Y} has invalid name`)}),!I)return;if(I.$data&&!(("code"in I)||("validate"in I)))throw Error('$data keyword must have "code" or "validate" function')}function tT($,I,U){var Y;let J=I===null||I===void 0?void 0:I.post;if(U&&J)throw Error('keyword with "post" flag cannot have "type"');let{RULES:Q}=this,K=J?Q.post:Q.rules.find(({type:H})=>H===U);if(!K)K={type:U,rules:[]},Q.rules.push(K);if(Q.keywords[$]=!0,!I)return;let q={keyword:$,definition:{...I,type:(0,qw.getJSONTypes)(I.type),schemaType:(0,qw.getJSONTypes)(I.schemaType)}};if(I.before)cE0.call(this,K,q,I.before);else K.rules.push(q);Q.all[$]=q,(Y=I.implements)===null||Y===void 0||Y.forEach((H)=>this.addKeyword(H))}function cE0($,I,U){let Y=$.rules.findIndex((J)=>J.keyword===U);if(Y>=0)$.rules.splice(Y,0,I);else $.rules.push(I),this.logger.warn(`rule ${U} is not defined`)}function dE0($){let{metaSchema:I}=$;if(I===void 0)return;if($.$data&&this.opts.$data)I=jn(I);$.validateSchema=this.compile(I,!0)}var mE0={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jn($){return{anyOf:[$,mE0]}}});var Sn=O((_n)=>{Object.defineProperty(_n,"__esModule",{value:!0});var rE0={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};_n.default=rE0});var xn=O((un)=>{Object.defineProperty(un,"__esModule",{value:!0});un.callRef=un.getValidate=void 0;var aE0=rQ(),gn=B$(),m6=a0(),wU=K5(),yn=Yw(),Gw=z1(),sE0={keyword:"$ref",schemaType:"string",code($){let{gen:I,schema:U,it:Y}=$,{baseId:J,schemaEnv:Q,validateName:K,opts:q,self:H}=Y,{root:G}=Q;if((U==="#"||U==="#/")&&J===G.baseId)return w();let W=yn.resolveRef.call(H,G,J,U);if(W===void 0)throw new aE0.default(Y.opts.uriResolver,J,U);if(W instanceof yn.SchemaEnv)return Z(W);return V(W);function w(){if(Q===G)return Ww($,K,Q,Q.$async);let X=I.scopeValue("root",{ref:G});return Ww($,m6._`${X}.validate`,G,G.$async)}function Z(X){let L=hn($,X);Ww($,L,X,X.$async)}function V(X){let L=I.scopeValue("schema",q.code.source===!0?{ref:X,code:(0,m6.stringify)(X)}:{ref:X}),D=I.name("valid"),F=$.subschema({schema:X,dataTypes:[],schemaPath:m6.nil,topSchemaRef:L,errSchemaPath:U},D);$.mergeEvaluated(F),$.ok(D)}}};function hn($,I){let{gen:U}=$;return I.validate?U.scopeValue("validate",{ref:I.validate}):m6._`${U.scopeValue("wrapper",{ref:I})}.validate`}un.getValidate=hn;function Ww($,I,U,Y){let{gen:J,it:Q}=$,{allErrors:K,schemaEnv:q,opts:H}=Q,G=H.passContext?wU.default.this:m6.nil;if(Y)W();else w();function W(){if(!q.$async)throw Error("async schema referenced by sync schema");let X=J.let("valid");J.try(()=>{if(J.code(m6._`await ${(0,gn.callValidateCode)($,I,G)}`),V(I),!K)J.assign(X,!0)},(L)=>{if(J.if(m6._`!(${L} instanceof ${Q.ValidationError})`,()=>J.throw(L)),Z(L),!K)J.assign(X,!1)}),$.ok(X)}function w(){$.result((0,gn.callValidateCode)($,I,G),()=>V(I),()=>Z(I))}function Z(X){let L=m6._`${X}.errors`;J.assign(wU.default.vErrors,m6._`${wU.default.vErrors} === null ? ${L} : ${wU.default.vErrors}.concat(${L})`),J.assign(wU.default.errors,m6._`${wU.default.vErrors}.length`)}function V(X){var L;if(!Q.opts.unevaluated)return;let D=(L=U===null||U===void 0?void 0:U.validate)===null||L===void 0?void 0:L.evaluated;if(Q.props!==!0)if(D&&!D.dynamicProps){if(D.props!==void 0)Q.props=Gw.mergeEvaluated.props(J,D.props,Q.props)}else{let F=J.var("props",m6._`${X}.evaluated.props`);Q.props=Gw.mergeEvaluated.props(J,F,Q.props,m6.Name)}if(Q.items!==!0)if(D&&!D.dynamicItems){if(D.items!==void 0)Q.items=Gw.mergeEvaluated.items(J,D.items,Q.items)}else{let F=J.var("items",m6._`${X}.evaluated.items`);Q.items=Gw.mergeEvaluated.items(J,F,Q.items,m6.Name)}}}un.callRef=Ww;un.default=sE0});var bn=O((fn)=>{Object.defineProperty(fn,"__esModule",{value:!0});var IB0=Sn(),UB0=xn(),YB0=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",IB0.default,UB0.default];fn.default=YB0});var pn=O((nn)=>{Object.defineProperty(nn,"__esModule",{value:!0});var ww=a0(),D9=ww.operators,Vw={maximum:{okStr:"<=",ok:D9.LTE,fail:D9.GT},minimum:{okStr:">=",ok:D9.GTE,fail:D9.LT},exclusiveMaximum:{okStr:"<",ok:D9.LT,fail:D9.GTE},exclusiveMinimum:{okStr:">",ok:D9.GT,fail:D9.LTE}},QB0={message:({keyword:$,schemaCode:I})=>ww.str`must be ${Vw[$].okStr} ${I}`,params:({keyword:$,schemaCode:I})=>ww._`{comparison: ${Vw[$].okStr}, limit: ${I}}`},KB0={keyword:Object.keys(Vw),type:"number",schemaType:"number",$data:!0,error:QB0,code($){let{keyword:I,data:U,schemaCode:Y}=$;$.fail$data(ww._`${U} ${Vw[I].fail} ${Y} || isNaN(${U})`)}};nn.default=KB0});var dn=O((cn)=>{Object.defineProperty(cn,"__esModule",{value:!0});var $2=a0(),HB0={message:({schemaCode:$})=>$2.str`must be multiple of ${$}`,params:({schemaCode:$})=>$2._`{multipleOf: ${$}}`},GB0={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:HB0,code($){let{gen:I,data:U,schemaCode:Y,it:J}=$,Q=J.opts.multipleOfPrecision,K=I.let("res"),q=Q?$2._`Math.abs(Math.round(${K}) - ${K}) > 1e-${Q}`:$2._`${K} !== parseInt(${K})`;$.fail$data($2._`(${Y} === 0 || (${K} = ${U}/${Y}, ${q}))`)}};cn.default=GB0});var on=O((ln)=>{Object.defineProperty(ln,"__esModule",{value:!0});function mn($){let I=$.length,U=0,Y=0,J;while(Y=55296&&J<=56319&&Y{Object.defineProperty(rn,"__esModule",{value:!0});var b7=a0(),VB0=z1(),ZB0=on(),zB0={message({keyword:$,schemaCode:I}){let U=$==="maxLength"?"more":"fewer";return b7.str`must NOT have ${U} than ${I} characters`},params:({schemaCode:$})=>b7._`{limit: ${$}}`},XB0={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zB0,code($){let{keyword:I,data:U,schemaCode:Y,it:J}=$,Q=I==="maxLength"?b7.operators.GT:b7.operators.LT,K=J.opts.unicode===!1?b7._`${U}.length`:b7._`${(0,VB0.useFunc)($.gen,ZB0.default)}(${U})`;$.fail$data(b7._`${K} ${Q} ${Y}`)}};rn.default=XB0});var sn=O((an)=>{Object.defineProperty(an,"__esModule",{value:!0});var DB0=B$(),OB0=z1(),VU=a0(),FB0={message:({schemaCode:$})=>VU.str`must match pattern "${$}"`,params:({schemaCode:$})=>VU._`{pattern: ${$}}`},NB0={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:FB0,code($){let{gen:I,data:U,$data:Y,schema:J,schemaCode:Q,it:K}=$,q=K.opts.unicodeRegExp?"u":"";if(Y){let{regExp:H}=K.opts.code,G=H.code==="new RegExp"?VU._`new RegExp`:(0,OB0.useFunc)(I,H),W=I.let("valid");I.try(()=>I.assign(W,VU._`${G}(${Q}, ${q}).test(${U})`),()=>I.assign(W,!1)),$.fail$data(VU._`!${W}`)}else{let H=(0,DB0.usePattern)($,J);$.fail$data(VU._`!${H}.test(${U})`)}}};an.default=NB0});var $p=O((en)=>{Object.defineProperty(en,"__esModule",{value:!0});var I2=a0(),AB0={message({keyword:$,schemaCode:I}){let U=$==="maxProperties"?"more":"fewer";return I2.str`must NOT have ${U} than ${I} properties`},params:({schemaCode:$})=>I2._`{limit: ${$}}`},PB0={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:AB0,code($){let{keyword:I,data:U,schemaCode:Y}=$,J=I==="maxProperties"?I2.operators.GT:I2.operators.LT;$.fail$data(I2._`Object.keys(${U}).length ${J} ${Y}`)}};en.default=PB0});var Up=O((Ip)=>{Object.defineProperty(Ip,"__esModule",{value:!0});var U2=B$(),Y2=a0(),EB0=z1(),BB0={message:({params:{missingProperty:$}})=>Y2.str`must have required property '${$}'`,params:({params:{missingProperty:$}})=>Y2._`{missingProperty: ${$}}`},vB0={keyword:"required",type:"object",schemaType:"array",$data:!0,error:BB0,code($){let{gen:I,schema:U,schemaCode:Y,data:J,$data:Q,it:K}=$,{opts:q}=K;if(!Q&&U.length===0)return;let H=U.length>=q.loopRequired;if(K.allErrors)G();else W();if(q.strictRequired){let V=$.parentSchema.properties,{definedProperties:X}=$.it;for(let L of U)if((V===null||V===void 0?void 0:V[L])===void 0&&!X.has(L)){let D=K.schemaEnv.baseId+K.errSchemaPath,F=`required property "${L}" is not defined at "${D}" (strictRequired)`;(0,EB0.checkStrictMode)(K,F,K.opts.strictRequired)}}function G(){if(H||Q)$.block$data(Y2.nil,w);else for(let V of U)(0,U2.checkReportMissingProp)($,V)}function W(){let V=I.let("missing");if(H||Q){let X=I.let("valid",!0);$.block$data(X,()=>Z(V,X)),$.ok(X)}else I.if((0,U2.checkMissingProp)($,U,V)),(0,U2.reportMissingProp)($,V),I.else()}function w(){I.forOf("prop",Y,(V)=>{$.setParams({missingProperty:V}),I.if((0,U2.noPropertyInData)(I,J,V,q.ownProperties),()=>$.error())})}function Z(V,X){$.setParams({missingProperty:V}),I.forOf(V,Y,()=>{I.assign(X,(0,U2.propertyInData)(I,J,V,q.ownProperties)),I.if((0,Y2.not)(X),()=>{$.error(),I.break()})},Y2.nil)}}};Ip.default=vB0});var Jp=O((Yp)=>{Object.defineProperty(Yp,"__esModule",{value:!0});var J2=a0(),jB0={message({keyword:$,schemaCode:I}){let U=$==="maxItems"?"more":"fewer";return J2.str`must NOT have ${U} than ${I} items`},params:({schemaCode:$})=>J2._`{limit: ${$}}`},CB0={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jB0,code($){let{keyword:I,data:U,schemaCode:Y}=$,J=I==="maxItems"?J2.operators.GT:J2.operators.LT;$.fail$data(J2._`${U}.length ${J} ${Y}`)}};Yp.default=CB0});var Zw=O((Kp)=>{Object.defineProperty(Kp,"__esModule",{value:!0});var Qp=hT();Qp.code='require("ajv/dist/runtime/equal").default';Kp.default=Qp});var Hp=O((qp)=>{Object.defineProperty(qp,"__esModule",{value:!0});var sT=cQ(),e4=a0(),gB0=z1(),yB0=Zw(),hB0={message:({params:{i:$,j:I}})=>e4.str`must NOT have duplicate items (items ## ${I} and ${$} are identical)`,params:({params:{i:$,j:I}})=>e4._`{i: ${$}, j: ${I}}`},uB0={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:hB0,code($){let{gen:I,data:U,$data:Y,schema:J,parentSchema:Q,schemaCode:K,it:q}=$;if(!Y&&!J)return;let H=I.let("valid"),G=Q.items?(0,sT.getSchemaTypes)(Q.items):[];$.block$data(H,W,e4._`${K} === false`),$.ok(H);function W(){let X=I.let("i",e4._`${U}.length`),L=I.let("j");$.setParams({i:X,j:L}),I.assign(H,!0),I.if(e4._`${X} > 1`,()=>(w()?Z:V)(X,L))}function w(){return G.length>0&&!G.some((X)=>X==="object"||X==="array")}function Z(X,L){let D=I.name("item"),F=(0,sT.checkDataTypes)(G,D,q.opts.strictNumbers,sT.DataType.Wrong),P=I.const("indices",e4._`{}`);I.for(e4._`;${X}--;`,()=>{if(I.let(D,e4._`${U}[${X}]`),I.if(F,e4._`continue`),G.length>1)I.if(e4._`typeof ${D} == "string"`,e4._`${D} += "_"`);I.if(e4._`typeof ${P}[${D}] == "number"`,()=>{I.assign(L,e4._`${P}[${D}]`),$.error(),I.assign(H,!1).break()}).code(e4._`${P}[${D}] = ${X}`)})}function V(X,L){let D=(0,gB0.useFunc)(I,yB0.default),F=I.name("outer");I.label(F).for(e4._`;${X}--;`,()=>I.for(e4._`${L} = ${X}; ${L}--;`,()=>I.if(e4._`${D}(${U}[${X}], ${U}[${L}])`,()=>{$.error(),I.assign(H,!1).break(F)})))}}};qp.default=uB0});var Wp=O((Gp)=>{Object.defineProperty(Gp,"__esModule",{value:!0});var eT=a0(),xB0=z1(),fB0=Zw(),iB0={message:"must be equal to constant",params:({schemaCode:$})=>eT._`{allowedValue: ${$}}`},bB0={keyword:"const",$data:!0,error:iB0,code($){let{gen:I,data:U,$data:Y,schemaCode:J,schema:Q}=$;if(Y||Q&&typeof Q=="object")$.fail$data(eT._`!${(0,xB0.useFunc)(I,fB0.default)}(${U}, ${J})`);else $.fail(eT._`${Q} !== ${U}`)}};Gp.default=bB0});var Vp=O((wp)=>{Object.defineProperty(wp,"__esModule",{value:!0});var Q2=a0(),pB0=z1(),cB0=Zw(),dB0={message:"must be equal to one of the allowed values",params:({schemaCode:$})=>Q2._`{allowedValues: ${$}}`},mB0={keyword:"enum",schemaType:"array",$data:!0,error:dB0,code($){let{gen:I,data:U,$data:Y,schema:J,schemaCode:Q,it:K}=$;if(!Y&&J.length===0)throw Error("enum must have non-empty array");let q=J.length>=K.opts.loopEnum,H,G=()=>H!==null&&H!==void 0?H:H=(0,pB0.useFunc)(I,cB0.default),W;if(q||Y)W=I.let("valid"),$.block$data(W,w);else{if(!Array.isArray(J))throw Error("ajv implementation error");let V=I.const("vSchema",Q);W=(0,Q2.or)(...J.map((X,L)=>Z(V,L)))}$.pass(W);function w(){I.assign(W,!1),I.forOf("v",Q,(V)=>I.if(Q2._`${G()}(${U}, ${V})`,()=>I.assign(W,!0).break()))}function Z(V,X){let L=J[X];return typeof L==="object"&&L!==null?Q2._`${G()}(${U}, ${V}[${X}])`:Q2._`${U} === ${L}`}}};wp.default=mB0});var zp=O((Zp)=>{Object.defineProperty(Zp,"__esModule",{value:!0});var oB0=pn(),rB0=dn(),tB0=tn(),aB0=sn(),sB0=$p(),eB0=Up(),$v0=Jp(),Iv0=Hp(),Uv0=Wp(),Yv0=Vp(),Jv0=[oB0.default,rB0.default,tB0.default,aB0.default,sB0.default,eB0.default,$v0.default,Iv0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Uv0.default,Yv0.default];Zp.default=Jv0});var IE=O((Lp)=>{Object.defineProperty(Lp,"__esModule",{value:!0});Lp.validateAdditionalItems=void 0;var n7=a0(),$E=z1(),Kv0={message:({params:{len:$}})=>n7.str`must NOT have more than ${$} items`,params:({params:{len:$}})=>n7._`{limit: ${$}}`},qv0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Kv0,code($){let{parentSchema:I,it:U}=$,{items:Y}=I;if(!Array.isArray(Y)){(0,$E.checkStrictMode)(U,'"additionalItems" is ignored when "items" is not an array of schemas');return}Xp($,Y)}};function Xp($,I){let{gen:U,schema:Y,data:J,keyword:Q,it:K}=$;K.items=!0;let q=U.const("len",n7._`${J}.length`);if(Y===!1)$.setParams({len:I.length}),$.pass(n7._`${q} <= ${I.length}`);else if(typeof Y=="object"&&!(0,$E.alwaysValidSchema)(K,Y)){let G=U.var("valid",n7._`${q} <= ${I.length}`);U.if((0,n7.not)(G),()=>H(G)),$.ok(G)}function H(G){U.forRange("i",I.length,q,(W)=>{if($.subschema({keyword:Q,dataProp:W,dataPropType:$E.Type.Num},G),!K.allErrors)U.if((0,n7.not)(G),()=>U.break())})}}Lp.validateAdditionalItems=Xp;Lp.default=qv0});var UE=O((Np)=>{Object.defineProperty(Np,"__esModule",{value:!0});Np.validateTuple=void 0;var Op=a0(),zw=z1(),Gv0=B$(),Wv0={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code($){let{schema:I,it:U}=$;if(Array.isArray(I))return Fp($,"additionalItems",I);if(U.items=!0,(0,zw.alwaysValidSchema)(U,I))return;$.ok((0,Gv0.validateArray)($))}};function Fp($,I,U=$.schema){let{gen:Y,parentSchema:J,data:Q,keyword:K,it:q}=$;if(W(J),q.opts.unevaluated&&U.length&&q.items!==!0)q.items=zw.mergeEvaluated.items(Y,U.length,q.items);let H=Y.name("valid"),G=Y.const("len",Op._`${Q}.length`);U.forEach((w,Z)=>{if((0,zw.alwaysValidSchema)(q,w))return;Y.if(Op._`${G} > ${Z}`,()=>$.subschema({keyword:K,schemaProp:Z,dataProp:Z},H)),$.ok(H)});function W(w){let{opts:Z,errSchemaPath:V}=q,X=U.length,L=X===w.minItems&&(X===w.maxItems||w[I]===!1);if(Z.strictTuples&&!L){let D=`"${K}" is ${X}-tuple, but minItems or maxItems/${I} are not specified or different at path "${V}"`;(0,zw.checkStrictMode)(q,D,Z.strictTuples)}}}Np.validateTuple=Fp;Np.default=Wv0});var Pp=O((Ap)=>{Object.defineProperty(Ap,"__esModule",{value:!0});var Vv0=UE(),Zv0={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:($)=>(0,Vv0.validateTuple)($,"items")};Ap.default=Zv0});var Bp=O((Ep)=>{Object.defineProperty(Ep,"__esModule",{value:!0});var Tp=a0(),Xv0=z1(),Lv0=B$(),Dv0=IE(),Ov0={message:({params:{len:$}})=>Tp.str`must NOT have more than ${$} items`,params:({params:{len:$}})=>Tp._`{limit: ${$}}`},Fv0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Ov0,code($){let{schema:I,parentSchema:U,it:Y}=$,{prefixItems:J}=U;if(Y.items=!0,(0,Xv0.alwaysValidSchema)(Y,I))return;if(J)(0,Dv0.validateAdditionalItems)($,J);else $.ok((0,Lv0.validateArray)($))}};Ep.default=Fv0});var Rp=O((vp)=>{Object.defineProperty(vp,"__esModule",{value:!0});var v$=a0(),Xw=z1(),Mv0={message:({params:{min:$,max:I}})=>I===void 0?v$.str`must contain at least ${$} valid item(s)`:v$.str`must contain at least ${$} and no more than ${I} valid item(s)`,params:({params:{min:$,max:I}})=>I===void 0?v$._`{minContains: ${$}}`:v$._`{minContains: ${$}, maxContains: ${I}}`},Av0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Mv0,code($){let{gen:I,schema:U,parentSchema:Y,data:J,it:Q}=$,K,q,{minContains:H,maxContains:G}=Y;if(Q.opts.next)K=H===void 0?1:H,q=G;else K=1;let W=I.const("len",v$._`${J}.length`);if($.setParams({min:K,max:q}),q===void 0&&K===0){(0,Xw.checkStrictMode)(Q,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(q!==void 0&&K>q){(0,Xw.checkStrictMode)(Q,'"minContains" > "maxContains" is always invalid'),$.fail();return}if((0,Xw.alwaysValidSchema)(Q,U)){let L=v$._`${W} >= ${K}`;if(q!==void 0)L=v$._`${L} && ${W} <= ${q}`;$.pass(L);return}Q.items=!0;let w=I.name("valid");if(q===void 0&&K===1)V(w,()=>I.if(w,()=>I.break()));else if(K===0){if(I.let(w,!0),q!==void 0)I.if(v$._`${J}.length > 0`,Z)}else I.let(w,!1),Z();$.result(w,()=>$.reset());function Z(){let L=I.name("_valid"),D=I.let("count",0);V(L,()=>I.if(L,()=>X(D)))}function V(L,D){I.forRange("i",0,W,(F)=>{$.subschema({keyword:"contains",dataProp:F,dataPropType:Xw.Type.Num,compositeRule:!0},L),D()})}function X(L){if(I.code(v$._`${L}++`),q===void 0)I.if(v$._`${L} >= ${K}`,()=>I.assign(w,!0).break());else if(I.if(v$._`${L} > ${q}`,()=>I.assign(w,!1).break()),K===1)I.assign(w,!0);else I.if(v$._`${L} >= ${K}`,()=>I.assign(w,!0))}}};vp.default=Av0});var yp=O((_p)=>{Object.defineProperty(_p,"__esModule",{value:!0});_p.validateSchemaDeps=_p.validatePropertyDeps=_p.error=void 0;var YE=a0(),Tv0=z1(),K2=B$();_p.error={message:({params:{property:$,depsCount:I,deps:U}})=>{let Y=I===1?"property":"properties";return YE.str`must have ${Y} ${U} when property ${$} is present`},params:({params:{property:$,depsCount:I,deps:U,missingProperty:Y}})=>YE._`{property: ${$}, missingProperty: ${Y}, depsCount: ${I}, - deps: ${U}}`};var Ev0={keyword:"dependencies",type:"object",schemaType:"object",error:jp.error,code($){let[I,U]=Bv0($);vp($,I),Rp($,U)}};function Bv0({schema:$}){let I={},U={};for(let Y in $){if(Y==="__proto__")continue;let J=Array.isArray($[Y])?I:U;J[Y]=$[Y]}return[I,U]}function vp($,I=$.schema){let{gen:U,data:Y,it:J}=$;if(Object.keys(I).length===0)return;let Q=U.let("missing");for(let K in I){let q=I[K];if(q.length===0)continue;let H=(0,J2.propertyInData)(U,Y,K,J.opts.ownProperties);if($.setParams({property:K,depsCount:q.length,deps:q.join(", ")}),J.allErrors)U.if(H,()=>{for(let G of q)(0,J2.checkReportMissingProp)($,G)});else U.if(UE._`${H} && (${(0,J2.checkMissingProp)($,q,Q)})`),(0,J2.reportMissingProp)($,Q),U.else()}}jp.validatePropertyDeps=vp;function Rp($,I=$.schema){let{gen:U,data:Y,keyword:J,it:Q}=$,K=U.name("valid");for(let q in I){if((0,Tv0.alwaysValidSchema)(Q,I[q]))continue;U.if((0,J2.propertyInData)(U,Y,q,Q.opts.ownProperties),()=>{let H=$.subschema({keyword:J,schemaProp:q},K);$.mergeValidEvaluated(H,K)},()=>U.var(K,!0)),$.ok(K)}}jp.validateSchemaDeps=Rp;jp.default=Ev0});var hp=O((yp)=>{Object.defineProperty(yp,"__esModule",{value:!0});var gp=a0(),jv0=z1(),Cv0={message:"property name must be valid",params:({params:$})=>gp._`{propertyName: ${$.propertyName}}`},_v0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Cv0,code($){let{gen:I,schema:U,data:Y,it:J}=$;if((0,jv0.alwaysValidSchema)(J,U))return;let Q=I.name("valid");I.forIn("key",Y,(K)=>{$.setParams({propertyName:K}),$.subschema({keyword:"propertyNames",data:K,dataTypes:["string"],propertyName:K,compositeRule:!0},Q),I.if((0,gp.not)(Q),()=>{if($.error(!0),!J.allErrors)I.break()})}),$.ok(Q)}};yp.default=_v0});var YE=O((up)=>{Object.defineProperty(up,"__esModule",{value:!0});var Lw=E$(),a$=a0(),gv0=K5(),Dw=z1(),yv0={message:"must NOT have additional properties",params:({params:$})=>a$._`{additionalProperty: ${$.additionalProperty}}`},hv0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yv0,code($){let{gen:I,schema:U,parentSchema:Y,data:J,errsCount:Q,it:K}=$;if(!Q)throw Error("ajv implementation error");let{allErrors:q,opts:H}=K;if(K.props=!0,H.removeAdditional!=="all"&&(0,Dw.alwaysValidSchema)(K,U))return;let G=(0,Lw.allSchemaProperties)(Y.properties),W=(0,Lw.allSchemaProperties)(Y.patternProperties);w(),$.ok(a$._`${Q} === ${gv0.default.errors}`);function w(){I.forIn("key",J,(D)=>{if(!G.length&&!W.length)X(D);else I.if(Z(D),()=>X(D))})}function Z(D){let F;if(G.length>8){let P=(0,Dw.schemaRefOrVal)(K,Y.properties,"properties");F=(0,Lw.isOwnProperty)(I,P,D)}else if(G.length)F=(0,a$.or)(...G.map((P)=>a$._`${D} === ${P}`));else F=a$.nil;if(W.length)F=(0,a$.or)(F,...W.map((P)=>a$._`${(0,Lw.usePattern)($,P)}.test(${D})`));return(0,a$.not)(F)}function V(D){I.code(a$._`delete ${J}[${D}]`)}function X(D){if(H.removeAdditional==="all"||H.removeAdditional&&U===!1){V(D);return}if(U===!1){if($.setParams({additionalProperty:D}),$.error(),!q)I.break();return}if(typeof U=="object"&&!(0,Dw.alwaysValidSchema)(K,U)){let F=I.name("valid");if(H.removeAdditional==="failing")L(D,F,!1),I.if((0,a$.not)(F),()=>{$.reset(),V(D)});else if(L(D,F),!q)I.if((0,a$.not)(F),()=>I.break())}}function L(D,F,P){let E={keyword:"additionalProperties",dataProp:D,dataPropType:Dw.Type.Str};if(P===!1)Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1});$.subschema(E,F)}}};up.default=hv0});var bp=O((fp)=>{Object.defineProperty(fp,"__esModule",{value:!0});var xv0=mQ(),xp=E$(),JE=z1(),kp=YE(),kv0={keyword:"properties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,parentSchema:Y,data:J,it:Q}=$;if(Q.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)kp.default.code(new xv0.KeywordCxt(Q,kp.default,"additionalProperties"));let K=(0,xp.allSchemaProperties)(U);for(let w of K)Q.definedProperties.add(w);if(Q.opts.unevaluated&&K.length&&Q.props!==!0)Q.props=JE.mergeEvaluated.props(I,(0,JE.toHash)(K),Q.props);let q=K.filter((w)=>!(0,JE.alwaysValidSchema)(Q,U[w]));if(q.length===0)return;let H=I.name("valid");for(let w of q){if(G(w))W(w);else{if(I.if((0,xp.propertyInData)(I,J,w,Q.opts.ownProperties)),W(w),!Q.allErrors)I.else().var(H,!0);I.endIf()}$.it.definedProperties.add(w),$.ok(H)}function G(w){return Q.opts.useDefaults&&!Q.compositeRule&&U[w].default!==void 0}function W(w){$.subschema({keyword:"properties",schemaProp:w,dataProp:w},H)}}};fp.default=kv0});var dp=O((cp)=>{Object.defineProperty(cp,"__esModule",{value:!0});var ip=E$(),Ow=a0(),np=z1(),pp=z1(),bv0={keyword:"patternProperties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,data:Y,parentSchema:J,it:Q}=$,{opts:K}=Q,q=(0,ip.allSchemaProperties)(U),H=q.filter((L)=>(0,np.alwaysValidSchema)(Q,U[L]));if(q.length===0||H.length===q.length&&(!Q.opts.unevaluated||Q.props===!0))return;let G=K.strictSchema&&!K.allowMatchingProperties&&J.properties,W=I.name("valid");if(Q.props!==!0&&!(Q.props instanceof Ow.Name))Q.props=(0,pp.evaluatedPropsToName)(I,Q.props);let{props:w}=Q;Z();function Z(){for(let L of q){if(G)V(L);if(Q.allErrors)X(L);else I.var(W,!0),X(L),I.if(W)}}function V(L){for(let D in G)if(new RegExp(L).test(D))(0,np.checkStrictMode)(Q,`property ${D} matches pattern ${L} (use allowMatchingProperties)`)}function X(L){I.forIn("key",Y,(D)=>{I.if(Ow._`${(0,ip.usePattern)($,L)}.test(${D})`,()=>{let F=H.includes(L);if(!F)$.subschema({keyword:"patternProperties",schemaProp:L,dataProp:D,dataPropType:pp.Type.Str},W);if(Q.opts.unevaluated&&w!==!0)I.assign(Ow._`${w}[${D}]`,!0);else if(!F&&!Q.allErrors)I.if((0,Ow.not)(W),()=>I.break())})})}}};cp.default=bv0});var lp=O((mp)=>{Object.defineProperty(mp,"__esModule",{value:!0});var nv0=z1(),pv0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code($){let{gen:I,schema:U,it:Y}=$;if((0,nv0.alwaysValidSchema)(Y,U)){$.fail();return}let J=I.name("valid");$.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},J),$.failResult(J,()=>$.reset(),()=>$.error())},error:{message:"must NOT be valid"}};mp.default=pv0});var rp=O((op)=>{Object.defineProperty(op,"__esModule",{value:!0});var dv0=E$(),mv0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dv0.validateUnion,error:{message:"must match a schema in anyOf"}};op.default=mv0});var ap=O((tp)=>{Object.defineProperty(tp,"__esModule",{value:!0});var Fw=a0(),ov0=z1(),rv0={message:"must match exactly one schema in oneOf",params:({params:$})=>Fw._`{passingSchemas: ${$.passing}}`},tv0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:rv0,code($){let{gen:I,schema:U,parentSchema:Y,it:J}=$;if(!Array.isArray(U))throw Error("ajv implementation error");if(J.opts.discriminator&&Y.discriminator)return;let Q=U,K=I.let("valid",!1),q=I.let("passing",null),H=I.name("_valid");$.setParams({passing:q}),I.block(G),$.result(K,()=>$.reset(),()=>$.error(!0));function G(){Q.forEach((W,w)=>{let Z;if((0,ov0.alwaysValidSchema)(J,W))I.var(H,!0);else Z=$.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},H);if(w>0)I.if(Fw._`${H} && ${K}`).assign(K,!1).assign(q,Fw._`[${q}, ${w}]`).else();I.if(H,()=>{if(I.assign(K,!0),I.assign(q,w),Z)$.mergeEvaluated(Z,Fw.Name)})})}}};tp.default=tv0});var ep=O((sp)=>{Object.defineProperty(sp,"__esModule",{value:!0});var sv0=z1(),ev0={keyword:"allOf",schemaType:"array",code($){let{gen:I,schema:U,it:Y}=$;if(!Array.isArray(U))throw Error("ajv implementation error");let J=I.name("valid");U.forEach((Q,K)=>{if((0,sv0.alwaysValidSchema)(Y,Q))return;let q=$.subschema({keyword:"allOf",schemaProp:K},J);$.ok(J),$.mergeEvaluated(q)})}};sp.default=ev0});var Yc=O((Uc)=>{Object.defineProperty(Uc,"__esModule",{value:!0});var Nw=a0(),Ic=z1(),IR0={message:({params:$})=>Nw.str`must match "${$.ifClause}" schema`,params:({params:$})=>Nw._`{failingKeyword: ${$.ifClause}}`},UR0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:IR0,code($){let{gen:I,parentSchema:U,it:Y}=$;if(U.then===void 0&&U.else===void 0)(0,Ic.checkStrictMode)(Y,'"if" without "then" and "else" is ignored');let J=$c(Y,"then"),Q=$c(Y,"else");if(!J&&!Q)return;let K=I.let("valid",!0),q=I.name("_valid");if(H(),$.reset(),J&&Q){let W=I.let("ifClause");$.setParams({ifClause:W}),I.if(q,G("then",W),G("else",W))}else if(J)I.if(q,G("then"));else I.if((0,Nw.not)(q),G("else"));$.pass(K,()=>$.error(!0));function H(){let W=$.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},q);$.mergeEvaluated(W)}function G(W,w){return()=>{let Z=$.subschema({keyword:W},q);if(I.assign(K,q),$.mergeValidEvaluated(Z,K),w)I.assign(w,Nw._`${W}`);else $.setParams({ifClause:W})}}}};function $c($,I){let U=$.schema[I];return U!==void 0&&!(0,Ic.alwaysValidSchema)($,U)}Uc.default=UR0});var Qc=O((Jc)=>{Object.defineProperty(Jc,"__esModule",{value:!0});var JR0=z1(),QR0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:$,parentSchema:I,it:U}){if(I.if===void 0)(0,JR0.checkStrictMode)(U,`"${$}" without "if" is ignored`)}};Jc.default=QR0});var qc=O((Kc)=>{Object.defineProperty(Kc,"__esModule",{value:!0});var qR0=$E(),HR0=Mp(),GR0=IE(),WR0=Tp(),wR0=Bp(),VR0=Sp(),ZR0=hp(),zR0=YE(),XR0=bp(),LR0=dp(),DR0=lp(),OR0=rp(),FR0=ap(),NR0=ep(),MR0=Yc(),AR0=Qc();function PR0($=!1){let I=[DR0.default,OR0.default,FR0.default,NR0.default,MR0.default,AR0.default,ZR0.default,zR0.default,VR0.default,XR0.default,LR0.default];if($)I.push(HR0.default,WR0.default);else I.push(qR0.default,GR0.default);return I.push(wR0.default),I}Kc.default=PR0});var Gc=O((Hc)=>{Object.defineProperty(Hc,"__esModule",{value:!0});var N4=a0(),ER0={message:({schemaCode:$})=>N4.str`must match format "${$}"`,params:({schemaCode:$})=>N4._`{format: ${$}}`},BR0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ER0,code($,I){let{gen:U,data:Y,$data:J,schema:Q,schemaCode:K,it:q}=$,{opts:H,errSchemaPath:G,schemaEnv:W,self:w}=q;if(!H.validateFormats)return;if(J)Z();else V();function Z(){let X=U.scopeValue("formats",{ref:w.formats,code:H.code.formats}),L=U.const("fDef",N4._`${X}[${K}]`),D=U.let("fType"),F=U.let("format");U.if(N4._`typeof ${L} == "object" && !(${L} instanceof RegExp)`,()=>U.assign(D,N4._`${L}.type || "string"`).assign(F,N4._`${L}.validate`),()=>U.assign(D,N4._`"string"`).assign(F,L)),$.fail$data((0,N4.or)(P(),E()));function P(){if(H.strictSchema===!1)return N4.nil;return N4._`${K} && !${F}`}function E(){let A=W.$async?N4._`(${L}.async ? await ${F}(${Y}) : ${F}(${Y}))`:N4._`${F}(${Y})`,R=N4._`(typeof ${F} == "function" ? ${A} : ${F}.test(${Y}))`;return N4._`${F} && ${F} !== true && ${D} === ${I} && !${R}`}}function V(){let X=w.formats[Q];if(!X){P();return}if(X===!0)return;let[L,D,F]=E(X);if(L===I)$.pass(A());function P(){if(H.strictSchema===!1){w.logger.warn(R());return}throw Error(R());function R(){return`unknown format "${Q}" ignored in schema at path "${G}"`}}function E(R){let k=R instanceof RegExp?(0,N4.regexpCode)(R):H.code.formats?N4._`${H.code.formats}${(0,N4.getProperty)(Q)}`:void 0,y=U.scopeValue("formats",{key:Q,ref:R,code:k});if(typeof R=="object"&&!(R instanceof RegExp))return[R.type||"string",R.validate,N4._`${y}.validate`];return["string",R,y]}function A(){if(typeof X=="object"&&!(X instanceof RegExp)&&X.async){if(!W.$async)throw Error("async format in sync schema");return N4._`await ${F}(${Y})`}return typeof D=="function"?N4._`${F}(${Y})`:N4._`${F}.test(${Y})`}}}};Hc.default=BR0});var wc=O((Wc)=>{Object.defineProperty(Wc,"__esModule",{value:!0});var RR0=Gc(),jR0=[RR0.default];Wc.default=jR0});var zc=O((Vc)=>{Object.defineProperty(Vc,"__esModule",{value:!0});Vc.contentVocabulary=Vc.metadataVocabulary=void 0;Vc.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Vc.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Dc=O((Lc)=>{Object.defineProperty(Lc,"__esModule",{value:!0});var SR0=kn(),gR0=Vp(),yR0=qc(),hR0=wc(),Xc=zc(),uR0=[SR0.default,gR0.default,(0,yR0.default)(),hR0.default,Xc.metadataVocabulary,Xc.contentVocabulary];Lc.default=uR0});var Mc=O((Fc)=>{Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DiscrError=void 0;var Oc;(function($){$.Tag="tag",$.Mapping="mapping"})(Oc||(Fc.DiscrError=Oc={}))});var Tc=O((Pc)=>{Object.defineProperty(Pc,"__esModule",{value:!0});var ZU=a0(),QE=Mc(),Ac=Yw(),kR0=lQ(),fR0=z1(),bR0={message:({params:{discrError:$,tagName:I}})=>$===QE.DiscrError.Tag?`tag "${I}" must be string`:`value of tag "${I}" must be in oneOf`,params:({params:{discrError:$,tag:I,tagName:U}})=>ZU._`{error: ${$}, tag: ${U}, tagValue: ${I}}`},iR0={keyword:"discriminator",type:"object",schemaType:"object",error:bR0,code($){let{gen:I,data:U,schema:Y,parentSchema:J,it:Q}=$,{oneOf:K}=J;if(!Q.opts.discriminator)throw Error("discriminator: requires discriminator option");let q=Y.propertyName;if(typeof q!="string")throw Error("discriminator: requires propertyName");if(Y.mapping)throw Error("discriminator: mapping is not supported");if(!K)throw Error("discriminator: requires oneOf keyword");let H=I.let("valid",!1),G=I.const("tag",ZU._`${U}${(0,ZU.getProperty)(q)}`);I.if(ZU._`typeof ${G} == "string"`,()=>W(),()=>$.error(!1,{discrError:QE.DiscrError.Tag,tag:G,tagName:q})),$.ok(H);function W(){let V=Z();I.if(!1);for(let X in V)I.elseIf(ZU._`${G} === ${X}`),I.assign(H,w(V[X]));I.else(),$.error(!1,{discrError:QE.DiscrError.Mapping,tag:G,tagName:q}),I.endIf()}function w(V){let X=I.name("valid"),L=$.subschema({keyword:"oneOf",schemaProp:V},X);return $.mergeEvaluated(L,ZU.Name),X}function Z(){var V;let X={},L=F(J),D=!0;for(let A=0;A{pR0.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var qE=O((l6,KE)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.MissingRefError=l6.ValidationError=l6.CodeGen=l6.Name=l6.nil=l6.stringify=l6.str=l6._=l6.KeywordCxt=l6.Ajv=void 0;var cR0=Rn(),dR0=Dc(),mR0=Tc(),Bc=Ec(),lR0=["/properties"],Mw="http://json-schema.org/draft-07/schema";class Q2 extends cR0.default{_addVocabularies(){if(super._addVocabularies(),dR0.default.forEach(($)=>this.addVocabulary($)),this.opts.discriminator)this.addKeyword(mR0.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let $=this.opts.$data?this.$dataMetaSchema(Bc,lR0):Bc;this.addMetaSchema($,Mw,!1),this.refs["http://json-schema.org/schema"]=Mw}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Mw)?Mw:void 0)}}l6.Ajv=Q2;KE.exports=l6=Q2;KE.exports.Ajv=Q2;Object.defineProperty(l6,"__esModule",{value:!0});l6.default=Q2;var oR0=mQ();Object.defineProperty(l6,"KeywordCxt",{enumerable:!0,get:function(){return oR0.KeywordCxt}});var zU=a0();Object.defineProperty(l6,"_",{enumerable:!0,get:function(){return zU._}});Object.defineProperty(l6,"str",{enumerable:!0,get:function(){return zU.str}});Object.defineProperty(l6,"stringify",{enumerable:!0,get:function(){return zU.stringify}});Object.defineProperty(l6,"nil",{enumerable:!0,get:function(){return zU.nil}});Object.defineProperty(l6,"Name",{enumerable:!0,get:function(){return zU.Name}});Object.defineProperty(l6,"CodeGen",{enumerable:!0,get:function(){return zU.CodeGen}});var rR0=Iw();Object.defineProperty(l6,"ValidationError",{enumerable:!0,get:function(){return rR0.default}});var tR0=lQ();Object.defineProperty(l6,"MissingRefError",{enumerable:!0,get:function(){return tR0.default}})});var uc=O((yc)=>{Object.defineProperty(yc,"__esModule",{value:!0});yc.formatNames=yc.fastFormats=yc.fullFormats=void 0;function F8($,I){return{validate:$,compare:I}}yc.fullFormats={date:F8(Cc,wE),time:F8(GE(!0),VE),"date-time":F8(vc(!0),Sc),"iso-time":F8(GE(),_c),"iso-date-time":F8(vc(),gc),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Jj0,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:wj0,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Qj0,int32:{type:"number",validate:Hj0},int64:{type:"number",validate:Gj0},float:{type:"number",validate:jc},double:{type:"number",validate:jc},password:!0,binary:!0};yc.fastFormats={...yc.fullFormats,date:F8(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,wE),time:F8(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,VE),"date-time":F8(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Sc),"iso-time":F8(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,_c),"iso-date-time":F8(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,gc),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};yc.formatNames=Object.keys(yc.fullFormats);function eR0($){return $%4===0&&($%100!==0||$%400===0)}var $j0=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Ij0=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Cc($){let I=$j0.exec($);if(!I)return!1;let U=+I[1],Y=+I[2],J=+I[3];return Y>=1&&Y<=12&&J>=1&&J<=(Y===2&&eR0(U)?29:Ij0[Y])}function wE($,I){if(!($&&I))return;if($>I)return 1;if($23||W>59||$&&!q)return!1;if(J<=23&&Q<=59&&K<60)return!0;let w=Q-W*H,Z=J-G*H-(w<0?1:0);return(Z===23||Z===-1)&&(w===59||w===-1)&&K<61}}function VE($,I){if(!($&&I))return;let U=new Date("2020-01-01T"+$).valueOf(),Y=new Date("2020-01-01T"+I).valueOf();if(!(U&&Y))return;return U-Y}function _c($,I){if(!($&&I))return;let U=HE.exec($),Y=HE.exec(I);if(!(U&&Y))return;if($=U[1]+U[2]+U[3],I=Y[1]+Y[2]+Y[3],$>I)return 1;if($=Kj0}function Gj0($){return Number.isInteger($)}function jc(){return!0}var Wj0=/[^\\]\\Z/;function wj0($){if(Wj0.test($))return!1;try{return new RegExp($),!0}catch(I){return!1}}});var kc=O((xc)=>{Object.defineProperty(xc,"__esModule",{value:!0});xc.formatLimitDefinition=void 0;var Zj0=qE(),s$=a0(),O9=s$.operators,Aw={formatMaximum:{okStr:"<=",ok:O9.LTE,fail:O9.GT},formatMinimum:{okStr:">=",ok:O9.GTE,fail:O9.LT},formatExclusiveMaximum:{okStr:"<",ok:O9.LT,fail:O9.GTE},formatExclusiveMinimum:{okStr:">",ok:O9.GT,fail:O9.LTE}},zj0={message:({keyword:$,schemaCode:I})=>s$.str`should be ${Aw[$].okStr} ${I}`,params:({keyword:$,schemaCode:I})=>s$._`{comparison: ${Aw[$].okStr}, limit: ${I}}`};xc.formatLimitDefinition={keyword:Object.keys(Aw),type:"string",schemaType:"string",$data:!0,error:zj0,code($){let{gen:I,data:U,schemaCode:Y,keyword:J,it:Q}=$,{opts:K,self:q}=Q;if(!K.validateFormats)return;let H=new Zj0.KeywordCxt(Q,q.RULES.all.format.definition,"format");if(H.$data)G();else W();function G(){let Z=I.scopeValue("formats",{ref:q.formats,code:K.code.formats}),V=I.const("fmt",s$._`${Z}[${H.schemaCode}]`);$.fail$data((0,s$.or)(s$._`typeof ${V} != "object"`,s$._`${V} instanceof RegExp`,s$._`typeof ${V}.compare != "function"`,w(V)))}function W(){let Z=H.schema,V=q.formats[Z];if(!V||V===!0)return;if(typeof V!="object"||V instanceof RegExp||typeof V.compare!="function")throw Error(`"${J}": format "${Z}" does not define "compare" function`);let X=I.scopeValue("formats",{key:Z,ref:V,code:K.code.formats?s$._`${K.code.formats}${(0,s$.getProperty)(Z)}`:void 0});$.fail$data(w(X))}function w(Z){return s$._`${Z}.compare(${U}, ${Y}) ${Aw[J].fail} 0`}},dependencies:["format"]};var Xj0=($)=>{return $.addKeyword(xc.formatLimitDefinition),$};xc.default=Xj0});var nc=O((K2,ic)=>{Object.defineProperty(K2,"__esModule",{value:!0});var XU=uc(),Dj0=kc(),XE=a0(),fc=new XE.Name("fullFormats"),Oj0=new XE.Name("fastFormats"),LE=($,I={keywords:!0})=>{if(Array.isArray(I))return bc($,I,XU.fullFormats,fc),$;let[U,Y]=I.mode==="fast"?[XU.fastFormats,Oj0]:[XU.fullFormats,fc],J=I.formats||XU.formatNames;if(bc($,J,U,Y),I.keywords)(0,Dj0.default)($);return $};LE.get=($,I="full")=>{let Y=(I==="fast"?XU.fastFormats:XU.fullFormats)[$];if(!Y)throw Error(`Unknown format "${$}"`);return Y};function bc($,I,U,Y){var J,Q;(J=(Q=$.opts.code).formats)!==null&&J!==void 0||(Q.formats=XE._`require("ajv-formats/dist/formats").${Y}`);for(let K of I)$.addFormat(K,U[K])}ic.exports=K2=LE;Object.defineProperty(K2,"__esModule",{value:!0});K2.default=LE});var X4=O((WA1,Xl)=>{var{toString:zl}=Object.prototype,xC0=/["&<>]/,V5={each:function(I,U){if(I)if(Array.isArray(I))I.forEach(U);else Object.keys(I).forEach((Y)=>{U(I[Y],Y)})},some:function(I,U){if(I){if(Array.isArray(I))return I.some(U);return Object.keys(I).some((Y)=>U(I[Y],Y))}return!1},every:function(I,U){if(I){if(Array.isArray(I))return I.every(U);return Object.keys(I).every((Y)=>U(I[Y],Y))}return!0},map:function(I,U){if(I){if(Array.isArray(I))return I.map(U);return Object.keys(I).map((Y)=>U(I[Y],Y))}return[]},keyBy($,I){return $.reduce((U,Y)=>{return U[Y[I]]=Y,U},{})},isEqual:function(I,U){let Y=typeof I,J=typeof U,Q=Array.isArray(I),K=Array.isArray(U),q;if(Y!==J)return!1;switch(typeof I){case"object":if(Q||K){if(Q&&K)return I.length===U.length&&I.every((H,G)=>{let W=U[G];return V5.isEqual(H,W)});return!1}if(I===null||U===null)return I===U;if(q=Object.keys(I),Object.keys(U).length!==q.length)return!1;for(let H of q)if(!U.hasOwnProperty(H))return!1;return V5.every(I,(H,G)=>{let W=U[G];return V5.isEqual(H,W)});default:return I===U}},escapeHtml($){let I=xC0.exec($);if(!I)return $;let U="",Y="",J=0,Q=I.index;for(;Q<$.length;Q++){switch($.charAt(Q)){case'"':Y=""";break;case"&":Y="&";break;case"'":Y="'";break;case"<":Y="<";break;case">":Y=">";break;default:continue}if(J!==Q)U+=$.substring(J,Q);J=Q+1,U+=Y}if(J!==Q)return U+$.substring(J,Q);return U},strcmp($,I){if($I)return 1;return 0},isUndefined($){return zl.call($)==="[object Undefined]"},isObject($){return zl.call($)==="[object Object]"},deepMerge(){let $=arguments[0]||{},{length:I}=arguments,U,Y,J;function Q(K,q){if(U=$[q],J=Array.isArray(K),V5.isObject(K)||J){if(J)J=!1,Y=U&&Array.isArray(U)?U:[];else Y=U&&V5.isObject(U)?U:{};$[q]=V5.deepMerge(Y,K)}else if(!V5.isUndefined(K))$[q]=K}for(let K=0;K{var kC0=/^[A-Z]+\d+$/,E2={_dictionary:["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"],_l2nFill:0,_l2n:{},_n2l:[],_level($){if($<=26)return 1;if($<=676)return 2;return 3},_fill($){let I,U,Y,J,Q,K=1;if($>=4)throw Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&$>=1){while(K<=26)I=this._dictionary[K-1],this._n2l[K]=I,this._l2n[I]=K,K++;this._l2nFill=1}if(this._l2nFill<2&&$>=2){K=27;while(K<=702)U=K-27,Y=U%26,J=Math.floor(U/26),I=this._dictionary[J]+this._dictionary[Y],this._n2l[K]=I,this._l2n[I]=K,K++;this._l2nFill=2}if(this._l2nFill<3&&$>=3){K=703;while(K<=16384)U=K-703,Y=U%26,J=Math.floor(U/26)%26,Q=Math.floor(U/676),I=this._dictionary[Q]+this._dictionary[J]+this._dictionary[Y],this._n2l[K]=I,this._l2n[I]=K,K++;this._l2nFill=3}},l2n($){if(!this._l2n[$])this._fill($.length);if(!this._l2n[$])throw Error(`Out of bounds. Invalid column letter: ${$}`);return this._l2n[$]},n2l($){if($<1||$>16384)throw Error(`${$} is out of bounds. Excel supports columns from 1 to 16384`);if(!this._n2l[$])this._fill(this._level($));return this._n2l[$]},_hash:{},validateAddress($){if(!kC0.test($))throw Error(`Invalid Address: ${$}`);return!0},decodeAddress($){let I=$.length<5&&this._hash[$];if(I)return I;let U=!1,Y="",J=0,Q=!1,K="",q=0;for(let G=0,W;G<$.length;G++)if(W=$.charCodeAt(G),!Q&&W>=65&&W<=90)U=!0,Y+=$[G],J=J*26+W-64;else if(W>=48&&W<=57)Q=!0,K+=$[G],q=q*10+W-48;else if(Q&&U&&W!==36)break;if(!U)J=void 0;else if(J>16384)throw Error(`Out of bounds. Invalid column letter: ${Y}`);if(!Q)q=void 0;$=Y+K;let H={address:$,col:J,row:q,$col$row:`$${Y}$${K}`};if(J<=100&&q<=100)this._hash[$]=H,this._hash[H.$col$row]=H;return H},getAddress($,I){if(I){let U=this.n2l(I)+$;return this.decodeAddress(U)}return this.decodeAddress($)},decode($){let I=$.split(":");if(I.length===2){let U=this.decodeAddress(I[0]),Y=this.decodeAddress(I[1]),J={top:Math.min(U.row,Y.row),left:Math.min(U.col,Y.col),bottom:Math.max(U.row,Y.row),right:Math.max(U.col,Y.col)};return J.tl=this.n2l(J.left)+J.top,J.br=this.n2l(J.right)+J.bottom,J.dimensions=`${J.tl}:${J.br}`,J}return this.decodeAddress($)},decodeEx($){let I=$.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),U=I[1]||I[2],Y=I[3],J=Y.split(":");if(J.length>1){let K=this.decodeAddress(J[0]),q=this.decodeAddress(J[1]),H=Math.min(K.row,q.row),G=Math.min(K.col,q.col),W=Math.max(K.row,q.row),w=Math.max(K.col,q.col);return K=this.n2l(G)+H,q=this.n2l(w)+W,{top:H,left:G,bottom:W,right:w,sheetName:U,tl:{address:K,col:G,row:H,$col$row:`$${this.n2l(G)}$${H}`,sheetName:U},br:{address:q,col:w,row:W,$col$row:`$${this.n2l(w)}$${W}`,sheetName:U},dimensions:`${K}:${q}`}}if(Y.startsWith("#"))return U?{sheetName:U,error:Y}:{error:Y};let Q=this.decodeAddress(Y);return U?{sheetName:U,...Q}:Q},encodeAddress($,I){return E2.n2l(I)+$},encode(){switch(arguments.length){case 2:return E2.encodeAddress(arguments[0],arguments[1]);case 4:return`${E2.encodeAddress(arguments[0],arguments[1])}:${E2.encodeAddress(arguments[2],arguments[3])}`;default:throw Error("Can only encode with 2 or 4 arguments")}},inRange($,I){let[U,Y,,J,Q]=$,[K,q]=I;return K>=U&&K<=J&&q>=Y&&q<=Q}};Ll.exports=E2});var Z5=O((VA1,Dl)=>{var A8=W4();class UB{constructor(){this.decode(arguments)}setTLBR($,I,U,Y,J){if(arguments.length<4){let Q=A8.decodeAddress($),K=A8.decodeAddress(I);this.model={top:Math.min(Q.row,K.row),left:Math.min(Q.col,K.col),bottom:Math.max(Q.row,K.row),right:Math.max(Q.col,K.col),sheetName:U},this.setTLBR(Q.row,Q.col,K.row,K.col,J)}else this.model={top:Math.min($,U),left:Math.min(I,Y),bottom:Math.max($,U),right:Math.max(I,Y),sheetName:J}}decode($){switch($.length){case 5:this.setTLBR($[0],$[1],$[2],$[3],$[4]);break;case 4:this.setTLBR($[0],$[1],$[2],$[3]);break;case 3:this.setTLBR($[0],$[1],$[2]);break;case 2:this.setTLBR($[0],$[1]);break;case 1:{let I=$[0];if(I instanceof UB)this.model={top:I.model.top,left:I.model.left,bottom:I.model.bottom,right:I.model.right,sheetName:I.sheetName};else if(I instanceof Array)this.decode(I);else if(I.top&&I.left&&I.bottom&&I.right)this.model={top:I.top,left:I.left,bottom:I.bottom,right:I.right,sheetName:I.sheetName};else{let U=A8.decodeEx(I);if(U.top)this.model={top:U.top,left:U.left,bottom:U.bottom,right:U.right,sheetName:U.sheetName};else this.model={top:U.row,left:U.col,bottom:U.row,right:U.col,sheetName:U.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw Error(`Invalid number of arguments to _getDimensions() - ${$.length}`)}}get top(){return this.model.top||1}set top($){this.model.top=$}get left(){return this.model.left||1}set left($){this.model.left=$}get bottom(){return this.model.bottom||1}set bottom($){this.model.bottom=$}get right(){return this.model.right||1}set right($){this.model.right=$}get sheetName(){return this.model.sheetName}set sheetName($){this.model.sheetName=$}get _serialisedSheetName(){let{sheetName:$}=this.model;if($){if(/^[a-zA-Z0-9]*$/.test($))return`${$}!`;return`'${$}'!`}return""}expand($,I,U,Y){if(!this.model.top||$this.bottom)this.bottom=U;if(!this.model.right||Y>this.right)this.right=Y}expandRow($){if($){let{dimensions:I,number:U}=$;if(I)this.expand(U,I.min,U,I.max)}}expandToAddress($){let I=A8.decodeEx($);this.expand(I.row,I.col,I.row,I.col)}get tl(){return A8.n2l(this.left)+this.top}get $t$l(){return`$${A8.n2l(this.left)}$${this.top}`}get br(){return A8.n2l(this.right)+this.bottom}get $b$r(){return`$${A8.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects($){if($.sheetName&&this.sheetName&&$.sheetName!==this.sheetName)return!1;if($.bottomthis.bottom)return!1;if($.rightthis.right)return!1;return!0}contains($){let I=A8.decodeEx($);return this.containsEx(I)}containsEx($){if($.sheetName&&this.sheetName&&$.sheetName!==this.sheetName)return!1;return $.row>=this.top&&$.row<=this.bottom&&$.col>=this.left&&$.col<=this.right}forEachAddress($){for(let I=this.left;I<=this.right;I++)for(let U=this.top;U<=this.bottom;U++)$(A8.encodeAddress(U,I),U,I)}}Dl.exports=UB});var I8=O((ZA1,Ol)=>{Ol.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}});var Nl=O((zA1,Fl)=>{var IV=W4(),fC0=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,bC0=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function iC0($,I,U){let Y=IV.decode(I),J=IV.decode(U);return $.replace(fC0,(Q,K,q,H,G)=>{if(G)return Q;let W=bC0.exec(H);if(W){let w=W[1],Z=W[2].toUpperCase(),V=W[3],X=W[4];if(Z.length>3||Z.length===3&&Z>"XFD")return Q;let L=IV.l2n(Z),D=parseInt(X,10);if(!w)L+=J.col-Y.col;if(!V)D+=J.row-Y.row;return(K||"")+(w||"")+IV.n2l(L)+(V||"")+D}return Q})}Fl.exports={slideFormula:iC0}});var Al=O((XA1,Ml)=>{var nC0=X4();class B2{constructor($){this.note=$}get model(){let $=null;switch(typeof this.note){case"string":$={type:"note",note:{texts:[{text:this.note}]}};break;default:$={type:"note",note:this.note};break}return nC0.deepMerge({},B2.DEFAULT_CONFIGS,$)}set model($){let{note:I}=$,{texts:U}=I;if(U.length===1&&Object.keys(U[0]).length===1)this.note=U[0].text;else this.note=I}static fromModel($){let I=new B2;return I.model=$,I}}B2.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[0.13,0.13,0.25,0.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}};Ml.exports=B2});var xl=O((LA1,ul)=>{var pC0=W4(),cC0=X4(),U8=I8(),{slideFormula:dC0}=Nl(),Pl=Al();class P0{constructor($,I,U){if(!$||!I)throw Error("A Cell needs a Row");this._row=$,this._column=I,pC0.validateAddress(U),this._address=U,this._value=A9.create(P0.Types.Null,this),this.style=this._mergeStyle($.style,I.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt($){this.style.numFmt=$}get font(){return this.style.font}set font($){this.style.font=$}get alignment(){return this.style.alignment}set alignment($){this.style.alignment=$}get border(){return this.style.border}set border($){this.style.border=$}get fill(){return this.style.fill}set fill($){this.style.fill=$}get protection(){return this.style.protection}set protection($){this.style.protection=$}_mergeStyle($,I,U){let Y=$&&$.numFmt||I&&I.numFmt;if(Y)U.numFmt=Y;let J=$&&$.font||I&&I.font;if(J)U.font=J;let Q=$&&$.alignment||I&&I.alignment;if(Q)U.alignment=Q;let K=$&&$.border||I&&I.border;if(K)U.border=K;let q=$&&$.fill||I&&I.fill;if(q)U.fill=q;let H=$&&$.protection||I&&I.protection;if(H)U.protection=H;return U}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===P0.Types.Merge}merge($,I){if(this._value.release(),this._value=A9.create(P0.Types.Merge,this,$),!I)this.style=$.style}unmerge(){if(this.type===P0.Types.Merge)this._value.release(),this._value=A9.create(P0.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{})}isMergedTo($){if(this._value.type!==P0.Types.Merge)return!1;return this._value.isMergedTo($)}get master(){if(this.type===P0.Types.Merge)return this._value.master;return this}get isHyperlink(){return this._value.type===P0.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value($){if(this.type===P0.Types.Merge){this._value.master.value=$;return}this._value.release(),this._value=A9.create(A9.getType($),this,$)}get note(){return this._comment&&this._comment.note}set note($){this._comment=new Pl($)}get text(){return this._value.toString()}get html(){return cC0.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink($){if(this.type===P0.Types.String)this._value=A9.create(P0.Types.Hyperlink,this,{text:this._value.value,hyperlink:$})}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:$}=this._row;return{sheetName:$.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name($){this.names=[$]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names($){let{definedNames:I}=this.workbook;I.removeAllNames(this.fullAddress),$.forEach((U)=>{I.addEx(this.fullAddress,U)})}addName($){this.workbook.definedNames.addEx(this.fullAddress,$)}removeName($){this.workbook.definedNames.removeEx(this.fullAddress,$)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation($){this._dataValidations.add(this.address,$)}get model(){let{model:$}=this._value;if($.style=this.style,this._comment)$.comment=this._comment.model;return $}set model($){if(this._value.release(),this._value=A9.create($.type,this),this._value.model=$,$.comment)switch($.comment.type){case"note":this._comment=Pl.fromModel($.comment);break}if($.style)this.style=$.style;else this.style={}}}P0.Types=U8.ValueType;class Tl{constructor($){this.model={address:$.address,type:P0.Types.Null}}get value(){return null}set value($){}get type(){return P0.Types.Null}get effectiveType(){return P0.Types.Null}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return""}release(){}toString(){return""}}class El{constructor($,I){this.model={address:$.address,type:P0.Types.Number,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Number}get effectiveType(){return P0.Types.Number}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class Bl{constructor($,I){this.model={address:$.address,type:P0.Types.String,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.String}get effectiveType(){return P0.Types.String}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class vl{constructor($,I){this.model={address:$.address,type:P0.Types.String,value:I}}get value(){return this.model.value}set value($){this.model.value=$}toString(){return this.model.value.richText.map(($)=>$.text).join("")}get type(){return P0.Types.RichText}get effectiveType(){return P0.Types.RichText}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class Rl{constructor($,I){this.model={address:$.address,type:P0.Types.Date,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Date}get effectiveType(){return P0.Types.Date}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class jl{constructor($,I){if(this.model={address:$.address,type:P0.Types.Hyperlink,text:I?I.text:void 0,hyperlink:I?I.hyperlink:void 0},I&&I.tooltip)this.model.tooltip=I.tooltip}get value(){let $={text:this.model.text,hyperlink:this.model.hyperlink};if(this.model.tooltip)$.tooltip=this.model.tooltip;return $}set value($){if(this.model={text:$.text,hyperlink:$.hyperlink},$.tooltip)this.model.tooltip=$.tooltip}get text(){return this.model.text}set text($){this.model.text=$}get hyperlink(){return this.model.hyperlink}set hyperlink($){this.model.hyperlink=$}get type(){return P0.Types.Hyperlink}get effectiveType(){return P0.Types.Hyperlink}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class Cl{constructor($,I){if(this.model={address:$.address,type:P0.Types.Merge,master:I?I.address:void 0},this._master=I,I)I.addMergeRef()}get value(){return this._master.value}set value($){if($ instanceof P0){if(this._master)this._master.releaseMergeRef();$.addMergeRef(),this._master=$}else this._master.value=$}isMergedTo($){return $===this._master}get master(){return this._master}get type(){return P0.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class _l{constructor($,I){this.cell=$,this.model={address:$.address,type:P0.Types.Formula,shareType:I?I.shareType:void 0,ref:I?I.ref:void 0,formula:I?I.formula:void 0,sharedFormula:I?I.sharedFormula:void 0,result:I?I.result:void 0}}_copyModel($){let I={},U=(Y)=>{let J=$[Y];if(J)I[Y]=J};return U("formula"),U("result"),U("ref"),U("shareType"),U("sharedFormula"),I}get value(){return this._copyModel(this.model)}set value($){this.model=this._copyModel($)}validate($){switch(A9.getType($)){case P0.Types.Null:case P0.Types.String:case P0.Types.Number:case P0.Types.Date:break;case P0.Types.Hyperlink:case P0.Types.Formula:default:throw Error("Cannot process that type of result value")}}get dependencies(){let $=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),I=this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);return{ranges:$,cells:I}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula($){this.model.formula=$}get formulaType(){if(this.model.formula)return U8.FormulaType.Master;if(this.model.sharedFormula)return U8.FormulaType.Shared;return U8.FormulaType.None}get result(){return this.model.result}set result($){this.model.result=$}get type(){return P0.Types.Formula}get effectiveType(){let $=this.model.result;if($===null||$===void 0)return U8.ValueType.Null;if($ instanceof String||typeof $==="string")return U8.ValueType.String;if(typeof $==="number")return U8.ValueType.Number;if($ instanceof Date)return U8.ValueType.Date;if($.text&&$.hyperlink)return U8.ValueType.Hyperlink;if($.formula)return U8.ValueType.Formula;return U8.ValueType.Null}get address(){return this.model.address}set address($){this.model.address=$}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:$}=this.cell,I=$.findCell(this.model.sharedFormula);this._translatedFormula=I&&dC0(I.formula,I.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class Sl{constructor($,I){this.model={address:$.address,type:P0.Types.SharedString,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.SharedString}get effectiveType(){return P0.Types.SharedString}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class gl{constructor($,I){this.model={address:$.address,type:P0.Types.Boolean,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Boolean}get effectiveType(){return P0.Types.Boolean}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class yl{constructor($,I){this.model={address:$.address,type:P0.Types.Error,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Error}get effectiveType(){return P0.Types.Error}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class hl{constructor($,I){this.model={address:$.address,type:P0.Types.String,value:JSON.stringify(I),rawValue:I}}get value(){return this.model.rawValue}set value($){this.model.rawValue=$,this.model.value=JSON.stringify($)}get type(){return P0.Types.String}get effectiveType(){return P0.Types.String}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}var A9={getType($){if($===null||$===void 0)return P0.Types.Null;if($ instanceof String||typeof $==="string")return P0.Types.String;if(typeof $==="number")return P0.Types.Number;if(typeof $==="boolean")return P0.Types.Boolean;if($ instanceof Date)return P0.Types.Date;if($.text&&$.hyperlink)return P0.Types.Hyperlink;if($.formula||$.sharedFormula)return P0.Types.Formula;if($.richText)return P0.Types.RichText;if($.sharedString)return P0.Types.SharedString;if($.error)return P0.Types.Error;return P0.Types.JSON},types:[{t:P0.Types.Null,f:Tl},{t:P0.Types.Number,f:El},{t:P0.Types.String,f:Bl},{t:P0.Types.Date,f:Rl},{t:P0.Types.Hyperlink,f:jl},{t:P0.Types.Formula,f:_l},{t:P0.Types.Merge,f:Cl},{t:P0.Types.JSON,f:hl},{t:P0.Types.SharedString,f:Sl},{t:P0.Types.RichText,f:vl},{t:P0.Types.Boolean,f:gl},{t:P0.Types.Error,f:yl}].reduce(($,I)=>{return $[I.t]=I.f,$},[]),create($,I,U){let Y=this.types[$];if(!Y)throw Error(`Could not create Value of type ${$}`);return new Y(I,U)}};ul.exports=P0});var YV=O((DA1,bl)=>{var mC0=X4(),UV=I8(),c7=W4(),kl=xl();class fl{constructor($,I){this._worksheet=$,this._number=I,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell($){return this._cells[$-1]}getCellEx($){let I=this._cells[$.col-1];if(!I){let U=this._worksheet.getColumn($.col);I=new kl(this,U,$.address),this._cells[$.col-1]=I}return I}getCell($){if(typeof $==="string"){let I=this._worksheet.getColumnKey($);if(I)$=I.number;else $=c7.l2n($)}return this._cells[$-1]||this.getCellEx({address:c7.encodeAddress(this._number,$),row:this._number,col:$})}splice($,I,...U){let Y=$+I,J=U.length-I,Q=this._cells.length,K,q,H;if(J<0){for(K=$+U.length;K<=Q;K++)if(H=this._cells[K-1],q=this._cells[K-J-1],q)H=this.getCell(K),H.value=q.value,H.style=q.style,H._comment=q._comment;else if(H)H.value=null,H.style={},H._comment=void 0}else if(J>0)for(K=Q;K>=Y;K--)if(q=this._cells[K-1],q)H=this.getCell(K+J),H.value=q.value,H.style=q.style,H._comment=q._comment;else this._cells[K+J-1]=void 0;for(K=0;K{if(U&&U.type!==UV.ValueType.Null)I(U,Y+1)})}addPageBreak($,I){let U=this._worksheet,Y=Math.max(0,$-1)||0,J=Math.max(0,I-1)||16838,Q={id:this._number,max:J,man:1};if(Y)Q.min=Y;U.rowBreaks.push(Q)}get values(){let $=[];return this._cells.forEach((I)=>{if(I&&I.type!==UV.ValueType.Null)$[I.col]=I.value}),$}set values($){if(this._cells=[],!$);else if($ instanceof Array){let I=0;if($.hasOwnProperty("0"))I=1;$.forEach((U,Y)=>{if(U!==void 0)this.getCellEx({address:c7.encodeAddress(this._number,Y+I),row:this._number,col:Y+I}).value=U})}else this._worksheet.eachColumnKey((I,U)=>{if($[U]!==void 0)this.getCellEx({address:c7.encodeAddress(this._number,I.number),row:this._number,col:I.number}).value=$[U]})}get hasValues(){return mC0.some(this._cells,($)=>$&&$.type!==UV.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let $=0;return this.eachCell(()=>{$++}),$}get dimensions(){let $=0,I=0;return this._cells.forEach((U)=>{if(U&&U.type!==UV.ValueType.Null){if(!$||$>U.col)$=U.col;if(I0?{min:$,max:I}:null}_applyStyle($,I){return this.style[$]=I,this._cells.forEach((U)=>{if(U)U[$]=I}),I}get numFmt(){return this.style.numFmt}set numFmt($){this._applyStyle("numFmt",$)}get font(){return this.style.font}set font($){this._applyStyle("font",$)}get alignment(){return this.style.alignment}set alignment($){this._applyStyle("alignment",$)}get protection(){return this.style.protection}set protection($){this._applyStyle("protection",$)}get border(){return this.style.border}set border($){this._applyStyle("border",$)}get fill(){return this.style.fill}set fill($){this._applyStyle("fill",$)}get hidden(){return!!this._hidden}set hidden($){this._hidden=$}get outlineLevel(){return this._outlineLevel||0}set outlineLevel($){this._outlineLevel=$}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let $=[],I=0,U=0;return this._cells.forEach((Y)=>{if(Y){let J=Y.model;if(J){if(!I||I>Y.col)I=Y.col;if(U{switch(U.type){case kl.Types.Merge:break;default:{let Y;if(U.address)Y=c7.decodeAddress(U.address);else if(I){let{row:Q}=I,K=I.col+1;Y={row:Q,col:K,address:c7.encodeAddress(Q,K),$col$row:`$${c7.n2l(K)}$${Q}`}}I=Y;let J=this.getCellEx(Y);J.model=U;break}}}),$.height)this.height=$.height;else delete this.height;this.hidden=$.hidden,this.outlineLevel=$.outlineLevel||0,this.style=$.style&&JSON.parse(JSON.stringify($.style))||{}}}bl.exports=fl});var QV=O((OA1,il)=>{var lC0=X4(),oC0=I8(),rC0=W4();class JV{constructor($,I,U){if(this._worksheet=$,this._number=I,U!==!1)this.defn=U}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return rC0.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn($){if($){if(this.key=$.key,this.width=$.width!==void 0?$.width:9,this.outlineLevel=$.outlineLevel,$.style)this.style=$.style;else this.style={};this.header=$.header,this._hidden=!!$.hidden}else delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header($){if($!==void 0)this._header=$,this.headers.forEach((I,U)=>{this._worksheet.getCell(U+1,this.number).value=I});else this._header=void 0}get key(){return this._key}set key($){if((this._key&&this._worksheet.getColumnKey(this._key))===this)this._worksheet.deleteColumnKey(this._key);if(this._key=$,$)this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden($){this._hidden=$}get outlineLevel(){return this._outlineLevel||0}set outlineLevel($){this._outlineLevel=$}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo($){return this.width===$.width&&this.hidden===$.hidden&&this.outlineLevel===$.outlineLevel&&lC0.isEqual(this.style,$.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;let $=this.style;if($&&($.font||$.numFmt||$.alignment||$.border||$.fill||$.protection))return!1;return!0}get headerCount(){return this.headers.length}eachCell($,I){let U=this.number;if(!I)I=$,$=null;this._worksheet.eachRow($,(Y,J)=>{I(Y.getCell(U),J)})}get values(){let $=[];return this.eachCell((I,U)=>{if(I&&I.type!==oC0.ValueType.Null)$[U]=I.value}),$}set values($){if(!$)return;let I=this.number,U=0;if($.hasOwnProperty("0"))U=1;$.forEach((Y,J)=>{this._worksheet.getCell(J+U,I).value=Y})}_applyStyle($,I){return this.style[$]=I,this.eachCell((U)=>{U[$]=I}),I}get numFmt(){return this.style.numFmt}set numFmt($){this._applyStyle("numFmt",$)}get font(){return this.style.font}set font($){this._applyStyle("font",$)}get alignment(){return this.style.alignment}set alignment($){this._applyStyle("alignment",$)}get protection(){return this.style.protection}set protection($){this._applyStyle("protection",$)}get border(){return this.style.border}set border($){this._applyStyle("border",$)}get fill(){return this.style.fill}set fill($){this._applyStyle("fill",$)}static toModel($){let I=[],U=null;if($)$.forEach((Y,J)=>{if(Y.isDefault){if(U)U=null}else if(!U||!Y.equivalentTo(U))U={min:J+1,max:J+1,width:Y.width!==void 0?Y.width:9,style:Y.style,isCustomWidth:Y.isCustomWidth,hidden:Y.hidden,outlineLevel:Y.outlineLevel,collapsed:Y.collapsed},I.push(U);else U.max=J+1});return I.length?I:void 0}static fromModel($,I){I=I||[];let U=[],Y=1,J=0;I=I.sort(function(Q,K){return Q.min-K.min});while(J{var tC0=W4();class KV{constructor($,I,U=0){if(this.worksheet=$,!I)this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;else if(typeof I==="string"){let Y=tC0.decodeAddress(I);this.nativeCol=Y.col+U,this.nativeColOff=0,this.nativeRow=Y.row+U,this.nativeRowOff=0}else if(I.nativeCol!==void 0)this.nativeCol=I.nativeCol||0,this.nativeColOff=I.nativeColOff||0,this.nativeRow=I.nativeRow||0,this.nativeRowOff=I.nativeRowOff||0;else if(I.col!==void 0)this.col=I.col+U,this.row=I.row+U;else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance($){return $ instanceof KV||$==null?$:new KV($)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col($){this.nativeCol=Math.floor($),this.nativeColOff=Math.floor(($-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row($){this.nativeRow=Math.floor($),this.nativeRowOff=Math.floor(($-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):640000}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):180000}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model($){this.nativeCol=$.nativeCol,this.nativeColOff=$.nativeColOff,this.nativeRow=$.nativeRow,this.nativeRowOff=$.nativeRowOff}}nl.exports=KV});var ml=O((NA1,dl)=>{var aC0=W4(),qV=pl();class cl{constructor($,I){this.worksheet=$,this.model=I}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw Error("Invalid Image Type")}}set model({type:$,imageId:I,range:U,hyperlinks:Y}){if(this.type=$,this.imageId=I,$==="image")if(typeof U==="string"){let J=aC0.decode(U);this.range={tl:new qV(this.worksheet,{col:J.left,row:J.top},-1),br:new qV(this.worksheet,{col:J.right,row:J.bottom},0),editAs:"oneCell"}}else this.range={tl:new qV(this.worksheet,U.tl,0),br:U.br&&new qV(this.worksheet,U.br,0),ext:U.ext,editAs:U.editAs,hyperlinks:Y||U.hyperlinks}}}dl.exports=cl});var tl=O((MA1,rl)=>{var HV=W4();class ll{constructor($,I,U){this.table=$,this.column=I,this.index=U}_set($,I){this.table.cacheState(),this.column[$]=I}get name(){return this.column.name}set name($){this._set("name",$)}get filterButton(){return this.column.filterButton}set filterButton($){this.column.filterButton=$}get style(){return this.column.style}set style($){this.column.style=$}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel($){this._set("totalsRowLabel",$)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction($){this._set("totalsRowFunction",$)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult($){this._set("totalsRowResult",$)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula($){this._set("totalsRowFormula",$)}}class ol{constructor($,I){if(this.worksheet=$,I)this.table=I,this.validate(),this.store()}getFormula($){switch($.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${$.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${$.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${$.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${$.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${$.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${$.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${$.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${$.name}])`;case"custom":return $.totalsRowFormula;default:throw Error(`Invalid Totals Row Function: ${$.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:$}=this,I=(H,G,W)=>{if(H[G]===void 0)H[G]=W};I($,"headerRow",!0),I($,"totalsRow",!1),I($,"style",{}),I($.style,"theme","TableStyleMedium2"),I($.style,"showFirstColumn",!1),I($.style,"showLastColumn",!1),I($.style,"showRowStripes",!1),I($.style,"showColumnStripes",!1);let U=(H,G)=>{if(!H)throw Error(G)};U($.ref,"Table must have ref"),U($.columns,"Table must have column definitions"),U($.rows,"Table must have row definitions"),$.tl=HV.decodeAddress($.ref);let{row:Y,col:J}=$.tl;U(Y>0,"Table must be on valid row"),U(J>0,"Table must be on valid col");let{width:Q,filterHeight:K,tableHeight:q}=this;$.autoFilterRef=HV.encode(Y,J,Y+K-1,J+Q-1),$.tableRef=HV.encode(Y,J,Y+q-1,J+Q-1),$.columns.forEach((H,G)=>{if(U(H.name,`Column ${G} must have a name`),G===0)I(H,"totalsRowLabel","Total");else I(H,"totalsRowFunction","none"),H.totalsRowFormula=this.getFormula(H)})}store(){let $=(K,q)=>{if(q)Object.keys(q).forEach((H)=>{K[H]=q[H]})},{worksheet:I,table:U}=this,{row:Y,col:J}=U.tl,Q=0;if(U.headerRow){let K=I.getRow(Y+Q++);U.columns.forEach((q,H)=>{let{style:G,name:W}=q,w=K.getCell(J+H);w.value=W,$(w,G)})}if(U.rows.forEach((K)=>{let q=I.getRow(Y+Q++);K.forEach((H,G)=>{let W=q.getCell(J+G);W.value=H,$(W,U.columns[G].style)})}),U.totalsRow){let K=I.getRow(Y+Q++);U.columns.forEach((q,H)=>{let G=K.getCell(J+H);if(H===0)G.value=q.totalsRowLabel;else if(this.getFormula(q))G.value={formula:q.totalsRowFormula,result:q.totalsRowResult};else G.value=null;$(G,q.style)})}}load($){let{table:I}=this,{row:U,col:Y}=I.tl,J=0;if(I.headerRow){let Q=$.getRow(U+J++);I.columns.forEach((K,q)=>{let H=Q.getCell(Y+q);H.value=K.name})}if(I.rows.forEach((Q)=>{let K=$.getRow(U+J++);Q.forEach((q,H)=>{let G=K.getCell(Y+H);G.value=q})}),I.totalsRow){let Q=$.getRow(U+J++);I.columns.forEach((K,q)=>{let H=Q.getCell(Y+q);if(q===0)H.value=K.totalsRowLabel;else if(this.getFormula(K))H.value={formula:K.totalsRowFormula,result:K.totalsRowResult}})}}get model(){return this.table}set model($){this.table=$}cacheState(){if(!this._cache)this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}commit(){if(!this._cache)return;this.validate();let $=HV.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let I=0;I{Y.push(I[J])});else this.table.columns.splice(U,0,$),this.table.rows.forEach((Y,J)=>{Y.splice(U,0,I[J])})}removeColumns($,I=1){this.cacheState(),this.table.columns.splice($,I),this.table.rows.forEach((U)=>{U.splice($,I)})}_assign($,I,U){this.cacheState(),$[I]=U}get ref(){return this.table.ref}set ref($){this._assign(this.table,"ref",$)}get name(){return this.table.name}set name($){this.table.name=$}get displayName(){return this.table.displyName||this.table.name}set displayNamename($){this.table.displayName=$}get headerRow(){return this.table.headerRow}set headerRow($){this._assign(this.table,"headerRow",$)}get totalsRow(){return this.table.totalsRow}set totalsRow($){this._assign(this.table,"totalsRow",$)}get theme(){return this.table.style.name}set theme($){this.table.style.name=$}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn($){this.table.style.showFirstColumn=$}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn($){this.table.style.showLastColumn=$}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes($){this.table.style.showRowStripes=$}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes($){this.table.style.showColumnStripes=$}}rl.exports=ol});var YB=O((AA1,sl)=>{class al{constructor($){this.model=$||{}}add($,I){return this.model[$]=I}find($){return this.model[$]}remove($){this.model[$]=void 0}}sl.exports=al});var QB=O((PA1,el)=>{var JB=t("crypto"),sC0={hash($,...I){let U=JB.createHash($);return U.update(Buffer.concat(I)),U.digest()},convertPasswordToHash($,I,U,Y){if(I=I.toLowerCase(),JB.getHashes().indexOf(I)<0)throw Error(`Hash algorithm '${I}' not supported!`);let Q=Buffer.from($,"utf16le"),K=this.hash(I,Buffer.from(U,"base64"),Q);for(let q=0;q{var $o=($,I)=>({...$,...I.reduce((U,Y)=>{if($[Y])U[Y]={...$[Y]};return U},{})}),P8=($,I,U,Y=[])=>{if($[U])I[U]=$o($[U],Y)},eC0=($)=>Object.keys($).length===0,$_0=($)=>{if(!$)return $;if(eC0($))return{};let I={...$};if(P8($,I,"font",["color"]),P8($,I,"alignment"),P8($,I,"protection"),$.border)P8($,I,"border"),P8($.border,I.border,"top",["color"]),P8($.border,I.border,"left",["color"]),P8($.border,I.border,"bottom",["color"]),P8($.border,I.border,"right",["color"]),P8($.border,I.border,"diagonal",["color"]);if($.fill){if(P8($,I,"fill",["fgColor","bgColor","center"]),$.fill.stops)I.fill.stops=$.fill.stops.map((U)=>$o(U,["color"]))}return I};I_0.copyStyle=$_0});var Go=O((EA1,Ho)=>{var v2=X4(),R2=W4(),j2=Z5(),Uo=YV(),GV=QV(),Y_0=I8(),KB=ml(),Yo=tl(),Jo=YB(),Qo=QB(),{copyStyle:Ko}=Io();class qo{constructor($){$=$||{},this._workbook=$.workbook,this.id=$.id,this.orderNo=$.orderNo,this.name=$.name,this.state=$.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},$.properties),this.pageSetup=Object.assign({},{margins:{left:0.7,right:0.7,top:0.75,bottom:0.75,header:0.3,footer:0.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!($.pageSetup&&($.pageSetup.fitToWidth||$.pageSetup.fitToHeight)&&!$.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},$.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},$.headerFooter),this.dataValidations=new Jo,this.views=$.views||[],this.autoFilter=$.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name($){if($===void 0)$=`sheet${this.id}`;if(this._name===$)return;if(typeof $!=="string")throw Error("The name has to be a string.");if($==="")throw Error("The name can't be empty.");if($==="History")throw Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test($))throw Error(`Worksheet name ${$} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test($))throw Error(`The first or last character of worksheet name cannot be a single quotation mark: ${$}`);if($&&$.length>31)console.warn(`Worksheet name ${$} exceeds 31 chars. This will be truncated`),$=$.substring(0,31);if(this._workbook._worksheets.find((I)=>I&&I.name.toLowerCase()===$.toLowerCase()))throw Error(`Worksheet name already exists: ${$}`);this._name=$}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let $=new j2;return this._rows.forEach((I)=>{if(I){let U=I.dimensions;if(U)$.expand(I.number,U.min,I.number,U.max)}}),$}get columns(){return this._columns}set columns($){this._headerRowCount=$.reduce((Y,J)=>{let Q=J.header&&1||J.headers&&J.headers.length||0;return Math.max(Y,Q)},0);let I=1,U=this._columns=[];$.forEach((Y)=>{let J=new GV(this,I++,!1);U.push(J),J.defn=Y})}getColumnKey($){return this._keys[$]}setColumnKey($,I){this._keys[$]=I}deleteColumnKey($){delete this._keys[$]}eachColumnKey($){v2.each(this._keys,$)}getColumn($){if(typeof $==="string"){let I=this._keys[$];if(I)return I;$=R2.l2n($)}if(!this._columns)this._columns=[];if($>this._columns.length){let I=this._columns.length+1;while(I<=$)this._columns.push(new GV(this,I++))}return this._columns[$-1]}spliceColumns($,I,...U){let J=this._rows.length;if(U.length>0)for(let H=0;H{G.push(w[H]||null)});let W=this.getRow(H+1);W.splice.apply(W,G)}else this._rows.forEach((H)=>{if(H)H.splice($,I)});let Q=U.length-I,K=$+I,q=this._columns.length;if(Q<0)for(let H=$+U.length;H<=q;H++)this.getColumn(H).defn=this.getColumn(H-Q).defn;else if(Q>0)for(let H=q;H>=K;H--)this.getColumn(H+Q).defn=this.getColumn(H).defn;for(let H=$;H<$+U.length;H++)this.getColumn(H).defn=null;this.workbook.definedNames.spliceColumns(this.name,$,I,U.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let $=0;return this.eachRow((I)=>{$=Math.max($,I.cellCount)}),$}get actualColumnCount(){let $=[],I=0;return this.eachRow((U)=>{U.eachCell(({col:Y})=>{if(!$[Y])$[Y]=!0,I++})}),I}_commitRow(){}get _lastRowNumber(){let $=this._rows,I=$.length;while(I>0&&$[I-1]===void 0)I--;return I}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1];return}findRow($){return this._rows[$-1]}findRows($,I){return this._rows.slice($-1,$-1+I)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let $=0;return this.eachRow(()=>{$++}),$}getRow($){let I=this._rows[$-1];if(!I)I=this._rows[$-1]=new Uo(this,$);return I}getRows($,I){if(I<1)return;let U=[];for(let Y=$;Y<$+I;Y++)U.push(this.getRow(Y));return U}addRow($,I="n"){let U=this._nextRow,Y=this.getRow(U);return Y.values=$,this._setStyleOption(U,I[0]==="i"?I:"n"),Y}addRows($,I="n"){let U=[];return $.forEach((Y)=>{U.push(this.addRow(Y,I))}),U}insertRow($,I,U="n"){return this.spliceRows($,0,I),this._setStyleOption($,U),this.getRow($)}insertRows($,I,U="n"){if(this.spliceRows($,0,...I),U!=="n"){for(let Y=0;Y{J.getCell(K).style=Ko(Q.style)}),J.height=Y.height}duplicateRow($,I,U=!1){let Y=this._rows[$-1],J=Array(I).fill(Y.values);this.spliceRows($+1,U?0:I,...J);for(let Q=0;Q{K.getCell(H).style=q.style})}}spliceRows($,I,...U){let Y=$+I,J=U.length,Q=J-I,K=this._rows.length,q,H;if(Q<0){if($===K)this._rows[K-1]=void 0;for(q=Y;q<=K;q++)if(H=this._rows[q-1],H){let G=this.getRow(q+Q);G.values=H.values,G.style=H.style,G.height=H.height,H.eachCell({includeEmpty:!0},(W,w)=>{G.getCell(w).style=W.style}),this._rows[q-1]=void 0}else this._rows[q+Q-1]=void 0}else if(Q>0)for(q=K;q>=Y;q--)if(H=this._rows[q-1],H){let G=this.getRow(q+Q);G.values=H.values,G.style=H.style,G.height=H.height,H.eachCell({includeEmpty:!0},(W,w)=>{if(G.getCell(w).style=W.style,W._value.constructor.name==="MergeValue"){let Z=this.getRow(W._row._number+J).getCell(w),V=W._value._master,X=this.getRow(V._row._number+J).getCell(V._column._number);Z.merge(X)}})}else this._rows[q+Q-1]=void 0;for(q=0;q{if(U&&U.hasValues)I(U,U.number)})}getSheetValues(){let $=[];return this._rows.forEach((I)=>{if(I)$[I.number]=I.values}),$}findCell($,I){let U=R2.getAddress($,I),Y=this._rows[U.row-1];return Y?Y.findCell(U.col):void 0}getCell($,I){let U=R2.getAddress($,I);return this.getRow(U.row).getCellEx(U)}mergeCells(...$){let I=new j2($);this._mergeCellsInternal(I)}mergeCellsWithoutStyle(...$){let I=new j2($);this._mergeCellsInternal(I,!0)}_mergeCellsInternal($,I){v2.each(this._merges,(Y)=>{if(Y.intersects($))throw Error("Cannot merge already merged cells")});let U=this.getCell($.top,$.left);for(let Y=$.top;Y<=$.bottom;Y++)for(let J=$.left;J<=$.right;J++)if(Y>$.top||J>$.left)this.getCell(Y,J).merge(U,I);this._merges[U.address]=$}_unMergeMaster($){let I=this._merges[$.address];if(I){for(let U=I.top;U<=I.bottom;U++)for(let Y=I.left;Y<=I.right;Y++)this.getCell(U,Y).unmerge();delete this._merges[$.address]}}get hasMerges(){return v2.some(this._merges,Boolean)}unMergeCells(...$){let I=new j2($);for(let U=I.top;U<=I.bottom;U++)for(let Y=I.left;Y<=I.right;Y++){let J=this.findCell(U,Y);if(J){if(J.type===Y_0.ValueType.Merge)this._unMergeMaster(J.master);else if(this._merges[J.address])this._unMergeMaster(J)}}}fillFormula($,I,U,Y="shared"){let J=R2.decode($),{top:Q,left:K,bottom:q,right:H}=J,G=H-K+1,W=R2.encodeAddress(Q,K),w=Y==="shared",Z;if(typeof U==="function")Z=U;else if(Array.isArray(U))if(Array.isArray(U[0]))Z=(X,L)=>U[X-Q][L-K];else Z=(X,L)=>U[(X-Q)*G+(L-K)];else Z=()=>{return};let V=!0;for(let X=Q;X<=q;X++)for(let L=K;L<=H;L++)if(V)this.getCell(X,L).value={shareType:Y,formula:I,ref:$,result:Z(X,L)},V=!1;else this.getCell(X,L).value=w?{sharedFormula:W,result:Z(X,L)}:Z(X,L)}addImage($,I){let U={type:"image",imageId:$,range:I};this._media.push(new KB(this,U))}getImages(){return this._media.filter(($)=>$.type==="image")}addBackgroundImage($){let I={type:"background",imageId:$};this._media.push(new KB(this,I))}getBackgroundImageId(){let $=this._media.find((I)=>I.type==="background");return $&&$.imageId}protect($,I){return new Promise((U)=>{if(this.sheetProtection={sheet:!0},I&&"spinCount"in I)I.spinCount=Number.isFinite(I.spinCount)?Math.round(Math.max(0,I.spinCount)):1e5;if($)this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=Qo.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=I&&"spinCount"in I?I.spinCount:1e5,this.sheetProtection.hashValue=Qo.convertPasswordToHash($,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount);if(I){if(this.sheetProtection=Object.assign(this.sheetProtection,I),!$&&"spinCount"in I)delete this.sheetProtection.spinCount}U()})}unprotect(){this.sheetProtection=null}addTable($){let I=new Yo(this,$);return this.tables[$.name]=I,I}getTable($){return this.tables[$]}removeTable($){delete this.tables[$]}getTables(){return Object.values(this.tables)}addConditionalFormatting($){this.conditionalFormattings.push($)}removeConditionalFormatting($){if(typeof $==="number")this.conditionalFormattings.splice($,1);else if($ instanceof Function)this.conditionalFormattings=this.conditionalFormattings.filter($);else this.conditionalFormattings=[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor($){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=$}get model(){let $={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((Y)=>Y.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((Y)=>Y.model),conditionalFormattings:this.conditionalFormattings};$.cols=GV.toModel(this.columns);let I=$.rows=[],U=$.dimensions=new j2;return this._rows.forEach((Y)=>{let J=Y&&Y.model;if(J)U.expand(J.number,J.min,J.number,J.max),I.push(J)}),$.merges=[],v2.each(this._merges,(Y)=>{$.merges.push(Y.range)}),$}_parseRows($){this._rows=[],$.rows.forEach((I)=>{let U=new Uo(this,I.number);this._rows[U.number-1]=U,U.model=I})}_parseMergeCells($){v2.each($.mergeCells,(I)=>{this.mergeCellsWithoutStyle(I)})}set model($){this.name=$.name,this._columns=GV.fromModel(this,$.cols),this._parseRows($),this._parseMergeCells($),this.dataValidations=new Jo($.dataValidations),this.properties=$.properties,this.pageSetup=$.pageSetup,this.headerFooter=$.headerFooter,this.views=$.views,this.autoFilter=$.autoFilter,this._media=$.media.map((I)=>new KB(this,I)),this.sheetProtection=$.sheetProtection,this.tables=$.tables.reduce((I,U)=>{let Y=new Yo;return Y.model=U,I[U.name]=Y,I},{}),this.conditionalFormattings=$.conditionalFormattings}}Ho.exports=qo});var Zo=O((BA1,Vo)=>{var Wo=X4(),WV=W4();class wo{constructor($){this.template=$,this.sheets={}}addCell($){this.addCellEx(WV.decodeEx($))}getCell($){return this.findCellEx(WV.decodeEx($),!0)}findCell($){return this.findCellEx(WV.decodeEx($),!1)}findCellAt($,I,U){let Y=this.sheets[$],J=Y&&Y[I];return J&&J[U]}addCellEx($){if($.top)for(let I=$.top;I<=$.bottom;I++)for(let U=$.left;U<=$.right;U++)this.getCellAt($.sheetName,I,U);else this.findCellEx($,!0)}getCellEx($){return this.findCellEx($,!0)}findCellEx($,I){let U=this.findSheet($,I),Y=this.findSheetRow(U,$,I);return this.findRowCell(Y,$,I)}getCellAt($,I,U){let Y=this.sheets[$]||(this.sheets[$]=[]),J=Y[I]||(Y[I]=[]);return J[U]||(J[U]={sheetName:$,address:WV.n2l(U)+I,row:I,col:U})}removeCellEx($){let I=this.findSheet($);if(!I)return;let U=this.findSheetRow(I,$);if(!U)return;delete U[$.col]}forEachInSheet($,I){let U=this.sheets[$];if(U)U.forEach((Y,J)=>{if(Y)Y.forEach((Q,K)=>{if(Q)I(Q,J,K)})})}forEach($){Wo.each(this.sheets,(I,U)=>{this.forEachInSheet(U,$)})}map($){let I=[];return this.forEach((U)=>{I.push($(U))}),I}findSheet($,I){let U=$.sheetName;if(this.sheets[U])return this.sheets[U];if(I)return this.sheets[U]=[];return}findSheetRow($,I,U){let{row:Y}=I;if($&&$[Y])return $[Y];if(U)return $[Y]=[];return}findRowCell($,I,U){let{col:Y}=I;if($&&$[Y])return $[Y];if(U)return $[Y]=this.template?Object.assign(I,JSON.parse(JSON.stringify(this.template))):I;return}spliceRows($,I,U,Y){let J=this.sheets[$];if(J){let Q=[];for(let K=0;K{K.splice(I,U,...Q)})}}}Vo.exports=wo});var qB=O((vA1,Lo)=>{var EU=X4(),C2=W4(),zo=Zo(),J_0=Z5(),Q_0=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class Xo{constructor(){this.matrixMap={}}getMatrix($){return this.matrixMap[$]||(this.matrixMap[$]=new zo)}add($,I){let U=C2.decodeEx($);this.addEx(U,I)}addEx($,I){let U=this.getMatrix(I);if($.top)for(let Y=$.left;Y<=$.right;Y++)for(let J=$.top;J<=$.bottom;J++){let Q={sheetName:$.sheetName,address:C2.n2l(Y)+J,row:J,col:Y};U.addCellEx(Q)}else U.addCellEx($)}remove($,I){let U=C2.decodeEx($);this.removeEx(U,I)}removeEx($,I){this.getMatrix(I).removeCellEx($)}removeAllNames($){EU.each(this.matrixMap,(I)=>{I.removeCellEx($)})}forEach($){EU.each(this.matrixMap,(I,U)=>{I.forEach((Y)=>{$(U,Y)})})}getNames($){return this.getNamesEx(C2.decodeEx($))}getNamesEx($){return EU.map(this.matrixMap,(I,U)=>I.findCellEx($)&&U).filter(Boolean)}_explore($,I){I.mark=!1;let{sheetName:U}=I,Y=new J_0(I.row,I.col,I.row,I.col,U),J,Q;function K(H,G){let W=$.findCellAt(U,H,I.col);if(!W||!W.mark)return!1;return Y[G]=H,W.mark=!1,!0}for(Q=I.row-1;K(Q,"top");Q--);for(Q=I.row+1;K(Q,"bottom");Q++);function q(H,G){let W=[];for(Q=Y.top;Q<=Y.bottom;Q++){let w=$.findCellAt(U,Q,H);if(w&&w.mark)W.push(w);else return!1}Y[G]=H;for(let w=0;w{Y.mark=!0});let U=I.map((Y)=>Y.mark&&this._explore(I,Y)).filter(Boolean).map((Y)=>Y.$shortRange);return{name:$,ranges:U}}normaliseMatrix($,I){$.forEachInSheet(I,(U,Y,J)=>{if(U){if(U.row!==Y||U.col!==J)U.row=Y,U.col=J,U.address=C2.n2l(J)+Y}})}spliceRows($,I,U,Y){EU.each(this.matrixMap,(J)=>{J.spliceRows($,I,U,Y),this.normaliseMatrix(J,$)})}spliceColumns($,I,U,Y){EU.each(this.matrixMap,(J)=>{J.spliceColumns($,I,U,Y),this.normaliseMatrix(J,$)})}get model(){return EU.map(this.matrixMap,($,I)=>this.getRanges(I,$)).filter(($)=>$.ranges.length)}set model($){let I=this.matrixMap={};$.forEach((U)=>{let Y=I[U.name]=new zo;U.ranges.forEach((J)=>{if(Q_0.test(J.split("!").pop()||""))Y.addCell(J)})})}}Lo.exports=Xo});var M4=O((RA1,HB)=>{if(typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)HB.exports={nextTick:K_0};else HB.exports=process;function K_0($,I,U,Y){if(typeof $!=="function")throw TypeError('"callback" argument must be a function');var J=arguments.length,Q,K;switch(J){case 0:case 1:return process.nextTick($);case 2:return process.nextTick(function(){$.call(null,I)});case 3:return process.nextTick(function(){$.call(null,I,U)});case 4:return process.nextTick(function(){$.call(null,I,U,Y)});default:Q=Array(J-1),K=0;while(K{var q_0={}.toString;Do.exports=Array.isArray||function($){return q_0.call($)=="[object Array]"}});var A4=O((GB,Fo)=>{var wV=t("buffer"),z5=wV.Buffer;function Oo($,I){for(var U in $)I[U]=$[U]}if(z5.from&&z5.alloc&&z5.allocUnsafe&&z5.allocUnsafeSlow)Fo.exports=wV;else Oo(wV,GB),GB.Buffer=vU;function vU($,I,U){return z5($,I,U)}Oo(z5,vU);vU.from=function($,I,U){if(typeof $==="number")throw TypeError("Argument must not be a number");return z5($,I,U)};vU.alloc=function($,I,U){if(typeof $!=="number")throw TypeError("Argument must be a number");var Y=z5($);if(I!==void 0)if(typeof U==="string")Y.fill(I,U);else Y.fill(I);else Y.fill(0);return Y};vU.allocUnsafe=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return z5($)};vU.allocUnsafeSlow=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return wV.SlowBuffer($)}});var l1=O((A_0)=>{function H_0($){if(Array.isArray)return Array.isArray($);return VV($)==="[object Array]"}A_0.isArray=H_0;function G_0($){return typeof $==="boolean"}A_0.isBoolean=G_0;function W_0($){return $===null}A_0.isNull=W_0;function w_0($){return $==null}A_0.isNullOrUndefined=w_0;function V_0($){return typeof $==="number"}A_0.isNumber=V_0;function Z_0($){return typeof $==="string"}A_0.isString=Z_0;function z_0($){return typeof $==="symbol"}A_0.isSymbol=z_0;function X_0($){return $===void 0}A_0.isUndefined=X_0;function L_0($){return VV($)==="[object RegExp]"}A_0.isRegExp=L_0;function D_0($){return typeof $==="object"&&$!==null}A_0.isObject=D_0;function O_0($){return VV($)==="[object Date]"}A_0.isDate=O_0;function F_0($){return VV($)==="[object Error]"||$ instanceof Error}A_0.isError=F_0;function N_0($){return typeof $==="function"}A_0.isFunction=N_0;function M_0($){return $===null||typeof $==="boolean"||typeof $==="number"||typeof $==="string"||typeof $==="symbol"||typeof $>"u"}A_0.isPrimitive=M_0;A_0.isBuffer=t("buffer").Buffer.isBuffer;function VV($){return Object.prototype.toString.call($)}});var No=O((_A1,WB)=>{if(typeof Object.create==="function")WB.exports=function(I,U){if(U)I.super_=U,I.prototype=Object.create(U.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})};else WB.exports=function(I,U){if(U){I.super_=U;var Y=function(){};Y.prototype=U.prototype,I.prototype=new Y,I.prototype.constructor=I}}});var c0=O((SA1,wB)=>{try{if(ZV=t("util"),typeof ZV.inherits!=="function")throw"";wB.exports=ZV.inherits}catch($){wB.exports=No()}var ZV});var Ao=O((gA1,VB)=>{function k_0($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var Mo=A4().Buffer,_2=t("util");function f_0($,I,U){$.copy(I,U)}VB.exports=function(){function $(){k_0(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return Mo.alloc(0);var Y=Mo.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)f_0(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(_2&&_2.inspect&&_2.inspect.custom)VB.exports.prototype[_2.inspect.custom]=function(){var $=_2.inspect({length:this.length});return this.constructor.name+" "+$}});var ZB=O((yA1,Po)=>{var zV=M4();function b_0($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)zV.nextTick(XV,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,zV.nextTick(XV,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)zV.nextTick(XV,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,zV.nextTick(XV,U,Q)}else if(I)I(Q)}),this}function i_0(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function XV($,I){$.emit("error",I)}Po.exports={destroy:b_0,undestroy:i_0}});var d7=O((hA1,To)=>{To.exports=t("util").deprecate});var XB=O((uA1,So)=>{var m7=M4();So.exports=E4;function Bo($){var I=this;this.next=null,this.entry=null,this.finish=function(){QS0(I,$)}}var n_0=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:m7.nextTick,RU;E4.WritableState=g2;var vo=Object.create(l1());vo.inherits=c0();var p_0={deprecate:d7()},Ro=t("stream"),DV=A4().Buffer,c_0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d_0($){return DV.from($)}function m_0($){return DV.isBuffer($)||$ instanceof c_0}var jo=ZB();vo.inherits(E4,Ro);function l_0(){}function g2($,I){RU=RU||l7(),$=$||{};var U=I instanceof RU;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){$S0(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Bo(this)}g2.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(g2.prototype,"buffer",{get:p_0.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var LV;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")LV=Function.prototype[Symbol.hasInstance],Object.defineProperty(E4,Symbol.hasInstance,{value:function($){if(LV.call(this,$))return!0;if(this!==E4)return!1;return $&&$._writableState instanceof g2}});else LV=function($){return $ instanceof this};function E4($){if(RU=RU||l7(),!LV.call(E4,this)&&!(this instanceof RU))return new E4($);if(this._writableState=new g2($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}Ro.call(this)}E4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function o_0($,I){var U=Error("write after end");$.emit("error",U),m7.nextTick(I,U)}function r_0($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),m7.nextTick(Y,Q),J=!1;return J}E4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&m_0($);if(Q&&!DV.isBuffer($))$=d_0($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=l_0;if(Y.ended)o_0(this,U);else if(Q||r_0(this,Y,$,U))Y.pendingcb++,J=a_0(this,Y,Q,$,I,U);return J};E4.prototype.cork=function(){var $=this._writableState;$.corked++};E4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)Co(this,$)}};E4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function t_0($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=DV.from(I,U);return I}Object.defineProperty(E4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function a_0($,I,U,Y,J,Q){if(!U){var K=t_0(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var go=M4(),KS0=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};uo.exports=X5;var yo=Object.create(l1());yo.inherits=c0();var ho=DB(),LB=XB();yo.inherits(X5,ho);{OV=KS0(LB.prototype);for(y2=0;y2{var FB=A4().Buffer,xo=FB.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function GS0($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function WS0($){var I=GS0($);if(typeof I!=="string"&&(FB.isEncoding===xo||!xo($)))throw Error("Unknown encoding: "+$);return I||$}AS0.StringDecoder=u2;function u2($){this.encoding=WS0($);var I;switch(this.encoding){case"utf16le":this.text=LS0,this.end=DS0,I=4;break;case"utf8":this.fillLast=ZS0,I=4;break;case"base64":this.text=OS0,this.end=FS0,I=3;break;default:this.write=NS0,this.end=MS0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=FB.allocUnsafe(I)}u2.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};u2.prototype.end=XS0;u2.prototype.text=zS0;u2.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function OB($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function wS0($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function VS0($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function ZS0($){var I=this.lastTotal-this.lastNeed,U=VS0(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function zS0($,I){var U=wS0(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function XS0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function LS0($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function DS0($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function OS0($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function FS0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function NS0($){return $.toString(this.encoding)}function MS0($){return $&&$.length?this.write($):""}});var DB=O((bA1,to)=>{var CU=M4();to.exports=s1;var TS0=BU(),x2;s1.ReadableState=co;var fA1=t("events").EventEmitter,io=function($,I){return $.listeners(I).length},EB=t("stream"),k2=A4().Buffer,ES0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function BS0($){return k2.from($)}function vS0($){return k2.isBuffer($)||$ instanceof ES0}var no=Object.create(l1());no.inherits=c0();var MB=t("util"),E1=void 0;if(MB&&MB.debuglog)E1=MB.debuglog("stream");else E1=function(){};var RS0=Ao(),po=ZB(),jU;no.inherits(s1,EB);var AB=["error","close","destroy","pause","resume"];function jS0($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(TS0($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function co($,I){x2=x2||l7(),$=$||{};var U=I instanceof x2;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new RS0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!jU)jU=NB().StringDecoder;this.decoder=new jU($.encoding),this.encoding=$.encoding}}function s1($){if(x2=x2||l7(),!(this instanceof s1))return new s1($);if(this._readableState=new co($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}EB.call(this)}Object.defineProperty(s1.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});s1.prototype.destroy=po.destroy;s1.prototype._undestroy=po.undestroy;s1.prototype._destroy=function($,I){this.push(null),I($)};s1.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=k2.from($,I),I="";Y=!0}}else Y=!0;return mo(this,$,I,!1,Y)};s1.prototype.unshift=function($){return mo(this,$,null,!0,!1)};function mo($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,gS0($,Q);else{var K;if(!J)K=CS0(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==k2.prototype)I=BS0(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else PB($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)PB($,Q,I,!1);else lo($,Q);else PB($,Q,I,!1)}else if(!Y)Q.reading=!1}return _S0(Q)}function PB($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)FV($)}lo($,I)}function CS0($,I){var U;if(!vS0(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function _S0($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}s1.prototype.isPaused=function(){return this._readableState.flowing===!1};s1.prototype.setEncoding=function($){if(!jU)jU=NB().StringDecoder;return this._readableState.decoder=new jU($),this._readableState.encoding=$,this};var ko=8388608;function SS0($){if($>=ko)$=ko;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function fo($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=SS0($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}s1.prototype.read=function($){E1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(E1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)TB(this);else FV(this);return null}if($=fo($,I),$===0&&I.ended){if(I.length===0)TB(this);return null}var Y=I.needReadable;if(E1("need readable",Y),I.length===0||I.length-$0)J=oo($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)TB(this)}if(J!==null)this.emit("data",J);return J};function gS0($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,FV($)}function FV($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(E1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)CU.nextTick(bo,$);else bo($)}function bo($){E1("emit readable"),$.emit("readable"),BB($)}function lo($,I){if(!I.readingMore)I.readingMore=!0,CU.nextTick(yS0,$,I)}function yS0($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&ro(Y.pipes,$)!==-1)&&!G)E1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(E1("onerror",F),D(),$.removeListener("error",V),io($,"error")===0)$.emit("error",F)}jS0($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){E1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){E1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)E1("pipe resume"),U.resume();return $};function hS0($){return function(){var I=$._readableState;if(E1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&io($,"data"))I.flowing=!0,BB($)}}s1.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=fS0($,I.buffer,I.decoder);return U}function fS0($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function iS0($,I){var U=k2.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function TB($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,CU.nextTick(nS0,I,$)}function nS0($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function ro($,I){for(var U=0,Y=$.length;U{eo.exports=L5;var NV=l7(),so=Object.create(l1());so.inherits=c0();so.inherits(L5,NV);function pS0($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{Ur.exports=f2;var $r=vB(),Ir=Object.create(l1());Ir.inherits=c0();Ir.inherits(f2,$r);function f2($){if(!(this instanceof f2))return new f2($);$r.call(this,$)}f2.prototype._transform=function($,I,U){U(null,$)}});var RB=O(($6,MV)=>{var T8=t("stream");if(process.env.READABLE_STREAM==="disable"&&T8)MV.exports=T8,$6=MV.exports=T8.Readable,$6.Readable=T8.Readable,$6.Writable=T8.Writable,$6.Duplex=T8.Duplex,$6.Transform=T8.Transform,$6.PassThrough=T8.PassThrough,$6.Stream=T8;else $6=MV.exports=DB(),$6.Stream=T8||$6,$6.Readable=$6,$6.Writable=XB(),$6.Duplex=l7(),$6.Transform=vB(),$6.PassThrough=Yr()});var D5=O((mS0)=>{mS0.base64=!0;mS0.array=!0;mS0.string=!0;mS0.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";mS0.nodebuffer=typeof Buffer<"u";mS0.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")mS0.blob=!1;else{AV=new ArrayBuffer(0);try{mS0.blob=new Blob([AV],{type:"application/zip"}).size===0}catch($){try{CB=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,PV=new CB,PV.append(AV),mS0.blob=PV.getBlob("application/zip").size===0}catch(I){mS0.blob=!1}}}var AV,CB,PV;try{mS0.nodestream=!!RB().Readable}catch($){mS0.nodestream=!1}});var _B=O((Ig0)=>{var eS0=w4(),$g0=D5(),E8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Ig0.encode=function($){var I=[],U,Y,J,Q,K,q,H,G=0,W=$.length,w=W,Z=eS0.getTypeOf($)!=="string";while(G<$.length){if(w=W-G,!Z)U=$.charCodeAt(G++),Y=G>2,K=(U&3)<<4|Y>>4,q=w>1?(Y&15)<<2|J>>6:64,H=w>2?J&63:64,I.push(E8.charAt(Q)+E8.charAt(K)+E8.charAt(q)+E8.charAt(H))}return I.join("")};Ig0.decode=function($){var I,U,Y,J,Q,K,q,H=0,G=0,W="data:";if($.substr(0,W.length)===W)throw Error("Invalid base64 input, it looks like a data url.");$=$.replace(/[^A-Za-z0-9+/=]/g,"");var w=$.length*3/4;if($.charAt($.length-1)===E8.charAt(64))w--;if($.charAt($.length-2)===E8.charAt(64))w--;if(w%1!==0)throw Error("Invalid base64 input, bad content length.");var Z;if($g0.uint8array)Z=new Uint8Array(w|0);else Z=Array(w|0);while(H<$.length){if(J=E8.indexOf($.charAt(H++)),Q=E8.indexOf($.charAt(H++)),K=E8.indexOf($.charAt(H++)),q=E8.indexOf($.charAt(H++)),I=J<<2|Q>>4,U=(Q&15)<<4|K>>2,Y=(K&3)<<6|q,Z[G++]=I,K!==64)Z[G++]=U;if(q!==64)Z[G++]=Y}return Z}});var b2=O((dA1,Jr)=>{Jr.exports={isNode:typeof Buffer<"u",newBufferFrom:function($,I){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from($,I);else{if(typeof $==="number")throw Error('The "data" argument must not be a number');return new Buffer($,I)}},allocBuffer:function($){if(Buffer.alloc)return Buffer.alloc($);else{var I=new Buffer($);return I.fill(0),I}},isBuffer:function($){return Buffer.isBuffer($)},isStream:function($){return $&&typeof $.on==="function"&&typeof $.pause==="function"&&typeof $.resume==="function"}}});var qr=O((lA1,Kr)=>{var mA1=global.MutationObserver||global.WebKitMutationObserver,Qr;Qr=function(){process.nextTick(Hg0)};var Jg0,Qg0,Kg0,qg0,SB,i2=[];function Hg0(){SB=!0;var $,I,U=i2.length;while(U){I=i2,i2=[],$=-1;while(++${var Hr=qr();function SU(){}var L6={},Gr=["REJECTED"],gB=["FULFILLED"],Wr=["PENDING"];_U=["UNHANDLED"];var _U;Zr.exports=P9;function P9($){if(typeof $!=="function")throw TypeError("resolver must be a function");if(this.state=Wr,this.queue=[],this.outcome=void 0,this.handled=_U,$!==SU)wr(this,$)}P9.prototype.finally=function($){if(typeof $!=="function")return this;var I=this.constructor;return this.then(U,Y);function U(J){function Q(){return J}return I.resolve($()).then(Q)}function Y(J){function Q(){throw J}return I.resolve($()).then(Q)}};P9.prototype.catch=function($){return this.then(null,$)};P9.prototype.then=function($,I){if(typeof $!=="function"&&this.state===gB||typeof I!=="function"&&this.state===Gr)return this;var U=new this.constructor(SU);if(this.handled===_U)this.handled=null;if(this.state!==Wr){var Y=this.state===gB?$:I;yB(U,Y,this.outcome)}else this.queue.push(new n2(U,$,I));return U};function n2($,I,U){if(this.promise=$,typeof I==="function")this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled;if(typeof U==="function")this.onRejected=U,this.callRejected=this.otherCallRejected}n2.prototype.callFulfilled=function($){L6.resolve(this.promise,$)};n2.prototype.otherCallFulfilled=function($){yB(this.promise,this.onFulfilled,$)};n2.prototype.callRejected=function($){L6.reject(this.promise,$)};n2.prototype.otherCallRejected=function($){yB(this.promise,this.onRejected,$)};function yB($,I,U){Hr(function(){var Y;try{Y=I(U)}catch(J){return L6.reject($,J)}if(Y===$)L6.reject($,TypeError("Cannot resolve promise with itself"));else L6.resolve($,Y)})}L6.resolve=function($,I){var U=Vr(Wg0,I);if(U.status==="error")return L6.reject($,U.value);var Y=U.value;if(Y)wr($,Y);else{$.state=gB,$.outcome=I;var J=-1,Q=$.queue.length;while(++J{var hB=null;if(typeof Promise<"u")hB=Promise;else hB=zr();Xr.exports={Promise:hB}});var uB=O((Lr)=>{(function($,I){if($.setImmediate)return;var U=1,Y={},J=!1,Q=$.document,K;function q(P){if(typeof P!=="function")P=Function(""+P);var E=Array(arguments.length-1);for(var A=0;A"u"?typeof global>"u"?Lr:global:self)});var w4=O((Dg0)=>{var T9=D5(),Xg0=_B(),yU=b2(),xB=gU();uB();function Lg0($){var I=null;if(T9.uint8array)I=new Uint8Array($.length);else I=Array($.length);return EV($,I)}Dg0.newBlob=function($,I){Dg0.checkSupport("blob");try{return new Blob([$],{type:I})}catch(J){try{var U=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Y=new U;return Y.append($),Y.getBlob(I)}catch(Q){throw Error("Bug : can't construct the Blob.")}}};function p2($){return $}function EV($,I){for(var U=0;U<$.length;++U)I[U]=$.charCodeAt(U)&255;return I}var TV={stringifyByChunk:function($,I,U){var Y=[],J=0,Q=$.length;if(Q<=U)return String.fromCharCode.apply(null,$);while(J1)try{return TV.stringifyByChunk($,U,I)}catch(J){I=Math.floor(I/2)}return TV.stringifyByChar($)}Dg0.applyFromCharCode=c2;function BV($,I){for(var U=0;U<$.length;U++)I[U]=$[U];return I}var E9={};E9.string={string:p2,array:function($){return EV($,Array($.length))},arraybuffer:function($){return E9.string.uint8array($).buffer},uint8array:function($){return EV($,new Uint8Array($.length))},nodebuffer:function($){return EV($,yU.allocBuffer($.length))}};E9.array={string:c2,array:p2,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return yU.newBufferFrom($)}};E9.arraybuffer={string:function($){return c2(new Uint8Array($))},array:function($){return BV(new Uint8Array($),Array($.byteLength))},arraybuffer:p2,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return yU.newBufferFrom(new Uint8Array($))}};E9.uint8array={string:c2,array:function($){return BV($,Array($.length))},arraybuffer:function($){return $.buffer},uint8array:p2,nodebuffer:function($){return yU.newBufferFrom($)}};E9.nodebuffer={string:c2,array:function($){return BV($,Array($.length))},arraybuffer:function($){return E9.nodebuffer.uint8array($).buffer},uint8array:function($){return BV($,new Uint8Array($.length))},nodebuffer:p2};Dg0.transformTo=function($,I){if(!I)I="";if(!$)return I;Dg0.checkSupport($);var U=Dg0.getTypeOf(I),Y=E9[U][$](I);return Y};Dg0.resolve=function($){var I=$.split("/"),U=[];for(var Y=0;Y"u")$[U]=arguments[I][U];return $};Dg0.prepareContent=function($,I,U,Y,J){var Q=xB.Promise.resolve(I).then(function(K){var q=T9.blob&&(K instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(K))!==-1);if(q&&typeof FileReader<"u")return new xB.Promise(function(H,G){var W=new FileReader;W.onload=function(w){H(w.target.result)},W.onerror=function(w){G(w.target.error)},W.readAsArrayBuffer(K)});else return K});return Q.then(function(K){var q=Dg0.getTypeOf(K);if(!q)return xB.Promise.reject(Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(q==="arraybuffer")K=Dg0.transformTo("uint8array",K);else if(q==="string"){if(J)K=Xg0.decode(K);else if(U){if(Y!==!0)K=Lg0(K)}}return K})}});var G$=O((sA1,Nr)=>{function Fr($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Fr.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=$;else{if(this.isFinished=!0,this.emit("error",$),this.previous)this.previous.error($);this.cleanUp()}return!0},on:function($,I){return this._listeners[$].push(I),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,I){if(this._listeners[$])for(var U=0;U "+$;else return $}};Nr.exports=Fr});var uU=O((Sg0)=>{var hU=w4(),o7=D5(),Rg0=b2(),vV=G$(),d2=Array(256);for(B8=0;B8<256;B8++)d2[B8]=B8>=252?6:B8>=248?5:B8>=240?4:B8>=224?3:B8>=192?2:1;var B8;d2[254]=d2[254]=1;var jg0=function($){var I,U,Y,J,Q,K=$.length,q=0;for(J=0;J>>6,I[Q++]=128|U&63;else if(U<65536)I[Q++]=224|U>>>12,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63;else I[Q++]=240|U>>>18,I[Q++]=128|U>>>12&63,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63}return I},Cg0=function($,I){var U;if(I=I||$.length,I>$.length)I=$.length;U=I-1;while(U>=0&&($[U]&192)===128)U--;if(U<0)return I;if(U===0)return I;return U+d2[$[U]]>I?U:I},_g0=function($){var I,U,Y,J,Q=$.length,K=Array(Q*2);for(U=0,I=0;I4){K[U++]=65533,I+=J-1;continue}Y&=J===2?31:J===3?15:7;while(J>1&&I1){K[U++]=65533;continue}if(Y<65536)K[U++]=Y;else Y-=65536,K[U++]=55296|Y>>10&1023,K[U++]=56320|Y&1023}if(K.length!==U)if(K.subarray)K=K.subarray(0,U);else K.length=U;return hU.applyFromCharCode(K)};Sg0.utf8encode=function(I){if(o7.nodebuffer)return Rg0.newBufferFrom(I,"utf-8");return jg0(I)};Sg0.utf8decode=function(I){if(o7.nodebuffer)return hU.transformTo("nodebuffer",I).toString("utf-8");return I=hU.transformTo(o7.uint8array?"uint8array":"array",I),_g0(I)};function RV(){vV.call(this,"utf-8 decode"),this.leftOver=null}hU.inherits(RV,vV);RV.prototype.processChunk=function($){var I=hU.transformTo(o7.uint8array?"uint8array":"array",$.data);if(this.leftOver&&this.leftOver.length){if(o7.uint8array){var U=I;I=new Uint8Array(U.length+this.leftOver.length),I.set(this.leftOver,0),I.set(U,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var Y=Cg0(I),J=I;if(Y!==I.length)if(o7.uint8array)J=I.subarray(0,Y),this.leftOver=I.subarray(Y,I.length);else J=I.slice(0,Y),this.leftOver=I.slice(Y,I.length);this.push({data:Sg0.utf8decode(J),meta:$.meta})};RV.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Sg0.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Sg0.Utf8DecodeWorker=RV;function fB(){vV.call(this,"utf-8 encode")}hU.inherits(fB,vV);fB.prototype.processChunk=function($){this.push({data:Sg0.utf8encode($.data),meta:$.meta})};Sg0.Utf8EncodeWorker=fB});var Er=O(($P1,Tr)=>{var Ar=G$(),Pr=w4();function iB($){Ar.call(this,"ConvertWorker to "+$),this.destType=$}Pr.inherits(iB,Ar);iB.prototype.processChunk=function($){this.push({data:Pr.transformTo(this.destType,$.data),meta:$.meta})};Tr.exports=iB});var Rr=O((IP1,vr)=>{var Br=RB().Readable,hg0=w4();hg0.inherits(nB,Br);function nB($,I,U){Br.call(this,I),this._helper=$;var Y=this;$.on("data",function(J,Q){if(!Y.push(J))Y._helper.pause();if(U)U(Q)}).on("error",function(J){Y.emit("error",J)}).on("end",function(){Y.push(null)})}nB.prototype._read=function(){this._helper.resume()};vr.exports=nB});var pB=O((UP1,_r)=>{var r7=w4(),ug0=Er(),xg0=G$(),kg0=_B(),fg0=D5(),bg0=gU(),jr=null;if(fg0.nodestream)try{jr=Rr()}catch($){}function ig0($,I,U){switch($){case"blob":return r7.newBlob(r7.transformTo("arraybuffer",I),U);case"base64":return kg0.encode(I);default:return r7.transformTo($,I)}}function ng0($,I){var U,Y=0,J=null,Q=0;for(U=0;U{cg0.base64=!1;cg0.binary=!1;cg0.dir=!1;cg0.createFolders=!0;cg0.date=null;cg0.compression=null;cg0.compressionOptions=null;cg0.comment=null;cg0.unixPermissions=null;cg0.dosPermissions=null});var dB=O((JP1,Sr)=>{var jV=w4(),CV=G$(),Iy0=16384;function xU($){CV.call(this,"DataWorker");var I=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,$.then(function(U){if(I.dataIsReady=!0,I.data=U,I.max=U&&U.length||0,I.type=jV.getTypeOf(U),!I.isPaused)I._tickAndRepeat()},function(U){I.error(U)})}jV.inherits(xU,CV);xU.prototype.cleanUp=function(){CV.prototype.cleanUp.call(this),this.data=null};xU.prototype.resume=function(){if(!CV.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,jV.delay(this._tickAndRepeat,[],this);return!0};xU.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)jV.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};xU.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var $=Iy0,I=null,U=Math.min(this.max,this.index+$);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":I=this.data.substring(this.index,U);break;case"uint8array":I=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":I=this.data.slice(this.index,U);break}return this.index=U,this.push({data:I,meta:{percent:this.max?this.index/this.max*100:0}})}};Sr.exports=xU});var _V=O((QP1,yr)=>{var Uy0=w4();function Yy0(){var $,I=[];for(var U=0;U<256;U++){$=U;for(var Y=0;Y<8;Y++)$=$&1?3988292384^$>>>1:$>>>1;I[U]=$}return I}var gr=Yy0();function Jy0($,I,U,Y){var J=gr,Q=Y+U;$=$^-1;for(var K=Y;K>>8^J[($^I[K])&255];return $^-1}function Qy0($,I,U,Y){var J=gr,Q=Y+U;$=$^-1;for(var K=Y;K>>8^J[($^I.charCodeAt(K))&255];return $^-1}yr.exports=function(I,U){if(typeof I>"u"||!I.length)return 0;var Y=Uy0.getTypeOf(I)!=="string";if(Y)return Jy0(U|0,I,I.length,0);else return Qy0(U|0,I,I.length,0)}});var lB=O((KP1,ur)=>{var hr=G$(),Ky0=_V(),qy0=w4();function mB(){hr.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}qy0.inherits(mB,hr);mB.prototype.processChunk=function($){this.streamInfo.crc32=Ky0($.data,this.streamInfo.crc32||0),this.push($)};ur.exports=mB});var kr=O((qP1,xr)=>{var Hy0=w4(),oB=G$();function rB($){oB.call(this,"DataLengthProbe for "+$),this.propName=$,this.withStreamInfo($,0)}Hy0.inherits(rB,oB);rB.prototype.processChunk=function($){if($){var I=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=I+$.data.length}oB.prototype.processChunk.call(this,$)};xr.exports=rB});var SV=O((HP1,ir)=>{var fr=gU(),br=dB(),Gy0=lB(),tB=kr();function aB($,I,U,Y,J){this.compressedSize=$,this.uncompressedSize=I,this.crc32=U,this.compression=Y,this.compressedContent=J}aB.prototype={getContentWorker:function(){var $=new br(fr.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new tB("data_length")),I=this;return $.on("end",function(){if(this.streamInfo.data_length!==I.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new br(fr.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};aB.createWorkerFrom=function($,I,U){return $.pipe(new Gy0).pipe(new tB("uncompressedSize")).pipe(I.compressWorker(U)).pipe(new tB("compressedSize")).withStreamInfo("compression",I)};ir.exports=aB});var dr=O((GP1,cr)=>{var Wy0=pB(),wy0=dB(),sB=uU(),eB=SV(),nr=G$(),$v=function($,I,U){this.name=$,this.dir=U.dir,this.date=U.date,this.comment=U.comment,this.unixPermissions=U.unixPermissions,this.dosPermissions=U.dosPermissions,this._data=I,this._dataBinary=U.binary,this.options={compression:U.compression,compressionOptions:U.compressionOptions}};$v.prototype={internalStream:function($){var I=null,U="string";try{if(!$)throw Error("No output type specified.");U=$.toLowerCase();var Y=U==="string"||U==="text";if(U==="binarystring"||U==="text")U="string";I=this._decompressWorker();var J=!this._dataBinary;if(J&&!Y)I=I.pipe(new sB.Utf8EncodeWorker);if(!J&&Y)I=I.pipe(new sB.Utf8DecodeWorker)}catch(Q){I=new nr("error"),I.error(Q)}return new Wy0(I,U,"")},async:function($,I){return this.internalStream($).accumulate(I)},nodeStream:function($,I){return this.internalStream($||"nodebuffer").toNodejsStream(I)},_compressWorker:function($,I){if(this._data instanceof eB&&this._data.compression.magic===$.magic)return this._data.getCompressedWorker();else{var U=this._decompressWorker();if(!this._dataBinary)U=U.pipe(new sB.Utf8EncodeWorker);return eB.createWorkerFrom(U,$,I)}},_decompressWorker:function(){if(this._data instanceof eB)return this._data.getContentWorker();else if(this._data instanceof nr)return this._data;else return new wy0(this._data)}};var pr=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Vy0=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(m2=0;m2{var Ly0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function Dy0($,I){return Object.prototype.hasOwnProperty.call($,I)}Iv.assign=function($){var I=Array.prototype.slice.call(arguments,1);while(I.length){var U=I.shift();if(!U)continue;if(typeof U!=="object")throw TypeError(U+"must be non-object");for(var Y in U)if(Dy0(U,Y))$[Y]=U[Y]}return $};Iv.shrinkBuf=function($,I){if($.length===I)return $;if($.subarray)return $.subarray(0,I);return $.length=I,$};var Oy0={arraySet:function($,I,U,Y,J){if(I.subarray&&$.subarray){$.set(I.subarray(U,U+Y),J);return}for(var Q=0;Q{var My0=O5(),Ay0=4,lr=0,or=1,Py0=2;function fU($){var I=$.length;while(--I>=0)$[I]=0}var Ty0=0,$t=1,Ey0=2,By0=3,vy0=258,Gv=29,s2=256,o2=s2+1+Gv,kU=30,Wv=19,It=2*o2+1,t7=15,Yv=16,Ry0=7,wv=256,Ut=16,Yt=17,Jt=18,qv=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],gV=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],jy0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Qt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cy0=512,F5=Array((o2+2)*2);fU(F5);var l2=Array(kU*2);fU(l2);var r2=Array(Cy0);fU(r2);var t2=Array(vy0-By0+1);fU(t2);var Vv=Array(Gv);fU(Vv);var yV=Array(kU);fU(yV);function Jv($,I,U,Y,J){this.static_tree=$,this.extra_bits=I,this.extra_base=U,this.elems=Y,this.max_length=J,this.has_stree=$&&$.length}var Kt,qt,Ht;function Qv($,I){this.dyn_tree=$,this.max_code=0,this.stat_desc=I}function Gt($){return $<256?r2[$]:r2[256+($>>>7)]}function a2($,I){$.pending_buf[$.pending++]=I&255,$.pending_buf[$.pending++]=I>>>8&255}function o6($,I,U){if($.bi_valid>Yv-U)$.bi_buf|=I<<$.bi_valid&65535,a2($,$.bi_buf),$.bi_buf=I>>Yv-$.bi_valid,$.bi_valid+=U-Yv;else $.bi_buf|=I<<$.bi_valid&65535,$.bi_valid+=U}function v8($,I,U){o6($,U[I*2],U[I*2+1])}function Wt($,I){var U=0;do U|=$&1,$>>>=1,U<<=1;while(--I>0);return U>>>1}function _y0($){if($.bi_valid===16)a2($,$.bi_buf),$.bi_buf=0,$.bi_valid=0;else if($.bi_valid>=8)$.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8}function Sy0($,I){var{dyn_tree:U,max_code:Y}=I,J=I.stat_desc.static_tree,Q=I.stat_desc.has_stree,K=I.stat_desc.extra_bits,q=I.stat_desc.extra_base,H=I.stat_desc.max_length,G,W,w,Z,V,X,L=0;for(Z=0;Z<=t7;Z++)$.bl_count[Z]=0;U[$.heap[$.heap_max]*2+1]=0;for(G=$.heap_max+1;GH)Z=H,L++;if(U[W*2+1]=Z,W>Y)continue;if($.bl_count[Z]++,V=0,W>=q)V=K[W-q];if(X=U[W*2],$.opt_len+=X*(Z+V),Q)$.static_len+=X*(J[W*2+1]+V)}if(L===0)return;do{Z=H-1;while($.bl_count[Z]===0)Z--;$.bl_count[Z]--,$.bl_count[Z+1]+=2,$.bl_count[H]--,L-=2}while(L>0);for(Z=H;Z!==0;Z--){W=$.bl_count[Z];while(W!==0){if(w=$.heap[--G],w>Y)continue;if(U[w*2+1]!==Z)$.opt_len+=(Z-U[w*2+1])*U[w*2],U[w*2+1]=Z;W--}}}function wt($,I,U){var Y=Array(t7+1),J=0,Q,K;for(Q=1;Q<=t7;Q++)Y[Q]=J=J+U[Q-1]<<1;for(K=0;K<=I;K++){var q=$[K*2+1];if(q===0)continue;$[K*2]=Wt(Y[q]++,q)}}function gy0(){var $,I,U,Y,J,Q=Array(t7+1);U=0;for(Y=0;Y>=7;for(;Y8)a2($,$.bi_buf);else if($.bi_valid>0)$.pending_buf[$.pending++]=$.bi_buf;$.bi_buf=0,$.bi_valid=0}function yy0($,I,U,Y){if(Zt($),Y)a2($,U),a2($,~U);My0.arraySet($.pending_buf,$.window,I,U,$.pending),$.pending+=U}function rr($,I,U,Y){var J=I*2,Q=U*2;return $[J]<$[Q]||$[J]===$[Q]&&Y[I]<=Y[U]}function Kv($,I,U){var Y=$.heap[U],J=U<<1;while(J<=$.heap_len){if(J<$.heap_len&&rr(I,$.heap[J+1],$.heap[J],$.depth))J++;if(rr(I,Y,$.heap[J],$.depth))break;$.heap[U]=$.heap[J],U=J,J<<=1}$.heap[U]=Y}function tr($,I,U){var Y,J,Q=0,K,q;if($.last_lit!==0)do if(Y=$.pending_buf[$.d_buf+Q*2]<<8|$.pending_buf[$.d_buf+Q*2+1],J=$.pending_buf[$.l_buf+Q],Q++,Y===0)v8($,J,I);else{if(K=t2[J],v8($,K+s2+1,I),q=qv[K],q!==0)J-=Vv[K],o6($,J,q);if(Y--,K=Gt(Y),v8($,K,U),q=gV[K],q!==0)Y-=yV[K],o6($,Y,q)}while(Q<$.last_lit);v8($,wv,I)}function Hv($,I){var U=I.dyn_tree,Y=I.stat_desc.static_tree,J=I.stat_desc.has_stree,Q=I.stat_desc.elems,K,q,H=-1,G;$.heap_len=0,$.heap_max=It;for(K=0;K>1;K>=1;K--)Kv($,U,K);G=Q;do K=$.heap[1],$.heap[1]=$.heap[$.heap_len--],Kv($,U,1),q=$.heap[1],$.heap[--$.heap_max]=K,$.heap[--$.heap_max]=q,U[G*2]=U[K*2]+U[q*2],$.depth[G]=($.depth[K]>=$.depth[q]?$.depth[K]:$.depth[q])+1,U[K*2+1]=U[q*2+1]=G,$.heap[1]=G++,Kv($,U,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],Sy0($,I),wt(U,H,$.bl_count)}function ar($,I,U){var Y,J=-1,Q,K=I[1],q=0,H=7,G=4;if(K===0)H=138,G=3;I[(U+1)*2+1]=65535;for(Y=0;Y<=U;Y++){if(Q=K,K=I[(Y+1)*2+1],++q=3;I--)if($.bl_tree[Qt[I]*2+1]!==0)break;return $.opt_len+=3*(I+1)+5+5+4,I}function uy0($,I,U,Y){var J;o6($,I-257,5),o6($,U-1,5),o6($,Y-4,4);for(J=0;J>>=1)if(I&1&&$.dyn_ltree[U*2]!==0)return lr;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return or;for(U=32;U0){if($.strm.data_type===Py0)$.strm.data_type=xy0($);if(Hv($,$.l_desc),Hv($,$.d_desc),K=hy0($),J=$.opt_len+3+7>>>3,Q=$.static_len+3+7>>>3,Q<=J)J=Q}else J=Q=U+5;if(U+4<=J&&I!==-1)zt($,I,U,Y);else if($.strategy===Ay0||Q===J)o6($,($t<<1)+(Y?1:0),3),tr($,F5,l2);else o6($,(Ey0<<1)+(Y?1:0),3),uy0($,$.l_desc.max_code+1,$.d_desc.max_code+1,K+1),tr($,$.dyn_ltree,$.dyn_dtree);if(Vt($),Y)Zt($)}function iy0($,I,U){if($.pending_buf[$.d_buf+$.last_lit*2]=I>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=I&255,$.pending_buf[$.l_buf+$.last_lit]=U&255,$.last_lit++,I===0)$.dyn_ltree[U*2]++;else $.matches++,I--,$.dyn_ltree[(t2[U]+s2+1)*2]++,$.dyn_dtree[Gt(I)*2]++;return $.last_lit===$.lit_bufsize-1}ny0._tr_init=ky0;ny0._tr_stored_block=zt;ny0._tr_flush_block=by0;ny0._tr_tally=iy0;ny0._tr_align=fy0});var Zv=O((VP1,Lt)=>{function oy0($,I,U,Y){var J=$&65535|0,Q=$>>>16&65535|0,K=0;while(U!==0){K=U>2000?2000:U,U-=K;do J=J+I[Y++]|0,Q=Q+J|0;while(--K);J%=65521,Q%=65521}return J|Q<<16|0}Lt.exports=oy0});var zv=O((ZP1,Dt)=>{function ry0(){var $,I=[];for(var U=0;U<256;U++){$=U;for(var Y=0;Y<8;Y++)$=$&1?3988292384^$>>>1:$>>>1;I[U]=$}return I}var ty0=ry0();function ay0($,I,U,Y){var J=ty0,Q=Y+U;$^=-1;for(var K=Y;K>>8^J[($^I[K])&255];return $^-1}Dt.exports=ay0});var hV=O((zP1,Ot)=>{Ot.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var vt=O((Ch0)=>{var S6=O5(),C$=Xt(),At=Zv(),B9=zv(),sy0=hV(),$3=0,ey0=1,$h0=3,_9=4,Ft=5,j8=0,Nt=1,_$=-2,Ih0=-3,Xv=-5,Uh0=-1,Yh0=1,uV=2,Jh0=3,Qh0=4,Kh0=0,qh0=2,bV=8,Hh0=9,Gh0=15,Wh0=8,wh0=29,Vh0=256,Dv=Vh0+1+wh0,Zh0=30,zh0=19,Xh0=2*Dv+1,Lh0=15,w1=3,j9=258,Y8=j9+w1+1,Dh0=32,iV=42,Ov=69,xV=73,kV=91,fV=103,a7=113,$K=666,y4=1,IK=2,s7=3,nU=4,Oh0=3;function C9($,I){return $.msg=sy0[I],I}function Mt($){return($<<1)-($>4?9:0)}function R9($){var I=$.length;while(--I>=0)$[I]=0}function v9($){var I=$.state,U=I.pending;if(U>$.avail_out)U=$.avail_out;if(U===0)return;if(S6.arraySet($.output,I.pending_buf,I.pending_out,U,$.next_out),$.next_out+=U,I.pending_out+=U,$.total_out+=U,$.avail_out-=U,I.pending-=U,I.pending===0)I.pending_out=0}function I6($,I){C$._tr_flush_block($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,I),$.block_start=$.strstart,v9($.strm)}function A1($,I){$.pending_buf[$.pending++]=I}function e2($,I){$.pending_buf[$.pending++]=I>>>8&255,$.pending_buf[$.pending++]=I&255}function Fh0($,I,U,Y){var J=$.avail_in;if(J>Y)J=Y;if(J===0)return 0;if($.avail_in-=J,S6.arraySet(I,$.input,$.next_in,J,U),$.state.wrap===1)$.adler=At($.adler,I,J,U);else if($.state.wrap===2)$.adler=B9($.adler,I,J,U);return $.next_in+=J,$.total_in+=J,J}function Pt($,I){var{max_chain_length:U,strstart:Y}=$,J,Q,K=$.prev_length,q=$.nice_match,H=$.strstart>$.w_size-Y8?$.strstart-($.w_size-Y8):0,G=$.window,W=$.w_mask,w=$.prev,Z=$.strstart+j9,V=G[Y+K-1],X=G[Y+K];if($.prev_length>=$.good_match)U>>=2;if(q>$.lookahead)q=$.lookahead;do{if(J=I,G[J+K]!==X||G[J+K-1]!==V||G[J]!==G[Y]||G[++J]!==G[Y+1])continue;Y+=2,J++;do;while(G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&YK){if($.match_start=I,K=Q,Q>=q)break;V=G[Y+K-1],X=G[Y+K]}}while((I=w[I&W])>H&&--U!==0);if(K<=$.lookahead)return K;return $.lookahead}function e7($){var I=$.w_size,U,Y,J,Q,K;do{if(Q=$.window_size-$.lookahead-$.strstart,$.strstart>=I+(I-Y8)){S6.arraySet($.window,$.window,I,I,0),$.match_start-=I,$.strstart-=I,$.block_start-=I,Y=$.hash_size,U=Y;do J=$.head[--U],$.head[U]=J>=I?J-I:0;while(--Y);Y=I,U=Y;do J=$.prev[--U],$.prev[U]=J>=I?J-I:0;while(--Y);Q+=I}if($.strm.avail_in===0)break;if(Y=Fh0($.strm,$.window,$.strstart+$.lookahead,Q),$.lookahead+=Y,$.lookahead+$.insert>=w1){K=$.strstart-$.insert,$.ins_h=$.window[K],$.ins_h=($.ins_h<<$.hash_shift^$.window[K+1])&$.hash_mask;while($.insert)if($.ins_h=($.ins_h<<$.hash_shift^$.window[K+w1-1])&$.hash_mask,$.prev[K&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=K,K++,$.insert--,$.lookahead+$.insert$.pending_buf_size-5)U=$.pending_buf_size-5;for(;;){if($.lookahead<=1){if(e7($),$.lookahead===0&&I===$3)return y4;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var Y=$.block_start+U;if($.strstart===0||$.strstart>=Y){if($.lookahead=$.strstart-Y,$.strstart=Y,I6($,!1),$.strm.avail_out===0)return y4}if($.strstart-$.block_start>=$.w_size-Y8){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=0,I===_9){if(I6($,!0),$.strm.avail_out===0)return s7;return nU}if($.strstart>$.block_start){if(I6($,!1),$.strm.avail_out===0)return y4}return y4}function Lv($,I){var U,Y;for(;;){if($.lookahead=w1)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if(U!==0&&$.strstart-U<=$.w_size-Y8)$.match_length=Pt($,U);if($.match_length>=w1)if(Y=C$._tr_tally($,$.strstart-$.match_start,$.match_length-w1),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=w1){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else Y=C$._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(Y){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=$.strstart=w1)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if($.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=w1-1,U!==0&&$.prev_length<$.max_lazy_match&&$.strstart-U<=$.w_size-Y8){if($.match_length=Pt($,U),$.match_length<=5&&($.strategy===Yh0||$.match_length===w1&&$.strstart-$.match_start>4096))$.match_length=w1-1}if($.prev_length>=w1&&$.match_length<=$.prev_length){J=$.strstart+$.lookahead-w1,Y=C$._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-w1),$.lookahead-=$.prev_length-1,$.prev_length-=2;do if(++$.strstart<=J)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.prev_length!==0);if($.match_available=0,$.match_length=w1-1,$.strstart++,Y){if(I6($,!1),$.strm.avail_out===0)return y4}}else if($.match_available){if(Y=C$._tr_tally($,0,$.window[$.strstart-1]),Y)I6($,!1);if($.strstart++,$.lookahead--,$.strm.avail_out===0)return y4}else $.match_available=1,$.strstart++,$.lookahead--}if($.match_available)Y=C$._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0;if($.insert=$.strstart=w1&&$.strstart>0){if(J=$.strstart-1,Y=K[J],Y===K[++J]&&Y===K[++J]&&Y===K[++J]){Q=$.strstart+j9;do;while(Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&J$.lookahead)$.match_length=$.lookahead}}if($.match_length>=w1)U=C$._tr_tally($,1,$.match_length-w1),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0;else U=C$._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(U){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=0,I===_9){if(I6($,!0),$.strm.avail_out===0)return s7;return nU}if($.last_lit){if(I6($,!1),$.strm.avail_out===0)return y4}return IK}function Ah0($,I){var U;for(;;){if($.lookahead===0){if(e7($),$.lookahead===0){if(I===$3)return y4;break}}if($.match_length=0,U=C$._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,U){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=0,I===_9){if(I6($,!0),$.strm.avail_out===0)return s7;return nU}if($.last_lit){if(I6($,!1),$.strm.avail_out===0)return y4}return IK}function R8($,I,U,Y,J){this.good_length=$,this.max_lazy=I,this.nice_length=U,this.max_chain=Y,this.func=J}var iU;iU=[new R8(0,0,0,0,Nh0),new R8(4,4,8,4,Lv),new R8(4,5,16,8,Lv),new R8(4,6,32,32,Lv),new R8(4,4,16,16,bU),new R8(8,16,32,32,bU),new R8(8,16,128,128,bU),new R8(8,32,128,256,bU),new R8(32,128,258,1024,bU),new R8(32,258,258,4096,bU)];function Ph0($){$.window_size=2*$.w_size,R9($.head),$.max_lazy_match=iU[$.level].max_lazy,$.good_match=iU[$.level].good_length,$.nice_match=iU[$.level].nice_length,$.max_chain_length=iU[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=w1-1,$.match_available=0,$.ins_h=0}function Th0(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bV,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S6.Buf16(Xh0*2),this.dyn_dtree=new S6.Buf16((2*Zh0+1)*2),this.bl_tree=new S6.Buf16((2*zh0+1)*2),R9(this.dyn_ltree),R9(this.dyn_dtree),R9(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S6.Buf16(Lh0+1),this.heap=new S6.Buf16(2*Dv+1),R9(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S6.Buf16(2*Dv+1),R9(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Tt($){var I;if(!$||!$.state)return C9($,_$);if($.total_in=$.total_out=0,$.data_type=qh0,I=$.state,I.pending=0,I.pending_out=0,I.wrap<0)I.wrap=-I.wrap;return I.status=I.wrap?iV:a7,$.adler=I.wrap===2?0:1,I.last_flush=$3,C$._tr_init(I),j8}function Et($){var I=Tt($);if(I===j8)Ph0($.state);return I}function Eh0($,I){if(!$||!$.state)return _$;if($.state.wrap!==2)return _$;return $.state.gzhead=I,j8}function Bt($,I,U,Y,J,Q){if(!$)return _$;var K=1;if(I===Uh0)I=6;if(Y<0)K=0,Y=-Y;else if(Y>15)K=2,Y-=16;if(J<1||J>Hh0||U!==bV||Y<8||Y>15||I<0||I>9||Q<0||Q>Qh0)return C9($,_$);if(Y===8)Y=9;var q=new Th0;return $.state=q,q.strm=$,q.wrap=K,q.gzhead=null,q.w_bits=Y,q.w_size=1<Ft||I<0)return $?C9($,_$):_$;if(Y=$.state,!$.output||!$.input&&$.avail_in!==0||Y.status===$K&&I!==_9)return C9($,$.avail_out===0?Xv:_$);if(Y.strm=$,U=Y.last_flush,Y.last_flush=I,Y.status===iV)if(Y.wrap===2)if($.adler=0,A1(Y,31),A1(Y,139),A1(Y,8),!Y.gzhead)A1(Y,0),A1(Y,0),A1(Y,0),A1(Y,0),A1(Y,0),A1(Y,Y.level===9?2:Y.strategy>=uV||Y.level<2?4:0),A1(Y,Oh0),Y.status=a7;else{if(A1(Y,(Y.gzhead.text?1:0)+(Y.gzhead.hcrc?2:0)+(!Y.gzhead.extra?0:4)+(!Y.gzhead.name?0:8)+(!Y.gzhead.comment?0:16)),A1(Y,Y.gzhead.time&255),A1(Y,Y.gzhead.time>>8&255),A1(Y,Y.gzhead.time>>16&255),A1(Y,Y.gzhead.time>>24&255),A1(Y,Y.level===9?2:Y.strategy>=uV||Y.level<2?4:0),A1(Y,Y.gzhead.os&255),Y.gzhead.extra&&Y.gzhead.extra.length)A1(Y,Y.gzhead.extra.length&255),A1(Y,Y.gzhead.extra.length>>8&255);if(Y.gzhead.hcrc)$.adler=B9($.adler,Y.pending_buf,Y.pending,0);Y.gzindex=0,Y.status=Ov}else{var K=bV+(Y.w_bits-8<<4)<<8,q=-1;if(Y.strategy>=uV||Y.level<2)q=0;else if(Y.level<6)q=1;else if(Y.level===6)q=2;else q=3;if(K|=q<<6,Y.strstart!==0)K|=Dh0;if(K+=31-K%31,Y.status=a7,e2(Y,K),Y.strstart!==0)e2(Y,$.adler>>>16),e2(Y,$.adler&65535);$.adler=1}if(Y.status===Ov)if(Y.gzhead.extra){J=Y.pending;while(Y.gzindex<(Y.gzhead.extra.length&65535)){if(Y.pending===Y.pending_buf_size){if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(v9($),J=Y.pending,Y.pending===Y.pending_buf_size)break}A1(Y,Y.gzhead.extra[Y.gzindex]&255),Y.gzindex++}if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(Y.gzindex===Y.gzhead.extra.length)Y.gzindex=0,Y.status=xV}else Y.status=xV;if(Y.status===xV)if(Y.gzhead.name){J=Y.pending;do{if(Y.pending===Y.pending_buf_size){if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(v9($),J=Y.pending,Y.pending===Y.pending_buf_size){Q=1;break}}if(Y.gzindexJ)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(Q===0)Y.gzindex=0,Y.status=kV}else Y.status=kV;if(Y.status===kV)if(Y.gzhead.comment){J=Y.pending;do{if(Y.pending===Y.pending_buf_size){if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(v9($),J=Y.pending,Y.pending===Y.pending_buf_size){Q=1;break}}if(Y.gzindexJ)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(Q===0)Y.status=fV}else Y.status=fV;if(Y.status===fV)if(Y.gzhead.hcrc){if(Y.pending+2>Y.pending_buf_size)v9($);if(Y.pending+2<=Y.pending_buf_size)A1(Y,$.adler&255),A1(Y,$.adler>>8&255),$.adler=0,Y.status=a7}else Y.status=a7;if(Y.pending!==0){if(v9($),$.avail_out===0)return Y.last_flush=-1,j8}else if($.avail_in===0&&Mt(I)<=Mt(U)&&I!==_9)return C9($,Xv);if(Y.status===$K&&$.avail_in!==0)return C9($,Xv);if($.avail_in!==0||Y.lookahead!==0||I!==$3&&Y.status!==$K){var H=Y.strategy===uV?Ah0(Y,I):Y.strategy===Jh0?Mh0(Y,I):iU[Y.level].func(Y,I);if(H===s7||H===nU)Y.status=$K;if(H===y4||H===s7){if($.avail_out===0)Y.last_flush=-1;return j8}if(H===IK){if(I===ey0)C$._tr_align(Y);else if(I!==Ft){if(C$._tr_stored_block(Y,0,0,!1),I===$h0){if(R9(Y.head),Y.lookahead===0)Y.strstart=0,Y.block_start=0,Y.insert=0}}if(v9($),$.avail_out===0)return Y.last_flush=-1,j8}}if(I!==_9)return j8;if(Y.wrap<=0)return Nt;if(Y.wrap===2)A1(Y,$.adler&255),A1(Y,$.adler>>8&255),A1(Y,$.adler>>16&255),A1(Y,$.adler>>24&255),A1(Y,$.total_in&255),A1(Y,$.total_in>>8&255),A1(Y,$.total_in>>16&255),A1(Y,$.total_in>>24&255);else e2(Y,$.adler>>>16),e2(Y,$.adler&65535);if(v9($),Y.wrap>0)Y.wrap=-Y.wrap;return Y.pending!==0?j8:Nt}function Rh0($){var I;if(!$||!$.state)return _$;if(I=$.state.status,I!==iV&&I!==Ov&&I!==xV&&I!==kV&&I!==fV&&I!==a7&&I!==$K)return C9($,_$);return $.state=null,I===a7?C9($,Ih0):j8}function jh0($,I){var U=I.length,Y,J,Q,K,q,H,G,W;if(!$||!$.state)return _$;if(Y=$.state,K=Y.wrap,K===2||K===1&&Y.status!==iV||Y.lookahead)return _$;if(K===1)$.adler=At($.adler,I,U,0);if(Y.wrap=0,U>=Y.w_size){if(K===0)R9(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0;W=new S6.Buf8(Y.w_size),S6.arraySet(W,I,U-Y.w_size,Y.w_size,0),I=W,U=Y.w_size}q=$.avail_in,H=$.next_in,G=$.input,$.avail_in=U,$.next_in=0,$.input=I,e7(Y);while(Y.lookahead>=w1){J=Y.strstart,Q=Y.lookahead-(w1-1);do Y.ins_h=(Y.ins_h<{var nV=O5(),Rt=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch($){Rt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch($){jt=!1}var UK=new nV.Buf8(256);for(C8=0;C8<256;C8++)UK[C8]=C8>=252?6:C8>=248?5:C8>=240?4:C8>=224?3:C8>=192?2:1;var C8;UK[254]=UK[254]=1;bh0.string2buf=function($){var I,U,Y,J,Q,K=$.length,q=0;for(J=0;J>>6,I[Q++]=128|U&63;else if(U<65536)I[Q++]=224|U>>>12,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63;else I[Q++]=240|U>>>18,I[Q++]=128|U>>>12&63,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63}return I};function Ct($,I){if(I<65534){if($.subarray&&jt||!$.subarray&&Rt)return String.fromCharCode.apply(null,nV.shrinkBuf($,I))}var U="";for(var Y=0;Y4){q[Y++]=65533,U+=Q-1;continue}J&=Q===2?31:Q===3?15:7;while(Q>1&&U1){q[Y++]=65533;continue}if(J<65536)q[Y++]=J;else J-=65536,q[Y++]=55296|J>>10&1023,q[Y++]=56320|J&1023}return Ct(q,Y)};bh0.utf8border=function($,I){var U;if(I=I||$.length,I>$.length)I=$.length;U=I-1;while(U>=0&&($[U]&192)===128)U--;if(U<0)return I;if(U===0)return I;return U+UK[$[U]]>I?U:I}});var Nv=O((DP1,_t)=>{function mh0(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}_t.exports=mh0});var ht=O(($u0)=>{var YK=vt(),JK=O5(),Av=Fv(),Pv=hV(),lh0=Nv(),yt=Object.prototype.toString,oh0=0,Mv=4,pU=0,St=1,gt=2,rh0=-1,th0=0,ah0=8;function I3($){if(!(this instanceof I3))return new I3($);this.options=JK.assign({level:rh0,method:ah0,chunkSize:16384,windowBits:15,memLevel:8,strategy:th0,to:""},$||{});var I=this.options;if(I.raw&&I.windowBits>0)I.windowBits=-I.windowBits;else if(I.gzip&&I.windowBits>0&&I.windowBits<16)I.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lh0,this.strm.avail_out=0;var U=YK.deflateInit2(this.strm,I.level,I.method,I.windowBits,I.memLevel,I.strategy);if(U!==pU)throw Error(Pv[U]);if(I.header)YK.deflateSetHeader(this.strm,I.header);if(I.dictionary){var Y;if(typeof I.dictionary==="string")Y=Av.string2buf(I.dictionary);else if(yt.call(I.dictionary)==="[object ArrayBuffer]")Y=new Uint8Array(I.dictionary);else Y=I.dictionary;if(U=YK.deflateSetDictionary(this.strm,Y),U!==pU)throw Error(Pv[U]);this._dict_set=!0}}I3.prototype.push=function($,I){var U=this.strm,Y=this.options.chunkSize,J,Q;if(this.ended)return!1;if(Q=I===~~I?I:I===!0?Mv:oh0,typeof $==="string")U.input=Av.string2buf($);else if(yt.call($)==="[object ArrayBuffer]")U.input=new Uint8Array($);else U.input=$;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new JK.Buf8(Y),U.next_out=0,U.avail_out=Y;if(J=YK.deflate(U,Q),J!==St&&J!==pU)return this.onEnd(J),this.ended=!0,!1;if(U.avail_out===0||U.avail_in===0&&(Q===Mv||Q===gt))if(this.options.to==="string")this.onData(Av.buf2binstring(JK.shrinkBuf(U.output,U.next_out)));else this.onData(JK.shrinkBuf(U.output,U.next_out))}while((U.avail_in>0||U.avail_out===0)&&J!==St);if(Q===Mv)return J=YK.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===pU;if(Q===gt)return this.onEnd(pU),U.avail_out=0,!0;return!0};I3.prototype.onData=function($){this.chunks.push($)};I3.prototype.onEnd=function($){if($===pU)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=JK.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function Tv($,I){var U=new I3(I);if(U.push($,!0),U.err)throw U.msg||Pv[U.err];return U.result}function sh0($,I){return I=I||{},I.raw=!0,Tv($,I)}function eh0($,I){return I=I||{},I.gzip=!0,Tv($,I)}$u0.Deflate=I3;$u0.deflate=Tv;$u0.deflateRaw=sh0;$u0.gzip=eh0});var xt=O((FP1,ut)=>{var pV=30,Qu0=12;ut.exports=function(I,U){var Y,J,Q,K,q,H,G,W,w,Z,V,X,L,D,F,P,E,A,R,k,y,f,j,p,n;Y=I.state,J=I.next_in,p=I.input,Q=J+(I.avail_in-5),K=I.next_out,n=I.output,q=K-(U-I.avail_out),H=K+(I.avail_out-257),G=Y.dmax,W=Y.wsize,w=Y.whave,Z=Y.wnext,V=Y.window,X=Y.hold,L=Y.bits,D=Y.lencode,F=Y.distcode,P=(1<>>24,X>>>=R,L-=R,R=A>>>16&255,R===0)n[K++]=A&65535;else if(R&16){if(k=A&65535,R&=15,R){if(L>>=R,L-=R}if(L<15)X+=p[J++]<>>24,X>>>=R,L-=R,R=A>>>16&255,R&16){if(y=A&65535,R&=15,LG){I.msg="invalid distance too far back",Y.mode=pV;break $}if(X>>>=R,L-=R,R=K-q,y>R){if(R=y-R,R>w){if(Y.sane){I.msg="invalid distance too far back",Y.mode=pV;break $}}if(f=0,j=V,Z===0){if(f+=W-R,R2)n[K++]=j[f++],n[K++]=j[f++],n[K++]=j[f++],k-=3;if(k){if(n[K++]=j[f++],k>1)n[K++]=j[f++]}}else{f=K-y;do n[K++]=n[f++],n[K++]=n[f++],n[K++]=n[f++],k-=3;while(k>2);if(k){if(n[K++]=n[f++],k>1)n[K++]=n[f++]}}}else if((R&64)===0){A=F[(A&65535)+(X&(1<>3,J-=k,L-=k<<3,X&=(1<{var kt=O5(),cU=15,ft=852,bt=592,it=0,Ev=1,nt=2,Ku0=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],qu0=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Hu0=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Gu0=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];pt.exports=function(I,U,Y,J,Q,K,q,H){var G=H.bits,W=0,w=0,Z=0,V=0,X=0,L=0,D=0,F=0,P=0,E=0,A,R,k,y,f,j=null,p=0,n,S=new kt.Buf16(cU+1),b=new kt.Buf16(cU+1),i=null,U0=0,B,x,c;for(W=0;W<=cU;W++)S[W]=0;for(w=0;w=1;V--)if(S[V]!==0)break;if(X>V)X=V;if(V===0)return Q[K++]=20971520,Q[K++]=20971520,H.bits=1,0;for(Z=1;Z0&&(I===it||V!==1))return-1;b[1]=0;for(W=1;Wft||I===nt&&P>bt)return 1;for(;;){if(B=W-D,q[w]n)x=i[U0+q[w]],c=j[p+q[w]];else x=96,c=0;A=1<>D)+R]=B<<24|x<<16|c|0;while(R!==0);A=1<>=1;if(A!==0)E&=A-1,E+=A;else E=0;if(w++,--S[W]===0){if(W===V)break;W=U[Y+q[w]]}if(W>X&&(E&y)!==k){if(D===0)D=X;f+=Z,L=W-D,F=1<ft||I===nt&&P>bt)return 1;k=E&y,Q[k]=X<<24|L<<16|f-K|0}}if(E!==0)Q[f+E]=W-D<<24|4194304|0;return H.bits=X,0}});var Ea=O((Ru0)=>{var W$=O5(),_v=Zv(),_8=zv(),Wu0=xt(),QK=ct(),wu0=0,La=1,Da=2,dt=4,Vu0=5,cV=6,U3=0,Zu0=1,zu0=2,S$=-2,Oa=-3,Sv=-4,Xu0=-5,mt=8,Fa=1,lt=2,ot=3,rt=4,tt=5,at=6,st=7,et=8,$a=9,Ia=10,lV=11,N5=12,Bv=13,Ua=14,vv=15,Ya=16,Ja=17,Qa=18,Ka=19,dV=20,mV=21,qa=22,Ha=23,Ga=24,Wa=25,wa=26,Rv=27,Va=28,Za=29,q4=30,gv=31,Lu0=32,Du0=852,Ou0=592,Fu0=15,Nu0=Fu0;function za($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function Mu0(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new W$.Buf16(320),this.work=new W$.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Na($){var I;if(!$||!$.state)return S$;if(I=$.state,$.total_in=$.total_out=I.total=0,$.msg="",I.wrap)$.adler=I.wrap&1;return I.mode=Fa,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new W$.Buf32(Du0),I.distcode=I.distdyn=new W$.Buf32(Ou0),I.sane=1,I.back=-1,U3}function Ma($){var I;if(!$||!$.state)return S$;return I=$.state,I.wsize=0,I.whave=0,I.wnext=0,Na($)}function Aa($,I){var U,Y;if(!$||!$.state)return S$;if(Y=$.state,I<0)U=0,I=-I;else if(U=(I>>4)+1,I<48)I&=15;if(I&&(I<8||I>15))return S$;if(Y.window!==null&&Y.wbits!==I)Y.window=null;return Y.wrap=U,Y.wbits=I,Ma($)}function Pa($,I){var U,Y;if(!$)return S$;if(Y=new Mu0,$.state=Y,Y.window=null,U=Aa($,I),U!==U3)$.state=null;return U}function Au0($){return Pa($,Nu0)}var Xa=!0,jv,Cv;function Pu0($){if(Xa){var I;jv=new W$.Buf32(512),Cv=new W$.Buf32(32),I=0;while(I<144)$.lens[I++]=8;while(I<256)$.lens[I++]=9;while(I<280)$.lens[I++]=7;while(I<288)$.lens[I++]=8;QK(La,$.lens,0,288,jv,0,$.work,{bits:9}),I=0;while(I<32)$.lens[I++]=5;QK(Da,$.lens,0,32,Cv,0,$.work,{bits:5}),Xa=!1}$.lencode=jv,$.lenbits=9,$.distcode=Cv,$.distbits=5}function Ta($,I,U,Y){var J,Q=$.state;if(Q.window===null)Q.wsize=1<=Q.wsize)W$.arraySet(Q.window,I,U-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize;else{if(J=Q.wsize-Q.wnext,J>Y)J=Y;if(W$.arraySet(Q.window,I,U-Y,J,Q.wnext),Y-=J,Y)W$.arraySet(Q.window,I,U-Y,Y,0),Q.wnext=Y,Q.whave=Q.wsize;else{if(Q.wnext+=J,Q.wnext===Q.wsize)Q.wnext=0;if(Q.whave>>8&255,U.check=_8(U.check,j,2,0),G=0,W=0,U.mode=lt;break}if(U.flags=0,U.head)U.head.done=!1;if(!(U.wrap&1)||(((G&255)<<8)+(G>>8))%31){$.msg="incorrect header check",U.mode=q4;break}if((G&15)!==mt){$.msg="unknown compression method",U.mode=q4;break}if(G>>>=4,W-=4,y=(G&15)+8,U.wbits===0)U.wbits=y;else if(y>U.wbits){$.msg="invalid window size",U.mode=q4;break}U.dmax=1<>8&1;if(U.flags&512)j[0]=G&255,j[1]=G>>>8&255,U.check=_8(U.check,j,2,0);G=0,W=0,U.mode=ot;case ot:while(W<32){if(q===0)break $;q--,G+=Y[Q++]<>>8&255,j[2]=G>>>16&255,j[3]=G>>>24&255,U.check=_8(U.check,j,4,0);G=0,W=0,U.mode=rt;case rt:while(W<16){if(q===0)break $;q--,G+=Y[Q++]<>8;if(U.flags&512)j[0]=G&255,j[1]=G>>>8&255,U.check=_8(U.check,j,2,0);G=0,W=0,U.mode=tt;case tt:if(U.flags&1024){while(W<16){if(q===0)break $;q--,G+=Y[Q++]<>>8&255,U.check=_8(U.check,j,2,0);G=0,W=0}else if(U.head)U.head.extra=null;U.mode=at;case at:if(U.flags&1024){if(V=U.length,V>q)V=q;if(V){if(U.head){if(y=U.head.extra_len-U.length,!U.head.extra)U.head.extra=Array(U.head.extra_len);W$.arraySet(U.head.extra,Y,Q,V,y)}if(U.flags&512)U.check=_8(U.check,Y,V,Q);q-=V,Q+=V,U.length-=V}if(U.length)break $}U.length=0,U.mode=st;case st:if(U.flags&2048){if(q===0)break $;V=0;do if(y=Y[Q+V++],U.head&&y&&U.length<65536)U.head.name+=String.fromCharCode(y);while(y&&V>9&1,U.head.done=!0;$.adler=U.check=0,U.mode=N5;break;case Ia:while(W<32){if(q===0)break $;q--,G+=Y[Q++]<>>=W&7,W-=W&7,U.mode=Rv;break}while(W<3){if(q===0)break $;q--,G+=Y[Q++]<>>=1,W-=1,G&3){case 0:U.mode=Ua;break;case 1:if(Pu0(U),U.mode=dV,I===cV){G>>>=2,W-=2;break $}break;case 2:U.mode=Ja;break;case 3:$.msg="invalid block type",U.mode=q4}G>>>=2,W-=2;break;case Ua:G>>>=W&7,W-=W&7;while(W<32){if(q===0)break $;q--,G+=Y[Q++]<>>16^65535)){$.msg="invalid stored block lengths",U.mode=q4;break}if(U.length=G&65535,G=0,W=0,U.mode=vv,I===cV)break $;case vv:U.mode=Ya;case Ya:if(V=U.length,V){if(V>q)V=q;if(V>H)V=H;if(V===0)break $;W$.arraySet(J,Y,Q,V,K),q-=V,Q+=V,H-=V,K+=V,U.length-=V;break}U.mode=N5;break;case Ja:while(W<14){if(q===0)break $;q--,G+=Y[Q++]<>>=5,W-=5,U.ndist=(G&31)+1,G>>>=5,W-=5,U.ncode=(G&15)+4,G>>>=4,W-=4,U.nlen>286||U.ndist>30){$.msg="too many length or distance symbols",U.mode=q4;break}U.have=0,U.mode=Qa;case Qa:while(U.have>>=3,W-=3}while(U.have<19)U.lens[S[U.have++]]=0;if(U.lencode=U.lendyn,U.lenbits=7,p={bits:U.lenbits},f=QK(wu0,U.lens,0,19,U.lencode,0,U.work,p),U.lenbits=p.bits,f){$.msg="invalid code lengths set",U.mode=q4;break}U.have=0,U.mode=Ka;case Ka:while(U.have>>24,P=D>>>16&255,E=D&65535,F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>>=F,W-=F,U.lens[U.have++]=E;else{if(E===16){n=F+2;while(W>>=F,W-=F,U.have===0){$.msg="invalid bit length repeat",U.mode=q4;break}y=U.lens[U.have-1],V=3+(G&3),G>>>=2,W-=2}else if(E===17){n=F+3;while(W>>=F,W-=F,y=0,V=3+(G&7),G>>>=3,W-=3}else{n=F+7;while(W>>=F,W-=F,y=0,V=11+(G&127),G>>>=7,W-=7}if(U.have+V>U.nlen+U.ndist){$.msg="invalid bit length repeat",U.mode=q4;break}while(V--)U.lens[U.have++]=y}}if(U.mode===q4)break;if(U.lens[256]===0){$.msg="invalid code -- missing end-of-block",U.mode=q4;break}if(U.lenbits=9,p={bits:U.lenbits},f=QK(La,U.lens,0,U.nlen,U.lencode,0,U.work,p),U.lenbits=p.bits,f){$.msg="invalid literal/lengths set",U.mode=q4;break}if(U.distbits=6,U.distcode=U.distdyn,p={bits:U.distbits},f=QK(Da,U.lens,U.nlen,U.ndist,U.distcode,0,U.work,p),U.distbits=p.bits,f){$.msg="invalid distances set",U.mode=q4;break}if(U.mode=dV,I===cV)break $;case dV:U.mode=mV;case mV:if(q>=6&&H>=258){if($.next_out=K,$.avail_out=H,$.next_in=Q,$.avail_in=q,U.hold=G,U.bits=W,Wu0($,Z),K=$.next_out,J=$.output,H=$.avail_out,Q=$.next_in,Y=$.input,q=$.avail_in,G=U.hold,W=U.bits,U.mode===N5)U.back=-1;break}U.back=0;for(;;){if(D=U.lencode[G&(1<>>24,P=D>>>16&255,E=D&65535,F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>A)],F=D>>>24,P=D>>>16&255,E=D&65535,A+F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>>=A,W-=A,U.back+=A}if(G>>>=F,W-=F,U.back+=F,U.length=E,P===0){U.mode=wa;break}if(P&32){U.back=-1,U.mode=N5;break}if(P&64){$.msg="invalid literal/length code",U.mode=q4;break}U.extra=P&15,U.mode=qa;case qa:if(U.extra){n=U.extra;while(W>>=U.extra,W-=U.extra,U.back+=U.extra}U.was=U.length,U.mode=Ha;case Ha:for(;;){if(D=U.distcode[G&(1<>>24,P=D>>>16&255,E=D&65535,F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>A)],F=D>>>24,P=D>>>16&255,E=D&65535,A+F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>>=A,W-=A,U.back+=A}if(G>>>=F,W-=F,U.back+=F,P&64){$.msg="invalid distance code",U.mode=q4;break}U.offset=E,U.extra=P&15,U.mode=Ga;case Ga:if(U.extra){n=U.extra;while(W>>=U.extra,W-=U.extra,U.back+=U.extra}if(U.offset>U.dmax){$.msg="invalid distance too far back",U.mode=q4;break}U.mode=Wa;case Wa:if(H===0)break $;if(V=Z-H,U.offset>V){if(V=U.offset-V,V>U.whave){if(U.sane){$.msg="invalid distance too far back",U.mode=q4;break}}if(V>U.wnext)V-=U.wnext,X=U.wsize-V;else X=U.wnext-V;if(V>U.length)V=U.length;L=U.window}else L=J,X=K-U.offset,V=U.length;if(V>H)V=H;H-=V,U.length-=V;do J[K++]=L[X++];while(--V);if(U.length===0)U.mode=mV;break;case wa:if(H===0)break $;J[K++]=U.length,H--,U.mode=mV;break;case Rv:if(U.wrap){while(W<32){if(q===0)break $;q--,G|=Y[Q++]<{Ba.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var Ra=O((PP1,va)=>{function fu0(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}va.exports=fu0});var Ca=O((pu0)=>{var dU=Ea(),KK=O5(),oV=Fv(),P4=yv(),hv=hV(),bu0=Nv(),iu0=Ra(),ja=Object.prototype.toString;function Y3($){if(!(this instanceof Y3))return new Y3($);this.options=KK.assign({chunkSize:16384,windowBits:0,to:""},$||{});var I=this.options;if(I.raw&&I.windowBits>=0&&I.windowBits<16){if(I.windowBits=-I.windowBits,I.windowBits===0)I.windowBits=-15}if(I.windowBits>=0&&I.windowBits<16&&!($&&$.windowBits))I.windowBits+=32;if(I.windowBits>15&&I.windowBits<48){if((I.windowBits&15)===0)I.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bu0,this.strm.avail_out=0;var U=dU.inflateInit2(this.strm,I.windowBits);if(U!==P4.Z_OK)throw Error(hv[U]);if(this.header=new iu0,dU.inflateGetHeader(this.strm,this.header),I.dictionary){if(typeof I.dictionary==="string")I.dictionary=oV.string2buf(I.dictionary);else if(ja.call(I.dictionary)==="[object ArrayBuffer]")I.dictionary=new Uint8Array(I.dictionary);if(I.raw){if(U=dU.inflateSetDictionary(this.strm,I.dictionary),U!==P4.Z_OK)throw Error(hv[U])}}}Y3.prototype.push=function($,I){var U=this.strm,Y=this.options.chunkSize,J=this.options.dictionary,Q,K,q,H,G,W=!1;if(this.ended)return!1;if(K=I===~~I?I:I===!0?P4.Z_FINISH:P4.Z_NO_FLUSH,typeof $==="string")U.input=oV.binstring2buf($);else if(ja.call($)==="[object ArrayBuffer]")U.input=new Uint8Array($);else U.input=$;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new KK.Buf8(Y),U.next_out=0,U.avail_out=Y;if(Q=dU.inflate(U,P4.Z_NO_FLUSH),Q===P4.Z_NEED_DICT&&J)Q=dU.inflateSetDictionary(this.strm,J);if(Q===P4.Z_BUF_ERROR&&W===!0)Q=P4.Z_OK,W=!1;if(Q!==P4.Z_STREAM_END&&Q!==P4.Z_OK)return this.onEnd(Q),this.ended=!0,!1;if(U.next_out){if(U.avail_out===0||Q===P4.Z_STREAM_END||U.avail_in===0&&(K===P4.Z_FINISH||K===P4.Z_SYNC_FLUSH))if(this.options.to==="string"){if(q=oV.utf8border(U.output,U.next_out),H=U.next_out-q,G=oV.buf2string(U.output,q),U.next_out=H,U.avail_out=Y-H,H)KK.arraySet(U.output,U.output,q,H,0);this.onData(G)}else this.onData(KK.shrinkBuf(U.output,U.next_out))}if(U.avail_in===0&&U.avail_out===0)W=!0}while((U.avail_in>0||U.avail_out===0)&&Q!==P4.Z_STREAM_END);if(Q===P4.Z_STREAM_END)K=P4.Z_FINISH;if(K===P4.Z_FINISH)return Q=dU.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===P4.Z_OK;if(K===P4.Z_SYNC_FLUSH)return this.onEnd(P4.Z_OK),U.avail_out=0,!0;return!0};Y3.prototype.onData=function($){this.chunks.push($)};Y3.prototype.onEnd=function($){if($===P4.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=KK.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function uv($,I){var U=new Y3(I);if(U.push($,!0),U.err)throw U.msg||hv[U.err];return U.result}function nu0($,I){return I=I||{},I.raw=!0,uv($,I)}pu0.Inflate=Y3;pu0.inflate=uv;pu0.inflateRaw=nu0;pu0.ungzip=uv});var ga=O((EP1,Sa)=>{var ou0=O5().assign,ru0=ht(),tu0=Ca(),au0=yv(),_a={};ou0(_a,ru0,tu0,au0);Sa.exports=_a});var ha=O((Ix0)=>{var su0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",eu0=ga(),ya=w4(),rV=G$(),$x0=su0?"uint8array":"array";Ix0.magic="\b\x00";function J3($,I){rV.call(this,"FlateWorker/"+$),this._pako=null,this._pakoAction=$,this._pakoOptions=I,this.meta={}}ya.inherits(J3,rV);J3.prototype.processChunk=function($){if(this.meta=$.meta,this._pako===null)this._createPako();this._pako.push(ya.transformTo($x0,$.data),!1)};J3.prototype.flush=function(){if(rV.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};J3.prototype.cleanUp=function(){rV.prototype.cleanUp.call(this),this._pako=null};J3.prototype._createPako=function(){this._pako=new eu0[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var $=this;this._pako.onData=function(I){$.push({data:I,meta:$.meta})}};Ix0.compressWorker=function($){return new J3("Deflate",$)};Ix0.uncompressWorker=function(){return new J3("Inflate",{})}});var xv=O((Qx0)=>{var ua=G$();Qx0.STORE={magic:"\x00\x00",compressWorker:function(){return new ua("STORE compression")},uncompressWorker:function(){return new ua("STORE decompression")}};Qx0.DEFLATE=ha()});var kv=O((Hx0)=>{Hx0.LOCAL_FILE_HEADER="PK\x03\x04";Hx0.CENTRAL_FILE_HEADER="PK\x01\x02";Hx0.CENTRAL_DIRECTORY_END="PK\x05\x06";Hx0.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";Hx0.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";Hx0.DATA_DESCRIPTOR="PK\x07\b"});var ba=O((jP1,fa)=>{var mU=w4(),lU=G$(),fv=uU(),xa=_V(),tV=kv(),o1=function($,I){var U="",Y;for(Y=0;Y>>8;return U},Xx0=function($,I){var U=$;if(!$)U=I?16893:33204;return(U&65535)<<16},Lx0=function($){return($||0)&63},ka=function($,I,U,Y,J,Q){var{file:K,compression:q}=$,H=Q!==fv.utf8encode,G=mU.transformTo("string",Q(K.name)),W=mU.transformTo("string",fv.utf8encode(K.name)),w=K.comment,Z=mU.transformTo("string",Q(w)),V=mU.transformTo("string",fv.utf8encode(w)),X=W.length!==K.name.length,L=V.length!==w.length,D,F,P="",E="",A="",R=K.dir,k=K.date,y={crc32:0,compressedSize:0,uncompressedSize:0};if(!I||U)y.crc32=$.crc32,y.compressedSize=$.compressedSize,y.uncompressedSize=$.uncompressedSize;var f=0;if(I)f|=8;if(!H&&(X||L))f|=2048;var j=0,p=0;if(R)j|=16;if(J==="UNIX")p=798,j|=Xx0(K.unixPermissions,R);else p=20,j|=Lx0(K.dosPermissions,R);if(D=k.getUTCHours(),D=D<<6,D=D|k.getUTCMinutes(),D=D<<5,D=D|k.getUTCSeconds()/2,F=k.getUTCFullYear()-1980,F=F<<4,F=F|k.getUTCMonth()+1,F=F<<5,F=F|k.getUTCDate(),X)E=o1(1,1)+o1(xa(G),4)+W,P+="up"+o1(E.length,2)+E;if(L)A=o1(1,1)+o1(xa(Z),4)+V,P+="uc"+o1(A.length,2)+A;var n="";n+=` -\x00`,n+=o1(f,2),n+=q.magic,n+=o1(D,2),n+=o1(F,2),n+=o1(y.crc32,4),n+=o1(y.compressedSize,4),n+=o1(y.uncompressedSize,4),n+=o1(G.length,2),n+=o1(P.length,2);var S=tV.LOCAL_FILE_HEADER+n+G+P,b=tV.CENTRAL_FILE_HEADER+o1(p,2)+n+o1(Z.length,2)+"\x00\x00\x00\x00"+o1(j,4)+o1(Y,4)+G+P+Z;return{fileRecord:S,dirRecord:b}},Dx0=function($,I,U,Y,J){var Q="",K=mU.transformTo("string",J(Y));return Q=tV.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+o1($,2)+o1($,2)+o1(I,4)+o1(U,4)+o1(K.length,2)+K,Q},Ox0=function($){var I="";return I=tV.DATA_DESCRIPTOR+o1($.crc32,4)+o1($.compressedSize,4)+o1($.uncompressedSize,4),I};function J8($,I,U,Y){lU.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=U,this.encodeFileName=Y,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}mU.inherits(J8,lU);J8.prototype.push=function($){var I=$.meta.percent||0,U=this.entriesCount,Y=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,lU.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:U?(I+100*(U-Y-1))/U:100}})};J8.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var I=this.streamFiles&&!$.file.dir;if(I){var U=ka($,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J8.prototype.closedSource=function($){this.accumulate=!1;var I=this.streamFiles&&!$.file.dir,U=ka($,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),I)this.push({data:Ox0($),meta:{percent:100}});else{this.push({data:U.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J8.prototype.flush=function(){var $=this.bytesWritten;for(var I=0;I{var Fx0=xv(),Nx0=ba(),Mx0=function($,I){var U=$||I,Y=Fx0[U];if(!Y)throw Error(U+" is not a valid compression method !");return Y};Ax0.generateWorker=function($,I,U){var Y=new Nx0(I.streamFiles,U,I.platform,I.encodeFileName),J=0;try{$.forEach(function(Q,K){J++;var q=Mx0(K.options.compression,I.compression),H=K.options.compressionOptions||I.compressionOptions||{},G=K.dir,W=K.date;K._compressWorker(q,H).withStreamInfo("file",{name:Q,dir:G,date:W,comment:K.comment||"",unixPermissions:K.unixPermissions,dosPermissions:K.dosPermissions}).pipe(Y)}),Y.entriesCount=J}catch(Q){Y.error(Q)}return Y}});var pa=O((_P1,na)=>{var Tx0=w4(),aV=G$();function qK($,I){aV.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(I)}Tx0.inherits(qK,aV);qK.prototype._bindStream=function($){var I=this;this._stream=$,$.pause(),$.on("data",function(U){I.push({data:U,meta:{percent:0}})}).on("error",function(U){if(I.isPaused)this.generatedError=U;else I.error(U)}).on("end",function(){if(I.isPaused)I._upstreamEnded=!0;else I.end()})};qK.prototype.pause=function(){if(!aV.prototype.pause.call(this))return!1;return this._stream.pause(),!0};qK.prototype.resume=function(){if(!aV.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};na.exports=qK});var ea=O((SP1,sa)=>{var Ex0=uU(),HK=w4(),la=G$(),Bx0=pB(),oa=cB(),ca=SV(),vx0=dr(),Rx0=ia(),da=b2(),jx0=pa(),ra=function($,I,U){var Y=HK.getTypeOf(I),J,Q=HK.extend(U||{},oa);if(Q.date=Q.date||new Date,Q.compression!==null)Q.compression=Q.compression.toUpperCase();if(typeof Q.unixPermissions==="string")Q.unixPermissions=parseInt(Q.unixPermissions,8);if(Q.unixPermissions&&Q.unixPermissions&16384)Q.dir=!0;if(Q.dosPermissions&&Q.dosPermissions&16)Q.dir=!0;if(Q.dir)$=ta($);if(Q.createFolders&&(J=Cx0($)))aa.call(this,J,!0);var K=Y==="string"&&Q.binary===!1&&Q.base64===!1;if(!U||typeof U.binary>"u")Q.binary=!K;var q=I instanceof ca&&I.uncompressedSize===0;if(q||Q.dir||!I||I.length===0)Q.base64=!1,Q.binary=!0,I="",Q.compression="STORE",Y="string";var H=null;if(I instanceof ca||I instanceof la)H=I;else if(da.isNode&&da.isStream(I))H=new jx0($,I);else H=HK.prepareContent($,I,Q.binary,Q.optimizedBinaryString,Q.base64);var G=new vx0($,H,Q);this.files[$]=G},Cx0=function($){if($.slice(-1)==="/")$=$.substring(0,$.length-1);var I=$.lastIndexOf("/");return I>0?$.substring(0,I):""},ta=function($){if($.slice(-1)!=="/")$+="/";return $},aa=function($,I){if(I=typeof I<"u"?I:oa.createFolders,$=ta($),!this.files[$])ra.call(this,$,null,{dir:!0,createFolders:I});return this.files[$]};function ma($){return Object.prototype.toString.call($)==="[object RegExp]"}var _x0={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function($){var I,U,Y;for(I in this.files)if(Y=this.files[I],U=I.slice(this.root.length,I.length),U&&I.slice(0,this.root.length)===this.root)$(U,Y)},filter:function($){var I=[];return this.forEach(function(U,Y){if($(U,Y))I.push(Y)}),I},file:function($,I,U){if(arguments.length===1)if(ma($)){var Y=$;return this.filter(function(Q,K){return!K.dir&&Y.test(Q)})}else{var J=this.files[this.root+$];if(J&&!J.dir)return J;else return null}else $=this.root+$,ra.call(this,$,I,U);return this},folder:function($){if(!$)return this;if(ma($))return this.filter(function(J,Q){return Q.dir&&$.test(J)});var I=this.root+$,U=aa.call(this,I),Y=this.clone();return Y.root=U.name,Y},remove:function($){$=this.root+$;var I=this.files[$];if(!I){if($.slice(-1)!=="/")$+="/";I=this.files[$]}if(I&&!I.dir)delete this.files[$];else{var U=this.filter(function(J,Q){return Q.name.slice(0,$.length)===$});for(var Y=0;Y{var Sx0=w4();function $s($){this.data=$,this.length=$.length,this.index=0,this.zero=0}$s.prototype={checkOffset:function($){this.checkIndex(this.index+$)},checkIndex:function($){if(this.length=this.index;U--)I=(I<<8)+this.byteAt(U);return this.index+=$,I},readString:function($){return Sx0.transformTo("string",this.readData($))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var $=this.readInt(4);return new Date(Date.UTC(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1))}};Is.exports=$s});var iv=O((yP1,Ys)=>{var Us=bv(),gx0=w4();function oU($){Us.call(this,$);for(var I=0;I=0;--Q)if(this.data[Q]===I&&this.data[Q+1]===U&&this.data[Q+2]===Y&&this.data[Q+3]===J)return Q-this.zero;return-1};oU.prototype.readAndCheckSignature=function($){var I=$.charCodeAt(0),U=$.charCodeAt(1),Y=$.charCodeAt(2),J=$.charCodeAt(3),Q=this.readData(4);return I===Q[0]&&U===Q[1]&&Y===Q[2]&&J===Q[3]};oU.prototype.readData=function($){if(this.checkOffset($),$===0)return[];var I=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Ys.exports=oU});var Ks=O((hP1,Qs)=>{var Js=bv(),yx0=w4();function rU($){Js.call(this,$)}yx0.inherits(rU,Js);rU.prototype.byteAt=function($){return this.data.charCodeAt(this.zero+$)};rU.prototype.lastIndexOfSignature=function($){return this.data.lastIndexOf($)-this.zero};rU.prototype.readAndCheckSignature=function($){var I=this.readData(4);return $===I};rU.prototype.readData=function($){this.checkOffset($);var I=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Qs.exports=rU});var pv=O((uP1,Hs)=>{var qs=iv(),hx0=w4();function nv($){qs.call(this,$)}hx0.inherits(nv,qs);nv.prototype.readData=function($){if(this.checkOffset($),$===0)return new Uint8Array(0);var I=this.data.subarray(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Hs.exports=nv});var ws=O((xP1,Ws)=>{var Gs=pv(),ux0=w4();function cv($){Gs.call(this,$)}ux0.inherits(cv,Gs);cv.prototype.readData=function($){this.checkOffset($);var I=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Ws.exports=cv});var dv=O((kP1,Zs)=>{var sV=w4(),Vs=D5(),xx0=iv(),kx0=Ks(),fx0=ws(),bx0=pv();Zs.exports=function($){var I=sV.getTypeOf($);if(sV.checkSupport(I),I==="string"&&!Vs.uint8array)return new kx0($);if(I==="nodebuffer")return new fx0($);if(Vs.uint8array)return new bx0(sV.transformTo("uint8array",$));return new xx0(sV.transformTo("array",$))}});var Ds=O((fP1,Ls)=>{var mv=dv(),S9=w4(),ix0=SV(),zs=_V(),eV=uU(),$Z=xv(),nx0=D5(),px0=0,cx0=3,dx0=function($){for(var I in $Z){if(!Object.prototype.hasOwnProperty.call($Z,I))continue;if($Z[I].magic===$)return $Z[I]}return null};function Xs($,I){this.options=$,this.loadOptions=I}Xs.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function($){var I,U;if($.skip(22),this.fileNameLength=$.readInt(2),U=$.readInt(2),this.fileName=$.readData(this.fileNameLength),$.skip(U),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(I=dx0(this.compressionMethod),I===null)throw Error("Corrupted zip : compression "+S9.pretty(this.compressionMethod)+" unknown (inner file : "+S9.transformTo("string",this.fileName)+")");this.decompressed=new ix0(this.compressedSize,this.uncompressedSize,this.crc32,I,$.readData(this.compressedSize))},readCentralPart:function($){this.versionMadeBy=$.readInt(2),$.skip(2),this.bitFlag=$.readInt(2),this.compressionMethod=$.readString(2),this.date=$.readDate(),this.crc32=$.readInt(4),this.compressedSize=$.readInt(4),this.uncompressedSize=$.readInt(4);var I=$.readInt(2);if(this.extraFieldsLength=$.readInt(2),this.fileCommentLength=$.readInt(2),this.diskNumberStart=$.readInt(2),this.internalFileAttributes=$.readInt(2),this.externalFileAttributes=$.readInt(4),this.localHeaderOffset=$.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");$.skip(I),this.readExtraFields($),this.parseZIP64ExtraField($),this.fileComment=$.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var $=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,$===px0)this.dosPermissions=this.externalFileAttributes&63;if($===cx0)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var $=mv(this.extraFields[1].value);if(this.uncompressedSize===S9.MAX_VALUE_32BITS)this.uncompressedSize=$.readInt(8);if(this.compressedSize===S9.MAX_VALUE_32BITS)this.compressedSize=$.readInt(8);if(this.localHeaderOffset===S9.MAX_VALUE_32BITS)this.localHeaderOffset=$.readInt(8);if(this.diskNumberStart===S9.MAX_VALUE_32BITS)this.diskNumberStart=$.readInt(4)},readExtraFields:function($){var I=$.index+this.extraFieldsLength,U,Y,J;if(!this.extraFields)this.extraFields={};while($.index+4{var mx0=dv(),M5=w4(),Q8=kv(),lx0=Ds(),ox0=D5();function Os($){this.files=[],this.loadOptions=$}Os.prototype={checkSignature:function($){if(!this.reader.readAndCheckSignature($)){this.reader.index-=4;var I=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+M5.pretty(I)+", expected "+M5.pretty($)+")")}},isSignature:function($,I){var U=this.reader.index;this.reader.setIndex($);var Y=this.reader.readString(4),J=Y===I;return this.reader.setIndex(U),J},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var $=this.reader.readData(this.zipCommentLength),I=ox0.uint8array?"uint8array":"array",U=M5.transformTo(I,$);this.zipComment=this.loadOptions.decodeFileName(U)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var $=this.zip64EndOfCentralSize-44,I=0,U,Y,J;while(I<$)U=this.reader.readInt(2),Y=this.reader.readInt(4),J=this.reader.readData(Y),this.zip64ExtensibleData[U]={id:U,length:Y,value:J}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var $,I;for($=0;$0)if(this.isSignature(U,Q8.CENTRAL_FILE_HEADER));else this.reader.zero=J;else if(J<0)throw Error("Corrupted zip: missing "+Math.abs(J)+" bytes.")},prepareReader:function($){this.reader=mx0($)},load:function($){this.prepareReader($),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};Fs.exports=Os});var Ps=O((iP1,As)=>{var lv=w4(),IZ=gU(),rx0=uU(),tx0=Ns(),ax0=lB(),Ms=b2();function sx0($){return new IZ.Promise(function(I,U){var Y=$.decompressed.getContentWorker().pipe(new ax0);Y.on("error",function(J){U(J)}).on("end",function(){if(Y.streamInfo.crc32!==$.decompressed.crc32)U(Error("Corrupted zip : CRC32 mismatch"));else I()}).resume()})}As.exports=function($,I){var U=this;if(I=lv.extend(I||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:rx0.utf8decode}),Ms.isNode&&Ms.isStream($))return IZ.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return lv.prepareContent("the loaded zip file",$,!0,I.optimizedBinaryString,I.base64).then(function(Y){var J=new tx0(I);return J.load(Y),J}).then(function(J){var Q=[IZ.Promise.resolve(J)],K=J.files;if(I.checkCRC32)for(var q=0;q{function g$(){if(!(this instanceof g$))return new g$;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var $=new g$;for(var I in this)if(typeof this[I]!=="function")$[I]=this[I];return $}}g$.prototype=ea();g$.prototype.loadAsync=Ps();g$.support=D5();g$.defaults=cB();g$.version="3.10.1";g$.loadAsync=function($,I){return new g$().loadAsync($,I)};g$.external=gU();Ts.exports=g$});var Cs=O((pP1,js)=>{function Es($,I){var U=Object.keys($);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols($);I&&(Y=Y.filter(function(J){return Object.getOwnPropertyDescriptor($,J).enumerable})),U.push.apply(U,Y)}return U}function Bs($){for(var I=1;I0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length}},{key:"unshift",value:function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J}},{key:"concat",value:function(U){if(this.length===0)return UZ.alloc(0);var Y=UZ.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)Kk0(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y}},{key:"consume",value:function(U,Y){var J;if(UK.length?K.length:U;if(q===K.length)Q+=K;else Q+=K.slice(0,U);if(U-=q,U===0){if(q===K.length)if(++J,Y.next)this.head=Y.next;else this.head=this.tail=null;else this.head=Y,Y.data=K.slice(q);break}++J}return this.length-=J,Q}},{key:"_getBuffer",value:function(U){var Y=UZ.allocUnsafe(U),J=this.head,Q=1;J.data.copy(Y),U-=J.data.length;while(J=J.next){var K=J.data,q=U>K.length?K.length:U;if(K.copy(Y,Y.length-U,0,q),U-=q,U===0){if(q===K.length)if(++Q,J.next)this.head=J.next;else this.head=this.tail=null;else this.head=J,J.data=K.slice(q);break}++Q}return this.length-=Q,Y}},{key:Qk0,value:function(U,Y){return rv(this,Bs(Bs({},Y),{},{depth:0,customInspect:!1}))}}]),$}()});var av=O((cP1,Ss)=>{function qk0($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)process.nextTick(tv,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(tv,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q)if(!U._writableState)process.nextTick(_s,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,process.nextTick(_s,U,Q);else process.nextTick(YZ,U);else if(I)process.nextTick(YZ,U),I(Q);else process.nextTick(YZ,U)}),this}function _s($,I){tv($,I),YZ($)}function YZ($){if($._writableState&&!$._writableState.emitClose)return;if($._readableState&&!$._readableState.emitClose)return;$.emit("close")}function Hk0(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function tv($,I){$.emit("error",I)}function Gk0($,I){var{_readableState:U,_writableState:Y}=$;if(U&&U.autoDestroy||Y&&Y.autoDestroy)$.destroy(I);else $.emit("error",I)}Ss.exports={destroy:qk0,undestroy:Hk0,errorOrDestroy:Gk0}});var g9=O((Zk0,hs)=>{var ys={};function y$($,I,U){if(!U)U=Error;function Y(Q,K,q){if(typeof I==="string")return I;else return I(Q,K,q)}class J extends U{constructor(Q,K,q){super(Y(Q,K,q))}}J.prototype.name=U.name,J.prototype.code=$,ys[$]=J}function gs($,I){if(Array.isArray($)){let U=$.length;if($=$.map((Y)=>String(Y)),U>2)return`one of ${I} ${$.slice(0,U-1).join(", ")}, or `+$[U-1];else if(U===2)return`one of ${I} ${$[0]} or ${$[1]}`;else return`of ${I} ${$[0]}`}else return`of ${I} ${String($)}`}function Wk0($,I,U){return $.substr(!U||U<0?0:+U,I.length)===I}function wk0($,I,U){if(U===void 0||U>$.length)U=$.length;return $.substring(U-I.length,U)===I}function Vk0($,I,U){if(typeof U!=="number")U=0;if(U+I.length>$.length)return!1;else return $.indexOf(I,U)!==-1}y$("ERR_INVALID_OPT_VALUE",function($,I){return'The value "'+I+'" is invalid for option "'+$+'"'},TypeError);y$("ERR_INVALID_ARG_TYPE",function($,I,U){let Y;if(typeof I==="string"&&Wk0(I,"not "))Y="must not be",I=I.replace(/^not /,"");else Y="must be";let J;if(wk0($," argument"))J=`The ${$} ${Y} ${gs(I,"type")}`;else{let Q=Vk0($,".")?"property":"argument";J=`The "${$}" ${Q} ${Y} ${gs(I,"type")}`}return J+=`. Received type ${typeof U}`,J},TypeError);y$("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");y$("ERR_METHOD_NOT_IMPLEMENTED",function($){return"The "+$+" method is not implemented"});y$("ERR_STREAM_PREMATURE_CLOSE","Premature close");y$("ERR_STREAM_DESTROYED",function($){return"Cannot call "+$+" after a stream was destroyed"});y$("ERR_MULTIPLE_CALLBACK","Callback called multiple times");y$("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");y$("ERR_STREAM_WRITE_AFTER_END","write after end");y$("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);y$("ERR_UNKNOWN_ENCODING",function($){return"Unknown encoding: "+$},TypeError);y$("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Zk0.codes=ys});var sv=O((dP1,us)=>{var Xk0=g9().codes.ERR_INVALID_OPT_VALUE;function Lk0($,I,U){return $.highWaterMark!=null?$.highWaterMark:I?$[U]:null}function Dk0($,I,U,Y){var J=Lk0(I,Y,U);if(J!=null){if(!(isFinite(J)&&Math.floor(J)===J)||J<0){var Q=Y?U:"highWaterMark";throw new Xk0(Q,J)}return Math.floor(J)}return $.objectMode?16:16384}us.exports={getHighWaterMark:Dk0}});var IR=O((mP1,ns)=>{ns.exports=L4;function ks($){var I=this;this.next=null,this.entry=null,this.finish=function(){ck0(I,$)}}var tU;L4.WritableState=WK;var Ok0={deprecate:d7()},fs=t("stream"),QZ=t("buffer").Buffer,Fk0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Nk0($){return QZ.from($)}function Mk0($){return QZ.isBuffer($)||$ instanceof Fk0}var $R=av(),Ak0=sv(),Pk0=Ak0.getHighWaterMark,y9=g9().codes,Tk0=y9.ERR_INVALID_ARG_TYPE,Ek0=y9.ERR_METHOD_NOT_IMPLEMENTED,Bk0=y9.ERR_MULTIPLE_CALLBACK,vk0=y9.ERR_STREAM_CANNOT_PIPE,Rk0=y9.ERR_STREAM_DESTROYED,jk0=y9.ERR_STREAM_NULL_VALUES,Ck0=y9.ERR_STREAM_WRITE_AFTER_END,_k0=y9.ERR_UNKNOWN_ENCODING,aU=$R.errorOrDestroy;c0()(L4,fs);function Sk0(){}function WK($,I,U){if(tU=tU||Q3(),$=$||{},typeof U!=="boolean")U=I instanceof tU;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;this.highWaterMark=Pk0(this,$,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=$.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(J){fk0(I,J)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ks(this)}WK.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(WK.prototype,"buffer",{get:Ok0.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var JZ;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")JZ=Function.prototype[Symbol.hasInstance],Object.defineProperty(L4,Symbol.hasInstance,{value:function(I){if(JZ.call(this,I))return!0;if(this!==L4)return!1;return I&&I._writableState instanceof WK}});else JZ=function(I){return I instanceof this};function L4($){tU=tU||Q3();var I=this instanceof tU;if(!I&&!JZ.call(L4,this))return new L4($);if(this._writableState=new WK($,this,I),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}fs.call(this)}L4.prototype.pipe=function(){aU(this,new vk0)};function gk0($,I){var U=new Ck0;aU($,U),process.nextTick(I,U)}function yk0($,I,U,Y){var J;if(U===null)J=new jk0;else if(typeof U!=="string"&&!I.objectMode)J=new Tk0("chunk",["string","Buffer"],U);if(J)return aU($,J),process.nextTick(Y,J),!1;return!0}L4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&Mk0($);if(Q&&!QZ.isBuffer($))$=Nk0($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=Sk0;if(Y.ending)gk0(this,U);else if(Q||yk0(this,Y,$,U))Y.pendingcb++,J=uk0(this,Y,Q,$,I,U);return J};L4.prototype.cork=function(){this._writableState.corked++};L4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)bs(this,$)}};L4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new _k0(I);return this._writableState.defaultEncoding=I,this};Object.defineProperty(L4.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function hk0($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=QZ.from(I,U);return I}Object.defineProperty(L4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uk0($,I,U,Y,J,Q){if(!U){var K=hk0(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var dk0=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};cs.exports=S8;var ps=YR(),UR=IR();c0()(S8,ps);{KZ=dk0(UR.prototype);for(wK=0;wK{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var qZ=t("buffer"),g8=qZ.Buffer;function ds($,I){for(var U in $)I[U]=$[U]}if(g8.from&&g8.alloc&&g8.allocUnsafe&&g8.allocUnsafeSlow)ms.exports=qZ;else ds(qZ,JR),JR.Buffer=K3;function K3($,I,U){return g8($,I,U)}K3.prototype=Object.create(g8.prototype);ds(g8,K3);K3.from=function($,I,U){if(typeof $==="number")throw TypeError("Argument must not be a number");return g8($,I,U)};K3.alloc=function($,I,U){if(typeof $!=="number")throw TypeError("Argument must be a number");var Y=g8($);if(I!==void 0)if(typeof U==="string")Y.fill(I,U);else Y.fill(I);else Y.fill(0);return Y};K3.allocUnsafe=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return g8($)};K3.allocUnsafeSlow=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return qZ.SlowBuffer($)}});var qR=O((qf0)=>{var KR=ls().Buffer,os=KR.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ok0($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function rk0($){var I=ok0($);if(typeof I!=="string"&&(KR.isEncoding===os||!os($)))throw Error("Unknown encoding: "+$);return I||$}qf0.StringDecoder=ZK;function ZK($){this.encoding=rk0($);var I;switch(this.encoding){case"utf16le":this.text=If0,this.end=Uf0,I=4;break;case"utf8":this.fillLast=sk0,I=4;break;case"base64":this.text=Yf0,this.end=Jf0,I=3;break;default:this.write=Qf0,this.end=Kf0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=KR.allocUnsafe(I)}ZK.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};ZK.prototype.end=$f0;ZK.prototype.text=ek0;ZK.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function QR($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function tk0($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function ak0($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function sk0($){var I=this.lastTotal-this.lastNeed,U=ak0(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function ek0($,I){var U=tk0(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function $f0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function If0($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function Uf0($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function Yf0($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function Jf0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function Qf0($){return $.toString(this.encoding)}function Kf0($){return $&&$.length?this.write($):""}});var HZ=O((rP1,as)=>{var rs=g9().codes.ERR_STREAM_PREMATURE_CLOSE;function Gf0($){var I=!1;return function(){if(I)return;I=!0;for(var U=arguments.length,Y=Array(U),J=0;J{var GZ;function h9($,I,U){if(I=Vf0(I),I in $)Object.defineProperty($,I,{value:U,enumerable:!0,configurable:!0,writable:!0});else $[I]=U;return $}function Vf0($){var I=Zf0($,"string");return typeof I==="symbol"?I:String(I)}function Zf0($,I){if(typeof $!=="object"||$===null)return $;var U=$[Symbol.toPrimitive];if(U!==void 0){var Y=U.call($,I||"default");if(typeof Y!=="object")return Y;throw TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)($)}var zf0=HZ(),u9=Symbol("lastResolve"),q3=Symbol("lastReject"),zK=Symbol("error"),WZ=Symbol("ended"),H3=Symbol("lastPromise"),HR=Symbol("handlePromise"),G3=Symbol("stream");function x9($,I){return{value:$,done:I}}function Xf0($){var I=$[u9];if(I!==null){var U=$[G3].read();if(U!==null)$[H3]=null,$[u9]=null,$[q3]=null,I(x9(U,!1))}}function Lf0($){process.nextTick(Xf0,$)}function Df0($,I){return function(U,Y){$.then(function(){if(I[WZ]){U(x9(void 0,!0));return}I[HR](U,Y)},Y)}}var Of0=Object.getPrototypeOf(function(){}),Ff0=Object.setPrototypeOf((GZ={get stream(){return this[G3]},next:function(){var I=this,U=this[zK];if(U!==null)return Promise.reject(U);if(this[WZ])return Promise.resolve(x9(void 0,!0));if(this[G3].destroyed)return new Promise(function(K,q){process.nextTick(function(){if(I[zK])q(I[zK]);else K(x9(void 0,!0))})});var Y=this[H3],J;if(Y)J=new Promise(Df0(Y,this));else{var Q=this[G3].read();if(Q!==null)return Promise.resolve(x9(Q,!1));J=new Promise(this[HR])}return this[H3]=J,J}},h9(GZ,Symbol.asyncIterator,function(){return this}),h9(GZ,"return",function(){var I=this;return new Promise(function(U,Y){I[G3].destroy(null,function(J){if(J){Y(J);return}U(x9(void 0,!0))})})}),GZ),Of0),Nf0=function(I){var U,Y=Object.create(Ff0,(U={},h9(U,G3,{value:I,writable:!0}),h9(U,u9,{value:null,writable:!0}),h9(U,q3,{value:null,writable:!0}),h9(U,zK,{value:null,writable:!0}),h9(U,WZ,{value:I._readableState.endEmitted,writable:!0}),h9(U,HR,{value:function(Q,K){var q=Y[G3].read();if(q)Y[H3]=null,Y[u9]=null,Y[q3]=null,Q(x9(q,!1));else Y[u9]=Q,Y[q3]=K},writable:!0}),U));return Y[H3]=null,zf0(I,function(J){if(J&&J.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Q=Y[q3];if(Q!==null)Y[H3]=null,Y[u9]=null,Y[q3]=null,Q(J);Y[zK]=J;return}var K=Y[u9];if(K!==null)Y[H3]=null,Y[u9]=null,Y[q3]=null,K(x9(void 0,!0));Y[WZ]=!0}),I.on("readable",Lf0.bind(null,Y)),Y};ss.exports=Nf0});var Ye=O((aP1,Ue)=>{function $e($,I,U,Y,J,Q,K){try{var q=$[Q](K),H=q.value}catch(G){U(G);return}if(q.done)I(H);else Promise.resolve(H).then(Y,J)}function Mf0($){return function(){var I=this,U=arguments;return new Promise(function(Y,J){var Q=$.apply(I,U);function K(H){$e(Q,Y,J,K,q,"next",H)}function q(H){$e(Q,Y,J,K,q,"throw",H)}K(void 0)})}}function Ie($,I){var U=Object.keys($);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols($);I&&(Y=Y.filter(function(J){return Object.getOwnPropertyDescriptor($,J).enumerable})),U.push.apply(U,Y)}return U}function Af0($){for(var I=1;I{Ze.exports=D1;var sU;D1.ReadableState=qe;var sP1=t("events").EventEmitter,Ke=function(I,U){return I.listeners(U).length},LK=t("stream"),wZ=t("buffer").Buffer,Rf0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function jf0($){return wZ.from($)}function Cf0($){return wZ.isBuffer($)||$ instanceof Rf0}var GR=t("util"),J1;if(GR&&GR.debuglog)J1=GR.debuglog("stream");else J1=function(){};var _f0=Cs(),LR=av(),Sf0=sv(),gf0=Sf0.getHighWaterMark,VZ=g9().codes,yf0=VZ.ERR_INVALID_ARG_TYPE,hf0=VZ.ERR_STREAM_PUSH_AFTER_EOF,uf0=VZ.ERR_METHOD_NOT_IMPLEMENTED,xf0=VZ.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,eU,WR,wR;c0()(D1,LK);var XK=LR.errorOrDestroy,VR=["error","close","destroy","pause","resume"];function kf0($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(Array.isArray($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function qe($,I,U){if(sU=sU||Q3(),$=$||{},typeof U!=="boolean")U=I instanceof sU;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;if(this.highWaterMark=gf0(this,$,"readableHighWaterMark",U),this.buffer=new _f0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!eU)eU=qR().StringDecoder;this.decoder=new eU($.encoding),this.encoding=$.encoding}}function D1($){if(sU=sU||Q3(),!(this instanceof D1))return new D1($);var I=this instanceof sU;if(this._readableState=new qe($,this,I),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}LK.call(this)}Object.defineProperty(D1.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(I){if(!this._readableState)return;this._readableState.destroyed=I}});D1.prototype.destroy=LR.destroy;D1.prototype._undestroy=LR.undestroy;D1.prototype._destroy=function($,I){I($)};D1.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=wZ.from($,I),I="";Y=!0}}else Y=!0;return He(this,$,I,!1,Y)};D1.prototype.unshift=function($){return He(this,$,null,!0,!1)};function He($,I,U,Y,J){J1("readableAddChunk",I);var Q=$._readableState;if(I===null)Q.reading=!1,if0($,Q);else{var K;if(!J)K=ff0(Q,I);if(K)XK($,K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==wZ.prototype)I=jf0(I);if(Y)if(Q.endEmitted)XK($,new xf0);else ZR($,Q,I,!0);else if(Q.ended)XK($,new hf0);else if(Q.destroyed)return!1;else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)ZR($,Q,I,!1);else XR($,Q);else ZR($,Q,I,!1)}else if(!Y)Q.reading=!1,XR($,Q)}return!Q.ended&&(Q.length=Je)$=Je;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function Qe($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=bf0($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}D1.prototype.read=function($){J1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended)){if(J1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)zR(this);else ZZ(this);return null}if($=Qe($,I),$===0&&I.ended){if(I.length===0)zR(this);return null}var Y=I.needReadable;if(J1("need readable",Y),I.length===0||I.length-$0)J=we($,I);else J=null;if(J===null)I.needReadable=I.length<=I.highWaterMark,$=0;else I.length-=$,I.awaitDrain=0;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)zR(this)}if(J!==null)this.emit("data",J);return J};function if0($,I){if(J1("onEofChunk"),I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}if(I.ended=!0,I.sync)ZZ($);else if(I.needReadable=!1,!I.emittedReadable)I.emittedReadable=!0,Ge($)}function ZZ($){var I=$._readableState;if(J1("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,!I.emittedReadable)J1("emitReadable",I.flowing),I.emittedReadable=!0,process.nextTick(Ge,$)}function Ge($){var I=$._readableState;if(J1("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended))$.emit("readable"),I.emittedReadable=!1;I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,DR($)}function XR($,I){if(!I.readingMore)I.readingMore=!0,process.nextTick(nf0,$,I)}function nf0($,I){while(!I.reading&&!I.ended&&(I.length1&&Ve(Y.pipes,$)!==-1)&&!G)J1("false write response, pause",Y.awaitDrain),Y.awaitDrain++;U.pause()}}function Z(D){if(J1("onerror",D),L(),$.removeListener("error",Z),Ke($,"error")===0)XK($,D)}kf0($,"error",Z);function V(){$.removeListener("finish",X),L()}$.once("close",V);function X(){J1("onfinish"),$.removeListener("close",V),L()}$.once("finish",X);function L(){J1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)J1("pipe resume"),U.resume();return $};function pf0($){return function(){var U=$._readableState;if(J1("pipeOnDrain",U.awaitDrain),U.awaitDrain)U.awaitDrain--;if(U.awaitDrain===0&&Ke($,"data"))U.flowing=!0,DR($)}}D1.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q0,Y.flowing!==!1)this.resume()}else if($==="readable"){if(!Y.endEmitted&&!Y.readableListening){if(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,J1("on readable",Y.length,Y.reading),Y.length)ZZ(this);else if(!Y.reading)process.nextTick(cf0,this)}}return U};D1.prototype.addListener=D1.prototype.on;D1.prototype.removeListener=function($,I){var U=LK.prototype.removeListener.call(this,$,I);if($==="readable")process.nextTick(We,this);return U};D1.prototype.removeAllListeners=function($){var I=LK.prototype.removeAllListeners.apply(this,arguments);if($==="readable"||$===void 0)process.nextTick(We,this);return I};function We($){var I=$._readableState;if(I.readableListening=$.listenerCount("readable")>0,I.resumeScheduled&&!I.paused)I.flowing=!0;else if($.listenerCount("data")>0)$.resume()}function cf0($){J1("readable nexttick read 0"),$.read(0)}D1.prototype.resume=function(){var $=this._readableState;if(!$.flowing)J1("resume"),$.flowing=!$.readableListening,df0(this,$);return $.paused=!1,this};function df0($,I){if(!I.resumeScheduled)I.resumeScheduled=!0,process.nextTick(mf0,$,I)}function mf0($,I){if(J1("resume",I.reading),!I.reading)$.read(0);if(I.resumeScheduled=!1,$.emit("resume"),DR($),I.flowing&&!I.reading)$.read(0)}D1.prototype.pause=function(){if(J1("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)J1("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function DR($){var I=$._readableState;J1("flow",I.flowing);while(I.flowing&&$.read()!==null);}D1.prototype.wrap=function($){var I=this,U=this._readableState,Y=!1;$.on("end",function(){if(J1("wrapped end"),U.decoder&&!U.ended){var K=U.decoder.end();if(K&&K.length)I.push(K)}I.push(null)}),$.on("data",function(K){if(J1("wrapped data"),U.decoder)K=U.decoder.write(K);if(U.objectMode&&(K===null||K===void 0))return;else if(!U.objectMode&&(!K||!K.length))return;var q=I.push(K);if(!q)Y=!0,$.pause()});for(var J in $)if(this[J]===void 0&&typeof $[J]==="function")this[J]=function(q){return function(){return $[q].apply($,arguments)}}(J);for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.first();else U=I.buffer.concat(I.length);I.buffer.clear()}else U=I.buffer.consume($,I.decoder);return U}function zR($){var I=$._readableState;if(J1("endReadable",I.endEmitted),!I.endEmitted)I.ended=!0,process.nextTick(lf0,I,$)}function lf0($,I){if(J1("endReadableNT",$.endEmitted,$.length),!$.endEmitted&&$.length===0){if($.endEmitted=!0,I.readable=!1,I.emit("end"),$.autoDestroy){var U=I._writableState;if(!U||U.autoDestroy&&U.finished)I.destroy()}}}if(typeof Symbol==="function")D1.from=function($,I){if(wR===void 0)wR=Ye();return wR(D1,$,I)};function Ve($,I){for(var U=0,Y=$.length;U{Xe.exports=A5;var zZ=g9().codes,of0=zZ.ERR_METHOD_NOT_IMPLEMENTED,rf0=zZ.ERR_MULTIPLE_CALLBACK,tf0=zZ.ERR_TRANSFORM_ALREADY_TRANSFORMING,af0=zZ.ERR_TRANSFORM_WITH_LENGTH_0,XZ=Q3();c0()(A5,XZ);function sf0($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(Y===null)return this.emit("error",new rf0);if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{De.exports=DK;var Le=OR();c0()(DK,Le);function DK($){if(!(this instanceof DK))return new DK($);Le.call(this,$)}DK.prototype._transform=function($,I,U){U(null,$)}});var Pe=O((UT1,Ae)=>{var FR;function $b0($){var I=!1;return function(){if(I)return;I=!0,$.apply(void 0,arguments)}}var Me=g9().codes,Ib0=Me.ERR_MISSING_ARGS,Ub0=Me.ERR_STREAM_DESTROYED;function Fe($){if($)throw $}function Yb0($){return $.setHeader&&typeof $.abort==="function"}function Jb0($,I,U,Y){Y=$b0(Y);var J=!1;if($.on("close",function(){J=!0}),FR===void 0)FR=HZ();FR($,{readable:I,writable:U},function(K){if(K)return Y(K);J=!0,Y()});var Q=!1;return function(K){if(J)return;if(Q)return;if(Q=!0,Yb0($))return $.abort();if(typeof $.destroy==="function")return $.destroy();Y(K||new Ub0("pipe"))}}function Ne($){$()}function Qb0($,I){return $.pipe(I)}function Kb0($){if(!$.length)return Fe;if(typeof $[$.length-1]!=="function")return Fe;return $.pop()}function qb0(){for(var $=arguments.length,I=Array($),U=0;U<$;U++)I[U]=arguments[U];var Y=Kb0(I);if(Array.isArray(I[0]))I=I[0];if(I.length<2)throw new Ib0("streams");var J,Q=I.map(function(K,q){var H=q0;return Jb0(K,H,G,function(W){if(!J)J=W;if(W)Q.forEach(Ne);if(H)return;Q.forEach(Ne),Y(J)})});return I.reduce(Qb0)}Ae.exports=qb0});var D6=O((h$,FK)=>{var OK=t("stream");if(process.env.READABLE_STREAM==="disable"&&OK)FK.exports=OK.Readable,Object.assign(FK.exports,OK),FK.exports.Stream=OK;else h$=FK.exports=YR(),h$.Stream=OK||h$,h$.Readable=h$,h$.Writable=IR(),h$.Duplex=Q3(),h$.Transform=OR(),h$.PassThrough=Oe(),h$.finished=HZ(),h$.pipeline=Pe()});var O6=O((YT1,Be)=>{var Te=t("fs"),Hb0=function($,I,U,Y){if($.super_=I,!Y)Y=U,U=null;if(U)Object.keys(U).forEach((Q)=>{Object.defineProperty($,Q,Object.getOwnPropertyDescriptor(U,Q))});let J={constructor:{value:$,enumerable:!1,writable:!1,configurable:!0}};if(Y)Object.keys(Y).forEach((Q)=>{J[Q]=Object.getOwnPropertyDescriptor(Y,Q)});$.prototype=Object.create(I.prototype,J)},Gb0=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,Ee={nop(){},promiseImmediate($){return new Promise((I)=>{if(global.setImmediate)setImmediate(()=>{I($)});else setTimeout(()=>{I($)},1)})},inherits:Hb0,dateToExcel($,I){return 25569+$.getTime()/86400000-(I?1462:0)},excelToDate($,I){let U=Math.round(($-25569+(I?1462:0))*24*3600*1000);return new Date(U)},parsePath($){let I=$.lastIndexOf("/");return{path:$.substring(0,I),name:$.substring(I+1)}},getRelsPath($){let I=Ee.parsePath($);return`${I.path}/_rels/${I.name}.rels`},xmlEncode($){let I=Gb0.exec($);if(!I)return $;let U="",Y="",J=0,Q=I.index;for(;Q<$.length;Q++){let K=$.charCodeAt(Q);switch(K){case 34:Y=""";break;case 38:Y="&";break;case 39:Y="'";break;case 60:Y="<";break;case 62:Y=">";break;case 127:Y="";break;default:{if(K<=31&&(K<=8||K>=11&&K!==13)){Y="";break}continue}}if(J!==Q)U+=$.substring(J,Q);if(J=Q+1,Y)U+=Y}if(J!==Q)return U+$.substring(J,Q);return U},xmlDecode($){return $.replace(/&([a-z]*);/g,(I)=>{switch(I){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return I}})},validInt($){let I=parseInt($,10);return!Number.isNaN(I)?I:0},isDateFmt($){if(!$)return!1;return $=$.replace(/\[[^\]]*]/g,""),$=$.replace(/"[^"]*"/g,""),$.match(/[ymdhMsb]+/)!==null},fs:{exists($){return new Promise((I)=>{Te.access($,Te.constants.F_OK,(U)=>{I(!U)})})}},toIsoDateString($){return $.toIsoString().subsstr(0,10)},parseBoolean($){return $===!0||$==="true"||$===1||$==="1"}};Be.exports=Ee});var NR=O((JT1,Re)=>{class ve{constructor($){this._buf=Buffer.alloc($&&$.size||16384),this._encoding=$&&$.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){if(!this._buffer)this._buffer=Buffer.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length);return this._buffer}reset($){$=$||0,this._buffer=void 0,this._inPos=$}_grow($){let I=this._buf.length*2;while(I<$)I*=2;let U=Buffer.alloc(I);this._buf.copy(U,0),this._buf=U}addText($){this._buffer=void 0;let I=this._inPos+this._buf.write($,this._inPos,this._encoding);while(I>=this._buf.length-4)this._grow(this._inPos+$.length),I=this._inPos+this._buf.write($,this._inPos,this._encoding);this._inPos=I}addStringBuf($){if($.length){if(this._buffer=void 0,this.length+$.length>this.capacity)this._grow(this.length+$.length);$._buf.copy(this._buf,this._inPos,0,$.length),this._inPos+=$.length}}}Re.exports=ve});var NK=O((QT1,he)=>{var Wb0=D6(),je=O6(),wb0=NR();class Ce{constructor($,I){this._data=$,this._encoding=I}get length(){return this.toBuffer().length}copy($,I,U,Y){return this.toBuffer().copy($,I,U,Y)}toBuffer(){if(!this._buffer)this._buffer=Buffer.from(this._data,this._encoding);return this._buffer}}class _e{constructor($){this._data=$}get length(){return this._data.length}copy($,I,U,Y){return this._data._buf.copy($,I,U,Y)}toBuffer(){return this._data.toBuffer()}}class Se{constructor($){this._data=$}get length(){return this._data.length}copy($,I,U,Y){this._data.copy($,I,U,Y)}toBuffer(){return this._data}}class ge{constructor($){this.size=$,this.buffer=Buffer.alloc($),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let $=Buffer.alloc(this.iWrite-this.iRead);return this.buffer.copy($,0,this.iRead,this.iWrite),$}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read($){let I;if($===0)return null;if($===void 0||$>=this.length)return I=this.toBuffer(),this.iRead=this.iWrite,I;return I=Buffer.alloc($),this.buffer.copy(I,0,this.iRead,$),this.iRead+=$,I}write($,I,U){let Y=Math.min(U,this.size-this.iWrite);return $.copy(this.buffer,this.iWrite,I,I+Y),this.iWrite+=Y,Y}}var ye=function($){$=$||{},this.bufSize=$.bufSize||1048576,this.buffers=[],this.batch=$.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};je.inherits(ye,Wb0.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return Buffer.concat(this.buffers.map(($)=>$.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let I=this.buffers[this.buffers.length-1];if(!I.full)return I}let $=new ge(this.bufSize);return this.buffers.push($),$},async _pipe($){let I=function(U){return new Promise((Y)=>{U.write($.toBuffer(),()=>{Y()})})};await Promise.all(this.pipes.map(I))},_writeToBuffers($){let I=0,U=$.length;while(I1)this._pipe(this.buffers.shift())}else if(!this.corked)await this._pipe(Y),U();else this._writeToBuffers(Y),process.nextTick(U);else{if(!this.paused)this.emit("data",Y.toBuffer());this._writeToBuffers(Y),this.emit("readable")}return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)while(this.buffers.length)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end($,I,U){let Y=(J)=>{if(J)U(J);else this._flush(),this.pipes.forEach((Q)=>{Q.end()}),this.emit("finish")};if($)this.write($,I,Y);else Y()},read($){let I;if($){I=[];while($&&this.buffers.length&&!this.buffers[0].eod){let U=this.buffers[0],Y=U.read($);if($-=Y.length,I.push(Y),U.eod&&U.full)this.buffers.shift()}return Buffer.concat(I)}return I=this.buffers.map((U)=>U.toBuffer()).filter(Boolean),this.buffers=[],Buffer.concat(I)},setEncoding($){this.encoding=$},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe($){if(this.pipes.push($),!this.paused&&this.buffers.length)this.end()},unpipe($){this.pipes=this.pipes.filter((I)=>I!==$)},unshift(){throw Error("Not Implemented")},wrap(){throw Error("Not Implemented")}});he.exports=ye});var ke=O((Zb0)=>{var ue=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:xe}=t("buffer");function Vb0($){if(typeof $!=="string")return $;if(ue)return xe.from(ue.encode($).buffer);return xe.from($)}Zb0.stringToBuffer=Vb0});var ie=O((HT1,be)=>{var Xb0=t("events"),Lb0=ov(),Db0=NK(),{stringToBuffer:qT1}=ke();class fe extends Xb0.EventEmitter{constructor($){super();this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},$),this.zip=new Lb0,this.stream=new Db0}append($,I){if(I.hasOwnProperty("base64")&&I.base64)this.zip.file(I.name,$,{base64:!0});else this.zip.file(I.name,$)}async finalize(){let $=await this.zip.generateAsync(this.options);this.stream.end($),this.emit("finish")}read($){return this.stream.read($)}setEncoding($){return this.stream.setEncoding($)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe($,I){return this.stream.pipe($,I)}unpipe($){return this.stream.unpipe($)}unshift($){return this.stream.unshift($)}wrap($){return this.stream.wrap($)}}be.exports={ZipWriter:fe}});var U6=O((GT1,ce)=>{var Ob0=X4(),ne=O6();function pe($,I,U){$.push(` ${I}="${ne.xmlEncode(U.toString())}"`)}function MR($,I){if(I){let U=[];Ob0.each(I,(Y,J)=>{if(Y!==void 0)pe(U,J,Y)}),$.push(U.join(""))}}class AR{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml($){let I=this._xml;I.push(" -`)}openNode($,I){let U=this.tos,Y=this._xml;if(U&&this.open)Y.push(">");this._stack.push($),Y.push("<"),Y.push($),MR(Y,I),this.leaf=!0,this.open=!0}addAttribute($,I){if(!this.open)throw Error("Cannot write attributes to node if it is not open");if(I!==void 0)pe(this._xml,$,I)}addAttributes($){if(!this.open)throw Error("Cannot write attributes to node if it is not open");MR(this._xml,$)}writeText($){let I=this._xml;if(this.open)I.push(">"),this.open=!1;this.leaf=!1,I.push(ne.xmlEncode($.toString()))}writeXml($){if(this.open)this._xml.push(">"),this.open=!1;this.leaf=!1,this._xml.push($)}closeNode(){let $=this._stack.pop(),I=this._xml;if(this.leaf)I.push("/>");else I.push("");this.open=!1,this.leaf=!1}leafNode($,I,U){if(this.openNode($,I),U!==void 0)this.writeText(U);this.closeNode()}closeAll(){while(this._stack.length)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){let $=this._rollbacks.pop();if(this._xml.length>$.xml)this._xml.splice($.xml,this._xml.length-$.xml);if(this._stack.length>$.stack)this._stack.splice($.stack,this._stack.length-$.stack);this.leaf=$.leaf,this.open=$.open}get xml(){return this.closeAll(),this._xml.join("")}}AR.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"};ce.exports=AR});var PR=O((Nb0)=>{var de=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function Fb0($){if(typeof $==="string")return $;if(de)return de.decode($);return $.toString()}Nb0.bufferToString=Fb0});var te=O((le)=>{Object.defineProperty(le,"__esModule",{value:!0});le.CHAR=` + deps: ${U}}`};var Ev0={keyword:"dependencies",type:"object",schemaType:"object",error:_p.error,code($){let[I,U]=Bv0($);jp($,I),Cp($,U)}};function Bv0({schema:$}){let I={},U={};for(let Y in $){if(Y==="__proto__")continue;let J=Array.isArray($[Y])?I:U;J[Y]=$[Y]}return[I,U]}function jp($,I=$.schema){let{gen:U,data:Y,it:J}=$;if(Object.keys(I).length===0)return;let Q=U.let("missing");for(let K in I){let q=I[K];if(q.length===0)continue;let H=(0,K2.propertyInData)(U,Y,K,J.opts.ownProperties);if($.setParams({property:K,depsCount:q.length,deps:q.join(", ")}),J.allErrors)U.if(H,()=>{for(let G of q)(0,K2.checkReportMissingProp)($,G)});else U.if(YE._`${H} && (${(0,K2.checkMissingProp)($,q,Q)})`),(0,K2.reportMissingProp)($,Q),U.else()}}_p.validatePropertyDeps=jp;function Cp($,I=$.schema){let{gen:U,data:Y,keyword:J,it:Q}=$,K=U.name("valid");for(let q in I){if((0,Tv0.alwaysValidSchema)(Q,I[q]))continue;U.if((0,K2.propertyInData)(U,Y,q,Q.opts.ownProperties),()=>{let H=$.subschema({keyword:J,schemaProp:q},K);$.mergeValidEvaluated(H,K)},()=>U.var(K,!0)),$.ok(K)}}_p.validateSchemaDeps=Cp;_p.default=Ev0});var kp=O((up)=>{Object.defineProperty(up,"__esModule",{value:!0});var hp=a0(),jv0=z1(),Cv0={message:"property name must be valid",params:({params:$})=>hp._`{propertyName: ${$.propertyName}}`},_v0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Cv0,code($){let{gen:I,schema:U,data:Y,it:J}=$;if((0,jv0.alwaysValidSchema)(J,U))return;let Q=I.name("valid");I.forIn("key",Y,(K)=>{$.setParams({propertyName:K}),$.subschema({keyword:"propertyNames",data:K,dataTypes:["string"],propertyName:K,compositeRule:!0},Q),I.if((0,hp.not)(Q),()=>{if($.error(!0),!J.allErrors)I.break()})}),$.ok(Q)}};up.default=_v0});var JE=O((xp)=>{Object.defineProperty(xp,"__esModule",{value:!0});var Lw=B$(),a$=a0(),gv0=K5(),Dw=z1(),yv0={message:"must NOT have additional properties",params:({params:$})=>a$._`{additionalProperty: ${$.additionalProperty}}`},hv0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yv0,code($){let{gen:I,schema:U,parentSchema:Y,data:J,errsCount:Q,it:K}=$;if(!Q)throw Error("ajv implementation error");let{allErrors:q,opts:H}=K;if(K.props=!0,H.removeAdditional!=="all"&&(0,Dw.alwaysValidSchema)(K,U))return;let G=(0,Lw.allSchemaProperties)(Y.properties),W=(0,Lw.allSchemaProperties)(Y.patternProperties);w(),$.ok(a$._`${Q} === ${gv0.default.errors}`);function w(){I.forIn("key",J,(D)=>{if(!G.length&&!W.length)X(D);else I.if(Z(D),()=>X(D))})}function Z(D){let F;if(G.length>8){let P=(0,Dw.schemaRefOrVal)(K,Y.properties,"properties");F=(0,Lw.isOwnProperty)(I,P,D)}else if(G.length)F=(0,a$.or)(...G.map((P)=>a$._`${D} === ${P}`));else F=a$.nil;if(W.length)F=(0,a$.or)(F,...W.map((P)=>a$._`${(0,Lw.usePattern)($,P)}.test(${D})`));return(0,a$.not)(F)}function V(D){I.code(a$._`delete ${J}[${D}]`)}function X(D){if(H.removeAdditional==="all"||H.removeAdditional&&U===!1){V(D);return}if(U===!1){if($.setParams({additionalProperty:D}),$.error(),!q)I.break();return}if(typeof U=="object"&&!(0,Dw.alwaysValidSchema)(K,U)){let F=I.name("valid");if(H.removeAdditional==="failing")L(D,F,!1),I.if((0,a$.not)(F),()=>{$.reset(),V(D)});else if(L(D,F),!q)I.if((0,a$.not)(F),()=>I.break())}}function L(D,F,P){let T={keyword:"additionalProperties",dataProp:D,dataPropType:Dw.Type.Str};if(P===!1)Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1});$.subschema(T,F)}}};xp.default=hv0});var np=O((bp)=>{Object.defineProperty(bp,"__esModule",{value:!0});var kv0=oQ(),fp=B$(),QE=z1(),ip=JE(),xv0={keyword:"properties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,parentSchema:Y,data:J,it:Q}=$;if(Q.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)ip.default.code(new kv0.KeywordCxt(Q,ip.default,"additionalProperties"));let K=(0,fp.allSchemaProperties)(U);for(let w of K)Q.definedProperties.add(w);if(Q.opts.unevaluated&&K.length&&Q.props!==!0)Q.props=QE.mergeEvaluated.props(I,(0,QE.toHash)(K),Q.props);let q=K.filter((w)=>!(0,QE.alwaysValidSchema)(Q,U[w]));if(q.length===0)return;let H=I.name("valid");for(let w of q){if(G(w))W(w);else{if(I.if((0,fp.propertyInData)(I,J,w,Q.opts.ownProperties)),W(w),!Q.allErrors)I.else().var(H,!0);I.endIf()}$.it.definedProperties.add(w),$.ok(H)}function G(w){return Q.opts.useDefaults&&!Q.compositeRule&&U[w].default!==void 0}function W(w){$.subschema({keyword:"properties",schemaProp:w,dataProp:w},H)}}};bp.default=xv0});var lp=O((mp)=>{Object.defineProperty(mp,"__esModule",{value:!0});var pp=B$(),Ow=a0(),cp=z1(),dp=z1(),iv0={keyword:"patternProperties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,data:Y,parentSchema:J,it:Q}=$,{opts:K}=Q,q=(0,pp.allSchemaProperties)(U),H=q.filter((L)=>(0,cp.alwaysValidSchema)(Q,U[L]));if(q.length===0||H.length===q.length&&(!Q.opts.unevaluated||Q.props===!0))return;let G=K.strictSchema&&!K.allowMatchingProperties&&J.properties,W=I.name("valid");if(Q.props!==!0&&!(Q.props instanceof Ow.Name))Q.props=(0,dp.evaluatedPropsToName)(I,Q.props);let{props:w}=Q;Z();function Z(){for(let L of q){if(G)V(L);if(Q.allErrors)X(L);else I.var(W,!0),X(L),I.if(W)}}function V(L){for(let D in G)if(new RegExp(L).test(D))(0,cp.checkStrictMode)(Q,`property ${D} matches pattern ${L} (use allowMatchingProperties)`)}function X(L){I.forIn("key",Y,(D)=>{I.if(Ow._`${(0,pp.usePattern)($,L)}.test(${D})`,()=>{let F=H.includes(L);if(!F)$.subschema({keyword:"patternProperties",schemaProp:L,dataProp:D,dataPropType:dp.Type.Str},W);if(Q.opts.unevaluated&&w!==!0)I.assign(Ow._`${w}[${D}]`,!0);else if(!F&&!Q.allErrors)I.if((0,Ow.not)(W),()=>I.break())})})}}};mp.default=iv0});var rp=O((op)=>{Object.defineProperty(op,"__esModule",{value:!0});var nv0=z1(),pv0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code($){let{gen:I,schema:U,it:Y}=$;if((0,nv0.alwaysValidSchema)(Y,U)){$.fail();return}let J=I.name("valid");$.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},J),$.failResult(J,()=>$.reset(),()=>$.error())},error:{message:"must NOT be valid"}};op.default=pv0});var ap=O((tp)=>{Object.defineProperty(tp,"__esModule",{value:!0});var dv0=B$(),mv0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dv0.validateUnion,error:{message:"must match a schema in anyOf"}};tp.default=mv0});var ep=O((sp)=>{Object.defineProperty(sp,"__esModule",{value:!0});var Fw=a0(),ov0=z1(),rv0={message:"must match exactly one schema in oneOf",params:({params:$})=>Fw._`{passingSchemas: ${$.passing}}`},tv0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:rv0,code($){let{gen:I,schema:U,parentSchema:Y,it:J}=$;if(!Array.isArray(U))throw Error("ajv implementation error");if(J.opts.discriminator&&Y.discriminator)return;let Q=U,K=I.let("valid",!1),q=I.let("passing",null),H=I.name("_valid");$.setParams({passing:q}),I.block(G),$.result(K,()=>$.reset(),()=>$.error(!0));function G(){Q.forEach((W,w)=>{let Z;if((0,ov0.alwaysValidSchema)(J,W))I.var(H,!0);else Z=$.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},H);if(w>0)I.if(Fw._`${H} && ${K}`).assign(K,!1).assign(q,Fw._`[${q}, ${w}]`).else();I.if(H,()=>{if(I.assign(K,!0),I.assign(q,w),Z)$.mergeEvaluated(Z,Fw.Name)})})}}};sp.default=tv0});var Ic=O(($c)=>{Object.defineProperty($c,"__esModule",{value:!0});var sv0=z1(),ev0={keyword:"allOf",schemaType:"array",code($){let{gen:I,schema:U,it:Y}=$;if(!Array.isArray(U))throw Error("ajv implementation error");let J=I.name("valid");U.forEach((Q,K)=>{if((0,sv0.alwaysValidSchema)(Y,Q))return;let q=$.subschema({keyword:"allOf",schemaProp:K},J);$.ok(J),$.mergeEvaluated(q)})}};$c.default=ev0});var Qc=O((Jc)=>{Object.defineProperty(Jc,"__esModule",{value:!0});var Nw=a0(),Yc=z1(),IR0={message:({params:$})=>Nw.str`must match "${$.ifClause}" schema`,params:({params:$})=>Nw._`{failingKeyword: ${$.ifClause}}`},UR0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:IR0,code($){let{gen:I,parentSchema:U,it:Y}=$;if(U.then===void 0&&U.else===void 0)(0,Yc.checkStrictMode)(Y,'"if" without "then" and "else" is ignored');let J=Uc(Y,"then"),Q=Uc(Y,"else");if(!J&&!Q)return;let K=I.let("valid",!0),q=I.name("_valid");if(H(),$.reset(),J&&Q){let W=I.let("ifClause");$.setParams({ifClause:W}),I.if(q,G("then",W),G("else",W))}else if(J)I.if(q,G("then"));else I.if((0,Nw.not)(q),G("else"));$.pass(K,()=>$.error(!0));function H(){let W=$.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},q);$.mergeEvaluated(W)}function G(W,w){return()=>{let Z=$.subschema({keyword:W},q);if(I.assign(K,q),$.mergeValidEvaluated(Z,K),w)I.assign(w,Nw._`${W}`);else $.setParams({ifClause:W})}}}};function Uc($,I){let U=$.schema[I];return U!==void 0&&!(0,Yc.alwaysValidSchema)($,U)}Jc.default=UR0});var qc=O((Kc)=>{Object.defineProperty(Kc,"__esModule",{value:!0});var JR0=z1(),QR0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:$,parentSchema:I,it:U}){if(I.if===void 0)(0,JR0.checkStrictMode)(U,`"${$}" without "if" is ignored`)}};Kc.default=QR0});var Gc=O((Hc)=>{Object.defineProperty(Hc,"__esModule",{value:!0});var qR0=IE(),HR0=Pp(),GR0=UE(),WR0=Bp(),wR0=Rp(),VR0=yp(),ZR0=kp(),zR0=JE(),XR0=np(),LR0=lp(),DR0=rp(),OR0=ap(),FR0=ep(),NR0=Ic(),MR0=Qc(),AR0=qc();function PR0($=!1){let I=[DR0.default,OR0.default,FR0.default,NR0.default,MR0.default,AR0.default,ZR0.default,zR0.default,VR0.default,XR0.default,LR0.default];if($)I.push(HR0.default,WR0.default);else I.push(qR0.default,GR0.default);return I.push(wR0.default),I}Hc.default=PR0});var wc=O((Wc)=>{Object.defineProperty(Wc,"__esModule",{value:!0});var N4=a0(),ER0={message:({schemaCode:$})=>N4.str`must match format "${$}"`,params:({schemaCode:$})=>N4._`{format: ${$}}`},BR0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ER0,code($,I){let{gen:U,data:Y,$data:J,schema:Q,schemaCode:K,it:q}=$,{opts:H,errSchemaPath:G,schemaEnv:W,self:w}=q;if(!H.validateFormats)return;if(J)Z();else V();function Z(){let X=U.scopeValue("formats",{ref:w.formats,code:H.code.formats}),L=U.const("fDef",N4._`${X}[${K}]`),D=U.let("fType"),F=U.let("format");U.if(N4._`typeof ${L} == "object" && !(${L} instanceof RegExp)`,()=>U.assign(D,N4._`${L}.type || "string"`).assign(F,N4._`${L}.validate`),()=>U.assign(D,N4._`"string"`).assign(F,L)),$.fail$data((0,N4.or)(P(),T()));function P(){if(H.strictSchema===!1)return N4.nil;return N4._`${K} && !${F}`}function T(){let A=W.$async?N4._`(${L}.async ? await ${F}(${Y}) : ${F}(${Y}))`:N4._`${F}(${Y})`,R=N4._`(typeof ${F} == "function" ? ${A} : ${F}.test(${Y}))`;return N4._`${F} && ${F} !== true && ${D} === ${I} && !${R}`}}function V(){let X=w.formats[Q];if(!X){P();return}if(X===!0)return;let[L,D,F]=T(X);if(L===I)$.pass(A());function P(){if(H.strictSchema===!1){w.logger.warn(R());return}throw Error(R());function R(){return`unknown format "${Q}" ignored in schema at path "${G}"`}}function T(R){let x=R instanceof RegExp?(0,N4.regexpCode)(R):H.code.formats?N4._`${H.code.formats}${(0,N4.getProperty)(Q)}`:void 0,y=U.scopeValue("formats",{key:Q,ref:R,code:x});if(typeof R=="object"&&!(R instanceof RegExp))return[R.type||"string",R.validate,N4._`${y}.validate`];return["string",R,y]}function A(){if(typeof X=="object"&&!(X instanceof RegExp)&&X.async){if(!W.$async)throw Error("async format in sync schema");return N4._`await ${F}(${Y})`}return typeof D=="function"?N4._`${F}(${Y})`:N4._`${F}.test(${Y})`}}}};Wc.default=BR0});var Zc=O((Vc)=>{Object.defineProperty(Vc,"__esModule",{value:!0});var RR0=wc(),jR0=[RR0.default];Vc.default=jR0});var Lc=O((zc)=>{Object.defineProperty(zc,"__esModule",{value:!0});zc.contentVocabulary=zc.metadataVocabulary=void 0;zc.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];zc.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Fc=O((Oc)=>{Object.defineProperty(Oc,"__esModule",{value:!0});var SR0=bn(),gR0=zp(),yR0=Gc(),hR0=Zc(),Dc=Lc(),uR0=[SR0.default,gR0.default,(0,yR0.default)(),hR0.default,Dc.metadataVocabulary,Dc.contentVocabulary];Oc.default=uR0});var Pc=O((Mc)=>{Object.defineProperty(Mc,"__esModule",{value:!0});Mc.DiscrError=void 0;var Nc;(function($){$.Tag="tag",$.Mapping="mapping"})(Nc||(Mc.DiscrError=Nc={}))});var Bc=O((Ec)=>{Object.defineProperty(Ec,"__esModule",{value:!0});var ZU=a0(),KE=Pc(),Tc=Yw(),xR0=rQ(),fR0=z1(),iR0={message:({params:{discrError:$,tagName:I}})=>$===KE.DiscrError.Tag?`tag "${I}" must be string`:`value of tag "${I}" must be in oneOf`,params:({params:{discrError:$,tag:I,tagName:U}})=>ZU._`{error: ${$}, tag: ${U}, tagValue: ${I}}`},bR0={keyword:"discriminator",type:"object",schemaType:"object",error:iR0,code($){let{gen:I,data:U,schema:Y,parentSchema:J,it:Q}=$,{oneOf:K}=J;if(!Q.opts.discriminator)throw Error("discriminator: requires discriminator option");let q=Y.propertyName;if(typeof q!="string")throw Error("discriminator: requires propertyName");if(Y.mapping)throw Error("discriminator: mapping is not supported");if(!K)throw Error("discriminator: requires oneOf keyword");let H=I.let("valid",!1),G=I.const("tag",ZU._`${U}${(0,ZU.getProperty)(q)}`);I.if(ZU._`typeof ${G} == "string"`,()=>W(),()=>$.error(!1,{discrError:KE.DiscrError.Tag,tag:G,tagName:q})),$.ok(H);function W(){let V=Z();I.if(!1);for(let X in V)I.elseIf(ZU._`${G} === ${X}`),I.assign(H,w(V[X]));I.else(),$.error(!1,{discrError:KE.DiscrError.Mapping,tag:G,tagName:q}),I.endIf()}function w(V){let X=I.name("valid"),L=$.subschema({keyword:"oneOf",schemaProp:V},X);return $.mergeEvaluated(L,ZU.Name),X}function Z(){var V;let X={},L=F(J),D=!0;for(let A=0;A{pR0.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var HE=O((l6,qE)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.MissingRefError=l6.ValidationError=l6.CodeGen=l6.Name=l6.nil=l6.stringify=l6.str=l6._=l6.KeywordCxt=l6.Ajv=void 0;var cR0=Cn(),dR0=Fc(),mR0=Bc(),Rc=vc(),lR0=["/properties"],Mw="http://json-schema.org/draft-07/schema";class q2 extends cR0.default{_addVocabularies(){if(super._addVocabularies(),dR0.default.forEach(($)=>this.addVocabulary($)),this.opts.discriminator)this.addKeyword(mR0.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let $=this.opts.$data?this.$dataMetaSchema(Rc,lR0):Rc;this.addMetaSchema($,Mw,!1),this.refs["http://json-schema.org/schema"]=Mw}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Mw)?Mw:void 0)}}l6.Ajv=q2;qE.exports=l6=q2;qE.exports.Ajv=q2;Object.defineProperty(l6,"__esModule",{value:!0});l6.default=q2;var oR0=oQ();Object.defineProperty(l6,"KeywordCxt",{enumerable:!0,get:function(){return oR0.KeywordCxt}});var zU=a0();Object.defineProperty(l6,"_",{enumerable:!0,get:function(){return zU._}});Object.defineProperty(l6,"str",{enumerable:!0,get:function(){return zU.str}});Object.defineProperty(l6,"stringify",{enumerable:!0,get:function(){return zU.stringify}});Object.defineProperty(l6,"nil",{enumerable:!0,get:function(){return zU.nil}});Object.defineProperty(l6,"Name",{enumerable:!0,get:function(){return zU.Name}});Object.defineProperty(l6,"CodeGen",{enumerable:!0,get:function(){return zU.CodeGen}});var rR0=Iw();Object.defineProperty(l6,"ValidationError",{enumerable:!0,get:function(){return rR0.default}});var tR0=rQ();Object.defineProperty(l6,"MissingRefError",{enumerable:!0,get:function(){return tR0.default}})});var xc=O((uc)=>{Object.defineProperty(uc,"__esModule",{value:!0});uc.formatNames=uc.fastFormats=uc.fullFormats=void 0;function F8($,I){return{validate:$,compare:I}}uc.fullFormats={date:F8(Sc,VE),time:F8(WE(!0),ZE),"date-time":F8(jc(!0),yc),"iso-time":F8(WE(),gc),"iso-date-time":F8(jc(),hc),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Jj0,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:wj0,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Qj0,int32:{type:"number",validate:Hj0},int64:{type:"number",validate:Gj0},float:{type:"number",validate:_c},double:{type:"number",validate:_c},password:!0,binary:!0};uc.fastFormats={...uc.fullFormats,date:F8(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,VE),time:F8(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,ZE),"date-time":F8(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,yc),"iso-time":F8(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,gc),"iso-date-time":F8(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,hc),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};uc.formatNames=Object.keys(uc.fullFormats);function eR0($){return $%4===0&&($%100!==0||$%400===0)}var $j0=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Ij0=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Sc($){let I=$j0.exec($);if(!I)return!1;let U=+I[1],Y=+I[2],J=+I[3];return Y>=1&&Y<=12&&J>=1&&J<=(Y===2&&eR0(U)?29:Ij0[Y])}function VE($,I){if(!($&&I))return;if($>I)return 1;if($23||W>59||$&&!q)return!1;if(J<=23&&Q<=59&&K<60)return!0;let w=Q-W*H,Z=J-G*H-(w<0?1:0);return(Z===23||Z===-1)&&(w===59||w===-1)&&K<61}}function ZE($,I){if(!($&&I))return;let U=new Date("2020-01-01T"+$).valueOf(),Y=new Date("2020-01-01T"+I).valueOf();if(!(U&&Y))return;return U-Y}function gc($,I){if(!($&&I))return;let U=GE.exec($),Y=GE.exec(I);if(!(U&&Y))return;if($=U[1]+U[2]+U[3],I=Y[1]+Y[2]+Y[3],$>I)return 1;if($=Kj0}function Gj0($){return Number.isInteger($)}function _c(){return!0}var Wj0=/[^\\]\\Z/;function wj0($){if(Wj0.test($))return!1;try{return new RegExp($),!0}catch(I){return!1}}});var ic=O((fc)=>{Object.defineProperty(fc,"__esModule",{value:!0});fc.formatLimitDefinition=void 0;var Zj0=HE(),s$=a0(),O9=s$.operators,Aw={formatMaximum:{okStr:"<=",ok:O9.LTE,fail:O9.GT},formatMinimum:{okStr:">=",ok:O9.GTE,fail:O9.LT},formatExclusiveMaximum:{okStr:"<",ok:O9.LT,fail:O9.GTE},formatExclusiveMinimum:{okStr:">",ok:O9.GT,fail:O9.LTE}},zj0={message:({keyword:$,schemaCode:I})=>s$.str`should be ${Aw[$].okStr} ${I}`,params:({keyword:$,schemaCode:I})=>s$._`{comparison: ${Aw[$].okStr}, limit: ${I}}`};fc.formatLimitDefinition={keyword:Object.keys(Aw),type:"string",schemaType:"string",$data:!0,error:zj0,code($){let{gen:I,data:U,schemaCode:Y,keyword:J,it:Q}=$,{opts:K,self:q}=Q;if(!K.validateFormats)return;let H=new Zj0.KeywordCxt(Q,q.RULES.all.format.definition,"format");if(H.$data)G();else W();function G(){let Z=I.scopeValue("formats",{ref:q.formats,code:K.code.formats}),V=I.const("fmt",s$._`${Z}[${H.schemaCode}]`);$.fail$data((0,s$.or)(s$._`typeof ${V} != "object"`,s$._`${V} instanceof RegExp`,s$._`typeof ${V}.compare != "function"`,w(V)))}function W(){let Z=H.schema,V=q.formats[Z];if(!V||V===!0)return;if(typeof V!="object"||V instanceof RegExp||typeof V.compare!="function")throw Error(`"${J}": format "${Z}" does not define "compare" function`);let X=I.scopeValue("formats",{key:Z,ref:V,code:K.code.formats?s$._`${K.code.formats}${(0,s$.getProperty)(Z)}`:void 0});$.fail$data(w(X))}function w(Z){return s$._`${Z}.compare(${U}, ${Y}) ${Aw[J].fail} 0`}},dependencies:["format"]};var Xj0=($)=>{return $.addKeyword(fc.formatLimitDefinition),$};fc.default=Xj0});var cc=O((H2,pc)=>{Object.defineProperty(H2,"__esModule",{value:!0});var XU=xc(),Dj0=ic(),LE=a0(),bc=new LE.Name("fullFormats"),Oj0=new LE.Name("fastFormats"),DE=($,I={keywords:!0})=>{if(Array.isArray(I))return nc($,I,XU.fullFormats,bc),$;let[U,Y]=I.mode==="fast"?[XU.fastFormats,Oj0]:[XU.fullFormats,bc],J=I.formats||XU.formatNames;if(nc($,J,U,Y),I.keywords)(0,Dj0.default)($);return $};DE.get=($,I="full")=>{let Y=(I==="fast"?XU.fastFormats:XU.fullFormats)[$];if(!Y)throw Error(`Unknown format "${$}"`);return Y};function nc($,I,U,Y){var J,Q;(J=(Q=$.opts.code).formats)!==null&&J!==void 0||(Q.formats=LE._`require("ajv-formats/dist/formats").${Y}`);for(let K of I)$.addFormat(K,U[K])}pc.exports=H2=DE;Object.defineProperty(H2,"__esModule",{value:!0});H2.default=DE});var X4=O((wA1,Xl)=>{var{toString:zl}=Object.prototype,kC0=/["&<>]/,V5={each:function(I,U){if(I)if(Array.isArray(I))I.forEach(U);else Object.keys(I).forEach((Y)=>{U(I[Y],Y)})},some:function(I,U){if(I){if(Array.isArray(I))return I.some(U);return Object.keys(I).some((Y)=>U(I[Y],Y))}return!1},every:function(I,U){if(I){if(Array.isArray(I))return I.every(U);return Object.keys(I).every((Y)=>U(I[Y],Y))}return!0},map:function(I,U){if(I){if(Array.isArray(I))return I.map(U);return Object.keys(I).map((Y)=>U(I[Y],Y))}return[]},keyBy($,I){return $.reduce((U,Y)=>{return U[Y[I]]=Y,U},{})},isEqual:function(I,U){let Y=typeof I,J=typeof U,Q=Array.isArray(I),K=Array.isArray(U),q;if(Y!==J)return!1;switch(typeof I){case"object":if(Q||K){if(Q&&K)return I.length===U.length&&I.every((H,G)=>{let W=U[G];return V5.isEqual(H,W)});return!1}if(I===null||U===null)return I===U;if(q=Object.keys(I),Object.keys(U).length!==q.length)return!1;for(let H of q)if(!U.hasOwnProperty(H))return!1;return V5.every(I,(H,G)=>{let W=U[G];return V5.isEqual(H,W)});default:return I===U}},escapeHtml($){let I=kC0.exec($);if(!I)return $;let U="",Y="",J=0,Q=I.index;for(;Q<$.length;Q++){switch($.charAt(Q)){case'"':Y=""";break;case"&":Y="&";break;case"'":Y="'";break;case"<":Y="<";break;case">":Y=">";break;default:continue}if(J!==Q)U+=$.substring(J,Q);J=Q+1,U+=Y}if(J!==Q)return U+$.substring(J,Q);return U},strcmp($,I){if($I)return 1;return 0},isUndefined($){return zl.call($)==="[object Undefined]"},isObject($){return zl.call($)==="[object Object]"},deepMerge(){let $=arguments[0]||{},{length:I}=arguments,U,Y,J;function Q(K,q){if(U=$[q],J=Array.isArray(K),V5.isObject(K)||J){if(J)J=!1,Y=U&&Array.isArray(U)?U:[];else Y=U&&V5.isObject(U)?U:{};$[q]=V5.deepMerge(Y,K)}else if(!V5.isUndefined(K))$[q]=K}for(let K=0;K{var xC0=/^[A-Z]+\d+$/,E2={_dictionary:["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"],_l2nFill:0,_l2n:{},_n2l:[],_level($){if($<=26)return 1;if($<=676)return 2;return 3},_fill($){let I,U,Y,J,Q,K=1;if($>=4)throw Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&$>=1){while(K<=26)I=this._dictionary[K-1],this._n2l[K]=I,this._l2n[I]=K,K++;this._l2nFill=1}if(this._l2nFill<2&&$>=2){K=27;while(K<=702)U=K-27,Y=U%26,J=Math.floor(U/26),I=this._dictionary[J]+this._dictionary[Y],this._n2l[K]=I,this._l2n[I]=K,K++;this._l2nFill=2}if(this._l2nFill<3&&$>=3){K=703;while(K<=16384)U=K-703,Y=U%26,J=Math.floor(U/26)%26,Q=Math.floor(U/676),I=this._dictionary[Q]+this._dictionary[J]+this._dictionary[Y],this._n2l[K]=I,this._l2n[I]=K,K++;this._l2nFill=3}},l2n($){if(!this._l2n[$])this._fill($.length);if(!this._l2n[$])throw Error(`Out of bounds. Invalid column letter: ${$}`);return this._l2n[$]},n2l($){if($<1||$>16384)throw Error(`${$} is out of bounds. Excel supports columns from 1 to 16384`);if(!this._n2l[$])this._fill(this._level($));return this._n2l[$]},_hash:{},validateAddress($){if(!xC0.test($))throw Error(`Invalid Address: ${$}`);return!0},decodeAddress($){let I=$.length<5&&this._hash[$];if(I)return I;let U=!1,Y="",J=0,Q=!1,K="",q=0;for(let G=0,W;G<$.length;G++)if(W=$.charCodeAt(G),!Q&&W>=65&&W<=90)U=!0,Y+=$[G],J=J*26+W-64;else if(W>=48&&W<=57)Q=!0,K+=$[G],q=q*10+W-48;else if(Q&&U&&W!==36)break;if(!U)J=void 0;else if(J>16384)throw Error(`Out of bounds. Invalid column letter: ${Y}`);if(!Q)q=void 0;$=Y+K;let H={address:$,col:J,row:q,$col$row:`$${Y}$${K}`};if(J<=100&&q<=100)this._hash[$]=H,this._hash[H.$col$row]=H;return H},getAddress($,I){if(I){let U=this.n2l(I)+$;return this.decodeAddress(U)}return this.decodeAddress($)},decode($){let I=$.split(":");if(I.length===2){let U=this.decodeAddress(I[0]),Y=this.decodeAddress(I[1]),J={top:Math.min(U.row,Y.row),left:Math.min(U.col,Y.col),bottom:Math.max(U.row,Y.row),right:Math.max(U.col,Y.col)};return J.tl=this.n2l(J.left)+J.top,J.br=this.n2l(J.right)+J.bottom,J.dimensions=`${J.tl}:${J.br}`,J}return this.decodeAddress($)},decodeEx($){let I=$.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),U=I[1]||I[2],Y=I[3],J=Y.split(":");if(J.length>1){let K=this.decodeAddress(J[0]),q=this.decodeAddress(J[1]),H=Math.min(K.row,q.row),G=Math.min(K.col,q.col),W=Math.max(K.row,q.row),w=Math.max(K.col,q.col);return K=this.n2l(G)+H,q=this.n2l(w)+W,{top:H,left:G,bottom:W,right:w,sheetName:U,tl:{address:K,col:G,row:H,$col$row:`$${this.n2l(G)}$${H}`,sheetName:U},br:{address:q,col:w,row:W,$col$row:`$${this.n2l(w)}$${W}`,sheetName:U},dimensions:`${K}:${q}`}}if(Y.startsWith("#"))return U?{sheetName:U,error:Y}:{error:Y};let Q=this.decodeAddress(Y);return U?{sheetName:U,...Q}:Q},encodeAddress($,I){return E2.n2l(I)+$},encode(){switch(arguments.length){case 2:return E2.encodeAddress(arguments[0],arguments[1]);case 4:return`${E2.encodeAddress(arguments[0],arguments[1])}:${E2.encodeAddress(arguments[2],arguments[3])}`;default:throw Error("Can only encode with 2 or 4 arguments")}},inRange($,I){let[U,Y,,J,Q]=$,[K,q]=I;return K>=U&&K<=J&&q>=Y&&q<=Q}};Ll.exports=E2});var Z5=O((ZA1,Dl)=>{var A8=W4();class JB{constructor(){this.decode(arguments)}setTLBR($,I,U,Y,J){if(arguments.length<4){let Q=A8.decodeAddress($),K=A8.decodeAddress(I);this.model={top:Math.min(Q.row,K.row),left:Math.min(Q.col,K.col),bottom:Math.max(Q.row,K.row),right:Math.max(Q.col,K.col),sheetName:U},this.setTLBR(Q.row,Q.col,K.row,K.col,J)}else this.model={top:Math.min($,U),left:Math.min(I,Y),bottom:Math.max($,U),right:Math.max(I,Y),sheetName:J}}decode($){switch($.length){case 5:this.setTLBR($[0],$[1],$[2],$[3],$[4]);break;case 4:this.setTLBR($[0],$[1],$[2],$[3]);break;case 3:this.setTLBR($[0],$[1],$[2]);break;case 2:this.setTLBR($[0],$[1]);break;case 1:{let I=$[0];if(I instanceof JB)this.model={top:I.model.top,left:I.model.left,bottom:I.model.bottom,right:I.model.right,sheetName:I.sheetName};else if(I instanceof Array)this.decode(I);else if(I.top&&I.left&&I.bottom&&I.right)this.model={top:I.top,left:I.left,bottom:I.bottom,right:I.right,sheetName:I.sheetName};else{let U=A8.decodeEx(I);if(U.top)this.model={top:U.top,left:U.left,bottom:U.bottom,right:U.right,sheetName:U.sheetName};else this.model={top:U.row,left:U.col,bottom:U.row,right:U.col,sheetName:U.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw Error(`Invalid number of arguments to _getDimensions() - ${$.length}`)}}get top(){return this.model.top||1}set top($){this.model.top=$}get left(){return this.model.left||1}set left($){this.model.left=$}get bottom(){return this.model.bottom||1}set bottom($){this.model.bottom=$}get right(){return this.model.right||1}set right($){this.model.right=$}get sheetName(){return this.model.sheetName}set sheetName($){this.model.sheetName=$}get _serialisedSheetName(){let{sheetName:$}=this.model;if($){if(/^[a-zA-Z0-9]*$/.test($))return`${$}!`;return`'${$}'!`}return""}expand($,I,U,Y){if(!this.model.top||$this.bottom)this.bottom=U;if(!this.model.right||Y>this.right)this.right=Y}expandRow($){if($){let{dimensions:I,number:U}=$;if(I)this.expand(U,I.min,U,I.max)}}expandToAddress($){let I=A8.decodeEx($);this.expand(I.row,I.col,I.row,I.col)}get tl(){return A8.n2l(this.left)+this.top}get $t$l(){return`$${A8.n2l(this.left)}$${this.top}`}get br(){return A8.n2l(this.right)+this.bottom}get $b$r(){return`$${A8.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects($){if($.sheetName&&this.sheetName&&$.sheetName!==this.sheetName)return!1;if($.bottomthis.bottom)return!1;if($.rightthis.right)return!1;return!0}contains($){let I=A8.decodeEx($);return this.containsEx(I)}containsEx($){if($.sheetName&&this.sheetName&&$.sheetName!==this.sheetName)return!1;return $.row>=this.top&&$.row<=this.bottom&&$.col>=this.left&&$.col<=this.right}forEachAddress($){for(let I=this.left;I<=this.right;I++)for(let U=this.top;U<=this.bottom;U++)$(A8.encodeAddress(U,I),U,I)}}Dl.exports=JB});var I8=O((zA1,Ol)=>{Ol.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}});var Nl=O((XA1,Fl)=>{var UV=W4(),fC0=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,iC0=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function bC0($,I,U){let Y=UV.decode(I),J=UV.decode(U);return $.replace(fC0,(Q,K,q,H,G)=>{if(G)return Q;let W=iC0.exec(H);if(W){let w=W[1],Z=W[2].toUpperCase(),V=W[3],X=W[4];if(Z.length>3||Z.length===3&&Z>"XFD")return Q;let L=UV.l2n(Z),D=parseInt(X,10);if(!w)L+=J.col-Y.col;if(!V)D+=J.row-Y.row;return(K||"")+(w||"")+UV.n2l(L)+(V||"")+D}return Q})}Fl.exports={slideFormula:bC0}});var Al=O((LA1,Ml)=>{var nC0=X4();class B2{constructor($){this.note=$}get model(){let $=null;switch(typeof this.note){case"string":$={type:"note",note:{texts:[{text:this.note}]}};break;default:$={type:"note",note:this.note};break}return nC0.deepMerge({},B2.DEFAULT_CONFIGS,$)}set model($){let{note:I}=$,{texts:U}=I;if(U.length===1&&Object.keys(U[0]).length===1)this.note=U[0].text;else this.note=I}static fromModel($){let I=new B2;return I.model=$,I}}B2.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[0.13,0.13,0.25,0.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}};Ml.exports=B2});var kl=O((DA1,ul)=>{var pC0=W4(),cC0=X4(),U8=I8(),{slideFormula:dC0}=Nl(),Pl=Al();class P0{constructor($,I,U){if(!$||!I)throw Error("A Cell needs a Row");this._row=$,this._column=I,pC0.validateAddress(U),this._address=U,this._value=A9.create(P0.Types.Null,this),this.style=this._mergeStyle($.style,I.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt($){this.style.numFmt=$}get font(){return this.style.font}set font($){this.style.font=$}get alignment(){return this.style.alignment}set alignment($){this.style.alignment=$}get border(){return this.style.border}set border($){this.style.border=$}get fill(){return this.style.fill}set fill($){this.style.fill=$}get protection(){return this.style.protection}set protection($){this.style.protection=$}_mergeStyle($,I,U){let Y=$&&$.numFmt||I&&I.numFmt;if(Y)U.numFmt=Y;let J=$&&$.font||I&&I.font;if(J)U.font=J;let Q=$&&$.alignment||I&&I.alignment;if(Q)U.alignment=Q;let K=$&&$.border||I&&I.border;if(K)U.border=K;let q=$&&$.fill||I&&I.fill;if(q)U.fill=q;let H=$&&$.protection||I&&I.protection;if(H)U.protection=H;return U}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===P0.Types.Merge}merge($,I){if(this._value.release(),this._value=A9.create(P0.Types.Merge,this,$),!I)this.style=$.style}unmerge(){if(this.type===P0.Types.Merge)this._value.release(),this._value=A9.create(P0.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{})}isMergedTo($){if(this._value.type!==P0.Types.Merge)return!1;return this._value.isMergedTo($)}get master(){if(this.type===P0.Types.Merge)return this._value.master;return this}get isHyperlink(){return this._value.type===P0.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value($){if(this.type===P0.Types.Merge){this._value.master.value=$;return}this._value.release(),this._value=A9.create(A9.getType($),this,$)}get note(){return this._comment&&this._comment.note}set note($){this._comment=new Pl($)}get text(){return this._value.toString()}get html(){return cC0.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink($){if(this.type===P0.Types.String)this._value=A9.create(P0.Types.Hyperlink,this,{text:this._value.value,hyperlink:$})}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:$}=this._row;return{sheetName:$.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name($){this.names=[$]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names($){let{definedNames:I}=this.workbook;I.removeAllNames(this.fullAddress),$.forEach((U)=>{I.addEx(this.fullAddress,U)})}addName($){this.workbook.definedNames.addEx(this.fullAddress,$)}removeName($){this.workbook.definedNames.removeEx(this.fullAddress,$)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation($){this._dataValidations.add(this.address,$)}get model(){let{model:$}=this._value;if($.style=this.style,this._comment)$.comment=this._comment.model;return $}set model($){if(this._value.release(),this._value=A9.create($.type,this),this._value.model=$,$.comment)switch($.comment.type){case"note":this._comment=Pl.fromModel($.comment);break}if($.style)this.style=$.style;else this.style={}}}P0.Types=U8.ValueType;class Tl{constructor($){this.model={address:$.address,type:P0.Types.Null}}get value(){return null}set value($){}get type(){return P0.Types.Null}get effectiveType(){return P0.Types.Null}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return""}release(){}toString(){return""}}class El{constructor($,I){this.model={address:$.address,type:P0.Types.Number,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Number}get effectiveType(){return P0.Types.Number}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class Bl{constructor($,I){this.model={address:$.address,type:P0.Types.String,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.String}get effectiveType(){return P0.Types.String}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class vl{constructor($,I){this.model={address:$.address,type:P0.Types.String,value:I}}get value(){return this.model.value}set value($){this.model.value=$}toString(){return this.model.value.richText.map(($)=>$.text).join("")}get type(){return P0.Types.RichText}get effectiveType(){return P0.Types.RichText}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class Rl{constructor($,I){this.model={address:$.address,type:P0.Types.Date,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Date}get effectiveType(){return P0.Types.Date}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class jl{constructor($,I){if(this.model={address:$.address,type:P0.Types.Hyperlink,text:I?I.text:void 0,hyperlink:I?I.hyperlink:void 0},I&&I.tooltip)this.model.tooltip=I.tooltip}get value(){let $={text:this.model.text,hyperlink:this.model.hyperlink};if(this.model.tooltip)$.tooltip=this.model.tooltip;return $}set value($){if(this.model={text:$.text,hyperlink:$.hyperlink},$.tooltip)this.model.tooltip=$.tooltip}get text(){return this.model.text}set text($){this.model.text=$}get hyperlink(){return this.model.hyperlink}set hyperlink($){this.model.hyperlink=$}get type(){return P0.Types.Hyperlink}get effectiveType(){return P0.Types.Hyperlink}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class Cl{constructor($,I){if(this.model={address:$.address,type:P0.Types.Merge,master:I?I.address:void 0},this._master=I,I)I.addMergeRef()}get value(){return this._master.value}set value($){if($ instanceof P0){if(this._master)this._master.releaseMergeRef();$.addMergeRef(),this._master=$}else this._master.value=$}isMergedTo($){return $===this._master}get master(){return this._master}get type(){return P0.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class _l{constructor($,I){this.cell=$,this.model={address:$.address,type:P0.Types.Formula,shareType:I?I.shareType:void 0,ref:I?I.ref:void 0,formula:I?I.formula:void 0,sharedFormula:I?I.sharedFormula:void 0,result:I?I.result:void 0}}_copyModel($){let I={},U=(Y)=>{let J=$[Y];if(J)I[Y]=J};return U("formula"),U("result"),U("ref"),U("shareType"),U("sharedFormula"),I}get value(){return this._copyModel(this.model)}set value($){this.model=this._copyModel($)}validate($){switch(A9.getType($)){case P0.Types.Null:case P0.Types.String:case P0.Types.Number:case P0.Types.Date:break;case P0.Types.Hyperlink:case P0.Types.Formula:default:throw Error("Cannot process that type of result value")}}get dependencies(){let $=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),I=this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);return{ranges:$,cells:I}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula($){this.model.formula=$}get formulaType(){if(this.model.formula)return U8.FormulaType.Master;if(this.model.sharedFormula)return U8.FormulaType.Shared;return U8.FormulaType.None}get result(){return this.model.result}set result($){this.model.result=$}get type(){return P0.Types.Formula}get effectiveType(){let $=this.model.result;if($===null||$===void 0)return U8.ValueType.Null;if($ instanceof String||typeof $==="string")return U8.ValueType.String;if(typeof $==="number")return U8.ValueType.Number;if($ instanceof Date)return U8.ValueType.Date;if($.text&&$.hyperlink)return U8.ValueType.Hyperlink;if($.formula)return U8.ValueType.Formula;return U8.ValueType.Null}get address(){return this.model.address}set address($){this.model.address=$}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:$}=this.cell,I=$.findCell(this.model.sharedFormula);this._translatedFormula=I&&dC0(I.formula,I.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class Sl{constructor($,I){this.model={address:$.address,type:P0.Types.SharedString,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.SharedString}get effectiveType(){return P0.Types.SharedString}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class gl{constructor($,I){this.model={address:$.address,type:P0.Types.Boolean,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Boolean}get effectiveType(){return P0.Types.Boolean}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class yl{constructor($,I){this.model={address:$.address,type:P0.Types.Error,value:I}}get value(){return this.model.value}set value($){this.model.value=$}get type(){return P0.Types.Error}get effectiveType(){return P0.Types.Error}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class hl{constructor($,I){this.model={address:$.address,type:P0.Types.String,value:JSON.stringify(I),rawValue:I}}get value(){return this.model.rawValue}set value($){this.model.rawValue=$,this.model.value=JSON.stringify($)}get type(){return P0.Types.String}get effectiveType(){return P0.Types.String}get address(){return this.model.address}set address($){this.model.address=$}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}var A9={getType($){if($===null||$===void 0)return P0.Types.Null;if($ instanceof String||typeof $==="string")return P0.Types.String;if(typeof $==="number")return P0.Types.Number;if(typeof $==="boolean")return P0.Types.Boolean;if($ instanceof Date)return P0.Types.Date;if($.text&&$.hyperlink)return P0.Types.Hyperlink;if($.formula||$.sharedFormula)return P0.Types.Formula;if($.richText)return P0.Types.RichText;if($.sharedString)return P0.Types.SharedString;if($.error)return P0.Types.Error;return P0.Types.JSON},types:[{t:P0.Types.Null,f:Tl},{t:P0.Types.Number,f:El},{t:P0.Types.String,f:Bl},{t:P0.Types.Date,f:Rl},{t:P0.Types.Hyperlink,f:jl},{t:P0.Types.Formula,f:_l},{t:P0.Types.Merge,f:Cl},{t:P0.Types.JSON,f:hl},{t:P0.Types.SharedString,f:Sl},{t:P0.Types.RichText,f:vl},{t:P0.Types.Boolean,f:gl},{t:P0.Types.Error,f:yl}].reduce(($,I)=>{return $[I.t]=I.f,$},[]),create($,I,U){let Y=this.types[$];if(!Y)throw Error(`Could not create Value of type ${$}`);return new Y(I,U)}};ul.exports=P0});var JV=O((OA1,il)=>{var mC0=X4(),YV=I8(),c7=W4(),xl=kl();class fl{constructor($,I){this._worksheet=$,this._number=I,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell($){return this._cells[$-1]}getCellEx($){let I=this._cells[$.col-1];if(!I){let U=this._worksheet.getColumn($.col);I=new xl(this,U,$.address),this._cells[$.col-1]=I}return I}getCell($){if(typeof $==="string"){let I=this._worksheet.getColumnKey($);if(I)$=I.number;else $=c7.l2n($)}return this._cells[$-1]||this.getCellEx({address:c7.encodeAddress(this._number,$),row:this._number,col:$})}splice($,I,...U){let Y=$+I,J=U.length-I,Q=this._cells.length,K,q,H;if(J<0){for(K=$+U.length;K<=Q;K++)if(H=this._cells[K-1],q=this._cells[K-J-1],q)H=this.getCell(K),H.value=q.value,H.style=q.style,H._comment=q._comment;else if(H)H.value=null,H.style={},H._comment=void 0}else if(J>0)for(K=Q;K>=Y;K--)if(q=this._cells[K-1],q)H=this.getCell(K+J),H.value=q.value,H.style=q.style,H._comment=q._comment;else this._cells[K+J-1]=void 0;for(K=0;K{if(U&&U.type!==YV.ValueType.Null)I(U,Y+1)})}addPageBreak($,I){let U=this._worksheet,Y=Math.max(0,$-1)||0,J=Math.max(0,I-1)||16838,Q={id:this._number,max:J,man:1};if(Y)Q.min=Y;U.rowBreaks.push(Q)}get values(){let $=[];return this._cells.forEach((I)=>{if(I&&I.type!==YV.ValueType.Null)$[I.col]=I.value}),$}set values($){if(this._cells=[],!$);else if($ instanceof Array){let I=0;if($.hasOwnProperty("0"))I=1;$.forEach((U,Y)=>{if(U!==void 0)this.getCellEx({address:c7.encodeAddress(this._number,Y+I),row:this._number,col:Y+I}).value=U})}else this._worksheet.eachColumnKey((I,U)=>{if($[U]!==void 0)this.getCellEx({address:c7.encodeAddress(this._number,I.number),row:this._number,col:I.number}).value=$[U]})}get hasValues(){return mC0.some(this._cells,($)=>$&&$.type!==YV.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let $=0;return this.eachCell(()=>{$++}),$}get dimensions(){let $=0,I=0;return this._cells.forEach((U)=>{if(U&&U.type!==YV.ValueType.Null){if(!$||$>U.col)$=U.col;if(I0?{min:$,max:I}:null}_applyStyle($,I){return this.style[$]=I,this._cells.forEach((U)=>{if(U)U[$]=I}),I}get numFmt(){return this.style.numFmt}set numFmt($){this._applyStyle("numFmt",$)}get font(){return this.style.font}set font($){this._applyStyle("font",$)}get alignment(){return this.style.alignment}set alignment($){this._applyStyle("alignment",$)}get protection(){return this.style.protection}set protection($){this._applyStyle("protection",$)}get border(){return this.style.border}set border($){this._applyStyle("border",$)}get fill(){return this.style.fill}set fill($){this._applyStyle("fill",$)}get hidden(){return!!this._hidden}set hidden($){this._hidden=$}get outlineLevel(){return this._outlineLevel||0}set outlineLevel($){this._outlineLevel=$}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let $=[],I=0,U=0;return this._cells.forEach((Y)=>{if(Y){let J=Y.model;if(J){if(!I||I>Y.col)I=Y.col;if(U{switch(U.type){case xl.Types.Merge:break;default:{let Y;if(U.address)Y=c7.decodeAddress(U.address);else if(I){let{row:Q}=I,K=I.col+1;Y={row:Q,col:K,address:c7.encodeAddress(Q,K),$col$row:`$${c7.n2l(K)}$${Q}`}}I=Y;let J=this.getCellEx(Y);J.model=U;break}}}),$.height)this.height=$.height;else delete this.height;this.hidden=$.hidden,this.outlineLevel=$.outlineLevel||0,this.style=$.style&&JSON.parse(JSON.stringify($.style))||{}}}il.exports=fl});var KV=O((FA1,bl)=>{var lC0=X4(),oC0=I8(),rC0=W4();class QV{constructor($,I,U){if(this._worksheet=$,this._number=I,U!==!1)this.defn=U}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return rC0.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn($){if($){if(this.key=$.key,this.width=$.width!==void 0?$.width:9,this.outlineLevel=$.outlineLevel,$.style)this.style=$.style;else this.style={};this.header=$.header,this._hidden=!!$.hidden}else delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header($){if($!==void 0)this._header=$,this.headers.forEach((I,U)=>{this._worksheet.getCell(U+1,this.number).value=I});else this._header=void 0}get key(){return this._key}set key($){if((this._key&&this._worksheet.getColumnKey(this._key))===this)this._worksheet.deleteColumnKey(this._key);if(this._key=$,$)this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden($){this._hidden=$}get outlineLevel(){return this._outlineLevel||0}set outlineLevel($){this._outlineLevel=$}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo($){return this.width===$.width&&this.hidden===$.hidden&&this.outlineLevel===$.outlineLevel&&lC0.isEqual(this.style,$.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;let $=this.style;if($&&($.font||$.numFmt||$.alignment||$.border||$.fill||$.protection))return!1;return!0}get headerCount(){return this.headers.length}eachCell($,I){let U=this.number;if(!I)I=$,$=null;this._worksheet.eachRow($,(Y,J)=>{I(Y.getCell(U),J)})}get values(){let $=[];return this.eachCell((I,U)=>{if(I&&I.type!==oC0.ValueType.Null)$[U]=I.value}),$}set values($){if(!$)return;let I=this.number,U=0;if($.hasOwnProperty("0"))U=1;$.forEach((Y,J)=>{this._worksheet.getCell(J+U,I).value=Y})}_applyStyle($,I){return this.style[$]=I,this.eachCell((U)=>{U[$]=I}),I}get numFmt(){return this.style.numFmt}set numFmt($){this._applyStyle("numFmt",$)}get font(){return this.style.font}set font($){this._applyStyle("font",$)}get alignment(){return this.style.alignment}set alignment($){this._applyStyle("alignment",$)}get protection(){return this.style.protection}set protection($){this._applyStyle("protection",$)}get border(){return this.style.border}set border($){this._applyStyle("border",$)}get fill(){return this.style.fill}set fill($){this._applyStyle("fill",$)}static toModel($){let I=[],U=null;if($)$.forEach((Y,J)=>{if(Y.isDefault){if(U)U=null}else if(!U||!Y.equivalentTo(U))U={min:J+1,max:J+1,width:Y.width!==void 0?Y.width:9,style:Y.style,isCustomWidth:Y.isCustomWidth,hidden:Y.hidden,outlineLevel:Y.outlineLevel,collapsed:Y.collapsed},I.push(U);else U.max=J+1});return I.length?I:void 0}static fromModel($,I){I=I||[];let U=[],Y=1,J=0;I=I.sort(function(Q,K){return Q.min-K.min});while(J{var tC0=W4();class qV{constructor($,I,U=0){if(this.worksheet=$,!I)this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;else if(typeof I==="string"){let Y=tC0.decodeAddress(I);this.nativeCol=Y.col+U,this.nativeColOff=0,this.nativeRow=Y.row+U,this.nativeRowOff=0}else if(I.nativeCol!==void 0)this.nativeCol=I.nativeCol||0,this.nativeColOff=I.nativeColOff||0,this.nativeRow=I.nativeRow||0,this.nativeRowOff=I.nativeRowOff||0;else if(I.col!==void 0)this.col=I.col+U,this.row=I.row+U;else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance($){return $ instanceof qV||$==null?$:new qV($)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col($){this.nativeCol=Math.floor($),this.nativeColOff=Math.floor(($-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row($){this.nativeRow=Math.floor($),this.nativeRowOff=Math.floor(($-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):640000}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):180000}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model($){this.nativeCol=$.nativeCol,this.nativeColOff=$.nativeColOff,this.nativeRow=$.nativeRow,this.nativeRowOff=$.nativeRowOff}}nl.exports=qV});var ml=O((MA1,dl)=>{var aC0=W4(),HV=pl();class cl{constructor($,I){this.worksheet=$,this.model=I}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw Error("Invalid Image Type")}}set model({type:$,imageId:I,range:U,hyperlinks:Y}){if(this.type=$,this.imageId=I,$==="image")if(typeof U==="string"){let J=aC0.decode(U);this.range={tl:new HV(this.worksheet,{col:J.left,row:J.top},-1),br:new HV(this.worksheet,{col:J.right,row:J.bottom},0),editAs:"oneCell"}}else this.range={tl:new HV(this.worksheet,U.tl,0),br:U.br&&new HV(this.worksheet,U.br,0),ext:U.ext,editAs:U.editAs,hyperlinks:Y||U.hyperlinks}}}dl.exports=cl});var tl=O((AA1,rl)=>{var GV=W4();class ll{constructor($,I,U){this.table=$,this.column=I,this.index=U}_set($,I){this.table.cacheState(),this.column[$]=I}get name(){return this.column.name}set name($){this._set("name",$)}get filterButton(){return this.column.filterButton}set filterButton($){this.column.filterButton=$}get style(){return this.column.style}set style($){this.column.style=$}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel($){this._set("totalsRowLabel",$)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction($){this._set("totalsRowFunction",$)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult($){this._set("totalsRowResult",$)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula($){this._set("totalsRowFormula",$)}}class ol{constructor($,I){if(this.worksheet=$,I)this.table=I,this.validate(),this.store()}getFormula($){switch($.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${$.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${$.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${$.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${$.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${$.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${$.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${$.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${$.name}])`;case"custom":return $.totalsRowFormula;default:throw Error(`Invalid Totals Row Function: ${$.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:$}=this,I=(H,G,W)=>{if(H[G]===void 0)H[G]=W};I($,"headerRow",!0),I($,"totalsRow",!1),I($,"style",{}),I($.style,"theme","TableStyleMedium2"),I($.style,"showFirstColumn",!1),I($.style,"showLastColumn",!1),I($.style,"showRowStripes",!1),I($.style,"showColumnStripes",!1);let U=(H,G)=>{if(!H)throw Error(G)};U($.ref,"Table must have ref"),U($.columns,"Table must have column definitions"),U($.rows,"Table must have row definitions"),$.tl=GV.decodeAddress($.ref);let{row:Y,col:J}=$.tl;U(Y>0,"Table must be on valid row"),U(J>0,"Table must be on valid col");let{width:Q,filterHeight:K,tableHeight:q}=this;$.autoFilterRef=GV.encode(Y,J,Y+K-1,J+Q-1),$.tableRef=GV.encode(Y,J,Y+q-1,J+Q-1),$.columns.forEach((H,G)=>{if(U(H.name,`Column ${G} must have a name`),G===0)I(H,"totalsRowLabel","Total");else I(H,"totalsRowFunction","none"),H.totalsRowFormula=this.getFormula(H)})}store(){let $=(K,q)=>{if(q)Object.keys(q).forEach((H)=>{K[H]=q[H]})},{worksheet:I,table:U}=this,{row:Y,col:J}=U.tl,Q=0;if(U.headerRow){let K=I.getRow(Y+Q++);U.columns.forEach((q,H)=>{let{style:G,name:W}=q,w=K.getCell(J+H);w.value=W,$(w,G)})}if(U.rows.forEach((K)=>{let q=I.getRow(Y+Q++);K.forEach((H,G)=>{let W=q.getCell(J+G);W.value=H,$(W,U.columns[G].style)})}),U.totalsRow){let K=I.getRow(Y+Q++);U.columns.forEach((q,H)=>{let G=K.getCell(J+H);if(H===0)G.value=q.totalsRowLabel;else if(this.getFormula(q))G.value={formula:q.totalsRowFormula,result:q.totalsRowResult};else G.value=null;$(G,q.style)})}}load($){let{table:I}=this,{row:U,col:Y}=I.tl,J=0;if(I.headerRow){let Q=$.getRow(U+J++);I.columns.forEach((K,q)=>{let H=Q.getCell(Y+q);H.value=K.name})}if(I.rows.forEach((Q)=>{let K=$.getRow(U+J++);Q.forEach((q,H)=>{let G=K.getCell(Y+H);G.value=q})}),I.totalsRow){let Q=$.getRow(U+J++);I.columns.forEach((K,q)=>{let H=Q.getCell(Y+q);if(q===0)H.value=K.totalsRowLabel;else if(this.getFormula(K))H.value={formula:K.totalsRowFormula,result:K.totalsRowResult}})}}get model(){return this.table}set model($){this.table=$}cacheState(){if(!this._cache)this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}commit(){if(!this._cache)return;this.validate();let $=GV.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let I=0;I{Y.push(I[J])});else this.table.columns.splice(U,0,$),this.table.rows.forEach((Y,J)=>{Y.splice(U,0,I[J])})}removeColumns($,I=1){this.cacheState(),this.table.columns.splice($,I),this.table.rows.forEach((U)=>{U.splice($,I)})}_assign($,I,U){this.cacheState(),$[I]=U}get ref(){return this.table.ref}set ref($){this._assign(this.table,"ref",$)}get name(){return this.table.name}set name($){this.table.name=$}get displayName(){return this.table.displyName||this.table.name}set displayNamename($){this.table.displayName=$}get headerRow(){return this.table.headerRow}set headerRow($){this._assign(this.table,"headerRow",$)}get totalsRow(){return this.table.totalsRow}set totalsRow($){this._assign(this.table,"totalsRow",$)}get theme(){return this.table.style.name}set theme($){this.table.style.name=$}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn($){this.table.style.showFirstColumn=$}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn($){this.table.style.showLastColumn=$}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes($){this.table.style.showRowStripes=$}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes($){this.table.style.showColumnStripes=$}}rl.exports=ol});var QB=O((PA1,sl)=>{class al{constructor($){this.model=$||{}}add($,I){return this.model[$]=I}find($){return this.model[$]}remove($){this.model[$]=void 0}}sl.exports=al});var qB=O((TA1,el)=>{var KB=t("crypto"),sC0={hash($,...I){let U=KB.createHash($);return U.update(Buffer.concat(I)),U.digest()},convertPasswordToHash($,I,U,Y){if(I=I.toLowerCase(),KB.getHashes().indexOf(I)<0)throw Error(`Hash algorithm '${I}' not supported!`);let Q=Buffer.from($,"utf16le"),K=this.hash(I,Buffer.from(U,"base64"),Q);for(let q=0;q{var $o=($,I)=>({...$,...I.reduce((U,Y)=>{if($[Y])U[Y]={...$[Y]};return U},{})}),P8=($,I,U,Y=[])=>{if($[U])I[U]=$o($[U],Y)},eC0=($)=>Object.keys($).length===0,$_0=($)=>{if(!$)return $;if(eC0($))return{};let I={...$};if(P8($,I,"font",["color"]),P8($,I,"alignment"),P8($,I,"protection"),$.border)P8($,I,"border"),P8($.border,I.border,"top",["color"]),P8($.border,I.border,"left",["color"]),P8($.border,I.border,"bottom",["color"]),P8($.border,I.border,"right",["color"]),P8($.border,I.border,"diagonal",["color"]);if($.fill){if(P8($,I,"fill",["fgColor","bgColor","center"]),$.fill.stops)I.fill.stops=$.fill.stops.map((U)=>$o(U,["color"]))}return I};I_0.copyStyle=$_0});var Go=O((BA1,Ho)=>{var v2=X4(),R2=W4(),j2=Z5(),Uo=JV(),WV=KV(),Y_0=I8(),HB=ml(),Yo=tl(),Jo=QB(),Qo=qB(),{copyStyle:Ko}=Io();class qo{constructor($){$=$||{},this._workbook=$.workbook,this.id=$.id,this.orderNo=$.orderNo,this.name=$.name,this.state=$.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},$.properties),this.pageSetup=Object.assign({},{margins:{left:0.7,right:0.7,top:0.75,bottom:0.75,header:0.3,footer:0.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!($.pageSetup&&($.pageSetup.fitToWidth||$.pageSetup.fitToHeight)&&!$.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},$.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},$.headerFooter),this.dataValidations=new Jo,this.views=$.views||[],this.autoFilter=$.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name($){if($===void 0)$=`sheet${this.id}`;if(this._name===$)return;if(typeof $!=="string")throw Error("The name has to be a string.");if($==="")throw Error("The name can't be empty.");if($==="History")throw Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test($))throw Error(`Worksheet name ${$} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test($))throw Error(`The first or last character of worksheet name cannot be a single quotation mark: ${$}`);if($&&$.length>31)console.warn(`Worksheet name ${$} exceeds 31 chars. This will be truncated`),$=$.substring(0,31);if(this._workbook._worksheets.find((I)=>I&&I.name.toLowerCase()===$.toLowerCase()))throw Error(`Worksheet name already exists: ${$}`);this._name=$}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let $=new j2;return this._rows.forEach((I)=>{if(I){let U=I.dimensions;if(U)$.expand(I.number,U.min,I.number,U.max)}}),$}get columns(){return this._columns}set columns($){this._headerRowCount=$.reduce((Y,J)=>{let Q=J.header&&1||J.headers&&J.headers.length||0;return Math.max(Y,Q)},0);let I=1,U=this._columns=[];$.forEach((Y)=>{let J=new WV(this,I++,!1);U.push(J),J.defn=Y})}getColumnKey($){return this._keys[$]}setColumnKey($,I){this._keys[$]=I}deleteColumnKey($){delete this._keys[$]}eachColumnKey($){v2.each(this._keys,$)}getColumn($){if(typeof $==="string"){let I=this._keys[$];if(I)return I;$=R2.l2n($)}if(!this._columns)this._columns=[];if($>this._columns.length){let I=this._columns.length+1;while(I<=$)this._columns.push(new WV(this,I++))}return this._columns[$-1]}spliceColumns($,I,...U){let J=this._rows.length;if(U.length>0)for(let H=0;H{G.push(w[H]||null)});let W=this.getRow(H+1);W.splice.apply(W,G)}else this._rows.forEach((H)=>{if(H)H.splice($,I)});let Q=U.length-I,K=$+I,q=this._columns.length;if(Q<0)for(let H=$+U.length;H<=q;H++)this.getColumn(H).defn=this.getColumn(H-Q).defn;else if(Q>0)for(let H=q;H>=K;H--)this.getColumn(H+Q).defn=this.getColumn(H).defn;for(let H=$;H<$+U.length;H++)this.getColumn(H).defn=null;this.workbook.definedNames.spliceColumns(this.name,$,I,U.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let $=0;return this.eachRow((I)=>{$=Math.max($,I.cellCount)}),$}get actualColumnCount(){let $=[],I=0;return this.eachRow((U)=>{U.eachCell(({col:Y})=>{if(!$[Y])$[Y]=!0,I++})}),I}_commitRow(){}get _lastRowNumber(){let $=this._rows,I=$.length;while(I>0&&$[I-1]===void 0)I--;return I}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1];return}findRow($){return this._rows[$-1]}findRows($,I){return this._rows.slice($-1,$-1+I)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let $=0;return this.eachRow(()=>{$++}),$}getRow($){let I=this._rows[$-1];if(!I)I=this._rows[$-1]=new Uo(this,$);return I}getRows($,I){if(I<1)return;let U=[];for(let Y=$;Y<$+I;Y++)U.push(this.getRow(Y));return U}addRow($,I="n"){let U=this._nextRow,Y=this.getRow(U);return Y.values=$,this._setStyleOption(U,I[0]==="i"?I:"n"),Y}addRows($,I="n"){let U=[];return $.forEach((Y)=>{U.push(this.addRow(Y,I))}),U}insertRow($,I,U="n"){return this.spliceRows($,0,I),this._setStyleOption($,U),this.getRow($)}insertRows($,I,U="n"){if(this.spliceRows($,0,...I),U!=="n"){for(let Y=0;Y{J.getCell(K).style=Ko(Q.style)}),J.height=Y.height}duplicateRow($,I,U=!1){let Y=this._rows[$-1],J=Array(I).fill(Y.values);this.spliceRows($+1,U?0:I,...J);for(let Q=0;Q{K.getCell(H).style=q.style})}}spliceRows($,I,...U){let Y=$+I,J=U.length,Q=J-I,K=this._rows.length,q,H;if(Q<0){if($===K)this._rows[K-1]=void 0;for(q=Y;q<=K;q++)if(H=this._rows[q-1],H){let G=this.getRow(q+Q);G.values=H.values,G.style=H.style,G.height=H.height,H.eachCell({includeEmpty:!0},(W,w)=>{G.getCell(w).style=W.style}),this._rows[q-1]=void 0}else this._rows[q+Q-1]=void 0}else if(Q>0)for(q=K;q>=Y;q--)if(H=this._rows[q-1],H){let G=this.getRow(q+Q);G.values=H.values,G.style=H.style,G.height=H.height,H.eachCell({includeEmpty:!0},(W,w)=>{if(G.getCell(w).style=W.style,W._value.constructor.name==="MergeValue"){let Z=this.getRow(W._row._number+J).getCell(w),V=W._value._master,X=this.getRow(V._row._number+J).getCell(V._column._number);Z.merge(X)}})}else this._rows[q+Q-1]=void 0;for(q=0;q{if(U&&U.hasValues)I(U,U.number)})}getSheetValues(){let $=[];return this._rows.forEach((I)=>{if(I)$[I.number]=I.values}),$}findCell($,I){let U=R2.getAddress($,I),Y=this._rows[U.row-1];return Y?Y.findCell(U.col):void 0}getCell($,I){let U=R2.getAddress($,I);return this.getRow(U.row).getCellEx(U)}mergeCells(...$){let I=new j2($);this._mergeCellsInternal(I)}mergeCellsWithoutStyle(...$){let I=new j2($);this._mergeCellsInternal(I,!0)}_mergeCellsInternal($,I){v2.each(this._merges,(Y)=>{if(Y.intersects($))throw Error("Cannot merge already merged cells")});let U=this.getCell($.top,$.left);for(let Y=$.top;Y<=$.bottom;Y++)for(let J=$.left;J<=$.right;J++)if(Y>$.top||J>$.left)this.getCell(Y,J).merge(U,I);this._merges[U.address]=$}_unMergeMaster($){let I=this._merges[$.address];if(I){for(let U=I.top;U<=I.bottom;U++)for(let Y=I.left;Y<=I.right;Y++)this.getCell(U,Y).unmerge();delete this._merges[$.address]}}get hasMerges(){return v2.some(this._merges,Boolean)}unMergeCells(...$){let I=new j2($);for(let U=I.top;U<=I.bottom;U++)for(let Y=I.left;Y<=I.right;Y++){let J=this.findCell(U,Y);if(J){if(J.type===Y_0.ValueType.Merge)this._unMergeMaster(J.master);else if(this._merges[J.address])this._unMergeMaster(J)}}}fillFormula($,I,U,Y="shared"){let J=R2.decode($),{top:Q,left:K,bottom:q,right:H}=J,G=H-K+1,W=R2.encodeAddress(Q,K),w=Y==="shared",Z;if(typeof U==="function")Z=U;else if(Array.isArray(U))if(Array.isArray(U[0]))Z=(X,L)=>U[X-Q][L-K];else Z=(X,L)=>U[(X-Q)*G+(L-K)];else Z=()=>{return};let V=!0;for(let X=Q;X<=q;X++)for(let L=K;L<=H;L++)if(V)this.getCell(X,L).value={shareType:Y,formula:I,ref:$,result:Z(X,L)},V=!1;else this.getCell(X,L).value=w?{sharedFormula:W,result:Z(X,L)}:Z(X,L)}addImage($,I){let U={type:"image",imageId:$,range:I};this._media.push(new HB(this,U))}getImages(){return this._media.filter(($)=>$.type==="image")}addBackgroundImage($){let I={type:"background",imageId:$};this._media.push(new HB(this,I))}getBackgroundImageId(){let $=this._media.find((I)=>I.type==="background");return $&&$.imageId}protect($,I){return new Promise((U)=>{if(this.sheetProtection={sheet:!0},I&&"spinCount"in I)I.spinCount=Number.isFinite(I.spinCount)?Math.round(Math.max(0,I.spinCount)):1e5;if($)this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=Qo.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=I&&"spinCount"in I?I.spinCount:1e5,this.sheetProtection.hashValue=Qo.convertPasswordToHash($,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount);if(I){if(this.sheetProtection=Object.assign(this.sheetProtection,I),!$&&"spinCount"in I)delete this.sheetProtection.spinCount}U()})}unprotect(){this.sheetProtection=null}addTable($){let I=new Yo(this,$);return this.tables[$.name]=I,I}getTable($){return this.tables[$]}removeTable($){delete this.tables[$]}getTables(){return Object.values(this.tables)}addConditionalFormatting($){this.conditionalFormattings.push($)}removeConditionalFormatting($){if(typeof $==="number")this.conditionalFormattings.splice($,1);else if($ instanceof Function)this.conditionalFormattings=this.conditionalFormattings.filter($);else this.conditionalFormattings=[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor($){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=$}get model(){let $={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((Y)=>Y.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((Y)=>Y.model),conditionalFormattings:this.conditionalFormattings};$.cols=WV.toModel(this.columns);let I=$.rows=[],U=$.dimensions=new j2;return this._rows.forEach((Y)=>{let J=Y&&Y.model;if(J)U.expand(J.number,J.min,J.number,J.max),I.push(J)}),$.merges=[],v2.each(this._merges,(Y)=>{$.merges.push(Y.range)}),$}_parseRows($){this._rows=[],$.rows.forEach((I)=>{let U=new Uo(this,I.number);this._rows[U.number-1]=U,U.model=I})}_parseMergeCells($){v2.each($.mergeCells,(I)=>{this.mergeCellsWithoutStyle(I)})}set model($){this.name=$.name,this._columns=WV.fromModel(this,$.cols),this._parseRows($),this._parseMergeCells($),this.dataValidations=new Jo($.dataValidations),this.properties=$.properties,this.pageSetup=$.pageSetup,this.headerFooter=$.headerFooter,this.views=$.views,this.autoFilter=$.autoFilter,this._media=$.media.map((I)=>new HB(this,I)),this.sheetProtection=$.sheetProtection,this.tables=$.tables.reduce((I,U)=>{let Y=new Yo;return Y.model=U,I[U.name]=Y,I},{}),this.conditionalFormattings=$.conditionalFormattings}}Ho.exports=qo});var Zo=O((vA1,Vo)=>{var Wo=X4(),wV=W4();class wo{constructor($){this.template=$,this.sheets={}}addCell($){this.addCellEx(wV.decodeEx($))}getCell($){return this.findCellEx(wV.decodeEx($),!0)}findCell($){return this.findCellEx(wV.decodeEx($),!1)}findCellAt($,I,U){let Y=this.sheets[$],J=Y&&Y[I];return J&&J[U]}addCellEx($){if($.top)for(let I=$.top;I<=$.bottom;I++)for(let U=$.left;U<=$.right;U++)this.getCellAt($.sheetName,I,U);else this.findCellEx($,!0)}getCellEx($){return this.findCellEx($,!0)}findCellEx($,I){let U=this.findSheet($,I),Y=this.findSheetRow(U,$,I);return this.findRowCell(Y,$,I)}getCellAt($,I,U){let Y=this.sheets[$]||(this.sheets[$]=[]),J=Y[I]||(Y[I]=[]);return J[U]||(J[U]={sheetName:$,address:wV.n2l(U)+I,row:I,col:U})}removeCellEx($){let I=this.findSheet($);if(!I)return;let U=this.findSheetRow(I,$);if(!U)return;delete U[$.col]}forEachInSheet($,I){let U=this.sheets[$];if(U)U.forEach((Y,J)=>{if(Y)Y.forEach((Q,K)=>{if(Q)I(Q,J,K)})})}forEach($){Wo.each(this.sheets,(I,U)=>{this.forEachInSheet(U,$)})}map($){let I=[];return this.forEach((U)=>{I.push($(U))}),I}findSheet($,I){let U=$.sheetName;if(this.sheets[U])return this.sheets[U];if(I)return this.sheets[U]=[];return}findSheetRow($,I,U){let{row:Y}=I;if($&&$[Y])return $[Y];if(U)return $[Y]=[];return}findRowCell($,I,U){let{col:Y}=I;if($&&$[Y])return $[Y];if(U)return $[Y]=this.template?Object.assign(I,JSON.parse(JSON.stringify(this.template))):I;return}spliceRows($,I,U,Y){let J=this.sheets[$];if(J){let Q=[];for(let K=0;K{K.splice(I,U,...Q)})}}}Vo.exports=wo});var GB=O((RA1,Lo)=>{var vU=X4(),C2=W4(),zo=Zo(),J_0=Z5(),Q_0=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class Xo{constructor(){this.matrixMap={}}getMatrix($){return this.matrixMap[$]||(this.matrixMap[$]=new zo)}add($,I){let U=C2.decodeEx($);this.addEx(U,I)}addEx($,I){let U=this.getMatrix(I);if($.top)for(let Y=$.left;Y<=$.right;Y++)for(let J=$.top;J<=$.bottom;J++){let Q={sheetName:$.sheetName,address:C2.n2l(Y)+J,row:J,col:Y};U.addCellEx(Q)}else U.addCellEx($)}remove($,I){let U=C2.decodeEx($);this.removeEx(U,I)}removeEx($,I){this.getMatrix(I).removeCellEx($)}removeAllNames($){vU.each(this.matrixMap,(I)=>{I.removeCellEx($)})}forEach($){vU.each(this.matrixMap,(I,U)=>{I.forEach((Y)=>{$(U,Y)})})}getNames($){return this.getNamesEx(C2.decodeEx($))}getNamesEx($){return vU.map(this.matrixMap,(I,U)=>I.findCellEx($)&&U).filter(Boolean)}_explore($,I){I.mark=!1;let{sheetName:U}=I,Y=new J_0(I.row,I.col,I.row,I.col,U),J,Q;function K(H,G){let W=$.findCellAt(U,H,I.col);if(!W||!W.mark)return!1;return Y[G]=H,W.mark=!1,!0}for(Q=I.row-1;K(Q,"top");Q--);for(Q=I.row+1;K(Q,"bottom");Q++);function q(H,G){let W=[];for(Q=Y.top;Q<=Y.bottom;Q++){let w=$.findCellAt(U,Q,H);if(w&&w.mark)W.push(w);else return!1}Y[G]=H;for(let w=0;w{Y.mark=!0});let U=I.map((Y)=>Y.mark&&this._explore(I,Y)).filter(Boolean).map((Y)=>Y.$shortRange);return{name:$,ranges:U}}normaliseMatrix($,I){$.forEachInSheet(I,(U,Y,J)=>{if(U){if(U.row!==Y||U.col!==J)U.row=Y,U.col=J,U.address=C2.n2l(J)+Y}})}spliceRows($,I,U,Y){vU.each(this.matrixMap,(J)=>{J.spliceRows($,I,U,Y),this.normaliseMatrix(J,$)})}spliceColumns($,I,U,Y){vU.each(this.matrixMap,(J)=>{J.spliceColumns($,I,U,Y),this.normaliseMatrix(J,$)})}get model(){return vU.map(this.matrixMap,($,I)=>this.getRanges(I,$)).filter(($)=>$.ranges.length)}set model($){let I=this.matrixMap={};$.forEach((U)=>{let Y=I[U.name]=new zo;U.ranges.forEach((J)=>{if(Q_0.test(J.split("!").pop()||""))Y.addCell(J)})})}}Lo.exports=Xo});var M4=O((jA1,WB)=>{if(typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)WB.exports={nextTick:K_0};else WB.exports=process;function K_0($,I,U,Y){if(typeof $!=="function")throw TypeError('"callback" argument must be a function');var J=arguments.length,Q,K;switch(J){case 0:case 1:return process.nextTick($);case 2:return process.nextTick(function(){$.call(null,I)});case 3:return process.nextTick(function(){$.call(null,I,U)});case 4:return process.nextTick(function(){$.call(null,I,U,Y)});default:Q=Array(J-1),K=0;while(K{var q_0={}.toString;Do.exports=Array.isArray||function($){return q_0.call($)=="[object Array]"}});var A4=O((wB,Fo)=>{var VV=t("buffer"),z5=VV.Buffer;function Oo($,I){for(var U in $)I[U]=$[U]}if(z5.from&&z5.alloc&&z5.allocUnsafe&&z5.allocUnsafeSlow)Fo.exports=VV;else Oo(VV,wB),wB.Buffer=jU;function jU($,I,U){return z5($,I,U)}Oo(z5,jU);jU.from=function($,I,U){if(typeof $==="number")throw TypeError("Argument must not be a number");return z5($,I,U)};jU.alloc=function($,I,U){if(typeof $!=="number")throw TypeError("Argument must be a number");var Y=z5($);if(I!==void 0)if(typeof U==="string")Y.fill(I,U);else Y.fill(I);else Y.fill(0);return Y};jU.allocUnsafe=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return z5($)};jU.allocUnsafeSlow=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return VV.SlowBuffer($)}});var l1=O((A_0)=>{function H_0($){if(Array.isArray)return Array.isArray($);return ZV($)==="[object Array]"}A_0.isArray=H_0;function G_0($){return typeof $==="boolean"}A_0.isBoolean=G_0;function W_0($){return $===null}A_0.isNull=W_0;function w_0($){return $==null}A_0.isNullOrUndefined=w_0;function V_0($){return typeof $==="number"}A_0.isNumber=V_0;function Z_0($){return typeof $==="string"}A_0.isString=Z_0;function z_0($){return typeof $==="symbol"}A_0.isSymbol=z_0;function X_0($){return $===void 0}A_0.isUndefined=X_0;function L_0($){return ZV($)==="[object RegExp]"}A_0.isRegExp=L_0;function D_0($){return typeof $==="object"&&$!==null}A_0.isObject=D_0;function O_0($){return ZV($)==="[object Date]"}A_0.isDate=O_0;function F_0($){return ZV($)==="[object Error]"||$ instanceof Error}A_0.isError=F_0;function N_0($){return typeof $==="function"}A_0.isFunction=N_0;function M_0($){return $===null||typeof $==="boolean"||typeof $==="number"||typeof $==="string"||typeof $==="symbol"||typeof $>"u"}A_0.isPrimitive=M_0;A_0.isBuffer=t("buffer").Buffer.isBuffer;function ZV($){return Object.prototype.toString.call($)}});var No=O((SA1,VB)=>{if(typeof Object.create==="function")VB.exports=function(I,U){if(U)I.super_=U,I.prototype=Object.create(U.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})};else VB.exports=function(I,U){if(U){I.super_=U;var Y=function(){};Y.prototype=U.prototype,I.prototype=new Y,I.prototype.constructor=I}}});var d0=O((gA1,ZB)=>{try{if(zV=t("util"),typeof zV.inherits!=="function")throw"";ZB.exports=zV.inherits}catch($){ZB.exports=No()}var zV});var Ao=O((yA1,zB)=>{function x_0($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var Mo=A4().Buffer,_2=t("util");function f_0($,I,U){$.copy(I,U)}zB.exports=function(){function $(){x_0(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return Mo.alloc(0);var Y=Mo.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)f_0(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(_2&&_2.inspect&&_2.inspect.custom)zB.exports.prototype[_2.inspect.custom]=function(){var $=_2.inspect({length:this.length});return this.constructor.name+" "+$}});var XB=O((hA1,Po)=>{var XV=M4();function i_0($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)XV.nextTick(LV,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,XV.nextTick(LV,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)XV.nextTick(LV,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,XV.nextTick(LV,U,Q)}else if(I)I(Q)}),this}function b_0(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function LV($,I){$.emit("error",I)}Po.exports={destroy:i_0,undestroy:b_0}});var d7=O((uA1,To)=>{To.exports=t("util").deprecate});var DB=O((kA1,So)=>{var m7=M4();So.exports=E4;function Bo($){var I=this;this.next=null,this.entry=null,this.finish=function(){QS0(I,$)}}var n_0=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:m7.nextTick,CU;E4.WritableState=g2;var vo=Object.create(l1());vo.inherits=d0();var p_0={deprecate:d7()},Ro=t("stream"),OV=A4().Buffer,c_0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d_0($){return OV.from($)}function m_0($){return OV.isBuffer($)||$ instanceof c_0}var jo=XB();vo.inherits(E4,Ro);function l_0(){}function g2($,I){CU=CU||l7(),$=$||{};var U=I instanceof CU;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){$S0(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Bo(this)}g2.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(g2.prototype,"buffer",{get:p_0.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var DV;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")DV=Function.prototype[Symbol.hasInstance],Object.defineProperty(E4,Symbol.hasInstance,{value:function($){if(DV.call(this,$))return!0;if(this!==E4)return!1;return $&&$._writableState instanceof g2}});else DV=function($){return $ instanceof this};function E4($){if(CU=CU||l7(),!DV.call(E4,this)&&!(this instanceof CU))return new E4($);if(this._writableState=new g2($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}Ro.call(this)}E4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function o_0($,I){var U=Error("write after end");$.emit("error",U),m7.nextTick(I,U)}function r_0($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),m7.nextTick(Y,Q),J=!1;return J}E4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&m_0($);if(Q&&!OV.isBuffer($))$=d_0($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=l_0;if(Y.ended)o_0(this,U);else if(Q||r_0(this,Y,$,U))Y.pendingcb++,J=a_0(this,Y,Q,$,I,U);return J};E4.prototype.cork=function(){var $=this._writableState;$.corked++};E4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)Co(this,$)}};E4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function t_0($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=OV.from(I,U);return I}Object.defineProperty(E4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function a_0($,I,U,Y,J,Q){if(!U){var K=t_0(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var go=M4(),KS0=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};uo.exports=X5;var yo=Object.create(l1());yo.inherits=d0();var ho=FB(),OB=DB();yo.inherits(X5,ho);{FV=KS0(OB.prototype);for(y2=0;y2{var MB=A4().Buffer,ko=MB.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function GS0($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function WS0($){var I=GS0($);if(typeof I!=="string"&&(MB.isEncoding===ko||!ko($)))throw Error("Unknown encoding: "+$);return I||$}AS0.StringDecoder=u2;function u2($){this.encoding=WS0($);var I;switch(this.encoding){case"utf16le":this.text=LS0,this.end=DS0,I=4;break;case"utf8":this.fillLast=ZS0,I=4;break;case"base64":this.text=OS0,this.end=FS0,I=3;break;default:this.write=NS0,this.end=MS0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=MB.allocUnsafe(I)}u2.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};u2.prototype.end=XS0;u2.prototype.text=zS0;u2.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function NB($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function wS0($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function VS0($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function ZS0($){var I=this.lastTotal-this.lastNeed,U=VS0(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function zS0($,I){var U=wS0(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function XS0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function LS0($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function DS0($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function OS0($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function FS0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function NS0($){return $.toString(this.encoding)}function MS0($){return $&&$.length?this.write($):""}});var FB=O((bA1,to)=>{var SU=M4();to.exports=s1;var TS0=RU(),k2;s1.ReadableState=co;var iA1=t("events").EventEmitter,bo=function($,I){return $.listeners(I).length},vB=t("stream"),x2=A4().Buffer,ES0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function BS0($){return x2.from($)}function vS0($){return x2.isBuffer($)||$ instanceof ES0}var no=Object.create(l1());no.inherits=d0();var PB=t("util"),E1=void 0;if(PB&&PB.debuglog)E1=PB.debuglog("stream");else E1=function(){};var RS0=Ao(),po=XB(),_U;no.inherits(s1,vB);var TB=["error","close","destroy","pause","resume"];function jS0($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(TS0($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function co($,I){k2=k2||l7(),$=$||{};var U=I instanceof k2;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new RS0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!_U)_U=AB().StringDecoder;this.decoder=new _U($.encoding),this.encoding=$.encoding}}function s1($){if(k2=k2||l7(),!(this instanceof s1))return new s1($);if(this._readableState=new co($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}vB.call(this)}Object.defineProperty(s1.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});s1.prototype.destroy=po.destroy;s1.prototype._undestroy=po.undestroy;s1.prototype._destroy=function($,I){this.push(null),I($)};s1.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=x2.from($,I),I="";Y=!0}}else Y=!0;return mo(this,$,I,!1,Y)};s1.prototype.unshift=function($){return mo(this,$,null,!0,!1)};function mo($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,gS0($,Q);else{var K;if(!J)K=CS0(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==x2.prototype)I=BS0(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else EB($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)EB($,Q,I,!1);else lo($,Q);else EB($,Q,I,!1)}else if(!Y)Q.reading=!1}return _S0(Q)}function EB($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)NV($)}lo($,I)}function CS0($,I){var U;if(!vS0(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function _S0($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}s1.prototype.isPaused=function(){return this._readableState.flowing===!1};s1.prototype.setEncoding=function($){if(!_U)_U=AB().StringDecoder;return this._readableState.decoder=new _U($),this._readableState.encoding=$,this};var xo=8388608;function SS0($){if($>=xo)$=xo;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function fo($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=SS0($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}s1.prototype.read=function($){E1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(E1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)BB(this);else NV(this);return null}if($=fo($,I),$===0&&I.ended){if(I.length===0)BB(this);return null}var Y=I.needReadable;if(E1("need readable",Y),I.length===0||I.length-$0)J=oo($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)BB(this)}if(J!==null)this.emit("data",J);return J};function gS0($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,NV($)}function NV($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(E1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)SU.nextTick(io,$);else io($)}function io($){E1("emit readable"),$.emit("readable"),RB($)}function lo($,I){if(!I.readingMore)I.readingMore=!0,SU.nextTick(yS0,$,I)}function yS0($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&ro(Y.pipes,$)!==-1)&&!G)E1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(E1("onerror",F),D(),$.removeListener("error",V),bo($,"error")===0)$.emit("error",F)}jS0($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){E1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){E1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)E1("pipe resume"),U.resume();return $};function hS0($){return function(){var I=$._readableState;if(E1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&bo($,"data"))I.flowing=!0,RB($)}}s1.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=fS0($,I.buffer,I.decoder);return U}function fS0($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function bS0($,I){var U=x2.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function BB($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,SU.nextTick(nS0,I,$)}function nS0($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function ro($,I){for(var U=0,Y=$.length;U{eo.exports=L5;var MV=l7(),so=Object.create(l1());so.inherits=d0();so.inherits(L5,MV);function pS0($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{Ur.exports=f2;var $r=jB(),Ir=Object.create(l1());Ir.inherits=d0();Ir.inherits(f2,$r);function f2($){if(!(this instanceof f2))return new f2($);$r.call(this,$)}f2.prototype._transform=function($,I,U){U(null,$)}});var CB=O(($6,AV)=>{var T8=t("stream");if(process.env.READABLE_STREAM==="disable"&&T8)AV.exports=T8,$6=AV.exports=T8.Readable,$6.Readable=T8.Readable,$6.Writable=T8.Writable,$6.Duplex=T8.Duplex,$6.Transform=T8.Transform,$6.PassThrough=T8.PassThrough,$6.Stream=T8;else $6=AV.exports=FB(),$6.Stream=T8||$6,$6.Readable=$6,$6.Writable=DB(),$6.Duplex=l7(),$6.Transform=jB(),$6.PassThrough=Yr()});var D5=O((mS0)=>{mS0.base64=!0;mS0.array=!0;mS0.string=!0;mS0.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";mS0.nodebuffer=typeof Buffer<"u";mS0.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")mS0.blob=!1;else{PV=new ArrayBuffer(0);try{mS0.blob=new Blob([PV],{type:"application/zip"}).size===0}catch($){try{SB=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,TV=new SB,TV.append(PV),mS0.blob=TV.getBlob("application/zip").size===0}catch(I){mS0.blob=!1}}}var PV,SB,TV;try{mS0.nodestream=!!CB().Readable}catch($){mS0.nodestream=!1}});var gB=O((Ig0)=>{var eS0=w4(),$g0=D5(),E8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Ig0.encode=function($){var I=[],U,Y,J,Q,K,q,H,G=0,W=$.length,w=W,Z=eS0.getTypeOf($)!=="string";while(G<$.length){if(w=W-G,!Z)U=$.charCodeAt(G++),Y=G>2,K=(U&3)<<4|Y>>4,q=w>1?(Y&15)<<2|J>>6:64,H=w>2?J&63:64,I.push(E8.charAt(Q)+E8.charAt(K)+E8.charAt(q)+E8.charAt(H))}return I.join("")};Ig0.decode=function($){var I,U,Y,J,Q,K,q,H=0,G=0,W="data:";if($.substr(0,W.length)===W)throw Error("Invalid base64 input, it looks like a data url.");$=$.replace(/[^A-Za-z0-9+/=]/g,"");var w=$.length*3/4;if($.charAt($.length-1)===E8.charAt(64))w--;if($.charAt($.length-2)===E8.charAt(64))w--;if(w%1!==0)throw Error("Invalid base64 input, bad content length.");var Z;if($g0.uint8array)Z=new Uint8Array(w|0);else Z=Array(w|0);while(H<$.length){if(J=E8.indexOf($.charAt(H++)),Q=E8.indexOf($.charAt(H++)),K=E8.indexOf($.charAt(H++)),q=E8.indexOf($.charAt(H++)),I=J<<2|Q>>4,U=(Q&15)<<4|K>>2,Y=(K&3)<<6|q,Z[G++]=I,K!==64)Z[G++]=U;if(q!==64)Z[G++]=Y}return Z}});var i2=O((mA1,Jr)=>{Jr.exports={isNode:typeof Buffer<"u",newBufferFrom:function($,I){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from($,I);else{if(typeof $==="number")throw Error('The "data" argument must not be a number');return new Buffer($,I)}},allocBuffer:function($){if(Buffer.alloc)return Buffer.alloc($);else{var I=new Buffer($);return I.fill(0),I}},isBuffer:function($){return Buffer.isBuffer($)},isStream:function($){return $&&typeof $.on==="function"&&typeof $.pause==="function"&&typeof $.resume==="function"}}});var qr=O((oA1,Kr)=>{var lA1=global.MutationObserver||global.WebKitMutationObserver,Qr;Qr=function(){process.nextTick(Hg0)};var Jg0,Qg0,Kg0,qg0,yB,b2=[];function Hg0(){yB=!0;var $,I,U=b2.length;while(U){I=b2,b2=[],$=-1;while(++${var Hr=qr();function yU(){}var L6={},Gr=["REJECTED"],hB=["FULFILLED"],Wr=["PENDING"];gU=["UNHANDLED"];var gU;Zr.exports=P9;function P9($){if(typeof $!=="function")throw TypeError("resolver must be a function");if(this.state=Wr,this.queue=[],this.outcome=void 0,this.handled=gU,$!==yU)wr(this,$)}P9.prototype.finally=function($){if(typeof $!=="function")return this;var I=this.constructor;return this.then(U,Y);function U(J){function Q(){return J}return I.resolve($()).then(Q)}function Y(J){function Q(){throw J}return I.resolve($()).then(Q)}};P9.prototype.catch=function($){return this.then(null,$)};P9.prototype.then=function($,I){if(typeof $!=="function"&&this.state===hB||typeof I!=="function"&&this.state===Gr)return this;var U=new this.constructor(yU);if(this.handled===gU)this.handled=null;if(this.state!==Wr){var Y=this.state===hB?$:I;uB(U,Y,this.outcome)}else this.queue.push(new n2(U,$,I));return U};function n2($,I,U){if(this.promise=$,typeof I==="function")this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled;if(typeof U==="function")this.onRejected=U,this.callRejected=this.otherCallRejected}n2.prototype.callFulfilled=function($){L6.resolve(this.promise,$)};n2.prototype.otherCallFulfilled=function($){uB(this.promise,this.onFulfilled,$)};n2.prototype.callRejected=function($){L6.reject(this.promise,$)};n2.prototype.otherCallRejected=function($){uB(this.promise,this.onRejected,$)};function uB($,I,U){Hr(function(){var Y;try{Y=I(U)}catch(J){return L6.reject($,J)}if(Y===$)L6.reject($,TypeError("Cannot resolve promise with itself"));else L6.resolve($,Y)})}L6.resolve=function($,I){var U=Vr(Wg0,I);if(U.status==="error")return L6.reject($,U.value);var Y=U.value;if(Y)wr($,Y);else{$.state=hB,$.outcome=I;var J=-1,Q=$.queue.length;while(++J{var kB=null;if(typeof Promise<"u")kB=Promise;else kB=zr();Xr.exports={Promise:kB}});var xB=O((Lr)=>{(function($,I){if($.setImmediate)return;var U=1,Y={},J=!1,Q=$.document,K;function q(P){if(typeof P!=="function")P=Function(""+P);var T=Array(arguments.length-1);for(var A=0;A"u"?typeof global>"u"?Lr:global:self)});var w4=O((Dg0)=>{var T9=D5(),Xg0=gB(),uU=i2(),fB=hU();xB();function Lg0($){var I=null;if(T9.uint8array)I=new Uint8Array($.length);else I=Array($.length);return BV($,I)}Dg0.newBlob=function($,I){Dg0.checkSupport("blob");try{return new Blob([$],{type:I})}catch(J){try{var U=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Y=new U;return Y.append($),Y.getBlob(I)}catch(Q){throw Error("Bug : can't construct the Blob.")}}};function p2($){return $}function BV($,I){for(var U=0;U<$.length;++U)I[U]=$.charCodeAt(U)&255;return I}var EV={stringifyByChunk:function($,I,U){var Y=[],J=0,Q=$.length;if(Q<=U)return String.fromCharCode.apply(null,$);while(J1)try{return EV.stringifyByChunk($,U,I)}catch(J){I=Math.floor(I/2)}return EV.stringifyByChar($)}Dg0.applyFromCharCode=c2;function vV($,I){for(var U=0;U<$.length;U++)I[U]=$[U];return I}var E9={};E9.string={string:p2,array:function($){return BV($,Array($.length))},arraybuffer:function($){return E9.string.uint8array($).buffer},uint8array:function($){return BV($,new Uint8Array($.length))},nodebuffer:function($){return BV($,uU.allocBuffer($.length))}};E9.array={string:c2,array:p2,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return uU.newBufferFrom($)}};E9.arraybuffer={string:function($){return c2(new Uint8Array($))},array:function($){return vV(new Uint8Array($),Array($.byteLength))},arraybuffer:p2,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return uU.newBufferFrom(new Uint8Array($))}};E9.uint8array={string:c2,array:function($){return vV($,Array($.length))},arraybuffer:function($){return $.buffer},uint8array:p2,nodebuffer:function($){return uU.newBufferFrom($)}};E9.nodebuffer={string:c2,array:function($){return vV($,Array($.length))},arraybuffer:function($){return E9.nodebuffer.uint8array($).buffer},uint8array:function($){return vV($,new Uint8Array($.length))},nodebuffer:p2};Dg0.transformTo=function($,I){if(!I)I="";if(!$)return I;Dg0.checkSupport($);var U=Dg0.getTypeOf(I),Y=E9[U][$](I);return Y};Dg0.resolve=function($){var I=$.split("/"),U=[];for(var Y=0;Y"u")$[U]=arguments[I][U];return $};Dg0.prepareContent=function($,I,U,Y,J){var Q=fB.Promise.resolve(I).then(function(K){var q=T9.blob&&(K instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(K))!==-1);if(q&&typeof FileReader<"u")return new fB.Promise(function(H,G){var W=new FileReader;W.onload=function(w){H(w.target.result)},W.onerror=function(w){G(w.target.error)},W.readAsArrayBuffer(K)});else return K});return Q.then(function(K){var q=Dg0.getTypeOf(K);if(!q)return fB.Promise.reject(Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(q==="arraybuffer")K=Dg0.transformTo("uint8array",K);else if(q==="string"){if(J)K=Xg0.decode(K);else if(U){if(Y!==!0)K=Lg0(K)}}return K})}});var W$=O((eA1,Nr)=>{function Fr($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Fr.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=$;else{if(this.isFinished=!0,this.emit("error",$),this.previous)this.previous.error($);this.cleanUp()}return!0},on:function($,I){return this._listeners[$].push(I),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,I){if(this._listeners[$])for(var U=0;U "+$;else return $}};Nr.exports=Fr});var xU=O((Sg0)=>{var kU=w4(),o7=D5(),Rg0=i2(),RV=W$(),d2=Array(256);for(B8=0;B8<256;B8++)d2[B8]=B8>=252?6:B8>=248?5:B8>=240?4:B8>=224?3:B8>=192?2:1;var B8;d2[254]=d2[254]=1;var jg0=function($){var I,U,Y,J,Q,K=$.length,q=0;for(J=0;J>>6,I[Q++]=128|U&63;else if(U<65536)I[Q++]=224|U>>>12,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63;else I[Q++]=240|U>>>18,I[Q++]=128|U>>>12&63,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63}return I},Cg0=function($,I){var U;if(I=I||$.length,I>$.length)I=$.length;U=I-1;while(U>=0&&($[U]&192)===128)U--;if(U<0)return I;if(U===0)return I;return U+d2[$[U]]>I?U:I},_g0=function($){var I,U,Y,J,Q=$.length,K=Array(Q*2);for(U=0,I=0;I4){K[U++]=65533,I+=J-1;continue}Y&=J===2?31:J===3?15:7;while(J>1&&I1){K[U++]=65533;continue}if(Y<65536)K[U++]=Y;else Y-=65536,K[U++]=55296|Y>>10&1023,K[U++]=56320|Y&1023}if(K.length!==U)if(K.subarray)K=K.subarray(0,U);else K.length=U;return kU.applyFromCharCode(K)};Sg0.utf8encode=function(I){if(o7.nodebuffer)return Rg0.newBufferFrom(I,"utf-8");return jg0(I)};Sg0.utf8decode=function(I){if(o7.nodebuffer)return kU.transformTo("nodebuffer",I).toString("utf-8");return I=kU.transformTo(o7.uint8array?"uint8array":"array",I),_g0(I)};function jV(){RV.call(this,"utf-8 decode"),this.leftOver=null}kU.inherits(jV,RV);jV.prototype.processChunk=function($){var I=kU.transformTo(o7.uint8array?"uint8array":"array",$.data);if(this.leftOver&&this.leftOver.length){if(o7.uint8array){var U=I;I=new Uint8Array(U.length+this.leftOver.length),I.set(this.leftOver,0),I.set(U,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var Y=Cg0(I),J=I;if(Y!==I.length)if(o7.uint8array)J=I.subarray(0,Y),this.leftOver=I.subarray(Y,I.length);else J=I.slice(0,Y),this.leftOver=I.slice(Y,I.length);this.push({data:Sg0.utf8decode(J),meta:$.meta})};jV.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Sg0.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Sg0.Utf8DecodeWorker=jV;function bB(){RV.call(this,"utf-8 encode")}kU.inherits(bB,RV);bB.prototype.processChunk=function($){this.push({data:Sg0.utf8encode($.data),meta:$.meta})};Sg0.Utf8EncodeWorker=bB});var Er=O((IP1,Tr)=>{var Ar=W$(),Pr=w4();function pB($){Ar.call(this,"ConvertWorker to "+$),this.destType=$}Pr.inherits(pB,Ar);pB.prototype.processChunk=function($){this.push({data:Pr.transformTo(this.destType,$.data),meta:$.meta})};Tr.exports=pB});var Rr=O((UP1,vr)=>{var Br=CB().Readable,hg0=w4();hg0.inherits(cB,Br);function cB($,I,U){Br.call(this,I),this._helper=$;var Y=this;$.on("data",function(J,Q){if(!Y.push(J))Y._helper.pause();if(U)U(Q)}).on("error",function(J){Y.emit("error",J)}).on("end",function(){Y.push(null)})}cB.prototype._read=function(){this._helper.resume()};vr.exports=cB});var dB=O((YP1,_r)=>{var r7=w4(),ug0=Er(),kg0=W$(),xg0=gB(),fg0=D5(),ig0=hU(),jr=null;if(fg0.nodestream)try{jr=Rr()}catch($){}function bg0($,I,U){switch($){case"blob":return r7.newBlob(r7.transformTo("arraybuffer",I),U);case"base64":return xg0.encode(I);default:return r7.transformTo($,I)}}function ng0($,I){var U,Y=0,J=null,Q=0;for(U=0;U{cg0.base64=!1;cg0.binary=!1;cg0.dir=!1;cg0.createFolders=!0;cg0.date=null;cg0.compression=null;cg0.compressionOptions=null;cg0.comment=null;cg0.unixPermissions=null;cg0.dosPermissions=null});var lB=O((QP1,Sr)=>{var CV=w4(),_V=W$(),Iy0=16384;function fU($){_V.call(this,"DataWorker");var I=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,$.then(function(U){if(I.dataIsReady=!0,I.data=U,I.max=U&&U.length||0,I.type=CV.getTypeOf(U),!I.isPaused)I._tickAndRepeat()},function(U){I.error(U)})}CV.inherits(fU,_V);fU.prototype.cleanUp=function(){_V.prototype.cleanUp.call(this),this.data=null};fU.prototype.resume=function(){if(!_V.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,CV.delay(this._tickAndRepeat,[],this);return!0};fU.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)CV.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};fU.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var $=Iy0,I=null,U=Math.min(this.max,this.index+$);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":I=this.data.substring(this.index,U);break;case"uint8array":I=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":I=this.data.slice(this.index,U);break}return this.index=U,this.push({data:I,meta:{percent:this.max?this.index/this.max*100:0}})}};Sr.exports=fU});var SV=O((KP1,yr)=>{var Uy0=w4();function Yy0(){var $,I=[];for(var U=0;U<256;U++){$=U;for(var Y=0;Y<8;Y++)$=$&1?3988292384^$>>>1:$>>>1;I[U]=$}return I}var gr=Yy0();function Jy0($,I,U,Y){var J=gr,Q=Y+U;$=$^-1;for(var K=Y;K>>8^J[($^I[K])&255];return $^-1}function Qy0($,I,U,Y){var J=gr,Q=Y+U;$=$^-1;for(var K=Y;K>>8^J[($^I.charCodeAt(K))&255];return $^-1}yr.exports=function(I,U){if(typeof I>"u"||!I.length)return 0;var Y=Uy0.getTypeOf(I)!=="string";if(Y)return Jy0(U|0,I,I.length,0);else return Qy0(U|0,I,I.length,0)}});var rB=O((qP1,ur)=>{var hr=W$(),Ky0=SV(),qy0=w4();function oB(){hr.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}qy0.inherits(oB,hr);oB.prototype.processChunk=function($){this.streamInfo.crc32=Ky0($.data,this.streamInfo.crc32||0),this.push($)};ur.exports=oB});var xr=O((HP1,kr)=>{var Hy0=w4(),tB=W$();function aB($){tB.call(this,"DataLengthProbe for "+$),this.propName=$,this.withStreamInfo($,0)}Hy0.inherits(aB,tB);aB.prototype.processChunk=function($){if($){var I=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=I+$.data.length}tB.prototype.processChunk.call(this,$)};kr.exports=aB});var gV=O((GP1,br)=>{var fr=hU(),ir=lB(),Gy0=rB(),sB=xr();function eB($,I,U,Y,J){this.compressedSize=$,this.uncompressedSize=I,this.crc32=U,this.compression=Y,this.compressedContent=J}eB.prototype={getContentWorker:function(){var $=new ir(fr.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new sB("data_length")),I=this;return $.on("end",function(){if(this.streamInfo.data_length!==I.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new ir(fr.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};eB.createWorkerFrom=function($,I,U){return $.pipe(new Gy0).pipe(new sB("uncompressedSize")).pipe(I.compressWorker(U)).pipe(new sB("compressedSize")).withStreamInfo("compression",I)};br.exports=eB});var dr=O((WP1,cr)=>{var Wy0=dB(),wy0=lB(),$v=xU(),Iv=gV(),nr=W$(),Uv=function($,I,U){this.name=$,this.dir=U.dir,this.date=U.date,this.comment=U.comment,this.unixPermissions=U.unixPermissions,this.dosPermissions=U.dosPermissions,this._data=I,this._dataBinary=U.binary,this.options={compression:U.compression,compressionOptions:U.compressionOptions}};Uv.prototype={internalStream:function($){var I=null,U="string";try{if(!$)throw Error("No output type specified.");U=$.toLowerCase();var Y=U==="string"||U==="text";if(U==="binarystring"||U==="text")U="string";I=this._decompressWorker();var J=!this._dataBinary;if(J&&!Y)I=I.pipe(new $v.Utf8EncodeWorker);if(!J&&Y)I=I.pipe(new $v.Utf8DecodeWorker)}catch(Q){I=new nr("error"),I.error(Q)}return new Wy0(I,U,"")},async:function($,I){return this.internalStream($).accumulate(I)},nodeStream:function($,I){return this.internalStream($||"nodebuffer").toNodejsStream(I)},_compressWorker:function($,I){if(this._data instanceof Iv&&this._data.compression.magic===$.magic)return this._data.getCompressedWorker();else{var U=this._decompressWorker();if(!this._dataBinary)U=U.pipe(new $v.Utf8EncodeWorker);return Iv.createWorkerFrom(U,$,I)}},_decompressWorker:function(){if(this._data instanceof Iv)return this._data.getContentWorker();else if(this._data instanceof nr)return this._data;else return new wy0(this._data)}};var pr=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Vy0=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(m2=0;m2{var Ly0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function Dy0($,I){return Object.prototype.hasOwnProperty.call($,I)}Yv.assign=function($){var I=Array.prototype.slice.call(arguments,1);while(I.length){var U=I.shift();if(!U)continue;if(typeof U!=="object")throw TypeError(U+"must be non-object");for(var Y in U)if(Dy0(U,Y))$[Y]=U[Y]}return $};Yv.shrinkBuf=function($,I){if($.length===I)return $;if($.subarray)return $.subarray(0,I);return $.length=I,$};var Oy0={arraySet:function($,I,U,Y,J){if(I.subarray&&$.subarray){$.set(I.subarray(U,U+Y),J);return}for(var Q=0;Q{var My0=O5(),Ay0=4,lr=0,or=1,Py0=2;function bU($){var I=$.length;while(--I>=0)$[I]=0}var Ty0=0,$t=1,Ey0=2,By0=3,vy0=258,wv=29,s2=256,o2=s2+1+wv,iU=30,Vv=19,It=2*o2+1,t7=15,Qv=16,Ry0=7,Zv=256,Ut=16,Yt=17,Jt=18,Gv=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],yV=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],jy0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Qt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cy0=512,F5=Array((o2+2)*2);bU(F5);var l2=Array(iU*2);bU(l2);var r2=Array(Cy0);bU(r2);var t2=Array(vy0-By0+1);bU(t2);var zv=Array(wv);bU(zv);var hV=Array(iU);bU(hV);function Kv($,I,U,Y,J){this.static_tree=$,this.extra_bits=I,this.extra_base=U,this.elems=Y,this.max_length=J,this.has_stree=$&&$.length}var Kt,qt,Ht;function qv($,I){this.dyn_tree=$,this.max_code=0,this.stat_desc=I}function Gt($){return $<256?r2[$]:r2[256+($>>>7)]}function a2($,I){$.pending_buf[$.pending++]=I&255,$.pending_buf[$.pending++]=I>>>8&255}function o6($,I,U){if($.bi_valid>Qv-U)$.bi_buf|=I<<$.bi_valid&65535,a2($,$.bi_buf),$.bi_buf=I>>Qv-$.bi_valid,$.bi_valid+=U-Qv;else $.bi_buf|=I<<$.bi_valid&65535,$.bi_valid+=U}function v8($,I,U){o6($,U[I*2],U[I*2+1])}function Wt($,I){var U=0;do U|=$&1,$>>>=1,U<<=1;while(--I>0);return U>>>1}function _y0($){if($.bi_valid===16)a2($,$.bi_buf),$.bi_buf=0,$.bi_valid=0;else if($.bi_valid>=8)$.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8}function Sy0($,I){var{dyn_tree:U,max_code:Y}=I,J=I.stat_desc.static_tree,Q=I.stat_desc.has_stree,K=I.stat_desc.extra_bits,q=I.stat_desc.extra_base,H=I.stat_desc.max_length,G,W,w,Z,V,X,L=0;for(Z=0;Z<=t7;Z++)$.bl_count[Z]=0;U[$.heap[$.heap_max]*2+1]=0;for(G=$.heap_max+1;GH)Z=H,L++;if(U[W*2+1]=Z,W>Y)continue;if($.bl_count[Z]++,V=0,W>=q)V=K[W-q];if(X=U[W*2],$.opt_len+=X*(Z+V),Q)$.static_len+=X*(J[W*2+1]+V)}if(L===0)return;do{Z=H-1;while($.bl_count[Z]===0)Z--;$.bl_count[Z]--,$.bl_count[Z+1]+=2,$.bl_count[H]--,L-=2}while(L>0);for(Z=H;Z!==0;Z--){W=$.bl_count[Z];while(W!==0){if(w=$.heap[--G],w>Y)continue;if(U[w*2+1]!==Z)$.opt_len+=(Z-U[w*2+1])*U[w*2],U[w*2+1]=Z;W--}}}function wt($,I,U){var Y=Array(t7+1),J=0,Q,K;for(Q=1;Q<=t7;Q++)Y[Q]=J=J+U[Q-1]<<1;for(K=0;K<=I;K++){var q=$[K*2+1];if(q===0)continue;$[K*2]=Wt(Y[q]++,q)}}function gy0(){var $,I,U,Y,J,Q=Array(t7+1);U=0;for(Y=0;Y>=7;for(;Y8)a2($,$.bi_buf);else if($.bi_valid>0)$.pending_buf[$.pending++]=$.bi_buf;$.bi_buf=0,$.bi_valid=0}function yy0($,I,U,Y){if(Zt($),Y)a2($,U),a2($,~U);My0.arraySet($.pending_buf,$.window,I,U,$.pending),$.pending+=U}function rr($,I,U,Y){var J=I*2,Q=U*2;return $[J]<$[Q]||$[J]===$[Q]&&Y[I]<=Y[U]}function Hv($,I,U){var Y=$.heap[U],J=U<<1;while(J<=$.heap_len){if(J<$.heap_len&&rr(I,$.heap[J+1],$.heap[J],$.depth))J++;if(rr(I,Y,$.heap[J],$.depth))break;$.heap[U]=$.heap[J],U=J,J<<=1}$.heap[U]=Y}function tr($,I,U){var Y,J,Q=0,K,q;if($.last_lit!==0)do if(Y=$.pending_buf[$.d_buf+Q*2]<<8|$.pending_buf[$.d_buf+Q*2+1],J=$.pending_buf[$.l_buf+Q],Q++,Y===0)v8($,J,I);else{if(K=t2[J],v8($,K+s2+1,I),q=Gv[K],q!==0)J-=zv[K],o6($,J,q);if(Y--,K=Gt(Y),v8($,K,U),q=yV[K],q!==0)Y-=hV[K],o6($,Y,q)}while(Q<$.last_lit);v8($,Zv,I)}function Wv($,I){var U=I.dyn_tree,Y=I.stat_desc.static_tree,J=I.stat_desc.has_stree,Q=I.stat_desc.elems,K,q,H=-1,G;$.heap_len=0,$.heap_max=It;for(K=0;K>1;K>=1;K--)Hv($,U,K);G=Q;do K=$.heap[1],$.heap[1]=$.heap[$.heap_len--],Hv($,U,1),q=$.heap[1],$.heap[--$.heap_max]=K,$.heap[--$.heap_max]=q,U[G*2]=U[K*2]+U[q*2],$.depth[G]=($.depth[K]>=$.depth[q]?$.depth[K]:$.depth[q])+1,U[K*2+1]=U[q*2+1]=G,$.heap[1]=G++,Hv($,U,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],Sy0($,I),wt(U,H,$.bl_count)}function ar($,I,U){var Y,J=-1,Q,K=I[1],q=0,H=7,G=4;if(K===0)H=138,G=3;I[(U+1)*2+1]=65535;for(Y=0;Y<=U;Y++){if(Q=K,K=I[(Y+1)*2+1],++q=3;I--)if($.bl_tree[Qt[I]*2+1]!==0)break;return $.opt_len+=3*(I+1)+5+5+4,I}function uy0($,I,U,Y){var J;o6($,I-257,5),o6($,U-1,5),o6($,Y-4,4);for(J=0;J>>=1)if(I&1&&$.dyn_ltree[U*2]!==0)return lr;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return or;for(U=32;U0){if($.strm.data_type===Py0)$.strm.data_type=ky0($);if(Wv($,$.l_desc),Wv($,$.d_desc),K=hy0($),J=$.opt_len+3+7>>>3,Q=$.static_len+3+7>>>3,Q<=J)J=Q}else J=Q=U+5;if(U+4<=J&&I!==-1)zt($,I,U,Y);else if($.strategy===Ay0||Q===J)o6($,($t<<1)+(Y?1:0),3),tr($,F5,l2);else o6($,(Ey0<<1)+(Y?1:0),3),uy0($,$.l_desc.max_code+1,$.d_desc.max_code+1,K+1),tr($,$.dyn_ltree,$.dyn_dtree);if(Vt($),Y)Zt($)}function by0($,I,U){if($.pending_buf[$.d_buf+$.last_lit*2]=I>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=I&255,$.pending_buf[$.l_buf+$.last_lit]=U&255,$.last_lit++,I===0)$.dyn_ltree[U*2]++;else $.matches++,I--,$.dyn_ltree[(t2[U]+s2+1)*2]++,$.dyn_dtree[Gt(I)*2]++;return $.last_lit===$.lit_bufsize-1}ny0._tr_init=xy0;ny0._tr_stored_block=zt;ny0._tr_flush_block=iy0;ny0._tr_tally=by0;ny0._tr_align=fy0});var Xv=O((ZP1,Lt)=>{function oy0($,I,U,Y){var J=$&65535|0,Q=$>>>16&65535|0,K=0;while(U!==0){K=U>2000?2000:U,U-=K;do J=J+I[Y++]|0,Q=Q+J|0;while(--K);J%=65521,Q%=65521}return J|Q<<16|0}Lt.exports=oy0});var Lv=O((zP1,Dt)=>{function ry0(){var $,I=[];for(var U=0;U<256;U++){$=U;for(var Y=0;Y<8;Y++)$=$&1?3988292384^$>>>1:$>>>1;I[U]=$}return I}var ty0=ry0();function ay0($,I,U,Y){var J=ty0,Q=Y+U;$^=-1;for(var K=Y;K>>8^J[($^I[K])&255];return $^-1}Dt.exports=ay0});var uV=O((XP1,Ot)=>{Ot.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var vt=O((Ch0)=>{var S6=O5(),C$=Xt(),At=Xv(),B9=Lv(),sy0=uV(),$3=0,ey0=1,$h0=3,_9=4,Ft=5,j8=0,Nt=1,_$=-2,Ih0=-3,Dv=-5,Uh0=-1,Yh0=1,kV=2,Jh0=3,Qh0=4,Kh0=0,qh0=2,bV=8,Hh0=9,Gh0=15,Wh0=8,wh0=29,Vh0=256,Fv=Vh0+1+wh0,Zh0=30,zh0=19,Xh0=2*Fv+1,Lh0=15,w1=3,j9=258,Y8=j9+w1+1,Dh0=32,nV=42,Nv=69,xV=73,fV=91,iV=103,a7=113,$K=666,y4=1,IK=2,s7=3,cU=4,Oh0=3;function C9($,I){return $.msg=sy0[I],I}function Mt($){return($<<1)-($>4?9:0)}function R9($){var I=$.length;while(--I>=0)$[I]=0}function v9($){var I=$.state,U=I.pending;if(U>$.avail_out)U=$.avail_out;if(U===0)return;if(S6.arraySet($.output,I.pending_buf,I.pending_out,U,$.next_out),$.next_out+=U,I.pending_out+=U,$.total_out+=U,$.avail_out-=U,I.pending-=U,I.pending===0)I.pending_out=0}function I6($,I){C$._tr_flush_block($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,I),$.block_start=$.strstart,v9($.strm)}function A1($,I){$.pending_buf[$.pending++]=I}function e2($,I){$.pending_buf[$.pending++]=I>>>8&255,$.pending_buf[$.pending++]=I&255}function Fh0($,I,U,Y){var J=$.avail_in;if(J>Y)J=Y;if(J===0)return 0;if($.avail_in-=J,S6.arraySet(I,$.input,$.next_in,J,U),$.state.wrap===1)$.adler=At($.adler,I,J,U);else if($.state.wrap===2)$.adler=B9($.adler,I,J,U);return $.next_in+=J,$.total_in+=J,J}function Pt($,I){var{max_chain_length:U,strstart:Y}=$,J,Q,K=$.prev_length,q=$.nice_match,H=$.strstart>$.w_size-Y8?$.strstart-($.w_size-Y8):0,G=$.window,W=$.w_mask,w=$.prev,Z=$.strstart+j9,V=G[Y+K-1],X=G[Y+K];if($.prev_length>=$.good_match)U>>=2;if(q>$.lookahead)q=$.lookahead;do{if(J=I,G[J+K]!==X||G[J+K-1]!==V||G[J]!==G[Y]||G[++J]!==G[Y+1])continue;Y+=2,J++;do;while(G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&G[++Y]===G[++J]&&YK){if($.match_start=I,K=Q,Q>=q)break;V=G[Y+K-1],X=G[Y+K]}}while((I=w[I&W])>H&&--U!==0);if(K<=$.lookahead)return K;return $.lookahead}function e7($){var I=$.w_size,U,Y,J,Q,K;do{if(Q=$.window_size-$.lookahead-$.strstart,$.strstart>=I+(I-Y8)){S6.arraySet($.window,$.window,I,I,0),$.match_start-=I,$.strstart-=I,$.block_start-=I,Y=$.hash_size,U=Y;do J=$.head[--U],$.head[U]=J>=I?J-I:0;while(--Y);Y=I,U=Y;do J=$.prev[--U],$.prev[U]=J>=I?J-I:0;while(--Y);Q+=I}if($.strm.avail_in===0)break;if(Y=Fh0($.strm,$.window,$.strstart+$.lookahead,Q),$.lookahead+=Y,$.lookahead+$.insert>=w1){K=$.strstart-$.insert,$.ins_h=$.window[K],$.ins_h=($.ins_h<<$.hash_shift^$.window[K+1])&$.hash_mask;while($.insert)if($.ins_h=($.ins_h<<$.hash_shift^$.window[K+w1-1])&$.hash_mask,$.prev[K&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=K,K++,$.insert--,$.lookahead+$.insert$.pending_buf_size-5)U=$.pending_buf_size-5;for(;;){if($.lookahead<=1){if(e7($),$.lookahead===0&&I===$3)return y4;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var Y=$.block_start+U;if($.strstart===0||$.strstart>=Y){if($.lookahead=$.strstart-Y,$.strstart=Y,I6($,!1),$.strm.avail_out===0)return y4}if($.strstart-$.block_start>=$.w_size-Y8){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=0,I===_9){if(I6($,!0),$.strm.avail_out===0)return s7;return cU}if($.strstart>$.block_start){if(I6($,!1),$.strm.avail_out===0)return y4}return y4}function Ov($,I){var U,Y;for(;;){if($.lookahead=w1)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if(U!==0&&$.strstart-U<=$.w_size-Y8)$.match_length=Pt($,U);if($.match_length>=w1)if(Y=C$._tr_tally($,$.strstart-$.match_start,$.match_length-w1),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=w1){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else Y=C$._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(Y){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=$.strstart=w1)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if($.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=w1-1,U!==0&&$.prev_length<$.max_lazy_match&&$.strstart-U<=$.w_size-Y8){if($.match_length=Pt($,U),$.match_length<=5&&($.strategy===Yh0||$.match_length===w1&&$.strstart-$.match_start>4096))$.match_length=w1-1}if($.prev_length>=w1&&$.match_length<=$.prev_length){J=$.strstart+$.lookahead-w1,Y=C$._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-w1),$.lookahead-=$.prev_length-1,$.prev_length-=2;do if(++$.strstart<=J)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+w1-1])&$.hash_mask,U=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.prev_length!==0);if($.match_available=0,$.match_length=w1-1,$.strstart++,Y){if(I6($,!1),$.strm.avail_out===0)return y4}}else if($.match_available){if(Y=C$._tr_tally($,0,$.window[$.strstart-1]),Y)I6($,!1);if($.strstart++,$.lookahead--,$.strm.avail_out===0)return y4}else $.match_available=1,$.strstart++,$.lookahead--}if($.match_available)Y=C$._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0;if($.insert=$.strstart=w1&&$.strstart>0){if(J=$.strstart-1,Y=K[J],Y===K[++J]&&Y===K[++J]&&Y===K[++J]){Q=$.strstart+j9;do;while(Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&Y===K[++J]&&J$.lookahead)$.match_length=$.lookahead}}if($.match_length>=w1)U=C$._tr_tally($,1,$.match_length-w1),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0;else U=C$._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(U){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=0,I===_9){if(I6($,!0),$.strm.avail_out===0)return s7;return cU}if($.last_lit){if(I6($,!1),$.strm.avail_out===0)return y4}return IK}function Ah0($,I){var U;for(;;){if($.lookahead===0){if(e7($),$.lookahead===0){if(I===$3)return y4;break}}if($.match_length=0,U=C$._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,U){if(I6($,!1),$.strm.avail_out===0)return y4}}if($.insert=0,I===_9){if(I6($,!0),$.strm.avail_out===0)return s7;return cU}if($.last_lit){if(I6($,!1),$.strm.avail_out===0)return y4}return IK}function R8($,I,U,Y,J){this.good_length=$,this.max_lazy=I,this.nice_length=U,this.max_chain=Y,this.func=J}var pU;pU=[new R8(0,0,0,0,Nh0),new R8(4,4,8,4,Ov),new R8(4,5,16,8,Ov),new R8(4,6,32,32,Ov),new R8(4,4,16,16,nU),new R8(8,16,32,32,nU),new R8(8,16,128,128,nU),new R8(8,32,128,256,nU),new R8(32,128,258,1024,nU),new R8(32,258,258,4096,nU)];function Ph0($){$.window_size=2*$.w_size,R9($.head),$.max_lazy_match=pU[$.level].max_lazy,$.good_match=pU[$.level].good_length,$.nice_match=pU[$.level].nice_length,$.max_chain_length=pU[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=w1-1,$.match_available=0,$.ins_h=0}function Th0(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bV,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S6.Buf16(Xh0*2),this.dyn_dtree=new S6.Buf16((2*Zh0+1)*2),this.bl_tree=new S6.Buf16((2*zh0+1)*2),R9(this.dyn_ltree),R9(this.dyn_dtree),R9(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S6.Buf16(Lh0+1),this.heap=new S6.Buf16(2*Fv+1),R9(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S6.Buf16(2*Fv+1),R9(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Tt($){var I;if(!$||!$.state)return C9($,_$);if($.total_in=$.total_out=0,$.data_type=qh0,I=$.state,I.pending=0,I.pending_out=0,I.wrap<0)I.wrap=-I.wrap;return I.status=I.wrap?nV:a7,$.adler=I.wrap===2?0:1,I.last_flush=$3,C$._tr_init(I),j8}function Et($){var I=Tt($);if(I===j8)Ph0($.state);return I}function Eh0($,I){if(!$||!$.state)return _$;if($.state.wrap!==2)return _$;return $.state.gzhead=I,j8}function Bt($,I,U,Y,J,Q){if(!$)return _$;var K=1;if(I===Uh0)I=6;if(Y<0)K=0,Y=-Y;else if(Y>15)K=2,Y-=16;if(J<1||J>Hh0||U!==bV||Y<8||Y>15||I<0||I>9||Q<0||Q>Qh0)return C9($,_$);if(Y===8)Y=9;var q=new Th0;return $.state=q,q.strm=$,q.wrap=K,q.gzhead=null,q.w_bits=Y,q.w_size=1<Ft||I<0)return $?C9($,_$):_$;if(Y=$.state,!$.output||!$.input&&$.avail_in!==0||Y.status===$K&&I!==_9)return C9($,$.avail_out===0?Dv:_$);if(Y.strm=$,U=Y.last_flush,Y.last_flush=I,Y.status===nV)if(Y.wrap===2)if($.adler=0,A1(Y,31),A1(Y,139),A1(Y,8),!Y.gzhead)A1(Y,0),A1(Y,0),A1(Y,0),A1(Y,0),A1(Y,0),A1(Y,Y.level===9?2:Y.strategy>=kV||Y.level<2?4:0),A1(Y,Oh0),Y.status=a7;else{if(A1(Y,(Y.gzhead.text?1:0)+(Y.gzhead.hcrc?2:0)+(!Y.gzhead.extra?0:4)+(!Y.gzhead.name?0:8)+(!Y.gzhead.comment?0:16)),A1(Y,Y.gzhead.time&255),A1(Y,Y.gzhead.time>>8&255),A1(Y,Y.gzhead.time>>16&255),A1(Y,Y.gzhead.time>>24&255),A1(Y,Y.level===9?2:Y.strategy>=kV||Y.level<2?4:0),A1(Y,Y.gzhead.os&255),Y.gzhead.extra&&Y.gzhead.extra.length)A1(Y,Y.gzhead.extra.length&255),A1(Y,Y.gzhead.extra.length>>8&255);if(Y.gzhead.hcrc)$.adler=B9($.adler,Y.pending_buf,Y.pending,0);Y.gzindex=0,Y.status=Nv}else{var K=bV+(Y.w_bits-8<<4)<<8,q=-1;if(Y.strategy>=kV||Y.level<2)q=0;else if(Y.level<6)q=1;else if(Y.level===6)q=2;else q=3;if(K|=q<<6,Y.strstart!==0)K|=Dh0;if(K+=31-K%31,Y.status=a7,e2(Y,K),Y.strstart!==0)e2(Y,$.adler>>>16),e2(Y,$.adler&65535);$.adler=1}if(Y.status===Nv)if(Y.gzhead.extra){J=Y.pending;while(Y.gzindex<(Y.gzhead.extra.length&65535)){if(Y.pending===Y.pending_buf_size){if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(v9($),J=Y.pending,Y.pending===Y.pending_buf_size)break}A1(Y,Y.gzhead.extra[Y.gzindex]&255),Y.gzindex++}if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(Y.gzindex===Y.gzhead.extra.length)Y.gzindex=0,Y.status=xV}else Y.status=xV;if(Y.status===xV)if(Y.gzhead.name){J=Y.pending;do{if(Y.pending===Y.pending_buf_size){if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(v9($),J=Y.pending,Y.pending===Y.pending_buf_size){Q=1;break}}if(Y.gzindexJ)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(Q===0)Y.gzindex=0,Y.status=fV}else Y.status=fV;if(Y.status===fV)if(Y.gzhead.comment){J=Y.pending;do{if(Y.pending===Y.pending_buf_size){if(Y.gzhead.hcrc&&Y.pending>J)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(v9($),J=Y.pending,Y.pending===Y.pending_buf_size){Q=1;break}}if(Y.gzindexJ)$.adler=B9($.adler,Y.pending_buf,Y.pending-J,J);if(Q===0)Y.status=iV}else Y.status=iV;if(Y.status===iV)if(Y.gzhead.hcrc){if(Y.pending+2>Y.pending_buf_size)v9($);if(Y.pending+2<=Y.pending_buf_size)A1(Y,$.adler&255),A1(Y,$.adler>>8&255),$.adler=0,Y.status=a7}else Y.status=a7;if(Y.pending!==0){if(v9($),$.avail_out===0)return Y.last_flush=-1,j8}else if($.avail_in===0&&Mt(I)<=Mt(U)&&I!==_9)return C9($,Dv);if(Y.status===$K&&$.avail_in!==0)return C9($,Dv);if($.avail_in!==0||Y.lookahead!==0||I!==$3&&Y.status!==$K){var H=Y.strategy===kV?Ah0(Y,I):Y.strategy===Jh0?Mh0(Y,I):pU[Y.level].func(Y,I);if(H===s7||H===cU)Y.status=$K;if(H===y4||H===s7){if($.avail_out===0)Y.last_flush=-1;return j8}if(H===IK){if(I===ey0)C$._tr_align(Y);else if(I!==Ft){if(C$._tr_stored_block(Y,0,0,!1),I===$h0){if(R9(Y.head),Y.lookahead===0)Y.strstart=0,Y.block_start=0,Y.insert=0}}if(v9($),$.avail_out===0)return Y.last_flush=-1,j8}}if(I!==_9)return j8;if(Y.wrap<=0)return Nt;if(Y.wrap===2)A1(Y,$.adler&255),A1(Y,$.adler>>8&255),A1(Y,$.adler>>16&255),A1(Y,$.adler>>24&255),A1(Y,$.total_in&255),A1(Y,$.total_in>>8&255),A1(Y,$.total_in>>16&255),A1(Y,$.total_in>>24&255);else e2(Y,$.adler>>>16),e2(Y,$.adler&65535);if(v9($),Y.wrap>0)Y.wrap=-Y.wrap;return Y.pending!==0?j8:Nt}function Rh0($){var I;if(!$||!$.state)return _$;if(I=$.state.status,I!==nV&&I!==Nv&&I!==xV&&I!==fV&&I!==iV&&I!==a7&&I!==$K)return C9($,_$);return $.state=null,I===a7?C9($,Ih0):j8}function jh0($,I){var U=I.length,Y,J,Q,K,q,H,G,W;if(!$||!$.state)return _$;if(Y=$.state,K=Y.wrap,K===2||K===1&&Y.status!==nV||Y.lookahead)return _$;if(K===1)$.adler=At($.adler,I,U,0);if(Y.wrap=0,U>=Y.w_size){if(K===0)R9(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0;W=new S6.Buf8(Y.w_size),S6.arraySet(W,I,U-Y.w_size,Y.w_size,0),I=W,U=Y.w_size}q=$.avail_in,H=$.next_in,G=$.input,$.avail_in=U,$.next_in=0,$.input=I,e7(Y);while(Y.lookahead>=w1){J=Y.strstart,Q=Y.lookahead-(w1-1);do Y.ins_h=(Y.ins_h<{var pV=O5(),Rt=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch($){Rt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch($){jt=!1}var UK=new pV.Buf8(256);for(C8=0;C8<256;C8++)UK[C8]=C8>=252?6:C8>=248?5:C8>=240?4:C8>=224?3:C8>=192?2:1;var C8;UK[254]=UK[254]=1;ih0.string2buf=function($){var I,U,Y,J,Q,K=$.length,q=0;for(J=0;J>>6,I[Q++]=128|U&63;else if(U<65536)I[Q++]=224|U>>>12,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63;else I[Q++]=240|U>>>18,I[Q++]=128|U>>>12&63,I[Q++]=128|U>>>6&63,I[Q++]=128|U&63}return I};function Ct($,I){if(I<65534){if($.subarray&&jt||!$.subarray&&Rt)return String.fromCharCode.apply(null,pV.shrinkBuf($,I))}var U="";for(var Y=0;Y4){q[Y++]=65533,U+=Q-1;continue}J&=Q===2?31:Q===3?15:7;while(Q>1&&U1){q[Y++]=65533;continue}if(J<65536)q[Y++]=J;else J-=65536,q[Y++]=55296|J>>10&1023,q[Y++]=56320|J&1023}return Ct(q,Y)};ih0.utf8border=function($,I){var U;if(I=I||$.length,I>$.length)I=$.length;U=I-1;while(U>=0&&($[U]&192)===128)U--;if(U<0)return I;if(U===0)return I;return U+UK[$[U]]>I?U:I}});var Av=O((OP1,_t)=>{function mh0(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}_t.exports=mh0});var ht=O(($u0)=>{var YK=vt(),JK=O5(),Tv=Mv(),Ev=uV(),lh0=Av(),yt=Object.prototype.toString,oh0=0,Pv=4,dU=0,St=1,gt=2,rh0=-1,th0=0,ah0=8;function I3($){if(!(this instanceof I3))return new I3($);this.options=JK.assign({level:rh0,method:ah0,chunkSize:16384,windowBits:15,memLevel:8,strategy:th0,to:""},$||{});var I=this.options;if(I.raw&&I.windowBits>0)I.windowBits=-I.windowBits;else if(I.gzip&&I.windowBits>0&&I.windowBits<16)I.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lh0,this.strm.avail_out=0;var U=YK.deflateInit2(this.strm,I.level,I.method,I.windowBits,I.memLevel,I.strategy);if(U!==dU)throw Error(Ev[U]);if(I.header)YK.deflateSetHeader(this.strm,I.header);if(I.dictionary){var Y;if(typeof I.dictionary==="string")Y=Tv.string2buf(I.dictionary);else if(yt.call(I.dictionary)==="[object ArrayBuffer]")Y=new Uint8Array(I.dictionary);else Y=I.dictionary;if(U=YK.deflateSetDictionary(this.strm,Y),U!==dU)throw Error(Ev[U]);this._dict_set=!0}}I3.prototype.push=function($,I){var U=this.strm,Y=this.options.chunkSize,J,Q;if(this.ended)return!1;if(Q=I===~~I?I:I===!0?Pv:oh0,typeof $==="string")U.input=Tv.string2buf($);else if(yt.call($)==="[object ArrayBuffer]")U.input=new Uint8Array($);else U.input=$;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new JK.Buf8(Y),U.next_out=0,U.avail_out=Y;if(J=YK.deflate(U,Q),J!==St&&J!==dU)return this.onEnd(J),this.ended=!0,!1;if(U.avail_out===0||U.avail_in===0&&(Q===Pv||Q===gt))if(this.options.to==="string")this.onData(Tv.buf2binstring(JK.shrinkBuf(U.output,U.next_out)));else this.onData(JK.shrinkBuf(U.output,U.next_out))}while((U.avail_in>0||U.avail_out===0)&&J!==St);if(Q===Pv)return J=YK.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===dU;if(Q===gt)return this.onEnd(dU),U.avail_out=0,!0;return!0};I3.prototype.onData=function($){this.chunks.push($)};I3.prototype.onEnd=function($){if($===dU)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=JK.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function Bv($,I){var U=new I3(I);if(U.push($,!0),U.err)throw U.msg||Ev[U.err];return U.result}function sh0($,I){return I=I||{},I.raw=!0,Bv($,I)}function eh0($,I){return I=I||{},I.gzip=!0,Bv($,I)}$u0.Deflate=I3;$u0.deflate=Bv;$u0.deflateRaw=sh0;$u0.gzip=eh0});var kt=O((NP1,ut)=>{var cV=30,Qu0=12;ut.exports=function(I,U){var Y,J,Q,K,q,H,G,W,w,Z,V,X,L,D,F,P,T,A,R,x,y,f,j,p,n;Y=I.state,J=I.next_in,p=I.input,Q=J+(I.avail_in-5),K=I.next_out,n=I.output,q=K-(U-I.avail_out),H=K+(I.avail_out-257),G=Y.dmax,W=Y.wsize,w=Y.whave,Z=Y.wnext,V=Y.window,X=Y.hold,L=Y.bits,D=Y.lencode,F=Y.distcode,P=(1<>>24,X>>>=R,L-=R,R=A>>>16&255,R===0)n[K++]=A&65535;else if(R&16){if(x=A&65535,R&=15,R){if(L>>=R,L-=R}if(L<15)X+=p[J++]<>>24,X>>>=R,L-=R,R=A>>>16&255,R&16){if(y=A&65535,R&=15,LG){I.msg="invalid distance too far back",Y.mode=cV;break $}if(X>>>=R,L-=R,R=K-q,y>R){if(R=y-R,R>w){if(Y.sane){I.msg="invalid distance too far back",Y.mode=cV;break $}}if(f=0,j=V,Z===0){if(f+=W-R,R2)n[K++]=j[f++],n[K++]=j[f++],n[K++]=j[f++],x-=3;if(x){if(n[K++]=j[f++],x>1)n[K++]=j[f++]}}else{f=K-y;do n[K++]=n[f++],n[K++]=n[f++],n[K++]=n[f++],x-=3;while(x>2);if(x){if(n[K++]=n[f++],x>1)n[K++]=n[f++]}}}else if((R&64)===0){A=F[(A&65535)+(X&(1<>3,J-=x,L-=x<<3,X&=(1<{var xt=O5(),mU=15,ft=852,it=592,bt=0,vv=1,nt=2,Ku0=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],qu0=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Hu0=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Gu0=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];pt.exports=function(I,U,Y,J,Q,K,q,H){var G=H.bits,W=0,w=0,Z=0,V=0,X=0,L=0,D=0,F=0,P=0,T=0,A,R,x,y,f,j=null,p=0,n,S=new xt.Buf16(mU+1),i=new xt.Buf16(mU+1),b=null,U0=0,B,k,c;for(W=0;W<=mU;W++)S[W]=0;for(w=0;w=1;V--)if(S[V]!==0)break;if(X>V)X=V;if(V===0)return Q[K++]=20971520,Q[K++]=20971520,H.bits=1,0;for(Z=1;Z0&&(I===bt||V!==1))return-1;i[1]=0;for(W=1;Wft||I===nt&&P>it)return 1;for(;;){if(B=W-D,q[w]n)k=b[U0+q[w]],c=j[p+q[w]];else k=96,c=0;A=1<>D)+R]=B<<24|k<<16|c|0;while(R!==0);A=1<>=1;if(A!==0)T&=A-1,T+=A;else T=0;if(w++,--S[W]===0){if(W===V)break;W=U[Y+q[w]]}if(W>X&&(T&y)!==x){if(D===0)D=X;f+=Z,L=W-D,F=1<ft||I===nt&&P>it)return 1;x=T&y,Q[x]=X<<24|L<<16|f-K|0}}if(T!==0)Q[f+T]=W-D<<24|4194304|0;return H.bits=X,0}});var Ea=O((Ru0)=>{var w$=O5(),gv=Xv(),_8=Lv(),Wu0=kt(),QK=ct(),wu0=0,La=1,Da=2,dt=4,Vu0=5,dV=6,U3=0,Zu0=1,zu0=2,S$=-2,Oa=-3,yv=-4,Xu0=-5,mt=8,Fa=1,lt=2,ot=3,rt=4,tt=5,at=6,st=7,et=8,$a=9,Ia=10,oV=11,N5=12,Rv=13,Ua=14,jv=15,Ya=16,Ja=17,Qa=18,Ka=19,mV=20,lV=21,qa=22,Ha=23,Ga=24,Wa=25,wa=26,Cv=27,Va=28,Za=29,q4=30,hv=31,Lu0=32,Du0=852,Ou0=592,Fu0=15,Nu0=Fu0;function za($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function Mu0(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new w$.Buf16(320),this.work=new w$.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Na($){var I;if(!$||!$.state)return S$;if(I=$.state,$.total_in=$.total_out=I.total=0,$.msg="",I.wrap)$.adler=I.wrap&1;return I.mode=Fa,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new w$.Buf32(Du0),I.distcode=I.distdyn=new w$.Buf32(Ou0),I.sane=1,I.back=-1,U3}function Ma($){var I;if(!$||!$.state)return S$;return I=$.state,I.wsize=0,I.whave=0,I.wnext=0,Na($)}function Aa($,I){var U,Y;if(!$||!$.state)return S$;if(Y=$.state,I<0)U=0,I=-I;else if(U=(I>>4)+1,I<48)I&=15;if(I&&(I<8||I>15))return S$;if(Y.window!==null&&Y.wbits!==I)Y.window=null;return Y.wrap=U,Y.wbits=I,Ma($)}function Pa($,I){var U,Y;if(!$)return S$;if(Y=new Mu0,$.state=Y,Y.window=null,U=Aa($,I),U!==U3)$.state=null;return U}function Au0($){return Pa($,Nu0)}var Xa=!0,_v,Sv;function Pu0($){if(Xa){var I;_v=new w$.Buf32(512),Sv=new w$.Buf32(32),I=0;while(I<144)$.lens[I++]=8;while(I<256)$.lens[I++]=9;while(I<280)$.lens[I++]=7;while(I<288)$.lens[I++]=8;QK(La,$.lens,0,288,_v,0,$.work,{bits:9}),I=0;while(I<32)$.lens[I++]=5;QK(Da,$.lens,0,32,Sv,0,$.work,{bits:5}),Xa=!1}$.lencode=_v,$.lenbits=9,$.distcode=Sv,$.distbits=5}function Ta($,I,U,Y){var J,Q=$.state;if(Q.window===null)Q.wsize=1<=Q.wsize)w$.arraySet(Q.window,I,U-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize;else{if(J=Q.wsize-Q.wnext,J>Y)J=Y;if(w$.arraySet(Q.window,I,U-Y,J,Q.wnext),Y-=J,Y)w$.arraySet(Q.window,I,U-Y,Y,0),Q.wnext=Y,Q.whave=Q.wsize;else{if(Q.wnext+=J,Q.wnext===Q.wsize)Q.wnext=0;if(Q.whave>>8&255,U.check=_8(U.check,j,2,0),G=0,W=0,U.mode=lt;break}if(U.flags=0,U.head)U.head.done=!1;if(!(U.wrap&1)||(((G&255)<<8)+(G>>8))%31){$.msg="incorrect header check",U.mode=q4;break}if((G&15)!==mt){$.msg="unknown compression method",U.mode=q4;break}if(G>>>=4,W-=4,y=(G&15)+8,U.wbits===0)U.wbits=y;else if(y>U.wbits){$.msg="invalid window size",U.mode=q4;break}U.dmax=1<>8&1;if(U.flags&512)j[0]=G&255,j[1]=G>>>8&255,U.check=_8(U.check,j,2,0);G=0,W=0,U.mode=ot;case ot:while(W<32){if(q===0)break $;q--,G+=Y[Q++]<>>8&255,j[2]=G>>>16&255,j[3]=G>>>24&255,U.check=_8(U.check,j,4,0);G=0,W=0,U.mode=rt;case rt:while(W<16){if(q===0)break $;q--,G+=Y[Q++]<>8;if(U.flags&512)j[0]=G&255,j[1]=G>>>8&255,U.check=_8(U.check,j,2,0);G=0,W=0,U.mode=tt;case tt:if(U.flags&1024){while(W<16){if(q===0)break $;q--,G+=Y[Q++]<>>8&255,U.check=_8(U.check,j,2,0);G=0,W=0}else if(U.head)U.head.extra=null;U.mode=at;case at:if(U.flags&1024){if(V=U.length,V>q)V=q;if(V){if(U.head){if(y=U.head.extra_len-U.length,!U.head.extra)U.head.extra=Array(U.head.extra_len);w$.arraySet(U.head.extra,Y,Q,V,y)}if(U.flags&512)U.check=_8(U.check,Y,V,Q);q-=V,Q+=V,U.length-=V}if(U.length)break $}U.length=0,U.mode=st;case st:if(U.flags&2048){if(q===0)break $;V=0;do if(y=Y[Q+V++],U.head&&y&&U.length<65536)U.head.name+=String.fromCharCode(y);while(y&&V>9&1,U.head.done=!0;$.adler=U.check=0,U.mode=N5;break;case Ia:while(W<32){if(q===0)break $;q--,G+=Y[Q++]<>>=W&7,W-=W&7,U.mode=Cv;break}while(W<3){if(q===0)break $;q--,G+=Y[Q++]<>>=1,W-=1,G&3){case 0:U.mode=Ua;break;case 1:if(Pu0(U),U.mode=mV,I===dV){G>>>=2,W-=2;break $}break;case 2:U.mode=Ja;break;case 3:$.msg="invalid block type",U.mode=q4}G>>>=2,W-=2;break;case Ua:G>>>=W&7,W-=W&7;while(W<32){if(q===0)break $;q--,G+=Y[Q++]<>>16^65535)){$.msg="invalid stored block lengths",U.mode=q4;break}if(U.length=G&65535,G=0,W=0,U.mode=jv,I===dV)break $;case jv:U.mode=Ya;case Ya:if(V=U.length,V){if(V>q)V=q;if(V>H)V=H;if(V===0)break $;w$.arraySet(J,Y,Q,V,K),q-=V,Q+=V,H-=V,K+=V,U.length-=V;break}U.mode=N5;break;case Ja:while(W<14){if(q===0)break $;q--,G+=Y[Q++]<>>=5,W-=5,U.ndist=(G&31)+1,G>>>=5,W-=5,U.ncode=(G&15)+4,G>>>=4,W-=4,U.nlen>286||U.ndist>30){$.msg="too many length or distance symbols",U.mode=q4;break}U.have=0,U.mode=Qa;case Qa:while(U.have>>=3,W-=3}while(U.have<19)U.lens[S[U.have++]]=0;if(U.lencode=U.lendyn,U.lenbits=7,p={bits:U.lenbits},f=QK(wu0,U.lens,0,19,U.lencode,0,U.work,p),U.lenbits=p.bits,f){$.msg="invalid code lengths set",U.mode=q4;break}U.have=0,U.mode=Ka;case Ka:while(U.have>>24,P=D>>>16&255,T=D&65535,F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>>=F,W-=F,U.lens[U.have++]=T;else{if(T===16){n=F+2;while(W>>=F,W-=F,U.have===0){$.msg="invalid bit length repeat",U.mode=q4;break}y=U.lens[U.have-1],V=3+(G&3),G>>>=2,W-=2}else if(T===17){n=F+3;while(W>>=F,W-=F,y=0,V=3+(G&7),G>>>=3,W-=3}else{n=F+7;while(W>>=F,W-=F,y=0,V=11+(G&127),G>>>=7,W-=7}if(U.have+V>U.nlen+U.ndist){$.msg="invalid bit length repeat",U.mode=q4;break}while(V--)U.lens[U.have++]=y}}if(U.mode===q4)break;if(U.lens[256]===0){$.msg="invalid code -- missing end-of-block",U.mode=q4;break}if(U.lenbits=9,p={bits:U.lenbits},f=QK(La,U.lens,0,U.nlen,U.lencode,0,U.work,p),U.lenbits=p.bits,f){$.msg="invalid literal/lengths set",U.mode=q4;break}if(U.distbits=6,U.distcode=U.distdyn,p={bits:U.distbits},f=QK(Da,U.lens,U.nlen,U.ndist,U.distcode,0,U.work,p),U.distbits=p.bits,f){$.msg="invalid distances set",U.mode=q4;break}if(U.mode=mV,I===dV)break $;case mV:U.mode=lV;case lV:if(q>=6&&H>=258){if($.next_out=K,$.avail_out=H,$.next_in=Q,$.avail_in=q,U.hold=G,U.bits=W,Wu0($,Z),K=$.next_out,J=$.output,H=$.avail_out,Q=$.next_in,Y=$.input,q=$.avail_in,G=U.hold,W=U.bits,U.mode===N5)U.back=-1;break}U.back=0;for(;;){if(D=U.lencode[G&(1<>>24,P=D>>>16&255,T=D&65535,F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>A)],F=D>>>24,P=D>>>16&255,T=D&65535,A+F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>>=A,W-=A,U.back+=A}if(G>>>=F,W-=F,U.back+=F,U.length=T,P===0){U.mode=wa;break}if(P&32){U.back=-1,U.mode=N5;break}if(P&64){$.msg="invalid literal/length code",U.mode=q4;break}U.extra=P&15,U.mode=qa;case qa:if(U.extra){n=U.extra;while(W>>=U.extra,W-=U.extra,U.back+=U.extra}U.was=U.length,U.mode=Ha;case Ha:for(;;){if(D=U.distcode[G&(1<>>24,P=D>>>16&255,T=D&65535,F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>A)],F=D>>>24,P=D>>>16&255,T=D&65535,A+F<=W)break;if(q===0)break $;q--,G+=Y[Q++]<>>=A,W-=A,U.back+=A}if(G>>>=F,W-=F,U.back+=F,P&64){$.msg="invalid distance code",U.mode=q4;break}U.offset=T,U.extra=P&15,U.mode=Ga;case Ga:if(U.extra){n=U.extra;while(W>>=U.extra,W-=U.extra,U.back+=U.extra}if(U.offset>U.dmax){$.msg="invalid distance too far back",U.mode=q4;break}U.mode=Wa;case Wa:if(H===0)break $;if(V=Z-H,U.offset>V){if(V=U.offset-V,V>U.whave){if(U.sane){$.msg="invalid distance too far back",U.mode=q4;break}}if(V>U.wnext)V-=U.wnext,X=U.wsize-V;else X=U.wnext-V;if(V>U.length)V=U.length;L=U.window}else L=J,X=K-U.offset,V=U.length;if(V>H)V=H;H-=V,U.length-=V;do J[K++]=L[X++];while(--V);if(U.length===0)U.mode=lV;break;case wa:if(H===0)break $;J[K++]=U.length,H--,U.mode=lV;break;case Cv:if(U.wrap){while(W<32){if(q===0)break $;q--,G|=Y[Q++]<{Ba.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var Ra=O((TP1,va)=>{function fu0(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}va.exports=fu0});var Ca=O((pu0)=>{var lU=Ea(),KK=O5(),rV=Mv(),P4=uv(),kv=uV(),iu0=Av(),bu0=Ra(),ja=Object.prototype.toString;function Y3($){if(!(this instanceof Y3))return new Y3($);this.options=KK.assign({chunkSize:16384,windowBits:0,to:""},$||{});var I=this.options;if(I.raw&&I.windowBits>=0&&I.windowBits<16){if(I.windowBits=-I.windowBits,I.windowBits===0)I.windowBits=-15}if(I.windowBits>=0&&I.windowBits<16&&!($&&$.windowBits))I.windowBits+=32;if(I.windowBits>15&&I.windowBits<48){if((I.windowBits&15)===0)I.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iu0,this.strm.avail_out=0;var U=lU.inflateInit2(this.strm,I.windowBits);if(U!==P4.Z_OK)throw Error(kv[U]);if(this.header=new bu0,lU.inflateGetHeader(this.strm,this.header),I.dictionary){if(typeof I.dictionary==="string")I.dictionary=rV.string2buf(I.dictionary);else if(ja.call(I.dictionary)==="[object ArrayBuffer]")I.dictionary=new Uint8Array(I.dictionary);if(I.raw){if(U=lU.inflateSetDictionary(this.strm,I.dictionary),U!==P4.Z_OK)throw Error(kv[U])}}}Y3.prototype.push=function($,I){var U=this.strm,Y=this.options.chunkSize,J=this.options.dictionary,Q,K,q,H,G,W=!1;if(this.ended)return!1;if(K=I===~~I?I:I===!0?P4.Z_FINISH:P4.Z_NO_FLUSH,typeof $==="string")U.input=rV.binstring2buf($);else if(ja.call($)==="[object ArrayBuffer]")U.input=new Uint8Array($);else U.input=$;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new KK.Buf8(Y),U.next_out=0,U.avail_out=Y;if(Q=lU.inflate(U,P4.Z_NO_FLUSH),Q===P4.Z_NEED_DICT&&J)Q=lU.inflateSetDictionary(this.strm,J);if(Q===P4.Z_BUF_ERROR&&W===!0)Q=P4.Z_OK,W=!1;if(Q!==P4.Z_STREAM_END&&Q!==P4.Z_OK)return this.onEnd(Q),this.ended=!0,!1;if(U.next_out){if(U.avail_out===0||Q===P4.Z_STREAM_END||U.avail_in===0&&(K===P4.Z_FINISH||K===P4.Z_SYNC_FLUSH))if(this.options.to==="string"){if(q=rV.utf8border(U.output,U.next_out),H=U.next_out-q,G=rV.buf2string(U.output,q),U.next_out=H,U.avail_out=Y-H,H)KK.arraySet(U.output,U.output,q,H,0);this.onData(G)}else this.onData(KK.shrinkBuf(U.output,U.next_out))}if(U.avail_in===0&&U.avail_out===0)W=!0}while((U.avail_in>0||U.avail_out===0)&&Q!==P4.Z_STREAM_END);if(Q===P4.Z_STREAM_END)K=P4.Z_FINISH;if(K===P4.Z_FINISH)return Q=lU.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===P4.Z_OK;if(K===P4.Z_SYNC_FLUSH)return this.onEnd(P4.Z_OK),U.avail_out=0,!0;return!0};Y3.prototype.onData=function($){this.chunks.push($)};Y3.prototype.onEnd=function($){if($===P4.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=KK.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function xv($,I){var U=new Y3(I);if(U.push($,!0),U.err)throw U.msg||kv[U.err];return U.result}function nu0($,I){return I=I||{},I.raw=!0,xv($,I)}pu0.Inflate=Y3;pu0.inflate=xv;pu0.inflateRaw=nu0;pu0.ungzip=xv});var ga=O((BP1,Sa)=>{var ou0=O5().assign,ru0=ht(),tu0=Ca(),au0=uv(),_a={};ou0(_a,ru0,tu0,au0);Sa.exports=_a});var ha=O((Ik0)=>{var su0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",eu0=ga(),ya=w4(),tV=W$(),$k0=su0?"uint8array":"array";Ik0.magic="\b\x00";function J3($,I){tV.call(this,"FlateWorker/"+$),this._pako=null,this._pakoAction=$,this._pakoOptions=I,this.meta={}}ya.inherits(J3,tV);J3.prototype.processChunk=function($){if(this.meta=$.meta,this._pako===null)this._createPako();this._pako.push(ya.transformTo($k0,$.data),!1)};J3.prototype.flush=function(){if(tV.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};J3.prototype.cleanUp=function(){tV.prototype.cleanUp.call(this),this._pako=null};J3.prototype._createPako=function(){this._pako=new eu0[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var $=this;this._pako.onData=function(I){$.push({data:I,meta:$.meta})}};Ik0.compressWorker=function($){return new J3("Deflate",$)};Ik0.uncompressWorker=function(){return new J3("Inflate",{})}});var fv=O((Qk0)=>{var ua=W$();Qk0.STORE={magic:"\x00\x00",compressWorker:function(){return new ua("STORE compression")},uncompressWorker:function(){return new ua("STORE decompression")}};Qk0.DEFLATE=ha()});var iv=O((Hk0)=>{Hk0.LOCAL_FILE_HEADER="PK\x03\x04";Hk0.CENTRAL_FILE_HEADER="PK\x01\x02";Hk0.CENTRAL_DIRECTORY_END="PK\x05\x06";Hk0.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";Hk0.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";Hk0.DATA_DESCRIPTOR="PK\x07\b"});var ia=O((CP1,fa)=>{var oU=w4(),rU=W$(),bv=xU(),ka=SV(),aV=iv(),o1=function($,I){var U="",Y;for(Y=0;Y>>8;return U},Xk0=function($,I){var U=$;if(!$)U=I?16893:33204;return(U&65535)<<16},Lk0=function($){return($||0)&63},xa=function($,I,U,Y,J,Q){var{file:K,compression:q}=$,H=Q!==bv.utf8encode,G=oU.transformTo("string",Q(K.name)),W=oU.transformTo("string",bv.utf8encode(K.name)),w=K.comment,Z=oU.transformTo("string",Q(w)),V=oU.transformTo("string",bv.utf8encode(w)),X=W.length!==K.name.length,L=V.length!==w.length,D,F,P="",T="",A="",R=K.dir,x=K.date,y={crc32:0,compressedSize:0,uncompressedSize:0};if(!I||U)y.crc32=$.crc32,y.compressedSize=$.compressedSize,y.uncompressedSize=$.uncompressedSize;var f=0;if(I)f|=8;if(!H&&(X||L))f|=2048;var j=0,p=0;if(R)j|=16;if(J==="UNIX")p=798,j|=Xk0(K.unixPermissions,R);else p=20,j|=Lk0(K.dosPermissions,R);if(D=x.getUTCHours(),D=D<<6,D=D|x.getUTCMinutes(),D=D<<5,D=D|x.getUTCSeconds()/2,F=x.getUTCFullYear()-1980,F=F<<4,F=F|x.getUTCMonth()+1,F=F<<5,F=F|x.getUTCDate(),X)T=o1(1,1)+o1(ka(G),4)+W,P+="up"+o1(T.length,2)+T;if(L)A=o1(1,1)+o1(ka(Z),4)+V,P+="uc"+o1(A.length,2)+A;var n="";n+=` +\x00`,n+=o1(f,2),n+=q.magic,n+=o1(D,2),n+=o1(F,2),n+=o1(y.crc32,4),n+=o1(y.compressedSize,4),n+=o1(y.uncompressedSize,4),n+=o1(G.length,2),n+=o1(P.length,2);var S=aV.LOCAL_FILE_HEADER+n+G+P,i=aV.CENTRAL_FILE_HEADER+o1(p,2)+n+o1(Z.length,2)+"\x00\x00\x00\x00"+o1(j,4)+o1(Y,4)+G+P+Z;return{fileRecord:S,dirRecord:i}},Dk0=function($,I,U,Y,J){var Q="",K=oU.transformTo("string",J(Y));return Q=aV.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+o1($,2)+o1($,2)+o1(I,4)+o1(U,4)+o1(K.length,2)+K,Q},Ok0=function($){var I="";return I=aV.DATA_DESCRIPTOR+o1($.crc32,4)+o1($.compressedSize,4)+o1($.uncompressedSize,4),I};function J8($,I,U,Y){rU.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=U,this.encodeFileName=Y,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}oU.inherits(J8,rU);J8.prototype.push=function($){var I=$.meta.percent||0,U=this.entriesCount,Y=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,rU.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:U?(I+100*(U-Y-1))/U:100}})};J8.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var I=this.streamFiles&&!$.file.dir;if(I){var U=xa($,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J8.prototype.closedSource=function($){this.accumulate=!1;var I=this.streamFiles&&!$.file.dir,U=xa($,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),I)this.push({data:Ok0($),meta:{percent:100}});else{this.push({data:U.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J8.prototype.flush=function(){var $=this.bytesWritten;for(var I=0;I{var Fk0=fv(),Nk0=ia(),Mk0=function($,I){var U=$||I,Y=Fk0[U];if(!Y)throw Error(U+" is not a valid compression method !");return Y};Ak0.generateWorker=function($,I,U){var Y=new Nk0(I.streamFiles,U,I.platform,I.encodeFileName),J=0;try{$.forEach(function(Q,K){J++;var q=Mk0(K.options.compression,I.compression),H=K.options.compressionOptions||I.compressionOptions||{},G=K.dir,W=K.date;K._compressWorker(q,H).withStreamInfo("file",{name:Q,dir:G,date:W,comment:K.comment||"",unixPermissions:K.unixPermissions,dosPermissions:K.dosPermissions}).pipe(Y)}),Y.entriesCount=J}catch(Q){Y.error(Q)}return Y}});var pa=O((SP1,na)=>{var Tk0=w4(),sV=W$();function qK($,I){sV.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(I)}Tk0.inherits(qK,sV);qK.prototype._bindStream=function($){var I=this;this._stream=$,$.pause(),$.on("data",function(U){I.push({data:U,meta:{percent:0}})}).on("error",function(U){if(I.isPaused)this.generatedError=U;else I.error(U)}).on("end",function(){if(I.isPaused)I._upstreamEnded=!0;else I.end()})};qK.prototype.pause=function(){if(!sV.prototype.pause.call(this))return!1;return this._stream.pause(),!0};qK.prototype.resume=function(){if(!sV.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};na.exports=qK});var ea=O((gP1,sa)=>{var Ek0=xU(),HK=w4(),la=W$(),Bk0=dB(),oa=mB(),ca=gV(),vk0=dr(),Rk0=ba(),da=i2(),jk0=pa(),ra=function($,I,U){var Y=HK.getTypeOf(I),J,Q=HK.extend(U||{},oa);if(Q.date=Q.date||new Date,Q.compression!==null)Q.compression=Q.compression.toUpperCase();if(typeof Q.unixPermissions==="string")Q.unixPermissions=parseInt(Q.unixPermissions,8);if(Q.unixPermissions&&Q.unixPermissions&16384)Q.dir=!0;if(Q.dosPermissions&&Q.dosPermissions&16)Q.dir=!0;if(Q.dir)$=ta($);if(Q.createFolders&&(J=Ck0($)))aa.call(this,J,!0);var K=Y==="string"&&Q.binary===!1&&Q.base64===!1;if(!U||typeof U.binary>"u")Q.binary=!K;var q=I instanceof ca&&I.uncompressedSize===0;if(q||Q.dir||!I||I.length===0)Q.base64=!1,Q.binary=!0,I="",Q.compression="STORE",Y="string";var H=null;if(I instanceof ca||I instanceof la)H=I;else if(da.isNode&&da.isStream(I))H=new jk0($,I);else H=HK.prepareContent($,I,Q.binary,Q.optimizedBinaryString,Q.base64);var G=new vk0($,H,Q);this.files[$]=G},Ck0=function($){if($.slice(-1)==="/")$=$.substring(0,$.length-1);var I=$.lastIndexOf("/");return I>0?$.substring(0,I):""},ta=function($){if($.slice(-1)!=="/")$+="/";return $},aa=function($,I){if(I=typeof I<"u"?I:oa.createFolders,$=ta($),!this.files[$])ra.call(this,$,null,{dir:!0,createFolders:I});return this.files[$]};function ma($){return Object.prototype.toString.call($)==="[object RegExp]"}var _k0={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function($){var I,U,Y;for(I in this.files)if(Y=this.files[I],U=I.slice(this.root.length,I.length),U&&I.slice(0,this.root.length)===this.root)$(U,Y)},filter:function($){var I=[];return this.forEach(function(U,Y){if($(U,Y))I.push(Y)}),I},file:function($,I,U){if(arguments.length===1)if(ma($)){var Y=$;return this.filter(function(Q,K){return!K.dir&&Y.test(Q)})}else{var J=this.files[this.root+$];if(J&&!J.dir)return J;else return null}else $=this.root+$,ra.call(this,$,I,U);return this},folder:function($){if(!$)return this;if(ma($))return this.filter(function(J,Q){return Q.dir&&$.test(J)});var I=this.root+$,U=aa.call(this,I),Y=this.clone();return Y.root=U.name,Y},remove:function($){$=this.root+$;var I=this.files[$];if(!I){if($.slice(-1)!=="/")$+="/";I=this.files[$]}if(I&&!I.dir)delete this.files[$];else{var U=this.filter(function(J,Q){return Q.name.slice(0,$.length)===$});for(var Y=0;Y{var Sk0=w4();function $s($){this.data=$,this.length=$.length,this.index=0,this.zero=0}$s.prototype={checkOffset:function($){this.checkIndex(this.index+$)},checkIndex:function($){if(this.length=this.index;U--)I=(I<<8)+this.byteAt(U);return this.index+=$,I},readString:function($){return Sk0.transformTo("string",this.readData($))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var $=this.readInt(4);return new Date(Date.UTC(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1))}};Is.exports=$s});var pv=O((hP1,Ys)=>{var Us=nv(),gk0=w4();function tU($){Us.call(this,$);for(var I=0;I=0;--Q)if(this.data[Q]===I&&this.data[Q+1]===U&&this.data[Q+2]===Y&&this.data[Q+3]===J)return Q-this.zero;return-1};tU.prototype.readAndCheckSignature=function($){var I=$.charCodeAt(0),U=$.charCodeAt(1),Y=$.charCodeAt(2),J=$.charCodeAt(3),Q=this.readData(4);return I===Q[0]&&U===Q[1]&&Y===Q[2]&&J===Q[3]};tU.prototype.readData=function($){if(this.checkOffset($),$===0)return[];var I=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Ys.exports=tU});var Ks=O((uP1,Qs)=>{var Js=nv(),yk0=w4();function aU($){Js.call(this,$)}yk0.inherits(aU,Js);aU.prototype.byteAt=function($){return this.data.charCodeAt(this.zero+$)};aU.prototype.lastIndexOfSignature=function($){return this.data.lastIndexOf($)-this.zero};aU.prototype.readAndCheckSignature=function($){var I=this.readData(4);return $===I};aU.prototype.readData=function($){this.checkOffset($);var I=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Qs.exports=aU});var dv=O((kP1,Hs)=>{var qs=pv(),hk0=w4();function cv($){qs.call(this,$)}hk0.inherits(cv,qs);cv.prototype.readData=function($){if(this.checkOffset($),$===0)return new Uint8Array(0);var I=this.data.subarray(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Hs.exports=cv});var ws=O((xP1,Ws)=>{var Gs=dv(),uk0=w4();function mv($){Gs.call(this,$)}uk0.inherits(mv,Gs);mv.prototype.readData=function($){this.checkOffset($);var I=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,I};Ws.exports=mv});var lv=O((fP1,Zs)=>{var eV=w4(),Vs=D5(),kk0=pv(),xk0=Ks(),fk0=ws(),ik0=dv();Zs.exports=function($){var I=eV.getTypeOf($);if(eV.checkSupport(I),I==="string"&&!Vs.uint8array)return new xk0($);if(I==="nodebuffer")return new fk0($);if(Vs.uint8array)return new ik0(eV.transformTo("uint8array",$));return new kk0(eV.transformTo("array",$))}});var Ds=O((iP1,Ls)=>{var ov=lv(),S9=w4(),bk0=gV(),zs=SV(),$Z=xU(),IZ=fv(),nk0=D5(),pk0=0,ck0=3,dk0=function($){for(var I in IZ){if(!Object.prototype.hasOwnProperty.call(IZ,I))continue;if(IZ[I].magic===$)return IZ[I]}return null};function Xs($,I){this.options=$,this.loadOptions=I}Xs.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function($){var I,U;if($.skip(22),this.fileNameLength=$.readInt(2),U=$.readInt(2),this.fileName=$.readData(this.fileNameLength),$.skip(U),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(I=dk0(this.compressionMethod),I===null)throw Error("Corrupted zip : compression "+S9.pretty(this.compressionMethod)+" unknown (inner file : "+S9.transformTo("string",this.fileName)+")");this.decompressed=new bk0(this.compressedSize,this.uncompressedSize,this.crc32,I,$.readData(this.compressedSize))},readCentralPart:function($){this.versionMadeBy=$.readInt(2),$.skip(2),this.bitFlag=$.readInt(2),this.compressionMethod=$.readString(2),this.date=$.readDate(),this.crc32=$.readInt(4),this.compressedSize=$.readInt(4),this.uncompressedSize=$.readInt(4);var I=$.readInt(2);if(this.extraFieldsLength=$.readInt(2),this.fileCommentLength=$.readInt(2),this.diskNumberStart=$.readInt(2),this.internalFileAttributes=$.readInt(2),this.externalFileAttributes=$.readInt(4),this.localHeaderOffset=$.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");$.skip(I),this.readExtraFields($),this.parseZIP64ExtraField($),this.fileComment=$.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var $=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,$===pk0)this.dosPermissions=this.externalFileAttributes&63;if($===ck0)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var $=ov(this.extraFields[1].value);if(this.uncompressedSize===S9.MAX_VALUE_32BITS)this.uncompressedSize=$.readInt(8);if(this.compressedSize===S9.MAX_VALUE_32BITS)this.compressedSize=$.readInt(8);if(this.localHeaderOffset===S9.MAX_VALUE_32BITS)this.localHeaderOffset=$.readInt(8);if(this.diskNumberStart===S9.MAX_VALUE_32BITS)this.diskNumberStart=$.readInt(4)},readExtraFields:function($){var I=$.index+this.extraFieldsLength,U,Y,J;if(!this.extraFields)this.extraFields={};while($.index+4{var mk0=lv(),M5=w4(),Q8=iv(),lk0=Ds(),ok0=D5();function Os($){this.files=[],this.loadOptions=$}Os.prototype={checkSignature:function($){if(!this.reader.readAndCheckSignature($)){this.reader.index-=4;var I=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+M5.pretty(I)+", expected "+M5.pretty($)+")")}},isSignature:function($,I){var U=this.reader.index;this.reader.setIndex($);var Y=this.reader.readString(4),J=Y===I;return this.reader.setIndex(U),J},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var $=this.reader.readData(this.zipCommentLength),I=ok0.uint8array?"uint8array":"array",U=M5.transformTo(I,$);this.zipComment=this.loadOptions.decodeFileName(U)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var $=this.zip64EndOfCentralSize-44,I=0,U,Y,J;while(I<$)U=this.reader.readInt(2),Y=this.reader.readInt(4),J=this.reader.readData(Y),this.zip64ExtensibleData[U]={id:U,length:Y,value:J}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var $,I;for($=0;$0)if(this.isSignature(U,Q8.CENTRAL_FILE_HEADER));else this.reader.zero=J;else if(J<0)throw Error("Corrupted zip: missing "+Math.abs(J)+" bytes.")},prepareReader:function($){this.reader=mk0($)},load:function($){this.prepareReader($),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};Fs.exports=Os});var Ps=O((nP1,As)=>{var rv=w4(),UZ=hU(),rk0=xU(),tk0=Ns(),ak0=rB(),Ms=i2();function sk0($){return new UZ.Promise(function(I,U){var Y=$.decompressed.getContentWorker().pipe(new ak0);Y.on("error",function(J){U(J)}).on("end",function(){if(Y.streamInfo.crc32!==$.decompressed.crc32)U(Error("Corrupted zip : CRC32 mismatch"));else I()}).resume()})}As.exports=function($,I){var U=this;if(I=rv.extend(I||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:rk0.utf8decode}),Ms.isNode&&Ms.isStream($))return UZ.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return rv.prepareContent("the loaded zip file",$,!0,I.optimizedBinaryString,I.base64).then(function(Y){var J=new tk0(I);return J.load(Y),J}).then(function(J){var Q=[UZ.Promise.resolve(J)],K=J.files;if(I.checkCRC32)for(var q=0;q{function g$(){if(!(this instanceof g$))return new g$;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var $=new g$;for(var I in this)if(typeof this[I]!=="function")$[I]=this[I];return $}}g$.prototype=ea();g$.prototype.loadAsync=Ps();g$.support=D5();g$.defaults=mB();g$.version="3.10.1";g$.loadAsync=function($,I){return new g$().loadAsync($,I)};g$.external=hU();Ts.exports=g$});var Cs=O((cP1,js)=>{function Es($,I){var U=Object.keys($);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols($);I&&(Y=Y.filter(function(J){return Object.getOwnPropertyDescriptor($,J).enumerable})),U.push.apply(U,Y)}return U}function Bs($){for(var I=1;I0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length}},{key:"unshift",value:function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J}},{key:"concat",value:function(U){if(this.length===0)return YZ.alloc(0);var Y=YZ.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)Kx0(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y}},{key:"consume",value:function(U,Y){var J;if(UK.length?K.length:U;if(q===K.length)Q+=K;else Q+=K.slice(0,U);if(U-=q,U===0){if(q===K.length)if(++J,Y.next)this.head=Y.next;else this.head=this.tail=null;else this.head=Y,Y.data=K.slice(q);break}++J}return this.length-=J,Q}},{key:"_getBuffer",value:function(U){var Y=YZ.allocUnsafe(U),J=this.head,Q=1;J.data.copy(Y),U-=J.data.length;while(J=J.next){var K=J.data,q=U>K.length?K.length:U;if(K.copy(Y,Y.length-U,0,q),U-=q,U===0){if(q===K.length)if(++Q,J.next)this.head=J.next;else this.head=this.tail=null;else this.head=J,J.data=K.slice(q);break}++Q}return this.length-=Q,Y}},{key:Qx0,value:function(U,Y){return av(this,Bs(Bs({},Y),{},{depth:0,customInspect:!1}))}}]),$}()});var ev=O((dP1,Ss)=>{function qx0($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)process.nextTick(sv,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(sv,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q)if(!U._writableState)process.nextTick(_s,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,process.nextTick(_s,U,Q);else process.nextTick(JZ,U);else if(I)process.nextTick(JZ,U),I(Q);else process.nextTick(JZ,U)}),this}function _s($,I){sv($,I),JZ($)}function JZ($){if($._writableState&&!$._writableState.emitClose)return;if($._readableState&&!$._readableState.emitClose)return;$.emit("close")}function Hx0(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function sv($,I){$.emit("error",I)}function Gx0($,I){var{_readableState:U,_writableState:Y}=$;if(U&&U.autoDestroy||Y&&Y.autoDestroy)$.destroy(I);else $.emit("error",I)}Ss.exports={destroy:qx0,undestroy:Hx0,errorOrDestroy:Gx0}});var g9=O((Zx0,hs)=>{var ys={};function y$($,I,U){if(!U)U=Error;function Y(Q,K,q){if(typeof I==="string")return I;else return I(Q,K,q)}class J extends U{constructor(Q,K,q){super(Y(Q,K,q))}}J.prototype.name=U.name,J.prototype.code=$,ys[$]=J}function gs($,I){if(Array.isArray($)){let U=$.length;if($=$.map((Y)=>String(Y)),U>2)return`one of ${I} ${$.slice(0,U-1).join(", ")}, or `+$[U-1];else if(U===2)return`one of ${I} ${$[0]} or ${$[1]}`;else return`of ${I} ${$[0]}`}else return`of ${I} ${String($)}`}function Wx0($,I,U){return $.substr(!U||U<0?0:+U,I.length)===I}function wx0($,I,U){if(U===void 0||U>$.length)U=$.length;return $.substring(U-I.length,U)===I}function Vx0($,I,U){if(typeof U!=="number")U=0;if(U+I.length>$.length)return!1;else return $.indexOf(I,U)!==-1}y$("ERR_INVALID_OPT_VALUE",function($,I){return'The value "'+I+'" is invalid for option "'+$+'"'},TypeError);y$("ERR_INVALID_ARG_TYPE",function($,I,U){let Y;if(typeof I==="string"&&Wx0(I,"not "))Y="must not be",I=I.replace(/^not /,"");else Y="must be";let J;if(wx0($," argument"))J=`The ${$} ${Y} ${gs(I,"type")}`;else{let Q=Vx0($,".")?"property":"argument";J=`The "${$}" ${Q} ${Y} ${gs(I,"type")}`}return J+=`. Received type ${typeof U}`,J},TypeError);y$("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");y$("ERR_METHOD_NOT_IMPLEMENTED",function($){return"The "+$+" method is not implemented"});y$("ERR_STREAM_PREMATURE_CLOSE","Premature close");y$("ERR_STREAM_DESTROYED",function($){return"Cannot call "+$+" after a stream was destroyed"});y$("ERR_MULTIPLE_CALLBACK","Callback called multiple times");y$("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");y$("ERR_STREAM_WRITE_AFTER_END","write after end");y$("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);y$("ERR_UNKNOWN_ENCODING",function($){return"Unknown encoding: "+$},TypeError);y$("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Zx0.codes=ys});var $R=O((mP1,us)=>{var Xx0=g9().codes.ERR_INVALID_OPT_VALUE;function Lx0($,I,U){return $.highWaterMark!=null?$.highWaterMark:I?$[U]:null}function Dx0($,I,U,Y){var J=Lx0(I,Y,U);if(J!=null){if(!(isFinite(J)&&Math.floor(J)===J)||J<0){var Q=Y?U:"highWaterMark";throw new Xx0(Q,J)}return Math.floor(J)}return $.objectMode?16:16384}us.exports={getHighWaterMark:Dx0}});var YR=O((lP1,ns)=>{ns.exports=L4;function xs($){var I=this;this.next=null,this.entry=null,this.finish=function(){cx0(I,$)}}var sU;L4.WritableState=WK;var Ox0={deprecate:d7()},fs=t("stream"),KZ=t("buffer").Buffer,Fx0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Nx0($){return KZ.from($)}function Mx0($){return KZ.isBuffer($)||$ instanceof Fx0}var UR=ev(),Ax0=$R(),Px0=Ax0.getHighWaterMark,y9=g9().codes,Tx0=y9.ERR_INVALID_ARG_TYPE,Ex0=y9.ERR_METHOD_NOT_IMPLEMENTED,Bx0=y9.ERR_MULTIPLE_CALLBACK,vx0=y9.ERR_STREAM_CANNOT_PIPE,Rx0=y9.ERR_STREAM_DESTROYED,jx0=y9.ERR_STREAM_NULL_VALUES,Cx0=y9.ERR_STREAM_WRITE_AFTER_END,_x0=y9.ERR_UNKNOWN_ENCODING,eU=UR.errorOrDestroy;d0()(L4,fs);function Sx0(){}function WK($,I,U){if(sU=sU||Q3(),$=$||{},typeof U!=="boolean")U=I instanceof sU;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;this.highWaterMark=Px0(this,$,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=$.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(J){fx0(I,J)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new xs(this)}WK.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(WK.prototype,"buffer",{get:Ox0.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var QZ;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")QZ=Function.prototype[Symbol.hasInstance],Object.defineProperty(L4,Symbol.hasInstance,{value:function(I){if(QZ.call(this,I))return!0;if(this!==L4)return!1;return I&&I._writableState instanceof WK}});else QZ=function(I){return I instanceof this};function L4($){sU=sU||Q3();var I=this instanceof sU;if(!I&&!QZ.call(L4,this))return new L4($);if(this._writableState=new WK($,this,I),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}fs.call(this)}L4.prototype.pipe=function(){eU(this,new vx0)};function gx0($,I){var U=new Cx0;eU($,U),process.nextTick(I,U)}function yx0($,I,U,Y){var J;if(U===null)J=new jx0;else if(typeof U!=="string"&&!I.objectMode)J=new Tx0("chunk",["string","Buffer"],U);if(J)return eU($,J),process.nextTick(Y,J),!1;return!0}L4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&Mx0($);if(Q&&!KZ.isBuffer($))$=Nx0($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=Sx0;if(Y.ending)gx0(this,U);else if(Q||yx0(this,Y,$,U))Y.pendingcb++,J=ux0(this,Y,Q,$,I,U);return J};L4.prototype.cork=function(){this._writableState.corked++};L4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)is(this,$)}};L4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new _x0(I);return this._writableState.defaultEncoding=I,this};Object.defineProperty(L4.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function hx0($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=KZ.from(I,U);return I}Object.defineProperty(L4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ux0($,I,U,Y,J,Q){if(!U){var K=hx0(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var dx0=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};cs.exports=S8;var ps=QR(),JR=YR();d0()(S8,ps);{qZ=dx0(JR.prototype);for(wK=0;wK{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var HZ=t("buffer"),g8=HZ.Buffer;function ds($,I){for(var U in $)I[U]=$[U]}if(g8.from&&g8.alloc&&g8.allocUnsafe&&g8.allocUnsafeSlow)ms.exports=HZ;else ds(HZ,KR),KR.Buffer=K3;function K3($,I,U){return g8($,I,U)}K3.prototype=Object.create(g8.prototype);ds(g8,K3);K3.from=function($,I,U){if(typeof $==="number")throw TypeError("Argument must not be a number");return g8($,I,U)};K3.alloc=function($,I,U){if(typeof $!=="number")throw TypeError("Argument must be a number");var Y=g8($);if(I!==void 0)if(typeof U==="string")Y.fill(I,U);else Y.fill(I);else Y.fill(0);return Y};K3.allocUnsafe=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return g8($)};K3.allocUnsafeSlow=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return HZ.SlowBuffer($)}});var GR=O((qf0)=>{var HR=ls().Buffer,os=HR.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ox0($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function rx0($){var I=ox0($);if(typeof I!=="string"&&(HR.isEncoding===os||!os($)))throw Error("Unknown encoding: "+$);return I||$}qf0.StringDecoder=ZK;function ZK($){this.encoding=rx0($);var I;switch(this.encoding){case"utf16le":this.text=If0,this.end=Uf0,I=4;break;case"utf8":this.fillLast=sx0,I=4;break;case"base64":this.text=Yf0,this.end=Jf0,I=3;break;default:this.write=Qf0,this.end=Kf0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=HR.allocUnsafe(I)}ZK.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};ZK.prototype.end=$f0;ZK.prototype.text=ex0;ZK.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function qR($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function tx0($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function ax0($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function sx0($){var I=this.lastTotal-this.lastNeed,U=ax0(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function ex0($,I){var U=tx0(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function $f0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function If0($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function Uf0($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function Yf0($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function Jf0($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function Qf0($){return $.toString(this.encoding)}function Kf0($){return $&&$.length?this.write($):""}});var GZ=O((tP1,as)=>{var rs=g9().codes.ERR_STREAM_PREMATURE_CLOSE;function Gf0($){var I=!1;return function(){if(I)return;I=!0;for(var U=arguments.length,Y=Array(U),J=0;J{var WZ;function h9($,I,U){if(I=Vf0(I),I in $)Object.defineProperty($,I,{value:U,enumerable:!0,configurable:!0,writable:!0});else $[I]=U;return $}function Vf0($){var I=Zf0($,"string");return typeof I==="symbol"?I:String(I)}function Zf0($,I){if(typeof $!=="object"||$===null)return $;var U=$[Symbol.toPrimitive];if(U!==void 0){var Y=U.call($,I||"default");if(typeof Y!=="object")return Y;throw TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)($)}var zf0=GZ(),u9=Symbol("lastResolve"),q3=Symbol("lastReject"),zK=Symbol("error"),wZ=Symbol("ended"),H3=Symbol("lastPromise"),WR=Symbol("handlePromise"),G3=Symbol("stream");function k9($,I){return{value:$,done:I}}function Xf0($){var I=$[u9];if(I!==null){var U=$[G3].read();if(U!==null)$[H3]=null,$[u9]=null,$[q3]=null,I(k9(U,!1))}}function Lf0($){process.nextTick(Xf0,$)}function Df0($,I){return function(U,Y){$.then(function(){if(I[wZ]){U(k9(void 0,!0));return}I[WR](U,Y)},Y)}}var Of0=Object.getPrototypeOf(function(){}),Ff0=Object.setPrototypeOf((WZ={get stream(){return this[G3]},next:function(){var I=this,U=this[zK];if(U!==null)return Promise.reject(U);if(this[wZ])return Promise.resolve(k9(void 0,!0));if(this[G3].destroyed)return new Promise(function(K,q){process.nextTick(function(){if(I[zK])q(I[zK]);else K(k9(void 0,!0))})});var Y=this[H3],J;if(Y)J=new Promise(Df0(Y,this));else{var Q=this[G3].read();if(Q!==null)return Promise.resolve(k9(Q,!1));J=new Promise(this[WR])}return this[H3]=J,J}},h9(WZ,Symbol.asyncIterator,function(){return this}),h9(WZ,"return",function(){var I=this;return new Promise(function(U,Y){I[G3].destroy(null,function(J){if(J){Y(J);return}U(k9(void 0,!0))})})}),WZ),Of0),Nf0=function(I){var U,Y=Object.create(Ff0,(U={},h9(U,G3,{value:I,writable:!0}),h9(U,u9,{value:null,writable:!0}),h9(U,q3,{value:null,writable:!0}),h9(U,zK,{value:null,writable:!0}),h9(U,wZ,{value:I._readableState.endEmitted,writable:!0}),h9(U,WR,{value:function(Q,K){var q=Y[G3].read();if(q)Y[H3]=null,Y[u9]=null,Y[q3]=null,Q(k9(q,!1));else Y[u9]=Q,Y[q3]=K},writable:!0}),U));return Y[H3]=null,zf0(I,function(J){if(J&&J.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Q=Y[q3];if(Q!==null)Y[H3]=null,Y[u9]=null,Y[q3]=null,Q(J);Y[zK]=J;return}var K=Y[u9];if(K!==null)Y[H3]=null,Y[u9]=null,Y[q3]=null,K(k9(void 0,!0));Y[wZ]=!0}),I.on("readable",Lf0.bind(null,Y)),Y};ss.exports=Nf0});var Ye=O((sP1,Ue)=>{function $e($,I,U,Y,J,Q,K){try{var q=$[Q](K),H=q.value}catch(G){U(G);return}if(q.done)I(H);else Promise.resolve(H).then(Y,J)}function Mf0($){return function(){var I=this,U=arguments;return new Promise(function(Y,J){var Q=$.apply(I,U);function K(H){$e(Q,Y,J,K,q,"next",H)}function q(H){$e(Q,Y,J,K,q,"throw",H)}K(void 0)})}}function Ie($,I){var U=Object.keys($);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols($);I&&(Y=Y.filter(function(J){return Object.getOwnPropertyDescriptor($,J).enumerable})),U.push.apply(U,Y)}return U}function Af0($){for(var I=1;I{Ze.exports=D1;var $Y;D1.ReadableState=qe;var eP1=t("events").EventEmitter,Ke=function(I,U){return I.listeners(U).length},LK=t("stream"),VZ=t("buffer").Buffer,Rf0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function jf0($){return VZ.from($)}function Cf0($){return VZ.isBuffer($)||$ instanceof Rf0}var wR=t("util"),J1;if(wR&&wR.debuglog)J1=wR.debuglog("stream");else J1=function(){};var _f0=Cs(),OR=ev(),Sf0=$R(),gf0=Sf0.getHighWaterMark,ZZ=g9().codes,yf0=ZZ.ERR_INVALID_ARG_TYPE,hf0=ZZ.ERR_STREAM_PUSH_AFTER_EOF,uf0=ZZ.ERR_METHOD_NOT_IMPLEMENTED,kf0=ZZ.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,IY,VR,ZR;d0()(D1,LK);var XK=OR.errorOrDestroy,zR=["error","close","destroy","pause","resume"];function xf0($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(Array.isArray($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function qe($,I,U){if($Y=$Y||Q3(),$=$||{},typeof U!=="boolean")U=I instanceof $Y;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;if(this.highWaterMark=gf0(this,$,"readableHighWaterMark",U),this.buffer=new _f0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!IY)IY=GR().StringDecoder;this.decoder=new IY($.encoding),this.encoding=$.encoding}}function D1($){if($Y=$Y||Q3(),!(this instanceof D1))return new D1($);var I=this instanceof $Y;if(this._readableState=new qe($,this,I),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}LK.call(this)}Object.defineProperty(D1.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(I){if(!this._readableState)return;this._readableState.destroyed=I}});D1.prototype.destroy=OR.destroy;D1.prototype._undestroy=OR.undestroy;D1.prototype._destroy=function($,I){I($)};D1.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=VZ.from($,I),I="";Y=!0}}else Y=!0;return He(this,$,I,!1,Y)};D1.prototype.unshift=function($){return He(this,$,null,!0,!1)};function He($,I,U,Y,J){J1("readableAddChunk",I);var Q=$._readableState;if(I===null)Q.reading=!1,bf0($,Q);else{var K;if(!J)K=ff0(Q,I);if(K)XK($,K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==VZ.prototype)I=jf0(I);if(Y)if(Q.endEmitted)XK($,new kf0);else XR($,Q,I,!0);else if(Q.ended)XK($,new hf0);else if(Q.destroyed)return!1;else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)XR($,Q,I,!1);else DR($,Q);else XR($,Q,I,!1)}else if(!Y)Q.reading=!1,DR($,Q)}return!Q.ended&&(Q.length=Je)$=Je;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function Qe($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=if0($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}D1.prototype.read=function($){J1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended)){if(J1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)LR(this);else zZ(this);return null}if($=Qe($,I),$===0&&I.ended){if(I.length===0)LR(this);return null}var Y=I.needReadable;if(J1("need readable",Y),I.length===0||I.length-$0)J=we($,I);else J=null;if(J===null)I.needReadable=I.length<=I.highWaterMark,$=0;else I.length-=$,I.awaitDrain=0;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)LR(this)}if(J!==null)this.emit("data",J);return J};function bf0($,I){if(J1("onEofChunk"),I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}if(I.ended=!0,I.sync)zZ($);else if(I.needReadable=!1,!I.emittedReadable)I.emittedReadable=!0,Ge($)}function zZ($){var I=$._readableState;if(J1("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,!I.emittedReadable)J1("emitReadable",I.flowing),I.emittedReadable=!0,process.nextTick(Ge,$)}function Ge($){var I=$._readableState;if(J1("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended))$.emit("readable"),I.emittedReadable=!1;I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,FR($)}function DR($,I){if(!I.readingMore)I.readingMore=!0,process.nextTick(nf0,$,I)}function nf0($,I){while(!I.reading&&!I.ended&&(I.length1&&Ve(Y.pipes,$)!==-1)&&!G)J1("false write response, pause",Y.awaitDrain),Y.awaitDrain++;U.pause()}}function Z(D){if(J1("onerror",D),L(),$.removeListener("error",Z),Ke($,"error")===0)XK($,D)}xf0($,"error",Z);function V(){$.removeListener("finish",X),L()}$.once("close",V);function X(){J1("onfinish"),$.removeListener("close",V),L()}$.once("finish",X);function L(){J1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)J1("pipe resume"),U.resume();return $};function pf0($){return function(){var U=$._readableState;if(J1("pipeOnDrain",U.awaitDrain),U.awaitDrain)U.awaitDrain--;if(U.awaitDrain===0&&Ke($,"data"))U.flowing=!0,FR($)}}D1.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q0,Y.flowing!==!1)this.resume()}else if($==="readable"){if(!Y.endEmitted&&!Y.readableListening){if(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,J1("on readable",Y.length,Y.reading),Y.length)zZ(this);else if(!Y.reading)process.nextTick(cf0,this)}}return U};D1.prototype.addListener=D1.prototype.on;D1.prototype.removeListener=function($,I){var U=LK.prototype.removeListener.call(this,$,I);if($==="readable")process.nextTick(We,this);return U};D1.prototype.removeAllListeners=function($){var I=LK.prototype.removeAllListeners.apply(this,arguments);if($==="readable"||$===void 0)process.nextTick(We,this);return I};function We($){var I=$._readableState;if(I.readableListening=$.listenerCount("readable")>0,I.resumeScheduled&&!I.paused)I.flowing=!0;else if($.listenerCount("data")>0)$.resume()}function cf0($){J1("readable nexttick read 0"),$.read(0)}D1.prototype.resume=function(){var $=this._readableState;if(!$.flowing)J1("resume"),$.flowing=!$.readableListening,df0(this,$);return $.paused=!1,this};function df0($,I){if(!I.resumeScheduled)I.resumeScheduled=!0,process.nextTick(mf0,$,I)}function mf0($,I){if(J1("resume",I.reading),!I.reading)$.read(0);if(I.resumeScheduled=!1,$.emit("resume"),FR($),I.flowing&&!I.reading)$.read(0)}D1.prototype.pause=function(){if(J1("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)J1("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function FR($){var I=$._readableState;J1("flow",I.flowing);while(I.flowing&&$.read()!==null);}D1.prototype.wrap=function($){var I=this,U=this._readableState,Y=!1;$.on("end",function(){if(J1("wrapped end"),U.decoder&&!U.ended){var K=U.decoder.end();if(K&&K.length)I.push(K)}I.push(null)}),$.on("data",function(K){if(J1("wrapped data"),U.decoder)K=U.decoder.write(K);if(U.objectMode&&(K===null||K===void 0))return;else if(!U.objectMode&&(!K||!K.length))return;var q=I.push(K);if(!q)Y=!0,$.pause()});for(var J in $)if(this[J]===void 0&&typeof $[J]==="function")this[J]=function(q){return function(){return $[q].apply($,arguments)}}(J);for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.first();else U=I.buffer.concat(I.length);I.buffer.clear()}else U=I.buffer.consume($,I.decoder);return U}function LR($){var I=$._readableState;if(J1("endReadable",I.endEmitted),!I.endEmitted)I.ended=!0,process.nextTick(lf0,I,$)}function lf0($,I){if(J1("endReadableNT",$.endEmitted,$.length),!$.endEmitted&&$.length===0){if($.endEmitted=!0,I.readable=!1,I.emit("end"),$.autoDestroy){var U=I._writableState;if(!U||U.autoDestroy&&U.finished)I.destroy()}}}if(typeof Symbol==="function")D1.from=function($,I){if(ZR===void 0)ZR=Ye();return ZR(D1,$,I)};function Ve($,I){for(var U=0,Y=$.length;U{Xe.exports=A5;var XZ=g9().codes,of0=XZ.ERR_METHOD_NOT_IMPLEMENTED,rf0=XZ.ERR_MULTIPLE_CALLBACK,tf0=XZ.ERR_TRANSFORM_ALREADY_TRANSFORMING,af0=XZ.ERR_TRANSFORM_WITH_LENGTH_0,LZ=Q3();d0()(A5,LZ);function sf0($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(Y===null)return this.emit("error",new rf0);if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{De.exports=DK;var Le=NR();d0()(DK,Le);function DK($){if(!(this instanceof DK))return new DK($);Le.call(this,$)}DK.prototype._transform=function($,I,U){U(null,$)}});var Pe=O((YT1,Ae)=>{var MR;function $i0($){var I=!1;return function(){if(I)return;I=!0,$.apply(void 0,arguments)}}var Me=g9().codes,Ii0=Me.ERR_MISSING_ARGS,Ui0=Me.ERR_STREAM_DESTROYED;function Fe($){if($)throw $}function Yi0($){return $.setHeader&&typeof $.abort==="function"}function Ji0($,I,U,Y){Y=$i0(Y);var J=!1;if($.on("close",function(){J=!0}),MR===void 0)MR=GZ();MR($,{readable:I,writable:U},function(K){if(K)return Y(K);J=!0,Y()});var Q=!1;return function(K){if(J)return;if(Q)return;if(Q=!0,Yi0($))return $.abort();if(typeof $.destroy==="function")return $.destroy();Y(K||new Ui0("pipe"))}}function Ne($){$()}function Qi0($,I){return $.pipe(I)}function Ki0($){if(!$.length)return Fe;if(typeof $[$.length-1]!=="function")return Fe;return $.pop()}function qi0(){for(var $=arguments.length,I=Array($),U=0;U<$;U++)I[U]=arguments[U];var Y=Ki0(I);if(Array.isArray(I[0]))I=I[0];if(I.length<2)throw new Ii0("streams");var J,Q=I.map(function(K,q){var H=q0;return Ji0(K,H,G,function(W){if(!J)J=W;if(W)Q.forEach(Ne);if(H)return;Q.forEach(Ne),Y(J)})});return I.reduce(Qi0)}Ae.exports=qi0});var D6=O((h$,FK)=>{var OK=t("stream");if(process.env.READABLE_STREAM==="disable"&&OK)FK.exports=OK.Readable,Object.assign(FK.exports,OK),FK.exports.Stream=OK;else h$=FK.exports=QR(),h$.Stream=OK||h$,h$.Readable=h$,h$.Writable=YR(),h$.Duplex=Q3(),h$.Transform=NR(),h$.PassThrough=Oe(),h$.finished=GZ(),h$.pipeline=Pe()});var O6=O((JT1,Be)=>{var Te=t("fs"),Hi0=function($,I,U,Y){if($.super_=I,!Y)Y=U,U=null;if(U)Object.keys(U).forEach((Q)=>{Object.defineProperty($,Q,Object.getOwnPropertyDescriptor(U,Q))});let J={constructor:{value:$,enumerable:!1,writable:!1,configurable:!0}};if(Y)Object.keys(Y).forEach((Q)=>{J[Q]=Object.getOwnPropertyDescriptor(Y,Q)});$.prototype=Object.create(I.prototype,J)},Gi0=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,Ee={nop(){},promiseImmediate($){return new Promise((I)=>{if(global.setImmediate)setImmediate(()=>{I($)});else setTimeout(()=>{I($)},1)})},inherits:Hi0,dateToExcel($,I){return 25569+$.getTime()/86400000-(I?1462:0)},excelToDate($,I){let U=Math.round(($-25569+(I?1462:0))*24*3600*1000);return new Date(U)},parsePath($){let I=$.lastIndexOf("/");return{path:$.substring(0,I),name:$.substring(I+1)}},getRelsPath($){let I=Ee.parsePath($);return`${I.path}/_rels/${I.name}.rels`},xmlEncode($){let I=Gi0.exec($);if(!I)return $;let U="",Y="",J=0,Q=I.index;for(;Q<$.length;Q++){let K=$.charCodeAt(Q);switch(K){case 34:Y=""";break;case 38:Y="&";break;case 39:Y="'";break;case 60:Y="<";break;case 62:Y=">";break;case 127:Y="";break;default:{if(K<=31&&(K<=8||K>=11&&K!==13)){Y="";break}continue}}if(J!==Q)U+=$.substring(J,Q);if(J=Q+1,Y)U+=Y}if(J!==Q)return U+$.substring(J,Q);return U},xmlDecode($){return $.replace(/&([a-z]*);/g,(I)=>{switch(I){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return I}})},validInt($){let I=parseInt($,10);return!Number.isNaN(I)?I:0},isDateFmt($){if(!$)return!1;return $=$.replace(/\[[^\]]*]/g,""),$=$.replace(/"[^"]*"/g,""),$.match(/[ymdhMsb]+/)!==null},fs:{exists($){return new Promise((I)=>{Te.access($,Te.constants.F_OK,(U)=>{I(!U)})})}},toIsoDateString($){return $.toIsoString().subsstr(0,10)},parseBoolean($){return $===!0||$==="true"||$===1||$==="1"}};Be.exports=Ee});var AR=O((QT1,Re)=>{class ve{constructor($){this._buf=Buffer.alloc($&&$.size||16384),this._encoding=$&&$.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){if(!this._buffer)this._buffer=Buffer.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length);return this._buffer}reset($){$=$||0,this._buffer=void 0,this._inPos=$}_grow($){let I=this._buf.length*2;while(I<$)I*=2;let U=Buffer.alloc(I);this._buf.copy(U,0),this._buf=U}addText($){this._buffer=void 0;let I=this._inPos+this._buf.write($,this._inPos,this._encoding);while(I>=this._buf.length-4)this._grow(this._inPos+$.length),I=this._inPos+this._buf.write($,this._inPos,this._encoding);this._inPos=I}addStringBuf($){if($.length){if(this._buffer=void 0,this.length+$.length>this.capacity)this._grow(this.length+$.length);$._buf.copy(this._buf,this._inPos,0,$.length),this._inPos+=$.length}}}Re.exports=ve});var NK=O((KT1,he)=>{var Wi0=D6(),je=O6(),wi0=AR();class Ce{constructor($,I){this._data=$,this._encoding=I}get length(){return this.toBuffer().length}copy($,I,U,Y){return this.toBuffer().copy($,I,U,Y)}toBuffer(){if(!this._buffer)this._buffer=Buffer.from(this._data,this._encoding);return this._buffer}}class _e{constructor($){this._data=$}get length(){return this._data.length}copy($,I,U,Y){return this._data._buf.copy($,I,U,Y)}toBuffer(){return this._data.toBuffer()}}class Se{constructor($){this._data=$}get length(){return this._data.length}copy($,I,U,Y){this._data.copy($,I,U,Y)}toBuffer(){return this._data}}class ge{constructor($){this.size=$,this.buffer=Buffer.alloc($),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let $=Buffer.alloc(this.iWrite-this.iRead);return this.buffer.copy($,0,this.iRead,this.iWrite),$}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read($){let I;if($===0)return null;if($===void 0||$>=this.length)return I=this.toBuffer(),this.iRead=this.iWrite,I;return I=Buffer.alloc($),this.buffer.copy(I,0,this.iRead,$),this.iRead+=$,I}write($,I,U){let Y=Math.min(U,this.size-this.iWrite);return $.copy(this.buffer,this.iWrite,I,I+Y),this.iWrite+=Y,Y}}var ye=function($){$=$||{},this.bufSize=$.bufSize||1048576,this.buffers=[],this.batch=$.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};je.inherits(ye,Wi0.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return Buffer.concat(this.buffers.map(($)=>$.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let I=this.buffers[this.buffers.length-1];if(!I.full)return I}let $=new ge(this.bufSize);return this.buffers.push($),$},async _pipe($){let I=function(U){return new Promise((Y)=>{U.write($.toBuffer(),()=>{Y()})})};await Promise.all(this.pipes.map(I))},_writeToBuffers($){let I=0,U=$.length;while(I1)this._pipe(this.buffers.shift())}else if(!this.corked)await this._pipe(Y),U();else this._writeToBuffers(Y),process.nextTick(U);else{if(!this.paused)this.emit("data",Y.toBuffer());this._writeToBuffers(Y),this.emit("readable")}return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)while(this.buffers.length)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end($,I,U){let Y=(J)=>{if(J)U(J);else this._flush(),this.pipes.forEach((Q)=>{Q.end()}),this.emit("finish")};if($)this.write($,I,Y);else Y()},read($){let I;if($){I=[];while($&&this.buffers.length&&!this.buffers[0].eod){let U=this.buffers[0],Y=U.read($);if($-=Y.length,I.push(Y),U.eod&&U.full)this.buffers.shift()}return Buffer.concat(I)}return I=this.buffers.map((U)=>U.toBuffer()).filter(Boolean),this.buffers=[],Buffer.concat(I)},setEncoding($){this.encoding=$},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe($){if(this.pipes.push($),!this.paused&&this.buffers.length)this.end()},unpipe($){this.pipes=this.pipes.filter((I)=>I!==$)},unshift(){throw Error("Not Implemented")},wrap(){throw Error("Not Implemented")}});he.exports=ye});var xe=O((Zi0)=>{var ue=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:ke}=t("buffer");function Vi0($){if(typeof $!=="string")return $;if(ue)return ke.from(ue.encode($).buffer);return ke.from($)}Zi0.stringToBuffer=Vi0});var be=O((GT1,ie)=>{var Xi0=t("events"),Li0=tv(),Di0=NK(),{stringToBuffer:HT1}=xe();class fe extends Xi0.EventEmitter{constructor($){super();this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},$),this.zip=new Li0,this.stream=new Di0}append($,I){if(I.hasOwnProperty("base64")&&I.base64)this.zip.file(I.name,$,{base64:!0});else this.zip.file(I.name,$)}async finalize(){let $=await this.zip.generateAsync(this.options);this.stream.end($),this.emit("finish")}read($){return this.stream.read($)}setEncoding($){return this.stream.setEncoding($)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe($,I){return this.stream.pipe($,I)}unpipe($){return this.stream.unpipe($)}unshift($){return this.stream.unshift($)}wrap($){return this.stream.wrap($)}}ie.exports={ZipWriter:fe}});var U6=O((WT1,ce)=>{var Oi0=X4(),ne=O6();function pe($,I,U){$.push(` ${I}="${ne.xmlEncode(U.toString())}"`)}function PR($,I){if(I){let U=[];Oi0.each(I,(Y,J)=>{if(Y!==void 0)pe(U,J,Y)}),$.push(U.join(""))}}class TR{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml($){let I=this._xml;I.push(" +`)}openNode($,I){let U=this.tos,Y=this._xml;if(U&&this.open)Y.push(">");this._stack.push($),Y.push("<"),Y.push($),PR(Y,I),this.leaf=!0,this.open=!0}addAttribute($,I){if(!this.open)throw Error("Cannot write attributes to node if it is not open");if(I!==void 0)pe(this._xml,$,I)}addAttributes($){if(!this.open)throw Error("Cannot write attributes to node if it is not open");PR(this._xml,$)}writeText($){let I=this._xml;if(this.open)I.push(">"),this.open=!1;this.leaf=!1,I.push(ne.xmlEncode($.toString()))}writeXml($){if(this.open)this._xml.push(">"),this.open=!1;this.leaf=!1,this._xml.push($)}closeNode(){let $=this._stack.pop(),I=this._xml;if(this.leaf)I.push("/>");else I.push("");this.open=!1,this.leaf=!1}leafNode($,I,U){if(this.openNode($,I),U!==void 0)this.writeText(U);this.closeNode()}closeAll(){while(this._stack.length)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){let $=this._rollbacks.pop();if(this._xml.length>$.xml)this._xml.splice($.xml,this._xml.length-$.xml);if(this._stack.length>$.stack)this._stack.splice($.stack,this._stack.length-$.stack);this.leaf=$.leaf,this.open=$.open}get xml(){return this.closeAll(),this._xml.join("")}}TR.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"};ce.exports=TR});var ER=O((Ni0)=>{var de=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function Fi0($){if(typeof $==="string")return $;if(de)return de.decode($);return $.toString()}Ni0.bufferToString=Fi0});var te=O((le)=>{Object.defineProperty(le,"__esModule",{value:!0});le.CHAR=` \r -퟿-�\uD800\uDC00-\uDBFF\uDFFF`;le.S=` \r -`;le.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";le.NAME_CHAR="-"+le.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";le.CHAR_RE=new RegExp("^["+le.CHAR+"]$","u");le.S_RE=new RegExp("^["+le.S+"]+$","u");le.NAME_START_CHAR_RE=new RegExp("^["+le.NAME_START_CHAR+"]$","u");le.NAME_CHAR_RE=new RegExp("^["+le.NAME_CHAR+"]$","u");le.NAME_RE=new RegExp("^["+le.NAME_START_CHAR+"]["+le.NAME_CHAR+"]*$","u");le.NMTOKEN_RE=new RegExp("^["+le.NAME_CHAR+"]+$","u");var TR=9,ER=10,BR=13,vR=32;le.S_LIST=[vR,ER,BR,TR];function Ab0($){return $>=vR&&$<=55295||$===ER||$===BR||$===TR||$>=57344&&$<=65533||$>=65536&&$<=1114111}le.isChar=Ab0;function Pb0($){return $===vR||$===ER||$===BR||$===TR}le.isS=Pb0;function me($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}le.isNameStartChar=me;function Tb0($){return me($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}le.isNameChar=Tb0});var K00=O((U00)=>{Object.defineProperty(U00,"__esModule",{value:!0});U00.CHAR="\x01-퟿-�\uD800\uDC00-\uDBFF\uDFFF";U00.RESTRICTED_CHAR="\x01-\b\v\f\x0E-\x1F-„†-Ÿ";U00.S=` \r -`;U00.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";U00.NAME_CHAR="-"+U00.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";U00.CHAR_RE=new RegExp("^["+U00.CHAR+"]$","u");U00.RESTRICTED_CHAR_RE=new RegExp("^["+U00.RESTRICTED_CHAR+"]$","u");U00.S_RE=new RegExp("^["+U00.S+"]+$","u");U00.NAME_START_CHAR_RE=new RegExp("^["+U00.NAME_START_CHAR+"]$","u");U00.NAME_CHAR_RE=new RegExp("^["+U00.NAME_CHAR+"]$","u");U00.NAME_RE=new RegExp("^["+U00.NAME_START_CHAR+"]["+U00.NAME_CHAR+"]*$","u");U00.NMTOKEN_RE=new RegExp("^["+U00.NAME_CHAR+"]+$","u");var ae=9,se=10,ee=13,$00=32;U00.S_LIST=[$00,se,ee,ae];function ub0($){return $>=1&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}U00.isChar=ub0;function xb0($){return $>=1&&$<=8||$===11||$===12||$>=14&&$<=31||$>=127&&$<=132||$>=134&&$<=159}U00.isRestrictedChar=xb0;function kb0($){return $===9||$===10||$===13||$>31&&$<127||$===133||$>159&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}U00.isCharAndNotRestricted=kb0;function fb0($){return $===$00||$===se||$===ee||$===ae}U00.isS=fb0;function I00($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}U00.isNameStartChar=I00;function bb0($){return I00($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}U00.isNameChar=bb0});var G00=O((H00)=>{Object.defineProperty(H00,"__esModule",{value:!0});H00.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";H00.NC_NAME_CHAR="-"+H00.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";H00.NC_NAME_START_CHAR_RE=new RegExp("^["+H00.NC_NAME_START_CHAR+"]$","u");H00.NC_NAME_CHAR_RE=new RegExp("^["+H00.NC_NAME_CHAR+"]$","u");H00.NC_NAME_RE=new RegExp("^["+H00.NC_NAME_START_CHAR+"]["+H00.NC_NAME_CHAR+"]*$","u");function q00($){return $>=65&&$<=90||$===95||$>=97&&$<=122||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8204&&$<=8205||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}H00.isNCNameStartChar=q00;function Ii0($){return q00($)||($===45||$===46||$>=48&&$<=57||$===183||$>=768&&$<=879||$>=8255&&$<=8256)}H00.isNCNameChar=Ii0});var _00=O((C00)=>{Object.defineProperty(C00,"__esModule",{value:!0});var JY=te(),qi0=K00(),iR=G00(),r6=JY.isS,Hi0=JY.isChar,MK=JY.isNameStartChar,W00=JY.isNameChar,T00=JY.S_LIST,Gi0=JY.NAME_RE,Wi0=qi0.isChar,wi0=iR.isNCNameStartChar,Vi0=iR.isNCNameChar,Zi0=iR.NC_NAME_RE,BZ="http://www.w3.org/XML/1998/namespace",YY="http://www.w3.org/2000/xmlns/",zi0={__proto__:null,xml:BZ,xmlns:YY},Xi0={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},H4=-1,y8=-2,w00=0,Li0=1,jR=2,Di0=3,$Y=4,Oi0=5,Fi0=6,Ni0=7,CR=8,Mi0=9,Ai0=10,Pi0=11,Ti0=12,g6=13,MZ=14,_R=15,Ei0=16,SR=17,Bi0=18,vi0=19,gR=20,Ri0=21,ji0=22,Ci0=23,V00=24,yR=25,AZ=26,Z00=27,_i0=28,Si0=29,z00=30,gi0=31,yi0=32,W3=33,hi0=34,hR=35,AK=36,uR=37,ui0=38,X00=39,L00=40,xi0=41,D00=42,ki0=43,fi0=44,xR=9,K8=10,kR=13,O00=32,F00=33,E00=34,PK=38,B00=39,PZ=45,TZ=47,bi0=59,k9=60,IY=61,h4=62,Y6=63,v00=91,UY=93,N00=133,M00=8232,EZ=($)=>$===E00||$===B00,R00=[E00,B00],ii0=[...R00,v00,h4],ni0=[...R00,k9,UY],pi0=[IY,Y6,...T00],ci0=[...T00,h4,PK,k9];function bR($,I,U){switch(I){case"xml":if(U!==BZ)$.fail(`xml prefix must be bound to ${BZ}.`);break;case"xmlns":if(U!==YY)$.fail(`xmlns prefix must be bound to ${YY}.`);break;default:}switch(U){case YY:$.fail(I===""?`the default namespace may not be set to ${U}.`:`may not assign a prefix (even "xmlns") to the URI ${YY}.`);break;case BZ:switch(I){case"xml":break;case"":$.fail(`the default namespace may not be set to ${U}.`);break;default:$.fail("may not assign the xml namespace to another prefix.")}break;default:}}function di0($,I){for(let U of Object.keys(I))bR($,U,I[U])}var mi0=($)=>Zi0.test($),li0=($)=>Gi0.test($),w3=0,A00=1,fR=2;C00.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var P00={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class j00{constructor($){this.opt=$!==null&&$!==void 0?$:{},this.fragmentOpt=!!this.opt.fragment;let I=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,I){this.nameStartCheck=wi0,this.nameCheck=Vi0,this.isName=mi0,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},zi0);let U=this.opt.additionalNamespaces;if(U!=null)di0(this,U),Object.assign(this.ns,U)}else this.nameStartCheck=MK,this.nameCheck=W00,this.isName=li0,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var $;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=w3,this.attribList=[];let{fragmentOpt:I}=this;this.state=I?g6:w00,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=I,this.xmlDeclPossible=!I,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:U}=this.opt;if(U===void 0){if(this.opt.forceXMLVersion===!0)throw Error("forceXMLVersion set but defaultXMLVersion is not set");U="1.0"}this.setXMLVersion(U),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Xi0),($=this.readyHandler)===null||$===void 0||$.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on($,I){this[P00[$]]=I}off($){this[P00[$]]=void 0}makeError($){var I;let U=(I=this.fileName)!==null&&I!==void 0?I:"";if(this.trackPosition){if(U.length>0)U+=":";U+=`${this.line}:${this.column}`}if(U.length>0)U+=": ";return Error(U+$)}fail($){let I=this.makeError($),U=this.errorHandler;if(U===void 0)throw I;else U(I);return this}write($){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let I=!1;if($===null)I=!0,$="";else if(typeof $==="object")$=$.toString();if(this.carriedFromPrevious!==void 0)$=`${this.carriedFromPrevious}${$}`,this.carriedFromPrevious=void 0;let U=$.length,Y=$.charCodeAt(U-1);if(!I&&(Y===kR||Y>=55296&&Y<=56319))this.carriedFromPrevious=$[U-1],U--,$=$.slice(0,U);let{stateTable:J}=this;this.chunk=$,this.i=0;while(this.i=$.length)return H4;let U=$.charCodeAt(I);if(this.column++,U<55296){if(U>=O00||U===xR)return U;switch(U){case K8:return this.line++,this.column=0,this.positionAtNewLine=this.position,K8;case kR:if($.charCodeAt(I+1)===K8)this.i=I+2;return this.line++,this.column=0,this.positionAtNewLine=this.position,y8;default:return this.fail("disallowed character."),U}}if(U>56319){if(!(U>=57344&&U<=65533))this.fail("disallowed character.");return U}let Y=65536+(U-55296)*1024+($.charCodeAt(I+1)-56320);if(this.i=I+2,Y>1114111)this.fail("disallowed character.");return Y}getCode11(){let{chunk:$,i:I}=this;if(this.prevI=I,this.i=I+1,I>=$.length)return H4;let U=$.charCodeAt(I);if(this.column++,U<55296){if(U>31&&U<127||U>159&&U!==M00||U===xR)return U;switch(U){case K8:return this.line++,this.column=0,this.positionAtNewLine=this.position,K8;case kR:{let J=$.charCodeAt(I+1);if(J===K8||J===N00)this.i=I+2}case N00:case M00:return this.line++,this.column=0,this.positionAtNewLine=this.position,y8;default:return this.fail("disallowed character."),U}}if(U>56319){if(!(U>=57344&&U<=65533))this.fail("disallowed character.");return U}let Y=65536+(U-55296)*1024+($.charCodeAt(I+1)-56320);if(this.i=I+2,Y>1114111)this.fail("disallowed character.");return Y}getCodeNorm(){let $=this.getCode();return $===y8?K8:$}unget(){this.i=this.prevI,this.column--}captureTo($){let{i:I}=this,{chunk:U}=this;while(!0){let Y=this.getCode(),J=Y===y8,Q=J?K8:Y;if(Q===H4||$.includes(Q))return this.text+=U.slice(I,this.prevI),Q;if(J)this.text+=`${U.slice(I,this.prevI)} +`;le.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";le.NAME_CHAR="-"+le.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";le.CHAR_RE=new RegExp("^["+le.CHAR+"]$","u");le.S_RE=new RegExp("^["+le.S+"]+$","u");le.NAME_START_CHAR_RE=new RegExp("^["+le.NAME_START_CHAR+"]$","u");le.NAME_CHAR_RE=new RegExp("^["+le.NAME_CHAR+"]$","u");le.NAME_RE=new RegExp("^["+le.NAME_START_CHAR+"]["+le.NAME_CHAR+"]*$","u");le.NMTOKEN_RE=new RegExp("^["+le.NAME_CHAR+"]+$","u");var BR=9,vR=10,RR=13,jR=32;le.S_LIST=[jR,vR,RR,BR];function Ai0($){return $>=jR&&$<=55295||$===vR||$===RR||$===BR||$>=57344&&$<=65533||$>=65536&&$<=1114111}le.isChar=Ai0;function Pi0($){return $===jR||$===vR||$===RR||$===BR}le.isS=Pi0;function me($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}le.isNameStartChar=me;function Ti0($){return me($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}le.isNameChar=Ti0});var K00=O((U00)=>{Object.defineProperty(U00,"__esModule",{value:!0});U00.CHAR="\x01-퟿-�\uD800\uDC00-\uDBFF\uDFFF";U00.RESTRICTED_CHAR="\x01-\b\v\f\x0E-\x1F-„†-Ÿ";U00.S=` \r +`;U00.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";U00.NAME_CHAR="-"+U00.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";U00.CHAR_RE=new RegExp("^["+U00.CHAR+"]$","u");U00.RESTRICTED_CHAR_RE=new RegExp("^["+U00.RESTRICTED_CHAR+"]$","u");U00.S_RE=new RegExp("^["+U00.S+"]+$","u");U00.NAME_START_CHAR_RE=new RegExp("^["+U00.NAME_START_CHAR+"]$","u");U00.NAME_CHAR_RE=new RegExp("^["+U00.NAME_CHAR+"]$","u");U00.NAME_RE=new RegExp("^["+U00.NAME_START_CHAR+"]["+U00.NAME_CHAR+"]*$","u");U00.NMTOKEN_RE=new RegExp("^["+U00.NAME_CHAR+"]+$","u");var ae=9,se=10,ee=13,$00=32;U00.S_LIST=[$00,se,ee,ae];function ui0($){return $>=1&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}U00.isChar=ui0;function ki0($){return $>=1&&$<=8||$===11||$===12||$>=14&&$<=31||$>=127&&$<=132||$>=134&&$<=159}U00.isRestrictedChar=ki0;function xi0($){return $===9||$===10||$===13||$>31&&$<127||$===133||$>159&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}U00.isCharAndNotRestricted=xi0;function fi0($){return $===$00||$===se||$===ee||$===ae}U00.isS=fi0;function I00($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}U00.isNameStartChar=I00;function ii0($){return I00($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}U00.isNameChar=ii0});var G00=O((H00)=>{Object.defineProperty(H00,"__esModule",{value:!0});H00.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";H00.NC_NAME_CHAR="-"+H00.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";H00.NC_NAME_START_CHAR_RE=new RegExp("^["+H00.NC_NAME_START_CHAR+"]$","u");H00.NC_NAME_CHAR_RE=new RegExp("^["+H00.NC_NAME_CHAR+"]$","u");H00.NC_NAME_RE=new RegExp("^["+H00.NC_NAME_START_CHAR+"]["+H00.NC_NAME_CHAR+"]*$","u");function q00($){return $>=65&&$<=90||$===95||$>=97&&$<=122||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8204&&$<=8205||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}H00.isNCNameStartChar=q00;function Ib0($){return q00($)||($===45||$===46||$>=48&&$<=57||$===183||$>=768&&$<=879||$>=8255&&$<=8256)}H00.isNCNameChar=Ib0});var _00=O((C00)=>{Object.defineProperty(C00,"__esModule",{value:!0});var KY=te(),qb0=K00(),pR=G00(),r6=KY.isS,Hb0=KY.isChar,MK=KY.isNameStartChar,W00=KY.isNameChar,T00=KY.S_LIST,Gb0=KY.NAME_RE,Wb0=qb0.isChar,wb0=pR.isNCNameStartChar,Vb0=pR.isNCNameChar,Zb0=pR.NC_NAME_RE,vZ="http://www.w3.org/XML/1998/namespace",QY="http://www.w3.org/2000/xmlns/",zb0={__proto__:null,xml:vZ,xmlns:QY},Xb0={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},H4=-1,y8=-2,w00=0,Lb0=1,_R=2,Db0=3,UY=4,Ob0=5,Fb0=6,Nb0=7,SR=8,Mb0=9,Ab0=10,Pb0=11,Tb0=12,g6=13,AZ=14,gR=15,Eb0=16,yR=17,Bb0=18,vb0=19,hR=20,Rb0=21,jb0=22,Cb0=23,V00=24,uR=25,PZ=26,Z00=27,_b0=28,Sb0=29,z00=30,gb0=31,yb0=32,W3=33,hb0=34,kR=35,AK=36,xR=37,ub0=38,X00=39,L00=40,kb0=41,D00=42,xb0=43,fb0=44,fR=9,K8=10,iR=13,O00=32,F00=33,E00=34,PK=38,B00=39,TZ=45,EZ=47,ib0=59,x9=60,YY=61,h4=62,Y6=63,v00=91,JY=93,N00=133,M00=8232,BZ=($)=>$===E00||$===B00,R00=[E00,B00],bb0=[...R00,v00,h4],nb0=[...R00,x9,JY],pb0=[YY,Y6,...T00],cb0=[...T00,h4,PK,x9];function nR($,I,U){switch(I){case"xml":if(U!==vZ)$.fail(`xml prefix must be bound to ${vZ}.`);break;case"xmlns":if(U!==QY)$.fail(`xmlns prefix must be bound to ${QY}.`);break;default:}switch(U){case QY:$.fail(I===""?`the default namespace may not be set to ${U}.`:`may not assign a prefix (even "xmlns") to the URI ${QY}.`);break;case vZ:switch(I){case"xml":break;case"":$.fail(`the default namespace may not be set to ${U}.`);break;default:$.fail("may not assign the xml namespace to another prefix.")}break;default:}}function db0($,I){for(let U of Object.keys(I))nR($,U,I[U])}var mb0=($)=>Zb0.test($),lb0=($)=>Gb0.test($),w3=0,A00=1,bR=2;C00.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var P00={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class j00{constructor($){this.opt=$!==null&&$!==void 0?$:{},this.fragmentOpt=!!this.opt.fragment;let I=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,I){this.nameStartCheck=wb0,this.nameCheck=Vb0,this.isName=mb0,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},zb0);let U=this.opt.additionalNamespaces;if(U!=null)db0(this,U),Object.assign(this.ns,U)}else this.nameStartCheck=MK,this.nameCheck=W00,this.isName=lb0,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var $;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=w3,this.attribList=[];let{fragmentOpt:I}=this;this.state=I?g6:w00,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=I,this.xmlDeclPossible=!I,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:U}=this.opt;if(U===void 0){if(this.opt.forceXMLVersion===!0)throw Error("forceXMLVersion set but defaultXMLVersion is not set");U="1.0"}this.setXMLVersion(U),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Xb0),($=this.readyHandler)===null||$===void 0||$.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on($,I){this[P00[$]]=I}off($){this[P00[$]]=void 0}makeError($){var I;let U=(I=this.fileName)!==null&&I!==void 0?I:"";if(this.trackPosition){if(U.length>0)U+=":";U+=`${this.line}:${this.column}`}if(U.length>0)U+=": ";return Error(U+$)}fail($){let I=this.makeError($),U=this.errorHandler;if(U===void 0)throw I;else U(I);return this}write($){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let I=!1;if($===null)I=!0,$="";else if(typeof $==="object")$=$.toString();if(this.carriedFromPrevious!==void 0)$=`${this.carriedFromPrevious}${$}`,this.carriedFromPrevious=void 0;let U=$.length,Y=$.charCodeAt(U-1);if(!I&&(Y===iR||Y>=55296&&Y<=56319))this.carriedFromPrevious=$[U-1],U--,$=$.slice(0,U);let{stateTable:J}=this;this.chunk=$,this.i=0;while(this.i=$.length)return H4;let U=$.charCodeAt(I);if(this.column++,U<55296){if(U>=O00||U===fR)return U;switch(U){case K8:return this.line++,this.column=0,this.positionAtNewLine=this.position,K8;case iR:if($.charCodeAt(I+1)===K8)this.i=I+2;return this.line++,this.column=0,this.positionAtNewLine=this.position,y8;default:return this.fail("disallowed character."),U}}if(U>56319){if(!(U>=57344&&U<=65533))this.fail("disallowed character.");return U}let Y=65536+(U-55296)*1024+($.charCodeAt(I+1)-56320);if(this.i=I+2,Y>1114111)this.fail("disallowed character.");return Y}getCode11(){let{chunk:$,i:I}=this;if(this.prevI=I,this.i=I+1,I>=$.length)return H4;let U=$.charCodeAt(I);if(this.column++,U<55296){if(U>31&&U<127||U>159&&U!==M00||U===fR)return U;switch(U){case K8:return this.line++,this.column=0,this.positionAtNewLine=this.position,K8;case iR:{let J=$.charCodeAt(I+1);if(J===K8||J===N00)this.i=I+2}case N00:case M00:return this.line++,this.column=0,this.positionAtNewLine=this.position,y8;default:return this.fail("disallowed character."),U}}if(U>56319){if(!(U>=57344&&U<=65533))this.fail("disallowed character.");return U}let Y=65536+(U-55296)*1024+($.charCodeAt(I+1)-56320);if(this.i=I+2,Y>1114111)this.fail("disallowed character.");return Y}getCodeNorm(){let $=this.getCode();return $===y8?K8:$}unget(){this.i=this.prevI,this.column--}captureTo($){let{i:I}=this,{chunk:U}=this;while(!0){let Y=this.getCode(),J=Y===y8,Q=J?K8:Y;if(Q===H4||$.includes(Q))return this.text+=U.slice(I,this.prevI),Q;if(J)this.text+=`${U.slice(I,this.prevI)} `,I=this.i}}captureToChar($){let{i:I}=this,{chunk:U}=this;while(!0){let Y=this.getCode();switch(Y){case y8:this.text+=`${U.slice(I,this.prevI)} -`,I=this.i,Y=K8;break;case H4:return this.text+=U.slice(I),!1;default:}if(Y===$)return this.text+=U.slice(I,this.prevI),!0}}captureNameChars(){let{chunk:$,i:I}=this;while(!0){let U=this.getCode();if(U===H4)return this.name+=$.slice(I),H4;if(!W00(U))return this.name+=$.slice(I,this.prevI),U===y8?K8:U}}skipSpaces(){while(!0){let $=this.getCodeNorm();if($===H4||!r6($))return $}}setXMLVersion($){if(this.currentXMLVersion=$,$==="1.0")this.isChar=Hi0,this.getCode=this.getCode10;else this.isChar=Wi0,this.getCode=this.getCode11}sBegin(){if(this.chunk.charCodeAt(0)===65279)this.i++,this.column++;this.state=Li0}sBeginWhitespace(){let $=this.i,I=this.skipSpaces();if(this.prevI!==$)this.xmlDeclPossible=!1;switch(I){case k9:if(this.state=_R,this.text.length!==0)throw Error("no-empty text at start");break;case H4:break;default:this.unget(),this.state=g6,this.xmlDeclPossible=!1}}sDoctype(){var $;let I=this.captureTo(ii0);switch(I){case h4:{($=this.doctypeHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=g6,this.doctype=!0;break}case H4:break;default:if(this.text+=String.fromCodePoint(I),I===v00)this.state=$Y;else if(EZ(I))this.state=Di0,this.q=I}}sDoctypeQuote(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.q=null,this.state=jR}sDTD(){let $=this.captureTo(ni0);if($===H4)return;if(this.text+=String.fromCodePoint($),$===UY)this.state=jR;else if($===k9)this.state=Fi0;else if(EZ($))this.state=Oi0,this.q=$}sDTDQuoted(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.state=$Y,this.q=null}sDTDOpenWaka(){let $=this.getCodeNorm();switch(this.text+=String.fromCodePoint($),$){case F00:this.state=Ni0,this.openWakaBang="";break;case Y6:this.state=Pi0;break;default:this.state=$Y}}sDTDOpenWakaBang(){let $=String.fromCodePoint(this.getCodeNorm()),I=this.openWakaBang+=$;if(this.text+=$,I!=="-")this.state=I==="--"?CR:$Y,this.openWakaBang=""}sDTDComment(){if(this.captureToChar(PZ))this.text+="-",this.state=Mi0}sDTDCommentEnding(){let $=this.getCodeNorm();this.text+=String.fromCodePoint($),this.state=$===PZ?Ai0:CR}sDTDCommentEnded(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===h4)this.state=$Y;else this.fail("malformed comment."),this.state=CR}sDTDPI(){if(this.captureToChar(Y6))this.text+="?",this.state=Ti0}sDTDPIEnding(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===h4)this.state=$Y}sText(){if(this.tags.length!==0)this.handleTextInRoot();else this.handleTextOutsideRoot()}sEntity(){let{i:$}=this,{chunk:I}=this;$:while(!0)switch(this.getCode()){case y8:this.entity+=`${I.slice($,this.prevI)} -`,$=this.i;break;case bi0:{let{entityReturnState:U}=this,Y=this.entity+I.slice($,this.prevI);this.state=U;let J;if(Y==="")this.fail("empty entity name."),J="&;";else J=this.parseEntity(Y),this.entity="";if(U!==g6||this.textHandler!==void 0)this.text+=J;break $}case H4:this.entity+=I.slice($);break $;default:}}sOpenWaka(){let $=this.getCode();if(MK($))this.state=hi0,this.unget(),this.xmlDeclPossible=!1;else switch($){case TZ:this.state=ki0,this.xmlDeclPossible=!1;break;case F00:this.state=Ei0,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Y6:this.state=Ci0;break;default:this.fail("disallowed character in tag name"),this.state=g6,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0;this.state=gR,this.openWakaBang="";break;case"--":this.state=SR,this.openWakaBang="";break;case"DOCTYPE":if(this.state=jR,this.doctype||this.sawRoot)this.fail("inappropriately located doctype declaration.");this.openWakaBang="";break;default:if(this.openWakaBang.length>=7)this.fail("incorrect syntax.")}}sComment(){if(this.captureToChar(PZ))this.state=Bi0}sCommentEnding(){var $;let I=this.getCodeNorm();if(I===PZ)this.state=vi0,($=this.commentHandler)===null||$===void 0||$.call(this,this.text),this.text="";else this.text+=`-${String.fromCodePoint(I)}`,this.state=SR}sCommentEnded(){let $=this.getCodeNorm();if($!==h4)this.fail("malformed comment."),this.text+=`--${String.fromCodePoint($)}`,this.state=SR;else this.state=g6}sCData(){if(this.captureToChar(UY))this.state=Ri0}sCDataEnding(){let $=this.getCodeNorm();if($===UY)this.state=ji0;else this.text+=`]${String.fromCodePoint($)}`,this.state=gR}sCDataEnding2(){var $;let I=this.getCodeNorm();switch(I){case h4:{($=this.cdataHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=g6;break}case UY:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(I)}`,this.state=gR}}sPIFirstChar(){let $=this.getCodeNorm();if(this.nameStartCheck($))this.piTarget+=String.fromCodePoint($),this.state=V00;else if($===Y6||r6($))this.fail("processing instruction without a target."),this.state=$===Y6?AZ:yR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint($),this.state=V00}sPIRest(){let{chunk:$,i:I}=this;while(!0){let U=this.getCodeNorm();if(U===H4){this.piTarget+=$.slice(I);return}if(!this.nameCheck(U)){this.piTarget+=$.slice(I,this.prevI);let Y=U===Y6;if(Y||r6(U))if(this.piTarget==="xml"){if(!this.xmlDeclPossible)this.fail("an XML declaration must be at the start of the document.");this.state=Y?W3:Z00}else this.state=Y?AZ:yR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(U);break}}}sPIBody(){if(this.text.length===0){let $=this.getCodeNorm();if($===Y6)this.state=AZ;else if(!r6($))this.text=String.fromCodePoint($)}else if(this.captureToChar(Y6))this.state=AZ}sPIEnding(){var $;let I=this.getCodeNorm();if(I===h4){let{piTarget:U}=this;if(U.toLowerCase()==="xml")this.fail("the XML declaration must appear at the start of the document.");($=this.piHandler)===null||$===void 0||$.call(this,{target:U,body:this.text}),this.piTarget=this.text="",this.state=g6}else if(I===Y6)this.text+="?";else this.text+=`?${String.fromCodePoint(I)}`,this.state=yR;this.xmlDeclPossible=!1}sXMLDeclNameStart(){let $=this.skipSpaces();if($===Y6){this.state=W3;return}if($!==H4)this.state=_i0,this.name=String.fromCodePoint($)}sXMLDeclName(){let $=this.captureTo(pi0);if($===Y6){this.state=W3,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(!(r6($)||$===IY))return;if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=$===IY?z00:Si0}sXMLDeclEq(){let $=this.getCodeNorm();if($===Y6){this.state=W3,this.fail("XML declaration is incomplete.");return}if(r6($))return;if($!==IY)this.fail("value required.");this.state=z00}sXMLDeclValueStart(){let $=this.getCodeNorm();if($===Y6){this.state=W3,this.fail("XML declaration is incomplete.");return}if(r6($))return;if(!EZ($))this.fail("value must be quoted."),this.q=O00;else this.q=$;this.state=gi0}sXMLDeclValue(){let $=this.captureTo([this.q,Y6]);if($===Y6){this.state=W3,this.text="",this.fail("XML declaration is incomplete.");return}if($===H4)return;let I=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];let U=I;if(this.xmlDecl.version=U,!/^1\.[0-9]+$/.test(U))this.fail("version number must match /^1\\.[0-9]+$/.");else if(!this.opt.forceXMLVersion)this.setXMLVersion(U);break}case"encoding":if(!/^[A-Za-z][A-Za-z0-9._-]*$/.test(I))this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.");this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=I;break;case"standalone":if(I!=="yes"&&I!=="no")this.fail('standalone value must match "yes" or "no".');this.xmlDeclExpects=[],this.xmlDecl.standalone=I;break;default:}this.name="",this.state=yi0}sXMLDeclSeparator(){let $=this.getCodeNorm();if($===Y6){this.state=W3;return}if(!r6($))this.fail("whitespace required."),this.unget();this.state=Z00}sXMLDeclEnding(){var $;if(this.getCodeNorm()===h4){if(this.piTarget!=="xml")this.fail("processing instructions are not allowed before root.");else if(this.name!=="version"&&this.xmlDeclExpects.includes("version"))this.fail("XML declaration must contain a version.");($=this.xmldeclHandler)===null||$===void 0||$.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=g6}else this.fail("The character ? is disallowed anywhere in XML declarations.");this.xmlDeclPossible=!1}sOpenTag(){var $;let I=this.captureNameChars();if(I===H4)return;let U=this.tag={name:this.name,attributes:Object.create(null)};if(this.name="",this.xmlnsOpt)this.topNS=U.ns=Object.create(null);if(($=this.openTagStartHandler)===null||$===void 0||$.call(this,U),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot)this.fail("documents may contain only one root.");switch(I){case h4:this.openTag();break;case TZ:this.state=hR;break;default:if(!r6(I))this.fail("disallowed character in tag name.");this.state=AK}}sOpenTagSlash(){if(this.getCode()===h4)this.openSelfClosingTag();else this.fail("forward-slash in opening tag not followed by >."),this.state=AK}sAttrib(){let $=this.skipSpaces();if($===H4)return;if(MK($))this.unget(),this.state=uR;else if($===h4)this.openTag();else if($===TZ)this.state=hR;else this.fail("disallowed character in attribute name.")}sAttribName(){let $=this.captureNameChars();if($===IY)this.state=X00;else if(r6($))this.state=ui0;else if($===h4)this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag();else if($!==H4)this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){let $=this.skipSpaces();switch($){case H4:return;case IY:this.state=X00;break;default:if(this.fail("attribute without value."),this.text="",this.name="",$===h4)this.openTag();else if(MK($))this.unget(),this.state=uR;else this.fail("disallowed character in attribute name."),this.state=AK}}sAttribValue(){let $=this.getCodeNorm();if(EZ($))this.q=$,this.state=L00;else if(!r6($))this.fail("unquoted attribute value."),this.state=D00,this.unget()}sAttribValueQuoted(){let{q:$,chunk:I}=this,{i:U}=this;while(!0)switch(this.getCode()){case $:this.pushAttrib(this.name,this.text+I.slice(U,this.prevI)),this.name=this.text="",this.q=null,this.state=xi0;return;case PK:this.text+=I.slice(U,this.prevI),this.state=MZ,this.entityReturnState=L00;return;case K8:case y8:case xR:this.text+=`${I.slice(U,this.prevI)} `,U=this.i;break;case k9:this.text+=I.slice(U,this.prevI),this.fail("disallowed character.");return;case H4:this.text+=I.slice(U);return;default:}}sAttribValueClosed(){let $=this.getCodeNorm();if(r6($))this.state=AK;else if($===h4)this.openTag();else if($===TZ)this.state=hR;else if(MK($))this.fail("no whitespace between attributes."),this.unget(),this.state=uR;else this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){let $=this.captureTo(ci0);switch($){case PK:this.state=MZ,this.entityReturnState=D00;break;case k9:this.fail("disallowed character.");break;case H4:break;default:if(this.text.includes("]]>"))this.fail('the string "]]>" is disallowed in char data.');if(this.pushAttrib(this.name,this.text),this.name=this.text="",$===h4)this.openTag();else this.state=AK}}sCloseTag(){let $=this.captureNameChars();if($===h4)this.closeTag();else if(r6($))this.state=fi0;else if($!==H4)this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case h4:this.closeTag();break;case H4:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:$,forbiddenState:I}=this,{chunk:U,textHandler:Y}=this;$:while(!0)switch(this.getCode()){case k9:{if(this.state=_R,Y!==void 0){let{text:J}=this,Q=U.slice($,this.prevI);if(J.length!==0)Y(J+Q),this.text="";else if(Q.length!==0)Y(Q)}I=w3;break $}case PK:if(this.state=MZ,this.entityReturnState=g6,Y!==void 0)this.text+=U.slice($,this.prevI);I=w3;break $;case UY:switch(I){case w3:I=A00;break;case A00:I=fR;break;case fR:break;default:throw Error("impossible state")}break;case h4:if(I===fR)this.fail('the string "]]>" is disallowed in char data.');I=w3;break;case y8:if(Y!==void 0)this.text+=`${U.slice($,this.prevI)} -`;$=this.i,I=w3;break;case H4:if(Y!==void 0)this.text+=U.slice($);break $;default:I=w3}this.forbiddenState=I}handleTextOutsideRoot(){let{i:$}=this,{chunk:I,textHandler:U}=this,Y=!1;$:while(!0){let J=this.getCode();switch(J){case k9:{if(this.state=_R,U!==void 0){let{text:Q}=this,K=I.slice($,this.prevI);if(Q.length!==0)U(Q+K),this.text="";else if(K.length!==0)U(K)}break $}case PK:if(this.state=MZ,this.entityReturnState=g6,U!==void 0)this.text+=I.slice($,this.prevI);Y=!0;break $;case y8:if(U!==void 0)this.text+=`${I.slice($,this.prevI)} -`;$=this.i;break;case H4:if(U!==void 0)this.text+=I.slice($);break $;default:if(!r6(J))Y=!0}}if(!Y)return;if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0}pushAttribNS($,I){var U;let{prefix:Y,local:J}=this.qname($),Q={name:$,prefix:Y,local:J,value:I};if(this.attribList.push(Q),(U=this.attributeHandler)===null||U===void 0||U.call(this,Q),Y==="xmlns"){let K=I.trim();if(this.currentXMLVersion==="1.0"&&K==="")this.fail("invalid attempt to undefine prefix in XML 1.0");this.topNS[J]=K,bR(this,J,K)}else if($==="xmlns"){let K=I.trim();this.topNS[""]=K,bR(this,"",K)}}pushAttribPlain($,I){var U;let Y={name:$,value:I};this.attribList.push(Y),(U=this.attributeHandler)===null||U===void 0||U.call(this,Y)}end(){var $,I;if(!this.sawRoot)this.fail("document must contain a root element.");let{tags:U}=this;while(U.length>0){let J=U.pop();this.fail(`unclosed tag: ${J.name}`)}if(this.state!==w00&&this.state!==g6)this.fail("unexpected end.");let{text:Y}=this;if(Y.length!==0)($=this.textHandler)===null||$===void 0||$.call(this,Y),this.text="";return this._closed=!0,(I=this.endHandler)===null||I===void 0||I.call(this),this._init(),this}resolve($){var I,U;let Y=this.topNS[$];if(Y!==void 0)return Y;let{tags:J}=this;for(let Q=J.length-1;Q>=0;Q--)if(Y=J[Q].ns[$],Y!==void 0)return Y;if(Y=this.ns[$],Y!==void 0)return Y;return(U=(I=this.opt).resolvePrefix)===null||U===void 0?void 0:U.call(I,$)}qname($){let I=$.indexOf(":");if(I===-1)return{prefix:"",local:$};let U=$.slice(I+1),Y=$.slice(0,I);if(Y===""||U===""||U.includes(":"))this.fail(`malformed name: ${$}.`);return{prefix:Y,local:U}}processAttribsNS(){var $;let{attribList:I}=this,U=this.tag;{let{prefix:Q,local:K}=this.qname(U.name);U.prefix=Q,U.local=K;let q=U.uri=($=this.resolve(Q))!==null&&$!==void 0?$:"";if(Q!==""){if(Q==="xmlns")this.fail('tags may not have "xmlns" as prefix.');if(q==="")this.fail(`unbound namespace prefix: ${JSON.stringify(Q)}.`),U.uri=Q}}if(I.length===0)return;let{attributes:Y}=U,J=new Set;for(let Q of I){let{name:K,prefix:q,local:H}=Q,G,W;if(q==="")G=K==="xmlns"?YY:"",W=K;else{if(G=this.resolve(q),G===void 0)this.fail(`unbound namespace prefix: ${JSON.stringify(q)}.`),G=q;W=`{${G}}${H}`}if(J.has(W))this.fail(`duplicate attribute: ${W}.`);J.add(W),Q.uri=G,Y[K]=Q}this.attribList=[]}processAttribsPlain(){let{attribList:$}=this,I=this.tag.attributes;for(let{name:U,value:Y}of $){if(I[U]!==void 0)this.fail(`duplicate attribute: ${U}.`);I[U]=Y}this.attribList=[]}openTag(){var $;this.processAttribs();let{tags:I}=this,U=this.tag;U.isSelfClosing=!1,($=this.openTagHandler)===null||$===void 0||$.call(this,U),I.push(U),this.state=g6,this.name=""}openSelfClosingTag(){var $,I,U;this.processAttribs();let{tags:Y}=this,J=this.tag;if(J.isSelfClosing=!0,($=this.openTagHandler)===null||$===void 0||$.call(this,J),(I=this.closeTagHandler)===null||I===void 0||I.call(this,J),(this.tag=(U=Y[Y.length-1])!==null&&U!==void 0?U:null)===null)this.closedRoot=!0;this.state=g6,this.name=""}closeTag(){let{tags:$,name:I}=this;if(this.state=g6,this.name="",I===""){this.fail("weird empty close tag."),this.text+="";return}let U=this.closeTagHandler,Y=$.length;while(Y-- >0){let J=this.tag=$.pop();if(this.topNS=J.ns,U===null||U===void 0||U(J),J.name===I)break;this.fail("unexpected close tag.")}if(Y===0)this.closedRoot=!0;else if(Y<0)this.fail(`unmatched closing tag: ${I}.`),this.text+=``}parseEntity($){if($[0]!=="#"){let U=this.ENTITIES[$];if(U!==void 0)return U;return this.fail(this.isName($)?"undefined entity.":"disallowed character in entity name."),`&${$};`}let I=NaN;if($[1]==="x"&&/^#x[0-9a-f]+$/i.test($))I=parseInt($.slice(2),16);else if(/^#[0-9]+$/.test($))I=parseInt($.slice(1),10);if(!this.isChar(I))return this.fail("malformed character entity."),`&${$};`;return String.fromCodePoint(I)}}C00.SaxesParser=j00});var TK=O((XT1,S00)=>{var{SaxesParser:ti0}=_00(),{PassThrough:ai0}=D6(),{bufferToString:si0}=PR();S00.exports=async function*($){if($.pipe&&!$[Symbol.asyncIterator])$=$.pipe(new ai0);let I=new ti0,U;I.on("error",(J)=>{U=J});let Y=[];I.on("opentag",(J)=>Y.push({eventType:"opentag",value:J})),I.on("text",(J)=>Y.push({eventType:"text",value:J})),I.on("closetag",(J)=>Y.push({eventType:"closetag",value:J}));for await(let J of $){if(I.write(si0(J)),U)throw U;yield Y,Y=[]}}});var L0=O((LT1,g00)=>{var ei0=TK(),$n0=U6();class QY{prepare(){}render(){}parseOpen($){}parseText($){}parseClose($){}reconcile($,I){}reset(){if(this.model=null,this.map)Object.values(this.map).forEach(($)=>{if($ instanceof QY)$.reset();else if($.xform)$.xform.reset()})}mergeModel($){this.model=Object.assign(this.model||{},$)}async parse($){for await(let I of $)for(let{eventType:U,value:Y}of I)if(U==="opentag")this.parseOpen(Y);else if(U==="text")this.parseText(Y);else if(U==="closetag"){if(!this.parseClose(Y.name))return this.model}return this.model}async parseStream($){return this.parse(ei0($))}get xml(){return this.toXml(this.model)}toXml($){let I=new $n0;return this.render(I,$),I.xml}static toAttribute($,I,U=!1){if($===void 0){if(U)return I}else if(U||$!==I)return $.toString();return}static toStringAttribute($,I,U=!1){return QY.toAttribute($,I,U)}static toStringValue($,I){return $===void 0?I:$}static toBoolAttribute($,I,U=!1){if($===void 0){if(U)return I}else if(U||$!==I)return $?"1":"0";return}static toBoolValue($,I){return $===void 0?I:$==="1"}static toIntAttribute($,I,U=!1){return QY.toAttribute($,I,U)}static toIntValue($,I){return $===void 0?I:parseInt($,10)}static toFloatAttribute($,I,U=!1){return QY.toAttribute($,I,U)}static toFloatValue($,I){return $===void 0?I:parseFloat($)}}g00.exports=QY});var KY=O((DT1,u00)=>{var In0=L0(),Un0=U6();function y00($,I){if($.openNode(I.tag,I.$),I.c)I.c.forEach((U)=>{y00($,U)});if(I.t)$.writeText(I.t);$.closeNode()}class h00 extends In0{constructor($){super();this._model=$}render($){if(!this._xml){let I=new Un0;y00(I,this._model),this._xml=I.xml}$.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose($){switch($){case this._model.tag:return!1;default:return!0}}}u00.exports=h00});var f9=O((OT1,k00)=>{var Yn0=L0();class x00 extends Yn0{constructor($){super();this.tag=$.tag,this.always=!!$.always,this.count=$.count,this.empty=$.empty,this.$count=$.$count||"count",this.$=$.$,this.childXform=$.childXform,this.maxItems=$.maxItems}prepare($,I){let{childXform:U}=this;if($)$.forEach((Y,J)=>{I.index=J,U.prepare(Y,I)})}render($,I){if(this.always||I&&I.length){if($.openNode(this.tag,this.$),this.count)$.addAttribute(this.$count,I&&I.length||0);let{childXform:U}=this;(I||[]).forEach((Y,J)=>{U.render($,Y,J)}),$.closeNode()}else if(this.empty)$.leafNode(this.tag)}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:return this.model=[],!0;default:if(this.childXform.parseOpen($))return this.parser=this.childXform,!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems)throw Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`)}return!0}return!1}reconcile($,I){if($){let{childXform:U}=this;$.forEach((Y)=>{U.reconcile(Y,I)})}}}k00.exports=x00});var b9=O((FT1,b00)=>{var Jn0=L0();class f00 extends Jn0{constructor($){super();this.name=$||"color"}get tag(){return this.name}render($,I){if(I){if($.openNode(this.name),I.argb)$.addAttribute("rgb",I.argb);else if(I.theme!==void 0){if($.addAttribute("theme",I.theme),I.tint!==void 0)$.addAttribute("tint",I.tint)}else if(I.indexed!==void 0)$.addAttribute("indexed",I.indexed);else $.addAttribute("auto","1");return $.closeNode(),!0}return!1}parseOpen($){if($.name===this.name){if($.attributes.rgb)this.model={argb:$.attributes.rgb};else if($.attributes.theme){if(this.model={theme:parseInt($.attributes.theme,10)},$.attributes.tint)this.model.tint=parseFloat($.attributes.tint)}else if($.attributes.indexed)this.model={indexed:parseInt($.attributes.indexed,10)};else this.model=void 0;return!0}return!1}parseText(){}parseClose(){return!1}}b00.exports=f00});var p00=O((NT1,n00)=>{var Qn0=L0();class i00 extends Qn0{constructor($){super();this.tag=$.tag,this.attr=$.attr}render($,I){if(I)$.openNode(this.tag),$.closeNode()}parseOpen($){if($.name===this.tag)this.model=!0}parseText(){}parseClose(){return!1}}n00.exports=i00});var vZ=O((MT1,d00)=>{var Kn0=L0();class c00 extends Kn0{constructor($){super();this.tag=$.tag,this.attr=$.attr,this.attrs=$.attrs,this.zero=$.zero}render($,I){if(I||this.zero){if($.openNode(this.tag),this.attrs)$.addAttributes(this.attrs);if(this.attr)$.addAttribute(this.attr,I);else $.writeText(I);$.closeNode()}}parseOpen($){if($.name===this.tag){if(this.attr)this.model=parseInt($.attributes[this.attr],10);else this.text=[];return!0}return!1}parseText($){if(!this.attr)this.text.push($)}parseClose(){if(!this.attr)this.model=parseInt(this.text.join("")||0,10);return!1}}d00.exports=c00});var RZ=O((AT1,l00)=>{var qn0=L0();class m00 extends qn0{constructor($){super();this.tag=$.tag,this.attr=$.attr,this.attrs=$.attrs}render($,I){if(I!==void 0){if($.openNode(this.tag),this.attrs)$.addAttributes(this.attrs);if(this.attr)$.addAttribute(this.attr,I);else $.writeText(I);$.closeNode()}}parseOpen($){if($.name===this.tag)if(this.attr)this.model=$.attributes[this.attr];else this.text=[]}parseText($){if(!this.attr)this.text.push($)}parseClose(){if(!this.attr)this.model=this.text.join("");return!1}}l00.exports=m00});var r00=O((PT1,o00)=>{var Hn0=L0();class jZ extends Hn0{constructor($){super();this.model=$}get tag(){return"u"}render($,I){if(I=I||this.model,I===!0)$.leafNode("u");else{let U=jZ.Attributes[I];if(U)$.leafNode("u",U)}}parseOpen($){if($.name==="u")this.model=$.attributes.val||!0}parseText(){}parseClose(){return!1}}jZ.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}};o00.exports=jZ});var _Z=O((TT1,t00)=>{var Gn0=b9(),V3=p00(),nR=vZ(),pR=RZ(),Wn0=r00(),wn0=X4(),Vn0=L0();class CZ extends Vn0{constructor($){super();this.options=$||CZ.OPTIONS,this.map={b:{prop:"bold",xform:new V3({tag:"b",attr:"val"})},i:{prop:"italic",xform:new V3({tag:"i",attr:"val"})},u:{prop:"underline",xform:new Wn0},charset:{prop:"charset",xform:new nR({tag:"charset",attr:"val"})},color:{prop:"color",xform:new Gn0},condense:{prop:"condense",xform:new V3({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new V3({tag:"extend",attr:"val"})},family:{prop:"family",xform:new nR({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new V3({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new pR({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new pR({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new V3({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new V3({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new nR({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new pR({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render($,I){let{map:U}=this;$.openNode(this.options.tagName),wn0.each(this.map,(Y,J)=>{U[J].xform.render($,I[Y.prop])}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if(this.map[$.name])return this.parser=this.map[$.name].xform,this.parser.parseOpen($);switch($.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser&&!this.parser.parseClose($)){let I=this.map[$];if(this.parser.model)this.model[I.prop]=this.parser.model;return this.parser=void 0,!0}switch($){case this.options.tagName:return!1;default:return!0}}}CZ.OPTIONS={tagName:"font",fontNameTag:"name"};t00.exports=CZ});var oR=O((ET1,a00)=>{var SZ=L0(),cR=b9();class dR extends SZ{constructor(){super();this.map={color:new cR}}get tag(){return"stop"}render($,I){$.openNode("stop"),$.addAttribute("position",I.position),this.map.color.render($,I.color),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"stop":return this.model={position:parseFloat($.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen($),!0;default:return!1}}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.color=this.parser.model,this.parser=void 0;return!0}return!1}}class mR extends SZ{constructor(){super();this.map={fgColor:new cR("fgColor"),bgColor:new cR("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render($,I){if($.openNode("patternFill"),$.addAttribute("patternType",I.pattern),I.fgColor)this.map.fgColor.render($,I.fgColor);if(I.bgColor)this.map.bgColor.render($,I.bgColor);$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"patternFill":return this.model={type:"pattern",pattern:$.attributes.patternType},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.parser.model)this.model[$]=this.parser.model;this.parser=void 0}return!0}return!1}}class lR extends SZ{constructor(){super();this.map={stop:new dR}}get name(){return"gradient"}get tag(){return"gradientFill"}render($,I){switch($.openNode("gradientFill"),I.gradient){case"angle":$.addAttribute("degree",I.degree);break;case"path":if($.addAttribute("type","path"),I.center.left){if($.addAttribute("left",I.center.left),I.center.right===void 0)$.addAttribute("right",I.center.left)}if(I.center.right)$.addAttribute("right",I.center.right);if(I.center.top){if($.addAttribute("top",I.center.top),I.center.bottom===void 0)$.addAttribute("bottom",I.center.top)}if(I.center.bottom)$.addAttribute("bottom",I.center.bottom);break;default:break}let U=this.map.stop;I.stops.forEach((Y)=>{U.render($,Y)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"gradientFill":{let I=this.model={stops:[]};if($.attributes.degree)I.gradient="angle",I.degree=parseInt($.attributes.degree,10);else if($.attributes.type==="path"){if(I.gradient="path",I.center={left:$.attributes.left?parseFloat($.attributes.left):0,top:$.attributes.top?parseFloat($.attributes.top):0},$.attributes.right!==$.attributes.left)I.center.right=$.attributes.right?parseFloat($.attributes.right):0;if($.attributes.bottom!==$.attributes.top)I.center.bottom=$.attributes.bottom?parseFloat($.attributes.bottom):0}return!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.stops.push(this.parser.model),this.parser=void 0;return!0}return!1}}class Z3 extends SZ{constructor(){super();this.map={patternFill:new mR,gradientFill:new lR}}get tag(){return"fill"}render($,I){switch($.addRollback(),$.openNode("fill"),I.type){case"pattern":this.map.patternFill.render($,I);break;case"gradient":this.map.gradientFill.render($,I);break;default:$.rollback();return}$.closeNode(),$.commit()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"fill":return this.model={},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0;return!0}return!1}validStyle($){return Z3.validPatternValues[$]}}Z3.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(($,I)=>{return $[I]=!0,$},{});Z3.StopXform=dR;Z3.PatternFillXform=mR;Z3.GradientFillXform=lR;a00.exports=Z3});var rR=O((BT1,I10)=>{var e00=L0(),s00=O6(),Zn0=b9();class i9 extends e00{constructor($){super();this.name=$,this.map={color:new Zn0}}get tag(){return this.name}render($,I,U){let Y=I&&I.color||U||this.defaultColor;if($.openNode(this.name),I&&I.style){if($.addAttribute("style",I.style),Y)this.map.color.render($,Y)}$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.name:{let{style:I}=$.attributes;if(I)this.model={style:I};else this.model=void 0;return!0}case"color":return this.parser=this.map.color,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if($===this.name){if(this.map.color.model){if(!this.model)this.model={};this.model.color=this.map.color.model}}return!1}validStyle($){return i9.validStyleValues[$]}}i9.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(($,I)=>{return $[I]=!0,$},{});class $10 extends e00{constructor(){super();this.map={top:new i9("top"),left:new i9("left"),bottom:new i9("bottom"),right:new i9("right"),diagonal:new i9("diagonal")}}render($,I){let{color:U}=I;if($.openNode("border"),I.diagonal&&I.diagonal.style){if(I.diagonal.up)$.addAttribute("diagonalUp","1");if(I.diagonal.down)$.addAttribute("diagonalDown","1")}function Y(J,Q){if(J&&!J.color&&I.color)J={...J,color:I.color};Q.render($,J,U)}Y(I.left,this.map.left),Y(I.right,this.map.right),Y(I.top,this.map.top),Y(I.bottom,this.map.bottom),Y(I.diagonal,this.map.diagonal),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"border":return this.reset(),this.diagonalUp=s00.parseBoolean($.attributes.diagonalUp),this.diagonalDown=s00.parseBoolean($.attributes.diagonalDown),!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if($==="border"){let I=this.model={},U=function(Y,J,Q){if(J){if(Q)Object.assign(J,Q);I[Y]=J}};U("left",this.map.left.model),U("right",this.map.right.model),U("top",this.map.top.model),U("bottom",this.map.bottom.model),U("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}I10.exports=$10});var Y10=O((vT1,U10)=>{U10.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}});var aR=O((RT1,J10)=>{var zn0=X4(),tR=Y10(),Xn0=L0();function Ln0(){let $={};return zn0.each(tR,(I,U)=>{if(I.f)$[I.f]=parseInt(U,10)}),$}var Dn0=Ln0();class gZ extends Xn0{constructor($,I){super();this.id=$,this.formatCode=I}get tag(){return"numFmt"}render($,I){$.leafNode("numFmt",{numFmtId:I.id,formatCode:I.formatCode})}parseOpen($){switch($.name){case"numFmt":return this.model={id:parseInt($.attributes.numFmtId,10),formatCode:$.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}gZ.getDefaultFmtId=function(I){return Dn0[I]};gZ.getDefaultFmtCode=function(I){return tR[I]&&tR[I].f};J10.exports=gZ});var sR=O((jT1,H10)=>{var Q10=I8(),EK=O6(),On0=L0(),z3={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(($,I)=>{return $[I]=!0,$},{}),horizontal($){return this.horizontalValues[$]?$:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(($,I)=>{return $[I]=!0,$},{}),vertical($){if($==="middle")return"center";return this.verticalValues[$]?$:void 0},wrapText($){return $?!0:void 0},shrinkToFit($){return $?!0:void 0},textRotation($){switch($){case"vertical":return $;default:return $=EK.validInt($),$>=-90&&$<=90?$:void 0}},indent($){return $=EK.validInt($),Math.max(0,$)},readingOrder($){switch($){case"ltr":return Q10.ReadingOrder.LeftToRight;case"rtl":return Q10.ReadingOrder.RightToLeft;default:return}}},K10={toXml($){if($=z3.textRotation($),$){if($==="vertical")return 255;let I=Math.round($);if(I>=0&&I<=90)return I;if(I<0&&I>=-90)return 90-I}return},toModel($){let I=EK.validInt($);if(I!==void 0){if(I===255)return"vertical";if(I>=0&&I<=90)return I;if(I>90&&I<=180)return 90-I}return}};class q10 extends On0{get tag(){return"alignment"}render($,I){$.addRollback(),$.openNode("alignment");let U=!1;function Y(J,Q){if(Q)$.addAttribute(J,Q),U=!0}if(Y("horizontal",z3.horizontal(I.horizontal)),Y("vertical",z3.vertical(I.vertical)),Y("wrapText",z3.wrapText(I.wrapText)?"1":!1),Y("shrinkToFit",z3.shrinkToFit(I.shrinkToFit)?"1":!1),Y("indent",z3.indent(I.indent)),Y("textRotation",K10.toXml(I.textRotation)),Y("readingOrder",z3.readingOrder(I.readingOrder)),$.closeNode(),U)$.commit();else $.rollback()}parseOpen($){let I={},U=!1;function Y(J,Q,K){if(J)I[Q]=K,U=!0}Y($.attributes.horizontal,"horizontal",$.attributes.horizontal),Y($.attributes.vertical,"vertical",$.attributes.vertical==="center"?"middle":$.attributes.vertical),Y($.attributes.wrapText,"wrapText",EK.parseBoolean($.attributes.wrapText)),Y($.attributes.shrinkToFit,"shrinkToFit",EK.parseBoolean($.attributes.shrinkToFit)),Y($.attributes.indent,"indent",parseInt($.attributes.indent,10)),Y($.attributes.textRotation,"textRotation",K10.toModel($.attributes.textRotation)),Y($.attributes.readingOrder,"readingOrder",$.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=U?I:null}parseText(){}parseClose(){return!1}}H10.exports=q10});var eR=O((CT1,w10)=>{var Fn0=L0(),G10={boolean($,I){if($===void 0)return I;return $}};class W10 extends Fn0{get tag(){return"protection"}render($,I){$.addRollback(),$.openNode("protection");let U=!1;function Y(J,Q){if(Q!==void 0)$.addAttribute(J,Q),U=!0}if(Y("locked",G10.boolean(I.locked,!0)?void 0:"0"),Y("hidden",G10.boolean(I.hidden,!1)?"1":void 0),$.closeNode(),U)$.commit();else $.rollback()}parseOpen($){let I={locked:$.attributes.locked!=="0",hidden:$.attributes.hidden==="1"},U=!I.locked||I.hidden;this.model=U?I:null}parseText(){}parseClose(){return!1}}w10.exports=W10});var z10=O((_T1,Z10)=>{var Nn0=L0(),Mn0=sR(),An0=eR();class V10 extends Nn0{constructor($){super();this.xfId=!!($&&$.xfId),this.map={alignment:new Mn0,protection:new An0}}get tag(){return"xf"}render($,I){if($.openNode("xf",{numFmtId:I.numFmtId||0,fontId:I.fontId||0,fillId:I.fillId||0,borderId:I.borderId||0}),this.xfId)$.addAttribute("xfId",I.xfId||0);if(I.numFmtId)$.addAttribute("applyNumberFormat","1");if(I.fontId)$.addAttribute("applyFont","1");if(I.fillId)$.addAttribute("applyFill","1");if(I.borderId)$.addAttribute("applyBorder","1");if(I.alignment)$.addAttribute("applyAlignment","1");if(I.protection)$.addAttribute("applyProtection","1");if(I.alignment)this.map.alignment.render($,I.alignment);if(I.protection)this.map.protection.render($,I.protection);$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"xf":if(this.model={numFmtId:parseInt($.attributes.numFmtId,10),fontId:parseInt($.attributes.fontId,10),fillId:parseInt($.attributes.fillId,10),borderId:parseInt($.attributes.borderId,10)},this.xfId)this.model.xfId=parseInt($.attributes.xfId,10);return!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen($),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.map.protection===this.parser)this.model.protection=this.parser.model;else this.model.alignment=this.parser.model;this.parser=void 0}return!0}return $!=="xf"}}Z10.exports=V10});var D10=O((ST1,L10)=>{var Pn0=L0(),Tn0=sR(),En0=rR(),Bn0=oR(),vn0=_Z(),Rn0=aR(),jn0=eR();class X10 extends Pn0{constructor(){super();this.map={alignment:new Tn0,border:new En0,fill:new Bn0,font:new vn0,numFmt:new Rn0,protection:new jn0}}get tag(){return"dxf"}render($,I){if($.openNode(this.tag),I.font)this.map.font.render($,I.font);if(I.numFmt&&I.numFmtId){let U={id:I.numFmtId,formatCode:I.numFmt};this.map.numFmt.render($,U)}if(I.fill)this.map.fill.render($,I.fill);if(I.alignment)this.map.alignment.render($,I.alignment);if(I.border)this.map.border.render($,I.border);if(I.protection)this.map.protection.render($,I.protection);$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:return this.reset(),!0;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);return!0}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if($===this.tag)return this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1;return!0}}L10.exports=X10});var uZ=O((gT1,A10)=>{var hZ=I8(),Cn0=U6(),_n0=L0(),yZ=KY(),X3=f9(),O10=_Z(),F10=oR(),N10=rR(),BK=aR(),$j=z10(),Sn0=D10();class w$ extends _n0{constructor($){super();if(this.map={numFmts:new X3({tag:"numFmts",count:!0,childXform:new BK}),fonts:new X3({tag:"fonts",count:!0,childXform:new O10,$:{"x14ac:knownFonts":1}}),fills:new X3({tag:"fills",count:!0,childXform:new F10}),borders:new X3({tag:"borders",count:!0,childXform:new N10}),cellStyleXfs:new X3({tag:"cellStyleXfs",count:!0,childXform:new $j}),cellXfs:new X3({tag:"cellXfs",count:!0,childXform:new $j({xfId:!0})}),dxfs:new X3({tag:"dxfs",always:!0,count:!0,childXform:new Sn0}),numFmt:new BK,font:new O10,fill:new F10,border:new N10,style:new $j({xfId:!0}),cellStyles:w$.STATIC_XFORMS.cellStyles,tableStyles:w$.STATIC_XFORMS.tableStyles,extLst:w$.STATIC_XFORMS.extLst},$)this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render($,I){if(I=I||this.model,$.openXml(Cn0.StdDocAttributes),$.openNode("styleSheet",w$.STYLESHEET_ATTRIBUTES),this.index){if(I.numFmts&&I.numFmts.length)$.openNode("numFmts",{count:I.numFmts.length}),I.numFmts.forEach((U)=>{$.writeXml(U)}),$.closeNode();if(!I.fonts.length)this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"});$.openNode("fonts",{count:I.fonts.length,"x14ac:knownFonts":1}),I.fonts.forEach((U)=>{$.writeXml(U)}),$.closeNode(),$.openNode("fills",{count:I.fills.length}),I.fills.forEach((U)=>{$.writeXml(U)}),$.closeNode(),$.openNode("borders",{count:I.borders.length}),I.borders.forEach((U)=>{$.writeXml(U)}),$.closeNode(),this.map.cellStyleXfs.render($,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),$.openNode("cellXfs",{count:I.styles.length}),I.styles.forEach((U)=>{$.writeXml(U)}),$.closeNode()}else this.map.numFmts.render($,I.numFmts),this.map.fonts.render($,I.fonts),this.map.fills.render($,I.fills),this.map.borders.render($,I.borders),this.map.cellStyleXfs.render($,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render($,I.styles);w$.STATIC_XFORMS.cellStyles.render($),this.map.dxfs.render($,I.dxfs),w$.STATIC_XFORMS.tableStyles.render($),w$.STATIC_XFORMS.extLst.render($),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"styleSheet":return this.initIndex(),!0;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);return!0}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"styleSheet":{this.model={};let I=(U,Y)=>{if(Y.model&&Y.model.length)this.model[U]=Y.model};if(I("numFmts",this.map.numFmts),I("fonts",this.map.fonts),I("fills",this.map.fills),I("borders",this.map.borders),I("styles",this.map.cellXfs),I("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){let U=this.index.numFmt;this.model.numFmts.forEach((Y)=>{U[Y.id]=Y.formatCode})}return!1}default:return!0}}addStyleModel($,I){if(!$)return 0;if(!this.model.fonts.length)this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"});if(this.weakMap&&this.weakMap.has($))return this.weakMap.get($);let U={};if(I=I||hZ.ValueType.Number,$.numFmt)U.numFmtId=this._addNumFmtStr($.numFmt);else switch(I){case hZ.ValueType.Number:U.numFmtId=this._addNumFmtStr("General");break;case hZ.ValueType.Date:U.numFmtId=this._addNumFmtStr("mm-dd-yy");break;default:break}if($.font)U.fontId=this._addFont($.font);if($.border)U.borderId=this._addBorder($.border);if($.fill)U.fillId=this._addFill($.fill);if($.alignment)U.alignment=$.alignment;if($.protection)U.protection=$.protection;let Y=this._addStyle(U);if(this.weakMap)this.weakMap.set($,Y);return Y}getStyleModel($){let I=this.model.styles[$];if(!I)return null;let U=this.index.model[$];if(U)return U;if(U=this.index.model[$]={},I.numFmtId){let J=this.index.numFmt[I.numFmtId]||BK.getDefaultFmtCode(I.numFmtId);if(J)U.numFmt=J}function Y(J,Q,K){if(K||K===0){let q=Q[K];if(q)U[J]=q}}if(Y("font",this.model.fonts,I.fontId),Y("border",this.model.borders,I.borderId),Y("fill",this.model.fills,I.fillId),I.alignment)U.alignment=I.alignment;if(I.protection)U.protection=I.protection;return U}addDxfStyle($){if($.numFmt)$.numFmtId=this._addNumFmtStr($.numFmt);return this.model.dxfs.push($),this.model.dxfs.length-1}getDxfStyle($){return this.model.dxfs[$]}_addStyle($){let I=this.map.style.toXml($),U=this.index.style[I];if(U===void 0)U=this.index.style[I]=this.model.styles.length,this.model.styles.push(I);return U}_addNumFmtStr($){let I=BK.getDefaultFmtId($);if(I!==void 0)return I;if(I=this.index.numFmt[$],I!==void 0)return I;I=this.index.numFmt[$]=164+this.model.numFmts.length;let U=this.map.numFmt.toXml({id:I,formatCode:$});return this.model.numFmts.push(U),I}_addFont($){let I=this.map.font.toXml($),U=this.index.font[I];if(U===void 0)U=this.index.font[I]=this.model.fonts.length,this.model.fonts.push(I);return U}_addBorder($){let I=this.map.border.toXml($),U=this.index.border[I];if(U===void 0)U=this.index.border[I]=this.model.borders.length,this.model.borders.push(I);return U}_addFill($){let I=this.map.fill.toXml($),U=this.index.fill[I];if(U===void 0)U=this.index.fill[I]=this.model.fills.length,this.model.fills.push(I);return U}}w$.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"};w$.STATIC_XFORMS={cellStyles:new yZ({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new yZ({tag:"dxfs",$:{count:0}}),tableStyles:new yZ({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new yZ({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};class M10 extends w${constructor(){super();this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream($){return $.autodrain(),Promise.resolve()}addStyleModel($,I){switch(I){case hZ.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){let $={numFmtId:BK.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push($)}return this._dateStyleId}getStyleModel(){return{}}}w$.Mock=M10;A10.exports=w$});var E10=O((yT1,T10)=>{var gn0=L0();class P10 extends gn0{constructor($){super();this.tag=$.tag,this.attr=$.attr,this.attrs=$.attrs,this._format=$.format||function(I){try{if(Number.isNaN(I.getTime()))return"";return I.toISOString()}catch(U){return""}},this._parse=$.parse||function(I){return new Date(I)}}render($,I){if(I){if($.openNode(this.tag),this.attrs)$.addAttributes(this.attrs);if(this.attr)$.addAttribute(this.attr,this._format(I));else $.writeText(this._format(I));$.closeNode()}}parseOpen($){if($.name===this.tag)if(this.attr)this.model=this._parse($.attributes[this.attr]);else this.text=[]}parseText($){if(!this.attr)this.text.push($)}parseClose(){if(!this.attr)this.model=this._parse(this.text.join(""));return!1}}T10.exports=P10});var Uj=O((hT1,B10)=>{var yn0=U6(),hn0=L0(),Ij=E10(),u$=RZ(),un0=vZ();class q8 extends hn0{constructor(){super();this.map={"dc:creator":new u$({tag:"dc:creator"}),"dc:title":new u$({tag:"dc:title"}),"dc:subject":new u$({tag:"dc:subject"}),"dc:description":new u$({tag:"dc:description"}),"dc:identifier":new u$({tag:"dc:identifier"}),"dc:language":new u$({tag:"dc:language"}),"cp:keywords":new u$({tag:"cp:keywords"}),"cp:category":new u$({tag:"cp:category"}),"cp:lastModifiedBy":new u$({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new Ij({tag:"cp:lastPrinted",format:q8.DateFormat}),"cp:revision":new un0({tag:"cp:revision"}),"cp:version":new u$({tag:"cp:version"}),"cp:contentStatus":new u$({tag:"cp:contentStatus"}),"cp:contentType":new u$({tag:"cp:contentType"}),"dcterms:created":new Ij({tag:"dcterms:created",attrs:q8.DateAttrs,format:q8.DateFormat}),"dcterms:modified":new Ij({tag:"dcterms:modified",attrs:q8.DateAttrs,format:q8.DateFormat})}}render($,I){$.openXml(yn0.StdDocAttributes),$.openNode("cp:coreProperties",q8.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render($,I.creator),this.map["dc:title"].render($,I.title),this.map["dc:subject"].render($,I.subject),this.map["dc:description"].render($,I.description),this.map["dc:identifier"].render($,I.identifier),this.map["dc:language"].render($,I.language),this.map["cp:keywords"].render($,I.keywords),this.map["cp:category"].render($,I.category),this.map["cp:lastModifiedBy"].render($,I.lastModifiedBy),this.map["cp:lastPrinted"].render($,I.lastPrinted),this.map["cp:revision"].render($,I.revision),this.map["cp:version"].render($,I.version),this.map["cp:contentStatus"].render($,I.contentStatus),this.map["cp:contentType"].render($,I.contentType),this.map["dcterms:created"].render($,I.created),this.map["dcterms:modified"].render($,I.modified),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}q8.DateFormat=function($){return $.toISOString().replace(/[.]\d{3}/,"")};q8.DateAttrs={"xsi:type":"dcterms:W3CDTF"};q8.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"};B10.exports=q8});var xZ=O((uT1,R10)=>{var xn0=L0();class v10 extends xn0{get tag(){return"t"}render($,I){if($.openNode("t"),/^\s|\n|\s$/.test(I))$.addAttribute("xml:space","preserve");$.writeText(I),$.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,($,I)=>String.fromCharCode(parseInt(I,16)))}parseOpen($){switch($.name){case"t":return this._text=[],!0;default:return!1}}parseText($){this._text.push($)}parseClose(){return!1}}R10.exports=v10});var vK=O((xT1,j10)=>{var kn0=xZ(),fn0=_Z(),bn0=L0();class kZ extends bn0{constructor($){super();this.model=$}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new kn0)}get fontXform(){return this._fontXform||(this._fontXform=new fn0(kZ.FONT_OPTIONS))}render($,I){if(I=I||this.model,$.openNode("r"),I.font)this.fontXform.render($,I.font);this.textXform.render($,I.text),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen($),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){switch($){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:if(this.parser)this.parser.parseClose($);return!0}}}kZ.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"};j10.exports=kZ});var S10=O((kT1,_10)=>{var in0=xZ(),nn0=vK(),pn0=L0();class C10 extends pn0{constructor(){super();this.map={r:new nn0,t:new in0}}get tag(){return"rPh"}render($,I){if($.openNode(this.tag,{sb:I.sb||0,eb:I.eb||0}),I&&I.hasOwnProperty("richText")&&I.richText){let{r:U}=this.map;I.richText.forEach((Y)=>{U.render($,Y)})}else if(I)this.map.t.render($,I.text);$.closeNode()}parseOpen($){let{name:I}=$;if(this.parser)return this.parser.parseOpen($),!0;if(I===this.tag)return this.model={sb:parseInt($.attributes.sb,10),eb:parseInt($.attributes.eb,10)},!0;if(this.parser=this.map[I],this.parser)return this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){switch($){case"r":{let I=this.model.richText;if(!I)I=this.model.richText=[];I.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break;default:break}this.parser=void 0}return!0}switch($){case this.tag:return!1;default:return!0}}}_10.exports=C10});var h10=O((fT1,y10)=>{var cn0=xZ(),dn0=vK(),mn0=S10(),ln0=L0();class g10 extends ln0{constructor($){super();this.model=$,this.map={r:new dn0,t:new cn0,rPh:new mn0}}get tag(){return"si"}render($,I){if($.openNode(this.tag),I&&I.hasOwnProperty("richText")&&I.richText)if(I.richText.length)I.richText.forEach((U)=>{this.map.r.render($,U)});else this.map.t.render($,"");else if(I!==void 0&&I!==null)this.map.t.render($,I);$.closeNode()}parseOpen($){let{name:I}=$;if(this.parser)return this.parser.parseOpen($),!0;if(I===this.tag)return this.model={},!0;if(this.parser=this.map[I],this.parser)return this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){switch($){case"r":{let I=this.model.richText;if(!I)I=this.model.richText=[];I.push(this.parser.model);break}case"t":this.model=this.parser.model;break;default:break}this.parser=void 0}return!0}switch($){case this.tag:return!1;default:return!0}}}y10.exports=g10});var Yj=O((bT1,x10)=>{var on0=U6(),rn0=L0(),tn0=h10();class u10 extends rn0{constructor($){super();this.model=$||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new tn0)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString($){return this.model.values[$]}add($){return $.richText?this.addRichText($):this.addText($)}addText($){let I=this.hash[$];if(I===void 0)I=this.hash[$]=this.model.values.length,this.model.values.push($);return this.model.count++,I}addRichText($){let I=this.sharedStringXform.toXml($),U=this.rich[I];if(U===void 0)U=this.rich[I]=this.model.values.length,this.model.values.push($);return this.model.count++,U}render($,I){I=I||this._values,$.openXml(on0.StdDocAttributes),$.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:I.count,uniqueCount:I.values.length});let U=this.sharedStringXform;I.values.forEach((Y)=>{U.render($,Y)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen($),!0;default:throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0;return!0}switch($){case"sst":return!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}x10.exports=u10});var b10=O((iT1,f10)=>{var an0=L0();class k10 extends an0{render($,I){$.leafNode("Relationship",I)}parseOpen($){switch($.name){case"Relationship":return this.model=$.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}f10.exports=k10});var bZ=O((nT1,i10)=>{var sn0=U6(),en0=L0(),$p0=b10();class fZ extends en0{constructor(){super();this.map={Relationship:new $p0}}render($,I){I=I||this._values,$.openXml(sn0.StdDocAttributes),$.openNode("Relationships",fZ.RELATIONSHIPS_ATTRIBUTES),I.forEach((U)=>{this.map.Relationship.render($,U)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.push(this.parser.model),this.parser=void 0;return!0}switch($){case"Relationships":return!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}fZ.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"};i10.exports=fZ});var Jj=O((pT1,n10)=>{var Ip0=U6(),Up0=L0();class iZ extends Up0{render($,I){$.openXml(Ip0.StdDocAttributes),$.openNode("Types",iZ.PROPERTY_ATTRIBUTES);let U={};if((I.media||[]).forEach((J)=>{if(J.type==="image"){let Q=J.extension;if(!U[Q])U[Q]=!0,$.leafNode("Default",{Extension:Q,ContentType:`image/${Q}`})}}),$.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),$.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),$.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),I.worksheets.forEach((J)=>{let Q=`/xl/worksheets/sheet${J.id}.xml`;$.leafNode("Override",{PartName:Q,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),$.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),$.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),I.sharedStrings&&I.sharedStrings.count)$.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"});if(I.tables)I.tables.forEach((J)=>{$.leafNode("Override",{PartName:`/xl/tables/${J.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})});if(I.drawings)I.drawings.forEach((J)=>{$.leafNode("Override",{PartName:`/xl/drawings/${J.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})});if(I.commentRefs)$.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),I.commentRefs.forEach(({commentName:J})=>{$.leafNode("Override",{PartName:`/xl/${J}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})});$.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),$.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),$.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}iZ.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"};n10.exports=iZ});var d10=O((cT1,c10)=>{var Yp0=L0();class p10 extends Yp0{render($,I){$.openNode("HeadingPairs"),$.openNode("vt:vector",{size:2,baseType:"variant"}),$.openNode("vt:variant"),$.leafNode("vt:lpstr",void 0,"Worksheets"),$.closeNode(),$.openNode("vt:variant"),$.leafNode("vt:i4",void 0,I.length),$.closeNode(),$.closeNode(),$.closeNode()}parseOpen($){return $.name==="HeadingPairs"}parseText(){}parseClose($){return $!=="HeadingPairs"}}c10.exports=p10});var o10=O((dT1,l10)=>{var Jp0=L0();class m10 extends Jp0{render($,I){$.openNode("TitlesOfParts"),$.openNode("vt:vector",{size:I.length,baseType:"lpstr"}),I.forEach((U)=>{$.leafNode("vt:lpstr",void 0,U.name)}),$.closeNode(),$.closeNode()}parseOpen($){return $.name==="TitlesOfParts"}parseText(){}parseClose($){return $!=="TitlesOfParts"}}l10.exports=m10});var Qj=O((mT1,t10)=>{var Qp0=U6(),Kp0=L0(),r10=RZ(),qp0=d10(),Hp0=o10();class qY extends Kp0{constructor(){super();this.map={Company:new r10({tag:"Company"}),Manager:new r10({tag:"Manager"}),HeadingPairs:new qp0,TitleOfParts:new Hp0}}render($,I){$.openXml(Qp0.StdDocAttributes),$.openNode("Properties",qY.PROPERTY_ATTRIBUTES),$.leafNode("Application",void 0,"Microsoft Excel"),$.leafNode("DocSecurity",void 0,"0"),$.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render($,I.worksheets),this.map.TitleOfParts.render($,I.worksheets),this.map.Company.render($,I.company||""),this.map.Manager.render($,I.manager),$.leafNode("LinksUpToDate",void 0,"false"),$.leafNode("SharedDoc",void 0,"false"),$.leafNode("HyperlinksChanged",void 0,"false"),$.leafNode("AppVersion",void 0,"16.0300"),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"Properties":return!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}qY.DateFormat=function($){return $.toISOString().replace(/[.]\d{3,6}/,"")};qY.DateAttrs={"xsi:type":"dcterms:W3CDTF"};qY.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"};t10.exports=qY});var e10=O((lT1,s10)=>{var Gp0=L0(),Wp0=W4();class a10 extends Gp0{render($,I){$.openNode("definedName",{name:I.name,localSheetId:I.localSheetId}),$.writeText(I.ranges.join(",")),$.closeNode()}parseOpen($){switch($.name){case"definedName":return this._parsedName=$.attributes.name,this._parsedLocalSheetId=$.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText($){this._parsedText.push($)}parseClose(){if(this.model={name:this._parsedName,ranges:wp0(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0)this.model.localSheetId=parseInt(this._parsedLocalSheetId,10);return!1}}function Kj($){try{return Wp0.decodeEx($),!0}catch(I){return!1}}function wp0($){let I=[],U=!1,Y="";return $.split(",").forEach((J)=>{if(!J)return;let Q=(J.match(/'/g)||[]).length;if(!Q){if(U)Y+=`${J},`;else if(Kj(J))I.push(J);return}let K=Q%2===0;if(!U&&K&&Kj(J))I.push(J);else if(U&&!K){if(U=!1,Kj(Y+J))I.push(Y+J);Y=""}else U=!0,Y+=`${J},`}),I}s10.exports=a10});var U40=O((oT1,I40)=>{var Vp0=O6(),Zp0=L0();class $40 extends Zp0{render($,I){$.leafNode("sheet",{sheetId:I.id,name:I.name,state:I.state,"r:id":I.rId})}parseOpen($){if($.name==="sheet")return this.model={name:Vp0.xmlDecode($.attributes.name),id:parseInt($.attributes.sheetId,10),state:$.attributes.state,rId:$.attributes["r:id"]},!0;return!1}parseText(){}parseClose(){return!1}}I40.exports=$40});var Q40=O((rT1,J40)=>{var zp0=L0();class Y40 extends zp0{render($,I){let U={xWindow:I.x||0,yWindow:I.y||0,windowWidth:I.width||12000,windowHeight:I.height||24000,firstSheet:I.firstSheet,activeTab:I.activeTab};if(I.visibility&&I.visibility!=="visible")U.visibility=I.visibility;$.leafNode("workbookView",U)}parseOpen($){if($.name==="workbookView"){let I=this.model={},U=function(J,Q,K){let q=Q!==void 0?I[J]=Q:K;if(q!==void 0)I[J]=q},Y=function(J,Q,K){let q=Q!==void 0?I[J]=parseInt(Q,10):K;if(q!==void 0)I[J]=q};return Y("x",$.attributes.xWindow,0),Y("y",$.attributes.yWindow,0),Y("width",$.attributes.windowWidth,25000),Y("height",$.attributes.windowHeight,1e4),U("visibility",$.attributes.visibility,"visible"),Y("activeTab",$.attributes.activeTab,void 0),Y("firstSheet",$.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}J40.exports=Y40});var H40=O((tT1,q40)=>{var Xp0=L0();class K40 extends Xp0{render($,I){$.leafNode("workbookPr",{date1904:I.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen($){if($.name==="workbookPr")return this.model={date1904:$.attributes.date1904==="1"},!0;return!1}parseText(){}parseClose(){return!1}}q40.exports=K40});var w40=O((aT1,W40)=>{var Lp0=L0();class G40 extends Lp0{render($,I){$.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:I.fullCalcOnLoad?1:void 0})}parseOpen($){if($.name==="calcPr")return this.model={},!0;return!1}parseText(){}parseClose(){return!1}}W40.exports=G40});var nZ=O((sT1,V40)=>{var Dp0=X4(),Op0=W4(),Fp0=U6(),Np0=L0(),Mp0=KY(),qj=f9(),Ap0=e10(),Pp0=U40(),Tp0=Q40(),Ep0=H40(),Bp0=w40();class HY extends Np0{constructor(){super();this.map={fileVersion:HY.STATIC_XFORMS.fileVersion,workbookPr:new Ep0,bookViews:new qj({tag:"bookViews",count:!1,childXform:new Tp0}),sheets:new qj({tag:"sheets",count:!1,childXform:new Pp0}),definedNames:new qj({tag:"definedNames",count:!1,childXform:new Ap0}),calcPr:new Bp0}}prepare($){$.sheets=$.worksheets;let I=[],U=0;if($.sheets.forEach((Y)=>{if(Y.pageSetup&&Y.pageSetup.printArea)Y.pageSetup.printArea.split("&&").forEach((J)=>{let Q=J.split(":"),K={name:"_xlnm.Print_Area",ranges:[`'${Y.name}'!$${Q[0]}:$${Q[1]}`],localSheetId:U};I.push(K)});if(Y.pageSetup&&(Y.pageSetup.printTitlesRow||Y.pageSetup.printTitlesColumn)){let J=[];if(Y.pageSetup.printTitlesColumn){let K=Y.pageSetup.printTitlesColumn.split(":");J.push(`'${Y.name}'!$${K[0]}:$${K[1]}`)}if(Y.pageSetup.printTitlesRow){let K=Y.pageSetup.printTitlesRow.split(":");J.push(`'${Y.name}'!$${K[0]}:$${K[1]}`)}let Q={name:"_xlnm.Print_Titles",ranges:J,localSheetId:U};I.push(Q)}U++}),I.length)$.definedNames=$.definedNames.concat(I);($.media||[]).forEach((Y,J)=>{Y.name=Y.type+(J+1)})}render($,I){$.openXml(Fp0.StdDocAttributes),$.openNode("workbook",HY.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render($),this.map.workbookPr.render($,I.properties),this.map.bookViews.render($,I.views),this.map.sheets.render($,I.sheets),this.map.definedNames.render($,I.definedNames),this.map.calcPr.render($,I.calcProperties),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"workbook":return!0;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);return!0}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"workbook":if(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model)this.model.definedNames=this.map.definedNames.model;return!1;default:return!0}}reconcile($){let I=($.workbookRels||[]).reduce((K,q)=>{return K[q.Id]=q,K},{}),U=[],Y,J=0;($.sheets||[]).forEach((K)=>{let q=I[K.rId];if(!q)return;if(Y=$.worksheetHash[`xl/${q.Target.replace(/^(\s|\/xl\/)+/,"")}`],Y)Y.name=K.name,Y.id=K.id,Y.state=K.state,U[J++]=Y});let Q=[];Dp0.each($.definedNames,(K)=>{if(K.name==="_xlnm.Print_Area"){if(Y=U[K.localSheetId],Y){if(!Y.pageSetup)Y.pageSetup={};let q=Op0.decodeEx(K.ranges[0]);Y.pageSetup.printArea=Y.pageSetup.printArea?`${Y.pageSetup.printArea}&&${q.dimensions}`:q.dimensions}}else if(K.name==="_xlnm.Print_Titles"){if(Y=U[K.localSheetId],Y){if(!Y.pageSetup)Y.pageSetup={};let q=K.ranges.join(","),H=/\$/g,G=/\$\d+:\$\d+/,W=q.match(G);if(W&&W.length){let V=W[0];Y.pageSetup.printTitlesRow=V.replace(H,"")}let w=/\$[A-Z]+:\$[A-Z]+/,Z=q.match(w);if(Z&&Z.length){let V=Z[0];Y.pageSetup.printTitlesColumn=V.replace(H,"")}}}else Q.push(K)}),$.definedNames=Q,$.media.forEach((K,q)=>{K.index=q})}}HY.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"};HY.STATIC_XFORMS={fileVersion:new Mp0({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})};V40.exports=HY});var n9=O((eT1,Z40)=>{Z40.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}});var F40=O(($E1,O40)=>{var z40=X4(),vp0=Z5(),X40=W4(),L40=I8();class D40{constructor(){this.merges={}}add($){if(this.merges[$.master])this.merges[$.master].expandToAddress($.address);else{let I=`${$.master}:${$.address}`;this.merges[$.master]=new vp0(I)}}get mergeCells(){return z40.map(this.merges,($)=>$.range)}reconcile($,I){z40.each($,(U)=>{let Y=X40.decode(U);for(let J=Y.top;J<=Y.bottom;J++){let Q=I[J-1];for(let K=Y.left;K<=Y.right;K++){let q=Q.cells[K-1];if(!q)Q.cells[K]={type:L40.ValueType.Null,address:X40.encodeAddress(J,K)};else if(q.type===L40.ValueType.Merge)q.master=Y.tl}}})}getMasterAddress($){let I=this.hash[$];return I&&I.tl}}O40.exports=D40});var P40=O((IE1,A40)=>{var p9=O6(),Rp0=L0(),jp0=Z5(),b0=I8(),Cp0=vK();function N40($){if($===null||$===void 0)return b0.ValueType.Null;if($ instanceof String||typeof $==="string")return b0.ValueType.String;if(typeof $==="number")return b0.ValueType.Number;if(typeof $==="boolean")return b0.ValueType.Boolean;if($ instanceof Date)return b0.ValueType.Date;if($.text&&$.hyperlink)return b0.ValueType.Hyperlink;if($.formula)return b0.ValueType.Formula;if($.error)return b0.ValueType.Error;throw Error("I could not understand type of value")}function _p0($){switch($.type){case b0.ValueType.Formula:return N40($.result);default:return $.type}}class M40 extends Rp0{constructor(){super();this.richTextXForm=new Cp0}get tag(){return"c"}prepare($,I){let U=I.styles.addStyleModel($.style||{},_p0($));if(U)$.styleId=U;if($.comment)I.comments.push({...$.comment,ref:$.address});switch($.type){case b0.ValueType.String:case b0.ValueType.RichText:if(I.sharedStrings)$.ssId=I.sharedStrings.add($.value);break;case b0.ValueType.Date:if(I.date1904)$.date1904=!0;break;case b0.ValueType.Hyperlink:if(I.sharedStrings&&$.text!==void 0&&$.text!==null)$.ssId=I.sharedStrings.add($.text);I.hyperlinks.push({address:$.address,target:$.hyperlink,tooltip:$.tooltip});break;case b0.ValueType.Merge:I.merges.add($);break;case b0.ValueType.Formula:if(I.date1904)$.date1904=!0;if($.shareType==="shared")$.si=I.siFormulae++;if($.formula)I.formulae[$.address]=$;else if($.sharedFormula){let Y=I.formulae[$.sharedFormula];if(!Y)throw Error(`Shared Formula master must exist above and or left of clone for cell ${$.address}`);if(Y.si===void 0)Y.shareType="shared",Y.si=I.siFormulae++,Y.range=new jp0(Y.address,$.address);else if(Y.range)Y.range.expandToAddress($.address);$.si=Y.si}break;default:break}}renderFormula($,I){let U=null;switch(I.shareType){case"shared":U={t:"shared",ref:I.ref||I.range.range,si:I.si};break;case"array":U={t:"array",ref:I.ref};break;default:if(I.si!==void 0)U={t:"shared",si:I.si};break}switch(N40(I.result)){case b0.ValueType.Null:$.leafNode("f",U,I.formula);break;case b0.ValueType.String:$.addAttribute("t","str"),$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result);break;case b0.ValueType.Number:$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result);break;case b0.ValueType.Boolean:$.addAttribute("t","b"),$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result?1:0);break;case b0.ValueType.Error:$.addAttribute("t","e"),$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result.error);break;case b0.ValueType.Date:$.leafNode("f",U,I.formula),$.leafNode("v",null,p9.dateToExcel(I.result,I.date1904));break;default:throw Error("I could not understand type of value")}}render($,I){if(I.type===b0.ValueType.Null&&!I.styleId)return;if($.openNode("c"),$.addAttribute("r",I.address),I.styleId)$.addAttribute("s",I.styleId);switch(I.type){case b0.ValueType.Null:break;case b0.ValueType.Number:$.leafNode("v",null,I.value);break;case b0.ValueType.Boolean:$.addAttribute("t","b"),$.leafNode("v",null,I.value?"1":"0");break;case b0.ValueType.Error:$.addAttribute("t","e"),$.leafNode("v",null,I.value.error);break;case b0.ValueType.String:case b0.ValueType.RichText:if(I.ssId!==void 0)$.addAttribute("t","s"),$.leafNode("v",null,I.ssId);else if(I.value&&I.value.richText)$.addAttribute("t","inlineStr"),$.openNode("is"),I.value.richText.forEach((U)=>{this.richTextXForm.render($,U)}),$.closeNode("is");else $.addAttribute("t","str"),$.leafNode("v",null,I.value);break;case b0.ValueType.Date:$.leafNode("v",null,p9.dateToExcel(I.value,I.date1904));break;case b0.ValueType.Hyperlink:if(I.ssId!==void 0)$.addAttribute("t","s"),$.leafNode("v",null,I.ssId);else $.addAttribute("t","str"),$.leafNode("v",null,I.text);break;case b0.ValueType.Formula:this.renderFormula($,I);break;case b0.ValueType.Merge:break;default:break}$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"c":if(this.model={address:$.attributes.r},this.t=$.attributes.t,$.attributes.s)this.model.styleId=parseInt($.attributes.s,10);return!0;case"f":return this.currentNode="f",this.model.si=$.attributes.si,this.model.shareType=$.attributes.t,this.model.ref=$.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser){this.parser.parseText($);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+$:$;break;case"v":case"t":if(this.model.value&&this.model.value.richText)this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+$:$;else this.model.value=this.model.value?this.model.value+$:$;break;default:break}}parseClose($){switch($){case"c":{let{model:I}=this;if(I.formula||I.shareType){if(I.type=b0.ValueType.Formula,I.value){if(this.t==="str")I.result=p9.xmlDecode(I.value);else if(this.t==="b")I.result=parseInt(I.value,10)!==0;else if(this.t==="e")I.result={error:I.value};else I.result=parseFloat(I.value);I.value=void 0}}else if(I.value!==void 0)switch(this.t){case"s":I.type=b0.ValueType.String,I.value=parseInt(I.value,10);break;case"str":I.type=b0.ValueType.String,I.value=p9.xmlDecode(I.value);break;case"inlineStr":I.type=b0.ValueType.String;break;case"b":I.type=b0.ValueType.Boolean,I.value=parseInt(I.value,10)!==0;break;case"e":I.type=b0.ValueType.Error,I.value={error:I.value};break;default:I.type=b0.ValueType.Number,I.value=parseFloat(I.value);break}else if(I.styleId)I.type=b0.ValueType.Null;else I.type=b0.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":if(this.parser)return this.parser.parseClose($),!0;return this.currentNode=void 0,!0;case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:if(this.parser)return this.parser.parseClose($),!0;return!1}}reconcile($,I){let U=$.styleId&&I.styles&&I.styles.getStyleModel($.styleId);if(U)$.style=U;if($.styleId!==void 0)$.styleId=void 0;switch($.type){case b0.ValueType.String:if(typeof $.value==="number"){if(I.sharedStrings)$.value=I.sharedStrings.getString($.value)}if($.value.richText)$.type=b0.ValueType.RichText;break;case b0.ValueType.Number:if(U&&p9.isDateFmt(U.numFmt))$.type=b0.ValueType.Date,$.value=p9.excelToDate($.value,I.date1904);break;case b0.ValueType.Formula:if($.result!==void 0&&U&&p9.isDateFmt(U.numFmt))$.result=p9.excelToDate($.result,I.date1904);if($.shareType==="shared"){if($.ref)I.formulae[$.si]=$.address;else $.sharedFormula=I.formulae[$.si],delete $.shareType;delete $.si}break;default:break}let Y=I.hyperlinkMap[$.address];if(Y){if($.type===b0.ValueType.Formula)$.text=$.result,$.result=void 0;else $.text=$.value,$.value=void 0;$.type=b0.ValueType.Hyperlink,$.hyperlink=Y}let J=I.commentsMap&&I.commentsMap[$.address];if(J)$.comment=J}}A40.exports=M40});var Gj=O((UE1,E40)=>{var Sp0=L0(),Hj=O6(),gp0=P40();class T40 extends Sp0{constructor($){super();this.maxItems=$&&$.maxItems,this.map={c:new gp0}}get tag(){return"row"}prepare($,I){let U=I.styles.addStyleModel($.style);if(U)$.styleId=U;let Y=this.map.c;$.cells.forEach((J)=>{Y.prepare(J,I)})}render($,I,U){if($.openNode("row"),$.addAttribute("r",I.number),I.height)$.addAttribute("ht",I.height),$.addAttribute("customHeight","1");if(I.hidden)$.addAttribute("hidden","1");if(I.min>0&&I.max>0&&I.min<=I.max)$.addAttribute("spans",`${I.min}:${I.max}`);if(I.styleId)$.addAttribute("s",I.styleId),$.addAttribute("customFormat","1");if($.addAttribute("x14ac:dyDescent","0.25"),I.outlineLevel)$.addAttribute("outlineLevel",I.outlineLevel);if(I.collapsed)$.addAttribute("collapsed","1");let Y=this.map.c;I.cells.forEach((J)=>{Y.render($,J,U)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if($.name==="row"){this.numRowsSeen+=1;let I=$.attributes.spans?$.attributes.spans.split(":").map((Y)=>parseInt(Y,10)):[void 0,void 0],U=this.model={number:parseInt($.attributes.r,10),min:I[0],max:I[1],cells:[]};if($.attributes.s)U.styleId=parseInt($.attributes.s,10);if(Hj.parseBoolean($.attributes.hidden))U.hidden=!0;if(Hj.parseBoolean($.attributes.bestFit))U.bestFit=!0;if($.attributes.ht)U.height=parseFloat($.attributes.ht);if($.attributes.outlineLevel)U.outlineLevel=parseInt($.attributes.outlineLevel,10);if(Hj.parseBoolean($.attributes.collapsed))U.collapsed=!0;return!0}if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile($,I){if($.style=$.styleId?I.styles.getStyleModel($.styleId):{},$.styleId!==void 0)$.styleId=void 0;let U=this.map.c;$.cells.forEach((Y)=>{U.reconcile(Y,I)})}}E40.exports=T40});var wj=O((YE1,v40)=>{var Wj=O6(),yp0=L0();class B40 extends yp0{get tag(){return"col"}prepare($,I){let U=I.styles.addStyleModel($.style||{});if(U)$.styleId=U}render($,I){if($.openNode("col"),$.addAttribute("min",I.min),$.addAttribute("max",I.max),I.width)$.addAttribute("width",I.width);if(I.styleId)$.addAttribute("style",I.styleId);if(I.hidden)$.addAttribute("hidden","1");if(I.bestFit)$.addAttribute("bestFit","1");if(I.outlineLevel)$.addAttribute("outlineLevel",I.outlineLevel);if(I.collapsed)$.addAttribute("collapsed","1");$.addAttribute("customWidth","1"),$.closeNode()}parseOpen($){if($.name==="col"){let I=this.model={min:parseInt($.attributes.min||"0",10),max:parseInt($.attributes.max||"0",10),width:$.attributes.width===void 0?void 0:parseFloat($.attributes.width||"0")};if($.attributes.style)I.styleId=parseInt($.attributes.style,10);if(Wj.parseBoolean($.attributes.hidden))I.hidden=!0;if(Wj.parseBoolean($.attributes.bestFit))I.bestFit=!0;if($.attributes.outlineLevel)I.outlineLevel=parseInt($.attributes.outlineLevel,10);if(Wj.parseBoolean($.attributes.collapsed))I.collapsed=!0;return!0}return!1}parseText(){}parseClose(){return!1}reconcile($,I){if($.styleId)$.style=I.styles.getStyleModel($.styleId)}}v40.exports=B40});var C40=O((JE1,j40)=>{var hp0=L0();class R40 extends hp0{get tag(){return"dimension"}render($,I){if(I)$.leafNode("dimension",{ref:I})}parseOpen($){if($.name==="dimension")return this.model=$.attributes.ref,!0;return!1}parseText(){}parseClose(){return!1}}j40.exports=R40});var Vj=O((QE1,S40)=>{var up0=L0();class _40 extends up0{get tag(){return"hyperlink"}render($,I){if(this.isInternalLink(I))$.leafNode("hyperlink",{ref:I.address,"r:id":I.rId,tooltip:I.tooltip,location:I.target});else $.leafNode("hyperlink",{ref:I.address,"r:id":I.rId,tooltip:I.tooltip})}parseOpen($){if($.name==="hyperlink"){if(this.model={address:$.attributes.ref,rId:$.attributes["r:id"],tooltip:$.attributes.tooltip},$.attributes.location)this.model.target=$.attributes.location;return!0}return!1}parseText(){}parseClose(){return!1}isInternalLink($){return $.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test($.target)}}S40.exports=_40});var h40=O((KE1,y40)=>{var xp0=L0();class g40 extends xp0{get tag(){return"mergeCell"}render($,I){$.leafNode("mergeCell",{ref:I})}parseOpen($){if($.name==="mergeCell")return this.model=$.attributes.ref,!0;return!1}parseText(){}parseClose(){return!1}}y40.exports=g40});var Xj=O((qE1,x40)=>{var RK=X4(),zj=O6(),GY=W4(),kp0=L0(),fp0=Z5();function WY($,I,U,Y){let J=I[U];if(J!==void 0)$[U]=J;else if(Y!==void 0)$[U]=Y}function Zj($,I,U,Y){let J=I[U];if(J!==void 0)$[U]=zj.parseBoolean(J);else if(Y!==void 0)$[U]=Y}function bp0($){let I=RK.map($,(J,Q)=>({address:Q,dataValidation:J,marked:!1})).sort((J,Q)=>RK.strcmp(J.address,Q.address)),U=RK.keyBy(I,"address"),Y=(J,Q,K)=>{for(let q=0;q{if(!J.marked){let Q=GY.decodeEx(J.address);if(Q.dimensions)return U[Q.dimensions].marked=!0,{...J.dataValidation,sqref:J.address};let K=1,q=GY.encodeAddress(Q.row+K,Q.col);while($[q]&&RK.isEqual(J.dataValidation,$[q]))K++,q=GY.encodeAddress(Q.row+K,Q.col);let H=1;while(Y(Q,K,Q.col+H))H++;for(let G=0;G1||H>1){let G=Q.row+(K-1),W=Q.col+(H-1);return{...J.dataValidation,sqref:`${J.address}:${GY.encodeAddress(G,W)}`}}return{...J.dataValidation,sqref:J.address}}return null}).filter(Boolean)}class u40 extends kp0{get tag(){return"dataValidations"}render($,I){let U=bp0(I);if(U.length)$.openNode("dataValidations",{count:U.length}),U.forEach((Y)=>{if($.openNode("dataValidation"),Y.type!=="any"){if($.addAttribute("type",Y.type),Y.operator&&Y.type!=="list"&&Y.operator!=="between")$.addAttribute("operator",Y.operator);if(Y.allowBlank)$.addAttribute("allowBlank","1")}if(Y.showInputMessage)$.addAttribute("showInputMessage","1");if(Y.promptTitle)$.addAttribute("promptTitle",Y.promptTitle);if(Y.prompt)$.addAttribute("prompt",Y.prompt);if(Y.showErrorMessage)$.addAttribute("showErrorMessage","1");if(Y.errorStyle)$.addAttribute("errorStyle",Y.errorStyle);if(Y.errorTitle)$.addAttribute("errorTitle",Y.errorTitle);if(Y.error)$.addAttribute("error",Y.error);$.addAttribute("sqref",Y.sqref),(Y.formulae||[]).forEach((J,Q)=>{if($.openNode(`formula${Q+1}`),Y.type==="date")$.writeText(zj.dateToExcel(new Date(J)));else $.writeText(J);$.closeNode()}),$.closeNode()}),$.closeNode()}parseOpen($){switch($.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=$.attributes.sqref;let I={type:$.attributes.type||"any",formulae:[]};if($.attributes.type)Zj(I,$.attributes,"allowBlank");switch(Zj(I,$.attributes,"showInputMessage"),Zj(I,$.attributes,"showErrorMessage"),I.type){case"any":case"list":case"custom":break;default:WY(I,$.attributes,"operator","between");break}return WY(I,$.attributes,"promptTitle"),WY(I,$.attributes,"prompt"),WY(I,$.attributes,"errorStyle"),WY(I,$.attributes,"errorTitle"),WY(I,$.attributes,"error"),this._dataValidation=I,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText($){if(this._formula)this._formula.push($)}parseClose($){switch($){case"dataValidations":return!1;case"dataValidation":{if(!this._dataValidation.formulae||!this._dataValidation.formulae.length)delete this._dataValidation.formulae,delete this._dataValidation.operator;return(this._address.split(/\s+/g)||[]).forEach((U)=>{if(U.includes(":"))new fp0(U).forEachAddress((J)=>{this.model[J]=this._dataValidation});else this.model[U]=this._dataValidation}),!0}case"formula1":case"formula2":{let I=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":I=parseInt(I,10);break;case"decimal":I=parseFloat(I);break;case"date":I=zj.excelToDate(parseFloat(I));break;default:break}return this._dataValidation.formulae.push(I),this._formula=void 0,!0}default:return!0}}}x40.exports=u40});var b40=O((HE1,f40)=>{var ip0=L0();class k40 extends ip0{get tag(){return"pageSetUpPr"}render($,I){if(I&&I.fitToPage)return $.leafNode(this.tag,{fitToPage:I.fitToPage?"1":void 0}),!0;return!1}parseOpen($){if($.name===this.tag)return this.model={fitToPage:$.attributes.fitToPage==="1"},!0;return!1}parseText(){}parseClose(){return!1}}f40.exports=k40});var p40=O((GE1,n40)=>{var np0=L0(),wY=($)=>typeof $<"u";class i40 extends np0{get tag(){return"outlinePr"}render($,I){if(I&&(wY(I.summaryBelow)||wY(I.summaryRight)))return $.leafNode(this.tag,{summaryBelow:wY(I.summaryBelow)?Number(I.summaryBelow):void 0,summaryRight:wY(I.summaryRight)?Number(I.summaryRight):void 0}),!0;return!1}parseOpen($){if($.name===this.tag)return this.model={summaryBelow:wY($.attributes.summaryBelow)?Boolean(Number($.attributes.summaryBelow)):void 0,summaryRight:wY($.attributes.summaryRight)?Boolean(Number($.attributes.summaryRight)):void 0},!0;return!1}parseText(){}parseClose(){return!1}}n40.exports=i40});var Lj=O((WE1,d40)=>{var pp0=L0(),cp0=b9(),dp0=b40(),mp0=p40();class c40 extends pp0{constructor(){super();this.map={tabColor:new cp0("tabColor"),pageSetUpPr:new dp0,outlinePr:new mp0}}get tag(){return"sheetPr"}render($,I){if(I){$.addRollback(),$.openNode("sheetPr");let U=!1;if(U=this.map.tabColor.render($,I.tabColor)||U,U=this.map.pageSetUpPr.render($,I.pageSetup)||U,U=this.map.outlinePr.render($,I.outlineProperties)||U,U)$.closeNode(),$.commit();else $.rollback()}}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if($.name===this.tag)return this.reset(),!0;if(this.map[$.name])return this.parser=this.map[$.name],this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)return this.parser.parseText($),!0;return!1}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model){if(this.model={},this.map.tabColor.model)this.model.tabColor=this.map.tabColor.model;if(this.map.pageSetUpPr.model)this.model.pageSetup=this.map.pageSetUpPr.model;if(this.map.outlinePr.model)this.model.outlineProperties=this.map.outlinePr.model}else this.model=null;return!1}}d40.exports=c40});var Dj=O((wE1,l40)=>{var lp0=X4(),op0=L0();class m40 extends op0{get tag(){return"sheetFormatPr"}render($,I){if(I){let U={defaultRowHeight:I.defaultRowHeight,outlineLevelRow:I.outlineLevelRow,outlineLevelCol:I.outlineLevelCol,"x14ac:dyDescent":I.dyDescent};if(I.defaultColWidth)U.defaultColWidth=I.defaultColWidth;if(!I.defaultRowHeight||I.defaultRowHeight!==15)U.customHeight="1";if(lp0.some(U,(Y)=>Y!==void 0))$.leafNode("sheetFormatPr",U)}}parseOpen($){if($.name==="sheetFormatPr"){if(this.model={defaultRowHeight:parseFloat($.attributes.defaultRowHeight||"0"),dyDescent:parseFloat($.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt($.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt($.attributes.outlineLevelCol||"0",10)},$.attributes.defaultColWidth)this.model.defaultColWidth=parseFloat($.attributes.defaultColWidth);return!0}return!1}parseText(){}parseClose(){return!1}}l40.exports=m40});var Oj=O((VE1,r40)=>{var rp0=W4(),tp0=L0(),ap0={frozen:"frozen",frozenSplit:"frozen",split:"split"};class o40 extends tp0{get tag(){return"sheetView"}prepare($){switch($.state){case"frozen":case"split":break;default:$.state="normal";break}}render($,I){$.openNode("sheetView",{workbookViewId:I.workbookViewId||0});let U=function(q,H,G){if(G)$.addAttribute(q,H)};U("rightToLeft","1",I.rightToLeft===!0),U("tabSelected","1",I.tabSelected),U("showRuler","0",I.showRuler===!1),U("showRowColHeaders","0",I.showRowColHeaders===!1),U("showGridLines","0",I.showGridLines===!1),U("zoomScale",I.zoomScale,I.zoomScale),U("zoomScaleNormal",I.zoomScaleNormal,I.zoomScaleNormal),U("view",I.style,I.style);let Y,J,Q,K;switch(I.state){case"frozen":J=I.xSplit||0,Q=I.ySplit||0,Y=I.topLeftCell||rp0.getAddress(Q+1,J+1).address,K=I.xSplit&&I.ySplit&&"bottomRight"||I.xSplit&&"topRight"||"bottomLeft",$.leafNode("pane",{xSplit:I.xSplit||void 0,ySplit:I.ySplit||void 0,topLeftCell:Y,activePane:K,state:"frozen"}),$.leafNode("selection",{pane:K,activeCell:I.activeCell,sqref:I.activeCell});break;case"split":if(I.activePane==="topLeft")I.activePane=void 0;$.leafNode("pane",{xSplit:I.xSplit||void 0,ySplit:I.ySplit||void 0,topLeftCell:I.topLeftCell,activePane:I.activePane}),$.leafNode("selection",{pane:I.activePane,activeCell:I.activeCell,sqref:I.activeCell});break;case"normal":if(I.activeCell)$.leafNode("selection",{activeCell:I.activeCell,sqref:I.activeCell});break;default:break}$.closeNode()}parseOpen($){switch($.name){case"sheetView":return this.sheetView={workbookViewId:parseInt($.attributes.workbookViewId,10),rightToLeft:$.attributes.rightToLeft==="1",tabSelected:$.attributes.tabSelected==="1",showRuler:$.attributes.showRuler!=="0",showRowColHeaders:$.attributes.showRowColHeaders!=="0",showGridLines:$.attributes.showGridLines!=="0",zoomScale:parseInt($.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt($.attributes.zoomScaleNormal||"100",10),style:$.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt($.attributes.xSplit||"0",10),ySplit:parseInt($.attributes.ySplit||"0",10),topLeftCell:$.attributes.topLeftCell,activePane:$.attributes.activePane||"topLeft",state:$.attributes.state},!0;case"selection":{let I=$.attributes.pane||"topLeft";return this.selections[I]={pane:I,activeCell:$.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose($){let I,U;switch($){case"sheetView":if(this.sheetView&&this.pane){if(I=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:ap0[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split")I.activePane=this.pane.activePane;if(U=this.selections[this.pane.activePane],U&&U.activeCell)I.activeCell=U.activeCell;if(this.sheetView.style)I.style=this.sheetView.style}else{if(I=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},U=this.selections.topLeft,U&&U.activeCell)I.activeCell=U.activeCell;if(this.sheetView.style)I.style=this.sheetView.style}return!1;default:return!0}}reconcile(){}}r40.exports=o40});var Fj=O((ZE1,a40)=>{var sp0=X4(),ep0=L0();function t6($,I){return $?I:void 0}function x$($,I){return $===I?!0:void 0}class t40 extends ep0{get tag(){return"sheetProtection"}render($,I){if(I){let U={sheet:t6(I.sheet,"1"),selectLockedCells:I.selectLockedCells===!1?"1":void 0,selectUnlockedCells:I.selectUnlockedCells===!1?"1":void 0,formatCells:t6(I.formatCells,"0"),formatColumns:t6(I.formatColumns,"0"),formatRows:t6(I.formatRows,"0"),insertColumns:t6(I.insertColumns,"0"),insertRows:t6(I.insertRows,"0"),insertHyperlinks:t6(I.insertHyperlinks,"0"),deleteColumns:t6(I.deleteColumns,"0"),deleteRows:t6(I.deleteRows,"0"),sort:t6(I.sort,"0"),autoFilter:t6(I.autoFilter,"0"),pivotTables:t6(I.pivotTables,"0")};if(I.sheet)U.algorithmName=I.algorithmName,U.hashValue=I.hashValue,U.saltValue=I.saltValue,U.spinCount=I.spinCount,U.objects=t6(I.objects===!1,"1"),U.scenarios=t6(I.scenarios===!1,"1");if(sp0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:if(this.model={sheet:x$($.attributes.sheet,"1"),objects:$.attributes.objects==="1"?!1:void 0,scenarios:$.attributes.scenarios==="1"?!1:void 0,selectLockedCells:$.attributes.selectLockedCells==="1"?!1:void 0,selectUnlockedCells:$.attributes.selectUnlockedCells==="1"?!1:void 0,formatCells:x$($.attributes.formatCells,"0"),formatColumns:x$($.attributes.formatColumns,"0"),formatRows:x$($.attributes.formatRows,"0"),insertColumns:x$($.attributes.insertColumns,"0"),insertRows:x$($.attributes.insertRows,"0"),insertHyperlinks:x$($.attributes.insertHyperlinks,"0"),deleteColumns:x$($.attributes.deleteColumns,"0"),deleteRows:x$($.attributes.deleteRows,"0"),sort:x$($.attributes.sort,"0"),autoFilter:x$($.attributes.autoFilter,"0"),pivotTables:x$($.attributes.pivotTables,"0")},$.attributes.algorithmName)this.model.algorithmName=$.attributes.algorithmName,this.model.hashValue=$.attributes.hashValue,this.model.saltValue=$.attributes.saltValue,this.model.spinCount=parseInt($.attributes.spinCount,10);return!0;default:return!1}}parseText(){}parseClose(){return!1}}a40.exports=t40});var Nj=O((zE1,e40)=>{var $c0=X4(),Ic0=L0();class s40 extends Ic0{get tag(){return"pageMargins"}render($,I){if(I){let U={left:I.left,right:I.right,top:I.top,bottom:I.bottom,header:I.header,footer:I.footer};if($c0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:return this.model={left:parseFloat($.attributes.left||0.7),right:parseFloat($.attributes.right||0.7),top:parseFloat($.attributes.top||0.75),bottom:parseFloat($.attributes.bottom||0.75),header:parseFloat($.attributes.header||0.3),footer:parseFloat($.attributes.footer||0.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}e40.exports=s40});var Mj=O((XE1,I60)=>{var Uc0=X4(),Yc0=L0();function pZ($){return $?"1":void 0}function Jc0($){switch($){case"overThenDown":return $;default:return}}function Qc0($){switch($){case"atEnd":case"asDisplyed":return $;default:return}}function Kc0($){switch($){case"dash":case"blank":case"NA":return $;default:return}}function qc0($){return $!==void 0?parseInt($,10):void 0}class $60 extends Yc0{get tag(){return"pageSetup"}render($,I){if(I){let U={paperSize:I.paperSize,orientation:I.orientation,horizontalDpi:I.horizontalDpi,verticalDpi:I.verticalDpi,pageOrder:Jc0(I.pageOrder),blackAndWhite:pZ(I.blackAndWhite),draft:pZ(I.draft),cellComments:Qc0(I.cellComments),errors:Kc0(I.errors),scale:I.scale,fitToWidth:I.fitToWidth,fitToHeight:I.fitToHeight,firstPageNumber:I.firstPageNumber,useFirstPageNumber:pZ(I.firstPageNumber),usePrinterDefaults:pZ(I.usePrinterDefaults),copies:I.copies};if(Uc0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:return this.model={paperSize:qc0($.attributes.paperSize),orientation:$.attributes.orientation||"portrait",horizontalDpi:parseInt($.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt($.attributes.verticalDpi||"4294967295",10),pageOrder:$.attributes.pageOrder||"downThenOver",blackAndWhite:$.attributes.blackAndWhite==="1",draft:$.attributes.draft==="1",cellComments:$.attributes.cellComments||"None",errors:$.attributes.errors||"displayed",scale:parseInt($.attributes.scale||"100",10),fitToWidth:parseInt($.attributes.fitToWidth||"1",10),fitToHeight:parseInt($.attributes.fitToHeight||"1",10),firstPageNumber:parseInt($.attributes.firstPageNumber||"1",10),useFirstPageNumber:$.attributes.useFirstPageNumber==="1",usePrinterDefaults:$.attributes.usePrinterDefaults==="1",copies:parseInt($.attributes.copies||"1",10)},!0;default:return!1}}parseText(){}parseClose(){return!1}}I60.exports=$60});var J60=O((LE1,Y60)=>{var Hc0=X4(),Gc0=L0();function cZ($){return $?"1":void 0}class U60 extends Gc0{get tag(){return"printOptions"}render($,I){if(I){let U={headings:cZ(I.showRowColHeaders),gridLines:cZ(I.showGridLines),horizontalCentered:cZ(I.horizontalCentered),verticalCentered:cZ(I.verticalCentered)};if(Hc0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:return this.model={showRowColHeaders:$.attributes.headings==="1",showGridLines:$.attributes.gridLines==="1",horizontalCentered:$.attributes.horizontalCentered==="1",verticalCentered:$.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}Y60.exports=U60});var Aj=O((DE1,K60)=>{var Wc0=W4(),wc0=L0();class Q60 extends wc0{get tag(){return"autoFilter"}render($,I){if(I)if(typeof I==="string")$.leafNode("autoFilter",{ref:I});else{let U=function(Q){if(typeof Q==="string")return Q;return Wc0.getAddress(Q.row,Q.column).address},Y=U(I.from),J=U(I.to);if(Y&&J)$.leafNode("autoFilter",{ref:`${Y}:${J}`})}}parseOpen($){if($.name==="autoFilter")this.model=$.attributes.ref}}K60.exports=Q60});var Pj=O((OE1,H60)=>{var Vc0=L0();class q60 extends Vc0{get tag(){return"picture"}render($,I){if(I)$.leafNode(this.tag,{"r:id":I.rId})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}H60.exports=q60});var w60=O((FE1,W60)=>{var Zc0=L0();class G60 extends Zc0{get tag(){return"drawing"}render($,I){if(I)$.leafNode(this.tag,{"r:id":I.rId})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}W60.exports=G60});var z60=O((NE1,Z60)=>{var zc0=L0();class V60 extends zc0{get tag(){return"tablePart"}render($,I){if(I)$.leafNode(this.tag,{"r:id":I.rId})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}Z60.exports=V60});var D60=O((ME1,L60)=>{var Xc0=L0();class X60 extends Xc0{get tag(){return"brk"}render($,I){$.leafNode("brk",I)}parseOpen($){if($.name==="brk")return this.model=$.attributes.ref,!0;return!1}parseText(){}parseClose(){return!1}}L60.exports=X60});var Tj=O((AE1,F60)=>{var Lc0=D60(),Dc0=f9();class O60 extends Dc0{constructor(){let $={tag:"rowBreaks",count:!0,childXform:new Lc0};super($)}render($,I){if(I&&I.length){if($.openNode(this.tag,this.$),this.count)$.addAttribute(this.$count,I.length),$.addAttribute("manualBreakCount",I.length);let{childXform:U}=this;I.forEach((Y)=>{U.render($,Y)}),$.closeNode()}else if(this.empty)$.leafNode(this.tag)}}F60.exports=O60});var Ej=O((PE1,M60)=>{var Oc0=L0();class N60 extends Oc0{get tag(){return"headerFooter"}render($,I){if(I){$.addRollback();let U=!1;if($.openNode("headerFooter"),I.differentFirst)$.addAttribute("differentFirst","1"),U=!0;if(I.differentOddEven)$.addAttribute("differentOddEven","1"),U=!0;if(I.oddHeader&&typeof I.oddHeader==="string")$.leafNode("oddHeader",null,I.oddHeader),U=!0;if(I.oddFooter&&typeof I.oddFooter==="string")$.leafNode("oddFooter",null,I.oddFooter),U=!0;if(I.evenHeader&&typeof I.evenHeader==="string")$.leafNode("evenHeader",null,I.evenHeader),U=!0;if(I.evenFooter&&typeof I.evenFooter==="string")$.leafNode("evenFooter",null,I.evenFooter),U=!0;if(I.firstHeader&&typeof I.firstHeader==="string")$.leafNode("firstHeader",null,I.firstHeader),U=!0;if(I.firstFooter&&typeof I.firstFooter==="string")$.leafNode("firstFooter",null,I.firstFooter),U=!0;if(U)$.closeNode(),$.commit();else $.rollback()}}parseOpen($){switch($.name){case"headerFooter":if(this.model={},$.attributes.differentFirst)this.model.differentFirst=parseInt($.attributes.differentFirst,0)===1;if($.attributes.differentOddEven)this.model.differentOddEven=parseInt($.attributes.differentOddEven,0)===1;return!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText($){switch(this.currentNode){case"oddHeader":this.model.oddHeader=$;break;case"oddFooter":this.model.oddFooter=$;break;case"evenHeader":this.model.evenHeader=$;break;case"evenFooter":this.model.evenFooter=$;break;case"firstHeader":this.model.firstHeader=$;break;case"firstFooter":this.model.firstFooter=$;break;default:break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}M60.exports=N60});var a6=O((TE1,P60)=>{var Fc0=L0();class A60 extends Fc0{createNewModel($){return{}}parseOpen($){if(this.parser=this.parser||this.map[$.name],this.parser)return this.parser.parseOpen($),!0;if($.name===this.tag)return this.model=this.createNewModel($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}onParserClose($,I){this.model[$]=I.model}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.onParserClose($,this.parser),this.parser=void 0;return!0}return $!==this.tag}}P60.exports=A60});var dZ=O((EE1,B60)=>{var T60=L0();class E60 extends T60{get tag(){return"cfvo"}render($,I){$.leafNode(this.tag,{type:I.type,val:I.value})}parseOpen($){this.model={type:$.attributes.type,value:T60.toFloatValue($.attributes.val)}}parseClose($){return $!==this.tag}}B60.exports=E60});var j60=O((BE1,R60)=>{var Nc0=a6(),Mc0=b9(),Ac0=dZ();class v60 extends Nc0{constructor(){super();this.map={cfvo:this.cfvoXform=new Ac0,color:this.colorXform=new Mc0}}get tag(){return"dataBar"}render($,I){$.openNode(this.tag),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),this.colorXform.render($,I.color),$.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose($,I){switch($){case"cfvo":this.model.cfvo.push(I.model);break;case"color":this.model.color=I.model;break}}}R60.exports=v60});var h60=O((vE1,y60)=>{var Pc0=L0(),C60=a6();class _60 extends Pc0{get tag(){return"x14:id"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}class S60 extends C60{constructor(){super();this.map={"x14:id":this.idXform=new _60}}get tag(){return"ext"}render($,I){$.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render($,I.x14Id),$.closeNode()}createNewModel(){return{}}onParserClose($,I){this.model.x14Id=I.model}}class g60 extends C60{constructor(){super();this.map={ext:new S60}}get tag(){return"extLst"}render($,I){$.openNode(this.tag),this.map.ext.render($,I),$.closeNode()}createNewModel(){return{}}onParserClose($,I){Object.assign(this.model,I.model)}}y60.exports=g60});var k60=O((RE1,x60)=>{var Tc0=L0();class u60 extends Tc0{get tag(){return"formula"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}x60.exports=u60});var i60=O((jE1,b60)=>{var Ec0=a6(),Bc0=b9(),vc0=dZ();class f60 extends Ec0{constructor(){super();this.map={cfvo:this.cfvoXform=new vc0,color:this.colorXform=new Bc0}}get tag(){return"colorScale"}render($,I){$.openNode(this.tag),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),I.color.forEach((U)=>{this.colorXform.render($,U)}),$.closeNode()}createNewModel($){return{cfvo:[],color:[]}}onParserClose($,I){this.model[$].push(I.model)}}b60.exports=f60});var c60=O((CE1,p60)=>{var VY=L0(),Rc0=a6(),jc0=dZ();class n60 extends Rc0{constructor(){super();this.map={cfvo:this.cfvoXform=new jc0}}get tag(){return"iconSet"}render($,I){$.openNode(this.tag,{iconSet:VY.toStringAttribute(I.iconSet,"3TrafficLights"),reverse:VY.toBoolAttribute(I.reverse,!1),showValue:VY.toBoolAttribute(I.showValue,!0)}),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),$.closeNode()}createNewModel({attributes:$}){return{iconSet:VY.toStringValue($.iconSet,"3TrafficLights"),reverse:VY.toBoolValue($.reverse),showValue:VY.toBoolValue($.showValue),cfvo:[]}}onParserClose($,I){this.model[$].push(I.model)}}p60.exports=n60});var l60=O((_E1,m60)=>{var H8=L0(),Cc0=a6(),d60=Z5(),_c0=j60(),Sc0=h60(),gc0=k60(),yc0=i60(),hc0=c60(),uc0={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},xc0=($)=>{if($.formulae&&$.formulae[0])return $.formulae[0];let I=new d60($.ref),{tl:U}=I;switch($.operator){case"containsText":return`NOT(ISERROR(SEARCH("${$.text}",${U})))`;case"containsBlanks":return`LEN(TRIM(${U}))=0`;case"notContainsBlanks":return`LEN(TRIM(${U}))>0`;case"containsErrors":return`ISERROR(${U})`;case"notContainsErrors":return`NOT(ISERROR(${U}))`;default:return}},kc0=($)=>{if($.formulae&&$.formulae[0])return $.formulae[0];let I=new d60($.ref),{tl:U}=I;switch($.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${U},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${U},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${U},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${U},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${U},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${U},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${U},1)=TODAY()-1`;case"today":return`FLOOR(${U},1)=TODAY()`;case"tomorrow":return`FLOOR(${U},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${U},1)<=6,FLOOR(${U},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${U})=MONTH(EDATE(TODAY(),0-1)),YEAR(${U})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${U})=MONTH(TODAY()),YEAR(${U})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${U})=MONTH(EDATE(TODAY(),0+1)),YEAR(${U})=YEAR(EDATE(TODAY(),0+1)))`;default:return}},fc0=($)=>{let{type:I,operator:U}=$;switch(I){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:I};default:return{type:I,operator:U}}};class Bj extends Cc0{constructor(){super();this.map={dataBar:this.databarXform=new _c0,extLst:this.extLstRefXform=new Sc0,formula:this.formulaXform=new gc0,colorScale:this.colorScaleXform=new yc0,iconSet:this.iconSetXform=new hc0}}get tag(){return"cfRule"}static isPrimitive($){if($.type==="iconSet"){if($.custom||uc0[$.iconSet])return!1}return!0}render($,I){switch(I.type){case"expression":this.renderExpression($,I);break;case"cellIs":this.renderCellIs($,I);break;case"top10":this.renderTop10($,I);break;case"aboveAverage":this.renderAboveAverage($,I);break;case"dataBar":this.renderDataBar($,I);break;case"colorScale":this.renderColorScale($,I);break;case"iconSet":this.renderIconSet($,I);break;case"containsText":this.renderText($,I);break;case"timePeriod":this.renderTimePeriod($,I);break}}renderExpression($,I){$.openNode(this.tag,{type:"expression",dxfId:I.dxfId,priority:I.priority}),this.formulaXform.render($,I.formulae[0]),$.closeNode()}renderCellIs($,I){$.openNode(this.tag,{type:"cellIs",dxfId:I.dxfId,priority:I.priority,operator:I.operator}),I.formulae.forEach((U)=>{this.formulaXform.render($,U)}),$.closeNode()}renderTop10($,I){$.leafNode(this.tag,{type:"top10",dxfId:I.dxfId,priority:I.priority,percent:H8.toBoolAttribute(I.percent,!1),bottom:H8.toBoolAttribute(I.bottom,!1),rank:H8.toIntValue(I.rank,10,!0)})}renderAboveAverage($,I){$.leafNode(this.tag,{type:"aboveAverage",dxfId:I.dxfId,priority:I.priority,aboveAverage:H8.toBoolAttribute(I.aboveAverage,!0)})}renderDataBar($,I){$.openNode(this.tag,{type:"dataBar",priority:I.priority}),this.databarXform.render($,I),this.extLstRefXform.render($,I),$.closeNode()}renderColorScale($,I){$.openNode(this.tag,{type:"colorScale",priority:I.priority}),this.colorScaleXform.render($,I),$.closeNode()}renderIconSet($,I){if(!Bj.isPrimitive(I))return;$.openNode(this.tag,{type:"iconSet",priority:I.priority}),this.iconSetXform.render($,I),$.closeNode()}renderText($,I){$.openNode(this.tag,{type:I.operator,dxfId:I.dxfId,priority:I.priority,operator:H8.toStringAttribute(I.operator,"containsText")});let U=xc0(I);if(U)this.formulaXform.render($,U);$.closeNode()}renderTimePeriod($,I){$.openNode(this.tag,{type:"timePeriod",dxfId:I.dxfId,priority:I.priority,timePeriod:I.timePeriod});let U=kc0(I);if(U)this.formulaXform.render($,U);$.closeNode()}createNewModel({attributes:$}){return{...fc0($),dxfId:H8.toIntValue($.dxfId),priority:H8.toIntValue($.priority),timePeriod:$.timePeriod,percent:H8.toBoolValue($.percent),bottom:H8.toBoolValue($.bottom),rank:H8.toIntValue($.rank),aboveAverage:H8.toBoolValue($.aboveAverage)}}onParserClose($,I){switch($){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,I.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(I.model);break}}}m60.exports=Bj});var t60=O((SE1,r60)=>{var bc0=a6(),vj=l60();class o60 extends bc0{constructor(){super();this.map={cfRule:new vj}}get tag(){return"conditionalFormatting"}render($,I){if(!I.rules.some(vj.isPrimitive))return;$.openNode(this.tag,{sqref:I.ref}),I.rules.forEach((U)=>{if(vj.isPrimitive(U))U.ref=I.ref,this.map.cfRule.render($,U)}),$.closeNode()}createNewModel({attributes:$}){return{ref:$.sqref,rules:[]}}onParserClose($,I){this.model.rules.push(I.model)}}r60.exports=o60});var Rj=O((gE1,s60)=>{var ic0=L0(),nc0=t60();class a60 extends ic0{constructor(){super();this.cfXform=new nc0}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare($,I){let U=$.reduce((Y,J)=>Math.max(Y,...J.rules.map((Q)=>Q.priority||0)),1);$.forEach((Y)=>{Y.rules.forEach((J)=>{if(!J.priority)J.priority=U++;if(J.style)J.dxfId=I.styles.addDxfStyle(J.style)})})}render($,I){I.forEach((U)=>{this.cfXform.render($,U)})}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))return this.model.push(this.parser.model),this.parser=void 0,!1;return!0}return!1}reconcile($,I){$.forEach((U)=>{U.rules.forEach((Y)=>{if(Y.dxfId!==void 0)Y.style=I.styles.getDxfStyle(Y.dxfId),delete Y.dxfId})})}}s60.exports=a60});var jj=O((e60)=>{Object.defineProperty(e60,"__esModule",{value:!0});e60.default=dc0;var pc0=cc0(t("crypto"));function cc0($){return $&&$.__esModule?$:{default:$}}var lZ=new Uint8Array(256),mZ=lZ.length;function dc0(){if(mZ>lZ.length-16)pc0.default.randomFillSync(lZ),mZ=0;return lZ.slice(mZ,mZ+=16)}});var U$0=O(($$0)=>{Object.defineProperty($$0,"__esModule",{value:!0});$$0.default=void 0;var lc0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;$$0.default=lc0});var jK=O((Y$0)=>{Object.defineProperty(Y$0,"__esModule",{value:!0});Y$0.default=void 0;var oc0=rc0(U$0());function rc0($){return $&&$.__esModule?$:{default:$}}function tc0($){return typeof $==="string"&&oc0.default.test($)}var ac0=tc0;Y$0.default=ac0});var CK=O((Q$0)=>{Object.defineProperty(Q$0,"__esModule",{value:!0});Q$0.default=void 0;var sc0=ec0(jK());function ec0($){return $&&$.__esModule?$:{default:$}}var J6=[];for(let $=0;$<256;++$)J6.push(($+256).toString(16).substr(1));function $d0($,I=0){let U=(J6[$[I+0]]+J6[$[I+1]]+J6[$[I+2]]+J6[$[I+3]]+"-"+J6[$[I+4]]+J6[$[I+5]]+"-"+J6[$[I+6]]+J6[$[I+7]]+"-"+J6[$[I+8]]+J6[$[I+9]]+"-"+J6[$[I+10]]+J6[$[I+11]]+J6[$[I+12]]+J6[$[I+13]]+J6[$[I+14]]+J6[$[I+15]]).toLowerCase();if(!(0,sc0.default)(U))throw TypeError("Stringified UUID is invalid");return U}var Id0=$d0;Q$0.default=Id0});var w$0=O((G$0)=>{Object.defineProperty(G$0,"__esModule",{value:!0});G$0.default=void 0;var Ud0=H$0(jj()),Yd0=H$0(CK());function H$0($){return $&&$.__esModule?$:{default:$}}var q$0,Cj,_j=0,Sj=0;function Jd0($,I,U){let Y=I&&U||0,J=I||Array(16);$=$||{};let Q=$.node||q$0,K=$.clockseq!==void 0?$.clockseq:Cj;if(Q==null||K==null){let Z=$.random||($.rng||Ud0.default)();if(Q==null)Q=q$0=[Z[0]|1,Z[1],Z[2],Z[3],Z[4],Z[5]];if(K==null)K=Cj=(Z[6]<<8|Z[7])&16383}let q=$.msecs!==void 0?$.msecs:Date.now(),H=$.nsecs!==void 0?$.nsecs:Sj+1,G=q-_j+(H-Sj)/1e4;if(G<0&&$.clockseq===void 0)K=K+1&16383;if((G<0||q>_j)&&$.nsecs===void 0)H=0;if(H>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");_j=q,Sj=H,Cj=K,q+=12219292800000;let W=((q&268435455)*1e4+H)%4294967296;J[Y++]=W>>>24&255,J[Y++]=W>>>16&255,J[Y++]=W>>>8&255,J[Y++]=W&255;let w=q/4294967296*1e4&268435455;J[Y++]=w>>>8&255,J[Y++]=w&255,J[Y++]=w>>>24&15|16,J[Y++]=w>>>16&255,J[Y++]=K>>>8|128,J[Y++]=K&255;for(let Z=0;Z<6;++Z)J[Y+Z]=Q[Z];return I||(0,Yd0.default)(J)}var Qd0=Jd0;G$0.default=Qd0});var gj=O((V$0)=>{Object.defineProperty(V$0,"__esModule",{value:!0});V$0.default=void 0;var Kd0=qd0(jK());function qd0($){return $&&$.__esModule?$:{default:$}}function Hd0($){if(!(0,Kd0.default)($))throw TypeError("Invalid UUID");let I,U=new Uint8Array(16);return U[0]=(I=parseInt($.slice(0,8),16))>>>24,U[1]=I>>>16&255,U[2]=I>>>8&255,U[3]=I&255,U[4]=(I=parseInt($.slice(9,13),16))>>>8,U[5]=I&255,U[6]=(I=parseInt($.slice(14,18),16))>>>8,U[7]=I&255,U[8]=(I=parseInt($.slice(19,23),16))>>>8,U[9]=I&255,U[10]=(I=parseInt($.slice(24,36),16))/1099511627776&255,U[11]=I/4294967296&255,U[12]=I>>>24&255,U[13]=I>>>16&255,U[14]=I>>>8&255,U[15]=I&255,U}var Gd0=Hd0;V$0.default=Gd0});var yj=O((D$0)=>{Object.defineProperty(D$0,"__esModule",{value:!0});D$0.default=Zd0;D$0.URL=D$0.DNS=void 0;var Wd0=z$0(CK()),wd0=z$0(gj());function z$0($){return $&&$.__esModule?$:{default:$}}function Vd0($){$=unescape(encodeURIComponent($));let I=[];for(let U=0;U<$.length;++U)I.push($.charCodeAt(U));return I}var X$0="6ba7b810-9dad-11d1-80b4-00c04fd430c8";D$0.DNS=X$0;var L$0="6ba7b811-9dad-11d1-80b4-00c04fd430c8";D$0.URL=L$0;function Zd0($,I,U){function Y(J,Q,K,q){if(typeof J==="string")J=Vd0(J);if(typeof Q==="string")Q=(0,wd0.default)(Q);if(Q.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let H=new Uint8Array(16+J.length);if(H.set(Q),H.set(J,Q.length),H=U(H),H[6]=H[6]&15|I,H[8]=H[8]&63|128,K){q=q||0;for(let G=0;G<16;++G)K[q+G]=H[G];return K}return(0,Wd0.default)(H)}try{Y.name=$}catch(J){}return Y.DNS=X$0,Y.URL=L$0,Y}});var M$0=O((F$0)=>{Object.defineProperty(F$0,"__esModule",{value:!0});F$0.default=void 0;var Ld0=Dd0(t("crypto"));function Dd0($){return $&&$.__esModule?$:{default:$}}function Od0($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return Ld0.default.createHash("md5").update($).digest()}var Fd0=Od0;F$0.default=Fd0});var E$0=O((P$0)=>{Object.defineProperty(P$0,"__esModule",{value:!0});P$0.default=void 0;var Nd0=A$0(yj()),Md0=A$0(M$0());function A$0($){return $&&$.__esModule?$:{default:$}}var Ad0=(0,Nd0.default)("v3",48,Md0.default),Pd0=Ad0;P$0.default=Pd0});var j$0=O((v$0)=>{Object.defineProperty(v$0,"__esModule",{value:!0});v$0.default=void 0;var Td0=B$0(jj()),Ed0=B$0(CK());function B$0($){return $&&$.__esModule?$:{default:$}}function Bd0($,I,U){$=$||{};let Y=$.random||($.rng||Td0.default)();if(Y[6]=Y[6]&15|64,Y[8]=Y[8]&63|128,I){U=U||0;for(let J=0;J<16;++J)I[U+J]=Y[J];return I}return(0,Ed0.default)(Y)}var vd0=Bd0;v$0.default=vd0});var S$0=O((C$0)=>{Object.defineProperty(C$0,"__esModule",{value:!0});C$0.default=void 0;var Rd0=jd0(t("crypto"));function jd0($){return $&&$.__esModule?$:{default:$}}function Cd0($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return Rd0.default.createHash("sha1").update($).digest()}var _d0=Cd0;C$0.default=_d0});var u$0=O((y$0)=>{Object.defineProperty(y$0,"__esModule",{value:!0});y$0.default=void 0;var Sd0=g$0(yj()),gd0=g$0(S$0());function g$0($){return $&&$.__esModule?$:{default:$}}var yd0=(0,Sd0.default)("v5",80,gd0.default),hd0=yd0;y$0.default=hd0});var f$0=O((x$0)=>{Object.defineProperty(x$0,"__esModule",{value:!0});x$0.default=void 0;var ud0="00000000-0000-0000-0000-000000000000";x$0.default=ud0});var n$0=O((b$0)=>{Object.defineProperty(b$0,"__esModule",{value:!0});b$0.default=void 0;var xd0=kd0(jK());function kd0($){return $&&$.__esModule?$:{default:$}}function fd0($){if(!(0,xd0.default)($))throw TypeError("Invalid UUID");return parseInt($.substr(14,1),16)}var bd0=fd0;b$0.default=bd0});var p$0=O((G8)=>{Object.defineProperty(G8,"__esModule",{value:!0});Object.defineProperty(G8,"v1",{enumerable:!0,get:function(){return id0.default}});Object.defineProperty(G8,"v3",{enumerable:!0,get:function(){return nd0.default}});Object.defineProperty(G8,"v4",{enumerable:!0,get:function(){return pd0.default}});Object.defineProperty(G8,"v5",{enumerable:!0,get:function(){return cd0.default}});Object.defineProperty(G8,"NIL",{enumerable:!0,get:function(){return dd0.default}});Object.defineProperty(G8,"version",{enumerable:!0,get:function(){return md0.default}});Object.defineProperty(G8,"validate",{enumerable:!0,get:function(){return ld0.default}});Object.defineProperty(G8,"stringify",{enumerable:!0,get:function(){return od0.default}});Object.defineProperty(G8,"parse",{enumerable:!0,get:function(){return rd0.default}});var id0=P5(w$0()),nd0=P5(E$0()),pd0=P5(j$0()),cd0=P5(u$0()),dd0=P5(f$0()),md0=P5(n$0()),ld0=P5(jK()),od0=P5(CK()),rd0=P5(gj());function P5($){return $&&$.__esModule?$:{default:$}}});var m$0=O((rE1,d$0)=>{var td0=L0();class c$0 extends td0{get tag(){return"xm:f"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}d$0.exports=c$0});var hj=O((tE1,o$0)=>{var ad0=a6(),sd0=m$0();class l$0 extends ad0{constructor(){super();this.map={"xm:f":this.fExtXform=new sd0}}get tag(){return"x14:cfvo"}render($,I){if($.openNode(this.tag,{type:I.type}),I.value!==void 0)this.fExtXform.render($,I.value);$.closeNode()}createNewModel($){return{type:$.attributes.type}}onParserClose($,I){switch($){case"xm:f":this.model.value=I.model?parseFloat(I.model):0;break}}}o$0.exports=l$0});var a$0=O((aE1,t$0)=>{var F6=L0(),ed0=a6(),oZ=b9(),$m0=hj();class r$0 extends ed0{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new $m0,"x14:borderColor":this.borderColorXform=new oZ("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new oZ("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new oZ("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new oZ("x14:axisColor")}}static isExt($){return!$.gradient}get tag(){return"x14:dataBar"}render($,I){$.openNode(this.tag,{minLength:F6.toIntAttribute(I.minLength,0,!0),maxLength:F6.toIntAttribute(I.maxLength,100,!0),border:F6.toBoolAttribute(I.border,!1),gradient:F6.toBoolAttribute(I.gradient,!0),negativeBarColorSameAsPositive:F6.toBoolAttribute(I.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:F6.toBoolAttribute(I.negativeBarBorderColorSameAsPositive,!0),axisPosition:F6.toAttribute(I.axisPosition,"auto"),direction:F6.toAttribute(I.direction,"leftToRight")}),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),this.borderColorXform.render($,I.borderColor),this.negativeBorderColorXform.render($,I.negativeBorderColor),this.negativeFillColorXform.render($,I.negativeFillColor),this.axisColorXform.render($,I.axisColor),$.closeNode()}createNewModel({attributes:$}){return{cfvo:[],minLength:F6.toIntValue($.minLength,0),maxLength:F6.toIntValue($.maxLength,100),border:F6.toBoolValue($.border,!1),gradient:F6.toBoolValue($.gradient,!0),negativeBarColorSameAsPositive:F6.toBoolValue($.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:F6.toBoolValue($.negativeBarBorderColorSameAsPositive,!0),axisPosition:F6.toStringValue($.axisPosition,"auto"),direction:F6.toStringValue($.direction,"leftToRight")}}onParserClose($,I){let[,U]=$.split(":");switch(U){case"cfvo":this.model.cfvo.push(I.model);break;default:this.model[U]=I.model;break}}}t$0.exports=r$0});var I80=O((sE1,$80)=>{var s$0=L0();class e$0 extends s$0{get tag(){return"x14:cfIcon"}render($,I){$.leafNode(this.tag,{iconSet:I.iconSet,iconId:I.iconId})}parseOpen({attributes:$}){this.model={iconSet:$.iconSet,iconId:s$0.toIntValue($.iconId)}}parseClose($){return $!==this.tag}}$80.exports=e$0});var J80=O((eE1,Y80)=>{var L3=L0(),Im0=a6(),Um0=hj(),Ym0=I80();class U80 extends Im0{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new Um0,"x14:cfIcon":this.cfIconXform=new Ym0}}get tag(){return"x14:iconSet"}render($,I){if($.openNode(this.tag,{iconSet:L3.toStringAttribute(I.iconSet),reverse:L3.toBoolAttribute(I.reverse,!1),showValue:L3.toBoolAttribute(I.showValue,!0),custom:L3.toBoolAttribute(I.icons,!1)}),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),I.icons)I.icons.forEach((U,Y)=>{U.iconId=Y,this.cfIconXform.render($,U)});$.closeNode()}createNewModel({attributes:$}){return{cfvo:[],iconSet:L3.toStringValue($.iconSet,"3TrafficLights"),reverse:L3.toBoolValue($.reverse,!1),showValue:L3.toBoolValue($.showValue,!0)}}onParserClose($,I){let[,U]=$.split(":");switch(U){case"cfvo":this.model.cfvo.push(I.model);break;case"cfIcon":if(!this.model.icons)this.model.icons=[];this.model.icons.push(I.model);break;default:this.model[U]=I.model;break}}}Y80.exports=U80});var uj=O(($B1,q80)=>{var{v4:Q80}=p$0(),Jm0=L0(),Qm0=a6(),K80=a$0(),Km0=J80(),qm0={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class rZ extends Qm0{constructor(){super();this.map={"x14:dataBar":this.databarXform=new K80,"x14:iconSet":this.iconSetXform=new Km0}}get tag(){return"x14:cfRule"}static isExt($){if($.type==="dataBar")return K80.isExt($);if($.type==="iconSet"){if($.custom||qm0[$.iconSet])return!0}return!1}prepare($){if(rZ.isExt($))$.x14Id=`{${Q80()}}`.toUpperCase()}render($,I){if(!rZ.isExt(I))return;switch(I.type){case"dataBar":this.renderDataBar($,I);break;case"iconSet":this.renderIconSet($,I);break}}renderDataBar($,I){$.openNode(this.tag,{type:"dataBar",id:I.x14Id}),this.databarXform.render($,I),$.closeNode()}renderIconSet($,I){$.openNode(this.tag,{type:"iconSet",priority:I.priority,id:I.x14Id||`{${Q80()}}`}),this.iconSetXform.render($,I),$.closeNode()}createNewModel({attributes:$}){return{type:$.type,x14Id:$.id,priority:Jm0.toIntValue($.priority)}}onParserClose($,I){Object.assign(this.model,I.model)}}q80.exports=rZ});var W80=O((IB1,G80)=>{var Hm0=L0();class H80 extends Hm0{get tag(){return"xm:sqref"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}G80.exports=H80});var Z80=O((UB1,V80)=>{var Gm0=a6(),Wm0=W80(),xj=uj();class w80 extends Gm0{constructor(){super();this.map={"xm:sqref":this.sqRef=new Wm0,"x14:cfRule":this.cfRule=new xj}}get tag(){return"x14:conditionalFormatting"}prepare($,I){$.rules.forEach((U)=>{this.cfRule.prepare(U,I)})}render($,I){if(!I.rules.some(xj.isExt))return;$.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),I.rules.filter(xj.isExt).forEach((U)=>this.cfRule.render($,U)),this.sqRef.render($,I.ref),$.closeNode()}createNewModel(){return{rules:[]}}onParserClose($,I){switch($){case"xm:sqref":this.model.ref=I.model;break;case"x14:cfRule":this.model.rules.push(I.model);break}}}V80.exports=w80});var L80=O((YB1,X80)=>{var wm0=a6(),Vm0=uj(),Zm0=Z80();class z80 extends wm0{constructor(){super();this.map={"x14:conditionalFormatting":this.cfXform=new Zm0}}get tag(){return"x14:conditionalFormattings"}hasContent($){if($.hasExtContent===void 0)$.hasExtContent=$.some((I)=>I.rules.some(Vm0.isExt));return $.hasExtContent}prepare($,I){$.forEach((U)=>{this.cfXform.prepare(U,I)})}render($,I){if(this.hasContent(I))$.openNode(this.tag),I.forEach((U)=>this.cfXform.render($,U)),$.closeNode()}createNewModel(){return[]}onParserClose($,I){this.model.push(I.model)}}X80.exports=z80});var M80=O((JB1,N80)=>{var D80=a6(),zm0=L80();class O80 extends D80{constructor(){super();this.map={"x14:conditionalFormattings":this.conditionalFormattings=new zm0}}get tag(){return"ext"}hasContent($){return this.conditionalFormattings.hasContent($.conditionalFormattings)}prepare($,I){this.conditionalFormattings.prepare($.conditionalFormattings,I)}render($,I){$.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render($,I.conditionalFormattings),$.closeNode()}createNewModel(){return{}}onParserClose($,I){this.model[$]=I.model}}class F80 extends D80{constructor(){super();this.map={ext:this.ext=new O80}}get tag(){return"extLst"}prepare($,I){this.ext.prepare($,I)}hasContent($){return this.ext.hasContent($)}render($,I){if(!this.hasContent(I))return;$.openNode("extLst"),this.ext.render($,I),$.closeNode()}createNewModel(){return{}}onParserClose($,I){Object.assign(this.model,I.model)}}N80.exports=F80});var P80=O((QB1,A80)=>{var Xm0=X4(),Lm0=W4(),Dm0=U6(),T5=n9(),Om0=F40(),Fm0=L0(),ZY=f9(),Nm0=Gj(),Mm0=wj(),Am0=C40(),Pm0=Vj(),Tm0=h40(),Em0=Xj(),Bm0=Lj(),vm0=Dj(),Rm0=Oj(),jm0=Fj(),Cm0=Nj(),_m0=Mj(),Sm0=J60(),gm0=Aj(),ym0=Pj(),hm0=w60(),um0=z60(),xm0=Tj(),km0=Ej(),fm0=Rj(),bm0=M80(),im0=($,I)=>{Object.keys(I).forEach((U)=>{let Y=$[U],J=I[U];if(Y===void 0&&J!==void 0)$[U]=J})},nm0=($,I)=>{if(!I||!I.length)return $;if(!$||!$.length)return I;let U={},Y={};return $.forEach((J)=>{U[J.ref]=J,J.rules.forEach((Q)=>{let{x14Id:K}=Q;if(K)Y[K]=Q})}),I.forEach((J)=>{J.rules.forEach((Q)=>{let K=Y[Q.x14Id];if(K)im0(K,Q);else if(U[J.ref])U[J.ref].rules.push(Q);else $.push({ref:J.ref,rules:[Q]})})}),$};class tZ extends Fm0{constructor($){super();let{maxRows:I,maxCols:U,ignoreNodes:Y}=$||{};this.ignoreNodes=Y||[],this.map={sheetPr:new Bm0,dimension:new Am0,sheetViews:new ZY({tag:"sheetViews",count:!1,childXform:new Rm0}),sheetFormatPr:new vm0,cols:new ZY({tag:"cols",count:!1,childXform:new Mm0}),sheetData:new ZY({tag:"sheetData",count:!1,empty:!0,childXform:new Nm0({maxItems:U}),maxItems:I}),autoFilter:new gm0,mergeCells:new ZY({tag:"mergeCells",count:!0,childXform:new Tm0}),rowBreaks:new xm0,hyperlinks:new ZY({tag:"hyperlinks",count:!1,childXform:new Pm0}),pageMargins:new Cm0,dataValidations:new Em0,pageSetup:new _m0,headerFooter:new km0,printOptions:new Sm0,picture:new ym0,drawing:new hm0,sheetProtection:new jm0,tableParts:new ZY({tag:"tableParts",count:!0,childXform:new um0}),conditionalFormatting:new fm0,extLst:new bm0}}prepare($,I){I.merges=new Om0,$.hyperlinks=I.hyperlinks=[],$.comments=I.comments=[],I.formulae={},I.siFormulae=0,this.map.cols.prepare($.cols,I),this.map.sheetData.prepare($.rows,I),this.map.conditionalFormatting.prepare($.conditionalFormattings,I),$.mergeCells=I.merges.mergeCells;let U=$.rels=[];function Y(K){return`rId${K.length+1}`}if($.hyperlinks.forEach((K)=>{let q=Y(U);K.rId=q,U.push({Id:q,Type:T5.Hyperlink,Target:K.target,TargetMode:"External"})}),$.comments.length>0){let K={Id:Y(U),Type:T5.Comments,Target:`../comments${$.id}.xml`};U.push(K);let q={Id:Y(U),Type:T5.VmlDrawing,Target:`../drawings/vmlDrawing${$.id}.vml`};U.push(q),$.comments.forEach((H)=>{H.refAddress=Lm0.decodeAddress(H.ref)}),I.commentRefs.push({commentName:`comments${$.id}`,vmlDrawing:`vmlDrawing${$.id}`})}let J=[],Q;$.media.forEach((K)=>{if(K.type==="background"){let q=Y(U);Q=I.media[K.imageId],U.push({Id:q,Type:T5.Image,Target:`../media/${Q.name}.${Q.extension}`}),$.background={rId:q},$.image=I.media[K.imageId]}else if(K.type==="image"){let{drawing:q}=$;if(Q=I.media[K.imageId],!q)q=$.drawing={rId:Y(U),name:`drawing${++I.drawingsCount}`,anchors:[],rels:[]},I.drawings.push(q),U.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`});let H=this.preImageId===K.imageId?J[K.imageId]:J[q.rels.length];if(!H)H=Y(q.rels),J[q.rels.length]=H,q.rels.push({Id:H,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Q.name}.${Q.extension}`});let G={picture:{rId:H},range:K.range};if(K.hyperlinks&&K.hyperlinks.hyperlink){let W=Y(q.rels);J[q.rels.length]=W,G.picture.hyperlinks={tooltip:K.hyperlinks.tooltip,rId:W},q.rels.push({Id:W,Type:T5.Hyperlink,Target:K.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=K.imageId,q.anchors.push(G)}}),$.tables.forEach((K)=>{let q=Y(U);K.rId=q,U.push({Id:q,Type:T5.Table,Target:`../tables/${K.target}`}),K.columns.forEach((H)=>{let{style:G}=H;if(G)H.dxfId=I.styles.addDxfStyle(G)})}),this.map.extLst.prepare($,I)}render($,I){$.openXml(Dm0.StdDocAttributes),$.openNode("worksheet",tZ.WORKSHEET_ATTRIBUTES);let U=I.properties?{defaultRowHeight:I.properties.defaultRowHeight,dyDescent:I.properties.dyDescent,outlineLevelCol:I.properties.outlineLevelCol,outlineLevelRow:I.properties.outlineLevelRow}:void 0;if(I.properties&&I.properties.defaultColWidth)U.defaultColWidth=I.properties.defaultColWidth;let Y={outlineProperties:I.properties&&I.properties.outlineProperties,tabColor:I.properties&&I.properties.tabColor,pageSetup:I.pageSetup&&I.pageSetup.fitToPage?{fitToPage:I.pageSetup.fitToPage}:void 0},J=I.pageSetup&&I.pageSetup.margins,Q={showRowColHeaders:I.pageSetup&&I.pageSetup.showRowColHeaders,showGridLines:I.pageSetup&&I.pageSetup.showGridLines,horizontalCentered:I.pageSetup&&I.pageSetup.horizontalCentered,verticalCentered:I.pageSetup&&I.pageSetup.verticalCentered},K=I.sheetProtection;if(this.map.sheetPr.render($,Y),this.map.dimension.render($,I.dimensions),this.map.sheetViews.render($,I.views),this.map.sheetFormatPr.render($,U),this.map.cols.render($,I.cols),this.map.sheetData.render($,I.rows),this.map.sheetProtection.render($,K),this.map.autoFilter.render($,I.autoFilter),this.map.mergeCells.render($,I.mergeCells),this.map.conditionalFormatting.render($,I.conditionalFormattings),this.map.dataValidations.render($,I.dataValidations),this.map.hyperlinks.render($,I.hyperlinks),this.map.printOptions.render($,Q),this.map.pageMargins.render($,J),this.map.pageSetup.render($,I.pageSetup),this.map.headerFooter.render($,I.headerFooter),this.map.rowBreaks.render($,I.rowBreaks),this.map.drawing.render($,I.drawing),this.map.picture.render($,I.background),this.map.tableParts.render($,I.tables),this.map.extLst.render($,I),I.rels)I.rels.forEach((q)=>{if(q.Type===T5.VmlDrawing)$.leafNode("legacyDrawing",{"r:id":q.Id})});$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if($.name==="worksheet")return Xm0.each(this.map,(I)=>{I.reset()}),!0;if(this.map[$.name]&&!this.ignoreNodes.includes($.name))this.parser=this.map[$.name],this.parser.parseOpen($);return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"worksheet":{let I=this.map.sheetFormatPr.model||{};if(this.map.sheetPr.model&&this.map.sheetPr.model.tabColor)I.tabColor=this.map.sheetPr.model.tabColor;if(this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties)I.outlineProperties=this.map.sheetPr.model.outlineProperties;let U={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},Y=Object.assign(U,this.map.pageSetup.model,this.map.printOptions.model),J=nm0(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);if(this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:I,views:this.map.sheetViews.model,pageSetup:Y,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:J},this.map.autoFilter.model)this.model.autoFilter=this.map.autoFilter.model;if(this.map.sheetProtection.model)this.model.sheetProtection=this.map.sheetProtection.model;return!1}default:return!0}}reconcile($,I){let U=($.relationships||[]).reduce((J,Q)=>{if(J[Q.Id]=Q,Q.Type===T5.Comments)$.comments=I.comments[Q.Target].comments;if(Q.Type===T5.VmlDrawing&&$.comments&&$.comments.length){let K=I.vmlDrawings[Q.Target].comments;$.comments.forEach((q,H)=>{q.note=Object.assign({},q.note,K[H])})}return J},{});if(I.commentsMap=($.comments||[]).reduce((J,Q)=>{if(Q.ref)J[Q.ref]=Q;return J},{}),I.hyperlinkMap=($.hyperlinks||[]).reduce((J,Q)=>{if(Q.rId)J[Q.address]=U[Q.rId].Target;return J},{}),I.formulae={},$.rows=$.rows&&$.rows.filter(Boolean)||[],$.rows.forEach((J)=>{J.cells=J.cells&&J.cells.filter(Boolean)||[]}),this.map.cols.reconcile($.cols,I),this.map.sheetData.reconcile($.rows,I),this.map.conditionalFormatting.reconcile($.conditionalFormattings,I),$.media=[],$.drawing){let Q=U[$.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(Q){let K=Q[1];I.drawings[K].anchors.forEach((H)=>{if(H.medium){let G={type:"image",imageId:H.medium.index,range:H.range,hyperlinks:H.picture.hyperlinks};$.media.push(G)}})}}let Y=$.background&&U[$.background.rId];if(Y){let J=Y.Target.split("/media/")[1],Q=I.mediaIndex&&I.mediaIndex[J];if(Q!==void 0)$.media.push({type:"background",imageId:Q})}$.tables=($.tables||[]).map((J)=>{let Q=U[J.rId];return I.tables[Q.Target]}),delete $.relationships,delete $.hyperlinks,delete $.comments}}tZ.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"};A80.exports=tZ});var kj=O((KB1,E80)=>{var pm0=L0();class T80 extends pm0{parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={range:{editAs:$.attributes.editAs||"oneCell"}};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}reconcilePicture($,I){if($&&$.rId){let Y=I.rels[$.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(Y){let J=Y[1],Q=I.mediaIndex[J];return I.media[Q]}}return}}E80.exports=T80});var fj=O((qB1,v80)=>{var cm0=L0(),aZ=vZ();class B80 extends cm0{constructor($){super();this.tag=$.tag,this.map={"xdr:col":new aZ({tag:"xdr:col",zero:!0}),"xdr:colOff":new aZ({tag:"xdr:colOff",zero:!0}),"xdr:row":new aZ({tag:"xdr:row",zero:!0}),"xdr:rowOff":new aZ({tag:"xdr:rowOff",zero:!0})}}render($,I){$.openNode(this.tag),this.map["xdr:col"].render($,I.nativeCol),this.map["xdr:colOff"].render($,I.nativeColOff),this.map["xdr:row"].render($,I.nativeRow),this.map["xdr:rowOff"].render($,I.nativeRowOff),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}v80.exports=B80});var C80=O((HB1,j80)=>{var dm0=L0();class R80 extends dm0{get tag(){return"a:blip"}render($,I){$.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":I.rId,cstate:"print"})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}j80.exports=R80});var g80=O((GB1,S80)=>{var mm0=L0(),lm0=C80();class _80 extends mm0{constructor(){super();this.map={"a:blip":new lm0}}get tag(){return"xdr:blipFill"}render($,I){$.openNode(this.tag),this.map["a:blip"].render($,I),$.openNode("a:stretch"),$.leafNode("a:fillRect"),$.closeNode(),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}S80.exports=_80});var u80=O((WB1,h80)=>{var om0=L0();class y80 extends om0{get tag(){return"a:hlinkClick"}render($,I){if(!(I.hyperlinks&&I.hyperlinks.rId))return;$.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":I.hyperlinks.rId,tooltip:I.hyperlinks.tooltip})}parseOpen($){switch($.name){case this.tag:return this.model={hyperlinks:{rId:$.attributes["r:id"],tooltip:$.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}h80.exports=y80});var f80=O((wB1,k80)=>{var rm0=L0();class x80 extends rm0{get tag(){return"a:extLst"}render($){$.openNode(this.tag),$.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),$.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),$.closeNode(),$.closeNode()}parseOpen($){switch($.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}k80.exports=x80});var n80=O((VB1,i80)=>{var tm0=L0(),am0=u80(),sm0=f80();class b80 extends tm0{constructor(){super();this.map={"a:hlinkClick":new am0,"a:extLst":new sm0}}get tag(){return"xdr:cNvPr"}render($,I){$.openNode(this.tag,{id:I.index,name:`Picture ${I.index}`}),this.map["a:hlinkClick"].render($,I),this.map["a:extLst"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}i80.exports=b80});var d80=O((ZB1,c80)=>{var em0=L0();class p80 extends em0{get tag(){return"xdr:cNvPicPr"}render($){$.openNode(this.tag),$.leafNode("a:picLocks",{noChangeAspect:"1"}),$.closeNode()}parseOpen($){switch($.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}c80.exports=p80});var o80=O((zB1,l80)=>{var $l0=L0(),Il0=n80(),Ul0=d80();class m80 extends $l0{constructor(){super();this.map={"xdr:cNvPr":new Il0,"xdr:cNvPicPr":new Ul0}}get tag(){return"xdr:nvPicPr"}render($,I){$.openNode(this.tag),this.map["xdr:cNvPr"].render($,I),this.map["xdr:cNvPicPr"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}l80.exports=m80});var t80=O((XB1,r80)=>{r80.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}});var bj=O((LB1,s80)=>{var Yl0=L0(),Jl0=KY(),Ql0=g80(),Kl0=o80(),ql0=t80();class a80 extends Yl0{constructor(){super();this.map={"xdr:nvPicPr":new Kl0,"xdr:blipFill":new Ql0,"xdr:spPr":new Jl0(ql0)}}get tag(){return"xdr:pic"}prepare($,I){$.index=I.index+1}render($,I){$.openNode(this.tag),this.map["xdr:nvPicPr"].render($,I),this.map["xdr:blipFill"].render($,I),this.map["xdr:spPr"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.mergeModel(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:return!0}}}s80.exports=a80});var U50=O((DB1,I50)=>{var Hl0=kj(),Gl0=KY(),e80=fj(),Wl0=bj();class $50 extends Hl0{constructor(){super();this.map={"xdr:from":new e80({tag:"xdr:from"}),"xdr:to":new e80({tag:"xdr:to"}),"xdr:pic":new Wl0,"xdr:clientData":new Gl0({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare($,I){this.map["xdr:pic"].prepare($.picture,I)}render($,I){$.openNode(this.tag,{editAs:I.range.editAs||"oneCell"}),this.map["xdr:from"].render($,I.range.tl),this.map["xdr:to"].render($,I.range.br),this.map["xdr:pic"].render($,I.picture),this.map["xdr:clientData"].render($,{}),$.closeNode()}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile($,I){$.medium=this.reconcilePicture($.picture,I)}}I50.exports=$50});var Q50=O((OB1,J50)=>{var wl0=L0();class Y50 extends wl0{constructor($){super();this.tag=$.tag,this.map={}}render($,I){$.openNode(this.tag);let U=Math.floor(I.width*9525),Y=Math.floor(I.height*9525);$.addAttribute("cx",U),$.addAttribute("cy",Y),$.closeNode()}parseOpen($){if($.name===this.tag)return this.model={width:parseInt($.attributes.cx||"0",10)/9525,height:parseInt($.attributes.cy||"0",10)/9525},!0;return!1}parseText(){}parseClose(){return!1}}J50.exports=Y50});var H50=O((FB1,q50)=>{var Vl0=kj(),Zl0=KY(),zl0=fj(),Xl0=Q50(),Ll0=bj();class K50 extends Vl0{constructor(){super();this.map={"xdr:from":new zl0({tag:"xdr:from"}),"xdr:ext":new Xl0({tag:"xdr:ext"}),"xdr:pic":new Ll0,"xdr:clientData":new Zl0({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare($,I){this.map["xdr:pic"].prepare($.picture,I)}render($,I){$.openNode(this.tag,{editAs:I.range.editAs||"oneCell"}),this.map["xdr:from"].render($,I.range.tl),this.map["xdr:ext"].render($,I.range.ext),this.map["xdr:pic"].render($,I.picture),this.map["xdr:clientData"].render($,{}),$.closeNode()}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile($,I){$.medium=this.reconcilePicture($.picture,I)}}q50.exports=K50});var W50=O((NB1,G50)=>{var Dl0=W4(),Ol0=U6(),Fl0=L0(),Nl0=U50(),Ml0=H50();function Al0($){return(typeof $.range==="string"?Dl0.decode($.range):$.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class sZ extends Fl0{constructor(){super();this.map={"xdr:twoCellAnchor":new Nl0,"xdr:oneCellAnchor":new Ml0}}prepare($){$.anchors.forEach((I,U)=>{I.anchorType=Al0(I),this.map[I.anchorType].prepare(I,{index:U})})}get tag(){return"xdr:wsDr"}render($,I){$.openXml(Ol0.StdDocAttributes),$.openNode(this.tag,sZ.DRAWING_ATTRIBUTES),I.anchors.forEach((U)=>{this.map[U.anchorType].render($,U)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.anchors.push(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:return!0}}reconcile($,I){$.anchors.forEach((U)=>{if(U.br)this.map["xdr:twoCellAnchor"].reconcile(U,I);else this.map["xdr:oneCellAnchor"].reconcile(U,I)})}}sZ.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"};G50.exports=sZ});var Z50=O((MB1,V50)=>{var Pl0=L0();class w50 extends Pl0{get tag(){return"customFilter"}render($,I){$.leafNode(this.tag,{val:I.val,operator:I.operator})}parseOpen($){if($.name===this.tag)return this.model={val:$.attributes.val,operator:$.attributes.operator},!0;return!1}parseText(){}parseClose(){return!1}}V50.exports=w50});var L50=O((AB1,X50)=>{var Tl0=L0();class z50 extends Tl0{get tag(){return"filter"}render($,I){$.leafNode(this.tag,{val:I.val})}parseOpen($){if($.name===this.tag)return this.model={val:$.attributes.val},!0;return!1}parseText(){}parseClose(){return!1}}X50.exports=z50});var N50=O((PB1,F50)=>{var El0=L0(),D50=f9(),Bl0=Z50(),vl0=L50();class O50 extends El0{constructor(){super();this.map={customFilters:new D50({tag:"customFilters",count:!1,empty:!0,childXform:new Bl0}),filters:new D50({tag:"filters",count:!1,empty:!0,childXform:new vl0})}}get tag(){return"filterColumn"}prepare($,I){$.colId=I.index.toString()}render($,I){if(I.customFilters)return $.openNode(this.tag,{colId:I.colId,hiddenButton:I.filterButton?"0":"1"}),this.map.customFilters.render($,I.customFilters),$.closeNode(),!0;return $.leafNode(this.tag,{colId:I.colId,hiddenButton:I.filterButton?"0":"1"}),!0}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;let{attributes:I}=$;switch($.name){case this.tag:return this.model={filterButton:I.hiddenButton==="0"},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}F50.exports=O50});var P50=O((TB1,A50)=>{var Rl0=L0(),jl0=N50();class M50 extends Rl0{constructor(){super();this.map={filterColumn:new jl0}}get tag(){return"autoFilter"}prepare($){$.columns.forEach((I,U)=>{this.map.filterColumn.prepare(I,{index:U})})}render($,I){return $.openNode(this.tag,{ref:I.autoFilterRef}),I.columns.forEach((U)=>{this.map.filterColumn.render($,U)}),$.closeNode(),!0}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:return this.model={autoFilterRef:$.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.columns.push(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}A50.exports=M50});var B50=O((EB1,E50)=>{var Cl0=L0();class T50 extends Cl0{get tag(){return"tableColumn"}prepare($,I){$.id=I.index+1}render($,I){return $.leafNode(this.tag,{id:I.id.toString(),name:I.name,totalsRowLabel:I.totalsRowLabel,totalsRowFunction:I.totalsRowFunction,dxfId:I.dxfId}),!0}parseOpen($){if($.name===this.tag){let{attributes:I}=$;return this.model={name:I.name,totalsRowLabel:I.totalsRowLabel,totalsRowFunction:I.totalsRowFunction,dxfId:I.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}E50.exports=T50});var j50=O((BB1,R50)=>{var _l0=L0();class v50 extends _l0{get tag(){return"tableStyleInfo"}render($,I){return $.leafNode(this.tag,{name:I.theme?I.theme:void 0,showFirstColumn:I.showFirstColumn?"1":"0",showLastColumn:I.showLastColumn?"1":"0",showRowStripes:I.showRowStripes?"1":"0",showColumnStripes:I.showColumnStripes?"1":"0"}),!0}parseOpen($){if($.name===this.tag){let{attributes:I}=$;return this.model={theme:I.name?I.name:null,showFirstColumn:I.showFirstColumn==="1",showLastColumn:I.showLastColumn==="1",showRowStripes:I.showRowStripes==="1",showColumnStripes:I.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}R50.exports=v50});var _50=O((vB1,C50)=>{var Sl0=U6(),gl0=L0(),yl0=f9(),hl0=P50(),ul0=B50(),xl0=j50();class eZ extends gl0{constructor(){super();this.map={autoFilter:new hl0,tableColumns:new yl0({tag:"tableColumns",count:!0,empty:!0,childXform:new ul0}),tableStyleInfo:new xl0}}prepare($,I){this.map.autoFilter.prepare($),this.map.tableColumns.prepare($.columns,I)}get tag(){return"table"}render($,I){$.openXml(Sl0.StdDocAttributes),$.openNode(this.tag,{...eZ.TABLE_ATTRIBUTES,id:I.id,name:I.name,displayName:I.displayName||I.name,ref:I.tableRef,totalsRowCount:I.totalsRow?"1":void 0,totalsRowShown:I.totalsRow?void 0:"1",headerRowCount:I.headerRow?"1":"0"}),this.map.autoFilter.render($,I),this.map.tableColumns.render($,I.columns),this.map.tableStyleInfo.render($,I.style),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;let{name:I,attributes:U}=$;switch(I){case this.tag:this.reset(),this.model={name:U.name,displayName:U.displayName||U.name,tableRef:U.ref,totalsRow:U.totalsRowCount==="1",headerRow:U.headerRowCount==="1"};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:if(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model)this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((I,U)=>{this.model.columns[U].filterButton=I.filterButton});return this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile($,I){$.columns.forEach((U)=>{if(U.dxfId!==void 0)U.style=I.styles.getDxfStyle(U.dxfId)})}}eZ.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"};C50.exports=eZ});var ij=O((RB1,S50)=>{var kl0=vK(),fl0=O6(),bl0=L0(),il0=S50.exports=function($){this.model=$};fl0.inherits(il0,bl0,{get tag(){return"r"},get richTextXform(){if(!this._richTextXform)this._richTextXform=new kl0;return this._richTextXform},render($,I){if(I=I||this.model,$.openNode("comment",{ref:I.ref,authorId:0}),$.openNode("text"),I&&I.note&&I.note.texts)I.note.texts.forEach((U)=>{this.richTextXform.render($,U)});$.closeNode(),$.closeNode()},parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"comment":return this.model={type:"note",note:{texts:[]},...$.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen($),!0;default:return!1}},parseText($){if(this.parser)this.parser.parseText($)},parseClose($){switch($){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:if(this.parser)this.parser.parseClose($);return!0}}})});var h50=O((jB1,y50)=>{var nl0=U6(),pl0=O6(),cl0=L0(),dl0=ij(),g50=y50.exports=function(){this.map={comment:new dl0}};pl0.inherits(g50,cl0,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render($,I){I=I||this.model,$.openXml(nl0.StdDocAttributes),$.openNode("comments",g50.COMMENTS_ATTRIBUTES),$.openNode("authors"),$.leafNode("author",null,"Author"),$.closeNode(),$.openNode("commentList"),I.comments.forEach((U)=>{this.map.comment.render($,U)}),$.closeNode(),$.closeNode()},parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen($),!0;default:return!1}},parseText($){if(this.parser)this.parser.parseText($)},parseClose($){switch($){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:if(this.parser)this.parser.parseClose($);return!0}}})});var k50=O((CB1,x50)=>{var ml0=L0();class u50 extends ml0{get tag(){return"v:textbox"}conversionUnit($,I,U){return`${parseFloat($)*I.toFixed(2)}${U}`}reverseConversionUnit($){return($||"").split(",").map((I)=>{return Number(parseFloat(this.conversionUnit(parseFloat(I),0.1,"")).toFixed(2))})}render($,I){let U={style:"mso-direction-alt:auto"};if(I&&I.note){let{inset:Y}=I.note&&I.note.margins;if(Array.isArray(Y))Y=Y.map((J)=>{return this.conversionUnit(J,10,"mm")}).join(",");if(Y)U.inset=Y}$.openNode("v:textbox",U),$.leafNode("div",{style:"text-align:left"}),$.closeNode()}parseOpen($){switch($.name){case this.tag:return this.model={inset:this.reverseConversionUnit($.attributes.inset)},!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}x50.exports=u50});var i50=O((_B1,b50)=>{var ll0=L0();class f50 extends ll0{get tag(){return"x:Anchor"}getAnchorRect($){let I=Math.floor($.left),U=Math.floor(($.left-I)*68),Y=Math.floor($.top),J=Math.floor(($.top-Y)*18),Q=Math.floor($.right),K=Math.floor(($.right-Q)*68),q=Math.floor($.bottom),H=Math.floor(($.bottom-q)*18);return[I,U,Y,J,Q,K,q,H]}getDefaultRect($){let I=$.col,U=6,Y=Math.max($.row-2,0),J=14,Q=I+2,K=2,q=Y+4,H=16;return[I,6,Y,14,Q,2,q,16]}render($,I){let U=I.anchor?this.getAnchorRect(I.anchor):this.getDefaultRect(I.refAddress);$.leafNode("x:Anchor",null,U.join(", "))}parseOpen($){switch($.name){case this.tag:return this.text="",!0;default:return!1}}parseText($){this.text=$}parseClose(){return!1}}b50.exports=f50});var c50=O((SB1,p50)=>{var ol0=L0();class n50 extends ol0{constructor($){super();this._model=$}get tag(){return this._model&&this._model.tag}render($,I){$.leafNode(this.tag,null,I)}parseOpen($){switch($.name){case this.tag:return this.text="",!0;default:return!1}}parseText($){this.text=$}parseClose(){return!1}}p50.exports=n50});var l50=O((gB1,m50)=>{var rl0=L0();class d50 extends rl0{constructor($){super();this._model=$}get tag(){return this._model&&this._model.tag}render($,I,U){if(I===U[2])$.leafNode(this.tag);else if(this.tag==="x:SizeWithCells"&&I===U[1])$.leafNode(this.tag)}parseOpen($){switch($.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}m50.exports=d50});var s50=O((yB1,a50)=>{var tl0=L0(),al0=i50(),o50=c50(),r50=l50(),nj=["twoCells","oneCells","absolute"];class t50 extends tl0{constructor(){super();this.map={"x:Anchor":new al0,"x:Locked":new o50({tag:"x:Locked"}),"x:LockText":new o50({tag:"x:LockText"}),"x:SizeWithCells":new r50({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r50({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render($,I){let{protection:U,editAs:Y}=I.note;$.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render($,Y,nj),this.map["x:SizeWithCells"].render($,Y,nj),this.map["x:Anchor"].render($,I),this.map["x:Locked"].render($,U.locked),$.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render($,U.lockText),$.leafNode("x:Row",null,I.refAddress.row-1),$.leafNode("x:Column",null,I.refAddress.col-1),$.closeNode()}parseOpen($){switch($.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){let $=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),I=Object.keys($).length;this.model.editAs=nj[I],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}a50.exports=t50});var pj=O((hB1,e50)=>{var sl0=L0(),el0=k50(),$o0=s50();class $z extends sl0{constructor(){super();this.map={"v:textbox":new el0,"x:ClientData":new $o0}}get tag(){return"v:shape"}render($,I,U){$.openNode("v:shape",$z.V_SHAPE_ATTRIBUTES(I,U)),$.leafNode("v:fill",{color2:"infoBackground [80]"}),$.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),$.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render($,I),this.map["x:ClientData"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={margins:{insetmode:$.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}$z.V_SHAPE_ATTRIBUTES=($,I)=>({id:`_x0000_s${1025+I}`,type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":$.note.margins&&$.note.margins.insetmode});e50.exports=$z});var I90=O((uB1,$90)=>{var Io0=U6(),Uo0=L0(),Yo0=pj();class Iz extends Uo0{constructor(){super();this.map={"v:shape":new Yo0}}get tag(){return"xml"}render($,I){$.openXml(Io0.StdDocAttributes),$.openNode(this.tag,Iz.DRAWING_ATTRIBUTES),$.openNode("o:shapelayout",{"v:ext":"edit"}),$.leafNode("o:idmap",{"v:ext":"edit",data:1}),$.closeNode(),$.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),$.leafNode("v:stroke",{joinstyle:"miter"}),$.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),$.closeNode(),I.comments.forEach((U,Y)=>{this.map["v:shape"].render($,U,Y)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={comments:[]};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.comments.push(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:return!0}}reconcile($,I){$.anchors.forEach((U)=>{if(U.br)this.map["xdr:twoCellAnchor"].reconcile(U,I);else this.map["xdr:oneCellAnchor"].reconcile(U,I)})}}Iz.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"};$90.exports=Iz});var cj=O((xB1,U90)=>{U90.exports=` - `});var sj=O((fB1,q90)=>{var aj=t("fs"),Jo0=ov(),{PassThrough:dj}=D6(),Qo0=ie(),mj=NK(),Ko0=O6(),Uz=U6(),{bufferToString:kB1}=PR(),lj=uZ(),Y90=Uj(),oj=Yj(),D3=bZ(),qo0=Jj(),J90=Qj(),Yz=nZ(),Jz=P80(),rj=W50(),tj=_50(),Q90=h50(),K90=I90(),Ho0=cj();function Go0($,I){return new Promise((U,Y)=>{aj.readFile($,I,(J,Q)=>{if(J)Y(J);else U(Q)})})}class h8{constructor($){this.workbook=$}async readFile($,I){if(!await Ko0.fs.exists($))throw Error(`File not found: ${$}`);let U=aj.createReadStream($);try{let Y=await this.read(U,I);return U.close(),Y}catch(Y){throw U.close(),Y}}parseRels($){return new D3().parseStream($)}parseWorkbook($){return new Yz().parseStream($)}parseSharedStrings($){return new oj().parseStream($)}reconcile($,I){let U=new Yz,Y=new Jz(I),J=new rj,Q=new tj;U.reconcile($);let K={media:$.media,mediaIndex:$.mediaIndex};Object.keys($.drawings).forEach((G)=>{let W=$.drawings[G],w=$.drawingRels[G];if(w)K.rels=w.reduce((Z,V)=>{return Z[V.Id]=V,Z},{}),(W.anchors||[]).forEach((Z)=>{let V=Z.picture&&Z.picture.hyperlinks;if(V&&K.rels[V.rId])V.hyperlink=K.rels[V.rId].Target,delete V.rId}),J.reconcile(W,K)});let q={styles:$.styles};Object.values($.tables).forEach((G)=>{Q.reconcile(G,q)});let H={styles:$.styles,sharedStrings:$.sharedStrings,media:$.media,mediaIndex:$.mediaIndex,date1904:$.properties&&$.properties.date1904,drawings:$.drawings,comments:$.comments,tables:$.tables,vmlDrawings:$.vmlDrawings};$.worksheets.forEach((G)=>{G.relationships=$.worksheetRels[G.sheetNo],Y.reconcile(G,H)}),delete $.worksheetHash,delete $.worksheetRels,delete $.globalRels,delete $.sharedStrings,delete $.workbookRels,delete $.sheetDefs,delete $.styles,delete $.mediaIndex,delete $.drawings,delete $.drawingRels,delete $.vmlDrawings}async _processWorksheetEntry($,I,U,Y,J){let K=await new Jz(Y).parseStream($);K.sheetNo=U,I.worksheetHash[J]=K,I.worksheets.push(K)}async _processCommentEntry($,I,U){let J=await new Q90().parseStream($);I.comments[`../${U}.xml`]=J}async _processTableEntry($,I,U){let J=await new tj().parseStream($);I.tables[`../tables/${U}.xml`]=J}async _processWorksheetRelsEntry($,I,U){let J=await new D3().parseStream($);I.worksheetRels[U]=J}async _processMediaEntry($,I,U){let Y=U.lastIndexOf(".");if(Y>=1){let J=U.substr(Y+1),Q=U.substr(0,Y);await new Promise((K,q)=>{let H=new mj;H.on("finish",()=>{I.mediaIndex[U]=I.media.length,I.mediaIndex[Q]=I.media.length;let G={type:"image",name:Q,extension:J,buffer:H.toBuffer()};I.media.push(G),K()}),$.on("error",(G)=>{q(G)}),$.pipe(H)})}}async _processDrawingEntry($,I,U){let J=await new rj().parseStream($);I.drawings[U]=J}async _processDrawingRelsEntry($,I,U){let J=await new D3().parseStream($);I.drawingRels[U]=J}async _processVmlDrawingEntry($,I,U){let J=await new K90().parseStream($);I.vmlDrawings[`../drawings/${U}.vml`]=J}async _processThemeEntry($,I,U){await new Promise((Y,J)=>{let Q=new mj;$.on("error",J),Q.on("error",J),Q.on("finish",()=>{I.themes[U]=Q.read().toString(),Y()}),$.pipe(Q)})}createInputStream(){throw Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read($,I){if(!$[Symbol.asyncIterator]&&$.pipe)$=$.pipe(new dj);let U=[];for await(let Y of $)U.push(Y);return this.load(Buffer.concat(U),I)}async load($,I){let U;if(I&&I.base64)U=Buffer.from($.toString(),"base64");else U=$;let Y={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},J=await Jo0.loadAsync(U);for(let Q of Object.values(J.files))if(!Q.dir){let K=Q.name;if(K[0]==="/")K=K.substr(1);let q;if(K.match(/xl\/media\//)||K.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))q=new dj,q.write(await Q.async("nodebuffer"));else{q=new dj({writableObjectMode:!0,readableObjectMode:!0});let H;H=await Q.async("string");let G=16384;for(let W=0;W{if(U.type==="image"){let Y=`xl/media/${U.name}.${U.extension}`;if(U.filename){let J=await Go0(U.filename);return $.append(J,{name:Y})}if(U.buffer)return $.append(U.buffer,{name:Y});if(U.base64){let J=U.base64,Q=J.substring(J.indexOf(",")+1);return $.append(Q,{name:Y,base64:!0})}}throw Error("Unsupported media")}))}addDrawings($,I){let U=new rj,Y=new D3;I.worksheets.forEach((J)=>{let{drawing:Q}=J;if(Q){U.prepare(Q,{});let K=U.toXml(Q);$.append(K,{name:`xl/drawings/${Q.name}.xml`}),K=Y.toXml(Q.rels),$.append(K,{name:`xl/drawings/_rels/${Q.name}.xml.rels`})}})}addTables($,I){let U=new tj;I.worksheets.forEach((Y)=>{let{tables:J}=Y;J.forEach((Q)=>{U.prepare(Q,{});let K=U.toXml(Q);$.append(K,{name:`xl/tables/${Q.target}`})})})}async addContentTypes($,I){let Y=new qo0().toXml(I);$.append(Y,{name:"[Content_Types].xml"})}async addApp($,I){let Y=new J90().toXml(I);$.append(Y,{name:"docProps/app.xml"})}async addCore($,I){let U=new Y90;$.append(U.toXml(I),{name:"docProps/core.xml"})}async addThemes($,I){let U=I.themes||{theme1:Ho0};Object.keys(U).forEach((Y)=>{let J=U[Y],Q=`xl/theme/${Y}.xml`;$.append(J,{name:Q})})}async addOfficeRels($){let U=new D3().toXml([{Id:"rId1",Type:h8.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:h8.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:h8.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);$.append(U,{name:"_rels/.rels"})}async addWorkbookRels($,I){let U=1,Y=[{Id:`rId${U++}`,Type:h8.RelType.Styles,Target:"styles.xml"},{Id:`rId${U++}`,Type:h8.RelType.Theme,Target:"theme/theme1.xml"}];if(I.sharedStrings.count)Y.push({Id:`rId${U++}`,Type:h8.RelType.SharedStrings,Target:"sharedStrings.xml"});I.worksheets.forEach((K)=>{K.rId=`rId${U++}`,Y.push({Id:K.rId,Type:h8.RelType.Worksheet,Target:`worksheets/sheet${K.id}.xml`})});let Q=new D3().toXml(Y);$.append(Q,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings($,I){if(I.sharedStrings&&I.sharedStrings.count)$.append(I.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles($,I){let{xml:U}=I.styles;if(U)$.append(U,{name:"xl/styles.xml"})}async addWorkbook($,I){let U=new Yz;$.append(U.toXml(I),{name:"xl/workbook.xml"})}async addWorksheets($,I){let U=new Jz,Y=new D3,J=new Q90,Q=new K90;I.worksheets.forEach((K)=>{let q=new Uz;if(U.render(q,K),$.append(q.xml,{name:`xl/worksheets/sheet${K.id}.xml`}),K.rels&&K.rels.length)q=new Uz,Y.render(q,K.rels),$.append(q.xml,{name:`xl/worksheets/_rels/sheet${K.id}.xml.rels`});if(K.comments.length>0)q=new Uz,J.render(q,K),$.append(q.xml,{name:`xl/comments${K.id}.xml`}),q=new Uz,Q.render(q,K),$.append(q.xml,{name:`xl/drawings/vmlDrawing${K.id}.vml`})})}_finalize($){return new Promise((I,U)=>{$.on("finish",()=>{I(this)}),$.on("error",U),$.finalize()})}prepareModel($,I){$.creator=$.creator||"ExcelJS",$.lastModifiedBy=$.lastModifiedBy||"ExcelJS",$.created=$.created||new Date,$.modified=$.modified||new Date,$.useSharedStrings=I.useSharedStrings!==void 0?I.useSharedStrings:!0,$.useStyles=I.useStyles!==void 0?I.useStyles:!0,$.sharedStrings=new oj,$.styles=$.useStyles?new lj(!0):new lj.Mock;let U=new Yz,Y=new Jz;U.prepare($);let J={sharedStrings:$.sharedStrings,styles:$.styles,date1904:$.properties.date1904,drawingsCount:0,media:$.media};J.drawings=$.drawings=[],J.commentRefs=$.commentRefs=[];let Q=0;$.tables=[],$.worksheets.forEach((K)=>{K.tables.forEach((q)=>{Q++,q.target=`table${Q}.xml`,q.id=Q,$.tables.push(q)}),Y.prepare(K,J)})}async write($,I){I=I||{};let{model:U}=this.workbook,Y=new Qo0.ZipWriter(I.zip);return Y.pipe($),this.prepareModel(U,I),await this.addContentTypes(Y,U),await this.addOfficeRels(Y,U),await this.addWorkbookRels(Y,U),await this.addWorksheets(Y,U),await this.addSharedStrings(Y,U),await this.addDrawings(Y,U),await this.addTables(Y,U),await Promise.all([this.addThemes(Y,U),this.addStyles(Y,U)]),await this.addMedia(Y,U),await Promise.all([this.addApp(Y,U),this.addCore(Y,U)]),await this.addWorkbook(Y,U),this._finalize(Y)}writeFile($,I){let U=aj.createWriteStream($);return new Promise((Y,J)=>{U.on("finish",()=>{Y()}),U.on("error",(Q)=>{J(Q)}),this.write(U,I).then(()=>{U.end()}).catch((Q)=>{J(Q)})})}async writeBuffer($){let I=new mj;return await this.write(I,$),I.read()}}h8.RelType=n9();q90.exports=h8});var ej=O((G90)=>{Object.defineProperty(G90,"__esModule",{value:!0});G90.FormatterOptions=void 0;class H90{constructor($={}){var I;if(this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` -`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,$||{}),typeof($===null||$===void 0?void 0:$.quoteHeaders)>"u")this.quoteHeaders=this.quoteColumns;if(($===null||$===void 0?void 0:$.quote)===!0)this.quote='"';else if(($===null||$===void 0?void 0:$.quote)===!1)this.quote="";if(typeof($===null||$===void 0?void 0:$.escape)!=="string")this.escape=this.quote;this.shouldWriteHeaders=!!this.headers&&((I=$.writeHeaders)!==null&&I!==void 0?I:!0),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}G90.FormatterOptions=H90});var Qz=O((iB1,z90)=>{var Wo0="[object AsyncFunction]",wo0="[object Function]",Vo0="[object GeneratorFunction]",Zo0="[object Null]",zo0="[object Proxy]",Xo0="[object Undefined]",Lo0=typeof global=="object"&&global&&global.Object===Object&&global,Do0=typeof self=="object"&&self&&self.Object===Object&&self,Oo0=Lo0||Do0||Function("return this")(),V90=Object.prototype,Fo0=V90.hasOwnProperty,Z90=V90.toString,w90=Oo0.Symbol,O3=w90?w90.toStringTag:void 0;function No0($){if($==null)return $===void 0?Xo0:Zo0;return O3&&O3 in Object($)?Mo0($):Ao0($)}function Mo0($){var I=Fo0.call($,O3),U=$[O3];try{$[O3]=void 0;var Y=!0}catch(Q){}var J=Z90.call($);if(Y)if(I)$[O3]=U;else delete $[O3];return J}function Ao0($){return Z90.call($)}function Po0($){if(!To0($))return!1;var I=No0($);return I==wo0||I==Vo0||I==Wo0||I==zo0}function To0($){var I=typeof $;return $!=null&&(I=="object"||I=="function")}z90.exports=Po0});var r90=O((Kz,XY)=>{var Eo0=200,WC="__lodash_hash_undefined__",zz=1,B90=2,v90=9007199254740991,qz="[object Arguments]",YC="[object Array]",Bo0="[object AsyncFunction]",R90="[object Boolean]",j90="[object Date]",C90="[object Error]",_90="[object Function]",vo0="[object GeneratorFunction]",Hz="[object Map]",S90="[object Number]",Ro0="[object Null]",zY="[object Object]",X90="[object Promise]",jo0="[object Proxy]",g90="[object RegExp]",Gz="[object Set]",y90="[object String]",Co0="[object Symbol]",_o0="[object Undefined]",JC="[object WeakMap]",h90="[object ArrayBuffer]",Wz="[object DataView]",So0="[object Float32Array]",go0="[object Float64Array]",yo0="[object Int8Array]",ho0="[object Int16Array]",uo0="[object Int32Array]",xo0="[object Uint8Array]",ko0="[object Uint8ClampedArray]",fo0="[object Uint16Array]",bo0="[object Uint32Array]",io0=/[\\^$.*+?()[\]{}|]/g,no0=/^\[object .+?Constructor\]$/,po0=/^(?:0|[1-9]\d*)$/,e1={};e1[So0]=e1[go0]=e1[yo0]=e1[ho0]=e1[uo0]=e1[xo0]=e1[ko0]=e1[fo0]=e1[bo0]=!0;e1[qz]=e1[YC]=e1[h90]=e1[R90]=e1[Wz]=e1[j90]=e1[C90]=e1[_90]=e1[Hz]=e1[S90]=e1[zY]=e1[g90]=e1[Gz]=e1[y90]=e1[JC]=!1;var u90=typeof global=="object"&&global&&global.Object===Object&&global,co0=typeof self=="object"&&self&&self.Object===Object&&self,E5=u90||co0||Function("return this")(),x90=typeof Kz=="object"&&Kz&&!Kz.nodeType&&Kz,L90=x90&&typeof XY=="object"&&XY&&!XY.nodeType&&XY,k90=L90&&L90.exports===x90,$C=k90&&u90.process,D90=function(){try{return $C&&$C.binding&&$C.binding("util")}catch($){}}(),O90=D90&&D90.isTypedArray;function do0($,I){var U=-1,Y=$==null?0:$.length,J=0,Q=[];while(++U-1}function Mr0($,I){var U=this.__data__,Y=Lz(U,$);if(Y<0)++this.size,U.push([$,I]);else U[Y][1]=I;return this}B5.prototype.clear=Dr0;B5.prototype.delete=Or0;B5.prototype.get=Fr0;B5.prototype.has=Nr0;B5.prototype.set=Mr0;function M3($){var I=-1,U=$==null?0:$.length;this.clear();while(++Iq))return!1;var G=Q.get($);if(G&&Q.get(I))return G==I;var W=-1,w=!0,Z=U&B90?new Vz:void 0;Q.set($,I),Q.set(I,$);while(++W-1&&$%1==0&&$-1&&$%1==0&&$<=v90}function l90($){var I=typeof $;return $!=null&&(I=="object"||I=="function")}function gK($){return $!=null&&typeof $=="object"}var o90=O90?ro0(O90):kr0;function sr0($){return tr0($)?yr0($):fr0($)}function er0(){return[]}function $t0(){return!1}XY.exports=ar0});var a90=O((pB1,t90)=>{var It0="[object Boolean]",Ut0=Object.prototype,Yt0=Ut0.toString;function Jt0($){return $===!0||$===!1||Qt0($)&&Yt0.call($)==It0}function Qt0($){return!!$&&typeof $=="object"}t90.exports=Jt0});var wC=O((cB1,s90)=>{function Kt0($){return $==null}s90.exports=Kt0});var VC=O((dB1,Y70)=>{var qt0=1/0,Ht0="[object Symbol]",U70=/[\\^$.*+?()[\]{}|]/g,Gt0=RegExp(U70.source),Wt0=typeof global=="object"&&global&&global.Object===Object&&global,wt0=typeof self=="object"&&self&&self.Object===Object&&self,Vt0=Wt0||wt0||Function("return this")(),Zt0=Object.prototype,zt0=Zt0.toString,e90=Vt0.Symbol,$70=e90?e90.prototype:void 0,I70=$70?$70.toString:void 0;function Xt0($){if(typeof $=="string")return $;if(Dt0($))return I70?I70.call($):"";var I=$+"";return I=="0"&&1/$==-qt0?"-0":I}function Lt0($){return!!$&&typeof $=="object"}function Dt0($){return typeof $=="symbol"||Lt0($)&&zt0.call($)==Ht0}function Ot0($){return $==null?"":Xt0($)}function Ft0($){return $=Ot0($),$&&Gt0.test($)?$.replace(U70,"\\$&"):$}Y70.exports=Ft0});var zC=O((DY)=>{var ZC=DY&&DY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(DY,"__esModule",{value:!0});DY.FieldFormatter=void 0;var Nt0=ZC(a90()),Mt0=ZC(wC()),At0=ZC(VC());class J70{constructor($){if(this._headers=null,this.formatterOptions=$,$.headers!==null)this.headers=$.headers;this.REPLACE_REGEXP=new RegExp($.quote,"g");let I=`[${$.delimiter}${At0.default($.rowDelimiter)}|\r| -]`;this.ESCAPE_REGEXP=new RegExp(I)}set headers($){this._headers=$}shouldQuote($,I){let U=I?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;if(Nt0.default(U))return U;if(Array.isArray(U))return U[$];if(this._headers!==null)return U[this._headers[$]];return!1}format($,I,U){let Y=`${Mt0.default($)?"":$}`.replace(/\0/g,""),{formatterOptions:J}=this;if(J.quote!==""){if(Y.indexOf(J.quote)!==-1)return this.quoteField(Y.replace(this.REPLACE_REGEXP,J.escapedQuote))}if(Y.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(I,U))return this.quoteField(Y);return Y}quoteField($){let{quote:I}=this.formatterOptions;return`${I}${$}${I}`}}DY.FieldFormatter=J70});var XC=O((Q70)=>{Object.defineProperty(Q70,"__esModule",{value:!0});Q70.isSyncTransform=void 0;Q70.isSyncTransform=($)=>$.length===1});var H70=O((OY)=>{var q70=OY&&OY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(OY,"__esModule",{value:!0});OY.RowFormatter=void 0;var Pt0=q70(Qz()),Tt0=q70(r90()),Et0=zC(),Bt0=XC();class P3{constructor($){if(this.rowCount=0,this.formatterOptions=$,this.fieldFormatter=new Et0.FieldFormatter($),this.headers=$.headers,this.shouldWriteHeaders=$.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null)this.fieldFormatter.headers=this.headers;if($.transform)this.rowTransform=$.transform}static isRowHashArray($){if(Array.isArray($))return Array.isArray($[0])&&$[0].length===2;return!1}static isRowArray($){return Array.isArray($)&&!this.isRowHashArray($)}static gatherHeaders($){if(P3.isRowHashArray($))return $.map((I)=>I[0]);if(Array.isArray($))return $;return Object.keys($)}static createTransform($){if(Bt0.isSyncTransform($))return(I,U)=>{let Y=null;try{Y=$(I)}catch(J){return U(J)}return U(null,Y)};return(I,U)=>{$(I,U)}}set rowTransform($){if(!Pt0.default($))throw TypeError("The transform should be a function");this._rowTransform=P3.createTransform($)}format($,I){this.callTransformer($,(U,Y)=>{if(U)return I(U);if(!$)return I(null);let J=[];if(Y){let{shouldFormatColumns:Q,headers:K}=this.checkHeaders(Y);if(this.shouldWriteHeaders&&K&&!this.hasWrittenHeaders)J.push(this.formatColumns(K,!0)),this.hasWrittenHeaders=!0;if(Q){let q=this.gatherColumns(Y);J.push(this.formatColumns(q,!1))}}return I(null,J)})}finish($){let I=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return $(Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));I.push(this.formatColumns(this.headers,!0))}if(this.formatterOptions.includeEndRowDelimiter)I.push(this.formatterOptions.rowDelimiter);return $(null,I)}checkHeaders($){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let I=P3.gatherHeaders($);if(this.headers=I,this.fieldFormatter.headers=I,!this.shouldWriteHeaders)return{shouldFormatColumns:!0,headers:null};return{shouldFormatColumns:!Tt0.default(I,$),headers:I}}gatherColumns($){if(this.headers===null)throw Error("Headers is currently null");if(!Array.isArray($))return this.headers.map((I)=>$[I]);if(P3.isRowHashArray($))return this.headers.map((I,U)=>{let Y=$[U];if(Y)return Y[1];return""});if(P3.isRowArray($)&&!this.shouldWriteHeaders)return $;return this.headers.map((I,U)=>$[U])}callTransformer($,I){if(!this._rowTransform)return I(null,$);return this._rowTransform($,I)}formatColumns($,I){let U=$.map((J,Q)=>this.fieldFormatter.format(J,Q,I)).join(this.formatterOptions.delimiter),{rowCount:Y}=this;if(this.rowCount+=1,Y)return[this.formatterOptions.rowDelimiter,U].join("");return U}}OY.RowFormatter=P3});var G70=O((Oz)=>{Object.defineProperty(Oz,"__esModule",{value:!0});Oz.FieldFormatter=Oz.RowFormatter=void 0;var vt0=H70();Object.defineProperty(Oz,"RowFormatter",{enumerable:!0,get:function(){return vt0.RowFormatter}});var Rt0=zC();Object.defineProperty(Oz,"FieldFormatter",{enumerable:!0,get:function(){return Rt0.FieldFormatter}})});var LC=O((w70)=>{Object.defineProperty(w70,"__esModule",{value:!0});w70.CsvFormatterStream=void 0;var Ct0=t("stream"),_t0=G70();class W70 extends Ct0.Transform{constructor($){super({writableObjectMode:$.objectMode});this.hasWrittenBOM=!1,this.formatterOptions=$,this.rowFormatter=new _t0.RowFormatter($),this.hasWrittenBOM=!$.writeBOM}transform($){return this.rowFormatter.rowTransform=$,this}_transform($,I,U){let Y=!1;try{if(!this.hasWrittenBOM)this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0;this.rowFormatter.format($,(J,Q)=>{if(J)return Y=!0,U(J);if(Q)Q.forEach((K)=>{this.push(Buffer.from(K,"utf8"))});return Y=!0,U()})}catch(J){if(Y)throw J;U(J)}}_flush($){this.rowFormatter.finish((I,U)=>{if(I)return $(I);if(U)U.forEach((Y)=>{this.push(Buffer.from(Y,"utf8"))});return $()})}}w70.CsvFormatterStream=W70});var z70=O((P1)=>{var Z70=P1&&P1.__createBinding||(Object.create?function($,I,U,Y){if(Y===void 0)Y=U;Object.defineProperty($,Y,{enumerable:!0,get:function(){return I[U]}})}:function($,I,U,Y){if(Y===void 0)Y=U;$[Y]=I[U]}),St0=P1&&P1.__setModuleDefault||(Object.create?function($,I){Object.defineProperty($,"default",{enumerable:!0,value:I})}:function($,I){$.default=I}),gt0=P1&&P1.__importStar||function($){if($&&$.__esModule)return $;var I={};if($!=null){for(var U in $)if(U!=="default"&&Object.prototype.hasOwnProperty.call($,U))Z70(I,$,U)}return St0(I,$),I},yt0=P1&&P1.__exportStar||function($,I){for(var U in $)if(U!=="default"&&!Object.prototype.hasOwnProperty.call(I,U))Z70(I,$,U)};Object.defineProperty(P1,"__esModule",{value:!0});P1.writeToPath=P1.writeToString=P1.writeToBuffer=P1.writeToStream=P1.write=P1.format=P1.FormatterOptions=P1.CsvFormatterStream=void 0;var ht0=t("util"),ut0=t("stream"),xt0=gt0(t("fs")),kt0=ej(),ft0=LC();yt0(XC(),P1);var bt0=LC();Object.defineProperty(P1,"CsvFormatterStream",{enumerable:!0,get:function(){return bt0.CsvFormatterStream}});var it0=ej();Object.defineProperty(P1,"FormatterOptions",{enumerable:!0,get:function(){return it0.FormatterOptions}});P1.format=($)=>new ft0.CsvFormatterStream(new kt0.FormatterOptions($));P1.write=($,I)=>{let U=P1.format(I),Y=ht0.promisify((J,Q)=>{U.write(J,void 0,Q)});return $.reduce((J,Q)=>J.then(()=>Y(Q)),Promise.resolve()).then(()=>U.end()).catch((J)=>{U.emit("error",J)}),U};P1.writeToStream=($,I,U)=>P1.write(I,U).pipe($);P1.writeToBuffer=($,I={})=>{let U=[],Y=new ut0.Writable({write(J,Q,K){U.push(J),K()}});return new Promise((J,Q)=>{Y.on("error",Q).on("finish",()=>J(Buffer.concat(U))),P1.write($,I).pipe(Y)})};P1.writeToString=($,I)=>P1.writeToBuffer($,I).then((U)=>U.toString());P1.writeToPath=($,I,U)=>{let Y=xt0.createWriteStream($,{encoding:"utf8"});return P1.write(I,U).pipe(Y)}});var DC=O((FY)=>{var X70=FY&&FY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(FY,"__esModule",{value:!0});FY.ParserOptions=void 0;var nt0=X70(VC()),pt0=X70(wC());class L70{constructor($){var I;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,$||{}),this.delimiter.length>1)throw Error("delimiter option must be one character long");if(this.escapedDelimiter=nt0.default(this.delimiter),this.escapeChar=(I=this.escape)!==null&&I!==void 0?I:this.quote,this.supportsComments=!pt0.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0)this.limitRows=!0}}FY.ParserOptions=L70});var OC=O((D70)=>{Object.defineProperty(D70,"__esModule",{value:!0});D70.isSyncValidate=D70.isSyncTransform=void 0;D70.isSyncTransform=($)=>$.length===1;D70.isSyncValidate=($)=>$.length===1});var M70=O((NY)=>{var dt0=NY&&NY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(NY,"__esModule",{value:!0});NY.RowTransformerValidator=void 0;var F70=dt0(Qz()),N70=OC();class Fz{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform($){if(N70.isSyncTransform($))return(I,U)=>{let Y=null;try{Y=$(I)}catch(J){return U(J)}return U(null,Y)};return $}static createValidator($){if(N70.isSyncValidate($))return(I,U)=>{U(null,{row:I,isValid:$(I)})};return(I,U)=>{$(I,(Y,J,Q)=>{if(Y)return U(Y);if(J)return U(null,{row:I,isValid:J,reason:Q});return U(null,{row:I,isValid:!1,reason:Q})})}}set rowTransform($){if(!F70.default($))throw TypeError("The transform should be a function");this._rowTransform=Fz.createTransform($)}set rowValidator($){if(!F70.default($))throw TypeError("The validate should be a function");this._rowValidator=Fz.createValidator($)}transformAndValidate($,I){return this.callTransformer($,(U,Y)=>{if(U)return I(U);if(!Y)return I(null,{row:null,isValid:!0});return this.callValidator(Y,(J,Q)=>{if(J)return I(J);if(Q&&!Q.isValid)return I(null,{row:Y,isValid:!1,reason:Q.reason});return I(null,{row:Y,isValid:!0})})})}callTransformer($,I){if(!this._rowTransform)return I(null,$);return this._rowTransform($,I)}callValidator($,I){if(!this._rowValidator)return I(null,{row:$,isValid:!0});return this._rowValidator($,I)}}NY.RowTransformerValidator=Fz});var P70=O((Uv1,A70)=>{function mt0($){return $===void 0}A70.exports=mt0});var C70=O((Yv1,j70)=>{var lt0=200,MC="__lodash_hash_undefined__",ot0=1/0,rt0="[object Function]",tt0="[object GeneratorFunction]",at0=/[\\^$.*+?()[\]{}|]/g,st0=/^\[object .+?Constructor\]$/,et0=typeof global=="object"&&global&&global.Object===Object&&global,$a0=typeof self=="object"&&self&&self.Object===Object&&self,AC=et0||$a0||Function("return this")();function Ia0($,I){var U=$?$.length:0;return!!U&&Ja0($,I,0)>-1}function Ua0($,I,U){var Y=-1,J=$?$.length:0;while(++Y-1}function Ta0($,I){var U=this.__data__,Y=Mz(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}MY.prototype.clear=Na0;MY.prototype.delete=Ma0;MY.prototype.get=Aa0;MY.prototype.has=Pa0;MY.prototype.set=Ta0;function AY($){var I=-1,U=$?$.length:0;this.clear();while(++I=lt0){var G=I?null:ya0($);if(G)return E70(G);K=!1,J=Ka0,H=new Nz}else H=I?[]:q;$:while(++Y{var na0=200,pa0="Expected a function",yC="__lodash_hash_undefined__",_z=1,EY=2,b70=1/0,i70=9007199254740991,Tz="[object Arguments]",vC="[object Array]",n70="[object Boolean]",p70="[object Date]",c70="[object Error]",d70="[object Function]",ca0="[object GeneratorFunction]",Ez="[object Map]",m70="[object Number]",PY="[object Object]",_70="[object Promise]",l70="[object RegExp]",Bz="[object Set]",o70="[object String]",r70="[object Symbol]",RC="[object WeakMap]",t70="[object ArrayBuffer]",vz="[object DataView]",da0="[object Float32Array]",ma0="[object Float64Array]",la0="[object Int8Array]",oa0="[object Int16Array]",ra0="[object Int32Array]",ta0="[object Uint8Array]",aa0="[object Uint8ClampedArray]",sa0="[object Uint16Array]",ea0="[object Uint32Array]",$s0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Is0=/^\w*$/,Us0=/^\./,Ys0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Js0=/[\\^$.*+?()[\]{}|]/g,Qs0=/\\(\\)?/g,Ks0=/^\[object .+?Constructor\]$/,qs0=/^(?:0|[1-9]\d*)$/,$4={};$4[da0]=$4[ma0]=$4[la0]=$4[oa0]=$4[ra0]=$4[ta0]=$4[aa0]=$4[sa0]=$4[ea0]=!0;$4[Tz]=$4[vC]=$4[t70]=$4[n70]=$4[vz]=$4[p70]=$4[c70]=$4[d70]=$4[Ez]=$4[m70]=$4[PY]=$4[l70]=$4[Bz]=$4[o70]=$4[RC]=!1;var a70=typeof global=="object"&&global&&global.Object===Object&&global,Hs0=typeof self=="object"&&self&&self.Object===Object&&self,o9=a70||Hs0||Function("return this")(),s70=typeof Pz=="object"&&Pz&&!Pz.nodeType&&Pz,S70=s70&&typeof TY=="object"&&TY&&!TY.nodeType&&TY,Gs0=S70&&S70.exports===s70,g70=Gs0&&a70.process,y70=function(){try{return g70&&g70.binding("util")}catch($){}}(),h70=y70&&y70.isTypedArray;function Ws0($,I,U,Y){var J=-1,Q=$?$.length:0;while(++J-1}function fs0($,I){var U=this.__data__,Y=gz(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}R5.prototype.clear=hs0;R5.prototype.delete=us0;R5.prototype.get=xs0;R5.prototype.has=ks0;R5.prototype.set=fs0;function j5($){var I=-1,U=$?$.length:0;this.clear();while(++Iq))return!1;var G=Q.get($);if(G&&Q.get(I))return G==I;var W=-1,w=!0,Z=J&_z?new jz:void 0;Q.set($,I),Q.set(I,$);while(++W-1&&$%1==0&&$-1&&$%1==0&&$<=i70}function xz($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function kz($){return!!$&&typeof $=="object"}function fC($){return typeof $=="symbol"||kz($)&&BY.call($)==r70}var Re0=h70?zs0(h70):He0;function je0($){return $==null?"":ze0($)}function Ce0($,I,U){var Y=$==null?void 0:$30($,I);return Y===void 0?U:Y}function _e0($,I){return $!=null&&Me0($,I,Je0)}function Cz($){return xC($)?ss0($):We0($)}function Se0($){return $}function ge0($){return hz($)?Vs0(uz($)):Ze0($)}TY.exports=Be0});var V30=O((RY)=>{var fz=RY&&RY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(RY,"__esModule",{value:!0});RY.HeaderTransformer=void 0;var W30=fz(P70()),ye0=fz(Qz()),he0=fz(C70()),ue0=fz(G30());class w30{constructor($){if(this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=$,$.headers===!0)this.shouldUseFirstRow=!0;else if(Array.isArray($.headers))this.setHeaders($.headers);else if(ye0.default($.headers))this.headersTransform=$.headers}transform($,I){if(!this.shouldMapRow($))return I(null,{row:null,isValid:!0});return I(null,this.processRow($))}shouldMapRow($){let{parserOptions:I}=this;if(!this.headersTransform&&I.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray($)){if(this.headersTransform)this.setHeaders(this.headersTransform($));else if(this.shouldUseFirstRow)this.setHeaders($);else return!0;return!1}return!0}processRow($){if(!this.headers)return{row:$,isValid:!0};let{parserOptions:I}=this;if(!I.discardUnmappedColumns&&$.length>this.headersLength){if(!I.strictColumnHandling)throw Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${$.length}`);return{row:$,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${$.length}`}}if(I.strictColumnHandling&&$.length!!Y);if(he0.default(U).length!==U.length){let Y=ue0.default(U),J=Object.keys(Y).filter((Q)=>Y[Q].length>1);throw Error(`Duplicate headers found ${JSON.stringify(J)}`)}this.headers=$,this.receivedHeaders=!0,this.headersLength=((I=this.headers)===null||I===void 0?void 0:I.length)||0}}RY.HeaderTransformer=w30});var Z30=O((bz)=>{Object.defineProperty(bz,"__esModule",{value:!0});bz.HeaderTransformer=bz.RowTransformerValidator=void 0;var xe0=M70();Object.defineProperty(bz,"RowTransformerValidator",{enumerable:!0,get:function(){return xe0.RowTransformerValidator}});var ke0=V30();Object.defineProperty(bz,"HeaderTransformer",{enumerable:!0,get:function(){return ke0.HeaderTransformer}})});var r9=O((X30)=>{Object.defineProperty(X30,"__esModule",{value:!0});X30.Token=void 0;class z30{constructor($){this.token=$.token,this.startCursor=$.startCursor,this.endCursor=$.endCursor}static isTokenRowDelimiter($){let I=$.token;return I==="\r"||I===` +`,I=this.i,Y=K8;break;case H4:return this.text+=U.slice(I),!1;default:}if(Y===$)return this.text+=U.slice(I,this.prevI),!0}}captureNameChars(){let{chunk:$,i:I}=this;while(!0){let U=this.getCode();if(U===H4)return this.name+=$.slice(I),H4;if(!W00(U))return this.name+=$.slice(I,this.prevI),U===y8?K8:U}}skipSpaces(){while(!0){let $=this.getCodeNorm();if($===H4||!r6($))return $}}setXMLVersion($){if(this.currentXMLVersion=$,$==="1.0")this.isChar=Hb0,this.getCode=this.getCode10;else this.isChar=Wb0,this.getCode=this.getCode11}sBegin(){if(this.chunk.charCodeAt(0)===65279)this.i++,this.column++;this.state=Lb0}sBeginWhitespace(){let $=this.i,I=this.skipSpaces();if(this.prevI!==$)this.xmlDeclPossible=!1;switch(I){case x9:if(this.state=gR,this.text.length!==0)throw Error("no-empty text at start");break;case H4:break;default:this.unget(),this.state=g6,this.xmlDeclPossible=!1}}sDoctype(){var $;let I=this.captureTo(bb0);switch(I){case h4:{($=this.doctypeHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=g6,this.doctype=!0;break}case H4:break;default:if(this.text+=String.fromCodePoint(I),I===v00)this.state=UY;else if(BZ(I))this.state=Db0,this.q=I}}sDoctypeQuote(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.q=null,this.state=_R}sDTD(){let $=this.captureTo(nb0);if($===H4)return;if(this.text+=String.fromCodePoint($),$===JY)this.state=_R;else if($===x9)this.state=Fb0;else if(BZ($))this.state=Ob0,this.q=$}sDTDQuoted(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.state=UY,this.q=null}sDTDOpenWaka(){let $=this.getCodeNorm();switch(this.text+=String.fromCodePoint($),$){case F00:this.state=Nb0,this.openWakaBang="";break;case Y6:this.state=Pb0;break;default:this.state=UY}}sDTDOpenWakaBang(){let $=String.fromCodePoint(this.getCodeNorm()),I=this.openWakaBang+=$;if(this.text+=$,I!=="-")this.state=I==="--"?SR:UY,this.openWakaBang=""}sDTDComment(){if(this.captureToChar(TZ))this.text+="-",this.state=Mb0}sDTDCommentEnding(){let $=this.getCodeNorm();this.text+=String.fromCodePoint($),this.state=$===TZ?Ab0:SR}sDTDCommentEnded(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===h4)this.state=UY;else this.fail("malformed comment."),this.state=SR}sDTDPI(){if(this.captureToChar(Y6))this.text+="?",this.state=Tb0}sDTDPIEnding(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===h4)this.state=UY}sText(){if(this.tags.length!==0)this.handleTextInRoot();else this.handleTextOutsideRoot()}sEntity(){let{i:$}=this,{chunk:I}=this;$:while(!0)switch(this.getCode()){case y8:this.entity+=`${I.slice($,this.prevI)} +`,$=this.i;break;case ib0:{let{entityReturnState:U}=this,Y=this.entity+I.slice($,this.prevI);this.state=U;let J;if(Y==="")this.fail("empty entity name."),J="&;";else J=this.parseEntity(Y),this.entity="";if(U!==g6||this.textHandler!==void 0)this.text+=J;break $}case H4:this.entity+=I.slice($);break $;default:}}sOpenWaka(){let $=this.getCode();if(MK($))this.state=hb0,this.unget(),this.xmlDeclPossible=!1;else switch($){case EZ:this.state=xb0,this.xmlDeclPossible=!1;break;case F00:this.state=Eb0,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Y6:this.state=Cb0;break;default:this.fail("disallowed character in tag name"),this.state=g6,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0;this.state=hR,this.openWakaBang="";break;case"--":this.state=yR,this.openWakaBang="";break;case"DOCTYPE":if(this.state=_R,this.doctype||this.sawRoot)this.fail("inappropriately located doctype declaration.");this.openWakaBang="";break;default:if(this.openWakaBang.length>=7)this.fail("incorrect syntax.")}}sComment(){if(this.captureToChar(TZ))this.state=Bb0}sCommentEnding(){var $;let I=this.getCodeNorm();if(I===TZ)this.state=vb0,($=this.commentHandler)===null||$===void 0||$.call(this,this.text),this.text="";else this.text+=`-${String.fromCodePoint(I)}`,this.state=yR}sCommentEnded(){let $=this.getCodeNorm();if($!==h4)this.fail("malformed comment."),this.text+=`--${String.fromCodePoint($)}`,this.state=yR;else this.state=g6}sCData(){if(this.captureToChar(JY))this.state=Rb0}sCDataEnding(){let $=this.getCodeNorm();if($===JY)this.state=jb0;else this.text+=`]${String.fromCodePoint($)}`,this.state=hR}sCDataEnding2(){var $;let I=this.getCodeNorm();switch(I){case h4:{($=this.cdataHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=g6;break}case JY:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(I)}`,this.state=hR}}sPIFirstChar(){let $=this.getCodeNorm();if(this.nameStartCheck($))this.piTarget+=String.fromCodePoint($),this.state=V00;else if($===Y6||r6($))this.fail("processing instruction without a target."),this.state=$===Y6?PZ:uR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint($),this.state=V00}sPIRest(){let{chunk:$,i:I}=this;while(!0){let U=this.getCodeNorm();if(U===H4){this.piTarget+=$.slice(I);return}if(!this.nameCheck(U)){this.piTarget+=$.slice(I,this.prevI);let Y=U===Y6;if(Y||r6(U))if(this.piTarget==="xml"){if(!this.xmlDeclPossible)this.fail("an XML declaration must be at the start of the document.");this.state=Y?W3:Z00}else this.state=Y?PZ:uR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(U);break}}}sPIBody(){if(this.text.length===0){let $=this.getCodeNorm();if($===Y6)this.state=PZ;else if(!r6($))this.text=String.fromCodePoint($)}else if(this.captureToChar(Y6))this.state=PZ}sPIEnding(){var $;let I=this.getCodeNorm();if(I===h4){let{piTarget:U}=this;if(U.toLowerCase()==="xml")this.fail("the XML declaration must appear at the start of the document.");($=this.piHandler)===null||$===void 0||$.call(this,{target:U,body:this.text}),this.piTarget=this.text="",this.state=g6}else if(I===Y6)this.text+="?";else this.text+=`?${String.fromCodePoint(I)}`,this.state=uR;this.xmlDeclPossible=!1}sXMLDeclNameStart(){let $=this.skipSpaces();if($===Y6){this.state=W3;return}if($!==H4)this.state=_b0,this.name=String.fromCodePoint($)}sXMLDeclName(){let $=this.captureTo(pb0);if($===Y6){this.state=W3,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(!(r6($)||$===YY))return;if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=$===YY?z00:Sb0}sXMLDeclEq(){let $=this.getCodeNorm();if($===Y6){this.state=W3,this.fail("XML declaration is incomplete.");return}if(r6($))return;if($!==YY)this.fail("value required.");this.state=z00}sXMLDeclValueStart(){let $=this.getCodeNorm();if($===Y6){this.state=W3,this.fail("XML declaration is incomplete.");return}if(r6($))return;if(!BZ($))this.fail("value must be quoted."),this.q=O00;else this.q=$;this.state=gb0}sXMLDeclValue(){let $=this.captureTo([this.q,Y6]);if($===Y6){this.state=W3,this.text="",this.fail("XML declaration is incomplete.");return}if($===H4)return;let I=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];let U=I;if(this.xmlDecl.version=U,!/^1\.[0-9]+$/.test(U))this.fail("version number must match /^1\\.[0-9]+$/.");else if(!this.opt.forceXMLVersion)this.setXMLVersion(U);break}case"encoding":if(!/^[A-Za-z][A-Za-z0-9._-]*$/.test(I))this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.");this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=I;break;case"standalone":if(I!=="yes"&&I!=="no")this.fail('standalone value must match "yes" or "no".');this.xmlDeclExpects=[],this.xmlDecl.standalone=I;break;default:}this.name="",this.state=yb0}sXMLDeclSeparator(){let $=this.getCodeNorm();if($===Y6){this.state=W3;return}if(!r6($))this.fail("whitespace required."),this.unget();this.state=Z00}sXMLDeclEnding(){var $;if(this.getCodeNorm()===h4){if(this.piTarget!=="xml")this.fail("processing instructions are not allowed before root.");else if(this.name!=="version"&&this.xmlDeclExpects.includes("version"))this.fail("XML declaration must contain a version.");($=this.xmldeclHandler)===null||$===void 0||$.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=g6}else this.fail("The character ? is disallowed anywhere in XML declarations.");this.xmlDeclPossible=!1}sOpenTag(){var $;let I=this.captureNameChars();if(I===H4)return;let U=this.tag={name:this.name,attributes:Object.create(null)};if(this.name="",this.xmlnsOpt)this.topNS=U.ns=Object.create(null);if(($=this.openTagStartHandler)===null||$===void 0||$.call(this,U),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot)this.fail("documents may contain only one root.");switch(I){case h4:this.openTag();break;case EZ:this.state=kR;break;default:if(!r6(I))this.fail("disallowed character in tag name.");this.state=AK}}sOpenTagSlash(){if(this.getCode()===h4)this.openSelfClosingTag();else this.fail("forward-slash in opening tag not followed by >."),this.state=AK}sAttrib(){let $=this.skipSpaces();if($===H4)return;if(MK($))this.unget(),this.state=xR;else if($===h4)this.openTag();else if($===EZ)this.state=kR;else this.fail("disallowed character in attribute name.")}sAttribName(){let $=this.captureNameChars();if($===YY)this.state=X00;else if(r6($))this.state=ub0;else if($===h4)this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag();else if($!==H4)this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){let $=this.skipSpaces();switch($){case H4:return;case YY:this.state=X00;break;default:if(this.fail("attribute without value."),this.text="",this.name="",$===h4)this.openTag();else if(MK($))this.unget(),this.state=xR;else this.fail("disallowed character in attribute name."),this.state=AK}}sAttribValue(){let $=this.getCodeNorm();if(BZ($))this.q=$,this.state=L00;else if(!r6($))this.fail("unquoted attribute value."),this.state=D00,this.unget()}sAttribValueQuoted(){let{q:$,chunk:I}=this,{i:U}=this;while(!0)switch(this.getCode()){case $:this.pushAttrib(this.name,this.text+I.slice(U,this.prevI)),this.name=this.text="",this.q=null,this.state=kb0;return;case PK:this.text+=I.slice(U,this.prevI),this.state=AZ,this.entityReturnState=L00;return;case K8:case y8:case fR:this.text+=`${I.slice(U,this.prevI)} `,U=this.i;break;case x9:this.text+=I.slice(U,this.prevI),this.fail("disallowed character.");return;case H4:this.text+=I.slice(U);return;default:}}sAttribValueClosed(){let $=this.getCodeNorm();if(r6($))this.state=AK;else if($===h4)this.openTag();else if($===EZ)this.state=kR;else if(MK($))this.fail("no whitespace between attributes."),this.unget(),this.state=xR;else this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){let $=this.captureTo(cb0);switch($){case PK:this.state=AZ,this.entityReturnState=D00;break;case x9:this.fail("disallowed character.");break;case H4:break;default:if(this.text.includes("]]>"))this.fail('the string "]]>" is disallowed in char data.');if(this.pushAttrib(this.name,this.text),this.name=this.text="",$===h4)this.openTag();else this.state=AK}}sCloseTag(){let $=this.captureNameChars();if($===h4)this.closeTag();else if(r6($))this.state=fb0;else if($!==H4)this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case h4:this.closeTag();break;case H4:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:$,forbiddenState:I}=this,{chunk:U,textHandler:Y}=this;$:while(!0)switch(this.getCode()){case x9:{if(this.state=gR,Y!==void 0){let{text:J}=this,Q=U.slice($,this.prevI);if(J.length!==0)Y(J+Q),this.text="";else if(Q.length!==0)Y(Q)}I=w3;break $}case PK:if(this.state=AZ,this.entityReturnState=g6,Y!==void 0)this.text+=U.slice($,this.prevI);I=w3;break $;case JY:switch(I){case w3:I=A00;break;case A00:I=bR;break;case bR:break;default:throw Error("impossible state")}break;case h4:if(I===bR)this.fail('the string "]]>" is disallowed in char data.');I=w3;break;case y8:if(Y!==void 0)this.text+=`${U.slice($,this.prevI)} +`;$=this.i,I=w3;break;case H4:if(Y!==void 0)this.text+=U.slice($);break $;default:I=w3}this.forbiddenState=I}handleTextOutsideRoot(){let{i:$}=this,{chunk:I,textHandler:U}=this,Y=!1;$:while(!0){let J=this.getCode();switch(J){case x9:{if(this.state=gR,U!==void 0){let{text:Q}=this,K=I.slice($,this.prevI);if(Q.length!==0)U(Q+K),this.text="";else if(K.length!==0)U(K)}break $}case PK:if(this.state=AZ,this.entityReturnState=g6,U!==void 0)this.text+=I.slice($,this.prevI);Y=!0;break $;case y8:if(U!==void 0)this.text+=`${I.slice($,this.prevI)} +`;$=this.i;break;case H4:if(U!==void 0)this.text+=I.slice($);break $;default:if(!r6(J))Y=!0}}if(!Y)return;if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0}pushAttribNS($,I){var U;let{prefix:Y,local:J}=this.qname($),Q={name:$,prefix:Y,local:J,value:I};if(this.attribList.push(Q),(U=this.attributeHandler)===null||U===void 0||U.call(this,Q),Y==="xmlns"){let K=I.trim();if(this.currentXMLVersion==="1.0"&&K==="")this.fail("invalid attempt to undefine prefix in XML 1.0");this.topNS[J]=K,nR(this,J,K)}else if($==="xmlns"){let K=I.trim();this.topNS[""]=K,nR(this,"",K)}}pushAttribPlain($,I){var U;let Y={name:$,value:I};this.attribList.push(Y),(U=this.attributeHandler)===null||U===void 0||U.call(this,Y)}end(){var $,I;if(!this.sawRoot)this.fail("document must contain a root element.");let{tags:U}=this;while(U.length>0){let J=U.pop();this.fail(`unclosed tag: ${J.name}`)}if(this.state!==w00&&this.state!==g6)this.fail("unexpected end.");let{text:Y}=this;if(Y.length!==0)($=this.textHandler)===null||$===void 0||$.call(this,Y),this.text="";return this._closed=!0,(I=this.endHandler)===null||I===void 0||I.call(this),this._init(),this}resolve($){var I,U;let Y=this.topNS[$];if(Y!==void 0)return Y;let{tags:J}=this;for(let Q=J.length-1;Q>=0;Q--)if(Y=J[Q].ns[$],Y!==void 0)return Y;if(Y=this.ns[$],Y!==void 0)return Y;return(U=(I=this.opt).resolvePrefix)===null||U===void 0?void 0:U.call(I,$)}qname($){let I=$.indexOf(":");if(I===-1)return{prefix:"",local:$};let U=$.slice(I+1),Y=$.slice(0,I);if(Y===""||U===""||U.includes(":"))this.fail(`malformed name: ${$}.`);return{prefix:Y,local:U}}processAttribsNS(){var $;let{attribList:I}=this,U=this.tag;{let{prefix:Q,local:K}=this.qname(U.name);U.prefix=Q,U.local=K;let q=U.uri=($=this.resolve(Q))!==null&&$!==void 0?$:"";if(Q!==""){if(Q==="xmlns")this.fail('tags may not have "xmlns" as prefix.');if(q==="")this.fail(`unbound namespace prefix: ${JSON.stringify(Q)}.`),U.uri=Q}}if(I.length===0)return;let{attributes:Y}=U,J=new Set;for(let Q of I){let{name:K,prefix:q,local:H}=Q,G,W;if(q==="")G=K==="xmlns"?QY:"",W=K;else{if(G=this.resolve(q),G===void 0)this.fail(`unbound namespace prefix: ${JSON.stringify(q)}.`),G=q;W=`{${G}}${H}`}if(J.has(W))this.fail(`duplicate attribute: ${W}.`);J.add(W),Q.uri=G,Y[K]=Q}this.attribList=[]}processAttribsPlain(){let{attribList:$}=this,I=this.tag.attributes;for(let{name:U,value:Y}of $){if(I[U]!==void 0)this.fail(`duplicate attribute: ${U}.`);I[U]=Y}this.attribList=[]}openTag(){var $;this.processAttribs();let{tags:I}=this,U=this.tag;U.isSelfClosing=!1,($=this.openTagHandler)===null||$===void 0||$.call(this,U),I.push(U),this.state=g6,this.name=""}openSelfClosingTag(){var $,I,U;this.processAttribs();let{tags:Y}=this,J=this.tag;if(J.isSelfClosing=!0,($=this.openTagHandler)===null||$===void 0||$.call(this,J),(I=this.closeTagHandler)===null||I===void 0||I.call(this,J),(this.tag=(U=Y[Y.length-1])!==null&&U!==void 0?U:null)===null)this.closedRoot=!0;this.state=g6,this.name=""}closeTag(){let{tags:$,name:I}=this;if(this.state=g6,this.name="",I===""){this.fail("weird empty close tag."),this.text+="";return}let U=this.closeTagHandler,Y=$.length;while(Y-- >0){let J=this.tag=$.pop();if(this.topNS=J.ns,U===null||U===void 0||U(J),J.name===I)break;this.fail("unexpected close tag.")}if(Y===0)this.closedRoot=!0;else if(Y<0)this.fail(`unmatched closing tag: ${I}.`),this.text+=``}parseEntity($){if($[0]!=="#"){let U=this.ENTITIES[$];if(U!==void 0)return U;return this.fail(this.isName($)?"undefined entity.":"disallowed character in entity name."),`&${$};`}let I=NaN;if($[1]==="x"&&/^#x[0-9a-f]+$/i.test($))I=parseInt($.slice(2),16);else if(/^#[0-9]+$/.test($))I=parseInt($.slice(1),10);if(!this.isChar(I))return this.fail("malformed character entity."),`&${$};`;return String.fromCodePoint(I)}}C00.SaxesParser=j00});var TK=O((LT1,S00)=>{var{SaxesParser:tb0}=_00(),{PassThrough:ab0}=D6(),{bufferToString:sb0}=ER();S00.exports=async function*($){if($.pipe&&!$[Symbol.asyncIterator])$=$.pipe(new ab0);let I=new tb0,U;I.on("error",(J)=>{U=J});let Y=[];I.on("opentag",(J)=>Y.push({eventType:"opentag",value:J})),I.on("text",(J)=>Y.push({eventType:"text",value:J})),I.on("closetag",(J)=>Y.push({eventType:"closetag",value:J}));for await(let J of $){if(I.write(sb0(J)),U)throw U;yield Y,Y=[]}}});var L0=O((DT1,g00)=>{var eb0=TK(),$n0=U6();class qY{prepare(){}render(){}parseOpen($){}parseText($){}parseClose($){}reconcile($,I){}reset(){if(this.model=null,this.map)Object.values(this.map).forEach(($)=>{if($ instanceof qY)$.reset();else if($.xform)$.xform.reset()})}mergeModel($){this.model=Object.assign(this.model||{},$)}async parse($){for await(let I of $)for(let{eventType:U,value:Y}of I)if(U==="opentag")this.parseOpen(Y);else if(U==="text")this.parseText(Y);else if(U==="closetag"){if(!this.parseClose(Y.name))return this.model}return this.model}async parseStream($){return this.parse(eb0($))}get xml(){return this.toXml(this.model)}toXml($){let I=new $n0;return this.render(I,$),I.xml}static toAttribute($,I,U=!1){if($===void 0){if(U)return I}else if(U||$!==I)return $.toString();return}static toStringAttribute($,I,U=!1){return qY.toAttribute($,I,U)}static toStringValue($,I){return $===void 0?I:$}static toBoolAttribute($,I,U=!1){if($===void 0){if(U)return I}else if(U||$!==I)return $?"1":"0";return}static toBoolValue($,I){return $===void 0?I:$==="1"}static toIntAttribute($,I,U=!1){return qY.toAttribute($,I,U)}static toIntValue($,I){return $===void 0?I:parseInt($,10)}static toFloatAttribute($,I,U=!1){return qY.toAttribute($,I,U)}static toFloatValue($,I){return $===void 0?I:parseFloat($)}}g00.exports=qY});var HY=O((OT1,u00)=>{var In0=L0(),Un0=U6();function y00($,I){if($.openNode(I.tag,I.$),I.c)I.c.forEach((U)=>{y00($,U)});if(I.t)$.writeText(I.t);$.closeNode()}class h00 extends In0{constructor($){super();this._model=$}render($){if(!this._xml){let I=new Un0;y00(I,this._model),this._xml=I.xml}$.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose($){switch($){case this._model.tag:return!1;default:return!0}}}u00.exports=h00});var f9=O((FT1,x00)=>{var Yn0=L0();class k00 extends Yn0{constructor($){super();this.tag=$.tag,this.always=!!$.always,this.count=$.count,this.empty=$.empty,this.$count=$.$count||"count",this.$=$.$,this.childXform=$.childXform,this.maxItems=$.maxItems}prepare($,I){let{childXform:U}=this;if($)$.forEach((Y,J)=>{I.index=J,U.prepare(Y,I)})}render($,I){if(this.always||I&&I.length){if($.openNode(this.tag,this.$),this.count)$.addAttribute(this.$count,I&&I.length||0);let{childXform:U}=this;(I||[]).forEach((Y,J)=>{U.render($,Y,J)}),$.closeNode()}else if(this.empty)$.leafNode(this.tag)}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:return this.model=[],!0;default:if(this.childXform.parseOpen($))return this.parser=this.childXform,!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems)throw Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`)}return!0}return!1}reconcile($,I){if($){let{childXform:U}=this;$.forEach((Y)=>{U.reconcile(Y,I)})}}}x00.exports=k00});var i9=O((NT1,i00)=>{var Jn0=L0();class f00 extends Jn0{constructor($){super();this.name=$||"color"}get tag(){return this.name}render($,I){if(I){if($.openNode(this.name),I.argb)$.addAttribute("rgb",I.argb);else if(I.theme!==void 0){if($.addAttribute("theme",I.theme),I.tint!==void 0)$.addAttribute("tint",I.tint)}else if(I.indexed!==void 0)$.addAttribute("indexed",I.indexed);else $.addAttribute("auto","1");return $.closeNode(),!0}return!1}parseOpen($){if($.name===this.name){if($.attributes.rgb)this.model={argb:$.attributes.rgb};else if($.attributes.theme){if(this.model={theme:parseInt($.attributes.theme,10)},$.attributes.tint)this.model.tint=parseFloat($.attributes.tint)}else if($.attributes.indexed)this.model={indexed:parseInt($.attributes.indexed,10)};else this.model=void 0;return!0}return!1}parseText(){}parseClose(){return!1}}i00.exports=f00});var p00=O((MT1,n00)=>{var Qn0=L0();class b00 extends Qn0{constructor($){super();this.tag=$.tag,this.attr=$.attr}render($,I){if(I)$.openNode(this.tag),$.closeNode()}parseOpen($){if($.name===this.tag)this.model=!0}parseText(){}parseClose(){return!1}}n00.exports=b00});var RZ=O((AT1,d00)=>{var Kn0=L0();class c00 extends Kn0{constructor($){super();this.tag=$.tag,this.attr=$.attr,this.attrs=$.attrs,this.zero=$.zero}render($,I){if(I||this.zero){if($.openNode(this.tag),this.attrs)$.addAttributes(this.attrs);if(this.attr)$.addAttribute(this.attr,I);else $.writeText(I);$.closeNode()}}parseOpen($){if($.name===this.tag){if(this.attr)this.model=parseInt($.attributes[this.attr],10);else this.text=[];return!0}return!1}parseText($){if(!this.attr)this.text.push($)}parseClose(){if(!this.attr)this.model=parseInt(this.text.join("")||0,10);return!1}}d00.exports=c00});var jZ=O((PT1,l00)=>{var qn0=L0();class m00 extends qn0{constructor($){super();this.tag=$.tag,this.attr=$.attr,this.attrs=$.attrs}render($,I){if(I!==void 0){if($.openNode(this.tag),this.attrs)$.addAttributes(this.attrs);if(this.attr)$.addAttribute(this.attr,I);else $.writeText(I);$.closeNode()}}parseOpen($){if($.name===this.tag)if(this.attr)this.model=$.attributes[this.attr];else this.text=[]}parseText($){if(!this.attr)this.text.push($)}parseClose(){if(!this.attr)this.model=this.text.join("");return!1}}l00.exports=m00});var r00=O((TT1,o00)=>{var Hn0=L0();class CZ extends Hn0{constructor($){super();this.model=$}get tag(){return"u"}render($,I){if(I=I||this.model,I===!0)$.leafNode("u");else{let U=CZ.Attributes[I];if(U)$.leafNode("u",U)}}parseOpen($){if($.name==="u")this.model=$.attributes.val||!0}parseText(){}parseClose(){return!1}}CZ.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}};o00.exports=CZ});var SZ=O((ET1,t00)=>{var Gn0=i9(),V3=p00(),cR=RZ(),dR=jZ(),Wn0=r00(),wn0=X4(),Vn0=L0();class _Z extends Vn0{constructor($){super();this.options=$||_Z.OPTIONS,this.map={b:{prop:"bold",xform:new V3({tag:"b",attr:"val"})},i:{prop:"italic",xform:new V3({tag:"i",attr:"val"})},u:{prop:"underline",xform:new Wn0},charset:{prop:"charset",xform:new cR({tag:"charset",attr:"val"})},color:{prop:"color",xform:new Gn0},condense:{prop:"condense",xform:new V3({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new V3({tag:"extend",attr:"val"})},family:{prop:"family",xform:new cR({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new V3({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new dR({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new dR({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new V3({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new V3({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new cR({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new dR({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render($,I){let{map:U}=this;$.openNode(this.options.tagName),wn0.each(this.map,(Y,J)=>{U[J].xform.render($,I[Y.prop])}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if(this.map[$.name])return this.parser=this.map[$.name].xform,this.parser.parseOpen($);switch($.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser&&!this.parser.parseClose($)){let I=this.map[$];if(this.parser.model)this.model[I.prop]=this.parser.model;return this.parser=void 0,!0}switch($){case this.options.tagName:return!1;default:return!0}}}_Z.OPTIONS={tagName:"font",fontNameTag:"name"};t00.exports=_Z});var tR=O((BT1,a00)=>{var gZ=L0(),mR=i9();class lR extends gZ{constructor(){super();this.map={color:new mR}}get tag(){return"stop"}render($,I){$.openNode("stop"),$.addAttribute("position",I.position),this.map.color.render($,I.color),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"stop":return this.model={position:parseFloat($.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen($),!0;default:return!1}}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.color=this.parser.model,this.parser=void 0;return!0}return!1}}class oR extends gZ{constructor(){super();this.map={fgColor:new mR("fgColor"),bgColor:new mR("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render($,I){if($.openNode("patternFill"),$.addAttribute("patternType",I.pattern),I.fgColor)this.map.fgColor.render($,I.fgColor);if(I.bgColor)this.map.bgColor.render($,I.bgColor);$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"patternFill":return this.model={type:"pattern",pattern:$.attributes.patternType},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.parser.model)this.model[$]=this.parser.model;this.parser=void 0}return!0}return!1}}class rR extends gZ{constructor(){super();this.map={stop:new lR}}get name(){return"gradient"}get tag(){return"gradientFill"}render($,I){switch($.openNode("gradientFill"),I.gradient){case"angle":$.addAttribute("degree",I.degree);break;case"path":if($.addAttribute("type","path"),I.center.left){if($.addAttribute("left",I.center.left),I.center.right===void 0)$.addAttribute("right",I.center.left)}if(I.center.right)$.addAttribute("right",I.center.right);if(I.center.top){if($.addAttribute("top",I.center.top),I.center.bottom===void 0)$.addAttribute("bottom",I.center.top)}if(I.center.bottom)$.addAttribute("bottom",I.center.bottom);break;default:break}let U=this.map.stop;I.stops.forEach((Y)=>{U.render($,Y)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"gradientFill":{let I=this.model={stops:[]};if($.attributes.degree)I.gradient="angle",I.degree=parseInt($.attributes.degree,10);else if($.attributes.type==="path"){if(I.gradient="path",I.center={left:$.attributes.left?parseFloat($.attributes.left):0,top:$.attributes.top?parseFloat($.attributes.top):0},$.attributes.right!==$.attributes.left)I.center.right=$.attributes.right?parseFloat($.attributes.right):0;if($.attributes.bottom!==$.attributes.top)I.center.bottom=$.attributes.bottom?parseFloat($.attributes.bottom):0}return!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.stops.push(this.parser.model),this.parser=void 0;return!0}return!1}}class Z3 extends gZ{constructor(){super();this.map={patternFill:new oR,gradientFill:new rR}}get tag(){return"fill"}render($,I){switch($.addRollback(),$.openNode("fill"),I.type){case"pattern":this.map.patternFill.render($,I);break;case"gradient":this.map.gradientFill.render($,I);break;default:$.rollback();return}$.closeNode(),$.commit()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"fill":return this.model={},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0;return!0}return!1}validStyle($){return Z3.validPatternValues[$]}}Z3.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(($,I)=>{return $[I]=!0,$},{});Z3.StopXform=lR;Z3.PatternFillXform=oR;Z3.GradientFillXform=rR;a00.exports=Z3});var aR=O((vT1,I10)=>{var e00=L0(),s00=O6(),Zn0=i9();class b9 extends e00{constructor($){super();this.name=$,this.map={color:new Zn0}}get tag(){return this.name}render($,I,U){let Y=I&&I.color||U||this.defaultColor;if($.openNode(this.name),I&&I.style){if($.addAttribute("style",I.style),Y)this.map.color.render($,Y)}$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.name:{let{style:I}=$.attributes;if(I)this.model={style:I};else this.model=void 0;return!0}case"color":return this.parser=this.map.color,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if($===this.name){if(this.map.color.model){if(!this.model)this.model={};this.model.color=this.map.color.model}}return!1}validStyle($){return b9.validStyleValues[$]}}b9.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(($,I)=>{return $[I]=!0,$},{});class $10 extends e00{constructor(){super();this.map={top:new b9("top"),left:new b9("left"),bottom:new b9("bottom"),right:new b9("right"),diagonal:new b9("diagonal")}}render($,I){let{color:U}=I;if($.openNode("border"),I.diagonal&&I.diagonal.style){if(I.diagonal.up)$.addAttribute("diagonalUp","1");if(I.diagonal.down)$.addAttribute("diagonalDown","1")}function Y(J,Q){if(J&&!J.color&&I.color)J={...J,color:I.color};Q.render($,J,U)}Y(I.left,this.map.left),Y(I.right,this.map.right),Y(I.top,this.map.top),Y(I.bottom,this.map.bottom),Y(I.diagonal,this.map.diagonal),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"border":return this.reset(),this.diagonalUp=s00.parseBoolean($.attributes.diagonalUp),this.diagonalDown=s00.parseBoolean($.attributes.diagonalDown),!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if($==="border"){let I=this.model={},U=function(Y,J,Q){if(J){if(Q)Object.assign(J,Q);I[Y]=J}};U("left",this.map.left.model),U("right",this.map.right.model),U("top",this.map.top.model),U("bottom",this.map.bottom.model),U("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}I10.exports=$10});var Y10=O((RT1,U10)=>{U10.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}});var eR=O((jT1,J10)=>{var zn0=X4(),sR=Y10(),Xn0=L0();function Ln0(){let $={};return zn0.each(sR,(I,U)=>{if(I.f)$[I.f]=parseInt(U,10)}),$}var Dn0=Ln0();class yZ extends Xn0{constructor($,I){super();this.id=$,this.formatCode=I}get tag(){return"numFmt"}render($,I){$.leafNode("numFmt",{numFmtId:I.id,formatCode:I.formatCode})}parseOpen($){switch($.name){case"numFmt":return this.model={id:parseInt($.attributes.numFmtId,10),formatCode:$.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}yZ.getDefaultFmtId=function(I){return Dn0[I]};yZ.getDefaultFmtCode=function(I){return sR[I]&&sR[I].f};J10.exports=yZ});var $j=O((CT1,H10)=>{var Q10=I8(),EK=O6(),On0=L0(),z3={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(($,I)=>{return $[I]=!0,$},{}),horizontal($){return this.horizontalValues[$]?$:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(($,I)=>{return $[I]=!0,$},{}),vertical($){if($==="middle")return"center";return this.verticalValues[$]?$:void 0},wrapText($){return $?!0:void 0},shrinkToFit($){return $?!0:void 0},textRotation($){switch($){case"vertical":return $;default:return $=EK.validInt($),$>=-90&&$<=90?$:void 0}},indent($){return $=EK.validInt($),Math.max(0,$)},readingOrder($){switch($){case"ltr":return Q10.ReadingOrder.LeftToRight;case"rtl":return Q10.ReadingOrder.RightToLeft;default:return}}},K10={toXml($){if($=z3.textRotation($),$){if($==="vertical")return 255;let I=Math.round($);if(I>=0&&I<=90)return I;if(I<0&&I>=-90)return 90-I}return},toModel($){let I=EK.validInt($);if(I!==void 0){if(I===255)return"vertical";if(I>=0&&I<=90)return I;if(I>90&&I<=180)return 90-I}return}};class q10 extends On0{get tag(){return"alignment"}render($,I){$.addRollback(),$.openNode("alignment");let U=!1;function Y(J,Q){if(Q)$.addAttribute(J,Q),U=!0}if(Y("horizontal",z3.horizontal(I.horizontal)),Y("vertical",z3.vertical(I.vertical)),Y("wrapText",z3.wrapText(I.wrapText)?"1":!1),Y("shrinkToFit",z3.shrinkToFit(I.shrinkToFit)?"1":!1),Y("indent",z3.indent(I.indent)),Y("textRotation",K10.toXml(I.textRotation)),Y("readingOrder",z3.readingOrder(I.readingOrder)),$.closeNode(),U)$.commit();else $.rollback()}parseOpen($){let I={},U=!1;function Y(J,Q,K){if(J)I[Q]=K,U=!0}Y($.attributes.horizontal,"horizontal",$.attributes.horizontal),Y($.attributes.vertical,"vertical",$.attributes.vertical==="center"?"middle":$.attributes.vertical),Y($.attributes.wrapText,"wrapText",EK.parseBoolean($.attributes.wrapText)),Y($.attributes.shrinkToFit,"shrinkToFit",EK.parseBoolean($.attributes.shrinkToFit)),Y($.attributes.indent,"indent",parseInt($.attributes.indent,10)),Y($.attributes.textRotation,"textRotation",K10.toModel($.attributes.textRotation)),Y($.attributes.readingOrder,"readingOrder",$.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=U?I:null}parseText(){}parseClose(){return!1}}H10.exports=q10});var Ij=O((_T1,w10)=>{var Fn0=L0(),G10={boolean($,I){if($===void 0)return I;return $}};class W10 extends Fn0{get tag(){return"protection"}render($,I){$.addRollback(),$.openNode("protection");let U=!1;function Y(J,Q){if(Q!==void 0)$.addAttribute(J,Q),U=!0}if(Y("locked",G10.boolean(I.locked,!0)?void 0:"0"),Y("hidden",G10.boolean(I.hidden,!1)?"1":void 0),$.closeNode(),U)$.commit();else $.rollback()}parseOpen($){let I={locked:$.attributes.locked!=="0",hidden:$.attributes.hidden==="1"},U=!I.locked||I.hidden;this.model=U?I:null}parseText(){}parseClose(){return!1}}w10.exports=W10});var z10=O((ST1,Z10)=>{var Nn0=L0(),Mn0=$j(),An0=Ij();class V10 extends Nn0{constructor($){super();this.xfId=!!($&&$.xfId),this.map={alignment:new Mn0,protection:new An0}}get tag(){return"xf"}render($,I){if($.openNode("xf",{numFmtId:I.numFmtId||0,fontId:I.fontId||0,fillId:I.fillId||0,borderId:I.borderId||0}),this.xfId)$.addAttribute("xfId",I.xfId||0);if(I.numFmtId)$.addAttribute("applyNumberFormat","1");if(I.fontId)$.addAttribute("applyFont","1");if(I.fillId)$.addAttribute("applyFill","1");if(I.borderId)$.addAttribute("applyBorder","1");if(I.alignment)$.addAttribute("applyAlignment","1");if(I.protection)$.addAttribute("applyProtection","1");if(I.alignment)this.map.alignment.render($,I.alignment);if(I.protection)this.map.protection.render($,I.protection);$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"xf":if(this.model={numFmtId:parseInt($.attributes.numFmtId,10),fontId:parseInt($.attributes.fontId,10),fillId:parseInt($.attributes.fillId,10),borderId:parseInt($.attributes.borderId,10)},this.xfId)this.model.xfId=parseInt($.attributes.xfId,10);return!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen($),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.map.protection===this.parser)this.model.protection=this.parser.model;else this.model.alignment=this.parser.model;this.parser=void 0}return!0}return $!=="xf"}}Z10.exports=V10});var D10=O((gT1,L10)=>{var Pn0=L0(),Tn0=$j(),En0=aR(),Bn0=tR(),vn0=SZ(),Rn0=eR(),jn0=Ij();class X10 extends Pn0{constructor(){super();this.map={alignment:new Tn0,border:new En0,fill:new Bn0,font:new vn0,numFmt:new Rn0,protection:new jn0}}get tag(){return"dxf"}render($,I){if($.openNode(this.tag),I.font)this.map.font.render($,I.font);if(I.numFmt&&I.numFmtId){let U={id:I.numFmtId,formatCode:I.numFmt};this.map.numFmt.render($,U)}if(I.fill)this.map.fill.render($,I.fill);if(I.alignment)this.map.alignment.render($,I.alignment);if(I.border)this.map.border.render($,I.border);if(I.protection)this.map.protection.render($,I.protection);$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:return this.reset(),!0;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);return!0}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if($===this.tag)return this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1;return!0}}L10.exports=X10});var kZ=O((yT1,A10)=>{var uZ=I8(),Cn0=U6(),_n0=L0(),hZ=HY(),X3=f9(),O10=SZ(),F10=tR(),N10=aR(),BK=eR(),Uj=z10(),Sn0=D10();class V$ extends _n0{constructor($){super();if(this.map={numFmts:new X3({tag:"numFmts",count:!0,childXform:new BK}),fonts:new X3({tag:"fonts",count:!0,childXform:new O10,$:{"x14ac:knownFonts":1}}),fills:new X3({tag:"fills",count:!0,childXform:new F10}),borders:new X3({tag:"borders",count:!0,childXform:new N10}),cellStyleXfs:new X3({tag:"cellStyleXfs",count:!0,childXform:new Uj}),cellXfs:new X3({tag:"cellXfs",count:!0,childXform:new Uj({xfId:!0})}),dxfs:new X3({tag:"dxfs",always:!0,count:!0,childXform:new Sn0}),numFmt:new BK,font:new O10,fill:new F10,border:new N10,style:new Uj({xfId:!0}),cellStyles:V$.STATIC_XFORMS.cellStyles,tableStyles:V$.STATIC_XFORMS.tableStyles,extLst:V$.STATIC_XFORMS.extLst},$)this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render($,I){if(I=I||this.model,$.openXml(Cn0.StdDocAttributes),$.openNode("styleSheet",V$.STYLESHEET_ATTRIBUTES),this.index){if(I.numFmts&&I.numFmts.length)$.openNode("numFmts",{count:I.numFmts.length}),I.numFmts.forEach((U)=>{$.writeXml(U)}),$.closeNode();if(!I.fonts.length)this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"});$.openNode("fonts",{count:I.fonts.length,"x14ac:knownFonts":1}),I.fonts.forEach((U)=>{$.writeXml(U)}),$.closeNode(),$.openNode("fills",{count:I.fills.length}),I.fills.forEach((U)=>{$.writeXml(U)}),$.closeNode(),$.openNode("borders",{count:I.borders.length}),I.borders.forEach((U)=>{$.writeXml(U)}),$.closeNode(),this.map.cellStyleXfs.render($,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),$.openNode("cellXfs",{count:I.styles.length}),I.styles.forEach((U)=>{$.writeXml(U)}),$.closeNode()}else this.map.numFmts.render($,I.numFmts),this.map.fonts.render($,I.fonts),this.map.fills.render($,I.fills),this.map.borders.render($,I.borders),this.map.cellStyleXfs.render($,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render($,I.styles);V$.STATIC_XFORMS.cellStyles.render($),this.map.dxfs.render($,I.dxfs),V$.STATIC_XFORMS.tableStyles.render($),V$.STATIC_XFORMS.extLst.render($),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"styleSheet":return this.initIndex(),!0;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);return!0}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"styleSheet":{this.model={};let I=(U,Y)=>{if(Y.model&&Y.model.length)this.model[U]=Y.model};if(I("numFmts",this.map.numFmts),I("fonts",this.map.fonts),I("fills",this.map.fills),I("borders",this.map.borders),I("styles",this.map.cellXfs),I("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){let U=this.index.numFmt;this.model.numFmts.forEach((Y)=>{U[Y.id]=Y.formatCode})}return!1}default:return!0}}addStyleModel($,I){if(!$)return 0;if(!this.model.fonts.length)this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"});if(this.weakMap&&this.weakMap.has($))return this.weakMap.get($);let U={};if(I=I||uZ.ValueType.Number,$.numFmt)U.numFmtId=this._addNumFmtStr($.numFmt);else switch(I){case uZ.ValueType.Number:U.numFmtId=this._addNumFmtStr("General");break;case uZ.ValueType.Date:U.numFmtId=this._addNumFmtStr("mm-dd-yy");break;default:break}if($.font)U.fontId=this._addFont($.font);if($.border)U.borderId=this._addBorder($.border);if($.fill)U.fillId=this._addFill($.fill);if($.alignment)U.alignment=$.alignment;if($.protection)U.protection=$.protection;let Y=this._addStyle(U);if(this.weakMap)this.weakMap.set($,Y);return Y}getStyleModel($){let I=this.model.styles[$];if(!I)return null;let U=this.index.model[$];if(U)return U;if(U=this.index.model[$]={},I.numFmtId){let J=this.index.numFmt[I.numFmtId]||BK.getDefaultFmtCode(I.numFmtId);if(J)U.numFmt=J}function Y(J,Q,K){if(K||K===0){let q=Q[K];if(q)U[J]=q}}if(Y("font",this.model.fonts,I.fontId),Y("border",this.model.borders,I.borderId),Y("fill",this.model.fills,I.fillId),I.alignment)U.alignment=I.alignment;if(I.protection)U.protection=I.protection;return U}addDxfStyle($){if($.numFmt)$.numFmtId=this._addNumFmtStr($.numFmt);return this.model.dxfs.push($),this.model.dxfs.length-1}getDxfStyle($){return this.model.dxfs[$]}_addStyle($){let I=this.map.style.toXml($),U=this.index.style[I];if(U===void 0)U=this.index.style[I]=this.model.styles.length,this.model.styles.push(I);return U}_addNumFmtStr($){let I=BK.getDefaultFmtId($);if(I!==void 0)return I;if(I=this.index.numFmt[$],I!==void 0)return I;I=this.index.numFmt[$]=164+this.model.numFmts.length;let U=this.map.numFmt.toXml({id:I,formatCode:$});return this.model.numFmts.push(U),I}_addFont($){let I=this.map.font.toXml($),U=this.index.font[I];if(U===void 0)U=this.index.font[I]=this.model.fonts.length,this.model.fonts.push(I);return U}_addBorder($){let I=this.map.border.toXml($),U=this.index.border[I];if(U===void 0)U=this.index.border[I]=this.model.borders.length,this.model.borders.push(I);return U}_addFill($){let I=this.map.fill.toXml($),U=this.index.fill[I];if(U===void 0)U=this.index.fill[I]=this.model.fills.length,this.model.fills.push(I);return U}}V$.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"};V$.STATIC_XFORMS={cellStyles:new hZ({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new hZ({tag:"dxfs",$:{count:0}}),tableStyles:new hZ({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new hZ({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};class M10 extends V${constructor(){super();this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream($){return $.autodrain(),Promise.resolve()}addStyleModel($,I){switch(I){case uZ.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){let $={numFmtId:BK.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push($)}return this._dateStyleId}getStyleModel(){return{}}}V$.Mock=M10;A10.exports=V$});var E10=O((hT1,T10)=>{var gn0=L0();class P10 extends gn0{constructor($){super();this.tag=$.tag,this.attr=$.attr,this.attrs=$.attrs,this._format=$.format||function(I){try{if(Number.isNaN(I.getTime()))return"";return I.toISOString()}catch(U){return""}},this._parse=$.parse||function(I){return new Date(I)}}render($,I){if(I){if($.openNode(this.tag),this.attrs)$.addAttributes(this.attrs);if(this.attr)$.addAttribute(this.attr,this._format(I));else $.writeText(this._format(I));$.closeNode()}}parseOpen($){if($.name===this.tag)if(this.attr)this.model=this._parse($.attributes[this.attr]);else this.text=[]}parseText($){if(!this.attr)this.text.push($)}parseClose(){if(!this.attr)this.model=this._parse(this.text.join(""));return!1}}T10.exports=P10});var Jj=O((uT1,B10)=>{var yn0=U6(),hn0=L0(),Yj=E10(),u$=jZ(),un0=RZ();class q8 extends hn0{constructor(){super();this.map={"dc:creator":new u$({tag:"dc:creator"}),"dc:title":new u$({tag:"dc:title"}),"dc:subject":new u$({tag:"dc:subject"}),"dc:description":new u$({tag:"dc:description"}),"dc:identifier":new u$({tag:"dc:identifier"}),"dc:language":new u$({tag:"dc:language"}),"cp:keywords":new u$({tag:"cp:keywords"}),"cp:category":new u$({tag:"cp:category"}),"cp:lastModifiedBy":new u$({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new Yj({tag:"cp:lastPrinted",format:q8.DateFormat}),"cp:revision":new un0({tag:"cp:revision"}),"cp:version":new u$({tag:"cp:version"}),"cp:contentStatus":new u$({tag:"cp:contentStatus"}),"cp:contentType":new u$({tag:"cp:contentType"}),"dcterms:created":new Yj({tag:"dcterms:created",attrs:q8.DateAttrs,format:q8.DateFormat}),"dcterms:modified":new Yj({tag:"dcterms:modified",attrs:q8.DateAttrs,format:q8.DateFormat})}}render($,I){$.openXml(yn0.StdDocAttributes),$.openNode("cp:coreProperties",q8.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render($,I.creator),this.map["dc:title"].render($,I.title),this.map["dc:subject"].render($,I.subject),this.map["dc:description"].render($,I.description),this.map["dc:identifier"].render($,I.identifier),this.map["dc:language"].render($,I.language),this.map["cp:keywords"].render($,I.keywords),this.map["cp:category"].render($,I.category),this.map["cp:lastModifiedBy"].render($,I.lastModifiedBy),this.map["cp:lastPrinted"].render($,I.lastPrinted),this.map["cp:revision"].render($,I.revision),this.map["cp:version"].render($,I.version),this.map["cp:contentStatus"].render($,I.contentStatus),this.map["cp:contentType"].render($,I.contentType),this.map["dcterms:created"].render($,I.created),this.map["dcterms:modified"].render($,I.modified),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}q8.DateFormat=function($){return $.toISOString().replace(/[.]\d{3}/,"")};q8.DateAttrs={"xsi:type":"dcterms:W3CDTF"};q8.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"};B10.exports=q8});var xZ=O((kT1,R10)=>{var kn0=L0();class v10 extends kn0{get tag(){return"t"}render($,I){if($.openNode("t"),/^\s|\n|\s$/.test(I))$.addAttribute("xml:space","preserve");$.writeText(I),$.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,($,I)=>String.fromCharCode(parseInt(I,16)))}parseOpen($){switch($.name){case"t":return this._text=[],!0;default:return!1}}parseText($){this._text.push($)}parseClose(){return!1}}R10.exports=v10});var vK=O((xT1,j10)=>{var xn0=xZ(),fn0=SZ(),in0=L0();class fZ extends in0{constructor($){super();this.model=$}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new xn0)}get fontXform(){return this._fontXform||(this._fontXform=new fn0(fZ.FONT_OPTIONS))}render($,I){if(I=I||this.model,$.openNode("r"),I.font)this.fontXform.render($,I.font);this.textXform.render($,I.text),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen($),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){switch($){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:if(this.parser)this.parser.parseClose($);return!0}}}fZ.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"};j10.exports=fZ});var S10=O((fT1,_10)=>{var bn0=xZ(),nn0=vK(),pn0=L0();class C10 extends pn0{constructor(){super();this.map={r:new nn0,t:new bn0}}get tag(){return"rPh"}render($,I){if($.openNode(this.tag,{sb:I.sb||0,eb:I.eb||0}),I&&I.hasOwnProperty("richText")&&I.richText){let{r:U}=this.map;I.richText.forEach((Y)=>{U.render($,Y)})}else if(I)this.map.t.render($,I.text);$.closeNode()}parseOpen($){let{name:I}=$;if(this.parser)return this.parser.parseOpen($),!0;if(I===this.tag)return this.model={sb:parseInt($.attributes.sb,10),eb:parseInt($.attributes.eb,10)},!0;if(this.parser=this.map[I],this.parser)return this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){switch($){case"r":{let I=this.model.richText;if(!I)I=this.model.richText=[];I.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break;default:break}this.parser=void 0}return!0}switch($){case this.tag:return!1;default:return!0}}}_10.exports=C10});var h10=O((iT1,y10)=>{var cn0=xZ(),dn0=vK(),mn0=S10(),ln0=L0();class g10 extends ln0{constructor($){super();this.model=$,this.map={r:new dn0,t:new cn0,rPh:new mn0}}get tag(){return"si"}render($,I){if($.openNode(this.tag),I&&I.hasOwnProperty("richText")&&I.richText)if(I.richText.length)I.richText.forEach((U)=>{this.map.r.render($,U)});else this.map.t.render($,"");else if(I!==void 0&&I!==null)this.map.t.render($,I);$.closeNode()}parseOpen($){let{name:I}=$;if(this.parser)return this.parser.parseOpen($),!0;if(I===this.tag)return this.model={},!0;if(this.parser=this.map[I],this.parser)return this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){switch($){case"r":{let I=this.model.richText;if(!I)I=this.model.richText=[];I.push(this.parser.model);break}case"t":this.model=this.parser.model;break;default:break}this.parser=void 0}return!0}switch($){case this.tag:return!1;default:return!0}}}y10.exports=g10});var Qj=O((bT1,k10)=>{var on0=U6(),rn0=L0(),tn0=h10();class u10 extends rn0{constructor($){super();this.model=$||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new tn0)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString($){return this.model.values[$]}add($){return $.richText?this.addRichText($):this.addText($)}addText($){let I=this.hash[$];if(I===void 0)I=this.hash[$]=this.model.values.length,this.model.values.push($);return this.model.count++,I}addRichText($){let I=this.sharedStringXform.toXml($),U=this.rich[I];if(U===void 0)U=this.rich[I]=this.model.values.length,this.model.values.push($);return this.model.count++,U}render($,I){I=I||this._values,$.openXml(on0.StdDocAttributes),$.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:I.count,uniqueCount:I.values.length});let U=this.sharedStringXform;I.values.forEach((Y)=>{U.render($,Y)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen($),!0;default:throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0;return!0}switch($){case"sst":return!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}k10.exports=u10});var i10=O((nT1,f10)=>{var an0=L0();class x10 extends an0{render($,I){$.leafNode("Relationship",I)}parseOpen($){switch($.name){case"Relationship":return this.model=$.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}f10.exports=x10});var bZ=O((pT1,b10)=>{var sn0=U6(),en0=L0(),$p0=i10();class iZ extends en0{constructor(){super();this.map={Relationship:new $p0}}render($,I){I=I||this._values,$.openXml(sn0.StdDocAttributes),$.openNode("Relationships",iZ.RELATIONSHIPS_ATTRIBUTES),I.forEach((U)=>{this.map.Relationship.render($,U)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.push(this.parser.model),this.parser=void 0;return!0}switch($){case"Relationships":return!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}iZ.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"};b10.exports=iZ});var Kj=O((cT1,n10)=>{var Ip0=U6(),Up0=L0();class nZ extends Up0{render($,I){$.openXml(Ip0.StdDocAttributes),$.openNode("Types",nZ.PROPERTY_ATTRIBUTES);let U={};if((I.media||[]).forEach((J)=>{if(J.type==="image"){let Q=J.extension;if(!U[Q])U[Q]=!0,$.leafNode("Default",{Extension:Q,ContentType:`image/${Q}`})}}),$.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),$.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),$.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),I.worksheets.forEach((J)=>{let Q=`/xl/worksheets/sheet${J.id}.xml`;$.leafNode("Override",{PartName:Q,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),$.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),$.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),I.sharedStrings&&I.sharedStrings.count)$.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"});if(I.tables)I.tables.forEach((J)=>{$.leafNode("Override",{PartName:`/xl/tables/${J.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})});if(I.drawings)I.drawings.forEach((J)=>{$.leafNode("Override",{PartName:`/xl/drawings/${J.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})});if(I.commentRefs)$.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),I.commentRefs.forEach(({commentName:J})=>{$.leafNode("Override",{PartName:`/xl/${J}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})});$.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),$.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),$.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}nZ.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"};n10.exports=nZ});var d10=O((dT1,c10)=>{var Yp0=L0();class p10 extends Yp0{render($,I){$.openNode("HeadingPairs"),$.openNode("vt:vector",{size:2,baseType:"variant"}),$.openNode("vt:variant"),$.leafNode("vt:lpstr",void 0,"Worksheets"),$.closeNode(),$.openNode("vt:variant"),$.leafNode("vt:i4",void 0,I.length),$.closeNode(),$.closeNode(),$.closeNode()}parseOpen($){return $.name==="HeadingPairs"}parseText(){}parseClose($){return $!=="HeadingPairs"}}c10.exports=p10});var o10=O((mT1,l10)=>{var Jp0=L0();class m10 extends Jp0{render($,I){$.openNode("TitlesOfParts"),$.openNode("vt:vector",{size:I.length,baseType:"lpstr"}),I.forEach((U)=>{$.leafNode("vt:lpstr",void 0,U.name)}),$.closeNode(),$.closeNode()}parseOpen($){return $.name==="TitlesOfParts"}parseText(){}parseClose($){return $!=="TitlesOfParts"}}l10.exports=m10});var qj=O((lT1,t10)=>{var Qp0=U6(),Kp0=L0(),r10=jZ(),qp0=d10(),Hp0=o10();class GY extends Kp0{constructor(){super();this.map={Company:new r10({tag:"Company"}),Manager:new r10({tag:"Manager"}),HeadingPairs:new qp0,TitleOfParts:new Hp0}}render($,I){$.openXml(Qp0.StdDocAttributes),$.openNode("Properties",GY.PROPERTY_ATTRIBUTES),$.leafNode("Application",void 0,"Microsoft Excel"),$.leafNode("DocSecurity",void 0,"0"),$.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render($,I.worksheets),this.map.TitleOfParts.render($,I.worksheets),this.map.Company.render($,I.company||""),this.map.Manager.render($,I.manager),$.leafNode("LinksUpToDate",void 0,"false"),$.leafNode("SharedDoc",void 0,"false"),$.leafNode("HyperlinksChanged",void 0,"false"),$.leafNode("AppVersion",void 0,"16.0300"),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"Properties":return!0;default:if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}GY.DateFormat=function($){return $.toISOString().replace(/[.]\d{3,6}/,"")};GY.DateAttrs={"xsi:type":"dcterms:W3CDTF"};GY.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"};t10.exports=GY});var e10=O((oT1,s10)=>{var Gp0=L0(),Wp0=W4();class a10 extends Gp0{render($,I){$.openNode("definedName",{name:I.name,localSheetId:I.localSheetId}),$.writeText(I.ranges.join(",")),$.closeNode()}parseOpen($){switch($.name){case"definedName":return this._parsedName=$.attributes.name,this._parsedLocalSheetId=$.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText($){this._parsedText.push($)}parseClose(){if(this.model={name:this._parsedName,ranges:wp0(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0)this.model.localSheetId=parseInt(this._parsedLocalSheetId,10);return!1}}function Hj($){try{return Wp0.decodeEx($),!0}catch(I){return!1}}function wp0($){let I=[],U=!1,Y="";return $.split(",").forEach((J)=>{if(!J)return;let Q=(J.match(/'/g)||[]).length;if(!Q){if(U)Y+=`${J},`;else if(Hj(J))I.push(J);return}let K=Q%2===0;if(!U&&K&&Hj(J))I.push(J);else if(U&&!K){if(U=!1,Hj(Y+J))I.push(Y+J);Y=""}else U=!0,Y+=`${J},`}),I}s10.exports=a10});var U40=O((rT1,I40)=>{var Vp0=O6(),Zp0=L0();class $40 extends Zp0{render($,I){$.leafNode("sheet",{sheetId:I.id,name:I.name,state:I.state,"r:id":I.rId})}parseOpen($){if($.name==="sheet")return this.model={name:Vp0.xmlDecode($.attributes.name),id:parseInt($.attributes.sheetId,10),state:$.attributes.state,rId:$.attributes["r:id"]},!0;return!1}parseText(){}parseClose(){return!1}}I40.exports=$40});var Q40=O((tT1,J40)=>{var zp0=L0();class Y40 extends zp0{render($,I){let U={xWindow:I.x||0,yWindow:I.y||0,windowWidth:I.width||12000,windowHeight:I.height||24000,firstSheet:I.firstSheet,activeTab:I.activeTab};if(I.visibility&&I.visibility!=="visible")U.visibility=I.visibility;$.leafNode("workbookView",U)}parseOpen($){if($.name==="workbookView"){let I=this.model={},U=function(J,Q,K){let q=Q!==void 0?I[J]=Q:K;if(q!==void 0)I[J]=q},Y=function(J,Q,K){let q=Q!==void 0?I[J]=parseInt(Q,10):K;if(q!==void 0)I[J]=q};return Y("x",$.attributes.xWindow,0),Y("y",$.attributes.yWindow,0),Y("width",$.attributes.windowWidth,25000),Y("height",$.attributes.windowHeight,1e4),U("visibility",$.attributes.visibility,"visible"),Y("activeTab",$.attributes.activeTab,void 0),Y("firstSheet",$.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}J40.exports=Y40});var H40=O((aT1,q40)=>{var Xp0=L0();class K40 extends Xp0{render($,I){$.leafNode("workbookPr",{date1904:I.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen($){if($.name==="workbookPr")return this.model={date1904:$.attributes.date1904==="1"},!0;return!1}parseText(){}parseClose(){return!1}}q40.exports=K40});var w40=O((sT1,W40)=>{var Lp0=L0();class G40 extends Lp0{render($,I){$.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:I.fullCalcOnLoad?1:void 0})}parseOpen($){if($.name==="calcPr")return this.model={},!0;return!1}parseText(){}parseClose(){return!1}}W40.exports=G40});var pZ=O((eT1,V40)=>{var Dp0=X4(),Op0=W4(),Fp0=U6(),Np0=L0(),Mp0=HY(),Gj=f9(),Ap0=e10(),Pp0=U40(),Tp0=Q40(),Ep0=H40(),Bp0=w40();class WY extends Np0{constructor(){super();this.map={fileVersion:WY.STATIC_XFORMS.fileVersion,workbookPr:new Ep0,bookViews:new Gj({tag:"bookViews",count:!1,childXform:new Tp0}),sheets:new Gj({tag:"sheets",count:!1,childXform:new Pp0}),definedNames:new Gj({tag:"definedNames",count:!1,childXform:new Ap0}),calcPr:new Bp0}}prepare($){$.sheets=$.worksheets;let I=[],U=0;if($.sheets.forEach((Y)=>{if(Y.pageSetup&&Y.pageSetup.printArea)Y.pageSetup.printArea.split("&&").forEach((J)=>{let Q=J.split(":"),K={name:"_xlnm.Print_Area",ranges:[`'${Y.name}'!$${Q[0]}:$${Q[1]}`],localSheetId:U};I.push(K)});if(Y.pageSetup&&(Y.pageSetup.printTitlesRow||Y.pageSetup.printTitlesColumn)){let J=[];if(Y.pageSetup.printTitlesColumn){let K=Y.pageSetup.printTitlesColumn.split(":");J.push(`'${Y.name}'!$${K[0]}:$${K[1]}`)}if(Y.pageSetup.printTitlesRow){let K=Y.pageSetup.printTitlesRow.split(":");J.push(`'${Y.name}'!$${K[0]}:$${K[1]}`)}let Q={name:"_xlnm.Print_Titles",ranges:J,localSheetId:U};I.push(Q)}U++}),I.length)$.definedNames=$.definedNames.concat(I);($.media||[]).forEach((Y,J)=>{Y.name=Y.type+(J+1)})}render($,I){$.openXml(Fp0.StdDocAttributes),$.openNode("workbook",WY.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render($),this.map.workbookPr.render($,I.properties),this.map.bookViews.render($,I.views),this.map.sheets.render($,I.sheets),this.map.definedNames.render($,I.definedNames),this.map.calcPr.render($,I.calcProperties),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"workbook":return!0;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);return!0}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"workbook":if(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model)this.model.definedNames=this.map.definedNames.model;return!1;default:return!0}}reconcile($){let I=($.workbookRels||[]).reduce((K,q)=>{return K[q.Id]=q,K},{}),U=[],Y,J=0;($.sheets||[]).forEach((K)=>{let q=I[K.rId];if(!q)return;if(Y=$.worksheetHash[`xl/${q.Target.replace(/^(\s|\/xl\/)+/,"")}`],Y)Y.name=K.name,Y.id=K.id,Y.state=K.state,U[J++]=Y});let Q=[];Dp0.each($.definedNames,(K)=>{if(K.name==="_xlnm.Print_Area"){if(Y=U[K.localSheetId],Y){if(!Y.pageSetup)Y.pageSetup={};let q=Op0.decodeEx(K.ranges[0]);Y.pageSetup.printArea=Y.pageSetup.printArea?`${Y.pageSetup.printArea}&&${q.dimensions}`:q.dimensions}}else if(K.name==="_xlnm.Print_Titles"){if(Y=U[K.localSheetId],Y){if(!Y.pageSetup)Y.pageSetup={};let q=K.ranges.join(","),H=/\$/g,G=/\$\d+:\$\d+/,W=q.match(G);if(W&&W.length){let V=W[0];Y.pageSetup.printTitlesRow=V.replace(H,"")}let w=/\$[A-Z]+:\$[A-Z]+/,Z=q.match(w);if(Z&&Z.length){let V=Z[0];Y.pageSetup.printTitlesColumn=V.replace(H,"")}}}else Q.push(K)}),$.definedNames=Q,$.media.forEach((K,q)=>{K.index=q})}}WY.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"};WY.STATIC_XFORMS={fileVersion:new Mp0({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})};V40.exports=WY});var n9=O(($E1,Z40)=>{Z40.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}});var F40=O((IE1,O40)=>{var z40=X4(),vp0=Z5(),X40=W4(),L40=I8();class D40{constructor(){this.merges={}}add($){if(this.merges[$.master])this.merges[$.master].expandToAddress($.address);else{let I=`${$.master}:${$.address}`;this.merges[$.master]=new vp0(I)}}get mergeCells(){return z40.map(this.merges,($)=>$.range)}reconcile($,I){z40.each($,(U)=>{let Y=X40.decode(U);for(let J=Y.top;J<=Y.bottom;J++){let Q=I[J-1];for(let K=Y.left;K<=Y.right;K++){let q=Q.cells[K-1];if(!q)Q.cells[K]={type:L40.ValueType.Null,address:X40.encodeAddress(J,K)};else if(q.type===L40.ValueType.Merge)q.master=Y.tl}}})}getMasterAddress($){let I=this.hash[$];return I&&I.tl}}O40.exports=D40});var P40=O((UE1,A40)=>{var p9=O6(),Rp0=L0(),jp0=Z5(),i0=I8(),Cp0=vK();function N40($){if($===null||$===void 0)return i0.ValueType.Null;if($ instanceof String||typeof $==="string")return i0.ValueType.String;if(typeof $==="number")return i0.ValueType.Number;if(typeof $==="boolean")return i0.ValueType.Boolean;if($ instanceof Date)return i0.ValueType.Date;if($.text&&$.hyperlink)return i0.ValueType.Hyperlink;if($.formula)return i0.ValueType.Formula;if($.error)return i0.ValueType.Error;throw Error("I could not understand type of value")}function _p0($){switch($.type){case i0.ValueType.Formula:return N40($.result);default:return $.type}}class M40 extends Rp0{constructor(){super();this.richTextXForm=new Cp0}get tag(){return"c"}prepare($,I){let U=I.styles.addStyleModel($.style||{},_p0($));if(U)$.styleId=U;if($.comment)I.comments.push({...$.comment,ref:$.address});switch($.type){case i0.ValueType.String:case i0.ValueType.RichText:if(I.sharedStrings)$.ssId=I.sharedStrings.add($.value);break;case i0.ValueType.Date:if(I.date1904)$.date1904=!0;break;case i0.ValueType.Hyperlink:if(I.sharedStrings&&$.text!==void 0&&$.text!==null)$.ssId=I.sharedStrings.add($.text);I.hyperlinks.push({address:$.address,target:$.hyperlink,tooltip:$.tooltip});break;case i0.ValueType.Merge:I.merges.add($);break;case i0.ValueType.Formula:if(I.date1904)$.date1904=!0;if($.shareType==="shared")$.si=I.siFormulae++;if($.formula)I.formulae[$.address]=$;else if($.sharedFormula){let Y=I.formulae[$.sharedFormula];if(!Y)throw Error(`Shared Formula master must exist above and or left of clone for cell ${$.address}`);if(Y.si===void 0)Y.shareType="shared",Y.si=I.siFormulae++,Y.range=new jp0(Y.address,$.address);else if(Y.range)Y.range.expandToAddress($.address);$.si=Y.si}break;default:break}}renderFormula($,I){let U=null;switch(I.shareType){case"shared":U={t:"shared",ref:I.ref||I.range.range,si:I.si};break;case"array":U={t:"array",ref:I.ref};break;default:if(I.si!==void 0)U={t:"shared",si:I.si};break}switch(N40(I.result)){case i0.ValueType.Null:$.leafNode("f",U,I.formula);break;case i0.ValueType.String:$.addAttribute("t","str"),$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result);break;case i0.ValueType.Number:$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result);break;case i0.ValueType.Boolean:$.addAttribute("t","b"),$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result?1:0);break;case i0.ValueType.Error:$.addAttribute("t","e"),$.leafNode("f",U,I.formula),$.leafNode("v",null,I.result.error);break;case i0.ValueType.Date:$.leafNode("f",U,I.formula),$.leafNode("v",null,p9.dateToExcel(I.result,I.date1904));break;default:throw Error("I could not understand type of value")}}render($,I){if(I.type===i0.ValueType.Null&&!I.styleId)return;if($.openNode("c"),$.addAttribute("r",I.address),I.styleId)$.addAttribute("s",I.styleId);switch(I.type){case i0.ValueType.Null:break;case i0.ValueType.Number:$.leafNode("v",null,I.value);break;case i0.ValueType.Boolean:$.addAttribute("t","b"),$.leafNode("v",null,I.value?"1":"0");break;case i0.ValueType.Error:$.addAttribute("t","e"),$.leafNode("v",null,I.value.error);break;case i0.ValueType.String:case i0.ValueType.RichText:if(I.ssId!==void 0)$.addAttribute("t","s"),$.leafNode("v",null,I.ssId);else if(I.value&&I.value.richText)$.addAttribute("t","inlineStr"),$.openNode("is"),I.value.richText.forEach((U)=>{this.richTextXForm.render($,U)}),$.closeNode("is");else $.addAttribute("t","str"),$.leafNode("v",null,I.value);break;case i0.ValueType.Date:$.leafNode("v",null,p9.dateToExcel(I.value,I.date1904));break;case i0.ValueType.Hyperlink:if(I.ssId!==void 0)$.addAttribute("t","s"),$.leafNode("v",null,I.ssId);else $.addAttribute("t","str"),$.leafNode("v",null,I.text);break;case i0.ValueType.Formula:this.renderFormula($,I);break;case i0.ValueType.Merge:break;default:break}$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"c":if(this.model={address:$.attributes.r},this.t=$.attributes.t,$.attributes.s)this.model.styleId=parseInt($.attributes.s,10);return!0;case"f":return this.currentNode="f",this.model.si=$.attributes.si,this.model.shareType=$.attributes.t,this.model.ref=$.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser){this.parser.parseText($);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+$:$;break;case"v":case"t":if(this.model.value&&this.model.value.richText)this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+$:$;else this.model.value=this.model.value?this.model.value+$:$;break;default:break}}parseClose($){switch($){case"c":{let{model:I}=this;if(I.formula||I.shareType){if(I.type=i0.ValueType.Formula,I.value){if(this.t==="str")I.result=p9.xmlDecode(I.value);else if(this.t==="b")I.result=parseInt(I.value,10)!==0;else if(this.t==="e")I.result={error:I.value};else I.result=parseFloat(I.value);I.value=void 0}}else if(I.value!==void 0)switch(this.t){case"s":I.type=i0.ValueType.String,I.value=parseInt(I.value,10);break;case"str":I.type=i0.ValueType.String,I.value=p9.xmlDecode(I.value);break;case"inlineStr":I.type=i0.ValueType.String;break;case"b":I.type=i0.ValueType.Boolean,I.value=parseInt(I.value,10)!==0;break;case"e":I.type=i0.ValueType.Error,I.value={error:I.value};break;default:I.type=i0.ValueType.Number,I.value=parseFloat(I.value);break}else if(I.styleId)I.type=i0.ValueType.Null;else I.type=i0.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":if(this.parser)return this.parser.parseClose($),!0;return this.currentNode=void 0,!0;case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:if(this.parser)return this.parser.parseClose($),!0;return!1}}reconcile($,I){let U=$.styleId&&I.styles&&I.styles.getStyleModel($.styleId);if(U)$.style=U;if($.styleId!==void 0)$.styleId=void 0;switch($.type){case i0.ValueType.String:if(typeof $.value==="number"){if(I.sharedStrings)$.value=I.sharedStrings.getString($.value)}if($.value.richText)$.type=i0.ValueType.RichText;break;case i0.ValueType.Number:if(U&&p9.isDateFmt(U.numFmt))$.type=i0.ValueType.Date,$.value=p9.excelToDate($.value,I.date1904);break;case i0.ValueType.Formula:if($.result!==void 0&&U&&p9.isDateFmt(U.numFmt))$.result=p9.excelToDate($.result,I.date1904);if($.shareType==="shared"){if($.ref)I.formulae[$.si]=$.address;else $.sharedFormula=I.formulae[$.si],delete $.shareType;delete $.si}break;default:break}let Y=I.hyperlinkMap[$.address];if(Y){if($.type===i0.ValueType.Formula)$.text=$.result,$.result=void 0;else $.text=$.value,$.value=void 0;$.type=i0.ValueType.Hyperlink,$.hyperlink=Y}let J=I.commentsMap&&I.commentsMap[$.address];if(J)$.comment=J}}A40.exports=M40});var wj=O((YE1,E40)=>{var Sp0=L0(),Wj=O6(),gp0=P40();class T40 extends Sp0{constructor($){super();this.maxItems=$&&$.maxItems,this.map={c:new gp0}}get tag(){return"row"}prepare($,I){let U=I.styles.addStyleModel($.style);if(U)$.styleId=U;let Y=this.map.c;$.cells.forEach((J)=>{Y.prepare(J,I)})}render($,I,U){if($.openNode("row"),$.addAttribute("r",I.number),I.height)$.addAttribute("ht",I.height),$.addAttribute("customHeight","1");if(I.hidden)$.addAttribute("hidden","1");if(I.min>0&&I.max>0&&I.min<=I.max)$.addAttribute("spans",`${I.min}:${I.max}`);if(I.styleId)$.addAttribute("s",I.styleId),$.addAttribute("customFormat","1");if($.addAttribute("x14ac:dyDescent","0.25"),I.outlineLevel)$.addAttribute("outlineLevel",I.outlineLevel);if(I.collapsed)$.addAttribute("collapsed","1");let Y=this.map.c;I.cells.forEach((J)=>{Y.render($,J,U)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if($.name==="row"){this.numRowsSeen+=1;let I=$.attributes.spans?$.attributes.spans.split(":").map((Y)=>parseInt(Y,10)):[void 0,void 0],U=this.model={number:parseInt($.attributes.r,10),min:I[0],max:I[1],cells:[]};if($.attributes.s)U.styleId=parseInt($.attributes.s,10);if(Wj.parseBoolean($.attributes.hidden))U.hidden=!0;if(Wj.parseBoolean($.attributes.bestFit))U.bestFit=!0;if($.attributes.ht)U.height=parseFloat($.attributes.ht);if($.attributes.outlineLevel)U.outlineLevel=parseInt($.attributes.outlineLevel,10);if(Wj.parseBoolean($.attributes.collapsed))U.collapsed=!0;return!0}if(this.parser=this.map[$.name],this.parser)return this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile($,I){if($.style=$.styleId?I.styles.getStyleModel($.styleId):{},$.styleId!==void 0)$.styleId=void 0;let U=this.map.c;$.cells.forEach((Y)=>{U.reconcile(Y,I)})}}E40.exports=T40});var Zj=O((JE1,v40)=>{var Vj=O6(),yp0=L0();class B40 extends yp0{get tag(){return"col"}prepare($,I){let U=I.styles.addStyleModel($.style||{});if(U)$.styleId=U}render($,I){if($.openNode("col"),$.addAttribute("min",I.min),$.addAttribute("max",I.max),I.width)$.addAttribute("width",I.width);if(I.styleId)$.addAttribute("style",I.styleId);if(I.hidden)$.addAttribute("hidden","1");if(I.bestFit)$.addAttribute("bestFit","1");if(I.outlineLevel)$.addAttribute("outlineLevel",I.outlineLevel);if(I.collapsed)$.addAttribute("collapsed","1");$.addAttribute("customWidth","1"),$.closeNode()}parseOpen($){if($.name==="col"){let I=this.model={min:parseInt($.attributes.min||"0",10),max:parseInt($.attributes.max||"0",10),width:$.attributes.width===void 0?void 0:parseFloat($.attributes.width||"0")};if($.attributes.style)I.styleId=parseInt($.attributes.style,10);if(Vj.parseBoolean($.attributes.hidden))I.hidden=!0;if(Vj.parseBoolean($.attributes.bestFit))I.bestFit=!0;if($.attributes.outlineLevel)I.outlineLevel=parseInt($.attributes.outlineLevel,10);if(Vj.parseBoolean($.attributes.collapsed))I.collapsed=!0;return!0}return!1}parseText(){}parseClose(){return!1}reconcile($,I){if($.styleId)$.style=I.styles.getStyleModel($.styleId)}}v40.exports=B40});var C40=O((QE1,j40)=>{var hp0=L0();class R40 extends hp0{get tag(){return"dimension"}render($,I){if(I)$.leafNode("dimension",{ref:I})}parseOpen($){if($.name==="dimension")return this.model=$.attributes.ref,!0;return!1}parseText(){}parseClose(){return!1}}j40.exports=R40});var zj=O((KE1,S40)=>{var up0=L0();class _40 extends up0{get tag(){return"hyperlink"}render($,I){if(this.isInternalLink(I))$.leafNode("hyperlink",{ref:I.address,"r:id":I.rId,tooltip:I.tooltip,location:I.target});else $.leafNode("hyperlink",{ref:I.address,"r:id":I.rId,tooltip:I.tooltip})}parseOpen($){if($.name==="hyperlink"){if(this.model={address:$.attributes.ref,rId:$.attributes["r:id"],tooltip:$.attributes.tooltip},$.attributes.location)this.model.target=$.attributes.location;return!0}return!1}parseText(){}parseClose(){return!1}isInternalLink($){return $.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test($.target)}}S40.exports=_40});var h40=O((qE1,y40)=>{var kp0=L0();class g40 extends kp0{get tag(){return"mergeCell"}render($,I){$.leafNode("mergeCell",{ref:I})}parseOpen($){if($.name==="mergeCell")return this.model=$.attributes.ref,!0;return!1}parseText(){}parseClose(){return!1}}y40.exports=g40});var Dj=O((HE1,k40)=>{var RK=X4(),Lj=O6(),wY=W4(),xp0=L0(),fp0=Z5();function VY($,I,U,Y){let J=I[U];if(J!==void 0)$[U]=J;else if(Y!==void 0)$[U]=Y}function Xj($,I,U,Y){let J=I[U];if(J!==void 0)$[U]=Lj.parseBoolean(J);else if(Y!==void 0)$[U]=Y}function ip0($){let I=RK.map($,(J,Q)=>({address:Q,dataValidation:J,marked:!1})).sort((J,Q)=>RK.strcmp(J.address,Q.address)),U=RK.keyBy(I,"address"),Y=(J,Q,K)=>{for(let q=0;q{if(!J.marked){let Q=wY.decodeEx(J.address);if(Q.dimensions)return U[Q.dimensions].marked=!0,{...J.dataValidation,sqref:J.address};let K=1,q=wY.encodeAddress(Q.row+K,Q.col);while($[q]&&RK.isEqual(J.dataValidation,$[q]))K++,q=wY.encodeAddress(Q.row+K,Q.col);let H=1;while(Y(Q,K,Q.col+H))H++;for(let G=0;G1||H>1){let G=Q.row+(K-1),W=Q.col+(H-1);return{...J.dataValidation,sqref:`${J.address}:${wY.encodeAddress(G,W)}`}}return{...J.dataValidation,sqref:J.address}}return null}).filter(Boolean)}class u40 extends xp0{get tag(){return"dataValidations"}render($,I){let U=ip0(I);if(U.length)$.openNode("dataValidations",{count:U.length}),U.forEach((Y)=>{if($.openNode("dataValidation"),Y.type!=="any"){if($.addAttribute("type",Y.type),Y.operator&&Y.type!=="list"&&Y.operator!=="between")$.addAttribute("operator",Y.operator);if(Y.allowBlank)$.addAttribute("allowBlank","1")}if(Y.showInputMessage)$.addAttribute("showInputMessage","1");if(Y.promptTitle)$.addAttribute("promptTitle",Y.promptTitle);if(Y.prompt)$.addAttribute("prompt",Y.prompt);if(Y.showErrorMessage)$.addAttribute("showErrorMessage","1");if(Y.errorStyle)$.addAttribute("errorStyle",Y.errorStyle);if(Y.errorTitle)$.addAttribute("errorTitle",Y.errorTitle);if(Y.error)$.addAttribute("error",Y.error);$.addAttribute("sqref",Y.sqref),(Y.formulae||[]).forEach((J,Q)=>{if($.openNode(`formula${Q+1}`),Y.type==="date")$.writeText(Lj.dateToExcel(new Date(J)));else $.writeText(J);$.closeNode()}),$.closeNode()}),$.closeNode()}parseOpen($){switch($.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=$.attributes.sqref;let I={type:$.attributes.type||"any",formulae:[]};if($.attributes.type)Xj(I,$.attributes,"allowBlank");switch(Xj(I,$.attributes,"showInputMessage"),Xj(I,$.attributes,"showErrorMessage"),I.type){case"any":case"list":case"custom":break;default:VY(I,$.attributes,"operator","between");break}return VY(I,$.attributes,"promptTitle"),VY(I,$.attributes,"prompt"),VY(I,$.attributes,"errorStyle"),VY(I,$.attributes,"errorTitle"),VY(I,$.attributes,"error"),this._dataValidation=I,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText($){if(this._formula)this._formula.push($)}parseClose($){switch($){case"dataValidations":return!1;case"dataValidation":{if(!this._dataValidation.formulae||!this._dataValidation.formulae.length)delete this._dataValidation.formulae,delete this._dataValidation.operator;return(this._address.split(/\s+/g)||[]).forEach((U)=>{if(U.includes(":"))new fp0(U).forEachAddress((J)=>{this.model[J]=this._dataValidation});else this.model[U]=this._dataValidation}),!0}case"formula1":case"formula2":{let I=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":I=parseInt(I,10);break;case"decimal":I=parseFloat(I);break;case"date":I=Lj.excelToDate(parseFloat(I));break;default:break}return this._dataValidation.formulae.push(I),this._formula=void 0,!0}default:return!0}}}k40.exports=u40});var i40=O((GE1,f40)=>{var bp0=L0();class x40 extends bp0{get tag(){return"pageSetUpPr"}render($,I){if(I&&I.fitToPage)return $.leafNode(this.tag,{fitToPage:I.fitToPage?"1":void 0}),!0;return!1}parseOpen($){if($.name===this.tag)return this.model={fitToPage:$.attributes.fitToPage==="1"},!0;return!1}parseText(){}parseClose(){return!1}}f40.exports=x40});var p40=O((WE1,n40)=>{var np0=L0(),ZY=($)=>typeof $<"u";class b40 extends np0{get tag(){return"outlinePr"}render($,I){if(I&&(ZY(I.summaryBelow)||ZY(I.summaryRight)))return $.leafNode(this.tag,{summaryBelow:ZY(I.summaryBelow)?Number(I.summaryBelow):void 0,summaryRight:ZY(I.summaryRight)?Number(I.summaryRight):void 0}),!0;return!1}parseOpen($){if($.name===this.tag)return this.model={summaryBelow:ZY($.attributes.summaryBelow)?Boolean(Number($.attributes.summaryBelow)):void 0,summaryRight:ZY($.attributes.summaryRight)?Boolean(Number($.attributes.summaryRight)):void 0},!0;return!1}parseText(){}parseClose(){return!1}}n40.exports=b40});var Oj=O((wE1,d40)=>{var pp0=L0(),cp0=i9(),dp0=i40(),mp0=p40();class c40 extends pp0{constructor(){super();this.map={tabColor:new cp0("tabColor"),pageSetUpPr:new dp0,outlinePr:new mp0}}get tag(){return"sheetPr"}render($,I){if(I){$.addRollback(),$.openNode("sheetPr");let U=!1;if(U=this.map.tabColor.render($,I.tabColor)||U,U=this.map.pageSetUpPr.render($,I.pageSetup)||U,U=this.map.outlinePr.render($,I.outlineProperties)||U,U)$.closeNode(),$.commit();else $.rollback()}}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if($.name===this.tag)return this.reset(),!0;if(this.map[$.name])return this.parser=this.map[$.name],this.parser.parseOpen($),!0;return!1}parseText($){if(this.parser)return this.parser.parseText($),!0;return!1}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}if(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model){if(this.model={},this.map.tabColor.model)this.model.tabColor=this.map.tabColor.model;if(this.map.pageSetUpPr.model)this.model.pageSetup=this.map.pageSetUpPr.model;if(this.map.outlinePr.model)this.model.outlineProperties=this.map.outlinePr.model}else this.model=null;return!1}}d40.exports=c40});var Fj=O((VE1,l40)=>{var lp0=X4(),op0=L0();class m40 extends op0{get tag(){return"sheetFormatPr"}render($,I){if(I){let U={defaultRowHeight:I.defaultRowHeight,outlineLevelRow:I.outlineLevelRow,outlineLevelCol:I.outlineLevelCol,"x14ac:dyDescent":I.dyDescent};if(I.defaultColWidth)U.defaultColWidth=I.defaultColWidth;if(!I.defaultRowHeight||I.defaultRowHeight!==15)U.customHeight="1";if(lp0.some(U,(Y)=>Y!==void 0))$.leafNode("sheetFormatPr",U)}}parseOpen($){if($.name==="sheetFormatPr"){if(this.model={defaultRowHeight:parseFloat($.attributes.defaultRowHeight||"0"),dyDescent:parseFloat($.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt($.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt($.attributes.outlineLevelCol||"0",10)},$.attributes.defaultColWidth)this.model.defaultColWidth=parseFloat($.attributes.defaultColWidth);return!0}return!1}parseText(){}parseClose(){return!1}}l40.exports=m40});var Nj=O((ZE1,r40)=>{var rp0=W4(),tp0=L0(),ap0={frozen:"frozen",frozenSplit:"frozen",split:"split"};class o40 extends tp0{get tag(){return"sheetView"}prepare($){switch($.state){case"frozen":case"split":break;default:$.state="normal";break}}render($,I){$.openNode("sheetView",{workbookViewId:I.workbookViewId||0});let U=function(q,H,G){if(G)$.addAttribute(q,H)};U("rightToLeft","1",I.rightToLeft===!0),U("tabSelected","1",I.tabSelected),U("showRuler","0",I.showRuler===!1),U("showRowColHeaders","0",I.showRowColHeaders===!1),U("showGridLines","0",I.showGridLines===!1),U("zoomScale",I.zoomScale,I.zoomScale),U("zoomScaleNormal",I.zoomScaleNormal,I.zoomScaleNormal),U("view",I.style,I.style);let Y,J,Q,K;switch(I.state){case"frozen":J=I.xSplit||0,Q=I.ySplit||0,Y=I.topLeftCell||rp0.getAddress(Q+1,J+1).address,K=I.xSplit&&I.ySplit&&"bottomRight"||I.xSplit&&"topRight"||"bottomLeft",$.leafNode("pane",{xSplit:I.xSplit||void 0,ySplit:I.ySplit||void 0,topLeftCell:Y,activePane:K,state:"frozen"}),$.leafNode("selection",{pane:K,activeCell:I.activeCell,sqref:I.activeCell});break;case"split":if(I.activePane==="topLeft")I.activePane=void 0;$.leafNode("pane",{xSplit:I.xSplit||void 0,ySplit:I.ySplit||void 0,topLeftCell:I.topLeftCell,activePane:I.activePane}),$.leafNode("selection",{pane:I.activePane,activeCell:I.activeCell,sqref:I.activeCell});break;case"normal":if(I.activeCell)$.leafNode("selection",{activeCell:I.activeCell,sqref:I.activeCell});break;default:break}$.closeNode()}parseOpen($){switch($.name){case"sheetView":return this.sheetView={workbookViewId:parseInt($.attributes.workbookViewId,10),rightToLeft:$.attributes.rightToLeft==="1",tabSelected:$.attributes.tabSelected==="1",showRuler:$.attributes.showRuler!=="0",showRowColHeaders:$.attributes.showRowColHeaders!=="0",showGridLines:$.attributes.showGridLines!=="0",zoomScale:parseInt($.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt($.attributes.zoomScaleNormal||"100",10),style:$.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt($.attributes.xSplit||"0",10),ySplit:parseInt($.attributes.ySplit||"0",10),topLeftCell:$.attributes.topLeftCell,activePane:$.attributes.activePane||"topLeft",state:$.attributes.state},!0;case"selection":{let I=$.attributes.pane||"topLeft";return this.selections[I]={pane:I,activeCell:$.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose($){let I,U;switch($){case"sheetView":if(this.sheetView&&this.pane){if(I=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:ap0[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split")I.activePane=this.pane.activePane;if(U=this.selections[this.pane.activePane],U&&U.activeCell)I.activeCell=U.activeCell;if(this.sheetView.style)I.style=this.sheetView.style}else{if(I=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},U=this.selections.topLeft,U&&U.activeCell)I.activeCell=U.activeCell;if(this.sheetView.style)I.style=this.sheetView.style}return!1;default:return!0}}reconcile(){}}r40.exports=o40});var Mj=O((zE1,a40)=>{var sp0=X4(),ep0=L0();function t6($,I){return $?I:void 0}function k$($,I){return $===I?!0:void 0}class t40 extends ep0{get tag(){return"sheetProtection"}render($,I){if(I){let U={sheet:t6(I.sheet,"1"),selectLockedCells:I.selectLockedCells===!1?"1":void 0,selectUnlockedCells:I.selectUnlockedCells===!1?"1":void 0,formatCells:t6(I.formatCells,"0"),formatColumns:t6(I.formatColumns,"0"),formatRows:t6(I.formatRows,"0"),insertColumns:t6(I.insertColumns,"0"),insertRows:t6(I.insertRows,"0"),insertHyperlinks:t6(I.insertHyperlinks,"0"),deleteColumns:t6(I.deleteColumns,"0"),deleteRows:t6(I.deleteRows,"0"),sort:t6(I.sort,"0"),autoFilter:t6(I.autoFilter,"0"),pivotTables:t6(I.pivotTables,"0")};if(I.sheet)U.algorithmName=I.algorithmName,U.hashValue=I.hashValue,U.saltValue=I.saltValue,U.spinCount=I.spinCount,U.objects=t6(I.objects===!1,"1"),U.scenarios=t6(I.scenarios===!1,"1");if(sp0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:if(this.model={sheet:k$($.attributes.sheet,"1"),objects:$.attributes.objects==="1"?!1:void 0,scenarios:$.attributes.scenarios==="1"?!1:void 0,selectLockedCells:$.attributes.selectLockedCells==="1"?!1:void 0,selectUnlockedCells:$.attributes.selectUnlockedCells==="1"?!1:void 0,formatCells:k$($.attributes.formatCells,"0"),formatColumns:k$($.attributes.formatColumns,"0"),formatRows:k$($.attributes.formatRows,"0"),insertColumns:k$($.attributes.insertColumns,"0"),insertRows:k$($.attributes.insertRows,"0"),insertHyperlinks:k$($.attributes.insertHyperlinks,"0"),deleteColumns:k$($.attributes.deleteColumns,"0"),deleteRows:k$($.attributes.deleteRows,"0"),sort:k$($.attributes.sort,"0"),autoFilter:k$($.attributes.autoFilter,"0"),pivotTables:k$($.attributes.pivotTables,"0")},$.attributes.algorithmName)this.model.algorithmName=$.attributes.algorithmName,this.model.hashValue=$.attributes.hashValue,this.model.saltValue=$.attributes.saltValue,this.model.spinCount=parseInt($.attributes.spinCount,10);return!0;default:return!1}}parseText(){}parseClose(){return!1}}a40.exports=t40});var Aj=O((XE1,e40)=>{var $c0=X4(),Ic0=L0();class s40 extends Ic0{get tag(){return"pageMargins"}render($,I){if(I){let U={left:I.left,right:I.right,top:I.top,bottom:I.bottom,header:I.header,footer:I.footer};if($c0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:return this.model={left:parseFloat($.attributes.left||0.7),right:parseFloat($.attributes.right||0.7),top:parseFloat($.attributes.top||0.75),bottom:parseFloat($.attributes.bottom||0.75),header:parseFloat($.attributes.header||0.3),footer:parseFloat($.attributes.footer||0.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}e40.exports=s40});var Pj=O((LE1,I60)=>{var Uc0=X4(),Yc0=L0();function cZ($){return $?"1":void 0}function Jc0($){switch($){case"overThenDown":return $;default:return}}function Qc0($){switch($){case"atEnd":case"asDisplyed":return $;default:return}}function Kc0($){switch($){case"dash":case"blank":case"NA":return $;default:return}}function qc0($){return $!==void 0?parseInt($,10):void 0}class $60 extends Yc0{get tag(){return"pageSetup"}render($,I){if(I){let U={paperSize:I.paperSize,orientation:I.orientation,horizontalDpi:I.horizontalDpi,verticalDpi:I.verticalDpi,pageOrder:Jc0(I.pageOrder),blackAndWhite:cZ(I.blackAndWhite),draft:cZ(I.draft),cellComments:Qc0(I.cellComments),errors:Kc0(I.errors),scale:I.scale,fitToWidth:I.fitToWidth,fitToHeight:I.fitToHeight,firstPageNumber:I.firstPageNumber,useFirstPageNumber:cZ(I.firstPageNumber),usePrinterDefaults:cZ(I.usePrinterDefaults),copies:I.copies};if(Uc0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:return this.model={paperSize:qc0($.attributes.paperSize),orientation:$.attributes.orientation||"portrait",horizontalDpi:parseInt($.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt($.attributes.verticalDpi||"4294967295",10),pageOrder:$.attributes.pageOrder||"downThenOver",blackAndWhite:$.attributes.blackAndWhite==="1",draft:$.attributes.draft==="1",cellComments:$.attributes.cellComments||"None",errors:$.attributes.errors||"displayed",scale:parseInt($.attributes.scale||"100",10),fitToWidth:parseInt($.attributes.fitToWidth||"1",10),fitToHeight:parseInt($.attributes.fitToHeight||"1",10),firstPageNumber:parseInt($.attributes.firstPageNumber||"1",10),useFirstPageNumber:$.attributes.useFirstPageNumber==="1",usePrinterDefaults:$.attributes.usePrinterDefaults==="1",copies:parseInt($.attributes.copies||"1",10)},!0;default:return!1}}parseText(){}parseClose(){return!1}}I60.exports=$60});var J60=O((DE1,Y60)=>{var Hc0=X4(),Gc0=L0();function dZ($){return $?"1":void 0}class U60 extends Gc0{get tag(){return"printOptions"}render($,I){if(I){let U={headings:dZ(I.showRowColHeaders),gridLines:dZ(I.showGridLines),horizontalCentered:dZ(I.horizontalCentered),verticalCentered:dZ(I.verticalCentered)};if(Hc0.some(U,(Y)=>Y!==void 0))$.leafNode(this.tag,U)}}parseOpen($){switch($.name){case this.tag:return this.model={showRowColHeaders:$.attributes.headings==="1",showGridLines:$.attributes.gridLines==="1",horizontalCentered:$.attributes.horizontalCentered==="1",verticalCentered:$.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}Y60.exports=U60});var Tj=O((OE1,K60)=>{var Wc0=W4(),wc0=L0();class Q60 extends wc0{get tag(){return"autoFilter"}render($,I){if(I)if(typeof I==="string")$.leafNode("autoFilter",{ref:I});else{let U=function(Q){if(typeof Q==="string")return Q;return Wc0.getAddress(Q.row,Q.column).address},Y=U(I.from),J=U(I.to);if(Y&&J)$.leafNode("autoFilter",{ref:`${Y}:${J}`})}}parseOpen($){if($.name==="autoFilter")this.model=$.attributes.ref}}K60.exports=Q60});var Ej=O((FE1,H60)=>{var Vc0=L0();class q60 extends Vc0{get tag(){return"picture"}render($,I){if(I)$.leafNode(this.tag,{"r:id":I.rId})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}H60.exports=q60});var w60=O((NE1,W60)=>{var Zc0=L0();class G60 extends Zc0{get tag(){return"drawing"}render($,I){if(I)$.leafNode(this.tag,{"r:id":I.rId})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}W60.exports=G60});var z60=O((ME1,Z60)=>{var zc0=L0();class V60 extends zc0{get tag(){return"tablePart"}render($,I){if(I)$.leafNode(this.tag,{"r:id":I.rId})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}Z60.exports=V60});var D60=O((AE1,L60)=>{var Xc0=L0();class X60 extends Xc0{get tag(){return"brk"}render($,I){$.leafNode("brk",I)}parseOpen($){if($.name==="brk")return this.model=$.attributes.ref,!0;return!1}parseText(){}parseClose(){return!1}}L60.exports=X60});var Bj=O((PE1,F60)=>{var Lc0=D60(),Dc0=f9();class O60 extends Dc0{constructor(){let $={tag:"rowBreaks",count:!0,childXform:new Lc0};super($)}render($,I){if(I&&I.length){if($.openNode(this.tag,this.$),this.count)$.addAttribute(this.$count,I.length),$.addAttribute("manualBreakCount",I.length);let{childXform:U}=this;I.forEach((Y)=>{U.render($,Y)}),$.closeNode()}else if(this.empty)$.leafNode(this.tag)}}F60.exports=O60});var vj=O((TE1,M60)=>{var Oc0=L0();class N60 extends Oc0{get tag(){return"headerFooter"}render($,I){if(I){$.addRollback();let U=!1;if($.openNode("headerFooter"),I.differentFirst)$.addAttribute("differentFirst","1"),U=!0;if(I.differentOddEven)$.addAttribute("differentOddEven","1"),U=!0;if(I.oddHeader&&typeof I.oddHeader==="string")$.leafNode("oddHeader",null,I.oddHeader),U=!0;if(I.oddFooter&&typeof I.oddFooter==="string")$.leafNode("oddFooter",null,I.oddFooter),U=!0;if(I.evenHeader&&typeof I.evenHeader==="string")$.leafNode("evenHeader",null,I.evenHeader),U=!0;if(I.evenFooter&&typeof I.evenFooter==="string")$.leafNode("evenFooter",null,I.evenFooter),U=!0;if(I.firstHeader&&typeof I.firstHeader==="string")$.leafNode("firstHeader",null,I.firstHeader),U=!0;if(I.firstFooter&&typeof I.firstFooter==="string")$.leafNode("firstFooter",null,I.firstFooter),U=!0;if(U)$.closeNode(),$.commit();else $.rollback()}}parseOpen($){switch($.name){case"headerFooter":if(this.model={},$.attributes.differentFirst)this.model.differentFirst=parseInt($.attributes.differentFirst,0)===1;if($.attributes.differentOddEven)this.model.differentOddEven=parseInt($.attributes.differentOddEven,0)===1;return!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText($){switch(this.currentNode){case"oddHeader":this.model.oddHeader=$;break;case"oddFooter":this.model.oddFooter=$;break;case"evenHeader":this.model.evenHeader=$;break;case"evenFooter":this.model.evenFooter=$;break;case"firstHeader":this.model.firstHeader=$;break;case"firstFooter":this.model.firstFooter=$;break;default:break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}M60.exports=N60});var a6=O((EE1,P60)=>{var Fc0=L0();class A60 extends Fc0{createNewModel($){return{}}parseOpen($){if(this.parser=this.parser||this.map[$.name],this.parser)return this.parser.parseOpen($),!0;if($.name===this.tag)return this.model=this.createNewModel($),!0;return!1}parseText($){if(this.parser)this.parser.parseText($)}onParserClose($,I){this.model[$]=I.model}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.onParserClose($,this.parser),this.parser=void 0;return!0}return $!==this.tag}}P60.exports=A60});var mZ=O((BE1,B60)=>{var T60=L0();class E60 extends T60{get tag(){return"cfvo"}render($,I){$.leafNode(this.tag,{type:I.type,val:I.value})}parseOpen($){this.model={type:$.attributes.type,value:T60.toFloatValue($.attributes.val)}}parseClose($){return $!==this.tag}}B60.exports=E60});var j60=O((vE1,R60)=>{var Nc0=a6(),Mc0=i9(),Ac0=mZ();class v60 extends Nc0{constructor(){super();this.map={cfvo:this.cfvoXform=new Ac0,color:this.colorXform=new Mc0}}get tag(){return"dataBar"}render($,I){$.openNode(this.tag),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),this.colorXform.render($,I.color),$.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose($,I){switch($){case"cfvo":this.model.cfvo.push(I.model);break;case"color":this.model.color=I.model;break}}}R60.exports=v60});var h60=O((RE1,y60)=>{var Pc0=L0(),C60=a6();class _60 extends Pc0{get tag(){return"x14:id"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}class S60 extends C60{constructor(){super();this.map={"x14:id":this.idXform=new _60}}get tag(){return"ext"}render($,I){$.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render($,I.x14Id),$.closeNode()}createNewModel(){return{}}onParserClose($,I){this.model.x14Id=I.model}}class g60 extends C60{constructor(){super();this.map={ext:new S60}}get tag(){return"extLst"}render($,I){$.openNode(this.tag),this.map.ext.render($,I),$.closeNode()}createNewModel(){return{}}onParserClose($,I){Object.assign(this.model,I.model)}}y60.exports=g60});var x60=O((jE1,k60)=>{var Tc0=L0();class u60 extends Tc0{get tag(){return"formula"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}k60.exports=u60});var b60=O((CE1,i60)=>{var Ec0=a6(),Bc0=i9(),vc0=mZ();class f60 extends Ec0{constructor(){super();this.map={cfvo:this.cfvoXform=new vc0,color:this.colorXform=new Bc0}}get tag(){return"colorScale"}render($,I){$.openNode(this.tag),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),I.color.forEach((U)=>{this.colorXform.render($,U)}),$.closeNode()}createNewModel($){return{cfvo:[],color:[]}}onParserClose($,I){this.model[$].push(I.model)}}i60.exports=f60});var c60=O((_E1,p60)=>{var zY=L0(),Rc0=a6(),jc0=mZ();class n60 extends Rc0{constructor(){super();this.map={cfvo:this.cfvoXform=new jc0}}get tag(){return"iconSet"}render($,I){$.openNode(this.tag,{iconSet:zY.toStringAttribute(I.iconSet,"3TrafficLights"),reverse:zY.toBoolAttribute(I.reverse,!1),showValue:zY.toBoolAttribute(I.showValue,!0)}),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),$.closeNode()}createNewModel({attributes:$}){return{iconSet:zY.toStringValue($.iconSet,"3TrafficLights"),reverse:zY.toBoolValue($.reverse),showValue:zY.toBoolValue($.showValue),cfvo:[]}}onParserClose($,I){this.model[$].push(I.model)}}p60.exports=n60});var l60=O((SE1,m60)=>{var H8=L0(),Cc0=a6(),d60=Z5(),_c0=j60(),Sc0=h60(),gc0=x60(),yc0=b60(),hc0=c60(),uc0={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},kc0=($)=>{if($.formulae&&$.formulae[0])return $.formulae[0];let I=new d60($.ref),{tl:U}=I;switch($.operator){case"containsText":return`NOT(ISERROR(SEARCH("${$.text}",${U})))`;case"containsBlanks":return`LEN(TRIM(${U}))=0`;case"notContainsBlanks":return`LEN(TRIM(${U}))>0`;case"containsErrors":return`ISERROR(${U})`;case"notContainsErrors":return`NOT(ISERROR(${U}))`;default:return}},xc0=($)=>{if($.formulae&&$.formulae[0])return $.formulae[0];let I=new d60($.ref),{tl:U}=I;switch($.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${U},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${U},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${U},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${U},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${U},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${U},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${U},1)=TODAY()-1`;case"today":return`FLOOR(${U},1)=TODAY()`;case"tomorrow":return`FLOOR(${U},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${U},1)<=6,FLOOR(${U},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${U})=MONTH(EDATE(TODAY(),0-1)),YEAR(${U})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${U})=MONTH(TODAY()),YEAR(${U})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${U})=MONTH(EDATE(TODAY(),0+1)),YEAR(${U})=YEAR(EDATE(TODAY(),0+1)))`;default:return}},fc0=($)=>{let{type:I,operator:U}=$;switch(I){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:I};default:return{type:I,operator:U}}};class Rj extends Cc0{constructor(){super();this.map={dataBar:this.databarXform=new _c0,extLst:this.extLstRefXform=new Sc0,formula:this.formulaXform=new gc0,colorScale:this.colorScaleXform=new yc0,iconSet:this.iconSetXform=new hc0}}get tag(){return"cfRule"}static isPrimitive($){if($.type==="iconSet"){if($.custom||uc0[$.iconSet])return!1}return!0}render($,I){switch(I.type){case"expression":this.renderExpression($,I);break;case"cellIs":this.renderCellIs($,I);break;case"top10":this.renderTop10($,I);break;case"aboveAverage":this.renderAboveAverage($,I);break;case"dataBar":this.renderDataBar($,I);break;case"colorScale":this.renderColorScale($,I);break;case"iconSet":this.renderIconSet($,I);break;case"containsText":this.renderText($,I);break;case"timePeriod":this.renderTimePeriod($,I);break}}renderExpression($,I){$.openNode(this.tag,{type:"expression",dxfId:I.dxfId,priority:I.priority}),this.formulaXform.render($,I.formulae[0]),$.closeNode()}renderCellIs($,I){$.openNode(this.tag,{type:"cellIs",dxfId:I.dxfId,priority:I.priority,operator:I.operator}),I.formulae.forEach((U)=>{this.formulaXform.render($,U)}),$.closeNode()}renderTop10($,I){$.leafNode(this.tag,{type:"top10",dxfId:I.dxfId,priority:I.priority,percent:H8.toBoolAttribute(I.percent,!1),bottom:H8.toBoolAttribute(I.bottom,!1),rank:H8.toIntValue(I.rank,10,!0)})}renderAboveAverage($,I){$.leafNode(this.tag,{type:"aboveAverage",dxfId:I.dxfId,priority:I.priority,aboveAverage:H8.toBoolAttribute(I.aboveAverage,!0)})}renderDataBar($,I){$.openNode(this.tag,{type:"dataBar",priority:I.priority}),this.databarXform.render($,I),this.extLstRefXform.render($,I),$.closeNode()}renderColorScale($,I){$.openNode(this.tag,{type:"colorScale",priority:I.priority}),this.colorScaleXform.render($,I),$.closeNode()}renderIconSet($,I){if(!Rj.isPrimitive(I))return;$.openNode(this.tag,{type:"iconSet",priority:I.priority}),this.iconSetXform.render($,I),$.closeNode()}renderText($,I){$.openNode(this.tag,{type:I.operator,dxfId:I.dxfId,priority:I.priority,operator:H8.toStringAttribute(I.operator,"containsText")});let U=kc0(I);if(U)this.formulaXform.render($,U);$.closeNode()}renderTimePeriod($,I){$.openNode(this.tag,{type:"timePeriod",dxfId:I.dxfId,priority:I.priority,timePeriod:I.timePeriod});let U=xc0(I);if(U)this.formulaXform.render($,U);$.closeNode()}createNewModel({attributes:$}){return{...fc0($),dxfId:H8.toIntValue($.dxfId),priority:H8.toIntValue($.priority),timePeriod:$.timePeriod,percent:H8.toBoolValue($.percent),bottom:H8.toBoolValue($.bottom),rank:H8.toIntValue($.rank),aboveAverage:H8.toBoolValue($.aboveAverage)}}onParserClose($,I){switch($){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,I.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(I.model);break}}}m60.exports=Rj});var t60=O((gE1,r60)=>{var ic0=a6(),jj=l60();class o60 extends ic0{constructor(){super();this.map={cfRule:new jj}}get tag(){return"conditionalFormatting"}render($,I){if(!I.rules.some(jj.isPrimitive))return;$.openNode(this.tag,{sqref:I.ref}),I.rules.forEach((U)=>{if(jj.isPrimitive(U))U.ref=I.ref,this.map.cfRule.render($,U)}),$.closeNode()}createNewModel({attributes:$}){return{ref:$.sqref,rules:[]}}onParserClose($,I){this.model.rules.push(I.model)}}r60.exports=o60});var Cj=O((yE1,s60)=>{var bc0=L0(),nc0=t60();class a60 extends bc0{constructor(){super();this.cfXform=new nc0}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare($,I){let U=$.reduce((Y,J)=>Math.max(Y,...J.rules.map((Q)=>Q.priority||0)),1);$.forEach((Y)=>{Y.rules.forEach((J)=>{if(!J.priority)J.priority=U++;if(J.style)J.dxfId=I.styles.addDxfStyle(J.style)})})}render($,I){I.forEach((U)=>{this.cfXform.render($,U)})}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen($),!0;default:return!1}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))return this.model.push(this.parser.model),this.parser=void 0,!1;return!0}return!1}reconcile($,I){$.forEach((U)=>{U.rules.forEach((Y)=>{if(Y.dxfId!==void 0)Y.style=I.styles.getDxfStyle(Y.dxfId),delete Y.dxfId})})}}s60.exports=a60});var _j=O((e60)=>{Object.defineProperty(e60,"__esModule",{value:!0});e60.default=dc0;var pc0=cc0(t("crypto"));function cc0($){return $&&$.__esModule?$:{default:$}}var oZ=new Uint8Array(256),lZ=oZ.length;function dc0(){if(lZ>oZ.length-16)pc0.default.randomFillSync(oZ),lZ=0;return oZ.slice(lZ,lZ+=16)}});var U$0=O(($$0)=>{Object.defineProperty($$0,"__esModule",{value:!0});$$0.default=void 0;var lc0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;$$0.default=lc0});var jK=O((Y$0)=>{Object.defineProperty(Y$0,"__esModule",{value:!0});Y$0.default=void 0;var oc0=rc0(U$0());function rc0($){return $&&$.__esModule?$:{default:$}}function tc0($){return typeof $==="string"&&oc0.default.test($)}var ac0=tc0;Y$0.default=ac0});var CK=O((Q$0)=>{Object.defineProperty(Q$0,"__esModule",{value:!0});Q$0.default=void 0;var sc0=ec0(jK());function ec0($){return $&&$.__esModule?$:{default:$}}var J6=[];for(let $=0;$<256;++$)J6.push(($+256).toString(16).substr(1));function $d0($,I=0){let U=(J6[$[I+0]]+J6[$[I+1]]+J6[$[I+2]]+J6[$[I+3]]+"-"+J6[$[I+4]]+J6[$[I+5]]+"-"+J6[$[I+6]]+J6[$[I+7]]+"-"+J6[$[I+8]]+J6[$[I+9]]+"-"+J6[$[I+10]]+J6[$[I+11]]+J6[$[I+12]]+J6[$[I+13]]+J6[$[I+14]]+J6[$[I+15]]).toLowerCase();if(!(0,sc0.default)(U))throw TypeError("Stringified UUID is invalid");return U}var Id0=$d0;Q$0.default=Id0});var w$0=O((G$0)=>{Object.defineProperty(G$0,"__esModule",{value:!0});G$0.default=void 0;var Ud0=H$0(_j()),Yd0=H$0(CK());function H$0($){return $&&$.__esModule?$:{default:$}}var q$0,Sj,gj=0,yj=0;function Jd0($,I,U){let Y=I&&U||0,J=I||Array(16);$=$||{};let Q=$.node||q$0,K=$.clockseq!==void 0?$.clockseq:Sj;if(Q==null||K==null){let Z=$.random||($.rng||Ud0.default)();if(Q==null)Q=q$0=[Z[0]|1,Z[1],Z[2],Z[3],Z[4],Z[5]];if(K==null)K=Sj=(Z[6]<<8|Z[7])&16383}let q=$.msecs!==void 0?$.msecs:Date.now(),H=$.nsecs!==void 0?$.nsecs:yj+1,G=q-gj+(H-yj)/1e4;if(G<0&&$.clockseq===void 0)K=K+1&16383;if((G<0||q>gj)&&$.nsecs===void 0)H=0;if(H>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");gj=q,yj=H,Sj=K,q+=12219292800000;let W=((q&268435455)*1e4+H)%4294967296;J[Y++]=W>>>24&255,J[Y++]=W>>>16&255,J[Y++]=W>>>8&255,J[Y++]=W&255;let w=q/4294967296*1e4&268435455;J[Y++]=w>>>8&255,J[Y++]=w&255,J[Y++]=w>>>24&15|16,J[Y++]=w>>>16&255,J[Y++]=K>>>8|128,J[Y++]=K&255;for(let Z=0;Z<6;++Z)J[Y+Z]=Q[Z];return I||(0,Yd0.default)(J)}var Qd0=Jd0;G$0.default=Qd0});var hj=O((V$0)=>{Object.defineProperty(V$0,"__esModule",{value:!0});V$0.default=void 0;var Kd0=qd0(jK());function qd0($){return $&&$.__esModule?$:{default:$}}function Hd0($){if(!(0,Kd0.default)($))throw TypeError("Invalid UUID");let I,U=new Uint8Array(16);return U[0]=(I=parseInt($.slice(0,8),16))>>>24,U[1]=I>>>16&255,U[2]=I>>>8&255,U[3]=I&255,U[4]=(I=parseInt($.slice(9,13),16))>>>8,U[5]=I&255,U[6]=(I=parseInt($.slice(14,18),16))>>>8,U[7]=I&255,U[8]=(I=parseInt($.slice(19,23),16))>>>8,U[9]=I&255,U[10]=(I=parseInt($.slice(24,36),16))/1099511627776&255,U[11]=I/4294967296&255,U[12]=I>>>24&255,U[13]=I>>>16&255,U[14]=I>>>8&255,U[15]=I&255,U}var Gd0=Hd0;V$0.default=Gd0});var uj=O((D$0)=>{Object.defineProperty(D$0,"__esModule",{value:!0});D$0.default=Zd0;D$0.URL=D$0.DNS=void 0;var Wd0=z$0(CK()),wd0=z$0(hj());function z$0($){return $&&$.__esModule?$:{default:$}}function Vd0($){$=unescape(encodeURIComponent($));let I=[];for(let U=0;U<$.length;++U)I.push($.charCodeAt(U));return I}var X$0="6ba7b810-9dad-11d1-80b4-00c04fd430c8";D$0.DNS=X$0;var L$0="6ba7b811-9dad-11d1-80b4-00c04fd430c8";D$0.URL=L$0;function Zd0($,I,U){function Y(J,Q,K,q){if(typeof J==="string")J=Vd0(J);if(typeof Q==="string")Q=(0,wd0.default)(Q);if(Q.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let H=new Uint8Array(16+J.length);if(H.set(Q),H.set(J,Q.length),H=U(H),H[6]=H[6]&15|I,H[8]=H[8]&63|128,K){q=q||0;for(let G=0;G<16;++G)K[q+G]=H[G];return K}return(0,Wd0.default)(H)}try{Y.name=$}catch(J){}return Y.DNS=X$0,Y.URL=L$0,Y}});var M$0=O((F$0)=>{Object.defineProperty(F$0,"__esModule",{value:!0});F$0.default=void 0;var Ld0=Dd0(t("crypto"));function Dd0($){return $&&$.__esModule?$:{default:$}}function Od0($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return Ld0.default.createHash("md5").update($).digest()}var Fd0=Od0;F$0.default=Fd0});var E$0=O((P$0)=>{Object.defineProperty(P$0,"__esModule",{value:!0});P$0.default=void 0;var Nd0=A$0(uj()),Md0=A$0(M$0());function A$0($){return $&&$.__esModule?$:{default:$}}var Ad0=(0,Nd0.default)("v3",48,Md0.default),Pd0=Ad0;P$0.default=Pd0});var j$0=O((v$0)=>{Object.defineProperty(v$0,"__esModule",{value:!0});v$0.default=void 0;var Td0=B$0(_j()),Ed0=B$0(CK());function B$0($){return $&&$.__esModule?$:{default:$}}function Bd0($,I,U){$=$||{};let Y=$.random||($.rng||Td0.default)();if(Y[6]=Y[6]&15|64,Y[8]=Y[8]&63|128,I){U=U||0;for(let J=0;J<16;++J)I[U+J]=Y[J];return I}return(0,Ed0.default)(Y)}var vd0=Bd0;v$0.default=vd0});var S$0=O((C$0)=>{Object.defineProperty(C$0,"__esModule",{value:!0});C$0.default=void 0;var Rd0=jd0(t("crypto"));function jd0($){return $&&$.__esModule?$:{default:$}}function Cd0($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return Rd0.default.createHash("sha1").update($).digest()}var _d0=Cd0;C$0.default=_d0});var u$0=O((y$0)=>{Object.defineProperty(y$0,"__esModule",{value:!0});y$0.default=void 0;var Sd0=g$0(uj()),gd0=g$0(S$0());function g$0($){return $&&$.__esModule?$:{default:$}}var yd0=(0,Sd0.default)("v5",80,gd0.default),hd0=yd0;y$0.default=hd0});var f$0=O((k$0)=>{Object.defineProperty(k$0,"__esModule",{value:!0});k$0.default=void 0;var ud0="00000000-0000-0000-0000-000000000000";k$0.default=ud0});var n$0=O((i$0)=>{Object.defineProperty(i$0,"__esModule",{value:!0});i$0.default=void 0;var kd0=xd0(jK());function xd0($){return $&&$.__esModule?$:{default:$}}function fd0($){if(!(0,kd0.default)($))throw TypeError("Invalid UUID");return parseInt($.substr(14,1),16)}var id0=fd0;i$0.default=id0});var p$0=O((G8)=>{Object.defineProperty(G8,"__esModule",{value:!0});Object.defineProperty(G8,"v1",{enumerable:!0,get:function(){return bd0.default}});Object.defineProperty(G8,"v3",{enumerable:!0,get:function(){return nd0.default}});Object.defineProperty(G8,"v4",{enumerable:!0,get:function(){return pd0.default}});Object.defineProperty(G8,"v5",{enumerable:!0,get:function(){return cd0.default}});Object.defineProperty(G8,"NIL",{enumerable:!0,get:function(){return dd0.default}});Object.defineProperty(G8,"version",{enumerable:!0,get:function(){return md0.default}});Object.defineProperty(G8,"validate",{enumerable:!0,get:function(){return ld0.default}});Object.defineProperty(G8,"stringify",{enumerable:!0,get:function(){return od0.default}});Object.defineProperty(G8,"parse",{enumerable:!0,get:function(){return rd0.default}});var bd0=P5(w$0()),nd0=P5(E$0()),pd0=P5(j$0()),cd0=P5(u$0()),dd0=P5(f$0()),md0=P5(n$0()),ld0=P5(jK()),od0=P5(CK()),rd0=P5(hj());function P5($){return $&&$.__esModule?$:{default:$}}});var m$0=O((tE1,d$0)=>{var td0=L0();class c$0 extends td0{get tag(){return"xm:f"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}d$0.exports=c$0});var kj=O((aE1,o$0)=>{var ad0=a6(),sd0=m$0();class l$0 extends ad0{constructor(){super();this.map={"xm:f":this.fExtXform=new sd0}}get tag(){return"x14:cfvo"}render($,I){if($.openNode(this.tag,{type:I.type}),I.value!==void 0)this.fExtXform.render($,I.value);$.closeNode()}createNewModel($){return{type:$.attributes.type}}onParserClose($,I){switch($){case"xm:f":this.model.value=I.model?parseFloat(I.model):0;break}}}o$0.exports=l$0});var a$0=O((sE1,t$0)=>{var F6=L0(),ed0=a6(),rZ=i9(),$m0=kj();class r$0 extends ed0{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new $m0,"x14:borderColor":this.borderColorXform=new rZ("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new rZ("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new rZ("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new rZ("x14:axisColor")}}static isExt($){return!$.gradient}get tag(){return"x14:dataBar"}render($,I){$.openNode(this.tag,{minLength:F6.toIntAttribute(I.minLength,0,!0),maxLength:F6.toIntAttribute(I.maxLength,100,!0),border:F6.toBoolAttribute(I.border,!1),gradient:F6.toBoolAttribute(I.gradient,!0),negativeBarColorSameAsPositive:F6.toBoolAttribute(I.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:F6.toBoolAttribute(I.negativeBarBorderColorSameAsPositive,!0),axisPosition:F6.toAttribute(I.axisPosition,"auto"),direction:F6.toAttribute(I.direction,"leftToRight")}),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),this.borderColorXform.render($,I.borderColor),this.negativeBorderColorXform.render($,I.negativeBorderColor),this.negativeFillColorXform.render($,I.negativeFillColor),this.axisColorXform.render($,I.axisColor),$.closeNode()}createNewModel({attributes:$}){return{cfvo:[],minLength:F6.toIntValue($.minLength,0),maxLength:F6.toIntValue($.maxLength,100),border:F6.toBoolValue($.border,!1),gradient:F6.toBoolValue($.gradient,!0),negativeBarColorSameAsPositive:F6.toBoolValue($.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:F6.toBoolValue($.negativeBarBorderColorSameAsPositive,!0),axisPosition:F6.toStringValue($.axisPosition,"auto"),direction:F6.toStringValue($.direction,"leftToRight")}}onParserClose($,I){let[,U]=$.split(":");switch(U){case"cfvo":this.model.cfvo.push(I.model);break;default:this.model[U]=I.model;break}}}t$0.exports=r$0});var I80=O((eE1,$80)=>{var s$0=L0();class e$0 extends s$0{get tag(){return"x14:cfIcon"}render($,I){$.leafNode(this.tag,{iconSet:I.iconSet,iconId:I.iconId})}parseOpen({attributes:$}){this.model={iconSet:$.iconSet,iconId:s$0.toIntValue($.iconId)}}parseClose($){return $!==this.tag}}$80.exports=e$0});var J80=O(($B1,Y80)=>{var L3=L0(),Im0=a6(),Um0=kj(),Ym0=I80();class U80 extends Im0{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new Um0,"x14:cfIcon":this.cfIconXform=new Ym0}}get tag(){return"x14:iconSet"}render($,I){if($.openNode(this.tag,{iconSet:L3.toStringAttribute(I.iconSet),reverse:L3.toBoolAttribute(I.reverse,!1),showValue:L3.toBoolAttribute(I.showValue,!0),custom:L3.toBoolAttribute(I.icons,!1)}),I.cfvo.forEach((U)=>{this.cfvoXform.render($,U)}),I.icons)I.icons.forEach((U,Y)=>{U.iconId=Y,this.cfIconXform.render($,U)});$.closeNode()}createNewModel({attributes:$}){return{cfvo:[],iconSet:L3.toStringValue($.iconSet,"3TrafficLights"),reverse:L3.toBoolValue($.reverse,!1),showValue:L3.toBoolValue($.showValue,!0)}}onParserClose($,I){let[,U]=$.split(":");switch(U){case"cfvo":this.model.cfvo.push(I.model);break;case"cfIcon":if(!this.model.icons)this.model.icons=[];this.model.icons.push(I.model);break;default:this.model[U]=I.model;break}}}Y80.exports=U80});var xj=O((IB1,q80)=>{var{v4:Q80}=p$0(),Jm0=L0(),Qm0=a6(),K80=a$0(),Km0=J80(),qm0={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class tZ extends Qm0{constructor(){super();this.map={"x14:dataBar":this.databarXform=new K80,"x14:iconSet":this.iconSetXform=new Km0}}get tag(){return"x14:cfRule"}static isExt($){if($.type==="dataBar")return K80.isExt($);if($.type==="iconSet"){if($.custom||qm0[$.iconSet])return!0}return!1}prepare($){if(tZ.isExt($))$.x14Id=`{${Q80()}}`.toUpperCase()}render($,I){if(!tZ.isExt(I))return;switch(I.type){case"dataBar":this.renderDataBar($,I);break;case"iconSet":this.renderIconSet($,I);break}}renderDataBar($,I){$.openNode(this.tag,{type:"dataBar",id:I.x14Id}),this.databarXform.render($,I),$.closeNode()}renderIconSet($,I){$.openNode(this.tag,{type:"iconSet",priority:I.priority,id:I.x14Id||`{${Q80()}}`}),this.iconSetXform.render($,I),$.closeNode()}createNewModel({attributes:$}){return{type:$.type,x14Id:$.id,priority:Jm0.toIntValue($.priority)}}onParserClose($,I){Object.assign(this.model,I.model)}}q80.exports=tZ});var W80=O((UB1,G80)=>{var Hm0=L0();class H80 extends Hm0{get tag(){return"xm:sqref"}render($,I){$.leafNode(this.tag,null,I)}parseOpen(){this.model=""}parseText($){this.model+=$}parseClose($){return $!==this.tag}}G80.exports=H80});var Z80=O((YB1,V80)=>{var Gm0=a6(),Wm0=W80(),fj=xj();class w80 extends Gm0{constructor(){super();this.map={"xm:sqref":this.sqRef=new Wm0,"x14:cfRule":this.cfRule=new fj}}get tag(){return"x14:conditionalFormatting"}prepare($,I){$.rules.forEach((U)=>{this.cfRule.prepare(U,I)})}render($,I){if(!I.rules.some(fj.isExt))return;$.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),I.rules.filter(fj.isExt).forEach((U)=>this.cfRule.render($,U)),this.sqRef.render($,I.ref),$.closeNode()}createNewModel(){return{rules:[]}}onParserClose($,I){switch($){case"xm:sqref":this.model.ref=I.model;break;case"x14:cfRule":this.model.rules.push(I.model);break}}}V80.exports=w80});var L80=O((JB1,X80)=>{var wm0=a6(),Vm0=xj(),Zm0=Z80();class z80 extends wm0{constructor(){super();this.map={"x14:conditionalFormatting":this.cfXform=new Zm0}}get tag(){return"x14:conditionalFormattings"}hasContent($){if($.hasExtContent===void 0)$.hasExtContent=$.some((I)=>I.rules.some(Vm0.isExt));return $.hasExtContent}prepare($,I){$.forEach((U)=>{this.cfXform.prepare(U,I)})}render($,I){if(this.hasContent(I))$.openNode(this.tag),I.forEach((U)=>this.cfXform.render($,U)),$.closeNode()}createNewModel(){return[]}onParserClose($,I){this.model.push(I.model)}}X80.exports=z80});var M80=O((QB1,N80)=>{var D80=a6(),zm0=L80();class O80 extends D80{constructor(){super();this.map={"x14:conditionalFormattings":this.conditionalFormattings=new zm0}}get tag(){return"ext"}hasContent($){return this.conditionalFormattings.hasContent($.conditionalFormattings)}prepare($,I){this.conditionalFormattings.prepare($.conditionalFormattings,I)}render($,I){$.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render($,I.conditionalFormattings),$.closeNode()}createNewModel(){return{}}onParserClose($,I){this.model[$]=I.model}}class F80 extends D80{constructor(){super();this.map={ext:this.ext=new O80}}get tag(){return"extLst"}prepare($,I){this.ext.prepare($,I)}hasContent($){return this.ext.hasContent($)}render($,I){if(!this.hasContent(I))return;$.openNode("extLst"),this.ext.render($,I),$.closeNode()}createNewModel(){return{}}onParserClose($,I){Object.assign(this.model,I.model)}}N80.exports=F80});var P80=O((KB1,A80)=>{var Xm0=X4(),Lm0=W4(),Dm0=U6(),T5=n9(),Om0=F40(),Fm0=L0(),XY=f9(),Nm0=wj(),Mm0=Zj(),Am0=C40(),Pm0=zj(),Tm0=h40(),Em0=Dj(),Bm0=Oj(),vm0=Fj(),Rm0=Nj(),jm0=Mj(),Cm0=Aj(),_m0=Pj(),Sm0=J60(),gm0=Tj(),ym0=Ej(),hm0=w60(),um0=z60(),km0=Bj(),xm0=vj(),fm0=Cj(),im0=M80(),bm0=($,I)=>{Object.keys(I).forEach((U)=>{let Y=$[U],J=I[U];if(Y===void 0&&J!==void 0)$[U]=J})},nm0=($,I)=>{if(!I||!I.length)return $;if(!$||!$.length)return I;let U={},Y={};return $.forEach((J)=>{U[J.ref]=J,J.rules.forEach((Q)=>{let{x14Id:K}=Q;if(K)Y[K]=Q})}),I.forEach((J)=>{J.rules.forEach((Q)=>{let K=Y[Q.x14Id];if(K)bm0(K,Q);else if(U[J.ref])U[J.ref].rules.push(Q);else $.push({ref:J.ref,rules:[Q]})})}),$};class aZ extends Fm0{constructor($){super();let{maxRows:I,maxCols:U,ignoreNodes:Y}=$||{};this.ignoreNodes=Y||[],this.map={sheetPr:new Bm0,dimension:new Am0,sheetViews:new XY({tag:"sheetViews",count:!1,childXform:new Rm0}),sheetFormatPr:new vm0,cols:new XY({tag:"cols",count:!1,childXform:new Mm0}),sheetData:new XY({tag:"sheetData",count:!1,empty:!0,childXform:new Nm0({maxItems:U}),maxItems:I}),autoFilter:new gm0,mergeCells:new XY({tag:"mergeCells",count:!0,childXform:new Tm0}),rowBreaks:new km0,hyperlinks:new XY({tag:"hyperlinks",count:!1,childXform:new Pm0}),pageMargins:new Cm0,dataValidations:new Em0,pageSetup:new _m0,headerFooter:new xm0,printOptions:new Sm0,picture:new ym0,drawing:new hm0,sheetProtection:new jm0,tableParts:new XY({tag:"tableParts",count:!0,childXform:new um0}),conditionalFormatting:new fm0,extLst:new im0}}prepare($,I){I.merges=new Om0,$.hyperlinks=I.hyperlinks=[],$.comments=I.comments=[],I.formulae={},I.siFormulae=0,this.map.cols.prepare($.cols,I),this.map.sheetData.prepare($.rows,I),this.map.conditionalFormatting.prepare($.conditionalFormattings,I),$.mergeCells=I.merges.mergeCells;let U=$.rels=[];function Y(K){return`rId${K.length+1}`}if($.hyperlinks.forEach((K)=>{let q=Y(U);K.rId=q,U.push({Id:q,Type:T5.Hyperlink,Target:K.target,TargetMode:"External"})}),$.comments.length>0){let K={Id:Y(U),Type:T5.Comments,Target:`../comments${$.id}.xml`};U.push(K);let q={Id:Y(U),Type:T5.VmlDrawing,Target:`../drawings/vmlDrawing${$.id}.vml`};U.push(q),$.comments.forEach((H)=>{H.refAddress=Lm0.decodeAddress(H.ref)}),I.commentRefs.push({commentName:`comments${$.id}`,vmlDrawing:`vmlDrawing${$.id}`})}let J=[],Q;$.media.forEach((K)=>{if(K.type==="background"){let q=Y(U);Q=I.media[K.imageId],U.push({Id:q,Type:T5.Image,Target:`../media/${Q.name}.${Q.extension}`}),$.background={rId:q},$.image=I.media[K.imageId]}else if(K.type==="image"){let{drawing:q}=$;if(Q=I.media[K.imageId],!q)q=$.drawing={rId:Y(U),name:`drawing${++I.drawingsCount}`,anchors:[],rels:[]},I.drawings.push(q),U.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`});let H=this.preImageId===K.imageId?J[K.imageId]:J[q.rels.length];if(!H)H=Y(q.rels),J[q.rels.length]=H,q.rels.push({Id:H,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Q.name}.${Q.extension}`});let G={picture:{rId:H},range:K.range};if(K.hyperlinks&&K.hyperlinks.hyperlink){let W=Y(q.rels);J[q.rels.length]=W,G.picture.hyperlinks={tooltip:K.hyperlinks.tooltip,rId:W},q.rels.push({Id:W,Type:T5.Hyperlink,Target:K.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=K.imageId,q.anchors.push(G)}}),$.tables.forEach((K)=>{let q=Y(U);K.rId=q,U.push({Id:q,Type:T5.Table,Target:`../tables/${K.target}`}),K.columns.forEach((H)=>{let{style:G}=H;if(G)H.dxfId=I.styles.addDxfStyle(G)})}),this.map.extLst.prepare($,I)}render($,I){$.openXml(Dm0.StdDocAttributes),$.openNode("worksheet",aZ.WORKSHEET_ATTRIBUTES);let U=I.properties?{defaultRowHeight:I.properties.defaultRowHeight,dyDescent:I.properties.dyDescent,outlineLevelCol:I.properties.outlineLevelCol,outlineLevelRow:I.properties.outlineLevelRow}:void 0;if(I.properties&&I.properties.defaultColWidth)U.defaultColWidth=I.properties.defaultColWidth;let Y={outlineProperties:I.properties&&I.properties.outlineProperties,tabColor:I.properties&&I.properties.tabColor,pageSetup:I.pageSetup&&I.pageSetup.fitToPage?{fitToPage:I.pageSetup.fitToPage}:void 0},J=I.pageSetup&&I.pageSetup.margins,Q={showRowColHeaders:I.pageSetup&&I.pageSetup.showRowColHeaders,showGridLines:I.pageSetup&&I.pageSetup.showGridLines,horizontalCentered:I.pageSetup&&I.pageSetup.horizontalCentered,verticalCentered:I.pageSetup&&I.pageSetup.verticalCentered},K=I.sheetProtection;if(this.map.sheetPr.render($,Y),this.map.dimension.render($,I.dimensions),this.map.sheetViews.render($,I.views),this.map.sheetFormatPr.render($,U),this.map.cols.render($,I.cols),this.map.sheetData.render($,I.rows),this.map.sheetProtection.render($,K),this.map.autoFilter.render($,I.autoFilter),this.map.mergeCells.render($,I.mergeCells),this.map.conditionalFormatting.render($,I.conditionalFormattings),this.map.dataValidations.render($,I.dataValidations),this.map.hyperlinks.render($,I.hyperlinks),this.map.printOptions.render($,Q),this.map.pageMargins.render($,J),this.map.pageSetup.render($,I.pageSetup),this.map.headerFooter.render($,I.headerFooter),this.map.rowBreaks.render($,I.rowBreaks),this.map.drawing.render($,I.drawing),this.map.picture.render($,I.background),this.map.tableParts.render($,I.tables),this.map.extLst.render($,I),I.rels)I.rels.forEach((q)=>{if(q.Type===T5.VmlDrawing)$.leafNode("legacyDrawing",{"r:id":q.Id})});$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;if($.name==="worksheet")return Xm0.each(this.map,(I)=>{I.reset()}),!0;if(this.map[$.name]&&!this.ignoreNodes.includes($.name))this.parser=this.map[$.name],this.parser.parseOpen($);return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case"worksheet":{let I=this.map.sheetFormatPr.model||{};if(this.map.sheetPr.model&&this.map.sheetPr.model.tabColor)I.tabColor=this.map.sheetPr.model.tabColor;if(this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties)I.outlineProperties=this.map.sheetPr.model.outlineProperties;let U={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},Y=Object.assign(U,this.map.pageSetup.model,this.map.printOptions.model),J=nm0(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);if(this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:I,views:this.map.sheetViews.model,pageSetup:Y,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:J},this.map.autoFilter.model)this.model.autoFilter=this.map.autoFilter.model;if(this.map.sheetProtection.model)this.model.sheetProtection=this.map.sheetProtection.model;return!1}default:return!0}}reconcile($,I){let U=($.relationships||[]).reduce((J,Q)=>{if(J[Q.Id]=Q,Q.Type===T5.Comments)$.comments=I.comments[Q.Target].comments;if(Q.Type===T5.VmlDrawing&&$.comments&&$.comments.length){let K=I.vmlDrawings[Q.Target].comments;$.comments.forEach((q,H)=>{q.note=Object.assign({},q.note,K[H])})}return J},{});if(I.commentsMap=($.comments||[]).reduce((J,Q)=>{if(Q.ref)J[Q.ref]=Q;return J},{}),I.hyperlinkMap=($.hyperlinks||[]).reduce((J,Q)=>{if(Q.rId)J[Q.address]=U[Q.rId].Target;return J},{}),I.formulae={},$.rows=$.rows&&$.rows.filter(Boolean)||[],$.rows.forEach((J)=>{J.cells=J.cells&&J.cells.filter(Boolean)||[]}),this.map.cols.reconcile($.cols,I),this.map.sheetData.reconcile($.rows,I),this.map.conditionalFormatting.reconcile($.conditionalFormattings,I),$.media=[],$.drawing){let Q=U[$.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(Q){let K=Q[1];I.drawings[K].anchors.forEach((H)=>{if(H.medium){let G={type:"image",imageId:H.medium.index,range:H.range,hyperlinks:H.picture.hyperlinks};$.media.push(G)}})}}let Y=$.background&&U[$.background.rId];if(Y){let J=Y.Target.split("/media/")[1],Q=I.mediaIndex&&I.mediaIndex[J];if(Q!==void 0)$.media.push({type:"background",imageId:Q})}$.tables=($.tables||[]).map((J)=>{let Q=U[J.rId];return I.tables[Q.Target]}),delete $.relationships,delete $.hyperlinks,delete $.comments}}aZ.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"};A80.exports=aZ});var ij=O((qB1,E80)=>{var pm0=L0();class T80 extends pm0{parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={range:{editAs:$.attributes.editAs||"oneCell"}};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}reconcilePicture($,I){if($&&$.rId){let Y=I.rels[$.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(Y){let J=Y[1],Q=I.mediaIndex[J];return I.media[Q]}}return}}E80.exports=T80});var bj=O((HB1,v80)=>{var cm0=L0(),sZ=RZ();class B80 extends cm0{constructor($){super();this.tag=$.tag,this.map={"xdr:col":new sZ({tag:"xdr:col",zero:!0}),"xdr:colOff":new sZ({tag:"xdr:colOff",zero:!0}),"xdr:row":new sZ({tag:"xdr:row",zero:!0}),"xdr:rowOff":new sZ({tag:"xdr:rowOff",zero:!0})}}render($,I){$.openNode(this.tag),this.map["xdr:col"].render($,I.nativeCol),this.map["xdr:colOff"].render($,I.nativeColOff),this.map["xdr:row"].render($,I.nativeRow),this.map["xdr:rowOff"].render($,I.nativeRowOff),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}v80.exports=B80});var C80=O((GB1,j80)=>{var dm0=L0();class R80 extends dm0{get tag(){return"a:blip"}render($,I){$.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":I.rId,cstate:"print"})}parseOpen($){switch($.name){case this.tag:return this.model={rId:$.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}j80.exports=R80});var g80=O((WB1,S80)=>{var mm0=L0(),lm0=C80();class _80 extends mm0{constructor(){super();this.map={"a:blip":new lm0}}get tag(){return"xdr:blipFill"}render($,I){$.openNode(this.tag),this.map["a:blip"].render($,I),$.openNode("a:stretch"),$.leafNode("a:fillRect"),$.closeNode(),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}S80.exports=_80});var u80=O((wB1,h80)=>{var om0=L0();class y80 extends om0{get tag(){return"a:hlinkClick"}render($,I){if(!(I.hyperlinks&&I.hyperlinks.rId))return;$.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":I.hyperlinks.rId,tooltip:I.hyperlinks.tooltip})}parseOpen($){switch($.name){case this.tag:return this.model={hyperlinks:{rId:$.attributes["r:id"],tooltip:$.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}h80.exports=y80});var f80=O((VB1,x80)=>{var rm0=L0();class k80 extends rm0{get tag(){return"a:extLst"}render($){$.openNode(this.tag),$.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),$.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),$.closeNode(),$.closeNode()}parseOpen($){switch($.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}x80.exports=k80});var n80=O((ZB1,b80)=>{var tm0=L0(),am0=u80(),sm0=f80();class i80 extends tm0{constructor(){super();this.map={"a:hlinkClick":new am0,"a:extLst":new sm0}}get tag(){return"xdr:cNvPr"}render($,I){$.openNode(this.tag,{id:I.index,name:`Picture ${I.index}`}),this.map["a:hlinkClick"].render($,I),this.map["a:extLst"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}b80.exports=i80});var d80=O((zB1,c80)=>{var em0=L0();class p80 extends em0{get tag(){return"xdr:cNvPicPr"}render($){$.openNode(this.tag),$.leafNode("a:picLocks",{noChangeAspect:"1"}),$.closeNode()}parseOpen($){switch($.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}c80.exports=p80});var o80=O((XB1,l80)=>{var $l0=L0(),Il0=n80(),Ul0=d80();class m80 extends $l0{constructor(){super();this.map={"xdr:cNvPr":new Il0,"xdr:cNvPicPr":new Ul0}}get tag(){return"xdr:nvPicPr"}render($,I){$.openNode(this.tag),this.map["xdr:cNvPr"].render($,I),this.map["xdr:cNvPicPr"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}l80.exports=m80});var t80=O((LB1,r80)=>{r80.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}});var nj=O((DB1,s80)=>{var Yl0=L0(),Jl0=HY(),Ql0=g80(),Kl0=o80(),ql0=t80();class a80 extends Yl0{constructor(){super();this.map={"xdr:nvPicPr":new Kl0,"xdr:blipFill":new Ql0,"xdr:spPr":new Jl0(ql0)}}get tag(){return"xdr:pic"}prepare($,I){$.index=I.index+1}render($,I){$.openNode(this.tag),this.map["xdr:nvPicPr"].render($,I),this.map["xdr:blipFill"].render($,I),this.map["xdr:spPr"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset();break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.mergeModel(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:return!0}}}s80.exports=a80});var U50=O((OB1,I50)=>{var Hl0=ij(),Gl0=HY(),e80=bj(),Wl0=nj();class $50 extends Hl0{constructor(){super();this.map={"xdr:from":new e80({tag:"xdr:from"}),"xdr:to":new e80({tag:"xdr:to"}),"xdr:pic":new Wl0,"xdr:clientData":new Gl0({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare($,I){this.map["xdr:pic"].prepare($.picture,I)}render($,I){$.openNode(this.tag,{editAs:I.range.editAs||"oneCell"}),this.map["xdr:from"].render($,I.range.tl),this.map["xdr:to"].render($,I.range.br),this.map["xdr:pic"].render($,I.picture),this.map["xdr:clientData"].render($,{}),$.closeNode()}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile($,I){$.medium=this.reconcilePicture($.picture,I)}}I50.exports=$50});var Q50=O((FB1,J50)=>{var wl0=L0();class Y50 extends wl0{constructor($){super();this.tag=$.tag,this.map={}}render($,I){$.openNode(this.tag);let U=Math.floor(I.width*9525),Y=Math.floor(I.height*9525);$.addAttribute("cx",U),$.addAttribute("cy",Y),$.closeNode()}parseOpen($){if($.name===this.tag)return this.model={width:parseInt($.attributes.cx||"0",10)/9525,height:parseInt($.attributes.cy||"0",10)/9525},!0;return!1}parseText(){}parseClose(){return!1}}J50.exports=Y50});var H50=O((NB1,q50)=>{var Vl0=ij(),Zl0=HY(),zl0=bj(),Xl0=Q50(),Ll0=nj();class K50 extends Vl0{constructor(){super();this.map={"xdr:from":new zl0({tag:"xdr:from"}),"xdr:ext":new Xl0({tag:"xdr:ext"}),"xdr:pic":new Ll0,"xdr:clientData":new Zl0({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare($,I){this.map["xdr:pic"].prepare($.picture,I)}render($,I){$.openNode(this.tag,{editAs:I.range.editAs||"oneCell"}),this.map["xdr:from"].render($,I.range.tl),this.map["xdr:ext"].render($,I.range.ext),this.map["xdr:pic"].render($,I.picture),this.map["xdr:clientData"].render($,{}),$.closeNode()}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile($,I){$.medium=this.reconcilePicture($.picture,I)}}q50.exports=K50});var W50=O((MB1,G50)=>{var Dl0=W4(),Ol0=U6(),Fl0=L0(),Nl0=U50(),Ml0=H50();function Al0($){return(typeof $.range==="string"?Dl0.decode($.range):$.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class eZ extends Fl0{constructor(){super();this.map={"xdr:twoCellAnchor":new Nl0,"xdr:oneCellAnchor":new Ml0}}prepare($){$.anchors.forEach((I,U)=>{I.anchorType=Al0(I),this.map[I.anchorType].prepare(I,{index:U})})}get tag(){return"xdr:wsDr"}render($,I){$.openXml(Ol0.StdDocAttributes),$.openNode(this.tag,eZ.DRAWING_ATTRIBUTES),I.anchors.forEach((U)=>{this.map[U.anchorType].render($,U)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.anchors.push(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:return!0}}reconcile($,I){$.anchors.forEach((U)=>{if(U.br)this.map["xdr:twoCellAnchor"].reconcile(U,I);else this.map["xdr:oneCellAnchor"].reconcile(U,I)})}}eZ.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"};G50.exports=eZ});var Z50=O((AB1,V50)=>{var Pl0=L0();class w50 extends Pl0{get tag(){return"customFilter"}render($,I){$.leafNode(this.tag,{val:I.val,operator:I.operator})}parseOpen($){if($.name===this.tag)return this.model={val:$.attributes.val,operator:$.attributes.operator},!0;return!1}parseText(){}parseClose(){return!1}}V50.exports=w50});var L50=O((PB1,X50)=>{var Tl0=L0();class z50 extends Tl0{get tag(){return"filter"}render($,I){$.leafNode(this.tag,{val:I.val})}parseOpen($){if($.name===this.tag)return this.model={val:$.attributes.val},!0;return!1}parseText(){}parseClose(){return!1}}X50.exports=z50});var N50=O((TB1,F50)=>{var El0=L0(),D50=f9(),Bl0=Z50(),vl0=L50();class O50 extends El0{constructor(){super();this.map={customFilters:new D50({tag:"customFilters",count:!1,empty:!0,childXform:new Bl0}),filters:new D50({tag:"filters",count:!1,empty:!0,childXform:new vl0})}}get tag(){return"filterColumn"}prepare($,I){$.colId=I.index.toString()}render($,I){if(I.customFilters)return $.openNode(this.tag,{colId:I.colId,hiddenButton:I.filterButton?"0":"1"}),this.map.customFilters.render($,I.customFilters),$.closeNode(),!0;return $.leafNode(this.tag,{colId:I.colId,hiddenButton:I.filterButton?"0":"1"}),!0}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;let{attributes:I}=$;switch($.name){case this.tag:return this.model={filterButton:I.hiddenButton==="0"},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText(){}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}F50.exports=O50});var P50=O((EB1,A50)=>{var Rl0=L0(),jl0=N50();class M50 extends Rl0{constructor(){super();this.map={filterColumn:new jl0}}get tag(){return"autoFilter"}prepare($){$.columns.forEach((I,U)=>{this.map.filterColumn.prepare(I,{index:U})})}render($,I){return $.openNode(this.tag,{ref:I.autoFilterRef}),I.columns.forEach((U)=>{this.map.filterColumn.render($,U)}),$.closeNode(),!0}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:return this.model={autoFilterRef:$.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[$.name],this.parser)return this.parseOpen($),!0;throw Error(`Unexpected xml node in parseOpen: ${JSON.stringify($)}`)}}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.columns.push(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:throw Error(`Unexpected xml node in parseClose: ${$}`)}}}A50.exports=M50});var B50=O((BB1,E50)=>{var Cl0=L0();class T50 extends Cl0{get tag(){return"tableColumn"}prepare($,I){$.id=I.index+1}render($,I){return $.leafNode(this.tag,{id:I.id.toString(),name:I.name,totalsRowLabel:I.totalsRowLabel,totalsRowFunction:I.totalsRowFunction,dxfId:I.dxfId}),!0}parseOpen($){if($.name===this.tag){let{attributes:I}=$;return this.model={name:I.name,totalsRowLabel:I.totalsRowLabel,totalsRowFunction:I.totalsRowFunction,dxfId:I.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}E50.exports=T50});var j50=O((vB1,R50)=>{var _l0=L0();class v50 extends _l0{get tag(){return"tableStyleInfo"}render($,I){return $.leafNode(this.tag,{name:I.theme?I.theme:void 0,showFirstColumn:I.showFirstColumn?"1":"0",showLastColumn:I.showLastColumn?"1":"0",showRowStripes:I.showRowStripes?"1":"0",showColumnStripes:I.showColumnStripes?"1":"0"}),!0}parseOpen($){if($.name===this.tag){let{attributes:I}=$;return this.model={theme:I.name?I.name:null,showFirstColumn:I.showFirstColumn==="1",showLastColumn:I.showLastColumn==="1",showRowStripes:I.showRowStripes==="1",showColumnStripes:I.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}R50.exports=v50});var _50=O((RB1,C50)=>{var Sl0=U6(),gl0=L0(),yl0=f9(),hl0=P50(),ul0=B50(),kl0=j50();class $z extends gl0{constructor(){super();this.map={autoFilter:new hl0,tableColumns:new yl0({tag:"tableColumns",count:!0,empty:!0,childXform:new ul0}),tableStyleInfo:new kl0}}prepare($,I){this.map.autoFilter.prepare($),this.map.tableColumns.prepare($.columns,I)}get tag(){return"table"}render($,I){$.openXml(Sl0.StdDocAttributes),$.openNode(this.tag,{...$z.TABLE_ATTRIBUTES,id:I.id,name:I.name,displayName:I.displayName||I.name,ref:I.tableRef,totalsRowCount:I.totalsRow?"1":void 0,totalsRowShown:I.totalsRow?void 0:"1",headerRowCount:I.headerRow?"1":"0"}),this.map.autoFilter.render($,I),this.map.tableColumns.render($,I.columns),this.map.tableStyleInfo.render($,I.style),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;let{name:I,attributes:U}=$;switch(I){case this.tag:this.reset(),this.model={name:U.name,displayName:U.displayName||U.name,tableRef:U.ref,totalsRow:U.totalsRowCount==="1",headerRow:U.headerRowCount==="1"};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:if(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model)this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((I,U)=>{this.model.columns[U].filterButton=I.filterButton});return this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile($,I){$.columns.forEach((U)=>{if(U.dxfId!==void 0)U.style=I.styles.getDxfStyle(U.dxfId)})}}$z.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"};C50.exports=$z});var pj=O((jB1,S50)=>{var xl0=vK(),fl0=O6(),il0=L0(),bl0=S50.exports=function($){this.model=$};fl0.inherits(bl0,il0,{get tag(){return"r"},get richTextXform(){if(!this._richTextXform)this._richTextXform=new xl0;return this._richTextXform},render($,I){if(I=I||this.model,$.openNode("comment",{ref:I.ref,authorId:0}),$.openNode("text"),I&&I.note&&I.note.texts)I.note.texts.forEach((U)=>{this.richTextXform.render($,U)});$.closeNode(),$.closeNode()},parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"comment":return this.model={type:"note",note:{texts:[]},...$.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen($),!0;default:return!1}},parseText($){if(this.parser)this.parser.parseText($)},parseClose($){switch($){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:if(this.parser)this.parser.parseClose($);return!0}}})});var h50=O((CB1,y50)=>{var nl0=U6(),pl0=O6(),cl0=L0(),dl0=pj(),g50=y50.exports=function(){this.map={comment:new dl0}};pl0.inherits(g50,cl0,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render($,I){I=I||this.model,$.openXml(nl0.StdDocAttributes),$.openNode("comments",g50.COMMENTS_ATTRIBUTES),$.openNode("authors"),$.leafNode("author",null,"Author"),$.closeNode(),$.openNode("commentList"),I.comments.forEach((U)=>{this.map.comment.render($,U)}),$.closeNode(),$.closeNode()},parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen($),!0;default:return!1}},parseText($){if(this.parser)this.parser.parseText($)},parseClose($){switch($){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:if(this.parser)this.parser.parseClose($);return!0}}})});var x50=O((_B1,k50)=>{var ml0=L0();class u50 extends ml0{get tag(){return"v:textbox"}conversionUnit($,I,U){return`${parseFloat($)*I.toFixed(2)}${U}`}reverseConversionUnit($){return($||"").split(",").map((I)=>{return Number(parseFloat(this.conversionUnit(parseFloat(I),0.1,"")).toFixed(2))})}render($,I){let U={style:"mso-direction-alt:auto"};if(I&&I.note){let{inset:Y}=I.note&&I.note.margins;if(Array.isArray(Y))Y=Y.map((J)=>{return this.conversionUnit(J,10,"mm")}).join(",");if(Y)U.inset=Y}$.openNode("v:textbox",U),$.leafNode("div",{style:"text-align:left"}),$.closeNode()}parseOpen($){switch($.name){case this.tag:return this.model={inset:this.reverseConversionUnit($.attributes.inset)},!0;default:return!0}}parseText(){}parseClose($){switch($){case this.tag:return!1;default:return!0}}}k50.exports=u50});var b50=O((SB1,i50)=>{var ll0=L0();class f50 extends ll0{get tag(){return"x:Anchor"}getAnchorRect($){let I=Math.floor($.left),U=Math.floor(($.left-I)*68),Y=Math.floor($.top),J=Math.floor(($.top-Y)*18),Q=Math.floor($.right),K=Math.floor(($.right-Q)*68),q=Math.floor($.bottom),H=Math.floor(($.bottom-q)*18);return[I,U,Y,J,Q,K,q,H]}getDefaultRect($){let I=$.col,U=6,Y=Math.max($.row-2,0),J=14,Q=I+2,K=2,q=Y+4,H=16;return[I,6,Y,14,Q,2,q,16]}render($,I){let U=I.anchor?this.getAnchorRect(I.anchor):this.getDefaultRect(I.refAddress);$.leafNode("x:Anchor",null,U.join(", "))}parseOpen($){switch($.name){case this.tag:return this.text="",!0;default:return!1}}parseText($){this.text=$}parseClose(){return!1}}i50.exports=f50});var c50=O((gB1,p50)=>{var ol0=L0();class n50 extends ol0{constructor($){super();this._model=$}get tag(){return this._model&&this._model.tag}render($,I){$.leafNode(this.tag,null,I)}parseOpen($){switch($.name){case this.tag:return this.text="",!0;default:return!1}}parseText($){this.text=$}parseClose(){return!1}}p50.exports=n50});var l50=O((yB1,m50)=>{var rl0=L0();class d50 extends rl0{constructor($){super();this._model=$}get tag(){return this._model&&this._model.tag}render($,I,U){if(I===U[2])$.leafNode(this.tag);else if(this.tag==="x:SizeWithCells"&&I===U[1])$.leafNode(this.tag)}parseOpen($){switch($.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}m50.exports=d50});var s50=O((hB1,a50)=>{var tl0=L0(),al0=b50(),o50=c50(),r50=l50(),cj=["twoCells","oneCells","absolute"];class t50 extends tl0{constructor(){super();this.map={"x:Anchor":new al0,"x:Locked":new o50({tag:"x:Locked"}),"x:LockText":new o50({tag:"x:LockText"}),"x:SizeWithCells":new r50({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r50({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render($,I){let{protection:U,editAs:Y}=I.note;$.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render($,Y,cj),this.map["x:SizeWithCells"].render($,Y,cj),this.map["x:Anchor"].render($,I),this.map["x:Locked"].render($,U.locked),$.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render($,U.lockText),$.leafNode("x:Row",null,I.refAddress.row-1),$.leafNode("x:Column",null,I.refAddress.col-1),$.closeNode()}parseOpen($){switch($.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){let $=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),I=Object.keys($).length;this.model.editAs=cj[I],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}a50.exports=t50});var dj=O((uB1,e50)=>{var sl0=L0(),el0=x50(),$o0=s50();class Iz extends sl0{constructor(){super();this.map={"v:textbox":new el0,"x:ClientData":new $o0}}get tag(){return"v:shape"}render($,I,U){$.openNode("v:shape",Iz.V_SHAPE_ATTRIBUTES(I,U)),$.leafNode("v:fill",{color2:"infoBackground [80]"}),$.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),$.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render($,I),this.map["x:ClientData"].render($,I),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={margins:{insetmode:$.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.parser=void 0;return!0}switch($){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}Iz.V_SHAPE_ATTRIBUTES=($,I)=>({id:`_x0000_s${1025+I}`,type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":$.note.margins&&$.note.margins.insetmode});e50.exports=Iz});var I90=O((kB1,$90)=>{var Io0=U6(),Uo0=L0(),Yo0=dj();class Uz extends Uo0{constructor(){super();this.map={"v:shape":new Yo0}}get tag(){return"xml"}render($,I){$.openXml(Io0.StdDocAttributes),$.openNode(this.tag,Uz.DRAWING_ATTRIBUTES),$.openNode("o:shapelayout",{"v:ext":"edit"}),$.leafNode("o:idmap",{"v:ext":"edit",data:1}),$.closeNode(),$.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),$.leafNode("v:stroke",{joinstyle:"miter"}),$.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),$.closeNode(),I.comments.forEach((U,Y)=>{this.map["v:shape"].render($,U,Y)}),$.closeNode()}parseOpen($){if(this.parser)return this.parser.parseOpen($),!0;switch($.name){case this.tag:this.reset(),this.model={comments:[]};break;default:if(this.parser=this.map[$.name],this.parser)this.parser.parseOpen($);break}return!0}parseText($){if(this.parser)this.parser.parseText($)}parseClose($){if(this.parser){if(!this.parser.parseClose($))this.model.comments.push(this.parser.model),this.parser=void 0;return!0}switch($){case this.tag:return!1;default:return!0}}reconcile($,I){$.anchors.forEach((U)=>{if(U.br)this.map["xdr:twoCellAnchor"].reconcile(U,I);else this.map["xdr:oneCellAnchor"].reconcile(U,I)})}}Uz.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"};$90.exports=Uz});var mj=O((xB1,U90)=>{U90.exports=` + `});var $C=O((iB1,q90)=>{var ej=t("fs"),Jo0=tv(),{PassThrough:lj}=D6(),Qo0=be(),oj=NK(),Ko0=O6(),Yz=U6(),{bufferToString:fB1}=ER(),rj=kZ(),Y90=Jj(),tj=Qj(),D3=bZ(),qo0=Kj(),J90=qj(),Jz=pZ(),Qz=P80(),aj=W50(),sj=_50(),Q90=h50(),K90=I90(),Ho0=mj();function Go0($,I){return new Promise((U,Y)=>{ej.readFile($,I,(J,Q)=>{if(J)Y(J);else U(Q)})})}class h8{constructor($){this.workbook=$}async readFile($,I){if(!await Ko0.fs.exists($))throw Error(`File not found: ${$}`);let U=ej.createReadStream($);try{let Y=await this.read(U,I);return U.close(),Y}catch(Y){throw U.close(),Y}}parseRels($){return new D3().parseStream($)}parseWorkbook($){return new Jz().parseStream($)}parseSharedStrings($){return new tj().parseStream($)}reconcile($,I){let U=new Jz,Y=new Qz(I),J=new aj,Q=new sj;U.reconcile($);let K={media:$.media,mediaIndex:$.mediaIndex};Object.keys($.drawings).forEach((G)=>{let W=$.drawings[G],w=$.drawingRels[G];if(w)K.rels=w.reduce((Z,V)=>{return Z[V.Id]=V,Z},{}),(W.anchors||[]).forEach((Z)=>{let V=Z.picture&&Z.picture.hyperlinks;if(V&&K.rels[V.rId])V.hyperlink=K.rels[V.rId].Target,delete V.rId}),J.reconcile(W,K)});let q={styles:$.styles};Object.values($.tables).forEach((G)=>{Q.reconcile(G,q)});let H={styles:$.styles,sharedStrings:$.sharedStrings,media:$.media,mediaIndex:$.mediaIndex,date1904:$.properties&&$.properties.date1904,drawings:$.drawings,comments:$.comments,tables:$.tables,vmlDrawings:$.vmlDrawings};$.worksheets.forEach((G)=>{G.relationships=$.worksheetRels[G.sheetNo],Y.reconcile(G,H)}),delete $.worksheetHash,delete $.worksheetRels,delete $.globalRels,delete $.sharedStrings,delete $.workbookRels,delete $.sheetDefs,delete $.styles,delete $.mediaIndex,delete $.drawings,delete $.drawingRels,delete $.vmlDrawings}async _processWorksheetEntry($,I,U,Y,J){let K=await new Qz(Y).parseStream($);K.sheetNo=U,I.worksheetHash[J]=K,I.worksheets.push(K)}async _processCommentEntry($,I,U){let J=await new Q90().parseStream($);I.comments[`../${U}.xml`]=J}async _processTableEntry($,I,U){let J=await new sj().parseStream($);I.tables[`../tables/${U}.xml`]=J}async _processWorksheetRelsEntry($,I,U){let J=await new D3().parseStream($);I.worksheetRels[U]=J}async _processMediaEntry($,I,U){let Y=U.lastIndexOf(".");if(Y>=1){let J=U.substr(Y+1),Q=U.substr(0,Y);await new Promise((K,q)=>{let H=new oj;H.on("finish",()=>{I.mediaIndex[U]=I.media.length,I.mediaIndex[Q]=I.media.length;let G={type:"image",name:Q,extension:J,buffer:H.toBuffer()};I.media.push(G),K()}),$.on("error",(G)=>{q(G)}),$.pipe(H)})}}async _processDrawingEntry($,I,U){let J=await new aj().parseStream($);I.drawings[U]=J}async _processDrawingRelsEntry($,I,U){let J=await new D3().parseStream($);I.drawingRels[U]=J}async _processVmlDrawingEntry($,I,U){let J=await new K90().parseStream($);I.vmlDrawings[`../drawings/${U}.vml`]=J}async _processThemeEntry($,I,U){await new Promise((Y,J)=>{let Q=new oj;$.on("error",J),Q.on("error",J),Q.on("finish",()=>{I.themes[U]=Q.read().toString(),Y()}),$.pipe(Q)})}createInputStream(){throw Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read($,I){if(!$[Symbol.asyncIterator]&&$.pipe)$=$.pipe(new lj);let U=[];for await(let Y of $)U.push(Y);return this.load(Buffer.concat(U),I)}async load($,I){let U;if(I&&I.base64)U=Buffer.from($.toString(),"base64");else U=$;let Y={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},J=await Jo0.loadAsync(U);for(let Q of Object.values(J.files))if(!Q.dir){let K=Q.name;if(K[0]==="/")K=K.substr(1);let q;if(K.match(/xl\/media\//)||K.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))q=new lj,q.write(await Q.async("nodebuffer"));else{q=new lj({writableObjectMode:!0,readableObjectMode:!0});let H;H=await Q.async("string");let G=16384;for(let W=0;W{if(U.type==="image"){let Y=`xl/media/${U.name}.${U.extension}`;if(U.filename){let J=await Go0(U.filename);return $.append(J,{name:Y})}if(U.buffer)return $.append(U.buffer,{name:Y});if(U.base64){let J=U.base64,Q=J.substring(J.indexOf(",")+1);return $.append(Q,{name:Y,base64:!0})}}throw Error("Unsupported media")}))}addDrawings($,I){let U=new aj,Y=new D3;I.worksheets.forEach((J)=>{let{drawing:Q}=J;if(Q){U.prepare(Q,{});let K=U.toXml(Q);$.append(K,{name:`xl/drawings/${Q.name}.xml`}),K=Y.toXml(Q.rels),$.append(K,{name:`xl/drawings/_rels/${Q.name}.xml.rels`})}})}addTables($,I){let U=new sj;I.worksheets.forEach((Y)=>{let{tables:J}=Y;J.forEach((Q)=>{U.prepare(Q,{});let K=U.toXml(Q);$.append(K,{name:`xl/tables/${Q.target}`})})})}async addContentTypes($,I){let Y=new qo0().toXml(I);$.append(Y,{name:"[Content_Types].xml"})}async addApp($,I){let Y=new J90().toXml(I);$.append(Y,{name:"docProps/app.xml"})}async addCore($,I){let U=new Y90;$.append(U.toXml(I),{name:"docProps/core.xml"})}async addThemes($,I){let U=I.themes||{theme1:Ho0};Object.keys(U).forEach((Y)=>{let J=U[Y],Q=`xl/theme/${Y}.xml`;$.append(J,{name:Q})})}async addOfficeRels($){let U=new D3().toXml([{Id:"rId1",Type:h8.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:h8.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:h8.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);$.append(U,{name:"_rels/.rels"})}async addWorkbookRels($,I){let U=1,Y=[{Id:`rId${U++}`,Type:h8.RelType.Styles,Target:"styles.xml"},{Id:`rId${U++}`,Type:h8.RelType.Theme,Target:"theme/theme1.xml"}];if(I.sharedStrings.count)Y.push({Id:`rId${U++}`,Type:h8.RelType.SharedStrings,Target:"sharedStrings.xml"});I.worksheets.forEach((K)=>{K.rId=`rId${U++}`,Y.push({Id:K.rId,Type:h8.RelType.Worksheet,Target:`worksheets/sheet${K.id}.xml`})});let Q=new D3().toXml(Y);$.append(Q,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings($,I){if(I.sharedStrings&&I.sharedStrings.count)$.append(I.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles($,I){let{xml:U}=I.styles;if(U)$.append(U,{name:"xl/styles.xml"})}async addWorkbook($,I){let U=new Jz;$.append(U.toXml(I),{name:"xl/workbook.xml"})}async addWorksheets($,I){let U=new Qz,Y=new D3,J=new Q90,Q=new K90;I.worksheets.forEach((K)=>{let q=new Yz;if(U.render(q,K),$.append(q.xml,{name:`xl/worksheets/sheet${K.id}.xml`}),K.rels&&K.rels.length)q=new Yz,Y.render(q,K.rels),$.append(q.xml,{name:`xl/worksheets/_rels/sheet${K.id}.xml.rels`});if(K.comments.length>0)q=new Yz,J.render(q,K),$.append(q.xml,{name:`xl/comments${K.id}.xml`}),q=new Yz,Q.render(q,K),$.append(q.xml,{name:`xl/drawings/vmlDrawing${K.id}.vml`})})}_finalize($){return new Promise((I,U)=>{$.on("finish",()=>{I(this)}),$.on("error",U),$.finalize()})}prepareModel($,I){$.creator=$.creator||"ExcelJS",$.lastModifiedBy=$.lastModifiedBy||"ExcelJS",$.created=$.created||new Date,$.modified=$.modified||new Date,$.useSharedStrings=I.useSharedStrings!==void 0?I.useSharedStrings:!0,$.useStyles=I.useStyles!==void 0?I.useStyles:!0,$.sharedStrings=new tj,$.styles=$.useStyles?new rj(!0):new rj.Mock;let U=new Jz,Y=new Qz;U.prepare($);let J={sharedStrings:$.sharedStrings,styles:$.styles,date1904:$.properties.date1904,drawingsCount:0,media:$.media};J.drawings=$.drawings=[],J.commentRefs=$.commentRefs=[];let Q=0;$.tables=[],$.worksheets.forEach((K)=>{K.tables.forEach((q)=>{Q++,q.target=`table${Q}.xml`,q.id=Q,$.tables.push(q)}),Y.prepare(K,J)})}async write($,I){I=I||{};let{model:U}=this.workbook,Y=new Qo0.ZipWriter(I.zip);return Y.pipe($),this.prepareModel(U,I),await this.addContentTypes(Y,U),await this.addOfficeRels(Y,U),await this.addWorkbookRels(Y,U),await this.addWorksheets(Y,U),await this.addSharedStrings(Y,U),await this.addDrawings(Y,U),await this.addTables(Y,U),await Promise.all([this.addThemes(Y,U),this.addStyles(Y,U)]),await this.addMedia(Y,U),await Promise.all([this.addApp(Y,U),this.addCore(Y,U)]),await this.addWorkbook(Y,U),this._finalize(Y)}writeFile($,I){let U=ej.createWriteStream($);return new Promise((Y,J)=>{U.on("finish",()=>{Y()}),U.on("error",(Q)=>{J(Q)}),this.write(U,I).then(()=>{U.end()}).catch((Q)=>{J(Q)})})}async writeBuffer($){let I=new oj;return await this.write(I,$),I.read()}}h8.RelType=n9();q90.exports=h8});var IC=O((G90)=>{Object.defineProperty(G90,"__esModule",{value:!0});G90.FormatterOptions=void 0;class H90{constructor($={}){var I;if(this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` +`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,$||{}),typeof($===null||$===void 0?void 0:$.quoteHeaders)>"u")this.quoteHeaders=this.quoteColumns;if(($===null||$===void 0?void 0:$.quote)===!0)this.quote='"';else if(($===null||$===void 0?void 0:$.quote)===!1)this.quote="";if(typeof($===null||$===void 0?void 0:$.escape)!=="string")this.escape=this.quote;this.shouldWriteHeaders=!!this.headers&&((I=$.writeHeaders)!==null&&I!==void 0?I:!0),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}G90.FormatterOptions=H90});var Kz=O((nB1,z90)=>{var Wo0="[object AsyncFunction]",wo0="[object Function]",Vo0="[object GeneratorFunction]",Zo0="[object Null]",zo0="[object Proxy]",Xo0="[object Undefined]",Lo0=typeof global=="object"&&global&&global.Object===Object&&global,Do0=typeof self=="object"&&self&&self.Object===Object&&self,Oo0=Lo0||Do0||Function("return this")(),V90=Object.prototype,Fo0=V90.hasOwnProperty,Z90=V90.toString,w90=Oo0.Symbol,O3=w90?w90.toStringTag:void 0;function No0($){if($==null)return $===void 0?Xo0:Zo0;return O3&&O3 in Object($)?Mo0($):Ao0($)}function Mo0($){var I=Fo0.call($,O3),U=$[O3];try{$[O3]=void 0;var Y=!0}catch(Q){}var J=Z90.call($);if(Y)if(I)$[O3]=U;else delete $[O3];return J}function Ao0($){return Z90.call($)}function Po0($){if(!To0($))return!1;var I=No0($);return I==wo0||I==Vo0||I==Wo0||I==zo0}function To0($){var I=typeof $;return $!=null&&(I=="object"||I=="function")}z90.exports=Po0});var r90=O((qz,DY)=>{var Eo0=200,VC="__lodash_hash_undefined__",Xz=1,B90=2,v90=9007199254740991,Hz="[object Arguments]",QC="[object Array]",Bo0="[object AsyncFunction]",R90="[object Boolean]",j90="[object Date]",C90="[object Error]",_90="[object Function]",vo0="[object GeneratorFunction]",Gz="[object Map]",S90="[object Number]",Ro0="[object Null]",LY="[object Object]",X90="[object Promise]",jo0="[object Proxy]",g90="[object RegExp]",Wz="[object Set]",y90="[object String]",Co0="[object Symbol]",_o0="[object Undefined]",KC="[object WeakMap]",h90="[object ArrayBuffer]",wz="[object DataView]",So0="[object Float32Array]",go0="[object Float64Array]",yo0="[object Int8Array]",ho0="[object Int16Array]",uo0="[object Int32Array]",ko0="[object Uint8Array]",xo0="[object Uint8ClampedArray]",fo0="[object Uint16Array]",io0="[object Uint32Array]",bo0=/[\\^$.*+?()[\]{}|]/g,no0=/^\[object .+?Constructor\]$/,po0=/^(?:0|[1-9]\d*)$/,e1={};e1[So0]=e1[go0]=e1[yo0]=e1[ho0]=e1[uo0]=e1[ko0]=e1[xo0]=e1[fo0]=e1[io0]=!0;e1[Hz]=e1[QC]=e1[h90]=e1[R90]=e1[wz]=e1[j90]=e1[C90]=e1[_90]=e1[Gz]=e1[S90]=e1[LY]=e1[g90]=e1[Wz]=e1[y90]=e1[KC]=!1;var u90=typeof global=="object"&&global&&global.Object===Object&&global,co0=typeof self=="object"&&self&&self.Object===Object&&self,E5=u90||co0||Function("return this")(),k90=typeof qz=="object"&&qz&&!qz.nodeType&&qz,L90=k90&&typeof DY=="object"&&DY&&!DY.nodeType&&DY,x90=L90&&L90.exports===k90,UC=x90&&u90.process,D90=function(){try{return UC&&UC.binding&&UC.binding("util")}catch($){}}(),O90=D90&&D90.isTypedArray;function do0($,I){var U=-1,Y=$==null?0:$.length,J=0,Q=[];while(++U-1}function Mr0($,I){var U=this.__data__,Y=Dz(U,$);if(Y<0)++this.size,U.push([$,I]);else U[Y][1]=I;return this}B5.prototype.clear=Dr0;B5.prototype.delete=Or0;B5.prototype.get=Fr0;B5.prototype.has=Nr0;B5.prototype.set=Mr0;function M3($){var I=-1,U=$==null?0:$.length;this.clear();while(++Iq))return!1;var G=Q.get($);if(G&&Q.get(I))return G==I;var W=-1,w=!0,Z=U&B90?new Zz:void 0;Q.set($,I),Q.set(I,$);while(++W-1&&$%1==0&&$-1&&$%1==0&&$<=v90}function l90($){var I=typeof $;return $!=null&&(I=="object"||I=="function")}function gK($){return $!=null&&typeof $=="object"}var o90=O90?ro0(O90):xr0;function sr0($){return tr0($)?yr0($):fr0($)}function er0(){return[]}function $t0(){return!1}DY.exports=ar0});var a90=O((cB1,t90)=>{var It0="[object Boolean]",Ut0=Object.prototype,Yt0=Ut0.toString;function Jt0($){return $===!0||$===!1||Qt0($)&&Yt0.call($)==It0}function Qt0($){return!!$&&typeof $=="object"}t90.exports=Jt0});var ZC=O((dB1,s90)=>{function Kt0($){return $==null}s90.exports=Kt0});var zC=O((mB1,Y70)=>{var qt0=1/0,Ht0="[object Symbol]",U70=/[\\^$.*+?()[\]{}|]/g,Gt0=RegExp(U70.source),Wt0=typeof global=="object"&&global&&global.Object===Object&&global,wt0=typeof self=="object"&&self&&self.Object===Object&&self,Vt0=Wt0||wt0||Function("return this")(),Zt0=Object.prototype,zt0=Zt0.toString,e90=Vt0.Symbol,$70=e90?e90.prototype:void 0,I70=$70?$70.toString:void 0;function Xt0($){if(typeof $=="string")return $;if(Dt0($))return I70?I70.call($):"";var I=$+"";return I=="0"&&1/$==-qt0?"-0":I}function Lt0($){return!!$&&typeof $=="object"}function Dt0($){return typeof $=="symbol"||Lt0($)&&zt0.call($)==Ht0}function Ot0($){return $==null?"":Xt0($)}function Ft0($){return $=Ot0($),$&&Gt0.test($)?$.replace(U70,"\\$&"):$}Y70.exports=Ft0});var LC=O((FY)=>{var XC=FY&&FY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(FY,"__esModule",{value:!0});FY.FieldFormatter=void 0;var Nt0=XC(a90()),Mt0=XC(ZC()),At0=XC(zC());class J70{constructor($){if(this._headers=null,this.formatterOptions=$,$.headers!==null)this.headers=$.headers;this.REPLACE_REGEXP=new RegExp($.quote,"g");let I=`[${$.delimiter}${At0.default($.rowDelimiter)}|\r| +]`;this.ESCAPE_REGEXP=new RegExp(I)}set headers($){this._headers=$}shouldQuote($,I){let U=I?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;if(Nt0.default(U))return U;if(Array.isArray(U))return U[$];if(this._headers!==null)return U[this._headers[$]];return!1}format($,I,U){let Y=`${Mt0.default($)?"":$}`.replace(/\0/g,""),{formatterOptions:J}=this;if(J.quote!==""){if(Y.indexOf(J.quote)!==-1)return this.quoteField(Y.replace(this.REPLACE_REGEXP,J.escapedQuote))}if(Y.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(I,U))return this.quoteField(Y);return Y}quoteField($){let{quote:I}=this.formatterOptions;return`${I}${$}${I}`}}FY.FieldFormatter=J70});var DC=O((Q70)=>{Object.defineProperty(Q70,"__esModule",{value:!0});Q70.isSyncTransform=void 0;Q70.isSyncTransform=($)=>$.length===1});var H70=O((NY)=>{var q70=NY&&NY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(NY,"__esModule",{value:!0});NY.RowFormatter=void 0;var Pt0=q70(Kz()),Tt0=q70(r90()),Et0=LC(),Bt0=DC();class P3{constructor($){if(this.rowCount=0,this.formatterOptions=$,this.fieldFormatter=new Et0.FieldFormatter($),this.headers=$.headers,this.shouldWriteHeaders=$.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null)this.fieldFormatter.headers=this.headers;if($.transform)this.rowTransform=$.transform}static isRowHashArray($){if(Array.isArray($))return Array.isArray($[0])&&$[0].length===2;return!1}static isRowArray($){return Array.isArray($)&&!this.isRowHashArray($)}static gatherHeaders($){if(P3.isRowHashArray($))return $.map((I)=>I[0]);if(Array.isArray($))return $;return Object.keys($)}static createTransform($){if(Bt0.isSyncTransform($))return(I,U)=>{let Y=null;try{Y=$(I)}catch(J){return U(J)}return U(null,Y)};return(I,U)=>{$(I,U)}}set rowTransform($){if(!Pt0.default($))throw TypeError("The transform should be a function");this._rowTransform=P3.createTransform($)}format($,I){this.callTransformer($,(U,Y)=>{if(U)return I(U);if(!$)return I(null);let J=[];if(Y){let{shouldFormatColumns:Q,headers:K}=this.checkHeaders(Y);if(this.shouldWriteHeaders&&K&&!this.hasWrittenHeaders)J.push(this.formatColumns(K,!0)),this.hasWrittenHeaders=!0;if(Q){let q=this.gatherColumns(Y);J.push(this.formatColumns(q,!1))}}return I(null,J)})}finish($){let I=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return $(Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));I.push(this.formatColumns(this.headers,!0))}if(this.formatterOptions.includeEndRowDelimiter)I.push(this.formatterOptions.rowDelimiter);return $(null,I)}checkHeaders($){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let I=P3.gatherHeaders($);if(this.headers=I,this.fieldFormatter.headers=I,!this.shouldWriteHeaders)return{shouldFormatColumns:!0,headers:null};return{shouldFormatColumns:!Tt0.default(I,$),headers:I}}gatherColumns($){if(this.headers===null)throw Error("Headers is currently null");if(!Array.isArray($))return this.headers.map((I)=>$[I]);if(P3.isRowHashArray($))return this.headers.map((I,U)=>{let Y=$[U];if(Y)return Y[1];return""});if(P3.isRowArray($)&&!this.shouldWriteHeaders)return $;return this.headers.map((I,U)=>$[U])}callTransformer($,I){if(!this._rowTransform)return I(null,$);return this._rowTransform($,I)}formatColumns($,I){let U=$.map((J,Q)=>this.fieldFormatter.format(J,Q,I)).join(this.formatterOptions.delimiter),{rowCount:Y}=this;if(this.rowCount+=1,Y)return[this.formatterOptions.rowDelimiter,U].join("");return U}}NY.RowFormatter=P3});var G70=O((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.FieldFormatter=Fz.RowFormatter=void 0;var vt0=H70();Object.defineProperty(Fz,"RowFormatter",{enumerable:!0,get:function(){return vt0.RowFormatter}});var Rt0=LC();Object.defineProperty(Fz,"FieldFormatter",{enumerable:!0,get:function(){return Rt0.FieldFormatter}})});var OC=O((w70)=>{Object.defineProperty(w70,"__esModule",{value:!0});w70.CsvFormatterStream=void 0;var Ct0=t("stream"),_t0=G70();class W70 extends Ct0.Transform{constructor($){super({writableObjectMode:$.objectMode});this.hasWrittenBOM=!1,this.formatterOptions=$,this.rowFormatter=new _t0.RowFormatter($),this.hasWrittenBOM=!$.writeBOM}transform($){return this.rowFormatter.rowTransform=$,this}_transform($,I,U){let Y=!1;try{if(!this.hasWrittenBOM)this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0;this.rowFormatter.format($,(J,Q)=>{if(J)return Y=!0,U(J);if(Q)Q.forEach((K)=>{this.push(Buffer.from(K,"utf8"))});return Y=!0,U()})}catch(J){if(Y)throw J;U(J)}}_flush($){this.rowFormatter.finish((I,U)=>{if(I)return $(I);if(U)U.forEach((Y)=>{this.push(Buffer.from(Y,"utf8"))});return $()})}}w70.CsvFormatterStream=W70});var z70=O((P1)=>{var Z70=P1&&P1.__createBinding||(Object.create?function($,I,U,Y){if(Y===void 0)Y=U;Object.defineProperty($,Y,{enumerable:!0,get:function(){return I[U]}})}:function($,I,U,Y){if(Y===void 0)Y=U;$[Y]=I[U]}),St0=P1&&P1.__setModuleDefault||(Object.create?function($,I){Object.defineProperty($,"default",{enumerable:!0,value:I})}:function($,I){$.default=I}),gt0=P1&&P1.__importStar||function($){if($&&$.__esModule)return $;var I={};if($!=null){for(var U in $)if(U!=="default"&&Object.prototype.hasOwnProperty.call($,U))Z70(I,$,U)}return St0(I,$),I},yt0=P1&&P1.__exportStar||function($,I){for(var U in $)if(U!=="default"&&!Object.prototype.hasOwnProperty.call(I,U))Z70(I,$,U)};Object.defineProperty(P1,"__esModule",{value:!0});P1.writeToPath=P1.writeToString=P1.writeToBuffer=P1.writeToStream=P1.write=P1.format=P1.FormatterOptions=P1.CsvFormatterStream=void 0;var ht0=t("util"),ut0=t("stream"),kt0=gt0(t("fs")),xt0=IC(),ft0=OC();yt0(DC(),P1);var it0=OC();Object.defineProperty(P1,"CsvFormatterStream",{enumerable:!0,get:function(){return it0.CsvFormatterStream}});var bt0=IC();Object.defineProperty(P1,"FormatterOptions",{enumerable:!0,get:function(){return bt0.FormatterOptions}});P1.format=($)=>new ft0.CsvFormatterStream(new xt0.FormatterOptions($));P1.write=($,I)=>{let U=P1.format(I),Y=ht0.promisify((J,Q)=>{U.write(J,void 0,Q)});return $.reduce((J,Q)=>J.then(()=>Y(Q)),Promise.resolve()).then(()=>U.end()).catch((J)=>{U.emit("error",J)}),U};P1.writeToStream=($,I,U)=>P1.write(I,U).pipe($);P1.writeToBuffer=($,I={})=>{let U=[],Y=new ut0.Writable({write(J,Q,K){U.push(J),K()}});return new Promise((J,Q)=>{Y.on("error",Q).on("finish",()=>J(Buffer.concat(U))),P1.write($,I).pipe(Y)})};P1.writeToString=($,I)=>P1.writeToBuffer($,I).then((U)=>U.toString());P1.writeToPath=($,I,U)=>{let Y=kt0.createWriteStream($,{encoding:"utf8"});return P1.write(I,U).pipe(Y)}});var FC=O((MY)=>{var X70=MY&&MY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(MY,"__esModule",{value:!0});MY.ParserOptions=void 0;var nt0=X70(zC()),pt0=X70(ZC());class L70{constructor($){var I;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,$||{}),this.delimiter.length>1)throw Error("delimiter option must be one character long");if(this.escapedDelimiter=nt0.default(this.delimiter),this.escapeChar=(I=this.escape)!==null&&I!==void 0?I:this.quote,this.supportsComments=!pt0.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0)this.limitRows=!0}}MY.ParserOptions=L70});var NC=O((D70)=>{Object.defineProperty(D70,"__esModule",{value:!0});D70.isSyncValidate=D70.isSyncTransform=void 0;D70.isSyncTransform=($)=>$.length===1;D70.isSyncValidate=($)=>$.length===1});var M70=O((AY)=>{var dt0=AY&&AY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(AY,"__esModule",{value:!0});AY.RowTransformerValidator=void 0;var F70=dt0(Kz()),N70=NC();class Nz{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform($){if(N70.isSyncTransform($))return(I,U)=>{let Y=null;try{Y=$(I)}catch(J){return U(J)}return U(null,Y)};return $}static createValidator($){if(N70.isSyncValidate($))return(I,U)=>{U(null,{row:I,isValid:$(I)})};return(I,U)=>{$(I,(Y,J,Q)=>{if(Y)return U(Y);if(J)return U(null,{row:I,isValid:J,reason:Q});return U(null,{row:I,isValid:!1,reason:Q})})}}set rowTransform($){if(!F70.default($))throw TypeError("The transform should be a function");this._rowTransform=Nz.createTransform($)}set rowValidator($){if(!F70.default($))throw TypeError("The validate should be a function");this._rowValidator=Nz.createValidator($)}transformAndValidate($,I){return this.callTransformer($,(U,Y)=>{if(U)return I(U);if(!Y)return I(null,{row:null,isValid:!0});return this.callValidator(Y,(J,Q)=>{if(J)return I(J);if(Q&&!Q.isValid)return I(null,{row:Y,isValid:!1,reason:Q.reason});return I(null,{row:Y,isValid:!0})})})}callTransformer($,I){if(!this._rowTransform)return I(null,$);return this._rowTransform($,I)}callValidator($,I){if(!this._rowValidator)return I(null,{row:$,isValid:!0});return this._rowValidator($,I)}}AY.RowTransformerValidator=Nz});var P70=O((Yv1,A70)=>{function mt0($){return $===void 0}A70.exports=mt0});var C70=O((Jv1,j70)=>{var lt0=200,PC="__lodash_hash_undefined__",ot0=1/0,rt0="[object Function]",tt0="[object GeneratorFunction]",at0=/[\\^$.*+?()[\]{}|]/g,st0=/^\[object .+?Constructor\]$/,et0=typeof global=="object"&&global&&global.Object===Object&&global,$a0=typeof self=="object"&&self&&self.Object===Object&&self,TC=et0||$a0||Function("return this")();function Ia0($,I){var U=$?$.length:0;return!!U&&Ja0($,I,0)>-1}function Ua0($,I,U){var Y=-1,J=$?$.length:0;while(++Y-1}function Ta0($,I){var U=this.__data__,Y=Az(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}PY.prototype.clear=Na0;PY.prototype.delete=Ma0;PY.prototype.get=Aa0;PY.prototype.has=Pa0;PY.prototype.set=Ta0;function TY($){var I=-1,U=$?$.length:0;this.clear();while(++I=lt0){var G=I?null:ya0($);if(G)return E70(G);K=!1,J=Ka0,H=new Mz}else H=I?[]:q;$:while(++Y{var na0=200,pa0="Expected a function",uC="__lodash_hash_undefined__",Sz=1,vY=2,i70=1/0,b70=9007199254740991,Ez="[object Arguments]",jC="[object Array]",n70="[object Boolean]",p70="[object Date]",c70="[object Error]",d70="[object Function]",ca0="[object GeneratorFunction]",Bz="[object Map]",m70="[object Number]",EY="[object Object]",_70="[object Promise]",l70="[object RegExp]",vz="[object Set]",o70="[object String]",r70="[object Symbol]",CC="[object WeakMap]",t70="[object ArrayBuffer]",Rz="[object DataView]",da0="[object Float32Array]",ma0="[object Float64Array]",la0="[object Int8Array]",oa0="[object Int16Array]",ra0="[object Int32Array]",ta0="[object Uint8Array]",aa0="[object Uint8ClampedArray]",sa0="[object Uint16Array]",ea0="[object Uint32Array]",$s0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Is0=/^\w*$/,Us0=/^\./,Ys0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Js0=/[\\^$.*+?()[\]{}|]/g,Qs0=/\\(\\)?/g,Ks0=/^\[object .+?Constructor\]$/,qs0=/^(?:0|[1-9]\d*)$/,$4={};$4[da0]=$4[ma0]=$4[la0]=$4[oa0]=$4[ra0]=$4[ta0]=$4[aa0]=$4[sa0]=$4[ea0]=!0;$4[Ez]=$4[jC]=$4[t70]=$4[n70]=$4[Rz]=$4[p70]=$4[c70]=$4[d70]=$4[Bz]=$4[m70]=$4[EY]=$4[l70]=$4[vz]=$4[o70]=$4[CC]=!1;var a70=typeof global=="object"&&global&&global.Object===Object&&global,Hs0=typeof self=="object"&&self&&self.Object===Object&&self,o9=a70||Hs0||Function("return this")(),s70=typeof Tz=="object"&&Tz&&!Tz.nodeType&&Tz,S70=s70&&typeof BY=="object"&&BY&&!BY.nodeType&&BY,Gs0=S70&&S70.exports===s70,g70=Gs0&&a70.process,y70=function(){try{return g70&&g70.binding("util")}catch($){}}(),h70=y70&&y70.isTypedArray;function Ws0($,I,U,Y){var J=-1,Q=$?$.length:0;while(++J-1}function fs0($,I){var U=this.__data__,Y=yz(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}R5.prototype.clear=hs0;R5.prototype.delete=us0;R5.prototype.get=ks0;R5.prototype.has=xs0;R5.prototype.set=fs0;function j5($){var I=-1,U=$?$.length:0;this.clear();while(++Iq))return!1;var G=Q.get($);if(G&&Q.get(I))return G==I;var W=-1,w=!0,Z=J&Sz?new Cz:void 0;Q.set($,I),Q.set(I,$);while(++W-1&&$%1==0&&$-1&&$%1==0&&$<=b70}function xz($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function fz($){return!!$&&typeof $=="object"}function bC($){return typeof $=="symbol"||fz($)&&RY.call($)==r70}var Re0=h70?zs0(h70):He0;function je0($){return $==null?"":ze0($)}function Ce0($,I,U){var Y=$==null?void 0:$30($,I);return Y===void 0?U:Y}function _e0($,I){return $!=null&&Me0($,I,Je0)}function _z($){return fC($)?ss0($):We0($)}function Se0($){return $}function ge0($){return uz($)?Vs0(kz($)):Ze0($)}BY.exports=Be0});var V30=O((CY)=>{var iz=CY&&CY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(CY,"__esModule",{value:!0});CY.HeaderTransformer=void 0;var W30=iz(P70()),ye0=iz(Kz()),he0=iz(C70()),ue0=iz(G30());class w30{constructor($){if(this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=$,$.headers===!0)this.shouldUseFirstRow=!0;else if(Array.isArray($.headers))this.setHeaders($.headers);else if(ye0.default($.headers))this.headersTransform=$.headers}transform($,I){if(!this.shouldMapRow($))return I(null,{row:null,isValid:!0});return I(null,this.processRow($))}shouldMapRow($){let{parserOptions:I}=this;if(!this.headersTransform&&I.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray($)){if(this.headersTransform)this.setHeaders(this.headersTransform($));else if(this.shouldUseFirstRow)this.setHeaders($);else return!0;return!1}return!0}processRow($){if(!this.headers)return{row:$,isValid:!0};let{parserOptions:I}=this;if(!I.discardUnmappedColumns&&$.length>this.headersLength){if(!I.strictColumnHandling)throw Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${$.length}`);return{row:$,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${$.length}`}}if(I.strictColumnHandling&&$.length!!Y);if(he0.default(U).length!==U.length){let Y=ue0.default(U),J=Object.keys(Y).filter((Q)=>Y[Q].length>1);throw Error(`Duplicate headers found ${JSON.stringify(J)}`)}this.headers=$,this.receivedHeaders=!0,this.headersLength=((I=this.headers)===null||I===void 0?void 0:I.length)||0}}CY.HeaderTransformer=w30});var Z30=O((bz)=>{Object.defineProperty(bz,"__esModule",{value:!0});bz.HeaderTransformer=bz.RowTransformerValidator=void 0;var ke0=M70();Object.defineProperty(bz,"RowTransformerValidator",{enumerable:!0,get:function(){return ke0.RowTransformerValidator}});var xe0=V30();Object.defineProperty(bz,"HeaderTransformer",{enumerable:!0,get:function(){return xe0.HeaderTransformer}})});var r9=O((X30)=>{Object.defineProperty(X30,"__esModule",{value:!0});X30.Token=void 0;class z30{constructor($){this.token=$.token,this.startCursor=$.startCursor,this.endCursor=$.endCursor}static isTokenRowDelimiter($){let I=$.token;return I==="\r"||I===` `||I===`\r -`}static isTokenCarriageReturn($,I){return $.token===I.carriageReturn}static isTokenComment($,I){return I.supportsComments&&!!$&&$.token===I.comment}static isTokenEscapeCharacter($,I){return $.token===I.escapeChar}static isTokenQuote($,I){return $.token===I.quote}static isTokenDelimiter($,I){return $.token===I.delimiter}}X30.Token=z30});var bC=O((F30)=>{Object.defineProperty(F30,"__esModule",{value:!0});F30.Scanner=void 0;var D30=r9(),be0=/((?:\r\n)|\n|\r)/;class O30{constructor($){this.cursor=0,this.line=$.line,this.lineLength=this.line.length,this.parserOptions=$.parserOptions,this.hasMoreData=$.hasMoreData,this.cursor=$.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:$}=this,I=this.parserOptions.NEXT_TOKEN_REGEXP;if($.search(I)===-1)return null;let U=I.exec($);if(U==null)return null;let Y=U[1],J=this.cursor+(U.index||0);return new D30.Token({token:Y,startCursor:J,endCursor:J+Y.length-1})}get nextCharacterToken(){let{cursor:$,lineLength:I}=this;if(I<=$)return null;return new D30.Token({token:this.line[$],startCursor:$,endCursor:$})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let $=be0.exec(this.lineFromCursor);if(!$){if(this.hasMoreData)return null;return this.cursor=this.lineLength,this}return this.cursor+=($.index||0)+$[0].length,this}advanceTo($){return this.cursor=$,this}advanceToToken($){return this.cursor=$.startCursor,this}advancePastToken($){return this.cursor=$.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}F30.Scanner=O30});var iz=O((A30)=>{Object.defineProperty(A30,"__esModule",{value:!0});A30.ColumnFormatter=void 0;class M30{constructor($){if($.trim)this.format=(I)=>I.trim();else if($.ltrim)this.format=(I)=>I.trimLeft();else if($.rtrim)this.format=(I)=>I.trimRight();else this.format=(I)=>I}}A30.ColumnFormatter=M30});var iC=O((B30)=>{Object.defineProperty(B30,"__esModule",{value:!0});B30.NonQuotedColumnParser=void 0;var ie0=iz(),T30=r9();class E30{constructor($){this.parserOptions=$,this.columnFormatter=new ie0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let{parserOptions:I}=this,U=[],Y=$.nextCharacterToken;for(;Y;Y=$.nextCharacterToken){if(T30.Token.isTokenDelimiter(Y,I)||T30.Token.isTokenRowDelimiter(Y))break;U.push(Y.token),$.advancePastToken(Y)}return this.columnFormatter.format(U.join(""))}}B30.NonQuotedColumnParser=E30});var nC=O((j30)=>{Object.defineProperty(j30,"__esModule",{value:!0});j30.QuotedColumnParser=void 0;var ne0=iz(),jY=r9();class R30{constructor($){this.parserOptions=$,this.columnFormatter=new ne0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let I=$.cursor,{foundClosingQuote:U,col:Y}=this.gatherDataBetweenQuotes($);if(!U){if($.advanceTo(I),!$.hasMoreData)throw Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${$.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn($),Y}gatherDataBetweenQuotes($){let{parserOptions:I}=this,U=!1,Y=!1,J=[],Q=$.nextCharacterToken;for(;!Y&&Q!==null;Q=$.nextCharacterToken){let K=jY.Token.isTokenQuote(Q,I);if(!U&&K)U=!0;else if(U)if(jY.Token.isTokenEscapeCharacter(Q,I)){$.advancePastToken(Q);let q=$.nextCharacterToken;if(q!==null&&(jY.Token.isTokenQuote(q,I)||jY.Token.isTokenEscapeCharacter(q,I)))J.push(q.token),Q=q;else if(K)Y=!0;else J.push(Q.token)}else if(K)Y=!0;else J.push(Q.token);$.advancePastToken(Q)}return{col:this.columnFormatter.format(J.join("")),foundClosingQuote:Y}}checkForMalformedColumn($){let{parserOptions:I}=this,{nextNonSpaceToken:U}=$;if(U){let Y=jY.Token.isTokenDelimiter(U,I),J=jY.Token.isTokenRowDelimiter(U);if(!(Y||J)){let Q=$.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw Error(`Parse Error: expected: '${I.escapedDelimiter}' OR new line got: '${U.token}'. at '${Q}`)}$.advanceToToken(U)}else if(!$.hasMoreData)$.advancePastLine()}}j30.QuotedColumnParser=R30});var y30=O((S30)=>{Object.defineProperty(S30,"__esModule",{value:!0});S30.ColumnParser=void 0;var pe0=iC(),ce0=nC(),de0=r9();class _30{constructor($){this.parserOptions=$,this.quotedColumnParser=new ce0.QuotedColumnParser($),this.nonQuotedColumnParser=new pe0.NonQuotedColumnParser($)}parse($){let{nextNonSpaceToken:I}=$;if(I!==null&&de0.Token.isTokenQuote(I,this.parserOptions))return $.advanceToToken(I),this.quotedColumnParser.parse($);return this.nonQuotedColumnParser.parse($)}}S30.ColumnParser=_30});var pC=O((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.ColumnFormatter=CY.QuotedColumnParser=CY.NonQuotedColumnParser=CY.ColumnParser=void 0;var me0=y30();Object.defineProperty(CY,"ColumnParser",{enumerable:!0,get:function(){return me0.ColumnParser}});var le0=iC();Object.defineProperty(CY,"NonQuotedColumnParser",{enumerable:!0,get:function(){return le0.NonQuotedColumnParser}});var oe0=nC();Object.defineProperty(CY,"QuotedColumnParser",{enumerable:!0,get:function(){return oe0.QuotedColumnParser}});var re0=iz();Object.defineProperty(CY,"ColumnFormatter",{enumerable:!0,get:function(){return re0.ColumnFormatter}})});var dC=O((u30)=>{Object.defineProperty(u30,"__esModule",{value:!0});u30.RowParser=void 0;var ae0=pC(),_Y=r9(),cC="";class h30{constructor($){this.parserOptions=$,this.columnParser=new ae0.ColumnParser($)}static isEmptyRow($){return $.join(cC).replace(/\s+/g,cC)===cC}parse($){let{parserOptions:I}=this,{hasMoreData:U}=$,Y=$,J=[],Q=this.getStartToken(Y,J);while(Q){if(_Y.Token.isTokenRowDelimiter(Q)){if(Y.advancePastToken(Q),!Y.hasMoreCharacters&&_Y.Token.isTokenCarriageReturn(Q,I)&&U)return null;return Y.truncateToCursor(),J}if(!this.shouldSkipColumnParse(Y,Q,J)){let K=this.columnParser.parse(Y);if(K===null)return null;J.push(K)}Q=Y.nextNonSpaceToken}if(!U)return Y.truncateToCursor(),J;return null}getStartToken($,I){let U=$.nextNonSpaceToken;if(U!==null&&_Y.Token.isTokenDelimiter(U,this.parserOptions))return I.push(""),$.nextNonSpaceToken;return U}shouldSkipColumnParse($,I,U){let{parserOptions:Y}=this;if(_Y.Token.isTokenDelimiter(I,Y)){$.advancePastToken(I);let J=$.nextCharacterToken;if(!$.hasMoreCharacters||J!==null&&_Y.Token.isTokenRowDelimiter(J))return U.push(""),!0;if(J!==null&&_Y.Token.isTokenDelimiter(J,Y))return U.push(""),!0}return!1}}u30.RowParser=h30});var i30=O((f30)=>{Object.defineProperty(f30,"__esModule",{value:!0});f30.Parser=void 0;var se0=bC(),k30=dC(),ee0=r9();class mC{constructor($){this.parserOptions=$,this.rowParser=new k30.RowParser(this.parserOptions)}static removeBOM($){if($&&$.charCodeAt(0)===65279)return $.slice(1);return $}parse($,I){let U=new se0.Scanner({line:mC.removeBOM($),parserOptions:this.parserOptions,hasMoreData:I});if(this.parserOptions.supportsComments)return this.parseWithComments(U);return this.parseWithoutComments(U)}parseWithoutComments($){let I=[],U=!0;while(U)U=this.parseRow($,I);return{line:$.line,rows:I}}parseWithComments($){let{parserOptions:I}=this,U=[];for(let Y=$.nextCharacterToken;Y!==null;Y=$.nextCharacterToken)if(ee0.Token.isTokenComment(Y,I)){if($.advancePastLine()===null)return{line:$.lineFromCursor,rows:U};if(!$.hasMoreCharacters)return{line:$.lineFromCursor,rows:U};$.truncateToCursor()}else if(!this.parseRow($,U))break;return{line:$.line,rows:U}}parseRow($,I){if(!$.nextNonSpaceToken)return!1;let Y=this.rowParser.parse($);if(Y===null)return!1;if(this.parserOptions.ignoreEmpty&&k30.RowParser.isEmptyRow(Y))return!0;return I.push(Y),!0}}f30.Parser=mC});var n30=O((C5)=>{Object.defineProperty(C5,"__esModule",{value:!0});C5.QuotedColumnParser=C5.NonQuotedColumnParser=C5.ColumnParser=C5.Token=C5.Scanner=C5.RowParser=C5.Parser=void 0;var $01=i30();Object.defineProperty(C5,"Parser",{enumerable:!0,get:function(){return $01.Parser}});var I01=dC();Object.defineProperty(C5,"RowParser",{enumerable:!0,get:function(){return I01.RowParser}});var U01=bC();Object.defineProperty(C5,"Scanner",{enumerable:!0,get:function(){return U01.Scanner}});var Y01=r9();Object.defineProperty(C5,"Token",{enumerable:!0,get:function(){return Y01.Token}});var lC=pC();Object.defineProperty(C5,"ColumnParser",{enumerable:!0,get:function(){return lC.ColumnParser}});Object.defineProperty(C5,"NonQuotedColumnParser",{enumerable:!0,get:function(){return lC.NonQuotedColumnParser}});Object.defineProperty(C5,"QuotedColumnParser",{enumerable:!0,get:function(){return lC.QuotedColumnParser}})});var oC=O((c30)=>{Object.defineProperty(c30,"__esModule",{value:!0});c30.CsvParserStream=void 0;var Q01=t("string_decoder"),K01=t("stream"),p30=Z30(),q01=n30();class nz extends K01.Transform{constructor($){super({objectMode:$.objectMode});this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=$,this.parser=new q01.Parser($),this.headerTransformer=new p30.HeaderTransformer($),this.decoder=new Q01.StringDecoder($.encoding),this.rowTransformerValidator=new p30.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform($){return this.rowTransformerValidator.rowTransform=$,this}validate($){return this.rowTransformerValidator.rowValidator=$,this}emit($,...I){if($==="end"){if(!this.endEmitted)this.endEmitted=!0,super.emit("end",this.rowCount);return!1}return super.emit($,...I)}_transform($,I,U){if(this.hasHitRowLimit)return U();let Y=nz.wrapDoneCallback(U);try{let{lines:J}=this,Q=J+this.decoder.write($),K=this.parse(Q,!0);return this.processRows(K,Y)}catch(J){return Y(J)}}_flush($){let I=nz.wrapDoneCallback($);if(this.hasHitRowLimit)return I();try{let U=this.lines+this.decoder.end(),Y=this.parse(U,!1);return this.processRows(Y,I)}catch(U){return I(U)}}parse($,I){if(!$)return[];let{line:U,rows:Y}=this.parser.parse($,I);return this.lines=U,Y}processRows($,I){let U=$.length,Y=(J)=>{let Q=(H)=>{if(H)return I(H);if(J%100===0){setImmediate(()=>Y(J+1));return}return Y(J+1)};if(this.checkAndEmitHeaders(),J>=U||this.hasHitRowLimit)return I();if(this.parsedLineCount+=1,this.shouldSkipLine)return Q();let K=$[J];this.rowCount+=1,this.parsedRowCount+=1;let q=this.rowCount;return this.transformRow(K,(H,G)=>{if(H)return this.rowCount-=1,Q(H);if(!G)return Q(Error("expected transform result"));if(!G.isValid)this.emit("data-invalid",G.row,q,G.reason);else if(G.row)return this.pushRow(G.row,Q);return Q()})};Y(0)}transformRow($,I){try{this.headerTransformer.transform($,(U,Y)=>{if(U)return I(U);if(!Y)return I(Error("Expected result from header transform"));if(!Y.isValid){if(this.shouldEmitRows)return I(null,{isValid:!1,row:$});return this.skipRow(I)}if(Y.row){if(this.shouldEmitRows)return this.rowTransformerValidator.transformAndValidate(Y.row,I);return this.skipRow(I)}return this.rowCount-=1,this.parsedRowCount-=1,I(null,{row:null,isValid:!0})})}catch(U){I(U)}}checkAndEmitHeaders(){if(!this.headersEmitted&&this.headerTransformer.headers)this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers)}skipRow($){return this.rowCount-=1,$(null,{row:null,isValid:!0})}pushRow($,I){try{if(!this.parserOptions.objectMode)this.push(JSON.stringify($));else this.push($);I()}catch(U){I(U)}}static wrapDoneCallback($){let I=!1;return(U,...Y)=>{if(U){if(I)throw U;I=!0,$(U);return}$(...Y)}}}c30.CsvParserStream=nz});var l30=O((V4)=>{var m30=V4&&V4.__createBinding||(Object.create?function($,I,U,Y){if(Y===void 0)Y=U;Object.defineProperty($,Y,{enumerable:!0,get:function(){return I[U]}})}:function($,I,U,Y){if(Y===void 0)Y=U;$[Y]=I[U]}),H01=V4&&V4.__setModuleDefault||(Object.create?function($,I){Object.defineProperty($,"default",{enumerable:!0,value:I})}:function($,I){$.default=I}),G01=V4&&V4.__importStar||function($){if($&&$.__esModule)return $;var I={};if($!=null){for(var U in $)if(U!=="default"&&Object.prototype.hasOwnProperty.call($,U))m30(I,$,U)}return H01(I,$),I},W01=V4&&V4.__exportStar||function($,I){for(var U in $)if(U!=="default"&&!Object.prototype.hasOwnProperty.call(I,U))m30(I,$,U)};Object.defineProperty(V4,"__esModule",{value:!0});V4.parseString=V4.parseFile=V4.parseStream=V4.parse=V4.ParserOptions=V4.CsvParserStream=void 0;var w01=G01(t("fs")),V01=t("stream"),pz=DC(),cz=oC();W01(OC(),V4);var Z01=oC();Object.defineProperty(V4,"CsvParserStream",{enumerable:!0,get:function(){return Z01.CsvParserStream}});var z01=DC();Object.defineProperty(V4,"ParserOptions",{enumerable:!0,get:function(){return z01.ParserOptions}});V4.parse=($)=>new cz.CsvParserStream(new pz.ParserOptions($));V4.parseStream=($,I)=>$.pipe(new cz.CsvParserStream(new pz.ParserOptions(I)));V4.parseFile=($,I={})=>w01.createReadStream($).pipe(new cz.CsvParserStream(new pz.ParserOptions(I)));V4.parseString=($,I)=>{let U=new V01.Readable;return U.push($),U.push(null),U.pipe(new cz.CsvParserStream(new pz.ParserOptions(I)))}});var o30=O((N6)=>{Object.defineProperty(N6,"__esModule",{value:!0});N6.CsvParserStream=N6.ParserOptions=N6.parseFile=N6.parseStream=N6.parseString=N6.parse=N6.FormatterOptions=N6.CsvFormatterStream=N6.writeToPath=N6.writeToString=N6.writeToBuffer=N6.writeToStream=N6.write=N6.format=void 0;var t9=z70();Object.defineProperty(N6,"format",{enumerable:!0,get:function(){return t9.format}});Object.defineProperty(N6,"write",{enumerable:!0,get:function(){return t9.write}});Object.defineProperty(N6,"writeToStream",{enumerable:!0,get:function(){return t9.writeToStream}});Object.defineProperty(N6,"writeToBuffer",{enumerable:!0,get:function(){return t9.writeToBuffer}});Object.defineProperty(N6,"writeToString",{enumerable:!0,get:function(){return t9.writeToString}});Object.defineProperty(N6,"writeToPath",{enumerable:!0,get:function(){return t9.writeToPath}});Object.defineProperty(N6,"CsvFormatterStream",{enumerable:!0,get:function(){return t9.CsvFormatterStream}});Object.defineProperty(N6,"FormatterOptions",{enumerable:!0,get:function(){return t9.FormatterOptions}});var SY=l30();Object.defineProperty(N6,"parse",{enumerable:!0,get:function(){return SY.parse}});Object.defineProperty(N6,"parseString",{enumerable:!0,get:function(){return SY.parseString}});Object.defineProperty(N6,"parseStream",{enumerable:!0,get:function(){return SY.parseStream}});Object.defineProperty(N6,"parseFile",{enumerable:!0,get:function(){return SY.parseFile}});Object.defineProperty(N6,"ParserOptions",{enumerable:!0,get:function(){return SY.ParserOptions}});Object.defineProperty(N6,"CsvParserStream",{enumerable:!0,get:function(){return SY.CsvParserStream}})});var r30=O((rC,tC)=>{(function($,I){typeof rC=="object"&&typeof tC<"u"?tC.exports=I():typeof define=="function"&&define.amd?define(I):($=typeof globalThis<"u"?globalThis:$||self).dayjs_plugin_customParseFormat=I()})(rC,function(){var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},I=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,U=/\d/,Y=/\d\d/,J=/\d\d?/,Q=/\d*[^-_:/,()\s\d]+/,K={},q=function(X){return(X=+X)+(X>68?1900:2000)},H=function(X){return function(L){this[X]=+L}},G=[/[+-]\d\d:?(\d\d)?|Z/,function(X){(this.zone||(this.zone={})).offset=function(L){if(!L)return 0;if(L==="Z")return 0;var D=L.match(/([+-]|\d\d)/g),F=60*D[1]+(+D[2]||0);return F===0?0:D[0]==="+"?-F:F}(X)}],W=function(X){var L=K[X];return L&&(L.indexOf?L:L.s.concat(L.f))},w=function(X,L){var D,F=K.meridiem;if(F){for(var P=1;P<=24;P+=1)if(X.indexOf(F(P,0,L))>-1){D=P>12;break}}else D=X===(L?"pm":"PM");return D},Z={A:[Q,function(X){this.afternoon=w(X,!1)}],a:[Q,function(X){this.afternoon=w(X,!0)}],Q:[U,function(X){this.month=3*(X-1)+1}],S:[U,function(X){this.milliseconds=100*+X}],SS:[Y,function(X){this.milliseconds=10*+X}],SSS:[/\d{3}/,function(X){this.milliseconds=+X}],s:[J,H("seconds")],ss:[J,H("seconds")],m:[J,H("minutes")],mm:[J,H("minutes")],H:[J,H("hours")],h:[J,H("hours")],HH:[J,H("hours")],hh:[J,H("hours")],D:[J,H("day")],DD:[Y,H("day")],Do:[Q,function(X){var L=K.ordinal,D=X.match(/\d+/);if(this.day=D[0],L)for(var F=1;F<=31;F+=1)L(F).replace(/\[|\]/g,"")===X&&(this.day=F)}],w:[J,H("week")],ww:[Y,H("week")],M:[J,H("month")],MM:[Y,H("month")],MMM:[Q,function(X){var L=W("months"),D=(W("monthsShort")||L.map(function(F){return F.slice(0,3)})).indexOf(X)+1;if(D<1)throw Error();this.month=D%12||D}],MMMM:[Q,function(X){var L=W("months").indexOf(X)+1;if(L<1)throw Error();this.month=L%12||L}],Y:[/[+-]?\d+/,H("year")],YY:[Y,function(X){this.year=q(X)}],YYYY:[/\d{4}/,H("year")],Z:G,ZZ:G};function V(X){var L,D;L=X,D=K&&K.formats;for(var F=(X=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,j,p){var n=p&&p.toUpperCase();return j||D[p]||$[p]||D[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,b,i){return b||i.slice(1)})})).match(I),P=F.length,E=0;E-1)return new Date((B==="X"?1000:1)*U0);var r=V(B)(U0),J0=r.year,w0=r.month,A0=r.day,j0=r.hours,q1=r.minutes,k0=r.seconds,I1=r.milliseconds,M0=r.zone,Q0=r.week,R0=new Date,U1=A0||(J0||w0?1:R0.getDate()),O1=J0||R0.getFullYear(),b4=0;J0&&!w0||(b4=w0>0?w0-1:R0.getMonth());var f6,O$=j0||0,b6=q1||0,P6=k0||0,F$=I1||0;return M0?new Date(Date.UTC(O1,b4,U1,O$,b6,P6,F$+60*M0.offset*1000)):x?new Date(Date.UTC(O1,b4,U1,O$,b6,P6,F$)):(f6=new Date(O1,b4,U1,O$,b6,P6,F$),Q0&&(f6=c(f6).week(Q0).toDate()),f6)}catch(Y$){return new Date("")}}(A,y,R,D),this.init(),n&&n!==!0&&(this.$L=this.locale(n).$L),p&&A!=this.format(y)&&(this.$d=new Date("")),K={}}else if(y instanceof Array)for(var S=y.length,b=1;b<=S;b+=1){k[1]=y[b-1];var i=D.apply(this,k);if(i.isValid()){this.$d=i.$d,this.$L=i.$L,this.init();break}b===S&&(this.$d=new Date(""))}else P.call(this,E)}}})});var t30=O((aC,sC)=>{(function($,I){typeof aC=="object"&&typeof sC<"u"?sC.exports=I():typeof define=="function"&&define.amd?define(I):($=typeof globalThis<"u"?globalThis:$||self).dayjs_plugin_utc=I()})(aC,function(){var $="minute",I=/[+-]\d\d(?::?\d\d)?/g,U=/([+-]|\d\d)/g;return function(Y,J,Q){var K=J.prototype;Q.utc=function(V){var X={date:V,utc:!0,args:arguments};return new J(X)},K.utc=function(V){var X=Q(this.toDate(),{locale:this.$L,utc:!0});return V?X.add(this.utcOffset(),$):X},K.local=function(){return Q(this.toDate(),{locale:this.$L,utc:!1})};var q=K.parse;K.parse=function(V){V.utc&&(this.$u=!0),this.$utils().u(V.$offset)||(this.$offset=V.$offset),q.call(this,V)};var H=K.init;K.init=function(){if(this.$u){var V=this.$d;this.$y=V.getUTCFullYear(),this.$M=V.getUTCMonth(),this.$D=V.getUTCDate(),this.$W=V.getUTCDay(),this.$H=V.getUTCHours(),this.$m=V.getUTCMinutes(),this.$s=V.getUTCSeconds(),this.$ms=V.getUTCMilliseconds()}else H.call(this)};var G=K.utcOffset;K.utcOffset=function(V,X){var L=this.$utils().u;if(L(V))return this.$u?0:L(this.$offset)?G.call(this):this.$offset;if(typeof V=="string"&&(V=function(E){E===void 0&&(E="");var A=E.match(I);if(!A)return null;var R=(""+A[0]).match(U)||["-",0,0],k=R[0],y=60*+R[1]+ +R[2];return y===0?0:k==="+"?y:-y}(V),V===null))return this;var D=Math.abs(V)<=16?60*V:V;if(D===0)return this.utc(X);var F=this.clone();if(X)return F.$offset=D,F.$u=!1,F;var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(F=this.local().add(D+P,$)).$offset=D,F.$x.$localOffset=P,F};var W=K.format;K.format=function(V){var X=V||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return W.call(this,X)},K.valueOf=function(){var V=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-60000*V},K.isUTC=function(){return!!this.$u},K.toISOString=function(){return this.toDate().toISOString()},K.toString=function(){return this.toDate().toUTCString()};var w=K.toDate;K.toDate=function(V){return V==="s"&&this.$offset?Q(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():w.call(this)};var Z=K.diff;K.diff=function(V,X,L){if(V&&this.$u===V.$u)return Z.call(this,V,X,L);var D=this.local(),F=Q(V).local();return Z.call(D,F,X,L)}}})});var a30=O((eC,$_)=>{(function($,I){typeof eC=="object"&&typeof $_<"u"?$_.exports=I():typeof define=="function"&&define.amd?define(I):($=typeof globalThis<"u"?globalThis:$||self).dayjs=I()})(eC,function(){var $=1000,I=60000,U=3600000,Y="millisecond",J="second",Q="minute",K="hour",q="day",H="week",G="month",W="quarter",w="year",Z="date",V="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var b=["th","st","nd","rd"],i=S%100;return"["+S+(b[(i-20)%10]||b[i]||b[0])+"]"}},F=function(S,b,i){var U0=String(S);return!U0||U0.length>=b?S:""+Array(b+1-U0.length).join(i)+S},P={s:F,z:function(S){var b=-S.utcOffset(),i=Math.abs(b),U0=Math.floor(i/60),B=i%60;return(b<=0?"+":"-")+F(U0,2,"0")+":"+F(B,2,"0")},m:function S(b,i){if(b.date()1)return S(c[0])}else{var r=b.name;A[r]=b,B=r}return!U0&&B&&(E=B),B||!U0&&E},f=function(S,b){if(k(S))return S.clone();var i=typeof b=="object"?b:{};return i.date=S,i.args=arguments,new p(i)},j=P;j.l=y,j.i=k,j.w=function(S,b){return f(S,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var p=function(){function S(i){this.$L=y(i.locale,null,!0),this.parse(i),this.$x=this.$x||i.x||{},this[R]=!0}var b=S.prototype;return b.parse=function(i){this.$d=function(U0){var{date:B,utc:x}=U0;if(B===null)return new Date(NaN);if(j.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var c=B.match(X);if(c){var r=c[2]-1||0,J0=(c[7]||"0").substring(0,3);return x?new Date(Date.UTC(c[1],r,c[3]||1,c[4]||0,c[5]||0,c[6]||0,J0)):new Date(c[1],r,c[3]||1,c[4]||0,c[5]||0,c[6]||0,J0)}}return new Date(B)}(i),this.init()},b.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},b.$utils=function(){return j},b.isValid=function(){return this.$d.toString()!==V},b.isSame=function(i,U0){var B=f(i);return this.startOf(U0)<=B&&B<=this.endOf(U0)},b.isAfter=function(i,U0){return f(i){var s30=t("fs"),e30=o30(),L01=r30(),D01=t30(),kK=a30().extend(L01).extend(D01),O01=NK(),{fs:{exists:F01}}=O6(),N01={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};class $I0{constructor($){this.workbook=$,this.worksheet=null}async readFile($,I){if(I=I||{},!await F01($))throw Error(`File not found: ${$}`);let U=s30.createReadStream($),Y=await this.read(U,I);return U.close(),Y}read($,I){return I=I||{},new Promise((U,Y)=>{let J=this.workbook.addWorksheet(I.sheetName),Q=I.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],K=I.map||function(H){if(H==="")return null;let G=Number(H);if(!Number.isNaN(G)&&G!==1/0)return G;let W=Q.reduce((Z,V)=>{if(Z)return Z;let X=kK(H,V,!0);if(X.isValid())return X;return null},null);if(W)return new Date(W.valueOf());let w=N01[H];if(w!==void 0)return w;return H},q=e30.parse(I.parserOptions).on("data",(H)=>{J.addRow(H.map(K))}).on("end",()=>{q.emit("worksheet",J)});q.on("worksheet",U).on("error",Y),$.pipe(q)})}createInputStream(){throw Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write($,I){return new Promise((U,Y)=>{I=I||{};let J=this.workbook.getWorksheet(I.sheetName||I.sheetId),Q=e30.format(I.formatterOptions);$.on("finish",()=>{U()}),Q.on("error",Y),Q.pipe($);let{dateFormat:K,dateUTC:q}=I,H=I.map||((w)=>{if(w){if(w.text||w.hyperlink)return w.hyperlink||w.text||"";if(w.formula||w.result)return w.result||"";if(w instanceof Date){if(K)return q?kK.utc(w).format(K):kK(w).format(K);return q?kK.utc(w).format():kK(w).format()}if(w.error)return w.error;if(typeof w==="object")return JSON.stringify(w)}return w}),G=I.includeEmptyRows===void 0||I.includeEmptyRows,W=1;if(J)J.eachRow((w,Z)=>{if(G)while(W++{var YI0=Go(),M01=qB(),A01=sj(),P01=UI0();class JI0{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new M01}get xlsx(){if(!this._xlsx)this._xlsx=new A01(this);return this._xlsx}get csv(){if(!this._csv)this._csv=new P01(this);return this._csv}get nextId(){for(let $=1;$(q&&q.orderNo)>K?q.orderNo:K,0),J=Object.assign({},I,{id:U,name:$,orderNo:Y+1,workbook:this}),Q=new YI0(J);return this._worksheets[U]=Q,Q}removeWorksheetEx($){delete this._worksheets[$.id]}removeWorksheet($){let I=this.getWorksheet($);if(I)I.destroy()}getWorksheet($){if($===void 0)return this._worksheets.find(Boolean);if(typeof $==="number")return this._worksheets[$];if(typeof $==="string")return this._worksheets.find((I)=>I&&I.name===$);return}get worksheets(){return this._worksheets.slice(1).sort(($,I)=>$.orderNo-I.orderNo).filter(Boolean)}eachSheet($){this.worksheets.forEach((I)=>{$(I,I.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage($){let I=this.media.length;return this.media.push(Object.assign({},$,{type:"image"})),I}getImage($){return this.media[$]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(($)=>$.model),sheets:this.worksheets.map(($)=>$.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model($){this.creator=$.creator,this.lastModifiedBy=$.lastModifiedBy,this.lastPrinted=$.lastPrinted,this.created=$.created,this.modified=$.modified,this.company=$.company,this.manager=$.manager,this.title=$.title,this.subject=$.subject,this.keywords=$.keywords,this.category=$.category,this.description=$.description,this.language=$.language,this.revision=$.revision,this.contentStatus=$.contentStatus,this.properties=$.properties,this.calcProperties=$.calcProperties,this._worksheets=[],$.worksheets.forEach((I)=>{let{id:U,name:Y,state:J}=I,Q=$.sheets&&$.sheets.findIndex((q)=>q.id===U),K=this._worksheets[U]=new YI0({id:U,name:Y,orderNo:Q,state:J,workbook:this});K.model=I}),this._definedNames.model=$.definedNames,this.views=$.views,this._themes=$.themes,this.media=$.media||[]}}QI0.exports=JI0});var GI0=O((dv1,HI0)=>{var T01=sj();class qI0{constructor($){this.model=$}get xlsx(){if(!this._xlsx)this._xlsx=new T01(this);return this._xlsx}}HI0.exports=qI0});var wI0=O((mv1,WI0)=>{var E01=typeof process==="object"&&process&&process.platform==="win32";WI0.exports=E01?{sep:"\\"}:{sep:"/"}});var I_=O((lv1,XI0)=>{XI0.exports=ZI0;function ZI0($,I,U){if($ instanceof RegExp)$=VI0($,U);if(I instanceof RegExp)I=VI0(I,U);var Y=zI0($,I,U);return Y&&{start:Y[0],end:Y[1],pre:U.slice(0,Y[0]),body:U.slice(Y[0]+$.length,Y[1]),post:U.slice(Y[1]+I.length)}}function VI0($,I){var U=I.match($);return U?U[0]:null}ZI0.range=zI0;function zI0($,I,U){var Y,J,Q,K,q,H=U.indexOf($),G=U.indexOf(I,H+1),W=H;if(H>=0&&G>0){if($===I)return[H,G];Y=[],Q=U.length;while(W>=0&&!q){if(W==H)Y.push(W),H=U.indexOf($,W+1);else if(Y.length==1)q=[Y.pop(),G];else{if(J=Y.pop(),J=0?H:G}if(Y.length)q=[Q,K]}return q}});var PI0=O((ov1,AI0)=>{var LI0=I_();AI0.exports=C01;var DI0="\x00SLASH"+Math.random()+"\x00",OI0="\x00OPEN"+Math.random()+"\x00",J_="\x00CLOSE"+Math.random()+"\x00",FI0="\x00COMMA"+Math.random()+"\x00",NI0="\x00PERIOD"+Math.random()+"\x00",B01=1e5,v01=4000000;function U_($){return parseInt($,10)==$?parseInt($,10):$.charCodeAt(0)}function R01($){return $.split("\\\\").join(DI0).split("\\{").join(OI0).split("\\}").join(J_).split("\\,").join(FI0).split("\\.").join(NI0)}function j01($){return $.split(DI0).join("\\").split(OI0).join("{").split(J_).join("}").split(FI0).join(",").split(NI0).join(".")}function MI0($){if(!$)return[""];var I=[],U=LI0("{","}",$);if(!U)return $.split(",");var{pre:Y,body:J,post:Q}=U,K=Y.split(",");K[K.length-1]+="{"+J+"}";var q=MI0(Q);if(Q.length)K[K.length-1]+=q.shift(),K.push.apply(K,q);return I.push.apply(I,K),I}function C01($,I){if(!$)return[];I=I||{};var U=I.max==null?B01:I.max,Y=I.maxLength==null?v01:I.maxLength;if($.substr(0,2)==="{}")$="\\{\\}"+$.substr(2);return Y_(R01($),U,Y,!0).map(j01)}function _01($){return"{"+$+"}"}function S01($){return/^-?0\d/.test($)}function g01($,I){return $<=I}function y01($,I){return $>=I}function fK($,I,U,Y,J,Q){var K=[],q=0;for(var H=0;H<$.length;H++)for(var G=0;G=Y)return K;var W=$[H]+I+U[G];if(Q&&!W)continue;if(q+W.length>J)return K;K.push(W),q+=W.length}return K}function h01($,I,U,Y){var J=$.split(/\.\./),Q=[];if(J[0]===void 0||J[1]===void 0)return Q;var K=U_(J[0]),q=U_(J[1]),H=Math.max(J[0].length,J[1].length),G=J.length===3&&J[2]!==void 0?Math.max(Math.abs(U_(J[2])),1):1,W=g01,w=q0){var F=Array(D+1).join("0");if(X<0)L="-"+F+L.slice(1);else L=F+L}}if(V+L.length>Y)break;Q.push(L),V+=L.length}return Q}function Y_($,I,U,Y){var J=[""],Q=!1,K=!0;for(;;){let A=LI0("{","}",$);if(!A)return fK(J,$,[""],I,U,Q);let R=A.pre;if(/\$$/.test(R)){if(J=fK(J,R+"{"+A.body+"}",[""],I,U,Q&&!A.post.length),K=!1,!A.post.length)break;$=A.post;continue}var q=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(A.body),H=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(A.body),G=q||H,W=A.body.indexOf(",")>=0;if(!G&&!W){if(A.post.match(/,(?!,).*\}/)){$=A.pre+"{"+A.body+J_+A.post,Y=!0;continue}return fK(J,R+"{"+A.body+"}"+A.post,[""],I,U,Q)}if(K)Q=Y&&!G,K=!1;var w;if(G)w=h01(A.body,H,I,U);else{var Z=MI0(A.body);if(Z.length===1&&Z[0]!==void 0){if(Z=Y_(Z[0],I,U,!1).map(_01),Z.length===1){if(J=fK(J,R+Z[0],[""],I,U,Q&&!A.post.length),!A.post.length)break;$=A.post;continue}}var V=Q&&!A.post.length&&!R;for(var X=0;V&&X=I||L+E.length>U)break $;w.push(E),L+=E.length}}}if(J=fK(J,R,w,I,U,Q&&!A.post.length),!A.post.length)break;$=A.post}return J}});var jI0=O((rv1,G_)=>{var V$=G_.exports=($,I,U={})=>{if(dz(I),!U.nocomment&&I.charAt(0)==="#")return!1;return new bK(I,U).match($)};G_.exports=V$;var q_=wI0();V$.sep=q_.sep;var y6=Symbol("globstar **");V$.GLOBSTAR=y6;var u01=PI0(),TI0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},H_="[^/]",Q_=H_+"*?",x01="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",k01="(?:(?!(?:\\/|^)\\.).)*?",vI0=($)=>$.split("").reduce((I,U)=>{return I[U]=!0,I},{}),EI0=vI0("().*{}+?[]^$\\!"),f01=vI0("[.("),BI0=/\/+/;V$.filter=($,I={})=>(U,Y,J)=>V$(U,$,I);var a9=($,I={})=>{let U={};return Object.keys($).forEach((Y)=>U[Y]=$[Y]),Object.keys(I).forEach((Y)=>U[Y]=I[Y]),U};V$.defaults=($)=>{if(!$||typeof $!=="object"||!Object.keys($).length)return V$;let I=V$,U=(Y,J,Q)=>I(Y,J,a9($,Q));return U.Minimatch=class extends I.Minimatch{constructor(J,Q){super(J,a9($,Q))}},U.Minimatch.defaults=(Y)=>I.defaults(a9($,Y)).Minimatch,U.filter=(Y,J)=>I.filter(Y,a9($,J)),U.defaults=(Y)=>I.defaults(a9($,Y)),U.makeRe=(Y,J)=>I.makeRe(Y,a9($,J)),U.braceExpand=(Y,J)=>I.braceExpand(Y,a9($,J)),U.match=(Y,J,Q)=>I.match(Y,J,a9($,Q)),U};V$.braceExpand=($,I)=>RI0($,I);var RI0=($,I={})=>{if(dz($),I.nobrace||!/\{(?:(?!\{).)*\}/.test($))return[$];return u01($)},b01=65536,dz=($)=>{if(typeof $!=="string")throw TypeError("invalid pattern");if($.length>b01)throw TypeError("pattern is too long")},K_=Symbol("subparse");V$.makeRe=($,I)=>new bK($,I||{}).makeRe();V$.match=($,I,U={})=>{let Y=new bK(I,U);if($=$.filter((J)=>Y.match(J)),Y.options.nonull&&!$.length)$.push(I);return $};var i01=($)=>$.replace(/\\(.)/g,"$1"),n01=($)=>$.replace(/\\([^-\]])/g,"$1"),p01=($)=>$.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c01=($)=>$.replace(/[[\]\\]/g,"\\$&");class bK{constructor($,I){if(dz($),!I)I={};if(this.options=I,this.maxGlobstarRecursion=I.maxGlobstarRecursion!==void 0?I.maxGlobstarRecursion:200,this.set=[],this.pattern=$,this.windowsPathsNoEscape=!!I.windowsPathsNoEscape||I.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!I.partial,this.make()}debug(){}make(){let $=this.pattern,I=this.options;if(!I.nocomment&&$.charAt(0)==="#"){this.comment=!0;return}if(!$){this.empty=!0;return}this.parseNegate();let U=this.globSet=this.braceExpand();if(I.debug)this.debug=(...Y)=>console.error(...Y);this.debug(this.pattern,U),U=this.globParts=U.map((Y)=>Y.split(BI0)),this.debug(this.pattern,U),U=U.map((Y,J,Q)=>Y.map(this.parse,this)),this.debug(this.pattern,U),U=U.filter((Y)=>Y.indexOf(!1)===-1),this.debug(this.pattern,U),this.set=U}parseNegate(){if(this.options.nonegate)return;let $=this.pattern,I=!1,U=0;for(let Y=0;Y<$.length&&$.charAt(Y)==="!";Y++)I=!I,U++;if(U)this.pattern=$.slice(U);this.negate=I}matchOne($,I,U){if(I.indexOf(y6)!==-1)return this._matchGlobstar($,I,U,0,0);return this._matchOne($,I,U,0,0)}_matchGlobstar($,I,U,Y,J){let Q=-1;for(let F=J;F=0;F--)if(I[F]===y6){K=F;break}let q=I.slice(J,Q),H=U?I.slice(Q+1):I.slice(Q+1,K),G=U?[]:I.slice(K+1);if(q.length){let F=$.slice(Y,Y+q.length);if(!this._matchOne(F,q,U,0,0))return!1;Y+=q.length}let W=0;if(G.length){if(G.length+Y>$.length)return!1;let F=$.length-G.length;if(this._matchOne($,G,U,F,0))W=G.length;else{if($[$.length-1]!==""||Y+G.length===$.length)return!1;if(!this._matchOne($,G,U,F-1,0))return!1;W=G.length+1}}if(!H.length){let F=!!W;for(let P=Y;P<$.length-W;P++){let E=String($[P]);if(F=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return U||F}let w=[[[],0]],Z=w[0],V=0,X=[0];for(let F of H)if(F===y6)X.push(V),Z=[[],0],w.push(Z);else Z[0].push(F),V++;let L=w.length-1,D=$.length-W;for(let F of w)F[1]=D-(X[L--]+F[0].length);return!!this._matchGlobStarBodySections($,w,Y,0,U,0,!!W)}_matchGlobStarBodySections($,I,U,Y,J,Q,K){let q=I[Y];if(!q){for(let W=U;W<$.length;W++){K=!0;let w=$[W];if(w==="."||w===".."||!this.options.dot&&w.charAt(0)===".")return!1}return K}let[H,G]=q;while(U<=G){if(this._matchOne($.slice(0,U+H.length),H,J,U,0)&&QL?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",P=(k)=>k.charAt(0)==="."?"":U.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{if(H){switch(H){case"*":Y+=Q_,J=!0;break;case"?":Y+=H_,J=!0;break;default:Y+="\\"+H;break}this.debug("clearStateChar %j %j",H,Y),H=!1}};for(let k=0,y;k<$.length&&(y=$.charAt(k));k++){if(this.debug("%s\t%s %s %j",$,k,Y,y),Q){if(y==="/")return!1;if(EI0[y])Y+="\\";Y+=y,Q=!1;continue}switch(y){case"/":return!1;case"\\":if(G&&$.charAt(k+1)==="-"){Y+=y;continue}E(),Q=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",$,k,Y,y),G){if(this.debug(" in class"),y==="!"&&k===w+1)y="^";Y+=y;continue}if(y==="*"&&H==="*")continue;if(this.debug("call clearStateChar %j",H),E(),H=y,U.noext)E();continue;case"(":{if(G){Y+="(";continue}if(!H){Y+="\\(";continue}let f={type:H,start:k-1,reStart:Y.length,open:TI0[H].open,close:TI0[H].close};if(this.debug(this.pattern,"\t",f),K.push(f),Y+=f.open,f.start===0&&f.type!=="!")L=!0,Y+=P($.slice(k+1));this.debug("plType %j %j",H,Y),H=!1;continue}case")":{let f=K[K.length-1];if(G||!f){Y+="\\)";continue}if(K.pop(),E(),J=!0,V=f,Y+=V.close,V.type==="!")q.push(Object.assign(V,{reEnd:Y.length}));continue}case"|":{let f=K[K.length-1];if(G||!f){Y+="\\|";continue}if(E(),Y+="|",f.start===0&&f.type!=="!")L=!0,Y+=P($.slice(k+1));continue}case"[":if(E(),G){Y+="\\"+y;continue}G=!0,w=k,W=Y.length,Y+=y;continue;case"]":if(k===w+1||!G){Y+="\\"+y;continue}Z=$.substring(w+1,k);try{RegExp("["+c01(n01(Z))+"]"),Y+=y}catch(f){Y=Y.substring(0,W)+"(?:$.)"}J=!0,G=!1;continue;default:if(E(),EI0[y]&&!(y==="^"&&G))Y+="\\";Y+=y;break}}if(G)Z=$.slice(w+1),X=this.parse(Z,K_),Y=Y.substring(0,W)+"\\["+X[0],J=J||X[1];for(V=K.pop();V;V=K.pop()){let k;k=Y.slice(V.reStart+V.open.length),this.debug("setting tail",Y,V),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,(f,j,p)=>{if(!p)p="\\";return j+j+p+"|"}),this.debug(`tail=%j - %s`,k,k,V,Y);let y=V.type==="*"?Q_:V.type==="?"?H_:"\\"+V.type;J=!0,Y=Y.slice(0,V.reStart)+y+"\\("+k}if(E(),Q)Y+="\\\\";let A=f01[Y.charAt(0)];for(let k=q.length-1;k>-1;k--){let y=q[k],f=Y.slice(0,y.reStart),j=Y.slice(y.reStart,y.reEnd-8),p=Y.slice(y.reEnd),n=Y.slice(y.reEnd-8,y.reEnd)+p,S=f.split(")").length,b=f.split("(").length-S,i=p;for(let B=0;B{return Q=Q.map((K)=>typeof K==="string"?p01(K):K===y6?y6:K._src).reduce((K,q)=>{if(!(K[K.length-1]===y6&&q===y6))K.push(q);return K},[]),Q.forEach((K,q)=>{if(K!==y6||Q[q-1]===y6)return;if(q===0)if(Q.length>1)Q[q+1]="(?:\\/|"+U+"\\/)?"+Q[q+1];else Q[q]=U;else if(q===Q.length-1)Q[q-1]+="(?:\\/|"+U+")?";else Q[q-1]+="(?:\\/|\\/"+U+"\\/)"+Q[q+1],Q[q+1]=y6}),Q.filter((K)=>K!==y6).join("/")}).join("|");if(J="^(?:"+J+")$",this.negate)J="^(?!"+J+").*$";try{this.regexp=new RegExp(J,Y)}catch(Q){this.regexp=!1}return this.regexp}match($,I=this.partial){if(this.debug("match",$,this.pattern),this.comment)return!1;if(this.empty)return $==="";if($==="/"&&I)return!0;let U=this.options;if(q_.sep!=="/")$=$.split(q_.sep).join("/");$=$.split(BI0),this.debug(this.pattern,"split",$);let Y=this.set;this.debug(this.pattern,"set",Y);let J;for(let Q=$.length-1;Q>=0;Q--)if(J=$[Q],J)break;for(let Q=0;Q{gI0.exports=SI0;var w_=t("fs"),{EventEmitter:d01}=t("events"),{Minimatch:W_}=jI0(),{resolve:m01}=t("path");function l01($,I){return new Promise((U,Y)=>{w_.readdir($,{withFileTypes:!0},(J,Q)=>{if(J)switch(J.code){case"ENOTDIR":if(I)Y(J);else U([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":U([]);break;case"ELOOP":default:Y(J);break}else U(Q)})})}function CI0($,I){return new Promise((U,Y)=>{(I?w_.stat:w_.lstat)($,(Q,K)=>{if(Q)switch(Q.code){case"ENOENT":if(I)U(CI0($,!1));else U(null);break;default:U(null);break}else U(K)})})}async function*_I0($,I,U,Y,J,Q){let K=await l01(I+$,Q);for(let q of K){let H=q.name;if(H===void 0)H=q,Y=!0;let G=$+"/"+H,W=G.slice(1),w=I+"/"+W,Z=null;if(Y||U)Z=await CI0(w,U);if(!Z&&q.name!==void 0)Z=q;if(Z===null)Z={isDirectory:()=>!1};if(Z.isDirectory()){if(!J(W))yield{relative:W,absolute:w,stats:Z},yield*_I0(G,I,U,Y,J,!1)}else yield{relative:W,absolute:w,stats:Z}}}async function*o01($,I,U,Y){yield*_I0("",$,I,U,Y,!0)}function r01($){return{pattern:$.pattern,dot:!!$.dot,noglobstar:!!$.noglobstar,matchBase:!!$.matchBase,nocase:!!$.nocase,ignore:$.ignore,skip:$.skip,follow:!!$.follow,stat:!!$.stat,nodir:!!$.nodir,mark:!!$.mark,silent:!!$.silent,absolute:!!$.absolute}}class V_ extends d01{constructor($,I,U){super();if(typeof I==="function")U=I,I=null;if(this.options=r01(I||{}),this.matchers=[],this.options.pattern){let Y=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=Y.map((J)=>new W_(J,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let Y=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=Y.map((J)=>new W_(J,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let Y=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=Y.map((J)=>new W_(J,{dot:!0}))}if(this.iterator=o01(m01($||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,U)this._matches=[],this.on("match",(Y)=>this._matches.push(this.options.absolute?Y.absolute:Y.relative)),this.on("error",(Y)=>U(Y)),this.on("end",()=>U(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory($){return this.skipMatchers.some((I)=>I.match($))}_fileMatches($,I){let U=$+(I?"/":"");return(this.matchers.length===0||this.matchers.some((Y)=>Y.match(U)))&&!this.ignoreMatchers.some((Y)=>Y.match(U))&&(!this.options.nodir||!I)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then(($)=>{if(!$.done){let I=$.value.stats.isDirectory();if(this._fileMatches($.value.relative,I)){let U=$.value.relative,Y=$.value.absolute;if(this.options.mark&&I)U+="/",Y+="/";if(this.options.stat)this.emit("match",{relative:U,absolute:Y,stat:$.value.stats});else this.emit("match",{relative:U,absolute:Y})}this._next(this.iterator)}else this.emit("end")}).catch(($)=>{if(this.abort(),this.emit("error",$),!$.code&&!this.options.silent)console.error($)});else this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){if(this.paused=!1,this.inactive)this.inactive=!1,this._next()}}function SI0($,I,U){return new V_($,I,U)}SI0.ReaddirGlob=V_});var uI0=O((mz,hI0)=>{(function($,I){typeof mz==="object"&&typeof hI0<"u"?I(mz):typeof define==="function"&&define.amd?define(["exports"],I):($=typeof globalThis<"u"?globalThis:$||self,I($.async={}))})(mz,function($){function I(T,...v){return(...h)=>T(...v,...h)}function U(T){return function(...v){var h=v.pop();return T.call(this,v,h)}}var Y=typeof queueMicrotask==="function"&&queueMicrotask,J=typeof setImmediate==="function"&&setImmediate,Q=typeof process==="object"&&typeof process.nextTick==="function";function K(T){setTimeout(T,0)}function q(T){return(v,...h)=>T(()=>v(...h))}var H;if(Y)H=queueMicrotask;else if(J)H=setImmediate;else if(Q)H=process.nextTick;else H=K;var G=q(H);function W(T){if(V(T))return function(...v){let h=v.pop(),d=T.apply(this,v);return w(d,h)};return U(function(v,h){var d;try{d=T.apply(this,v)}catch($0){return h($0)}if(d&&typeof d.then==="function")return w(d,h);else h(null,d)})}function w(T,v){return T.then((h)=>{Z(v,null,h)},(h)=>{Z(v,h&&(h instanceof Error||h.message)?h:Error(h))})}function Z(T,v,h){try{T(v,h)}catch(d){G(($0)=>{throw $0},d)}}function V(T){return T[Symbol.toStringTag]==="AsyncFunction"}function X(T){return T[Symbol.toStringTag]==="AsyncGenerator"}function L(T){return typeof T[Symbol.asyncIterator]==="function"}function D(T){if(typeof T!=="function")throw Error("expected a function");return V(T)?W(T):T}function F(T,v){if(!v)v=T.length;if(!v)throw Error("arity is undefined");function h(...d){if(typeof d[v-1]==="function")return T.apply(this,d);return new Promise(($0,Y0)=>{d[v-1]=(H0,...G0)=>{if(H0)return Y0(H0);$0(G0.length>1?G0:G0[0])},T.apply(this,d)})}return h}function P(T){return function(h,...d){return F(function(Y0){var H0=this;return T(h,(G0,z0)=>{D(G0).apply(H0,d.concat(z0))},Y0)})}}function E(T,v,h,d){v=v||[];var $0=[],Y0=0,H0=D(h);return T(v,(G0,z0,S0)=>{var G1=Y0++;H0(G0,(F1,V1)=>{$0[G1]=V1,S0(F1)})},(G0)=>{d(G0,$0)})}function A(T){return T&&typeof T.length==="number"&&T.length>=0&&T.length%1===0}let R={};function k(T){function v(...h){if(T===null)return;var d=T;T=null,d.apply(this,h)}return Object.assign(v,T),v}function y(T){return T[Symbol.iterator]&&T[Symbol.iterator]()}function f(T){var v=-1,h=T.length;return function(){return++v=v||H0||$0)return;H0=!0,T.next().then(({value:V1,done:N$})=>{if(Y0||$0)return;if(H0=!1,N$){if($0=!0,G0<=0)d(null);return}G0++,h(V1,z0,G1),z0++,S0()}).catch(F1)}function G1(V1,N$){if(G0-=1,Y0)return;if(V1)return F1(V1);if(V1===!1){$0=!0,Y0=!0;return}if(N$===R||$0&&G0<=0)return $0=!0,d(null);S0()}function F1(V1){if(Y0)return;H0=!1,$0=!0,d(V1)}S0()}var i=(T)=>{return(v,h,d)=>{if(d=k(d),T<=0)throw RangeError("concurrency limit cannot be less than 1");if(!v)return d(null);if(X(v))return b(v,T,h,d);if(L(v))return b(v[Symbol.asyncIterator](),T,h,d);var $0=n(v),Y0=!1,H0=!1,G0=0,z0=!1;function S0(F1,V1){if(H0)return;if(G0-=1,F1)Y0=!0,d(F1);else if(F1===!1)Y0=!0,H0=!0;else if(V1===R||Y0&&G0<=0)return Y0=!0,d(null);else if(!z0)G1()}function G1(){z0=!0;while(G01?$0:$0[0])}return h[R0]=new Promise((d,$0)=>{T=d,v=$0}),h}function O1(T,v,h){if(typeof v!=="number")h=v,v=null;h=k(h||U1());var d=Object.keys(T).length;if(!d)return h(null);if(!v)v=d;var $0={},Y0=0,H0=!1,G0=!1,z0=Object.create(null),S0=[],G1=[],F1={};Object.keys(T).forEach((C0)=>{var x0=T[C0];if(!Array.isArray(x0)){V1(C0,[x0]),G1.push(C0);return}var Z1=x0.slice(0,x0.length-1),K4=Z1.length;if(K4===0){V1(C0,x0),G1.push(C0);return}F1[C0]=K4,Z1.forEach((i4)=>{if(!T[i4])throw Error("async.auto task `"+C0+"` has a non-existent dependency `"+i4+"` in "+Z1.join(", "));DI(i4,()=>{if(K4--,K4===0)V1(C0,x0)})})}),N1(),N$();function V1(C0,x0){S0.push(()=>fJ(C0,x0))}function N$(){if(H0)return;if(S0.length===0&&Y0===0)return h(null,$0);while(S0.length&&Y0Z1()),N$()}function fJ(C0,x0){if(G0)return;var Z1=S((i4,...M$)=>{if(Y0--,i4===!1){H0=!0;return}if(M$.length<2)[M$]=M$;if(i4){var OI={};if(Object.keys($0).forEach((B7)=>{OI[B7]=$0[B7]}),OI[C0]=M$,G0=!0,z0=Object.create(null),H0)return;h(i4,OI)}else $0[C0]=M$,E7(C0)});Y0++;var K4=D(x0[x0.length-1]);if(x0.length>1)K4($0,Z1);else K4(Z1)}function N1(){var C0,x0=0;while(G1.length)C0=G1.pop(),x0++,u0(C0).forEach((Z1)=>{if(--F1[Z1]===0)G1.push(Z1)});if(x0!==d)throw Error("async.auto cannot execute tasks due to a recursive dependency")}function u0(C0){var x0=[];return Object.keys(T).forEach((Z1)=>{let K4=T[Z1];if(Array.isArray(K4)&&K4.indexOf(C0)>=0)x0.push(Z1)}),x0}return h[R0]}var b4=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,f6=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,O$=/,/,b6=/(=.+)?(\s*)$/;function P6(T){let v="",h=0,d=T.indexOf("*/");while(h{Object.defineProperty(F30,"__esModule",{value:!0});F30.Scanner=void 0;var D30=r9(),ie0=/((?:\r\n)|\n|\r)/;class O30{constructor($){this.cursor=0,this.line=$.line,this.lineLength=this.line.length,this.parserOptions=$.parserOptions,this.hasMoreData=$.hasMoreData,this.cursor=$.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:$}=this,I=this.parserOptions.NEXT_TOKEN_REGEXP;if($.search(I)===-1)return null;let U=I.exec($);if(U==null)return null;let Y=U[1],J=this.cursor+(U.index||0);return new D30.Token({token:Y,startCursor:J,endCursor:J+Y.length-1})}get nextCharacterToken(){let{cursor:$,lineLength:I}=this;if(I<=$)return null;return new D30.Token({token:this.line[$],startCursor:$,endCursor:$})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let $=ie0.exec(this.lineFromCursor);if(!$){if(this.hasMoreData)return null;return this.cursor=this.lineLength,this}return this.cursor+=($.index||0)+$[0].length,this}advanceTo($){return this.cursor=$,this}advanceToToken($){return this.cursor=$.startCursor,this}advancePastToken($){return this.cursor=$.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}F30.Scanner=O30});var nz=O((A30)=>{Object.defineProperty(A30,"__esModule",{value:!0});A30.ColumnFormatter=void 0;class M30{constructor($){if($.trim)this.format=(I)=>I.trim();else if($.ltrim)this.format=(I)=>I.trimLeft();else if($.rtrim)this.format=(I)=>I.trimRight();else this.format=(I)=>I}}A30.ColumnFormatter=M30});var pC=O((B30)=>{Object.defineProperty(B30,"__esModule",{value:!0});B30.NonQuotedColumnParser=void 0;var be0=nz(),T30=r9();class E30{constructor($){this.parserOptions=$,this.columnFormatter=new be0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let{parserOptions:I}=this,U=[],Y=$.nextCharacterToken;for(;Y;Y=$.nextCharacterToken){if(T30.Token.isTokenDelimiter(Y,I)||T30.Token.isTokenRowDelimiter(Y))break;U.push(Y.token),$.advancePastToken(Y)}return this.columnFormatter.format(U.join(""))}}B30.NonQuotedColumnParser=E30});var cC=O((j30)=>{Object.defineProperty(j30,"__esModule",{value:!0});j30.QuotedColumnParser=void 0;var ne0=nz(),_Y=r9();class R30{constructor($){this.parserOptions=$,this.columnFormatter=new ne0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let I=$.cursor,{foundClosingQuote:U,col:Y}=this.gatherDataBetweenQuotes($);if(!U){if($.advanceTo(I),!$.hasMoreData)throw Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${$.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn($),Y}gatherDataBetweenQuotes($){let{parserOptions:I}=this,U=!1,Y=!1,J=[],Q=$.nextCharacterToken;for(;!Y&&Q!==null;Q=$.nextCharacterToken){let K=_Y.Token.isTokenQuote(Q,I);if(!U&&K)U=!0;else if(U)if(_Y.Token.isTokenEscapeCharacter(Q,I)){$.advancePastToken(Q);let q=$.nextCharacterToken;if(q!==null&&(_Y.Token.isTokenQuote(q,I)||_Y.Token.isTokenEscapeCharacter(q,I)))J.push(q.token),Q=q;else if(K)Y=!0;else J.push(Q.token)}else if(K)Y=!0;else J.push(Q.token);$.advancePastToken(Q)}return{col:this.columnFormatter.format(J.join("")),foundClosingQuote:Y}}checkForMalformedColumn($){let{parserOptions:I}=this,{nextNonSpaceToken:U}=$;if(U){let Y=_Y.Token.isTokenDelimiter(U,I),J=_Y.Token.isTokenRowDelimiter(U);if(!(Y||J)){let Q=$.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw Error(`Parse Error: expected: '${I.escapedDelimiter}' OR new line got: '${U.token}'. at '${Q}`)}$.advanceToToken(U)}else if(!$.hasMoreData)$.advancePastLine()}}j30.QuotedColumnParser=R30});var y30=O((S30)=>{Object.defineProperty(S30,"__esModule",{value:!0});S30.ColumnParser=void 0;var pe0=pC(),ce0=cC(),de0=r9();class _30{constructor($){this.parserOptions=$,this.quotedColumnParser=new ce0.QuotedColumnParser($),this.nonQuotedColumnParser=new pe0.NonQuotedColumnParser($)}parse($){let{nextNonSpaceToken:I}=$;if(I!==null&&de0.Token.isTokenQuote(I,this.parserOptions))return $.advanceToToken(I),this.quotedColumnParser.parse($);return this.nonQuotedColumnParser.parse($)}}S30.ColumnParser=_30});var dC=O((SY)=>{Object.defineProperty(SY,"__esModule",{value:!0});SY.ColumnFormatter=SY.QuotedColumnParser=SY.NonQuotedColumnParser=SY.ColumnParser=void 0;var me0=y30();Object.defineProperty(SY,"ColumnParser",{enumerable:!0,get:function(){return me0.ColumnParser}});var le0=pC();Object.defineProperty(SY,"NonQuotedColumnParser",{enumerable:!0,get:function(){return le0.NonQuotedColumnParser}});var oe0=cC();Object.defineProperty(SY,"QuotedColumnParser",{enumerable:!0,get:function(){return oe0.QuotedColumnParser}});var re0=nz();Object.defineProperty(SY,"ColumnFormatter",{enumerable:!0,get:function(){return re0.ColumnFormatter}})});var lC=O((u30)=>{Object.defineProperty(u30,"__esModule",{value:!0});u30.RowParser=void 0;var ae0=dC(),gY=r9(),mC="";class h30{constructor($){this.parserOptions=$,this.columnParser=new ae0.ColumnParser($)}static isEmptyRow($){return $.join(mC).replace(/\s+/g,mC)===mC}parse($){let{parserOptions:I}=this,{hasMoreData:U}=$,Y=$,J=[],Q=this.getStartToken(Y,J);while(Q){if(gY.Token.isTokenRowDelimiter(Q)){if(Y.advancePastToken(Q),!Y.hasMoreCharacters&&gY.Token.isTokenCarriageReturn(Q,I)&&U)return null;return Y.truncateToCursor(),J}if(!this.shouldSkipColumnParse(Y,Q,J)){let K=this.columnParser.parse(Y);if(K===null)return null;J.push(K)}Q=Y.nextNonSpaceToken}if(!U)return Y.truncateToCursor(),J;return null}getStartToken($,I){let U=$.nextNonSpaceToken;if(U!==null&&gY.Token.isTokenDelimiter(U,this.parserOptions))return I.push(""),$.nextNonSpaceToken;return U}shouldSkipColumnParse($,I,U){let{parserOptions:Y}=this;if(gY.Token.isTokenDelimiter(I,Y)){$.advancePastToken(I);let J=$.nextCharacterToken;if(!$.hasMoreCharacters||J!==null&&gY.Token.isTokenRowDelimiter(J))return U.push(""),!0;if(J!==null&&gY.Token.isTokenDelimiter(J,Y))return U.push(""),!0}return!1}}u30.RowParser=h30});var b30=O((f30)=>{Object.defineProperty(f30,"__esModule",{value:!0});f30.Parser=void 0;var se0=nC(),x30=lC(),ee0=r9();class oC{constructor($){this.parserOptions=$,this.rowParser=new x30.RowParser(this.parserOptions)}static removeBOM($){if($&&$.charCodeAt(0)===65279)return $.slice(1);return $}parse($,I){let U=new se0.Scanner({line:oC.removeBOM($),parserOptions:this.parserOptions,hasMoreData:I});if(this.parserOptions.supportsComments)return this.parseWithComments(U);return this.parseWithoutComments(U)}parseWithoutComments($){let I=[],U=!0;while(U)U=this.parseRow($,I);return{line:$.line,rows:I}}parseWithComments($){let{parserOptions:I}=this,U=[];for(let Y=$.nextCharacterToken;Y!==null;Y=$.nextCharacterToken)if(ee0.Token.isTokenComment(Y,I)){if($.advancePastLine()===null)return{line:$.lineFromCursor,rows:U};if(!$.hasMoreCharacters)return{line:$.lineFromCursor,rows:U};$.truncateToCursor()}else if(!this.parseRow($,U))break;return{line:$.line,rows:U}}parseRow($,I){if(!$.nextNonSpaceToken)return!1;let Y=this.rowParser.parse($);if(Y===null)return!1;if(this.parserOptions.ignoreEmpty&&x30.RowParser.isEmptyRow(Y))return!0;return I.push(Y),!0}}f30.Parser=oC});var n30=O((C5)=>{Object.defineProperty(C5,"__esModule",{value:!0});C5.QuotedColumnParser=C5.NonQuotedColumnParser=C5.ColumnParser=C5.Token=C5.Scanner=C5.RowParser=C5.Parser=void 0;var $01=b30();Object.defineProperty(C5,"Parser",{enumerable:!0,get:function(){return $01.Parser}});var I01=lC();Object.defineProperty(C5,"RowParser",{enumerable:!0,get:function(){return I01.RowParser}});var U01=nC();Object.defineProperty(C5,"Scanner",{enumerable:!0,get:function(){return U01.Scanner}});var Y01=r9();Object.defineProperty(C5,"Token",{enumerable:!0,get:function(){return Y01.Token}});var rC=dC();Object.defineProperty(C5,"ColumnParser",{enumerable:!0,get:function(){return rC.ColumnParser}});Object.defineProperty(C5,"NonQuotedColumnParser",{enumerable:!0,get:function(){return rC.NonQuotedColumnParser}});Object.defineProperty(C5,"QuotedColumnParser",{enumerable:!0,get:function(){return rC.QuotedColumnParser}})});var tC=O((c30)=>{Object.defineProperty(c30,"__esModule",{value:!0});c30.CsvParserStream=void 0;var Q01=t("string_decoder"),K01=t("stream"),p30=Z30(),q01=n30();class pz extends K01.Transform{constructor($){super({objectMode:$.objectMode});this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=$,this.parser=new q01.Parser($),this.headerTransformer=new p30.HeaderTransformer($),this.decoder=new Q01.StringDecoder($.encoding),this.rowTransformerValidator=new p30.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform($){return this.rowTransformerValidator.rowTransform=$,this}validate($){return this.rowTransformerValidator.rowValidator=$,this}emit($,...I){if($==="end"){if(!this.endEmitted)this.endEmitted=!0,super.emit("end",this.rowCount);return!1}return super.emit($,...I)}_transform($,I,U){if(this.hasHitRowLimit)return U();let Y=pz.wrapDoneCallback(U);try{let{lines:J}=this,Q=J+this.decoder.write($),K=this.parse(Q,!0);return this.processRows(K,Y)}catch(J){return Y(J)}}_flush($){let I=pz.wrapDoneCallback($);if(this.hasHitRowLimit)return I();try{let U=this.lines+this.decoder.end(),Y=this.parse(U,!1);return this.processRows(Y,I)}catch(U){return I(U)}}parse($,I){if(!$)return[];let{line:U,rows:Y}=this.parser.parse($,I);return this.lines=U,Y}processRows($,I){let U=$.length,Y=(J)=>{let Q=(H)=>{if(H)return I(H);if(J%100===0){setImmediate(()=>Y(J+1));return}return Y(J+1)};if(this.checkAndEmitHeaders(),J>=U||this.hasHitRowLimit)return I();if(this.parsedLineCount+=1,this.shouldSkipLine)return Q();let K=$[J];this.rowCount+=1,this.parsedRowCount+=1;let q=this.rowCount;return this.transformRow(K,(H,G)=>{if(H)return this.rowCount-=1,Q(H);if(!G)return Q(Error("expected transform result"));if(!G.isValid)this.emit("data-invalid",G.row,q,G.reason);else if(G.row)return this.pushRow(G.row,Q);return Q()})};Y(0)}transformRow($,I){try{this.headerTransformer.transform($,(U,Y)=>{if(U)return I(U);if(!Y)return I(Error("Expected result from header transform"));if(!Y.isValid){if(this.shouldEmitRows)return I(null,{isValid:!1,row:$});return this.skipRow(I)}if(Y.row){if(this.shouldEmitRows)return this.rowTransformerValidator.transformAndValidate(Y.row,I);return this.skipRow(I)}return this.rowCount-=1,this.parsedRowCount-=1,I(null,{row:null,isValid:!0})})}catch(U){I(U)}}checkAndEmitHeaders(){if(!this.headersEmitted&&this.headerTransformer.headers)this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers)}skipRow($){return this.rowCount-=1,$(null,{row:null,isValid:!0})}pushRow($,I){try{if(!this.parserOptions.objectMode)this.push(JSON.stringify($));else this.push($);I()}catch(U){I(U)}}static wrapDoneCallback($){let I=!1;return(U,...Y)=>{if(U){if(I)throw U;I=!0,$(U);return}$(...Y)}}}c30.CsvParserStream=pz});var l30=O((V4)=>{var m30=V4&&V4.__createBinding||(Object.create?function($,I,U,Y){if(Y===void 0)Y=U;Object.defineProperty($,Y,{enumerable:!0,get:function(){return I[U]}})}:function($,I,U,Y){if(Y===void 0)Y=U;$[Y]=I[U]}),H01=V4&&V4.__setModuleDefault||(Object.create?function($,I){Object.defineProperty($,"default",{enumerable:!0,value:I})}:function($,I){$.default=I}),G01=V4&&V4.__importStar||function($){if($&&$.__esModule)return $;var I={};if($!=null){for(var U in $)if(U!=="default"&&Object.prototype.hasOwnProperty.call($,U))m30(I,$,U)}return H01(I,$),I},W01=V4&&V4.__exportStar||function($,I){for(var U in $)if(U!=="default"&&!Object.prototype.hasOwnProperty.call(I,U))m30(I,$,U)};Object.defineProperty(V4,"__esModule",{value:!0});V4.parseString=V4.parseFile=V4.parseStream=V4.parse=V4.ParserOptions=V4.CsvParserStream=void 0;var w01=G01(t("fs")),V01=t("stream"),cz=FC(),dz=tC();W01(NC(),V4);var Z01=tC();Object.defineProperty(V4,"CsvParserStream",{enumerable:!0,get:function(){return Z01.CsvParserStream}});var z01=FC();Object.defineProperty(V4,"ParserOptions",{enumerable:!0,get:function(){return z01.ParserOptions}});V4.parse=($)=>new dz.CsvParserStream(new cz.ParserOptions($));V4.parseStream=($,I)=>$.pipe(new dz.CsvParserStream(new cz.ParserOptions(I)));V4.parseFile=($,I={})=>w01.createReadStream($).pipe(new dz.CsvParserStream(new cz.ParserOptions(I)));V4.parseString=($,I)=>{let U=new V01.Readable;return U.push($),U.push(null),U.pipe(new dz.CsvParserStream(new cz.ParserOptions(I)))}});var o30=O((N6)=>{Object.defineProperty(N6,"__esModule",{value:!0});N6.CsvParserStream=N6.ParserOptions=N6.parseFile=N6.parseStream=N6.parseString=N6.parse=N6.FormatterOptions=N6.CsvFormatterStream=N6.writeToPath=N6.writeToString=N6.writeToBuffer=N6.writeToStream=N6.write=N6.format=void 0;var t9=z70();Object.defineProperty(N6,"format",{enumerable:!0,get:function(){return t9.format}});Object.defineProperty(N6,"write",{enumerable:!0,get:function(){return t9.write}});Object.defineProperty(N6,"writeToStream",{enumerable:!0,get:function(){return t9.writeToStream}});Object.defineProperty(N6,"writeToBuffer",{enumerable:!0,get:function(){return t9.writeToBuffer}});Object.defineProperty(N6,"writeToString",{enumerable:!0,get:function(){return t9.writeToString}});Object.defineProperty(N6,"writeToPath",{enumerable:!0,get:function(){return t9.writeToPath}});Object.defineProperty(N6,"CsvFormatterStream",{enumerable:!0,get:function(){return t9.CsvFormatterStream}});Object.defineProperty(N6,"FormatterOptions",{enumerable:!0,get:function(){return t9.FormatterOptions}});var yY=l30();Object.defineProperty(N6,"parse",{enumerable:!0,get:function(){return yY.parse}});Object.defineProperty(N6,"parseString",{enumerable:!0,get:function(){return yY.parseString}});Object.defineProperty(N6,"parseStream",{enumerable:!0,get:function(){return yY.parseStream}});Object.defineProperty(N6,"parseFile",{enumerable:!0,get:function(){return yY.parseFile}});Object.defineProperty(N6,"ParserOptions",{enumerable:!0,get:function(){return yY.ParserOptions}});Object.defineProperty(N6,"CsvParserStream",{enumerable:!0,get:function(){return yY.CsvParserStream}})});var r30=O((aC,sC)=>{(function($,I){typeof aC=="object"&&typeof sC<"u"?sC.exports=I():typeof define=="function"&&define.amd?define(I):($=typeof globalThis<"u"?globalThis:$||self).dayjs_plugin_customParseFormat=I()})(aC,function(){var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},I=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,U=/\d/,Y=/\d\d/,J=/\d\d?/,Q=/\d*[^-_:/,()\s\d]+/,K={},q=function(X){return(X=+X)+(X>68?1900:2000)},H=function(X){return function(L){this[X]=+L}},G=[/[+-]\d\d:?(\d\d)?|Z/,function(X){(this.zone||(this.zone={})).offset=function(L){if(!L)return 0;if(L==="Z")return 0;var D=L.match(/([+-]|\d\d)/g),F=60*D[1]+(+D[2]||0);return F===0?0:D[0]==="+"?-F:F}(X)}],W=function(X){var L=K[X];return L&&(L.indexOf?L:L.s.concat(L.f))},w=function(X,L){var D,F=K.meridiem;if(F){for(var P=1;P<=24;P+=1)if(X.indexOf(F(P,0,L))>-1){D=P>12;break}}else D=X===(L?"pm":"PM");return D},Z={A:[Q,function(X){this.afternoon=w(X,!1)}],a:[Q,function(X){this.afternoon=w(X,!0)}],Q:[U,function(X){this.month=3*(X-1)+1}],S:[U,function(X){this.milliseconds=100*+X}],SS:[Y,function(X){this.milliseconds=10*+X}],SSS:[/\d{3}/,function(X){this.milliseconds=+X}],s:[J,H("seconds")],ss:[J,H("seconds")],m:[J,H("minutes")],mm:[J,H("minutes")],H:[J,H("hours")],h:[J,H("hours")],HH:[J,H("hours")],hh:[J,H("hours")],D:[J,H("day")],DD:[Y,H("day")],Do:[Q,function(X){var L=K.ordinal,D=X.match(/\d+/);if(this.day=D[0],L)for(var F=1;F<=31;F+=1)L(F).replace(/\[|\]/g,"")===X&&(this.day=F)}],w:[J,H("week")],ww:[Y,H("week")],M:[J,H("month")],MM:[Y,H("month")],MMM:[Q,function(X){var L=W("months"),D=(W("monthsShort")||L.map(function(F){return F.slice(0,3)})).indexOf(X)+1;if(D<1)throw Error();this.month=D%12||D}],MMMM:[Q,function(X){var L=W("months").indexOf(X)+1;if(L<1)throw Error();this.month=L%12||L}],Y:[/[+-]?\d+/,H("year")],YY:[Y,function(X){this.year=q(X)}],YYYY:[/\d{4}/,H("year")],Z:G,ZZ:G};function V(X){var L,D;L=X,D=K&&K.formats;for(var F=(X=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,j,p){var n=p&&p.toUpperCase();return j||D[p]||$[p]||D[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,i,b){return i||b.slice(1)})})).match(I),P=F.length,T=0;T-1)return new Date((B==="X"?1000:1)*U0);var r=V(B)(U0),J0=r.year,w0=r.month,A0=r.day,j0=r.hours,q1=r.minutes,x0=r.seconds,I1=r.milliseconds,M0=r.zone,Q0=r.week,R0=new Date,U1=A0||(J0||w0?1:R0.getDate()),O1=J0||R0.getFullYear(),i4=0;J0&&!w0||(i4=w0>0?w0-1:R0.getMonth());var f6,F$=j0||0,i6=q1||0,P6=x0||0,N$=I1||0;return M0?new Date(Date.UTC(O1,i4,U1,F$,i6,P6,N$+60*M0.offset*1000)):k?new Date(Date.UTC(O1,i4,U1,F$,i6,P6,N$)):(f6=new Date(O1,i4,U1,F$,i6,P6,N$),Q0&&(f6=c(f6).week(Q0).toDate()),f6)}catch(Y$){return new Date("")}}(A,y,R,D),this.init(),n&&n!==!0&&(this.$L=this.locale(n).$L),p&&A!=this.format(y)&&(this.$d=new Date("")),K={}}else if(y instanceof Array)for(var S=y.length,i=1;i<=S;i+=1){x[1]=y[i-1];var b=D.apply(this,x);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}i===S&&(this.$d=new Date(""))}else P.call(this,T)}}})});var t30=O((eC,$_)=>{(function($,I){typeof eC=="object"&&typeof $_<"u"?$_.exports=I():typeof define=="function"&&define.amd?define(I):($=typeof globalThis<"u"?globalThis:$||self).dayjs_plugin_utc=I()})(eC,function(){var $="minute",I=/[+-]\d\d(?::?\d\d)?/g,U=/([+-]|\d\d)/g;return function(Y,J,Q){var K=J.prototype;Q.utc=function(V){var X={date:V,utc:!0,args:arguments};return new J(X)},K.utc=function(V){var X=Q(this.toDate(),{locale:this.$L,utc:!0});return V?X.add(this.utcOffset(),$):X},K.local=function(){return Q(this.toDate(),{locale:this.$L,utc:!1})};var q=K.parse;K.parse=function(V){V.utc&&(this.$u=!0),this.$utils().u(V.$offset)||(this.$offset=V.$offset),q.call(this,V)};var H=K.init;K.init=function(){if(this.$u){var V=this.$d;this.$y=V.getUTCFullYear(),this.$M=V.getUTCMonth(),this.$D=V.getUTCDate(),this.$W=V.getUTCDay(),this.$H=V.getUTCHours(),this.$m=V.getUTCMinutes(),this.$s=V.getUTCSeconds(),this.$ms=V.getUTCMilliseconds()}else H.call(this)};var G=K.utcOffset;K.utcOffset=function(V,X){var L=this.$utils().u;if(L(V))return this.$u?0:L(this.$offset)?G.call(this):this.$offset;if(typeof V=="string"&&(V=function(T){T===void 0&&(T="");var A=T.match(I);if(!A)return null;var R=(""+A[0]).match(U)||["-",0,0],x=R[0],y=60*+R[1]+ +R[2];return y===0?0:x==="+"?y:-y}(V),V===null))return this;var D=Math.abs(V)<=16?60*V:V;if(D===0)return this.utc(X);var F=this.clone();if(X)return F.$offset=D,F.$u=!1,F;var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(F=this.local().add(D+P,$)).$offset=D,F.$x.$localOffset=P,F};var W=K.format;K.format=function(V){var X=V||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return W.call(this,X)},K.valueOf=function(){var V=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-60000*V},K.isUTC=function(){return!!this.$u},K.toISOString=function(){return this.toDate().toISOString()},K.toString=function(){return this.toDate().toUTCString()};var w=K.toDate;K.toDate=function(V){return V==="s"&&this.$offset?Q(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():w.call(this)};var Z=K.diff;K.diff=function(V,X,L){if(V&&this.$u===V.$u)return Z.call(this,V,X,L);var D=this.local(),F=Q(V).local();return Z.call(D,F,X,L)}}})});var a30=O((I_,U_)=>{(function($,I){typeof I_=="object"&&typeof U_<"u"?U_.exports=I():typeof define=="function"&&define.amd?define(I):($=typeof globalThis<"u"?globalThis:$||self).dayjs=I()})(I_,function(){var $=1000,I=60000,U=3600000,Y="millisecond",J="second",Q="minute",K="hour",q="day",H="week",G="month",W="quarter",w="year",Z="date",V="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var i=["th","st","nd","rd"],b=S%100;return"["+S+(i[(b-20)%10]||i[b]||i[0])+"]"}},F=function(S,i,b){var U0=String(S);return!U0||U0.length>=i?S:""+Array(i+1-U0.length).join(b)+S},P={s:F,z:function(S){var i=-S.utcOffset(),b=Math.abs(i),U0=Math.floor(b/60),B=b%60;return(i<=0?"+":"-")+F(U0,2,"0")+":"+F(B,2,"0")},m:function S(i,b){if(i.date()1)return S(c[0])}else{var r=i.name;A[r]=i,B=r}return!U0&&B&&(T=B),B||!U0&&T},f=function(S,i){if(x(S))return S.clone();var b=typeof i=="object"?i:{};return b.date=S,b.args=arguments,new p(b)},j=P;j.l=y,j.i=x,j.w=function(S,i){return f(S,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var p=function(){function S(b){this.$L=y(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[R]=!0}var i=S.prototype;return i.parse=function(b){this.$d=function(U0){var{date:B,utc:k}=U0;if(B===null)return new Date(NaN);if(j.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var c=B.match(X);if(c){var r=c[2]-1||0,J0=(c[7]||"0").substring(0,3);return k?new Date(Date.UTC(c[1],r,c[3]||1,c[4]||0,c[5]||0,c[6]||0,J0)):new Date(c[1],r,c[3]||1,c[4]||0,c[5]||0,c[6]||0,J0)}}return new Date(B)}(b),this.init()},i.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},i.$utils=function(){return j},i.isValid=function(){return this.$d.toString()!==V},i.isSame=function(b,U0){var B=f(b);return this.startOf(U0)<=B&&B<=this.endOf(U0)},i.isAfter=function(b,U0){return f(b){var s30=t("fs"),e30=o30(),L01=r30(),D01=t30(),xK=a30().extend(L01).extend(D01),O01=NK(),{fs:{exists:F01}}=O6(),N01={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};class $I0{constructor($){this.workbook=$,this.worksheet=null}async readFile($,I){if(I=I||{},!await F01($))throw Error(`File not found: ${$}`);let U=s30.createReadStream($),Y=await this.read(U,I);return U.close(),Y}read($,I){return I=I||{},new Promise((U,Y)=>{let J=this.workbook.addWorksheet(I.sheetName),Q=I.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],K=I.map||function(H){if(H==="")return null;let G=Number(H);if(!Number.isNaN(G)&&G!==1/0)return G;let W=Q.reduce((Z,V)=>{if(Z)return Z;let X=xK(H,V,!0);if(X.isValid())return X;return null},null);if(W)return new Date(W.valueOf());let w=N01[H];if(w!==void 0)return w;return H},q=e30.parse(I.parserOptions).on("data",(H)=>{J.addRow(H.map(K))}).on("end",()=>{q.emit("worksheet",J)});q.on("worksheet",U).on("error",Y),$.pipe(q)})}createInputStream(){throw Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write($,I){return new Promise((U,Y)=>{I=I||{};let J=this.workbook.getWorksheet(I.sheetName||I.sheetId),Q=e30.format(I.formatterOptions);$.on("finish",()=>{U()}),Q.on("error",Y),Q.pipe($);let{dateFormat:K,dateUTC:q}=I,H=I.map||((w)=>{if(w){if(w.text||w.hyperlink)return w.hyperlink||w.text||"";if(w.formula||w.result)return w.result||"";if(w instanceof Date){if(K)return q?xK.utc(w).format(K):xK(w).format(K);return q?xK.utc(w).format():xK(w).format()}if(w.error)return w.error;if(typeof w==="object")return JSON.stringify(w)}return w}),G=I.includeEmptyRows===void 0||I.includeEmptyRows,W=1;if(J)J.eachRow((w,Z)=>{if(G)while(W++{var YI0=Go(),M01=GB(),A01=$C(),P01=UI0();class JI0{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new M01}get xlsx(){if(!this._xlsx)this._xlsx=new A01(this);return this._xlsx}get csv(){if(!this._csv)this._csv=new P01(this);return this._csv}get nextId(){for(let $=1;$(q&&q.orderNo)>K?q.orderNo:K,0),J=Object.assign({},I,{id:U,name:$,orderNo:Y+1,workbook:this}),Q=new YI0(J);return this._worksheets[U]=Q,Q}removeWorksheetEx($){delete this._worksheets[$.id]}removeWorksheet($){let I=this.getWorksheet($);if(I)I.destroy()}getWorksheet($){if($===void 0)return this._worksheets.find(Boolean);if(typeof $==="number")return this._worksheets[$];if(typeof $==="string")return this._worksheets.find((I)=>I&&I.name===$);return}get worksheets(){return this._worksheets.slice(1).sort(($,I)=>$.orderNo-I.orderNo).filter(Boolean)}eachSheet($){this.worksheets.forEach((I)=>{$(I,I.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage($){let I=this.media.length;return this.media.push(Object.assign({},$,{type:"image"})),I}getImage($){return this.media[$]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(($)=>$.model),sheets:this.worksheets.map(($)=>$.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model($){this.creator=$.creator,this.lastModifiedBy=$.lastModifiedBy,this.lastPrinted=$.lastPrinted,this.created=$.created,this.modified=$.modified,this.company=$.company,this.manager=$.manager,this.title=$.title,this.subject=$.subject,this.keywords=$.keywords,this.category=$.category,this.description=$.description,this.language=$.language,this.revision=$.revision,this.contentStatus=$.contentStatus,this.properties=$.properties,this.calcProperties=$.calcProperties,this._worksheets=[],$.worksheets.forEach((I)=>{let{id:U,name:Y,state:J}=I,Q=$.sheets&&$.sheets.findIndex((q)=>q.id===U),K=this._worksheets[U]=new YI0({id:U,name:Y,orderNo:Q,state:J,workbook:this});K.model=I}),this._definedNames.model=$.definedNames,this.views=$.views,this._themes=$.themes,this.media=$.media||[]}}QI0.exports=JI0});var GI0=O((mv1,HI0)=>{var T01=$C();class qI0{constructor($){this.model=$}get xlsx(){if(!this._xlsx)this._xlsx=new T01(this);return this._xlsx}}HI0.exports=qI0});var wI0=O((lv1,WI0)=>{var E01=typeof process==="object"&&process&&process.platform==="win32";WI0.exports=E01?{sep:"\\"}:{sep:"/"}});var Y_=O((ov1,XI0)=>{XI0.exports=ZI0;function ZI0($,I,U){if($ instanceof RegExp)$=VI0($,U);if(I instanceof RegExp)I=VI0(I,U);var Y=zI0($,I,U);return Y&&{start:Y[0],end:Y[1],pre:U.slice(0,Y[0]),body:U.slice(Y[0]+$.length,Y[1]),post:U.slice(Y[1]+I.length)}}function VI0($,I){var U=I.match($);return U?U[0]:null}ZI0.range=zI0;function zI0($,I,U){var Y,J,Q,K,q,H=U.indexOf($),G=U.indexOf(I,H+1),W=H;if(H>=0&&G>0){if($===I)return[H,G];Y=[],Q=U.length;while(W>=0&&!q){if(W==H)Y.push(W),H=U.indexOf($,W+1);else if(Y.length==1)q=[Y.pop(),G];else{if(J=Y.pop(),J=0?H:G}if(Y.length)q=[Q,K]}return q}});var PI0=O((rv1,AI0)=>{var LI0=Y_();AI0.exports=C01;var DI0="\x00SLASH"+Math.random()+"\x00",OI0="\x00OPEN"+Math.random()+"\x00",K_="\x00CLOSE"+Math.random()+"\x00",FI0="\x00COMMA"+Math.random()+"\x00",NI0="\x00PERIOD"+Math.random()+"\x00",B01=1e5,v01=4000000;function J_($){return parseInt($,10)==$?parseInt($,10):$.charCodeAt(0)}function R01($){return $.split("\\\\").join(DI0).split("\\{").join(OI0).split("\\}").join(K_).split("\\,").join(FI0).split("\\.").join(NI0)}function j01($){return $.split(DI0).join("\\").split(OI0).join("{").split(K_).join("}").split(FI0).join(",").split(NI0).join(".")}function MI0($){if(!$)return[""];var I=[],U=LI0("{","}",$);if(!U)return $.split(",");var{pre:Y,body:J,post:Q}=U,K=Y.split(",");K[K.length-1]+="{"+J+"}";var q=MI0(Q);if(Q.length)K[K.length-1]+=q.shift(),K.push.apply(K,q);return I.push.apply(I,K),I}function C01($,I){if(!$)return[];I=I||{};var U=I.max==null?B01:I.max,Y=I.maxLength==null?v01:I.maxLength;if($.substr(0,2)==="{}")$="\\{\\}"+$.substr(2);return Q_(R01($),U,Y,!0).map(j01)}function _01($){return"{"+$+"}"}function S01($){return/^-?0\d/.test($)}function g01($,I){return $<=I}function y01($,I){return $>=I}function fK($,I,U,Y,J,Q){var K=[],q=0;for(var H=0;H<$.length;H++)for(var G=0;G=Y)return K;var W=$[H]+I+U[G];if(Q&&!W)continue;if(q+W.length>J)return K;K.push(W),q+=W.length}return K}function h01($,I,U,Y){var J=$.split(/\.\./),Q=[];if(J[0]===void 0||J[1]===void 0)return Q;var K=J_(J[0]),q=J_(J[1]),H=Math.max(J[0].length,J[1].length),G=J.length===3&&J[2]!==void 0?Math.max(Math.abs(J_(J[2])),1):1,W=g01,w=q0){var F=Array(D+1).join("0");if(X<0)L="-"+F+L.slice(1);else L=F+L}}if(V+L.length>Y)break;Q.push(L),V+=L.length}return Q}function Q_($,I,U,Y){var J=[""],Q=!1,K=!0;for(;;){let A=LI0("{","}",$);if(!A)return fK(J,$,[""],I,U,Q);let R=A.pre;if(/\$$/.test(R)){if(J=fK(J,R+"{"+A.body+"}",[""],I,U,Q&&!A.post.length),K=!1,!A.post.length)break;$=A.post;continue}var q=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(A.body),H=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(A.body),G=q||H,W=A.body.indexOf(",")>=0;if(!G&&!W){if(A.post.match(/,(?!,).*\}/)){$=A.pre+"{"+A.body+K_+A.post,Y=!0;continue}return fK(J,R+"{"+A.body+"}"+A.post,[""],I,U,Q)}if(K)Q=Y&&!G,K=!1;var w;if(G)w=h01(A.body,H,I,U);else{var Z=MI0(A.body);if(Z.length===1&&Z[0]!==void 0){if(Z=Q_(Z[0],I,U,!1).map(_01),Z.length===1){if(J=fK(J,R+Z[0],[""],I,U,Q&&!A.post.length),!A.post.length)break;$=A.post;continue}}var V=Q&&!A.post.length&&!R;for(var X=0;V&&X=I||L+T.length>U)break $;w.push(T),L+=T.length}}}if(J=fK(J,R,w,I,U,Q&&!A.post.length),!A.post.length)break;$=A.post}return J}});var jI0=O((tv1,w_)=>{var Z$=w_.exports=($,I,U={})=>{if(mz(I),!U.nocomment&&I.charAt(0)==="#")return!1;return new iK(I,U).match($)};w_.exports=Z$;var G_=wI0();Z$.sep=G_.sep;var y6=Symbol("globstar **");Z$.GLOBSTAR=y6;var u01=PI0(),TI0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},W_="[^/]",q_=W_+"*?",k01="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",x01="(?:(?!(?:\\/|^)\\.).)*?",vI0=($)=>$.split("").reduce((I,U)=>{return I[U]=!0,I},{}),EI0=vI0("().*{}+?[]^$\\!"),f01=vI0("[.("),BI0=/\/+/;Z$.filter=($,I={})=>(U,Y,J)=>Z$(U,$,I);var a9=($,I={})=>{let U={};return Object.keys($).forEach((Y)=>U[Y]=$[Y]),Object.keys(I).forEach((Y)=>U[Y]=I[Y]),U};Z$.defaults=($)=>{if(!$||typeof $!=="object"||!Object.keys($).length)return Z$;let I=Z$,U=(Y,J,Q)=>I(Y,J,a9($,Q));return U.Minimatch=class extends I.Minimatch{constructor(J,Q){super(J,a9($,Q))}},U.Minimatch.defaults=(Y)=>I.defaults(a9($,Y)).Minimatch,U.filter=(Y,J)=>I.filter(Y,a9($,J)),U.defaults=(Y)=>I.defaults(a9($,Y)),U.makeRe=(Y,J)=>I.makeRe(Y,a9($,J)),U.braceExpand=(Y,J)=>I.braceExpand(Y,a9($,J)),U.match=(Y,J,Q)=>I.match(Y,J,a9($,Q)),U};Z$.braceExpand=($,I)=>RI0($,I);var RI0=($,I={})=>{if(mz($),I.nobrace||!/\{(?:(?!\{).)*\}/.test($))return[$];return u01($)},i01=65536,mz=($)=>{if(typeof $!=="string")throw TypeError("invalid pattern");if($.length>i01)throw TypeError("pattern is too long")},H_=Symbol("subparse");Z$.makeRe=($,I)=>new iK($,I||{}).makeRe();Z$.match=($,I,U={})=>{let Y=new iK(I,U);if($=$.filter((J)=>Y.match(J)),Y.options.nonull&&!$.length)$.push(I);return $};var b01=($)=>$.replace(/\\(.)/g,"$1"),n01=($)=>$.replace(/\\([^-\]])/g,"$1"),p01=($)=>$.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c01=($)=>$.replace(/[[\]\\]/g,"\\$&");class iK{constructor($,I){if(mz($),!I)I={};if(this.options=I,this.maxGlobstarRecursion=I.maxGlobstarRecursion!==void 0?I.maxGlobstarRecursion:200,this.set=[],this.pattern=$,this.windowsPathsNoEscape=!!I.windowsPathsNoEscape||I.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!I.partial,this.make()}debug(){}make(){let $=this.pattern,I=this.options;if(!I.nocomment&&$.charAt(0)==="#"){this.comment=!0;return}if(!$){this.empty=!0;return}this.parseNegate();let U=this.globSet=this.braceExpand();if(I.debug)this.debug=(...Y)=>console.error(...Y);this.debug(this.pattern,U),U=this.globParts=U.map((Y)=>Y.split(BI0)),this.debug(this.pattern,U),U=U.map((Y,J,Q)=>Y.map(this.parse,this)),this.debug(this.pattern,U),U=U.filter((Y)=>Y.indexOf(!1)===-1),this.debug(this.pattern,U),this.set=U}parseNegate(){if(this.options.nonegate)return;let $=this.pattern,I=!1,U=0;for(let Y=0;Y<$.length&&$.charAt(Y)==="!";Y++)I=!I,U++;if(U)this.pattern=$.slice(U);this.negate=I}matchOne($,I,U){if(I.indexOf(y6)!==-1)return this._matchGlobstar($,I,U,0,0);return this._matchOne($,I,U,0,0)}_matchGlobstar($,I,U,Y,J){let Q=-1;for(let F=J;F=0;F--)if(I[F]===y6){K=F;break}let q=I.slice(J,Q),H=U?I.slice(Q+1):I.slice(Q+1,K),G=U?[]:I.slice(K+1);if(q.length){let F=$.slice(Y,Y+q.length);if(!this._matchOne(F,q,U,0,0))return!1;Y+=q.length}let W=0;if(G.length){if(G.length+Y>$.length)return!1;let F=$.length-G.length;if(this._matchOne($,G,U,F,0))W=G.length;else{if($[$.length-1]!==""||Y+G.length===$.length)return!1;if(!this._matchOne($,G,U,F-1,0))return!1;W=G.length+1}}if(!H.length){let F=!!W;for(let P=Y;P<$.length-W;P++){let T=String($[P]);if(F=!0,T==="."||T===".."||!this.options.dot&&T.charAt(0)===".")return!1}return U||F}let w=[[[],0]],Z=w[0],V=0,X=[0];for(let F of H)if(F===y6)X.push(V),Z=[[],0],w.push(Z);else Z[0].push(F),V++;let L=w.length-1,D=$.length-W;for(let F of w)F[1]=D-(X[L--]+F[0].length);return!!this._matchGlobStarBodySections($,w,Y,0,U,0,!!W)}_matchGlobStarBodySections($,I,U,Y,J,Q,K){let q=I[Y];if(!q){for(let W=U;W<$.length;W++){K=!0;let w=$[W];if(w==="."||w===".."||!this.options.dot&&w.charAt(0)===".")return!1}return K}let[H,G]=q;while(U<=G){if(this._matchOne($.slice(0,U+H.length),H,J,U,0)&&QL?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",P=(x)=>x.charAt(0)==="."?"":U.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",T=()=>{if(H){switch(H){case"*":Y+=q_,J=!0;break;case"?":Y+=W_,J=!0;break;default:Y+="\\"+H;break}this.debug("clearStateChar %j %j",H,Y),H=!1}};for(let x=0,y;x<$.length&&(y=$.charAt(x));x++){if(this.debug("%s\t%s %s %j",$,x,Y,y),Q){if(y==="/")return!1;if(EI0[y])Y+="\\";Y+=y,Q=!1;continue}switch(y){case"/":return!1;case"\\":if(G&&$.charAt(x+1)==="-"){Y+=y;continue}T(),Q=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",$,x,Y,y),G){if(this.debug(" in class"),y==="!"&&x===w+1)y="^";Y+=y;continue}if(y==="*"&&H==="*")continue;if(this.debug("call clearStateChar %j",H),T(),H=y,U.noext)T();continue;case"(":{if(G){Y+="(";continue}if(!H){Y+="\\(";continue}let f={type:H,start:x-1,reStart:Y.length,open:TI0[H].open,close:TI0[H].close};if(this.debug(this.pattern,"\t",f),K.push(f),Y+=f.open,f.start===0&&f.type!=="!")L=!0,Y+=P($.slice(x+1));this.debug("plType %j %j",H,Y),H=!1;continue}case")":{let f=K[K.length-1];if(G||!f){Y+="\\)";continue}if(K.pop(),T(),J=!0,V=f,Y+=V.close,V.type==="!")q.push(Object.assign(V,{reEnd:Y.length}));continue}case"|":{let f=K[K.length-1];if(G||!f){Y+="\\|";continue}if(T(),Y+="|",f.start===0&&f.type!=="!")L=!0,Y+=P($.slice(x+1));continue}case"[":if(T(),G){Y+="\\"+y;continue}G=!0,w=x,W=Y.length,Y+=y;continue;case"]":if(x===w+1||!G){Y+="\\"+y;continue}Z=$.substring(w+1,x);try{RegExp("["+c01(n01(Z))+"]"),Y+=y}catch(f){Y=Y.substring(0,W)+"(?:$.)"}J=!0,G=!1;continue;default:if(T(),EI0[y]&&!(y==="^"&&G))Y+="\\";Y+=y;break}}if(G)Z=$.slice(w+1),X=this.parse(Z,H_),Y=Y.substring(0,W)+"\\["+X[0],J=J||X[1];for(V=K.pop();V;V=K.pop()){let x;x=Y.slice(V.reStart+V.open.length),this.debug("setting tail",Y,V),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(f,j,p)=>{if(!p)p="\\";return j+j+p+"|"}),this.debug(`tail=%j + %s`,x,x,V,Y);let y=V.type==="*"?q_:V.type==="?"?W_:"\\"+V.type;J=!0,Y=Y.slice(0,V.reStart)+y+"\\("+x}if(T(),Q)Y+="\\\\";let A=f01[Y.charAt(0)];for(let x=q.length-1;x>-1;x--){let y=q[x],f=Y.slice(0,y.reStart),j=Y.slice(y.reStart,y.reEnd-8),p=Y.slice(y.reEnd),n=Y.slice(y.reEnd-8,y.reEnd)+p,S=f.split(")").length,i=f.split("(").length-S,b=p;for(let B=0;B{return Q=Q.map((K)=>typeof K==="string"?p01(K):K===y6?y6:K._src).reduce((K,q)=>{if(!(K[K.length-1]===y6&&q===y6))K.push(q);return K},[]),Q.forEach((K,q)=>{if(K!==y6||Q[q-1]===y6)return;if(q===0)if(Q.length>1)Q[q+1]="(?:\\/|"+U+"\\/)?"+Q[q+1];else Q[q]=U;else if(q===Q.length-1)Q[q-1]+="(?:\\/|"+U+")?";else Q[q-1]+="(?:\\/|\\/"+U+"\\/)"+Q[q+1],Q[q+1]=y6}),Q.filter((K)=>K!==y6).join("/")}).join("|");if(J="^(?:"+J+")$",this.negate)J="^(?!"+J+").*$";try{this.regexp=new RegExp(J,Y)}catch(Q){this.regexp=!1}return this.regexp}match($,I=this.partial){if(this.debug("match",$,this.pattern),this.comment)return!1;if(this.empty)return $==="";if($==="/"&&I)return!0;let U=this.options;if(G_.sep!=="/")$=$.split(G_.sep).join("/");$=$.split(BI0),this.debug(this.pattern,"split",$);let Y=this.set;this.debug(this.pattern,"set",Y);let J;for(let Q=$.length-1;Q>=0;Q--)if(J=$[Q],J)break;for(let Q=0;Q{gI0.exports=SI0;var Z_=t("fs"),{EventEmitter:d01}=t("events"),{Minimatch:V_}=jI0(),{resolve:m01}=t("path");function l01($,I){return new Promise((U,Y)=>{Z_.readdir($,{withFileTypes:!0},(J,Q)=>{if(J)switch(J.code){case"ENOTDIR":if(I)Y(J);else U([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":U([]);break;case"ELOOP":default:Y(J);break}else U(Q)})})}function CI0($,I){return new Promise((U,Y)=>{(I?Z_.stat:Z_.lstat)($,(Q,K)=>{if(Q)switch(Q.code){case"ENOENT":if(I)U(CI0($,!1));else U(null);break;default:U(null);break}else U(K)})})}async function*_I0($,I,U,Y,J,Q){let K=await l01(I+$,Q);for(let q of K){let H=q.name;if(H===void 0)H=q,Y=!0;let G=$+"/"+H,W=G.slice(1),w=I+"/"+W,Z=null;if(Y||U)Z=await CI0(w,U);if(!Z&&q.name!==void 0)Z=q;if(Z===null)Z={isDirectory:()=>!1};if(Z.isDirectory()){if(!J(W))yield{relative:W,absolute:w,stats:Z},yield*_I0(G,I,U,Y,J,!1)}else yield{relative:W,absolute:w,stats:Z}}}async function*o01($,I,U,Y){yield*_I0("",$,I,U,Y,!0)}function r01($){return{pattern:$.pattern,dot:!!$.dot,noglobstar:!!$.noglobstar,matchBase:!!$.matchBase,nocase:!!$.nocase,ignore:$.ignore,skip:$.skip,follow:!!$.follow,stat:!!$.stat,nodir:!!$.nodir,mark:!!$.mark,silent:!!$.silent,absolute:!!$.absolute}}class z_ extends d01{constructor($,I,U){super();if(typeof I==="function")U=I,I=null;if(this.options=r01(I||{}),this.matchers=[],this.options.pattern){let Y=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=Y.map((J)=>new V_(J,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let Y=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=Y.map((J)=>new V_(J,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let Y=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=Y.map((J)=>new V_(J,{dot:!0}))}if(this.iterator=o01(m01($||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,U)this._matches=[],this.on("match",(Y)=>this._matches.push(this.options.absolute?Y.absolute:Y.relative)),this.on("error",(Y)=>U(Y)),this.on("end",()=>U(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory($){return this.skipMatchers.some((I)=>I.match($))}_fileMatches($,I){let U=$+(I?"/":"");return(this.matchers.length===0||this.matchers.some((Y)=>Y.match(U)))&&!this.ignoreMatchers.some((Y)=>Y.match(U))&&(!this.options.nodir||!I)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then(($)=>{if(!$.done){let I=$.value.stats.isDirectory();if(this._fileMatches($.value.relative,I)){let U=$.value.relative,Y=$.value.absolute;if(this.options.mark&&I)U+="/",Y+="/";if(this.options.stat)this.emit("match",{relative:U,absolute:Y,stat:$.value.stats});else this.emit("match",{relative:U,absolute:Y})}this._next(this.iterator)}else this.emit("end")}).catch(($)=>{if(this.abort(),this.emit("error",$),!$.code&&!this.options.silent)console.error($)});else this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){if(this.paused=!1,this.inactive)this.inactive=!1,this._next()}}function SI0($,I,U){return new z_($,I,U)}SI0.ReaddirGlob=z_});var uI0=O((lz,hI0)=>{(function($,I){typeof lz==="object"&&typeof hI0<"u"?I(lz):typeof define==="function"&&define.amd?define(["exports"],I):($=typeof globalThis<"u"?globalThis:$||self,I($.async={}))})(lz,function($){function I(E,...v){return(...h)=>E(...v,...h)}function U(E){return function(...v){var h=v.pop();return E.call(this,v,h)}}var Y=typeof queueMicrotask==="function"&&queueMicrotask,J=typeof setImmediate==="function"&&setImmediate,Q=typeof process==="object"&&typeof process.nextTick==="function";function K(E){setTimeout(E,0)}function q(E){return(v,...h)=>E(()=>v(...h))}var H;if(Y)H=queueMicrotask;else if(J)H=setImmediate;else if(Q)H=process.nextTick;else H=K;var G=q(H);function W(E){if(V(E))return function(...v){let h=v.pop(),d=E.apply(this,v);return w(d,h)};return U(function(v,h){var d;try{d=E.apply(this,v)}catch($0){return h($0)}if(d&&typeof d.then==="function")return w(d,h);else h(null,d)})}function w(E,v){return E.then((h)=>{Z(v,null,h)},(h)=>{Z(v,h&&(h instanceof Error||h.message)?h:Error(h))})}function Z(E,v,h){try{E(v,h)}catch(d){G(($0)=>{throw $0},d)}}function V(E){return E[Symbol.toStringTag]==="AsyncFunction"}function X(E){return E[Symbol.toStringTag]==="AsyncGenerator"}function L(E){return typeof E[Symbol.asyncIterator]==="function"}function D(E){if(typeof E!=="function")throw Error("expected a function");return V(E)?W(E):E}function F(E,v){if(!v)v=E.length;if(!v)throw Error("arity is undefined");function h(...d){if(typeof d[v-1]==="function")return E.apply(this,d);return new Promise(($0,Y0)=>{d[v-1]=(H0,...G0)=>{if(H0)return Y0(H0);$0(G0.length>1?G0:G0[0])},E.apply(this,d)})}return h}function P(E){return function(h,...d){return F(function(Y0){var H0=this;return E(h,(G0,z0)=>{D(G0).apply(H0,d.concat(z0))},Y0)})}}function T(E,v,h,d){v=v||[];var $0=[],Y0=0,H0=D(h);return E(v,(G0,z0,S0)=>{var G1=Y0++;H0(G0,(F1,V1)=>{$0[G1]=V1,S0(F1)})},(G0)=>{d(G0,$0)})}function A(E){return E&&typeof E.length==="number"&&E.length>=0&&E.length%1===0}let R={};function x(E){function v(...h){if(E===null)return;var d=E;E=null,d.apply(this,h)}return Object.assign(v,E),v}function y(E){return E[Symbol.iterator]&&E[Symbol.iterator]()}function f(E){var v=-1,h=E.length;return function(){return++v=v||H0||$0)return;H0=!0,E.next().then(({value:V1,done:M$})=>{if(Y0||$0)return;if(H0=!1,M$){if($0=!0,G0<=0)d(null);return}G0++,h(V1,z0,G1),z0++,S0()}).catch(F1)}function G1(V1,M$){if(G0-=1,Y0)return;if(V1)return F1(V1);if(V1===!1){$0=!0,Y0=!0;return}if(M$===R||$0&&G0<=0)return $0=!0,d(null);S0()}function F1(V1){if(Y0)return;H0=!1,$0=!0,d(V1)}S0()}var b=(E)=>{return(v,h,d)=>{if(d=x(d),E<=0)throw RangeError("concurrency limit cannot be less than 1");if(!v)return d(null);if(X(v))return i(v,E,h,d);if(L(v))return i(v[Symbol.asyncIterator](),E,h,d);var $0=n(v),Y0=!1,H0=!1,G0=0,z0=!1;function S0(F1,V1){if(H0)return;if(G0-=1,F1)Y0=!0,d(F1);else if(F1===!1)Y0=!0,H0=!0;else if(V1===R||Y0&&G0<=0)return Y0=!0,d(null);else if(!z0)G1()}function G1(){z0=!0;while(G01?$0:$0[0])}return h[R0]=new Promise((d,$0)=>{E=d,v=$0}),h}function O1(E,v,h){if(typeof v!=="number")h=v,v=null;h=x(h||U1());var d=Object.keys(E).length;if(!d)return h(null);if(!v)v=d;var $0={},Y0=0,H0=!1,G0=!1,z0=Object.create(null),S0=[],G1=[],F1={};Object.keys(E).forEach((C0)=>{var k0=E[C0];if(!Array.isArray(k0)){V1(C0,[k0]),G1.push(C0);return}var Z1=k0.slice(0,k0.length-1),K4=Z1.length;if(K4===0){V1(C0,k0),G1.push(C0);return}F1[C0]=K4,Z1.forEach((b4)=>{if(!E[b4])throw Error("async.auto task `"+C0+"` has a non-existent dependency `"+b4+"` in "+Z1.join(", "));DI(b4,()=>{if(K4--,K4===0)V1(C0,k0)})})}),N1(),M$();function V1(C0,k0){S0.push(()=>bJ(C0,k0))}function M$(){if(H0)return;if(S0.length===0&&Y0===0)return h(null,$0);while(S0.length&&Y0Z1()),M$()}function bJ(C0,k0){if(G0)return;var Z1=S((b4,...A$)=>{if(Y0--,b4===!1){H0=!0;return}if(A$.length<2)[A$]=A$;if(b4){var OI={};if(Object.keys($0).forEach((B7)=>{OI[B7]=$0[B7]}),OI[C0]=A$,G0=!0,z0=Object.create(null),H0)return;h(b4,OI)}else $0[C0]=A$,E7(C0)});Y0++;var K4=D(k0[k0.length-1]);if(k0.length>1)K4($0,Z1);else K4(Z1)}function N1(){var C0,k0=0;while(G1.length)C0=G1.pop(),k0++,u0(C0).forEach((Z1)=>{if(--F1[Z1]===0)G1.push(Z1)});if(k0!==d)throw Error("async.auto cannot execute tasks due to a recursive dependency")}function u0(C0){var k0=[];return Object.keys(E).forEach((Z1)=>{let K4=E[Z1];if(Array.isArray(K4)&&K4.indexOf(C0)>=0)k0.push(Z1)}),k0}return h[R0]}var i4=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,f6=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,F$=/,/,i6=/(=.+)?(\s*)$/;function P6(E){let v="",h=0,d=E.indexOf("*/");while(h$0.replace(b6,"").trim())}function Y$(T,v){var h={};return Object.keys(T).forEach((d)=>{var $0=T[d],Y0,H0=V($0),G0=!H0&&$0.length===1||H0&&$0.length===0;if(Array.isArray($0))Y0=[...$0],$0=Y0.pop(),h[d]=Y0.concat(Y0.length>0?z0:$0);else if(G0)h[d]=$0;else{if(Y0=F$($0),$0.length===0&&!H0&&Y0.length===0)throw Error("autoInject task functions require explicit parameters.");if(!H0)Y0.pop();h[d]=Y0.concat(z0)}function z0(S0,G1){var F1=Y0.map((V1)=>S0[V1]);F1.push(G1),D($0)(...F1)}}),O1(h,v)}class T7{constructor(){this.head=this.tail=null,this.length=0}removeLink(T){if(T.prev)T.prev.next=T.next;else this.head=T.next;if(T.next)T.next.prev=T.prev;else this.tail=T.prev;return T.prev=T.next=null,this.length-=1,T}empty(){while(this.head)this.shift();return this}insertAfter(T,v){if(v.prev=T,v.next=T.next,T.next)T.next.prev=v;else this.tail=v;T.next=v,this.length+=1}insertBefore(T,v){if(v.prev=T.prev,v.next=T,T.prev)T.prev.next=v;else this.head=v;T.prev=v,this.length+=1}unshift(T){if(this.head)this.insertBefore(this.head,T);else J$(this,T)}push(T){if(this.tail)this.insertAfter(this.tail,T);else J$(this,T)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var T=this.head;while(T)yield T.data,T=T.next}remove(T){var v=this.head;while(v){var{next:h}=v;if(T(v))this.removeLink(v);v=h}return this}}function J$(T,v){T.length=1,T.head=T.tail=v}function a5(T,v,h){if(v==null)v=1;else if(v===0)throw RangeError("Concurrency must not be zero");var d=D(T),$0=0,Y0=[];let H0={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G0(u0,C0){H0[u0].push(C0)}function z0(u0,C0){let x0=(...Z1)=>{S0(u0,x0),C0(...Z1)};H0[u0].push(x0)}function S0(u0,C0){if(!u0)return Object.keys(H0).forEach((x0)=>H0[x0]=[]);if(!C0)return H0[u0]=[];H0[u0]=H0[u0].filter((x0)=>x0!==C0)}function G1(u0,...C0){H0[u0].forEach((x0)=>x0(...C0))}var F1=!1;function V1(u0,C0,x0,Z1){if(Z1!=null&&typeof Z1!=="function")throw Error("task callback must be a function");N1.started=!0;var K4,i4;function M$(B7,...bJ){if(B7)return x0?i4(B7):K4();if(bJ.length<=1)return K4(bJ[0]);K4(bJ)}var OI=N1._createTaskItem(u0,x0?M$:Z1||M$);if(C0)N1._tasks.unshift(OI);else N1._tasks.push(OI);if(!F1)F1=!0,G(()=>{F1=!1,N1.process()});if(x0||!Z1)return new Promise((B7,bJ)=>{K4=B7,i4=bJ})}function N$(u0){return function(C0,...x0){$0-=1;for(var Z1=0,K4=u0.length;Z10)Y0.splice(M$,1);if(i4.callback(C0,...x0),C0!=null)G1("error",C0,i4.data)}if($0<=N1.concurrency-N1.buffer)G1("unsaturated");if(N1.idle())G1("drain");N1.process()}}function DI(u0){if(u0.length===0&&N1.idle())return G(()=>G1("drain")),!0;return!1}let E7=(u0)=>(C0)=>{if(!C0)return new Promise((x0,Z1)=>{z0(u0,(K4,i4)=>{if(K4)return Z1(K4);x0(i4)})});S0(u0),G0(u0,C0)};var fJ=!1,N1={_tasks:new T7,_createTaskItem(u0,C0){return{data:u0,callback:C0}},*[Symbol.iterator](){yield*N1._tasks[Symbol.iterator]()},concurrency:v,payload:h,buffer:v/4,started:!1,paused:!1,push(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((x0)=>V1(x0,!1,!1,C0))}return V1(u0,!1,!1,C0)},pushAsync(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((x0)=>V1(x0,!1,!0,C0))}return V1(u0,!1,!0,C0)},kill(){S0(),N1._tasks.empty()},unshift(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((x0)=>V1(x0,!0,!1,C0))}return V1(u0,!0,!1,C0)},unshiftAsync(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((x0)=>V1(x0,!0,!0,C0))}return V1(u0,!0,!0,C0)},remove(u0){N1._tasks.remove(u0)},process(){if(fJ)return;fJ=!0;while(!N1.paused&&$0{$0(v,Y0,(z0,S0)=>{v=S0,G0(z0)})},(Y0)=>d(Y0,v))}var M=F(N,4);function C(...T){var v=T.map(D);return function(...h){var d=this,$0=h[h.length-1];if(typeof $0=="function")h.pop();else $0=U1();return M(v,h,(Y0,H0,G0)=>{H0.apply(d,Y0.concat((z0,...S0)=>{G0(z0,S0)}))},(Y0,H0)=>$0(Y0,...H0)),$0[R0]}}function u(...T){return C(...T.reverse())}function s(T,v,h,d){return E(i(v),T,h,d)}var m=F(s,4);function e(T,v,h,d){var $0=D(h);return m(T,v,(Y0,H0)=>{$0(Y0,(G0,...z0)=>{if(G0)return H0(G0);return H0(G0,z0)})},(Y0,H0)=>{var G0=[];for(var z0=0;z0{var H0=!1,G0;let z0=D($0);h(d,(S0,G1,F1)=>{z0(S0,(V1,N$)=>{if(V1||V1===!1)return F1(V1);if(T(N$)&&!G0)return H0=!0,G0=v(!0,S0),F1(null,R);F1()})},(S0)=>{if(S0)return Y0(S0);Y0(null,H0?G0:v(!1))})}}function Z6(T,v,h){return G4((d)=>d,(d,$0)=>$0)(J0,T,v,h)}var s5=F(Z6,3);function yJ(T,v,h,d){return G4(($0)=>$0,($0,Y0)=>Y0)(i(v),T,h,d)}var _H=F(yJ,4);function dX0(T,v,h){return G4((d)=>d,(d,$0)=>$0)(i(1),T,v,h)}var SH=F(dX0,3);function eu(T){return(v,...h)=>D(v)(...h,(d,...$0)=>{if(typeof console==="object"){if(d){if(console.error)console.error(d)}else if(console[T])$0.forEach((Y0)=>console[T](Y0))}})}var $x=eu("dir");function mX0(T,v,h){h=S(h);var d=D(T),$0=D(v),Y0;function H0(z0,...S0){if(z0)return h(z0);if(z0===!1)return;Y0=S0,$0(...S0,G0)}function G0(z0,S0){if(z0)return h(z0);if(z0===!1)return;if(!S0)return h(null,...Y0);d(H0)}return G0(null,!0)}var hJ=F(mX0,3);function Ix(T,v,h){let d=D(v);return hJ(T,(...$0)=>{let Y0=$0.pop();d(...$0,(H0,G0)=>Y0(H0,!G0))},h)}function Ux(T){return(v,h,d)=>T(v,d)}function lX0(T,v,h){return J0(T,Ux(D(v)),h)}var gH=F(lX0,3);function oX0(T,v,h,d){return i(v)(T,Ux(D(h)),d)}var uJ=F(oX0,4);function rX0(T,v,h){return uJ(T,1,v,h)}var xJ=F(rX0,3);function rD(T){if(V(T))return T;return function(...v){var h=v.pop(),d=!0;v.push((...$0)=>{if(d)G(()=>h(...$0));else h(...$0)}),T.apply(this,v),d=!1}}function tX0(T,v,h){return G4((d)=>!d,(d)=>!d)(J0,T,v,h)}var yH=F(tX0,3);function aX0(T,v,h,d){return G4(($0)=>!$0,($0)=>!$0)(i(v),T,h,d)}var hH=F(aX0,4);function sX0(T,v,h){return G4((d)=>!d,(d)=>!d)(k0,T,v,h)}var uH=F(sX0,3);function eX0(T,v,h,d){var $0=Array(v.length);T(v,(Y0,H0,G0)=>{h(Y0,(z0,S0)=>{$0[H0]=!!S0,G0(z0)})},(Y0)=>{if(Y0)return d(Y0);var H0=[];for(var G0=0;G0{h(Y0,(z0,S0)=>{if(z0)return G0(z0);if(S0)$0.push({index:H0,value:Y0});G0(z0)})},(Y0)=>{if(Y0)return d(Y0);d(null,$0.sort((H0,G0)=>H0.index-G0.index).map((H0)=>H0.value))})}function xH(T,v,h,d){var $0=A(v)?eX0:$L0;return $0(T,v,D(h),d)}function IL0(T,v,h){return xH(J0,T,v,h)}var kH=F(IL0,3);function UL0(T,v,h,d){return xH(i(v),T,h,d)}var fH=F(UL0,4);function YL0(T,v,h){return xH(k0,T,v,h)}var bH=F(YL0,3);function JL0(T,v){var h=S(v),d=D(rD(T));function $0(Y0){if(Y0)return h(Y0);if(Y0===!1)return;d($0)}return $0()}var Yx=F(JL0,2);function QL0(T,v,h,d){var $0=D(h);return m(T,v,(Y0,H0)=>{$0(Y0,(G0,z0)=>{if(G0)return H0(G0);return H0(G0,{key:z0,val:Y0})})},(Y0,H0)=>{var G0={},{hasOwnProperty:z0}=Object.prototype;for(var S0=0;S0{Y0(H0,G0,(S0,G1)=>{if(S0)return z0(S0);$0[G0]=G1,z0(S0)})},(H0)=>d(H0,$0))}var nH=F(KL0,4);function qx(T,v,h){return nH(T,1/0,v,h)}function Hx(T,v,h){return nH(T,1,v,h)}function Gx(T,v=(h)=>h){var h=Object.create(null),d=Object.create(null),$0=D(T),Y0=U((H0,G0)=>{var z0=v(...H0);if(z0 in h)G(()=>G0(null,...h[z0]));else if(z0 in d)d[z0].push(G0);else d[z0]=[G0],$0(...H0,(S0,...G1)=>{if(!S0)h[z0]=G1;var F1=d[z0];delete d[z0];for(var V1=0,N$=F1.length;V1{var d=A(v)?[]:{};T(v,($0,Y0,H0)=>{D($0)((G0,...z0)=>{if(z0.length<2)[z0]=z0;d[Y0]=z0,H0(G0)})},($0)=>h($0,d))},3);function wx(T,v){return tD(J0,T,v)}function Vx(T,v,h){return tD(i(v),T,h)}function aD(T,v){var h=D(T);return a5((d,$0)=>{h(d[0],$0)},v,1)}class Zx{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(T){let v;while(T>0&&sD(this.heap[T],this.heap[v=zx(T)])){let h=this.heap[T];this.heap[T]=this.heap[v],this.heap[v]=h,T=v}}percDown(T){let v;while((v=qL0(T))=0;h--)this.percDown(h);return this}}function qL0(T){return(T<<1)+1}function zx(T){return(T+1>>1)-1}function sD(T,v){if(T.priority!==v.priority)return T.priority{return{data:H0,priority:G0,callback:z0}};function Y0(H0,G0){if(!Array.isArray(H0))return{data:H0,priority:G0};return H0.map((z0)=>{return{data:z0,priority:G0}})}return h.push=function(H0,G0=0,z0){return d(Y0(H0,G0),z0)},h.pushAsync=function(H0,G0=0,z0){return $0(Y0(H0,G0),z0)},delete h.unshift,delete h.unshiftAsync,h}function HL0(T,v){if(v=k(v),!Array.isArray(T))return v(TypeError("First argument to race must be an array of functions"));if(!T.length)return v();for(var h=0,d=T.length;h{let G0={};if(Y0)G0.error=Y0;if(H0.length>0){var z0=H0;if(H0.length<=1)[z0]=H0;G0.value=z0}$0(null,G0)}),v.apply(this,d)})}function Dx(T){var v;if(Array.isArray(T))v=T.map(dH);else v={},Object.keys(T).forEach((h)=>{v[h]=dH.call(this,T[h])});return v}function eD(T,v,h,d){let $0=D(h);return xH(T,v,(Y0,H0)=>{$0(Y0,(G0,z0)=>{H0(G0,!z0)})},d)}function GL0(T,v,h){return eD(J0,T,v,h)}var Ox=F(GL0,3);function WL0(T,v,h,d){return eD(i(v),T,h,d)}var Fx=F(WL0,4);function wL0(T,v,h){return eD(k0,T,v,h)}var Nx=F(wL0,3);function Mx(T){return function(){return T}}let $O=5,Ax=0;function mH(T,v,h){var d={times:$O,intervalFunc:Mx(Ax)};if(arguments.length<3&&typeof T==="function")h=v||U1(),v=T;else VL0(d,T),h=h||U1();if(typeof v!=="function")throw Error("Invalid arguments for async.retry");var $0=D(v),Y0=1;function H0(){$0((G0,...z0)=>{if(G0===!1)return;if(G0&&Y0++{if($0.lengthd)(J0,T,v,h)}var lH=F(ZL0,3);function zL0(T,v,h,d){return G4(Boolean,($0)=>$0)(i(v),T,h,d)}var oH=F(zL0,4);function XL0(T,v,h){return G4(Boolean,(d)=>d)(k0,T,v,h)}var rH=F(XL0,3);function LL0(T,v,h){var d=D(v);return A0(T,(Y0,H0)=>{d(Y0,(G0,z0)=>{if(G0)return H0(G0);H0(G0,{value:Y0,criteria:z0})})},(Y0,H0)=>{if(Y0)return h(Y0);h(null,H0.sort($0).map((G0)=>G0.value))});function $0(Y0,H0){var G0=Y0.criteria,z0=H0.criteria;return G0z0?1:0}}var Ex=F(LL0,3);function Bx(T,v,h){var d=D(T);return U(($0,Y0)=>{var H0=!1,G0;function z0(){var S0=T.name||"anonymous",G1=Error('Callback function "'+S0+'" timed out.');if(G1.code="ETIMEDOUT",h)G1.info=h;H0=!0,Y0(G1)}$0.push((...S0)=>{if(!H0)Y0(...S0),clearTimeout(G0)}),G0=setTimeout(z0,v),d(...$0)})}function DL0(T){var v=Array(T);while(T--)v[T]=T;return v}function tH(T,v,h,d){var $0=D(h);return m(DL0(T),v,$0,d)}function vx(T,v,h){return tH(T,1/0,v,h)}function Rx(T,v,h){return tH(T,1,v,h)}function jx(T,v,h,d){if(arguments.length<=3&&typeof v==="function")d=h,h=v,v=Array.isArray(T)?[]:{};d=k(d||U1());var $0=D(h);return J0(T,(Y0,H0,G0)=>{$0(v,Y0,H0,G0)},(Y0)=>d(Y0,v)),d[R0]}function OL0(T,v){var h=null,d;return xJ(T,($0,Y0)=>{D($0)((H0,...G0)=>{if(H0===!1)return Y0(H0);if(G0.length<2)[d]=G0;else d=G0;h=H0,Y0(H0?null:{})})},()=>v(h,d))}var Cx=F(OL0);function _x(T){return(...v)=>{return(T.unmemoized||T)(...v)}}function FL0(T,v,h){h=S(h);var d=D(v),$0=D(T),Y0=[];function H0(z0,...S0){if(z0)return h(z0);if(Y0=S0,z0===!1)return;$0(G0)}function G0(z0,S0){if(z0)return h(z0);if(z0===!1)return;if(!S0)return h(null,...Y0);d(H0)}return $0(G0)}var kJ=F(FL0,3);function Sx(T,v,h){let d=D(T);return kJ(($0)=>d((Y0,H0)=>$0(Y0,!H0)),v,h)}function NL0(T,v){if(v=k(v),!Array.isArray(T))return v(Error("First argument to waterfall must be an array of functions"));if(!T.length)return v();var h=0;function d(Y0){var H0=D(T[h++]);H0(...Y0,S($0))}function $0(Y0,...H0){if(Y0===!1)return;if(Y0||h===T.length)return v(Y0,...H0);d(H0)}d([])}var gx=F(NL0),ML0={apply:I,applyEach:j0,applyEachSeries:Q0,asyncify:W,auto:O1,autoInject:Y$,cargo:v0,cargoQueue:a,compose:u,concat:_0,concatLimit:K0,concatSeries:f0,constant:H1,detect:s5,detectLimit:_H,detectSeries:SH,dir:$x,doUntil:Ix,doWhilst:hJ,each:gH,eachLimit:uJ,eachOf:J0,eachOfLimit:B,eachOfSeries:k0,eachSeries:xJ,ensureAsync:rD,every:yH,everyLimit:hH,everySeries:uH,filter:kH,filterLimit:fH,filterSeries:bH,forever:Yx,groupBy:Jx,groupByLimit:iH,groupBySeries:Qx,log:Kx,map:A0,mapLimit:m,mapSeries:M0,mapValues:qx,mapValuesLimit:nH,mapValuesSeries:Hx,memoize:Gx,nextTick:Wx,parallel:wx,parallelLimit:Vx,priorityQueue:Xx,queue:aD,race:Lx,reduce:M,reduceRight:cH,reflect:dH,reflectAll:Dx,reject:Ox,rejectLimit:Fx,rejectSeries:Nx,retry:mH,retryable:Px,seq:C,series:Tx,setImmediate:G,some:lH,someLimit:oH,someSeries:rH,sortBy:Ex,timeout:Bx,times:vx,timesLimit:tH,timesSeries:Rx,transform:jx,tryEach:Cx,unmemoize:_x,until:Sx,waterfall:gx,whilst:kJ,all:yH,allLimit:hH,allSeries:uH,any:lH,anyLimit:oH,anySeries:rH,find:s5,findLimit:_H,findSeries:SH,flatMap:_0,flatMapLimit:K0,flatMapSeries:f0,forEach:gH,forEachSeries:xJ,forEachLimit:uJ,forEachOf:J0,forEachOfSeries:k0,forEachOfLimit:B,inject:M,foldl:M,foldr:cH,select:kH,selectLimit:fH,selectSeries:bH,wrapSync:W,during:kJ,doDuring:hJ};$.all=yH,$.allLimit=hH,$.allSeries=uH,$.any=lH,$.anyLimit=oH,$.anySeries=rH,$.apply=I,$.applyEach=j0,$.applyEachSeries=Q0,$.asyncify=W,$.auto=O1,$.autoInject=Y$,$.cargo=v0,$.cargoQueue=a,$.compose=u,$.concat=_0,$.concatLimit=K0,$.concatSeries=f0,$.constant=H1,$.default=ML0,$.detect=s5,$.detectLimit=_H,$.detectSeries=SH,$.dir=$x,$.doDuring=hJ,$.doUntil=Ix,$.doWhilst=hJ,$.during=kJ,$.each=gH,$.eachLimit=uJ,$.eachOf=J0,$.eachOfLimit=B,$.eachOfSeries=k0,$.eachSeries=xJ,$.ensureAsync=rD,$.every=yH,$.everyLimit=hH,$.everySeries=uH,$.filter=kH,$.filterLimit=fH,$.filterSeries=bH,$.find=s5,$.findLimit=_H,$.findSeries=SH,$.flatMap=_0,$.flatMapLimit=K0,$.flatMapSeries=f0,$.foldl=M,$.foldr=cH,$.forEach=gH,$.forEachLimit=uJ,$.forEachOf=J0,$.forEachOfLimit=B,$.forEachOfSeries=k0,$.forEachSeries=xJ,$.forever=Yx,$.groupBy=Jx,$.groupByLimit=iH,$.groupBySeries=Qx,$.inject=M,$.log=Kx,$.map=A0,$.mapLimit=m,$.mapSeries=M0,$.mapValues=qx,$.mapValuesLimit=nH,$.mapValuesSeries=Hx,$.memoize=Gx,$.nextTick=Wx,$.parallel=wx,$.parallelLimit=Vx,$.priorityQueue=Xx,$.queue=aD,$.race=Lx,$.reduce=M,$.reduceRight=cH,$.reflect=dH,$.reflectAll=Dx,$.reject=Ox,$.rejectLimit=Fx,$.rejectSeries=Nx,$.retry=mH,$.retryable=Px,$.select=kH,$.selectLimit=fH,$.selectSeries=bH,$.seq=C,$.series=Tx,$.setImmediate=G,$.some=lH,$.someLimit=oH,$.someSeries=rH,$.sortBy=Ex,$.timeout=Bx,$.times=vx,$.timesLimit=tH,$.timesSeries=Rx,$.transform=jx,$.tryEach=Cx,$.unmemoize=_x,$.until=Sx,$.waterfall=gx,$.whilst=kJ,$.wrapSync=W,Object.defineProperty($,"__esModule",{value:!0})})});var kI0=O((av1,xI0)=>{var s9=t("constants"),t01=process.cwd,lz=null,a01=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!lz)lz=t01.call(process);return lz};try{process.cwd()}catch($){}if(typeof process.chdir==="function"){if(oz=process.chdir,process.chdir=function($){lz=null,oz.call(process,$)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,oz)}var oz;xI0.exports=s01;function s01($){if(s9.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))I($);if(!$.lutimes)U($);if($.chown=Q($.chown),$.fchown=Q($.fchown),$.lchown=Q($.lchown),$.chmod=Y($.chmod),$.fchmod=Y($.fchmod),$.lchmod=Y($.lchmod),$.chownSync=K($.chownSync),$.fchownSync=K($.fchownSync),$.lchownSync=K($.lchownSync),$.chmodSync=J($.chmodSync),$.fchmodSync=J($.fchmodSync),$.lchmodSync=J($.lchmodSync),$.stat=q($.stat),$.fstat=q($.fstat),$.lstat=q($.lstat),$.statSync=H($.statSync),$.fstatSync=H($.fstatSync),$.lstatSync=H($.lstatSync),$.chmod&&!$.lchmod)$.lchmod=function(W,w,Z){if(Z)process.nextTick(Z)},$.lchmodSync=function(){};if($.chown&&!$.lchown)$.lchown=function(W,w,Z,V){if(V)process.nextTick(V)},$.lchownSync=function(){};if(a01==="win32")$.rename=typeof $.rename!=="function"?$.rename:function(W){function w(Z,V,X){var L=Date.now(),D=0;W(Z,V,function F(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-L<60000){if(setTimeout(function(){$.stat(V,function(E,A){if(E&&E.code==="ENOENT")W(Z,V,F);else X(P)})},D),D<100)D+=10;return}if(X)X(P)})}if(Object.setPrototypeOf)Object.setPrototypeOf(w,W);return w}($.rename);$.read=typeof $.read!=="function"?$.read:function(W){function w(Z,V,X,L,D,F){var P;if(F&&typeof F==="function"){var E=0;P=function(A,R,k){if(A&&A.code==="EAGAIN"&&E<10)return E++,W.call($,Z,V,X,L,D,P);F.apply(this,arguments)}}return W.call($,Z,V,X,L,D,P)}if(Object.setPrototypeOf)Object.setPrototypeOf(w,W);return w}($.read),$.readSync=typeof $.readSync!=="function"?$.readSync:function(W){return function(w,Z,V,X,L){var D=0;while(!0)try{return W.call($,w,Z,V,X,L)}catch(F){if(F.code==="EAGAIN"&&D<10){D++;continue}throw F}}}($.readSync);function I(W){W.lchmod=function(w,Z,V){W.open(w,s9.O_WRONLY|s9.O_SYMLINK,Z,function(X,L){if(X){if(V)V(X);return}W.fchmod(L,Z,function(D){W.close(L,function(F){if(V)V(D||F)})})})},W.lchmodSync=function(w,Z){var V=W.openSync(w,s9.O_WRONLY|s9.O_SYMLINK,Z),X=!0,L;try{L=W.fchmodSync(V,Z),X=!1}finally{if(X)try{W.closeSync(V)}catch(D){}else W.closeSync(V)}return L}}function U(W){if(s9.hasOwnProperty("O_SYMLINK")&&W.futimes)W.lutimes=function(w,Z,V,X){W.open(w,s9.O_SYMLINK,function(L,D){if(L){if(X)X(L);return}W.futimes(D,Z,V,function(F){W.close(D,function(P){if(X)X(F||P)})})})},W.lutimesSync=function(w,Z,V){var X=W.openSync(w,s9.O_SYMLINK),L,D=!0;try{L=W.futimesSync(X,Z,V),D=!1}finally{if(D)try{W.closeSync(X)}catch(F){}else W.closeSync(X)}return L};else if(W.futimes)W.lutimes=function(w,Z,V,X){if(X)process.nextTick(X)},W.lutimesSync=function(){}}function Y(W){if(!W)return W;return function(w,Z,V){return W.call($,w,Z,function(X){if(G(X))X=null;if(V)V.apply(this,arguments)})}}function J(W){if(!W)return W;return function(w,Z){try{return W.call($,w,Z)}catch(V){if(!G(V))throw V}}}function Q(W){if(!W)return W;return function(w,Z,V,X){return W.call($,w,Z,V,function(L){if(G(L))L=null;if(X)X.apply(this,arguments)})}}function K(W){if(!W)return W;return function(w,Z,V){try{return W.call($,w,Z,V)}catch(X){if(!G(X))throw X}}}function q(W){if(!W)return W;return function(w,Z,V){if(typeof Z==="function")V=Z,Z=null;function X(L,D){if(D){if(D.uid<0)D.uid+=4294967296;if(D.gid<0)D.gid+=4294967296}if(V)V.apply(this,arguments)}return Z?W.call($,w,Z,X):W.call($,w,X)}}function H(W){if(!W)return W;return function(w,Z){var V=Z?W.call($,w,Z):W.call($,w);if(V){if(V.uid<0)V.uid+=4294967296;if(V.gid<0)V.gid+=4294967296}return V}}function G(W){if(!W)return!0;if(W.code==="ENOSYS")return!0;var w=!process.getuid||process.getuid()!==0;if(w){if(W.code==="EINVAL"||W.code==="EPERM")return!0}return!1}}});var iI0=O((sv1,bI0)=>{var fI0=t("stream").Stream;bI0.exports=e01;function e01($){return{ReadStream:I,WriteStream:U};function I(Y,J){if(!(this instanceof I))return new I(Y,J);fI0.call(this);var Q=this;this.path=Y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,J=J||{};var K=Object.keys(J);for(var q=0,H=K.length;qthis.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){Q._read()});return}$.open(this.path,this.flags,this.mode,function(W,w){if(W){Q.emit("error",W),Q.readable=!1;return}Q.fd=w,Q.emit("open",w),Q._read()})}function U(Y,J){if(!(this instanceof U))return new U(Y,J);fI0.call(this),this.path=Y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,J=J||{};var Q=Object.keys(J);for(var K=0,q=Q.length;K= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=$.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var pI0=O((ev1,nI0)=>{nI0.exports=I11;var $11=Object.getPrototypeOf||function($){return $.__proto__};function I11($){if($===null||typeof $!=="object")return $;if($ instanceof Object)var I={__proto__:$11($)};else var I=Object.create(null);return Object.getOwnPropertyNames($).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor($,U))}),I}});var s6=O(($R1,L_)=>{var Z4=t("fs"),U11=kI0(),Y11=iI0(),J11=pI0(),rz=t("util"),Q6,az;if(typeof Symbol==="function"&&typeof Symbol.for==="function")Q6=Symbol.for("graceful-fs.queue"),az=Symbol.for("graceful-fs.previous");else Q6="___graceful-fs.queue",az="___graceful-fs.previous";function Q11(){}function dI0($,I){Object.defineProperty($,Q6,{get:function(){return I}})}var v3=Q11;if(rz.debuglog)v3=rz.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))v3=function(){var $=rz.format.apply(rz,arguments);$="GFS4: "+$.split(/\n/).join(` -GFS4: `),console.error($)};if(!Z4[Q6]){if(Z_=global[Q6]||[],dI0(Z4,Z_),Z4.close=function($){function I(U,Y){return $.call(Z4,U,function(J){if(!J)cI0();if(typeof Y==="function")Y.apply(this,arguments)})}return Object.defineProperty(I,az,{value:$}),I}(Z4.close),Z4.closeSync=function($){function I(U){$.apply(Z4,arguments),cI0()}return Object.defineProperty(I,az,{value:$}),I}(Z4.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){v3(Z4[Q6]),t("assert").equal(Z4[Q6].length,0)})}var Z_;if(!global[Q6])dI0(global,Z4[Q6]);L_.exports=z_(J11(Z4));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Z4.__patched)L_.exports=z_(Z4),Z4.__patched=!0;function z_($){U11($),$.gracefulify=z_,$.createReadStream=R,$.createWriteStream=k;var I=$.readFile;$.readFile=U;function U(j,p,n){if(typeof p==="function")n=p,p=null;return S(j,p,n);function S(b,i,U0,B){return I(b,i,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))gY([S,[b,i,U0],x,B||Date.now(),Date.now()]);else if(typeof U0==="function")U0.apply(this,arguments)})}}var Y=$.writeFile;$.writeFile=J;function J(j,p,n,S){if(typeof n==="function")S=n,n=null;return b(j,p,n,S);function b(i,U0,B,x,c){return Y(i,U0,B,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))gY([b,[i,U0,B,x],r,c||Date.now(),Date.now()]);else if(typeof x==="function")x.apply(this,arguments)})}}var Q=$.appendFile;if(Q)$.appendFile=K;function K(j,p,n,S){if(typeof n==="function")S=n,n=null;return b(j,p,n,S);function b(i,U0,B,x,c){return Q(i,U0,B,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))gY([b,[i,U0,B,x],r,c||Date.now(),Date.now()]);else if(typeof x==="function")x.apply(this,arguments)})}}var q=$.copyFile;if(q)$.copyFile=H;function H(j,p,n,S){if(typeof n==="function")S=n,n=0;return b(j,p,n,S);function b(i,U0,B,x,c){return q(i,U0,B,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))gY([b,[i,U0,B,x],r,c||Date.now(),Date.now()]);else if(typeof x==="function")x.apply(this,arguments)})}}var G=$.readdir;$.readdir=w;var W=/^v[0-5]\./;function w(j,p,n){if(typeof p==="function")n=p,p=null;var S=W.test(process.version)?function(U0,B,x,c){return G(U0,b(U0,B,x,c))}:function(U0,B,x,c){return G(U0,B,b(U0,B,x,c))};return S(j,p,n);function b(i,U0,B,x){return function(c,r){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))gY([S,[i,U0,B],c,x||Date.now(),Date.now()]);else{if(r&&r.sort)r.sort();if(typeof B==="function")B.call(this,c,r)}}}}if(process.version.substr(0,4)==="v0.8"){var Z=Y11($);F=Z.ReadStream,E=Z.WriteStream}var V=$.ReadStream;if(V)F.prototype=Object.create(V.prototype),F.prototype.open=P;var X=$.WriteStream;if(X)E.prototype=Object.create(X.prototype),E.prototype.open=A;Object.defineProperty($,"ReadStream",{get:function(){return F},set:function(j){F=j},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return E},set:function(j){E=j},enumerable:!0,configurable:!0});var L=F;Object.defineProperty($,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var D=E;Object.defineProperty($,"FileWriteStream",{get:function(){return D},set:function(j){D=j},enumerable:!0,configurable:!0});function F(j,p){if(this instanceof F)return V.apply(this,arguments),this;else return F.apply(Object.create(F.prototype),arguments)}function P(){var j=this;f(j.path,j.flags,j.mode,function(p,n){if(p){if(j.autoClose)j.destroy();j.emit("error",p)}else j.fd=n,j.emit("open",n),j.read()})}function E(j,p){if(this instanceof E)return X.apply(this,arguments),this;else return E.apply(Object.create(E.prototype),arguments)}function A(){var j=this;f(j.path,j.flags,j.mode,function(p,n){if(p)j.destroy(),j.emit("error",p);else j.fd=n,j.emit("open",n)})}function R(j,p){return new $.ReadStream(j,p)}function k(j,p){return new $.WriteStream(j,p)}var y=$.open;$.open=f;function f(j,p,n,S){if(typeof n==="function")S=n,n=null;return b(j,p,n,S);function b(i,U0,B,x,c){return y(i,U0,B,function(r,J0){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))gY([b,[i,U0,B,x],r,c||Date.now(),Date.now()]);else if(typeof x==="function")x.apply(this,arguments)})}}return $}function gY($){v3("ENQUEUE",$[0].name,$[1]),Z4[Q6].push($),X_()}var tz;function cI0(){var $=Date.now();for(var I=0;I2)Z4[Q6][I][3]=$,Z4[Q6][I][4]=$;X_()}function X_(){if(clearTimeout(tz),tz=void 0,Z4[Q6].length===0)return;var $=Z4[Q6].shift(),I=$[0],U=$[1],Y=$[2],J=$[3],Q=$[4];if(J===void 0)v3("RETRY",I.name,U),I.apply(null,U);else if(Date.now()-J>=60000){v3("TIMEOUT",I.name,U);var K=U.pop();if(typeof K==="function")K.call(null,Y)}else{var q=Date.now()-Q,H=Math.max(Q-J,1),G=Math.min(H*1.2,100);if(q>=G)v3("RETRY",I.name,U),I.apply(null,U.concat([J]));else Z4[Q6].push($)}if(tz===void 0)tz=setTimeout(X_,0)}});var lI0=O((IR1,D_)=>{function K11($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var mI0=A4().Buffer,iK=t("util");function q11($,I,U){$.copy(I,U)}D_.exports=function(){function $(){K11(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return mI0.alloc(0);var Y=mI0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)q11(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(iK&&iK.inspect&&iK.inspect.custom)D_.exports.prototype[iK.inspect.custom]=function(){var $=iK.inspect({length:this.length});return this.constructor.name+" "+$}});var O_=O((UR1,oI0)=>{var sz=M4();function H11($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)sz.nextTick(ez,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,sz.nextTick(ez,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)sz.nextTick(ez,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,sz.nextTick(ez,U,Q)}else if(I)I(Q)}),this}function G11(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function ez($,I){$.emit("error",I)}oI0.exports={destroy:H11,undestroy:G11}});var N_=O((YR1,UU0)=>{var R3=M4();UU0.exports=B4;function tI0($){var I=this;this.next=null,this.entry=null,this.finish=function(){v11(I,$)}}var W11=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:R3.nextTick,yY;B4.WritableState=pK;var aI0=Object.create(l1());aI0.inherits=c0();var w11={deprecate:d7()},sI0=t("stream"),IX=A4().Buffer,V11=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Z11($){return IX.from($)}function z11($){return IX.isBuffer($)||$ instanceof V11}var eI0=O_();aI0.inherits(B4,sI0);function X11(){}function pK($,I){yY=yY||j3(),$=$||{};var U=I instanceof yY;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){A11(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new tI0(this)}pK.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(pK.prototype,"buffer",{get:w11.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var $X;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")$X=Function.prototype[Symbol.hasInstance],Object.defineProperty(B4,Symbol.hasInstance,{value:function($){if($X.call(this,$))return!0;if(this!==B4)return!1;return $&&$._writableState instanceof pK}});else $X=function($){return $ instanceof this};function B4($){if(yY=yY||j3(),!$X.call(B4,this)&&!(this instanceof yY))return new B4($);if(this._writableState=new pK($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}sI0.call(this)}B4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function L11($,I){var U=Error("write after end");$.emit("error",U),R3.nextTick(I,U)}function D11($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),R3.nextTick(Y,Q),J=!1;return J}B4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&z11($);if(Q&&!IX.isBuffer($))$=Z11($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=X11;if(Y.ended)L11(this,U);else if(Q||D11(this,Y,$,U))Y.pendingcb++,J=F11(this,Y,Q,$,I,U);return J};B4.prototype.cork=function(){var $=this._writableState;$.corked++};B4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)$U0(this,$)}};B4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function O11($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=IX.from(I,U);return I}Object.defineProperty(B4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F11($,I,U,Y,J,Q){if(!U){var K=O11(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var YU0=M4(),R11=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};KU0.exports=_5;var JU0=Object.create(l1());JU0.inherits=c0();var QU0=A_(),M_=N_();JU0.inherits(_5,QU0);{UX=R11(M_.prototype);for(cK=0;cK{var T_=A4().Buffer,qU0=T_.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _11($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function S11($){var I=_11($);if(typeof I!=="string"&&(T_.isEncoding===qU0||!qU0($)))throw Error("Unknown encoding: "+$);return I||$}c11.StringDecoder=mK;function mK($){this.encoding=S11($);var I;switch(this.encoding){case"utf16le":this.text=k11,this.end=f11,I=4;break;case"utf8":this.fillLast=h11,I=4;break;case"base64":this.text=b11,this.end=i11,I=3;break;default:this.write=n11,this.end=p11;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=T_.allocUnsafe(I)}mK.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};mK.prototype.end=x11;mK.prototype.text=u11;mK.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function P_($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function g11($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function y11($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function h11($){var I=this.lastTotal-this.lastNeed,U=y11(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function u11($,I){var U=g11(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function x11($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function k11($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function f11($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function b11($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function i11($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function n11($){return $.toString(this.encoding)}function p11($){return $&&$.length?this.write($):""}});var A_=O((qR1,FU0)=>{var uY=M4();FU0.exports=I4;var m11=BU(),lK;I4.ReadableState=zU0;var KR1=t("events").EventEmitter,wU0=function($,I){return $.listeners(I).length},C_=t("stream"),oK=A4().Buffer,l11=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o11($){return oK.from($)}function r11($){return oK.isBuffer($)||$ instanceof l11}var VU0=Object.create(l1());VU0.inherits=c0();var B_=t("util"),B1=void 0;if(B_&&B_.debuglog)B1=B_.debuglog("stream");else B1=function(){};var t11=lI0(),ZU0=O_(),hY;VU0.inherits(I4,C_);var v_=["error","close","destroy","pause","resume"];function a11($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(m11($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function zU0($,I){lK=lK||j3(),$=$||{};var U=I instanceof lK;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new t11,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!hY)hY=E_().StringDecoder;this.decoder=new hY($.encoding),this.encoding=$.encoding}}function I4($){if(lK=lK||j3(),!(this instanceof I4))return new I4($);if(this._readableState=new zU0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}C_.call(this)}Object.defineProperty(I4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});I4.prototype.destroy=ZU0.destroy;I4.prototype._undestroy=ZU0.undestroy;I4.prototype._destroy=function($,I){this.push(null),I($)};I4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=oK.from($,I),I="";Y=!0}}else Y=!0;return XU0(this,$,I,!1,Y)};I4.prototype.unshift=function($){return XU0(this,$,null,!0,!1)};function XU0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,I41($,Q);else{var K;if(!J)K=s11(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==oK.prototype)I=o11(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else R_($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)R_($,Q,I,!1);else LU0($,Q);else R_($,Q,I,!1)}else if(!Y)Q.reading=!1}return e11(Q)}function R_($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)YX($)}LU0($,I)}function s11($,I){var U;if(!r11(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function e11($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}I4.prototype.isPaused=function(){return this._readableState.flowing===!1};I4.prototype.setEncoding=function($){if(!hY)hY=E_().StringDecoder;return this._readableState.decoder=new hY($),this._readableState.encoding=$,this};var HU0=8388608;function $41($){if($>=HU0)$=HU0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function GU0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=$41($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}I4.prototype.read=function($){B1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(B1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)j_(this);else YX(this);return null}if($=GU0($,I),$===0&&I.ended){if(I.length===0)j_(this);return null}var Y=I.needReadable;if(B1("need readable",Y),I.length===0||I.length-$0)J=DU0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)j_(this)}if(J!==null)this.emit("data",J);return J};function I41($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,YX($)}function YX($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(B1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)uY.nextTick(WU0,$);else WU0($)}function WU0($){B1("emit readable"),$.emit("readable"),__($)}function LU0($,I){if(!I.readingMore)I.readingMore=!0,uY.nextTick(U41,$,I)}function U41($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&OU0(Y.pipes,$)!==-1)&&!G)B1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(B1("onerror",F),D(),$.removeListener("error",V),wU0($,"error")===0)$.emit("error",F)}a11($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){B1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){B1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)B1("pipe resume"),U.resume();return $};function Y41($){return function(){var I=$._readableState;if(B1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&wU0($,"data"))I.flowing=!0,__($)}}I4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=q41($,I.buffer,I.decoder);return U}function q41($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function G41($,I){var U=oK.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function j_($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,uY.nextTick(W41,I,$)}function W41($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function OU0($,I){for(var U=0,Y=$.length;U{AU0.exports=S5;var JX=j3(),MU0=Object.create(l1());MU0.inherits=c0();MU0.inherits(S5,JX);function w41($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{EU0.exports=rK;var PU0=S_(),TU0=Object.create(l1());TU0.inherits=c0();TU0.inherits(rK,PU0);function rK($){if(!(this instanceof rK))return new rK($);PU0.call(this,$)}rK.prototype._transform=function($,I,U){U(null,$)}});var vU0=O((K6,QX)=>{var k8=t("stream");if(process.env.READABLE_STREAM==="disable"&&k8)QX.exports=k8,K6=QX.exports=k8.Readable,K6.Readable=k8.Readable,K6.Writable=k8.Writable,K6.Duplex=k8.Duplex,K6.Transform=k8.Transform,K6.PassThrough=k8.PassThrough,K6.Stream=k8;else K6=QX.exports=A_(),K6.Stream=k8||K6,K6.Readable=K6,K6.Writable=N_(),K6.Duplex=j3(),K6.Transform=S_(),K6.PassThrough=BU0()});var jU0=O((WR1,RU0)=>{RU0.exports=vU0().PassThrough});var g_=O((wR1,SU0)=>{var CU0=t("util"),HX=jU0();SU0.exports={Readable:KX,Writable:qX};CU0.inherits(KX,HX);CU0.inherits(qX,HX);function _U0($,I,U){$[I]=function(){return delete $[I],U.apply(this,arguments),this[I].apply(this,arguments)}}function KX($,I){if(!(this instanceof KX))return new KX($,I);HX.call(this,I),_U0(this,"_read",function(){var U=$.call(this,I),Y=this.emit.bind(this,"error");U.on("error",Y),U.pipe(this)}),this.emit("readable")}function qX($,I){if(!(this instanceof qX))return new qX($,I);HX.call(this,I),_U0(this,"_write",function(){var U=$.call(this,I),Y=this.emit.bind(this,"error");U.on("error",Y),this.pipe(U)}),this.emit("writable")}});var GX=O((VR1,gU0)=>{/*! +`+v);let[,d]=h;return d.replace(/\s/g,"").split(F$).map(($0)=>$0.replace(i6,"").trim())}function Y$(E,v){var h={};return Object.keys(E).forEach((d)=>{var $0=E[d],Y0,H0=V($0),G0=!H0&&$0.length===1||H0&&$0.length===0;if(Array.isArray($0))Y0=[...$0],$0=Y0.pop(),h[d]=Y0.concat(Y0.length>0?z0:$0);else if(G0)h[d]=$0;else{if(Y0=N$($0),$0.length===0&&!H0&&Y0.length===0)throw Error("autoInject task functions require explicit parameters.");if(!H0)Y0.pop();h[d]=Y0.concat(z0)}function z0(S0,G1){var F1=Y0.map((V1)=>S0[V1]);F1.push(G1),D($0)(...F1)}}),O1(h,v)}class T7{constructor(){this.head=this.tail=null,this.length=0}removeLink(E){if(E.prev)E.prev.next=E.next;else this.head=E.next;if(E.next)E.next.prev=E.prev;else this.tail=E.prev;return E.prev=E.next=null,this.length-=1,E}empty(){while(this.head)this.shift();return this}insertAfter(E,v){if(v.prev=E,v.next=E.next,E.next)E.next.prev=v;else this.tail=v;E.next=v,this.length+=1}insertBefore(E,v){if(v.prev=E.prev,v.next=E,E.prev)E.prev.next=v;else this.head=v;E.prev=v,this.length+=1}unshift(E){if(this.head)this.insertBefore(this.head,E);else J$(this,E)}push(E){if(this.tail)this.insertAfter(this.tail,E);else J$(this,E)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var E=this.head;while(E)yield E.data,E=E.next}remove(E){var v=this.head;while(v){var{next:h}=v;if(E(v))this.removeLink(v);v=h}return this}}function J$(E,v){E.length=1,E.head=E.tail=v}function a5(E,v,h){if(v==null)v=1;else if(v===0)throw RangeError("Concurrency must not be zero");var d=D(E),$0=0,Y0=[];let H0={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G0(u0,C0){H0[u0].push(C0)}function z0(u0,C0){let k0=(...Z1)=>{S0(u0,k0),C0(...Z1)};H0[u0].push(k0)}function S0(u0,C0){if(!u0)return Object.keys(H0).forEach((k0)=>H0[k0]=[]);if(!C0)return H0[u0]=[];H0[u0]=H0[u0].filter((k0)=>k0!==C0)}function G1(u0,...C0){H0[u0].forEach((k0)=>k0(...C0))}var F1=!1;function V1(u0,C0,k0,Z1){if(Z1!=null&&typeof Z1!=="function")throw Error("task callback must be a function");N1.started=!0;var K4,b4;function A$(B7,...nJ){if(B7)return k0?b4(B7):K4();if(nJ.length<=1)return K4(nJ[0]);K4(nJ)}var OI=N1._createTaskItem(u0,k0?A$:Z1||A$);if(C0)N1._tasks.unshift(OI);else N1._tasks.push(OI);if(!F1)F1=!0,G(()=>{F1=!1,N1.process()});if(k0||!Z1)return new Promise((B7,nJ)=>{K4=B7,b4=nJ})}function M$(u0){return function(C0,...k0){$0-=1;for(var Z1=0,K4=u0.length;Z10)Y0.splice(A$,1);if(b4.callback(C0,...k0),C0!=null)G1("error",C0,b4.data)}if($0<=N1.concurrency-N1.buffer)G1("unsaturated");if(N1.idle())G1("drain");N1.process()}}function DI(u0){if(u0.length===0&&N1.idle())return G(()=>G1("drain")),!0;return!1}let E7=(u0)=>(C0)=>{if(!C0)return new Promise((k0,Z1)=>{z0(u0,(K4,b4)=>{if(K4)return Z1(K4);k0(b4)})});S0(u0),G0(u0,C0)};var bJ=!1,N1={_tasks:new T7,_createTaskItem(u0,C0){return{data:u0,callback:C0}},*[Symbol.iterator](){yield*N1._tasks[Symbol.iterator]()},concurrency:v,payload:h,buffer:v/4,started:!1,paused:!1,push(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((k0)=>V1(k0,!1,!1,C0))}return V1(u0,!1,!1,C0)},pushAsync(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((k0)=>V1(k0,!1,!0,C0))}return V1(u0,!1,!0,C0)},kill(){S0(),N1._tasks.empty()},unshift(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((k0)=>V1(k0,!0,!1,C0))}return V1(u0,!0,!1,C0)},unshiftAsync(u0,C0){if(Array.isArray(u0)){if(DI(u0))return;return u0.map((k0)=>V1(k0,!0,!0,C0))}return V1(u0,!0,!0,C0)},remove(u0){N1._tasks.remove(u0)},process(){if(bJ)return;bJ=!0;while(!N1.paused&&$0{$0(v,Y0,(z0,S0)=>{v=S0,G0(z0)})},(Y0)=>d(Y0,v))}var M=F(N,4);function C(...E){var v=E.map(D);return function(...h){var d=this,$0=h[h.length-1];if(typeof $0=="function")h.pop();else $0=U1();return M(v,h,(Y0,H0,G0)=>{H0.apply(d,Y0.concat((z0,...S0)=>{G0(z0,S0)}))},(Y0,H0)=>$0(Y0,...H0)),$0[R0]}}function u(...E){return C(...E.reverse())}function s(E,v,h,d){return T(b(v),E,h,d)}var m=F(s,4);function e(E,v,h,d){var $0=D(h);return m(E,v,(Y0,H0)=>{$0(Y0,(G0,...z0)=>{if(G0)return H0(G0);return H0(G0,z0)})},(Y0,H0)=>{var G0=[];for(var z0=0;z0{var H0=!1,G0;let z0=D($0);h(d,(S0,G1,F1)=>{z0(S0,(V1,M$)=>{if(V1||V1===!1)return F1(V1);if(E(M$)&&!G0)return H0=!0,G0=v(!0,S0),F1(null,R);F1()})},(S0)=>{if(S0)return Y0(S0);Y0(null,H0?G0:v(!1))})}}function Z6(E,v,h){return G4((d)=>d,(d,$0)=>$0)(J0,E,v,h)}var s5=F(Z6,3);function uJ(E,v,h,d){return G4(($0)=>$0,($0,Y0)=>Y0)(b(v),E,h,d)}var _H=F(uJ,4);function dX0(E,v,h){return G4((d)=>d,(d,$0)=>$0)(b(1),E,v,h)}var SH=F(dX0,3);function Ik(E){return(v,...h)=>D(v)(...h,(d,...$0)=>{if(typeof console==="object"){if(d){if(console.error)console.error(d)}else if(console[E])$0.forEach((Y0)=>console[E](Y0))}})}var Uk=Ik("dir");function mX0(E,v,h){h=S(h);var d=D(E),$0=D(v),Y0;function H0(z0,...S0){if(z0)return h(z0);if(z0===!1)return;Y0=S0,$0(...S0,G0)}function G0(z0,S0){if(z0)return h(z0);if(z0===!1)return;if(!S0)return h(null,...Y0);d(H0)}return G0(null,!0)}var kJ=F(mX0,3);function Yk(E,v,h){let d=D(v);return kJ(E,(...$0)=>{let Y0=$0.pop();d(...$0,(H0,G0)=>Y0(H0,!G0))},h)}function Jk(E){return(v,h,d)=>E(v,d)}function lX0(E,v,h){return J0(E,Jk(D(v)),h)}var gH=F(lX0,3);function oX0(E,v,h,d){return b(v)(E,Jk(D(h)),d)}var xJ=F(oX0,4);function rX0(E,v,h){return xJ(E,1,v,h)}var fJ=F(rX0,3);function tD(E){if(V(E))return E;return function(...v){var h=v.pop(),d=!0;v.push((...$0)=>{if(d)G(()=>h(...$0));else h(...$0)}),E.apply(this,v),d=!1}}function tX0(E,v,h){return G4((d)=>!d,(d)=>!d)(J0,E,v,h)}var yH=F(tX0,3);function aX0(E,v,h,d){return G4(($0)=>!$0,($0)=>!$0)(b(v),E,h,d)}var hH=F(aX0,4);function sX0(E,v,h){return G4((d)=>!d,(d)=>!d)(x0,E,v,h)}var uH=F(sX0,3);function eX0(E,v,h,d){var $0=Array(v.length);E(v,(Y0,H0,G0)=>{h(Y0,(z0,S0)=>{$0[H0]=!!S0,G0(z0)})},(Y0)=>{if(Y0)return d(Y0);var H0=[];for(var G0=0;G0{h(Y0,(z0,S0)=>{if(z0)return G0(z0);if(S0)$0.push({index:H0,value:Y0});G0(z0)})},(Y0)=>{if(Y0)return d(Y0);d(null,$0.sort((H0,G0)=>H0.index-G0.index).map((H0)=>H0.value))})}function kH(E,v,h,d){var $0=A(v)?eX0:$L0;return $0(E,v,D(h),d)}function IL0(E,v,h){return kH(J0,E,v,h)}var xH=F(IL0,3);function UL0(E,v,h,d){return kH(b(v),E,h,d)}var fH=F(UL0,4);function YL0(E,v,h){return kH(x0,E,v,h)}var iH=F(YL0,3);function JL0(E,v){var h=S(v),d=D(tD(E));function $0(Y0){if(Y0)return h(Y0);if(Y0===!1)return;d($0)}return $0()}var Qk=F(JL0,2);function QL0(E,v,h,d){var $0=D(h);return m(E,v,(Y0,H0)=>{$0(Y0,(G0,z0)=>{if(G0)return H0(G0);return H0(G0,{key:z0,val:Y0})})},(Y0,H0)=>{var G0={},{hasOwnProperty:z0}=Object.prototype;for(var S0=0;S0{Y0(H0,G0,(S0,G1)=>{if(S0)return z0(S0);$0[G0]=G1,z0(S0)})},(H0)=>d(H0,$0))}var nH=F(KL0,4);function Gk(E,v,h){return nH(E,1/0,v,h)}function Wk(E,v,h){return nH(E,1,v,h)}function wk(E,v=(h)=>h){var h=Object.create(null),d=Object.create(null),$0=D(E),Y0=U((H0,G0)=>{var z0=v(...H0);if(z0 in h)G(()=>G0(null,...h[z0]));else if(z0 in d)d[z0].push(G0);else d[z0]=[G0],$0(...H0,(S0,...G1)=>{if(!S0)h[z0]=G1;var F1=d[z0];delete d[z0];for(var V1=0,M$=F1.length;V1{var d=A(v)?[]:{};E(v,($0,Y0,H0)=>{D($0)((G0,...z0)=>{if(z0.length<2)[z0]=z0;d[Y0]=z0,H0(G0)})},($0)=>h($0,d))},3);function Zk(E,v){return aD(J0,E,v)}function zk(E,v,h){return aD(b(v),E,h)}function sD(E,v){var h=D(E);return a5((d,$0)=>{h(d[0],$0)},v,1)}class Xk{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(E){let v;while(E>0&&eD(this.heap[E],this.heap[v=Lk(E)])){let h=this.heap[E];this.heap[E]=this.heap[v],this.heap[v]=h,E=v}}percDown(E){let v;while((v=qL0(E))=0;h--)this.percDown(h);return this}}function qL0(E){return(E<<1)+1}function Lk(E){return(E+1>>1)-1}function eD(E,v){if(E.priority!==v.priority)return E.priority{return{data:H0,priority:G0,callback:z0}};function Y0(H0,G0){if(!Array.isArray(H0))return{data:H0,priority:G0};return H0.map((z0)=>{return{data:z0,priority:G0}})}return h.push=function(H0,G0=0,z0){return d(Y0(H0,G0),z0)},h.pushAsync=function(H0,G0=0,z0){return $0(Y0(H0,G0),z0)},delete h.unshift,delete h.unshiftAsync,h}function HL0(E,v){if(v=x(v),!Array.isArray(E))return v(TypeError("First argument to race must be an array of functions"));if(!E.length)return v();for(var h=0,d=E.length;h{let G0={};if(Y0)G0.error=Y0;if(H0.length>0){var z0=H0;if(H0.length<=1)[z0]=H0;G0.value=z0}$0(null,G0)}),v.apply(this,d)})}function Fk(E){var v;if(Array.isArray(E))v=E.map(dH);else v={},Object.keys(E).forEach((h)=>{v[h]=dH.call(this,E[h])});return v}function $O(E,v,h,d){let $0=D(h);return kH(E,v,(Y0,H0)=>{$0(Y0,(G0,z0)=>{H0(G0,!z0)})},d)}function GL0(E,v,h){return $O(J0,E,v,h)}var Nk=F(GL0,3);function WL0(E,v,h,d){return $O(b(v),E,h,d)}var Mk=F(WL0,4);function wL0(E,v,h){return $O(x0,E,v,h)}var Ak=F(wL0,3);function Pk(E){return function(){return E}}let IO=5,Tk=0;function mH(E,v,h){var d={times:IO,intervalFunc:Pk(Tk)};if(arguments.length<3&&typeof E==="function")h=v||U1(),v=E;else VL0(d,E),h=h||U1();if(typeof v!=="function")throw Error("Invalid arguments for async.retry");var $0=D(v),Y0=1;function H0(){$0((G0,...z0)=>{if(G0===!1)return;if(G0&&Y0++{if($0.lengthd)(J0,E,v,h)}var lH=F(ZL0,3);function zL0(E,v,h,d){return G4(Boolean,($0)=>$0)(b(v),E,h,d)}var oH=F(zL0,4);function XL0(E,v,h){return G4(Boolean,(d)=>d)(x0,E,v,h)}var rH=F(XL0,3);function LL0(E,v,h){var d=D(v);return A0(E,(Y0,H0)=>{d(Y0,(G0,z0)=>{if(G0)return H0(G0);H0(G0,{value:Y0,criteria:z0})})},(Y0,H0)=>{if(Y0)return h(Y0);h(null,H0.sort($0).map((G0)=>G0.value))});function $0(Y0,H0){var G0=Y0.criteria,z0=H0.criteria;return G0z0?1:0}}var vk=F(LL0,3);function Rk(E,v,h){var d=D(E);return U(($0,Y0)=>{var H0=!1,G0;function z0(){var S0=E.name||"anonymous",G1=Error('Callback function "'+S0+'" timed out.');if(G1.code="ETIMEDOUT",h)G1.info=h;H0=!0,Y0(G1)}$0.push((...S0)=>{if(!H0)Y0(...S0),clearTimeout(G0)}),G0=setTimeout(z0,v),d(...$0)})}function DL0(E){var v=Array(E);while(E--)v[E]=E;return v}function tH(E,v,h,d){var $0=D(h);return m(DL0(E),v,$0,d)}function jk(E,v,h){return tH(E,1/0,v,h)}function Ck(E,v,h){return tH(E,1,v,h)}function _k(E,v,h,d){if(arguments.length<=3&&typeof v==="function")d=h,h=v,v=Array.isArray(E)?[]:{};d=x(d||U1());var $0=D(h);return J0(E,(Y0,H0,G0)=>{$0(v,Y0,H0,G0)},(Y0)=>d(Y0,v)),d[R0]}function OL0(E,v){var h=null,d;return fJ(E,($0,Y0)=>{D($0)((H0,...G0)=>{if(H0===!1)return Y0(H0);if(G0.length<2)[d]=G0;else d=G0;h=H0,Y0(H0?null:{})})},()=>v(h,d))}var Sk=F(OL0);function gk(E){return(...v)=>{return(E.unmemoized||E)(...v)}}function FL0(E,v,h){h=S(h);var d=D(v),$0=D(E),Y0=[];function H0(z0,...S0){if(z0)return h(z0);if(Y0=S0,z0===!1)return;$0(G0)}function G0(z0,S0){if(z0)return h(z0);if(z0===!1)return;if(!S0)return h(null,...Y0);d(H0)}return $0(G0)}var iJ=F(FL0,3);function yk(E,v,h){let d=D(E);return iJ(($0)=>d((Y0,H0)=>$0(Y0,!H0)),v,h)}function NL0(E,v){if(v=x(v),!Array.isArray(E))return v(Error("First argument to waterfall must be an array of functions"));if(!E.length)return v();var h=0;function d(Y0){var H0=D(E[h++]);H0(...Y0,S($0))}function $0(Y0,...H0){if(Y0===!1)return;if(Y0||h===E.length)return v(Y0,...H0);d(H0)}d([])}var hk=F(NL0),ML0={apply:I,applyEach:j0,applyEachSeries:Q0,asyncify:W,auto:O1,autoInject:Y$,cargo:v0,cargoQueue:a,compose:u,concat:_0,concatLimit:K0,concatSeries:f0,constant:H1,detect:s5,detectLimit:_H,detectSeries:SH,dir:Uk,doUntil:Yk,doWhilst:kJ,each:gH,eachLimit:xJ,eachOf:J0,eachOfLimit:B,eachOfSeries:x0,eachSeries:fJ,ensureAsync:tD,every:yH,everyLimit:hH,everySeries:uH,filter:xH,filterLimit:fH,filterSeries:iH,forever:Qk,groupBy:Kk,groupByLimit:bH,groupBySeries:qk,log:Hk,map:A0,mapLimit:m,mapSeries:M0,mapValues:Gk,mapValuesLimit:nH,mapValuesSeries:Wk,memoize:wk,nextTick:Vk,parallel:Zk,parallelLimit:zk,priorityQueue:Dk,queue:sD,race:Ok,reduce:M,reduceRight:cH,reflect:dH,reflectAll:Fk,reject:Nk,rejectLimit:Mk,rejectSeries:Ak,retry:mH,retryable:Ek,seq:C,series:Bk,setImmediate:G,some:lH,someLimit:oH,someSeries:rH,sortBy:vk,timeout:Rk,times:jk,timesLimit:tH,timesSeries:Ck,transform:_k,tryEach:Sk,unmemoize:gk,until:yk,waterfall:hk,whilst:iJ,all:yH,allLimit:hH,allSeries:uH,any:lH,anyLimit:oH,anySeries:rH,find:s5,findLimit:_H,findSeries:SH,flatMap:_0,flatMapLimit:K0,flatMapSeries:f0,forEach:gH,forEachSeries:fJ,forEachLimit:xJ,forEachOf:J0,forEachOfSeries:x0,forEachOfLimit:B,inject:M,foldl:M,foldr:cH,select:xH,selectLimit:fH,selectSeries:iH,wrapSync:W,during:iJ,doDuring:kJ};$.all=yH,$.allLimit=hH,$.allSeries=uH,$.any=lH,$.anyLimit=oH,$.anySeries=rH,$.apply=I,$.applyEach=j0,$.applyEachSeries=Q0,$.asyncify=W,$.auto=O1,$.autoInject=Y$,$.cargo=v0,$.cargoQueue=a,$.compose=u,$.concat=_0,$.concatLimit=K0,$.concatSeries=f0,$.constant=H1,$.default=ML0,$.detect=s5,$.detectLimit=_H,$.detectSeries=SH,$.dir=Uk,$.doDuring=kJ,$.doUntil=Yk,$.doWhilst=kJ,$.during=iJ,$.each=gH,$.eachLimit=xJ,$.eachOf=J0,$.eachOfLimit=B,$.eachOfSeries=x0,$.eachSeries=fJ,$.ensureAsync=tD,$.every=yH,$.everyLimit=hH,$.everySeries=uH,$.filter=xH,$.filterLimit=fH,$.filterSeries=iH,$.find=s5,$.findLimit=_H,$.findSeries=SH,$.flatMap=_0,$.flatMapLimit=K0,$.flatMapSeries=f0,$.foldl=M,$.foldr=cH,$.forEach=gH,$.forEachLimit=xJ,$.forEachOf=J0,$.forEachOfLimit=B,$.forEachOfSeries=x0,$.forEachSeries=fJ,$.forever=Qk,$.groupBy=Kk,$.groupByLimit=bH,$.groupBySeries=qk,$.inject=M,$.log=Hk,$.map=A0,$.mapLimit=m,$.mapSeries=M0,$.mapValues=Gk,$.mapValuesLimit=nH,$.mapValuesSeries=Wk,$.memoize=wk,$.nextTick=Vk,$.parallel=Zk,$.parallelLimit=zk,$.priorityQueue=Dk,$.queue=sD,$.race=Ok,$.reduce=M,$.reduceRight=cH,$.reflect=dH,$.reflectAll=Fk,$.reject=Nk,$.rejectLimit=Mk,$.rejectSeries=Ak,$.retry=mH,$.retryable=Ek,$.select=xH,$.selectLimit=fH,$.selectSeries=iH,$.seq=C,$.series=Bk,$.setImmediate=G,$.some=lH,$.someLimit=oH,$.someSeries=rH,$.sortBy=vk,$.timeout=Rk,$.times=jk,$.timesLimit=tH,$.timesSeries=Ck,$.transform=_k,$.tryEach=Sk,$.unmemoize=gk,$.until=yk,$.waterfall=hk,$.whilst=iJ,$.wrapSync=W,Object.defineProperty($,"__esModule",{value:!0})})});var xI0=O((sv1,kI0)=>{var s9=t("constants"),t01=process.cwd,oz=null,a01=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!oz)oz=t01.call(process);return oz};try{process.cwd()}catch($){}if(typeof process.chdir==="function"){if(rz=process.chdir,process.chdir=function($){oz=null,rz.call(process,$)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,rz)}var rz;kI0.exports=s01;function s01($){if(s9.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))I($);if(!$.lutimes)U($);if($.chown=Q($.chown),$.fchown=Q($.fchown),$.lchown=Q($.lchown),$.chmod=Y($.chmod),$.fchmod=Y($.fchmod),$.lchmod=Y($.lchmod),$.chownSync=K($.chownSync),$.fchownSync=K($.fchownSync),$.lchownSync=K($.lchownSync),$.chmodSync=J($.chmodSync),$.fchmodSync=J($.fchmodSync),$.lchmodSync=J($.lchmodSync),$.stat=q($.stat),$.fstat=q($.fstat),$.lstat=q($.lstat),$.statSync=H($.statSync),$.fstatSync=H($.fstatSync),$.lstatSync=H($.lstatSync),$.chmod&&!$.lchmod)$.lchmod=function(W,w,Z){if(Z)process.nextTick(Z)},$.lchmodSync=function(){};if($.chown&&!$.lchown)$.lchown=function(W,w,Z,V){if(V)process.nextTick(V)},$.lchownSync=function(){};if(a01==="win32")$.rename=typeof $.rename!=="function"?$.rename:function(W){function w(Z,V,X){var L=Date.now(),D=0;W(Z,V,function F(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-L<60000){if(setTimeout(function(){$.stat(V,function(T,A){if(T&&T.code==="ENOENT")W(Z,V,F);else X(P)})},D),D<100)D+=10;return}if(X)X(P)})}if(Object.setPrototypeOf)Object.setPrototypeOf(w,W);return w}($.rename);$.read=typeof $.read!=="function"?$.read:function(W){function w(Z,V,X,L,D,F){var P;if(F&&typeof F==="function"){var T=0;P=function(A,R,x){if(A&&A.code==="EAGAIN"&&T<10)return T++,W.call($,Z,V,X,L,D,P);F.apply(this,arguments)}}return W.call($,Z,V,X,L,D,P)}if(Object.setPrototypeOf)Object.setPrototypeOf(w,W);return w}($.read),$.readSync=typeof $.readSync!=="function"?$.readSync:function(W){return function(w,Z,V,X,L){var D=0;while(!0)try{return W.call($,w,Z,V,X,L)}catch(F){if(F.code==="EAGAIN"&&D<10){D++;continue}throw F}}}($.readSync);function I(W){W.lchmod=function(w,Z,V){W.open(w,s9.O_WRONLY|s9.O_SYMLINK,Z,function(X,L){if(X){if(V)V(X);return}W.fchmod(L,Z,function(D){W.close(L,function(F){if(V)V(D||F)})})})},W.lchmodSync=function(w,Z){var V=W.openSync(w,s9.O_WRONLY|s9.O_SYMLINK,Z),X=!0,L;try{L=W.fchmodSync(V,Z),X=!1}finally{if(X)try{W.closeSync(V)}catch(D){}else W.closeSync(V)}return L}}function U(W){if(s9.hasOwnProperty("O_SYMLINK")&&W.futimes)W.lutimes=function(w,Z,V,X){W.open(w,s9.O_SYMLINK,function(L,D){if(L){if(X)X(L);return}W.futimes(D,Z,V,function(F){W.close(D,function(P){if(X)X(F||P)})})})},W.lutimesSync=function(w,Z,V){var X=W.openSync(w,s9.O_SYMLINK),L,D=!0;try{L=W.futimesSync(X,Z,V),D=!1}finally{if(D)try{W.closeSync(X)}catch(F){}else W.closeSync(X)}return L};else if(W.futimes)W.lutimes=function(w,Z,V,X){if(X)process.nextTick(X)},W.lutimesSync=function(){}}function Y(W){if(!W)return W;return function(w,Z,V){return W.call($,w,Z,function(X){if(G(X))X=null;if(V)V.apply(this,arguments)})}}function J(W){if(!W)return W;return function(w,Z){try{return W.call($,w,Z)}catch(V){if(!G(V))throw V}}}function Q(W){if(!W)return W;return function(w,Z,V,X){return W.call($,w,Z,V,function(L){if(G(L))L=null;if(X)X.apply(this,arguments)})}}function K(W){if(!W)return W;return function(w,Z,V){try{return W.call($,w,Z,V)}catch(X){if(!G(X))throw X}}}function q(W){if(!W)return W;return function(w,Z,V){if(typeof Z==="function")V=Z,Z=null;function X(L,D){if(D){if(D.uid<0)D.uid+=4294967296;if(D.gid<0)D.gid+=4294967296}if(V)V.apply(this,arguments)}return Z?W.call($,w,Z,X):W.call($,w,X)}}function H(W){if(!W)return W;return function(w,Z){var V=Z?W.call($,w,Z):W.call($,w);if(V){if(V.uid<0)V.uid+=4294967296;if(V.gid<0)V.gid+=4294967296}return V}}function G(W){if(!W)return!0;if(W.code==="ENOSYS")return!0;var w=!process.getuid||process.getuid()!==0;if(w){if(W.code==="EINVAL"||W.code==="EPERM")return!0}return!1}}});var bI0=O((ev1,iI0)=>{var fI0=t("stream").Stream;iI0.exports=e01;function e01($){return{ReadStream:I,WriteStream:U};function I(Y,J){if(!(this instanceof I))return new I(Y,J);fI0.call(this);var Q=this;this.path=Y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,J=J||{};var K=Object.keys(J);for(var q=0,H=K.length;qthis.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){Q._read()});return}$.open(this.path,this.flags,this.mode,function(W,w){if(W){Q.emit("error",W),Q.readable=!1;return}Q.fd=w,Q.emit("open",w),Q._read()})}function U(Y,J){if(!(this instanceof U))return new U(Y,J);fI0.call(this),this.path=Y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,J=J||{};var Q=Object.keys(J);for(var K=0,q=Q.length;K= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=$.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var pI0=O(($R1,nI0)=>{nI0.exports=I11;var $11=Object.getPrototypeOf||function($){return $.__proto__};function I11($){if($===null||typeof $!=="object")return $;if($ instanceof Object)var I={__proto__:$11($)};else var I=Object.create(null);return Object.getOwnPropertyNames($).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor($,U))}),I}});var s6=O((IR1,O_)=>{var Z4=t("fs"),U11=xI0(),Y11=bI0(),J11=pI0(),tz=t("util"),Q6,sz;if(typeof Symbol==="function"&&typeof Symbol.for==="function")Q6=Symbol.for("graceful-fs.queue"),sz=Symbol.for("graceful-fs.previous");else Q6="___graceful-fs.queue",sz="___graceful-fs.previous";function Q11(){}function dI0($,I){Object.defineProperty($,Q6,{get:function(){return I}})}var v3=Q11;if(tz.debuglog)v3=tz.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))v3=function(){var $=tz.format.apply(tz,arguments);$="GFS4: "+$.split(/\n/).join(` +GFS4: `),console.error($)};if(!Z4[Q6]){if(X_=global[Q6]||[],dI0(Z4,X_),Z4.close=function($){function I(U,Y){return $.call(Z4,U,function(J){if(!J)cI0();if(typeof Y==="function")Y.apply(this,arguments)})}return Object.defineProperty(I,sz,{value:$}),I}(Z4.close),Z4.closeSync=function($){function I(U){$.apply(Z4,arguments),cI0()}return Object.defineProperty(I,sz,{value:$}),I}(Z4.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){v3(Z4[Q6]),t("assert").equal(Z4[Q6].length,0)})}var X_;if(!global[Q6])dI0(global,Z4[Q6]);O_.exports=L_(J11(Z4));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Z4.__patched)O_.exports=L_(Z4),Z4.__patched=!0;function L_($){U11($),$.gracefulify=L_,$.createReadStream=R,$.createWriteStream=x;var I=$.readFile;$.readFile=U;function U(j,p,n){if(typeof p==="function")n=p,p=null;return S(j,p,n);function S(i,b,U0,B){return I(i,b,function(k){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))hY([S,[i,b,U0],k,B||Date.now(),Date.now()]);else if(typeof U0==="function")U0.apply(this,arguments)})}}var Y=$.writeFile;$.writeFile=J;function J(j,p,n,S){if(typeof n==="function")S=n,n=null;return i(j,p,n,S);function i(b,U0,B,k,c){return Y(b,U0,B,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))hY([i,[b,U0,B,k],r,c||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var Q=$.appendFile;if(Q)$.appendFile=K;function K(j,p,n,S){if(typeof n==="function")S=n,n=null;return i(j,p,n,S);function i(b,U0,B,k,c){return Q(b,U0,B,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))hY([i,[b,U0,B,k],r,c||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var q=$.copyFile;if(q)$.copyFile=H;function H(j,p,n,S){if(typeof n==="function")S=n,n=0;return i(j,p,n,S);function i(b,U0,B,k,c){return q(b,U0,B,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))hY([i,[b,U0,B,k],r,c||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var G=$.readdir;$.readdir=w;var W=/^v[0-5]\./;function w(j,p,n){if(typeof p==="function")n=p,p=null;var S=W.test(process.version)?function(U0,B,k,c){return G(U0,i(U0,B,k,c))}:function(U0,B,k,c){return G(U0,B,i(U0,B,k,c))};return S(j,p,n);function i(b,U0,B,k){return function(c,r){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))hY([S,[b,U0,B],c,k||Date.now(),Date.now()]);else{if(r&&r.sort)r.sort();if(typeof B==="function")B.call(this,c,r)}}}}if(process.version.substr(0,4)==="v0.8"){var Z=Y11($);F=Z.ReadStream,T=Z.WriteStream}var V=$.ReadStream;if(V)F.prototype=Object.create(V.prototype),F.prototype.open=P;var X=$.WriteStream;if(X)T.prototype=Object.create(X.prototype),T.prototype.open=A;Object.defineProperty($,"ReadStream",{get:function(){return F},set:function(j){F=j},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return T},set:function(j){T=j},enumerable:!0,configurable:!0});var L=F;Object.defineProperty($,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var D=T;Object.defineProperty($,"FileWriteStream",{get:function(){return D},set:function(j){D=j},enumerable:!0,configurable:!0});function F(j,p){if(this instanceof F)return V.apply(this,arguments),this;else return F.apply(Object.create(F.prototype),arguments)}function P(){var j=this;f(j.path,j.flags,j.mode,function(p,n){if(p){if(j.autoClose)j.destroy();j.emit("error",p)}else j.fd=n,j.emit("open",n),j.read()})}function T(j,p){if(this instanceof T)return X.apply(this,arguments),this;else return T.apply(Object.create(T.prototype),arguments)}function A(){var j=this;f(j.path,j.flags,j.mode,function(p,n){if(p)j.destroy(),j.emit("error",p);else j.fd=n,j.emit("open",n)})}function R(j,p){return new $.ReadStream(j,p)}function x(j,p){return new $.WriteStream(j,p)}var y=$.open;$.open=f;function f(j,p,n,S){if(typeof n==="function")S=n,n=null;return i(j,p,n,S);function i(b,U0,B,k,c){return y(b,U0,B,function(r,J0){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))hY([i,[b,U0,B,k],r,c||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}return $}function hY($){v3("ENQUEUE",$[0].name,$[1]),Z4[Q6].push($),D_()}var az;function cI0(){var $=Date.now();for(var I=0;I2)Z4[Q6][I][3]=$,Z4[Q6][I][4]=$;D_()}function D_(){if(clearTimeout(az),az=void 0,Z4[Q6].length===0)return;var $=Z4[Q6].shift(),I=$[0],U=$[1],Y=$[2],J=$[3],Q=$[4];if(J===void 0)v3("RETRY",I.name,U),I.apply(null,U);else if(Date.now()-J>=60000){v3("TIMEOUT",I.name,U);var K=U.pop();if(typeof K==="function")K.call(null,Y)}else{var q=Date.now()-Q,H=Math.max(Q-J,1),G=Math.min(H*1.2,100);if(q>=G)v3("RETRY",I.name,U),I.apply(null,U.concat([J]));else Z4[Q6].push($)}if(az===void 0)az=setTimeout(D_,0)}});var lI0=O((UR1,F_)=>{function K11($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var mI0=A4().Buffer,bK=t("util");function q11($,I,U){$.copy(I,U)}F_.exports=function(){function $(){K11(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return mI0.alloc(0);var Y=mI0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)q11(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(bK&&bK.inspect&&bK.inspect.custom)F_.exports.prototype[bK.inspect.custom]=function(){var $=bK.inspect({length:this.length});return this.constructor.name+" "+$}});var N_=O((YR1,oI0)=>{var ez=M4();function H11($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)ez.nextTick($X,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,ez.nextTick($X,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)ez.nextTick($X,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,ez.nextTick($X,U,Q)}else if(I)I(Q)}),this}function G11(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function $X($,I){$.emit("error",I)}oI0.exports={destroy:H11,undestroy:G11}});var A_=O((JR1,UU0)=>{var R3=M4();UU0.exports=B4;function tI0($){var I=this;this.next=null,this.entry=null,this.finish=function(){v11(I,$)}}var W11=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:R3.nextTick,uY;B4.WritableState=pK;var aI0=Object.create(l1());aI0.inherits=d0();var w11={deprecate:d7()},sI0=t("stream"),UX=A4().Buffer,V11=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Z11($){return UX.from($)}function z11($){return UX.isBuffer($)||$ instanceof V11}var eI0=N_();aI0.inherits(B4,sI0);function X11(){}function pK($,I){uY=uY||j3(),$=$||{};var U=I instanceof uY;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){A11(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new tI0(this)}pK.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(pK.prototype,"buffer",{get:w11.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var IX;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")IX=Function.prototype[Symbol.hasInstance],Object.defineProperty(B4,Symbol.hasInstance,{value:function($){if(IX.call(this,$))return!0;if(this!==B4)return!1;return $&&$._writableState instanceof pK}});else IX=function($){return $ instanceof this};function B4($){if(uY=uY||j3(),!IX.call(B4,this)&&!(this instanceof uY))return new B4($);if(this._writableState=new pK($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}sI0.call(this)}B4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function L11($,I){var U=Error("write after end");$.emit("error",U),R3.nextTick(I,U)}function D11($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),R3.nextTick(Y,Q),J=!1;return J}B4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&z11($);if(Q&&!UX.isBuffer($))$=Z11($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=X11;if(Y.ended)L11(this,U);else if(Q||D11(this,Y,$,U))Y.pendingcb++,J=F11(this,Y,Q,$,I,U);return J};B4.prototype.cork=function(){var $=this._writableState;$.corked++};B4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)$U0(this,$)}};B4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function O11($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=UX.from(I,U);return I}Object.defineProperty(B4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F11($,I,U,Y,J,Q){if(!U){var K=O11(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var YU0=M4(),R11=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};KU0.exports=_5;var JU0=Object.create(l1());JU0.inherits=d0();var QU0=T_(),P_=A_();JU0.inherits(_5,QU0);{YX=R11(P_.prototype);for(cK=0;cK{var B_=A4().Buffer,qU0=B_.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _11($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function S11($){var I=_11($);if(typeof I!=="string"&&(B_.isEncoding===qU0||!qU0($)))throw Error("Unknown encoding: "+$);return I||$}c11.StringDecoder=mK;function mK($){this.encoding=S11($);var I;switch(this.encoding){case"utf16le":this.text=x11,this.end=f11,I=4;break;case"utf8":this.fillLast=h11,I=4;break;case"base64":this.text=i11,this.end=b11,I=3;break;default:this.write=n11,this.end=p11;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=B_.allocUnsafe(I)}mK.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};mK.prototype.end=k11;mK.prototype.text=u11;mK.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function E_($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function g11($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function y11($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function h11($){var I=this.lastTotal-this.lastNeed,U=y11(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function u11($,I){var U=g11(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function k11($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function x11($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function f11($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function i11($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function b11($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function n11($){return $.toString(this.encoding)}function p11($){return $&&$.length?this.write($):""}});var T_=O((HR1,FU0)=>{var xY=M4();FU0.exports=I4;var m11=RU(),lK;I4.ReadableState=zU0;var qR1=t("events").EventEmitter,wU0=function($,I){return $.listeners(I).length},S_=t("stream"),oK=A4().Buffer,l11=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o11($){return oK.from($)}function r11($){return oK.isBuffer($)||$ instanceof l11}var VU0=Object.create(l1());VU0.inherits=d0();var R_=t("util"),B1=void 0;if(R_&&R_.debuglog)B1=R_.debuglog("stream");else B1=function(){};var t11=lI0(),ZU0=N_(),kY;VU0.inherits(I4,S_);var j_=["error","close","destroy","pause","resume"];function a11($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(m11($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function zU0($,I){lK=lK||j3(),$=$||{};var U=I instanceof lK;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new t11,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!kY)kY=v_().StringDecoder;this.decoder=new kY($.encoding),this.encoding=$.encoding}}function I4($){if(lK=lK||j3(),!(this instanceof I4))return new I4($);if(this._readableState=new zU0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}S_.call(this)}Object.defineProperty(I4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});I4.prototype.destroy=ZU0.destroy;I4.prototype._undestroy=ZU0.undestroy;I4.prototype._destroy=function($,I){this.push(null),I($)};I4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=oK.from($,I),I="";Y=!0}}else Y=!0;return XU0(this,$,I,!1,Y)};I4.prototype.unshift=function($){return XU0(this,$,null,!0,!1)};function XU0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,I41($,Q);else{var K;if(!J)K=s11(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==oK.prototype)I=o11(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else C_($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)C_($,Q,I,!1);else LU0($,Q);else C_($,Q,I,!1)}else if(!Y)Q.reading=!1}return e11(Q)}function C_($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)JX($)}LU0($,I)}function s11($,I){var U;if(!r11(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function e11($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}I4.prototype.isPaused=function(){return this._readableState.flowing===!1};I4.prototype.setEncoding=function($){if(!kY)kY=v_().StringDecoder;return this._readableState.decoder=new kY($),this._readableState.encoding=$,this};var HU0=8388608;function $41($){if($>=HU0)$=HU0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function GU0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=$41($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}I4.prototype.read=function($){B1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(B1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)__(this);else JX(this);return null}if($=GU0($,I),$===0&&I.ended){if(I.length===0)__(this);return null}var Y=I.needReadable;if(B1("need readable",Y),I.length===0||I.length-$0)J=DU0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)__(this)}if(J!==null)this.emit("data",J);return J};function I41($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,JX($)}function JX($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(B1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)xY.nextTick(WU0,$);else WU0($)}function WU0($){B1("emit readable"),$.emit("readable"),g_($)}function LU0($,I){if(!I.readingMore)I.readingMore=!0,xY.nextTick(U41,$,I)}function U41($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&OU0(Y.pipes,$)!==-1)&&!G)B1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(B1("onerror",F),D(),$.removeListener("error",V),wU0($,"error")===0)$.emit("error",F)}a11($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){B1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){B1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)B1("pipe resume"),U.resume();return $};function Y41($){return function(){var I=$._readableState;if(B1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&wU0($,"data"))I.flowing=!0,g_($)}}I4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=q41($,I.buffer,I.decoder);return U}function q41($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function G41($,I){var U=oK.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function __($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,xY.nextTick(W41,I,$)}function W41($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function OU0($,I){for(var U=0,Y=$.length;U{AU0.exports=S5;var QX=j3(),MU0=Object.create(l1());MU0.inherits=d0();MU0.inherits(S5,QX);function w41($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{EU0.exports=rK;var PU0=y_(),TU0=Object.create(l1());TU0.inherits=d0();TU0.inherits(rK,PU0);function rK($){if(!(this instanceof rK))return new rK($);PU0.call(this,$)}rK.prototype._transform=function($,I,U){U(null,$)}});var vU0=O((K6,KX)=>{var x8=t("stream");if(process.env.READABLE_STREAM==="disable"&&x8)KX.exports=x8,K6=KX.exports=x8.Readable,K6.Readable=x8.Readable,K6.Writable=x8.Writable,K6.Duplex=x8.Duplex,K6.Transform=x8.Transform,K6.PassThrough=x8.PassThrough,K6.Stream=x8;else K6=KX.exports=T_(),K6.Stream=x8||K6,K6.Readable=K6,K6.Writable=A_(),K6.Duplex=j3(),K6.Transform=y_(),K6.PassThrough=BU0()});var jU0=O((wR1,RU0)=>{RU0.exports=vU0().PassThrough});var h_=O((VR1,SU0)=>{var CU0=t("util"),GX=jU0();SU0.exports={Readable:qX,Writable:HX};CU0.inherits(qX,GX);CU0.inherits(HX,GX);function _U0($,I,U){$[I]=function(){return delete $[I],U.apply(this,arguments),this[I].apply(this,arguments)}}function qX($,I){if(!(this instanceof qX))return new qX($,I);GX.call(this,I),_U0(this,"_read",function(){var U=$.call(this,I),Y=this.emit.bind(this,"error");U.on("error",Y),U.pipe(this)}),this.emit("readable")}function HX($,I){if(!(this instanceof HX))return new HX($,I);GX.call(this,I),_U0(this,"_write",function(){var U=$.call(this,I),Y=this.emit.bind(this,"error");U.on("error",Y),this.pipe(U)}),this.emit("writable")}});var WX=O((ZR1,gU0)=>{/*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. - */gU0.exports=function($,I){if(typeof $!=="string")throw TypeError("expected path to be a string");if($==="\\"||$==="/")return"/";var U=$.length;if(U<=1)return $;var Y="";if(U>4&&$[3]==="\\"){var J=$[2];if((J==="?"||J===".")&&$.slice(0,2)==="\\\\")$=$.slice(2),Y="//"}var Q=$.split(/[/\\]+/);if(I!==!1&&Q[Q.length-1]==="")Q.pop();return Y+Q.join("/")}});var x_=O((ZR1,bU0)=>{var hU0=9007199254740991,Z41="[object Arguments]",z41="[object Function]",X41="[object GeneratorFunction]",L41=/^(?:0|[1-9]\d*)$/;function uU0($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function D41($,I){var U=-1,Y=Array($);while(++U<$)Y[U]=I(U);return Y}var tK=Object.prototype,aK=tK.hasOwnProperty,xU0=tK.toString,O41=tK.propertyIsEnumerable,yU0=Math.max;function F41($,I){var U=j41($)||R41($)?D41($.length,String):[],Y=U.length,J=!!Y;for(var Q in $)if((I||aK.call($,Q))&&!(J&&(Q=="length"||fU0(Q,Y))))U.push(Q);return U}function N41($,I,U,Y){if($===void 0||y_($,tK[U])&&!aK.call(Y,U))return I;return $}function M41($,I,U){var Y=$[I];if(!(aK.call($,I)&&y_(Y,U))||U===void 0&&!(I in $))$[I]=U}function A41($){if(!u_($))return v41($);var I=B41($),U=[];for(var Y in $)if(!(Y=="constructor"&&(I||!aK.call($,Y))))U.push(Y);return U}function kU0($,I){return I=yU0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=yU0(U.length-I,0),Q=Array(J);while(++Y1?U[J-1]:void 0,K=J>2?U[2]:void 0;if(Q=$.length>3&&typeof Q=="function"?(J--,Q):void 0,K&&E41(U[0],U[1],K))Q=J<3?void 0:Q,J=1;I=Object(I);while(++Y-1&&$%1==0&&$-1&&$%1==0&&$<=hU0}function u_($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function g41($){return!!$&&typeof $=="object"}var y41=T41(function($,I,U,Y){P41(I,u41(I),$,Y)}),h41=kU0(function($){return $.push(void 0,N41),uU0(y41,void 0,$)});function u41($){return h_($)?F41($,!0):A41($)}bU0.exports=h41});var nU0=O((zR1,k_)=>{function x41($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var iU0=A4().Buffer,sK=t("util");function k41($,I,U){$.copy(I,U)}k_.exports=function(){function $(){x41(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return iU0.alloc(0);var Y=iU0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)k41(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(sK&&sK.inspect&&sK.inspect.custom)k_.exports.prototype[sK.inspect.custom]=function(){var $=sK.inspect({length:this.length});return this.constructor.name+" "+$}});var f_=O((XR1,pU0)=>{var WX=M4();function f41($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)WX.nextTick(wX,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,WX.nextTick(wX,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)WX.nextTick(wX,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,WX.nextTick(wX,U,Q)}else if(I)I(Q)}),this}function b41(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function wX($,I){$.emit("error",I)}pU0.exports={destroy:f41,undestroy:b41}});var i_=O((LR1,aU0)=>{var C3=M4();aU0.exports=v4;function dU0($){var I=this;this.next=null,this.entry=null,this.finish=function(){J61(I,$)}}var i41=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:C3.nextTick,xY;v4.WritableState=$q;var mU0=Object.create(l1());mU0.inherits=c0();var n41={deprecate:d7()},lU0=t("stream"),ZX=A4().Buffer,p41=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c41($){return ZX.from($)}function d41($){return ZX.isBuffer($)||$ instanceof p41}var oU0=f_();mU0.inherits(v4,lU0);function m41(){}function $q($,I){xY=xY||_3(),$=$||{};var U=I instanceof xY;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){e41(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new dU0(this)}$q.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty($q.prototype,"buffer",{get:n41.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var VX;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")VX=Function.prototype[Symbol.hasInstance],Object.defineProperty(v4,Symbol.hasInstance,{value:function($){if(VX.call(this,$))return!0;if(this!==v4)return!1;return $&&$._writableState instanceof $q}});else VX=function($){return $ instanceof this};function v4($){if(xY=xY||_3(),!VX.call(v4,this)&&!(this instanceof xY))return new v4($);if(this._writableState=new $q($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}lU0.call(this)}v4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function l41($,I){var U=Error("write after end");$.emit("error",U),C3.nextTick(I,U)}function o41($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),C3.nextTick(Y,Q),J=!1;return J}v4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&d41($);if(Q&&!ZX.isBuffer($))$=c41($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=m41;if(Y.ended)l41(this,U);else if(Q||o41(this,Y,$,U))Y.pendingcb++,J=t41(this,Y,Q,$,I,U);return J};v4.prototype.cork=function(){var $=this._writableState;$.corked++};v4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)rU0(this,$)}};v4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function r41($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=ZX.from(I,U);return I}Object.defineProperty(v4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t41($,I,U,Y,J,Q){if(!U){var K=r41(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var sU0=M4(),Q61=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};IY0.exports=g5;var eU0=Object.create(l1());eU0.inherits=c0();var $Y0=p_(),n_=i_();eU0.inherits(g5,$Y0);{zX=Q61(n_.prototype);for(Iq=0;Iq{var d_=A4().Buffer,UY0=d_.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function H61($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function G61($){var I=H61($);if(typeof I!=="string"&&(d_.isEncoding===UY0||!UY0($)))throw Error("Unknown encoding: "+$);return I||$}M61.StringDecoder=Yq;function Yq($){this.encoding=G61($);var I;switch(this.encoding){case"utf16le":this.text=X61,this.end=L61,I=4;break;case"utf8":this.fillLast=V61,I=4;break;case"base64":this.text=D61,this.end=O61,I=3;break;default:this.write=F61,this.end=N61;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d_.allocUnsafe(I)}Yq.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};Yq.prototype.end=z61;Yq.prototype.text=Z61;Yq.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function c_($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function W61($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function w61($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function V61($){var I=this.lastTotal-this.lastNeed,U=w61(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function Z61($,I){var U=W61(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function z61($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function X61($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function L61($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function D61($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function O61($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function F61($){return $.toString(this.encoding)}function N61($){return $&&$.length?this.write($):""}});var p_=O((NR1,zY0)=>{var fY=M4();zY0.exports=U4;var P61=BU(),Jq;U4.ReadableState=GY0;var FR1=t("events").EventEmitter,KY0=function($,I){return $.listeners(I).length},a_=t("stream"),Qq=A4().Buffer,T61=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E61($){return Qq.from($)}function B61($){return Qq.isBuffer($)||$ instanceof T61}var qY0=Object.create(l1());qY0.inherits=c0();var l_=t("util"),v1=void 0;if(l_&&l_.debuglog)v1=l_.debuglog("stream");else v1=function(){};var v61=nU0(),HY0=f_(),kY;qY0.inherits(U4,a_);var o_=["error","close","destroy","pause","resume"];function R61($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(P61($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function GY0($,I){Jq=Jq||_3(),$=$||{};var U=I instanceof Jq;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v61,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!kY)kY=m_().StringDecoder;this.decoder=new kY($.encoding),this.encoding=$.encoding}}function U4($){if(Jq=Jq||_3(),!(this instanceof U4))return new U4($);if(this._readableState=new GY0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}a_.call(this)}Object.defineProperty(U4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});U4.prototype.destroy=HY0.destroy;U4.prototype._undestroy=HY0.undestroy;U4.prototype._destroy=function($,I){this.push(null),I($)};U4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=Qq.from($,I),I="";Y=!0}}else Y=!0;return WY0(this,$,I,!1,Y)};U4.prototype.unshift=function($){return WY0(this,$,null,!0,!1)};function WY0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,S61($,Q);else{var K;if(!J)K=j61(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==Qq.prototype)I=E61(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else r_($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)r_($,Q,I,!1);else wY0($,Q);else r_($,Q,I,!1)}else if(!Y)Q.reading=!1}return C61(Q)}function r_($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)XX($)}wY0($,I)}function j61($,I){var U;if(!B61(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function C61($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}U4.prototype.isPaused=function(){return this._readableState.flowing===!1};U4.prototype.setEncoding=function($){if(!kY)kY=m_().StringDecoder;return this._readableState.decoder=new kY($),this._readableState.encoding=$,this};var YY0=8388608;function _61($){if($>=YY0)$=YY0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function JY0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=_61($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}U4.prototype.read=function($){v1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(v1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)t_(this);else XX(this);return null}if($=JY0($,I),$===0&&I.ended){if(I.length===0)t_(this);return null}var Y=I.needReadable;if(v1("need readable",Y),I.length===0||I.length-$0)J=VY0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)t_(this)}if(J!==null)this.emit("data",J);return J};function S61($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,XX($)}function XX($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(v1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)fY.nextTick(QY0,$);else QY0($)}function QY0($){v1("emit readable"),$.emit("readable"),s_($)}function wY0($,I){if(!I.readingMore)I.readingMore=!0,fY.nextTick(g61,$,I)}function g61($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&ZY0(Y.pipes,$)!==-1)&&!G)v1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(v1("onerror",F),D(),$.removeListener("error",V),KY0($,"error")===0)$.emit("error",F)}R61($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){v1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){v1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)v1("pipe resume"),U.resume();return $};function y61($){return function(){var I=$._readableState;if(v1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&KY0($,"data"))I.flowing=!0,s_($)}}U4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=k61($,I.buffer,I.decoder);return U}function k61($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function b61($,I){var U=Qq.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function t_($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,fY.nextTick(i61,I,$)}function i61($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function ZY0($,I){for(var U=0,Y=$.length;U{DY0.exports=y5;var LX=_3(),LY0=Object.create(l1());LY0.inherits=c0();LY0.inherits(y5,LX);function n61($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{NY0.exports=Kq;var OY0=e_(),FY0=Object.create(l1());FY0.inherits=c0();FY0.inherits(Kq,OY0);function Kq($){if(!(this instanceof Kq))return new Kq($);OY0.call(this,$)}Kq.prototype._transform=function($,I,U){U(null,$)}});var AY0=O((q6,DX)=>{var f8=t("stream");if(process.env.READABLE_STREAM==="disable"&&f8)DX.exports=f8,q6=DX.exports=f8.Readable,q6.Readable=f8.Readable,q6.Writable=f8.Writable,q6.Duplex=f8.Duplex,q6.Transform=f8.Transform,q6.PassThrough=f8.PassThrough,q6.Stream=f8;else q6=DX.exports=p_(),q6.Stream=f8||q6,q6.Readable=q6,q6.Writable=i_(),q6.Duplex=_3(),q6.Transform=e_(),q6.PassThrough=MY0()});var IS=O((PR1,vY0)=>{var c61=9007199254740991,d61="[object Arguments]",m61="[object Function]",l61="[object GeneratorFunction]",o61=typeof global=="object"&&global&&global.Object===Object&&global,r61=typeof self=="object"&&self&&self.Object===Object&&self,t61=o61||r61||Function("return this")();function a61($,I){var U=-1,Y=I.length,J=$.length;while(++U0&&U(q))if(I>1)BY0(q,I-1,U,Y,J);else a61(J,q);else if(!Y)J[J.length]=q}return J}function $$1($){return Y$1($)||U$1($)||!!(TY0&&$&&$[TY0])}function I$1($){var I=$?$.length:0;return I?BY0($,1):[]}function U$1($){return Q$1($)&&s61.call($,"callee")&&(!e61.call($,"callee")||EY0.call($)==d61)}var Y$1=Array.isArray;function J$1($){return $!=null&&q$1($.length)&&!K$1($)}function Q$1($){return G$1($)&&J$1($)}function K$1($){var I=H$1($)?EY0.call($):"";return I==m61||I==l61}function q$1($){return typeof $=="number"&&$>-1&&$%1==0&&$<=c61}function H$1($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function G$1($){return!!$&&typeof $=="object"}vY0.exports=I$1});var qS=O((TR1,kY0)=>{var W$1=200,JS="__lodash_hash_undefined__",w$1=9007199254740991,V$1="[object Arguments]",Z$1="[object Function]",z$1="[object GeneratorFunction]",X$1=/[\\^$.*+?()[\]{}|]/g,L$1=/^\[object .+?Constructor\]$/,D$1=typeof global=="object"&&global&&global.Object===Object&&global,O$1=typeof self=="object"&&self&&self.Object===Object&&self,QS=D$1||O$1||Function("return this")();function F$1($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function N$1($,I){var U=$?$.length:0;return!!U&&E$1($,I,0)>-1}function M$1($,I,U){var Y=-1,J=$?$.length:0;while(++Y-1}function m$1($,I){var U=this.__data__,Y=NX(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}bY.prototype.clear=n$1;bY.prototype.delete=p$1;bY.prototype.get=c$1;bY.prototype.has=d$1;bY.prototype.set=m$1;function iY($){var I=-1,U=$?$.length:0;this.clear();while(++I=W$1)Q=R$1,K=!1,I=new OX(I);$:while(++J0&&U(q))if(I>1)yY0(q,I-1,U,Y,J);else P$1(J,q);else if(!Y)J[J.length]=q}return J}function I81($){if(!xY0($)||Q81($))return!1;var I=uY0($)||C$1($)?g$1:L$1;return I.test(K81($))}function U81($,I){return I=_Y0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=_Y0(U.length-I,0),Q=Array(J);while(++Y-1&&$%1==0&&$<=w$1}function xY0($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function Z81($){return!!$&&typeof $=="object"}kY0.exports=q81});var ZS=O((ER1,tY0)=>{var z81=200,WS="__lodash_hash_undefined__",X81=1/0,L81=9007199254740991,D81="[object Arguments]",O81="[object Function]",F81="[object GeneratorFunction]",N81=/[\\^$.*+?()[\]{}|]/g,M81=/^\[object .+?Constructor\]$/,A81=typeof global=="object"&&global&&global.Object===Object&&global,P81=typeof self=="object"&&self&&self.Object===Object&&self,PX=A81||P81||Function("return this")();function T81($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function E81($,I){var U=$?$.length:0;return!!U&&j81($,I,0)>-1}function B81($,I,U){var Y=-1,J=$?$.length:0;while(++Y-1}function r81($,I){var U=this.__data__,Y=EX(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}nY.prototype.clear=d81;nY.prototype.delete=m81;nY.prototype.get=l81;nY.prototype.has=o81;nY.prototype.set=r81;function pY($){var I=-1,U=$?$.length:0;this.clear();while(++I0&&U(q))if(I>1)mY0(q,I-1,U,Y,J);else v81(J,q);else if(!Y)J[J.length]=q}return J}function Y51($){if(!rY0($)||G51($))return!1;var I=oY0($)||g81($)?u81:M81;return I.test(W51($))}function J51($,I){return I=nY0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=nY0(U.length-I,0),Q=Array(J);while(++Y=z81){var G=I?null:K51($);if(G)return pY0(G);K=!1,J=_81,H=new AX}else H=I?[]:q;$:while(++Y-1&&$%1==0&&$<=L81}function rY0($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function D51($){return!!$&&typeof $=="object"}function O51(){}tY0.exports=w51});var zS=O((BR1,eY0)=>{var F51="[object Object]";function N51($){var I=!1;if($!=null&&typeof $.toString!="function")try{I=!!($+"")}catch(U){}return I}function M51($,I){return function(U){return $(I(U))}}var A51=Function.prototype,aY0=Object.prototype,sY0=A51.toString,P51=aY0.hasOwnProperty,T51=sY0.call(Object),E51=aY0.toString,B51=M51(Object.getPrototypeOf,Object);function v51($){return!!$&&typeof $=="object"}function R51($){if(!v51($)||E51.call($)!=F51||N51($))return!1;var I=B51($);if(I===null)return!0;var U=P51.call(I,"constructor")&&I.constructor;return typeof U=="function"&&U instanceof U&&sY0.call(U)==T51}eY0.exports=R51});var $J0=O((S51)=>{var y3=t("path"),$7=process.platform==="win32",e9=t("fs"),j51=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function C51(){var $;if(j51){var I=Error();$=U}else $=Y;return $;function U(J){if(J)I.message=J.message,J=I,Y(J)}function Y(J){if(J){if(process.throwDeprecation)throw J;else if(!process.noDeprecation){var Q="fs: missing callback "+(J.stack||J.message);if(process.traceDeprecation)console.trace(Q);else console.error(Q)}}}}function _51($){return typeof $==="function"?$:C51()}var vR1=y3.normalize;if($7)b8=/(.*?)(?:[\/\\]+|$)/g;else b8=/(.*?)(?:[\/]+|$)/g;var b8;if($7)cY=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else cY=/^[\/]*/;var cY;S51.realpathSync=function(I,U){if(I=y3.resolve(I),U&&Object.prototype.hasOwnProperty.call(U,I))return U[I];var Y=I,J={},Q={},K,q,H,G;W();function W(){var D=cY.exec(I);if(K=D[0].length,q=D[0],H=D[0],G="",$7&&!Q[H])e9.lstatSync(H),Q[H]=!0}while(K=I.length){if(U)U[J]=I;return Y(null,I)}b8.lastIndex=q;var D=b8.exec(I);if(W=H,H+=D[0],G=W+D[1],q=b8.lastIndex,K[G]||U&&U[G]===G)return process.nextTick(Z);if(U&&Object.prototype.hasOwnProperty.call(U,G))return L(U[G]);return e9.lstat(G,V)}function V(D,F){if(D)return Y(D);if(!F.isSymbolicLink()){if(K[G]=!0,U)U[G]=G;return process.nextTick(Z)}if(!$7){var P=F.dev.toString(32)+":"+F.ino.toString(32);if(Q.hasOwnProperty(P))return X(null,Q[P],G)}e9.stat(G,function(E){if(E)return Y(E);e9.readlink(G,function(A,R){if(!$7)Q[P]=R;X(A,R)})})}function X(D,F,P){if(D)return Y(D);var E=y3.resolve(W,F);if(U)U[P]=E;L(E)}function L(D){I=y3.resolve(D,I.slice(q)),w()}}});var OS=O((jR1,JJ0)=>{JJ0.exports=I7;I7.realpath=I7;I7.sync=DS;I7.realpathSync=DS;I7.monkeypatch=u51;I7.unmonkeypatch=x51;var dY=t("fs"),XS=dY.realpath,LS=dY.realpathSync,h51=process.version,IJ0=/^v[0-5]\./.test(h51),UJ0=$J0();function YJ0($){return $&&$.syscall==="realpath"&&($.code==="ELOOP"||$.code==="ENOMEM"||$.code==="ENAMETOOLONG")}function I7($,I,U){if(IJ0)return XS($,I,U);if(typeof I==="function")U=I,I=null;XS($,I,function(Y,J){if(YJ0(Y))UJ0.realpath($,I,U);else U(Y,J)})}function DS($,I){if(IJ0)return LS($,I);try{return LS($,I)}catch(U){if(YJ0(U))return UJ0.realpathSync($,I);else throw U}}function u51(){dY.realpath=I7,dY.realpathSync=DS}function x51(){dY.realpath=XS,dY.realpathSync=LS}});var KJ0=O((CR1,QJ0)=>{QJ0.exports=function($,I){var U=[];for(var Y=0;Y<$.length;Y++){var J=I($[Y],Y);if(k51(J))U.push.apply(U,J);else U.push(J)}return U};var k51=Array.isArray||function($){return Object.prototype.toString.call($)==="[object Array]"}});var zJ0=O((SR1,ZJ0)=>{var _R1=KJ0(),qJ0=I_();ZJ0.exports=p51;var HJ0="\x00SLASH"+Math.random()+"\x00",GJ0="\x00OPEN"+Math.random()+"\x00",MS="\x00CLOSE"+Math.random()+"\x00",WJ0="\x00COMMA"+Math.random()+"\x00",wJ0="\x00PERIOD"+Math.random()+"\x00",f51=1e5,b51=4000000;function FS($){return parseInt($,10)==$?parseInt($,10):$.charCodeAt(0)}function i51($){return $.split("\\\\").join(HJ0).split("\\{").join(GJ0).split("\\}").join(MS).split("\\,").join(WJ0).split("\\.").join(wJ0)}function n51($){return $.split(HJ0).join("\\").split(GJ0).join("{").split(MS).join("}").split(WJ0).join(",").split(wJ0).join(".")}function VJ0($){if(!$)return[""];var I=[],U=qJ0("{","}",$);if(!U)return $.split(",");var{pre:Y,body:J,post:Q}=U,K=Y.split(",");K[K.length-1]+="{"+J+"}";var q=VJ0(Q);if(Q.length)K[K.length-1]+=q.shift(),K.push.apply(K,q);return I.push.apply(I,K),I}function p51($,I){if(!$)return[];I=I||{};var U=I.max==null?f51:I.max,Y=I.maxLength==null?b51:I.maxLength;if($.substr(0,2)==="{}")$="\\{\\}"+$.substr(2);return NS(i51($),U,Y,!0).map(n51)}function c51($){return"{"+$+"}"}function d51($){return/^-?0\d/.test($)}function m51($,I){return $<=I}function l51($,I){return $>=I}function Gq($,I,U,Y,J,Q,K,q){var H=[],G=0;for(var W=0;W<$.length;W++)for(var w=0;w=J)return H;var Z=$[W]+U+Y[w];if(K&&Z.length===I[W])continue;if(G+Z.length>Q)return H;H.push(Z),q.push(I[W]),G+=Z.length}return H}function o51($,I,U,Y){var J=$.split(/\.\./),Q=[];if(J[0]===void 0||J[1]===void 0)return Q;var K=FS(J[0]),q=FS(J[1]),H=Math.max(J[0].length,J[1].length),G=J.length===3&&J[2]!==void 0?Math.max(Math.abs(FS(J[2])),1):1,W=m51,w=q0){var F=Array(D+1).join("0");if(X<0)L="-"+F+L.slice(1);else L=F+L}}if(V+L.length>Y)break;Q.push(L),V+=L.length}return Q}function NS($,I,U,Y){var J=[""],Q=[0],K=!1,q=!0,H;for(;;){var G=qJ0("{","}",$);if(!G)return Gq(J,Q,$,[""],I,U,K,[]);var W=G.pre;if(/\$$/.test(W))return Gq(J,Q,$,[""],I,U,K,[]);var w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(G.body),Z=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(G.body),V=w||Z,X=G.body.indexOf(",")>=0;if(!V&&!X){if(G.post.match(/,(?!,).*\}/)){$=G.pre+"{"+G.body+MS+G.post,Y=!0,q=!0,K=!1,Q=[];for(var L=0;L=I||A+f.length>U)break $;D.push(f),A+=f.length}}}if(H=[],J=Gq(J,Q,W,D,I,U,K&&!G.post.length,H),Q=H,!G.post.length)break;$=G.post}return J}});var jX=O((gR1,FJ0)=>{FJ0.exports=Z$;Z$.Minimatch=R4;var Wq=function(){try{return t("path")}catch($){}}()||{sep:"/"};Z$.sep=Wq.sep;var h3=Z$.GLOBSTAR=R4.GLOBSTAR={},r51=zJ0(),XJ0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},AS="[^/]",PS=AS+"*?",t51="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",a51="(?:(?!(?:\\/|^)\\.).)*?",LJ0=s51("().*{}+?[]^$\\!");function s51($){return $.split("").reduce(function(I,U){return I[U]=!0,I},{})}var DJ0=/\/+/;Z$.filter=e51;function e51($,I){return I=I||{},function(U,Y,J){return Z$(U,$,I)}}function U7($,I){I=I||{};var U={};return Object.keys($).forEach(function(Y){U[Y]=$[Y]}),Object.keys(I).forEach(function(Y){U[Y]=I[Y]}),U}Z$.defaults=function($){if(!$||typeof $!=="object"||!Object.keys($).length)return Z$;var I=Z$,U=function(J,Q,K){return I(J,Q,U7($,K))};return U.Minimatch=function(J,Q){return new I.Minimatch(J,U7($,Q))},U.Minimatch.defaults=function(J){return I.defaults(U7($,J)).Minimatch},U.filter=function(J,Q){return I.filter(J,U7($,Q))},U.defaults=function(J){return I.defaults(U7($,J))},U.makeRe=function(J,Q){return I.makeRe(J,U7($,Q))},U.braceExpand=function(J,Q){return I.braceExpand(J,U7($,Q))},U.match=function(Y,J,Q){return I.match(Y,J,U7($,Q))},U};R4.defaults=function($){return Z$.defaults($).Minimatch};function Z$($,I,U){if(RX(I),!U)U={};if(!U.nocomment&&I.charAt(0)==="#")return!1;return new R4(I,U).match($)}function R4($,I){if(!(this instanceof R4))return new R4($,I);if(RX($),!I)I={};if($=$.trim(),!I.allowWindowsEscape&&Wq.sep!=="/")$=$.split(Wq.sep).join("/");this.options=I,this.maxGlobstarRecursion=I.maxGlobstarRecursion!==void 0?I.maxGlobstarRecursion:200,this.set=[],this.pattern=$,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!I.partial,this.make()}R4.prototype.debug=function(){};R4.prototype.make=$91;function $91(){var $=this.pattern,I=this.options;if(!I.nocomment&&$.charAt(0)==="#"){this.comment=!0;return}if(!$){this.empty=!0;return}this.parseNegate();var U=this.globSet=this.braceExpand();if(I.debug)this.debug=function(){console.error.apply(console,arguments)};this.debug(this.pattern,U),U=this.globParts=U.map(function(Y){return Y.split(DJ0)}),this.debug(this.pattern,U),U=U.map(function(Y,J,Q){return Y.map(this.parse,this)},this),this.debug(this.pattern,U),U=U.filter(function(Y){return Y.indexOf(!1)===-1}),this.debug(this.pattern,U),this.set=U}R4.prototype.parseNegate=I91;function I91(){var $=this.pattern,I=!1,U=this.options,Y=0;if(U.nonegate)return;for(var J=0,Q=$.length;J"u"?this.pattern:$,RX($),I.nobrace||!/\{(?:(?!\{).)*\}/.test($))return[$];return r51($)}var U91=65536,RX=function($){if(typeof $!=="string")throw TypeError("invalid pattern");if($.length>U91)throw TypeError("pattern is too long")};R4.prototype.parse=Y91;var vX={};function Y91($,I){RX($);var U=this.options;if($==="**")if(!U.noglobstar)return h3;else $="*";if($==="")return"";var Y="",J=!!U.nocase,Q=!1,K=[],q=[],H,G=!1,W=-1,w=-1,Z=$.charAt(0)==="."?"":U.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",V=this;function X(){if(H){switch(H){case"*":Y+=PS,J=!0;break;case"?":Y+=AS,J=!0;break;default:Y+="\\"+H;break}V.debug("clearStateChar %j %j",H,Y),H=!1}}for(var L=0,D=$.length,F;L-1;f--){var j=q[f],p=Y.slice(0,j.reStart),n=Y.slice(j.reStart,j.reEnd-8),S=Y.slice(j.reEnd-8,j.reEnd),b=Y.slice(j.reEnd);S+=b;var i=p.split("(").length-1,U0=b;for(L=0;L"u")U=this.partial;if(this.debug("match",I,this.pattern),this.comment)return!1;if(this.empty)return I==="";if(I==="/"&&U)return!0;var Y=this.options;if(Wq.sep!=="/")I=I.split(Wq.sep).join("/");I=I.split(DJ0),this.debug(this.pattern,"split",I);var J=this.set;this.debug(this.pattern,"set",J);var Q,K;for(K=I.length-1;K>=0;K--)if(Q=I[K],Q)break;for(K=0;K=0;Q--)if(I[Q]===h3){q=Q;break}var H=I.slice(J,K),G=U?I.slice(K+1):I.slice(K+1,q),W=U?[]:I.slice(q+1);if(H.length){var w=$.slice(Y,Y+H.length);if(!this._matchOne(w,H,U,0,0))return!1;Y+=H.length}var Z=0;if(W.length){if(W.length+Y>$.length)return!1;var V=$.length-W.length;if(this._matchOne($,W,U,V,0))Z=W.length;else{if($[$.length-1]!==""||Y+W.length===$.length)return!1;if(V--,!this._matchOne($,W,U,V,0))return!1;Z=W.length+1}}if(!G.length){var X=!!Z;for(Q=Y;Q<$.length-Z;Q++){var L=String($[Q]);if(X=!0,L==="."||L===".."||!this.options.dot&&L.charAt(0)===".")return!1}return U||X}var D=[[[],0]],F=D[0],P=0,E=[0];for(var A=0;A{function NJ0($){return $.charAt(0)==="/"}function MJ0($){var I=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,U=I.exec($),Y=U[1]||"",J=Boolean(Y&&Y.charAt(1)!==":");return Boolean(U[2]||J)}CX.exports=process.platform==="win32"?MJ0:NJ0;CX.exports.posix=NJ0;CX.exports.win32=MJ0});var ES=O((L91)=>{L91.setopts=V91;L91.ownProp=AJ0;L91.makeAbs=wq;L91.finish=Z91;L91.mark=z91;L91.isIgnored=TJ0;L91.childrenIgnored=X91;function AJ0($,I){return Object.prototype.hasOwnProperty.call($,I)}var q91=t("fs"),mY=t("path"),H91=jX(),PJ0=_X(),TS=H91.Minimatch;function G91($,I){return $.localeCompare(I,"en")}function W91($,I){if($.ignore=I.ignore||[],!Array.isArray($.ignore))$.ignore=[$.ignore];if($.ignore.length)$.ignore=$.ignore.map(w91)}function w91($){var I=null;if($.slice(-3)==="/**"){var U=$.replace(/(\/\*\*)+$/,"");I=new TS(U,{dot:!0})}return{matcher:new TS($,{dot:!0}),gmatcher:I}}function V91($,I,U){if(!U)U={};if(U.matchBase&&I.indexOf("/")===-1){if(U.noglobstar)throw Error("base matching requires globstar");I="**/"+I}if($.silent=!!U.silent,$.pattern=I,$.strict=U.strict!==!1,$.realpath=!!U.realpath,$.realpathCache=U.realpathCache||Object.create(null),$.follow=!!U.follow,$.dot=!!U.dot,$.mark=!!U.mark,$.nodir=!!U.nodir,$.nodir)$.mark=!0;$.sync=!!U.sync,$.nounique=!!U.nounique,$.nonull=!!U.nonull,$.nosort=!!U.nosort,$.nocase=!!U.nocase,$.stat=!!U.stat,$.noprocess=!!U.noprocess,$.absolute=!!U.absolute,$.fs=U.fs||q91,$.maxLength=U.maxLength||1/0,$.cache=U.cache||Object.create(null),$.statCache=U.statCache||Object.create(null),$.symlinks=U.symlinks||Object.create(null),W91($,U),$.changedCwd=!1;var Y=process.cwd();if(!AJ0(U,"cwd"))$.cwd=Y;else $.cwd=mY.resolve(U.cwd),$.changedCwd=$.cwd!==Y;if($.root=U.root||mY.resolve($.cwd,"/"),$.root=mY.resolve($.root),process.platform==="win32")$.root=$.root.replace(/\\/g,"/");if($.cwdAbs=PJ0($.cwd)?$.cwd:wq($,$.cwd),process.platform==="win32")$.cwdAbs=$.cwdAbs.replace(/\\/g,"/");$.nomount=!!U.nomount,U.nonegate=!0,U.nocomment=!0,U.allowWindowsEscape=!1,$.minimatch=new TS(I,U),$.options=$.minimatch.options}function Z91($){var I=$.nounique,U=I?[]:Object.create(null);for(var Y=0,J=$.matches.length;Y{RJ0.exports=vJ0;vJ0.GlobSync=u4;var T91=OS(),EJ0=jX(),uR1=EJ0.Minimatch,xR1=Vq().Glob,kR1=t("util"),BS=t("path"),BJ0=t("assert"),SX=_X(),u3=ES(),E91=u3.setopts,vS=u3.ownProp,B91=u3.childrenIgnored,v91=u3.isIgnored;function vJ0($,I){if(typeof I==="function"||arguments.length===3)throw TypeError(`callback provided to sync glob + */gU0.exports=function($,I){if(typeof $!=="string")throw TypeError("expected path to be a string");if($==="\\"||$==="/")return"/";var U=$.length;if(U<=1)return $;var Y="";if(U>4&&$[3]==="\\"){var J=$[2];if((J==="?"||J===".")&&$.slice(0,2)==="\\\\")$=$.slice(2),Y="//"}var Q=$.split(/[/\\]+/);if(I!==!1&&Q[Q.length-1]==="")Q.pop();return Y+Q.join("/")}});var f_=O((zR1,iU0)=>{var hU0=9007199254740991,Z41="[object Arguments]",z41="[object Function]",X41="[object GeneratorFunction]",L41=/^(?:0|[1-9]\d*)$/;function uU0($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function D41($,I){var U=-1,Y=Array($);while(++U<$)Y[U]=I(U);return Y}var tK=Object.prototype,aK=tK.hasOwnProperty,kU0=tK.toString,O41=tK.propertyIsEnumerable,yU0=Math.max;function F41($,I){var U=j41($)||R41($)?D41($.length,String):[],Y=U.length,J=!!Y;for(var Q in $)if((I||aK.call($,Q))&&!(J&&(Q=="length"||fU0(Q,Y))))U.push(Q);return U}function N41($,I,U,Y){if($===void 0||u_($,tK[U])&&!aK.call(Y,U))return I;return $}function M41($,I,U){var Y=$[I];if(!(aK.call($,I)&&u_(Y,U))||U===void 0&&!(I in $))$[I]=U}function A41($){if(!x_($))return v41($);var I=B41($),U=[];for(var Y in $)if(!(Y=="constructor"&&(I||!aK.call($,Y))))U.push(Y);return U}function xU0($,I){return I=yU0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=yU0(U.length-I,0),Q=Array(J);while(++Y1?U[J-1]:void 0,K=J>2?U[2]:void 0;if(Q=$.length>3&&typeof Q=="function"?(J--,Q):void 0,K&&E41(U[0],U[1],K))Q=J<3?void 0:Q,J=1;I=Object(I);while(++Y-1&&$%1==0&&$-1&&$%1==0&&$<=hU0}function x_($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function g41($){return!!$&&typeof $=="object"}var y41=T41(function($,I,U,Y){P41(I,u41(I),$,Y)}),h41=xU0(function($){return $.push(void 0,N41),uU0(y41,void 0,$)});function u41($){return k_($)?F41($,!0):A41($)}iU0.exports=h41});var nU0=O((XR1,i_)=>{function k41($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var bU0=A4().Buffer,sK=t("util");function x41($,I,U){$.copy(I,U)}i_.exports=function(){function $(){k41(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return bU0.alloc(0);var Y=bU0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)x41(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(sK&&sK.inspect&&sK.inspect.custom)i_.exports.prototype[sK.inspect.custom]=function(){var $=sK.inspect({length:this.length});return this.constructor.name+" "+$}});var b_=O((LR1,pU0)=>{var wX=M4();function f41($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)wX.nextTick(VX,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,wX.nextTick(VX,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)wX.nextTick(VX,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,wX.nextTick(VX,U,Q)}else if(I)I(Q)}),this}function i41(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function VX($,I){$.emit("error",I)}pU0.exports={destroy:f41,undestroy:i41}});var p_=O((DR1,aU0)=>{var C3=M4();aU0.exports=v4;function dU0($){var I=this;this.next=null,this.entry=null,this.finish=function(){J61(I,$)}}var b41=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:C3.nextTick,fY;v4.WritableState=$q;var mU0=Object.create(l1());mU0.inherits=d0();var n41={deprecate:d7()},lU0=t("stream"),zX=A4().Buffer,p41=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c41($){return zX.from($)}function d41($){return zX.isBuffer($)||$ instanceof p41}var oU0=b_();mU0.inherits(v4,lU0);function m41(){}function $q($,I){fY=fY||_3(),$=$||{};var U=I instanceof fY;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){e41(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new dU0(this)}$q.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty($q.prototype,"buffer",{get:n41.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var ZX;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")ZX=Function.prototype[Symbol.hasInstance],Object.defineProperty(v4,Symbol.hasInstance,{value:function($){if(ZX.call(this,$))return!0;if(this!==v4)return!1;return $&&$._writableState instanceof $q}});else ZX=function($){return $ instanceof this};function v4($){if(fY=fY||_3(),!ZX.call(v4,this)&&!(this instanceof fY))return new v4($);if(this._writableState=new $q($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}lU0.call(this)}v4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function l41($,I){var U=Error("write after end");$.emit("error",U),C3.nextTick(I,U)}function o41($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),C3.nextTick(Y,Q),J=!1;return J}v4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&d41($);if(Q&&!zX.isBuffer($))$=c41($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=m41;if(Y.ended)l41(this,U);else if(Q||o41(this,Y,$,U))Y.pendingcb++,J=t41(this,Y,Q,$,I,U);return J};v4.prototype.cork=function(){var $=this._writableState;$.corked++};v4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)rU0(this,$)}};v4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function r41($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=zX.from(I,U);return I}Object.defineProperty(v4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t41($,I,U,Y,J,Q){if(!U){var K=r41(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var sU0=M4(),Q61=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};IY0.exports=g5;var eU0=Object.create(l1());eU0.inherits=d0();var $Y0=d_(),c_=p_();eU0.inherits(g5,$Y0);{XX=Q61(c_.prototype);for(Iq=0;Iq{var l_=A4().Buffer,UY0=l_.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function H61($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function G61($){var I=H61($);if(typeof I!=="string"&&(l_.isEncoding===UY0||!UY0($)))throw Error("Unknown encoding: "+$);return I||$}M61.StringDecoder=Yq;function Yq($){this.encoding=G61($);var I;switch(this.encoding){case"utf16le":this.text=X61,this.end=L61,I=4;break;case"utf8":this.fillLast=V61,I=4;break;case"base64":this.text=D61,this.end=O61,I=3;break;default:this.write=F61,this.end=N61;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=l_.allocUnsafe(I)}Yq.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};Yq.prototype.end=z61;Yq.prototype.text=Z61;Yq.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function m_($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function W61($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function w61($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function V61($){var I=this.lastTotal-this.lastNeed,U=w61(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function Z61($,I){var U=W61(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function z61($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function X61($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function L61($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function D61($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function O61($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function F61($){return $.toString(this.encoding)}function N61($){return $&&$.length?this.write($):""}});var d_=O((MR1,zY0)=>{var bY=M4();zY0.exports=U4;var P61=RU(),Jq;U4.ReadableState=GY0;var NR1=t("events").EventEmitter,KY0=function($,I){return $.listeners(I).length},e_=t("stream"),Qq=A4().Buffer,T61=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E61($){return Qq.from($)}function B61($){return Qq.isBuffer($)||$ instanceof T61}var qY0=Object.create(l1());qY0.inherits=d0();var r_=t("util"),v1=void 0;if(r_&&r_.debuglog)v1=r_.debuglog("stream");else v1=function(){};var v61=nU0(),HY0=b_(),iY;qY0.inherits(U4,e_);var t_=["error","close","destroy","pause","resume"];function R61($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(P61($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function GY0($,I){Jq=Jq||_3(),$=$||{};var U=I instanceof Jq;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v61,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!iY)iY=o_().StringDecoder;this.decoder=new iY($.encoding),this.encoding=$.encoding}}function U4($){if(Jq=Jq||_3(),!(this instanceof U4))return new U4($);if(this._readableState=new GY0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}e_.call(this)}Object.defineProperty(U4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});U4.prototype.destroy=HY0.destroy;U4.prototype._undestroy=HY0.undestroy;U4.prototype._destroy=function($,I){this.push(null),I($)};U4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=Qq.from($,I),I="";Y=!0}}else Y=!0;return WY0(this,$,I,!1,Y)};U4.prototype.unshift=function($){return WY0(this,$,null,!0,!1)};function WY0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,S61($,Q);else{var K;if(!J)K=j61(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==Qq.prototype)I=E61(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else a_($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)a_($,Q,I,!1);else wY0($,Q);else a_($,Q,I,!1)}else if(!Y)Q.reading=!1}return C61(Q)}function a_($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)LX($)}wY0($,I)}function j61($,I){var U;if(!B61(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function C61($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}U4.prototype.isPaused=function(){return this._readableState.flowing===!1};U4.prototype.setEncoding=function($){if(!iY)iY=o_().StringDecoder;return this._readableState.decoder=new iY($),this._readableState.encoding=$,this};var YY0=8388608;function _61($){if($>=YY0)$=YY0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function JY0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=_61($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}U4.prototype.read=function($){v1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(v1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)s_(this);else LX(this);return null}if($=JY0($,I),$===0&&I.ended){if(I.length===0)s_(this);return null}var Y=I.needReadable;if(v1("need readable",Y),I.length===0||I.length-$0)J=VY0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)s_(this)}if(J!==null)this.emit("data",J);return J};function S61($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,LX($)}function LX($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(v1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)bY.nextTick(QY0,$);else QY0($)}function QY0($){v1("emit readable"),$.emit("readable"),$S($)}function wY0($,I){if(!I.readingMore)I.readingMore=!0,bY.nextTick(g61,$,I)}function g61($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&ZY0(Y.pipes,$)!==-1)&&!G)v1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(v1("onerror",F),D(),$.removeListener("error",V),KY0($,"error")===0)$.emit("error",F)}R61($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){v1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){v1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)v1("pipe resume"),U.resume();return $};function y61($){return function(){var I=$._readableState;if(v1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&KY0($,"data"))I.flowing=!0,$S($)}}U4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=x61($,I.buffer,I.decoder);return U}function x61($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function i61($,I){var U=Qq.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function s_($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,bY.nextTick(b61,I,$)}function b61($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function ZY0($,I){for(var U=0,Y=$.length;U{DY0.exports=y5;var DX=_3(),LY0=Object.create(l1());LY0.inherits=d0();LY0.inherits(y5,DX);function n61($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{NY0.exports=Kq;var OY0=IS(),FY0=Object.create(l1());FY0.inherits=d0();FY0.inherits(Kq,OY0);function Kq($){if(!(this instanceof Kq))return new Kq($);OY0.call(this,$)}Kq.prototype._transform=function($,I,U){U(null,$)}});var AY0=O((q6,OX)=>{var f8=t("stream");if(process.env.READABLE_STREAM==="disable"&&f8)OX.exports=f8,q6=OX.exports=f8.Readable,q6.Readable=f8.Readable,q6.Writable=f8.Writable,q6.Duplex=f8.Duplex,q6.Transform=f8.Transform,q6.PassThrough=f8.PassThrough,q6.Stream=f8;else q6=OX.exports=d_(),q6.Stream=f8||q6,q6.Readable=q6,q6.Writable=p_(),q6.Duplex=_3(),q6.Transform=IS(),q6.PassThrough=MY0()});var YS=O((TR1,vY0)=>{var c61=9007199254740991,d61="[object Arguments]",m61="[object Function]",l61="[object GeneratorFunction]",o61=typeof global=="object"&&global&&global.Object===Object&&global,r61=typeof self=="object"&&self&&self.Object===Object&&self,t61=o61||r61||Function("return this")();function a61($,I){var U=-1,Y=I.length,J=$.length;while(++U0&&U(q))if(I>1)BY0(q,I-1,U,Y,J);else a61(J,q);else if(!Y)J[J.length]=q}return J}function $$1($){return Y$1($)||U$1($)||!!(TY0&&$&&$[TY0])}function I$1($){var I=$?$.length:0;return I?BY0($,1):[]}function U$1($){return Q$1($)&&s61.call($,"callee")&&(!e61.call($,"callee")||EY0.call($)==d61)}var Y$1=Array.isArray;function J$1($){return $!=null&&q$1($.length)&&!K$1($)}function Q$1($){return G$1($)&&J$1($)}function K$1($){var I=H$1($)?EY0.call($):"";return I==m61||I==l61}function q$1($){return typeof $=="number"&&$>-1&&$%1==0&&$<=c61}function H$1($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function G$1($){return!!$&&typeof $=="object"}vY0.exports=I$1});var GS=O((ER1,xY0)=>{var W$1=200,KS="__lodash_hash_undefined__",w$1=9007199254740991,V$1="[object Arguments]",Z$1="[object Function]",z$1="[object GeneratorFunction]",X$1=/[\\^$.*+?()[\]{}|]/g,L$1=/^\[object .+?Constructor\]$/,D$1=typeof global=="object"&&global&&global.Object===Object&&global,O$1=typeof self=="object"&&self&&self.Object===Object&&self,qS=D$1||O$1||Function("return this")();function F$1($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function N$1($,I){var U=$?$.length:0;return!!U&&E$1($,I,0)>-1}function M$1($,I,U){var Y=-1,J=$?$.length:0;while(++Y-1}function m$1($,I){var U=this.__data__,Y=MX(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}nY.prototype.clear=n$1;nY.prototype.delete=p$1;nY.prototype.get=c$1;nY.prototype.has=d$1;nY.prototype.set=m$1;function pY($){var I=-1,U=$?$.length:0;this.clear();while(++I=W$1)Q=R$1,K=!1,I=new FX(I);$:while(++J0&&U(q))if(I>1)yY0(q,I-1,U,Y,J);else P$1(J,q);else if(!Y)J[J.length]=q}return J}function I81($){if(!kY0($)||Q81($))return!1;var I=uY0($)||C$1($)?g$1:L$1;return I.test(K81($))}function U81($,I){return I=_Y0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=_Y0(U.length-I,0),Q=Array(J);while(++Y-1&&$%1==0&&$<=w$1}function kY0($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function Z81($){return!!$&&typeof $=="object"}xY0.exports=q81});var XS=O((BR1,tY0)=>{var z81=200,VS="__lodash_hash_undefined__",X81=1/0,L81=9007199254740991,D81="[object Arguments]",O81="[object Function]",F81="[object GeneratorFunction]",N81=/[\\^$.*+?()[\]{}|]/g,M81=/^\[object .+?Constructor\]$/,A81=typeof global=="object"&&global&&global.Object===Object&&global,P81=typeof self=="object"&&self&&self.Object===Object&&self,TX=A81||P81||Function("return this")();function T81($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function E81($,I){var U=$?$.length:0;return!!U&&j81($,I,0)>-1}function B81($,I,U){var Y=-1,J=$?$.length:0;while(++Y-1}function r81($,I){var U=this.__data__,Y=BX(U,$);if(Y<0)U.push([$,I]);else U[Y][1]=I;return this}cY.prototype.clear=d81;cY.prototype.delete=m81;cY.prototype.get=l81;cY.prototype.has=o81;cY.prototype.set=r81;function dY($){var I=-1,U=$?$.length:0;this.clear();while(++I0&&U(q))if(I>1)mY0(q,I-1,U,Y,J);else v81(J,q);else if(!Y)J[J.length]=q}return J}function Y51($){if(!rY0($)||G51($))return!1;var I=oY0($)||g81($)?u81:M81;return I.test(W51($))}function J51($,I){return I=nY0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=nY0(U.length-I,0),Q=Array(J);while(++Y=z81){var G=I?null:K51($);if(G)return pY0(G);K=!1,J=_81,H=new PX}else H=I?[]:q;$:while(++Y-1&&$%1==0&&$<=L81}function rY0($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function D51($){return!!$&&typeof $=="object"}function O51(){}tY0.exports=w51});var LS=O((vR1,eY0)=>{var F51="[object Object]";function N51($){var I=!1;if($!=null&&typeof $.toString!="function")try{I=!!($+"")}catch(U){}return I}function M51($,I){return function(U){return $(I(U))}}var A51=Function.prototype,aY0=Object.prototype,sY0=A51.toString,P51=aY0.hasOwnProperty,T51=sY0.call(Object),E51=aY0.toString,B51=M51(Object.getPrototypeOf,Object);function v51($){return!!$&&typeof $=="object"}function R51($){if(!v51($)||E51.call($)!=F51||N51($))return!1;var I=B51($);if(I===null)return!0;var U=P51.call(I,"constructor")&&I.constructor;return typeof U=="function"&&U instanceof U&&sY0.call(U)==T51}eY0.exports=R51});var $J0=O((S51)=>{var y3=t("path"),$7=process.platform==="win32",e9=t("fs"),j51=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function C51(){var $;if(j51){var I=Error();$=U}else $=Y;return $;function U(J){if(J)I.message=J.message,J=I,Y(J)}function Y(J){if(J){if(process.throwDeprecation)throw J;else if(!process.noDeprecation){var Q="fs: missing callback "+(J.stack||J.message);if(process.traceDeprecation)console.trace(Q);else console.error(Q)}}}}function _51($){return typeof $==="function"?$:C51()}var RR1=y3.normalize;if($7)i8=/(.*?)(?:[\/\\]+|$)/g;else i8=/(.*?)(?:[\/]+|$)/g;var i8;if($7)mY=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else mY=/^[\/]*/;var mY;S51.realpathSync=function(I,U){if(I=y3.resolve(I),U&&Object.prototype.hasOwnProperty.call(U,I))return U[I];var Y=I,J={},Q={},K,q,H,G;W();function W(){var D=mY.exec(I);if(K=D[0].length,q=D[0],H=D[0],G="",$7&&!Q[H])e9.lstatSync(H),Q[H]=!0}while(K=I.length){if(U)U[J]=I;return Y(null,I)}i8.lastIndex=q;var D=i8.exec(I);if(W=H,H+=D[0],G=W+D[1],q=i8.lastIndex,K[G]||U&&U[G]===G)return process.nextTick(Z);if(U&&Object.prototype.hasOwnProperty.call(U,G))return L(U[G]);return e9.lstat(G,V)}function V(D,F){if(D)return Y(D);if(!F.isSymbolicLink()){if(K[G]=!0,U)U[G]=G;return process.nextTick(Z)}if(!$7){var P=F.dev.toString(32)+":"+F.ino.toString(32);if(Q.hasOwnProperty(P))return X(null,Q[P],G)}e9.stat(G,function(T){if(T)return Y(T);e9.readlink(G,function(A,R){if(!$7)Q[P]=R;X(A,R)})})}function X(D,F,P){if(D)return Y(D);var T=y3.resolve(W,F);if(U)U[P]=T;L(T)}function L(D){I=y3.resolve(D,I.slice(q)),w()}}});var NS=O((CR1,JJ0)=>{JJ0.exports=I7;I7.realpath=I7;I7.sync=FS;I7.realpathSync=FS;I7.monkeypatch=u51;I7.unmonkeypatch=k51;var lY=t("fs"),DS=lY.realpath,OS=lY.realpathSync,h51=process.version,IJ0=/^v[0-5]\./.test(h51),UJ0=$J0();function YJ0($){return $&&$.syscall==="realpath"&&($.code==="ELOOP"||$.code==="ENOMEM"||$.code==="ENAMETOOLONG")}function I7($,I,U){if(IJ0)return DS($,I,U);if(typeof I==="function")U=I,I=null;DS($,I,function(Y,J){if(YJ0(Y))UJ0.realpath($,I,U);else U(Y,J)})}function FS($,I){if(IJ0)return OS($,I);try{return OS($,I)}catch(U){if(YJ0(U))return UJ0.realpathSync($,I);else throw U}}function u51(){lY.realpath=I7,lY.realpathSync=FS}function k51(){lY.realpath=DS,lY.realpathSync=OS}});var KJ0=O((_R1,QJ0)=>{QJ0.exports=function($,I){var U=[];for(var Y=0;Y<$.length;Y++){var J=I($[Y],Y);if(x51(J))U.push.apply(U,J);else U.push(J)}return U};var x51=Array.isArray||function($){return Object.prototype.toString.call($)==="[object Array]"}});var zJ0=O((gR1,ZJ0)=>{var SR1=KJ0(),qJ0=Y_();ZJ0.exports=p51;var HJ0="\x00SLASH"+Math.random()+"\x00",GJ0="\x00OPEN"+Math.random()+"\x00",PS="\x00CLOSE"+Math.random()+"\x00",WJ0="\x00COMMA"+Math.random()+"\x00",wJ0="\x00PERIOD"+Math.random()+"\x00",f51=1e5,i51=4000000;function MS($){return parseInt($,10)==$?parseInt($,10):$.charCodeAt(0)}function b51($){return $.split("\\\\").join(HJ0).split("\\{").join(GJ0).split("\\}").join(PS).split("\\,").join(WJ0).split("\\.").join(wJ0)}function n51($){return $.split(HJ0).join("\\").split(GJ0).join("{").split(PS).join("}").split(WJ0).join(",").split(wJ0).join(".")}function VJ0($){if(!$)return[""];var I=[],U=qJ0("{","}",$);if(!U)return $.split(",");var{pre:Y,body:J,post:Q}=U,K=Y.split(",");K[K.length-1]+="{"+J+"}";var q=VJ0(Q);if(Q.length)K[K.length-1]+=q.shift(),K.push.apply(K,q);return I.push.apply(I,K),I}function p51($,I){if(!$)return[];I=I||{};var U=I.max==null?f51:I.max,Y=I.maxLength==null?i51:I.maxLength;if($.substr(0,2)==="{}")$="\\{\\}"+$.substr(2);return AS(b51($),U,Y,!0).map(n51)}function c51($){return"{"+$+"}"}function d51($){return/^-?0\d/.test($)}function m51($,I){return $<=I}function l51($,I){return $>=I}function Gq($,I,U,Y,J,Q,K,q){var H=[],G=0;for(var W=0;W<$.length;W++)for(var w=0;w=J)return H;var Z=$[W]+U+Y[w];if(K&&Z.length===I[W])continue;if(G+Z.length>Q)return H;H.push(Z),q.push(I[W]),G+=Z.length}return H}function o51($,I,U,Y){var J=$.split(/\.\./),Q=[];if(J[0]===void 0||J[1]===void 0)return Q;var K=MS(J[0]),q=MS(J[1]),H=Math.max(J[0].length,J[1].length),G=J.length===3&&J[2]!==void 0?Math.max(Math.abs(MS(J[2])),1):1,W=m51,w=q0){var F=Array(D+1).join("0");if(X<0)L="-"+F+L.slice(1);else L=F+L}}if(V+L.length>Y)break;Q.push(L),V+=L.length}return Q}function AS($,I,U,Y){var J=[""],Q=[0],K=!1,q=!0,H;for(;;){var G=qJ0("{","}",$);if(!G)return Gq(J,Q,$,[""],I,U,K,[]);var W=G.pre;if(/\$$/.test(W))return Gq(J,Q,$,[""],I,U,K,[]);var w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(G.body),Z=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(G.body),V=w||Z,X=G.body.indexOf(",")>=0;if(!V&&!X){if(G.post.match(/,(?!,).*\}/)){$=G.pre+"{"+G.body+PS+G.post,Y=!0,q=!0,K=!1,Q=[];for(var L=0;L=I||A+f.length>U)break $;D.push(f),A+=f.length}}}if(H=[],J=Gq(J,Q,W,D,I,U,K&&!G.post.length,H),Q=H,!G.post.length)break;$=G.post}return J}});var CX=O((yR1,FJ0)=>{FJ0.exports=z$;z$.Minimatch=R4;var Wq=function(){try{return t("path")}catch($){}}()||{sep:"/"};z$.sep=Wq.sep;var h3=z$.GLOBSTAR=R4.GLOBSTAR={},r51=zJ0(),XJ0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},TS="[^/]",ES=TS+"*?",t51="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",a51="(?:(?!(?:\\/|^)\\.).)*?",LJ0=s51("().*{}+?[]^$\\!");function s51($){return $.split("").reduce(function(I,U){return I[U]=!0,I},{})}var DJ0=/\/+/;z$.filter=e51;function e51($,I){return I=I||{},function(U,Y,J){return z$(U,$,I)}}function U7($,I){I=I||{};var U={};return Object.keys($).forEach(function(Y){U[Y]=$[Y]}),Object.keys(I).forEach(function(Y){U[Y]=I[Y]}),U}z$.defaults=function($){if(!$||typeof $!=="object"||!Object.keys($).length)return z$;var I=z$,U=function(J,Q,K){return I(J,Q,U7($,K))};return U.Minimatch=function(J,Q){return new I.Minimatch(J,U7($,Q))},U.Minimatch.defaults=function(J){return I.defaults(U7($,J)).Minimatch},U.filter=function(J,Q){return I.filter(J,U7($,Q))},U.defaults=function(J){return I.defaults(U7($,J))},U.makeRe=function(J,Q){return I.makeRe(J,U7($,Q))},U.braceExpand=function(J,Q){return I.braceExpand(J,U7($,Q))},U.match=function(Y,J,Q){return I.match(Y,J,U7($,Q))},U};R4.defaults=function($){return z$.defaults($).Minimatch};function z$($,I,U){if(jX(I),!U)U={};if(!U.nocomment&&I.charAt(0)==="#")return!1;return new R4(I,U).match($)}function R4($,I){if(!(this instanceof R4))return new R4($,I);if(jX($),!I)I={};if($=$.trim(),!I.allowWindowsEscape&&Wq.sep!=="/")$=$.split(Wq.sep).join("/");this.options=I,this.maxGlobstarRecursion=I.maxGlobstarRecursion!==void 0?I.maxGlobstarRecursion:200,this.set=[],this.pattern=$,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!I.partial,this.make()}R4.prototype.debug=function(){};R4.prototype.make=$91;function $91(){var $=this.pattern,I=this.options;if(!I.nocomment&&$.charAt(0)==="#"){this.comment=!0;return}if(!$){this.empty=!0;return}this.parseNegate();var U=this.globSet=this.braceExpand();if(I.debug)this.debug=function(){console.error.apply(console,arguments)};this.debug(this.pattern,U),U=this.globParts=U.map(function(Y){return Y.split(DJ0)}),this.debug(this.pattern,U),U=U.map(function(Y,J,Q){return Y.map(this.parse,this)},this),this.debug(this.pattern,U),U=U.filter(function(Y){return Y.indexOf(!1)===-1}),this.debug(this.pattern,U),this.set=U}R4.prototype.parseNegate=I91;function I91(){var $=this.pattern,I=!1,U=this.options,Y=0;if(U.nonegate)return;for(var J=0,Q=$.length;J"u"?this.pattern:$,jX($),I.nobrace||!/\{(?:(?!\{).)*\}/.test($))return[$];return r51($)}var U91=65536,jX=function($){if(typeof $!=="string")throw TypeError("invalid pattern");if($.length>U91)throw TypeError("pattern is too long")};R4.prototype.parse=Y91;var RX={};function Y91($,I){jX($);var U=this.options;if($==="**")if(!U.noglobstar)return h3;else $="*";if($==="")return"";var Y="",J=!!U.nocase,Q=!1,K=[],q=[],H,G=!1,W=-1,w=-1,Z=$.charAt(0)==="."?"":U.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",V=this;function X(){if(H){switch(H){case"*":Y+=ES,J=!0;break;case"?":Y+=TS,J=!0;break;default:Y+="\\"+H;break}V.debug("clearStateChar %j %j",H,Y),H=!1}}for(var L=0,D=$.length,F;L-1;f--){var j=q[f],p=Y.slice(0,j.reStart),n=Y.slice(j.reStart,j.reEnd-8),S=Y.slice(j.reEnd-8,j.reEnd),i=Y.slice(j.reEnd);S+=i;var b=p.split("(").length-1,U0=i;for(L=0;L"u")U=this.partial;if(this.debug("match",I,this.pattern),this.comment)return!1;if(this.empty)return I==="";if(I==="/"&&U)return!0;var Y=this.options;if(Wq.sep!=="/")I=I.split(Wq.sep).join("/");I=I.split(DJ0),this.debug(this.pattern,"split",I);var J=this.set;this.debug(this.pattern,"set",J);var Q,K;for(K=I.length-1;K>=0;K--)if(Q=I[K],Q)break;for(K=0;K=0;Q--)if(I[Q]===h3){q=Q;break}var H=I.slice(J,K),G=U?I.slice(K+1):I.slice(K+1,q),W=U?[]:I.slice(q+1);if(H.length){var w=$.slice(Y,Y+H.length);if(!this._matchOne(w,H,U,0,0))return!1;Y+=H.length}var Z=0;if(W.length){if(W.length+Y>$.length)return!1;var V=$.length-W.length;if(this._matchOne($,W,U,V,0))Z=W.length;else{if($[$.length-1]!==""||Y+W.length===$.length)return!1;if(V--,!this._matchOne($,W,U,V,0))return!1;Z=W.length+1}}if(!G.length){var X=!!Z;for(Q=Y;Q<$.length-Z;Q++){var L=String($[Q]);if(X=!0,L==="."||L===".."||!this.options.dot&&L.charAt(0)===".")return!1}return U||X}var D=[[[],0]],F=D[0],P=0,T=[0];for(var A=0;A{function NJ0($){return $.charAt(0)==="/"}function MJ0($){var I=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,U=I.exec($),Y=U[1]||"",J=Boolean(Y&&Y.charAt(1)!==":");return Boolean(U[2]||J)}_X.exports=process.platform==="win32"?MJ0:NJ0;_X.exports.posix=NJ0;_X.exports.win32=MJ0});var vS=O((L91)=>{L91.setopts=V91;L91.ownProp=AJ0;L91.makeAbs=wq;L91.finish=Z91;L91.mark=z91;L91.isIgnored=TJ0;L91.childrenIgnored=X91;function AJ0($,I){return Object.prototype.hasOwnProperty.call($,I)}var q91=t("fs"),oY=t("path"),H91=CX(),PJ0=SX(),BS=H91.Minimatch;function G91($,I){return $.localeCompare(I,"en")}function W91($,I){if($.ignore=I.ignore||[],!Array.isArray($.ignore))$.ignore=[$.ignore];if($.ignore.length)$.ignore=$.ignore.map(w91)}function w91($){var I=null;if($.slice(-3)==="/**"){var U=$.replace(/(\/\*\*)+$/,"");I=new BS(U,{dot:!0})}return{matcher:new BS($,{dot:!0}),gmatcher:I}}function V91($,I,U){if(!U)U={};if(U.matchBase&&I.indexOf("/")===-1){if(U.noglobstar)throw Error("base matching requires globstar");I="**/"+I}if($.silent=!!U.silent,$.pattern=I,$.strict=U.strict!==!1,$.realpath=!!U.realpath,$.realpathCache=U.realpathCache||Object.create(null),$.follow=!!U.follow,$.dot=!!U.dot,$.mark=!!U.mark,$.nodir=!!U.nodir,$.nodir)$.mark=!0;$.sync=!!U.sync,$.nounique=!!U.nounique,$.nonull=!!U.nonull,$.nosort=!!U.nosort,$.nocase=!!U.nocase,$.stat=!!U.stat,$.noprocess=!!U.noprocess,$.absolute=!!U.absolute,$.fs=U.fs||q91,$.maxLength=U.maxLength||1/0,$.cache=U.cache||Object.create(null),$.statCache=U.statCache||Object.create(null),$.symlinks=U.symlinks||Object.create(null),W91($,U),$.changedCwd=!1;var Y=process.cwd();if(!AJ0(U,"cwd"))$.cwd=Y;else $.cwd=oY.resolve(U.cwd),$.changedCwd=$.cwd!==Y;if($.root=U.root||oY.resolve($.cwd,"/"),$.root=oY.resolve($.root),process.platform==="win32")$.root=$.root.replace(/\\/g,"/");if($.cwdAbs=PJ0($.cwd)?$.cwd:wq($,$.cwd),process.platform==="win32")$.cwdAbs=$.cwdAbs.replace(/\\/g,"/");$.nomount=!!U.nomount,U.nonegate=!0,U.nocomment=!0,U.allowWindowsEscape=!1,$.minimatch=new BS(I,U),$.options=$.minimatch.options}function Z91($){var I=$.nounique,U=I?[]:Object.create(null);for(var Y=0,J=$.matches.length;Y{RJ0.exports=vJ0;vJ0.GlobSync=u4;var T91=NS(),EJ0=CX(),kR1=EJ0.Minimatch,xR1=Vq().Glob,fR1=t("util"),RS=t("path"),BJ0=t("assert"),gX=SX(),u3=vS(),E91=u3.setopts,jS=u3.ownProp,B91=u3.childrenIgnored,v91=u3.isIgnored;function vJ0($,I){if(typeof I==="function"||arguments.length===3)throw TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new u4($,I).found}function u4($,I){if(!$)throw Error("must provide pattern");if(typeof I==="function"||arguments.length===3)throw TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof u4))return new u4($,I);if(E91(this,$,I),this.noprocess)return this;var U=this.minimatch.set.length;this.matches=Array(U);for(var Y=0;Ythis.maxLength)return!1;if(!this.stat&&vS(this.cache,I)){var K=this.cache[I];if(Array.isArray(K))K="DIR";if(!U||K==="DIR")return K;if(U&&K==="FILE")return!1}var Y,J=this.statCache[I];if(!J){var Q;try{Q=this.fs.lstatSync(I)}catch(q){if(q&&(q.code==="ENOENT"||q.code==="ENOTDIR"))return this.statCache[I]=!1,!1}if(Q&&Q.isSymbolicLink())try{J=this.fs.statSync(I)}catch(q){J=Q}else J=Q}this.statCache[I]=J;var K=!0;if(J)K=J.isDirectory()?"DIR":"FILE";if(this.cache[I]=this.cache[I]||K,U&&K==="FILE")return!1;return K};u4.prototype._mark=function($){return u3.mark(this,$)};u4.prototype._makeAbs=function($){return u3.makeAbs(this,$)}});var RS=O((bR1,_J0)=>{_J0.exports=CJ0;function CJ0($,I){if($&&I)return CJ0($)(I);if(typeof $!=="function")throw TypeError("need wrapper function");return Object.keys($).forEach(function(Y){U[Y]=$[Y]}),U;function U(){var Y=Array(arguments.length);for(var J=0;J{var SJ0=RS();jS.exports=SJ0(gX);jS.exports.strict=SJ0(gJ0);gX.proto=gX(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return gX(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return gJ0(this)},configurable:!0})});function gX($){var I=function(){if(I.called)return I.value;return I.called=!0,I.value=$.apply(this,arguments)};return I.called=!1,I}function gJ0($){var I=function(){if(I.called)throw Error(I.onceError);return I.called=!0,I.value=$.apply(this,arguments)},U=$.name||"Function wrapped with `once`";return I.onceError=U+" shouldn't be called more than once",I.called=!1,I}});var hJ0=O((nR1,yJ0)=>{var R91=RS(),Zq=Object.create(null),j91=yX();yJ0.exports=R91(C91);function C91($,I){if(Zq[$])return Zq[$].push(I),null;else return Zq[$]=[I],_91($)}function _91($){return j91(function I(){var U=Zq[$],Y=U.length,J=S91(arguments);try{for(var Q=0;QY)U.splice(0,Y),process.nextTick(function(){I.apply(null,J)});else delete Zq[$]}})}function S91($){var I=$.length,U=[];for(var Y=0;Y{xJ0.exports=x3;var g91=OS(),uJ0=jX(),pR1=uJ0.Minimatch,y91=c0(),h91=t("events").EventEmitter,CS=t("path"),_S=t("assert"),zq=_X(),gS=jJ0(),k3=ES(),u91=k3.setopts,SS=k3.ownProp,yS=hJ0(),cR1=t("util"),x91=k3.childrenIgnored,k91=k3.isIgnored,f91=yX();function x3($,I,U){if(typeof I==="function")U=I,I={};if(!I)I={};if(I.sync){if(U)throw TypeError("callback provided to sync glob");return gS($,I)}return new g1($,I,U)}x3.sync=gS;var b91=x3.GlobSync=gS.GlobSync;x3.glob=x3;function i91($,I){if(I===null||typeof I!=="object")return $;var U=Object.keys(I),Y=U.length;while(Y--)$[U[Y]]=I[U[Y]];return $}x3.hasMagic=function($,I){var U=i91({},I);U.noprocess=!0;var Y=new g1($,U),J=Y.minimatch.set;if(!$)return!1;if(J.length>1)return!0;for(var Q=0;Qthis.maxLength)return I();if(!this.stat&&SS(this.cache,U)){var J=this.cache[U];if(Array.isArray(J))J="DIR";if(!Y||J==="DIR")return I(null,J);if(Y&&J==="FILE")return I()}var Q,K=this.statCache[U];if(K!==void 0)if(K===!1)return I(null,K);else{var q=K.isDirectory()?"DIR":"FILE";if(Y&&q==="FILE")return I();else return I(null,q,K)}var H=this,G=yS("stat\x00"+U,W);if(G)H.fs.lstat(U,G);function W(w,Z){if(Z&&Z.isSymbolicLink())return H.fs.stat(U,function(V,X){if(V)H._stat2($,U,null,Z,I);else H._stat2($,U,V,X,I)});else H._stat2($,U,w,Z,I)}};g1.prototype._stat2=function($,I,U,Y,J){if(U&&(U.code==="ENOENT"||U.code==="ENOTDIR"))return this.statCache[I]=!1,J();var Q=$.slice(-1)==="/";if(this.statCache[I]=Y,I.slice(-1)==="/"&&Y&&!Y.isDirectory())return J(null,!1,Y);var K=!0;if(Y)K=Y.isDirectory()?"DIR":"FILE";if(this.cache[I]=this.cache[I]||K,Q&&K==="FILE")return J();return J(null,K,Y)}});var iJ0=O((mR1,bJ0)=>{var fJ0=s6(),lY=t("path"),hS=IS(),p91=qS(),c91=ZS(),d91=zS(),m91=Vq(),f3=bJ0.exports={},kJ0=/[\/\\]/g,l91=function($,I){var U=[];return hS($).forEach(function(Y){var J=Y.indexOf("!")===0;if(J)Y=Y.slice(1);var Q=I(Y);if(J)U=p91(U,Q);else U=c91(U,Q)}),U};f3.exists=function(){var $=lY.join.apply(lY,arguments);return fJ0.existsSync($)};f3.expand=function(...$){var I=d91($[0])?$.shift():{},U=Array.isArray($[0])?$[0]:$;if(U.length===0)return[];var Y=l91(U,function(J){return m91.sync(J,I)});if(I.filter)Y=Y.filter(function(J){J=lY.join(I.cwd||"",J);try{if(typeof I.filter==="function")return I.filter(J);else return fJ0.statSync(J)[I.filter]()}catch(Q){return!1}});return Y};f3.expandMapping=function($,I,U){U=Object.assign({rename:function(Q,K){return lY.join(Q||"",K)}},U);var Y=[],J={};return f3.expand(U,$).forEach(function(Q){var K=Q;if(U.flatten)K=lY.basename(K);if(U.ext)K=K.replace(/(\.[^\/]*)?$/,U.ext);var q=U.rename(I,K,U);if(U.cwd)Q=lY.join(U.cwd,Q);if(q=q.replace(kJ0,"/"),Q=Q.replace(kJ0,"/"),J[q])J[q].src.push(Q);else Y.push({src:[Q],dest:q}),J[q]=Y[Y.length-1]}),Y};f3.normalizeFilesArray=function($){var I=[];if($.forEach(function(U){var Y;if("src"in U||"dest"in U)I.push(U)}),I.length===0)return[];return I=_(I).chain().forEach(function(U){if(!("src"in U)||!U.src)return;if(Array.isArray(U.src))U.src=hS(U.src);else U.src=[U.src]}).map(function(U){var Y=Object.assign({},U);if(delete Y.src,delete Y.dest,U.expand)return f3.expandMapping(U.src,U.dest,Y).map(function(Q){var K=Object.assign({},U);return K.orig=Object.assign({},U),K.src=Q.src,K.dest=Q.dest,["expand","cwd","flatten","rename","ext"].forEach(function(q){delete K[q]}),K});var J=Object.assign({},U);if(J.orig=Object.assign({},U),"src"in J)Object.defineProperty(J,"src",{enumerable:!0,get:function Q(){var K;if(!("result"in Q))K=U.src,K=Array.isArray(K)?hS(K):[K],Q.result=f3.expand(Y,K);return Q.result}});if("dest"in J)J.dest=U.dest;return J}).flatten().value(),I}});var Xq=O((oR1,cJ0)=>{var uS=s6(),nJ0=t("path"),lR1=t("util"),o91=g_(),pJ0=GX(),r91=x_(),t91=t("stream").Stream,a91=AY0().PassThrough,z$=cJ0.exports={};z$.file=iJ0();z$.collectStream=function($,I){var U=[],Y=0;$.on("error",I),$.on("data",function(J){U.push(J),Y+=J.length}),$.on("end",function(){var J=new Buffer(Y),Q=0;U.forEach(function(K){K.copy(J,Q),Q+=K.length}),I(null,J)})};z$.dateify=function($){if($=$||new Date,$ instanceof Date)$=$;else if(typeof $==="string")$=new Date($);else $=new Date;return $};z$.defaults=function($,I,U){var Y=arguments;return Y[0]=Y[0]||{},r91(...Y)};z$.isStream=function($){return $ instanceof t91};z$.lazyReadStream=function($){return new o91.Readable(function(){return uS.createReadStream($)})};z$.normalizeInputSource=function($){if($===null)return new Buffer(0);else if(typeof $==="string")return new Buffer($);else if(z$.isStream($)&&!$._readableState){var I=new a91;return $.pipe(I),I}return $};z$.sanitizePath=function($){return pJ0($,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};z$.trailingSlashIt=function($){return $.slice(-1)!=="/"?$+"/":$};z$.unixifyPath=function($){return pJ0($,!1).replace(/^\w+:/,"")};z$.walkdir=function($,I,U){var Y=[];if(typeof I==="function")U=I,I=$;uS.readdir($,function(J,Q){var K=0,q,H;if(J)return U(J);(function G(){if(q=Q[K++],!q)return U(null,Y);H=nJ0.join($,q),uS.stat(H,function(W,w){if(Y.push({path:H,relative:nJ0.relative(I,H).replace(/\\/g,"/"),stats:w}),w&&w.isDirectory())z$.walkdir(H,I,function(Z,V){V.forEach(function(X){Y.push(X)}),G()});else G()})})()})}});var oJ0=O((mJ0,lJ0)=>{var s91=t("util"),e91={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function dJ0($,I){Error.captureStackTrace(this,this.constructor),this.message=e91[$]||$,this.code=$,this.data=I}s91.inherits(dJ0,Error);mJ0=lJ0.exports=dJ0});var eJ0=O((rR1,sJ0)=>{var fS=t("fs"),tJ0=yI0(),rJ0=uI0(),xS=t("path"),i8=Xq(),$71=t("util").inherits,D4=oJ0(),aJ0=D6().Transform,kS=process.platform==="win32",T1=function($,I){if(!(this instanceof T1))return new T1($,I);if(typeof $!=="string")I=$,$="zip";I=this.options=i8.defaults(I,{highWaterMark:1048576,statConcurrency:4}),aJ0.call(this,I),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=rJ0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=rJ0.queue(this._onStatQueueTask.bind(this),I.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};$71(T1,aJ0);T1.prototype._abort=function(){if(this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle())this._shutdown()};T1.prototype._append=function($,I){I=I||{};var U={source:null,filepath:$};if(!I.name)I.name=$;if(I.sourcePath=$,U.data=I,this._entriesCount++,I.stats&&I.stats instanceof fS.Stats){if(U=this._updateQueueTaskWithStats(U,I.stats),U){if(I.stats.size)this._fsEntriesTotalBytes+=I.stats.size;this._queue.push(U)}}else this._statQueue.push(U)};T1.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0};T1.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return!1;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())return this._finalize(),!0;return!1};T1.prototype._moduleAppend=function($,I,U){if(this._state.aborted){U();return}this._module.append($,I,function(Y){if(this._task=null,this._state.aborted){this._shutdown();return}if(Y){this.emit("error",Y),setImmediate(U);return}if(this.emit("entry",I),this._entriesProcessedCount++,I.stats&&I.stats.size)this._fsEntriesProcessedBytes+=I.stats.size;this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(U)}.bind(this))};T1.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function")this._module.finalize();else if(typeof this._module.end==="function")this._module.end();else this.emit("error",new D4("NOENDMETHOD"))};T1.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};T1.prototype._moduleSupports=function($){if(!this._module.supports||!this._module.supports[$])return!1;return this._module.supports[$]};T1.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};T1.prototype._normalizeEntryData=function($,I){if($=i8.defaults($,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),I&&$.stats===!1)$.stats=I;var U=$.type==="directory";if($.name){if(typeof $.prefix==="string"&&$.prefix!=="")$.name=$.prefix+"/"+$.name,$.prefix=null;if($.name=i8.sanitizePath($.name),$.type!=="symlink"&&$.name.slice(-1)==="/")U=!0,$.type="directory";else if(U)$.name+="/"}if(typeof $.mode==="number")if(kS)$.mode&=511;else $.mode&=4095;else if($.stats&&$.mode===null){if(kS)$.mode=$.stats.mode&511;else $.mode=$.stats.mode&4095;if(kS&&U)$.mode=493}else if($.mode===null)$.mode=U?493:420;if($.stats&&$.date===null)$.date=$.stats.mtime;else $.date=i8.dateify($.date);return $};T1.prototype._onModuleError=function($){this.emit("error",$)};T1.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize()};T1.prototype._onQueueTask=function($,I){var U=()=>{if($.data.callback)$.data.callback();I()};if(this._state.finalizing||this._state.finalized||this._state.aborted){U();return}this._task=$,this._moduleAppend($.source,$.data,U)};T1.prototype._onStatQueueTask=function($,I){if(this._state.finalizing||this._state.finalized||this._state.aborted){I();return}fS.lstat($.filepath,function(U,Y){if(this._state.aborted){setImmediate(I);return}if(U){this._entriesCount--,this.emit("warning",U),setImmediate(I);return}if($=this._updateQueueTaskWithStats($,Y),$){if(Y.size)this._fsEntriesTotalBytes+=Y.size;this._queue.push($)}setImmediate(I)}.bind(this))};T1.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};T1.prototype._transform=function($,I,U){if($)this._pointer+=$.length;U(null,$)};T1.prototype._updateQueueTaskWithStats=function($,I){if(I.isFile())$.data.type="file",$.data.sourceType="stream",$.source=i8.lazyReadStream($.filepath);else if(I.isDirectory()&&this._moduleSupports("directory"))$.data.name=i8.trailingSlashIt($.data.name),$.data.type="directory",$.data.sourcePath=i8.trailingSlashIt($.filepath),$.data.sourceType="buffer",$.source=Buffer.concat([]);else if(I.isSymbolicLink()&&this._moduleSupports("symlink")){var U=fS.readlinkSync($.filepath),Y=xS.dirname($.filepath);$.data.type="symlink",$.data.linkname=xS.relative(Y,xS.resolve(Y,U)),$.data.sourceType="buffer",$.source=Buffer.concat([])}else{if(I.isDirectory())this.emit("warning",new D4("DIRECTORYNOTSUPPORTED",$.data));else if(I.isSymbolicLink())this.emit("warning",new D4("SYMLINKNOTSUPPORTED",$.data));else this.emit("warning",new D4("ENTRYNOTSUPPORTED",$.data));return null}return $.data=this._normalizeEntryData($.data,I),$};T1.prototype.abort=function(){if(this._state.aborted||this._state.finalized)return this;return this._abort(),this};T1.prototype.append=function($,I){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(I=this._normalizeEntryData(I),typeof I.name!=="string"||I.name.length===0)return this.emit("error",new D4("ENTRYNAMEREQUIRED")),this;if(I.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new D4("DIRECTORYNOTSUPPORTED",{name:I.name})),this;if($=i8.normalizeInputSource($),Buffer.isBuffer($))I.sourceType="buffer";else if(i8.isStream($))I.sourceType="stream";else return this.emit("error",new D4("INPUTSTEAMBUFFERREQUIRED",{name:I.name})),this;return this._entriesCount++,this._queue.push({data:I,source:$}),this};T1.prototype.directory=function($,I,U){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(typeof $!=="string"||$.length===0)return this.emit("error",new D4("DIRECTORYDIRPATHREQUIRED")),this;if(this._pending++,I===!1)I="";else if(typeof I!=="string")I=$;var Y=!1;if(typeof U==="function")Y=U,U={};else if(typeof U!=="object")U={};var J={stat:!0,dot:!0};function Q(){this._pending--,this._maybeFinalize()}function K(G){this.emit("error",G)}function q(G){H.pause();var W=!1,w=Object.assign({},U);w.name=G.relative,w.prefix=I,w.stats=G.stat,w.callback=H.resume.bind(H);try{if(Y){if(w=Y(w),w===!1)W=!0;else if(typeof w!=="object")throw new D4("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:$})}}catch(Z){this.emit("error",Z);return}if(W){H.resume();return}this._append(G.absolute,w)}var H=tJ0($,J);return H.on("error",K.bind(this)),H.on("match",q.bind(this)),H.on("end",Q.bind(this)),this};T1.prototype.file=function($,I){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(typeof $!=="string"||$.length===0)return this.emit("error",new D4("FILEFILEPATHREQUIRED")),this;return this._append($,I),this};T1.prototype.glob=function($,I,U){this._pending++,I=i8.defaults(I,{stat:!0,pattern:$});function Y(){this._pending--,this._maybeFinalize()}function J(q){this.emit("error",q)}function Q(q){K.pause();var H=Object.assign({},U);H.callback=K.resume.bind(K),H.stats=q.stat,H.name=q.relative,this._append(q.absolute,H)}var K=tJ0(I.cwd||".",I);return K.on("error",J.bind(this)),K.on("match",Q.bind(this)),K.on("end",Y.bind(this)),this};T1.prototype.finalize=function(){if(this._state.aborted){var $=new D4("ABORTED");return this.emit("error",$),Promise.reject($)}if(this._state.finalize){var I=new D4("FINALIZING");return this.emit("error",I),Promise.reject(I)}if(this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize();var U=this;return new Promise(function(Y,J){var Q;U._module.on("end",function(){if(!Q)Y()}),U._module.on("error",function(K){Q=!0,J(K)})})};T1.prototype.setFormat=function($){if(this._format)return this.emit("error",new D4("FORMATSET")),this;return this._format=$,this};T1.prototype.setModule=function($){if(this._state.aborted)return this.emit("error",new D4("ABORTED")),this;if(this._state.module)return this.emit("error",new D4("MODULESET")),this;return this._module=$,this._modulePipe(),this};T1.prototype.symlink=function($,I,U){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(typeof $!=="string"||$.length===0)return this.emit("error",new D4("SYMLINKFILEPATHREQUIRED")),this;if(typeof I!=="string"||I.length===0)return this.emit("error",new D4("SYMLINKTARGETREQUIRED",{filepath:$})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new D4("SYMLINKNOTSUPPORTED",{filepath:$})),this;var Y={};if(Y.type="symlink",Y.name=$.replace(/\\/g,"/"),Y.linkname=I.replace(/\\/g,"/"),Y.sourceType="buffer",typeof U==="number")Y.mode=U;return this._entriesCount++,this._queue.push({data:Y,source:Buffer.concat([])}),this};T1.prototype.pointer=function(){return this._pointer};T1.prototype.use=function($){return this._streams.push($),this};sJ0.exports=T1});var uX=O((tR1,$Q0)=>{var hX=$Q0.exports=function(){};hX.prototype.getName=function(){};hX.prototype.getSize=function(){};hX.prototype.getLastModifiedDate=function(){};hX.prototype.isDirectory=function(){}});var xX=O((aR1,IQ0)=>{var k$=IQ0.exports={};k$.dateToDos=function($,I){I=I||!1;var U=I?$.getFullYear():$.getUTCFullYear();if(U<1980)return 2162688;else if(U>=2044)return 2141175677;var Y={year:U,month:I?$.getMonth():$.getUTCMonth(),date:I?$.getDate():$.getUTCDate(),hours:I?$.getHours():$.getUTCHours(),minutes:I?$.getMinutes():$.getUTCMinutes(),seconds:I?$.getSeconds():$.getUTCSeconds()};return Y.year-1980<<25|Y.month+1<<21|Y.date<<16|Y.hours<<11|Y.minutes<<5|Y.seconds/2};k$.dosToDate=function($){return new Date(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1)};k$.fromDosTime=function($){return k$.dosToDate($.readUInt32LE(0))};k$.getEightBytes=function($){var I=Buffer.alloc(8);return I.writeUInt32LE($%4294967296,0),I.writeUInt32LE($/4294967296|0,4),I};k$.getShortBytes=function($){var I=Buffer.alloc(2);return I.writeUInt16LE(($&65535)>>>0,0),I};k$.getShortBytesValue=function($,I){return $.readUInt16LE(I)};k$.getLongBytes=function($){var I=Buffer.alloc(4);return I.writeUInt32LE(($&4294967295)>>>0,0),I};k$.getLongBytesValue=function($,I){return $.readUInt32LE(I)};k$.toDosTime=function($){return k$.getLongBytes(k$.dateToDos($))}});var bS=O((sR1,qQ0)=>{var UQ0=xX(),YQ0=8,JQ0=1,I71=4,U71=2,QQ0=64,KQ0=2048,H6=qQ0.exports=function(){if(!(this instanceof H6))return new H6;return this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this};H6.prototype.encode=function(){return UQ0.getShortBytes((this.descriptor?YQ0:0)|(this.utf8?KQ0:0)|(this.encryption?JQ0:0)|(this.strongEncryption?QQ0:0))};H6.prototype.parse=function($,I){var U=UQ0.getShortBytesValue($,I),Y=new H6;return Y.useDataDescriptor((U&YQ0)!==0),Y.useUTF8ForNames((U&KQ0)!==0),Y.useStrongEncryption((U&QQ0)!==0),Y.useEncryption((U&JQ0)!==0),Y.setSlidingDictionarySize((U&U71)!==0?8192:4096),Y.setNumberOfShannonFanoTrees((U&I71)!==0?3:2),Y};H6.prototype.setNumberOfShannonFanoTrees=function($){this.numberOfShannonFanoTrees=$};H6.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};H6.prototype.setSlidingDictionarySize=function($){this.slidingDictionarySize=$};H6.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};H6.prototype.useDataDescriptor=function($){this.descriptor=$};H6.prototype.usesDataDescriptor=function(){return this.descriptor};H6.prototype.useEncryption=function($){this.encryption=$};H6.prototype.usesEncryption=function(){return this.encryption};H6.prototype.useStrongEncryption=function($){this.strongEncryption=$};H6.prototype.usesStrongEncryption=function(){return this.strongEncryption};H6.prototype.useUTF8ForNames=function($){this.utf8=$};H6.prototype.usesUTF8ForNames=function(){return this.utf8}});var GQ0=O((eR1,HQ0)=>{HQ0.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var iS=O(($j1,WQ0)=>{WQ0.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var nS=O((Ij1,XQ0)=>{var Y71=t("util").inherits,J71=GX(),VQ0=uX(),ZQ0=bS(),wQ0=GQ0(),h6=iS(),zQ0=xX(),Q1=XQ0.exports=function($){if(!(this instanceof Q1))return new Q1($);if(VQ0.call(this),this.platform=h6.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new ZQ0,this.crc=0,this.time=-1,this.minver=h6.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,$)this.setName($)};Y71(Q1,VQ0);Q1.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};Q1.prototype.getComment=function(){return this.comment!==null?this.comment:""};Q1.prototype.getCompressedSize=function(){return this.csize};Q1.prototype.getCrc=function(){return this.crc};Q1.prototype.getExternalAttributes=function(){return this.exattr};Q1.prototype.getExtra=function(){return this.extra!==null?this.extra:h6.EMPTY};Q1.prototype.getGeneralPurposeBit=function(){return this.gpb};Q1.prototype.getInternalAttributes=function(){return this.inattr};Q1.prototype.getLastModifiedDate=function(){return this.getTime()};Q1.prototype.getLocalFileDataExtra=function(){return this.getExtra()};Q1.prototype.getMethod=function(){return this.method};Q1.prototype.getName=function(){return this.name};Q1.prototype.getPlatform=function(){return this.platform};Q1.prototype.getSize=function(){return this.size};Q1.prototype.getTime=function(){return this.time!==-1?zQ0.dosToDate(this.time):-1};Q1.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};Q1.prototype.getUnixMode=function(){return this.platform!==h6.PLATFORM_UNIX?0:this.getExternalAttributes()>>h6.SHORT_SHIFT&h6.SHORT_MASK};Q1.prototype.getVersionNeededToExtract=function(){return this.minver};Q1.prototype.setComment=function($){if(Buffer.byteLength($)!==$.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.comment=$};Q1.prototype.setCompressedSize=function($){if($<0)throw Error("invalid entry compressed size");this.csize=$};Q1.prototype.setCrc=function($){if($<0)throw Error("invalid entry crc32");this.crc=$};Q1.prototype.setExternalAttributes=function($){this.exattr=$>>>0};Q1.prototype.setExtra=function($){this.extra=$};Q1.prototype.setGeneralPurposeBit=function($){if(!($ instanceof ZQ0))throw Error("invalid entry GeneralPurposeBit");this.gpb=$};Q1.prototype.setInternalAttributes=function($){this.inattr=$};Q1.prototype.setMethod=function($){if($<0)throw Error("invalid entry compression method");this.method=$};Q1.prototype.setName=function($,I=!1){if($=J71($,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),I)$=`/${$}`;if(Buffer.byteLength($)!==$.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.name=$};Q1.prototype.setPlatform=function($){this.platform=$};Q1.prototype.setSize=function($){if($<0)throw Error("invalid entry size");this.size=$};Q1.prototype.setTime=function($,I){if(!($ instanceof Date))throw Error("invalid entry time");this.time=zQ0.dateToDos($,I)};Q1.prototype.setUnixMode=function($){$|=this.isDirectory()?h6.S_IFDIR:h6.S_IFREG;var I=0;I|=$<h6.ZIP64_MAGIC||this.size>h6.ZIP64_MAGIC}});var cS=O((Uj1,LQ0)=>{var Q71=t("stream").Stream,K71=D6().PassThrough,pS=LQ0.exports={};pS.isStream=function($){return $ instanceof Q71};pS.normalizeInputSource=function($){if($===null)return Buffer.alloc(0);else if(typeof $==="string")return Buffer.from($);else if(pS.isStream($)&&!$._readableState){var I=new K71;return $.pipe(I),I}return $}});var mS=O((Yj1,OQ0)=>{var q71=t("util").inherits,dS=D6().Transform,H71=uX(),DQ0=cS(),X$=OQ0.exports=function($){if(!(this instanceof X$))return new X$($);dS.call(this,$),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};q71(X$,dS);X$.prototype._appendBuffer=function($,I,U){};X$.prototype._appendStream=function($,I,U){};X$.prototype._emitErrorCallback=function($){if($)this.emit("error",$)};X$.prototype._finish=function($){};X$.prototype._normalizeEntry=function($){};X$.prototype._transform=function($,I,U){U(null,$)};X$.prototype.entry=function($,I,U){if(I=I||null,typeof U!=="function")U=this._emitErrorCallback.bind(this);if(!($ instanceof H71)){U(Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){U(Error("unacceptable entry after finish"));return}if(this._archive.processing){U(Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry($),this._entry=$,I=DQ0.normalizeInputSource(I),Buffer.isBuffer(I))this._appendBuffer($,I,U);else if(DQ0.isStream(I))this._appendStream($,I,U);else{this._archive.processing=!1,U(Error("input source must be valid Stream or Buffer instance"));return}return this};X$.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};X$.prototype.getBytesWritten=function(){return this.offset};X$.prototype.write=function($,I){if($)this.offset+=$.length;return dS.prototype.write.call(this,$,I)}});var tS=O((Jj1,NQ0)=>{var Y7=t("buffer").Buffer,lS=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array<"u")lS=new Int32Array(lS);function FQ0($){if(Y7.isBuffer($))return $;var I=typeof Y7.alloc==="function"&&typeof Y7.from==="function";if(typeof $==="number")return I?Y7.alloc($):new Y7($);else if(typeof $==="string")return I?Y7.from($):new Y7($);else throw Error("input must be buffer, number, or string, received "+typeof $)}function G71($){var I=FQ0(4);return I.writeInt32BE($,0),I}function oS($,I){if($=FQ0($),Y7.isBuffer(I))I=I.readUInt32BE(0);var U=~~I^-1;for(var Y=0;Y<$.length;Y++)U=lS[(U^$[Y])&255]^U>>>8;return U^-1}function rS(){return G71(oS.apply(null,arguments))}rS.signed=function(){return oS.apply(null,arguments)};rS.unsigned=function(){return oS.apply(null,arguments)>>>0};NQ0.exports=rS});var sS=O((aS)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var MQ0;(function($){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof aS==="object")$(aS);else if(typeof define==="function"&&define.amd)define(function(){var I={};return $(I),I});else $(MQ0={});else $(MQ0={})})(function($){$.version="1.2.2";function I(){var y=0,f=Array(256);for(var j=0;j!=256;++j)y=j,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,f[j]=y;return typeof Int32Array<"u"?new Int32Array(f):f}var U=I();function Y(y){var f=0,j=0,p=0,n=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(p=0;p!=256;++p)n[p]=y[p];for(p=0;p!=256;++p){j=y[p];for(f=256+p;f<4096;f+=256)j=n[f]=j>>>8^y[j&255]}var S=[];for(p=1;p!=16;++p)S[p-1]=typeof Int32Array<"u"?n.subarray(p*256,p*256+256):n.slice(p*256,p*256+256);return S}var J=Y(U),Q=J[0],K=J[1],q=J[2],H=J[3],G=J[4],W=J[5],w=J[6],Z=J[7],V=J[8],X=J[9],L=J[10],D=J[11],F=J[12],P=J[13],E=J[14];function A(y,f){var j=f^-1;for(var p=0,n=y.length;p>>8^U[(j^y.charCodeAt(p++))&255];return~j}function R(y,f){var j=f^-1,p=y.length-15,n=0;for(;n>8&255]^F[y[n++]^j>>16&255]^D[y[n++]^j>>>24]^L[y[n++]]^X[y[n++]]^V[y[n++]]^Z[y[n++]]^w[y[n++]]^W[y[n++]]^G[y[n++]]^H[y[n++]]^q[y[n++]]^K[y[n++]]^Q[y[n++]]^U[y[n++]];p+=15;while(n>>8^U[(j^y[n++])&255];return~j}function k(y,f){var j=f^-1;for(var p=0,n=y.length,S=0,b=0;p>>8^U[(j^S)&255];else if(S<2048)j=j>>>8^U[(j^(192|S>>6&31))&255],j=j>>>8^U[(j^(128|S&63))&255];else if(S>=55296&&S<57344)S=(S&1023)+64,b=y.charCodeAt(p++)&1023,j=j>>>8^U[(j^(240|S>>8&7))&255],j=j>>>8^U[(j^(128|S>>2&63))&255],j=j>>>8^U[(j^(128|b>>6&15|(S&3)<<4))&255],j=j>>>8^U[(j^(128|b&63))&255];else j=j>>>8^U[(j^(224|S>>12&15))&255],j=j>>>8^U[(j^(128|S>>6&63))&255],j=j>>>8^U[(j^(128|S&63))&255];return~j}$.table=U,$.bstr=A,$.buf=R,$.str=k})});var TQ0=O((Kj1,PQ0)=>{var{Transform:W71}=D6(),w71=sS();class AQ0 extends W71{constructor($){super($);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform($,I,U){if($)this.checksum=w71.buf($,this.checksum)>>>0,this.rawSize+=$.length;U(null,$)}digest($){let I=Buffer.allocUnsafe(4);return I.writeUInt32BE(this.checksum>>>0,0),$?I.toString($):I}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}PQ0.exports=AQ0});var vQ0=O((qj1,BQ0)=>{var{DeflateRaw:V71}=t("zlib"),Z71=sS();class EQ0 extends V71{constructor($){super($);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push($,I){if($)this.compressedSize+=$.length;return super.push($,I)}_transform($,I,U){if($)this.checksum=Z71.buf($,this.checksum)>>>0,this.rawSize+=$.length;super._transform($,I,U)}digest($){let I=Buffer.allocUnsafe(4);return I.writeUInt32BE(this.checksum>>>0,0),$?I.toString($):I}hex(){return this.digest("hex").toUpperCase()}size($=!1){if($)return this.compressedSize;else return this.rawSize}}BQ0.exports=EQ0});var eS=O((Hj1,RQ0)=>{RQ0.exports={CRC32Stream:TQ0(),DeflateCRC32Stream:vQ0()}});var _Q0=O((Vj1,CQ0)=>{var z71=t("util").inherits,X71=tS(),{CRC32Stream:L71}=eS(),{DeflateCRC32Stream:D71}=eS(),jQ0=mS(),Gj1=nS(),Wj1=bS(),o0=iS(),wj1=cS(),h0=xX(),n4=CQ0.exports=function($){if(!(this instanceof n4))return new n4($);$=this.options=this._defaults($),jQ0.call(this,$),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:$.forceZip64,forceLocalTime:$.forceLocalTime}};z71(n4,jQ0);n4.prototype._afterAppend=function($){if(this._entries.push($),$.getGeneralPurposeBit().usesDataDescriptor())this._writeDataDescriptor($);if(this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished)this._finish()};n4.prototype._appendBuffer=function($,I,U){if(I.length===0)$.setMethod(o0.METHOD_STORED);var Y=$.getMethod();if(Y===o0.METHOD_STORED)$.setSize(I.length),$.setCompressedSize(I.length),$.setCrc(X71.unsigned(I));if(this._writeLocalFileHeader($),Y===o0.METHOD_STORED){this.write(I),this._afterAppend($),U(null,$);return}else if(Y===o0.METHOD_DEFLATED){this._smartStream($,U).end(I);return}else{U(Error("compression method "+Y+" not implemented"));return}};n4.prototype._appendStream=function($,I,U){$.getGeneralPurposeBit().useDataDescriptor(!0),$.setVersionNeededToExtract(o0.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader($);var Y=this._smartStream($,U);I.once("error",function(J){Y.emit("error",J),Y.end()}),I.pipe(Y)};n4.prototype._defaults=function($){if(typeof $!=="object")$={};if(typeof $.zlib!=="object")$.zlib={};if(typeof $.zlib.level!=="number")$.zlib.level=o0.ZLIB_BEST_SPEED;return $.forceZip64=!!$.forceZip64,$.forceLocalTime=!!$.forceLocalTime,$};n4.prototype._finish=function(){if(this._archive.centralOffset=this.offset,this._entries.forEach(function($){this._writeCentralFileHeader($)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64())this._writeCentralDirectoryZip64();this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};n4.prototype._normalizeEntry=function($){if($.getMethod()===-1)$.setMethod(o0.METHOD_DEFLATED);if($.getMethod()===o0.METHOD_DEFLATED)$.getGeneralPurposeBit().useDataDescriptor(!0),$.setVersionNeededToExtract(o0.MIN_VERSION_DATA_DESCRIPTOR);if($.getTime()===-1)$.setTime(new Date,this._archive.forceLocalTime);$._offsets={file:0,data:0,contents:0}};n4.prototype._smartStream=function($,I){var U=$.getMethod()===o0.METHOD_DEFLATED,Y=U?new D71(this.options.zlib):new L71,J=null;function Q(){var K=Y.digest().readUInt32BE(0);$.setCrc(K),$.setSize(Y.size()),$.setCompressedSize(Y.size(!0)),this._afterAppend($),I(J,$)}return Y.once("end",Q.bind(this)),Y.once("error",function(K){J=K}),Y.pipe(this,{end:!1}),Y};n4.prototype._writeCentralDirectoryEnd=function(){var $=this._entries.length,I=this._archive.centralLength,U=this._archive.centralOffset;if(this.isZip64())$=o0.ZIP64_MAGIC_SHORT,I=o0.ZIP64_MAGIC,U=o0.ZIP64_MAGIC;this.write(h0.getLongBytes(o0.SIG_EOCD)),this.write(o0.SHORT_ZERO),this.write(o0.SHORT_ZERO),this.write(h0.getShortBytes($)),this.write(h0.getShortBytes($)),this.write(h0.getLongBytes(I)),this.write(h0.getLongBytes(U));var Y=this.getComment(),J=Buffer.byteLength(Y);this.write(h0.getShortBytes(J)),this.write(Y)};n4.prototype._writeCentralDirectoryZip64=function(){this.write(h0.getLongBytes(o0.SIG_ZIP64_EOCD)),this.write(h0.getEightBytes(44)),this.write(h0.getShortBytes(o0.MIN_VERSION_ZIP64)),this.write(h0.getShortBytes(o0.MIN_VERSION_ZIP64)),this.write(o0.LONG_ZERO),this.write(o0.LONG_ZERO),this.write(h0.getEightBytes(this._entries.length)),this.write(h0.getEightBytes(this._entries.length)),this.write(h0.getEightBytes(this._archive.centralLength)),this.write(h0.getEightBytes(this._archive.centralOffset)),this.write(h0.getLongBytes(o0.SIG_ZIP64_EOCD_LOC)),this.write(o0.LONG_ZERO),this.write(h0.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(h0.getLongBytes(1))};n4.prototype._writeCentralFileHeader=function($){var I=$.getGeneralPurposeBit(),U=$.getMethod(),Y=$._offsets,J=$.getSize(),Q=$.getCompressedSize();if($.isZip64()||Y.file>o0.ZIP64_MAGIC){J=o0.ZIP64_MAGIC,Q=o0.ZIP64_MAGIC,$.setVersionNeededToExtract(o0.MIN_VERSION_ZIP64);var K=Buffer.concat([h0.getShortBytes(o0.ZIP64_EXTRA_ID),h0.getShortBytes(24),h0.getEightBytes($.getSize()),h0.getEightBytes($.getCompressedSize()),h0.getEightBytes(Y.file)],28);$.setExtra(K)}this.write(h0.getLongBytes(o0.SIG_CFH)),this.write(h0.getShortBytes($.getPlatform()<<8|o0.VERSION_MADEBY)),this.write(h0.getShortBytes($.getVersionNeededToExtract())),this.write(I.encode()),this.write(h0.getShortBytes(U)),this.write(h0.getLongBytes($.getTimeDos())),this.write(h0.getLongBytes($.getCrc())),this.write(h0.getLongBytes(Q)),this.write(h0.getLongBytes(J));var q=$.getName(),H=$.getComment(),G=$.getCentralDirectoryExtra();if(I.usesUTF8ForNames())q=Buffer.from(q),H=Buffer.from(H);if(this.write(h0.getShortBytes(q.length)),this.write(h0.getShortBytes(G.length)),this.write(h0.getShortBytes(H.length)),this.write(o0.SHORT_ZERO),this.write(h0.getShortBytes($.getInternalAttributes())),this.write(h0.getLongBytes($.getExternalAttributes())),Y.file>o0.ZIP64_MAGIC)this.write(h0.getLongBytes(o0.ZIP64_MAGIC));else this.write(h0.getLongBytes(Y.file));this.write(q),this.write(G),this.write(H)};n4.prototype._writeDataDescriptor=function($){if(this.write(h0.getLongBytes(o0.SIG_DD)),this.write(h0.getLongBytes($.getCrc())),$.isZip64())this.write(h0.getEightBytes($.getCompressedSize())),this.write(h0.getEightBytes($.getSize()));else this.write(h0.getLongBytes($.getCompressedSize())),this.write(h0.getLongBytes($.getSize()))};n4.prototype._writeLocalFileHeader=function($){var I=$.getGeneralPurposeBit(),U=$.getMethod(),Y=$.getName(),J=$.getLocalFileDataExtra();if($.isZip64())I.useDataDescriptor(!0),$.setVersionNeededToExtract(o0.MIN_VERSION_ZIP64);if(I.usesUTF8ForNames())Y=Buffer.from(Y);if($._offsets.file=this.offset,this.write(h0.getLongBytes(o0.SIG_LFH)),this.write(h0.getShortBytes($.getVersionNeededToExtract())),this.write(I.encode()),this.write(h0.getShortBytes(U)),this.write(h0.getLongBytes($.getTimeDos())),$._offsets.data=this.offset,I.usesDataDescriptor())this.write(o0.LONG_ZERO),this.write(o0.LONG_ZERO),this.write(o0.LONG_ZERO);else this.write(h0.getLongBytes($.getCrc())),this.write(h0.getLongBytes($.getCompressedSize())),this.write(h0.getLongBytes($.getSize()));this.write(h0.getShortBytes(Y.length)),this.write(h0.getShortBytes(J.length)),this.write(Y),this.write(J),$._offsets.contents=this.offset};n4.prototype.getComment=function($){return this._archive.comment!==null?this._archive.comment:""};n4.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>o0.ZIP64_MAGIC_SHORT||this._archive.centralLength>o0.ZIP64_MAGIC||this._archive.centralOffset>o0.ZIP64_MAGIC};n4.prototype.setComment=function($){this._archive.comment=$}});var $g=O((Zj1,SQ0)=>{SQ0.exports={ArchiveEntry:uX(),ZipArchiveEntry:nS(),ArchiveOutputStream:mS(),ZipArchiveOutputStream:_Q0()}});var uQ0=O((zj1,hQ0)=>{var yQ0=s6(),oY=t("path"),Ig=IS(),O71=qS(),F71=ZS(),N71=zS(),M71=Vq(),b3=hQ0.exports={},gQ0=/[\/\\]/g,A71=function($,I){var U=[];return Ig($).forEach(function(Y){var J=Y.indexOf("!")===0;if(J)Y=Y.slice(1);var Q=I(Y);if(J)U=O71(U,Q);else U=F71(U,Q)}),U};b3.exists=function(){var $=oY.join.apply(oY,arguments);return yQ0.existsSync($)};b3.expand=function(...$){var I=N71($[0])?$.shift():{},U=Array.isArray($[0])?$[0]:$;if(U.length===0)return[];var Y=A71(U,function(J){return M71.sync(J,I)});if(I.filter)Y=Y.filter(function(J){J=oY.join(I.cwd||"",J);try{if(typeof I.filter==="function")return I.filter(J);else return yQ0.statSync(J)[I.filter]()}catch(Q){return!1}});return Y};b3.expandMapping=function($,I,U){U=Object.assign({rename:function(Q,K){return oY.join(Q||"",K)}},U);var Y=[],J={};return b3.expand(U,$).forEach(function(Q){var K=Q;if(U.flatten)K=oY.basename(K);if(U.ext)K=K.replace(/(\.[^\/]*)?$/,U.ext);var q=U.rename(I,K,U);if(U.cwd)Q=oY.join(U.cwd,Q);if(q=q.replace(gQ0,"/"),Q=Q.replace(gQ0,"/"),J[q])J[q].src.push(Q);else Y.push({src:[Q],dest:q}),J[q]=Y[Y.length-1]}),Y};b3.normalizeFilesArray=function($){var I=[];if($.forEach(function(U){var Y;if("src"in U||"dest"in U)I.push(U)}),I.length===0)return[];return I=_(I).chain().forEach(function(U){if(!("src"in U)||!U.src)return;if(Array.isArray(U.src))U.src=Ig(U.src);else U.src=[U.src]}).map(function(U){var Y=Object.assign({},U);if(delete Y.src,delete Y.dest,U.expand)return b3.expandMapping(U.src,U.dest,Y).map(function(Q){var K=Object.assign({},U);return K.orig=Object.assign({},U),K.src=Q.src,K.dest=Q.dest,["expand","cwd","flatten","rename","ext"].forEach(function(q){delete K[q]}),K});var J=Object.assign({},U);if(J.orig=Object.assign({},U),"src"in J)Object.defineProperty(J,"src",{enumerable:!0,get:function Q(){var K;if(!("result"in Q))K=U.src,K=Array.isArray(K)?Ig(K):[K],Q.result=b3.expand(Y,K);return Q.result}});if("dest"in J)J.dest=U.dest;return J}).flatten().value(),I}});var bQ0=O((Xj1,fQ0)=>{var Ug=s6(),xQ0=t("path"),P71=g_(),kQ0=GX(),T71=x_(),E71=t("stream").Stream,B71=D6().PassThrough,L$=fQ0.exports={};L$.file=uQ0();L$.collectStream=function($,I){var U=[],Y=0;$.on("error",I),$.on("data",function(J){U.push(J),Y+=J.length}),$.on("end",function(){var J=Buffer.alloc(Y),Q=0;U.forEach(function(K){K.copy(J,Q),Q+=K.length}),I(null,J)})};L$.dateify=function($){if($=$||new Date,$ instanceof Date)$=$;else if(typeof $==="string")$=new Date($);else $=new Date;return $};L$.defaults=function($,I,U){var Y=arguments;return Y[0]=Y[0]||{},T71(...Y)};L$.isStream=function($){return $ instanceof E71};L$.lazyReadStream=function($){return new P71.Readable(function(){return Ug.createReadStream($)})};L$.normalizeInputSource=function($){if($===null)return Buffer.alloc(0);else if(typeof $==="string")return Buffer.from($);else if(L$.isStream($))return $.pipe(new B71);return $};L$.sanitizePath=function($){return kQ0($,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};L$.trailingSlashIt=function($){return $.slice(-1)!=="/"?$+"/":$};L$.unixifyPath=function($){return kQ0($,!1).replace(/^\w+:/,"")};L$.walkdir=function($,I,U){var Y=[];if(typeof I==="function")U=I,I=$;Ug.readdir($,function(J,Q){var K=0,q,H;if(J)return U(J);(function G(){if(q=Q[K++],!q)return U(null,Y);H=xQ0.join($,q),Ug.stat(H,function(W,w){if(Y.push({path:H,relative:xQ0.relative(I,H).replace(/\\/g,"/"),stats:w}),w&&w.isDirectory())L$.walkdir(H,I,function(Z,V){V.forEach(function(X){Y.push(X)}),G()});else G()})})()})}});var nQ0=O((Lj1,iQ0)=>{var v71=t("util").inherits,Jg=$g().ZipArchiveOutputStream,R71=$g().ZipArchiveEntry,Yg=bQ0(),rY=iQ0.exports=function($){if(!(this instanceof rY))return new rY($);if($=this.options=$||{},$.zlib=$.zlib||{},Jg.call(this,$),typeof $.level==="number"&&$.level>=0)$.zlib.level=$.level,delete $.level;if(!$.forceZip64&&typeof $.zlib.level==="number"&&$.zlib.level===0)$.store=!0;if($.namePrependSlash=$.namePrependSlash||!1,$.comment&&$.comment.length>0)this.setComment($.comment)};v71(rY,Jg);rY.prototype._normalizeFileData=function($){$=Yg.defaults($,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var I=$.type==="directory",U=$.type==="symlink";if($.name){if($.name=Yg.sanitizePath($.name),!U&&$.name.slice(-1)==="/")I=!0,$.type="directory";else if(I)$.name+="/"}if(I||U)$.store=!0;return $.date=Yg.dateify($.date),$};rY.prototype.entry=function($,I,U){if(typeof U!=="function")U=this._emitErrorCallback.bind(this);if(I=this._normalizeFileData(I),I.type!=="file"&&I.type!=="directory"&&I.type!=="symlink"){U(Error(I.type+" entries not currently supported"));return}if(typeof I.name!=="string"||I.name.length===0){U(Error("entry name must be a non-empty string value"));return}if(I.type==="symlink"&&typeof I.linkname!=="string"){U(Error("entry linkname must be a non-empty string value when type equals symlink"));return}var Y=new R71(I.name);if(Y.setTime(I.date,this.options.forceLocalTime),I.namePrependSlash)Y.setName(I.name,!0);if(I.store)Y.setMethod(0);if(I.comment.length>0)Y.setComment(I.comment);if(I.type==="symlink"&&typeof I.mode!=="number")I.mode=40960;if(typeof I.mode==="number"){if(I.type==="symlink")I.mode|=40960;Y.setUnixMode(I.mode)}if(I.type==="symlink"&&typeof I.linkname==="string")$=Buffer.from(I.linkname);return Jg.prototype.entry.call(this,Y,$,U)};rY.prototype.finalize=function(){this.finish()}});var cQ0=O((Dj1,pQ0)=>{var j71=nQ0(),C71=Xq(),J7=function($){if(!(this instanceof J7))return new J7($);$=this.options=C71.defaults($,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new j71($)};J7.prototype.append=function($,I,U){this.engine.entry($,I,U)};J7.prototype.finalize=function(){this.engine.finalize()};J7.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};J7.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};J7.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};pQ0.exports=J7});var lQ0=O((Oj1,mQ0)=>{var{Buffer:W8}=t("buffer"),dQ0=Symbol.for("BufferList");function r1($){if(!(this instanceof r1))return new r1($);r1._init.call(this,$)}r1._init=function(I){if(Object.defineProperty(this,dQ0,{value:!0}),this._bufs=[],this.length=0,I)this.append(I)};r1.prototype._new=function(I){return new r1(I)};r1.prototype._offset=function(I){if(I===0)return[0,0];let U=0;for(let Y=0;Ythis.length||I<0)return;let U=this._offset(I);return this._bufs[U[0]][U[1]]};r1.prototype.slice=function(I,U){if(typeof I==="number"&&I<0)I+=this.length;if(typeof U==="number"&&U<0)U+=this.length;return this.copy(null,0,I,U)};r1.prototype.copy=function(I,U,Y,J){if(typeof Y!=="number"||Y<0)Y=0;if(typeof J!=="number"||J>this.length)J=this.length;if(Y>=this.length)return I||W8.alloc(0);if(J<=0)return I||W8.alloc(0);let Q=!!I,K=this._offset(Y),q=J-Y,H=q,G=Q&&U||0,W=K[1];if(Y===0&&J===this.length){if(!Q)return this._bufs.length===1?this._bufs[0]:W8.concat(this._bufs,this.length);for(let w=0;wZ)this._bufs[w].copy(I,G,W),G+=Z;else{this._bufs[w].copy(I,G,W,W+H),G+=Z;break}if(H-=Z,W)W=0}if(I.length>G)return I.slice(0,G);return I};r1.prototype.shallowSlice=function(I,U){if(I=I||0,U=typeof U!=="number"?this.length:U,I<0)I+=this.length;if(U<0)U+=this.length;if(I===U)return this._new();let Y=this._offset(I),J=this._offset(U),Q=this._bufs.slice(Y[0],J[0]+1);if(J[1]===0)Q.pop();else Q[Q.length-1]=Q[Q.length-1].slice(0,J[1]);if(Y[1]!==0)Q[0]=Q[0].slice(Y[1]);return this._new(Q)};r1.prototype.toString=function(I,U,Y){return this.slice(U,Y).toString(I)};r1.prototype.consume=function(I){if(I=Math.trunc(I),Number.isNaN(I)||I<=0)return this;while(this._bufs.length)if(I>=this._bufs[0].length)I-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(I),this.length-=I;break}return this};r1.prototype.duplicate=function(){let I=this._new();for(let U=0;Uthis.length?this.length:I;let Y=this._offset(I),J=Y[0],Q=Y[1];for(;J=$.length){let H=K.indexOf($,Q);if(H!==-1)return this._reverseOffset([J,H]);Q=K.length-$.length+1}else{let H=this._reverseOffset([J,Q]);if(this._match(H,$))return H;Q++}Q=0}return-1};r1.prototype._match=function($,I){if(this.length-${var Qg=D6().Duplex,_71=c0(),Lq=lQ0();function M6($){if(!(this instanceof M6))return new M6($);if(typeof $==="function"){this._callback=$;let I=function(Y){if(this._callback)this._callback(Y),this._callback=null}.bind(this);this.on("pipe",function(Y){Y.on("error",I)}),this.on("unpipe",function(Y){Y.removeListener("error",I)}),$=null}Lq._init.call(this,$),Qg.call(this)}_71(M6,Qg);Object.assign(M6.prototype,Lq.prototype);M6.prototype._new=function(I){return new M6(I)};M6.prototype._write=function(I,U,Y){if(this._appendBuffer(I),typeof Y==="function")Y()};M6.prototype._read=function(I){if(!this.length)return this.push(null);I=Math.min(I,this.length),this.push(this.slice(0,I)),this.consume(I)};M6.prototype.end=function(I){if(Qg.prototype.end.call(this,I),this._callback)this._callback(null,this.slice()),this._callback=null};M6.prototype._destroy=function(I,U){this._bufs.length=0,this.length=0,U(I)};M6.prototype._isBufferList=function(I){return I instanceof M6||I instanceof Lq||M6.isBufferList(I)};M6.isBufferList=Lq.isBufferList;kX.exports=M6;kX.exports.BufferListStream=M6;kX.exports.BufferList=Lq});var Hg=O((p71)=>{var S71=Buffer.alloc,g71="0000000000000000000",y71="7777777777777777777",rQ0=48,tQ0=Buffer.from("ustar\x00","binary"),h71=Buffer.from("00","binary"),u71=Buffer.from("ustar ","binary"),x71=Buffer.from(" \x00","binary"),k71=parseInt("7777",8),Dq=257,qg=263,f71=function($,I,U){if(typeof $!=="number")return U;if($=~~$,$>=I)return I;if($>=0)return $;if($+=I,$>=0)return $;return 0},b71=function($){switch($){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},i71=function($){switch($){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},aQ0=function($,I,U,Y){for(;UI)return y71.slice(0,I)+" ";else return g71.slice(0,I-$.length)+$+" "};function n71($){var I;if($[0]===128)I=!0;else if($[0]===255)I=!1;else return null;var U=[];for(var Y=$.length-1;Y>0;Y--){var J=$[Y];if(I)U.push(J);else U.push(255-J)}var Q=0,K=U.length;for(Y=0;Y=Math.pow(10,U))U++;return I+U+$};p71.decodeLongPath=function($,I){return tY($,0,$.length,I)};p71.encodePax=function($){var I="";if($.name)I+=Kg(" path="+$.name+` -`);if($.linkname)I+=Kg(" linkpath="+$.linkname+` -`);var U=$.pax;if(U)for(var Y in U)I+=Kg(" "+Y+"="+U[Y]+` -`);return Buffer.from(I)};p71.decodePax=function($){var I={};while($.length){var U=0;while(U<$.length&&$[U]!==32)U++;var Y=parseInt($.slice(0,U).toString(),10);if(!Y)return I;var J=$.slice(U+1,Y-1).toString(),Q=J.indexOf("=");if(Q===-1)return I;I[J.slice(0,Q)]=J.slice(Q+1),$=$.slice(Y)}return I};p71.encode=function($){var I=S71(512),U=$.name,Y="";if($.typeflag===5&&U[U.length-1]!=="/")U+="/";if(Buffer.byteLength(U)!==U.length)return null;while(Buffer.byteLength(U)>100){var J=U.indexOf("/");if(J===-1)return null;Y+=Y?"/"+U.slice(0,J):U.slice(0,J),U=U.slice(J+1)}if(Buffer.byteLength(U)>100||Buffer.byteLength(Y)>155)return null;if($.linkname&&Buffer.byteLength($.linkname)>100)return null;if(I.write(U),I.write(Q7($.mode&k71,6),100),I.write(Q7($.uid,6),108),I.write(Q7($.gid,6),116),I.write(Q7($.size,11),124),I.write(Q7($.mtime.getTime()/1000|0,11),136),I[156]=rQ0+i71($.type),$.linkname)I.write($.linkname,157);if(tQ0.copy(I,Dq),h71.copy(I,qg),$.uname)I.write($.uname,265);if($.gname)I.write($.gname,297);if(I.write(Q7($.devmajor||0,6),329),I.write(Q7($.devminor||0,6),337),Y)I.write(Y,345);return I.write(Q7(sQ0(I),6),148),I};p71.decode=function($,I,U){var Y=$[156]===0?0:$[156]-rQ0,J=tY($,0,100,I),Q=K7($,100,8),K=K7($,108,8),q=K7($,116,8),H=K7($,124,12),G=K7($,136,12),W=b71(Y),w=$[157]===0?null:tY($,157,100,I),Z=tY($,265,32),V=tY($,297,32),X=K7($,329,8),L=K7($,337,8),D=sQ0($);if(D===256)return null;if(D!==K7($,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(tQ0.compare($,Dq,Dq+6)===0){if($[345])J=tY($,345,155,I)+"/"+J}else if(u71.compare($,Dq,Dq+6)===0&&x71.compare($,qg,qg+2)===0);else if(!U)throw Error("Invalid tar header: unknown format.");if(Y===0&&J&&J[J.length-1]==="/")Y=5;return{name:J,mode:Q,uid:K,gid:q,size:H,mtime:new Date(1000*G),type:W,linkname:w,uname:Z,gname:V,devmajor:X,devminor:L}}});var Q20=O((Mj1,J20)=>{var $20=t("util"),r71=oQ0(),Oq=Hg(),I20=D6().Writable,U20=D6().PassThrough,Y20=function(){},eQ0=function($){return $&=511,$&&512-$},t71=function($,I){var U=new fX($,I);return U.end(),U},a71=function($,I){if(I.path)$.name=I.path;if(I.linkpath)$.linkname=I.linkpath;if(I.size)$.size=parseInt(I.size,10);return $.pax=I,$},fX=function($,I){this._parent=$,this.offset=I,U20.call(this,{autoDestroy:!1})};$20.inherits(fX,U20);fX.prototype.destroy=function($){this._parent.destroy($)};var h5=function($){if(!(this instanceof h5))return new h5($);I20.call(this,$),$=$||{},this._offset=0,this._buffer=r71(),this._missing=0,this._partial=!1,this._onparse=Y20,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var I=this,U=I._buffer,Y=function(){I._continue()},J=function(Z){if(I._locked=!1,Z)return I.destroy(Z);if(!I._stream)Y()},Q=function(){I._stream=null;var Z=eQ0(I._header.size);if(Z)I._parse(Z,K);else I._parse(512,w);if(!I._locked)Y()},K=function(){I._buffer.consume(eQ0(I._header.size)),I._parse(512,w),Y()},q=function(){var Z=I._header.size;I._paxGlobal=Oq.decodePax(U.slice(0,Z)),U.consume(Z),Q()},H=function(){var Z=I._header.size;if(I._pax=Oq.decodePax(U.slice(0,Z)),I._paxGlobal)I._pax=Object.assign({},I._paxGlobal,I._pax);U.consume(Z),Q()},G=function(){var Z=I._header.size;this._gnuLongPath=Oq.decodeLongPath(U.slice(0,Z),$.filenameEncoding),U.consume(Z),Q()},W=function(){var Z=I._header.size;this._gnuLongLinkPath=Oq.decodeLongPath(U.slice(0,Z),$.filenameEncoding),U.consume(Z),Q()},w=function(){var Z=I._offset,V;try{V=I._header=Oq.decode(U.slice(0,512),$.filenameEncoding,$.allowUnknownFormat)}catch(X){I.emit("error",X)}if(U.consume(512),!V){I._parse(512,w),Y();return}if(V.type==="gnu-long-path"){I._parse(V.size,G),Y();return}if(V.type==="gnu-long-link-path"){I._parse(V.size,W),Y();return}if(V.type==="pax-global-header"){I._parse(V.size,q),Y();return}if(V.type==="pax-header"){I._parse(V.size,H),Y();return}if(I._gnuLongPath)V.name=I._gnuLongPath,I._gnuLongPath=null;if(I._gnuLongLinkPath)V.linkname=I._gnuLongLinkPath,I._gnuLongLinkPath=null;if(I._pax)I._header=V=a71(V,I._pax),I._pax=null;if(I._locked=!0,!V.size||V.type==="directory"){I._parse(512,w),I.emit("entry",V,t71(I,Z),J);return}I._stream=new fX(I,Z),I.emit("entry",V,I._stream,J),I._parse(V.size,Q),Y()};this._onheader=w,this._parse(512,w)};$20.inherits(h5,I20);h5.prototype.destroy=function($){if(this._destroyed)return;if(this._destroyed=!0,$)this.emit("error",$);if(this.emit("close"),this._stream)this._stream.emit("close")};h5.prototype._parse=function($,I){if(this._destroyed)return;if(this._offset+=$,this._missing=$,I===this._onheader)this._partial=!1;this._onparse=I};h5.prototype._continue=function(){if(this._destroyed)return;var $=this._cb;if(this._cb=Y20,this._overflow)this._write(this._overflow,void 0,$);else $()};h5.prototype._write=function($,I,U){if(this._destroyed)return;var Y=this._stream,J=this._buffer,Q=this._missing;if($.length)this._partial=!0;if($.lengthQ)K=$.slice(Q),$=$.slice(0,Q);if(Y)Y.end($);else J.append($);this._overflow=K,this._onparse()};h5.prototype._final=function($){if(this._partial)return this.destroy(Error("Unexpected end of data"));$()};J20.exports=h5});var q20=O((Aj1,K20)=>{K20.exports=t("fs").constants||t("constants")});var W20=O((Pj1,G20)=>{var s71=yX(),e71=function(){},$31=global.Bare?queueMicrotask:process.nextTick.bind(process),I31=function($){return $.setHeader&&typeof $.abort==="function"},U31=function($){return $.stdio&&Array.isArray($.stdio)&&$.stdio.length===3},H20=function($,I,U){if(typeof I==="function")return H20($,null,I);if(!I)I={};U=s71(U||e71);var{_writableState:Y,_readableState:J}=$,Q=I.readable||I.readable!==!1&&$.readable,K=I.writable||I.writable!==!1&&$.writable,q=!1,H=function(){if(!$.writable)G()},G=function(){if(K=!1,!Q)U.call($)},W=function(){if(Q=!1,!K)U.call($)},w=function(D){U.call($,D?Error("exited with error code: "+D):null)},Z=function(D){U.call($,D)},V=function(){$31(X)},X=function(){if(q)return;if(Q&&!(J&&(J.ended&&!J.destroyed)))return U.call($,Error("premature close"));if(K&&!(Y&&(Y.ended&&!Y.destroyed)))return U.call($,Error("premature close"))},L=function(){$.req.on("finish",G)};if(I31($))if($.on("complete",G),$.on("abort",V),$.req)L();else $.on("request",L);else if(K&&!Y)$.on("end",H),$.on("close",H);if(U31($))$.on("exit",w);if($.on("end",W),$.on("finish",G),I.error!==!1)$.on("error",Z);return $.on("close",V),function(){if(q=!0,$.removeListener("complete",G),$.removeListener("abort",V),$.removeListener("request",L),$.req)$.req.removeListener("finish",G);$.removeListener("end",H),$.removeListener("close",H),$.removeListener("finish",G),$.removeListener("exit",w),$.removeListener("end",W),$.removeListener("error",Z),$.removeListener("close",V)}};G20.exports=H20});var X20=O((Tj1,z20)=>{var aY=q20(),w20=W20(),iX=c0(),Y31=Buffer.alloc,V20=D6().Readable,sY=D6().Writable,J31=t("string_decoder").StringDecoder,bX=Hg(),Q31=parseInt("755",8),K31=parseInt("644",8),Z20=Y31(1024),Wg=function(){},Gg=function($,I){if(I&=511,I)$.push(Z20.slice(0,512-I))};function q31($){switch($&aY.S_IFMT){case aY.S_IFBLK:return"block-device";case aY.S_IFCHR:return"character-device";case aY.S_IFDIR:return"directory";case aY.S_IFIFO:return"fifo";case aY.S_IFLNK:return"symlink"}return"file"}var nX=function($){sY.call(this),this.written=0,this._to=$,this._destroyed=!1};iX(nX,sY);nX.prototype._write=function($,I,U){if(this.written+=$.length,this._to.push($))return U();this._to._drain=U};nX.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=!0,this.emit("close")};var pX=function(){sY.call(this),this.linkname="",this._decoder=new J31("utf-8"),this._destroyed=!1};iX(pX,sY);pX.prototype._write=function($,I,U){this.linkname+=this._decoder.write($),U()};pX.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=!0,this.emit("close")};var Fq=function(){sY.call(this),this._destroyed=!1};iX(Fq,sY);Fq.prototype._write=function($,I,U){U(Error("No body allowed for this entry"))};Fq.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=!0,this.emit("close")};var n8=function($){if(!(this instanceof n8))return new n8($);V20.call(this,$),this._drain=Wg,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};iX(n8,V20);n8.prototype.entry=function($,I,U){if(this._stream)throw Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof I==="function")U=I,I=null;if(!U)U=Wg;var Y=this;if(!$.size||$.type==="symlink")$.size=0;if(!$.type)$.type=q31($.mode);if(!$.mode)$.mode=$.type==="directory"?Q31:K31;if(!$.uid)$.uid=0;if(!$.gid)$.gid=0;if(!$.mtime)$.mtime=new Date;if(typeof I==="string")I=Buffer.from(I);if(Buffer.isBuffer(I)){$.size=I.length,this._encode($);var J=this.push(I);if(Gg(Y,$.size),J)process.nextTick(U);else this._drain=U;return new Fq}if($.type==="symlink"&&!$.linkname){var Q=new pX;return w20(Q,function(q){if(q)return Y.destroy(),U(q);$.linkname=Q.linkname,Y._encode($),U()}),Q}if(this._encode($),$.type!=="file"&&$.type!=="contiguous-file")return process.nextTick(U),new Fq;var K=new nX(this);return this._stream=K,w20(K,function(q){if(Y._stream=null,q)return Y.destroy(),U(q);if(K.written!==$.size)return Y.destroy(),U(Error("size mismatch"));if(Gg(Y,$.size),Y._finalizing)Y.finalize();U()}),K};n8.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}if(this._finalized)return;this._finalized=!0,this.push(Z20),this.push(null)};n8.prototype.destroy=function($){if(this._destroyed)return;if(this._destroyed=!0,$)this.emit("error",$);if(this.emit("close"),this._stream&&this._stream.destroy)this._stream.destroy()};n8.prototype._encode=function($){if(!$.pax){var I=bX.encode($);if(I){this.push(I);return}}this._encodePax($)};n8.prototype._encodePax=function($){var I=bX.encodePax({name:$.name,linkname:$.linkname,pax:$.pax}),U={name:"PaxHeader",mode:$.mode,uid:$.uid,gid:$.gid,size:I.length,mtime:$.mtime,type:"pax-header",linkname:$.linkname&&"PaxHeader",uname:$.uname,gname:$.gname,devmajor:$.devmajor,devminor:$.devminor};this.push(bX.encode(U)),this.push(I),Gg(this,I.length),U.size=$.size,U.type=$.type,this.push(bX.encode(U))};n8.prototype._read=function($){var I=this._drain;this._drain=Wg,I()};z20.exports=n8});var L20=O((H31)=>{H31.extract=Q20();H31.pack=X20()});var F20=O((Bj1,O20)=>{var w31=t("zlib"),V31=L20(),D20=Xq(),u5=function($){if(!(this instanceof u5))return new u5($);if($=this.options=D20.defaults($,{gzip:!1}),typeof $.gzipOptions!=="object")$.gzipOptions={};if(this.supports={directory:!0,symlink:!0},this.engine=V31.pack($),this.compressor=!1,$.gzip)this.compressor=w31.createGzip($.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this))};u5.prototype._onCompressorError=function($){this.engine.emit("error",$)};u5.prototype.append=function($,I,U){var Y=this;I.mtime=I.date;function J(K,q){if(K){U(K);return}Y.engine.entry(I,q,function(H){U(H,I)})}if(I.sourceType==="buffer")J(null,$);else if(I.sourceType==="stream"&&I.stats){I.size=I.stats.size;var Q=Y.engine.entry(I,function(K){U(K,I)});$.pipe(Q)}else if(I.sourceType==="stream")D20.collectStream($,J)};u5.prototype.finalize=function(){this.engine.finalize()};u5.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};u5.prototype.pipe=function($,I){if(this.compressor)return this.engine.pipe.apply(this.engine,[this.compressor]).pipe($,I);else return this.engine.pipe.apply(this.engine,arguments)};u5.prototype.unpipe=function(){if(this.compressor)return this.compressor.unpipe.apply(this.compressor,arguments);else return this.engine.unpipe.apply(this.engine,arguments)};O20.exports=u5});var P20=O((vj1,A20)=>{var Z31=t("util").inherits,N20=D6().Transform,z31=tS(),M20=Xq(),q7=function($){if(!(this instanceof q7))return new q7($);$=this.options=M20.defaults($,{}),N20.call(this,$),this.supports={directory:!0,symlink:!0},this.files=[]};Z31(q7,N20);q7.prototype._transform=function($,I,U){U(null,$)};q7.prototype._writeStringified=function(){var $=JSON.stringify(this.files);this.write($)};q7.prototype.append=function($,I,U){var Y=this;I.crc32=0;function J(Q,K){if(Q){U(Q);return}I.size=K.length||0,I.crc32=z31.unsigned(K),Y.files.push(I),U(null,I)}if(I.sourceType==="buffer")J(null,$);else if(I.sourceType==="stream")M20.collectStream($,J)};q7.prototype.finalize=function(){this._writeStringified(),this.end()};A20.exports=q7});var E20=O((Rj1,T20)=>{var X31=eJ0(),Nq={},H7=function($,I){return H7.create($,I)};H7.create=function($,I){if(Nq[$]){var U=new X31($,I);return U.setFormat($),U.setModule(new Nq[$](I)),U}else throw Error("create("+$+"): format not registered")};H7.registerFormat=function($,I){if(Nq[$])throw Error("register("+$+"): format already registered");if(typeof I!=="function")throw Error("register("+$+"): format module invalid");if(typeof I.prototype.append!=="function"||typeof I.prototype.finalize!=="function")throw Error("register("+$+"): format module missing methods");Nq[$]=I};H7.isRegisteredFormat=function($){if(Nq[$])return!0;return!1};H7.registerFormat("zip",cQ0());H7.registerFormat("tar",F20());H7.registerFormat("json",P20());T20.exports=H7});var R20=O((jj1,v20)=>{class B20{constructor(){this._values=[],this._totalRefs=0,this._hash=Object.create(null)}get count(){return this._values.length}get values(){return this._values}get totalRefs(){return this._totalRefs}getString($){return this._values[$]}add($){let I=this._hash[$];if(I===void 0)I=this._hash[$]=this._values.length,this._values.push($);return this._totalRefs++,I}}v20.exports=B20});var S20=O((Cj1,_20)=>{var L31=O6(),D31=n9();class j20{constructor($){this.writer=$}push($){this.writer.addHyperlink($)}}class C20{constructor($){this.id=$.id,this.count=0,this._hyperlinks=[],this._workbook=$.workbook}get stream(){if(!this._stream)this._stream=this._workbook._openStream(`/xl/worksheets/_rels/sheet${this.id}.xml.rels`);return this._stream}get length(){return this._hyperlinks.length}each($){return this._hyperlinks.forEach($)}get hyperlinksProxy(){return this._hyperlinksProxy||(this._hyperlinksProxy=new j20(this))}addHyperlink($){let I={Target:$.target,Type:D31.Hyperlink,TargetMode:"External"},U=this._writeRelationship(I);this._hyperlinks.push({rId:U,address:$.address})}addMedia($){return this._writeRelationship($)}addRelationship($){return this._writeRelationship($)}commit(){if(this.count)this._writeClose(),this.stream.end()}_writeOpen(){this.stream.write(` - `)}_writeRelationship($){if(!this.count)this._writeOpen();let I=`rId${++this.count}`;if($.TargetMode)this.stream.write(``);else this.stream.write(``);return I}_writeClose(){this.stream.write("")}}_20.exports=C20});var x20=O((_j1,u20)=>{var g20=U6(),y20=n9(),O31=W4(),F31=ij(),N31=pj();class h20{constructor($,I,U){this.id=U.id,this.count=0,this._worksheet=$,this._workbook=U.workbook,this._sheetRelsWriter=I}get commentsStream(){if(!this._commentsStream)this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`);return this._commentsStream}get vmlStream(){if(!this._vmlStream)this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`);return this._vmlStream}_addRelationships(){let $={Type:y20.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship($);let I={Type:y20.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(I)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('Author'),this.vmlStream.write('')}_writeComment($,I){let U=new F31,Y=new g20;U.render(Y,$),this.commentsStream.write(Y.xml);let J=new N31,Q=new g20;J.render(Q,$,I),this.vmlStream.write(Q.xml)}_writeClose(){this.commentsStream.write(""),this.vmlStream.write("")}addComments($){if($&&$.length){if(!this.startedData)this._worksheet.comments=[],this._writeOpen(),this._addRelationships(),this._addCommentRefs(),this.startedData=!0;$.forEach((I)=>{I.refAddress=O31.decodeAddress(I.ref)}),$.forEach((I)=>{this._writeComment(I,this.count),this.count+=1})}}commit(){if(this.count)this._writeClose(),this.commentsStream.end(),this.vmlStream.end()}}u20.exports=h20});var p20=O((Sj1,n20)=>{var M31=X4(),A31=n9(),wg=W4(),k20=QB(),f20=Z5(),P31=NR(),b20=YV(),Vg=QV(),T31=S20(),E31=x20(),B31=YB(),p4=new P31,Zg=f9(),v31=Xj(),R31=Lj(),j31=Dj(),C31=wj(),_31=Gj(),S31=Vj(),g31=Oj(),y31=Fj(),h31=Nj(),u31=Mj(),x31=Aj(),k31=Pj(),f31=Rj(),b31=Ej(),i31=Tj(),c4={dataValidations:new v31,sheetProperties:new R31,sheetFormatProperties:new j31,columns:new Zg({tag:"cols",length:!1,childXform:new C31}),row:new _31,hyperlinks:new Zg({tag:"hyperlinks",length:!1,childXform:new S31}),sheetViews:new Zg({tag:"sheetViews",length:!1,childXform:new g31}),sheetProtection:new y31,pageMargins:new h31,pageSeteup:new u31,autoFilter:new x31,picture:new k31,conditionalFormattings:new f31,headerFooter:new b31,rowBreaks:new i31};class i20{constructor($){this.id=$.id,this.name=$.name||`Sheet${this.id}`,this.state=$.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges=[],this._merges.add=function(){},this._sheetRelsWriter=new T31($),this._sheetCommentsWriter=new E31(this,this._sheetRelsWriter,$),this._dimensions=new f20,this._rowZero=1,this.committed=!1,this.dataValidations=new B31,this._formulae={},this._siFormulae=0,this.conditionalFormatting=[],this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},$.properties),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},$.headerFooter),this.pageSetup=Object.assign({},{margins:{left:0.7,right:0.7,top:0.75,bottom:0.75,header:0.3,footer:0.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!($.pageSetup&&($.pageSetup.fitToWidth||$.pageSetup.fitToHeight)&&!$.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},$.pageSetup),this.useSharedStrings=$.useSharedStrings||!1,this._workbook=$.workbook,this.hasComments=!1,this._views=$.views||[],this.autoFilter=$.autoFilter||null,this._media=[],this.sheetProtection=null,this._writeOpenWorksheet(),this.startedData=!1}get workbook(){return this._workbook}get stream(){if(!this._stream)this._stream=this._workbook._openStream(`/xl/worksheets/sheet${this.id}.xml`),this._stream.pause();return this._stream}destroy(){throw Error("Invalid Operation: destroy")}commit(){if(this.committed)return;if(this._rows.forEach(($)=>{if($)this._writeRow($)}),this._rows=null,!this.startedData)this._writeOpenSheetData();this._writeCloseSheetData(),this._writeAutoFilter(),this._writeMergeCells(),this._writeHyperlinks(),this._writeConditionalFormatting(),this._writeDataValidations(),this._writeSheetProtection(),this._writePageMargins(),this._writePageSetup(),this._writeBackground(),this._writeHeaderFooter(),this._writeRowBreaks(),this._writeLegacyData(),this._writeCloseWorksheet(),this.stream.end(),this._sheetCommentsWriter.commit(),this._sheetRelsWriter.commit(),this.committed=!0}get dimensions(){return this._dimensions}get views(){return this._views}get columns(){return this._columns}set columns($){this._headerRowCount=$.reduce((Y,J)=>{let Q=J.header&&1||J.headers&&J.headers.length||0;return Math.max(Y,Q)},0);let I=1,U=this._columns=[];$.forEach((Y)=>{let J=new Vg(this,I++,!1);U.push(J),J.defn=Y})}getColumnKey($){return this._keys[$]}setColumnKey($,I){this._keys[$]=I}deleteColumnKey($){delete this._keys[$]}eachColumnKey($){M31.each(this._keys,$)}getColumn($){if(typeof $==="string"){let I=this._keys[$];if(I)return I;$=wg.l2n($)}if(!this._columns)this._columns=[];if($>this._columns.length){let I=this._columns.length+1;while(I<=$)this._columns.push(new Vg(this,I++))}return this._columns[$-1]}get _nextRow(){return this._rowZero+this._rows.length}eachRow($,I){if(!I)I=$,$=void 0;if($&&$.includeEmpty){let U=this._nextRow;for(let Y=this._rowZero;Y{if(U.hasValues)I(U,U.number)})}_commitRow($){let I=!1;while(this._rows.length&&!I){let U=this._rows.shift();if(this._rowZero++,U)this._writeRow(U),I=U.number===$.number,this._rowZero=U.number+1}}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1];return}findRow($){let I=$-this._rowZero;return this._rows[I]}getRow($){let I=$-this._rowZero;if(I<0)throw Error("Out of bounds: this row has been committed");let U=this._rows[I];if(!U)this._rows[I]=U=new b20(this,$);return U}addRow($){let I=new b20(this,this._nextRow);return this._rows[I.number-this._rowZero]=I,I.values=$,I}findCell($,I){let U=wg.getAddress($,I),Y=this.findRow(U.row);return Y?Y.findCell(U.column):void 0}getCell($,I){let U=wg.getAddress($,I);return this.getRow(U.row).getCellEx(U)}mergeCells(...$){let I=new f20($);this._merges.forEach((Y)=>{if(Y.intersects(I))throw Error("Cannot merge already merged cells")});let U=this.getCell(I.top,I.left);for(let Y=I.top;Y<=I.bottom;Y++)for(let J=I.left;J<=I.right;J++)if(Y>I.top||J>I.left)this.getCell(Y,J).merge(U);this._merges.push(I)}addConditionalFormatting($){this.conditionalFormatting.push($)}removeConditionalFormatting($){if(typeof $==="number")this.conditionalFormatting.splice($,1);else if($ instanceof Function)this.conditionalFormatting=this.conditionalFormatting.filter($);else this.conditionalFormatting=[]}addBackgroundImage($){this._background={imageId:$}}getBackgroundImageId(){return this._background&&this._background.imageId}protect($,I){return new Promise((U)=>{if(this.sheetProtection={sheet:!0},I&&"spinCount"in I)I.spinCount=Number.isFinite(I.spinCount)?Math.round(Math.max(0,I.spinCount)):1e5;if($)this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=k20.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=I&&"spinCount"in I?I.spinCount:1e5,this.sheetProtection.hashValue=k20.convertPasswordToHash($,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount);if(I){if(this.sheetProtection=Object.assign(this.sheetProtection,I),!$&&"spinCount"in I)delete this.sheetProtection.spinCount}U()})}unprotect(){this.sheetProtection=null}_write($){p4.reset(),p4.addText($),this.stream.write(p4)}_writeSheetProperties($,I,U){let Y={outlineProperties:I&&I.outlineProperties,tabColor:I&&I.tabColor,pageSetup:U&&U.fitToPage?{fitToPage:U.fitToPage}:void 0};$.addText(c4.sheetProperties.toXml(Y))}_writeSheetFormatProperties($,I){let U=I?{defaultRowHeight:I.defaultRowHeight,dyDescent:I.dyDescent,outlineLevelCol:I.outlineLevelCol,outlineLevelRow:I.outlineLevelRow}:void 0;if(I.defaultColWidth)U.defaultColWidth=I.defaultColWidth;$.addText(c4.sheetFormatProperties.toXml(U))}_writeOpenWorksheet(){p4.reset(),p4.addText(''),p4.addText(''),this._writeSheetProperties(p4,this.properties,this.pageSetup),p4.addText(c4.sheetViews.toXml(this.views)),this._writeSheetFormatProperties(p4,this.properties),this.stream.write(p4)}_writeColumns(){let $=Vg.toModel(this.columns);if($)c4.columns.prepare($,{styles:this._workbook.styles}),this.stream.write(c4.columns.toXml($))}_writeOpenSheetData(){this._write("")}_writeRow($){if(!this.startedData)this._writeColumns(),this._writeOpenSheetData(),this.startedData=!0;if($.hasValues||$.height){let{model:I}=$,U={styles:this._workbook.styles,sharedStrings:this.useSharedStrings?this._workbook.sharedStrings:void 0,hyperlinks:this._sheetRelsWriter.hyperlinksProxy,merges:this._merges,formulae:this._formulae,siFormulae:this._siFormulae,comments:[]};if(c4.row.prepare(I,U),this.stream.write(c4.row.toXml(I)),U.comments.length)this.hasComments=!0,this._sheetCommentsWriter.addComments(U.comments)}}_writeCloseSheetData(){this._write("")}_writeMergeCells(){if(this._merges.length)p4.reset(),p4.addText(``),this._merges.forEach(($)=>{p4.addText(``)}),p4.addText(""),this.stream.write(p4)}_writeHyperlinks(){this.stream.write(c4.hyperlinks.toXml(this._sheetRelsWriter._hyperlinks))}_writeConditionalFormatting(){let $={styles:this._workbook.styles};c4.conditionalFormattings.prepare(this.conditionalFormatting,$),this.stream.write(c4.conditionalFormattings.toXml(this.conditionalFormatting))}_writeRowBreaks(){this.stream.write(c4.rowBreaks.toXml(this.rowBreaks))}_writeDataValidations(){this.stream.write(c4.dataValidations.toXml(this.dataValidations.model))}_writeSheetProtection(){this.stream.write(c4.sheetProtection.toXml(this.sheetProtection))}_writePageMargins(){this.stream.write(c4.pageMargins.toXml(this.pageSetup.margins))}_writePageSetup(){this.stream.write(c4.pageSeteup.toXml(this.pageSetup))}_writeHeaderFooter(){this.stream.write(c4.headerFooter.toXml(this.headerFooter))}_writeAutoFilter(){this.stream.write(c4.autoFilter.toXml(this.autoFilter))}_writeBackground(){if(this._background){if(this._background.imageId!==void 0){let $=this._workbook.getImage(this._background.imageId),I=this._sheetRelsWriter.addMedia({Target:`../media/${$.name}`,Type:A31.Image});this._background={...this._background,rId:I}}this.stream.write(c4.picture.toXml({rId:this._background.rId}))}}_writeLegacyData(){if(this.hasComments)p4.reset(),p4.addText(``),this.stream.write(p4)}_writeDimensions(){}_writeCloseWorksheet(){this._write("")}}n20.exports=i20});var r20=O((gj1,o20)=>{var n31=t("fs"),p31=E20(),c20=NK(),i3=n9(),d20=uZ(),c31=R20(),d31=qB(),m31=Uj(),m20=bZ(),l31=Jj(),o31=Qj(),r31=nZ(),t31=Yj(),a31=p20(),s31=cj();class l20{constructor($){if($=$||{},this.created=$.created||new Date,this.modified=$.modified||this.created,this.creator=$.creator||"ExcelJS",this.lastModifiedBy=$.lastModifiedBy||"ExcelJS",this.lastPrinted=$.lastPrinted,this.useSharedStrings=$.useSharedStrings||!1,this.sharedStrings=new c31,this.styles=$.useStyles?new d20(!0):new d20.Mock(!0),this._definedNames=new d31,this._worksheets=[],this.views=[],this.zipOptions=$.zip,this.media=[],this.commentRefs=[],this.zip=p31("zip",this.zipOptions),$.stream)this.stream=$.stream;else if($.filename)this.stream=n31.createWriteStream($.filename);else this.stream=new c20;this.zip.pipe(this.stream),this.promise=Promise.all([this.addThemes(),this.addOfficeRels()])}get definedNames(){return this._definedNames}_openStream($){let I=new c20({bufSize:65536,batch:!0});return this.zip.append(I,{name:$}),I.on("finish",()=>{I.emit("zipped")}),I}_commitWorksheets(){let $=function(U){if(!U.committed)return new Promise((Y)=>{U.stream.on("zipped",()=>{Y()}),U.commit()});return Promise.resolve()},I=this._worksheets.map($);if(I.length)return Promise.all(I);return Promise.resolve()}async commit(){return await this.promise,await this.addMedia(),await this._commitWorksheets(),await Promise.all([this.addContentTypes(),this.addApp(),this.addCore(),this.addSharedStrings(),this.addStyles(),this.addWorkbookRels()]),await this.addWorkbook(),this._finalize()}get nextId(){let $;for($=1;$!0);if(typeof $==="number")return this._worksheets[$];if(typeof $==="string")return this._worksheets.find((I)=>I&&I.name===$);return}addStyles(){return new Promise(($)=>{this.zip.append(this.styles.xml,{name:"xl/styles.xml"}),$()})}addThemes(){return new Promise(($)=>{this.zip.append(s31,{name:"xl/theme/theme1.xml"}),$()})}addOfficeRels(){return new Promise(($)=>{let U=new m20().toXml([{Id:"rId1",Type:i3.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:i3.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:i3.ExtenderProperties,Target:"docProps/app.xml"}]);this.zip.append(U,{name:"/_rels/.rels"}),$()})}addContentTypes(){return new Promise(($)=>{let I={worksheets:this._worksheets.filter(Boolean),sharedStrings:this.sharedStrings,commentRefs:this.commentRefs,media:this.media},Y=new l31().toXml(I);this.zip.append(Y,{name:"[Content_Types].xml"}),$()})}addMedia(){return Promise.all(this.media.map(($)=>{if($.type==="image"){let I=`xl/media/${$.name}`;if($.filename)return this.zip.file($.filename,{name:I});if($.buffer)return this.zip.append($.buffer,{name:I});if($.base64){let U=$.base64,Y=U.substring(U.indexOf(",")+1);return this.zip.append(Y,{name:I,base64:!0})}}throw Error("Unsupported media")}))}addApp(){return new Promise(($)=>{let I={worksheets:this._worksheets.filter(Boolean)},Y=new o31().toXml(I);this.zip.append(Y,{name:"docProps/app.xml"}),$()})}addCore(){return new Promise(($)=>{let U=new m31().toXml(this);this.zip.append(U,{name:"docProps/core.xml"}),$()})}addSharedStrings(){if(this.sharedStrings.count)return new Promise(($)=>{let U=new t31().toXml(this.sharedStrings);this.zip.append(U,{name:"/xl/sharedStrings.xml"}),$()});return Promise.resolve()}addWorkbookRels(){let $=1,I=[{Id:`rId${$++}`,Type:i3.Styles,Target:"styles.xml"},{Id:`rId${$++}`,Type:i3.Theme,Target:"theme/theme1.xml"}];if(this.sharedStrings.count)I.push({Id:`rId${$++}`,Type:i3.SharedStrings,Target:"sharedStrings.xml"});return this._worksheets.forEach((U)=>{if(U)U.rId=`rId${$++}`,I.push({Id:U.rId,Type:i3.Worksheet,Target:`worksheets/sheet${U.id}.xml`})}),new Promise((U)=>{let J=new m20().toXml(I);this.zip.append(J,{name:"/xl/_rels/workbook.xml.rels"}),U()})}addWorkbook(){let{zip:$}=this,I={worksheets:this._worksheets.filter(Boolean),definedNames:this._definedNames.model,views:this.views,properties:{},calcProperties:{}};return new Promise((U)=>{let Y=new r31;Y.prepare(I),$.append(Y.toXml(I),{name:"/xl/workbook.xml"}),U()})}_finalize(){return new Promise(($,I)=>{this.stream.on("error",I),this.stream.on("finish",()=>{$(this)}),this.zip.on("error",I),this.zip.finalize()})}}o20.exports=l20});var a20=O((yj1,t20)=>{var zg=t("events").listenerCount;zg=zg||function($,I){var U=$&&$._events&&$._events[I];if(Array.isArray(U))return U.length;else if(typeof U==="function")return 1;else return 0};t20.exports=zg});var e20=O((hj1,s20)=>{s20.exports=function(I){var U=process&&process.version?process.version:"v5.0.0",Y=U.split(".")[0].replace("v","");return Y<6?new Buffer(I):Buffer.from(I)}});var IK0=O(()=>{var Mq=e20();if(!Buffer.prototype.indexOf)Buffer.prototype.indexOf=function($,I){if(I=I||0,typeof $==="string"||$ instanceof String)$=Mq($);else if(typeof $==="number"||$ instanceof Number)$=Mq([$]);var U=$.length;for(var Y=I;Y<=this.length-U;Y++){var J=!1;for(var Q=0;Q=0;Y--){var J=!1;for(var Q=0;Q{JK0.exports=A6;function A6($){if(!(this instanceof A6))return new A6($);this.value=$}A6.prototype.get=function($){var I=this.value;for(var U=0;U<$.length;U++){var Y=$[U];if(!Object.hasOwnProperty.call(I,Y)){I=void 0;break}I=I[Y]}return I};A6.prototype.set=function($,I){var U=this.value;for(var Y=0;Y<$.length-1;Y++){var J=$[Y];if(!Object.hasOwnProperty.call(U,J))U[J]={};U=U[J]}return U[$[Y]]=I,I};A6.prototype.map=function($){return UK0(this.value,$,!0)};A6.prototype.forEach=function($){return this.value=UK0(this.value,$,!1),this.value};A6.prototype.reduce=function($,I){var U=arguments.length===1,Y=U?this.value:I;return this.forEach(function(J){if(!this.isRoot||!U)Y=$.call(this,Y,J)}),Y};A6.prototype.deepEqual=function($){if(arguments.length!==1)throw Error("deepEqual requires exactly one object to compare against");var I=!0,U=$;return this.forEach(function(Y){var J=function(){I=!1;return}.bind(this);if(!this.isRoot){if(typeof U!=="object")return J();U=U[this.key]}var Q=U;this.post(function(){U=Q});var K=function(w){return Object.prototype.toString.call(w)};if(this.circular){if(A6($).get(this.circular.path)!==Q)J()}else if(typeof Q!==typeof Y)J();else if(Q===null||Y===null||Q===void 0||Y===void 0){if(Q!==Y)J()}else if(Q.__proto__!==Y.__proto__)J();else if(Q===Y);else if(typeof Q==="function"){if(Q instanceof RegExp){if(Q.toString()!=Y.toString())J()}else if(Q!==Y)J()}else if(typeof Q==="object")if(K(Y)==="[object Arguments]"||K(Q)==="[object Arguments]"){if(K(Q)!==K(Y))J()}else if(Q instanceof Date||Y instanceof Date){if(!(Q instanceof Date)||!(Y instanceof Date)||Q.getTime()!==Y.getTime())J()}else{var q=Object.keys(Q),H=Object.keys(Y);if(q.length!==H.length)return J();for(var G=0;G{var e31=QK0(),$I1=t("events").EventEmitter;KK0.exports=eY;function eY($){var I=eY.saw($,{}),U=$.call(I.handlers,I);if(U!==void 0)I.handlers=U;return I.record(),I.chain()}eY.light=function(I){var U=eY.saw(I,{}),Y=I.call(U.handlers,U);if(Y!==void 0)U.handlers=Y;return U.chain()};eY.saw=function($,I){var U=new $I1;return U.handlers=I,U.actions=[],U.chain=function(){var Y=e31(U.handlers).map(function(J){if(this.isRoot)return J;var Q=this.path;if(typeof J==="function")this.update(function(){return U.actions.push({path:Q,args:[].slice.call(arguments)}),Y})});return process.nextTick(function(){U.emit("begin"),U.next()}),Y},U.pop=function(){return U.actions.shift()},U.next=function(){var Y=U.pop();if(!Y)U.emit("end");else if(!Y.trap){var J=U.handlers;Y.path.forEach(function(Q){J=J[Q]}),J.apply(U.handlers,Y.args)}},U.nest=function(Y){var J=[].slice.call(arguments,1),Q=!0;if(typeof Y==="boolean"){var Q=Y;Y=J.shift()}var K=eY.saw($,{}),q=$.call(K.handlers,K);if(q!==void 0)K.handlers=q;if(typeof U.step<"u")K.record();if(Y.apply(K.chain(),J),Q!==!1)K.on("end",U.next)},U.record=function(){II1(U)},["trap","down","jump"].forEach(function(Y){U[Y]=function(){throw Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),U};function II1($){$.step=0,$.pop=function(){return $.actions[$.step++]},$.trap=function(I,U){var Y=Array.isArray(I)?I:[I];$.actions.push({path:Y,step:$.step,cb:U,trap:!0})},$.down=function(I){var U=(Array.isArray(I)?I:[I]).join("/"),Y=$.actions.slice($.step).map(function(Q){if(Q.trap&&Q.step<=$.step)return!1;return Q.path.join("/")==U}).indexOf(!0);if(Y>=0)$.step+=Y;else $.step=$.actions.length;var J=$.actions[$.step-1];if(J&&J.trap)$.step=J.step,J.cb();else $.next()},$.jump=function(I){$.step=I,$.next()}}});var GK0=O((bj1,HK0)=>{HK0.exports=u6;function u6($){if(!(this instanceof u6))return new u6($);this.buffers=$||[],this.length=this.buffers.reduce(function(I,U){return I+U.length},0)}u6.prototype.push=function(){for(var $=0;$=0?$:this.length-$,J=[].slice.call(arguments,2);if(I===void 0)I=this.length-Y;else if(I>this.length-Y)I=this.length-Y;for(var $=0;$0){var G=Y-q;if(G+I0){var V=J.slice();V.unshift(w),V.push(Z),U.splice.apply(U,[H,1].concat(V)),H+=V.length,J=[]}else U.splice(H,1,w,Z),H+=2}else Q.push(U[H].slice(G)),U[H]=U[H].slice(0,G),H++}if(J.length>0)U.splice.apply(U,[H,0].concat(J)),H+=J.length;while(Q.lengththis.length)I=this.length;var Y=0;for(var J=0;J=I-$?Math.min(G+(I-$)-K,H):H;U[q].copy(Q,K,G,W),K+=W-G}return Q};u6.prototype.pos=function($){if($<0||$>=this.length)throw Error("oob");var I=$,U=0,Y=null;for(;;){if(Y=this.buffers[U],I=this.buffers[U].length)if(Y=0,U++,U>=this.buffers.length)return-1;var H=this.buffers[U][Y];if(H==$[J]){if(J==0)Q={i:U,j:Y,pos:K};if(J++,J==$.length)return Q.pos}else if(J!=0)U=Q.i,Y=Q.j,K=Q.pos,J=0;Y++,K++}};u6.prototype.toBuffer=function(){return this.slice()};u6.prototype.toString=function($,I,U){return this.slice(I,U).toString($)}});var wK0=O((ij1,WK0)=>{WK0.exports=function($){function I(Y,J){var Q=U.store,K=Y.split(".");K.slice(0,-1).forEach(function(H){if(Q[H]===void 0)Q[H]={};Q=Q[H]});var q=K[K.length-1];if(arguments.length==1)return Q[q];else return Q[q]=J}var U={get:function(Y){return I(Y)},set:function(Y,J){return I(Y,J)},store:$||{}};return U}});var Aq=O((n3,LK0)=>{var UI1=qK0(),VK0=t("events").EventEmitter,YI1=GK0(),cX=wK0(),JI1=t("stream").Stream;n3=LK0.exports=function($,I){if(Buffer.isBuffer($))return n3.parse($);var U=n3.stream();if($&&$.pipe)$.pipe(U);else if($)$.on(I||"data",function(Y){U.write(Y)}),$.on("end",function(){U.end()});return U};n3.stream=function($){if($)return n3.apply(null,arguments);var I=null;function U(w,Z,V){I={bytes:w,skip:V,cb:function(X){I=null,Z(X)}},J()}var Y=null;function J(){if(!I){if(W)G=!0;return}if(typeof I==="function")I();else{var w=Y+I.bytes;if(q.length>=w){var Z;if(Y==null){if(Z=q.splice(0,w),!I.skip)Z=Z.slice()}else{if(!I.skip)Z=q.slice(Y,w);Y=w}if(I.skip)I.cb();else I.cb(Z)}}}function Q(w){function Z(){if(!G)w.next()}var V=XK0(function(X,L){return function(D){U(X,function(F){H.set(D,L(F)),Z()})}});return V.tap=function(X){w.nest(X,H.store)},V.into=function(X,L){if(!H.get(X))H.set(X,{});var D=H;H=cX(D.get(X)),w.nest(function(){L.apply(this,arguments),this.tap(function(){H=D})},H.store)},V.flush=function(){H.store={},Z()},V.loop=function(X){var L=!1;w.nest(!1,function D(){this.vars=H.store,X.call(this,function(){L=!0,Z()},H.store),this.tap(function(){if(L)w.next();else D.call(this)}.bind(this))},H.store)},V.buffer=function(X,L){if(typeof L==="string")L=H.get(L);U(L,function(D){H.set(X,D),Z()})},V.skip=function(X){if(typeof X==="string")X=H.get(X);U(X,function(){Z()})},V.scan=function(L,D){if(typeof D==="string")D=new Buffer(D);else if(!Buffer.isBuffer(D))throw Error("search must be a Buffer or a string");var F=0;I=function(){var P=q.indexOf(D,Y+F),E=P-Y-F;if(P!==-1){if(I=null,Y!=null)H.set(L,q.slice(Y,Y+F+E)),Y+=F+E+D.length;else H.set(L,q.slice(0,F+E)),q.splice(0,F+E+D.length);Z(),J()}else E=Math.max(q.length-D.length-Y-F,0);F+=E},J()},V.peek=function(X){Y=0,w.nest(function(){X.call(this,H.store),this.tap(function(){Y=null})})},V}var K=UI1.light(Q);K.writable=!0;var q=YI1();K.write=function(w){q.push(w),J()};var H=cX(),G=!1,W=!1;return K.end=function(){W=!0},K.pipe=JI1.prototype.pipe,Object.getOwnPropertyNames(VK0.prototype).forEach(function(w){K[w]=VK0.prototype[w]}),K};n3.parse=function(I){var U=XK0(function(Q,K){return function(q){if(Y+Q<=I.length){var H=I.slice(Y,Y+Q);Y+=Q,J.set(q,K(H))}else J.set(q,null);return U}}),Y=0,J=cX();return U.vars=J.store,U.tap=function(Q){return Q.call(U,J.store),U},U.into=function(Q,K){if(!J.get(Q))J.set(Q,{});var q=J;return J=cX(q.get(Q)),K.call(U,J.store),J=q,U},U.loop=function(Q){var K=!1,q=function(){K=!0};while(K===!1)Q.call(U,q,J.store);return U},U.buffer=function(Q,K){if(typeof K==="string")K=J.get(K);var q=I.slice(Y,Math.min(I.length,Y+K));return Y+=K,J.set(Q,q),U},U.skip=function(Q){if(typeof Q==="string")Q=J.get(Q);return Y+=Q,U},U.scan=function(Q,K){if(typeof K==="string")K=new Buffer(K);else if(!Buffer.isBuffer(K))throw Error("search must be a Buffer or a string");J.set(Q,null);for(var q=0;q+Y<=I.length-K.length+1;q++){for(var H=0;H=I.length},U};function ZK0($){var I=0;for(var U=0;U<$.length;U++)I+=Math.pow(256,U)*$[U];return I}function zK0($){var I=0;for(var U=0;U<$.length;U++)I+=Math.pow(256,$.length-U-1)*$[U];return I}function QI1($){var I=zK0($);if(($[0]&128)==128)I-=Math.pow(256,$.length);return I}function KI1($){var I=ZK0($);if(($[$.length-1]&128)==128)I-=Math.pow(256,$.length);return I}function XK0($){var I={};return[1,2,4,8].forEach(function(U){var Y=U*8;I["word"+Y+"le"]=I["word"+Y+"lu"]=$(U,ZK0),I["word"+Y+"ls"]=$(U,KI1),I["word"+Y+"be"]=I["word"+Y+"bu"]=$(U,zK0),I["word"+Y+"bs"]=$(U,QI1)}),I.word8=I.word8u=I.word8be,I.word8s=I.word8bs,I}});var p3=O((nj1,Tg)=>{var Xg=function(){return this===void 0}();if(Xg)Tg.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:Xg,propertyIsWritable:function($,I){var U=Object.getOwnPropertyDescriptor($,I);return!!(!U||U.writable||U.set)}};else Lg={}.hasOwnProperty,Dg={}.toString,Og={}.constructor.prototype,dX=function($){var I=[];for(var U in $)if(Lg.call($,U))I.push(U);return I},Fg=function($,I){return{value:$[I]}},Ng=function($,I,U){return $[I]=U.value,$},Mg=function($){return $},Ag=function($){try{return Object($).constructor.prototype}catch(I){return Og}},Pg=function($){try{return Dg.call($)==="[object Array]"}catch(I){return!1}},Tg.exports={isArray:Pg,keys:dX,names:dX,defineProperty:Ng,getDescriptor:Fg,freeze:Mg,getPrototypeOf:Ag,isES5:Xg,propertyIsWritable:function(){return!0}};var Lg,Dg,Og,dX,Fg,Ng,Mg,Ag,Pg});var d1=O((lX,Cg)=>{var e6=p3(),qI1=typeof navigator>"u",Eg={e:{}},Bg,HI1=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:lX!==void 0?lX:null;function GI1(){try{var $=Bg;return Bg=null,$.apply(this,arguments)}catch(I){return Eg.e=I,Eg}}function WI1($){return Bg=$,GI1}var wI1=function($,I){var U={}.hasOwnProperty;function Y(){this.constructor=$,this.constructor$=I;for(var J in I.prototype)if(U.call(I.prototype,J)&&J.charAt(J.length-1)!=="$")this[J+"$"]=I.prototype[J]}return Y.prototype=I.prototype,$.prototype=new Y,$.prototype};function jg($){return $==null||$===!0||$===!1||typeof $==="string"||typeof $==="number"}function VI1($){return typeof $==="function"||typeof $==="object"&&$!==null}function ZI1($){if(!jg($))return $;return Error(mX($))}function zI1($,I){var U=$.length,Y=Array(U+1),J;for(J=0;J1,Y=I.length>0&&!(I.length===1&&I[0]==="constructor"),J=OI1.test($+"")&&e6.names($).length>0;if(U||Y||J)return!0}return!1}catch(Q){return!1}}function NI1(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var l=8;while(l--)new FakeConstructor;return obj}var MI1=/^[a-z$_][a-z$_0-9]*$/i;function AI1($){return MI1.test($)}function PI1($,I,U){var Y=Array($);for(var J=0;J<$;++J)Y[J]=I+J+U;return Y}function mX($){try{return $+""}catch(I){return"[no string representation]"}}function OK0($){return $!==null&&typeof $==="object"&&typeof $.message==="string"&&typeof $.name==="string"}function TI1($){try{DK0($,"isOperational",!0)}catch(I){}}function EI1($){if($==null)return!1;return $ instanceof Error.__BluebirdErrorTypes__.OperationalError||$.isOperational===!0}function vg($){return OK0($)&&e6.propertyIsWritable($,"stack")}var BI1=function(){if(!("stack"in Error()))return function($){if(vg($))return $;try{throw Error(mX($))}catch(I){return I}};else return function($){if(vg($))return $;return Error(mX($))}}();function FK0($){return{}.toString.call($)}function vI1($,I,U){var Y=e6.names($);for(var J=0;J10||$[0]>0}();if($J.isNode)$J.toFastProperties(process);try{throw Error()}catch($){$J.lastLineError=$}Cg.exports=$J});var PK0=O((pj1,AK0)=>{var Sg=d1(),c3,SI1=function(){throw Error(`No async scheduler available +See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof u4))return new u4($,I);if(E91(this,$,I),this.noprocess)return this;var U=this.minimatch.set.length;this.matches=Array(U);for(var Y=0;Ythis.maxLength)return!1;if(!this.stat&&jS(this.cache,I)){var K=this.cache[I];if(Array.isArray(K))K="DIR";if(!U||K==="DIR")return K;if(U&&K==="FILE")return!1}var Y,J=this.statCache[I];if(!J){var Q;try{Q=this.fs.lstatSync(I)}catch(q){if(q&&(q.code==="ENOENT"||q.code==="ENOTDIR"))return this.statCache[I]=!1,!1}if(Q&&Q.isSymbolicLink())try{J=this.fs.statSync(I)}catch(q){J=Q}else J=Q}this.statCache[I]=J;var K=!0;if(J)K=J.isDirectory()?"DIR":"FILE";if(this.cache[I]=this.cache[I]||K,U&&K==="FILE")return!1;return K};u4.prototype._mark=function($){return u3.mark(this,$)};u4.prototype._makeAbs=function($){return u3.makeAbs(this,$)}});var CS=O((bR1,_J0)=>{_J0.exports=CJ0;function CJ0($,I){if($&&I)return CJ0($)(I);if(typeof $!=="function")throw TypeError("need wrapper function");return Object.keys($).forEach(function(Y){U[Y]=$[Y]}),U;function U(){var Y=Array(arguments.length);for(var J=0;J{var SJ0=CS();_S.exports=SJ0(yX);_S.exports.strict=SJ0(gJ0);yX.proto=yX(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yX(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return gJ0(this)},configurable:!0})});function yX($){var I=function(){if(I.called)return I.value;return I.called=!0,I.value=$.apply(this,arguments)};return I.called=!1,I}function gJ0($){var I=function(){if(I.called)throw Error(I.onceError);return I.called=!0,I.value=$.apply(this,arguments)},U=$.name||"Function wrapped with `once`";return I.onceError=U+" shouldn't be called more than once",I.called=!1,I}});var hJ0=O((pR1,yJ0)=>{var R91=CS(),Zq=Object.create(null),j91=hX();yJ0.exports=R91(C91);function C91($,I){if(Zq[$])return Zq[$].push(I),null;else return Zq[$]=[I],_91($)}function _91($){return j91(function I(){var U=Zq[$],Y=U.length,J=S91(arguments);try{for(var Q=0;QY)U.splice(0,Y),process.nextTick(function(){I.apply(null,J)});else delete Zq[$]}})}function S91($){var I=$.length,U=[];for(var Y=0;Y{kJ0.exports=k3;var g91=NS(),uJ0=CX(),cR1=uJ0.Minimatch,y91=d0(),h91=t("events").EventEmitter,SS=t("path"),gS=t("assert"),zq=SX(),hS=jJ0(),x3=vS(),u91=x3.setopts,yS=x3.ownProp,uS=hJ0(),dR1=t("util"),k91=x3.childrenIgnored,x91=x3.isIgnored,f91=hX();function k3($,I,U){if(typeof I==="function")U=I,I={};if(!I)I={};if(I.sync){if(U)throw TypeError("callback provided to sync glob");return hS($,I)}return new g1($,I,U)}k3.sync=hS;var i91=k3.GlobSync=hS.GlobSync;k3.glob=k3;function b91($,I){if(I===null||typeof I!=="object")return $;var U=Object.keys(I),Y=U.length;while(Y--)$[U[Y]]=I[U[Y]];return $}k3.hasMagic=function($,I){var U=b91({},I);U.noprocess=!0;var Y=new g1($,U),J=Y.minimatch.set;if(!$)return!1;if(J.length>1)return!0;for(var Q=0;Qthis.maxLength)return I();if(!this.stat&&yS(this.cache,U)){var J=this.cache[U];if(Array.isArray(J))J="DIR";if(!Y||J==="DIR")return I(null,J);if(Y&&J==="FILE")return I()}var Q,K=this.statCache[U];if(K!==void 0)if(K===!1)return I(null,K);else{var q=K.isDirectory()?"DIR":"FILE";if(Y&&q==="FILE")return I();else return I(null,q,K)}var H=this,G=uS("stat\x00"+U,W);if(G)H.fs.lstat(U,G);function W(w,Z){if(Z&&Z.isSymbolicLink())return H.fs.stat(U,function(V,X){if(V)H._stat2($,U,null,Z,I);else H._stat2($,U,V,X,I)});else H._stat2($,U,w,Z,I)}};g1.prototype._stat2=function($,I,U,Y,J){if(U&&(U.code==="ENOENT"||U.code==="ENOTDIR"))return this.statCache[I]=!1,J();var Q=$.slice(-1)==="/";if(this.statCache[I]=Y,I.slice(-1)==="/"&&Y&&!Y.isDirectory())return J(null,!1,Y);var K=!0;if(Y)K=Y.isDirectory()?"DIR":"FILE";if(this.cache[I]=this.cache[I]||K,Q&&K==="FILE")return J();return J(null,K,Y)}});var bJ0=O((lR1,iJ0)=>{var fJ0=s6(),rY=t("path"),kS=YS(),p91=GS(),c91=XS(),d91=LS(),m91=Vq(),f3=iJ0.exports={},xJ0=/[\/\\]/g,l91=function($,I){var U=[];return kS($).forEach(function(Y){var J=Y.indexOf("!")===0;if(J)Y=Y.slice(1);var Q=I(Y);if(J)U=p91(U,Q);else U=c91(U,Q)}),U};f3.exists=function(){var $=rY.join.apply(rY,arguments);return fJ0.existsSync($)};f3.expand=function(...$){var I=d91($[0])?$.shift():{},U=Array.isArray($[0])?$[0]:$;if(U.length===0)return[];var Y=l91(U,function(J){return m91.sync(J,I)});if(I.filter)Y=Y.filter(function(J){J=rY.join(I.cwd||"",J);try{if(typeof I.filter==="function")return I.filter(J);else return fJ0.statSync(J)[I.filter]()}catch(Q){return!1}});return Y};f3.expandMapping=function($,I,U){U=Object.assign({rename:function(Q,K){return rY.join(Q||"",K)}},U);var Y=[],J={};return f3.expand(U,$).forEach(function(Q){var K=Q;if(U.flatten)K=rY.basename(K);if(U.ext)K=K.replace(/(\.[^\/]*)?$/,U.ext);var q=U.rename(I,K,U);if(U.cwd)Q=rY.join(U.cwd,Q);if(q=q.replace(xJ0,"/"),Q=Q.replace(xJ0,"/"),J[q])J[q].src.push(Q);else Y.push({src:[Q],dest:q}),J[q]=Y[Y.length-1]}),Y};f3.normalizeFilesArray=function($){var I=[];if($.forEach(function(U){var Y;if("src"in U||"dest"in U)I.push(U)}),I.length===0)return[];return I=_(I).chain().forEach(function(U){if(!("src"in U)||!U.src)return;if(Array.isArray(U.src))U.src=kS(U.src);else U.src=[U.src]}).map(function(U){var Y=Object.assign({},U);if(delete Y.src,delete Y.dest,U.expand)return f3.expandMapping(U.src,U.dest,Y).map(function(Q){var K=Object.assign({},U);return K.orig=Object.assign({},U),K.src=Q.src,K.dest=Q.dest,["expand","cwd","flatten","rename","ext"].forEach(function(q){delete K[q]}),K});var J=Object.assign({},U);if(J.orig=Object.assign({},U),"src"in J)Object.defineProperty(J,"src",{enumerable:!0,get:function Q(){var K;if(!("result"in Q))K=U.src,K=Array.isArray(K)?kS(K):[K],Q.result=f3.expand(Y,K);return Q.result}});if("dest"in J)J.dest=U.dest;return J}).flatten().value(),I}});var Xq=O((rR1,cJ0)=>{var xS=s6(),nJ0=t("path"),oR1=t("util"),o91=h_(),pJ0=WX(),r91=f_(),t91=t("stream").Stream,a91=AY0().PassThrough,X$=cJ0.exports={};X$.file=bJ0();X$.collectStream=function($,I){var U=[],Y=0;$.on("error",I),$.on("data",function(J){U.push(J),Y+=J.length}),$.on("end",function(){var J=new Buffer(Y),Q=0;U.forEach(function(K){K.copy(J,Q),Q+=K.length}),I(null,J)})};X$.dateify=function($){if($=$||new Date,$ instanceof Date)$=$;else if(typeof $==="string")$=new Date($);else $=new Date;return $};X$.defaults=function($,I,U){var Y=arguments;return Y[0]=Y[0]||{},r91(...Y)};X$.isStream=function($){return $ instanceof t91};X$.lazyReadStream=function($){return new o91.Readable(function(){return xS.createReadStream($)})};X$.normalizeInputSource=function($){if($===null)return new Buffer(0);else if(typeof $==="string")return new Buffer($);else if(X$.isStream($)&&!$._readableState){var I=new a91;return $.pipe(I),I}return $};X$.sanitizePath=function($){return pJ0($,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};X$.trailingSlashIt=function($){return $.slice(-1)!=="/"?$+"/":$};X$.unixifyPath=function($){return pJ0($,!1).replace(/^\w+:/,"")};X$.walkdir=function($,I,U){var Y=[];if(typeof I==="function")U=I,I=$;xS.readdir($,function(J,Q){var K=0,q,H;if(J)return U(J);(function G(){if(q=Q[K++],!q)return U(null,Y);H=nJ0.join($,q),xS.stat(H,function(W,w){if(Y.push({path:H,relative:nJ0.relative(I,H).replace(/\\/g,"/"),stats:w}),w&&w.isDirectory())X$.walkdir(H,I,function(Z,V){V.forEach(function(X){Y.push(X)}),G()});else G()})})()})}});var oJ0=O((mJ0,lJ0)=>{var s91=t("util"),e91={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function dJ0($,I){Error.captureStackTrace(this,this.constructor),this.message=e91[$]||$,this.code=$,this.data=I}s91.inherits(dJ0,Error);mJ0=lJ0.exports=dJ0});var eJ0=O((tR1,sJ0)=>{var bS=t("fs"),tJ0=yI0(),rJ0=uI0(),fS=t("path"),b8=Xq(),$71=t("util").inherits,D4=oJ0(),aJ0=D6().Transform,iS=process.platform==="win32",T1=function($,I){if(!(this instanceof T1))return new T1($,I);if(typeof $!=="string")I=$,$="zip";I=this.options=b8.defaults(I,{highWaterMark:1048576,statConcurrency:4}),aJ0.call(this,I),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=rJ0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=rJ0.queue(this._onStatQueueTask.bind(this),I.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};$71(T1,aJ0);T1.prototype._abort=function(){if(this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle())this._shutdown()};T1.prototype._append=function($,I){I=I||{};var U={source:null,filepath:$};if(!I.name)I.name=$;if(I.sourcePath=$,U.data=I,this._entriesCount++,I.stats&&I.stats instanceof bS.Stats){if(U=this._updateQueueTaskWithStats(U,I.stats),U){if(I.stats.size)this._fsEntriesTotalBytes+=I.stats.size;this._queue.push(U)}}else this._statQueue.push(U)};T1.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0};T1.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return!1;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())return this._finalize(),!0;return!1};T1.prototype._moduleAppend=function($,I,U){if(this._state.aborted){U();return}this._module.append($,I,function(Y){if(this._task=null,this._state.aborted){this._shutdown();return}if(Y){this.emit("error",Y),setImmediate(U);return}if(this.emit("entry",I),this._entriesProcessedCount++,I.stats&&I.stats.size)this._fsEntriesProcessedBytes+=I.stats.size;this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(U)}.bind(this))};T1.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function")this._module.finalize();else if(typeof this._module.end==="function")this._module.end();else this.emit("error",new D4("NOENDMETHOD"))};T1.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};T1.prototype._moduleSupports=function($){if(!this._module.supports||!this._module.supports[$])return!1;return this._module.supports[$]};T1.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};T1.prototype._normalizeEntryData=function($,I){if($=b8.defaults($,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),I&&$.stats===!1)$.stats=I;var U=$.type==="directory";if($.name){if(typeof $.prefix==="string"&&$.prefix!=="")$.name=$.prefix+"/"+$.name,$.prefix=null;if($.name=b8.sanitizePath($.name),$.type!=="symlink"&&$.name.slice(-1)==="/")U=!0,$.type="directory";else if(U)$.name+="/"}if(typeof $.mode==="number")if(iS)$.mode&=511;else $.mode&=4095;else if($.stats&&$.mode===null){if(iS)$.mode=$.stats.mode&511;else $.mode=$.stats.mode&4095;if(iS&&U)$.mode=493}else if($.mode===null)$.mode=U?493:420;if($.stats&&$.date===null)$.date=$.stats.mtime;else $.date=b8.dateify($.date);return $};T1.prototype._onModuleError=function($){this.emit("error",$)};T1.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize()};T1.prototype._onQueueTask=function($,I){var U=()=>{if($.data.callback)$.data.callback();I()};if(this._state.finalizing||this._state.finalized||this._state.aborted){U();return}this._task=$,this._moduleAppend($.source,$.data,U)};T1.prototype._onStatQueueTask=function($,I){if(this._state.finalizing||this._state.finalized||this._state.aborted){I();return}bS.lstat($.filepath,function(U,Y){if(this._state.aborted){setImmediate(I);return}if(U){this._entriesCount--,this.emit("warning",U),setImmediate(I);return}if($=this._updateQueueTaskWithStats($,Y),$){if(Y.size)this._fsEntriesTotalBytes+=Y.size;this._queue.push($)}setImmediate(I)}.bind(this))};T1.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};T1.prototype._transform=function($,I,U){if($)this._pointer+=$.length;U(null,$)};T1.prototype._updateQueueTaskWithStats=function($,I){if(I.isFile())$.data.type="file",$.data.sourceType="stream",$.source=b8.lazyReadStream($.filepath);else if(I.isDirectory()&&this._moduleSupports("directory"))$.data.name=b8.trailingSlashIt($.data.name),$.data.type="directory",$.data.sourcePath=b8.trailingSlashIt($.filepath),$.data.sourceType="buffer",$.source=Buffer.concat([]);else if(I.isSymbolicLink()&&this._moduleSupports("symlink")){var U=bS.readlinkSync($.filepath),Y=fS.dirname($.filepath);$.data.type="symlink",$.data.linkname=fS.relative(Y,fS.resolve(Y,U)),$.data.sourceType="buffer",$.source=Buffer.concat([])}else{if(I.isDirectory())this.emit("warning",new D4("DIRECTORYNOTSUPPORTED",$.data));else if(I.isSymbolicLink())this.emit("warning",new D4("SYMLINKNOTSUPPORTED",$.data));else this.emit("warning",new D4("ENTRYNOTSUPPORTED",$.data));return null}return $.data=this._normalizeEntryData($.data,I),$};T1.prototype.abort=function(){if(this._state.aborted||this._state.finalized)return this;return this._abort(),this};T1.prototype.append=function($,I){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(I=this._normalizeEntryData(I),typeof I.name!=="string"||I.name.length===0)return this.emit("error",new D4("ENTRYNAMEREQUIRED")),this;if(I.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new D4("DIRECTORYNOTSUPPORTED",{name:I.name})),this;if($=b8.normalizeInputSource($),Buffer.isBuffer($))I.sourceType="buffer";else if(b8.isStream($))I.sourceType="stream";else return this.emit("error",new D4("INPUTSTEAMBUFFERREQUIRED",{name:I.name})),this;return this._entriesCount++,this._queue.push({data:I,source:$}),this};T1.prototype.directory=function($,I,U){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(typeof $!=="string"||$.length===0)return this.emit("error",new D4("DIRECTORYDIRPATHREQUIRED")),this;if(this._pending++,I===!1)I="";else if(typeof I!=="string")I=$;var Y=!1;if(typeof U==="function")Y=U,U={};else if(typeof U!=="object")U={};var J={stat:!0,dot:!0};function Q(){this._pending--,this._maybeFinalize()}function K(G){this.emit("error",G)}function q(G){H.pause();var W=!1,w=Object.assign({},U);w.name=G.relative,w.prefix=I,w.stats=G.stat,w.callback=H.resume.bind(H);try{if(Y){if(w=Y(w),w===!1)W=!0;else if(typeof w!=="object")throw new D4("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:$})}}catch(Z){this.emit("error",Z);return}if(W){H.resume();return}this._append(G.absolute,w)}var H=tJ0($,J);return H.on("error",K.bind(this)),H.on("match",q.bind(this)),H.on("end",Q.bind(this)),this};T1.prototype.file=function($,I){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(typeof $!=="string"||$.length===0)return this.emit("error",new D4("FILEFILEPATHREQUIRED")),this;return this._append($,I),this};T1.prototype.glob=function($,I,U){this._pending++,I=b8.defaults(I,{stat:!0,pattern:$});function Y(){this._pending--,this._maybeFinalize()}function J(q){this.emit("error",q)}function Q(q){K.pause();var H=Object.assign({},U);H.callback=K.resume.bind(K),H.stats=q.stat,H.name=q.relative,this._append(q.absolute,H)}var K=tJ0(I.cwd||".",I);return K.on("error",J.bind(this)),K.on("match",Q.bind(this)),K.on("end",Y.bind(this)),this};T1.prototype.finalize=function(){if(this._state.aborted){var $=new D4("ABORTED");return this.emit("error",$),Promise.reject($)}if(this._state.finalize){var I=new D4("FINALIZING");return this.emit("error",I),Promise.reject(I)}if(this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize();var U=this;return new Promise(function(Y,J){var Q;U._module.on("end",function(){if(!Q)Y()}),U._module.on("error",function(K){Q=!0,J(K)})})};T1.prototype.setFormat=function($){if(this._format)return this.emit("error",new D4("FORMATSET")),this;return this._format=$,this};T1.prototype.setModule=function($){if(this._state.aborted)return this.emit("error",new D4("ABORTED")),this;if(this._state.module)return this.emit("error",new D4("MODULESET")),this;return this._module=$,this._modulePipe(),this};T1.prototype.symlink=function($,I,U){if(this._state.finalize||this._state.aborted)return this.emit("error",new D4("QUEUECLOSED")),this;if(typeof $!=="string"||$.length===0)return this.emit("error",new D4("SYMLINKFILEPATHREQUIRED")),this;if(typeof I!=="string"||I.length===0)return this.emit("error",new D4("SYMLINKTARGETREQUIRED",{filepath:$})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new D4("SYMLINKNOTSUPPORTED",{filepath:$})),this;var Y={};if(Y.type="symlink",Y.name=$.replace(/\\/g,"/"),Y.linkname=I.replace(/\\/g,"/"),Y.sourceType="buffer",typeof U==="number")Y.mode=U;return this._entriesCount++,this._queue.push({data:Y,source:Buffer.concat([])}),this};T1.prototype.pointer=function(){return this._pointer};T1.prototype.use=function($){return this._streams.push($),this};sJ0.exports=T1});var kX=O((aR1,$Q0)=>{var uX=$Q0.exports=function(){};uX.prototype.getName=function(){};uX.prototype.getSize=function(){};uX.prototype.getLastModifiedDate=function(){};uX.prototype.isDirectory=function(){}});var xX=O((sR1,IQ0)=>{var x$=IQ0.exports={};x$.dateToDos=function($,I){I=I||!1;var U=I?$.getFullYear():$.getUTCFullYear();if(U<1980)return 2162688;else if(U>=2044)return 2141175677;var Y={year:U,month:I?$.getMonth():$.getUTCMonth(),date:I?$.getDate():$.getUTCDate(),hours:I?$.getHours():$.getUTCHours(),minutes:I?$.getMinutes():$.getUTCMinutes(),seconds:I?$.getSeconds():$.getUTCSeconds()};return Y.year-1980<<25|Y.month+1<<21|Y.date<<16|Y.hours<<11|Y.minutes<<5|Y.seconds/2};x$.dosToDate=function($){return new Date(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1)};x$.fromDosTime=function($){return x$.dosToDate($.readUInt32LE(0))};x$.getEightBytes=function($){var I=Buffer.alloc(8);return I.writeUInt32LE($%4294967296,0),I.writeUInt32LE($/4294967296|0,4),I};x$.getShortBytes=function($){var I=Buffer.alloc(2);return I.writeUInt16LE(($&65535)>>>0,0),I};x$.getShortBytesValue=function($,I){return $.readUInt16LE(I)};x$.getLongBytes=function($){var I=Buffer.alloc(4);return I.writeUInt32LE(($&4294967295)>>>0,0),I};x$.getLongBytesValue=function($,I){return $.readUInt32LE(I)};x$.toDosTime=function($){return x$.getLongBytes(x$.dateToDos($))}});var nS=O((eR1,qQ0)=>{var UQ0=xX(),YQ0=8,JQ0=1,I71=4,U71=2,QQ0=64,KQ0=2048,H6=qQ0.exports=function(){if(!(this instanceof H6))return new H6;return this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this};H6.prototype.encode=function(){return UQ0.getShortBytes((this.descriptor?YQ0:0)|(this.utf8?KQ0:0)|(this.encryption?JQ0:0)|(this.strongEncryption?QQ0:0))};H6.prototype.parse=function($,I){var U=UQ0.getShortBytesValue($,I),Y=new H6;return Y.useDataDescriptor((U&YQ0)!==0),Y.useUTF8ForNames((U&KQ0)!==0),Y.useStrongEncryption((U&QQ0)!==0),Y.useEncryption((U&JQ0)!==0),Y.setSlidingDictionarySize((U&U71)!==0?8192:4096),Y.setNumberOfShannonFanoTrees((U&I71)!==0?3:2),Y};H6.prototype.setNumberOfShannonFanoTrees=function($){this.numberOfShannonFanoTrees=$};H6.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};H6.prototype.setSlidingDictionarySize=function($){this.slidingDictionarySize=$};H6.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};H6.prototype.useDataDescriptor=function($){this.descriptor=$};H6.prototype.usesDataDescriptor=function(){return this.descriptor};H6.prototype.useEncryption=function($){this.encryption=$};H6.prototype.usesEncryption=function(){return this.encryption};H6.prototype.useStrongEncryption=function($){this.strongEncryption=$};H6.prototype.usesStrongEncryption=function(){return this.strongEncryption};H6.prototype.useUTF8ForNames=function($){this.utf8=$};H6.prototype.usesUTF8ForNames=function(){return this.utf8}});var GQ0=O(($j1,HQ0)=>{HQ0.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var pS=O((Ij1,WQ0)=>{WQ0.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var cS=O((Uj1,XQ0)=>{var Y71=t("util").inherits,J71=WX(),VQ0=kX(),ZQ0=nS(),wQ0=GQ0(),h6=pS(),zQ0=xX(),Q1=XQ0.exports=function($){if(!(this instanceof Q1))return new Q1($);if(VQ0.call(this),this.platform=h6.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new ZQ0,this.crc=0,this.time=-1,this.minver=h6.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,$)this.setName($)};Y71(Q1,VQ0);Q1.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};Q1.prototype.getComment=function(){return this.comment!==null?this.comment:""};Q1.prototype.getCompressedSize=function(){return this.csize};Q1.prototype.getCrc=function(){return this.crc};Q1.prototype.getExternalAttributes=function(){return this.exattr};Q1.prototype.getExtra=function(){return this.extra!==null?this.extra:h6.EMPTY};Q1.prototype.getGeneralPurposeBit=function(){return this.gpb};Q1.prototype.getInternalAttributes=function(){return this.inattr};Q1.prototype.getLastModifiedDate=function(){return this.getTime()};Q1.prototype.getLocalFileDataExtra=function(){return this.getExtra()};Q1.prototype.getMethod=function(){return this.method};Q1.prototype.getName=function(){return this.name};Q1.prototype.getPlatform=function(){return this.platform};Q1.prototype.getSize=function(){return this.size};Q1.prototype.getTime=function(){return this.time!==-1?zQ0.dosToDate(this.time):-1};Q1.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};Q1.prototype.getUnixMode=function(){return this.platform!==h6.PLATFORM_UNIX?0:this.getExternalAttributes()>>h6.SHORT_SHIFT&h6.SHORT_MASK};Q1.prototype.getVersionNeededToExtract=function(){return this.minver};Q1.prototype.setComment=function($){if(Buffer.byteLength($)!==$.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.comment=$};Q1.prototype.setCompressedSize=function($){if($<0)throw Error("invalid entry compressed size");this.csize=$};Q1.prototype.setCrc=function($){if($<0)throw Error("invalid entry crc32");this.crc=$};Q1.prototype.setExternalAttributes=function($){this.exattr=$>>>0};Q1.prototype.setExtra=function($){this.extra=$};Q1.prototype.setGeneralPurposeBit=function($){if(!($ instanceof ZQ0))throw Error("invalid entry GeneralPurposeBit");this.gpb=$};Q1.prototype.setInternalAttributes=function($){this.inattr=$};Q1.prototype.setMethod=function($){if($<0)throw Error("invalid entry compression method");this.method=$};Q1.prototype.setName=function($,I=!1){if($=J71($,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),I)$=`/${$}`;if(Buffer.byteLength($)!==$.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.name=$};Q1.prototype.setPlatform=function($){this.platform=$};Q1.prototype.setSize=function($){if($<0)throw Error("invalid entry size");this.size=$};Q1.prototype.setTime=function($,I){if(!($ instanceof Date))throw Error("invalid entry time");this.time=zQ0.dateToDos($,I)};Q1.prototype.setUnixMode=function($){$|=this.isDirectory()?h6.S_IFDIR:h6.S_IFREG;var I=0;I|=$<h6.ZIP64_MAGIC||this.size>h6.ZIP64_MAGIC}});var mS=O((Yj1,LQ0)=>{var Q71=t("stream").Stream,K71=D6().PassThrough,dS=LQ0.exports={};dS.isStream=function($){return $ instanceof Q71};dS.normalizeInputSource=function($){if($===null)return Buffer.alloc(0);else if(typeof $==="string")return Buffer.from($);else if(dS.isStream($)&&!$._readableState){var I=new K71;return $.pipe(I),I}return $}});var oS=O((Jj1,OQ0)=>{var q71=t("util").inherits,lS=D6().Transform,H71=kX(),DQ0=mS(),L$=OQ0.exports=function($){if(!(this instanceof L$))return new L$($);lS.call(this,$),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};q71(L$,lS);L$.prototype._appendBuffer=function($,I,U){};L$.prototype._appendStream=function($,I,U){};L$.prototype._emitErrorCallback=function($){if($)this.emit("error",$)};L$.prototype._finish=function($){};L$.prototype._normalizeEntry=function($){};L$.prototype._transform=function($,I,U){U(null,$)};L$.prototype.entry=function($,I,U){if(I=I||null,typeof U!=="function")U=this._emitErrorCallback.bind(this);if(!($ instanceof H71)){U(Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){U(Error("unacceptable entry after finish"));return}if(this._archive.processing){U(Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry($),this._entry=$,I=DQ0.normalizeInputSource(I),Buffer.isBuffer(I))this._appendBuffer($,I,U);else if(DQ0.isStream(I))this._appendStream($,I,U);else{this._archive.processing=!1,U(Error("input source must be valid Stream or Buffer instance"));return}return this};L$.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};L$.prototype.getBytesWritten=function(){return this.offset};L$.prototype.write=function($,I){if($)this.offset+=$.length;return lS.prototype.write.call(this,$,I)}});var sS=O((Qj1,NQ0)=>{var Y7=t("buffer").Buffer,rS=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array<"u")rS=new Int32Array(rS);function FQ0($){if(Y7.isBuffer($))return $;var I=typeof Y7.alloc==="function"&&typeof Y7.from==="function";if(typeof $==="number")return I?Y7.alloc($):new Y7($);else if(typeof $==="string")return I?Y7.from($):new Y7($);else throw Error("input must be buffer, number, or string, received "+typeof $)}function G71($){var I=FQ0(4);return I.writeInt32BE($,0),I}function tS($,I){if($=FQ0($),Y7.isBuffer(I))I=I.readUInt32BE(0);var U=~~I^-1;for(var Y=0;Y<$.length;Y++)U=rS[(U^$[Y])&255]^U>>>8;return U^-1}function aS(){return G71(tS.apply(null,arguments))}aS.signed=function(){return tS.apply(null,arguments)};aS.unsigned=function(){return tS.apply(null,arguments)>>>0};NQ0.exports=aS});var $g=O((eS)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var MQ0;(function($){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof eS==="object")$(eS);else if(typeof define==="function"&&define.amd)define(function(){var I={};return $(I),I});else $(MQ0={});else $(MQ0={})})(function($){$.version="1.2.2";function I(){var y=0,f=Array(256);for(var j=0;j!=256;++j)y=j,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,y=y&1?-306674912^y>>>1:y>>>1,f[j]=y;return typeof Int32Array<"u"?new Int32Array(f):f}var U=I();function Y(y){var f=0,j=0,p=0,n=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(p=0;p!=256;++p)n[p]=y[p];for(p=0;p!=256;++p){j=y[p];for(f=256+p;f<4096;f+=256)j=n[f]=j>>>8^y[j&255]}var S=[];for(p=1;p!=16;++p)S[p-1]=typeof Int32Array<"u"?n.subarray(p*256,p*256+256):n.slice(p*256,p*256+256);return S}var J=Y(U),Q=J[0],K=J[1],q=J[2],H=J[3],G=J[4],W=J[5],w=J[6],Z=J[7],V=J[8],X=J[9],L=J[10],D=J[11],F=J[12],P=J[13],T=J[14];function A(y,f){var j=f^-1;for(var p=0,n=y.length;p>>8^U[(j^y.charCodeAt(p++))&255];return~j}function R(y,f){var j=f^-1,p=y.length-15,n=0;for(;n>8&255]^F[y[n++]^j>>16&255]^D[y[n++]^j>>>24]^L[y[n++]]^X[y[n++]]^V[y[n++]]^Z[y[n++]]^w[y[n++]]^W[y[n++]]^G[y[n++]]^H[y[n++]]^q[y[n++]]^K[y[n++]]^Q[y[n++]]^U[y[n++]];p+=15;while(n>>8^U[(j^y[n++])&255];return~j}function x(y,f){var j=f^-1;for(var p=0,n=y.length,S=0,i=0;p>>8^U[(j^S)&255];else if(S<2048)j=j>>>8^U[(j^(192|S>>6&31))&255],j=j>>>8^U[(j^(128|S&63))&255];else if(S>=55296&&S<57344)S=(S&1023)+64,i=y.charCodeAt(p++)&1023,j=j>>>8^U[(j^(240|S>>8&7))&255],j=j>>>8^U[(j^(128|S>>2&63))&255],j=j>>>8^U[(j^(128|i>>6&15|(S&3)<<4))&255],j=j>>>8^U[(j^(128|i&63))&255];else j=j>>>8^U[(j^(224|S>>12&15))&255],j=j>>>8^U[(j^(128|S>>6&63))&255],j=j>>>8^U[(j^(128|S&63))&255];return~j}$.table=U,$.bstr=A,$.buf=R,$.str=x})});var TQ0=O((qj1,PQ0)=>{var{Transform:W71}=D6(),w71=$g();class AQ0 extends W71{constructor($){super($);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform($,I,U){if($)this.checksum=w71.buf($,this.checksum)>>>0,this.rawSize+=$.length;U(null,$)}digest($){let I=Buffer.allocUnsafe(4);return I.writeUInt32BE(this.checksum>>>0,0),$?I.toString($):I}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}PQ0.exports=AQ0});var vQ0=O((Hj1,BQ0)=>{var{DeflateRaw:V71}=t("zlib"),Z71=$g();class EQ0 extends V71{constructor($){super($);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push($,I){if($)this.compressedSize+=$.length;return super.push($,I)}_transform($,I,U){if($)this.checksum=Z71.buf($,this.checksum)>>>0,this.rawSize+=$.length;super._transform($,I,U)}digest($){let I=Buffer.allocUnsafe(4);return I.writeUInt32BE(this.checksum>>>0,0),$?I.toString($):I}hex(){return this.digest("hex").toUpperCase()}size($=!1){if($)return this.compressedSize;else return this.rawSize}}BQ0.exports=EQ0});var Ig=O((Gj1,RQ0)=>{RQ0.exports={CRC32Stream:TQ0(),DeflateCRC32Stream:vQ0()}});var _Q0=O((Zj1,CQ0)=>{var z71=t("util").inherits,X71=sS(),{CRC32Stream:L71}=Ig(),{DeflateCRC32Stream:D71}=Ig(),jQ0=oS(),Wj1=cS(),wj1=nS(),o0=pS(),Vj1=mS(),h0=xX(),n4=CQ0.exports=function($){if(!(this instanceof n4))return new n4($);$=this.options=this._defaults($),jQ0.call(this,$),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:$.forceZip64,forceLocalTime:$.forceLocalTime}};z71(n4,jQ0);n4.prototype._afterAppend=function($){if(this._entries.push($),$.getGeneralPurposeBit().usesDataDescriptor())this._writeDataDescriptor($);if(this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished)this._finish()};n4.prototype._appendBuffer=function($,I,U){if(I.length===0)$.setMethod(o0.METHOD_STORED);var Y=$.getMethod();if(Y===o0.METHOD_STORED)$.setSize(I.length),$.setCompressedSize(I.length),$.setCrc(X71.unsigned(I));if(this._writeLocalFileHeader($),Y===o0.METHOD_STORED){this.write(I),this._afterAppend($),U(null,$);return}else if(Y===o0.METHOD_DEFLATED){this._smartStream($,U).end(I);return}else{U(Error("compression method "+Y+" not implemented"));return}};n4.prototype._appendStream=function($,I,U){$.getGeneralPurposeBit().useDataDescriptor(!0),$.setVersionNeededToExtract(o0.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader($);var Y=this._smartStream($,U);I.once("error",function(J){Y.emit("error",J),Y.end()}),I.pipe(Y)};n4.prototype._defaults=function($){if(typeof $!=="object")$={};if(typeof $.zlib!=="object")$.zlib={};if(typeof $.zlib.level!=="number")$.zlib.level=o0.ZLIB_BEST_SPEED;return $.forceZip64=!!$.forceZip64,$.forceLocalTime=!!$.forceLocalTime,$};n4.prototype._finish=function(){if(this._archive.centralOffset=this.offset,this._entries.forEach(function($){this._writeCentralFileHeader($)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64())this._writeCentralDirectoryZip64();this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};n4.prototype._normalizeEntry=function($){if($.getMethod()===-1)$.setMethod(o0.METHOD_DEFLATED);if($.getMethod()===o0.METHOD_DEFLATED)$.getGeneralPurposeBit().useDataDescriptor(!0),$.setVersionNeededToExtract(o0.MIN_VERSION_DATA_DESCRIPTOR);if($.getTime()===-1)$.setTime(new Date,this._archive.forceLocalTime);$._offsets={file:0,data:0,contents:0}};n4.prototype._smartStream=function($,I){var U=$.getMethod()===o0.METHOD_DEFLATED,Y=U?new D71(this.options.zlib):new L71,J=null;function Q(){var K=Y.digest().readUInt32BE(0);$.setCrc(K),$.setSize(Y.size()),$.setCompressedSize(Y.size(!0)),this._afterAppend($),I(J,$)}return Y.once("end",Q.bind(this)),Y.once("error",function(K){J=K}),Y.pipe(this,{end:!1}),Y};n4.prototype._writeCentralDirectoryEnd=function(){var $=this._entries.length,I=this._archive.centralLength,U=this._archive.centralOffset;if(this.isZip64())$=o0.ZIP64_MAGIC_SHORT,I=o0.ZIP64_MAGIC,U=o0.ZIP64_MAGIC;this.write(h0.getLongBytes(o0.SIG_EOCD)),this.write(o0.SHORT_ZERO),this.write(o0.SHORT_ZERO),this.write(h0.getShortBytes($)),this.write(h0.getShortBytes($)),this.write(h0.getLongBytes(I)),this.write(h0.getLongBytes(U));var Y=this.getComment(),J=Buffer.byteLength(Y);this.write(h0.getShortBytes(J)),this.write(Y)};n4.prototype._writeCentralDirectoryZip64=function(){this.write(h0.getLongBytes(o0.SIG_ZIP64_EOCD)),this.write(h0.getEightBytes(44)),this.write(h0.getShortBytes(o0.MIN_VERSION_ZIP64)),this.write(h0.getShortBytes(o0.MIN_VERSION_ZIP64)),this.write(o0.LONG_ZERO),this.write(o0.LONG_ZERO),this.write(h0.getEightBytes(this._entries.length)),this.write(h0.getEightBytes(this._entries.length)),this.write(h0.getEightBytes(this._archive.centralLength)),this.write(h0.getEightBytes(this._archive.centralOffset)),this.write(h0.getLongBytes(o0.SIG_ZIP64_EOCD_LOC)),this.write(o0.LONG_ZERO),this.write(h0.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(h0.getLongBytes(1))};n4.prototype._writeCentralFileHeader=function($){var I=$.getGeneralPurposeBit(),U=$.getMethod(),Y=$._offsets,J=$.getSize(),Q=$.getCompressedSize();if($.isZip64()||Y.file>o0.ZIP64_MAGIC){J=o0.ZIP64_MAGIC,Q=o0.ZIP64_MAGIC,$.setVersionNeededToExtract(o0.MIN_VERSION_ZIP64);var K=Buffer.concat([h0.getShortBytes(o0.ZIP64_EXTRA_ID),h0.getShortBytes(24),h0.getEightBytes($.getSize()),h0.getEightBytes($.getCompressedSize()),h0.getEightBytes(Y.file)],28);$.setExtra(K)}this.write(h0.getLongBytes(o0.SIG_CFH)),this.write(h0.getShortBytes($.getPlatform()<<8|o0.VERSION_MADEBY)),this.write(h0.getShortBytes($.getVersionNeededToExtract())),this.write(I.encode()),this.write(h0.getShortBytes(U)),this.write(h0.getLongBytes($.getTimeDos())),this.write(h0.getLongBytes($.getCrc())),this.write(h0.getLongBytes(Q)),this.write(h0.getLongBytes(J));var q=$.getName(),H=$.getComment(),G=$.getCentralDirectoryExtra();if(I.usesUTF8ForNames())q=Buffer.from(q),H=Buffer.from(H);if(this.write(h0.getShortBytes(q.length)),this.write(h0.getShortBytes(G.length)),this.write(h0.getShortBytes(H.length)),this.write(o0.SHORT_ZERO),this.write(h0.getShortBytes($.getInternalAttributes())),this.write(h0.getLongBytes($.getExternalAttributes())),Y.file>o0.ZIP64_MAGIC)this.write(h0.getLongBytes(o0.ZIP64_MAGIC));else this.write(h0.getLongBytes(Y.file));this.write(q),this.write(G),this.write(H)};n4.prototype._writeDataDescriptor=function($){if(this.write(h0.getLongBytes(o0.SIG_DD)),this.write(h0.getLongBytes($.getCrc())),$.isZip64())this.write(h0.getEightBytes($.getCompressedSize())),this.write(h0.getEightBytes($.getSize()));else this.write(h0.getLongBytes($.getCompressedSize())),this.write(h0.getLongBytes($.getSize()))};n4.prototype._writeLocalFileHeader=function($){var I=$.getGeneralPurposeBit(),U=$.getMethod(),Y=$.getName(),J=$.getLocalFileDataExtra();if($.isZip64())I.useDataDescriptor(!0),$.setVersionNeededToExtract(o0.MIN_VERSION_ZIP64);if(I.usesUTF8ForNames())Y=Buffer.from(Y);if($._offsets.file=this.offset,this.write(h0.getLongBytes(o0.SIG_LFH)),this.write(h0.getShortBytes($.getVersionNeededToExtract())),this.write(I.encode()),this.write(h0.getShortBytes(U)),this.write(h0.getLongBytes($.getTimeDos())),$._offsets.data=this.offset,I.usesDataDescriptor())this.write(o0.LONG_ZERO),this.write(o0.LONG_ZERO),this.write(o0.LONG_ZERO);else this.write(h0.getLongBytes($.getCrc())),this.write(h0.getLongBytes($.getCompressedSize())),this.write(h0.getLongBytes($.getSize()));this.write(h0.getShortBytes(Y.length)),this.write(h0.getShortBytes(J.length)),this.write(Y),this.write(J),$._offsets.contents=this.offset};n4.prototype.getComment=function($){return this._archive.comment!==null?this._archive.comment:""};n4.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>o0.ZIP64_MAGIC_SHORT||this._archive.centralLength>o0.ZIP64_MAGIC||this._archive.centralOffset>o0.ZIP64_MAGIC};n4.prototype.setComment=function($){this._archive.comment=$}});var Ug=O((zj1,SQ0)=>{SQ0.exports={ArchiveEntry:kX(),ZipArchiveEntry:cS(),ArchiveOutputStream:oS(),ZipArchiveOutputStream:_Q0()}});var uQ0=O((Xj1,hQ0)=>{var yQ0=s6(),tY=t("path"),Yg=YS(),O71=GS(),F71=XS(),N71=LS(),M71=Vq(),i3=hQ0.exports={},gQ0=/[\/\\]/g,A71=function($,I){var U=[];return Yg($).forEach(function(Y){var J=Y.indexOf("!")===0;if(J)Y=Y.slice(1);var Q=I(Y);if(J)U=O71(U,Q);else U=F71(U,Q)}),U};i3.exists=function(){var $=tY.join.apply(tY,arguments);return yQ0.existsSync($)};i3.expand=function(...$){var I=N71($[0])?$.shift():{},U=Array.isArray($[0])?$[0]:$;if(U.length===0)return[];var Y=A71(U,function(J){return M71.sync(J,I)});if(I.filter)Y=Y.filter(function(J){J=tY.join(I.cwd||"",J);try{if(typeof I.filter==="function")return I.filter(J);else return yQ0.statSync(J)[I.filter]()}catch(Q){return!1}});return Y};i3.expandMapping=function($,I,U){U=Object.assign({rename:function(Q,K){return tY.join(Q||"",K)}},U);var Y=[],J={};return i3.expand(U,$).forEach(function(Q){var K=Q;if(U.flatten)K=tY.basename(K);if(U.ext)K=K.replace(/(\.[^\/]*)?$/,U.ext);var q=U.rename(I,K,U);if(U.cwd)Q=tY.join(U.cwd,Q);if(q=q.replace(gQ0,"/"),Q=Q.replace(gQ0,"/"),J[q])J[q].src.push(Q);else Y.push({src:[Q],dest:q}),J[q]=Y[Y.length-1]}),Y};i3.normalizeFilesArray=function($){var I=[];if($.forEach(function(U){var Y;if("src"in U||"dest"in U)I.push(U)}),I.length===0)return[];return I=_(I).chain().forEach(function(U){if(!("src"in U)||!U.src)return;if(Array.isArray(U.src))U.src=Yg(U.src);else U.src=[U.src]}).map(function(U){var Y=Object.assign({},U);if(delete Y.src,delete Y.dest,U.expand)return i3.expandMapping(U.src,U.dest,Y).map(function(Q){var K=Object.assign({},U);return K.orig=Object.assign({},U),K.src=Q.src,K.dest=Q.dest,["expand","cwd","flatten","rename","ext"].forEach(function(q){delete K[q]}),K});var J=Object.assign({},U);if(J.orig=Object.assign({},U),"src"in J)Object.defineProperty(J,"src",{enumerable:!0,get:function Q(){var K;if(!("result"in Q))K=U.src,K=Array.isArray(K)?Yg(K):[K],Q.result=i3.expand(Y,K);return Q.result}});if("dest"in J)J.dest=U.dest;return J}).flatten().value(),I}});var iQ0=O((Lj1,fQ0)=>{var Jg=s6(),kQ0=t("path"),P71=h_(),xQ0=WX(),T71=f_(),E71=t("stream").Stream,B71=D6().PassThrough,D$=fQ0.exports={};D$.file=uQ0();D$.collectStream=function($,I){var U=[],Y=0;$.on("error",I),$.on("data",function(J){U.push(J),Y+=J.length}),$.on("end",function(){var J=Buffer.alloc(Y),Q=0;U.forEach(function(K){K.copy(J,Q),Q+=K.length}),I(null,J)})};D$.dateify=function($){if($=$||new Date,$ instanceof Date)$=$;else if(typeof $==="string")$=new Date($);else $=new Date;return $};D$.defaults=function($,I,U){var Y=arguments;return Y[0]=Y[0]||{},T71(...Y)};D$.isStream=function($){return $ instanceof E71};D$.lazyReadStream=function($){return new P71.Readable(function(){return Jg.createReadStream($)})};D$.normalizeInputSource=function($){if($===null)return Buffer.alloc(0);else if(typeof $==="string")return Buffer.from($);else if(D$.isStream($))return $.pipe(new B71);return $};D$.sanitizePath=function($){return xQ0($,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};D$.trailingSlashIt=function($){return $.slice(-1)!=="/"?$+"/":$};D$.unixifyPath=function($){return xQ0($,!1).replace(/^\w+:/,"")};D$.walkdir=function($,I,U){var Y=[];if(typeof I==="function")U=I,I=$;Jg.readdir($,function(J,Q){var K=0,q,H;if(J)return U(J);(function G(){if(q=Q[K++],!q)return U(null,Y);H=kQ0.join($,q),Jg.stat(H,function(W,w){if(Y.push({path:H,relative:kQ0.relative(I,H).replace(/\\/g,"/"),stats:w}),w&&w.isDirectory())D$.walkdir(H,I,function(Z,V){V.forEach(function(X){Y.push(X)}),G()});else G()})})()})}});var nQ0=O((Dj1,bQ0)=>{var v71=t("util").inherits,Kg=Ug().ZipArchiveOutputStream,R71=Ug().ZipArchiveEntry,Qg=iQ0(),aY=bQ0.exports=function($){if(!(this instanceof aY))return new aY($);if($=this.options=$||{},$.zlib=$.zlib||{},Kg.call(this,$),typeof $.level==="number"&&$.level>=0)$.zlib.level=$.level,delete $.level;if(!$.forceZip64&&typeof $.zlib.level==="number"&&$.zlib.level===0)$.store=!0;if($.namePrependSlash=$.namePrependSlash||!1,$.comment&&$.comment.length>0)this.setComment($.comment)};v71(aY,Kg);aY.prototype._normalizeFileData=function($){$=Qg.defaults($,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var I=$.type==="directory",U=$.type==="symlink";if($.name){if($.name=Qg.sanitizePath($.name),!U&&$.name.slice(-1)==="/")I=!0,$.type="directory";else if(I)$.name+="/"}if(I||U)$.store=!0;return $.date=Qg.dateify($.date),$};aY.prototype.entry=function($,I,U){if(typeof U!=="function")U=this._emitErrorCallback.bind(this);if(I=this._normalizeFileData(I),I.type!=="file"&&I.type!=="directory"&&I.type!=="symlink"){U(Error(I.type+" entries not currently supported"));return}if(typeof I.name!=="string"||I.name.length===0){U(Error("entry name must be a non-empty string value"));return}if(I.type==="symlink"&&typeof I.linkname!=="string"){U(Error("entry linkname must be a non-empty string value when type equals symlink"));return}var Y=new R71(I.name);if(Y.setTime(I.date,this.options.forceLocalTime),I.namePrependSlash)Y.setName(I.name,!0);if(I.store)Y.setMethod(0);if(I.comment.length>0)Y.setComment(I.comment);if(I.type==="symlink"&&typeof I.mode!=="number")I.mode=40960;if(typeof I.mode==="number"){if(I.type==="symlink")I.mode|=40960;Y.setUnixMode(I.mode)}if(I.type==="symlink"&&typeof I.linkname==="string")$=Buffer.from(I.linkname);return Kg.prototype.entry.call(this,Y,$,U)};aY.prototype.finalize=function(){this.finish()}});var cQ0=O((Oj1,pQ0)=>{var j71=nQ0(),C71=Xq(),J7=function($){if(!(this instanceof J7))return new J7($);$=this.options=C71.defaults($,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new j71($)};J7.prototype.append=function($,I,U){this.engine.entry($,I,U)};J7.prototype.finalize=function(){this.engine.finalize()};J7.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};J7.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};J7.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};pQ0.exports=J7});var lQ0=O((Fj1,mQ0)=>{var{Buffer:W8}=t("buffer"),dQ0=Symbol.for("BufferList");function r1($){if(!(this instanceof r1))return new r1($);r1._init.call(this,$)}r1._init=function(I){if(Object.defineProperty(this,dQ0,{value:!0}),this._bufs=[],this.length=0,I)this.append(I)};r1.prototype._new=function(I){return new r1(I)};r1.prototype._offset=function(I){if(I===0)return[0,0];let U=0;for(let Y=0;Ythis.length||I<0)return;let U=this._offset(I);return this._bufs[U[0]][U[1]]};r1.prototype.slice=function(I,U){if(typeof I==="number"&&I<0)I+=this.length;if(typeof U==="number"&&U<0)U+=this.length;return this.copy(null,0,I,U)};r1.prototype.copy=function(I,U,Y,J){if(typeof Y!=="number"||Y<0)Y=0;if(typeof J!=="number"||J>this.length)J=this.length;if(Y>=this.length)return I||W8.alloc(0);if(J<=0)return I||W8.alloc(0);let Q=!!I,K=this._offset(Y),q=J-Y,H=q,G=Q&&U||0,W=K[1];if(Y===0&&J===this.length){if(!Q)return this._bufs.length===1?this._bufs[0]:W8.concat(this._bufs,this.length);for(let w=0;wZ)this._bufs[w].copy(I,G,W),G+=Z;else{this._bufs[w].copy(I,G,W,W+H),G+=Z;break}if(H-=Z,W)W=0}if(I.length>G)return I.slice(0,G);return I};r1.prototype.shallowSlice=function(I,U){if(I=I||0,U=typeof U!=="number"?this.length:U,I<0)I+=this.length;if(U<0)U+=this.length;if(I===U)return this._new();let Y=this._offset(I),J=this._offset(U),Q=this._bufs.slice(Y[0],J[0]+1);if(J[1]===0)Q.pop();else Q[Q.length-1]=Q[Q.length-1].slice(0,J[1]);if(Y[1]!==0)Q[0]=Q[0].slice(Y[1]);return this._new(Q)};r1.prototype.toString=function(I,U,Y){return this.slice(U,Y).toString(I)};r1.prototype.consume=function(I){if(I=Math.trunc(I),Number.isNaN(I)||I<=0)return this;while(this._bufs.length)if(I>=this._bufs[0].length)I-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(I),this.length-=I;break}return this};r1.prototype.duplicate=function(){let I=this._new();for(let U=0;Uthis.length?this.length:I;let Y=this._offset(I),J=Y[0],Q=Y[1];for(;J=$.length){let H=K.indexOf($,Q);if(H!==-1)return this._reverseOffset([J,H]);Q=K.length-$.length+1}else{let H=this._reverseOffset([J,Q]);if(this._match(H,$))return H;Q++}Q=0}return-1};r1.prototype._match=function($,I){if(this.length-${var qg=D6().Duplex,_71=d0(),Lq=lQ0();function M6($){if(!(this instanceof M6))return new M6($);if(typeof $==="function"){this._callback=$;let I=function(Y){if(this._callback)this._callback(Y),this._callback=null}.bind(this);this.on("pipe",function(Y){Y.on("error",I)}),this.on("unpipe",function(Y){Y.removeListener("error",I)}),$=null}Lq._init.call(this,$),qg.call(this)}_71(M6,qg);Object.assign(M6.prototype,Lq.prototype);M6.prototype._new=function(I){return new M6(I)};M6.prototype._write=function(I,U,Y){if(this._appendBuffer(I),typeof Y==="function")Y()};M6.prototype._read=function(I){if(!this.length)return this.push(null);I=Math.min(I,this.length),this.push(this.slice(0,I)),this.consume(I)};M6.prototype.end=function(I){if(qg.prototype.end.call(this,I),this._callback)this._callback(null,this.slice()),this._callback=null};M6.prototype._destroy=function(I,U){this._bufs.length=0,this.length=0,U(I)};M6.prototype._isBufferList=function(I){return I instanceof M6||I instanceof Lq||M6.isBufferList(I)};M6.isBufferList=Lq.isBufferList;fX.exports=M6;fX.exports.BufferListStream=M6;fX.exports.BufferList=Lq});var Wg=O((p71)=>{var S71=Buffer.alloc,g71="0000000000000000000",y71="7777777777777777777",rQ0=48,tQ0=Buffer.from("ustar\x00","binary"),h71=Buffer.from("00","binary"),u71=Buffer.from("ustar ","binary"),k71=Buffer.from(" \x00","binary"),x71=parseInt("7777",8),Dq=257,Gg=263,f71=function($,I,U){if(typeof $!=="number")return U;if($=~~$,$>=I)return I;if($>=0)return $;if($+=I,$>=0)return $;return 0},i71=function($){switch($){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},b71=function($){switch($){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},aQ0=function($,I,U,Y){for(;UI)return y71.slice(0,I)+" ";else return g71.slice(0,I-$.length)+$+" "};function n71($){var I;if($[0]===128)I=!0;else if($[0]===255)I=!1;else return null;var U=[];for(var Y=$.length-1;Y>0;Y--){var J=$[Y];if(I)U.push(J);else U.push(255-J)}var Q=0,K=U.length;for(Y=0;Y=Math.pow(10,U))U++;return I+U+$};p71.decodeLongPath=function($,I){return sY($,0,$.length,I)};p71.encodePax=function($){var I="";if($.name)I+=Hg(" path="+$.name+` +`);if($.linkname)I+=Hg(" linkpath="+$.linkname+` +`);var U=$.pax;if(U)for(var Y in U)I+=Hg(" "+Y+"="+U[Y]+` +`);return Buffer.from(I)};p71.decodePax=function($){var I={};while($.length){var U=0;while(U<$.length&&$[U]!==32)U++;var Y=parseInt($.slice(0,U).toString(),10);if(!Y)return I;var J=$.slice(U+1,Y-1).toString(),Q=J.indexOf("=");if(Q===-1)return I;I[J.slice(0,Q)]=J.slice(Q+1),$=$.slice(Y)}return I};p71.encode=function($){var I=S71(512),U=$.name,Y="";if($.typeflag===5&&U[U.length-1]!=="/")U+="/";if(Buffer.byteLength(U)!==U.length)return null;while(Buffer.byteLength(U)>100){var J=U.indexOf("/");if(J===-1)return null;Y+=Y?"/"+U.slice(0,J):U.slice(0,J),U=U.slice(J+1)}if(Buffer.byteLength(U)>100||Buffer.byteLength(Y)>155)return null;if($.linkname&&Buffer.byteLength($.linkname)>100)return null;if(I.write(U),I.write(Q7($.mode&x71,6),100),I.write(Q7($.uid,6),108),I.write(Q7($.gid,6),116),I.write(Q7($.size,11),124),I.write(Q7($.mtime.getTime()/1000|0,11),136),I[156]=rQ0+b71($.type),$.linkname)I.write($.linkname,157);if(tQ0.copy(I,Dq),h71.copy(I,Gg),$.uname)I.write($.uname,265);if($.gname)I.write($.gname,297);if(I.write(Q7($.devmajor||0,6),329),I.write(Q7($.devminor||0,6),337),Y)I.write(Y,345);return I.write(Q7(sQ0(I),6),148),I};p71.decode=function($,I,U){var Y=$[156]===0?0:$[156]-rQ0,J=sY($,0,100,I),Q=K7($,100,8),K=K7($,108,8),q=K7($,116,8),H=K7($,124,12),G=K7($,136,12),W=i71(Y),w=$[157]===0?null:sY($,157,100,I),Z=sY($,265,32),V=sY($,297,32),X=K7($,329,8),L=K7($,337,8),D=sQ0($);if(D===256)return null;if(D!==K7($,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(tQ0.compare($,Dq,Dq+6)===0){if($[345])J=sY($,345,155,I)+"/"+J}else if(u71.compare($,Dq,Dq+6)===0&&k71.compare($,Gg,Gg+2)===0);else if(!U)throw Error("Invalid tar header: unknown format.");if(Y===0&&J&&J[J.length-1]==="/")Y=5;return{name:J,mode:Q,uid:K,gid:q,size:H,mtime:new Date(1000*G),type:W,linkname:w,uname:Z,gname:V,devmajor:X,devminor:L}}});var Q20=O((Aj1,J20)=>{var $20=t("util"),r71=oQ0(),Oq=Wg(),I20=D6().Writable,U20=D6().PassThrough,Y20=function(){},eQ0=function($){return $&=511,$&&512-$},t71=function($,I){var U=new iX($,I);return U.end(),U},a71=function($,I){if(I.path)$.name=I.path;if(I.linkpath)$.linkname=I.linkpath;if(I.size)$.size=parseInt(I.size,10);return $.pax=I,$},iX=function($,I){this._parent=$,this.offset=I,U20.call(this,{autoDestroy:!1})};$20.inherits(iX,U20);iX.prototype.destroy=function($){this._parent.destroy($)};var h5=function($){if(!(this instanceof h5))return new h5($);I20.call(this,$),$=$||{},this._offset=0,this._buffer=r71(),this._missing=0,this._partial=!1,this._onparse=Y20,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var I=this,U=I._buffer,Y=function(){I._continue()},J=function(Z){if(I._locked=!1,Z)return I.destroy(Z);if(!I._stream)Y()},Q=function(){I._stream=null;var Z=eQ0(I._header.size);if(Z)I._parse(Z,K);else I._parse(512,w);if(!I._locked)Y()},K=function(){I._buffer.consume(eQ0(I._header.size)),I._parse(512,w),Y()},q=function(){var Z=I._header.size;I._paxGlobal=Oq.decodePax(U.slice(0,Z)),U.consume(Z),Q()},H=function(){var Z=I._header.size;if(I._pax=Oq.decodePax(U.slice(0,Z)),I._paxGlobal)I._pax=Object.assign({},I._paxGlobal,I._pax);U.consume(Z),Q()},G=function(){var Z=I._header.size;this._gnuLongPath=Oq.decodeLongPath(U.slice(0,Z),$.filenameEncoding),U.consume(Z),Q()},W=function(){var Z=I._header.size;this._gnuLongLinkPath=Oq.decodeLongPath(U.slice(0,Z),$.filenameEncoding),U.consume(Z),Q()},w=function(){var Z=I._offset,V;try{V=I._header=Oq.decode(U.slice(0,512),$.filenameEncoding,$.allowUnknownFormat)}catch(X){I.emit("error",X)}if(U.consume(512),!V){I._parse(512,w),Y();return}if(V.type==="gnu-long-path"){I._parse(V.size,G),Y();return}if(V.type==="gnu-long-link-path"){I._parse(V.size,W),Y();return}if(V.type==="pax-global-header"){I._parse(V.size,q),Y();return}if(V.type==="pax-header"){I._parse(V.size,H),Y();return}if(I._gnuLongPath)V.name=I._gnuLongPath,I._gnuLongPath=null;if(I._gnuLongLinkPath)V.linkname=I._gnuLongLinkPath,I._gnuLongLinkPath=null;if(I._pax)I._header=V=a71(V,I._pax),I._pax=null;if(I._locked=!0,!V.size||V.type==="directory"){I._parse(512,w),I.emit("entry",V,t71(I,Z),J);return}I._stream=new iX(I,Z),I.emit("entry",V,I._stream,J),I._parse(V.size,Q),Y()};this._onheader=w,this._parse(512,w)};$20.inherits(h5,I20);h5.prototype.destroy=function($){if(this._destroyed)return;if(this._destroyed=!0,$)this.emit("error",$);if(this.emit("close"),this._stream)this._stream.emit("close")};h5.prototype._parse=function($,I){if(this._destroyed)return;if(this._offset+=$,this._missing=$,I===this._onheader)this._partial=!1;this._onparse=I};h5.prototype._continue=function(){if(this._destroyed)return;var $=this._cb;if(this._cb=Y20,this._overflow)this._write(this._overflow,void 0,$);else $()};h5.prototype._write=function($,I,U){if(this._destroyed)return;var Y=this._stream,J=this._buffer,Q=this._missing;if($.length)this._partial=!0;if($.lengthQ)K=$.slice(Q),$=$.slice(0,Q);if(Y)Y.end($);else J.append($);this._overflow=K,this._onparse()};h5.prototype._final=function($){if(this._partial)return this.destroy(Error("Unexpected end of data"));$()};J20.exports=h5});var q20=O((Pj1,K20)=>{K20.exports=t("fs").constants||t("constants")});var W20=O((Tj1,G20)=>{var s71=hX(),e71=function(){},$31=global.Bare?queueMicrotask:process.nextTick.bind(process),I31=function($){return $.setHeader&&typeof $.abort==="function"},U31=function($){return $.stdio&&Array.isArray($.stdio)&&$.stdio.length===3},H20=function($,I,U){if(typeof I==="function")return H20($,null,I);if(!I)I={};U=s71(U||e71);var{_writableState:Y,_readableState:J}=$,Q=I.readable||I.readable!==!1&&$.readable,K=I.writable||I.writable!==!1&&$.writable,q=!1,H=function(){if(!$.writable)G()},G=function(){if(K=!1,!Q)U.call($)},W=function(){if(Q=!1,!K)U.call($)},w=function(D){U.call($,D?Error("exited with error code: "+D):null)},Z=function(D){U.call($,D)},V=function(){$31(X)},X=function(){if(q)return;if(Q&&!(J&&(J.ended&&!J.destroyed)))return U.call($,Error("premature close"));if(K&&!(Y&&(Y.ended&&!Y.destroyed)))return U.call($,Error("premature close"))},L=function(){$.req.on("finish",G)};if(I31($))if($.on("complete",G),$.on("abort",V),$.req)L();else $.on("request",L);else if(K&&!Y)$.on("end",H),$.on("close",H);if(U31($))$.on("exit",w);if($.on("end",W),$.on("finish",G),I.error!==!1)$.on("error",Z);return $.on("close",V),function(){if(q=!0,$.removeListener("complete",G),$.removeListener("abort",V),$.removeListener("request",L),$.req)$.req.removeListener("finish",G);$.removeListener("end",H),$.removeListener("close",H),$.removeListener("finish",G),$.removeListener("exit",w),$.removeListener("end",W),$.removeListener("error",Z),$.removeListener("close",V)}};G20.exports=H20});var X20=O((Ej1,z20)=>{var eY=q20(),w20=W20(),nX=d0(),Y31=Buffer.alloc,V20=D6().Readable,$J=D6().Writable,J31=t("string_decoder").StringDecoder,bX=Wg(),Q31=parseInt("755",8),K31=parseInt("644",8),Z20=Y31(1024),Vg=function(){},wg=function($,I){if(I&=511,I)$.push(Z20.slice(0,512-I))};function q31($){switch($&eY.S_IFMT){case eY.S_IFBLK:return"block-device";case eY.S_IFCHR:return"character-device";case eY.S_IFDIR:return"directory";case eY.S_IFIFO:return"fifo";case eY.S_IFLNK:return"symlink"}return"file"}var pX=function($){$J.call(this),this.written=0,this._to=$,this._destroyed=!1};nX(pX,$J);pX.prototype._write=function($,I,U){if(this.written+=$.length,this._to.push($))return U();this._to._drain=U};pX.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=!0,this.emit("close")};var cX=function(){$J.call(this),this.linkname="",this._decoder=new J31("utf-8"),this._destroyed=!1};nX(cX,$J);cX.prototype._write=function($,I,U){this.linkname+=this._decoder.write($),U()};cX.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=!0,this.emit("close")};var Fq=function(){$J.call(this),this._destroyed=!1};nX(Fq,$J);Fq.prototype._write=function($,I,U){U(Error("No body allowed for this entry"))};Fq.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=!0,this.emit("close")};var n8=function($){if(!(this instanceof n8))return new n8($);V20.call(this,$),this._drain=Vg,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};nX(n8,V20);n8.prototype.entry=function($,I,U){if(this._stream)throw Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof I==="function")U=I,I=null;if(!U)U=Vg;var Y=this;if(!$.size||$.type==="symlink")$.size=0;if(!$.type)$.type=q31($.mode);if(!$.mode)$.mode=$.type==="directory"?Q31:K31;if(!$.uid)$.uid=0;if(!$.gid)$.gid=0;if(!$.mtime)$.mtime=new Date;if(typeof I==="string")I=Buffer.from(I);if(Buffer.isBuffer(I)){$.size=I.length,this._encode($);var J=this.push(I);if(wg(Y,$.size),J)process.nextTick(U);else this._drain=U;return new Fq}if($.type==="symlink"&&!$.linkname){var Q=new cX;return w20(Q,function(q){if(q)return Y.destroy(),U(q);$.linkname=Q.linkname,Y._encode($),U()}),Q}if(this._encode($),$.type!=="file"&&$.type!=="contiguous-file")return process.nextTick(U),new Fq;var K=new pX(this);return this._stream=K,w20(K,function(q){if(Y._stream=null,q)return Y.destroy(),U(q);if(K.written!==$.size)return Y.destroy(),U(Error("size mismatch"));if(wg(Y,$.size),Y._finalizing)Y.finalize();U()}),K};n8.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}if(this._finalized)return;this._finalized=!0,this.push(Z20),this.push(null)};n8.prototype.destroy=function($){if(this._destroyed)return;if(this._destroyed=!0,$)this.emit("error",$);if(this.emit("close"),this._stream&&this._stream.destroy)this._stream.destroy()};n8.prototype._encode=function($){if(!$.pax){var I=bX.encode($);if(I){this.push(I);return}}this._encodePax($)};n8.prototype._encodePax=function($){var I=bX.encodePax({name:$.name,linkname:$.linkname,pax:$.pax}),U={name:"PaxHeader",mode:$.mode,uid:$.uid,gid:$.gid,size:I.length,mtime:$.mtime,type:"pax-header",linkname:$.linkname&&"PaxHeader",uname:$.uname,gname:$.gname,devmajor:$.devmajor,devminor:$.devminor};this.push(bX.encode(U)),this.push(I),wg(this,I.length),U.size=$.size,U.type=$.type,this.push(bX.encode(U))};n8.prototype._read=function($){var I=this._drain;this._drain=Vg,I()};z20.exports=n8});var L20=O((H31)=>{H31.extract=Q20();H31.pack=X20()});var F20=O((vj1,O20)=>{var w31=t("zlib"),V31=L20(),D20=Xq(),u5=function($){if(!(this instanceof u5))return new u5($);if($=this.options=D20.defaults($,{gzip:!1}),typeof $.gzipOptions!=="object")$.gzipOptions={};if(this.supports={directory:!0,symlink:!0},this.engine=V31.pack($),this.compressor=!1,$.gzip)this.compressor=w31.createGzip($.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this))};u5.prototype._onCompressorError=function($){this.engine.emit("error",$)};u5.prototype.append=function($,I,U){var Y=this;I.mtime=I.date;function J(K,q){if(K){U(K);return}Y.engine.entry(I,q,function(H){U(H,I)})}if(I.sourceType==="buffer")J(null,$);else if(I.sourceType==="stream"&&I.stats){I.size=I.stats.size;var Q=Y.engine.entry(I,function(K){U(K,I)});$.pipe(Q)}else if(I.sourceType==="stream")D20.collectStream($,J)};u5.prototype.finalize=function(){this.engine.finalize()};u5.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};u5.prototype.pipe=function($,I){if(this.compressor)return this.engine.pipe.apply(this.engine,[this.compressor]).pipe($,I);else return this.engine.pipe.apply(this.engine,arguments)};u5.prototype.unpipe=function(){if(this.compressor)return this.compressor.unpipe.apply(this.compressor,arguments);else return this.engine.unpipe.apply(this.engine,arguments)};O20.exports=u5});var P20=O((Rj1,A20)=>{var Z31=t("util").inherits,N20=D6().Transform,z31=sS(),M20=Xq(),q7=function($){if(!(this instanceof q7))return new q7($);$=this.options=M20.defaults($,{}),N20.call(this,$),this.supports={directory:!0,symlink:!0},this.files=[]};Z31(q7,N20);q7.prototype._transform=function($,I,U){U(null,$)};q7.prototype._writeStringified=function(){var $=JSON.stringify(this.files);this.write($)};q7.prototype.append=function($,I,U){var Y=this;I.crc32=0;function J(Q,K){if(Q){U(Q);return}I.size=K.length||0,I.crc32=z31.unsigned(K),Y.files.push(I),U(null,I)}if(I.sourceType==="buffer")J(null,$);else if(I.sourceType==="stream")M20.collectStream($,J)};q7.prototype.finalize=function(){this._writeStringified(),this.end()};A20.exports=q7});var E20=O((jj1,T20)=>{var X31=eJ0(),Nq={},H7=function($,I){return H7.create($,I)};H7.create=function($,I){if(Nq[$]){var U=new X31($,I);return U.setFormat($),U.setModule(new Nq[$](I)),U}else throw Error("create("+$+"): format not registered")};H7.registerFormat=function($,I){if(Nq[$])throw Error("register("+$+"): format already registered");if(typeof I!=="function")throw Error("register("+$+"): format module invalid");if(typeof I.prototype.append!=="function"||typeof I.prototype.finalize!=="function")throw Error("register("+$+"): format module missing methods");Nq[$]=I};H7.isRegisteredFormat=function($){if(Nq[$])return!0;return!1};H7.registerFormat("zip",cQ0());H7.registerFormat("tar",F20());H7.registerFormat("json",P20());T20.exports=H7});var R20=O((Cj1,v20)=>{class B20{constructor(){this._values=[],this._totalRefs=0,this._hash=Object.create(null)}get count(){return this._values.length}get values(){return this._values}get totalRefs(){return this._totalRefs}getString($){return this._values[$]}add($){let I=this._hash[$];if(I===void 0)I=this._hash[$]=this._values.length,this._values.push($);return this._totalRefs++,I}}v20.exports=B20});var S20=O((_j1,_20)=>{var L31=O6(),D31=n9();class j20{constructor($){this.writer=$}push($){this.writer.addHyperlink($)}}class C20{constructor($){this.id=$.id,this.count=0,this._hyperlinks=[],this._workbook=$.workbook}get stream(){if(!this._stream)this._stream=this._workbook._openStream(`/xl/worksheets/_rels/sheet${this.id}.xml.rels`);return this._stream}get length(){return this._hyperlinks.length}each($){return this._hyperlinks.forEach($)}get hyperlinksProxy(){return this._hyperlinksProxy||(this._hyperlinksProxy=new j20(this))}addHyperlink($){let I={Target:$.target,Type:D31.Hyperlink,TargetMode:"External"},U=this._writeRelationship(I);this._hyperlinks.push({rId:U,address:$.address})}addMedia($){return this._writeRelationship($)}addRelationship($){return this._writeRelationship($)}commit(){if(this.count)this._writeClose(),this.stream.end()}_writeOpen(){this.stream.write(` + `)}_writeRelationship($){if(!this.count)this._writeOpen();let I=`rId${++this.count}`;if($.TargetMode)this.stream.write(``);else this.stream.write(``);return I}_writeClose(){this.stream.write("")}}_20.exports=C20});var k20=O((Sj1,u20)=>{var g20=U6(),y20=n9(),O31=W4(),F31=pj(),N31=dj();class h20{constructor($,I,U){this.id=U.id,this.count=0,this._worksheet=$,this._workbook=U.workbook,this._sheetRelsWriter=I}get commentsStream(){if(!this._commentsStream)this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`);return this._commentsStream}get vmlStream(){if(!this._vmlStream)this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`);return this._vmlStream}_addRelationships(){let $={Type:y20.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship($);let I={Type:y20.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(I)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('Author'),this.vmlStream.write('')}_writeComment($,I){let U=new F31,Y=new g20;U.render(Y,$),this.commentsStream.write(Y.xml);let J=new N31,Q=new g20;J.render(Q,$,I),this.vmlStream.write(Q.xml)}_writeClose(){this.commentsStream.write(""),this.vmlStream.write("")}addComments($){if($&&$.length){if(!this.startedData)this._worksheet.comments=[],this._writeOpen(),this._addRelationships(),this._addCommentRefs(),this.startedData=!0;$.forEach((I)=>{I.refAddress=O31.decodeAddress(I.ref)}),$.forEach((I)=>{this._writeComment(I,this.count),this.count+=1})}}commit(){if(this.count)this._writeClose(),this.commentsStream.end(),this.vmlStream.end()}}u20.exports=h20});var p20=O((gj1,n20)=>{var M31=X4(),A31=n9(),Zg=W4(),x20=qB(),f20=Z5(),P31=AR(),i20=JV(),zg=KV(),T31=S20(),E31=k20(),B31=QB(),p4=new P31,Xg=f9(),v31=Dj(),R31=Oj(),j31=Fj(),C31=Zj(),_31=wj(),S31=zj(),g31=Nj(),y31=Mj(),h31=Aj(),u31=Pj(),k31=Tj(),x31=Ej(),f31=Cj(),i31=vj(),b31=Bj(),c4={dataValidations:new v31,sheetProperties:new R31,sheetFormatProperties:new j31,columns:new Xg({tag:"cols",length:!1,childXform:new C31}),row:new _31,hyperlinks:new Xg({tag:"hyperlinks",length:!1,childXform:new S31}),sheetViews:new Xg({tag:"sheetViews",length:!1,childXform:new g31}),sheetProtection:new y31,pageMargins:new h31,pageSeteup:new u31,autoFilter:new k31,picture:new x31,conditionalFormattings:new f31,headerFooter:new i31,rowBreaks:new b31};class b20{constructor($){this.id=$.id,this.name=$.name||`Sheet${this.id}`,this.state=$.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges=[],this._merges.add=function(){},this._sheetRelsWriter=new T31($),this._sheetCommentsWriter=new E31(this,this._sheetRelsWriter,$),this._dimensions=new f20,this._rowZero=1,this.committed=!1,this.dataValidations=new B31,this._formulae={},this._siFormulae=0,this.conditionalFormatting=[],this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},$.properties),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},$.headerFooter),this.pageSetup=Object.assign({},{margins:{left:0.7,right:0.7,top:0.75,bottom:0.75,header:0.3,footer:0.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!($.pageSetup&&($.pageSetup.fitToWidth||$.pageSetup.fitToHeight)&&!$.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},$.pageSetup),this.useSharedStrings=$.useSharedStrings||!1,this._workbook=$.workbook,this.hasComments=!1,this._views=$.views||[],this.autoFilter=$.autoFilter||null,this._media=[],this.sheetProtection=null,this._writeOpenWorksheet(),this.startedData=!1}get workbook(){return this._workbook}get stream(){if(!this._stream)this._stream=this._workbook._openStream(`/xl/worksheets/sheet${this.id}.xml`),this._stream.pause();return this._stream}destroy(){throw Error("Invalid Operation: destroy")}commit(){if(this.committed)return;if(this._rows.forEach(($)=>{if($)this._writeRow($)}),this._rows=null,!this.startedData)this._writeOpenSheetData();this._writeCloseSheetData(),this._writeAutoFilter(),this._writeMergeCells(),this._writeHyperlinks(),this._writeConditionalFormatting(),this._writeDataValidations(),this._writeSheetProtection(),this._writePageMargins(),this._writePageSetup(),this._writeBackground(),this._writeHeaderFooter(),this._writeRowBreaks(),this._writeLegacyData(),this._writeCloseWorksheet(),this.stream.end(),this._sheetCommentsWriter.commit(),this._sheetRelsWriter.commit(),this.committed=!0}get dimensions(){return this._dimensions}get views(){return this._views}get columns(){return this._columns}set columns($){this._headerRowCount=$.reduce((Y,J)=>{let Q=J.header&&1||J.headers&&J.headers.length||0;return Math.max(Y,Q)},0);let I=1,U=this._columns=[];$.forEach((Y)=>{let J=new zg(this,I++,!1);U.push(J),J.defn=Y})}getColumnKey($){return this._keys[$]}setColumnKey($,I){this._keys[$]=I}deleteColumnKey($){delete this._keys[$]}eachColumnKey($){M31.each(this._keys,$)}getColumn($){if(typeof $==="string"){let I=this._keys[$];if(I)return I;$=Zg.l2n($)}if(!this._columns)this._columns=[];if($>this._columns.length){let I=this._columns.length+1;while(I<=$)this._columns.push(new zg(this,I++))}return this._columns[$-1]}get _nextRow(){return this._rowZero+this._rows.length}eachRow($,I){if(!I)I=$,$=void 0;if($&&$.includeEmpty){let U=this._nextRow;for(let Y=this._rowZero;Y{if(U.hasValues)I(U,U.number)})}_commitRow($){let I=!1;while(this._rows.length&&!I){let U=this._rows.shift();if(this._rowZero++,U)this._writeRow(U),I=U.number===$.number,this._rowZero=U.number+1}}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1];return}findRow($){let I=$-this._rowZero;return this._rows[I]}getRow($){let I=$-this._rowZero;if(I<0)throw Error("Out of bounds: this row has been committed");let U=this._rows[I];if(!U)this._rows[I]=U=new i20(this,$);return U}addRow($){let I=new i20(this,this._nextRow);return this._rows[I.number-this._rowZero]=I,I.values=$,I}findCell($,I){let U=Zg.getAddress($,I),Y=this.findRow(U.row);return Y?Y.findCell(U.column):void 0}getCell($,I){let U=Zg.getAddress($,I);return this.getRow(U.row).getCellEx(U)}mergeCells(...$){let I=new f20($);this._merges.forEach((Y)=>{if(Y.intersects(I))throw Error("Cannot merge already merged cells")});let U=this.getCell(I.top,I.left);for(let Y=I.top;Y<=I.bottom;Y++)for(let J=I.left;J<=I.right;J++)if(Y>I.top||J>I.left)this.getCell(Y,J).merge(U);this._merges.push(I)}addConditionalFormatting($){this.conditionalFormatting.push($)}removeConditionalFormatting($){if(typeof $==="number")this.conditionalFormatting.splice($,1);else if($ instanceof Function)this.conditionalFormatting=this.conditionalFormatting.filter($);else this.conditionalFormatting=[]}addBackgroundImage($){this._background={imageId:$}}getBackgroundImageId(){return this._background&&this._background.imageId}protect($,I){return new Promise((U)=>{if(this.sheetProtection={sheet:!0},I&&"spinCount"in I)I.spinCount=Number.isFinite(I.spinCount)?Math.round(Math.max(0,I.spinCount)):1e5;if($)this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=x20.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=I&&"spinCount"in I?I.spinCount:1e5,this.sheetProtection.hashValue=x20.convertPasswordToHash($,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount);if(I){if(this.sheetProtection=Object.assign(this.sheetProtection,I),!$&&"spinCount"in I)delete this.sheetProtection.spinCount}U()})}unprotect(){this.sheetProtection=null}_write($){p4.reset(),p4.addText($),this.stream.write(p4)}_writeSheetProperties($,I,U){let Y={outlineProperties:I&&I.outlineProperties,tabColor:I&&I.tabColor,pageSetup:U&&U.fitToPage?{fitToPage:U.fitToPage}:void 0};$.addText(c4.sheetProperties.toXml(Y))}_writeSheetFormatProperties($,I){let U=I?{defaultRowHeight:I.defaultRowHeight,dyDescent:I.dyDescent,outlineLevelCol:I.outlineLevelCol,outlineLevelRow:I.outlineLevelRow}:void 0;if(I.defaultColWidth)U.defaultColWidth=I.defaultColWidth;$.addText(c4.sheetFormatProperties.toXml(U))}_writeOpenWorksheet(){p4.reset(),p4.addText(''),p4.addText(''),this._writeSheetProperties(p4,this.properties,this.pageSetup),p4.addText(c4.sheetViews.toXml(this.views)),this._writeSheetFormatProperties(p4,this.properties),this.stream.write(p4)}_writeColumns(){let $=zg.toModel(this.columns);if($)c4.columns.prepare($,{styles:this._workbook.styles}),this.stream.write(c4.columns.toXml($))}_writeOpenSheetData(){this._write("")}_writeRow($){if(!this.startedData)this._writeColumns(),this._writeOpenSheetData(),this.startedData=!0;if($.hasValues||$.height){let{model:I}=$,U={styles:this._workbook.styles,sharedStrings:this.useSharedStrings?this._workbook.sharedStrings:void 0,hyperlinks:this._sheetRelsWriter.hyperlinksProxy,merges:this._merges,formulae:this._formulae,siFormulae:this._siFormulae,comments:[]};if(c4.row.prepare(I,U),this.stream.write(c4.row.toXml(I)),U.comments.length)this.hasComments=!0,this._sheetCommentsWriter.addComments(U.comments)}}_writeCloseSheetData(){this._write("")}_writeMergeCells(){if(this._merges.length)p4.reset(),p4.addText(``),this._merges.forEach(($)=>{p4.addText(``)}),p4.addText(""),this.stream.write(p4)}_writeHyperlinks(){this.stream.write(c4.hyperlinks.toXml(this._sheetRelsWriter._hyperlinks))}_writeConditionalFormatting(){let $={styles:this._workbook.styles};c4.conditionalFormattings.prepare(this.conditionalFormatting,$),this.stream.write(c4.conditionalFormattings.toXml(this.conditionalFormatting))}_writeRowBreaks(){this.stream.write(c4.rowBreaks.toXml(this.rowBreaks))}_writeDataValidations(){this.stream.write(c4.dataValidations.toXml(this.dataValidations.model))}_writeSheetProtection(){this.stream.write(c4.sheetProtection.toXml(this.sheetProtection))}_writePageMargins(){this.stream.write(c4.pageMargins.toXml(this.pageSetup.margins))}_writePageSetup(){this.stream.write(c4.pageSeteup.toXml(this.pageSetup))}_writeHeaderFooter(){this.stream.write(c4.headerFooter.toXml(this.headerFooter))}_writeAutoFilter(){this.stream.write(c4.autoFilter.toXml(this.autoFilter))}_writeBackground(){if(this._background){if(this._background.imageId!==void 0){let $=this._workbook.getImage(this._background.imageId),I=this._sheetRelsWriter.addMedia({Target:`../media/${$.name}`,Type:A31.Image});this._background={...this._background,rId:I}}this.stream.write(c4.picture.toXml({rId:this._background.rId}))}}_writeLegacyData(){if(this.hasComments)p4.reset(),p4.addText(``),this.stream.write(p4)}_writeDimensions(){}_writeCloseWorksheet(){this._write("")}}n20.exports=b20});var r20=O((yj1,o20)=>{var n31=t("fs"),p31=E20(),c20=NK(),b3=n9(),d20=kZ(),c31=R20(),d31=GB(),m31=Jj(),m20=bZ(),l31=Kj(),o31=qj(),r31=pZ(),t31=Qj(),a31=p20(),s31=mj();class l20{constructor($){if($=$||{},this.created=$.created||new Date,this.modified=$.modified||this.created,this.creator=$.creator||"ExcelJS",this.lastModifiedBy=$.lastModifiedBy||"ExcelJS",this.lastPrinted=$.lastPrinted,this.useSharedStrings=$.useSharedStrings||!1,this.sharedStrings=new c31,this.styles=$.useStyles?new d20(!0):new d20.Mock(!0),this._definedNames=new d31,this._worksheets=[],this.views=[],this.zipOptions=$.zip,this.media=[],this.commentRefs=[],this.zip=p31("zip",this.zipOptions),$.stream)this.stream=$.stream;else if($.filename)this.stream=n31.createWriteStream($.filename);else this.stream=new c20;this.zip.pipe(this.stream),this.promise=Promise.all([this.addThemes(),this.addOfficeRels()])}get definedNames(){return this._definedNames}_openStream($){let I=new c20({bufSize:65536,batch:!0});return this.zip.append(I,{name:$}),I.on("finish",()=>{I.emit("zipped")}),I}_commitWorksheets(){let $=function(U){if(!U.committed)return new Promise((Y)=>{U.stream.on("zipped",()=>{Y()}),U.commit()});return Promise.resolve()},I=this._worksheets.map($);if(I.length)return Promise.all(I);return Promise.resolve()}async commit(){return await this.promise,await this.addMedia(),await this._commitWorksheets(),await Promise.all([this.addContentTypes(),this.addApp(),this.addCore(),this.addSharedStrings(),this.addStyles(),this.addWorkbookRels()]),await this.addWorkbook(),this._finalize()}get nextId(){let $;for($=1;$!0);if(typeof $==="number")return this._worksheets[$];if(typeof $==="string")return this._worksheets.find((I)=>I&&I.name===$);return}addStyles(){return new Promise(($)=>{this.zip.append(this.styles.xml,{name:"xl/styles.xml"}),$()})}addThemes(){return new Promise(($)=>{this.zip.append(s31,{name:"xl/theme/theme1.xml"}),$()})}addOfficeRels(){return new Promise(($)=>{let U=new m20().toXml([{Id:"rId1",Type:b3.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:b3.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:b3.ExtenderProperties,Target:"docProps/app.xml"}]);this.zip.append(U,{name:"/_rels/.rels"}),$()})}addContentTypes(){return new Promise(($)=>{let I={worksheets:this._worksheets.filter(Boolean),sharedStrings:this.sharedStrings,commentRefs:this.commentRefs,media:this.media},Y=new l31().toXml(I);this.zip.append(Y,{name:"[Content_Types].xml"}),$()})}addMedia(){return Promise.all(this.media.map(($)=>{if($.type==="image"){let I=`xl/media/${$.name}`;if($.filename)return this.zip.file($.filename,{name:I});if($.buffer)return this.zip.append($.buffer,{name:I});if($.base64){let U=$.base64,Y=U.substring(U.indexOf(",")+1);return this.zip.append(Y,{name:I,base64:!0})}}throw Error("Unsupported media")}))}addApp(){return new Promise(($)=>{let I={worksheets:this._worksheets.filter(Boolean)},Y=new o31().toXml(I);this.zip.append(Y,{name:"docProps/app.xml"}),$()})}addCore(){return new Promise(($)=>{let U=new m31().toXml(this);this.zip.append(U,{name:"docProps/core.xml"}),$()})}addSharedStrings(){if(this.sharedStrings.count)return new Promise(($)=>{let U=new t31().toXml(this.sharedStrings);this.zip.append(U,{name:"/xl/sharedStrings.xml"}),$()});return Promise.resolve()}addWorkbookRels(){let $=1,I=[{Id:`rId${$++}`,Type:b3.Styles,Target:"styles.xml"},{Id:`rId${$++}`,Type:b3.Theme,Target:"theme/theme1.xml"}];if(this.sharedStrings.count)I.push({Id:`rId${$++}`,Type:b3.SharedStrings,Target:"sharedStrings.xml"});return this._worksheets.forEach((U)=>{if(U)U.rId=`rId${$++}`,I.push({Id:U.rId,Type:b3.Worksheet,Target:`worksheets/sheet${U.id}.xml`})}),new Promise((U)=>{let J=new m20().toXml(I);this.zip.append(J,{name:"/xl/_rels/workbook.xml.rels"}),U()})}addWorkbook(){let{zip:$}=this,I={worksheets:this._worksheets.filter(Boolean),definedNames:this._definedNames.model,views:this.views,properties:{},calcProperties:{}};return new Promise((U)=>{let Y=new r31;Y.prepare(I),$.append(Y.toXml(I),{name:"/xl/workbook.xml"}),U()})}_finalize(){return new Promise(($,I)=>{this.stream.on("error",I),this.stream.on("finish",()=>{$(this)}),this.zip.on("error",I),this.zip.finalize()})}}o20.exports=l20});var a20=O((hj1,t20)=>{var Lg=t("events").listenerCount;Lg=Lg||function($,I){var U=$&&$._events&&$._events[I];if(Array.isArray(U))return U.length;else if(typeof U==="function")return 1;else return 0};t20.exports=Lg});var e20=O((uj1,s20)=>{s20.exports=function(I){var U=process&&process.version?process.version:"v5.0.0",Y=U.split(".")[0].replace("v","");return Y<6?new Buffer(I):Buffer.from(I)}});var IK0=O(()=>{var Mq=e20();if(!Buffer.prototype.indexOf)Buffer.prototype.indexOf=function($,I){if(I=I||0,typeof $==="string"||$ instanceof String)$=Mq($);else if(typeof $==="number"||$ instanceof Number)$=Mq([$]);var U=$.length;for(var Y=I;Y<=this.length-U;Y++){var J=!1;for(var Q=0;Q=0;Y--){var J=!1;for(var Q=0;Q{JK0.exports=A6;function A6($){if(!(this instanceof A6))return new A6($);this.value=$}A6.prototype.get=function($){var I=this.value;for(var U=0;U<$.length;U++){var Y=$[U];if(!Object.hasOwnProperty.call(I,Y)){I=void 0;break}I=I[Y]}return I};A6.prototype.set=function($,I){var U=this.value;for(var Y=0;Y<$.length-1;Y++){var J=$[Y];if(!Object.hasOwnProperty.call(U,J))U[J]={};U=U[J]}return U[$[Y]]=I,I};A6.prototype.map=function($){return UK0(this.value,$,!0)};A6.prototype.forEach=function($){return this.value=UK0(this.value,$,!1),this.value};A6.prototype.reduce=function($,I){var U=arguments.length===1,Y=U?this.value:I;return this.forEach(function(J){if(!this.isRoot||!U)Y=$.call(this,Y,J)}),Y};A6.prototype.deepEqual=function($){if(arguments.length!==1)throw Error("deepEqual requires exactly one object to compare against");var I=!0,U=$;return this.forEach(function(Y){var J=function(){I=!1;return}.bind(this);if(!this.isRoot){if(typeof U!=="object")return J();U=U[this.key]}var Q=U;this.post(function(){U=Q});var K=function(w){return Object.prototype.toString.call(w)};if(this.circular){if(A6($).get(this.circular.path)!==Q)J()}else if(typeof Q!==typeof Y)J();else if(Q===null||Y===null||Q===void 0||Y===void 0){if(Q!==Y)J()}else if(Q.__proto__!==Y.__proto__)J();else if(Q===Y);else if(typeof Q==="function"){if(Q instanceof RegExp){if(Q.toString()!=Y.toString())J()}else if(Q!==Y)J()}else if(typeof Q==="object")if(K(Y)==="[object Arguments]"||K(Q)==="[object Arguments]"){if(K(Q)!==K(Y))J()}else if(Q instanceof Date||Y instanceof Date){if(!(Q instanceof Date)||!(Y instanceof Date)||Q.getTime()!==Y.getTime())J()}else{var q=Object.keys(Q),H=Object.keys(Y);if(q.length!==H.length)return J();for(var G=0;G{var e31=QK0(),$I1=t("events").EventEmitter;KK0.exports=IJ;function IJ($){var I=IJ.saw($,{}),U=$.call(I.handlers,I);if(U!==void 0)I.handlers=U;return I.record(),I.chain()}IJ.light=function(I){var U=IJ.saw(I,{}),Y=I.call(U.handlers,U);if(Y!==void 0)U.handlers=Y;return U.chain()};IJ.saw=function($,I){var U=new $I1;return U.handlers=I,U.actions=[],U.chain=function(){var Y=e31(U.handlers).map(function(J){if(this.isRoot)return J;var Q=this.path;if(typeof J==="function")this.update(function(){return U.actions.push({path:Q,args:[].slice.call(arguments)}),Y})});return process.nextTick(function(){U.emit("begin"),U.next()}),Y},U.pop=function(){return U.actions.shift()},U.next=function(){var Y=U.pop();if(!Y)U.emit("end");else if(!Y.trap){var J=U.handlers;Y.path.forEach(function(Q){J=J[Q]}),J.apply(U.handlers,Y.args)}},U.nest=function(Y){var J=[].slice.call(arguments,1),Q=!0;if(typeof Y==="boolean"){var Q=Y;Y=J.shift()}var K=IJ.saw($,{}),q=$.call(K.handlers,K);if(q!==void 0)K.handlers=q;if(typeof U.step<"u")K.record();if(Y.apply(K.chain(),J),Q!==!1)K.on("end",U.next)},U.record=function(){II1(U)},["trap","down","jump"].forEach(function(Y){U[Y]=function(){throw Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),U};function II1($){$.step=0,$.pop=function(){return $.actions[$.step++]},$.trap=function(I,U){var Y=Array.isArray(I)?I:[I];$.actions.push({path:Y,step:$.step,cb:U,trap:!0})},$.down=function(I){var U=(Array.isArray(I)?I:[I]).join("/"),Y=$.actions.slice($.step).map(function(Q){if(Q.trap&&Q.step<=$.step)return!1;return Q.path.join("/")==U}).indexOf(!0);if(Y>=0)$.step+=Y;else $.step=$.actions.length;var J=$.actions[$.step-1];if(J&&J.trap)$.step=J.step,J.cb();else $.next()},$.jump=function(I){$.step=I,$.next()}}});var GK0=O((bj1,HK0)=>{HK0.exports=u6;function u6($){if(!(this instanceof u6))return new u6($);this.buffers=$||[],this.length=this.buffers.reduce(function(I,U){return I+U.length},0)}u6.prototype.push=function(){for(var $=0;$=0?$:this.length-$,J=[].slice.call(arguments,2);if(I===void 0)I=this.length-Y;else if(I>this.length-Y)I=this.length-Y;for(var $=0;$0){var G=Y-q;if(G+I0){var V=J.slice();V.unshift(w),V.push(Z),U.splice.apply(U,[H,1].concat(V)),H+=V.length,J=[]}else U.splice(H,1,w,Z),H+=2}else Q.push(U[H].slice(G)),U[H]=U[H].slice(0,G),H++}if(J.length>0)U.splice.apply(U,[H,0].concat(J)),H+=J.length;while(Q.lengththis.length)I=this.length;var Y=0;for(var J=0;J=I-$?Math.min(G+(I-$)-K,H):H;U[q].copy(Q,K,G,W),K+=W-G}return Q};u6.prototype.pos=function($){if($<0||$>=this.length)throw Error("oob");var I=$,U=0,Y=null;for(;;){if(Y=this.buffers[U],I=this.buffers[U].length)if(Y=0,U++,U>=this.buffers.length)return-1;var H=this.buffers[U][Y];if(H==$[J]){if(J==0)Q={i:U,j:Y,pos:K};if(J++,J==$.length)return Q.pos}else if(J!=0)U=Q.i,Y=Q.j,K=Q.pos,J=0;Y++,K++}};u6.prototype.toBuffer=function(){return this.slice()};u6.prototype.toString=function($,I,U){return this.slice(I,U).toString($)}});var wK0=O((nj1,WK0)=>{WK0.exports=function($){function I(Y,J){var Q=U.store,K=Y.split(".");K.slice(0,-1).forEach(function(H){if(Q[H]===void 0)Q[H]={};Q=Q[H]});var q=K[K.length-1];if(arguments.length==1)return Q[q];else return Q[q]=J}var U={get:function(Y){return I(Y)},set:function(Y,J){return I(Y,J)},store:$||{}};return U}});var Aq=O((n3,LK0)=>{var UI1=qK0(),VK0=t("events").EventEmitter,YI1=GK0(),dX=wK0(),JI1=t("stream").Stream;n3=LK0.exports=function($,I){if(Buffer.isBuffer($))return n3.parse($);var U=n3.stream();if($&&$.pipe)$.pipe(U);else if($)$.on(I||"data",function(Y){U.write(Y)}),$.on("end",function(){U.end()});return U};n3.stream=function($){if($)return n3.apply(null,arguments);var I=null;function U(w,Z,V){I={bytes:w,skip:V,cb:function(X){I=null,Z(X)}},J()}var Y=null;function J(){if(!I){if(W)G=!0;return}if(typeof I==="function")I();else{var w=Y+I.bytes;if(q.length>=w){var Z;if(Y==null){if(Z=q.splice(0,w),!I.skip)Z=Z.slice()}else{if(!I.skip)Z=q.slice(Y,w);Y=w}if(I.skip)I.cb();else I.cb(Z)}}}function Q(w){function Z(){if(!G)w.next()}var V=XK0(function(X,L){return function(D){U(X,function(F){H.set(D,L(F)),Z()})}});return V.tap=function(X){w.nest(X,H.store)},V.into=function(X,L){if(!H.get(X))H.set(X,{});var D=H;H=dX(D.get(X)),w.nest(function(){L.apply(this,arguments),this.tap(function(){H=D})},H.store)},V.flush=function(){H.store={},Z()},V.loop=function(X){var L=!1;w.nest(!1,function D(){this.vars=H.store,X.call(this,function(){L=!0,Z()},H.store),this.tap(function(){if(L)w.next();else D.call(this)}.bind(this))},H.store)},V.buffer=function(X,L){if(typeof L==="string")L=H.get(L);U(L,function(D){H.set(X,D),Z()})},V.skip=function(X){if(typeof X==="string")X=H.get(X);U(X,function(){Z()})},V.scan=function(L,D){if(typeof D==="string")D=new Buffer(D);else if(!Buffer.isBuffer(D))throw Error("search must be a Buffer or a string");var F=0;I=function(){var P=q.indexOf(D,Y+F),T=P-Y-F;if(P!==-1){if(I=null,Y!=null)H.set(L,q.slice(Y,Y+F+T)),Y+=F+T+D.length;else H.set(L,q.slice(0,F+T)),q.splice(0,F+T+D.length);Z(),J()}else T=Math.max(q.length-D.length-Y-F,0);F+=T},J()},V.peek=function(X){Y=0,w.nest(function(){X.call(this,H.store),this.tap(function(){Y=null})})},V}var K=UI1.light(Q);K.writable=!0;var q=YI1();K.write=function(w){q.push(w),J()};var H=dX(),G=!1,W=!1;return K.end=function(){W=!0},K.pipe=JI1.prototype.pipe,Object.getOwnPropertyNames(VK0.prototype).forEach(function(w){K[w]=VK0.prototype[w]}),K};n3.parse=function(I){var U=XK0(function(Q,K){return function(q){if(Y+Q<=I.length){var H=I.slice(Y,Y+Q);Y+=Q,J.set(q,K(H))}else J.set(q,null);return U}}),Y=0,J=dX();return U.vars=J.store,U.tap=function(Q){return Q.call(U,J.store),U},U.into=function(Q,K){if(!J.get(Q))J.set(Q,{});var q=J;return J=dX(q.get(Q)),K.call(U,J.store),J=q,U},U.loop=function(Q){var K=!1,q=function(){K=!0};while(K===!1)Q.call(U,q,J.store);return U},U.buffer=function(Q,K){if(typeof K==="string")K=J.get(K);var q=I.slice(Y,Math.min(I.length,Y+K));return Y+=K,J.set(Q,q),U},U.skip=function(Q){if(typeof Q==="string")Q=J.get(Q);return Y+=Q,U},U.scan=function(Q,K){if(typeof K==="string")K=new Buffer(K);else if(!Buffer.isBuffer(K))throw Error("search must be a Buffer or a string");J.set(Q,null);for(var q=0;q+Y<=I.length-K.length+1;q++){for(var H=0;H=I.length},U};function ZK0($){var I=0;for(var U=0;U<$.length;U++)I+=Math.pow(256,U)*$[U];return I}function zK0($){var I=0;for(var U=0;U<$.length;U++)I+=Math.pow(256,$.length-U-1)*$[U];return I}function QI1($){var I=zK0($);if(($[0]&128)==128)I-=Math.pow(256,$.length);return I}function KI1($){var I=ZK0($);if(($[$.length-1]&128)==128)I-=Math.pow(256,$.length);return I}function XK0($){var I={};return[1,2,4,8].forEach(function(U){var Y=U*8;I["word"+Y+"le"]=I["word"+Y+"lu"]=$(U,ZK0),I["word"+Y+"ls"]=$(U,KI1),I["word"+Y+"be"]=I["word"+Y+"bu"]=$(U,zK0),I["word"+Y+"bs"]=$(U,QI1)}),I.word8=I.word8u=I.word8be,I.word8s=I.word8bs,I}});var p3=O((pj1,Bg)=>{var Dg=function(){return this===void 0}();if(Dg)Bg.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:Dg,propertyIsWritable:function($,I){var U=Object.getOwnPropertyDescriptor($,I);return!!(!U||U.writable||U.set)}};else Og={}.hasOwnProperty,Fg={}.toString,Ng={}.constructor.prototype,mX=function($){var I=[];for(var U in $)if(Og.call($,U))I.push(U);return I},Mg=function($,I){return{value:$[I]}},Ag=function($,I,U){return $[I]=U.value,$},Pg=function($){return $},Tg=function($){try{return Object($).constructor.prototype}catch(I){return Ng}},Eg=function($){try{return Fg.call($)==="[object Array]"}catch(I){return!1}},Bg.exports={isArray:Eg,keys:mX,names:mX,defineProperty:Ag,getDescriptor:Mg,freeze:Pg,getPrototypeOf:Tg,isES5:Dg,propertyIsWritable:function(){return!0}};var Og,Fg,Ng,mX,Mg,Ag,Pg,Tg,Eg});var d1=O((oX,Sg)=>{var e6=p3(),qI1=typeof navigator>"u",vg={e:{}},Rg,HI1=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:oX!==void 0?oX:null;function GI1(){try{var $=Rg;return Rg=null,$.apply(this,arguments)}catch(I){return vg.e=I,vg}}function WI1($){return Rg=$,GI1}var wI1=function($,I){var U={}.hasOwnProperty;function Y(){this.constructor=$,this.constructor$=I;for(var J in I.prototype)if(U.call(I.prototype,J)&&J.charAt(J.length-1)!=="$")this[J+"$"]=I.prototype[J]}return Y.prototype=I.prototype,$.prototype=new Y,$.prototype};function _g($){return $==null||$===!0||$===!1||typeof $==="string"||typeof $==="number"}function VI1($){return typeof $==="function"||typeof $==="object"&&$!==null}function ZI1($){if(!_g($))return $;return Error(lX($))}function zI1($,I){var U=$.length,Y=Array(U+1),J;for(J=0;J1,Y=I.length>0&&!(I.length===1&&I[0]==="constructor"),J=OI1.test($+"")&&e6.names($).length>0;if(U||Y||J)return!0}return!1}catch(Q){return!1}}function NI1(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var l=8;while(l--)new FakeConstructor;return obj}var MI1=/^[a-z$_][a-z$_0-9]*$/i;function AI1($){return MI1.test($)}function PI1($,I,U){var Y=Array($);for(var J=0;J<$;++J)Y[J]=I+J+U;return Y}function lX($){try{return $+""}catch(I){return"[no string representation]"}}function OK0($){return $!==null&&typeof $==="object"&&typeof $.message==="string"&&typeof $.name==="string"}function TI1($){try{DK0($,"isOperational",!0)}catch(I){}}function EI1($){if($==null)return!1;return $ instanceof Error.__BluebirdErrorTypes__.OperationalError||$.isOperational===!0}function jg($){return OK0($)&&e6.propertyIsWritable($,"stack")}var BI1=function(){if(!("stack"in Error()))return function($){if(jg($))return $;try{throw Error(lX($))}catch(I){return I}};else return function($){if(jg($))return $;return Error(lX($))}}();function FK0($){return{}.toString.call($)}function vI1($,I,U){var Y=e6.names($);for(var J=0;J10||$[0]>0}();if(UJ.isNode)UJ.toFastProperties(process);try{throw Error()}catch($){UJ.lastLineError=$}Sg.exports=UJ});var PK0=O((cj1,AK0)=>{var yg=d1(),c3,SI1=function(){throw Error(`No async scheduler available See http://goo.gl/MqrFmX -`)},_g=Sg.getNativePromise();if(Sg.isNode&&typeof MutationObserver>"u")gg=global.setImmediate,yg=process.nextTick,c3=Sg.isRecentNode?function($){gg.call(global,$)}:function($){yg.call(process,$)};else if(typeof _g==="function"&&typeof _g.resolve==="function")hg=_g.resolve(),c3=function($){hg.then($)};else if(typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)))c3=function(){var $=document.createElement("div"),I={attributes:!0},U=!1,Y=document.createElement("div"),J=new MutationObserver(function(){$.classList.toggle("foo"),U=!1});J.observe(Y,I);var Q=function(){if(U)return;U=!0,Y.classList.toggle("foo")};return function(q){var H=new MutationObserver(function(){H.disconnect(),q()});H.observe($,I),Q()}}();else if(typeof setImmediate<"u")c3=function($){setImmediate($)};else if(typeof setTimeout<"u")c3=function($){setTimeout($,0)};else c3=SI1;var gg,yg,hg;AK0.exports=c3});var EK0=O((cj1,TK0)=>{function gI1($,I,U,Y,J){for(var Q=0;Q{var CK0;try{throw Error()}catch($){CK0=$}var yI1=PK0(),BK0=EK0(),_K0=d1();function d4(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new BK0(16),this._normalQueue=new BK0(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var $=this;this.drainQueues=function(){$._drainQueues()},this._schedule=yI1}d4.prototype.setScheduler=function($){var I=this._schedule;return this._schedule=$,this._customScheduler=!0,I};d4.prototype.hasCustomScheduler=function(){return this._customScheduler};d4.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};d4.prototype.disableTrampolineIfNecessary=function(){if(_K0.hasDevTools)this._trampolineEnabled=!1};d4.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};d4.prototype.fatalError=function($,I){if(I)process.stderr.write("Fatal "+($ instanceof Error?$.stack:$)+` +`)},gg=yg.getNativePromise();if(yg.isNode&&typeof MutationObserver>"u")hg=global.setImmediate,ug=process.nextTick,c3=yg.isRecentNode?function($){hg.call(global,$)}:function($){ug.call(process,$)};else if(typeof gg==="function"&&typeof gg.resolve==="function")kg=gg.resolve(),c3=function($){kg.then($)};else if(typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)))c3=function(){var $=document.createElement("div"),I={attributes:!0},U=!1,Y=document.createElement("div"),J=new MutationObserver(function(){$.classList.toggle("foo"),U=!1});J.observe(Y,I);var Q=function(){if(U)return;U=!0,Y.classList.toggle("foo")};return function(q){var H=new MutationObserver(function(){H.disconnect(),q()});H.observe($,I),Q()}}();else if(typeof setImmediate<"u")c3=function($){setImmediate($)};else if(typeof setTimeout<"u")c3=function($){setTimeout($,0)};else c3=SI1;var hg,ug,kg;AK0.exports=c3});var EK0=O((dj1,TK0)=>{function gI1($,I,U,Y,J){for(var Q=0;Q{var CK0;try{throw Error()}catch($){CK0=$}var yI1=PK0(),BK0=EK0(),_K0=d1();function d4(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new BK0(16),this._normalQueue=new BK0(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var $=this;this.drainQueues=function(){$._drainQueues()},this._schedule=yI1}d4.prototype.setScheduler=function($){var I=this._schedule;return this._schedule=$,this._customScheduler=!0,I};d4.prototype.hasCustomScheduler=function(){return this._customScheduler};d4.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};d4.prototype.disableTrampolineIfNecessary=function(){if(_K0.hasDevTools)this._trampolineEnabled=!1};d4.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};d4.prototype.fatalError=function($,I){if(I)process.stderr.write("Fatal "+($ instanceof Error?$.stack:$)+` `),process.exit(2);else this.throwLater($)};d4.prototype.throwLater=function($,I){if(arguments.length===1)I=$,$=function(){throw I};if(typeof setTimeout<"u")setTimeout(function(){$(I)},0);else try{this._schedule(function(){$(I)})}catch(U){throw Error(`No async scheduler available See http://goo.gl/MqrFmX -`)}};function vK0($,I,U){this._lateQueue.push($,I,U),this._queueTick()}function RK0($,I,U){this._normalQueue.push($,I,U),this._queueTick()}function jK0($){this._normalQueue._pushOne($),this._queueTick()}if(!_K0.hasDevTools)d4.prototype.invokeLater=vK0,d4.prototype.invoke=RK0,d4.prototype.settlePromises=jK0;else d4.prototype.invokeLater=function($,I,U){if(this._trampolineEnabled)vK0.call(this,$,I,U);else this._schedule(function(){setTimeout(function(){$.call(I,U)},100)})},d4.prototype.invoke=function($,I,U){if(this._trampolineEnabled)RK0.call(this,$,I,U);else this._schedule(function(){$.call(I,U)})},d4.prototype.settlePromises=function($){if(this._trampolineEnabled)jK0.call(this,$);else this._schedule(function(){$._settlePromises()})};d4.prototype._drainQueue=function($){while($.length()>0){var I=$.shift();if(typeof I!=="function"){I._settlePromises();continue}var U=$.shift(),Y=$.shift();I.call(U,Y)}};d4.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};d4.prototype._queueTick=function(){if(!this._isTickUsed)this._isTickUsed=!0,this._schedule(this.drainQueues)};d4.prototype._reset=function(){this._isTickUsed=!1};ug.exports=d4;ug.exports.firstLineError=CK0});var x5=O((mj1,hK0)=>{var fg=p3(),hI1=fg.freeze,gK0=d1(),yK0=gK0.inherits,IJ=gK0.notEnumerableProp;function UJ($,I){function U(Y){if(!(this instanceof U))return new U(Y);if(IJ(this,"message",typeof Y==="string"?Y:I),IJ(this,"name",$),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else Error.call(this)}return yK0(U,Error),U}var xg,kg,uI1=UJ("Warning","warning"),xI1=UJ("CancellationError","cancellation error"),kI1=UJ("TimeoutError","timeout error"),Tq=UJ("AggregateError","aggregate error");try{xg=TypeError,kg=RangeError}catch($){xg=UJ("TypeError","type error"),kg=UJ("RangeError","range error")}var oX="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(d3=0;d30){var I=$.shift();if(typeof I!=="function"){I._settlePromises();continue}var U=$.shift(),Y=$.shift();I.call(U,Y)}};d4.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};d4.prototype._queueTick=function(){if(!this._isTickUsed)this._isTickUsed=!0,this._schedule(this.drainQueues)};d4.prototype._reset=function(){this._isTickUsed=!1};xg.exports=d4;xg.exports.firstLineError=CK0});var k5=O((lj1,hK0)=>{var bg=p3(),hI1=bg.freeze,gK0=d1(),yK0=gK0.inherits,YJ=gK0.notEnumerableProp;function JJ($,I){function U(Y){if(!(this instanceof U))return new U(Y);if(YJ(this,"message",typeof Y==="string"?Y:I),YJ(this,"name",$),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else Error.call(this)}return yK0(U,Error),U}var fg,ig,uI1=JJ("Warning","warning"),kI1=JJ("CancellationError","cancellation error"),xI1=JJ("TimeoutError","timeout error"),Tq=JJ("AggregateError","aggregate error");try{fg=TypeError,ig=RangeError}catch($){fg=JJ("TypeError","type error"),ig=JJ("RangeError","range error")}var rX="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(d3=0;d3{uK0.exports=function($,I){var U=d1(),Y=U.errorObj,J=U.isObject;function Q(w,Z){if(J(w)){if(w instanceof $)return w;var V=q(w);if(V===Y){if(Z)Z._pushContext();var X=$.reject(V.e);if(Z)Z._popContext();return X}else if(typeof V==="function"){if(G(w)){var X=new $(I);return w._then(X._fulfill,X._reject,void 0,X,null),X}return W(w,V,Z)}}return w}function K(w){return w.then}function q(w){try{return K(w)}catch(Z){return Y.e=Z,Y}}var H={}.hasOwnProperty;function G(w){try{return H.call(w,"_promise0")}catch(Z){return!1}}function W(w,Z,V){var X=new $(I),L=X;if(V)V._pushContext();if(X._captureStackTrace(),V)V._popContext();var D=!0,F=U.tryCatch(Z).call(w,P,E);if(D=!1,X&&F===Y)X._rejectCallback(F.e,!0,!0),X=null;function P(A){if(!X)return;X._resolveCallback(A),X=null}function E(A){if(!X)return;X._rejectCallback(A,D,!0),X=null}return L}return Q}});var fK0=O((oj1,kK0)=>{kK0.exports=function($,I,U,Y,J){var Q=d1(),K=Q.isArray;function q(G){switch(G){case-2:return[];case-3:return{}}}function H(G){var W=this._promise=new $(I);if(G instanceof $)W._propagateFrom(G,3);W._setOnCancel(this),this._values=G,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return Q.inherits(H,J),H.prototype.length=function(){return this._length},H.prototype.promise=function(){return this._promise},H.prototype._init=function G(W,w){var Z=U(this._values,this._promise);if(Z instanceof $){Z=Z._target();var V=Z._bitField;if(this._values=Z,(V&50397184)===0)return this._promise._setAsyncGuaranteed(),Z._then(G,this._reject,void 0,this,w);else if((V&33554432)!==0)Z=Z._value();else if((V&16777216)!==0)return this._reject(Z._reason());else return this._cancel()}if(Z=Q.asArray(Z),Z===null){var X=Y("expecting an array or an iterable object but got "+Q.classString(Z)).reason();this._promise._rejectCallback(X,!1);return}if(Z.length===0){if(w===-5)this._resolveEmptyArray();else this._resolve(q(w));return}this._iterate(Z)},H.prototype._iterate=function(G){var W=this.getActualLength(G.length);this._length=W,this._values=this.shouldCopyValues()?Array(W):this._values;var w=this._promise,Z=!1,V=null;for(var X=0;X=this._length)return this._resolve(this._values),!0;return!1},H.prototype._promiseCancelled=function(){return this._cancel(),!0},H.prototype._promiseRejected=function(G){return this._totalResolved++,this._reject(G),!0},H.prototype._resultCancelled=function(){if(this._isResolved())return;var G=this._values;if(this._cancel(),G instanceof $)G.cancel();else for(var W=0;W{bK0.exports=function($){var I=!1,U=[];$.prototype._promiseCreated=function(){},$.prototype._pushContext=function(){},$.prototype._popContext=function(){return null},$._peekContext=$.prototype._peekContext=function(){};function Y(){this._trace=new Y.CapturedTrace(Q())}Y.prototype._pushContext=function(){if(this._trace!==void 0)this._trace._promiseCreated=null,U.push(this._trace)},Y.prototype._popContext=function(){if(this._trace!==void 0){var K=U.pop(),q=K._promiseCreated;return K._promiseCreated=null,q}return null};function J(){if(I)return new Y}function Q(){var K=U.length-1;if(K>=0)return U[K];return}return Y.CapturedTrace=null,Y.create=J,Y.deactivateLongStackTraces=function(){},Y.activateLongStackTraces=function(){var K=$.prototype._pushContext,q=$.prototype._popContext,H=$._peekContext,G=$.prototype._peekContext,W=$.prototype._promiseCreated;Y.deactivateLongStackTraces=function(){$.prototype._pushContext=K,$.prototype._popContext=q,$._peekContext=H,$.prototype._peekContext=G,$.prototype._promiseCreated=W,I=!1},I=!0,$.prototype._pushContext=Y.prototype._pushContext,$.prototype._popContext=Y.prototype._popContext,$._peekContext=$.prototype._peekContext=Q,$.prototype._promiseCreated=function(){var w=this._peekContext();if(w&&w._promiseCreated==null)w._promiseCreated=this}},Y}});var pK0=O((tj1,nK0)=>{nK0.exports=function($,I){var{_getDomain:U,_async:Y}=$,J=x5().Warning,Q=d1(),K=Q.canAttachTrace,q,H,G=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,W=/\((?:timers\.js):\d+:\d+\)/,w=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,Z=null,V=null,X=!1,L,D=!!(Q.env("BLUEBIRD_DEBUG")!=0&&(Q.env("BLUEBIRD_DEBUG")||Q.env("NODE_ENV")==="development")),F=!!(Q.env("BLUEBIRD_WARNINGS")!=0&&(D||Q.env("BLUEBIRD_WARNINGS"))),P=!!(Q.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(D||Q.env("BLUEBIRD_LONG_STACK_TRACES"))),E=Q.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(F||!!Q.env("BLUEBIRD_W_FORGOTTEN_RETURN"));$.prototype.suppressUnhandledRejections=function(){var a=this._target();a._bitField=a._bitField&-1048577|524288},$.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled(),Y.invokeLater(this._notifyUnhandledRejection,this,void 0)},$.prototype._notifyUnhandledRejectionIsHandled=function(){b4("rejectionHandled",q,void 0,this)},$.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},$.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},$.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var a=this._settledValue();this._setUnhandledRejectionIsNotified(),b4("unhandledRejection",H,a,this)}},$.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},$.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},$.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},$.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},$.prototype._unsetRejectionIsUnhandled=function(){if(this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified())this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled()},$.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},$.prototype._warn=function(a,N,M){return q1(a,N,M||this)},$.onPossiblyUnhandledRejection=function(a){var N=U();H=typeof a==="function"?N===null?a:Q.domainBind(N,a):void 0},$.onUnhandledRejectionHandled=function(a){var N=U();q=typeof a==="function"?N===null?a:Q.domainBind(N,a):void 0};var A=function(){};$.longStackTraces=function(){if(Y.haveItemsQueued()&&!v0.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created +`}return tX--,I};function Pq($){if(!(this instanceof Pq))return new Pq($);if(YJ(this,"name","OperationalError"),YJ(this,"message",$),this.cause=$,this.isOperational=!0,$ instanceof Error)YJ(this,"message",$.message),YJ(this,"stack",$.stack);else if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}yK0(Pq,Error);var m3=Error.__BluebirdErrorTypes__;if(!m3)m3=hI1({CancellationError:kI1,TimeoutError:xI1,OperationalError:Pq,RejectionError:Pq,AggregateError:Tq}),bg.defineProperty(Error,"__BluebirdErrorTypes__",{value:m3,writable:!1,enumerable:!1,configurable:!1});hK0.exports={Error,TypeError:fg,RangeError:ig,CancellationError:m3.CancellationError,OperationalError:m3.OperationalError,TimeoutError:m3.TimeoutError,AggregateError:m3.AggregateError,Warning:uI1}});var kK0=O((oj1,uK0)=>{uK0.exports=function($,I){var U=d1(),Y=U.errorObj,J=U.isObject;function Q(w,Z){if(J(w)){if(w instanceof $)return w;var V=q(w);if(V===Y){if(Z)Z._pushContext();var X=$.reject(V.e);if(Z)Z._popContext();return X}else if(typeof V==="function"){if(G(w)){var X=new $(I);return w._then(X._fulfill,X._reject,void 0,X,null),X}return W(w,V,Z)}}return w}function K(w){return w.then}function q(w){try{return K(w)}catch(Z){return Y.e=Z,Y}}var H={}.hasOwnProperty;function G(w){try{return H.call(w,"_promise0")}catch(Z){return!1}}function W(w,Z,V){var X=new $(I),L=X;if(V)V._pushContext();if(X._captureStackTrace(),V)V._popContext();var D=!0,F=U.tryCatch(Z).call(w,P,T);if(D=!1,X&&F===Y)X._rejectCallback(F.e,!0,!0),X=null;function P(A){if(!X)return;X._resolveCallback(A),X=null}function T(A){if(!X)return;X._rejectCallback(A,D,!0),X=null}return L}return Q}});var fK0=O((rj1,xK0)=>{xK0.exports=function($,I,U,Y,J){var Q=d1(),K=Q.isArray;function q(G){switch(G){case-2:return[];case-3:return{}}}function H(G){var W=this._promise=new $(I);if(G instanceof $)W._propagateFrom(G,3);W._setOnCancel(this),this._values=G,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return Q.inherits(H,J),H.prototype.length=function(){return this._length},H.prototype.promise=function(){return this._promise},H.prototype._init=function G(W,w){var Z=U(this._values,this._promise);if(Z instanceof $){Z=Z._target();var V=Z._bitField;if(this._values=Z,(V&50397184)===0)return this._promise._setAsyncGuaranteed(),Z._then(G,this._reject,void 0,this,w);else if((V&33554432)!==0)Z=Z._value();else if((V&16777216)!==0)return this._reject(Z._reason());else return this._cancel()}if(Z=Q.asArray(Z),Z===null){var X=Y("expecting an array or an iterable object but got "+Q.classString(Z)).reason();this._promise._rejectCallback(X,!1);return}if(Z.length===0){if(w===-5)this._resolveEmptyArray();else this._resolve(q(w));return}this._iterate(Z)},H.prototype._iterate=function(G){var W=this.getActualLength(G.length);this._length=W,this._values=this.shouldCopyValues()?Array(W):this._values;var w=this._promise,Z=!1,V=null;for(var X=0;X=this._length)return this._resolve(this._values),!0;return!1},H.prototype._promiseCancelled=function(){return this._cancel(),!0},H.prototype._promiseRejected=function(G){return this._totalResolved++,this._reject(G),!0},H.prototype._resultCancelled=function(){if(this._isResolved())return;var G=this._values;if(this._cancel(),G instanceof $)G.cancel();else for(var W=0;W{iK0.exports=function($){var I=!1,U=[];$.prototype._promiseCreated=function(){},$.prototype._pushContext=function(){},$.prototype._popContext=function(){return null},$._peekContext=$.prototype._peekContext=function(){};function Y(){this._trace=new Y.CapturedTrace(Q())}Y.prototype._pushContext=function(){if(this._trace!==void 0)this._trace._promiseCreated=null,U.push(this._trace)},Y.prototype._popContext=function(){if(this._trace!==void 0){var K=U.pop(),q=K._promiseCreated;return K._promiseCreated=null,q}return null};function J(){if(I)return new Y}function Q(){var K=U.length-1;if(K>=0)return U[K];return}return Y.CapturedTrace=null,Y.create=J,Y.deactivateLongStackTraces=function(){},Y.activateLongStackTraces=function(){var K=$.prototype._pushContext,q=$.prototype._popContext,H=$._peekContext,G=$.prototype._peekContext,W=$.prototype._promiseCreated;Y.deactivateLongStackTraces=function(){$.prototype._pushContext=K,$.prototype._popContext=q,$._peekContext=H,$.prototype._peekContext=G,$.prototype._promiseCreated=W,I=!1},I=!0,$.prototype._pushContext=Y.prototype._pushContext,$.prototype._popContext=Y.prototype._popContext,$._peekContext=$.prototype._peekContext=Q,$.prototype._promiseCreated=function(){var w=this._peekContext();if(w&&w._promiseCreated==null)w._promiseCreated=this}},Y}});var pK0=O((aj1,nK0)=>{nK0.exports=function($,I){var{_getDomain:U,_async:Y}=$,J=k5().Warning,Q=d1(),K=Q.canAttachTrace,q,H,G=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,W=/\((?:timers\.js):\d+:\d+\)/,w=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,Z=null,V=null,X=!1,L,D=!!(Q.env("BLUEBIRD_DEBUG")!=0&&(Q.env("BLUEBIRD_DEBUG")||Q.env("NODE_ENV")==="development")),F=!!(Q.env("BLUEBIRD_WARNINGS")!=0&&(D||Q.env("BLUEBIRD_WARNINGS"))),P=!!(Q.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(D||Q.env("BLUEBIRD_LONG_STACK_TRACES"))),T=Q.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(F||!!Q.env("BLUEBIRD_W_FORGOTTEN_RETURN"));$.prototype.suppressUnhandledRejections=function(){var a=this._target();a._bitField=a._bitField&-1048577|524288},$.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled(),Y.invokeLater(this._notifyUnhandledRejection,this,void 0)},$.prototype._notifyUnhandledRejectionIsHandled=function(){i4("rejectionHandled",q,void 0,this)},$.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},$.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},$.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var a=this._settledValue();this._setUnhandledRejectionIsNotified(),i4("unhandledRejection",H,a,this)}},$.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},$.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},$.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},$.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},$.prototype._unsetRejectionIsUnhandled=function(){if(this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified())this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled()},$.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},$.prototype._warn=function(a,N,M){return q1(a,N,M||this)},$.onPossiblyUnhandledRejection=function(a){var N=U();H=typeof a==="function"?N===null?a:Q.domainBind(N,a):void 0},$.onUnhandledRejectionHandled=function(a){var N=U();q=typeof a==="function"?N===null?a:Q.domainBind(N,a):void 0};var A=function(){};$.longStackTraces=function(){if(Y.haveItemsQueued()&&!v0.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX -`);if(!v0.longStackTraces&&b6()){var a=$.prototype._captureStackTrace,N=$.prototype._attachExtraTrace;v0.longStackTraces=!0,A=function(){if(Y.haveItemsQueued()&&!v0.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created +`);if(!v0.longStackTraces&&i6()){var a=$.prototype._captureStackTrace,N=$.prototype._attachExtraTrace;v0.longStackTraces=!0,A=function(){if(Y.haveItemsQueued()&&!v0.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX -`);$.prototype._captureStackTrace=a,$.prototype._attachExtraTrace=N,I.deactivateLongStackTraces(),Y.enableTrampoline(),v0.longStackTraces=!1},$.prototype._captureStackTrace=J0,$.prototype._attachExtraTrace=w0,I.activateLongStackTraces(),Y.disableTrampolineIfNecessary()}},$.hasLongStackTraces=function(){return v0.longStackTraces&&b6()};var R=function(){try{if(typeof CustomEvent==="function"){var a=new CustomEvent("CustomEvent");return Q.global.dispatchEvent(a),function(N,M){var C=new CustomEvent(N.toLowerCase(),{detail:M,cancelable:!0});return!Q.global.dispatchEvent(C)}}else if(typeof Event==="function"){var a=new Event("CustomEvent");return Q.global.dispatchEvent(a),function(M,C){var u=new Event(M.toLowerCase(),{cancelable:!0});return u.detail=C,!Q.global.dispatchEvent(u)}}else{var a=document.createEvent("CustomEvent");return a.initCustomEvent("testingtheevent",!1,!0,{}),Q.global.dispatchEvent(a),function(M,C){var u=document.createEvent("CustomEvent");return u.initCustomEvent(M.toLowerCase(),!1,!0,C),!Q.global.dispatchEvent(u)}}}catch(N){}return function(){return!1}}(),k=function(){if(Q.isNode)return function(){return process.emit.apply(process,arguments)};else{if(!Q.global)return function(){return!1};return function(a){var N="on"+a.toLowerCase(),M=Q.global[N];if(!M)return!1;return M.apply(Q.global,[].slice.call(arguments,1)),!0}}}();function y(a,N){return{promise:N}}var f={promiseCreated:y,promiseFulfilled:y,promiseRejected:y,promiseResolved:y,promiseCancelled:y,promiseChained:function(a,N,M){return{promise:N,child:M}},warning:function(a,N){return{warning:N}},unhandledRejection:function(a,N,M){return{reason:N,promise:M}},rejectionHandled:y},j=function(a){var N=!1;try{N=k.apply(null,arguments)}catch(C){Y.throwLater(C),N=!0}var M=!1;try{M=R(a,f[a].apply(null,arguments))}catch(C){Y.throwLater(C),M=!0}return M||N};$.config=function(a){if(a=Object(a),"longStackTraces"in a){if(a.longStackTraces)$.longStackTraces();else if(!a.longStackTraces&&$.hasLongStackTraces())A()}if("warnings"in a){var N=a.warnings;if(v0.warnings=!!N,E=v0.warnings,Q.isObject(N)){if("wForgottenReturn"in N)E=!!N.wForgottenReturn}}if("cancellation"in a&&a.cancellation&&!v0.cancellation){if(Y.haveItemsQueued())throw Error("cannot enable cancellation after promises are in use");$.prototype._clearCancellationData=U0,$.prototype._propagateFrom=B,$.prototype._onCancel=b,$.prototype._setOnCancel=i,$.prototype._attachCancellationCallback=S,$.prototype._execute=n,c=B,v0.cancellation=!0}if("monitoring"in a){if(a.monitoring&&!v0.monitoring)v0.monitoring=!0,$.prototype._fireEvent=j;else if(!a.monitoring&&v0.monitoring)v0.monitoring=!1,$.prototype._fireEvent=p}return $};function p(){return!1}$.prototype._fireEvent=p,$.prototype._execute=function(a,N,M){try{a(N,M)}catch(C){return C}},$.prototype._onCancel=function(){},$.prototype._setOnCancel=function(a){},$.prototype._attachCancellationCallback=function(a){},$.prototype._captureStackTrace=function(){},$.prototype._attachExtraTrace=function(){},$.prototype._clearCancellationData=function(){},$.prototype._propagateFrom=function(a,N){};function n(a,N,M){var C=this;try{a(N,M,function(u){if(typeof u!=="function")throw TypeError("onCancel must be a function, got: "+Q.toString(u));C._attachCancellationCallback(u)})}catch(u){return u}}function S(a){if(!this._isCancellable())return this;var N=this._onCancel();if(N!==void 0)if(Q.isArray(N))N.push(a);else this._setOnCancel([N,a]);else this._setOnCancel(a)}function b(){return this._onCancelField}function i(a){this._onCancelField=a}function U0(){this._cancellationParent=void 0,this._onCancelField=void 0}function B(a,N){if((N&1)!==0){this._cancellationParent=a;var M=a._branchesRemainingToCancel;if(M===void 0)M=0;a._branchesRemainingToCancel=M+1}if((N&2)!==0&&a._isBound())this._setBoundTo(a._boundTo)}function x(a,N){if((N&2)!==0&&a._isBound())this._setBoundTo(a._boundTo)}var c=x;function r(){var a=this._boundTo;if(a!==void 0){if(a instanceof $)if(a.isFulfilled())return a.value();else return}return a}function J0(){this._trace=new J$(this._peekContext())}function w0(a,N){if(K(a)){var M=this._trace;if(M!==void 0){if(N)M=M._parent}if(M!==void 0)M.attachExtraTrace(a);else if(!a.__stackCleaned__){var C=U1(a);Q.notEnumerableProp(a,"stack",C.message+` +`);$.prototype._captureStackTrace=a,$.prototype._attachExtraTrace=N,I.deactivateLongStackTraces(),Y.enableTrampoline(),v0.longStackTraces=!1},$.prototype._captureStackTrace=J0,$.prototype._attachExtraTrace=w0,I.activateLongStackTraces(),Y.disableTrampolineIfNecessary()}},$.hasLongStackTraces=function(){return v0.longStackTraces&&i6()};var R=function(){try{if(typeof CustomEvent==="function"){var a=new CustomEvent("CustomEvent");return Q.global.dispatchEvent(a),function(N,M){var C=new CustomEvent(N.toLowerCase(),{detail:M,cancelable:!0});return!Q.global.dispatchEvent(C)}}else if(typeof Event==="function"){var a=new Event("CustomEvent");return Q.global.dispatchEvent(a),function(M,C){var u=new Event(M.toLowerCase(),{cancelable:!0});return u.detail=C,!Q.global.dispatchEvent(u)}}else{var a=document.createEvent("CustomEvent");return a.initCustomEvent("testingtheevent",!1,!0,{}),Q.global.dispatchEvent(a),function(M,C){var u=document.createEvent("CustomEvent");return u.initCustomEvent(M.toLowerCase(),!1,!0,C),!Q.global.dispatchEvent(u)}}}catch(N){}return function(){return!1}}(),x=function(){if(Q.isNode)return function(){return process.emit.apply(process,arguments)};else{if(!Q.global)return function(){return!1};return function(a){var N="on"+a.toLowerCase(),M=Q.global[N];if(!M)return!1;return M.apply(Q.global,[].slice.call(arguments,1)),!0}}}();function y(a,N){return{promise:N}}var f={promiseCreated:y,promiseFulfilled:y,promiseRejected:y,promiseResolved:y,promiseCancelled:y,promiseChained:function(a,N,M){return{promise:N,child:M}},warning:function(a,N){return{warning:N}},unhandledRejection:function(a,N,M){return{reason:N,promise:M}},rejectionHandled:y},j=function(a){var N=!1;try{N=x.apply(null,arguments)}catch(C){Y.throwLater(C),N=!0}var M=!1;try{M=R(a,f[a].apply(null,arguments))}catch(C){Y.throwLater(C),M=!0}return M||N};$.config=function(a){if(a=Object(a),"longStackTraces"in a){if(a.longStackTraces)$.longStackTraces();else if(!a.longStackTraces&&$.hasLongStackTraces())A()}if("warnings"in a){var N=a.warnings;if(v0.warnings=!!N,T=v0.warnings,Q.isObject(N)){if("wForgottenReturn"in N)T=!!N.wForgottenReturn}}if("cancellation"in a&&a.cancellation&&!v0.cancellation){if(Y.haveItemsQueued())throw Error("cannot enable cancellation after promises are in use");$.prototype._clearCancellationData=U0,$.prototype._propagateFrom=B,$.prototype._onCancel=i,$.prototype._setOnCancel=b,$.prototype._attachCancellationCallback=S,$.prototype._execute=n,c=B,v0.cancellation=!0}if("monitoring"in a){if(a.monitoring&&!v0.monitoring)v0.monitoring=!0,$.prototype._fireEvent=j;else if(!a.monitoring&&v0.monitoring)v0.monitoring=!1,$.prototype._fireEvent=p}return $};function p(){return!1}$.prototype._fireEvent=p,$.prototype._execute=function(a,N,M){try{a(N,M)}catch(C){return C}},$.prototype._onCancel=function(){},$.prototype._setOnCancel=function(a){},$.prototype._attachCancellationCallback=function(a){},$.prototype._captureStackTrace=function(){},$.prototype._attachExtraTrace=function(){},$.prototype._clearCancellationData=function(){},$.prototype._propagateFrom=function(a,N){};function n(a,N,M){var C=this;try{a(N,M,function(u){if(typeof u!=="function")throw TypeError("onCancel must be a function, got: "+Q.toString(u));C._attachCancellationCallback(u)})}catch(u){return u}}function S(a){if(!this._isCancellable())return this;var N=this._onCancel();if(N!==void 0)if(Q.isArray(N))N.push(a);else this._setOnCancel([N,a]);else this._setOnCancel(a)}function i(){return this._onCancelField}function b(a){this._onCancelField=a}function U0(){this._cancellationParent=void 0,this._onCancelField=void 0}function B(a,N){if((N&1)!==0){this._cancellationParent=a;var M=a._branchesRemainingToCancel;if(M===void 0)M=0;a._branchesRemainingToCancel=M+1}if((N&2)!==0&&a._isBound())this._setBoundTo(a._boundTo)}function k(a,N){if((N&2)!==0&&a._isBound())this._setBoundTo(a._boundTo)}var c=k;function r(){var a=this._boundTo;if(a!==void 0){if(a instanceof $)if(a.isFulfilled())return a.value();else return}return a}function J0(){this._trace=new J$(this._peekContext())}function w0(a,N){if(K(a)){var M=this._trace;if(M!==void 0){if(N)M=M._parent}if(M!==void 0)M.attachExtraTrace(a);else if(!a.__stackCleaned__){var C=U1(a);Q.notEnumerableProp(a,"stack",C.message+` `+C.stack.join(` -`)),Q.notEnumerableProp(a,"__stackCleaned__",!0)}}}function A0(a,N,M,C,u){if(a===void 0&&N!==null&&E){if(u!==void 0&&u._returnedNonUndefined())return;if((C._bitField&65535)===0)return;if(M)M=M+" ";var s="",m="";if(N._trace){var e=N._trace.stack.split(` -`),K0=Q0(e);for(var W0=K0.length-1;W0>=0;--W0){var _0=K0[W0];if(!W.test(_0)){var i0=_0.match(w);if(i0)s="at "+i0[1]+":"+i0[2]+":"+i0[3]+" ";break}}if(K0.length>0){var f0=K0[0];for(var W0=0;W00)m=` +`)),Q.notEnumerableProp(a,"__stackCleaned__",!0)}}}function A0(a,N,M,C,u){if(a===void 0&&N!==null&&T){if(u!==void 0&&u._returnedNonUndefined())return;if((C._bitField&65535)===0)return;if(M)M=M+" ";var s="",m="";if(N._trace){var e=N._trace.stack.split(` +`),K0=Q0(e);for(var W0=K0.length-1;W0>=0;--W0){var _0=K0[W0];if(!W.test(_0)){var b0=_0.match(w);if(b0)s="at "+b0[1]+":"+b0[2]+":"+b0[3]+" ";break}}if(K0.length>0){var f0=K0[0];for(var W0=0;W00)m=` `+e[W0-1];break}}}var H1="a promise was created in a "+M+"handler "+s+"but was not returned from it, see http://goo.gl/rRqMUw"+m;C._warn(H1,!0,N)}}function j0(a,N){var M=a+" is deprecated and will be removed in a future version.";if(N)M+=" Use "+N+" instead.";return q1(M)}function q1(a,N,M){if(!v0.warnings)return;var C=new J(a),u;if(N)M._attachExtraTrace(C);else if(v0.longStackTraces&&(u=$._peekContext()))u.attachExtraTrace(C);else{var s=U1(C);C.stack=s.message+` `+s.stack.join(` -`)}if(!j("warning",C))O1(C,"",!0)}function k0(a,N){for(var M=0;M=0;--e)if(C[e]===s){m=e;break}for(var e=m;e>=0;--e){var K0=C[e];if(N[u]===K0)N.pop(),u--;else break}N=C}}function Q0(a){var N=[];for(var M=0;M0&&a.name!="SyntaxError")N=N.slice(M);return N}function U1(a){var N=a.stack,M=a.toString();return N=typeof N==="string"&&N.length>0?R0(a):[" (No stack trace)"],{message:M,stack:a.name=="SyntaxError"?N:Q0(N)}}function O1(a,N,M){if(typeof console<"u"){var C;if(Q.isObject(a)){var u=a.stack;C=N+V(u,a)}else C=N+String(a);if(typeof L==="function")L(C,M);else if(typeof console.log==="function"||typeof console.log==="object")console.log(C)}}function b4(a,N,M,C){var u=!1;try{if(typeof N==="function")if(u=!0,a==="rejectionHandled")N(C);else N(M,C)}catch(s){Y.throwLater(s)}if(a==="unhandledRejection"){if(!j(a,M,C)&&!u)O1(M,"Unhandled rejection ")}else j(a,C)}function f6(a){var N;if(typeof a==="function")N="[function "+(a.name||"anonymous")+"]";else{N=a&&typeof a.toString==="function"?a.toString():Q.toString(a);var M=/\[object [a-zA-Z0-9$_]+\]/;if(M.test(N))try{var C=JSON.stringify(a);N=C}catch(u){}if(N.length===0)N="(empty array)"}return"(<"+O$(N)+">, no stack trace)"}function O$(a){var N=41;if(a.length0&&a.name!="SyntaxError")N=N.slice(M);return N}function U1(a){var N=a.stack,M=a.toString();return N=typeof N==="string"&&N.length>0?R0(a):[" (No stack trace)"],{message:M,stack:a.name=="SyntaxError"?N:Q0(N)}}function O1(a,N,M){if(typeof console<"u"){var C;if(Q.isObject(a)){var u=a.stack;C=N+V(u,a)}else C=N+String(a);if(typeof L==="function")L(C,M);else if(typeof console.log==="function"||typeof console.log==="object")console.log(C)}}function i4(a,N,M,C){var u=!1;try{if(typeof N==="function")if(u=!0,a==="rejectionHandled")N(C);else N(M,C)}catch(s){Y.throwLater(s)}if(a==="unhandledRejection"){if(!j(a,M,C)&&!u)O1(M,"Unhandled rejection ")}else j(a,C)}function f6(a){var N;if(typeof a==="function")N="[function "+(a.name||"anonymous")+"]";else{N=a&&typeof a.toString==="function"?a.toString():Q.toString(a);var M=/\[object [a-zA-Z0-9$_]+\]/;if(M.test(N))try{var C=JSON.stringify(a);N=C}catch(u){}if(N.length===0)N="(empty array)"}return"(<"+F$(N)+">, no stack trace)"}function F$(a){var N=41;if(a.length=s)return;P6=function(_0){if(G.test(_0))return!0;var i0=Y$(_0);if(i0){if(i0.fileName===m&&(u<=i0.line&&i0.line<=s))return!0}return!1}}function J$(a){this._parent=a,this._promisesCreated=0;var N=this._length=1+(a===void 0?0:a._length);if(a5(this,J$),N>32)this.uncycle()}Q.inherits(J$,Error),I.CapturedTrace=J$,J$.prototype.uncycle=function(){var a=this._length;if(a<2)return;var N=[],M={};for(var C=0,u=this;u!==void 0;++C)N.push(u),u=u._parent;a=this._length=C;for(var C=a-1;C>=0;--C){var s=N[C].stack;if(M[s]===void 0)M[s]=C}for(var C=0;C0)N[e-1]._parent=void 0,N[e-1]._length=1;N[C]._parent=void 0,N[C]._length=1;var K0=C>0?N[C-1]:this;if(e=0;--_0)N[_0]._length=W0,W0++;return}}},J$.prototype.attachExtraTrace=function(a){if(a.__stackCleaned__)return;this.uncycle();var N=U1(a),M=N.message,C=[N.stack],u=this;while(u!==void 0)C.push(Q0(u.stack.split(` -`))),u=u._parent;M0(C),I1(C),Q.notEnumerableProp(a,"stack",k0(M,C)),Q.notEnumerableProp(a,"__stackCleaned__",!0)};var a5=function(){var N=/^\s*at\s*/,M=function(m,e){if(typeof m==="string")return m;if(e.name!==void 0&&e.message!==void 0)return e.toString();return f6(e)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6,Z=N,V=M;var C=Error.captureStackTrace;return P6=function(m){return G.test(m)},function(m,e){Error.stackTraceLimit+=6,C(m,e),Error.stackTraceLimit-=6}}var u=Error();if(typeof u.stack==="string"&&u.stack.split(` +`),u=-1,s=-1,m,e;for(var K0=0;K0=s)return;P6=function(_0){if(G.test(_0))return!0;var b0=Y$(_0);if(b0){if(b0.fileName===m&&(u<=b0.line&&b0.line<=s))return!0}return!1}}function J$(a){this._parent=a,this._promisesCreated=0;var N=this._length=1+(a===void 0?0:a._length);if(a5(this,J$),N>32)this.uncycle()}Q.inherits(J$,Error),I.CapturedTrace=J$,J$.prototype.uncycle=function(){var a=this._length;if(a<2)return;var N=[],M={};for(var C=0,u=this;u!==void 0;++C)N.push(u),u=u._parent;a=this._length=C;for(var C=a-1;C>=0;--C){var s=N[C].stack;if(M[s]===void 0)M[s]=C}for(var C=0;C0)N[e-1]._parent=void 0,N[e-1]._length=1;N[C]._parent=void 0,N[C]._length=1;var K0=C>0?N[C-1]:this;if(e=0;--_0)N[_0]._length=W0,W0++;return}}},J$.prototype.attachExtraTrace=function(a){if(a.__stackCleaned__)return;this.uncycle();var N=U1(a),M=N.message,C=[N.stack],u=this;while(u!==void 0)C.push(Q0(u.stack.split(` +`))),u=u._parent;M0(C),I1(C),Q.notEnumerableProp(a,"stack",x0(M,C)),Q.notEnumerableProp(a,"__stackCleaned__",!0)};var a5=function(){var N=/^\s*at\s*/,M=function(m,e){if(typeof m==="string")return m;if(e.name!==void 0&&e.message!==void 0)return e.toString();return f6(e)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6,Z=N,V=M;var C=Error.captureStackTrace;return P6=function(m){return G.test(m)},function(m,e){Error.stackTraceLimit+=6,C(m,e),Error.stackTraceLimit-=6}}var u=Error();if(typeof u.stack==="string"&&u.stack.split(` `)[0].indexOf("stackDetection@")>=0)return Z=/@/,V=M,X=!0,function(e){e.stack=Error().stack};var s;try{throw Error()}catch(m){s="stack"in m}if(!("stack"in u)&&s&&typeof Error.stackTraceLimit==="number")return Z=N,V=M,function(e){Error.stackTraceLimit+=6;try{throw Error()}catch(K0){e.stack=K0.stack}Error.stackTraceLimit-=6};return V=function(m,e){if(typeof m==="string")return m;if((typeof e==="object"||typeof e==="function")&&e.name!==void 0&&e.message!==void 0)return e.toString();return f6(e)},null}([]);if(typeof console<"u"&&typeof console.warn<"u"){if(L=function(a){console.warn(a)},Q.isNode&&process.stderr.isTTY)L=function(a,N){var M=N?"\x1B[33m":"\x1B[31m";console.warn(M+a+`\x1B[0m -`)};else if(!Q.isNode&&typeof Error().stack==="string")L=function(a,N){console.warn("%c"+a,N?"color: darkorange":"color: red")}}var v0={warnings:F,longStackTraces:!1,cancellation:!1,monitoring:!1};if(P)$.longStackTraces();return{longStackTraces:function(){return v0.longStackTraces},warnings:function(){return v0.warnings},cancellation:function(){return v0.cancellation},monitoring:function(){return v0.monitoring},propagateFromFunction:function(){return c},boundValueFunction:function(){return r},checkForgottenReturns:A0,setBounds:T7,warn:q1,deprecated:j0,CapturedTrace:J$,fireDomEvent:R,fireGlobalEvent:k}}});var dK0=O((aj1,cK0)=>{cK0.exports=function($,I){var U=d1(),Y=$.CancellationError,J=U.errorObj;function Q(w,Z,V){this.promise=w,this.type=Z,this.handler=V,this.called=!1,this.cancelPromise=null}Q.prototype.isFinallyHandler=function(){return this.type===0};function K(w){this.finallyHandler=w}K.prototype._resultCancelled=function(){q(this.finallyHandler)};function q(w,Z){if(w.cancelPromise!=null){if(arguments.length>1)w.cancelPromise._reject(Z);else w.cancelPromise._cancel();return w.cancelPromise=null,!0}return!1}function H(){return W.call(this,this.promise._target()._settledValue())}function G(w){if(q(this,w))return;return J.e=w,J}function W(w){var Z=this.promise,V=this.handler;if(!this.called){this.called=!0;var X=this.isFinallyHandler()?V.call(Z._boundValue()):V.call(Z._boundValue(),w);if(X!==void 0){Z._setReturnedNonUndefined();var L=I(X,Z);if(L instanceof $){if(this.cancelPromise!=null){if(L._isCancelled()){var D=new Y("late cancellation observer");return Z._attachExtraTrace(D),J.e=D,J}else if(L.isPending())L._attachCancellationCallback(new K(this))}return L._then(H,G,void 0,this,void 0)}}}if(Z.isRejected())return q(this),J.e=w,J;else return q(this),w}return $.prototype._passThrough=function(w,Z,V,X){if(typeof w!=="function")return this.then();return this._then(V,X,void 0,new Q(this,Z,w),void 0)},$.prototype.lastly=$.prototype.finally=function(w){return this._passThrough(w,0,W,W)},$.prototype.tap=function(w){return this._passThrough(w,1,W)},Q}});var lK0=O((sj1,mK0)=>{mK0.exports=function($){var I=d1(),U=p3().keys,Y=I.tryCatch,J=I.errorObj;function Q(K,q,H){return function(G){var W=H._boundValue();$:for(var w=0;w{var oK0=d1(),fI1=oK0.maybeWrapAsError,bI1=x5(),iI1=bI1.OperationalError,rK0=p3();function nI1($){return $ instanceof Error&&rK0.getPrototypeOf($)===Error.prototype}var pI1=/^(?:name|message|stack|cause)$/;function cI1($){var I;if(nI1($)){I=new iI1($),I.name=$.name,I.message=$.message,I.stack=$.stack;var U=rK0.keys($);for(var Y=0;Y{aK0.exports=function($,I,U,Y,J){var Q=d1(),K=Q.tryCatch;$.method=function(q){if(typeof q!=="function")throw new $.TypeError("expecting a function but got "+Q.classString(q));return function(){var H=new $(I);H._captureStackTrace(),H._pushContext();var G=K(q).apply(this,arguments),W=H._popContext();return J.checkForgottenReturns(G,W,"Promise.method",H),H._resolveFromSyncValue(G),H}},$.attempt=$.try=function(q){if(typeof q!=="function")return Y("expecting a function but got "+Q.classString(q));var H=new $(I);H._captureStackTrace(),H._pushContext();var G;if(arguments.length>1){J.deprecated("calling Promise.try with more than 1 argument");var W=arguments[1],w=arguments[2];G=Q.isArray(W)?K(q).apply(w,W):K(q).call(w,W)}else G=K(q)();var Z=H._popContext();return J.checkForgottenReturns(G,Z,"Promise.try",H),H._resolveFromSyncValue(G),H},$.prototype._resolveFromSyncValue=function(q){if(q===Q.errorObj)this._rejectCallback(q.e,!1);else this._resolveCallback(q,!0)}}});var $q0=O((IC1,eK0)=>{eK0.exports=function($,I,U,Y){var J=!1,Q=function(G,W){this._reject(W)},K=function(G,W){W.promiseRejectionQueued=!0,W.bindingPromise._then(Q,Q,null,this,G)},q=function(G,W){if((this._bitField&50397184)===0)this._resolveCallback(W.target)},H=function(G,W){if(!W.promiseRejectionQueued)this._reject(G)};$.prototype.bind=function(G){if(!J)J=!0,$.prototype._propagateFrom=Y.propagateFromFunction(),$.prototype._boundValue=Y.boundValueFunction();var W=U(G),w=new $(I);w._propagateFrom(this,1);var Z=this._target();if(w._setBoundTo(W),W instanceof $){var V={promiseRejectionQueued:!1,promise:w,target:Z,bindingPromise:W};Z._then(I,K,void 0,w,V),W._then(q,H,void 0,w,V),w._setOnCancel(W)}else w._resolveCallback(Z);return w},$.prototype._setBoundTo=function(G){if(G!==void 0)this._bitField=this._bitField|2097152,this._boundTo=G;else this._bitField=this._bitField&-2097153},$.prototype._isBound=function(){return(this._bitField&2097152)===2097152},$.bind=function(G,W){return $.resolve(W).bind(G)}}});var Uq0=O((UC1,Iq0)=>{Iq0.exports=function($,I,U,Y){var J=d1(),Q=J.tryCatch,K=J.errorObj,q=$._async;$.prototype.break=$.prototype.cancel=function(){if(!Y.cancellation())return this._warn("cancellation is disabled");var H=this,G=H;while(H._isCancellable()){if(!H._cancelBy(G)){if(G._isFollowing())G._followee().cancel();else G._cancelBranched();break}var W=H._cancellationParent;if(W==null||!W._isCancellable()){if(H._isFollowing())H._followee().cancel();else H._cancelBranched();break}else{if(H._isFollowing())H._followee().cancel();H._setWillBeCancelled(),G=H,H=W}}},$.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},$.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},$.prototype._cancelBy=function(H){if(H===this)return this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0;else if(this._branchHasCancelled(),this._enoughBranchesHaveCancelled())return this._invokeOnCancel(),!0;return!1},$.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled())this._cancel()},$.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled(),q.invoke(this._cancelPromises,this,void 0)},$.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()},$.prototype._unsetOnCancel=function(){this._onCancelField=void 0},$.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},$.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},$.prototype._doInvokeOnCancel=function(H,G){if(J.isArray(H))for(var W=0;W{Yq0.exports=function($){function I(){return this.value}function U(){throw this.reason}$.prototype.return=$.prototype.thenReturn=function(Y){if(Y instanceof $)Y.suppressUnhandledRejections();return this._then(I,void 0,void 0,{value:Y},void 0)},$.prototype.throw=$.prototype.thenThrow=function(Y){return this._then(U,void 0,void 0,{reason:Y},void 0)},$.prototype.catchThrow=function(Y){if(arguments.length<=1)return this._then(void 0,U,void 0,{reason:Y},void 0);else{var J=arguments[1],Q=function(){throw J};return this.caught(Y,Q)}},$.prototype.catchReturn=function(Y){if(arguments.length<=1){if(Y instanceof $)Y.suppressUnhandledRejections();return this._then(void 0,I,void 0,{value:Y},void 0)}else{var J=arguments[1];if(J instanceof $)J.suppressUnhandledRejections();var Q=function(){return J};return this.caught(Y,Q)}}}});var Kq0=O((JC1,Qq0)=>{Qq0.exports=function($){function I(H){if(H!==void 0)H=H._target(),this._bitField=H._bitField,this._settledValueField=H._isFateSealed()?H._settledValue():void 0;else this._bitField=0,this._settledValueField=void 0}I.prototype._settledValue=function(){return this._settledValueField};var U=I.prototype.value=function(){if(!this.isFulfilled())throw TypeError(`cannot get fulfillment value of a non-fulfilled promise +`)};else if(!Q.isNode&&typeof Error().stack==="string")L=function(a,N){console.warn("%c"+a,N?"color: darkorange":"color: red")}}var v0={warnings:F,longStackTraces:!1,cancellation:!1,monitoring:!1};if(P)$.longStackTraces();return{longStackTraces:function(){return v0.longStackTraces},warnings:function(){return v0.warnings},cancellation:function(){return v0.cancellation},monitoring:function(){return v0.monitoring},propagateFromFunction:function(){return c},boundValueFunction:function(){return r},checkForgottenReturns:A0,setBounds:T7,warn:q1,deprecated:j0,CapturedTrace:J$,fireDomEvent:R,fireGlobalEvent:x}}});var dK0=O((sj1,cK0)=>{cK0.exports=function($,I){var U=d1(),Y=$.CancellationError,J=U.errorObj;function Q(w,Z,V){this.promise=w,this.type=Z,this.handler=V,this.called=!1,this.cancelPromise=null}Q.prototype.isFinallyHandler=function(){return this.type===0};function K(w){this.finallyHandler=w}K.prototype._resultCancelled=function(){q(this.finallyHandler)};function q(w,Z){if(w.cancelPromise!=null){if(arguments.length>1)w.cancelPromise._reject(Z);else w.cancelPromise._cancel();return w.cancelPromise=null,!0}return!1}function H(){return W.call(this,this.promise._target()._settledValue())}function G(w){if(q(this,w))return;return J.e=w,J}function W(w){var Z=this.promise,V=this.handler;if(!this.called){this.called=!0;var X=this.isFinallyHandler()?V.call(Z._boundValue()):V.call(Z._boundValue(),w);if(X!==void 0){Z._setReturnedNonUndefined();var L=I(X,Z);if(L instanceof $){if(this.cancelPromise!=null){if(L._isCancelled()){var D=new Y("late cancellation observer");return Z._attachExtraTrace(D),J.e=D,J}else if(L.isPending())L._attachCancellationCallback(new K(this))}return L._then(H,G,void 0,this,void 0)}}}if(Z.isRejected())return q(this),J.e=w,J;else return q(this),w}return $.prototype._passThrough=function(w,Z,V,X){if(typeof w!=="function")return this.then();return this._then(V,X,void 0,new Q(this,Z,w),void 0)},$.prototype.lastly=$.prototype.finally=function(w){return this._passThrough(w,0,W,W)},$.prototype.tap=function(w){return this._passThrough(w,1,W)},Q}});var lK0=O((ej1,mK0)=>{mK0.exports=function($){var I=d1(),U=p3().keys,Y=I.tryCatch,J=I.errorObj;function Q(K,q,H){return function(G){var W=H._boundValue();$:for(var w=0;w{var oK0=d1(),fI1=oK0.maybeWrapAsError,iI1=k5(),bI1=iI1.OperationalError,rK0=p3();function nI1($){return $ instanceof Error&&rK0.getPrototypeOf($)===Error.prototype}var pI1=/^(?:name|message|stack|cause)$/;function cI1($){var I;if(nI1($)){I=new bI1($),I.name=$.name,I.message=$.message,I.stack=$.stack;var U=rK0.keys($);for(var Y=0;Y{aK0.exports=function($,I,U,Y,J){var Q=d1(),K=Q.tryCatch;$.method=function(q){if(typeof q!=="function")throw new $.TypeError("expecting a function but got "+Q.classString(q));return function(){var H=new $(I);H._captureStackTrace(),H._pushContext();var G=K(q).apply(this,arguments),W=H._popContext();return J.checkForgottenReturns(G,W,"Promise.method",H),H._resolveFromSyncValue(G),H}},$.attempt=$.try=function(q){if(typeof q!=="function")return Y("expecting a function but got "+Q.classString(q));var H=new $(I);H._captureStackTrace(),H._pushContext();var G;if(arguments.length>1){J.deprecated("calling Promise.try with more than 1 argument");var W=arguments[1],w=arguments[2];G=Q.isArray(W)?K(q).apply(w,W):K(q).call(w,W)}else G=K(q)();var Z=H._popContext();return J.checkForgottenReturns(G,Z,"Promise.try",H),H._resolveFromSyncValue(G),H},$.prototype._resolveFromSyncValue=function(q){if(q===Q.errorObj)this._rejectCallback(q.e,!1);else this._resolveCallback(q,!0)}}});var $q0=O((UC1,eK0)=>{eK0.exports=function($,I,U,Y){var J=!1,Q=function(G,W){this._reject(W)},K=function(G,W){W.promiseRejectionQueued=!0,W.bindingPromise._then(Q,Q,null,this,G)},q=function(G,W){if((this._bitField&50397184)===0)this._resolveCallback(W.target)},H=function(G,W){if(!W.promiseRejectionQueued)this._reject(G)};$.prototype.bind=function(G){if(!J)J=!0,$.prototype._propagateFrom=Y.propagateFromFunction(),$.prototype._boundValue=Y.boundValueFunction();var W=U(G),w=new $(I);w._propagateFrom(this,1);var Z=this._target();if(w._setBoundTo(W),W instanceof $){var V={promiseRejectionQueued:!1,promise:w,target:Z,bindingPromise:W};Z._then(I,K,void 0,w,V),W._then(q,H,void 0,w,V),w._setOnCancel(W)}else w._resolveCallback(Z);return w},$.prototype._setBoundTo=function(G){if(G!==void 0)this._bitField=this._bitField|2097152,this._boundTo=G;else this._bitField=this._bitField&-2097153},$.prototype._isBound=function(){return(this._bitField&2097152)===2097152},$.bind=function(G,W){return $.resolve(W).bind(G)}}});var Uq0=O((YC1,Iq0)=>{Iq0.exports=function($,I,U,Y){var J=d1(),Q=J.tryCatch,K=J.errorObj,q=$._async;$.prototype.break=$.prototype.cancel=function(){if(!Y.cancellation())return this._warn("cancellation is disabled");var H=this,G=H;while(H._isCancellable()){if(!H._cancelBy(G)){if(G._isFollowing())G._followee().cancel();else G._cancelBranched();break}var W=H._cancellationParent;if(W==null||!W._isCancellable()){if(H._isFollowing())H._followee().cancel();else H._cancelBranched();break}else{if(H._isFollowing())H._followee().cancel();H._setWillBeCancelled(),G=H,H=W}}},$.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},$.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},$.prototype._cancelBy=function(H){if(H===this)return this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0;else if(this._branchHasCancelled(),this._enoughBranchesHaveCancelled())return this._invokeOnCancel(),!0;return!1},$.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled())this._cancel()},$.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled(),q.invoke(this._cancelPromises,this,void 0)},$.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()},$.prototype._unsetOnCancel=function(){this._onCancelField=void 0},$.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},$.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},$.prototype._doInvokeOnCancel=function(H,G){if(J.isArray(H))for(var W=0;W{Yq0.exports=function($){function I(){return this.value}function U(){throw this.reason}$.prototype.return=$.prototype.thenReturn=function(Y){if(Y instanceof $)Y.suppressUnhandledRejections();return this._then(I,void 0,void 0,{value:Y},void 0)},$.prototype.throw=$.prototype.thenThrow=function(Y){return this._then(U,void 0,void 0,{reason:Y},void 0)},$.prototype.catchThrow=function(Y){if(arguments.length<=1)return this._then(void 0,U,void 0,{reason:Y},void 0);else{var J=arguments[1],Q=function(){throw J};return this.caught(Y,Q)}},$.prototype.catchReturn=function(Y){if(arguments.length<=1){if(Y instanceof $)Y.suppressUnhandledRejections();return this._then(void 0,I,void 0,{value:Y},void 0)}else{var J=arguments[1];if(J instanceof $)J.suppressUnhandledRejections();var Q=function(){return J};return this.caught(Y,Q)}}}});var Kq0=O((QC1,Qq0)=>{Qq0.exports=function($){function I(H){if(H!==void 0)H=H._target(),this._bitField=H._bitField,this._settledValueField=H._isFateSealed()?H._settledValue():void 0;else this._bitField=0,this._settledValueField=void 0}I.prototype._settledValue=function(){return this._settledValueField};var U=I.prototype.value=function(){if(!this.isFulfilled())throw TypeError(`cannot get fulfillment value of a non-fulfilled promise See http://goo.gl/MqrFmX `);return this._settledValue()},Y=I.prototype.error=I.prototype.reason=function(){if(!this.isRejected())throw TypeError(`cannot get rejection reason of a non-rejected promise See http://goo.gl/MqrFmX -`);return this._settledValue()},J=I.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},Q=I.prototype.isRejected=function(){return(this._bitField&16777216)!==0},K=I.prototype.isPending=function(){return(this._bitField&50397184)===0},q=I.prototype.isResolved=function(){return(this._bitField&50331648)!==0};I.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},$.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},$.prototype._isCancelled=function(){return this._target().__isCancelled()},$.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},$.prototype.isPending=function(){return K.call(this._target())},$.prototype.isRejected=function(){return Q.call(this._target())},$.prototype.isFulfilled=function(){return J.call(this._target())},$.prototype.isResolved=function(){return q.call(this._target())},$.prototype.value=function(){return U.call(this._target())},$.prototype.reason=function(){var H=this._target();return H._unsetRejectionIsUnhandled(),Y.call(H)},$.prototype._value=function(){return this._settledValue()},$.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},$.PromiseInspection=I}});var Hq0=O((QC1,qq0)=>{qq0.exports=function($,I,U,Y,J,Q){var K=d1(),q=K.canEvaluate,H=K.tryCatch,G=K.errorObj,W;if(q){var w=function(P){return Function("value","holder",` +`);return this._settledValue()},J=I.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},Q=I.prototype.isRejected=function(){return(this._bitField&16777216)!==0},K=I.prototype.isPending=function(){return(this._bitField&50397184)===0},q=I.prototype.isResolved=function(){return(this._bitField&50331648)!==0};I.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},$.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},$.prototype._isCancelled=function(){return this._target().__isCancelled()},$.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},$.prototype.isPending=function(){return K.call(this._target())},$.prototype.isRejected=function(){return Q.call(this._target())},$.prototype.isFulfilled=function(){return J.call(this._target())},$.prototype.isResolved=function(){return q.call(this._target())},$.prototype.value=function(){return U.call(this._target())},$.prototype.reason=function(){var H=this._target();return H._unsetRejectionIsUnhandled(),Y.call(H)},$.prototype._value=function(){return this._settledValue()},$.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},$.PromiseInspection=I}});var Hq0=O((KC1,qq0)=>{qq0.exports=function($,I,U,Y,J,Q){var K=d1(),q=K.canEvaluate,H=K.tryCatch,G=K.errorObj,W;if(q){var w=function(P){return Function("value","holder",` 'use strict'; holder.pIndex = value; holder.checkFulfillment(this); `.replace(/Index/g,P))},Z=function(P){return Function("promise","holder",` 'use strict'; holder.pIndex = promise; - `.replace(/Index/g,P))},V=function(P){var E=Array(P);for(var A=0;A0&&typeof arguments[P]==="function"){if(E=arguments[P],P<=8&&q){var i=new $(Y);i._captureStackTrace();var A=X[P-1],R=new A(E),k=L;for(var y=0;y{Gq0.exports=function($,I,U,Y,J,Q){var K=$._getDomain,q=d1(),H=q.tryCatch,G=q.errorObj,W=$._async;function w(V,X,L,D){this.constructor$(V),this._promise._captureStackTrace();var F=K();this._callback=F===null?X:q.domainBind(F,X),this._preservedValues=D===J?Array(this.length()):null,this._limit=L,this._inFlight=0,this._queue=[],W.invoke(this._asyncInit,this,void 0)}q.inherits(w,I),w.prototype._asyncInit=function(){this._init$(void 0,-2)},w.prototype._init=function(){},w.prototype._promiseFulfilled=function(V,X){var L=this._values,D=this.length(),F=this._preservedValues,P=this._limit;if(X<0){if(X=X*-1-1,L[X]=V,P>=1){if(this._inFlight--,this._drainQueue(),this._isResolved())return!0}}else{if(P>=1&&this._inFlight>=P)return L[X]=V,this._queue.push(X),!1;if(F!==null)F[X]=V;var E=this._promise,A=this._callback,R=E._boundValue();E._pushContext();var k=H(A).call(R,V,X,D),y=E._popContext();if(Q.checkForgottenReturns(k,y,F!==null?"Promise.filter":"Promise.map",E),k===G)return this._reject(k.e),!0;var f=Y(k,this._promise);if(f instanceof $){f=f._target();var j=f._bitField;if((j&50397184)===0){if(P>=1)this._inFlight++;return L[X]=f,f._proxy(this,(X+1)*-1),!1}else if((j&33554432)!==0)k=f._value();else if((j&16777216)!==0)return this._reject(f._reason()),!0;else return this._cancel(),!0}L[X]=k}var p=++this._totalResolved;if(p>=D){if(F!==null)this._filter(L,F);else this._resolve(L);return!0}return!1},w.prototype._drainQueue=function(){var V=this._queue,X=this._limit,L=this._values;while(V.length>0&&this._inFlight=1?F:0,new w(V,X,F,D).promise()}$.prototype.map=function(V,X){return Z(this,V,X,null)},$.map=function(V,X,L,D){return Z(V,X,L,D)}}});var Vq0=O((qC1,wq0)=>{var ig=Object.create;if(ig)tX=ig(null),aX=ig(null),tX[" size"]=aX[" size"]=0;var tX,aX;wq0.exports=function($){var I=d1(),U=I.canEvaluate,Y=I.isIdentifier,J,Q,K=function(V){return Function("ensureMethod",` + `;return j=j.replace(/\[TheName\]/g,f).replace(/\[TheTotal\]/g,P).replace(/\[ThePassedArguments\]/g,y).replace(/\[TheProperties\]/g,R).replace(/\[CancellationCode\]/g,x),Function("tryCatch","errorObj","Promise","async",j)(H,G,$,J)},X=[],L=[],D=[];for(var F=0;F<8;++F)X.push(V(F+1)),L.push(w(F+1)),D.push(Z(F+1));W=function(P){this._reject(P)}}$.join=function(){var P=arguments.length-1,T;if(P>0&&typeof arguments[P]==="function"){if(T=arguments[P],P<=8&&q){var b=new $(Y);b._captureStackTrace();var A=X[P-1],R=new A(T),x=L;for(var y=0;y{Gq0.exports=function($,I,U,Y,J,Q){var K=$._getDomain,q=d1(),H=q.tryCatch,G=q.errorObj,W=$._async;function w(V,X,L,D){this.constructor$(V),this._promise._captureStackTrace();var F=K();this._callback=F===null?X:q.domainBind(F,X),this._preservedValues=D===J?Array(this.length()):null,this._limit=L,this._inFlight=0,this._queue=[],W.invoke(this._asyncInit,this,void 0)}q.inherits(w,I),w.prototype._asyncInit=function(){this._init$(void 0,-2)},w.prototype._init=function(){},w.prototype._promiseFulfilled=function(V,X){var L=this._values,D=this.length(),F=this._preservedValues,P=this._limit;if(X<0){if(X=X*-1-1,L[X]=V,P>=1){if(this._inFlight--,this._drainQueue(),this._isResolved())return!0}}else{if(P>=1&&this._inFlight>=P)return L[X]=V,this._queue.push(X),!1;if(F!==null)F[X]=V;var T=this._promise,A=this._callback,R=T._boundValue();T._pushContext();var x=H(A).call(R,V,X,D),y=T._popContext();if(Q.checkForgottenReturns(x,y,F!==null?"Promise.filter":"Promise.map",T),x===G)return this._reject(x.e),!0;var f=Y(x,this._promise);if(f instanceof $){f=f._target();var j=f._bitField;if((j&50397184)===0){if(P>=1)this._inFlight++;return L[X]=f,f._proxy(this,(X+1)*-1),!1}else if((j&33554432)!==0)x=f._value();else if((j&16777216)!==0)return this._reject(f._reason()),!0;else return this._cancel(),!0}L[X]=x}var p=++this._totalResolved;if(p>=D){if(F!==null)this._filter(L,F);else this._resolve(L);return!0}return!1},w.prototype._drainQueue=function(){var V=this._queue,X=this._limit,L=this._values;while(V.length>0&&this._inFlight=1?F:0,new w(V,X,F,D).promise()}$.prototype.map=function(V,X){return Z(this,V,X,null)},$.map=function(V,X,L,D){return Z(V,X,L,D)}}});var Vq0=O((HC1,wq0)=>{var pg=Object.create;if(pg)aX=pg(null),sX=pg(null),aX[" size"]=sX[" size"]=0;var aX,sX;wq0.exports=function($){var I=d1(),U=I.canEvaluate,Y=I.isIdentifier,J,Q,K=function(V){return Function("ensureMethod",` return function(obj) { 'use strict' var len = this.length; @@ -146,7 +146,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof u4))r `.replace(/methodName/g,V))(G)},q=function(V){return Function("obj",` 'use strict'; return obj.propertyName; - `.replace("propertyName",V))},H=function(V,X,L){var D=L[V];if(typeof D!=="function"){if(!Y(V))return null;if(D=X(V),L[V]=D,L[" size"]++,L[" size"]>512){var F=Object.keys(L);for(var P=0;P<256;++P)delete L[F[P]];L[" size"]=F.length-256}}return D};J=function(V){return H(V,K,tX)},Q=function(V){return H(V,q,aX)};function G(V,X){var L;if(V!=null)L=V[X];if(typeof L!=="function"){var D="Object "+I.classString(V)+" has no method '"+I.toString(X)+"'";throw new $.TypeError(D)}return L}function W(V){var X=this.pop(),L=G(V,X);return L.apply(V,this)}$.prototype.call=function(V){var X=arguments.length,L=Array(Math.max(X-1,0));for(var D=1;D{Zq0.exports=function($,I,U,Y,J,Q){var K=d1(),q=x5().TypeError,H=d1().inherits,G=K.errorObj,W=K.tryCatch,w={};function Z(E){setTimeout(function(){throw E},0)}function V(E){var A=U(E);if(A!==E&&typeof E._isDisposable==="function"&&typeof E._getDisposer==="function"&&E._isDisposable())A._setDisposable(E._getDisposer());return A}function X(E,A){var R=0,k=E.length,y=new $(J);function f(){if(R>=k)return y._fulfill();var j=V(E[R++]);if(j instanceof $&&j._isDisposable()){try{j=U(j._getDisposer().tryDispose(A),E.promise)}catch(p){return Z(p)}if(j instanceof $)return j._then(f,Z,null,null,null)}f()}return f(),y}function L(E,A,R){this._data=E,this._promise=A,this._context=R}L.prototype.data=function(){return this._data},L.prototype.promise=function(){return this._promise},L.prototype.resource=function(){if(this.promise().isFulfilled())return this.promise().value();return w},L.prototype.tryDispose=function(E){var A=this.resource(),R=this._context;if(R!==void 0)R._pushContext();var k=A!==w?this.doDispose(A,E):null;if(R!==void 0)R._popContext();return this._promise._unsetDisposable(),this._data=null,k},L.isDisposer=function(E){return E!=null&&typeof E.resource==="function"&&typeof E.tryDispose==="function"};function D(E,A,R){this.constructor$(E,A,R)}H(D,L),D.prototype.doDispose=function(E,A){var R=this.data();return R.call(E,E,A)};function F(E){if(L.isDisposer(E))return this.resources[this.index]._setDisposable(E),E.promise();return E}function P(E){this.length=E,this.promise=null,this[E-1]=null}P.prototype._resultCancelled=function(){var E=this.length;for(var A=0;A0},$.prototype._getDisposer=function(){return this._disposer},$.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},$.prototype.disposer=function(E){if(typeof E==="function")return new D(E,this,Y());throw new q}}});var Lq0=O((GC1,Xq0)=>{Xq0.exports=function($,I,U){var Y=d1(),J=$.TimeoutError;function Q(w){this.handle=w}Q.prototype._resultCancelled=function(){clearTimeout(this.handle)};var K=function(w){return q(+this).thenReturn(w)},q=$.delay=function(w,Z){var V,X;if(Z!==void 0){if(V=$.resolve(Z)._then(K,null,null,w,void 0),U.cancellation()&&Z instanceof $)V._setOnCancel(Z)}else{if(V=new $(I),X=setTimeout(function(){V._fulfill()},+w),U.cancellation())V._setOnCancel(new Q(X));V._captureStackTrace()}return V._setAsyncGuaranteed(),V};$.prototype.delay=function(w){return q(w,this)};var H=function(w,Z,V){var X;if(typeof Z!=="string")if(Z instanceof Error)X=Z;else X=new J("operation timed out");else X=new J(Z);if(Y.markAsOriginatingFromRejection(X),w._attachExtraTrace(X),w._reject(X),V!=null)V.cancel()};function G(w){return clearTimeout(this.handle),w}function W(w){throw clearTimeout(this.handle),w}$.prototype.timeout=function(w,Z){w=+w;var V,X,L=new Q(setTimeout(function(){if(V.isPending())H(V,Z,X)},w));if(U.cancellation())X=this.then(),V=X._then(G,W,void 0,L,void 0),V._setOnCancel(L);else V=this._then(G,W,void 0,L,void 0);return V}}});var Oq0=O((WC1,Dq0)=>{Dq0.exports=function($,I,U,Y,J,Q){var K=x5(),q=K.TypeError,H=d1(),G=H.errorObj,W=H.tryCatch,w=[];function Z(X,L,D){for(var F=0;F512){var F=Object.keys(L);for(var P=0;P<256;++P)delete L[F[P]];L[" size"]=F.length-256}}return D};J=function(V){return H(V,K,aX)},Q=function(V){return H(V,q,sX)};function G(V,X){var L;if(V!=null)L=V[X];if(typeof L!=="function"){var D="Object "+I.classString(V)+" has no method '"+I.toString(X)+"'";throw new $.TypeError(D)}return L}function W(V){var X=this.pop(),L=G(V,X);return L.apply(V,this)}$.prototype.call=function(V){var X=arguments.length,L=Array(Math.max(X-1,0));for(var D=1;D{Zq0.exports=function($,I,U,Y,J,Q){var K=d1(),q=k5().TypeError,H=d1().inherits,G=K.errorObj,W=K.tryCatch,w={};function Z(T){setTimeout(function(){throw T},0)}function V(T){var A=U(T);if(A!==T&&typeof T._isDisposable==="function"&&typeof T._getDisposer==="function"&&T._isDisposable())A._setDisposable(T._getDisposer());return A}function X(T,A){var R=0,x=T.length,y=new $(J);function f(){if(R>=x)return y._fulfill();var j=V(T[R++]);if(j instanceof $&&j._isDisposable()){try{j=U(j._getDisposer().tryDispose(A),T.promise)}catch(p){return Z(p)}if(j instanceof $)return j._then(f,Z,null,null,null)}f()}return f(),y}function L(T,A,R){this._data=T,this._promise=A,this._context=R}L.prototype.data=function(){return this._data},L.prototype.promise=function(){return this._promise},L.prototype.resource=function(){if(this.promise().isFulfilled())return this.promise().value();return w},L.prototype.tryDispose=function(T){var A=this.resource(),R=this._context;if(R!==void 0)R._pushContext();var x=A!==w?this.doDispose(A,T):null;if(R!==void 0)R._popContext();return this._promise._unsetDisposable(),this._data=null,x},L.isDisposer=function(T){return T!=null&&typeof T.resource==="function"&&typeof T.tryDispose==="function"};function D(T,A,R){this.constructor$(T,A,R)}H(D,L),D.prototype.doDispose=function(T,A){var R=this.data();return R.call(T,T,A)};function F(T){if(L.isDisposer(T))return this.resources[this.index]._setDisposable(T),T.promise();return T}function P(T){this.length=T,this.promise=null,this[T-1]=null}P.prototype._resultCancelled=function(){var T=this.length;for(var A=0;A0},$.prototype._getDisposer=function(){return this._disposer},$.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},$.prototype.disposer=function(T){if(typeof T==="function")return new D(T,this,Y());throw new q}}});var Lq0=O((WC1,Xq0)=>{Xq0.exports=function($,I,U){var Y=d1(),J=$.TimeoutError;function Q(w){this.handle=w}Q.prototype._resultCancelled=function(){clearTimeout(this.handle)};var K=function(w){return q(+this).thenReturn(w)},q=$.delay=function(w,Z){var V,X;if(Z!==void 0){if(V=$.resolve(Z)._then(K,null,null,w,void 0),U.cancellation()&&Z instanceof $)V._setOnCancel(Z)}else{if(V=new $(I),X=setTimeout(function(){V._fulfill()},+w),U.cancellation())V._setOnCancel(new Q(X));V._captureStackTrace()}return V._setAsyncGuaranteed(),V};$.prototype.delay=function(w){return q(w,this)};var H=function(w,Z,V){var X;if(typeof Z!=="string")if(Z instanceof Error)X=Z;else X=new J("operation timed out");else X=new J(Z);if(Y.markAsOriginatingFromRejection(X),w._attachExtraTrace(X),w._reject(X),V!=null)V.cancel()};function G(w){return clearTimeout(this.handle),w}function W(w){throw clearTimeout(this.handle),w}$.prototype.timeout=function(w,Z){w=+w;var V,X,L=new Q(setTimeout(function(){if(V.isPending())H(V,Z,X)},w));if(U.cancellation())X=this.then(),V=X._then(G,W,void 0,L,void 0),V._setOnCancel(L);else V=this._then(G,W,void 0,L,void 0);return V}}});var Oq0=O((wC1,Dq0)=>{Dq0.exports=function($,I,U,Y,J,Q){var K=k5(),q=K.TypeError,H=d1(),G=H.errorObj,W=H.tryCatch,w=[];function Z(X,L,D){for(var F=0;F{Fq0.exports=function($){var I=d1(),U=$._async,Y=I.tryCatch,J=I.errorObj;function Q(H,G){var W=this;if(!I.isArray(H))return K.call(W,H,G);var w=Y(G).apply(W._boundValue(),[null].concat(H));if(w===J)U.throwLater(w.e)}function K(H,G){var W=this,w=W._boundValue(),Z=H===void 0?Y(G).call(w,null):Y(G).call(w,null,H);if(Z===J)U.throwLater(Z.e)}function q(H,G){var W=this;if(!H){var w=Error(H+"");w.cause=H,H=w}var Z=Y(G).call(W._boundValue(),H);if(Z===J)U.throwLater(Z.e)}$.prototype.asCallback=$.prototype.nodeify=function(H,G){if(typeof H=="function"){var W=K;if(G!==void 0&&Object(G).spread)W=Q;this._then(W,q,void 0,this,H)}return this}}});var Aq0=O((VC1,Mq0)=>{Mq0.exports=function($,I){var U={},Y=d1(),J=bg(),Q=Y.withAppended,K=Y.maybeWrapAsError,q=Y.canEvaluate,H=x5().TypeError,G="Async",W={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],Z=new RegExp("^(?:"+w.join("|")+")$"),V=function(b){return Y.isIdentifier(b)&&b.charAt(0)!=="_"&&b!=="constructor"};function X(b){return!Z.test(b)}function L(b){try{return b.__isPromisified__===!0}catch(i){return!1}}function D(b,i,U0){var B=Y.getDataPropertyOrDefault(b,i+U0,W);return B?L(B):!1}function F(b,i,U0){for(var B=0;B{Fq0.exports=function($){var I=d1(),U=$._async,Y=I.tryCatch,J=I.errorObj;function Q(H,G){var W=this;if(!I.isArray(H))return K.call(W,H,G);var w=Y(G).apply(W._boundValue(),[null].concat(H));if(w===J)U.throwLater(w.e)}function K(H,G){var W=this,w=W._boundValue(),Z=H===void 0?Y(G).call(w,null):Y(G).call(w,null,H);if(Z===J)U.throwLater(Z.e)}function q(H,G){var W=this;if(!H){var w=Error(H+"");w.cause=H,H=w}var Z=Y(G).call(W._boundValue(),H);if(Z===J)U.throwLater(Z.e)}$.prototype.asCallback=$.prototype.nodeify=function(H,G){if(typeof H=="function"){var W=K;if(G!==void 0&&Object(G).spread)W=Q;this._then(W,q,void 0,this,H)}return this}}});var Aq0=O((ZC1,Mq0)=>{Mq0.exports=function($,I){var U={},Y=d1(),J=ng(),Q=Y.withAppended,K=Y.maybeWrapAsError,q=Y.canEvaluate,H=k5().TypeError,G="Async",W={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],Z=new RegExp("^(?:"+w.join("|")+")$"),V=function(i){return Y.isIdentifier(i)&&i.charAt(0)!=="_"&&i!=="constructor"};function X(i){return!Z.test(i)}function L(i){try{return i.__isPromisified__===!0}catch(b){return!1}}function D(i,b,U0){var B=Y.getDataPropertyOrDefault(i,b+U0,W);return B?L(B):!1}function F(i,b,U0){for(var B=0;B=U0;--B)i.push(B);for(var B=b+1;B<=3;++B)i.push(B);return i},k=function(b){return Y.filledRange(b,"_arg","")},y=function(b){return Y.filledRange(Math.max(b,3),"_arg","")},f=function(b){if(typeof b.length==="number")return Math.max(Math.min(b.length,1024),0);return 0};A=function(b,i,U0,B,x,c){var r=Math.max(0,f(B)-1),J0=R(r),w0=typeof b==="string"||i===U;function A0(I1){var M0=k(I1).join(", "),Q0=I1>0?", ":"",R0;if(w0)R0=`ret = callback.call(this, {{args}}, nodeback); break; -`;else R0=i===void 0?`ret = callback({{args}}, nodeback); break; +`.replace("%s",b))}}}function P(i,b,U0,B){var k=Y.inheritedDataKeys(i),c=[];for(var r=0;r=U0;--B)b.push(B);for(var B=i+1;B<=3;++B)b.push(B);return b},x=function(i){return Y.filledRange(i,"_arg","")},y=function(i){return Y.filledRange(Math.max(i,3),"_arg","")},f=function(i){if(typeof i.length==="number")return Math.max(Math.min(i.length,1024),0);return 0};A=function(i,b,U0,B,k,c){var r=Math.max(0,f(B)-1),J0=R(r),w0=typeof i==="string"||b===U;function A0(I1){var M0=x(I1).join(", "),Q0=I1>0?", ":"",R0;if(w0)R0=`ret = callback.call(this, {{args}}, nodeback); break; +`;else R0=b===void 0?`ret = callback({{args}}, nodeback); break; `:`ret = callback.call(receiver, {{args}}, nodeback); break; `;return R0.replace("{{args}}",M0).replace(", ",Q0)}function j0(){var I1="";for(var M0=0;M0{Pq0.exports=function($,I,U,Y){var J=d1(),Q=J.isObject,K=p3(),q;if(typeof Map==="function")q=Map;var H=function(){var Z=0,V=0;function X(L,D){this[Z]=L,this[Z+V]=D,Z++}return function(D){V=D.size,Z=0;var F=Array(D.size*2);return D.forEach(X,F),F}}(),G=function(Z){var V=new q,X=Z.length/2|0;for(var L=0;L=this._length){var L;if(this._isMap)L=G(this._values);else{L={};var D=this.length();for(var F=0,P=this.length();F>1};function w(Z){var V,X=U(Z);if(!Q(X))return Y(`cannot await properties of a non-object +`);var r=Y.inheritedDataKeys(i);for(var J0=0;J0{Pq0.exports=function($,I,U,Y){var J=d1(),Q=J.isObject,K=p3(),q;if(typeof Map==="function")q=Map;var H=function(){var Z=0,V=0;function X(L,D){this[Z]=L,this[Z+V]=D,Z++}return function(D){V=D.size,Z=0;var F=Array(D.size*2);return D.forEach(X,F),F}}(),G=function(Z){var V=new q,X=Z.length/2|0;for(var L=0;L=this._length){var L;if(this._isMap)L=G(this._values);else{L={};var D=this.length();for(var F=0,P=this.length();F>1};function w(Z){var V,X=U(Z);if(!Q(X))return Y(`cannot await properties of a non-object See http://goo.gl/MqrFmX -`);else if(X instanceof $)V=X._then($.props,void 0,void 0,void 0,void 0);else V=new W(X).promise();if(X instanceof $)V._propagateFrom(X,2);return V}$.prototype.props=function(){return w(this)},$.props=function(Z){return w(Z)}}});var Bq0=O((zC1,Eq0)=>{Eq0.exports=function($,I,U,Y){var J=d1(),Q=function(q){return q.then(function(H){return K(H,q)})};function K(q,H){var G=U(q);if(G instanceof $)return Q(G);else if(q=J.asArray(q),q===null)return Y("expecting an array or an iterable object but got "+J.classString(q));var W=new $(I);if(H!==void 0)W._propagateFrom(H,3);var{_fulfill:w,_reject:Z}=W;for(var V=0,X=q.length;V{vq0.exports=function($,I,U,Y,J,Q){var K=$._getDomain,q=d1(),H=q.tryCatch;function G(X,L,D,F){this.constructor$(X);var P=K();if(this._fn=P===null?L:q.domainBind(P,L),D!==void 0)D=$.resolve(D),D._attachCancellationCallback(this);if(this._initialValue=D,this._currentCancellable=null,F===J)this._eachValues=Array(this._length);else if(F===0)this._eachValues=null;else this._eachValues=void 0;this._promise._captureStackTrace(),this._init$(void 0,-5)}q.inherits(G,I),G.prototype._gotAccum=function(X){if(this._eachValues!==void 0&&this._eachValues!==null&&X!==J)this._eachValues.push(X)},G.prototype._eachComplete=function(X){if(this._eachValues!==null)this._eachValues.push(X);return this._eachValues},G.prototype._init=function(){},G.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},G.prototype.shouldCopyValues=function(){return!1},G.prototype._resolve=function(X){this._promise._resolveCallback(X),this._values=null},G.prototype._resultCancelled=function(X){if(X===this._initialValue)return this._cancel();if(this._isResolved())return;if(this._resultCancelled$(),this._currentCancellable instanceof $)this._currentCancellable.cancel();if(this._initialValue instanceof $)this._initialValue.cancel()},G.prototype._iterate=function(X){this._values=X;var L,D,F=X.length;if(this._initialValue!==void 0)L=this._initialValue,D=0;else L=$.resolve(X[0]),D=1;if(this._currentCancellable=L,!L.isRejected())for(;D{jq0.exports=function($,I,U){var Y=$.PromiseInspection,J=d1();function Q(K){this.constructor$(K)}J.inherits(Q,I),Q.prototype._promiseResolved=function(K,q){this._values[K]=q;var H=++this._totalResolved;if(H>=this._length)return this._resolve(this._values),!0;return!1},Q.prototype._promiseFulfilled=function(K,q){var H=new Y;return H._bitField=33554432,H._settledValueField=K,this._promiseResolved(q,H)},Q.prototype._promiseRejected=function(K,q){var H=new Y;return H._bitField=16777216,H._settledValueField=K,this._promiseResolved(q,H)},$.settle=function(K){return U.deprecated(".settle()",".reflect()"),new Q(K).promise()},$.prototype.settle=function(){return $.settle(this)}}});var Sq0=O((DC1,_q0)=>{_q0.exports=function($,I,U){var Y=d1(),J=x5().RangeError,Q=x5().AggregateError,K=Y.isArray,q={};function H(W){this.constructor$(W),this._howMany=0,this._unwrap=!1,this._initialized=!1}Y.inherits(H,I),H.prototype._init=function(){if(!this._initialized)return;if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var W=K(this._values);if(!this._isResolved()&&W&&this._howMany>this._canPossiblyFulfill())this._reject(this._getRangeError(this.length()))},H.prototype.init=function(){this._initialized=!0,this._init()},H.prototype.setUnwrap=function(){this._unwrap=!0},H.prototype.howMany=function(){return this._howMany},H.prototype.setHowMany=function(W){this._howMany=W},H.prototype._promiseFulfilled=function(W){if(this._addFulfilled(W),this._fulfilled()===this.howMany()){if(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap)this._resolve(this._values[0]);else this._resolve(this._values);return!0}return!1},H.prototype._promiseRejected=function(W){return this._addRejected(W),this._checkOutcome()},H.prototype._promiseCancelled=function(){if(this._values instanceof $||this._values==null)return this._cancel();return this._addRejected(q),this._checkOutcome()},H.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var W=new Q;for(var w=this.length();w0)this._reject(W);else this._cancel();return!0}return!1},H.prototype._fulfilled=function(){return this._totalResolved},H.prototype._rejected=function(){return this._values.length-this.length()},H.prototype._addRejected=function(W){this._values.push(W)},H.prototype._addFulfilled=function(W){this._values[this._totalResolved++]=W},H.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},H.prototype._getRangeError=function(W){var w="Input array must contain at least "+this._howMany+" items but contains only "+W+" items";return new J(w)},H.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function G(W,w){if((w|0)!==w||w<0)return U(`expecting a positive integer +`);else if(X instanceof $)V=X._then($.props,void 0,void 0,void 0,void 0);else V=new W(X).promise();if(X instanceof $)V._propagateFrom(X,2);return V}$.prototype.props=function(){return w(this)},$.props=function(Z){return w(Z)}}});var Bq0=O((XC1,Eq0)=>{Eq0.exports=function($,I,U,Y){var J=d1(),Q=function(q){return q.then(function(H){return K(H,q)})};function K(q,H){var G=U(q);if(G instanceof $)return Q(G);else if(q=J.asArray(q),q===null)return Y("expecting an array or an iterable object but got "+J.classString(q));var W=new $(I);if(H!==void 0)W._propagateFrom(H,3);var{_fulfill:w,_reject:Z}=W;for(var V=0,X=q.length;V{vq0.exports=function($,I,U,Y,J,Q){var K=$._getDomain,q=d1(),H=q.tryCatch;function G(X,L,D,F){this.constructor$(X);var P=K();if(this._fn=P===null?L:q.domainBind(P,L),D!==void 0)D=$.resolve(D),D._attachCancellationCallback(this);if(this._initialValue=D,this._currentCancellable=null,F===J)this._eachValues=Array(this._length);else if(F===0)this._eachValues=null;else this._eachValues=void 0;this._promise._captureStackTrace(),this._init$(void 0,-5)}q.inherits(G,I),G.prototype._gotAccum=function(X){if(this._eachValues!==void 0&&this._eachValues!==null&&X!==J)this._eachValues.push(X)},G.prototype._eachComplete=function(X){if(this._eachValues!==null)this._eachValues.push(X);return this._eachValues},G.prototype._init=function(){},G.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},G.prototype.shouldCopyValues=function(){return!1},G.prototype._resolve=function(X){this._promise._resolveCallback(X),this._values=null},G.prototype._resultCancelled=function(X){if(X===this._initialValue)return this._cancel();if(this._isResolved())return;if(this._resultCancelled$(),this._currentCancellable instanceof $)this._currentCancellable.cancel();if(this._initialValue instanceof $)this._initialValue.cancel()},G.prototype._iterate=function(X){this._values=X;var L,D,F=X.length;if(this._initialValue!==void 0)L=this._initialValue,D=0;else L=$.resolve(X[0]),D=1;if(this._currentCancellable=L,!L.isRejected())for(;D{jq0.exports=function($,I,U){var Y=$.PromiseInspection,J=d1();function Q(K){this.constructor$(K)}J.inherits(Q,I),Q.prototype._promiseResolved=function(K,q){this._values[K]=q;var H=++this._totalResolved;if(H>=this._length)return this._resolve(this._values),!0;return!1},Q.prototype._promiseFulfilled=function(K,q){var H=new Y;return H._bitField=33554432,H._settledValueField=K,this._promiseResolved(q,H)},Q.prototype._promiseRejected=function(K,q){var H=new Y;return H._bitField=16777216,H._settledValueField=K,this._promiseResolved(q,H)},$.settle=function(K){return U.deprecated(".settle()",".reflect()"),new Q(K).promise()},$.prototype.settle=function(){return $.settle(this)}}});var Sq0=O((OC1,_q0)=>{_q0.exports=function($,I,U){var Y=d1(),J=k5().RangeError,Q=k5().AggregateError,K=Y.isArray,q={};function H(W){this.constructor$(W),this._howMany=0,this._unwrap=!1,this._initialized=!1}Y.inherits(H,I),H.prototype._init=function(){if(!this._initialized)return;if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var W=K(this._values);if(!this._isResolved()&&W&&this._howMany>this._canPossiblyFulfill())this._reject(this._getRangeError(this.length()))},H.prototype.init=function(){this._initialized=!0,this._init()},H.prototype.setUnwrap=function(){this._unwrap=!0},H.prototype.howMany=function(){return this._howMany},H.prototype.setHowMany=function(W){this._howMany=W},H.prototype._promiseFulfilled=function(W){if(this._addFulfilled(W),this._fulfilled()===this.howMany()){if(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap)this._resolve(this._values[0]);else this._resolve(this._values);return!0}return!1},H.prototype._promiseRejected=function(W){return this._addRejected(W),this._checkOutcome()},H.prototype._promiseCancelled=function(){if(this._values instanceof $||this._values==null)return this._cancel();return this._addRejected(q),this._checkOutcome()},H.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var W=new Q;for(var w=this.length();w0)this._reject(W);else this._cancel();return!0}return!1},H.prototype._fulfilled=function(){return this._totalResolved},H.prototype._rejected=function(){return this._values.length-this.length()},H.prototype._addRejected=function(W){this._values.push(W)},H.prototype._addFulfilled=function(W){this._values[this._totalResolved++]=W},H.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},H.prototype._getRangeError=function(W){var w="Input array must contain at least "+this._howMany+" items but contains only "+W+" items";return new J(w)},H.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function G(W,w){if((w|0)!==w||w<0)return U(`expecting a positive integer See http://goo.gl/MqrFmX -`);var Z=new H(W),V=Z.promise();return Z.setHowMany(w),Z.init(),V}$.some=function(W,w){return G(W,w)},$.prototype.some=function(W){return G(this,W)},$._SomePromiseArray=H}});var yq0=O((OC1,gq0)=>{gq0.exports=function($,I){var U=$.map;$.prototype.filter=function(Y,J){return U(this,Y,J,I)},$.filter=function(Y,J,Q){return U(Y,J,Q,I)}}});var uq0=O((FC1,hq0)=>{hq0.exports=function($,I){var{reduce:U,all:Y}=$;function J(){return Y(this)}function Q(K,q){return U(K,q,I,I)}$.prototype.each=function(K){return U(this,K,I,0)._then(J,void 0,void 0,this,void 0)},$.prototype.mapSeries=function(K){return U(this,K,I,I)},$.each=function(K,q){return U(K,q,I,0)._then(J,void 0,void 0,K,void 0)},$.mapSeries=Q}});var kq0=O((NC1,xq0)=>{xq0.exports=function($){var I=$._SomePromiseArray;function U(Y){var J=new I(Y),Q=J.promise();return J.setHowMany(1),J.setUnwrap(),J.init(),Q}$.any=function(Y){return U(Y)},$.prototype.any=function(){return U(this)}}});var fq0=O((MC1,ng)=>{ng.exports=function(){var $=function(){return new w(`circular promise resolution chain +`);var Z=new H(W),V=Z.promise();return Z.setHowMany(w),Z.init(),V}$.some=function(W,w){return G(W,w)},$.prototype.some=function(W){return G(this,W)},$._SomePromiseArray=H}});var yq0=O((FC1,gq0)=>{gq0.exports=function($,I){var U=$.map;$.prototype.filter=function(Y,J){return U(this,Y,J,I)},$.filter=function(Y,J,Q){return U(Y,J,Q,I)}}});var uq0=O((NC1,hq0)=>{hq0.exports=function($,I){var{reduce:U,all:Y}=$;function J(){return Y(this)}function Q(K,q){return U(K,q,I,I)}$.prototype.each=function(K){return U(this,K,I,0)._then(J,void 0,void 0,this,void 0)},$.prototype.mapSeries=function(K){return U(this,K,I,I)},$.each=function(K,q){return U(K,q,I,0)._then(J,void 0,void 0,K,void 0)},$.mapSeries=Q}});var xq0=O((MC1,kq0)=>{kq0.exports=function($){var I=$._SomePromiseArray;function U(Y){var J=new I(Y),Q=J.promise();return J.setHowMany(1),J.setUnwrap(),J.init(),Q}$.any=function(Y){return U(Y)},$.prototype.any=function(){return U(this)}}});var fq0=O((AC1,cg)=>{cg.exports=function(){var $=function(){return new w(`circular promise resolution chain See http://goo.gl/MqrFmX -`)},I=function(){return new S.PromiseInspection(this._target())},U=function(B){return S.reject(new w(B))};function Y(){}var J={},Q=d1(),K;if(Q.isNode)K=function(){var B=process.domain;if(B===void 0)B=null;return B};else K=function(){return null};Q.notEnumerableProp(S,"_getDomain",K);var q=p3(),H=SK0(),G=new H;q.defineProperty(S,"_async",{value:G});var W=x5(),w=S.TypeError=W.TypeError;S.RangeError=W.RangeError;var Z=S.CancellationError=W.CancellationError;S.TimeoutError=W.TimeoutError,S.OperationalError=W.OperationalError,S.RejectionError=W.OperationalError,S.AggregateError=W.AggregateError;var V=function(){},X={},L={},D=xK0()(S,V),F=fK0()(S,V,D,U,Y),P=iK0()(S),E=P.create,A=pK0()(S,P),R=A.CapturedTrace,k=dK0()(S,D),y=lK0()(L),f=bg(),j=Q.errorObj,p=Q.tryCatch;function n(B,x){if(typeof x!=="function")throw new w("expecting a function but got "+Q.classString(x));if(B.constructor!==S)throw new w(`the promise constructor cannot be invoked directly +`)},I=function(){return new S.PromiseInspection(this._target())},U=function(B){return S.reject(new w(B))};function Y(){}var J={},Q=d1(),K;if(Q.isNode)K=function(){var B=process.domain;if(B===void 0)B=null;return B};else K=function(){return null};Q.notEnumerableProp(S,"_getDomain",K);var q=p3(),H=SK0(),G=new H;q.defineProperty(S,"_async",{value:G});var W=k5(),w=S.TypeError=W.TypeError;S.RangeError=W.RangeError;var Z=S.CancellationError=W.CancellationError;S.TimeoutError=W.TimeoutError,S.OperationalError=W.OperationalError,S.RejectionError=W.OperationalError,S.AggregateError=W.AggregateError;var V=function(){},X={},L={},D=kK0()(S,V),F=fK0()(S,V,D,U,Y),P=bK0()(S),T=P.create,A=pK0()(S,P),R=A.CapturedTrace,x=dK0()(S,D),y=lK0()(L),f=ng(),j=Q.errorObj,p=Q.tryCatch;function n(B,k){if(typeof k!=="function")throw new w("expecting a function but got "+Q.classString(k));if(B.constructor!==S)throw new w(`the promise constructor cannot be invoked directly See http://goo.gl/MqrFmX -`)}function S(B){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,B!==V)n(this,B),this._resolveFromExecutor(B);this._promiseCreated(),this._fireEvent("promiseCreated",this)}S.prototype.toString=function(){return"[object Promise]"},S.prototype.caught=S.prototype.catch=function(B){var x=arguments.length;if(x>1){var c=Array(x-1),r=0,J0;for(J0=0;J00&&typeof B!=="function"&&typeof x!=="function"){var c=".then() only accepts functions but was passed: "+Q.classString(B);if(arguments.length>1)c+=", "+Q.classString(x);this._warn(c)}return this._then(B,x,void 0,void 0,void 0)},S.prototype.done=function(B,x){var c=this._then(B,x,void 0,void 0,void 0);c._setIsFinal()},S.prototype.spread=function(B){if(typeof B!=="function")return U("expecting a function but got "+Q.classString(B));return this.all()._then(B,void 0,void 0,X,void 0)},S.prototype.toJSON=function(){var B={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};if(this.isFulfilled())B.fulfillmentValue=this.value(),B.isFulfilled=!0;else if(this.isRejected())B.rejectionReason=this.reason(),B.isRejected=!0;return B},S.prototype.all=function(){if(arguments.length>0)this._warn(".all() was passed arguments but it does not take any");return new F(this).promise()},S.prototype.error=function(B){return this.caught(Q.originatesFromRejection,B)},S.getNewLibraryCopy=ng.exports,S.is=function(B){return B instanceof S},S.fromNode=S.fromCallback=function(B){var x=new S(V);x._captureStackTrace();var c=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,r=p(B)(f(x,c));if(r===j)x._rejectCallback(r.e,!0);if(!x._isFateSealed())x._setAsyncGuaranteed();return x},S.all=function(B){return new F(B).promise()},S.cast=function(B){var x=D(B);if(!(x instanceof S))x=new S(V),x._captureStackTrace(),x._setFulfilled(),x._rejectionHandler0=B;return x},S.resolve=S.fulfilled=S.cast,S.reject=S.rejected=function(B){var x=new S(V);return x._captureStackTrace(),x._rejectCallback(B,!0),x},S.setScheduler=function(B){if(typeof B!=="function")throw new w("expecting a function but got "+Q.classString(B));return G.setScheduler(B)},S.prototype._then=function(B,x,c,r,J0){var w0=J0!==void 0,A0=w0?J0:new S(V),j0=this._target(),q1=j0._bitField;if(!w0){if(A0._propagateFrom(this,3),A0._captureStackTrace(),r===void 0&&(this._bitField&2097152)!==0)if((q1&50397184)!==0)r=this._boundValue();else r=j0===this?void 0:this._boundTo;this._fireEvent("promiseChained",this,A0)}var k0=K();if((q1&50397184)!==0){var I1,M0,Q0=j0._settlePromiseCtx;if((q1&33554432)!==0)M0=j0._rejectionHandler0,I1=B;else if((q1&16777216)!==0)M0=j0._fulfillmentHandler0,I1=x,j0._unsetRejectionIsUnhandled();else Q0=j0._settlePromiseLateCancellationObserver,M0=new Z("late cancellation observer"),j0._attachExtraTrace(M0),I1=x;G.invoke(Q0,j0,{handler:k0===null?I1:typeof I1==="function"&&Q.domainBind(k0,I1),promise:A0,receiver:r,value:M0})}else j0._addCallbacks(B,x,A0,r,k0);return A0},S.prototype._length=function(){return this._bitField&65535},S.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},S.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},S.prototype._setLength=function(B){this._bitField=this._bitField&-65536|B&65535},S.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},S.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},S.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},S.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},S.prototype._isFinal=function(){return(this._bitField&4194304)>0},S.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},S.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},S.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},S.prototype._setAsyncGuaranteed=function(){if(G.hasCustomScheduler())return;this._bitField=this._bitField|134217728},S.prototype._receiverAt=function(B){var x=B===0?this._receiver0:this[B*4-4+3];if(x===J)return;else if(x===void 0&&this._isBound())return this._boundValue();return x},S.prototype._promiseAt=function(B){return this[B*4-4+2]},S.prototype._fulfillmentHandlerAt=function(B){return this[B*4-4+0]},S.prototype._rejectionHandlerAt=function(B){return this[B*4-4+1]},S.prototype._boundValue=function(){},S.prototype._migrateCallback0=function(B){var{_bitField:x,_fulfillmentHandler0:c,_rejectionHandler0:r,_promise0:J0}=B,w0=B._receiverAt(0);if(w0===void 0)w0=J;this._addCallbacks(c,r,J0,w0,null)},S.prototype._migrateCallbackAt=function(B,x){var c=B._fulfillmentHandlerAt(x),r=B._rejectionHandlerAt(x),J0=B._promiseAt(x),w0=B._receiverAt(x);if(w0===void 0)w0=J;this._addCallbacks(c,r,J0,w0,null)},S.prototype._addCallbacks=function(B,x,c,r,J0){var w0=this._length();if(w0>=65531)w0=0,this._setLength(0);if(w0===0){if(this._promise0=c,this._receiver0=r,typeof B==="function")this._fulfillmentHandler0=J0===null?B:Q.domainBind(J0,B);if(typeof x==="function")this._rejectionHandler0=J0===null?x:Q.domainBind(J0,x)}else{var A0=w0*4-4;if(this[A0+2]=c,this[A0+3]=r,typeof B==="function")this[A0+0]=J0===null?B:Q.domainBind(J0,B);if(typeof x==="function")this[A0+1]=J0===null?x:Q.domainBind(J0,x)}return this._setLength(w0+1),w0},S.prototype._proxy=function(B,x){this._addCallbacks(void 0,void 0,x,B,null)},S.prototype._resolveCallback=function(B,x){if((this._bitField&117506048)!==0)return;if(B===this)return this._rejectCallback($(),!1);var c=D(B,this);if(!(c instanceof S))return this._fulfill(B);if(x)this._propagateFrom(c,2);var r=c._target();if(r===this){this._reject($());return}var J0=r._bitField;if((J0&50397184)===0){var w0=this._length();if(w0>0)r._migrateCallback0(this);for(var A0=1;A0>>16)return;if(B===this){var c=$();return this._attachExtraTrace(c),this._reject(c)}if(this._setFulfilled(),this._rejectionHandler0=B,(x&65535)>0)if((x&134217728)!==0)this._settlePromises();else G.settlePromises(this)},S.prototype._reject=function(B){var x=this._bitField;if((x&117506048)>>>16)return;if(this._setRejected(),this._fulfillmentHandler0=B,this._isFinal())return G.fatalError(B,Q.isNode);if((x&65535)>0)G.settlePromises(this);else this._ensurePossibleRejectionHandled()},S.prototype._fulfillPromises=function(B,x){for(var c=1;c0){if((B&16842752)!==0){var c=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,c,B),this._rejectPromises(x,c)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,B),this._fulfillPromises(x,r)}this._setLength(0)}this._clearCancellationData()},S.prototype._settledValue=function(){var B=this._bitField;if((B&33554432)!==0)return this._rejectionHandler0;else if((B&16777216)!==0)return this._fulfillmentHandler0};function b(B){this.promise._resolveCallback(B)}function i(B){this.promise._rejectCallback(B,!1)}S.defer=S.pending=function(){A.deprecated("Promise.defer","new Promise");var B=new S(V);return{promise:B,resolve:b,reject:i}},Q.notEnumerableProp(S,"_makeSelfResolutionError",$),sK0()(S,V,D,U,A),$q0()(S,V,D,A),Uq0()(S,F,U,A),Jq0()(S),Kq0()(S),Hq0()(S,F,D,V,G,K),S.Promise=S,S.version="3.4.7",Wq0()(S,F,U,D,V,A),Vq0()(S),zq0()(S,U,D,E,V,A),Lq0()(S,V,A),Oq0()(S,U,V,D,Y,A),Nq0()(S),Aq0()(S,V),Tq0()(S,F,D,U),Bq0()(S,V,D,U),Rq0()(S,F,U,D,V,A),Cq0()(S,F,A),Sq0()(S,F,U),yq0()(S,V),uq0()(S,V),kq0()(S),Q.toFastProperties(S),Q.toFastProperties(S.prototype);function U0(B){var x=new S(V);x._fulfillmentHandler0=B,x._rejectionHandler0=B,x._promise0=B,x._receiver0=B}return U0({a:1}),U0({b:2}),U0({c:3}),U0(1),U0(function(){}),U0(void 0),U0(!1),U0(new S(V)),A.setBounds(H.firstLineError,Q.lastLineError),S}});var W7=O((AC1,iq0)=>{var bq0;if(typeof Promise<"u")bq0=Promise;function mI1(){try{if(Promise===sX)Promise=bq0}catch($){}return sX}var sX=fq0()();sX.noConflict=mI1;iq0.exports=sX});var JJ=O((PC1,nq0)=>{var YJ=t("buffer").Buffer;if(YJ.from===void 0)YJ.from=function($,I,U){return new YJ($,I,U)},YJ.alloc=YJ.from;nq0.exports=YJ});var cq0=O((TC1,pg)=>{function lI1($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var pq0=A4().Buffer,Eq=t("util");function oI1($,I,U){$.copy(I,U)}pg.exports=function(){function $(){lI1(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return pq0.alloc(0);var Y=pq0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)oI1(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(Eq&&Eq.inspect&&Eq.inspect.custom)pg.exports.prototype[Eq.inspect.custom]=function(){var $=Eq.inspect({length:this.length});return this.constructor.name+" "+$}});var cg=O((EC1,dq0)=>{var eX=M4();function rI1($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)eX.nextTick($L,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,eX.nextTick($L,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)eX.nextTick($L,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,eX.nextTick($L,U,Q)}else if(I)I(Q)}),this}function tI1(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function $L($,I){$.emit("error",I)}dq0.exports={destroy:rI1,undestroy:tI1}});var mg=O((BC1,eq0)=>{var l3=M4();eq0.exports=j4;function lq0($){var I=this;this.next=null,this.entry=null,this.finish=function(){zU1(I,$)}}var aI1=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:l3.nextTick,QJ;j4.WritableState=vq;var oq0=Object.create(l1());oq0.inherits=c0();var sI1={deprecate:d7()},rq0=t("stream"),UL=A4().Buffer,eI1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function $U1($){return UL.from($)}function IU1($){return UL.isBuffer($)||$ instanceof eI1}var tq0=cg();oq0.inherits(j4,rq0);function UU1(){}function vq($,I){QJ=QJ||o3(),$=$||{};var U=I instanceof QJ;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){GU1(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new lq0(this)}vq.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(vq.prototype,"buffer",{get:sI1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var IL;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")IL=Function.prototype[Symbol.hasInstance],Object.defineProperty(j4,Symbol.hasInstance,{value:function($){if(IL.call(this,$))return!0;if(this!==j4)return!1;return $&&$._writableState instanceof vq}});else IL=function($){return $ instanceof this};function j4($){if(QJ=QJ||o3(),!IL.call(j4,this)&&!(this instanceof QJ))return new j4($);if(this._writableState=new vq($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}rq0.call(this)}j4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function YU1($,I){var U=Error("write after end");$.emit("error",U),l3.nextTick(I,U)}function JU1($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),l3.nextTick(Y,Q),J=!1;return J}j4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&IU1($);if(Q&&!UL.isBuffer($))$=$U1($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=UU1;if(Y.ended)YU1(this,U);else if(Q||JU1(this,Y,$,U))Y.pendingcb++,J=KU1(this,Y,Q,$,I,U);return J};j4.prototype.cork=function(){var $=this._writableState;$.corked++};j4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)aq0(this,$)}};j4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function QU1($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=UL.from(I,U);return I}Object.defineProperty(j4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function KU1($,I,U,Y,J,Q){if(!U){var K=QU1(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var $H0=M4(),XU1=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};YH0.exports=k5;var IH0=Object.create(l1());IH0.inherits=c0();var UH0=og(),lg=mg();IH0.inherits(k5,UH0);{YL=XU1(lg.prototype);for(Rq=0;Rq{var tg=A4().Buffer,JH0=tg.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function OU1($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function FU1($){var I=OU1($);if(typeof I!=="string"&&(tg.isEncoding===JH0||!JH0($)))throw Error("Unknown encoding: "+$);return I||$}_U1.StringDecoder=Cq;function Cq($){this.encoding=FU1($);var I;switch(this.encoding){case"utf16le":this.text=EU1,this.end=BU1,I=4;break;case"utf8":this.fillLast=AU1,I=4;break;case"base64":this.text=vU1,this.end=RU1,I=3;break;default:this.write=jU1,this.end=CU1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=tg.allocUnsafe(I)}Cq.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};Cq.prototype.end=TU1;Cq.prototype.text=PU1;Cq.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function rg($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function NU1($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function MU1($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function AU1($){var I=this.lastTotal-this.lastNeed,U=MU1(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function PU1($,I){var U=NU1(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function TU1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function EU1($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function BU1($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function vU1($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function RU1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function jU1($){return $.toString(this.encoding)}function CU1($){return $&&$.length?this.write($):""}});var og=O((CC1,LH0)=>{var qJ=M4();LH0.exports=Y4;var gU1=BU(),_q;Y4.ReadableState=wH0;var jC1=t("events").EventEmitter,HH0=function($,I){return $.listeners(I).length},Uy=t("stream"),Sq=A4().Buffer,yU1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hU1($){return Sq.from($)}function uU1($){return Sq.isBuffer($)||$ instanceof yU1}var GH0=Object.create(l1());GH0.inherits=c0();var sg=t("util"),R1=void 0;if(sg&&sg.debuglog)R1=sg.debuglog("stream");else R1=function(){};var xU1=cq0(),WH0=cg(),KJ;GH0.inherits(Y4,Uy);var eg=["error","close","destroy","pause","resume"];function kU1($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(gU1($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function wH0($,I){_q=_q||o3(),$=$||{};var U=I instanceof _q;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new xU1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!KJ)KJ=ag().StringDecoder;this.decoder=new KJ($.encoding),this.encoding=$.encoding}}function Y4($){if(_q=_q||o3(),!(this instanceof Y4))return new Y4($);if(this._readableState=new wH0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}Uy.call(this)}Object.defineProperty(Y4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});Y4.prototype.destroy=WH0.destroy;Y4.prototype._undestroy=WH0.undestroy;Y4.prototype._destroy=function($,I){this.push(null),I($)};Y4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=Sq.from($,I),I="";Y=!0}}else Y=!0;return VH0(this,$,I,!1,Y)};Y4.prototype.unshift=function($){return VH0(this,$,null,!0,!1)};function VH0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,nU1($,Q);else{var K;if(!J)K=fU1(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==Sq.prototype)I=hU1(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else $y($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)$y($,Q,I,!1);else ZH0($,Q);else $y($,Q,I,!1)}else if(!Y)Q.reading=!1}return bU1(Q)}function $y($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)JL($)}ZH0($,I)}function fU1($,I){var U;if(!uU1(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function bU1($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}Y4.prototype.isPaused=function(){return this._readableState.flowing===!1};Y4.prototype.setEncoding=function($){if(!KJ)KJ=ag().StringDecoder;return this._readableState.decoder=new KJ($),this._readableState.encoding=$,this};var QH0=8388608;function iU1($){if($>=QH0)$=QH0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function KH0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=iU1($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}Y4.prototype.read=function($){R1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(R1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)Iy(this);else JL(this);return null}if($=KH0($,I),$===0&&I.ended){if(I.length===0)Iy(this);return null}var Y=I.needReadable;if(R1("need readable",Y),I.length===0||I.length-$0)J=zH0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)Iy(this)}if(J!==null)this.emit("data",J);return J};function nU1($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,JL($)}function JL($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(R1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)qJ.nextTick(qH0,$);else qH0($)}function qH0($){R1("emit readable"),$.emit("readable"),Yy($)}function ZH0($,I){if(!I.readingMore)I.readingMore=!0,qJ.nextTick(pU1,$,I)}function pU1($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&XH0(Y.pipes,$)!==-1)&&!G)R1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(R1("onerror",F),D(),$.removeListener("error",V),HH0($,"error")===0)$.emit("error",F)}kU1($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){R1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){R1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)R1("pipe resume"),U.resume();return $};function cU1($){return function(){var I=$._readableState;if(R1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&HH0($,"data"))I.flowing=!0,Yy($)}}Y4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=oU1($,I.buffer,I.decoder);return U}function oU1($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function tU1($,I){var U=Sq.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function Iy($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,qJ.nextTick(aU1,I,$)}function aU1($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function XH0($,I){for(var U=0,Y=$.length;U{FH0.exports=f5;var QL=o3(),OH0=Object.create(l1());OH0.inherits=c0();OH0.inherits(f5,QL);function sU1($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{AH0.exports=gq;var NH0=Jy(),MH0=Object.create(l1());MH0.inherits=c0();MH0.inherits(gq,NH0);function gq($){if(!(this instanceof gq))return new gq($);NH0.call(this,$)}gq.prototype._transform=function($,I,U){U(null,$)}});var b5=O((G6,KL)=>{var p8=t("stream");if(process.env.READABLE_STREAM==="disable"&&p8)KL.exports=p8,G6=KL.exports=p8.Readable,G6.Readable=p8.Readable,G6.Writable=p8.Writable,G6.Duplex=p8.Duplex,G6.Transform=p8.Transform,G6.PassThrough=p8.PassThrough,G6.Stream=p8;else G6=KL.exports=og(),G6.Stream=p8||G6,G6.Readable=G6,G6.Writable=mg(),G6.Duplex=o3(),G6.Transform=Jy(),G6.PassThrough=PH0()});var HL=O((gC1,TH0)=>{var r3=t("stream"),Qy=W7(),$Y1=t("util"),qL=JJ(),IY1="function";if(!r3.Writable||!r3.Writable.prototype.destroy)r3=b5();function w7(){if(!(this instanceof w7))return new w7;r3.Duplex.call(this,{decodeStrings:!1,objectMode:!0}),this.buffer=qL.from("");var $=this;$.on("finish",function(){$.finished=!0,$.emit("chunk",!1)})}$Y1.inherits(w7,r3.Duplex);w7.prototype._write=function($,I,U){this.buffer=qL.concat([this.buffer,$]),this.cb=U,this.emit("chunk")};w7.prototype.stream=function($,I){var U=r3.PassThrough(),Y,J=this;function Q(){if(typeof J.cb===IY1){var q=J.cb;return J.cb=void 0,q()}}function K(){var q;if(J.buffer&&J.buffer.length){if(typeof $==="number")q=J.buffer.slice(0,$),J.buffer=J.buffer.slice($),$-=q.length,Y=!$;else{var H=J.buffer.indexOf($);if(H!==-1){if(J.match=H,I)H=H+$.length;q=J.buffer.slice(0,H),J.buffer=J.buffer.slice(H),Y=!0}else{var G=J.buffer.length-$.length;if(G<=0)Q();else q=J.buffer.slice(0,G),J.buffer=J.buffer.slice(G)}}if(q)U.write(q,function(){if(J.buffer.length===0||$.length&&J.buffer.length<=$.length)Q()})}if(!Y){if(J.finished){J.removeListener("chunk",K),J.emit("error",Error("FILE_ENDED"));return}}else J.removeListener("chunk",K),U.end()}return J.on("chunk",K),K(),U};w7.prototype.pull=function($,I){if($===0)return Qy.resolve("");if(!isNaN($)&&this.buffer.length>$){var U=this.buffer.slice(0,$);return this.buffer=this.buffer.slice($),Qy.resolve(U)}var Y=qL.from(""),J=this,Q=r3.Transform();Q._transform=function(H,G,W){Y=qL.concat([Y,H]),W()};var K,q;return new Qy(function(H,G){if(K=G,q=function(W){J.__emittedError=W,G(W)},J.finished)return G(Error("FILE_ENDED"));J.once("error",q),J.stream($,I).on("error",G).pipe(Q).on("finish",function(){H(Y)}).on("error",G)}).finally(function(){J.removeListener("error",K),J.removeListener("error",q)})};w7.prototype._read=function(){};TH0.exports=w7});var BH0=O((yC1,EH0)=>{var yq=t("stream"),UY1=t("util");if(!yq.Writable||!yq.Writable.prototype.destroy)yq=b5();function hq(){if(!(this instanceof hq))return new hq;yq.Transform.call(this)}UY1.inherits(hq,yq.Transform);hq.prototype._transform=function($,I,U){U()};EH0.exports=hq});var WL=O((hC1,vH0)=>{var YY1=W7(),GL=t("stream"),JY1=JJ();if(!GL.Writable||!GL.Writable.prototype.destroy)GL=b5();vH0.exports=function($){return new YY1(function(I,U){var Y=[],J=GL.Transform().on("finish",function(){I(JY1.concat(Y))}).on("error",U);J._transform=function(Q,K,q){Y.push(Q),q()},$.on("error",U).pipe(J)})}});var wL=O((uC1,RH0)=>{var QY1=Aq();RH0.exports=function($,I){var U;while(!U&&$&&$.length){var Y=QY1.parse($).word16lu("signature").word16lu("partsize").word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offset").word64lu("disknum").vars;if(Y.signature===1)U=Y;else $=$.slice(Y.partsize+4)}if(U=U||{},I.compressedSize===4294967295)I.compressedSize=U.compressedSize;if(I.uncompressedSize===4294967295)I.uncompressedSize=U.uncompressedSize;if(I.offsetToLocalFileHeader===4294967295)I.offsetToLocalFileHeader=U.offset;return U}});var VL=O((xC1,jH0)=>{jH0.exports=function(I,U){let Y=I&31,J=I>>5&15,Q=(I>>9&127)+1980,K=U?(U&31)*2:0,q=U?U>>5&63:0,H=U?U>>11:0;return new Date(Date.UTC(Q,J-1,Y,H,q,K))}});var ZL=O((kC1,gH0)=>{var KY1=t("util"),qY1=t("zlib"),uq=t("stream"),xq=Aq(),Ky=W7(),CH0=HL(),HY1=BH0(),GY1=WL(),WY1=wL(),_H0=JJ(),wY1=VL();if(!uq.Writable||!uq.Writable.prototype.destroy)uq=b5();var SH0=_H0.alloc(4);SH0.writeUInt32LE(101010256,0);function w8($){if(!(this instanceof w8))return new w8($);var I=this;I._opts=$||{verbose:!1},CH0.call(I,I._opts),I.on("finish",function(){I.emit("end"),I.emit("close")}),I._readRecord().catch(function(U){if(!I.__emittedError||I.__emittedError!==U)I.emit("error",U)})}KY1.inherits(w8,CH0);w8.prototype._readRecord=function(){var $=this;return $.pull(4).then(function(I){if(I.length===0)return;var U=I.readUInt32LE(0);if(U===875721283)return $._readCrxHeader();if(U===67324752)return $._readFile();else if(U===33639248)return $.reachedCD=!0,$._readCentralDirectoryFileHeader();else if(U===101010256)return $._readEndOfCentralDirectoryRecord();else if($.reachedCD){var Y=!0;return $.pull(SH0,Y).then(function(){return $._readEndOfCentralDirectoryRecord()})}else $.emit("error",Error("invalid signature: 0x"+U.toString(16)))})};w8.prototype._readCrxHeader=function(){var $=this;return $.pull(12).then(function(I){return $.crxHeader=xq.parse(I).word32lu("version").word32lu("pubKeyLength").word32lu("signatureLength").vars,$.pull($.crxHeader.pubKeyLength+$.crxHeader.signatureLength)}).then(function(I){return $.crxHeader.publicKey=I.slice(0,$.crxHeader.pubKeyLength),$.crxHeader.signature=I.slice($.crxHeader.pubKeyLength),$.emit("crx-header",$.crxHeader),$._readRecord()})};w8.prototype._readFile=function(){var $=this;return $.pull(26).then(function(I){var U=xq.parse(I).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;if(U.lastModifiedDateTime=wY1(U.lastModifiedDate,U.lastModifiedTime),$.crxHeader)U.crxHeader=$.crxHeader;return $.pull(U.fileNameLength).then(function(Y){var J=Y.toString("utf8"),Q=uq.PassThrough(),K=!1;if(Q.autodrain=function(){K=!0;var q=Q.pipe(HY1());return q.promise=function(){return new Ky(function(H,G){q.on("finish",H),q.on("error",G)})},q},Q.buffer=function(){return GY1(Q)},Q.path=J,Q.props={},Q.props.path=J,Q.props.pathBuffer=Y,Q.props.flags={isUnicode:(U.flags&2048)!=0},Q.type=U.uncompressedSize===0&&/[\/\\]$/.test(J)?"Directory":"File",$._opts.verbose){if(Q.type==="Directory")console.log(" creating:",J);else if(Q.type==="File")if(U.compressionMethod===0)console.log(" extracting:",J);else console.log(" inflating:",J)}return $.pull(U.extraFieldLength).then(function(q){var H=WY1(q,U);if(Q.vars=U,Q.extra=H,$._opts.forceStream)$.push(Q);else if($.emit("entry",Q),$._readableState.pipesCount||$._readableState.pipes&&$._readableState.pipes.length)$.push(Q);if($._opts.verbose)console.log({filename:J,vars:U,extra:H});var G=!(U.flags&8)||U.compressedSize>0,W;Q.__autodraining=K;var w=U.compressionMethod&&!K?qY1.createInflateRaw():uq.PassThrough();if(G)Q.size=U.uncompressedSize,W=U.compressedSize;else W=_H0.alloc(4),W.writeUInt32LE(134695760,0);return new Ky(function(Z,V){$.stream(W).pipe(w).on("error",function(X){$.emit("error",X)}).pipe(Q).on("finish",function(){return G?$._readRecord().then(Z).catch(V):$._processDataDescriptor(Q).then(Z).catch(V)})})})})})};w8.prototype._processDataDescriptor=function($){var I=this;return I.pull(16).then(function(U){var Y=xq.parse(U).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return $.size=Y.uncompressedSize,I._readRecord()})};w8.prototype._readCentralDirectoryFileHeader=function(){var $=this;return $.pull(42).then(function(I){var U=xq.parse(I).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return $.pull(U.fileNameLength).then(function(Y){return U.fileName=Y.toString("utf8"),$.pull(U.extraFieldLength)}).then(function(Y){return $.pull(U.fileCommentLength)}).then(function(Y){return $._readRecord()})})};w8.prototype._readEndOfCentralDirectoryRecord=function(){var $=this;return $.pull(18).then(function(I){var U=xq.parse(I).word16lu("diskNumber").word16lu("diskStart").word16lu("numberOfRecordsOnDisk").word16lu("numberOfRecords").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return $.pull(U.commentLength).then(function(Y){Y=Y.toString("utf8"),$.end(),$.push(null)})})};w8.prototype.promise=function(){var $=this;return new Ky(function(I,U){$.on("finish",I),$.on("error",U)})};gH0.exports=w8});var hH0=O((fC1,qy)=>{function VY1($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var yH0=A4().Buffer,kq=t("util");function ZY1($,I,U){$.copy(I,U)}qy.exports=function(){function $(){VY1(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return yH0.alloc(0);var Y=yH0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)ZY1(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(kq&&kq.inspect&&kq.inspect.custom)qy.exports.prototype[kq.inspect.custom]=function(){var $=kq.inspect({length:this.length});return this.constructor.name+" "+$}});var Hy=O((bC1,uH0)=>{var zL=M4();function zY1($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)zL.nextTick(XL,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,zL.nextTick(XL,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)zL.nextTick(XL,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,zL.nextTick(XL,U,Q)}else if(I)I(Q)}),this}function XY1(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function XL($,I){$.emit("error",I)}uH0.exports={destroy:zY1,undestroy:XY1}});var Wy=O((iC1,cH0)=>{var t3=M4();cH0.exports=C4;function kH0($){var I=this;this.next=null,this.entry=null,this.finish=function(){gY1(I,$)}}var LY1=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:t3.nextTick,HJ;C4.WritableState=bq;var fH0=Object.create(l1());fH0.inherits=c0();var DY1={deprecate:d7()},bH0=t("stream"),DL=A4().Buffer,OY1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function FY1($){return DL.from($)}function NY1($){return DL.isBuffer($)||$ instanceof OY1}var iH0=Hy();fH0.inherits(C4,bH0);function MY1(){}function bq($,I){HJ=HJ||a3(),$=$||{};var U=I instanceof HJ;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){RY1(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new kH0(this)}bq.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(bq.prototype,"buffer",{get:DY1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var LL;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")LL=Function.prototype[Symbol.hasInstance],Object.defineProperty(C4,Symbol.hasInstance,{value:function($){if(LL.call(this,$))return!0;if(this!==C4)return!1;return $&&$._writableState instanceof bq}});else LL=function($){return $ instanceof this};function C4($){if(HJ=HJ||a3(),!LL.call(C4,this)&&!(this instanceof HJ))return new C4($);if(this._writableState=new bq($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}bH0.call(this)}C4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function AY1($,I){var U=Error("write after end");$.emit("error",U),t3.nextTick(I,U)}function PY1($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),t3.nextTick(Y,Q),J=!1;return J}C4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&NY1($);if(Q&&!DL.isBuffer($))$=FY1($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=MY1;if(Y.ended)AY1(this,U);else if(Q||PY1(this,Y,$,U))Y.pendingcb++,J=EY1(this,Y,Q,$,I,U);return J};C4.prototype.cork=function(){var $=this._writableState;$.corked++};C4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)nH0(this,$)}};C4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function TY1($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=DL.from(I,U);return I}Object.defineProperty(C4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function EY1($,I,U,Y,J,Q){if(!U){var K=TY1(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var dH0=M4(),yY1=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};oH0.exports=i5;var mH0=Object.create(l1());mH0.inherits=c0();var lH0=Vy(),wy=Wy();mH0.inherits(i5,lH0);{OL=yY1(wy.prototype);for(iq=0;iq{var zy=A4().Buffer,rH0=zy.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function xY1($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function kY1($){var I=xY1($);if(typeof I!=="string"&&(zy.isEncoding===rH0||!rH0($)))throw Error("Unknown encoding: "+$);return I||$}tY1.StringDecoder=pq;function pq($){this.encoding=kY1($);var I;switch(this.encoding){case"utf16le":this.text=cY1,this.end=dY1,I=4;break;case"utf8":this.fillLast=iY1,I=4;break;case"base64":this.text=mY1,this.end=lY1,I=3;break;default:this.write=oY1,this.end=rY1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=zy.allocUnsafe(I)}pq.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};pq.prototype.end=pY1;pq.prototype.text=nY1;pq.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function Zy($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function fY1($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function bY1($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function iY1($){var I=this.lastTotal-this.lastNeed,U=bY1(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function nY1($,I){var U=fY1(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function pY1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function cY1($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function dY1($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function mY1($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function lY1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function oY1($){return $.toString(this.encoding)}function rY1($){return $&&$.length?this.write($):""}});var Vy=O((dC1,qG0)=>{var WJ=M4();qG0.exports=J4;var sY1=BU(),cq;J4.ReadableState=UG0;var cC1=t("events").EventEmitter,eH0=function($,I){return $.listeners(I).length},Ny=t("stream"),dq=A4().Buffer,eY1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function $J1($){return dq.from($)}function IJ1($){return dq.isBuffer($)||$ instanceof eY1}var $G0=Object.create(l1());$G0.inherits=c0();var Ly=t("util"),j1=void 0;if(Ly&&Ly.debuglog)j1=Ly.debuglog("stream");else j1=function(){};var UJ1=hH0(),IG0=Hy(),GJ;$G0.inherits(J4,Ny);var Dy=["error","close","destroy","pause","resume"];function YJ1($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(sY1($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function UG0($,I){cq=cq||a3(),$=$||{};var U=I instanceof cq;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new UJ1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!GJ)GJ=Xy().StringDecoder;this.decoder=new GJ($.encoding),this.encoding=$.encoding}}function J4($){if(cq=cq||a3(),!(this instanceof J4))return new J4($);if(this._readableState=new UG0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}Ny.call(this)}Object.defineProperty(J4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});J4.prototype.destroy=IG0.destroy;J4.prototype._undestroy=IG0.undestroy;J4.prototype._destroy=function($,I){this.push(null),I($)};J4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=dq.from($,I),I="";Y=!0}}else Y=!0;return YG0(this,$,I,!1,Y)};J4.prototype.unshift=function($){return YG0(this,$,null,!0,!1)};function YG0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,qJ1($,Q);else{var K;if(!J)K=JJ1(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==dq.prototype)I=$J1(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else Oy($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)Oy($,Q,I,!1);else JG0($,Q);else Oy($,Q,I,!1)}else if(!Y)Q.reading=!1}return QJ1(Q)}function Oy($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)FL($)}JG0($,I)}function JJ1($,I){var U;if(!IJ1(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function QJ1($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}J4.prototype.isPaused=function(){return this._readableState.flowing===!1};J4.prototype.setEncoding=function($){if(!GJ)GJ=Xy().StringDecoder;return this._readableState.decoder=new GJ($),this._readableState.encoding=$,this};var tH0=8388608;function KJ1($){if($>=tH0)$=tH0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function aH0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=KJ1($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}J4.prototype.read=function($){j1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(j1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)Fy(this);else FL(this);return null}if($=aH0($,I),$===0&&I.ended){if(I.length===0)Fy(this);return null}var Y=I.needReadable;if(j1("need readable",Y),I.length===0||I.length-$0)J=QG0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)Fy(this)}if(J!==null)this.emit("data",J);return J};function qJ1($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,FL($)}function FL($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(j1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)WJ.nextTick(sH0,$);else sH0($)}function sH0($){j1("emit readable"),$.emit("readable"),My($)}function JG0($,I){if(!I.readingMore)I.readingMore=!0,WJ.nextTick(HJ1,$,I)}function HJ1($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&KG0(Y.pipes,$)!==-1)&&!G)j1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(j1("onerror",F),D(),$.removeListener("error",V),eH0($,"error")===0)$.emit("error",F)}YJ1($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){j1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){j1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)j1("pipe resume"),U.resume();return $};function GJ1($){return function(){var I=$._readableState;if(j1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&eH0($,"data"))I.flowing=!0,My($)}}J4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=ZJ1($,I.buffer,I.decoder);return U}function ZJ1($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function XJ1($,I){var U=dq.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function Fy($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,WJ.nextTick(LJ1,I,$)}function LJ1($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function KG0($,I){for(var U=0,Y=$.length;U{WG0.exports=n5;var NL=a3(),GG0=Object.create(l1());GG0.inherits=c0();GG0.inherits(n5,NL);function DJ1($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{ZG0.exports=mq;var wG0=Ay(),VG0=Object.create(l1());VG0.inherits=c0();VG0.inherits(mq,wG0);function mq($){if(!(this instanceof mq))return new mq($);wG0.call(this,$)}mq.prototype._transform=function($,I,U){U(null,$)}});var XG0=O((W6,ML)=>{var c8=t("stream");if(process.env.READABLE_STREAM==="disable"&&c8)ML.exports=c8,W6=ML.exports=c8.Readable,W6.Readable=c8.Readable,W6.Writable=c8.Writable,W6.Duplex=c8.Duplex,W6.Transform=c8.Transform,W6.PassThrough=c8.PassThrough,W6.Stream=c8;else W6=ML.exports=Vy(),W6.Stream=c8||W6,W6.Readable=W6,W6.Writable=Wy(),W6.Duplex=a3(),W6.Transform=Ay(),W6.PassThrough=zG0()});var Ey=O((oC1,Ty)=>{var Py=XG0();function wJ($,I,U){if(typeof U>"u")U=I,I=$,$=null;if(Py.Duplex.call(this,$),typeof U.read!=="function")U=new Py.Readable($).wrap(U);this._writable=I,this._readable=U,this._waiting=!1;var Y=this;if(I.once("finish",function(){Y.end()}),this.once("finish",function(){I.end()}),U.on("readable",function(){if(Y._waiting)Y._waiting=!1,Y._read()}),U.once("end",function(){Y.push(null)}),!$||typeof $.bubbleErrors>"u"||$.bubbleErrors)I.on("error",function(J){Y.emit("error",J)}),U.on("error",function(J){Y.emit("error",J)})}wJ.prototype=Object.create(Py.Duplex.prototype,{constructor:{value:wJ}});wJ.prototype._write=function(I,U,Y){this._writable.write(I,U,Y)};wJ.prototype._read=function(){var I,U=0;while((I=this._readable.read())!==null)this.push(I),U++;if(U===0)this._waiting=!0};Ty.exports=function(I,U,Y){return new wJ(I,U,Y)};Ty.exports.DuplexWrapper=wJ});var DG0=O((rC1,LG0)=>{var VJ=t("stream"),FJ1=ZL(),NJ1=Ey(),MJ1=WL();if(!VJ.Writable||!VJ.Writable.prototype.destroy)VJ=b5();function AJ1($,I){var U=VJ.PassThrough({objectMode:!0}),Y=VJ.PassThrough(),J=VJ.Transform({objectMode:!0}),Q=$ instanceof RegExp?$:$&&new RegExp($),K;J._transform=function(H,G,W){if(K||Q&&!Q.exec(H.path))return H.autodrain(),W();else K=!0,q.emit("entry",H),H.on("error",function(w){Y.emit("error",w)}),H.pipe(Y).on("error",function(w){W(w)}).on("finish",function(w){W(null,w)})},U.pipe(FJ1(I)).on("error",function(H){Y.emit("error",H)}).pipe(J).on("error",Object).on("finish",function(){if(!K)Y.emit("error",Error("PATTERN_NOT_FOUND"));else Y.end()});var q=NJ1(U,Y);return q.buffer=function(){return MJ1(Y)},q}LG0.exports=AJ1});var AL=O((tC1,FG0)=>{FG0.exports=V7;var By=t("stream").Stream,PJ1=c0();function V7(){By.call(this)}PJ1(V7,By);V7.prototype.on=function($,I){if($==="ready"&&this.ready)process.nextTick(I.bind(this));else By.prototype.on.call(this,$,I);return this};V7.prototype.abort=function(){this._aborted=!0,this.emit("abort")};V7.prototype.destroy=function(){};V7.prototype.warn=function($,I){var U=this,Y=OG0($,I,U);if(!U.listeners("warn"))console.error(`%s %s +`)}function S(B){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,B!==V)n(this,B),this._resolveFromExecutor(B);this._promiseCreated(),this._fireEvent("promiseCreated",this)}S.prototype.toString=function(){return"[object Promise]"},S.prototype.caught=S.prototype.catch=function(B){var k=arguments.length;if(k>1){var c=Array(k-1),r=0,J0;for(J0=0;J00&&typeof B!=="function"&&typeof k!=="function"){var c=".then() only accepts functions but was passed: "+Q.classString(B);if(arguments.length>1)c+=", "+Q.classString(k);this._warn(c)}return this._then(B,k,void 0,void 0,void 0)},S.prototype.done=function(B,k){var c=this._then(B,k,void 0,void 0,void 0);c._setIsFinal()},S.prototype.spread=function(B){if(typeof B!=="function")return U("expecting a function but got "+Q.classString(B));return this.all()._then(B,void 0,void 0,X,void 0)},S.prototype.toJSON=function(){var B={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};if(this.isFulfilled())B.fulfillmentValue=this.value(),B.isFulfilled=!0;else if(this.isRejected())B.rejectionReason=this.reason(),B.isRejected=!0;return B},S.prototype.all=function(){if(arguments.length>0)this._warn(".all() was passed arguments but it does not take any");return new F(this).promise()},S.prototype.error=function(B){return this.caught(Q.originatesFromRejection,B)},S.getNewLibraryCopy=cg.exports,S.is=function(B){return B instanceof S},S.fromNode=S.fromCallback=function(B){var k=new S(V);k._captureStackTrace();var c=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,r=p(B)(f(k,c));if(r===j)k._rejectCallback(r.e,!0);if(!k._isFateSealed())k._setAsyncGuaranteed();return k},S.all=function(B){return new F(B).promise()},S.cast=function(B){var k=D(B);if(!(k instanceof S))k=new S(V),k._captureStackTrace(),k._setFulfilled(),k._rejectionHandler0=B;return k},S.resolve=S.fulfilled=S.cast,S.reject=S.rejected=function(B){var k=new S(V);return k._captureStackTrace(),k._rejectCallback(B,!0),k},S.setScheduler=function(B){if(typeof B!=="function")throw new w("expecting a function but got "+Q.classString(B));return G.setScheduler(B)},S.prototype._then=function(B,k,c,r,J0){var w0=J0!==void 0,A0=w0?J0:new S(V),j0=this._target(),q1=j0._bitField;if(!w0){if(A0._propagateFrom(this,3),A0._captureStackTrace(),r===void 0&&(this._bitField&2097152)!==0)if((q1&50397184)!==0)r=this._boundValue();else r=j0===this?void 0:this._boundTo;this._fireEvent("promiseChained",this,A0)}var x0=K();if((q1&50397184)!==0){var I1,M0,Q0=j0._settlePromiseCtx;if((q1&33554432)!==0)M0=j0._rejectionHandler0,I1=B;else if((q1&16777216)!==0)M0=j0._fulfillmentHandler0,I1=k,j0._unsetRejectionIsUnhandled();else Q0=j0._settlePromiseLateCancellationObserver,M0=new Z("late cancellation observer"),j0._attachExtraTrace(M0),I1=k;G.invoke(Q0,j0,{handler:x0===null?I1:typeof I1==="function"&&Q.domainBind(x0,I1),promise:A0,receiver:r,value:M0})}else j0._addCallbacks(B,k,A0,r,x0);return A0},S.prototype._length=function(){return this._bitField&65535},S.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},S.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},S.prototype._setLength=function(B){this._bitField=this._bitField&-65536|B&65535},S.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},S.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},S.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},S.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},S.prototype._isFinal=function(){return(this._bitField&4194304)>0},S.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},S.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},S.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},S.prototype._setAsyncGuaranteed=function(){if(G.hasCustomScheduler())return;this._bitField=this._bitField|134217728},S.prototype._receiverAt=function(B){var k=B===0?this._receiver0:this[B*4-4+3];if(k===J)return;else if(k===void 0&&this._isBound())return this._boundValue();return k},S.prototype._promiseAt=function(B){return this[B*4-4+2]},S.prototype._fulfillmentHandlerAt=function(B){return this[B*4-4+0]},S.prototype._rejectionHandlerAt=function(B){return this[B*4-4+1]},S.prototype._boundValue=function(){},S.prototype._migrateCallback0=function(B){var{_bitField:k,_fulfillmentHandler0:c,_rejectionHandler0:r,_promise0:J0}=B,w0=B._receiverAt(0);if(w0===void 0)w0=J;this._addCallbacks(c,r,J0,w0,null)},S.prototype._migrateCallbackAt=function(B,k){var c=B._fulfillmentHandlerAt(k),r=B._rejectionHandlerAt(k),J0=B._promiseAt(k),w0=B._receiverAt(k);if(w0===void 0)w0=J;this._addCallbacks(c,r,J0,w0,null)},S.prototype._addCallbacks=function(B,k,c,r,J0){var w0=this._length();if(w0>=65531)w0=0,this._setLength(0);if(w0===0){if(this._promise0=c,this._receiver0=r,typeof B==="function")this._fulfillmentHandler0=J0===null?B:Q.domainBind(J0,B);if(typeof k==="function")this._rejectionHandler0=J0===null?k:Q.domainBind(J0,k)}else{var A0=w0*4-4;if(this[A0+2]=c,this[A0+3]=r,typeof B==="function")this[A0+0]=J0===null?B:Q.domainBind(J0,B);if(typeof k==="function")this[A0+1]=J0===null?k:Q.domainBind(J0,k)}return this._setLength(w0+1),w0},S.prototype._proxy=function(B,k){this._addCallbacks(void 0,void 0,k,B,null)},S.prototype._resolveCallback=function(B,k){if((this._bitField&117506048)!==0)return;if(B===this)return this._rejectCallback($(),!1);var c=D(B,this);if(!(c instanceof S))return this._fulfill(B);if(k)this._propagateFrom(c,2);var r=c._target();if(r===this){this._reject($());return}var J0=r._bitField;if((J0&50397184)===0){var w0=this._length();if(w0>0)r._migrateCallback0(this);for(var A0=1;A0>>16)return;if(B===this){var c=$();return this._attachExtraTrace(c),this._reject(c)}if(this._setFulfilled(),this._rejectionHandler0=B,(k&65535)>0)if((k&134217728)!==0)this._settlePromises();else G.settlePromises(this)},S.prototype._reject=function(B){var k=this._bitField;if((k&117506048)>>>16)return;if(this._setRejected(),this._fulfillmentHandler0=B,this._isFinal())return G.fatalError(B,Q.isNode);if((k&65535)>0)G.settlePromises(this);else this._ensurePossibleRejectionHandled()},S.prototype._fulfillPromises=function(B,k){for(var c=1;c0){if((B&16842752)!==0){var c=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,c,B),this._rejectPromises(k,c)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,B),this._fulfillPromises(k,r)}this._setLength(0)}this._clearCancellationData()},S.prototype._settledValue=function(){var B=this._bitField;if((B&33554432)!==0)return this._rejectionHandler0;else if((B&16777216)!==0)return this._fulfillmentHandler0};function i(B){this.promise._resolveCallback(B)}function b(B){this.promise._rejectCallback(B,!1)}S.defer=S.pending=function(){A.deprecated("Promise.defer","new Promise");var B=new S(V);return{promise:B,resolve:i,reject:b}},Q.notEnumerableProp(S,"_makeSelfResolutionError",$),sK0()(S,V,D,U,A),$q0()(S,V,D,A),Uq0()(S,F,U,A),Jq0()(S),Kq0()(S),Hq0()(S,F,D,V,G,K),S.Promise=S,S.version="3.4.7",Wq0()(S,F,U,D,V,A),Vq0()(S),zq0()(S,U,D,T,V,A),Lq0()(S,V,A),Oq0()(S,U,V,D,Y,A),Nq0()(S),Aq0()(S,V),Tq0()(S,F,D,U),Bq0()(S,V,D,U),Rq0()(S,F,U,D,V,A),Cq0()(S,F,A),Sq0()(S,F,U),yq0()(S,V),uq0()(S,V),xq0()(S),Q.toFastProperties(S),Q.toFastProperties(S.prototype);function U0(B){var k=new S(V);k._fulfillmentHandler0=B,k._rejectionHandler0=B,k._promise0=B,k._receiver0=B}return U0({a:1}),U0({b:2}),U0({c:3}),U0(1),U0(function(){}),U0(void 0),U0(!1),U0(new S(V)),A.setBounds(H.firstLineError,Q.lastLineError),S}});var W7=O((PC1,bq0)=>{var iq0;if(typeof Promise<"u")iq0=Promise;function mI1(){try{if(Promise===eX)Promise=iq0}catch($){}return eX}var eX=fq0()();eX.noConflict=mI1;bq0.exports=eX});var KJ=O((TC1,nq0)=>{var QJ=t("buffer").Buffer;if(QJ.from===void 0)QJ.from=function($,I,U){return new QJ($,I,U)},QJ.alloc=QJ.from;nq0.exports=QJ});var cq0=O((EC1,dg)=>{function lI1($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var pq0=A4().Buffer,Eq=t("util");function oI1($,I,U){$.copy(I,U)}dg.exports=function(){function $(){lI1(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return pq0.alloc(0);var Y=pq0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)oI1(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(Eq&&Eq.inspect&&Eq.inspect.custom)dg.exports.prototype[Eq.inspect.custom]=function(){var $=Eq.inspect({length:this.length});return this.constructor.name+" "+$}});var mg=O((BC1,dq0)=>{var $L=M4();function rI1($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)$L.nextTick(IL,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,$L.nextTick(IL,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)$L.nextTick(IL,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,$L.nextTick(IL,U,Q)}else if(I)I(Q)}),this}function tI1(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function IL($,I){$.emit("error",I)}dq0.exports={destroy:rI1,undestroy:tI1}});var og=O((vC1,eq0)=>{var l3=M4();eq0.exports=j4;function lq0($){var I=this;this.next=null,this.entry=null,this.finish=function(){zU1(I,$)}}var aI1=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:l3.nextTick,qJ;j4.WritableState=vq;var oq0=Object.create(l1());oq0.inherits=d0();var sI1={deprecate:d7()},rq0=t("stream"),YL=A4().Buffer,eI1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function $U1($){return YL.from($)}function IU1($){return YL.isBuffer($)||$ instanceof eI1}var tq0=mg();oq0.inherits(j4,rq0);function UU1(){}function vq($,I){qJ=qJ||o3(),$=$||{};var U=I instanceof qJ;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){GU1(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new lq0(this)}vq.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(vq.prototype,"buffer",{get:sI1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var UL;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")UL=Function.prototype[Symbol.hasInstance],Object.defineProperty(j4,Symbol.hasInstance,{value:function($){if(UL.call(this,$))return!0;if(this!==j4)return!1;return $&&$._writableState instanceof vq}});else UL=function($){return $ instanceof this};function j4($){if(qJ=qJ||o3(),!UL.call(j4,this)&&!(this instanceof qJ))return new j4($);if(this._writableState=new vq($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}rq0.call(this)}j4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function YU1($,I){var U=Error("write after end");$.emit("error",U),l3.nextTick(I,U)}function JU1($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),l3.nextTick(Y,Q),J=!1;return J}j4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&IU1($);if(Q&&!YL.isBuffer($))$=$U1($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=UU1;if(Y.ended)YU1(this,U);else if(Q||JU1(this,Y,$,U))Y.pendingcb++,J=KU1(this,Y,Q,$,I,U);return J};j4.prototype.cork=function(){var $=this._writableState;$.corked++};j4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)aq0(this,$)}};j4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function QU1($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=YL.from(I,U);return I}Object.defineProperty(j4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function KU1($,I,U,Y,J,Q){if(!U){var K=QU1(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var $H0=M4(),XU1=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};YH0.exports=x5;var IH0=Object.create(l1());IH0.inherits=d0();var UH0=tg(),rg=og();IH0.inherits(x5,UH0);{JL=XU1(rg.prototype);for(Rq=0;Rq{var sg=A4().Buffer,JH0=sg.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function OU1($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function FU1($){var I=OU1($);if(typeof I!=="string"&&(sg.isEncoding===JH0||!JH0($)))throw Error("Unknown encoding: "+$);return I||$}_U1.StringDecoder=Cq;function Cq($){this.encoding=FU1($);var I;switch(this.encoding){case"utf16le":this.text=EU1,this.end=BU1,I=4;break;case"utf8":this.fillLast=AU1,I=4;break;case"base64":this.text=vU1,this.end=RU1,I=3;break;default:this.write=jU1,this.end=CU1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=sg.allocUnsafe(I)}Cq.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};Cq.prototype.end=TU1;Cq.prototype.text=PU1;Cq.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function ag($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function NU1($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function MU1($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function AU1($){var I=this.lastTotal-this.lastNeed,U=MU1(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function PU1($,I){var U=NU1(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function TU1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function EU1($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function BU1($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function vU1($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function RU1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function jU1($){return $.toString(this.encoding)}function CU1($){return $&&$.length?this.write($):""}});var tg=O((_C1,LH0)=>{var GJ=M4();LH0.exports=Y4;var gU1=RU(),_q;Y4.ReadableState=wH0;var CC1=t("events").EventEmitter,HH0=function($,I){return $.listeners(I).length},Jy=t("stream"),Sq=A4().Buffer,yU1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hU1($){return Sq.from($)}function uU1($){return Sq.isBuffer($)||$ instanceof yU1}var GH0=Object.create(l1());GH0.inherits=d0();var $y=t("util"),R1=void 0;if($y&&$y.debuglog)R1=$y.debuglog("stream");else R1=function(){};var kU1=cq0(),WH0=mg(),HJ;GH0.inherits(Y4,Jy);var Iy=["error","close","destroy","pause","resume"];function xU1($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(gU1($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function wH0($,I){_q=_q||o3(),$=$||{};var U=I instanceof _q;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new kU1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!HJ)HJ=eg().StringDecoder;this.decoder=new HJ($.encoding),this.encoding=$.encoding}}function Y4($){if(_q=_q||o3(),!(this instanceof Y4))return new Y4($);if(this._readableState=new wH0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}Jy.call(this)}Object.defineProperty(Y4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});Y4.prototype.destroy=WH0.destroy;Y4.prototype._undestroy=WH0.undestroy;Y4.prototype._destroy=function($,I){this.push(null),I($)};Y4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=Sq.from($,I),I="";Y=!0}}else Y=!0;return VH0(this,$,I,!1,Y)};Y4.prototype.unshift=function($){return VH0(this,$,null,!0,!1)};function VH0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,nU1($,Q);else{var K;if(!J)K=fU1(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==Sq.prototype)I=hU1(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else Uy($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)Uy($,Q,I,!1);else ZH0($,Q);else Uy($,Q,I,!1)}else if(!Y)Q.reading=!1}return iU1(Q)}function Uy($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)QL($)}ZH0($,I)}function fU1($,I){var U;if(!uU1(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function iU1($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}Y4.prototype.isPaused=function(){return this._readableState.flowing===!1};Y4.prototype.setEncoding=function($){if(!HJ)HJ=eg().StringDecoder;return this._readableState.decoder=new HJ($),this._readableState.encoding=$,this};var QH0=8388608;function bU1($){if($>=QH0)$=QH0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function KH0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=bU1($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}Y4.prototype.read=function($){R1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(R1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)Yy(this);else QL(this);return null}if($=KH0($,I),$===0&&I.ended){if(I.length===0)Yy(this);return null}var Y=I.needReadable;if(R1("need readable",Y),I.length===0||I.length-$0)J=zH0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)Yy(this)}if(J!==null)this.emit("data",J);return J};function nU1($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,QL($)}function QL($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(R1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)GJ.nextTick(qH0,$);else qH0($)}function qH0($){R1("emit readable"),$.emit("readable"),Qy($)}function ZH0($,I){if(!I.readingMore)I.readingMore=!0,GJ.nextTick(pU1,$,I)}function pU1($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&XH0(Y.pipes,$)!==-1)&&!G)R1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(R1("onerror",F),D(),$.removeListener("error",V),HH0($,"error")===0)$.emit("error",F)}xU1($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){R1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){R1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)R1("pipe resume"),U.resume();return $};function cU1($){return function(){var I=$._readableState;if(R1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&HH0($,"data"))I.flowing=!0,Qy($)}}Y4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=oU1($,I.buffer,I.decoder);return U}function oU1($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function tU1($,I){var U=Sq.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function Yy($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,GJ.nextTick(aU1,I,$)}function aU1($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function XH0($,I){for(var U=0,Y=$.length;U{FH0.exports=f5;var KL=o3(),OH0=Object.create(l1());OH0.inherits=d0();OH0.inherits(f5,KL);function sU1($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{AH0.exports=gq;var NH0=Ky(),MH0=Object.create(l1());MH0.inherits=d0();MH0.inherits(gq,NH0);function gq($){if(!(this instanceof gq))return new gq($);NH0.call(this,$)}gq.prototype._transform=function($,I,U){U(null,$)}});var i5=O((G6,qL)=>{var p8=t("stream");if(process.env.READABLE_STREAM==="disable"&&p8)qL.exports=p8,G6=qL.exports=p8.Readable,G6.Readable=p8.Readable,G6.Writable=p8.Writable,G6.Duplex=p8.Duplex,G6.Transform=p8.Transform,G6.PassThrough=p8.PassThrough,G6.Stream=p8;else G6=qL.exports=tg(),G6.Stream=p8||G6,G6.Readable=G6,G6.Writable=og(),G6.Duplex=o3(),G6.Transform=Ky(),G6.PassThrough=PH0()});var GL=O((yC1,TH0)=>{var r3=t("stream"),qy=W7(),$Y1=t("util"),HL=KJ(),IY1="function";if(!r3.Writable||!r3.Writable.prototype.destroy)r3=i5();function w7(){if(!(this instanceof w7))return new w7;r3.Duplex.call(this,{decodeStrings:!1,objectMode:!0}),this.buffer=HL.from("");var $=this;$.on("finish",function(){$.finished=!0,$.emit("chunk",!1)})}$Y1.inherits(w7,r3.Duplex);w7.prototype._write=function($,I,U){this.buffer=HL.concat([this.buffer,$]),this.cb=U,this.emit("chunk")};w7.prototype.stream=function($,I){var U=r3.PassThrough(),Y,J=this;function Q(){if(typeof J.cb===IY1){var q=J.cb;return J.cb=void 0,q()}}function K(){var q;if(J.buffer&&J.buffer.length){if(typeof $==="number")q=J.buffer.slice(0,$),J.buffer=J.buffer.slice($),$-=q.length,Y=!$;else{var H=J.buffer.indexOf($);if(H!==-1){if(J.match=H,I)H=H+$.length;q=J.buffer.slice(0,H),J.buffer=J.buffer.slice(H),Y=!0}else{var G=J.buffer.length-$.length;if(G<=0)Q();else q=J.buffer.slice(0,G),J.buffer=J.buffer.slice(G)}}if(q)U.write(q,function(){if(J.buffer.length===0||$.length&&J.buffer.length<=$.length)Q()})}if(!Y){if(J.finished){J.removeListener("chunk",K),J.emit("error",Error("FILE_ENDED"));return}}else J.removeListener("chunk",K),U.end()}return J.on("chunk",K),K(),U};w7.prototype.pull=function($,I){if($===0)return qy.resolve("");if(!isNaN($)&&this.buffer.length>$){var U=this.buffer.slice(0,$);return this.buffer=this.buffer.slice($),qy.resolve(U)}var Y=HL.from(""),J=this,Q=r3.Transform();Q._transform=function(H,G,W){Y=HL.concat([Y,H]),W()};var K,q;return new qy(function(H,G){if(K=G,q=function(W){J.__emittedError=W,G(W)},J.finished)return G(Error("FILE_ENDED"));J.once("error",q),J.stream($,I).on("error",G).pipe(Q).on("finish",function(){H(Y)}).on("error",G)}).finally(function(){J.removeListener("error",K),J.removeListener("error",q)})};w7.prototype._read=function(){};TH0.exports=w7});var BH0=O((hC1,EH0)=>{var yq=t("stream"),UY1=t("util");if(!yq.Writable||!yq.Writable.prototype.destroy)yq=i5();function hq(){if(!(this instanceof hq))return new hq;yq.Transform.call(this)}UY1.inherits(hq,yq.Transform);hq.prototype._transform=function($,I,U){U()};EH0.exports=hq});var wL=O((uC1,vH0)=>{var YY1=W7(),WL=t("stream"),JY1=KJ();if(!WL.Writable||!WL.Writable.prototype.destroy)WL=i5();vH0.exports=function($){return new YY1(function(I,U){var Y=[],J=WL.Transform().on("finish",function(){I(JY1.concat(Y))}).on("error",U);J._transform=function(Q,K,q){Y.push(Q),q()},$.on("error",U).pipe(J)})}});var VL=O((kC1,RH0)=>{var QY1=Aq();RH0.exports=function($,I){var U;while(!U&&$&&$.length){var Y=QY1.parse($).word16lu("signature").word16lu("partsize").word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offset").word64lu("disknum").vars;if(Y.signature===1)U=Y;else $=$.slice(Y.partsize+4)}if(U=U||{},I.compressedSize===4294967295)I.compressedSize=U.compressedSize;if(I.uncompressedSize===4294967295)I.uncompressedSize=U.uncompressedSize;if(I.offsetToLocalFileHeader===4294967295)I.offsetToLocalFileHeader=U.offset;return U}});var ZL=O((xC1,jH0)=>{jH0.exports=function(I,U){let Y=I&31,J=I>>5&15,Q=(I>>9&127)+1980,K=U?(U&31)*2:0,q=U?U>>5&63:0,H=U?U>>11:0;return new Date(Date.UTC(Q,J-1,Y,H,q,K))}});var zL=O((fC1,gH0)=>{var KY1=t("util"),qY1=t("zlib"),uq=t("stream"),kq=Aq(),Hy=W7(),CH0=GL(),HY1=BH0(),GY1=wL(),WY1=VL(),_H0=KJ(),wY1=ZL();if(!uq.Writable||!uq.Writable.prototype.destroy)uq=i5();var SH0=_H0.alloc(4);SH0.writeUInt32LE(101010256,0);function w8($){if(!(this instanceof w8))return new w8($);var I=this;I._opts=$||{verbose:!1},CH0.call(I,I._opts),I.on("finish",function(){I.emit("end"),I.emit("close")}),I._readRecord().catch(function(U){if(!I.__emittedError||I.__emittedError!==U)I.emit("error",U)})}KY1.inherits(w8,CH0);w8.prototype._readRecord=function(){var $=this;return $.pull(4).then(function(I){if(I.length===0)return;var U=I.readUInt32LE(0);if(U===875721283)return $._readCrxHeader();if(U===67324752)return $._readFile();else if(U===33639248)return $.reachedCD=!0,$._readCentralDirectoryFileHeader();else if(U===101010256)return $._readEndOfCentralDirectoryRecord();else if($.reachedCD){var Y=!0;return $.pull(SH0,Y).then(function(){return $._readEndOfCentralDirectoryRecord()})}else $.emit("error",Error("invalid signature: 0x"+U.toString(16)))})};w8.prototype._readCrxHeader=function(){var $=this;return $.pull(12).then(function(I){return $.crxHeader=kq.parse(I).word32lu("version").word32lu("pubKeyLength").word32lu("signatureLength").vars,$.pull($.crxHeader.pubKeyLength+$.crxHeader.signatureLength)}).then(function(I){return $.crxHeader.publicKey=I.slice(0,$.crxHeader.pubKeyLength),$.crxHeader.signature=I.slice($.crxHeader.pubKeyLength),$.emit("crx-header",$.crxHeader),$._readRecord()})};w8.prototype._readFile=function(){var $=this;return $.pull(26).then(function(I){var U=kq.parse(I).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;if(U.lastModifiedDateTime=wY1(U.lastModifiedDate,U.lastModifiedTime),$.crxHeader)U.crxHeader=$.crxHeader;return $.pull(U.fileNameLength).then(function(Y){var J=Y.toString("utf8"),Q=uq.PassThrough(),K=!1;if(Q.autodrain=function(){K=!0;var q=Q.pipe(HY1());return q.promise=function(){return new Hy(function(H,G){q.on("finish",H),q.on("error",G)})},q},Q.buffer=function(){return GY1(Q)},Q.path=J,Q.props={},Q.props.path=J,Q.props.pathBuffer=Y,Q.props.flags={isUnicode:(U.flags&2048)!=0},Q.type=U.uncompressedSize===0&&/[\/\\]$/.test(J)?"Directory":"File",$._opts.verbose){if(Q.type==="Directory")console.log(" creating:",J);else if(Q.type==="File")if(U.compressionMethod===0)console.log(" extracting:",J);else console.log(" inflating:",J)}return $.pull(U.extraFieldLength).then(function(q){var H=WY1(q,U);if(Q.vars=U,Q.extra=H,$._opts.forceStream)$.push(Q);else if($.emit("entry",Q),$._readableState.pipesCount||$._readableState.pipes&&$._readableState.pipes.length)$.push(Q);if($._opts.verbose)console.log({filename:J,vars:U,extra:H});var G=!(U.flags&8)||U.compressedSize>0,W;Q.__autodraining=K;var w=U.compressionMethod&&!K?qY1.createInflateRaw():uq.PassThrough();if(G)Q.size=U.uncompressedSize,W=U.compressedSize;else W=_H0.alloc(4),W.writeUInt32LE(134695760,0);return new Hy(function(Z,V){$.stream(W).pipe(w).on("error",function(X){$.emit("error",X)}).pipe(Q).on("finish",function(){return G?$._readRecord().then(Z).catch(V):$._processDataDescriptor(Q).then(Z).catch(V)})})})})})};w8.prototype._processDataDescriptor=function($){var I=this;return I.pull(16).then(function(U){var Y=kq.parse(U).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return $.size=Y.uncompressedSize,I._readRecord()})};w8.prototype._readCentralDirectoryFileHeader=function(){var $=this;return $.pull(42).then(function(I){var U=kq.parse(I).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return $.pull(U.fileNameLength).then(function(Y){return U.fileName=Y.toString("utf8"),$.pull(U.extraFieldLength)}).then(function(Y){return $.pull(U.fileCommentLength)}).then(function(Y){return $._readRecord()})})};w8.prototype._readEndOfCentralDirectoryRecord=function(){var $=this;return $.pull(18).then(function(I){var U=kq.parse(I).word16lu("diskNumber").word16lu("diskStart").word16lu("numberOfRecordsOnDisk").word16lu("numberOfRecords").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return $.pull(U.commentLength).then(function(Y){Y=Y.toString("utf8"),$.end(),$.push(null)})})};w8.prototype.promise=function(){var $=this;return new Hy(function(I,U){$.on("finish",I),$.on("error",U)})};gH0.exports=w8});var hH0=O((iC1,Gy)=>{function VY1($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var yH0=A4().Buffer,xq=t("util");function ZY1($,I,U){$.copy(I,U)}Gy.exports=function(){function $(){VY1(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return yH0.alloc(0);var Y=yH0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)ZY1(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(xq&&xq.inspect&&xq.inspect.custom)Gy.exports.prototype[xq.inspect.custom]=function(){var $=xq.inspect({length:this.length});return this.constructor.name+" "+$}});var Wy=O((bC1,uH0)=>{var XL=M4();function zY1($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)XL.nextTick(LL,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,XL.nextTick(LL,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)XL.nextTick(LL,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,XL.nextTick(LL,U,Q)}else if(I)I(Q)}),this}function XY1(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function LL($,I){$.emit("error",I)}uH0.exports={destroy:zY1,undestroy:XY1}});var Vy=O((nC1,cH0)=>{var t3=M4();cH0.exports=C4;function xH0($){var I=this;this.next=null,this.entry=null,this.finish=function(){gY1(I,$)}}var LY1=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:t3.nextTick,WJ;C4.WritableState=iq;var fH0=Object.create(l1());fH0.inherits=d0();var DY1={deprecate:d7()},iH0=t("stream"),OL=A4().Buffer,OY1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function FY1($){return OL.from($)}function NY1($){return OL.isBuffer($)||$ instanceof OY1}var bH0=Wy();fH0.inherits(C4,iH0);function MY1(){}function iq($,I){WJ=WJ||a3(),$=$||{};var U=I instanceof WJ;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=$.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){RY1(I,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new xH0(this)}iq.prototype.getBuffer=function(){var I=this.bufferedRequest,U=[];while(I)U.push(I),I=I.next;return U};(function(){try{Object.defineProperty(iq.prototype,"buffer",{get:DY1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var DL;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")DL=Function.prototype[Symbol.hasInstance],Object.defineProperty(C4,Symbol.hasInstance,{value:function($){if(DL.call(this,$))return!0;if(this!==C4)return!1;return $&&$._writableState instanceof iq}});else DL=function($){return $ instanceof this};function C4($){if(WJ=WJ||a3(),!DL.call(C4,this)&&!(this instanceof WJ))return new C4($);if(this._writableState=new iq($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}iH0.call(this)}C4.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function AY1($,I){var U=Error("write after end");$.emit("error",U),t3.nextTick(I,U)}function PY1($,I,U,Y){var J=!0,Q=!1;if(U===null)Q=TypeError("May not write null values to stream");else if(typeof U!=="string"&&U!==void 0&&!I.objectMode)Q=TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),t3.nextTick(Y,Q),J=!1;return J}C4.prototype.write=function($,I,U){var Y=this._writableState,J=!1,Q=!Y.objectMode&&NY1($);if(Q&&!OL.isBuffer($))$=FY1($);if(typeof I==="function")U=I,I=null;if(Q)I="buffer";else if(!I)I=Y.defaultEncoding;if(typeof U!=="function")U=MY1;if(Y.ended)AY1(this,U);else if(Q||PY1(this,Y,$,U))Y.pendingcb++,J=EY1(this,Y,Q,$,I,U);return J};C4.prototype.cork=function(){var $=this._writableState;$.corked++};C4.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)nH0(this,$)}};C4.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=I.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this};function TY1($,I,U){if(!$.objectMode&&$.decodeStrings!==!1&&typeof I==="string")I=OL.from(I,U);return I}Object.defineProperty(C4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function EY1($,I,U,Y,J,Q){if(!U){var K=TY1(I,Y,J);if(Y!==K)U=!0,J="buffer",Y=K}var q=I.objectMode?1:Y.length;I.length+=q;var H=I.length{var dH0=M4(),yY1=Object.keys||function($){var I=[];for(var U in $)I.push(U);return I};oH0.exports=b5;var mH0=Object.create(l1());mH0.inherits=d0();var lH0=zy(),Zy=Vy();mH0.inherits(b5,lH0);{FL=yY1(Zy.prototype);for(bq=0;bq{var Ly=A4().Buffer,rH0=Ly.isEncoding||function($){switch($=""+$,$&&$.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kY1($){if(!$)return"utf8";var I;while(!0)switch($){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return $;default:if(I)return;$=(""+$).toLowerCase(),I=!0}}function xY1($){var I=kY1($);if(typeof I!=="string"&&(Ly.isEncoding===rH0||!rH0($)))throw Error("Unknown encoding: "+$);return I||$}tY1.StringDecoder=pq;function pq($){this.encoding=xY1($);var I;switch(this.encoding){case"utf16le":this.text=cY1,this.end=dY1,I=4;break;case"utf8":this.fillLast=bY1,I=4;break;case"base64":this.text=mY1,this.end=lY1,I=3;break;default:this.write=oY1,this.end=rY1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ly.allocUnsafe(I)}pq.prototype.write=function($){if($.length===0)return"";var I,U;if(this.lastNeed){if(I=this.fillLast($),I===void 0)return"";U=this.lastNeed,this.lastNeed=0}else U=0;if(U<$.length)return I?I+this.text($,U):this.text($,U);return I||""};pq.prototype.end=pY1;pq.prototype.text=nY1;pq.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function Xy($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function fY1($,I,U){var Y=I.length-1;if(Y=0){if(J>0)$.lastNeed=J-1;return J}if(--Y=0){if(J>0)$.lastNeed=J-2;return J}if(--Y=0){if(J>0)if(J===2)J=0;else $.lastNeed=J-3;return J}return 0}function iY1($,I,U){if((I[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return $.lastNeed=2,"�"}}}function bY1($){var I=this.lastTotal-this.lastNeed,U=iY1(this,$,I);if(U!==void 0)return U;if(this.lastNeed<=$.length)return $.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,I,0,$.length),this.lastNeed-=$.length}function nY1($,I){var U=fY1(this,$,I);if(!this.lastNeed)return $.toString("utf8",I);this.lastTotal=U;var Y=$.length-(U-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",I,Y)}function pY1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+"�";return I}function cY1($,I){if(($.length-I)%2===0){var U=$.toString("utf16le",I);if(U){var Y=U.charCodeAt(U.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",I,$.length-1)}function dY1($){var I=$&&$.length?this.write($):"";if(this.lastNeed){var U=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,U)}return I}function mY1($,I){var U=($.length-I)%3;if(U===0)return $.toString("base64",I);if(this.lastNeed=3-U,this.lastTotal=3,U===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",I,$.length-U)}function lY1($){var I=$&&$.length?this.write($):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function oY1($){return $.toString(this.encoding)}function rY1($){return $&&$.length?this.write($):""}});var zy=O((mC1,qG0)=>{var VJ=M4();qG0.exports=J4;var sY1=RU(),cq;J4.ReadableState=UG0;var dC1=t("events").EventEmitter,eH0=function($,I){return $.listeners(I).length},Ay=t("stream"),dq=A4().Buffer,eY1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function $J1($){return dq.from($)}function IJ1($){return dq.isBuffer($)||$ instanceof eY1}var $G0=Object.create(l1());$G0.inherits=d0();var Oy=t("util"),j1=void 0;if(Oy&&Oy.debuglog)j1=Oy.debuglog("stream");else j1=function(){};var UJ1=hH0(),IG0=Wy(),wJ;$G0.inherits(J4,Ay);var Fy=["error","close","destroy","pause","resume"];function YJ1($,I,U){if(typeof $.prependListener==="function")return $.prependListener(I,U);if(!$._events||!$._events[I])$.on(I,U);else if(sY1($._events[I]))$._events[I].unshift(U);else $._events[I]=[U,$._events[I]]}function UG0($,I){cq=cq||a3(),$=$||{};var U=I instanceof cq;if(this.objectMode=!!$.objectMode,U)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:J}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(U&&(J||J===0))this.highWaterMark=J;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new UJ1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!wJ)wJ=Dy().StringDecoder;this.decoder=new wJ($.encoding),this.encoding=$.encoding}}function J4($){if(cq=cq||a3(),!(this instanceof J4))return new J4($);if(this._readableState=new UG0($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}Ay.call(this)}Object.defineProperty(J4.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});J4.prototype.destroy=IG0.destroy;J4.prototype._undestroy=IG0.undestroy;J4.prototype._destroy=function($,I){this.push(null),I($)};J4.prototype.push=function($,I){var U=this._readableState,Y;if(!U.objectMode){if(typeof $==="string"){if(I=I||U.defaultEncoding,I!==U.encoding)$=dq.from($,I),I="";Y=!0}}else Y=!0;return YG0(this,$,I,!1,Y)};J4.prototype.unshift=function($){return YG0(this,$,null,!0,!1)};function YG0($,I,U,Y,J){var Q=$._readableState;if(I===null)Q.reading=!1,qJ1($,Q);else{var K;if(!J)K=JJ1(Q,I);if(K)$.emit("error",K);else if(Q.objectMode||I&&I.length>0){if(typeof I!=="string"&&!Q.objectMode&&Object.getPrototypeOf(I)!==dq.prototype)I=$J1(I);if(Y)if(Q.endEmitted)$.emit("error",Error("stream.unshift() after end event"));else Ny($,Q,I,!0);else if(Q.ended)$.emit("error",Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!U)if(I=Q.decoder.write(I),Q.objectMode||I.length!==0)Ny($,Q,I,!1);else JG0($,Q);else Ny($,Q,I,!1)}else if(!Y)Q.reading=!1}return QJ1(Q)}function Ny($,I,U,Y){if(I.flowing&&I.length===0&&!I.sync)$.emit("data",U),$.read(0);else{if(I.length+=I.objectMode?1:U.length,Y)I.buffer.unshift(U);else I.buffer.push(U);if(I.needReadable)NL($)}JG0($,I)}function JJ1($,I){var U;if(!IJ1(I)&&typeof I!=="string"&&I!==void 0&&!$.objectMode)U=TypeError("Invalid non-string/buffer chunk");return U}function QJ1($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}J4.prototype.isPaused=function(){return this._readableState.flowing===!1};J4.prototype.setEncoding=function($){if(!wJ)wJ=Dy().StringDecoder;return this._readableState.decoder=new wJ($),this._readableState.encoding=$,this};var tH0=8388608;function KJ1($){if($>=tH0)$=tH0;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function aH0($,I){if($<=0||I.length===0&&I.ended)return 0;if(I.objectMode)return 1;if($!==$)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;if($>I.highWaterMark)I.highWaterMark=KJ1($);if($<=I.length)return $;if(!I.ended)return I.needReadable=!0,0;return I.length}J4.prototype.read=function($){j1("read",$),$=parseInt($,10);var I=this._readableState,U=$;if($!==0)I.emittedReadable=!1;if($===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended)){if(j1("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)My(this);else NL(this);return null}if($=aH0($,I),$===0&&I.ended){if(I.length===0)My(this);return null}var Y=I.needReadable;if(j1("need readable",Y),I.length===0||I.length-$0)J=QG0($,I);else J=null;if(J===null)I.needReadable=!0,$=0;else I.length-=$;if(I.length===0){if(!I.ended)I.needReadable=!0;if(U!==$&&I.ended)My(this)}if(J!==null)this.emit("data",J);return J};function qJ1($,I){if(I.ended)return;if(I.decoder){var U=I.decoder.end();if(U&&U.length)I.buffer.push(U),I.length+=I.objectMode?1:U.length}I.ended=!0,NL($)}function NL($){var I=$._readableState;if(I.needReadable=!1,!I.emittedReadable)if(j1("emitReadable",I.flowing),I.emittedReadable=!0,I.sync)VJ.nextTick(sH0,$);else sH0($)}function sH0($){j1("emit readable"),$.emit("readable"),Py($)}function JG0($,I){if(!I.readingMore)I.readingMore=!0,VJ.nextTick(HJ1,$,I)}function HJ1($,I){var U=I.length;while(!I.reading&&!I.flowing&&!I.ended&&I.length1&&KG0(Y.pipes,$)!==-1)&&!G)j1("false write response, pause",Y.awaitDrain),Y.awaitDrain++,w=!0;U.pause()}}function V(F){if(j1("onerror",F),D(),$.removeListener("error",V),eH0($,"error")===0)$.emit("error",F)}YJ1($,"error",V);function X(){$.removeListener("finish",L),D()}$.once("close",X);function L(){j1("onfinish"),$.removeListener("close",X),D()}$.once("finish",L);function D(){j1("unpipe"),U.unpipe($)}if($.emit("pipe",U),!Y.flowing)j1("pipe resume"),U.resume();return $};function GJ1($){return function(){var I=$._readableState;if(j1("pipeOnDrain",I.awaitDrain),I.awaitDrain)I.awaitDrain--;if(I.awaitDrain===0&&eH0($,"data"))I.flowing=!0,Py($)}}J4.prototype.unpipe=function($){var I=this._readableState,U={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1){if($&&$!==I.pipes)return this;if(!$)$=I.pipes;if(I.pipes=null,I.pipesCount=0,I.flowing=!1,$)$.emit("unpipe",this,U);return this}if(!$){var{pipes:Y,pipesCount:J}=I;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Q=0;Q=I.length){if(I.decoder)U=I.buffer.join("");else if(I.buffer.length===1)U=I.buffer.head.data;else U=I.buffer.concat(I.length);I.buffer.clear()}else U=ZJ1($,I.buffer,I.decoder);return U}function ZJ1($,I,U){var Y;if($Q.length?Q.length:$;if(K===Q.length)J+=Q;else J+=Q.slice(0,$);if($-=K,$===0){if(K===Q.length)if(++Y,U.next)I.head=U.next;else I.head=I.tail=null;else I.head=U,U.data=Q.slice(K);break}++Y}return I.length-=Y,J}function XJ1($,I){var U=dq.allocUnsafe($),Y=I.head,J=1;Y.data.copy(U),$-=Y.data.length;while(Y=Y.next){var Q=Y.data,K=$>Q.length?Q.length:$;if(Q.copy(U,U.length-$,0,K),$-=K,$===0){if(K===Q.length)if(++J,Y.next)I.head=Y.next;else I.head=I.tail=null;else I.head=Y,Y.data=Q.slice(K);break}++J}return I.length-=J,U}function My($){var I=$._readableState;if(I.length>0)throw Error('"endReadable()" called on non-empty stream');if(!I.endEmitted)I.ended=!0,VJ.nextTick(LJ1,I,$)}function LJ1($,I){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,I.readable=!1,I.emit("end")}function KG0($,I){for(var U=0,Y=$.length;U{WG0.exports=n5;var ML=a3(),GG0=Object.create(l1());GG0.inherits=d0();GG0.inherits(n5,ML);function DJ1($,I){var U=this._transformState;U.transforming=!1;var Y=U.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(U.writechunk=null,U.writecb=null,I!=null)this.push(I);Y($);var J=this._readableState;if(J.reading=!1,J.needReadable||J.length{ZG0.exports=mq;var wG0=Ty(),VG0=Object.create(l1());VG0.inherits=d0();VG0.inherits(mq,wG0);function mq($){if(!(this instanceof mq))return new mq($);wG0.call(this,$)}mq.prototype._transform=function($,I,U){U(null,$)}});var XG0=O((W6,AL)=>{var c8=t("stream");if(process.env.READABLE_STREAM==="disable"&&c8)AL.exports=c8,W6=AL.exports=c8.Readable,W6.Readable=c8.Readable,W6.Writable=c8.Writable,W6.Duplex=c8.Duplex,W6.Transform=c8.Transform,W6.PassThrough=c8.PassThrough,W6.Stream=c8;else W6=AL.exports=zy(),W6.Stream=c8||W6,W6.Readable=W6,W6.Writable=Vy(),W6.Duplex=a3(),W6.Transform=Ty(),W6.PassThrough=zG0()});var vy=O((rC1,By)=>{var Ey=XG0();function ZJ($,I,U){if(typeof U>"u")U=I,I=$,$=null;if(Ey.Duplex.call(this,$),typeof U.read!=="function")U=new Ey.Readable($).wrap(U);this._writable=I,this._readable=U,this._waiting=!1;var Y=this;if(I.once("finish",function(){Y.end()}),this.once("finish",function(){I.end()}),U.on("readable",function(){if(Y._waiting)Y._waiting=!1,Y._read()}),U.once("end",function(){Y.push(null)}),!$||typeof $.bubbleErrors>"u"||$.bubbleErrors)I.on("error",function(J){Y.emit("error",J)}),U.on("error",function(J){Y.emit("error",J)})}ZJ.prototype=Object.create(Ey.Duplex.prototype,{constructor:{value:ZJ}});ZJ.prototype._write=function(I,U,Y){this._writable.write(I,U,Y)};ZJ.prototype._read=function(){var I,U=0;while((I=this._readable.read())!==null)this.push(I),U++;if(U===0)this._waiting=!0};By.exports=function(I,U,Y){return new ZJ(I,U,Y)};By.exports.DuplexWrapper=ZJ});var DG0=O((tC1,LG0)=>{var zJ=t("stream"),FJ1=zL(),NJ1=vy(),MJ1=wL();if(!zJ.Writable||!zJ.Writable.prototype.destroy)zJ=i5();function AJ1($,I){var U=zJ.PassThrough({objectMode:!0}),Y=zJ.PassThrough(),J=zJ.Transform({objectMode:!0}),Q=$ instanceof RegExp?$:$&&new RegExp($),K;J._transform=function(H,G,W){if(K||Q&&!Q.exec(H.path))return H.autodrain(),W();else K=!0,q.emit("entry",H),H.on("error",function(w){Y.emit("error",w)}),H.pipe(Y).on("error",function(w){W(w)}).on("finish",function(w){W(null,w)})},U.pipe(FJ1(I)).on("error",function(H){Y.emit("error",H)}).pipe(J).on("error",Object).on("finish",function(){if(!K)Y.emit("error",Error("PATTERN_NOT_FOUND"));else Y.end()});var q=NJ1(U,Y);return q.buffer=function(){return MJ1(Y)},q}LG0.exports=AJ1});var PL=O((aC1,FG0)=>{FG0.exports=V7;var Ry=t("stream").Stream,PJ1=d0();function V7(){Ry.call(this)}PJ1(V7,Ry);V7.prototype.on=function($,I){if($==="ready"&&this.ready)process.nextTick(I.bind(this));else Ry.prototype.on.call(this,$,I);return this};V7.prototype.abort=function(){this._aborted=!0,this.emit("abort")};V7.prototype.destroy=function(){};V7.prototype.warn=function($,I){var U=this,Y=OG0($,I,U);if(!U.listeners("warn"))console.error(`%s %s path = %s syscall = %s fstream_type = %s @@ -225,26 +225,26 @@ fstream_class = %s fstream_stack = %s `,I||"UNKNOWN",Y.stack,Y.path,Y.syscall,Y.fstream_type,Y.fstream_path,Y.fstream_unc_path,Y.fstream_class,Y.fstream_stack.join(` -`));else U.emit("warn",Y)};V7.prototype.info=function($,I){this.emit("info",$,I)};V7.prototype.error=function($,I,U){var Y=OG0($,I,this);if(U)throw Y;else this.emit("error",Y)};function OG0($,I,U){if(!($ instanceof Error))$=Error($);if($.code=$.code||I,$.path=$.path||U.path,$.fstream_type=$.fstream_type||U.type,$.fstream_path=$.fstream_path||U.path,U._path!==U.path)$.fstream_unc_path=$.fstream_unc_path||U._path;if(U.linkpath)$.fstream_linkpath=$.fstream_linkpath||U.linkpath;return $.fstream_class=$.fstream_class||U.constructor.name,$.fstream_stack=$.fstream_stack||Error().stack.split(/\n/).slice(3).map(function(Y){return Y.replace(/^ {4}at /,"")}),$}});var lq=O((aC1,NG0)=>{NG0.exports=TJ1;function TJ1($){var I=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"],U;if($.type&&I.indexOf($.type)!==-1)return $[$.type]=!0,$.type;for(var Y=0,J=I.length;Y{MG0.exports=oq;var EJ1=s6(),BJ1=c0(),vy=s3();BJ1(oq,vy);function oq($){var I=this;if(!(I instanceof oq))throw Error("LinkReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="SymbolicLink"&&$.SymbolicLink))throw Error("Non-link type "+$.type);vy.call(I,$)}oq.prototype._stat=function($){var I=this;EJ1.readlink(I._path,function(U,Y){if(U)return I.error(U);I.linkpath=I.props.linkpath=Y,I.emit("linkpath",Y),vy.prototype._stat.call(I,$)})};oq.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var Cy=O((eC1,TG0)=>{TG0.exports=d8;var PG0=s6(),vJ1=c0(),rq=t("path"),jy=s3(),AG0=t("assert").ok;vJ1(d8,jy);function d8($){var I=this;if(!(I instanceof d8))throw Error("DirReader must be called as constructor.");if($.type!=="Directory"||!$.Directory)throw Error("Non-directory type "+$.type);if(I.entries=null,I._index=-1,I._paused=!1,I._length=-1,$.sort)this.sort=$.sort;jy.call(this,$)}d8.prototype._getEntries=function(){var $=this;if($._gotEntries)return;$._gotEntries=!0,PG0.readdir($._path,function(I,U){if(I)return $.error(I);if($.entries=U,$.emit("entries",U),$._paused)$.once("resume",Y);else Y();function Y(){if($._length=$.entries.length,typeof $.sort==="function")$.entries=$.entries.sort($.sort.bind($));$._read()}})};d8.prototype._read=function(){var $=this;if(!$.entries)return $._getEntries();if($._paused||$._currentEntry||$._aborted)return;if($._index++,$._index>=$.entries.length){if(!$._ended)$._ended=!0,$.emit("end"),$.emit("close");return}var I=rq.resolve($._path,$.entries[$._index]);AG0(I!==$._path),AG0($.entries[$._index]),$._currentEntry=I,PG0[$.props.follow?"stat":"lstat"](I,function(U,Y){if(U)return $.error(U);var J=$._proxy||$;Y.path=I,Y.basename=rq.basename(I),Y.dirname=rq.dirname(I);var Q=$.getChildProps.call(J,Y);Q.path=I,Q.basename=rq.basename(I),Q.dirname=rq.dirname(I);var K=jy(Q,Y);$._currentEntry=K,K.on("pause",function(G){if(!$._paused&&!K._disowned)$.pause(G)}),K.on("resume",function(G){if($._paused&&!K._disowned)$.resume(G)}),K.on("stat",function(G){if($.emit("_entryStat",K,G),K._aborted)return;if(K._paused)K.once("resume",function(){$.emit("entryStat",K,G)});else $.emit("entryStat",K,G)}),K.on("ready",function G(){if($._paused)return K.pause($),$.once("resume",G);if(K.type==="Socket")$.emit("socket",K);else $.emitEntry(K)});var q=!1;K.on("close",H),K.on("disown",H);function H(){if(q)return;if(q=!0,$.emit("childEnd",K),$.emit("entryEnd",K),$._currentEntry=null,!$._paused)$._read()}K.on("error",function(G){if(K._swallowErrors)$.warn(G),K.emit("end"),K.emit("close");else $.emit("error",G)}),["child","childEnd","warn"].forEach(function(G){K.on(G,$.emit.bind($,G))})})};d8.prototype.disown=function($){if($.emit("beforeDisown"),$._disowned=!0,$.parent=$.root=null,$===this._currentEntry)this._currentEntry=null;$.emit("disown")};d8.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}};d8.prototype.pause=function($){var I=this;if(I._paused)return;if($=$||I,I._paused=!0,I._currentEntry&&I._currentEntry.pause)I._currentEntry.pause($);I.emit("pause",$)};d8.prototype.resume=function($){var I=this;if(!I._paused)return;if($=$||I,I._paused=!1,I.emit("resume",$),I._paused)return;if(I._currentEntry){if(I._currentEntry.resume)I._currentEntry.resume($)}else I._read()};d8.prototype.emitEntry=function($){this.emit("entry",$),this.emit("child",$)}});var _y=O(($_1,RG0)=>{RG0.exports=e3;var RJ1=s6(),jJ1=c0(),EG0=s3(),BG0={EOF:!0},vG0={CLOSE:!0};jJ1(e3,EG0);function e3($){var I=this;if(!(I instanceof e3))throw Error("FileReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="File"&&$.File))throw Error("Non-file type "+$.type);I._buffer=[],I._bytesEmitted=0,EG0.call(I,$)}e3.prototype._getStream=function(){var $=this,I=$._stream=RJ1.createReadStream($._path,$.props);if($.props.blksize)I.bufferSize=$.props.blksize;I.on("open",$.emit.bind($,"open")),I.on("data",function(U){if($._bytesEmitted+=U.length,!U.length)return;else if($._paused||$._buffer.length)$._buffer.push(U),$._read();else $.emit("data",U)}),I.on("end",function(){if($._paused||$._buffer.length)$._buffer.push(BG0),$._read();else $.emit("end");if($._bytesEmitted!==$.props.size)$.error(`Didn't get expected byte count +`));else U.emit("warn",Y)};V7.prototype.info=function($,I){this.emit("info",$,I)};V7.prototype.error=function($,I,U){var Y=OG0($,I,this);if(U)throw Y;else this.emit("error",Y)};function OG0($,I,U){if(!($ instanceof Error))$=Error($);if($.code=$.code||I,$.path=$.path||U.path,$.fstream_type=$.fstream_type||U.type,$.fstream_path=$.fstream_path||U.path,U._path!==U.path)$.fstream_unc_path=$.fstream_unc_path||U._path;if(U.linkpath)$.fstream_linkpath=$.fstream_linkpath||U.linkpath;return $.fstream_class=$.fstream_class||U.constructor.name,$.fstream_stack=$.fstream_stack||Error().stack.split(/\n/).slice(3).map(function(Y){return Y.replace(/^ {4}at /,"")}),$}});var lq=O((sC1,NG0)=>{NG0.exports=TJ1;function TJ1($){var I=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"],U;if($.type&&I.indexOf($.type)!==-1)return $[$.type]=!0,$.type;for(var Y=0,J=I.length;Y{MG0.exports=oq;var EJ1=s6(),BJ1=d0(),jy=s3();BJ1(oq,jy);function oq($){var I=this;if(!(I instanceof oq))throw Error("LinkReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="SymbolicLink"&&$.SymbolicLink))throw Error("Non-link type "+$.type);jy.call(I,$)}oq.prototype._stat=function($){var I=this;EJ1.readlink(I._path,function(U,Y){if(U)return I.error(U);I.linkpath=I.props.linkpath=Y,I.emit("linkpath",Y),jy.prototype._stat.call(I,$)})};oq.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var Sy=O(($_1,TG0)=>{TG0.exports=d8;var PG0=s6(),vJ1=d0(),rq=t("path"),_y=s3(),AG0=t("assert").ok;vJ1(d8,_y);function d8($){var I=this;if(!(I instanceof d8))throw Error("DirReader must be called as constructor.");if($.type!=="Directory"||!$.Directory)throw Error("Non-directory type "+$.type);if(I.entries=null,I._index=-1,I._paused=!1,I._length=-1,$.sort)this.sort=$.sort;_y.call(this,$)}d8.prototype._getEntries=function(){var $=this;if($._gotEntries)return;$._gotEntries=!0,PG0.readdir($._path,function(I,U){if(I)return $.error(I);if($.entries=U,$.emit("entries",U),$._paused)$.once("resume",Y);else Y();function Y(){if($._length=$.entries.length,typeof $.sort==="function")$.entries=$.entries.sort($.sort.bind($));$._read()}})};d8.prototype._read=function(){var $=this;if(!$.entries)return $._getEntries();if($._paused||$._currentEntry||$._aborted)return;if($._index++,$._index>=$.entries.length){if(!$._ended)$._ended=!0,$.emit("end"),$.emit("close");return}var I=rq.resolve($._path,$.entries[$._index]);AG0(I!==$._path),AG0($.entries[$._index]),$._currentEntry=I,PG0[$.props.follow?"stat":"lstat"](I,function(U,Y){if(U)return $.error(U);var J=$._proxy||$;Y.path=I,Y.basename=rq.basename(I),Y.dirname=rq.dirname(I);var Q=$.getChildProps.call(J,Y);Q.path=I,Q.basename=rq.basename(I),Q.dirname=rq.dirname(I);var K=_y(Q,Y);$._currentEntry=K,K.on("pause",function(G){if(!$._paused&&!K._disowned)$.pause(G)}),K.on("resume",function(G){if($._paused&&!K._disowned)$.resume(G)}),K.on("stat",function(G){if($.emit("_entryStat",K,G),K._aborted)return;if(K._paused)K.once("resume",function(){$.emit("entryStat",K,G)});else $.emit("entryStat",K,G)}),K.on("ready",function G(){if($._paused)return K.pause($),$.once("resume",G);if(K.type==="Socket")$.emit("socket",K);else $.emitEntry(K)});var q=!1;K.on("close",H),K.on("disown",H);function H(){if(q)return;if(q=!0,$.emit("childEnd",K),$.emit("entryEnd",K),$._currentEntry=null,!$._paused)$._read()}K.on("error",function(G){if(K._swallowErrors)$.warn(G),K.emit("end"),K.emit("close");else $.emit("error",G)}),["child","childEnd","warn"].forEach(function(G){K.on(G,$.emit.bind($,G))})})};d8.prototype.disown=function($){if($.emit("beforeDisown"),$._disowned=!0,$.parent=$.root=null,$===this._currentEntry)this._currentEntry=null;$.emit("disown")};d8.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}};d8.prototype.pause=function($){var I=this;if(I._paused)return;if($=$||I,I._paused=!0,I._currentEntry&&I._currentEntry.pause)I._currentEntry.pause($);I.emit("pause",$)};d8.prototype.resume=function($){var I=this;if(!I._paused)return;if($=$||I,I._paused=!1,I.emit("resume",$),I._paused)return;if(I._currentEntry){if(I._currentEntry.resume)I._currentEntry.resume($)}else I._read()};d8.prototype.emitEntry=function($){this.emit("entry",$),this.emit("child",$)}});var gy=O((I_1,RG0)=>{RG0.exports=e3;var RJ1=s6(),jJ1=d0(),EG0=s3(),BG0={EOF:!0},vG0={CLOSE:!0};jJ1(e3,EG0);function e3($){var I=this;if(!(I instanceof e3))throw Error("FileReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="File"&&$.File))throw Error("Non-file type "+$.type);I._buffer=[],I._bytesEmitted=0,EG0.call(I,$)}e3.prototype._getStream=function(){var $=this,I=$._stream=RJ1.createReadStream($._path,$.props);if($.props.blksize)I.bufferSize=$.props.blksize;I.on("open",$.emit.bind($,"open")),I.on("data",function(U){if($._bytesEmitted+=U.length,!U.length)return;else if($._paused||$._buffer.length)$._buffer.push(U),$._read();else $.emit("data",U)}),I.on("end",function(){if($._paused||$._buffer.length)$._buffer.push(BG0),$._read();else $.emit("end");if($._bytesEmitted!==$.props.size)$.error(`Didn't get expected byte count expect: `+$.props.size+` -actual: `+$._bytesEmitted)}),I.on("close",function(){if($._paused||$._buffer.length)$._buffer.push(vG0),$._read();else $.emit("close")}),I.on("error",function(U){$.emit("error",U)}),$._read()};e3.prototype._read=function(){var $=this;if($._paused)return;if(!$._stream)return $._getStream();if($._buffer.length){var I=$._buffer;for(var U=0,Y=I.length;U{CG0.exports=PL;var CJ1=c0(),jG0=s3();CJ1(PL,jG0);function PL($){var I=this;if(!(I instanceof PL))throw Error("SocketReader must be called as constructor.");if(!($.type==="Socket"&&$.Socket))throw Error("Non-socket type "+$.type);jG0.call(I,$)}PL.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var gy=O((U_1,SG0)=>{SG0.exports=$I;var Sy=s3(),_J1=lq(),SJ1=c0(),gJ1=s6();SJ1($I,Sy);function $I($){var I=this;if(!(I instanceof $I))throw Error("ProxyReader must be called as constructor.");I.props=$,I._buffer=[],I.ready=!1,Sy.call(I,$)}$I.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";gJ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=_J1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(Sy(I,J))})};$I.prototype._addProxy=function($){var I=this;if(I._proxyTarget)return I.error("proxy already set");I._proxyTarget=$,$._proxy=I,["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$),$.on("ready",function(){I.ready=!0,I.emit("ready")});var U=I._buffer;I._buffer.length=0,U.forEach(function(Y){$[Y[0]].apply($,Y[1])})};$I.prototype.pause=function(){return this._proxyTarget?this._proxyTarget.pause():!1};$I.prototype.resume=function(){return this._proxyTarget?this._proxyTarget.resume():!1}});var s3=O((Y_1,hG0)=>{hG0.exports=V8;var yJ1=s6(),hJ1=t("stream").Stream,uJ1=c0(),yy=t("path"),hy=lq(),TL=V8.hardLinks={},gG0=AL();uJ1(V8,gG0);var yG0=Ry();function V8($,I){var U=this;if(!(U instanceof V8))return new V8($,I);if(typeof $==="string")$={path:$};var Y,J;if($.type&&typeof $.type==="function")Y=$.type,J=Y;else Y=hy($),J=V8;if(I&&!Y)Y=hy(I),$[Y]=!0,$.type=Y;switch(Y){case"Directory":J=Cy();break;case"Link":case"File":J=_y();break;case"SymbolicLink":J=yG0;break;case"Socket":J=_G0();break;case null:J=gy();break}if(!(U instanceof J))return new J($);if(gG0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.readable=!0,U.writable=!1,U.type=Y,U.props=$,U.depth=$.depth=$.depth||0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=yy.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=$.basename=yy.basename(U.path),U.dirname=$.dirname=yy.dirname(U.path),$.parent=$.root=null,U.size=$.size,U.filter=typeof $.filter==="function"?$.filter:null,$.sort==="alpha")$.sort=xJ1;U._stat(I)}function xJ1($,I){return $===I?0:$.toLowerCase()>I.toLowerCase()?1:$.toLowerCase()I?1:-1}V8.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat";if($)process.nextTick(J.bind(null,null,$));else yJ1[Y](I._path,J);function J(Q,K){if(Q)return I.error(Q);if(Object.keys(K).forEach(function(V){U[V]=K[V]}),I.size!==void 0&&U.size!==I.size)return I.error("incorrect size");I.size=U.size;var q=hy(U),H=U.hardlinks!==!1;if(H&&q!=="Directory"&&U.nlink&&U.nlink>1){var G=U.dev+":"+U.ino;if(TL[G]===I._path||!TL[G])TL[G]=I._path;else q=I.type=I.props.type="Link",I.Link=I.props.Link=!0,I.linkpath=I.props.linkpath=TL[G],I._stat=I._read=yG0.prototype._read}if(I.type&&I.type!==q)I.error("Unexpected type: "+q);if(I.filter){var W=I._proxy||I;if(!I.filter.call(W,W,U)){if(!I._disowned)I.abort(),I.emit("end"),I.emit("close");return}}var w=["_stat","stat","ready"],Z=0;(function V(){if(I._aborted){I.emit("end"),I.emit("close");return}if(I._paused&&I.type!=="Directory"){I.once("resume",V);return}var X=w[Z++];if(!X)return I._read();I.emit(X,U),V()})()}};V8.prototype.pipe=function($){var I=this;if(typeof $.add==="function")I.on("entry",function(U){var Y=$.add(U);if(Y===!1)I.pause()});return hJ1.prototype.pipe.apply(this,arguments)};V8.prototype.pause=function($){if(this._paused=!0,$=$||this,this.emit("pause",$),this._stream)this._stream.pause($)};V8.prototype.resume=function($){if(this._paused=!1,$=$||this,this.emit("resume",$),this._stream)this._stream.resume($);this._read()};V8.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}});var fy=O((J_1,pG0)=>{pG0.exports=ky;ky.sync=nG0;var C1=t("assert"),fG0=t("path"),uG0=t("fs"),ZJ=void 0;try{ZJ=Vq()}catch($){}var bG0=parseInt("666",8),kJ1={nosort:!0,silent:!0},uy=0,tq=process.platform==="win32";function iG0($){var I=["unlink","chmod","stat","lstat","rmdir","readdir"];if(I.forEach(function(U){$[U]=$[U]||uG0[U],U=U+"Sync",$[U]=$[U]||uG0[U]}),$.maxBusyTries=$.maxBusyTries||3,$.emfileWait=$.emfileWait||1000,$.glob===!1)$.disableGlob=!0;if($.disableGlob!==!0&&ZJ===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");$.disableGlob=$.disableGlob||!1,$.glob=$.glob||kJ1}function ky($,I,U){if(typeof I==="function")U=I,I={};C1($,"rimraf: missing path"),C1.equal(typeof $,"string","rimraf: path should be a string"),C1.equal(typeof U,"function","rimraf: callback function required"),C1(I,"rimraf: invalid options argument provided"),C1.equal(typeof I,"object","rimraf: options should be object"),iG0(I);var Y=0,J=null,Q=0;if(I.disableGlob||!ZJ.hasMagic($))return q(null,[$]);I.lstat($,function(H,G){if(!H)return q(null,[$]);ZJ($,I.glob,q)});function K(H){if(J=J||H,--Q===0)U(J)}function q(H,G){if(H)return U(H);if(Q=G.length,Q===0)return U();G.forEach(function(W){xy(W,I,function w(Z){if(Z){if((Z.code==="EBUSY"||Z.code==="ENOTEMPTY"||Z.code==="EPERM")&&Y{Object.defineProperty(cG0,"__esModule",{value:!0});cG0.optsArg=void 0;var vL=t("fs"),iJ1=($)=>{if(!$)$={mode:511};else if(typeof $==="object")$={mode:511,...$};else if(typeof $==="number")$={mode:$};else if(typeof $==="string")$={mode:parseInt($,8)};else throw TypeError("invalid options argument");let I=$,U=$.fs||{};return $.mkdir=$.mkdir||U.mkdir||vL.mkdir,$.mkdirAsync=$.mkdirAsync?$.mkdirAsync:async(Y,J)=>{return new Promise((Q,K)=>I.mkdir(Y,J,(q,H)=>q?K(q):Q(H)))},$.stat=$.stat||U.stat||vL.stat,$.statAsync=$.statAsync?$.statAsync:async(Y)=>new Promise((J,Q)=>I.stat(Y,(K,q)=>K?Q(K):J(q))),$.statSync=$.statSync||U.statSync||vL.statSync,$.mkdirSync=$.mkdirSync||U.mkdirSync||vL.mkdirSync,I};cG0.optsArg=iJ1});var CL=O((oG0)=>{Object.defineProperty(oG0,"__esModule",{value:!0});oG0.mkdirpManual=oG0.mkdirpManualSync=void 0;var mG0=t("path"),lG0=aq(),nJ1=($,I,U)=>{let Y=(0,mG0.dirname)($),J={...(0,lG0.optsArg)(I),recursive:!1};if(Y===$)try{return J.mkdirSync($,J)}catch(Q){let K=Q;if(K&&K.code!=="EISDIR")throw Q;return}try{return J.mkdirSync($,J),U||$}catch(Q){let K=Q;if(K&&K.code==="ENOENT")return oG0.mkdirpManualSync($,J,oG0.mkdirpManualSync(Y,J,U));if(K&&K.code!=="EEXIST"&&K&&K.code!=="EROFS")throw Q;try{if(!J.statSync($).isDirectory())throw Q}catch(q){throw Q}}};oG0.mkdirpManualSync=nJ1;oG0.mkdirpManual=Object.assign(async($,I,U)=>{let Y=(0,lG0.optsArg)(I);Y.recursive=!1;let J=(0,mG0.dirname)($);if(J===$)return Y.mkdirAsync($,Y).catch((Q)=>{let K=Q;if(K&&K.code!=="EISDIR")throw Q});return Y.mkdirAsync($,Y).then(()=>U||$,async(Q)=>{let K=Q;if(K&&K.code==="ENOENT")return oG0.mkdirpManual(J,Y).then((q)=>oG0.mkdirpManual($,Y,q));if(K&&K.code!=="EEXIST"&&K.code!=="EROFS")throw Q;return Y.statAsync($).then((q)=>{if(q.isDirectory())return U;else throw Q},()=>{throw Q})})},{sync:oG0.mkdirpManualSync})});var sG0=O((tG0)=>{Object.defineProperty(tG0,"__esModule",{value:!0});tG0.findMadeSync=tG0.findMade=void 0;var rG0=t("path"),pJ1=async($,I,U)=>{if(U===I)return;return $.statAsync(I).then((Y)=>Y.isDirectory()?U:void 0,(Y)=>{let J=Y;return J&&J.code==="ENOENT"?tG0.findMade($,(0,rG0.dirname)(I),I):void 0})};tG0.findMade=pJ1;var cJ1=($,I,U)=>{if(U===I)return;try{return $.statSync(I).isDirectory()?U:void 0}catch(Y){let J=Y;return J&&J.code==="ENOENT"?tG0.findMadeSync($,(0,rG0.dirname)(I),I):void 0}};tG0.findMadeSync=cJ1});var iy=O((YW0)=>{Object.defineProperty(YW0,"__esModule",{value:!0});YW0.mkdirpNative=YW0.mkdirpNativeSync=void 0;var eG0=t("path"),$W0=sG0(),IW0=CL(),UW0=aq(),dJ1=($,I)=>{let U=(0,UW0.optsArg)(I);if(U.recursive=!0,(0,eG0.dirname)($)===$)return U.mkdirSync($,U);let J=(0,$W0.findMadeSync)(U,$);try{return U.mkdirSync($,U),J}catch(Q){let K=Q;if(K&&K.code==="ENOENT")return(0,IW0.mkdirpManualSync)($,U);else throw Q}};YW0.mkdirpNativeSync=dJ1;YW0.mkdirpNative=Object.assign(async($,I)=>{let U={...(0,UW0.optsArg)(I),recursive:!0};if((0,eG0.dirname)($)===$)return await U.mkdirAsync($,U);return(0,$W0.findMade)(U,$).then((J)=>U.mkdirAsync($,U).then((Q)=>J||Q).catch((Q)=>{let K=Q;if(K&&K.code==="ENOENT")return(0,IW0.mkdirpManual)($,U);else throw Q}))},{sync:YW0.mkdirpNativeSync})});var GW0=O((qW0)=>{Object.defineProperty(qW0,"__esModule",{value:!0});qW0.pathArg=void 0;var mJ1=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,KW0=t("path"),lJ1=($)=>{if(/\0/.test($))throw Object.assign(TypeError("path must be a string without null bytes"),{path:$,code:"ERR_INVALID_ARG_VALUE"});if($=(0,KW0.resolve)($),mJ1==="win32"){let I=/[*|"<>?:]/,{root:U}=(0,KW0.parse)($);if(I.test($.substring(U.length)))throw Object.assign(Error("Illegal characters in path."),{path:$,code:"EINVAL"})}return $};qW0.pathArg=lJ1});var py=O((ZW0)=>{Object.defineProperty(ZW0,"__esModule",{value:!0});ZW0.useNative=ZW0.useNativeSync=void 0;var WW0=t("fs"),wW0=aq(),oJ1=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ny=oJ1.replace(/^v/,"").split("."),VW0=+ny[0]>10||+ny[0]===10&&+ny[1]>=12;ZW0.useNativeSync=!VW0?()=>!1:($)=>(0,wW0.optsArg)($).mkdirSync===WW0.mkdirSync;ZW0.useNative=Object.assign(!VW0?()=>!1:($)=>(0,wW0.optsArg)($).mkdir===WW0.mkdir,{sync:ZW0.useNativeSync})});var cy=O((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});X7.mkdirp=X7.nativeSync=X7.native=X7.manualSync=X7.manual=X7.sync=X7.mkdirpSync=X7.useNativeSync=X7.useNative=X7.mkdirpNativeSync=X7.mkdirpNative=X7.mkdirpManualSync=X7.mkdirpManual=void 0;var Z7=CL(),z7=iy(),LW0=aq(),DW0=GW0(),_L=py(),OW0=CL();Object.defineProperty(X7,"mkdirpManual",{enumerable:!0,get:function(){return OW0.mkdirpManual}});Object.defineProperty(X7,"mkdirpManualSync",{enumerable:!0,get:function(){return OW0.mkdirpManualSync}});var FW0=iy();Object.defineProperty(X7,"mkdirpNative",{enumerable:!0,get:function(){return FW0.mkdirpNative}});Object.defineProperty(X7,"mkdirpNativeSync",{enumerable:!0,get:function(){return FW0.mkdirpNativeSync}});var NW0=py();Object.defineProperty(X7,"useNative",{enumerable:!0,get:function(){return NW0.useNative}});Object.defineProperty(X7,"useNativeSync",{enumerable:!0,get:function(){return NW0.useNativeSync}});var rJ1=($,I)=>{$=(0,DW0.pathArg)($);let U=(0,LW0.optsArg)(I);return(0,_L.useNativeSync)(U)?(0,z7.mkdirpNativeSync)($,U):(0,Z7.mkdirpManualSync)($,U)};X7.mkdirpSync=rJ1;X7.sync=X7.mkdirpSync;X7.manual=Z7.mkdirpManual;X7.manualSync=Z7.mkdirpManualSync;X7.native=z7.mkdirpNative;X7.nativeSync=z7.mkdirpNativeSync;X7.mkdirp=Object.assign(async($,I)=>{$=(0,DW0.pathArg)($);let U=(0,LW0.optsArg)(I);return(0,_L.useNative)(U)?(0,z7.mkdirpNative)($,U):(0,Z7.mkdirpManual)($,U)},{mkdirpSync:X7.mkdirpSync,mkdirpNative:z7.mkdirpNative,mkdirpNativeSync:z7.mkdirpNativeSync,mkdirpManual:Z7.mkdirpManual,mkdirpManualSync:Z7.mkdirpManualSync,sync:X7.mkdirpSync,native:z7.mkdirpNative,nativeSync:z7.mkdirpNativeSync,manual:Z7.mkdirpManual,manualSync:Z7.mkdirpManualSync,useNative:_L.useNative,useNativeSync:_L.useNativeSync})});var gL=O((O_1,AW0)=>{AW0.exports=dy;function dy($){if($._collected)return;if($._paused)return $.on("resume",dy.bind(null,$));$._collected=!0,$.pause(),$.on("data",U),$.on("end",U);var I=[];function U(K){if(typeof K==="string")K=new Buffer(K);if(Buffer.isBuffer(K)&&!K.length)return;I.push(K)}$.on("entry",J);var Y=[];function J(K){dy(K),Y.push(K)}$.on("proxy",Q);function Q(K){K.pause()}$.pipe=function(K){return function(q){var H=0;(function W(){var w=Y[H++];if(!w)return G();if(w.on("end",W),q)q.add(w);else $.emit("entry",w)})();function G(){if($.removeListener("entry",J),$.removeListener("data",U),$.removeListener("end",U),$.pipe=K,q)$.pipe(q);I.forEach(function(W){if(W)$.emit("data",W);else $.emit("end")}),$.resume()}return q}}($.pipe)}});var my=O((F_1,TW0)=>{TW0.exports=L7;var yL=zJ(),IQ1=c0(),UQ1=cy(),PW0=t("path"),YQ1=gL();IQ1(L7,yL);function L7($){var I=this;if(!(I instanceof L7))I.error("DirWriter must be called as constructor.",null,!0);if($.type!=="Directory"||!$.Directory)I.error("Non-directory type "+$.type+" "+JSON.stringify($),null,!0);yL.call(this,$)}L7.prototype._create=function(){var $=this;UQ1($._path,yL.dirmode,function(I){if(I)return $.error(I);$.ready=!0,$.emit("ready"),$._process()})};L7.prototype.write=function(){return!0};L7.prototype.end=function(){this._ended=!0,this._process()};L7.prototype.add=function($){var I=this;if(YQ1($),!I.ready||I._currentEntry)return I._buffer.push($),!1;if(I._ended)return I.error("add after end");return I._buffer.push($),I._process(),this._buffer.length===0};L7.prototype._process=function(){var $=this;if($._processing)return;var I=$._buffer.shift();if(!I){if($.emit("drain"),$._ended)$._finish();return}$._processing=!0,$.emit("entry",I);var U=I,Y;do{if(Y=U._path||U.path,Y===$.root._path||Y===$._path||Y&&Y.indexOf($._path)===0){if($._processing=!1,I._collected)I.pipe();return $._process()}U=U.parent}while(U);var J={parent:$,root:$.root||$,type:I.type,depth:$.depth+1};if(Y=I._path||I.path||I.props.path,I.parent)Y=Y.substr(I.parent._path.length+1);J.path=PW0.join($.path,PW0.join("/",Y)),J.filter=$.filter,Object.keys(I.props).forEach(function(H){if(!J.hasOwnProperty(H))J[H]=I.props[H]});var Q=$._currentChild=new yL(J);Q.on("ready",function(){I.pipe(Q),I.resume()}),Q.on("error",function(H){if(Q._swallowErrors)$.warn(H),Q.emit("end"),Q.emit("close");else $.emit("error",H)}),Q.on("close",q);var K=!1;function q(){if(K)return;K=!0,$._currentChild=null,$._processing=!1,$._process()}}});var ly=O((N_1,jW0)=>{jW0.exports=sq;var BW0=s6(),vW0=zJ(),JQ1=c0(),QQ1=t("path"),KQ1=fy();JQ1(sq,vW0);function sq($){var I=this;if(!(I instanceof sq))throw Error("LinkWriter must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="SymbolicLink"&&$.SymbolicLink))throw Error("Non-link type "+$.type);if($.linkpath==="")$.linkpath=".";if(!$.linkpath)I.error("Need linkpath property to create "+$.type);vW0.call(this,$)}sq.prototype._create=function(){var $=this,I=$.type==="Link"||process.platform==="win32",U=I?"link":"symlink",Y=I?QQ1.resolve($.dirname,$.linkpath):$.linkpath;if(I)return EW0($,Y,U);BW0.readlink($._path,function(J,Q){if(Q&&Q===Y)return RW0($);EW0($,Y,U)})};function EW0($,I,U){KQ1($._path,function(Y){if(Y)return $.error(Y);qQ1($,I,U)})}function qQ1($,I,U){BW0[U](I,$._path,function(Y){if(Y)if((Y.code==="ENOENT"||Y.code==="EACCES"||Y.code==="EPERM")&&process.platform==="win32")$.ready=!0,$.emit("ready"),$.emit("end"),$.emit("close"),$.end=$._finish=function(){};else return $.error(Y);RW0($)})}function RW0($){if($.ready=!0,$.emit("ready"),$._ended&&!$._finished)$._finish()}sq.prototype.end=function(){if(this._ended=!0,this.ready)this._finished=!0,this._finish()}});var oy=O((M_1,_W0)=>{_W0.exports=II;var HQ1=s6(),hL=zJ(),GQ1=c0(),CW0={};GQ1(II,hL);function II($){var I=this;if(!(I instanceof II))throw Error("FileWriter must be called as constructor.");if($.type!=="File"||!$.File)throw Error("Non-file type "+$.type);I._buffer=[],I._bytesWritten=0,hL.call(this,$)}II.prototype._create=function(){var $=this;if($._stream)return;var I={};if($.props.flags)I.flags=$.props.flags;if(I.mode=hL.filemode,$._old&&$._old.blksize)I.bufferSize=$._old.blksize;$._stream=HQ1.createWriteStream($._path,I),$._stream.on("open",function(){$.ready=!0,$._buffer.forEach(function(U){if(U===CW0)$._stream.end();else $._stream.write(U)}),$.emit("ready"),$.emit("drain")}),$._stream.on("error",function(U){$.emit("error",U)}),$._stream.on("drain",function(){$.emit("drain")}),$._stream.on("close",function(){$._finish()})};II.prototype.write=function($){var I=this;if(I._bytesWritten+=$.length,!I.ready){if(!Buffer.isBuffer($)&&typeof $!=="string")throw Error("invalid write data");return I._buffer.push($),!1}var U=I._stream.write($);if(U===!1&&I._stream._queue)return I._stream._queue.length<=2;else return U};II.prototype.end=function($){var I=this;if($)I.write($);if(!I.ready)return I._buffer.push(CW0),!1;return I._stream.end()};II.prototype._finish=function(){var $=this;if(typeof $.size==="number"&&$._bytesWritten!==$.size)$.error(`Did not get expected byte count. +actual: `+$._bytesEmitted)}),I.on("close",function(){if($._paused||$._buffer.length)$._buffer.push(vG0),$._read();else $.emit("close")}),I.on("error",function(U){$.emit("error",U)}),$._read()};e3.prototype._read=function(){var $=this;if($._paused)return;if(!$._stream)return $._getStream();if($._buffer.length){var I=$._buffer;for(var U=0,Y=I.length;U{CG0.exports=TL;var CJ1=d0(),jG0=s3();CJ1(TL,jG0);function TL($){var I=this;if(!(I instanceof TL))throw Error("SocketReader must be called as constructor.");if(!($.type==="Socket"&&$.Socket))throw Error("Non-socket type "+$.type);jG0.call(I,$)}TL.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var hy=O((Y_1,SG0)=>{SG0.exports=$I;var yy=s3(),_J1=lq(),SJ1=d0(),gJ1=s6();SJ1($I,yy);function $I($){var I=this;if(!(I instanceof $I))throw Error("ProxyReader must be called as constructor.");I.props=$,I._buffer=[],I.ready=!1,yy.call(I,$)}$I.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";gJ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=_J1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(yy(I,J))})};$I.prototype._addProxy=function($){var I=this;if(I._proxyTarget)return I.error("proxy already set");I._proxyTarget=$,$._proxy=I,["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$),$.on("ready",function(){I.ready=!0,I.emit("ready")});var U=I._buffer;I._buffer.length=0,U.forEach(function(Y){$[Y[0]].apply($,Y[1])})};$I.prototype.pause=function(){return this._proxyTarget?this._proxyTarget.pause():!1};$I.prototype.resume=function(){return this._proxyTarget?this._proxyTarget.resume():!1}});var s3=O((J_1,hG0)=>{hG0.exports=V8;var yJ1=s6(),hJ1=t("stream").Stream,uJ1=d0(),uy=t("path"),ky=lq(),EL=V8.hardLinks={},gG0=PL();uJ1(V8,gG0);var yG0=Cy();function V8($,I){var U=this;if(!(U instanceof V8))return new V8($,I);if(typeof $==="string")$={path:$};var Y,J;if($.type&&typeof $.type==="function")Y=$.type,J=Y;else Y=ky($),J=V8;if(I&&!Y)Y=ky(I),$[Y]=!0,$.type=Y;switch(Y){case"Directory":J=Sy();break;case"Link":case"File":J=gy();break;case"SymbolicLink":J=yG0;break;case"Socket":J=_G0();break;case null:J=hy();break}if(!(U instanceof J))return new J($);if(gG0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.readable=!0,U.writable=!1,U.type=Y,U.props=$,U.depth=$.depth=$.depth||0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=uy.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=$.basename=uy.basename(U.path),U.dirname=$.dirname=uy.dirname(U.path),$.parent=$.root=null,U.size=$.size,U.filter=typeof $.filter==="function"?$.filter:null,$.sort==="alpha")$.sort=kJ1;U._stat(I)}function kJ1($,I){return $===I?0:$.toLowerCase()>I.toLowerCase()?1:$.toLowerCase()I?1:-1}V8.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat";if($)process.nextTick(J.bind(null,null,$));else yJ1[Y](I._path,J);function J(Q,K){if(Q)return I.error(Q);if(Object.keys(K).forEach(function(V){U[V]=K[V]}),I.size!==void 0&&U.size!==I.size)return I.error("incorrect size");I.size=U.size;var q=ky(U),H=U.hardlinks!==!1;if(H&&q!=="Directory"&&U.nlink&&U.nlink>1){var G=U.dev+":"+U.ino;if(EL[G]===I._path||!EL[G])EL[G]=I._path;else q=I.type=I.props.type="Link",I.Link=I.props.Link=!0,I.linkpath=I.props.linkpath=EL[G],I._stat=I._read=yG0.prototype._read}if(I.type&&I.type!==q)I.error("Unexpected type: "+q);if(I.filter){var W=I._proxy||I;if(!I.filter.call(W,W,U)){if(!I._disowned)I.abort(),I.emit("end"),I.emit("close");return}}var w=["_stat","stat","ready"],Z=0;(function V(){if(I._aborted){I.emit("end"),I.emit("close");return}if(I._paused&&I.type!=="Directory"){I.once("resume",V);return}var X=w[Z++];if(!X)return I._read();I.emit(X,U),V()})()}};V8.prototype.pipe=function($){var I=this;if(typeof $.add==="function")I.on("entry",function(U){var Y=$.add(U);if(Y===!1)I.pause()});return hJ1.prototype.pipe.apply(this,arguments)};V8.prototype.pause=function($){if(this._paused=!0,$=$||this,this.emit("pause",$),this._stream)this._stream.pause($)};V8.prototype.resume=function($){if(this._paused=!1,$=$||this,this.emit("resume",$),this._stream)this._stream.resume($);this._read()};V8.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}});var by=O((Q_1,pG0)=>{pG0.exports=iy;iy.sync=nG0;var C1=t("assert"),fG0=t("path"),uG0=t("fs"),XJ=void 0;try{XJ=Vq()}catch($){}var iG0=parseInt("666",8),xJ1={nosort:!0,silent:!0},xy=0,tq=process.platform==="win32";function bG0($){var I=["unlink","chmod","stat","lstat","rmdir","readdir"];if(I.forEach(function(U){$[U]=$[U]||uG0[U],U=U+"Sync",$[U]=$[U]||uG0[U]}),$.maxBusyTries=$.maxBusyTries||3,$.emfileWait=$.emfileWait||1000,$.glob===!1)$.disableGlob=!0;if($.disableGlob!==!0&&XJ===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");$.disableGlob=$.disableGlob||!1,$.glob=$.glob||xJ1}function iy($,I,U){if(typeof I==="function")U=I,I={};C1($,"rimraf: missing path"),C1.equal(typeof $,"string","rimraf: path should be a string"),C1.equal(typeof U,"function","rimraf: callback function required"),C1(I,"rimraf: invalid options argument provided"),C1.equal(typeof I,"object","rimraf: options should be object"),bG0(I);var Y=0,J=null,Q=0;if(I.disableGlob||!XJ.hasMagic($))return q(null,[$]);I.lstat($,function(H,G){if(!H)return q(null,[$]);XJ($,I.glob,q)});function K(H){if(J=J||H,--Q===0)U(J)}function q(H,G){if(H)return U(H);if(Q=G.length,Q===0)return U();G.forEach(function(W){fy(W,I,function w(Z){if(Z){if((Z.code==="EBUSY"||Z.code==="ENOTEMPTY"||Z.code==="EPERM")&&Y{Object.defineProperty(cG0,"__esModule",{value:!0});cG0.optsArg=void 0;var RL=t("fs"),bJ1=($)=>{if(!$)$={mode:511};else if(typeof $==="object")$={mode:511,...$};else if(typeof $==="number")$={mode:$};else if(typeof $==="string")$={mode:parseInt($,8)};else throw TypeError("invalid options argument");let I=$,U=$.fs||{};return $.mkdir=$.mkdir||U.mkdir||RL.mkdir,$.mkdirAsync=$.mkdirAsync?$.mkdirAsync:async(Y,J)=>{return new Promise((Q,K)=>I.mkdir(Y,J,(q,H)=>q?K(q):Q(H)))},$.stat=$.stat||U.stat||RL.stat,$.statAsync=$.statAsync?$.statAsync:async(Y)=>new Promise((J,Q)=>I.stat(Y,(K,q)=>K?Q(K):J(q))),$.statSync=$.statSync||U.statSync||RL.statSync,$.mkdirSync=$.mkdirSync||U.mkdirSync||RL.mkdirSync,I};cG0.optsArg=bJ1});var _L=O((oG0)=>{Object.defineProperty(oG0,"__esModule",{value:!0});oG0.mkdirpManual=oG0.mkdirpManualSync=void 0;var mG0=t("path"),lG0=aq(),nJ1=($,I,U)=>{let Y=(0,mG0.dirname)($),J={...(0,lG0.optsArg)(I),recursive:!1};if(Y===$)try{return J.mkdirSync($,J)}catch(Q){let K=Q;if(K&&K.code!=="EISDIR")throw Q;return}try{return J.mkdirSync($,J),U||$}catch(Q){let K=Q;if(K&&K.code==="ENOENT")return oG0.mkdirpManualSync($,J,oG0.mkdirpManualSync(Y,J,U));if(K&&K.code!=="EEXIST"&&K&&K.code!=="EROFS")throw Q;try{if(!J.statSync($).isDirectory())throw Q}catch(q){throw Q}}};oG0.mkdirpManualSync=nJ1;oG0.mkdirpManual=Object.assign(async($,I,U)=>{let Y=(0,lG0.optsArg)(I);Y.recursive=!1;let J=(0,mG0.dirname)($);if(J===$)return Y.mkdirAsync($,Y).catch((Q)=>{let K=Q;if(K&&K.code!=="EISDIR")throw Q});return Y.mkdirAsync($,Y).then(()=>U||$,async(Q)=>{let K=Q;if(K&&K.code==="ENOENT")return oG0.mkdirpManual(J,Y).then((q)=>oG0.mkdirpManual($,Y,q));if(K&&K.code!=="EEXIST"&&K.code!=="EROFS")throw Q;return Y.statAsync($).then((q)=>{if(q.isDirectory())return U;else throw Q},()=>{throw Q})})},{sync:oG0.mkdirpManualSync})});var sG0=O((tG0)=>{Object.defineProperty(tG0,"__esModule",{value:!0});tG0.findMadeSync=tG0.findMade=void 0;var rG0=t("path"),pJ1=async($,I,U)=>{if(U===I)return;return $.statAsync(I).then((Y)=>Y.isDirectory()?U:void 0,(Y)=>{let J=Y;return J&&J.code==="ENOENT"?tG0.findMade($,(0,rG0.dirname)(I),I):void 0})};tG0.findMade=pJ1;var cJ1=($,I,U)=>{if(U===I)return;try{return $.statSync(I).isDirectory()?U:void 0}catch(Y){let J=Y;return J&&J.code==="ENOENT"?tG0.findMadeSync($,(0,rG0.dirname)(I),I):void 0}};tG0.findMadeSync=cJ1});var py=O((YW0)=>{Object.defineProperty(YW0,"__esModule",{value:!0});YW0.mkdirpNative=YW0.mkdirpNativeSync=void 0;var eG0=t("path"),$W0=sG0(),IW0=_L(),UW0=aq(),dJ1=($,I)=>{let U=(0,UW0.optsArg)(I);if(U.recursive=!0,(0,eG0.dirname)($)===$)return U.mkdirSync($,U);let J=(0,$W0.findMadeSync)(U,$);try{return U.mkdirSync($,U),J}catch(Q){let K=Q;if(K&&K.code==="ENOENT")return(0,IW0.mkdirpManualSync)($,U);else throw Q}};YW0.mkdirpNativeSync=dJ1;YW0.mkdirpNative=Object.assign(async($,I)=>{let U={...(0,UW0.optsArg)(I),recursive:!0};if((0,eG0.dirname)($)===$)return await U.mkdirAsync($,U);return(0,$W0.findMade)(U,$).then((J)=>U.mkdirAsync($,U).then((Q)=>J||Q).catch((Q)=>{let K=Q;if(K&&K.code==="ENOENT")return(0,IW0.mkdirpManual)($,U);else throw Q}))},{sync:YW0.mkdirpNativeSync})});var GW0=O((qW0)=>{Object.defineProperty(qW0,"__esModule",{value:!0});qW0.pathArg=void 0;var mJ1=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,KW0=t("path"),lJ1=($)=>{if(/\0/.test($))throw Object.assign(TypeError("path must be a string without null bytes"),{path:$,code:"ERR_INVALID_ARG_VALUE"});if($=(0,KW0.resolve)($),mJ1==="win32"){let I=/[*|"<>?:]/,{root:U}=(0,KW0.parse)($);if(I.test($.substring(U.length)))throw Object.assign(Error("Illegal characters in path."),{path:$,code:"EINVAL"})}return $};qW0.pathArg=lJ1});var dy=O((ZW0)=>{Object.defineProperty(ZW0,"__esModule",{value:!0});ZW0.useNative=ZW0.useNativeSync=void 0;var WW0=t("fs"),wW0=aq(),oJ1=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,cy=oJ1.replace(/^v/,"").split("."),VW0=+cy[0]>10||+cy[0]===10&&+cy[1]>=12;ZW0.useNativeSync=!VW0?()=>!1:($)=>(0,wW0.optsArg)($).mkdirSync===WW0.mkdirSync;ZW0.useNative=Object.assign(!VW0?()=>!1:($)=>(0,wW0.optsArg)($).mkdir===WW0.mkdir,{sync:ZW0.useNativeSync})});var my=O((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});X7.mkdirp=X7.nativeSync=X7.native=X7.manualSync=X7.manual=X7.sync=X7.mkdirpSync=X7.useNativeSync=X7.useNative=X7.mkdirpNativeSync=X7.mkdirpNative=X7.mkdirpManualSync=X7.mkdirpManual=void 0;var Z7=_L(),z7=py(),LW0=aq(),DW0=GW0(),SL=dy(),OW0=_L();Object.defineProperty(X7,"mkdirpManual",{enumerable:!0,get:function(){return OW0.mkdirpManual}});Object.defineProperty(X7,"mkdirpManualSync",{enumerable:!0,get:function(){return OW0.mkdirpManualSync}});var FW0=py();Object.defineProperty(X7,"mkdirpNative",{enumerable:!0,get:function(){return FW0.mkdirpNative}});Object.defineProperty(X7,"mkdirpNativeSync",{enumerable:!0,get:function(){return FW0.mkdirpNativeSync}});var NW0=dy();Object.defineProperty(X7,"useNative",{enumerable:!0,get:function(){return NW0.useNative}});Object.defineProperty(X7,"useNativeSync",{enumerable:!0,get:function(){return NW0.useNativeSync}});var rJ1=($,I)=>{$=(0,DW0.pathArg)($);let U=(0,LW0.optsArg)(I);return(0,SL.useNativeSync)(U)?(0,z7.mkdirpNativeSync)($,U):(0,Z7.mkdirpManualSync)($,U)};X7.mkdirpSync=rJ1;X7.sync=X7.mkdirpSync;X7.manual=Z7.mkdirpManual;X7.manualSync=Z7.mkdirpManualSync;X7.native=z7.mkdirpNative;X7.nativeSync=z7.mkdirpNativeSync;X7.mkdirp=Object.assign(async($,I)=>{$=(0,DW0.pathArg)($);let U=(0,LW0.optsArg)(I);return(0,SL.useNative)(U)?(0,z7.mkdirpNative)($,U):(0,Z7.mkdirpManual)($,U)},{mkdirpSync:X7.mkdirpSync,mkdirpNative:z7.mkdirpNative,mkdirpNativeSync:z7.mkdirpNativeSync,mkdirpManual:Z7.mkdirpManual,mkdirpManualSync:Z7.mkdirpManualSync,sync:X7.mkdirpSync,native:z7.mkdirpNative,nativeSync:z7.mkdirpNativeSync,manual:Z7.mkdirpManual,manualSync:Z7.mkdirpManualSync,useNative:SL.useNative,useNativeSync:SL.useNativeSync})});var yL=O((F_1,AW0)=>{AW0.exports=ly;function ly($){if($._collected)return;if($._paused)return $.on("resume",ly.bind(null,$));$._collected=!0,$.pause(),$.on("data",U),$.on("end",U);var I=[];function U(K){if(typeof K==="string")K=new Buffer(K);if(Buffer.isBuffer(K)&&!K.length)return;I.push(K)}$.on("entry",J);var Y=[];function J(K){ly(K),Y.push(K)}$.on("proxy",Q);function Q(K){K.pause()}$.pipe=function(K){return function(q){var H=0;(function W(){var w=Y[H++];if(!w)return G();if(w.on("end",W),q)q.add(w);else $.emit("entry",w)})();function G(){if($.removeListener("entry",J),$.removeListener("data",U),$.removeListener("end",U),$.pipe=K,q)$.pipe(q);I.forEach(function(W){if(W)$.emit("data",W);else $.emit("end")}),$.resume()}return q}}($.pipe)}});var oy=O((N_1,TW0)=>{TW0.exports=L7;var hL=LJ(),IQ1=d0(),UQ1=my(),PW0=t("path"),YQ1=yL();IQ1(L7,hL);function L7($){var I=this;if(!(I instanceof L7))I.error("DirWriter must be called as constructor.",null,!0);if($.type!=="Directory"||!$.Directory)I.error("Non-directory type "+$.type+" "+JSON.stringify($),null,!0);hL.call(this,$)}L7.prototype._create=function(){var $=this;UQ1($._path,hL.dirmode,function(I){if(I)return $.error(I);$.ready=!0,$.emit("ready"),$._process()})};L7.prototype.write=function(){return!0};L7.prototype.end=function(){this._ended=!0,this._process()};L7.prototype.add=function($){var I=this;if(YQ1($),!I.ready||I._currentEntry)return I._buffer.push($),!1;if(I._ended)return I.error("add after end");return I._buffer.push($),I._process(),this._buffer.length===0};L7.prototype._process=function(){var $=this;if($._processing)return;var I=$._buffer.shift();if(!I){if($.emit("drain"),$._ended)$._finish();return}$._processing=!0,$.emit("entry",I);var U=I,Y;do{if(Y=U._path||U.path,Y===$.root._path||Y===$._path||Y&&Y.indexOf($._path)===0){if($._processing=!1,I._collected)I.pipe();return $._process()}U=U.parent}while(U);var J={parent:$,root:$.root||$,type:I.type,depth:$.depth+1};if(Y=I._path||I.path||I.props.path,I.parent)Y=Y.substr(I.parent._path.length+1);J.path=PW0.join($.path,PW0.join("/",Y)),J.filter=$.filter,Object.keys(I.props).forEach(function(H){if(!J.hasOwnProperty(H))J[H]=I.props[H]});var Q=$._currentChild=new hL(J);Q.on("ready",function(){I.pipe(Q),I.resume()}),Q.on("error",function(H){if(Q._swallowErrors)$.warn(H),Q.emit("end"),Q.emit("close");else $.emit("error",H)}),Q.on("close",q);var K=!1;function q(){if(K)return;K=!0,$._currentChild=null,$._processing=!1,$._process()}}});var ry=O((M_1,jW0)=>{jW0.exports=sq;var BW0=s6(),vW0=LJ(),JQ1=d0(),QQ1=t("path"),KQ1=by();JQ1(sq,vW0);function sq($){var I=this;if(!(I instanceof sq))throw Error("LinkWriter must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="SymbolicLink"&&$.SymbolicLink))throw Error("Non-link type "+$.type);if($.linkpath==="")$.linkpath=".";if(!$.linkpath)I.error("Need linkpath property to create "+$.type);vW0.call(this,$)}sq.prototype._create=function(){var $=this,I=$.type==="Link"||process.platform==="win32",U=I?"link":"symlink",Y=I?QQ1.resolve($.dirname,$.linkpath):$.linkpath;if(I)return EW0($,Y,U);BW0.readlink($._path,function(J,Q){if(Q&&Q===Y)return RW0($);EW0($,Y,U)})};function EW0($,I,U){KQ1($._path,function(Y){if(Y)return $.error(Y);qQ1($,I,U)})}function qQ1($,I,U){BW0[U](I,$._path,function(Y){if(Y)if((Y.code==="ENOENT"||Y.code==="EACCES"||Y.code==="EPERM")&&process.platform==="win32")$.ready=!0,$.emit("ready"),$.emit("end"),$.emit("close"),$.end=$._finish=function(){};else return $.error(Y);RW0($)})}function RW0($){if($.ready=!0,$.emit("ready"),$._ended&&!$._finished)$._finish()}sq.prototype.end=function(){if(this._ended=!0,this.ready)this._finished=!0,this._finish()}});var ty=O((A_1,_W0)=>{_W0.exports=II;var HQ1=s6(),uL=LJ(),GQ1=d0(),CW0={};GQ1(II,uL);function II($){var I=this;if(!(I instanceof II))throw Error("FileWriter must be called as constructor.");if($.type!=="File"||!$.File)throw Error("Non-file type "+$.type);I._buffer=[],I._bytesWritten=0,uL.call(this,$)}II.prototype._create=function(){var $=this;if($._stream)return;var I={};if($.props.flags)I.flags=$.props.flags;if(I.mode=uL.filemode,$._old&&$._old.blksize)I.bufferSize=$._old.blksize;$._stream=HQ1.createWriteStream($._path,I),$._stream.on("open",function(){$.ready=!0,$._buffer.forEach(function(U){if(U===CW0)$._stream.end();else $._stream.write(U)}),$.emit("ready"),$.emit("drain")}),$._stream.on("error",function(U){$.emit("error",U)}),$._stream.on("drain",function(){$.emit("drain")}),$._stream.on("close",function(){$._finish()})};II.prototype.write=function($){var I=this;if(I._bytesWritten+=$.length,!I.ready){if(!Buffer.isBuffer($)&&typeof $!=="string")throw Error("invalid write data");return I._buffer.push($),!1}var U=I._stream.write($);if(U===!1&&I._stream._queue)return I._stream._queue.length<=2;else return U};II.prototype.end=function($){var I=this;if($)I.write($);if(!I.ready)return I._buffer.push(CW0),!1;return I._stream.end()};II.prototype._finish=function(){var $=this;if(typeof $.size==="number"&&$._bytesWritten!==$.size)$.error(`Did not get expected byte count. expect: `+$.size+` -actual: `+$._bytesWritten);hL.prototype._finish.call($)}});var ty=O((A_1,SW0)=>{SW0.exports=D7;var ry=zJ(),WQ1=lq(),wQ1=c0(),VQ1=gL(),ZQ1=t("fs");wQ1(D7,ry);function D7($){var I=this;if(!(I instanceof D7))throw Error("ProxyWriter must be called as constructor.");I.props=$,I._needDrain=!1,ry.call(I,$)}D7.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";ZQ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=WQ1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(ry(I,J))})};D7.prototype._addProxy=function($){var I=this;if(I._proxy)return I.error("proxy already set");I._proxy=$,["ready","error","close","pipe","drain","warn"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$);var U=I._buffer;if(U.forEach(function(Y){$[Y[0]].apply($,Y[1])}),I._buffer.length=0,I._needsDrain)I.emit("drain")};D7.prototype.add=function($){if(VQ1($),!this._proxy)return this._buffer.push(["add",[$]]),this._needDrain=!0,!1;return this._proxy.add($)};D7.prototype.write=function($){if(!this._proxy)return this._buffer.push(["write",[$]]),this._needDrain=!0,!1;return this._proxy.write($)};D7.prototype.end=function($){if(!this._proxy)return this._buffer.push(["end",[$]]),!1;return this._proxy.end($)}});var zJ=O((P_1,iW0)=>{iW0.exports=b$;var f$=s6(),zQ1=c0(),XQ1=fy(),LQ1=cy(),eq=t("path"),yW0=process.platform==="win32"?0:process.umask(),hW0=lq(),uW0=AL();zQ1(b$,uW0);b$.dirmode=parseInt("0777",8)&~yW0;b$.filemode=parseInt("0666",8)&~yW0;var DQ1=my(),OQ1=ly(),FQ1=oy(),NQ1=ty();function b$($,I){var U=this;if(typeof $==="string")$={path:$};var Y=hW0($),J=b$;switch(Y){case"Directory":J=DQ1;break;case"File":J=FQ1;break;case"Link":case"SymbolicLink":J=OQ1;break;case null:default:J=NQ1;break}if(!(U instanceof J))return new J($);if(uW0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.type=$.type,U.props=$,U.depth=$.depth||0,U.clobber=$.clobber===!1?$.clobber:!0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=eq.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=eq.basename($.path),U.dirname=eq.dirname($.path),U.linkpath=$.linkpath||null,$.parent=$.root=null,U.size=$.size,typeof $.mode==="string")$.mode=parseInt($.mode,8);U.readable=!1,U.writable=!0,U._buffer=[],U.ready=!1,U.filter=typeof $.filter==="function"?$.filter:null,U._stat(I)}b$.prototype._create=function(){var $=this;f$[$.props.follow?"stat":"lstat"]($._path,function(I){if(I)return $.warn("Cannot create "+$._path+` -Unsupported type: `+$.type,"ENOTSUP");$._finish()})};b$.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat",J=I._proxy||I;if($)Q(null,$);else f$[Y](I._path,Q);function Q(K,q){if(I.filter&&!I.filter.call(J,J,q)){I._aborted=!0,I.emit("end"),I.emit("close");return}if(K||!q)return ay(I);I._old=q;var H=hW0(q);if(H!==I.type||I.type==="File"&&q.nlink>1)return XQ1(I._path,function(G){if(G)return I.error(G);I._old=null,ay(I)});ay(I)}};function ay($){LQ1(eq.dirname($._path),b$.dirmode,function(I,U){if(I)return $.error(I);return $._madeDir=U,$._create()})}function xW0($,I,U,Y,J){var Q=I.mode,K=I.follow||$.type!=="SymbolicLink"?"chmod":"lchmod";if(!f$[K])return J();if(typeof Q!=="number")return J();var q=U.mode&parseInt("0777",8);if(Q=Q&parseInt("0777",8),Q===q)return J();f$[K](Y,Q,J)}function kW0($,I,U,Y,J){if(process.platform==="win32")return J();if(!process.getuid||process.getuid()!==0)return J();if(typeof I.uid!=="number"&&typeof I.gid!=="number")return J();if(U.uid===I.uid&&U.gid===I.gid)return J();var Q=$.props.follow||$.type!=="SymbolicLink"?"chown":"lchown";if(!f$[Q])return J();if(typeof I.uid!=="number")I.uid=U.uid;if(typeof I.gid!=="number")I.gid=U.gid;f$[Q](Y,I.uid,I.gid,J)}function fW0($,I,U,Y,J){if(!f$.utimes||process.platform==="win32")return J();var Q=I.follow||$.type!=="SymbolicLink"?"utimes":"lutimes";if(Q==="lutimes"&&!f$[Q])Q="utimes";if(!f$[Q])return J();var{atime:K,mtime:q}=U,H=I.atime,G=I.mtime;if(H===void 0)H=K;if(G===void 0)G=q;if(!gW0(H))H=new Date(H);if(!gW0(G))H=new Date(G);if(H.getTime()===K.getTime()&&G.getTime()===q.getTime())return J();f$[Q](Y,H,G,J)}b$.prototype._finish=function(){var $=this;if($._finishing)return;$._finishing=!0;var I=0,U=null,Y=!1;if($._old)$._old.atime=new Date(0),$._old.mtime=new Date(0),Q($._old);else{var J=$.props.follow?"stat":"lstat";f$[J]($._path,function(q,H){if(q)if(q.code==="ENOENT"&&($.type==="Link"||$.type==="SymbolicLink")&&process.platform==="win32"){$.ready=!0,$.emit("ready"),$.emit("end"),$.emit("close"),$.end=$._finish=function(){};return}else return $.error(q);Q($._old=H)})}return;function Q(q){I+=3,xW0($,$.props,q,$._path,K("chmod")),kW0($,$.props,q,$._path,K("chown")),fW0($,$.props,q,$._path,K("utimes"))}function K(q){return function(H){if(U)return;if(H)return H.fstream_finish_call=q,$.error(U=H);if(--I>0)return;if(Y)return;if(Y=!0,!$._madeDir)return G();else bW0($,$._path,G);function G(W){if(W)return W.fstream_finish_call="setupMadeDir",$.error(W);$.emit("end"),$.emit("close")}}}};function bW0($,I,U){var Y=$._madeDir,J=eq.dirname(I);MQ1($,J,function(Q){if(Q)return U(Q);if(J===Y)return U();bW0($,J,U)})}function MQ1($,I,U){var Y={};Object.keys($.props).forEach(function(q){if(Y[q]=$.props[q],q==="mode"&&$.type!=="Directory")Y[q]=Y[q]|parseInt("0111",8)});var J=3,Q=null;f$.stat(I,function(q,H){if(q)return U(Q=q);xW0($,Y,H,I,K),kW0($,Y,H,I,K),fW0($,Y,H,I,K)});function K(q){if(Q)return;if(q)return U(Q=q);if(--J===0)return U()}}b$.prototype.pipe=function(){this.error("Can't pipe from writable stream")};b$.prototype.add=function(){this.error("Can't add to non-Directory type")};b$.prototype.write=function(){return!0};function AQ1($){return Object.prototype.toString.call($)}function gW0($){return typeof $==="object"&&AQ1($)==="[object Date]"}});var Uh=O((PQ1)=>{PQ1.Abstract=AL();PQ1.Reader=s3();PQ1.Writer=zJ();PQ1.File={Reader:_y(),Writer:oy()};PQ1.Dir={Reader:Cy(),Writer:my()};PQ1.Link={Reader:Ry(),Writer:ly()};PQ1.Proxy={Reader:gy(),Writer:ty()};PQ1.Reader.Dir=PQ1.DirReader=PQ1.Dir.Reader;PQ1.Reader.File=PQ1.FileReader=PQ1.File.Reader;PQ1.Reader.Link=PQ1.LinkReader=PQ1.Link.Reader;PQ1.Reader.Proxy=PQ1.ProxyReader=PQ1.Proxy.Reader;PQ1.Writer.Dir=PQ1.DirWriter=PQ1.Dir.Writer;PQ1.Writer.File=PQ1.FileWriter=PQ1.File.Writer;PQ1.Writer.Link=PQ1.LinkWriter=PQ1.Link.Writer;PQ1.Writer.Proxy=PQ1.ProxyWriter=PQ1.Proxy.Writer;PQ1.collect=gL()});var pW0=O((g_1,nW0)=>{nW0.exports=_Q1;var BQ1=ZL(),vQ1=Uh().Writer,Yh=t("path"),RQ1=t("stream"),jQ1=Ey(),CQ1=W7();function _Q1($){$.path=Yh.resolve(Yh.normalize($.path));var I=new BQ1($),U=new RQ1.Writable({objectMode:!0});U._write=function(J,Q,K){if(J.type=="Directory")return K();var q=Yh.join($.path,J.path);if(q.indexOf($.path)!=0)return K();let H=$.getWriter?$.getWriter({path:q}):vQ1({path:q});J.pipe(H).on("error",K).on("close",K)};var Y=jQ1(I,U);return I.once("crx-header",function(J){Y.crxHeader=J}),I.pipe(U).on("finish",function(){Y.emit("close")}),Y.promise=function(){return new CQ1(function(J,Q){Y.on("close",J),Y.on("error",Q)})},Y}});var cW0=O((y_1,uL)=>{var x4=function($){var I=1e7,U=7,Y=9007199254740992,J=Z(Y),Q="0123456789abcdefghijklmnopqrstuvwxyz",K=typeof BigInt==="function";function q(N,M,C,u){if(typeof N>"u")return q[0];if(typeof M<"u")return+M===10&&!C?v0(N):b6(N,M,C,u);return v0(N)}function H(N,M){this.value=N,this.sign=M,this.isSmall=!1}H.prototype=Object.create(q.prototype);function G(N){this.value=N,this.sign=N<0,this.isSmall=!0}G.prototype=Object.create(q.prototype);function W(N){this.value=N}W.prototype=Object.create(q.prototype);function w(N){return-Y0)return Math.floor(N);return Math.ceil(N)}function F(N,M){var C=N.length,u=M.length,s=Array(C),m=0,e=I,K0,W0;for(W0=0;W0=e?1:0,s[W0]=K0-m*e;while(W00)s.push(m);return s}function P(N,M){if(N.length>=M.length)return F(N,M);return F(M,N)}function E(N,M){var C=N.length,u=Array(C),s=I,m,e;for(e=0;e0)u[e++]=M%s,M=Math.floor(M/s);return u}H.prototype.add=function(N){var M=v0(N);if(this.sign!==M.sign)return this.subtract(M.negate());var C=this.value,u=M.value;if(M.isSmall)return new H(E(C,Math.abs(u)),this.sign);return new H(P(C,u),this.sign)},H.prototype.plus=H.prototype.add,G.prototype.add=function(N){var M=v0(N),C=this.value;if(C<0!==M.sign)return this.subtract(M.negate());var u=M.value;if(M.isSmall){if(w(C+u))return new G(C+u);u=Z(Math.abs(u))}return new H(E(u,Math.abs(C)),C<0)},G.prototype.plus=G.prototype.add,W.prototype.add=function(N){return new W(this.value+v0(N).value)},W.prototype.plus=W.prototype.add;function A(N,M){var C=N.length,u=M.length,s=Array(C),m=0,e=I,K0,W0;for(K0=0;K0=0)u=A(N,M);else u=A(M,N),C=!C;if(u=V(u),typeof u==="number"){if(C)u=-u;return new G(u)}return new H(u,C)}function k(N,M,C){var u=N.length,s=Array(u),m=-M,e=I,K0,W0;for(K0=0;K0=0)},G.prototype.minus=G.prototype.subtract,W.prototype.subtract=function(N){return new W(this.value-v0(N).value)},W.prototype.minus=W.prototype.subtract,H.prototype.negate=function(){return new H(this.value,!this.sign)},G.prototype.negate=function(){var N=this.sign,M=new G(-this.value);return M.sign=!N,M},W.prototype.negate=function(){return new W(-this.value)},H.prototype.abs=function(){return new H(this.value,!1)},G.prototype.abs=function(){return new G(Math.abs(this.value))},W.prototype.abs=function(){return new W(this.value>=0?this.value:-this.value)};function y(N,M){var C=N.length,u=M.length,s=C+u,m=L(s),e=I,K0,W0,_0,i0,f0;for(_0=0;_00)u[K0++]=m%s,m=Math.floor(m/s);return u}function j(N,M){var C=[];while(M-- >0)C.push(0);return C.concat(N)}function p(N,M){var C=Math.max(N.length,M.length);if(C<=30)return y(N,M);C=Math.ceil(C/2);var u=N.slice(C),s=N.slice(0,C),m=M.slice(C),e=M.slice(0,C),K0=p(s,e),W0=p(u,m),_0=p(P(s,u),P(e,m)),i0=P(P(K0,j(A(A(_0,K0),W0),C)),j(W0,2*C));return X(i0),i0}function n(N,M){return-0.012*N-0.012*M+0.000015*N*M>0}H.prototype.multiply=function(N){var M=v0(N),C=this.value,u=M.value,s=this.sign!==M.sign,m;if(M.isSmall){if(u===0)return q[0];if(u===1)return this;if(u===-1)return this.negate();if(m=Math.abs(u),m=0;f0--){if(i0=s-1,W0[f0+u]!==e)i0=Math.floor((W0[f0+u]*s+W0[f0+u-1])/e);H1=0,G4=0,s5=_0.length;for(Z6=0;Z6u)_0=(_0+1)*e;K0=Math.ceil(_0/i0);do{if(f0=f(M,K0),c(f0,m)<=0)break;K0--}while(K0);s.push(K0),m=A(m,f0)}return s.reverse(),[V(s),V(m)]}function B(N,M){var C=N.length,u=L(C),s=I,m,e,K0,W0;K0=0;for(m=C-1;m>=0;--m)W0=K0*s+N[m],e=D(W0/M),K0=W0-e*M,u[m]=e|0;return[u,K0|0]}function x(N,M){var C,u=v0(M);if(K)return[new W(N.value/u.value),new W(N.value%u.value)];var s=N.value,m=u.value,e;if(m===0)throw Error("Cannot divide by zero");if(N.isSmall){if(u.isSmall)return[new G(D(s/m)),new G(s%m)];return[q[0],N]}if(u.isSmall){if(m===1)return[N,q[0]];if(m==-1)return[N.negate(),q[0]];var K0=Math.abs(m);if(K0M.length?1:-1;for(var C=N.length-1;C>=0;C--)if(N[C]!==M[C])return N[C]>M[C]?1:-1;return 0}H.prototype.compareAbs=function(N){var M=v0(N),C=this.value,u=M.value;if(M.isSmall)return 1;return c(C,u)},G.prototype.compareAbs=function(N){var M=v0(N),C=Math.abs(this.value),u=M.value;if(M.isSmall)return u=Math.abs(u),C===u?0:C>u?1:-1;return-1},W.prototype.compareAbs=function(N){var M=this.value,C=v0(N).value;return M=M>=0?M:-M,C=C>=0?C:-C,M===C?0:M>C?1:-1},H.prototype.compare=function(N){if(N===1/0)return-1;if(N===-1/0)return 1;var M=v0(N),C=this.value,u=M.value;if(this.sign!==M.sign)return M.sign?1:-1;if(M.isSmall)return this.sign?-1:1;return c(C,u)*(this.sign?-1:1)},H.prototype.compareTo=H.prototype.compare,G.prototype.compare=function(N){if(N===1/0)return-1;if(N===-1/0)return 1;var M=v0(N),C=this.value,u=M.value;if(M.isSmall)return C==u?0:C>u?1:-1;if(C<0!==M.sign)return C<0?-1:1;return C<0?1:-1},G.prototype.compareTo=G.prototype.compare,W.prototype.compare=function(N){if(N===1/0)return-1;if(N===-1/0)return 1;var M=this.value,C=v0(N).value;return M===C?0:M>C?1:-1},W.prototype.compareTo=W.prototype.compare,H.prototype.equals=function(N){return this.compare(N)===0},W.prototype.eq=W.prototype.equals=G.prototype.eq=G.prototype.equals=H.prototype.eq=H.prototype.equals,H.prototype.notEquals=function(N){return this.compare(N)!==0},W.prototype.neq=W.prototype.notEquals=G.prototype.neq=G.prototype.notEquals=H.prototype.neq=H.prototype.notEquals,H.prototype.greater=function(N){return this.compare(N)>0},W.prototype.gt=W.prototype.greater=G.prototype.gt=G.prototype.greater=H.prototype.gt=H.prototype.greater,H.prototype.lesser=function(N){return this.compare(N)<0},W.prototype.lt=W.prototype.lesser=G.prototype.lt=G.prototype.lesser=H.prototype.lt=H.prototype.lesser,H.prototype.greaterOrEquals=function(N){return this.compare(N)>=0},W.prototype.geq=W.prototype.greaterOrEquals=G.prototype.geq=G.prototype.greaterOrEquals=H.prototype.geq=H.prototype.greaterOrEquals,H.prototype.lesserOrEquals=function(N){return this.compare(N)<=0},W.prototype.leq=W.prototype.lesserOrEquals=G.prototype.leq=G.prototype.lesserOrEquals=H.prototype.leq=H.prototype.lesserOrEquals,H.prototype.isEven=function(){return(this.value[0]&1)===0},G.prototype.isEven=function(){return(this.value&1)===0},W.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},H.prototype.isOdd=function(){return(this.value[0]&1)===1},G.prototype.isOdd=function(){return(this.value&1)===1},W.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},H.prototype.isPositive=function(){return!this.sign},G.prototype.isPositive=function(){return this.value>0},W.prototype.isPositive=G.prototype.isPositive,H.prototype.isNegative=function(){return this.sign},G.prototype.isNegative=function(){return this.value<0},W.prototype.isNegative=G.prototype.isNegative,H.prototype.isUnit=function(){return!1},G.prototype.isUnit=function(){return Math.abs(this.value)===1},W.prototype.isUnit=function(){return this.abs().value===BigInt(1)},H.prototype.isZero=function(){return!1},G.prototype.isZero=function(){return this.value===0},W.prototype.isZero=function(){return this.value===BigInt(0)},H.prototype.isDivisibleBy=function(N){var M=v0(N);if(M.isZero())return!1;if(M.isUnit())return!0;if(M.compareAbs(2)===0)return this.isEven();return this.mod(M).isZero()},W.prototype.isDivisibleBy=G.prototype.isDivisibleBy=H.prototype.isDivisibleBy;function r(N){var M=N.abs();if(M.isUnit())return!1;if(M.equals(2)||M.equals(3)||M.equals(5))return!0;if(M.isEven()||M.isDivisibleBy(3)||M.isDivisibleBy(5))return!1;if(M.lesser(49))return!0}function J0(N,M){var C=N.prev(),u=C,s=0,m,e,K0,W0;while(u.isEven())u=u.divide(2),s++;$:for(K0=0;K0-Y)return new G(N-1);return new H(J,!0)},W.prototype.prev=function(){return new W(this.value-BigInt(1))};var w0=[1];while(2*w0[w0.length-1]<=I)w0.push(2*w0[w0.length-1]);var A0=w0.length,j0=w0[A0-1];function q1(N){return Math.abs(N)<=I}H.prototype.shiftLeft=function(N){var M=v0(N).toJSNumber();if(!q1(M))throw Error(String(M)+" is too large for shifting.");if(M<0)return this.shiftRight(-M);var C=this;if(C.isZero())return C;while(M>=A0)C=C.multiply(j0),M-=A0-1;return C.multiply(w0[M])},W.prototype.shiftLeft=G.prototype.shiftLeft=H.prototype.shiftLeft,H.prototype.shiftRight=function(N){var M,C=v0(N).toJSNumber();if(!q1(C))throw Error(String(C)+" is too large for shifting.");if(C<0)return this.shiftLeft(-C);var u=this;while(C>=A0){if(u.isZero()||u.isNegative()&&u.isUnit())return u;M=x(u,j0),u=M[1].isNegative()?M[0].prev():M[0],C-=A0-1}return M=x(u,w0[C]),M[1].isNegative()?M[0].prev():M[0]},W.prototype.shiftRight=G.prototype.shiftRight=H.prototype.shiftRight;function k0(N,M,C){M=v0(M);var u=N.isNegative(),s=M.isNegative(),m=u?N.not():N,e=s?M.not():M,K0=0,W0=0,_0=null,i0=null,f0=[];while(!m.isZero()||!e.isZero()){if(_0=x(m,j0),K0=_0[1].toJSNumber(),u)K0=j0-1-K0;if(i0=x(e,j0),W0=i0[1].toJSNumber(),s)W0=j0-1-W0;m=_0[0],e=i0[0],f0.push(C(K0,W0))}var H1=C(u?1:0,s?1:0)!==0?x4(-1):x4(0);for(var G4=f0.length-1;G4>=0;G4-=1)H1=H1.multiply(j0).add(x4(f0[G4]));return H1}H.prototype.not=function(){return this.negate().prev()},W.prototype.not=G.prototype.not=H.prototype.not,H.prototype.and=function(N){return k0(this,N,function(M,C){return M&C})},W.prototype.and=G.prototype.and=H.prototype.and,H.prototype.or=function(N){return k0(this,N,function(M,C){return M|C})},W.prototype.or=G.prototype.or=H.prototype.or,H.prototype.xor=function(N){return k0(this,N,function(M,C){return M^C})},W.prototype.xor=G.prototype.xor=H.prototype.xor;var I1=1073741824,M0=(I&-I)*(I&-I)|I1;function Q0(N){var M=N.value,C=typeof M==="number"?M|I1:typeof M==="bigint"?M|BigInt(I1):M[0]+M[1]*I|M0;return C&-C}function R0(N,M){if(M.compareTo(N)<=0){var C=R0(N,M.square(M)),u=C.p,s=C.e,m=u.multiply(M);return m.compareTo(N)<=0?{p:m,e:s*2+1}:{p:u,e:s*2}}return{p:x4(1),e:0}}H.prototype.bitLength=function(){var N=this;if(N.compareTo(x4(0))<0)N=N.negate().subtract(x4(1));if(N.compareTo(x4(0))===0)return x4(0);return x4(R0(N,x4(2)).e).add(x4(1))},W.prototype.bitLength=G.prototype.bitLength=H.prototype.bitLength;function U1(N,M){return N=v0(N),M=v0(M),N.greater(M)?N:M}function O1(N,M){return N=v0(N),M=v0(M),N.lesser(M)?N:M}function b4(N,M){if(N=v0(N).abs(),M=v0(M).abs(),N.equals(M))return N;if(N.isZero())return M;if(M.isZero())return N;var C=q[1],u,s;while(N.isEven()&&M.isEven())u=O1(Q0(N),Q0(M)),N=N.divide(u),M=M.divide(u),C=C.multiply(u);while(N.isEven())N=N.divide(Q0(N));do{while(M.isEven())M=M.divide(Q0(M));if(N.greater(M))s=M,M=N,N=s;M=M.subtract(N)}while(!M.isZero());return C.isUnit()?N:N.multiply(C)}function f6(N,M){return N=v0(N).abs(),M=v0(M).abs(),N.divide(b4(N,M)).multiply(M)}function O$(N,M,C){N=v0(N),M=v0(M);var u=C||Math.random,s=O1(N,M),m=U1(N,M),e=m.subtract(s).add(1);if(e.isSmall)return s.add(Math.floor(u()*e));var K0=Y$(e,I).value,W0=[],_0=!0;for(var i0=0;i0=e){if(W0==="1"&&e===1)continue;throw Error(W0+" is not a valid digit in base "+M+".")}}}M=v0(M);var _0=[],i0=N[0]==="-";for(m=i0?1:0;m"&&m=0;m--)u=u.add(N[m].times(s)),s=s.times(M);return C?u.negate():u}function F$(N,M){if(M=M||Q,N"}function Y$(N,M){if(M=x4(M),M.isZero()){if(N.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(M.equals(-1)){if(N.isZero())return{value:[0],isNegative:!1};if(N.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-N.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var C=Array.apply(null,Array(N.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return C.unshift([1]),{value:[].concat.apply([],C),isNegative:!1}}var u=!1;if(N.isNegative()&&M.isPositive())u=!0,N=N.abs();if(M.isUnit()){if(N.isZero())return{value:[0],isNegative:!1};return{value:Array.apply(null,Array(N.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:u}}var s=[],m=N,e;while(m.isNegative()||m.compareAbs(M)>=0){e=m.divmod(M),m=e.quotient;var K0=e.remainder;if(K0.isNegative())K0=M.minus(K0).abs(),m=m.next();s.push(K0.toJSNumber())}return s.push(m.toJSNumber()),{value:s.reverse(),isNegative:u}}function T7(N,M,C){var u=Y$(N,M);return(u.isNegative?"-":"")+u.value.map(function(s){return F$(s,C)}).join("")}H.prototype.toArray=function(N){return Y$(this,N)},G.prototype.toArray=function(N){return Y$(this,N)},W.prototype.toArray=function(N){return Y$(this,N)},H.prototype.toString=function(N,M){if(N===$)N=10;if(N!==10||M)return T7(this,N,M);var C=this.value,u=C.length,s=String(C[--u]),m="0000000",e;while(--u>=0)e=String(C[u]),s+=m.slice(e.length)+e;var K0=this.sign?"-":"";return K0+s},G.prototype.toString=function(N,M){if(N===$)N=10;if(N!=10||M)return T7(this,N,M);return String(this.value)},W.prototype.toString=G.prototype.toString,W.prototype.toJSON=H.prototype.toJSON=G.prototype.toJSON=function(){return this.toString()},H.prototype.valueOf=function(){return parseInt(this.toString(),10)},H.prototype.toJSNumber=H.prototype.valueOf,G.prototype.valueOf=function(){return this.value},G.prototype.toJSNumber=G.prototype.valueOf,W.prototype.valueOf=W.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function J$(N){if(w(+N)){var M=+N;if(M===D(M))return K?new W(BigInt(M)):new G(M);throw Error("Invalid integer: "+N)}var C=N[0]==="-";if(C)N=N.slice(1);var u=N.split(/e/i);if(u.length>2)throw Error("Invalid integer: "+u.join("e"));if(u.length===2){var s=u[1];if(s[0]==="+")s=s.slice(1);if(s=+s,s!==D(s)||!w(s))throw Error("Invalid integer: "+s+" is not a valid exponent.");var m=u[0],e=m.indexOf(".");if(e>=0)s-=m.length-e-1,m=m.slice(0,e)+m.slice(e+1);if(s<0)throw Error("Cannot include negative exponent part for integers");m+=Array(s+1).join("0"),N=m}var K0=/^([0-9][0-9]*)$/.test(N);if(!K0)throw Error("Invalid integer: "+N);if(K)return new W(BigInt(C?"-"+N:N));var W0=[],_0=N.length,i0=U,f0=_0-i0;while(_0>0){if(W0.push(+N.slice(f0,_0)),f0-=i0,f0<0)f0=0;_0-=i0}return X(W0),new H(W0,C)}function a5(N){if(K)return new W(BigInt(N));if(w(N)){if(N!==D(N))throw Error(N+" is not an integer.");return new G(N)}return J$(N.toString())}function v0(N){if(typeof N==="number")return a5(N);if(typeof N==="string")return J$(N);if(typeof N==="bigint")return new W(N);return N}for(var a=0;a<1000;a++)if(q[a]=v0(a),a>0)q[-a]=v0(-a);return q.one=q[1],q.zero=q[0],q.minusOne=q[-1],q.max=U1,q.min=O1,q.gcd=b4,q.lcm=f6,q.isInstance=function(N){return N instanceof H||N instanceof G||N instanceof W},q.randBetween=O$,q.fromArray=function(N,M,C){return P6(N.map(v0),v0(M||10),C)},q}();if(typeof uL<"u"&&uL.hasOwnProperty("exports"))uL.exports=x4;if(typeof define==="function"&&define.amd)define(function(){return x4})});var lW0=O((h_1,mW0)=>{var O7=cW0(),xL=t("stream");if(!xL.Writable||!xL.Writable.prototype.destroy)xL=b5();var kL;function SQ1(){var $=3988292384,I,U,Y;kL=[];for(U=0;U<256;U++){I=U;for(Y=0;Y<8;Y++)I=I&1?$^I>>>1:I=I>>>1;kL[U]=I>>>0}}function dW0($,I){if(!kL)SQ1();if($.charCodeAt)$=$.charCodeAt(0);return O7(I).shiftRight(8).and(16777215).xor(kL[O7(I).xor($).and(255)]).value}function XJ(){if(!(this instanceof XJ))return new XJ;this.key0=305419896,this.key1=591751049,this.key2=878082192}XJ.prototype.update=function($){this.key0=dW0($,this.key0),this.key1=O7(this.key0).and(255).and(4294967295).add(this.key1),this.key1=O7(this.key1).multiply(134775813).add(1).and(4294967295).value,this.key2=dW0(O7(this.key1).shiftRight(24).and(255),this.key2)};XJ.prototype.decryptByte=function($){var I=O7(this.key2).or(2);return $=$^O7(I).multiply(O7(I^1)).shiftRight(8).and(255),this.update($),$};XJ.prototype.stream=function(){var $=xL.Transform(),I=this;return $._transform=function(U,Y,J){for(var Q=0;Q{var gQ1=W7(),yQ1=lW0(),hQ1=HL(),UH=t("stream"),uQ1=Aq(),xQ1=t("zlib"),kQ1=wL(),fQ1=JJ(),bQ1=VL();if(!UH.Writable||!UH.Writable.prototype.destroy)UH=b5();oW0.exports=function(I,U,Y,J){var Q=hQ1(),K=UH.PassThrough(),q=I.stream(U);return q.pipe(Q).on("error",function(H){K.emit("error",H)}),K.vars=Q.pull(30).then(function(H){var G=uQ1.parse(H).word32lu("signature").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return G.lastModifiedDateTime=bQ1(G.lastModifiedDate,G.lastModifiedTime),Q.pull(G.fileNameLength).then(function(W){return G.fileName=W.toString("utf8"),Q.pull(G.extraFieldLength)}).then(function(W){var w;if(G.extra=kQ1(W,G),J&&J.compressedSize)G=J;if(G.flags&1)w=Q.pull(12).then(function(Z){if(!Y)throw Error("MISSING_PASSWORD");var V=yQ1();String(Y).split("").forEach(function(D){V.update(D)});for(var X=0;X>8&255:G.crc32>>24&255;if(Z[11]!==L)throw Error("BAD_PASSWORD");return G});return gQ1.resolve(w).then(function(){return K.emit("vars",G),G})})}),K.vars.then(function(H){var G=!(H.flags&8)||H.compressedSize>0,W,w=H.compressionMethod?xQ1.createInflateRaw():UH.PassThrough();if(G)K.size=H.uncompressedSize,W=H.compressedSize;else W=fQ1.alloc(4),W.writeUInt32LE(134695760,0);var Z=Q.stream(W);if(H.decrypt)Z=Z.pipe(H.decrypt.stream());Z.pipe(w).on("error",function(V){K.emit("error",V)}).pipe(K).on("finish",function(){if(q.destroy)q.destroy();else if(q.abort)q.abort();else if(q.close)q.close();else if(q.push)q.push();else console.log("warning - unable to close stream")})}).catch(function(H){K.emit("error",H)}),K}});var sW0=O((x_1,aW0)=>{var QH=Aq(),JH=HL(),iQ1=rW0(),YH=W7(),nQ1=WL(),pQ1=wL(),cQ1=JJ(),Jh=t("path"),dQ1=Uh().Writer,mQ1=VL(),tW0=cQ1.alloc(4);tW0.writeUInt32LE(101010256,0);function lQ1($){var I=$.stream(0).pipe(JH());return I.pull(4).then(function(U){var Y=U.readUInt32LE(0);if(Y===875721283){var J;return I.pull(12).then(function(Q){J=QH.parse(Q).word32lu("version").word32lu("pubKeyLength").word32lu("signatureLength").vars}).then(function(){return I.pull(J.pubKeyLength+J.signatureLength)}).then(function(Q){return J.publicKey=Q.slice(0,J.pubKeyLength),J.signature=Q.slice(J.pubKeyLength),J.size=16+J.pubKeyLength+J.signatureLength,J})}})}function oQ1($,I){var U=QH.parse(I).word32lu("signature").word32lu("diskNumber").word64lu("offsetToStartOfCentralDirectory").word32lu("numberOfDisks").vars;if(U.signature!=117853008)throw Error("invalid zip64 end of central dir locator signature (0x07064b50): 0x"+U.signature.toString(16));var Y=JH();return $.stream(U.offsetToStartOfCentralDirectory).pipe(Y),Y.pull(56)}function rQ1($){var I=QH.parse($).word32lu("signature").word64lu("sizeOfCentralDirectory").word16lu("version").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskStart").word64lu("numberOfRecordsOnDisk").word64lu("numberOfRecords").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;if(I.signature!=101075792)throw Error("invalid zip64 end of central dir locator signature (0x06064b50): 0x0"+I.signature.toString(16));return I}aW0.exports=function(I,U){var Y=JH(),J=JH(),Q=U&&U.tailSize||80,K,q,H,G;if(U&&U.crx)q=lQ1(I);return I.size().then(function(W){return K=W,I.stream(Math.max(0,W-Q)).on("error",function(w){Y.emit("error",w)}).pipe(Y),Y.pull(tW0)}).then(function(){return YH.props({directory:Y.pull(22),crxHeader:q})}).then(function(W){var w=W.directory;if(H=W.crxHeader&&W.crxHeader.size||0,G=QH.parse(w).word32lu("signature").word16lu("diskNumber").word16lu("diskStart").word16lu("numberOfRecordsOnDisk").word16lu("numberOfRecords").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars,G.numberOfRecords==65535||G.numberOfRecords==65535||G.offsetToStartOfCentralDirectory==4294967295){let V=K-(Q-Y.match+20),X=JH();return I.stream(V).pipe(X),X.pull(20).then(function(L){return oQ1(I,L)}).then(function(L){G=rQ1(L)})}else G.offsetToStartOfCentralDirectory+=H}).then(function(){if(G.commentLength)return Y.pull(G.commentLength).then(function(W){G.comment=W.toString("utf8")})}).then(function(){return I.stream(G.offsetToStartOfCentralDirectory).pipe(J),G.extract=function(W){if(!W||!W.path)throw Error("PATH_MISSING");return W.path=Jh.resolve(Jh.normalize(W.path)),G.files.then(function(w){return YH.map(w,function(Z){if(Z.type=="Directory")return;var V=Jh.join(W.path,Z.path);if(V.indexOf(W.path)!=0)return;var X=W.getWriter?W.getWriter({path:V}):dQ1({path:V});return new YH(function(L,D){Z.stream(W.password).on("error",D).pipe(X).on("close",L).on("error",D)})},{concurrency:W.concurrency>1?W.concurrency:1})})},G.files=YH.mapSeries(Array(G.numberOfRecords),function(){return J.pull(46).then(function(W){var w=QH.parse(W).word32lu("signature").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return w.offsetToLocalFileHeader+=H,w.lastModifiedDateTime=mQ1(w.lastModifiedDate,w.lastModifiedTime),J.pull(w.fileNameLength).then(function(Z){return w.pathBuffer=Z,w.path=Z.toString("utf8"),w.isUnicode=(w.flags&2048)!=0,J.pull(w.extraFieldLength)}).then(function(Z){return w.extra=pQ1(Z,w),J.pull(w.fileCommentLength)}).then(function(Z){return w.comment=Z,w.type=w.uncompressedSize===0&&/[\/\\]$/.test(w.path)?"Directory":"File",w.stream=function(V){return iQ1(I,w.offsetToLocalFileHeader,V,w)},w.buffer=function(V){return nQ1(w.stream(V))},w})})}),YH.props(G)})}});var Iw0=O((k_1,$w0)=>{var eW0=s6(),fL=W7(),KH=sW0(),bL=t("stream");if(!bL.Writable||!bL.Writable.prototype.destroy)bL=b5();$w0.exports={buffer:function($,I){var U={stream:function(Y,J){var Q=bL.PassThrough();return Q.end($.slice(Y,J)),Q},size:function(){return fL.resolve($.length)}};return KH(U,I)},file:function($,I){var U={stream:function(Y,J){return eW0.createReadStream($,{start:Y,end:J&&Y+J})},size:function(){return new fL(function(Y,J){eW0.stat($,function(Q,K){if(Q)J(Q);else Y(K.size)})})}};return KH(U,I)},url:function($,I,U){if(typeof I==="string")I={url:I};if(!I.url)throw"URL missing";I.headers=I.headers||{};var Y={stream:function(J,Q){var K=Object.create(I);return K.headers=Object.create(I.headers),K.headers.range="bytes="+J+"-"+(Q?Q:""),$(K)},size:function(){return new fL(function(J,Q){var K=$(I);K.on("response",function(q){if(K.abort(),!q.headers["content-length"])Q(Error("Missing content length header"));else J(q.headers["content-length"])}).on("error",Q)})}};return KH(Y,U)},s3:function($,I,U){var Y={size:function(){return new fL(function(J,Q){$.headObject(I,function(K,q){if(K)Q(K);else J(q.ContentLength)})})},stream:function(J,Q){var K={};for(var q in I)K[q]=I[q];return K.Range="bytes="+J+"-"+(Q?Q:""),$.getObject(K).createReadStream()}};return KH(Y,U)},custom:function($,I){return KH($,I)}}});var Uw0=O((tQ1)=>{a20();IK0();uB();tQ1.Parse=ZL();tQ1.ParseOne=DG0();tQ1.Extract=pW0();tQ1.Open=Iw0()});var Dw0=O((F21,p5)=>{/*! +actual: `+$._bytesWritten);uL.prototype._finish.call($)}});var sy=O((P_1,SW0)=>{SW0.exports=D7;var ay=LJ(),WQ1=lq(),wQ1=d0(),VQ1=yL(),ZQ1=t("fs");wQ1(D7,ay);function D7($){var I=this;if(!(I instanceof D7))throw Error("ProxyWriter must be called as constructor.");I.props=$,I._needDrain=!1,ay.call(I,$)}D7.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";ZQ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=WQ1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(ay(I,J))})};D7.prototype._addProxy=function($){var I=this;if(I._proxy)return I.error("proxy already set");I._proxy=$,["ready","error","close","pipe","drain","warn"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$);var U=I._buffer;if(U.forEach(function(Y){$[Y[0]].apply($,Y[1])}),I._buffer.length=0,I._needsDrain)I.emit("drain")};D7.prototype.add=function($){if(VQ1($),!this._proxy)return this._buffer.push(["add",[$]]),this._needDrain=!0,!1;return this._proxy.add($)};D7.prototype.write=function($){if(!this._proxy)return this._buffer.push(["write",[$]]),this._needDrain=!0,!1;return this._proxy.write($)};D7.prototype.end=function($){if(!this._proxy)return this._buffer.push(["end",[$]]),!1;return this._proxy.end($)}});var LJ=O((T_1,bW0)=>{bW0.exports=i$;var f$=s6(),zQ1=d0(),XQ1=by(),LQ1=my(),eq=t("path"),yW0=process.platform==="win32"?0:process.umask(),hW0=lq(),uW0=PL();zQ1(i$,uW0);i$.dirmode=parseInt("0777",8)&~yW0;i$.filemode=parseInt("0666",8)&~yW0;var DQ1=oy(),OQ1=ry(),FQ1=ty(),NQ1=sy();function i$($,I){var U=this;if(typeof $==="string")$={path:$};var Y=hW0($),J=i$;switch(Y){case"Directory":J=DQ1;break;case"File":J=FQ1;break;case"Link":case"SymbolicLink":J=OQ1;break;case null:default:J=NQ1;break}if(!(U instanceof J))return new J($);if(uW0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.type=$.type,U.props=$,U.depth=$.depth||0,U.clobber=$.clobber===!1?$.clobber:!0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=eq.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=eq.basename($.path),U.dirname=eq.dirname($.path),U.linkpath=$.linkpath||null,$.parent=$.root=null,U.size=$.size,typeof $.mode==="string")$.mode=parseInt($.mode,8);U.readable=!1,U.writable=!0,U._buffer=[],U.ready=!1,U.filter=typeof $.filter==="function"?$.filter:null,U._stat(I)}i$.prototype._create=function(){var $=this;f$[$.props.follow?"stat":"lstat"]($._path,function(I){if(I)return $.warn("Cannot create "+$._path+` +Unsupported type: `+$.type,"ENOTSUP");$._finish()})};i$.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat",J=I._proxy||I;if($)Q(null,$);else f$[Y](I._path,Q);function Q(K,q){if(I.filter&&!I.filter.call(J,J,q)){I._aborted=!0,I.emit("end"),I.emit("close");return}if(K||!q)return ey(I);I._old=q;var H=hW0(q);if(H!==I.type||I.type==="File"&&q.nlink>1)return XQ1(I._path,function(G){if(G)return I.error(G);I._old=null,ey(I)});ey(I)}};function ey($){LQ1(eq.dirname($._path),i$.dirmode,function(I,U){if(I)return $.error(I);return $._madeDir=U,$._create()})}function kW0($,I,U,Y,J){var Q=I.mode,K=I.follow||$.type!=="SymbolicLink"?"chmod":"lchmod";if(!f$[K])return J();if(typeof Q!=="number")return J();var q=U.mode&parseInt("0777",8);if(Q=Q&parseInt("0777",8),Q===q)return J();f$[K](Y,Q,J)}function xW0($,I,U,Y,J){if(process.platform==="win32")return J();if(!process.getuid||process.getuid()!==0)return J();if(typeof I.uid!=="number"&&typeof I.gid!=="number")return J();if(U.uid===I.uid&&U.gid===I.gid)return J();var Q=$.props.follow||$.type!=="SymbolicLink"?"chown":"lchown";if(!f$[Q])return J();if(typeof I.uid!=="number")I.uid=U.uid;if(typeof I.gid!=="number")I.gid=U.gid;f$[Q](Y,I.uid,I.gid,J)}function fW0($,I,U,Y,J){if(!f$.utimes||process.platform==="win32")return J();var Q=I.follow||$.type!=="SymbolicLink"?"utimes":"lutimes";if(Q==="lutimes"&&!f$[Q])Q="utimes";if(!f$[Q])return J();var{atime:K,mtime:q}=U,H=I.atime,G=I.mtime;if(H===void 0)H=K;if(G===void 0)G=q;if(!gW0(H))H=new Date(H);if(!gW0(G))H=new Date(G);if(H.getTime()===K.getTime()&&G.getTime()===q.getTime())return J();f$[Q](Y,H,G,J)}i$.prototype._finish=function(){var $=this;if($._finishing)return;$._finishing=!0;var I=0,U=null,Y=!1;if($._old)$._old.atime=new Date(0),$._old.mtime=new Date(0),Q($._old);else{var J=$.props.follow?"stat":"lstat";f$[J]($._path,function(q,H){if(q)if(q.code==="ENOENT"&&($.type==="Link"||$.type==="SymbolicLink")&&process.platform==="win32"){$.ready=!0,$.emit("ready"),$.emit("end"),$.emit("close"),$.end=$._finish=function(){};return}else return $.error(q);Q($._old=H)})}return;function Q(q){I+=3,kW0($,$.props,q,$._path,K("chmod")),xW0($,$.props,q,$._path,K("chown")),fW0($,$.props,q,$._path,K("utimes"))}function K(q){return function(H){if(U)return;if(H)return H.fstream_finish_call=q,$.error(U=H);if(--I>0)return;if(Y)return;if(Y=!0,!$._madeDir)return G();else iW0($,$._path,G);function G(W){if(W)return W.fstream_finish_call="setupMadeDir",$.error(W);$.emit("end"),$.emit("close")}}}};function iW0($,I,U){var Y=$._madeDir,J=eq.dirname(I);MQ1($,J,function(Q){if(Q)return U(Q);if(J===Y)return U();iW0($,J,U)})}function MQ1($,I,U){var Y={};Object.keys($.props).forEach(function(q){if(Y[q]=$.props[q],q==="mode"&&$.type!=="Directory")Y[q]=Y[q]|parseInt("0111",8)});var J=3,Q=null;f$.stat(I,function(q,H){if(q)return U(Q=q);kW0($,Y,H,I,K),xW0($,Y,H,I,K),fW0($,Y,H,I,K)});function K(q){if(Q)return;if(q)return U(Q=q);if(--J===0)return U()}}i$.prototype.pipe=function(){this.error("Can't pipe from writable stream")};i$.prototype.add=function(){this.error("Can't add to non-Directory type")};i$.prototype.write=function(){return!0};function AQ1($){return Object.prototype.toString.call($)}function gW0($){return typeof $==="object"&&AQ1($)==="[object Date]"}});var Jh=O((PQ1)=>{PQ1.Abstract=PL();PQ1.Reader=s3();PQ1.Writer=LJ();PQ1.File={Reader:gy(),Writer:ty()};PQ1.Dir={Reader:Sy(),Writer:oy()};PQ1.Link={Reader:Cy(),Writer:ry()};PQ1.Proxy={Reader:hy(),Writer:sy()};PQ1.Reader.Dir=PQ1.DirReader=PQ1.Dir.Reader;PQ1.Reader.File=PQ1.FileReader=PQ1.File.Reader;PQ1.Reader.Link=PQ1.LinkReader=PQ1.Link.Reader;PQ1.Reader.Proxy=PQ1.ProxyReader=PQ1.Proxy.Reader;PQ1.Writer.Dir=PQ1.DirWriter=PQ1.Dir.Writer;PQ1.Writer.File=PQ1.FileWriter=PQ1.File.Writer;PQ1.Writer.Link=PQ1.LinkWriter=PQ1.Link.Writer;PQ1.Writer.Proxy=PQ1.ProxyWriter=PQ1.Proxy.Writer;PQ1.collect=yL()});var pW0=O((y_1,nW0)=>{nW0.exports=_Q1;var BQ1=zL(),vQ1=Jh().Writer,Qh=t("path"),RQ1=t("stream"),jQ1=vy(),CQ1=W7();function _Q1($){$.path=Qh.resolve(Qh.normalize($.path));var I=new BQ1($),U=new RQ1.Writable({objectMode:!0});U._write=function(J,Q,K){if(J.type=="Directory")return K();var q=Qh.join($.path,J.path);if(q.indexOf($.path)!=0)return K();let H=$.getWriter?$.getWriter({path:q}):vQ1({path:q});J.pipe(H).on("error",K).on("close",K)};var Y=jQ1(I,U);return I.once("crx-header",function(J){Y.crxHeader=J}),I.pipe(U).on("finish",function(){Y.emit("close")}),Y.promise=function(){return new CQ1(function(J,Q){Y.on("close",J),Y.on("error",Q)})},Y}});var cW0=O((h_1,kL)=>{var k4=function($){var I=1e7,U=7,Y=9007199254740992,J=Z(Y),Q="0123456789abcdefghijklmnopqrstuvwxyz",K=typeof BigInt==="function";function q(N,M,C,u){if(typeof N>"u")return q[0];if(typeof M<"u")return+M===10&&!C?v0(N):i6(N,M,C,u);return v0(N)}function H(N,M){this.value=N,this.sign=M,this.isSmall=!1}H.prototype=Object.create(q.prototype);function G(N){this.value=N,this.sign=N<0,this.isSmall=!0}G.prototype=Object.create(q.prototype);function W(N){this.value=N}W.prototype=Object.create(q.prototype);function w(N){return-Y0)return Math.floor(N);return Math.ceil(N)}function F(N,M){var C=N.length,u=M.length,s=Array(C),m=0,e=I,K0,W0;for(W0=0;W0=e?1:0,s[W0]=K0-m*e;while(W00)s.push(m);return s}function P(N,M){if(N.length>=M.length)return F(N,M);return F(M,N)}function T(N,M){var C=N.length,u=Array(C),s=I,m,e;for(e=0;e0)u[e++]=M%s,M=Math.floor(M/s);return u}H.prototype.add=function(N){var M=v0(N);if(this.sign!==M.sign)return this.subtract(M.negate());var C=this.value,u=M.value;if(M.isSmall)return new H(T(C,Math.abs(u)),this.sign);return new H(P(C,u),this.sign)},H.prototype.plus=H.prototype.add,G.prototype.add=function(N){var M=v0(N),C=this.value;if(C<0!==M.sign)return this.subtract(M.negate());var u=M.value;if(M.isSmall){if(w(C+u))return new G(C+u);u=Z(Math.abs(u))}return new H(T(u,Math.abs(C)),C<0)},G.prototype.plus=G.prototype.add,W.prototype.add=function(N){return new W(this.value+v0(N).value)},W.prototype.plus=W.prototype.add;function A(N,M){var C=N.length,u=M.length,s=Array(C),m=0,e=I,K0,W0;for(K0=0;K0=0)u=A(N,M);else u=A(M,N),C=!C;if(u=V(u),typeof u==="number"){if(C)u=-u;return new G(u)}return new H(u,C)}function x(N,M,C){var u=N.length,s=Array(u),m=-M,e=I,K0,W0;for(K0=0;K0=0)},G.prototype.minus=G.prototype.subtract,W.prototype.subtract=function(N){return new W(this.value-v0(N).value)},W.prototype.minus=W.prototype.subtract,H.prototype.negate=function(){return new H(this.value,!this.sign)},G.prototype.negate=function(){var N=this.sign,M=new G(-this.value);return M.sign=!N,M},W.prototype.negate=function(){return new W(-this.value)},H.prototype.abs=function(){return new H(this.value,!1)},G.prototype.abs=function(){return new G(Math.abs(this.value))},W.prototype.abs=function(){return new W(this.value>=0?this.value:-this.value)};function y(N,M){var C=N.length,u=M.length,s=C+u,m=L(s),e=I,K0,W0,_0,b0,f0;for(_0=0;_00)u[K0++]=m%s,m=Math.floor(m/s);return u}function j(N,M){var C=[];while(M-- >0)C.push(0);return C.concat(N)}function p(N,M){var C=Math.max(N.length,M.length);if(C<=30)return y(N,M);C=Math.ceil(C/2);var u=N.slice(C),s=N.slice(0,C),m=M.slice(C),e=M.slice(0,C),K0=p(s,e),W0=p(u,m),_0=p(P(s,u),P(e,m)),b0=P(P(K0,j(A(A(_0,K0),W0),C)),j(W0,2*C));return X(b0),b0}function n(N,M){return-0.012*N-0.012*M+0.000015*N*M>0}H.prototype.multiply=function(N){var M=v0(N),C=this.value,u=M.value,s=this.sign!==M.sign,m;if(M.isSmall){if(u===0)return q[0];if(u===1)return this;if(u===-1)return this.negate();if(m=Math.abs(u),m=0;f0--){if(b0=s-1,W0[f0+u]!==e)b0=Math.floor((W0[f0+u]*s+W0[f0+u-1])/e);H1=0,G4=0,s5=_0.length;for(Z6=0;Z6u)_0=(_0+1)*e;K0=Math.ceil(_0/b0);do{if(f0=f(M,K0),c(f0,m)<=0)break;K0--}while(K0);s.push(K0),m=A(m,f0)}return s.reverse(),[V(s),V(m)]}function B(N,M){var C=N.length,u=L(C),s=I,m,e,K0,W0;K0=0;for(m=C-1;m>=0;--m)W0=K0*s+N[m],e=D(W0/M),K0=W0-e*M,u[m]=e|0;return[u,K0|0]}function k(N,M){var C,u=v0(M);if(K)return[new W(N.value/u.value),new W(N.value%u.value)];var s=N.value,m=u.value,e;if(m===0)throw Error("Cannot divide by zero");if(N.isSmall){if(u.isSmall)return[new G(D(s/m)),new G(s%m)];return[q[0],N]}if(u.isSmall){if(m===1)return[N,q[0]];if(m==-1)return[N.negate(),q[0]];var K0=Math.abs(m);if(K0M.length?1:-1;for(var C=N.length-1;C>=0;C--)if(N[C]!==M[C])return N[C]>M[C]?1:-1;return 0}H.prototype.compareAbs=function(N){var M=v0(N),C=this.value,u=M.value;if(M.isSmall)return 1;return c(C,u)},G.prototype.compareAbs=function(N){var M=v0(N),C=Math.abs(this.value),u=M.value;if(M.isSmall)return u=Math.abs(u),C===u?0:C>u?1:-1;return-1},W.prototype.compareAbs=function(N){var M=this.value,C=v0(N).value;return M=M>=0?M:-M,C=C>=0?C:-C,M===C?0:M>C?1:-1},H.prototype.compare=function(N){if(N===1/0)return-1;if(N===-1/0)return 1;var M=v0(N),C=this.value,u=M.value;if(this.sign!==M.sign)return M.sign?1:-1;if(M.isSmall)return this.sign?-1:1;return c(C,u)*(this.sign?-1:1)},H.prototype.compareTo=H.prototype.compare,G.prototype.compare=function(N){if(N===1/0)return-1;if(N===-1/0)return 1;var M=v0(N),C=this.value,u=M.value;if(M.isSmall)return C==u?0:C>u?1:-1;if(C<0!==M.sign)return C<0?-1:1;return C<0?1:-1},G.prototype.compareTo=G.prototype.compare,W.prototype.compare=function(N){if(N===1/0)return-1;if(N===-1/0)return 1;var M=this.value,C=v0(N).value;return M===C?0:M>C?1:-1},W.prototype.compareTo=W.prototype.compare,H.prototype.equals=function(N){return this.compare(N)===0},W.prototype.eq=W.prototype.equals=G.prototype.eq=G.prototype.equals=H.prototype.eq=H.prototype.equals,H.prototype.notEquals=function(N){return this.compare(N)!==0},W.prototype.neq=W.prototype.notEquals=G.prototype.neq=G.prototype.notEquals=H.prototype.neq=H.prototype.notEquals,H.prototype.greater=function(N){return this.compare(N)>0},W.prototype.gt=W.prototype.greater=G.prototype.gt=G.prototype.greater=H.prototype.gt=H.prototype.greater,H.prototype.lesser=function(N){return this.compare(N)<0},W.prototype.lt=W.prototype.lesser=G.prototype.lt=G.prototype.lesser=H.prototype.lt=H.prototype.lesser,H.prototype.greaterOrEquals=function(N){return this.compare(N)>=0},W.prototype.geq=W.prototype.greaterOrEquals=G.prototype.geq=G.prototype.greaterOrEquals=H.prototype.geq=H.prototype.greaterOrEquals,H.prototype.lesserOrEquals=function(N){return this.compare(N)<=0},W.prototype.leq=W.prototype.lesserOrEquals=G.prototype.leq=G.prototype.lesserOrEquals=H.prototype.leq=H.prototype.lesserOrEquals,H.prototype.isEven=function(){return(this.value[0]&1)===0},G.prototype.isEven=function(){return(this.value&1)===0},W.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},H.prototype.isOdd=function(){return(this.value[0]&1)===1},G.prototype.isOdd=function(){return(this.value&1)===1},W.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},H.prototype.isPositive=function(){return!this.sign},G.prototype.isPositive=function(){return this.value>0},W.prototype.isPositive=G.prototype.isPositive,H.prototype.isNegative=function(){return this.sign},G.prototype.isNegative=function(){return this.value<0},W.prototype.isNegative=G.prototype.isNegative,H.prototype.isUnit=function(){return!1},G.prototype.isUnit=function(){return Math.abs(this.value)===1},W.prototype.isUnit=function(){return this.abs().value===BigInt(1)},H.prototype.isZero=function(){return!1},G.prototype.isZero=function(){return this.value===0},W.prototype.isZero=function(){return this.value===BigInt(0)},H.prototype.isDivisibleBy=function(N){var M=v0(N);if(M.isZero())return!1;if(M.isUnit())return!0;if(M.compareAbs(2)===0)return this.isEven();return this.mod(M).isZero()},W.prototype.isDivisibleBy=G.prototype.isDivisibleBy=H.prototype.isDivisibleBy;function r(N){var M=N.abs();if(M.isUnit())return!1;if(M.equals(2)||M.equals(3)||M.equals(5))return!0;if(M.isEven()||M.isDivisibleBy(3)||M.isDivisibleBy(5))return!1;if(M.lesser(49))return!0}function J0(N,M){var C=N.prev(),u=C,s=0,m,e,K0,W0;while(u.isEven())u=u.divide(2),s++;$:for(K0=0;K0-Y)return new G(N-1);return new H(J,!0)},W.prototype.prev=function(){return new W(this.value-BigInt(1))};var w0=[1];while(2*w0[w0.length-1]<=I)w0.push(2*w0[w0.length-1]);var A0=w0.length,j0=w0[A0-1];function q1(N){return Math.abs(N)<=I}H.prototype.shiftLeft=function(N){var M=v0(N).toJSNumber();if(!q1(M))throw Error(String(M)+" is too large for shifting.");if(M<0)return this.shiftRight(-M);var C=this;if(C.isZero())return C;while(M>=A0)C=C.multiply(j0),M-=A0-1;return C.multiply(w0[M])},W.prototype.shiftLeft=G.prototype.shiftLeft=H.prototype.shiftLeft,H.prototype.shiftRight=function(N){var M,C=v0(N).toJSNumber();if(!q1(C))throw Error(String(C)+" is too large for shifting.");if(C<0)return this.shiftLeft(-C);var u=this;while(C>=A0){if(u.isZero()||u.isNegative()&&u.isUnit())return u;M=k(u,j0),u=M[1].isNegative()?M[0].prev():M[0],C-=A0-1}return M=k(u,w0[C]),M[1].isNegative()?M[0].prev():M[0]},W.prototype.shiftRight=G.prototype.shiftRight=H.prototype.shiftRight;function x0(N,M,C){M=v0(M);var u=N.isNegative(),s=M.isNegative(),m=u?N.not():N,e=s?M.not():M,K0=0,W0=0,_0=null,b0=null,f0=[];while(!m.isZero()||!e.isZero()){if(_0=k(m,j0),K0=_0[1].toJSNumber(),u)K0=j0-1-K0;if(b0=k(e,j0),W0=b0[1].toJSNumber(),s)W0=j0-1-W0;m=_0[0],e=b0[0],f0.push(C(K0,W0))}var H1=C(u?1:0,s?1:0)!==0?k4(-1):k4(0);for(var G4=f0.length-1;G4>=0;G4-=1)H1=H1.multiply(j0).add(k4(f0[G4]));return H1}H.prototype.not=function(){return this.negate().prev()},W.prototype.not=G.prototype.not=H.prototype.not,H.prototype.and=function(N){return x0(this,N,function(M,C){return M&C})},W.prototype.and=G.prototype.and=H.prototype.and,H.prototype.or=function(N){return x0(this,N,function(M,C){return M|C})},W.prototype.or=G.prototype.or=H.prototype.or,H.prototype.xor=function(N){return x0(this,N,function(M,C){return M^C})},W.prototype.xor=G.prototype.xor=H.prototype.xor;var I1=1073741824,M0=(I&-I)*(I&-I)|I1;function Q0(N){var M=N.value,C=typeof M==="number"?M|I1:typeof M==="bigint"?M|BigInt(I1):M[0]+M[1]*I|M0;return C&-C}function R0(N,M){if(M.compareTo(N)<=0){var C=R0(N,M.square(M)),u=C.p,s=C.e,m=u.multiply(M);return m.compareTo(N)<=0?{p:m,e:s*2+1}:{p:u,e:s*2}}return{p:k4(1),e:0}}H.prototype.bitLength=function(){var N=this;if(N.compareTo(k4(0))<0)N=N.negate().subtract(k4(1));if(N.compareTo(k4(0))===0)return k4(0);return k4(R0(N,k4(2)).e).add(k4(1))},W.prototype.bitLength=G.prototype.bitLength=H.prototype.bitLength;function U1(N,M){return N=v0(N),M=v0(M),N.greater(M)?N:M}function O1(N,M){return N=v0(N),M=v0(M),N.lesser(M)?N:M}function i4(N,M){if(N=v0(N).abs(),M=v0(M).abs(),N.equals(M))return N;if(N.isZero())return M;if(M.isZero())return N;var C=q[1],u,s;while(N.isEven()&&M.isEven())u=O1(Q0(N),Q0(M)),N=N.divide(u),M=M.divide(u),C=C.multiply(u);while(N.isEven())N=N.divide(Q0(N));do{while(M.isEven())M=M.divide(Q0(M));if(N.greater(M))s=M,M=N,N=s;M=M.subtract(N)}while(!M.isZero());return C.isUnit()?N:N.multiply(C)}function f6(N,M){return N=v0(N).abs(),M=v0(M).abs(),N.divide(i4(N,M)).multiply(M)}function F$(N,M,C){N=v0(N),M=v0(M);var u=C||Math.random,s=O1(N,M),m=U1(N,M),e=m.subtract(s).add(1);if(e.isSmall)return s.add(Math.floor(u()*e));var K0=Y$(e,I).value,W0=[],_0=!0;for(var b0=0;b0=e){if(W0==="1"&&e===1)continue;throw Error(W0+" is not a valid digit in base "+M+".")}}}M=v0(M);var _0=[],b0=N[0]==="-";for(m=b0?1:0;m"&&m=0;m--)u=u.add(N[m].times(s)),s=s.times(M);return C?u.negate():u}function N$(N,M){if(M=M||Q,N"}function Y$(N,M){if(M=k4(M),M.isZero()){if(N.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(M.equals(-1)){if(N.isZero())return{value:[0],isNegative:!1};if(N.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-N.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var C=Array.apply(null,Array(N.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return C.unshift([1]),{value:[].concat.apply([],C),isNegative:!1}}var u=!1;if(N.isNegative()&&M.isPositive())u=!0,N=N.abs();if(M.isUnit()){if(N.isZero())return{value:[0],isNegative:!1};return{value:Array.apply(null,Array(N.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:u}}var s=[],m=N,e;while(m.isNegative()||m.compareAbs(M)>=0){e=m.divmod(M),m=e.quotient;var K0=e.remainder;if(K0.isNegative())K0=M.minus(K0).abs(),m=m.next();s.push(K0.toJSNumber())}return s.push(m.toJSNumber()),{value:s.reverse(),isNegative:u}}function T7(N,M,C){var u=Y$(N,M);return(u.isNegative?"-":"")+u.value.map(function(s){return N$(s,C)}).join("")}H.prototype.toArray=function(N){return Y$(this,N)},G.prototype.toArray=function(N){return Y$(this,N)},W.prototype.toArray=function(N){return Y$(this,N)},H.prototype.toString=function(N,M){if(N===$)N=10;if(N!==10||M)return T7(this,N,M);var C=this.value,u=C.length,s=String(C[--u]),m="0000000",e;while(--u>=0)e=String(C[u]),s+=m.slice(e.length)+e;var K0=this.sign?"-":"";return K0+s},G.prototype.toString=function(N,M){if(N===$)N=10;if(N!=10||M)return T7(this,N,M);return String(this.value)},W.prototype.toString=G.prototype.toString,W.prototype.toJSON=H.prototype.toJSON=G.prototype.toJSON=function(){return this.toString()},H.prototype.valueOf=function(){return parseInt(this.toString(),10)},H.prototype.toJSNumber=H.prototype.valueOf,G.prototype.valueOf=function(){return this.value},G.prototype.toJSNumber=G.prototype.valueOf,W.prototype.valueOf=W.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function J$(N){if(w(+N)){var M=+N;if(M===D(M))return K?new W(BigInt(M)):new G(M);throw Error("Invalid integer: "+N)}var C=N[0]==="-";if(C)N=N.slice(1);var u=N.split(/e/i);if(u.length>2)throw Error("Invalid integer: "+u.join("e"));if(u.length===2){var s=u[1];if(s[0]==="+")s=s.slice(1);if(s=+s,s!==D(s)||!w(s))throw Error("Invalid integer: "+s+" is not a valid exponent.");var m=u[0],e=m.indexOf(".");if(e>=0)s-=m.length-e-1,m=m.slice(0,e)+m.slice(e+1);if(s<0)throw Error("Cannot include negative exponent part for integers");m+=Array(s+1).join("0"),N=m}var K0=/^([0-9][0-9]*)$/.test(N);if(!K0)throw Error("Invalid integer: "+N);if(K)return new W(BigInt(C?"-"+N:N));var W0=[],_0=N.length,b0=U,f0=_0-b0;while(_0>0){if(W0.push(+N.slice(f0,_0)),f0-=b0,f0<0)f0=0;_0-=b0}return X(W0),new H(W0,C)}function a5(N){if(K)return new W(BigInt(N));if(w(N)){if(N!==D(N))throw Error(N+" is not an integer.");return new G(N)}return J$(N.toString())}function v0(N){if(typeof N==="number")return a5(N);if(typeof N==="string")return J$(N);if(typeof N==="bigint")return new W(N);return N}for(var a=0;a<1000;a++)if(q[a]=v0(a),a>0)q[-a]=v0(-a);return q.one=q[1],q.zero=q[0],q.minusOne=q[-1],q.max=U1,q.min=O1,q.gcd=i4,q.lcm=f6,q.isInstance=function(N){return N instanceof H||N instanceof G||N instanceof W},q.randBetween=F$,q.fromArray=function(N,M,C){return P6(N.map(v0),v0(M||10),C)},q}();if(typeof kL<"u"&&kL.hasOwnProperty("exports"))kL.exports=k4;if(typeof define==="function"&&define.amd)define(function(){return k4})});var lW0=O((u_1,mW0)=>{var O7=cW0(),xL=t("stream");if(!xL.Writable||!xL.Writable.prototype.destroy)xL=i5();var fL;function SQ1(){var $=3988292384,I,U,Y;fL=[];for(U=0;U<256;U++){I=U;for(Y=0;Y<8;Y++)I=I&1?$^I>>>1:I=I>>>1;fL[U]=I>>>0}}function dW0($,I){if(!fL)SQ1();if($.charCodeAt)$=$.charCodeAt(0);return O7(I).shiftRight(8).and(16777215).xor(fL[O7(I).xor($).and(255)]).value}function DJ(){if(!(this instanceof DJ))return new DJ;this.key0=305419896,this.key1=591751049,this.key2=878082192}DJ.prototype.update=function($){this.key0=dW0($,this.key0),this.key1=O7(this.key0).and(255).and(4294967295).add(this.key1),this.key1=O7(this.key1).multiply(134775813).add(1).and(4294967295).value,this.key2=dW0(O7(this.key1).shiftRight(24).and(255),this.key2)};DJ.prototype.decryptByte=function($){var I=O7(this.key2).or(2);return $=$^O7(I).multiply(O7(I^1)).shiftRight(8).and(255),this.update($),$};DJ.prototype.stream=function(){var $=xL.Transform(),I=this;return $._transform=function(U,Y,J){for(var Q=0;Q{var gQ1=W7(),yQ1=lW0(),hQ1=GL(),UH=t("stream"),uQ1=Aq(),kQ1=t("zlib"),xQ1=VL(),fQ1=KJ(),iQ1=ZL();if(!UH.Writable||!UH.Writable.prototype.destroy)UH=i5();oW0.exports=function(I,U,Y,J){var Q=hQ1(),K=UH.PassThrough(),q=I.stream(U);return q.pipe(Q).on("error",function(H){K.emit("error",H)}),K.vars=Q.pull(30).then(function(H){var G=uQ1.parse(H).word32lu("signature").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return G.lastModifiedDateTime=iQ1(G.lastModifiedDate,G.lastModifiedTime),Q.pull(G.fileNameLength).then(function(W){return G.fileName=W.toString("utf8"),Q.pull(G.extraFieldLength)}).then(function(W){var w;if(G.extra=xQ1(W,G),J&&J.compressedSize)G=J;if(G.flags&1)w=Q.pull(12).then(function(Z){if(!Y)throw Error("MISSING_PASSWORD");var V=yQ1();String(Y).split("").forEach(function(D){V.update(D)});for(var X=0;X>8&255:G.crc32>>24&255;if(Z[11]!==L)throw Error("BAD_PASSWORD");return G});return gQ1.resolve(w).then(function(){return K.emit("vars",G),G})})}),K.vars.then(function(H){var G=!(H.flags&8)||H.compressedSize>0,W,w=H.compressionMethod?kQ1.createInflateRaw():UH.PassThrough();if(G)K.size=H.uncompressedSize,W=H.compressedSize;else W=fQ1.alloc(4),W.writeUInt32LE(134695760,0);var Z=Q.stream(W);if(H.decrypt)Z=Z.pipe(H.decrypt.stream());Z.pipe(w).on("error",function(V){K.emit("error",V)}).pipe(K).on("finish",function(){if(q.destroy)q.destroy();else if(q.abort)q.abort();else if(q.close)q.close();else if(q.push)q.push();else console.log("warning - unable to close stream")})}).catch(function(H){K.emit("error",H)}),K}});var sW0=O((x_1,aW0)=>{var QH=Aq(),JH=GL(),bQ1=rW0(),YH=W7(),nQ1=wL(),pQ1=VL(),cQ1=KJ(),Kh=t("path"),dQ1=Jh().Writer,mQ1=ZL(),tW0=cQ1.alloc(4);tW0.writeUInt32LE(101010256,0);function lQ1($){var I=$.stream(0).pipe(JH());return I.pull(4).then(function(U){var Y=U.readUInt32LE(0);if(Y===875721283){var J;return I.pull(12).then(function(Q){J=QH.parse(Q).word32lu("version").word32lu("pubKeyLength").word32lu("signatureLength").vars}).then(function(){return I.pull(J.pubKeyLength+J.signatureLength)}).then(function(Q){return J.publicKey=Q.slice(0,J.pubKeyLength),J.signature=Q.slice(J.pubKeyLength),J.size=16+J.pubKeyLength+J.signatureLength,J})}})}function oQ1($,I){var U=QH.parse(I).word32lu("signature").word32lu("diskNumber").word64lu("offsetToStartOfCentralDirectory").word32lu("numberOfDisks").vars;if(U.signature!=117853008)throw Error("invalid zip64 end of central dir locator signature (0x07064b50): 0x"+U.signature.toString(16));var Y=JH();return $.stream(U.offsetToStartOfCentralDirectory).pipe(Y),Y.pull(56)}function rQ1($){var I=QH.parse($).word32lu("signature").word64lu("sizeOfCentralDirectory").word16lu("version").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskStart").word64lu("numberOfRecordsOnDisk").word64lu("numberOfRecords").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;if(I.signature!=101075792)throw Error("invalid zip64 end of central dir locator signature (0x06064b50): 0x0"+I.signature.toString(16));return I}aW0.exports=function(I,U){var Y=JH(),J=JH(),Q=U&&U.tailSize||80,K,q,H,G;if(U&&U.crx)q=lQ1(I);return I.size().then(function(W){return K=W,I.stream(Math.max(0,W-Q)).on("error",function(w){Y.emit("error",w)}).pipe(Y),Y.pull(tW0)}).then(function(){return YH.props({directory:Y.pull(22),crxHeader:q})}).then(function(W){var w=W.directory;if(H=W.crxHeader&&W.crxHeader.size||0,G=QH.parse(w).word32lu("signature").word16lu("diskNumber").word16lu("diskStart").word16lu("numberOfRecordsOnDisk").word16lu("numberOfRecords").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars,G.numberOfRecords==65535||G.numberOfRecords==65535||G.offsetToStartOfCentralDirectory==4294967295){let V=K-(Q-Y.match+20),X=JH();return I.stream(V).pipe(X),X.pull(20).then(function(L){return oQ1(I,L)}).then(function(L){G=rQ1(L)})}else G.offsetToStartOfCentralDirectory+=H}).then(function(){if(G.commentLength)return Y.pull(G.commentLength).then(function(W){G.comment=W.toString("utf8")})}).then(function(){return I.stream(G.offsetToStartOfCentralDirectory).pipe(J),G.extract=function(W){if(!W||!W.path)throw Error("PATH_MISSING");return W.path=Kh.resolve(Kh.normalize(W.path)),G.files.then(function(w){return YH.map(w,function(Z){if(Z.type=="Directory")return;var V=Kh.join(W.path,Z.path);if(V.indexOf(W.path)!=0)return;var X=W.getWriter?W.getWriter({path:V}):dQ1({path:V});return new YH(function(L,D){Z.stream(W.password).on("error",D).pipe(X).on("close",L).on("error",D)})},{concurrency:W.concurrency>1?W.concurrency:1})})},G.files=YH.mapSeries(Array(G.numberOfRecords),function(){return J.pull(46).then(function(W){var w=QH.parse(W).word32lu("signature").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return w.offsetToLocalFileHeader+=H,w.lastModifiedDateTime=mQ1(w.lastModifiedDate,w.lastModifiedTime),J.pull(w.fileNameLength).then(function(Z){return w.pathBuffer=Z,w.path=Z.toString("utf8"),w.isUnicode=(w.flags&2048)!=0,J.pull(w.extraFieldLength)}).then(function(Z){return w.extra=pQ1(Z,w),J.pull(w.fileCommentLength)}).then(function(Z){return w.comment=Z,w.type=w.uncompressedSize===0&&/[\/\\]$/.test(w.path)?"Directory":"File",w.stream=function(V){return bQ1(I,w.offsetToLocalFileHeader,V,w)},w.buffer=function(V){return nQ1(w.stream(V))},w})})}),YH.props(G)})}});var Iw0=O((f_1,$w0)=>{var eW0=s6(),iL=W7(),KH=sW0(),bL=t("stream");if(!bL.Writable||!bL.Writable.prototype.destroy)bL=i5();$w0.exports={buffer:function($,I){var U={stream:function(Y,J){var Q=bL.PassThrough();return Q.end($.slice(Y,J)),Q},size:function(){return iL.resolve($.length)}};return KH(U,I)},file:function($,I){var U={stream:function(Y,J){return eW0.createReadStream($,{start:Y,end:J&&Y+J})},size:function(){return new iL(function(Y,J){eW0.stat($,function(Q,K){if(Q)J(Q);else Y(K.size)})})}};return KH(U,I)},url:function($,I,U){if(typeof I==="string")I={url:I};if(!I.url)throw"URL missing";I.headers=I.headers||{};var Y={stream:function(J,Q){var K=Object.create(I);return K.headers=Object.create(I.headers),K.headers.range="bytes="+J+"-"+(Q?Q:""),$(K)},size:function(){return new iL(function(J,Q){var K=$(I);K.on("response",function(q){if(K.abort(),!q.headers["content-length"])Q(Error("Missing content length header"));else J(q.headers["content-length"])}).on("error",Q)})}};return KH(Y,U)},s3:function($,I,U){var Y={size:function(){return new iL(function(J,Q){$.headObject(I,function(K,q){if(K)Q(K);else J(q.ContentLength)})})},stream:function(J,Q){var K={};for(var q in I)K[q]=I[q];return K.Range="bytes="+J+"-"+(Q?Q:""),$.getObject(K).createReadStream()}};return KH(Y,U)},custom:function($,I){return KH($,I)}}});var Uw0=O((tQ1)=>{a20();IK0();xB();tQ1.Parse=zL();tQ1.ParseOne=DG0();tQ1.Extract=pW0();tQ1.Open=Iw0()});var Dw0=O((F21,p5)=>{/*! * Tmp * * Copyright (c) 2011-2017 KARASZI Istvan * * MIT Licensed - */var i1=t("fs"),nL=t("os"),k4=t("path"),Yw0=t("crypto"),m8={fs:i1.constants,os:nL.constants},qw0=/XXXXXX/,Hw0=(m8.O_CREAT||m8.fs.O_CREAT)|(m8.O_EXCL||m8.fs.O_EXCL)|(m8.O_RDWR||m8.fs.O_RDWR),I21=nL.platform()==="win32",U21=m8.EBADF||m8.os.errno.EBADF,Y21=m8.ENOENT||m8.os.errno.ENOENT,LJ=[],Gw0=i1.rmdirSync.bind(i1),Ww0=!1;function J21($,I){return i1.rm($,{recursive:!0},I)}function ww0($){return i1.rmSync($,{recursive:!0})}function Hh($,I){let U=DJ($,I),Y=U[0],J=U[1];z21(Y,function(Q,K){if(Q)return J(Q);let q=K.tries;(function H(){try{let G=Zw0(K);i1.stat(G,function(W){if(!W){if(q-- >0)return H();return J(Error("Could not get a unique tmp filename, max tries reached "+G))}J(null,G)})}catch(G){J(G)}})()})}function Gh($){let I=DJ($),U=I[0],Y=X21(U),J=Y.tries;do{let Q=Zw0(Y);try{i1.statSync(Q)}catch(K){return Q}}while(J-- >0);throw Error("Could not get a unique tmp filename, max tries reached")}function Q21($,I){let U=DJ($,I),Y=U[0],J=U[1];Hh(Y,function(K,q){if(K)return J(K);i1.open(q,Hw0,Y.mode||384,function(G,W){if(G)return J(G);if(Y.discardDescriptor)return i1.close(W,function(Z){return J(Z,q,void 0,Kh(q,-1,Y,!1))});else{let w=Y.discardDescriptor||Y.detachDescriptor;J(null,q,W,Kh(q,w?-1:W,Y,!1))}})})}function K21($){let I=DJ($),U=I[0],Y=U.discardDescriptor||U.detachDescriptor,J=Gh(U),Q=i1.openSync(J,Hw0,U.mode||384);if(U.discardDescriptor)i1.closeSync(Q),Q=void 0;return{name:J,fd:Q,removeCallback:Kh(J,Y?-1:Q,U,!0)}}function q21($,I){let U=DJ($,I),Y=U[0],J=U[1];Hh(Y,function(K,q){if(K)return J(K);i1.mkdir(q,Y.mode||448,function(G){if(G)return J(G);J(null,q,Vw0(q,Y,!1))})})}function H21($){let I=DJ($),U=I[0],Y=Gh(U);return i1.mkdirSync(Y,U.mode||448),{name:Y,removeCallback:Vw0(Y,U,!0)}}function G21($,I){let U=function(Y){if(Y&&!qh(Y))return I(Y);I()};if(0<=$[0])i1.close($[0],function(){i1.unlink($[1],U)});else i1.unlink($[1],U)}function W21($){let I=null;try{if(0<=$[0])i1.closeSync($[0])}catch(U){if(!L21(U)&&!qh(U))throw U}finally{try{i1.unlinkSync($[1])}catch(U){if(!qh(U))I=U}}if(I!==null)throw I}function Kh($,I,U,Y){let J=iL(W21,[I,$],Y),Q=iL(G21,[I,$],Y,J);if(!U.keep)LJ.unshift(J);return Y?J:Q}function Vw0($,I,U){let Y=I.unsafeCleanup?J21:i1.rmdir.bind(i1),J=I.unsafeCleanup?ww0:Gw0,Q=iL(J,$,U),K=iL(Y,$,U,Q);if(!I.keep)LJ.unshift(Q);return U?Q:K}function iL($,I,U,Y){let J=!1;return function Q(K){if(!J){let q=Y||Q,H=LJ.indexOf(q);if(H>=0)LJ.splice(H,1);if(J=!0,U||$===Gw0||$===ww0)return $(I);else return $(I,K||function(){})}}}function w21(){if(!Ww0)return;while(LJ.length)try{LJ[0]()}catch($){}}function Jw0($){let I=[],U=null;try{U=Yw0.randomBytes($)}catch(Y){U=Yw0.pseudoRandomBytes($)}for(let Y=0;Y<$;Y++)I.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[U[Y]%62]);return I.join("")}function $$($){return typeof $>"u"}function DJ($,I){if(typeof $==="function")return[{},$];if($$($))return[{},I];let U={};for(let Y of Object.getOwnPropertyNames($))U[Y]=$[Y];return[U,I]}function V21($,I,U){let Y=k4.isAbsolute($)?$:k4.join(I,$);i1.stat(Y,function(J){if(J)i1.realpath(k4.dirname(Y),function(Q,K){if(Q)return U(Q);U(null,k4.join(K,k4.basename(Y)))});else i1.realpath(Y,U)})}function Z21($,I){let U=k4.isAbsolute($)?$:k4.join(I,$);try{return i1.statSync(U),i1.realpathSync(U)}catch(Y){let J=i1.realpathSync(k4.dirname(U));return k4.join(J,k4.basename(U))}}function Zw0($){let I=$.tmpdir;if(!$$($.name))return k4.join(I,$.dir,$.name);if(!$$($.template))return k4.join(I,$.dir,$.template).replace(qw0,Jw0(6));let U=[$.prefix?$.prefix:"tmp","-",process.pid,"-",Jw0(12),$.postfix?"-"+$.postfix:""].join("");return k4.join(I,$.dir,U)}function Qh($,I){if(typeof I!=="string")throw Error(`${$} option must be a string, got "${typeof I}".`);if(I.includes(".."))throw Error("Relative value not allowed");return I}function zw0($){if(!$$($.name)){let I=$.name;if(k4.isAbsolute(I))throw Error(`name option must not contain an absolute path, found "${I}".`);let U=k4.basename(I);if(U===".."||U==="."||U!==I)throw Error(`name option must not contain a path, found "${I}".`)}if(!$$($.template)){if(typeof $.template!=="string")throw Error(`template option must be a string, got "${typeof $.template}".`);if(!$.template.match(qw0))throw Error(`Invalid template, found "${$.template}".`)}if(!$$($.tries)&&isNaN($.tries)||$.tries<0)throw Error(`Invalid tries, found "${$.tries}".`);$.tries=$$($.name)?$.tries||3:1,$.keep=!!$.keep,$.detachDescriptor=!!$.detachDescriptor,$.discardDescriptor=!!$.discardDescriptor,$.unsafeCleanup=!!$.unsafeCleanup,$.prefix=$$($.prefix)?"":Qh("prefix",$.prefix),$.postfix=$$($.postfix)?"":Qh("postfix",$.postfix),$.template=$$($.template)?void 0:Qh("template",$.template)}function Qw0($,I,U,Y){if($$(I))return Y(null);V21(I,U,function(J,Q){if(J)return Y(J);let K=k4.relative(U,Q);if(K.startsWith("..")||k4.isAbsolute(K))return Y(Error(`${$} option must be relative to "${U}", found "${K}".`));Y(null,K)})}function Kw0($,I,U){if($$(I))return;let Y=Z21(I,U),J=k4.relative(U,Y);if(J.startsWith("..")||k4.isAbsolute(J))throw Error(`${$} option must be relative to "${U}", found "${J}".`);return J}function z21($,I){O21($,function(U,Y){if(U)return I(U);$.tmpdir=Y;try{zw0($,Y)}catch(J){return I(J)}Qw0("dir",$.dir,Y,function(J,Q){if(J)return I(J);$.dir=$$(Q)?"":Q,Qw0("template",$.template,Y,function(K,q){if(K)return I(K);$.template=q,I(null,$)})})})}function X21($){let I=$.tmpdir=Lw0($);zw0($,I);let U=Kw0("dir",$.dir,I);return $.dir=$$(U)?"":U,$.template=Kw0("template",$.template,I),$}function L21($){return Xw0($,-U21,"EBADF")}function qh($){return Xw0($,-Y21,"ENOENT")}function Xw0($,I,U){return I21?$.code===U:$.code===U&&$.errno===I}function D21(){Ww0=!0}function O21($,I){return i1.realpath($&&$.tmpdir||nL.tmpdir(),I)}function Lw0($){return i1.realpathSync($&&$.tmpdir||nL.tmpdir())}process.addListener("exit",w21);Object.defineProperty(F21,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return Lw0()}});F21.dir=q21;F21.dirSync=H21;F21.file=Q21;F21.fileSync=K21;F21.tmpName=Hh;F21.tmpNameSync=Gh;F21.setGracefulCleanup=D21});var Fw0=O((b_1,Ow0)=>{Ow0.exports=async function*(I){let U=[];I.on("data",(q)=>U.push(q));let Y,J=new Promise((q)=>Y=q),Q=!1;I.on("end",()=>{Q=!0,Y()});let K=!1;I.on("error",(q)=>{K=q,Y()});while(!Q||U.length>0){if(U.length===0)I.resume(),await Promise.race([v21(I,"data"),J]);else I.pause(),yield U.shift();if(K)throw K}Y()};function v21($,I){return new Promise((U)=>{let Y=!1,J=()=>{if(!Y)Y=!0,$.removeListener(I,J),U()};$.addListener(I,J)})}});var Tw0=O((i_1,Pw0)=>{var{EventEmitter:R21}=t("events"),j21=TK(),C21=X4(),pL=O6(),Nw0=W4(),_21=Z5(),S21=YV(),Mw0=QV();class Aw0 extends R21{constructor({workbook:$,id:I,iterator:U,options:Y}){super();this.workbook=$,this.id=I,this.iterator=U,this.options=Y||{},this.name=`Sheet${this.id}`,this._columns=null,this._keys={},this._dimensions=new _21}destroy(){throw Error("Invalid Operation: destroy")}get dimensions(){return this._dimensions}get columns(){return this._columns}getColumn($){if(typeof $==="string"){let I=this._keys[$];if(I)return I;$=Nw0.l2n($)}if(!this._columns)this._columns=[];if($>this._columns.length){let I=this._columns.length+1;while(I<=$)this._columns.push(new Mw0(this,I++))}return this._columns[$-1]}getColumnKey($){return this._keys[$]}setColumnKey($,I){this._keys[$]=I}deleteColumnKey($){delete this._keys[$]}eachColumnKey($){C21.each(this._keys,$)}async read(){try{for await(let $ of this.parse())for(let{eventType:I,value:U}of $)this.emit(I,U);this.emit("finished")}catch($){this.emit("error",$)}}async*[Symbol.asyncIterator](){for await(let $ of this.parse())for(let{eventType:I,value:U}of $)if(I==="row")yield U}async*parse(){let{iterator:$,options:I}=this,U=!1,Y=!1,J=null;switch(I.worksheets){case"emit":U=!0;break;case"prep":break;default:break}switch(I.hyperlinks){case"emit":Y=!0;break;case"cache":this.hyperlinks=J={};break;default:break}if(!U&&!Y&&!J)return;let{sharedStrings:Q,styles:K,properties:q}=this.workbook,H=!1,G=!1,W=!1,w=null,Z=null,V=null,X=null;for await(let L of j21($)){let D=[];for(let{eventType:F,value:P}of L)if(F==="opentag"){let E=P;if(U)switch(E.name){case"cols":H=!0,w=[];break;case"sheetData":G=!0;break;case"col":if(H)w.push({min:parseInt(E.attributes.min,10),max:parseInt(E.attributes.max,10),width:parseFloat(E.attributes.width),styleId:parseInt(E.attributes.style||"0",10)});break;case"row":if(G){let A=parseInt(E.attributes.r,10);if(Z=new S21(this,A),E.attributes.ht)Z.height=parseFloat(E.attributes.ht);if(E.attributes.s){let R=parseInt(E.attributes.s,10),k=K.getStyleModel(R);if(k)Z.style=k}}break;case"c":if(Z)V={ref:E.attributes.r,s:parseInt(E.attributes.s,10),t:E.attributes.t};break;case"f":if(V)X=V.f={text:""};break;case"v":if(V)X=V.v={text:""};break;case"is":case"t":if(V)X=V.v={text:""};break;case"mergeCell":break;default:break}if(Y||J)switch(E.name){case"hyperlinks":W=!0;break;case"hyperlink":if(W){let A={ref:E.attributes.ref,rId:E.attributes["r:id"]};if(Y)D.push({eventType:"hyperlink",value:A});else J[A.ref]=A}break;default:break}}else if(F==="text"){if(U){if(X)X.text+=P}}else if(F==="closetag"){let E=P;if(U)switch(E.name){case"cols":H=!1,this._columns=Mw0.fromModel(w);break;case"sheetData":G=!1;break;case"row":this._dimensions.expandRow(Z),D.push({eventType:"row",value:Z}),Z=null;break;case"c":if(Z&&V){let A=Nw0.decodeAddress(V.ref),R=Z.getCell(A.col);if(V.s){let k=K.getStyleModel(V.s);if(k)R.style=k}if(V.f){let k={formula:V.f.text};if(V.v)if(V.t==="str")k.result=pL.xmlDecode(V.v.text);else k.result=parseFloat(V.v.text);R.value=k}else if(V.v)switch(V.t){case"s":{let k=parseInt(V.v.text,10);if(Q)R.value=Q[k];else R.value={sharedString:k};break}case"inlineStr":case"str":R.value=pL.xmlDecode(V.v.text);break;case"e":R.value={error:V.v.text};break;case"b":R.value=parseInt(V.v.text,10)!==0;break;default:if(pL.isDateFmt(R.numFmt))R.value=pL.excelToDate(parseFloat(V.v.text),q.model&&q.model.date1904);else R.value=parseFloat(V.v.text);break}if(J){let k=J[V.ref];if(k)R.text=R.value,R.value=void 0,R.hyperlink=k}V=null}break;default:break}if(Y||J)switch(E.name){case"hyperlinks":W=!1;break;default:break}}if(D.length>0)yield D}}}Pw0.exports=Aw0});var vw0=O((n_1,Bw0)=>{var{EventEmitter:g21}=t("events"),y21=TK(),h21=I8(),u21=n9();class Ew0 extends g21{constructor({workbook:$,id:I,iterator:U,options:Y}){super();this.workbook=$,this.id=I,this.iterator=U,this.options=Y}get count(){return this.hyperlinks&&this.hyperlinks.length||0}each($){return this.hyperlinks.forEach($)}async read(){let{iterator:$,options:I}=this,U=!1,Y=null;switch(I.hyperlinks){case"emit":U=!0;break;case"cache":this.hyperlinks=Y={};break;default:break}if(!U&&!Y){this.emit("finished");return}try{for await(let J of y21($))for(let{eventType:Q,value:K}of J)if(Q==="opentag"){let q=K;if(q.name==="Relationship"){let H=q.attributes.Id;switch(q.attributes.Type){case u21.Hyperlink:{let G={type:h21.RelationshipType.Styles,rId:H,target:q.attributes.Target,targetMode:q.attributes.TargetMode};if(U)this.emit("hyperlink",G);else Y[G.rId]=G}break;default:break}}}this.emit("finished")}catch(J){this.emit("error",J)}}}Bw0.exports=Ew0});var _w0=O((p_1,Cw0)=>{var Wh=t("fs"),{EventEmitter:x21}=t("events"),{PassThrough:k21,Readable:f21}=D6(),b21=t("stream"),i21=Uw0(),jw0=Dw0(),UI=Fw0(),n21=TK(),Rw0=uZ(),p21=nZ(),c21=bZ(),d21=Tw0(),m21=vw0();jw0.setGracefulCleanup();class wh extends x21{constructor($,I={}){super();this.input=$,this.options={worksheets:"emit",sharedStrings:"cache",hyperlinks:"ignore",styles:"ignore",entries:"ignore",...I},this.styles=new Rw0,this.styles.init()}_getStream($){if($ instanceof b21.Readable||$ instanceof f21)return $;if(typeof $==="string")return Wh.createReadStream($);throw Error(`Could not recognise input: ${$}`)}async read($,I){try{for await(let{eventType:U,value:Y}of this.parse($,I))switch(U){case"shared-strings":this.emit(U,Y);break;case"worksheet":this.emit(U,Y),await Y.read();break;case"hyperlinks":this.emit(U,Y);break}this.emit("end"),this.emit("finished")}catch(U){this.emit("error",U)}}async*[Symbol.asyncIterator](){for await(let{eventType:$,value:I}of this.parse())if($==="worksheet")yield I}async*parse($,I){if(I)this.options=I;let U=this.stream=this._getStream($||this.input),Y=i21.Parse({forceStream:!0});U.pipe(Y);let J=[];for await(let Q of UI(Y)){let K,q;switch(Q.path){case"_rels/.rels":break;case"xl/_rels/workbook.xml.rels":await this._parseRels(Q);break;case"xl/workbook.xml":await this._parseWorkbook(Q);break;case"xl/sharedStrings.xml":yield*this._parseSharedStrings(Q);break;case"xl/styles.xml":await this._parseStyles(Q);break;default:if(Q.path.match(/xl\/worksheets\/sheet\d+[.]xml/))if(K=Q.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/),q=K[1],this.sharedStrings&&this.workbookRels)yield*this._parseWorksheet(UI(Q),q);else await new Promise((H,G)=>{jw0.file((W,w,Z,V)=>{if(W)return G(W);J.push({sheetNo:q,path:w,tempFileCleanupCallback:V});let X=Wh.createWriteStream(w);return X.on("error",G),Q.pipe(X),X.on("finish",()=>{return H()})})});else if(Q.path.match(/xl\/worksheets\/_rels\/sheet\d+[.]xml.rels/))K=Q.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),q=K[1],yield*this._parseHyperlinks(UI(Q),q);break}Q.autodrain()}for(let{sheetNo:Q,path:K,tempFileCleanupCallback:q}of J){let H=Wh.createReadStream(K);if(!H[Symbol.asyncIterator])H=H.pipe(new k21);yield*this._parseWorksheet(H,Q),q()}}_emitEntry($){if(this.options.entries==="emit")this.emit("entry",$)}async _parseRels($){let I=new c21;this.workbookRels=await I.parseStream(UI($))}async _parseWorkbook($){this._emitEntry({type:"workbook"});let I=new p21;await I.parseStream(UI($)),this.properties=I.map.workbookPr,this.model=I.model}async*_parseSharedStrings($){switch(this._emitEntry({type:"shared-strings"}),this.options.sharedStrings){case"cache":this.sharedStrings=[];break;case"emit":break;default:return}let I=null,U=[],Y=0,J=null;for await(let Q of n21(UI($)))for(let{eventType:K,value:q}of Q)if(K==="opentag"){let H=q;switch(H.name){case"b":J=J||{},J.bold=!0;break;case"charset":J=J||{},J.charset=parseInt(H.attributes.charset,10);break;case"color":if(J=J||{},J.color={},H.attributes.rgb)J.color.argb=H.attributes.argb;if(H.attributes.val)J.color.argb=H.attributes.val;if(H.attributes.theme)J.color.theme=H.attributes.theme;break;case"family":J=J||{},J.family=parseInt(H.attributes.val,10);break;case"i":J=J||{},J.italic=!0;break;case"outline":J=J||{},J.outline=!0;break;case"rFont":J=J||{},J.name=H.value;break;case"si":J=null,U=[],I=null;break;case"sz":J=J||{},J.size=parseInt(H.attributes.val,10);break;case"strike":break;case"t":I=null;break;case"u":J=J||{},J.underline=!0;break;case"vertAlign":J=J||{},J.vertAlign=H.attributes.val;break}}else if(K==="text")I=I?I+q:q;else if(K==="closetag")switch(q.name){case"r":U.push({font:J,text:I}),J=null,I=null;break;case"si":if(this.options.sharedStrings==="cache")this.sharedStrings.push(U.length?{richText:U}:I);else if(this.options.sharedStrings==="emit")yield{index:Y++,text:U.length?{richText:U}:I};U=[],J=null,I=null;break}}async _parseStyles($){if(this._emitEntry({type:"styles"}),this.options.styles==="cache")this.styles=new Rw0,await this.styles.parseStream(UI($))}*_parseWorksheet($,I){this._emitEntry({type:"worksheet",id:I});let U=new d21({workbook:this,id:I,iterator:$,options:this.options}),Y=(this.workbookRels||[]).find((Q)=>Q.Target===`worksheets/sheet${I}.xml`),J=Y&&(this.model.sheets||[]).find((Q)=>Q.rId===Y.Id);if(J)U.id=J.id,U.name=J.name,U.state=J.state;if(this.options.worksheets==="emit")yield{eventType:"worksheet",value:U}}*_parseHyperlinks($,I){this._emitEntry({type:"hyperlinks",id:I});let U=new m21({workbook:this,id:I,iterator:$,options:this.options});if(this.options.hyperlinks==="emit")yield{eventType:"hyperlinks",value:U}}}wh.Options={worksheets:["emit","ignore"],sharedStrings:["cache","emit","ignore"],hyperlinks:["cache","emit","ignore"],styles:["cache","ignore"],entries:["emit","ignore"]};Cw0.exports=wh});var yw0=O((c_1,gw0)=>{var Sw0={Workbook:KI0(),ModelContainer:GI0(),stream:{xlsx:{WorkbookWriter:r20(),WorkbookReader:_w0()}}};Object.assign(Sw0,I8());gw0.exports=Sw0});var Vh=O((d_1,hw0)=>{if(parseInt(process.versions.node.split(".")[0],10)<10)throw Error("For node versions older than 10, please use the ES5 Import: https://github.com/exceljs/exceljs#es5-imports");hw0.exports=yw0()});var ZV0=O((uS1,VV0)=>{VV0.exports=$D;function $D(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}$D.prototype.go=function($){if(this.pending0&&$.pending<$.max)wV0($,$.waiting.shift());else if($.pending===0){var Q=$.listeners;$.listeners=[],Q.forEach(Y)}}function Y(J){J($.error)}}function wV0($,I){I(WV0($))}});var LV0=O((oK1)=>{var Bh=t("fs"),vh=t("util"),zV0=t("stream"),XV0=zV0.Readable,mK1=zV0.PassThrough,lK1=ZV0(),ID=t("events").EventEmitter;oK1.BufferSlicer=AJ;oK1.FdSlicer=MJ;vh.inherits(MJ,ID);function MJ($){ID.call(this),this.fd=$,this.pend=new lK1,this.pend.max=1,this.refCount=0}MJ.prototype.read=function($,I,U,Y,J){var Q=this;Q.pend.go(function(K){Bh.read(Q.fd,$,I,U,Y,function(q,H,G){K(),J(q,H,G)})})};MJ.prototype.createReadStream=function($){return new GH(this,$)};MJ.prototype.ref=function(){this.refCount+=1};MJ.prototype.unref=function(){var $=this;if($.refCount-=1,$.refCount<0)throw Error("invalid unref");if($.refCount>0)return;Bh.close($.fd,I);function I(U){if(U)$.emit("error",U);else $.emit("close")}};vh.inherits(GH,XV0);function GH($,I){I=I||{},XV0.call(this,I),this.context=$,this.context.ref(),this.start=I.start||0,this.endOffset=I.end,this.pos=this.start}GH.prototype._read=function($){var I=this,U=Math.min(I._readableState.highWaterMark,$);if(I.endOffset!=null)U=Math.min(U,I.endOffset-I.pos);if(U<=0){I.push(null),this._cleanup();return}I.context.pend.go(function(Y){var J=Buffer.allocUnsafe(U);Bh.read(I.context.fd,J,0,U,I.pos,function(Q,K){if(Q)I.destroy(Q);else if(K===0)I.push(null),I._cleanup();else I.pos+=K,I.push(J.slice(0,K));Y()})})};GH.prototype._destroy=function($,I){this._cleanup(),I($)};GH.prototype._cleanup=function(){if(this.context!=null)this.context.unref(),this.context=null};vh.inherits(AJ,ID);function AJ($){ID.call(this),this.refCount=0,this.buffer=$}AJ.prototype.read=function($,I,U,Y,J){if(!(0<=I&&I<=$.length))throw RangeError("offset outside buffer: 0 <= "+I+" <= "+$.length);if(Y<0)throw RangeError("position is negative: "+Y);if(I+U>$.length)U=$.length-I;if(Y+U>this.buffer.length)U=this.buffer.length-Y;if(U<=0){setImmediate(function(){J(null,0)});return}this.buffer.copy($,I,Y,Y+U),setImmediate(function(){J(null,U)})};AJ.prototype.createReadStream=function($){$=$||{};var I=new mK1($);I.start=$.start||0,I.endOffset=$.end,I.pos=I.endOffset||this.buffer.length;var U=this.buffer.slice(I.start,I.pos),Y=65536,J=0;while(!0){var Q=J+Y;if(Q>=U.length){if(J{var aK1=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function sK1($){let I=-1;for(let U of $)I=aK1[(I^U)&255]^I>>>8;return(I^-1)>>>0}DV0.exports=sK1});var jV0=O((Kq1)=>{var Rh=t("fs"),jh=t("zlib"),FV0=LV0(),JD=t("util"),QD=t("events").EventEmitter,NV0=t("stream").Transform,_h=t("stream").PassThrough,eK1=t("stream").Writable,$q1=typeof jh.crc32==="function"?jh.crc32:OV0();Kq1.open=MV0;Kq1.fromFd=Sh;Kq1.fromBuffer=AV0;Kq1.fromRandomAccessReader=KD;Kq1.openPromise=Iq1;Kq1.fromFdPromise=Uq1;Kq1.fromBufferPromise=Yq1;Kq1.fromRandomAccessReaderPromise=Jq1;Kq1.dosDateTimeToDate=EV0;Kq1.getFileNameLowLevel=BV0;Kq1.validateFileName=vV0;Kq1.parseExtraFields=RV0;Kq1.ZipFile=I$;Kq1.Entry=EJ;Kq1.LocalFileHeader=TV0;Kq1.RandomAccessReader=M7;function Iq1($,I){return new Promise((U,Y)=>{MV0($,{...I,lazyEntries:!0},function(J,Q){if(J)return Y(J);U(Q)})})}function Uq1($,I){return new Promise((U,Y)=>{Sh($,{...I,lazyEntries:!0},function(J,Q){if(J)return Y(J);U(Q)})})}function Yq1($,I){return new Promise((U,Y)=>{AV0($,{...I,lazyEntries:!0},function(J,Q){if(J)return Y(J);U(Q)})})}function Jq1($,I,U){return new Promise((Y,J)=>{KD($,I,{...U,lazyEntries:!0},function(Q,K){if(Q)return J(Q);Y(K)})})}function MV0($,I,U){if(typeof I==="function")U=I,I=null;if(I==null)I={};if(I.autoClose==null)I.autoClose=!0;if(I.lazyEntries==null)I.lazyEntries=!1;if(I.decodeStrings==null)I.decodeStrings=!0;if(I.validateEntrySizes==null)I.validateEntrySizes=!0;if(I.strictFileNames==null)I.strictFileNames=!1;if(U==null)U=YD;Rh.open($,"r",function(Y,J){if(Y)return U(Y);Sh(J,I,function(Q,K){if(Q)Rh.close(J,YD);U(Q,K)})})}function Sh($,I,U){if(typeof I==="function")U=I,I=null;if(I==null)I={};if(I.autoClose==null)I.autoClose=!1;if(I.lazyEntries==null)I.lazyEntries=!1;if(I.decodeStrings==null)I.decodeStrings=!0;if(I.validateEntrySizes==null)I.validateEntrySizes=!0;if(I.strictFileNames==null)I.strictFileNames=!1;if(U==null)U=YD;Rh.fstat($,function(Y,J){if(Y)return U(Y);var Q=new FV0.FdSlicer($);KD(Q,J.size,I,U)})}function AV0($,I,U){if(typeof I==="function")U=I,I=null;if(I==null)I={};if(I.autoClose=!1,I.lazyEntries==null)I.lazyEntries=!1;if(I.decodeStrings==null)I.decodeStrings=!0;if(I.validateEntrySizes==null)I.validateEntrySizes=!0;if(I.strictFileNames==null)I.strictFileNames=!1;var Y=new FV0.BufferSlicer($);KD(Y,$.length,I,U)}function KD($,I,U,Y){if(typeof U==="function")Y=U,U=null;if(U==null)U={};if(U.autoClose==null)U.autoClose=!0;if(U.lazyEntries==null)U.lazyEntries=!1;if(U.decodeStrings==null)U.decodeStrings=!0;var J=!!U.decodeStrings;if(U.validateEntrySizes==null)U.validateEntrySizes=!0;if(U.strictFileNames==null)U.strictFileNames=!1;if(Y==null)Y=YD;if(typeof I!=="number")throw Error("expected totalSize parameter to be a number");if(I>Number.MAX_SAFE_INTEGER)throw Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");$.ref();var Q=22,K=20,q=65535,H=Math.min(K+Q+q,I),G=c5(H),W=I-G.length;TJ($,G,0,H,W,function(w){if(w)return Y(w);for(var Z=H-Q;Z>=0;Z-=1){if(G.readUInt32LE(Z)!==101010256)continue;var V=G.subarray(Z),X=V.readUInt16LE(4),L=V.readUInt16LE(10),D=V.readUInt32LE(16),F=V.readUInt16LE(20),P=V.length-Q;if(F!==P)return Y(Error("Invalid comment length. Expected: "+P+". Found: "+F+". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK☺☻` in the comment?"));var E=J?UD(V.subarray(22),!1):V.subarray(22);if(Z-K>=0&&G.readUInt32LE(Z-K)===117853008){var A=G.subarray(Z-K,Z-K+K),R=PJ(A,8),k=c5(56);return TJ($,k,0,k.length,R,function(y){if(y)return Y(y);if(k.readUInt32LE(0)!==101075792)return Y(Error("invalid zip64 end of central directory record signature"));if(X=k.readUInt32LE(16),X!==0)return Y(Error("multi-disk zip files are not supported: found disk number: "+X));return L=PJ(k,32),D=PJ(k,48),Y(null,new I$($,D,I,L,E,U.autoClose,U.lazyEntries,J,U.validateEntrySizes,U.strictFileNames))})}if(X!==0)return Y(Error("multi-disk zip files are not supported: found disk number: "+X));return Y(null,new I$($,D,I,L,E,U.autoClose,U.lazyEntries,J,U.validateEntrySizes,U.strictFileNames))}Y(Error("End of central directory record signature not found. Either not a zip file, or file is truncated."))})}JD.inherits(I$,QD);function I$($,I,U,Y,J,Q,K,q,H,G){var W=this;if(QD.call(W),W.reader=$,W.reader.on("error",function(w){PV0(W,w)}),W.reader.once("close",function(){W.emit("close")}),W.readEntryCursor=I,W.fileSize=U,W.entryCount=Y,W.comment=J,W.entriesRead=0,W.autoClose=!!Q,W.lazyEntries=!!K,W.decodeStrings=!!q,W.validateEntrySizes=!!H,W.strictFileNames=!!G,W.isOpen=!0,W.emittedError=!1,W.hasEachEntryBeenCalled=!1,!W.lazyEntries)W._readEntry()}I$.prototype.close=function(){if(!this.isOpen)return;this.isOpen=!1,this.reader.unref()};function r8($,I){if($.autoClose)$.close();PV0($,I)}function PV0($,I){if($.emittedError)return;$.emittedError=!0,$.emit("error",I)}I$.prototype.readEntry=function(){if(!this.lazyEntries)throw Error("readEntry() called without lazyEntries:true");this._readEntry()};I$.prototype._readEntry=function(){var $=this;if($.entryCount===$.entriesRead){setImmediate(function(){if($.autoClose)$.close();if($.emittedError)return;$.emit("end")});return}if($.emittedError)return;var I=c5(46);TJ($.reader,I,0,I.length,$.readEntryCursor,function(U){if(U)return r8($,U);if($.emittedError)return;var Y=new EJ,J=I.readUInt32LE(0);if(J!==33639248)return r8($,Error("invalid central directory file header signature: 0x"+J.toString(16)));if(Y.versionMadeBy=I.readUInt16LE(4),Y.versionNeededToExtract=I.readUInt16LE(6),Y.generalPurposeBitFlag=I.readUInt16LE(8),Y.compressionMethod=I.readUInt16LE(10),Y.lastModFileTime=I.readUInt16LE(12),Y.lastModFileDate=I.readUInt16LE(14),Y.crc32=I.readUInt32LE(16),Y.compressedSize=I.readUInt32LE(20),Y.uncompressedSize=I.readUInt32LE(24),Y.fileNameLength=I.readUInt16LE(28),Y.extraFieldLength=I.readUInt16LE(30),Y.fileCommentLength=I.readUInt16LE(32),Y.internalFileAttributes=I.readUInt16LE(36),Y.externalFileAttributes=I.readUInt32LE(38),Y.relativeOffsetOfLocalHeader=I.readUInt32LE(42),Y.generalPurposeBitFlag&64)return r8($,Error("strong encryption is not supported"));$.readEntryCursor+=46,I=c5(Y.fileNameLength+Y.extraFieldLength+Y.fileCommentLength),TJ($.reader,I,0,I.length,$.readEntryCursor,function(Q){if(Q)return r8($,Q);if($.emittedError)return;Y.fileNameRaw=I.subarray(0,Y.fileNameLength);var K=Y.fileNameLength+Y.extraFieldLength;Y.extraFieldRaw=I.subarray(Y.fileNameLength,K),Y.fileCommentRaw=I.subarray(K,K+Y.fileCommentLength);try{Y.extraFields=RV0(Y.extraFieldRaw)}catch(L){return r8($,L)}if($.decodeStrings){var q=(Y.generalPurposeBitFlag&2048)!==0;Y.fileComment=UD(Y.fileCommentRaw,q),Y.fileName=BV0(Y.generalPurposeBitFlag,Y.fileNameRaw,Y.extraFields,$.strictFileNames);var H=vV0(Y.fileName);if(H!=null)return r8($,Error(H))}else Y.fileComment=Y.fileCommentRaw,Y.fileName=Y.fileNameRaw;Y.comment=Y.fileComment,$.readEntryCursor+=I.length,$.entriesRead+=1;for(var G=0;Gw.length)return r8($,Error("zip64 extended information extra field does not include uncompressed size"));Y.uncompressedSize=PJ(w,Z),Z+=8}if(Y.compressedSize===4294967295){if(Z+8>w.length)return r8($,Error("zip64 extended information extra field does not include compressed size"));Y.compressedSize=PJ(w,Z),Z+=8}if(Y.relativeOffsetOfLocalHeader===4294967295){if(Z+8>w.length)return r8($,Error("zip64 extended information extra field does not include relative header offset"));Y.relativeOffsetOfLocalHeader=PJ(w,Z),Z+=8}break}if($.validateEntrySizes&&Y.compressionMethod===0){var V=Y.uncompressedSize;if(Y.isEncrypted())V+=12;if(Y.compressedSize!==V){var X="compressed/uncompressed size mismatch for stored file: "+Y.compressedSize+" != "+Y.uncompressedSize;return r8($,Error(X))}}if($.emit("entry",Y),!$.lazyEntries)$._readEntry()})})};I$.prototype.eachEntry=function(){let $=this;if(!$.lazyEntries)throw Error("eachEntry() requires lazyEntries: true");if($.hasEachEntryBeenCalled)throw Error("eachEntry() must only be called once per ZipFile");$.hasEachEntryBeenCalled=!0;let I=null;$.on("entry",Y),$.on("end",J),$.on("error",Q);function U(){if($.removeListener("entry",Y),$.removeListener("end",J),$.removeListener("error",Q),$.autoClose)$.close()}function Y(K){let{resolve:q}=I;I=null,q({value:K})}function J(){let{resolve:K}=I;I=null,U(),K({done:!0})}function Q(K){let{reject:q}=I;I=null,U(),q(K)}return{[Symbol.asyncIterator](){return this},next(){let K=new Promise((q,H)=>{if(I!=null)throw Error("next() called before previous Promise was resolved.");I={resolve:q,reject:H}});return $.readEntry(),K},return(K){return U(),Promise.resolve({done:!0,value:K})},throw(K){return U(),Promise.reject(K)}}};I$.prototype.openReadStream=function($,I,U){var Y=this,J=0,Q=$.compressedSize;if(U==null)U=I,I=null;if(I==null)I={};else{if(I.decodeFileData===!1){if(I.decrypt!=null)throw Error("cannot use options.decrypt when options.decodeFileData === false");if(I.decompress!=null)throw Error("cannot use options.decompress when options.decodeFileData === false")}else{if(I.decrypt!=null){if(!$.isEncrypted())throw Error("options.decrypt can only be specified for encrypted entries. See also option decodeFileData.");if(I.decrypt!==!1)throw Error("invalid options.decrypt value: "+I.decrypt);if($.isCompressed()){if(I.decompress!==!1)throw Error("entry is encrypted and compressed, and options.decompress !== false. See also option decodeFileData.")}}if(I.decompress!=null){if(!$.isCompressed())throw Error("options.decompress can only be specified for compressed entries. See also option decodeFileData.");if(!(I.decompress===!1||I.decompress===!0))throw Error("invalid options.decompress value: "+I.decompress);q=I.decompress}}if(I.start!=null){if(J=I.start,J<0)throw Error("options.start < 0");if(J>$.compressedSize)throw Error("options.start > entry.compressedSize")}if(I.end!=null){if(Q=I.end,Q<0)throw Error("options.end < 0");if(Q>$.compressedSize)throw Error("options.end > entry.compressedSize");if(QY.fileSize)return U(Error("file data overflows file bounds: "+G+" + "+$.compressedSize+" > "+Y.fileSize));if(I.minimal)return U(null,{fileDataStart:G});var W=new TV0;W.fileDataStart=G,W.versionNeededToExtract=J.readUInt16LE(4),W.generalPurposeBitFlag=J.readUInt16LE(6),W.compressionMethod=J.readUInt16LE(8),W.lastModFileTime=J.readUInt16LE(10),W.lastModFileDate=J.readUInt16LE(12),W.crc32=J.readUInt32LE(14),W.compressedSize=J.readUInt32LE(18),W.uncompressedSize=J.readUInt32LE(22),W.fileNameLength=q,W.extraFieldLength=H,J=c5(q+H),Y.reader.ref(),TJ(Y.reader,J,0,J.length,$.relativeOffsetOfLocalHeader+30,function(w){try{if(w)return U(w);return W.fileName=J.subarray(0,q),W.extraField=J.subarray(q),U(null,W)}finally{Y.reader.unref()}})}finally{Y.reader.unref()}})};I$.prototype.openReadStreamPromise=function($,I){return new Promise((U,Y)=>{this.openReadStream($,I,function(J,Q){if(J)return Y(J);U(Q)})})};I$.prototype.openReadStreamLowLevelPromise=function($,I,U,Y,J,Q){return new Promise((K,q)=>{this.openReadStream($,I,U,Y,J,Q,function(H,G){if(H)return q(H);K(G)})})};I$.prototype.readLocalFileHeaderPromise=function($,I){return new Promise((U,Y)=>{this.readLocalFileHeader($,I,function(J,Q){if(J)return Y(J);U(Q)})})};function EJ(){}EJ.prototype.getLastModDate=function($){if($==null)$={};if(!$.forceDosFormat)for(var I=0;I>5&15)-1,Q=($>>9&127)+1980,K=0,q=(I&31)*2,H=I>>5&63,G=I>>11&31;if(U==null||U==="local")return new Date(Q,J,Y,G,H,q,K);else if(U==="UTC")return new Date(Date.UTC(Q,J,Y,G,H,q,K));else throw Error("unrecognized options.timezone: "+options.timezone)}function BV0($,I,U,Y){var J=null;for(var Q=0;Q$.length)throw Error("extra field length exceeds extra field buffer size");var q=$.subarray(Q,K);I.push({id:Y,data:q}),U=K}return I}function TJ($,I,U,Y,J,Q){if(Y===0)return setImmediate(function(){Q(null,c5(0))});$.read(I,U,Y,J,function(K,q){if(K)return Q(K);if(qthis.expectedByteCount){var Y="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return U(Error(Y))}U(null,$)};WH.prototype._flush=function($){if(this.actualByteCount0)return;if($.refCount<0)throw Error("invalid unref");$.close(I);function I(U){if(U)return $.emit("error",U);$.emit("close")}};M7.prototype.createReadStream=function($){if($==null)$={};var{start:I,end:U}=$;if(I===U){var Y=new _h;return setImmediate(function(){Y.end()}),Y}var J=this._readStreamForRange(I,U),Q=!1,K=new qD(this);J.on("error",function(H){setImmediate(function(){if(!Q)K.emit("error",H)})}),Ch(K,function(){J.unpipe(K),K.unref(),J.destroy()});var q=new WH(U-I);return K.on("error",function(H){setImmediate(function(){if(!Q)q.emit("error",H)})}),Ch(q,function(){Q=!0,K.unpipe(q),K.destroy()}),J.pipe(K).pipe(q)};M7.prototype._readStreamForRange=function($,I){throw Error("not implemented")};M7.prototype.read=function($,I,U,Y,J){var Q=this.createReadStream({start:Y,end:Y+U}),K=new eK1,q=0;K._write=function(H,G,W){H.copy($,I+q,0,H.length),q+=H.length,W()},K.on("finish",J),Q.on("error",function(H){J(H)}),Q.pipe(K)};M7.prototype.close=function($){setImmediate($)};JD.inherits(qD,_h);function qD($){_h.call(this),this.context=$,this.context.ref(),this.unreffedYet=!1}qD.prototype._flush=function($){this.unref(),$()};qD.prototype.unref=function($){if(this.unreffedYet)return;this.unreffedYet=!0,this.context.unref()};var Qq1="\x00☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function UD($,I){if(I)return $.toString("utf8");else{var U="";for(var Y=0;Y<$.length;Y++)U+=Qq1[$[Y]];return U}}function PJ($,I){var U=$.readUInt32LE(I),Y=$.readUInt32LE(I+4);return Y*4294967296+U}var c5;if(typeof Buffer.allocUnsafe==="function")c5=function($){return Buffer.allocUnsafe($)};else c5=function($){return new Buffer($)};function Ch($,I){if(typeof $.destroy==="function")$._destroy=function(U,Y){if(I(),Y!=null)Y(U)};else $.destroy=I}function YD($){if($)throw $}});var d5=O((bS1,CV0)=>{var HD=t("buffer"),BJ=HD.Buffer,n$={},p$;for(p$ in HD){if(!HD.hasOwnProperty(p$))continue;if(p$==="SlowBuffer"||p$==="Buffer")continue;n$[p$]=HD[p$]}var vJ=n$.Buffer={};for(p$ in BJ){if(!BJ.hasOwnProperty(p$))continue;if(p$==="allocUnsafe"||p$==="allocUnsafeSlow")continue;vJ[p$]=BJ[p$]}n$.Buffer.prototype=BJ.prototype;if(!vJ.from||vJ.from===Uint8Array.from)vJ.from=function($,I,U){if(typeof $==="number")throw TypeError('The "value" argument must not be of type number. Received type '+typeof $);if($&&typeof $.length>"u")throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);return BJ($,I,U)};if(!vJ.alloc)vJ.alloc=function($,I,U){if(typeof $!=="number")throw TypeError('The "size" argument must be of type number. Received type '+typeof $);if($<0||$>=2147483648)throw RangeError('The value "'+$+'" is invalid for option "size"');var Y=BJ($);if(!I||I.length===0)Y.fill(0);else if(typeof U==="string")Y.fill(I,U);else Y.fill(I);return Y};if(!n$.kStringMaxLength)try{n$.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch($){}if(!n$.constants){if(n$.constants={MAX_LENGTH:n$.kMaxLength},n$.kStringMaxLength)n$.constants.MAX_STRING_LENGTH=n$.kStringMaxLength}CV0.exports=n$});var SV0=O((Pq1)=>{var _V0="\uFEFF";Pq1.PrependBOM=gh;function gh($,I){this.encoder=$,this.addBOM=!0}gh.prototype.write=function($){if(this.addBOM)$=_V0+$,this.addBOM=!1;return this.encoder.write($)};gh.prototype.end=function(){return this.encoder.end()};Pq1.StripBOM=yh;function yh($,I){this.decoder=$,this.pass=!1,this.options=I||{}}yh.prototype.write=function($){var I=this.decoder.write($);if(this.pass||!I)return I;if(I[0]===_V0){if(I=I.slice(1),typeof this.options.stripBOM==="function")this.options.stripBOM()}return this.pass=!0,I};yh.prototype.end=function(){return this.decoder.end()}});var hh=O((nS1,gV0)=>{var Bq1=typeof Object.hasOwn>"u"?Function.call.bind(Object.prototype.hasOwnProperty):Object.hasOwn;function vq1($,I){for(var U in I)if(Bq1(I,U))$[U]=I[U]}gV0.exports=vq1});var hV0=O((pS1,yV0)=>{var m5=d5().Buffer;yV0.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:uh};function uh($,I){if(this.enc=$.encodingName,this.bomAware=$.bomAware,this.enc==="base64")this.encoder=fh;else if(this.enc==="utf8")this.encoder=nh;else if(this.enc==="cesu8"){if(this.enc="utf8",this.encoder=bh,m5.from("eda0bdedb2a9","hex").toString()!=="\uD83D\uDCA9")this.decoder=ih,this.defaultCharUnicode=I.defaultCharUnicode}}uh.prototype.encoder=kh;uh.prototype.decoder=xh;var Rq1=t("string_decoder").StringDecoder;function xh($,I){this.decoder=new Rq1(I.enc)}xh.prototype.write=function($){if(!m5.isBuffer($))$=m5.from($);return this.decoder.write($)};xh.prototype.end=function(){return this.decoder.end()};function kh($,I){this.enc=I.enc}kh.prototype.write=function($){return m5.from($,this.enc)};kh.prototype.end=function(){};function fh($,I){this.prevStr=""}fh.prototype.write=function($){$=this.prevStr+$;var I=$.length-$.length%4;return this.prevStr=$.slice(I),$=$.slice(0,I),m5.from($,"base64")};fh.prototype.end=function(){return m5.from(this.prevStr,"base64")};function bh($,I){}bh.prototype.write=function($){var I=m5.alloc($.length*3),U=0;for(var Y=0;Y<$.length;Y++){var J=$.charCodeAt(Y);if(J<128)I[U++]=J;else if(J<2048)I[U++]=192+(J>>>6),I[U++]=128+(J&63);else I[U++]=224+(J>>>12),I[U++]=128+(J>>>6&63),I[U++]=128+(J&63)}return I.slice(0,U)};bh.prototype.end=function(){};function ih($,I){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=I.defaultCharUnicode}ih.prototype.write=function($){var I=this.acc,U=this.contBytes,Y=this.accBytes,J="";for(var Q=0;Q<$.length;Q++){var K=$[Q];if((K&192)!==128){if(U>0)J+=this.defaultCharUnicode,U=0;if(K<128)J+=String.fromCharCode(K);else if(K<224)I=K&31,U=1,Y=1;else if(K<240)I=K&15,U=2,Y=1;else J+=this.defaultCharUnicode}else if(U>0){if(I=I<<6|K&63,U--,Y++,U===0)if(Y===2&&I<128&&I>0)J+=this.defaultCharUnicode;else if(Y===3&&I<2048)J+=this.defaultCharUnicode;else J+=String.fromCharCode(I)}else J+=this.defaultCharUnicode}return this.acc=I,this.contBytes=U,this.accBytes=Y,J};ih.prototype.end=function(){var $=0;if(this.contBytes>0)$+=this.defaultCharUnicode;return $};function nh($,I){this.highSurrogate=""}nh.prototype.write=function($){if(this.highSurrogate)$=this.highSurrogate+$,this.highSurrogate="";if($.length>0){var I=$.charCodeAt($.length-1);if(I>=55296&&I<56320)this.highSurrogate=$[$.length-1],$=$.slice(0,$.length-1)}return m5.from($,this.enc)};nh.prototype.end=function(){if(this.highSurrogate){var $=this.highSurrogate;return this.highSurrogate="",m5.from($,this.enc)}}});var kV0=O((jq1)=>{var GD=d5().Buffer;jq1._utf32=ph;function ph($,I){this.iconv=I,this.bomAware=!0,this.isLE=$.isLE}jq1.utf32le={type:"_utf32",isLE:!0};jq1.utf32be={type:"_utf32",isLE:!1};jq1.ucs4le="utf32le";jq1.ucs4be="utf32be";ph.prototype.encoder=ch;ph.prototype.decoder=dh;function ch($,I){this.isLE=I.isLE,this.highSurrogate=0}ch.prototype.write=function($){var I=GD.from($,"ucs2"),U=GD.alloc(I.length*2+4),Y=this.isLE?U.writeUInt32LE:U.writeUInt32BE,J=0;for(var Q=0;Q=55296&&K<56320,H=K>=56320&&K<57344;if(this.highSurrogate)if(q||!H)Y.call(U,this.highSurrogate,J),J+=4;else{var G=(this.highSurrogate-55296<<10|K-56320)+65536;Y.call(U,G,J),J+=4,this.highSurrogate=0;continue}if(q)this.highSurrogate=K;else Y.call(U,K,J),J+=4,this.highSurrogate=0}if(J0){for(;I<$.length&&K.length<4;I++)K.push($[I]);if(K.length===4){if(Q)U=K[0]|K[1]<<8|K[2]<<16|K[3]<<24;else U=K[3]|K[2]<<8|K[1]<<16|K[0]<<24;K.length=0,J=uV0(Y,J,U,q)}}for(;I<$.length-3;I+=4){if(Q)U=$[I]|$[I+1]<<8|$[I+2]<<16|$[I+3]<<24;else U=$[I+3]|$[I+2]<<8|$[I+1]<<16|$[I]<<24;J=uV0(Y,J,U,q)}for(;I<$.length;I++)K.push($[I]);return Y.slice(0,J).toString("ucs2")};function uV0($,I,U,Y){if(U<0||U>1114111)U=Y;if(U>=65536){U-=65536;var J=55296|U>>10;$[I++]=J&255,$[I++]=J>>8;var U=56320|U&1023}return $[I++]=U&255,$[I++]=U>>8,I}dh.prototype.end=function(){if(this.overflow.length===0)return;return this.overflow.length=0,String.fromCharCode(this.badChar)};jq1.utf32=mh;jq1.ucs4="utf32";function mh($,I){this.iconv=I}mh.prototype.encoder=lh;mh.prototype.decoder=oh;function lh($,I){if($=$||{},$.addBOM===void 0)$.addBOM=!0;this.encoder=I.iconv.getEncoder($.defaultEncoding||"utf-32le",$)}lh.prototype.write=function($){return this.encoder.write($)};lh.prototype.end=function(){return this.encoder.end()};function oh($,I){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=$||{},this.iconv=I.iconv}oh.prototype.write=function($){if(!this.decoder){if(this.initialBufs.push($),this.initialBufsLen+=$.length,this.initialBufsLen<32)return"";var I=xV0(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(I,this.options);var U="";for(var Y=0;Y16)Q++;if(U[3]!==0||U[2]>16)J++;if(U[0]===0&&U[1]===0&&(U[2]!==0||U[3]!==0))q++;if((U[0]!==0||U[1]!==0)&&U[2]===0&&U[3]===0)K++;if(U.length=0,Y++,Y>=100)break $}}if(q-Q>K-J)return"utf-32be";if(q-Q{var fV0=d5().Buffer;xq1.utf16be=WD;function WD(){}WD.prototype.encoder=rh;WD.prototype.decoder=th;WD.prototype.bomAware=!0;function rh(){}rh.prototype.write=function($){var I=fV0.from($,"ucs2");for(var U=0;U=100)break $}}if(Q>J)return"utf-16be";if(Q{var t8=d5().Buffer;pq1.utf7=wD;pq1.unicode11utf7="utf7";function wD($,I){this.iconv=I}wD.prototype.encoder=Iu;wD.prototype.decoder=Uu;wD.prototype.bomAware=!0;var bq1=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Iu($,I){this.iconv=I.iconv}Iu.prototype.write=function($){return t8.from($.replace(bq1,function(I){return"+"+(I==="+"?"":this.iconv.encode(I,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Iu.prototype.end=function(){};function Uu($,I){this.iconv=I.iconv,this.inBase64=!1,this.base64Accum=""}var iq1=/[A-Za-z0-9\/+]/,Yu=[];for(RJ=0;RJ<256;RJ++)Yu[RJ]=iq1.test(String.fromCharCode(RJ));var RJ,nq1=43,qI=45,$u=38;Uu.prototype.write=function($){var I="",U=0,Y=this.inBase64,J=this.base64Accum;for(var Q=0;Q<$.length;Q++)if(!Y){if($[Q]==nq1)I+=this.iconv.decode($.slice(U,Q),"ascii"),U=Q+1,Y=!0}else if(!Yu[$[Q]]){if(Q==U&&$[Q]==qI)I+="+";else{var K=J+this.iconv.decode($.slice(U,Q),"ascii");I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}if($[Q]!=qI)Q--;U=Q+1,Y=!1,J=""}if(!Y)I+=this.iconv.decode($.slice(U),"ascii");else{var K=J+this.iconv.decode($.slice(U),"ascii"),q=K.length-K.length%8;J=K.slice(q),K=K.slice(0,q),I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}return this.inBase64=Y,this.base64Accum=J,I};Uu.prototype.end=function(){var $="";if(this.inBase64&&this.base64Accum.length>0)$=this.iconv.decode(t8.from(this.base64Accum,"base64"),"utf16-be");return this.inBase64=!1,this.base64Accum="",$};pq1.utf7imap=VD;function VD($,I){this.iconv=I}VD.prototype.encoder=Ju;VD.prototype.decoder=Qu;VD.prototype.bomAware=!0;function Ju($,I){this.iconv=I.iconv,this.inBase64=!1,this.base64Accum=t8.alloc(6),this.base64AccumIdx=0}Ju.prototype.write=function($){var I=this.inBase64,U=this.base64Accum,Y=this.base64AccumIdx,J=t8.alloc($.length*5+10),Q=0;for(var K=0;K<$.length;K++){var q=$.charCodeAt(K);if(q>=32&&q<=126){if(I){if(Y>0)Q+=J.write(U.slice(0,Y).toString("base64").replace(/\//g,",").replace(/=+$/,""),Q),Y=0;J[Q++]=qI,I=!1}if(!I){if(J[Q++]=q,q===$u)J[Q++]=qI}}else{if(!I)J[Q++]=$u,I=!0;if(I){if(U[Y++]=q>>8,U[Y++]=q&255,Y==U.length)Q+=J.write(U.toString("base64").replace(/\//g,","),Q),Y=0}}}return this.inBase64=I,this.base64AccumIdx=Y,J.slice(0,Q)};Ju.prototype.end=function(){var $=t8.alloc(10),I=0;if(this.inBase64){if(this.base64AccumIdx>0)I+=$.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),I),this.base64AccumIdx=0;$[I++]=qI,this.inBase64=!1}return $.slice(0,I)};function Qu($,I){this.iconv=I.iconv,this.inBase64=!1,this.base64Accum=""}var nV0=Yu.slice();nV0[44]=!0;Qu.prototype.write=function($){var I="",U=0,Y=this.inBase64,J=this.base64Accum;for(var Q=0;Q<$.length;Q++)if(!Y){if($[Q]==$u)I+=this.iconv.decode($.slice(U,Q),"ascii"),U=Q+1,Y=!0}else if(!nV0[$[Q]]){if(Q==U&&$[Q]==qI)I+="&";else{var K=J+this.iconv.decode($.slice(U,Q),"ascii").replace(/,/g,"/");I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}if($[Q]!=qI)Q--;U=Q+1,Y=!1,J=""}if(!Y)I+=this.iconv.decode($.slice(U),"ascii");else{var K=J+this.iconv.decode($.slice(U),"ascii").replace(/,/g,"/"),q=K.length-K.length%8;J=K.slice(q),K=K.slice(0,q),I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}return this.inBase64=Y,this.base64Accum=J,I};Qu.prototype.end=function(){var $="";if(this.inBase64&&this.base64Accum.length>0)$=this.iconv.decode(t8.from(this.base64Accum,"base64"),"utf16-be");return this.inBase64=!1,this.base64Accum="",$}});var cV0=O((lq1)=>{var ZD=d5().Buffer;lq1._sbcs=Ku;function Ku($,I){if(!$)throw Error("SBCS codec is called without the data.");if(!$.chars||$.chars.length!==128&&$.chars.length!==256)throw Error("Encoding '"+$.type+"' has incorrect 'chars' (must be of len 128 or 256)");if($.chars.length===128){var U="";for(var Y=0;Y<128;Y++)U+=String.fromCharCode(Y);$.chars=U+$.chars}this.decodeBuf=ZD.from($.chars,"ucs2");var J=ZD.alloc(65536,I.defaultCharSingleByte.charCodeAt(0));for(var Y=0;Y<$.chars.length;Y++)J[$.chars.charCodeAt(Y)]=Y;this.encodeBuf=J}Ku.prototype.encoder=qu;Ku.prototype.decoder=Hu;function qu($,I){this.encodeBuf=I.encodeBuf}qu.prototype.write=function($){var I=ZD.alloc($.length);for(var U=0;U<$.length;U++)I[U]=this.encodeBuf[$.charCodeAt(U)];return I};qu.prototype.end=function(){};function Hu($,I){this.decodeBuf=I.decodeBuf}Hu.prototype.write=function($){var I=this.decodeBuf,U=ZD.alloc($.length*2),Y=0,J=0;for(var Q=0;Q<$.length;Q++)Y=$[Q]*2,J=Q*2,U[J]=I[Y],U[J+1]=I[Y+1];return U.toString("ucs2")};Hu.prototype.end=function(){}});var mV0=O((oS1,dV0)=>{dV0.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},cp720:{type:"_sbcs",chars:"€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■ "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",iso88598i:"iso88598",iso88598e:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var oV0=O((rS1,lV0)=>{lV0.exports={"437":"cp437","737":"cp737","775":"cp775","850":"cp850","852":"cp852","855":"cp855","856":"cp856","857":"cp857","858":"cp858","860":"cp860","861":"cp861","862":"cp862","863":"cp863","864":"cp864","865":"cp865","866":"cp866","869":"cp869","874":"windows874","922":"cp922","1046":"cp1046","1124":"cp1124","1125":"cp1125","1129":"cp1129","1133":"cp1133","1161":"cp1161","1162":"cp1162","1163":"cp1163","1250":"windows1250","1251":"windows1251","1252":"windows1252","1253":"windows1253","1254":"windows1254","1255":"windows1255","1256":"windows1256","1257":"windows1257","1258":"windows1258","28591":"iso88591","28592":"iso88592","28593":"iso88593","28594":"iso88594","28595":"iso88595","28596":"iso88596","28597":"iso88597","28598":"iso88598","28599":"iso88599","28600":"iso885910","28601":"iso885911","28603":"iso885913","28604":"iso885914","28605":"iso885915","28606":"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b + */var b1=t("fs"),pL=t("os"),x4=t("path"),Yw0=t("crypto"),m8={fs:b1.constants,os:pL.constants},qw0=/XXXXXX/,Hw0=(m8.O_CREAT||m8.fs.O_CREAT)|(m8.O_EXCL||m8.fs.O_EXCL)|(m8.O_RDWR||m8.fs.O_RDWR),I21=pL.platform()==="win32",U21=m8.EBADF||m8.os.errno.EBADF,Y21=m8.ENOENT||m8.os.errno.ENOENT,OJ=[],Gw0=b1.rmdirSync.bind(b1),Ww0=!1;function J21($,I){return b1.rm($,{recursive:!0},I)}function ww0($){return b1.rmSync($,{recursive:!0})}function Wh($,I){let U=FJ($,I),Y=U[0],J=U[1];z21(Y,function(Q,K){if(Q)return J(Q);let q=K.tries;(function H(){try{let G=Zw0(K);b1.stat(G,function(W){if(!W){if(q-- >0)return H();return J(Error("Could not get a unique tmp filename, max tries reached "+G))}J(null,G)})}catch(G){J(G)}})()})}function wh($){let I=FJ($),U=I[0],Y=X21(U),J=Y.tries;do{let Q=Zw0(Y);try{b1.statSync(Q)}catch(K){return Q}}while(J-- >0);throw Error("Could not get a unique tmp filename, max tries reached")}function Q21($,I){let U=FJ($,I),Y=U[0],J=U[1];Wh(Y,function(K,q){if(K)return J(K);b1.open(q,Hw0,Y.mode||384,function(G,W){if(G)return J(G);if(Y.discardDescriptor)return b1.close(W,function(Z){return J(Z,q,void 0,Hh(q,-1,Y,!1))});else{let w=Y.discardDescriptor||Y.detachDescriptor;J(null,q,W,Hh(q,w?-1:W,Y,!1))}})})}function K21($){let I=FJ($),U=I[0],Y=U.discardDescriptor||U.detachDescriptor,J=wh(U),Q=b1.openSync(J,Hw0,U.mode||384);if(U.discardDescriptor)b1.closeSync(Q),Q=void 0;return{name:J,fd:Q,removeCallback:Hh(J,Y?-1:Q,U,!0)}}function q21($,I){let U=FJ($,I),Y=U[0],J=U[1];Wh(Y,function(K,q){if(K)return J(K);b1.mkdir(q,Y.mode||448,function(G){if(G)return J(G);J(null,q,Vw0(q,Y,!1))})})}function H21($){let I=FJ($),U=I[0],Y=wh(U);return b1.mkdirSync(Y,U.mode||448),{name:Y,removeCallback:Vw0(Y,U,!0)}}function G21($,I){let U=function(Y){if(Y&&!Gh(Y))return I(Y);I()};if(0<=$[0])b1.close($[0],function(){b1.unlink($[1],U)});else b1.unlink($[1],U)}function W21($){let I=null;try{if(0<=$[0])b1.closeSync($[0])}catch(U){if(!L21(U)&&!Gh(U))throw U}finally{try{b1.unlinkSync($[1])}catch(U){if(!Gh(U))I=U}}if(I!==null)throw I}function Hh($,I,U,Y){let J=nL(W21,[I,$],Y),Q=nL(G21,[I,$],Y,J);if(!U.keep)OJ.unshift(J);return Y?J:Q}function Vw0($,I,U){let Y=I.unsafeCleanup?J21:b1.rmdir.bind(b1),J=I.unsafeCleanup?ww0:Gw0,Q=nL(J,$,U),K=nL(Y,$,U,Q);if(!I.keep)OJ.unshift(Q);return U?Q:K}function nL($,I,U,Y){let J=!1;return function Q(K){if(!J){let q=Y||Q,H=OJ.indexOf(q);if(H>=0)OJ.splice(H,1);if(J=!0,U||$===Gw0||$===ww0)return $(I);else return $(I,K||function(){})}}}function w21(){if(!Ww0)return;while(OJ.length)try{OJ[0]()}catch($){}}function Jw0($){let I=[],U=null;try{U=Yw0.randomBytes($)}catch(Y){U=Yw0.pseudoRandomBytes($)}for(let Y=0;Y<$;Y++)I.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[U[Y]%62]);return I.join("")}function $$($){return typeof $>"u"}function FJ($,I){if(typeof $==="function")return[{},$];if($$($))return[{},I];let U={};for(let Y of Object.getOwnPropertyNames($))U[Y]=$[Y];return[U,I]}function V21($,I,U){let Y=x4.isAbsolute($)?$:x4.join(I,$);b1.stat(Y,function(J){if(J)b1.realpath(x4.dirname(Y),function(Q,K){if(Q)return U(Q);U(null,x4.join(K,x4.basename(Y)))});else b1.realpath(Y,U)})}function Z21($,I){let U=x4.isAbsolute($)?$:x4.join(I,$);try{return b1.statSync(U),b1.realpathSync(U)}catch(Y){let J=b1.realpathSync(x4.dirname(U));return x4.join(J,x4.basename(U))}}function Zw0($){let I=$.tmpdir;if(!$$($.name))return x4.join(I,$.dir,$.name);if(!$$($.template))return x4.join(I,$.dir,$.template).replace(qw0,Jw0(6));let U=[$.prefix?$.prefix:"tmp","-",process.pid,"-",Jw0(12),$.postfix?"-"+$.postfix:""].join("");return x4.join(I,$.dir,U)}function qh($,I){if(typeof I!=="string")throw Error(`${$} option must be a string, got "${typeof I}".`);if(I.includes(".."))throw Error("Relative value not allowed");return I}function zw0($){if(!$$($.name)){let I=$.name;if(x4.isAbsolute(I))throw Error(`name option must not contain an absolute path, found "${I}".`);let U=x4.basename(I);if(U===".."||U==="."||U!==I)throw Error(`name option must not contain a path, found "${I}".`)}if(!$$($.template)){if(typeof $.template!=="string")throw Error(`template option must be a string, got "${typeof $.template}".`);if(!$.template.match(qw0))throw Error(`Invalid template, found "${$.template}".`)}if(!$$($.tries)&&isNaN($.tries)||$.tries<0)throw Error(`Invalid tries, found "${$.tries}".`);$.tries=$$($.name)?$.tries||3:1,$.keep=!!$.keep,$.detachDescriptor=!!$.detachDescriptor,$.discardDescriptor=!!$.discardDescriptor,$.unsafeCleanup=!!$.unsafeCleanup,$.prefix=$$($.prefix)?"":qh("prefix",$.prefix),$.postfix=$$($.postfix)?"":qh("postfix",$.postfix),$.template=$$($.template)?void 0:qh("template",$.template)}function Qw0($,I,U,Y){if($$(I))return Y(null);V21(I,U,function(J,Q){if(J)return Y(J);let K=x4.relative(U,Q);if(K.startsWith("..")||x4.isAbsolute(K))return Y(Error(`${$} option must be relative to "${U}", found "${K}".`));Y(null,K)})}function Kw0($,I,U){if($$(I))return;let Y=Z21(I,U),J=x4.relative(U,Y);if(J.startsWith("..")||x4.isAbsolute(J))throw Error(`${$} option must be relative to "${U}", found "${J}".`);return J}function z21($,I){O21($,function(U,Y){if(U)return I(U);$.tmpdir=Y;try{zw0($,Y)}catch(J){return I(J)}Qw0("dir",$.dir,Y,function(J,Q){if(J)return I(J);$.dir=$$(Q)?"":Q,Qw0("template",$.template,Y,function(K,q){if(K)return I(K);$.template=q,I(null,$)})})})}function X21($){let I=$.tmpdir=Lw0($);zw0($,I);let U=Kw0("dir",$.dir,I);return $.dir=$$(U)?"":U,$.template=Kw0("template",$.template,I),$}function L21($){return Xw0($,-U21,"EBADF")}function Gh($){return Xw0($,-Y21,"ENOENT")}function Xw0($,I,U){return I21?$.code===U:$.code===U&&$.errno===I}function D21(){Ww0=!0}function O21($,I){return b1.realpath($&&$.tmpdir||pL.tmpdir(),I)}function Lw0($){return b1.realpathSync($&&$.tmpdir||pL.tmpdir())}process.addListener("exit",w21);Object.defineProperty(F21,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return Lw0()}});F21.dir=q21;F21.dirSync=H21;F21.file=Q21;F21.fileSync=K21;F21.tmpName=Wh;F21.tmpNameSync=wh;F21.setGracefulCleanup=D21});var Fw0=O((b_1,Ow0)=>{Ow0.exports=async function*(I){let U=[];I.on("data",(q)=>U.push(q));let Y,J=new Promise((q)=>Y=q),Q=!1;I.on("end",()=>{Q=!0,Y()});let K=!1;I.on("error",(q)=>{K=q,Y()});while(!Q||U.length>0){if(U.length===0)I.resume(),await Promise.race([v21(I,"data"),J]);else I.pause(),yield U.shift();if(K)throw K}Y()};function v21($,I){return new Promise((U)=>{let Y=!1,J=()=>{if(!Y)Y=!0,$.removeListener(I,J),U()};$.addListener(I,J)})}});var Tw0=O((n_1,Pw0)=>{var{EventEmitter:R21}=t("events"),j21=TK(),C21=X4(),cL=O6(),Nw0=W4(),_21=Z5(),S21=JV(),Mw0=KV();class Aw0 extends R21{constructor({workbook:$,id:I,iterator:U,options:Y}){super();this.workbook=$,this.id=I,this.iterator=U,this.options=Y||{},this.name=`Sheet${this.id}`,this._columns=null,this._keys={},this._dimensions=new _21}destroy(){throw Error("Invalid Operation: destroy")}get dimensions(){return this._dimensions}get columns(){return this._columns}getColumn($){if(typeof $==="string"){let I=this._keys[$];if(I)return I;$=Nw0.l2n($)}if(!this._columns)this._columns=[];if($>this._columns.length){let I=this._columns.length+1;while(I<=$)this._columns.push(new Mw0(this,I++))}return this._columns[$-1]}getColumnKey($){return this._keys[$]}setColumnKey($,I){this._keys[$]=I}deleteColumnKey($){delete this._keys[$]}eachColumnKey($){C21.each(this._keys,$)}async read(){try{for await(let $ of this.parse())for(let{eventType:I,value:U}of $)this.emit(I,U);this.emit("finished")}catch($){this.emit("error",$)}}async*[Symbol.asyncIterator](){for await(let $ of this.parse())for(let{eventType:I,value:U}of $)if(I==="row")yield U}async*parse(){let{iterator:$,options:I}=this,U=!1,Y=!1,J=null;switch(I.worksheets){case"emit":U=!0;break;case"prep":break;default:break}switch(I.hyperlinks){case"emit":Y=!0;break;case"cache":this.hyperlinks=J={};break;default:break}if(!U&&!Y&&!J)return;let{sharedStrings:Q,styles:K,properties:q}=this.workbook,H=!1,G=!1,W=!1,w=null,Z=null,V=null,X=null;for await(let L of j21($)){let D=[];for(let{eventType:F,value:P}of L)if(F==="opentag"){let T=P;if(U)switch(T.name){case"cols":H=!0,w=[];break;case"sheetData":G=!0;break;case"col":if(H)w.push({min:parseInt(T.attributes.min,10),max:parseInt(T.attributes.max,10),width:parseFloat(T.attributes.width),styleId:parseInt(T.attributes.style||"0",10)});break;case"row":if(G){let A=parseInt(T.attributes.r,10);if(Z=new S21(this,A),T.attributes.ht)Z.height=parseFloat(T.attributes.ht);if(T.attributes.s){let R=parseInt(T.attributes.s,10),x=K.getStyleModel(R);if(x)Z.style=x}}break;case"c":if(Z)V={ref:T.attributes.r,s:parseInt(T.attributes.s,10),t:T.attributes.t};break;case"f":if(V)X=V.f={text:""};break;case"v":if(V)X=V.v={text:""};break;case"is":case"t":if(V)X=V.v={text:""};break;case"mergeCell":break;default:break}if(Y||J)switch(T.name){case"hyperlinks":W=!0;break;case"hyperlink":if(W){let A={ref:T.attributes.ref,rId:T.attributes["r:id"]};if(Y)D.push({eventType:"hyperlink",value:A});else J[A.ref]=A}break;default:break}}else if(F==="text"){if(U){if(X)X.text+=P}}else if(F==="closetag"){let T=P;if(U)switch(T.name){case"cols":H=!1,this._columns=Mw0.fromModel(w);break;case"sheetData":G=!1;break;case"row":this._dimensions.expandRow(Z),D.push({eventType:"row",value:Z}),Z=null;break;case"c":if(Z&&V){let A=Nw0.decodeAddress(V.ref),R=Z.getCell(A.col);if(V.s){let x=K.getStyleModel(V.s);if(x)R.style=x}if(V.f){let x={formula:V.f.text};if(V.v)if(V.t==="str")x.result=cL.xmlDecode(V.v.text);else x.result=parseFloat(V.v.text);R.value=x}else if(V.v)switch(V.t){case"s":{let x=parseInt(V.v.text,10);if(Q)R.value=Q[x];else R.value={sharedString:x};break}case"inlineStr":case"str":R.value=cL.xmlDecode(V.v.text);break;case"e":R.value={error:V.v.text};break;case"b":R.value=parseInt(V.v.text,10)!==0;break;default:if(cL.isDateFmt(R.numFmt))R.value=cL.excelToDate(parseFloat(V.v.text),q.model&&q.model.date1904);else R.value=parseFloat(V.v.text);break}if(J){let x=J[V.ref];if(x)R.text=R.value,R.value=void 0,R.hyperlink=x}V=null}break;default:break}if(Y||J)switch(T.name){case"hyperlinks":W=!1;break;default:break}}if(D.length>0)yield D}}}Pw0.exports=Aw0});var vw0=O((p_1,Bw0)=>{var{EventEmitter:g21}=t("events"),y21=TK(),h21=I8(),u21=n9();class Ew0 extends g21{constructor({workbook:$,id:I,iterator:U,options:Y}){super();this.workbook=$,this.id=I,this.iterator=U,this.options=Y}get count(){return this.hyperlinks&&this.hyperlinks.length||0}each($){return this.hyperlinks.forEach($)}async read(){let{iterator:$,options:I}=this,U=!1,Y=null;switch(I.hyperlinks){case"emit":U=!0;break;case"cache":this.hyperlinks=Y={};break;default:break}if(!U&&!Y){this.emit("finished");return}try{for await(let J of y21($))for(let{eventType:Q,value:K}of J)if(Q==="opentag"){let q=K;if(q.name==="Relationship"){let H=q.attributes.Id;switch(q.attributes.Type){case u21.Hyperlink:{let G={type:h21.RelationshipType.Styles,rId:H,target:q.attributes.Target,targetMode:q.attributes.TargetMode};if(U)this.emit("hyperlink",G);else Y[G.rId]=G}break;default:break}}}this.emit("finished")}catch(J){this.emit("error",J)}}}Bw0.exports=Ew0});var _w0=O((c_1,Cw0)=>{var Vh=t("fs"),{EventEmitter:k21}=t("events"),{PassThrough:x21,Readable:f21}=D6(),i21=t("stream"),b21=Uw0(),jw0=Dw0(),UI=Fw0(),n21=TK(),Rw0=kZ(),p21=pZ(),c21=bZ(),d21=Tw0(),m21=vw0();jw0.setGracefulCleanup();class Zh extends k21{constructor($,I={}){super();this.input=$,this.options={worksheets:"emit",sharedStrings:"cache",hyperlinks:"ignore",styles:"ignore",entries:"ignore",...I},this.styles=new Rw0,this.styles.init()}_getStream($){if($ instanceof i21.Readable||$ instanceof f21)return $;if(typeof $==="string")return Vh.createReadStream($);throw Error(`Could not recognise input: ${$}`)}async read($,I){try{for await(let{eventType:U,value:Y}of this.parse($,I))switch(U){case"shared-strings":this.emit(U,Y);break;case"worksheet":this.emit(U,Y),await Y.read();break;case"hyperlinks":this.emit(U,Y);break}this.emit("end"),this.emit("finished")}catch(U){this.emit("error",U)}}async*[Symbol.asyncIterator](){for await(let{eventType:$,value:I}of this.parse())if($==="worksheet")yield I}async*parse($,I){if(I)this.options=I;let U=this.stream=this._getStream($||this.input),Y=b21.Parse({forceStream:!0});U.pipe(Y);let J=[];for await(let Q of UI(Y)){let K,q;switch(Q.path){case"_rels/.rels":break;case"xl/_rels/workbook.xml.rels":await this._parseRels(Q);break;case"xl/workbook.xml":await this._parseWorkbook(Q);break;case"xl/sharedStrings.xml":yield*this._parseSharedStrings(Q);break;case"xl/styles.xml":await this._parseStyles(Q);break;default:if(Q.path.match(/xl\/worksheets\/sheet\d+[.]xml/))if(K=Q.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/),q=K[1],this.sharedStrings&&this.workbookRels)yield*this._parseWorksheet(UI(Q),q);else await new Promise((H,G)=>{jw0.file((W,w,Z,V)=>{if(W)return G(W);J.push({sheetNo:q,path:w,tempFileCleanupCallback:V});let X=Vh.createWriteStream(w);return X.on("error",G),Q.pipe(X),X.on("finish",()=>{return H()})})});else if(Q.path.match(/xl\/worksheets\/_rels\/sheet\d+[.]xml.rels/))K=Q.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),q=K[1],yield*this._parseHyperlinks(UI(Q),q);break}Q.autodrain()}for(let{sheetNo:Q,path:K,tempFileCleanupCallback:q}of J){let H=Vh.createReadStream(K);if(!H[Symbol.asyncIterator])H=H.pipe(new x21);yield*this._parseWorksheet(H,Q),q()}}_emitEntry($){if(this.options.entries==="emit")this.emit("entry",$)}async _parseRels($){let I=new c21;this.workbookRels=await I.parseStream(UI($))}async _parseWorkbook($){this._emitEntry({type:"workbook"});let I=new p21;await I.parseStream(UI($)),this.properties=I.map.workbookPr,this.model=I.model}async*_parseSharedStrings($){switch(this._emitEntry({type:"shared-strings"}),this.options.sharedStrings){case"cache":this.sharedStrings=[];break;case"emit":break;default:return}let I=null,U=[],Y=0,J=null;for await(let Q of n21(UI($)))for(let{eventType:K,value:q}of Q)if(K==="opentag"){let H=q;switch(H.name){case"b":J=J||{},J.bold=!0;break;case"charset":J=J||{},J.charset=parseInt(H.attributes.charset,10);break;case"color":if(J=J||{},J.color={},H.attributes.rgb)J.color.argb=H.attributes.argb;if(H.attributes.val)J.color.argb=H.attributes.val;if(H.attributes.theme)J.color.theme=H.attributes.theme;break;case"family":J=J||{},J.family=parseInt(H.attributes.val,10);break;case"i":J=J||{},J.italic=!0;break;case"outline":J=J||{},J.outline=!0;break;case"rFont":J=J||{},J.name=H.value;break;case"si":J=null,U=[],I=null;break;case"sz":J=J||{},J.size=parseInt(H.attributes.val,10);break;case"strike":break;case"t":I=null;break;case"u":J=J||{},J.underline=!0;break;case"vertAlign":J=J||{},J.vertAlign=H.attributes.val;break}}else if(K==="text")I=I?I+q:q;else if(K==="closetag")switch(q.name){case"r":U.push({font:J,text:I}),J=null,I=null;break;case"si":if(this.options.sharedStrings==="cache")this.sharedStrings.push(U.length?{richText:U}:I);else if(this.options.sharedStrings==="emit")yield{index:Y++,text:U.length?{richText:U}:I};U=[],J=null,I=null;break}}async _parseStyles($){if(this._emitEntry({type:"styles"}),this.options.styles==="cache")this.styles=new Rw0,await this.styles.parseStream(UI($))}*_parseWorksheet($,I){this._emitEntry({type:"worksheet",id:I});let U=new d21({workbook:this,id:I,iterator:$,options:this.options}),Y=(this.workbookRels||[]).find((Q)=>Q.Target===`worksheets/sheet${I}.xml`),J=Y&&(this.model.sheets||[]).find((Q)=>Q.rId===Y.Id);if(J)U.id=J.id,U.name=J.name,U.state=J.state;if(this.options.worksheets==="emit")yield{eventType:"worksheet",value:U}}*_parseHyperlinks($,I){this._emitEntry({type:"hyperlinks",id:I});let U=new m21({workbook:this,id:I,iterator:$,options:this.options});if(this.options.hyperlinks==="emit")yield{eventType:"hyperlinks",value:U}}}Zh.Options={worksheets:["emit","ignore"],sharedStrings:["cache","emit","ignore"],hyperlinks:["cache","emit","ignore"],styles:["cache","ignore"],entries:["emit","ignore"]};Cw0.exports=Zh});var yw0=O((d_1,gw0)=>{var Sw0={Workbook:KI0(),ModelContainer:GI0(),stream:{xlsx:{WorkbookWriter:r20(),WorkbookReader:_w0()}}};Object.assign(Sw0,I8());gw0.exports=Sw0});var zh=O((m_1,hw0)=>{if(parseInt(process.versions.node.split(".")[0],10)<10)throw Error("For node versions older than 10, please use the ES5 Import: https://github.com/exceljs/exceljs#es5-imports");hw0.exports=yw0()});var ZV0=O((kS1,VV0)=>{VV0.exports=ID;function ID(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}ID.prototype.go=function($){if(this.pending0&&$.pending<$.max)wV0($,$.waiting.shift());else if($.pending===0){var Q=$.listeners;$.listeners=[],Q.forEach(Y)}}function Y(J){J($.error)}}function wV0($,I){I(WV0($))}});var LV0=O((oK1)=>{var Rh=t("fs"),jh=t("util"),zV0=t("stream"),XV0=zV0.Readable,mK1=zV0.PassThrough,lK1=ZV0(),UD=t("events").EventEmitter;oK1.BufferSlicer=TJ;oK1.FdSlicer=PJ;jh.inherits(PJ,UD);function PJ($){UD.call(this),this.fd=$,this.pend=new lK1,this.pend.max=1,this.refCount=0}PJ.prototype.read=function($,I,U,Y,J){var Q=this;Q.pend.go(function(K){Rh.read(Q.fd,$,I,U,Y,function(q,H,G){K(),J(q,H,G)})})};PJ.prototype.createReadStream=function($){return new GH(this,$)};PJ.prototype.ref=function(){this.refCount+=1};PJ.prototype.unref=function(){var $=this;if($.refCount-=1,$.refCount<0)throw Error("invalid unref");if($.refCount>0)return;Rh.close($.fd,I);function I(U){if(U)$.emit("error",U);else $.emit("close")}};jh.inherits(GH,XV0);function GH($,I){I=I||{},XV0.call(this,I),this.context=$,this.context.ref(),this.start=I.start||0,this.endOffset=I.end,this.pos=this.start}GH.prototype._read=function($){var I=this,U=Math.min(I._readableState.highWaterMark,$);if(I.endOffset!=null)U=Math.min(U,I.endOffset-I.pos);if(U<=0){I.push(null),this._cleanup();return}I.context.pend.go(function(Y){var J=Buffer.allocUnsafe(U);Rh.read(I.context.fd,J,0,U,I.pos,function(Q,K){if(Q)I.destroy(Q);else if(K===0)I.push(null),I._cleanup();else I.pos+=K,I.push(J.slice(0,K));Y()})})};GH.prototype._destroy=function($,I){this._cleanup(),I($)};GH.prototype._cleanup=function(){if(this.context!=null)this.context.unref(),this.context=null};jh.inherits(TJ,UD);function TJ($){UD.call(this),this.refCount=0,this.buffer=$}TJ.prototype.read=function($,I,U,Y,J){if(!(0<=I&&I<=$.length))throw RangeError("offset outside buffer: 0 <= "+I+" <= "+$.length);if(Y<0)throw RangeError("position is negative: "+Y);if(I+U>$.length)U=$.length-I;if(Y+U>this.buffer.length)U=this.buffer.length-Y;if(U<=0){setImmediate(function(){J(null,0)});return}this.buffer.copy($,I,Y,Y+U),setImmediate(function(){J(null,U)})};TJ.prototype.createReadStream=function($){$=$||{};var I=new mK1($);I.start=$.start||0,I.endOffset=$.end,I.pos=I.endOffset||this.buffer.length;var U=this.buffer.slice(I.start,I.pos),Y=65536,J=0;while(!0){var Q=J+Y;if(Q>=U.length){if(J{var aK1=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function sK1($){let I=-1;for(let U of $)I=aK1[(I^U)&255]^I>>>8;return(I^-1)>>>0}DV0.exports=sK1});var jV0=O((Kq1)=>{var Ch=t("fs"),_h=t("zlib"),FV0=LV0(),QD=t("util"),KD=t("events").EventEmitter,NV0=t("stream").Transform,gh=t("stream").PassThrough,eK1=t("stream").Writable,$q1=typeof _h.crc32==="function"?_h.crc32:OV0();Kq1.open=MV0;Kq1.fromFd=yh;Kq1.fromBuffer=AV0;Kq1.fromRandomAccessReader=qD;Kq1.openPromise=Iq1;Kq1.fromFdPromise=Uq1;Kq1.fromBufferPromise=Yq1;Kq1.fromRandomAccessReaderPromise=Jq1;Kq1.dosDateTimeToDate=EV0;Kq1.getFileNameLowLevel=BV0;Kq1.validateFileName=vV0;Kq1.parseExtraFields=RV0;Kq1.ZipFile=I$;Kq1.Entry=vJ;Kq1.LocalFileHeader=TV0;Kq1.RandomAccessReader=M7;function Iq1($,I){return new Promise((U,Y)=>{MV0($,{...I,lazyEntries:!0},function(J,Q){if(J)return Y(J);U(Q)})})}function Uq1($,I){return new Promise((U,Y)=>{yh($,{...I,lazyEntries:!0},function(J,Q){if(J)return Y(J);U(Q)})})}function Yq1($,I){return new Promise((U,Y)=>{AV0($,{...I,lazyEntries:!0},function(J,Q){if(J)return Y(J);U(Q)})})}function Jq1($,I,U){return new Promise((Y,J)=>{qD($,I,{...U,lazyEntries:!0},function(Q,K){if(Q)return J(Q);Y(K)})})}function MV0($,I,U){if(typeof I==="function")U=I,I=null;if(I==null)I={};if(I.autoClose==null)I.autoClose=!0;if(I.lazyEntries==null)I.lazyEntries=!1;if(I.decodeStrings==null)I.decodeStrings=!0;if(I.validateEntrySizes==null)I.validateEntrySizes=!0;if(I.strictFileNames==null)I.strictFileNames=!1;if(U==null)U=JD;Ch.open($,"r",function(Y,J){if(Y)return U(Y);yh(J,I,function(Q,K){if(Q)Ch.close(J,JD);U(Q,K)})})}function yh($,I,U){if(typeof I==="function")U=I,I=null;if(I==null)I={};if(I.autoClose==null)I.autoClose=!1;if(I.lazyEntries==null)I.lazyEntries=!1;if(I.decodeStrings==null)I.decodeStrings=!0;if(I.validateEntrySizes==null)I.validateEntrySizes=!0;if(I.strictFileNames==null)I.strictFileNames=!1;if(U==null)U=JD;Ch.fstat($,function(Y,J){if(Y)return U(Y);var Q=new FV0.FdSlicer($);qD(Q,J.size,I,U)})}function AV0($,I,U){if(typeof I==="function")U=I,I=null;if(I==null)I={};if(I.autoClose=!1,I.lazyEntries==null)I.lazyEntries=!1;if(I.decodeStrings==null)I.decodeStrings=!0;if(I.validateEntrySizes==null)I.validateEntrySizes=!0;if(I.strictFileNames==null)I.strictFileNames=!1;var Y=new FV0.BufferSlicer($);qD(Y,$.length,I,U)}function qD($,I,U,Y){if(typeof U==="function")Y=U,U=null;if(U==null)U={};if(U.autoClose==null)U.autoClose=!0;if(U.lazyEntries==null)U.lazyEntries=!1;if(U.decodeStrings==null)U.decodeStrings=!0;var J=!!U.decodeStrings;if(U.validateEntrySizes==null)U.validateEntrySizes=!0;if(U.strictFileNames==null)U.strictFileNames=!1;if(Y==null)Y=JD;if(typeof I!=="number")throw Error("expected totalSize parameter to be a number");if(I>Number.MAX_SAFE_INTEGER)throw Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");$.ref();var Q=22,K=20,q=65535,H=Math.min(K+Q+q,I),G=c5(H),W=I-G.length;BJ($,G,0,H,W,function(w){if(w)return Y(w);for(var Z=H-Q;Z>=0;Z-=1){if(G.readUInt32LE(Z)!==101010256)continue;var V=G.subarray(Z),X=V.readUInt16LE(4),L=V.readUInt16LE(10),D=V.readUInt32LE(16),F=V.readUInt16LE(20),P=V.length-Q;if(F!==P)return Y(Error("Invalid comment length. Expected: "+P+". Found: "+F+". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK☺☻` in the comment?"));var T=J?YD(V.subarray(22),!1):V.subarray(22);if(Z-K>=0&&G.readUInt32LE(Z-K)===117853008){var A=G.subarray(Z-K,Z-K+K),R=EJ(A,8),x=c5(56);return BJ($,x,0,x.length,R,function(y){if(y)return Y(y);if(x.readUInt32LE(0)!==101075792)return Y(Error("invalid zip64 end of central directory record signature"));if(X=x.readUInt32LE(16),X!==0)return Y(Error("multi-disk zip files are not supported: found disk number: "+X));return L=EJ(x,32),D=EJ(x,48),Y(null,new I$($,D,I,L,T,U.autoClose,U.lazyEntries,J,U.validateEntrySizes,U.strictFileNames))})}if(X!==0)return Y(Error("multi-disk zip files are not supported: found disk number: "+X));return Y(null,new I$($,D,I,L,T,U.autoClose,U.lazyEntries,J,U.validateEntrySizes,U.strictFileNames))}Y(Error("End of central directory record signature not found. Either not a zip file, or file is truncated."))})}QD.inherits(I$,KD);function I$($,I,U,Y,J,Q,K,q,H,G){var W=this;if(KD.call(W),W.reader=$,W.reader.on("error",function(w){PV0(W,w)}),W.reader.once("close",function(){W.emit("close")}),W.readEntryCursor=I,W.fileSize=U,W.entryCount=Y,W.comment=J,W.entriesRead=0,W.autoClose=!!Q,W.lazyEntries=!!K,W.decodeStrings=!!q,W.validateEntrySizes=!!H,W.strictFileNames=!!G,W.isOpen=!0,W.emittedError=!1,W.hasEachEntryBeenCalled=!1,!W.lazyEntries)W._readEntry()}I$.prototype.close=function(){if(!this.isOpen)return;this.isOpen=!1,this.reader.unref()};function r8($,I){if($.autoClose)$.close();PV0($,I)}function PV0($,I){if($.emittedError)return;$.emittedError=!0,$.emit("error",I)}I$.prototype.readEntry=function(){if(!this.lazyEntries)throw Error("readEntry() called without lazyEntries:true");this._readEntry()};I$.prototype._readEntry=function(){var $=this;if($.entryCount===$.entriesRead){setImmediate(function(){if($.autoClose)$.close();if($.emittedError)return;$.emit("end")});return}if($.emittedError)return;var I=c5(46);BJ($.reader,I,0,I.length,$.readEntryCursor,function(U){if(U)return r8($,U);if($.emittedError)return;var Y=new vJ,J=I.readUInt32LE(0);if(J!==33639248)return r8($,Error("invalid central directory file header signature: 0x"+J.toString(16)));if(Y.versionMadeBy=I.readUInt16LE(4),Y.versionNeededToExtract=I.readUInt16LE(6),Y.generalPurposeBitFlag=I.readUInt16LE(8),Y.compressionMethod=I.readUInt16LE(10),Y.lastModFileTime=I.readUInt16LE(12),Y.lastModFileDate=I.readUInt16LE(14),Y.crc32=I.readUInt32LE(16),Y.compressedSize=I.readUInt32LE(20),Y.uncompressedSize=I.readUInt32LE(24),Y.fileNameLength=I.readUInt16LE(28),Y.extraFieldLength=I.readUInt16LE(30),Y.fileCommentLength=I.readUInt16LE(32),Y.internalFileAttributes=I.readUInt16LE(36),Y.externalFileAttributes=I.readUInt32LE(38),Y.relativeOffsetOfLocalHeader=I.readUInt32LE(42),Y.generalPurposeBitFlag&64)return r8($,Error("strong encryption is not supported"));$.readEntryCursor+=46,I=c5(Y.fileNameLength+Y.extraFieldLength+Y.fileCommentLength),BJ($.reader,I,0,I.length,$.readEntryCursor,function(Q){if(Q)return r8($,Q);if($.emittedError)return;Y.fileNameRaw=I.subarray(0,Y.fileNameLength);var K=Y.fileNameLength+Y.extraFieldLength;Y.extraFieldRaw=I.subarray(Y.fileNameLength,K),Y.fileCommentRaw=I.subarray(K,K+Y.fileCommentLength);try{Y.extraFields=RV0(Y.extraFieldRaw)}catch(L){return r8($,L)}if($.decodeStrings){var q=(Y.generalPurposeBitFlag&2048)!==0;Y.fileComment=YD(Y.fileCommentRaw,q),Y.fileName=BV0(Y.generalPurposeBitFlag,Y.fileNameRaw,Y.extraFields,$.strictFileNames);var H=vV0(Y.fileName);if(H!=null)return r8($,Error(H))}else Y.fileComment=Y.fileCommentRaw,Y.fileName=Y.fileNameRaw;Y.comment=Y.fileComment,$.readEntryCursor+=I.length,$.entriesRead+=1;for(var G=0;Gw.length)return r8($,Error("zip64 extended information extra field does not include uncompressed size"));Y.uncompressedSize=EJ(w,Z),Z+=8}if(Y.compressedSize===4294967295){if(Z+8>w.length)return r8($,Error("zip64 extended information extra field does not include compressed size"));Y.compressedSize=EJ(w,Z),Z+=8}if(Y.relativeOffsetOfLocalHeader===4294967295){if(Z+8>w.length)return r8($,Error("zip64 extended information extra field does not include relative header offset"));Y.relativeOffsetOfLocalHeader=EJ(w,Z),Z+=8}break}if($.validateEntrySizes&&Y.compressionMethod===0){var V=Y.uncompressedSize;if(Y.isEncrypted())V+=12;if(Y.compressedSize!==V){var X="compressed/uncompressed size mismatch for stored file: "+Y.compressedSize+" != "+Y.uncompressedSize;return r8($,Error(X))}}if($.emit("entry",Y),!$.lazyEntries)$._readEntry()})})};I$.prototype.eachEntry=function(){let $=this;if(!$.lazyEntries)throw Error("eachEntry() requires lazyEntries: true");if($.hasEachEntryBeenCalled)throw Error("eachEntry() must only be called once per ZipFile");$.hasEachEntryBeenCalled=!0;let I=null;$.on("entry",Y),$.on("end",J),$.on("error",Q);function U(){if($.removeListener("entry",Y),$.removeListener("end",J),$.removeListener("error",Q),$.autoClose)$.close()}function Y(K){let{resolve:q}=I;I=null,q({value:K})}function J(){let{resolve:K}=I;I=null,U(),K({done:!0})}function Q(K){let{reject:q}=I;I=null,U(),q(K)}return{[Symbol.asyncIterator](){return this},next(){let K=new Promise((q,H)=>{if(I!=null)throw Error("next() called before previous Promise was resolved.");I={resolve:q,reject:H}});return $.readEntry(),K},return(K){return U(),Promise.resolve({done:!0,value:K})},throw(K){return U(),Promise.reject(K)}}};I$.prototype.openReadStream=function($,I,U){var Y=this,J=0,Q=$.compressedSize;if(U==null)U=I,I=null;if(I==null)I={};else{if(I.decodeFileData===!1){if(I.decrypt!=null)throw Error("cannot use options.decrypt when options.decodeFileData === false");if(I.decompress!=null)throw Error("cannot use options.decompress when options.decodeFileData === false")}else{if(I.decrypt!=null){if(!$.isEncrypted())throw Error("options.decrypt can only be specified for encrypted entries. See also option decodeFileData.");if(I.decrypt!==!1)throw Error("invalid options.decrypt value: "+I.decrypt);if($.isCompressed()){if(I.decompress!==!1)throw Error("entry is encrypted and compressed, and options.decompress !== false. See also option decodeFileData.")}}if(I.decompress!=null){if(!$.isCompressed())throw Error("options.decompress can only be specified for compressed entries. See also option decodeFileData.");if(!(I.decompress===!1||I.decompress===!0))throw Error("invalid options.decompress value: "+I.decompress);q=I.decompress}}if(I.start!=null){if(J=I.start,J<0)throw Error("options.start < 0");if(J>$.compressedSize)throw Error("options.start > entry.compressedSize")}if(I.end!=null){if(Q=I.end,Q<0)throw Error("options.end < 0");if(Q>$.compressedSize)throw Error("options.end > entry.compressedSize");if(QY.fileSize)return U(Error("file data overflows file bounds: "+G+" + "+$.compressedSize+" > "+Y.fileSize));if(I.minimal)return U(null,{fileDataStart:G});var W=new TV0;W.fileDataStart=G,W.versionNeededToExtract=J.readUInt16LE(4),W.generalPurposeBitFlag=J.readUInt16LE(6),W.compressionMethod=J.readUInt16LE(8),W.lastModFileTime=J.readUInt16LE(10),W.lastModFileDate=J.readUInt16LE(12),W.crc32=J.readUInt32LE(14),W.compressedSize=J.readUInt32LE(18),W.uncompressedSize=J.readUInt32LE(22),W.fileNameLength=q,W.extraFieldLength=H,J=c5(q+H),Y.reader.ref(),BJ(Y.reader,J,0,J.length,$.relativeOffsetOfLocalHeader+30,function(w){try{if(w)return U(w);return W.fileName=J.subarray(0,q),W.extraField=J.subarray(q),U(null,W)}finally{Y.reader.unref()}})}finally{Y.reader.unref()}})};I$.prototype.openReadStreamPromise=function($,I){return new Promise((U,Y)=>{this.openReadStream($,I,function(J,Q){if(J)return Y(J);U(Q)})})};I$.prototype.openReadStreamLowLevelPromise=function($,I,U,Y,J,Q){return new Promise((K,q)=>{this.openReadStream($,I,U,Y,J,Q,function(H,G){if(H)return q(H);K(G)})})};I$.prototype.readLocalFileHeaderPromise=function($,I){return new Promise((U,Y)=>{this.readLocalFileHeader($,I,function(J,Q){if(J)return Y(J);U(Q)})})};function vJ(){}vJ.prototype.getLastModDate=function($){if($==null)$={};if(!$.forceDosFormat)for(var I=0;I>5&15)-1,Q=($>>9&127)+1980,K=0,q=(I&31)*2,H=I>>5&63,G=I>>11&31;if(U==null||U==="local")return new Date(Q,J,Y,G,H,q,K);else if(U==="UTC")return new Date(Date.UTC(Q,J,Y,G,H,q,K));else throw Error("unrecognized options.timezone: "+options.timezone)}function BV0($,I,U,Y){var J=null;for(var Q=0;Q$.length)throw Error("extra field length exceeds extra field buffer size");var q=$.subarray(Q,K);I.push({id:Y,data:q}),U=K}return I}function BJ($,I,U,Y,J,Q){if(Y===0)return setImmediate(function(){Q(null,c5(0))});$.read(I,U,Y,J,function(K,q){if(K)return Q(K);if(qthis.expectedByteCount){var Y="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return U(Error(Y))}U(null,$)};WH.prototype._flush=function($){if(this.actualByteCount0)return;if($.refCount<0)throw Error("invalid unref");$.close(I);function I(U){if(U)return $.emit("error",U);$.emit("close")}};M7.prototype.createReadStream=function($){if($==null)$={};var{start:I,end:U}=$;if(I===U){var Y=new gh;return setImmediate(function(){Y.end()}),Y}var J=this._readStreamForRange(I,U),Q=!1,K=new HD(this);J.on("error",function(H){setImmediate(function(){if(!Q)K.emit("error",H)})}),Sh(K,function(){J.unpipe(K),K.unref(),J.destroy()});var q=new WH(U-I);return K.on("error",function(H){setImmediate(function(){if(!Q)q.emit("error",H)})}),Sh(q,function(){Q=!0,K.unpipe(q),K.destroy()}),J.pipe(K).pipe(q)};M7.prototype._readStreamForRange=function($,I){throw Error("not implemented")};M7.prototype.read=function($,I,U,Y,J){var Q=this.createReadStream({start:Y,end:Y+U}),K=new eK1,q=0;K._write=function(H,G,W){H.copy($,I+q,0,H.length),q+=H.length,W()},K.on("finish",J),Q.on("error",function(H){J(H)}),Q.pipe(K)};M7.prototype.close=function($){setImmediate($)};QD.inherits(HD,gh);function HD($){gh.call(this),this.context=$,this.context.ref(),this.unreffedYet=!1}HD.prototype._flush=function($){this.unref(),$()};HD.prototype.unref=function($){if(this.unreffedYet)return;this.unreffedYet=!0,this.context.unref()};var Qq1="\x00☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function YD($,I){if(I)return $.toString("utf8");else{var U="";for(var Y=0;Y<$.length;Y++)U+=Qq1[$[Y]];return U}}function EJ($,I){var U=$.readUInt32LE(I),Y=$.readUInt32LE(I+4);return Y*4294967296+U}var c5;if(typeof Buffer.allocUnsafe==="function")c5=function($){return Buffer.allocUnsafe($)};else c5=function($){return new Buffer($)};function Sh($,I){if(typeof $.destroy==="function")$._destroy=function(U,Y){if(I(),Y!=null)Y(U)};else $.destroy=I}function JD($){if($)throw $}});var d5=O((bS1,CV0)=>{var GD=t("buffer"),RJ=GD.Buffer,n$={},p$;for(p$ in GD){if(!GD.hasOwnProperty(p$))continue;if(p$==="SlowBuffer"||p$==="Buffer")continue;n$[p$]=GD[p$]}var jJ=n$.Buffer={};for(p$ in RJ){if(!RJ.hasOwnProperty(p$))continue;if(p$==="allocUnsafe"||p$==="allocUnsafeSlow")continue;jJ[p$]=RJ[p$]}n$.Buffer.prototype=RJ.prototype;if(!jJ.from||jJ.from===Uint8Array.from)jJ.from=function($,I,U){if(typeof $==="number")throw TypeError('The "value" argument must not be of type number. Received type '+typeof $);if($&&typeof $.length>"u")throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);return RJ($,I,U)};if(!jJ.alloc)jJ.alloc=function($,I,U){if(typeof $!=="number")throw TypeError('The "size" argument must be of type number. Received type '+typeof $);if($<0||$>=2147483648)throw RangeError('The value "'+$+'" is invalid for option "size"');var Y=RJ($);if(!I||I.length===0)Y.fill(0);else if(typeof U==="string")Y.fill(I,U);else Y.fill(I);return Y};if(!n$.kStringMaxLength)try{n$.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch($){}if(!n$.constants){if(n$.constants={MAX_LENGTH:n$.kMaxLength},n$.kStringMaxLength)n$.constants.MAX_STRING_LENGTH=n$.kStringMaxLength}CV0.exports=n$});var SV0=O((Pq1)=>{var _V0="\uFEFF";Pq1.PrependBOM=hh;function hh($,I){this.encoder=$,this.addBOM=!0}hh.prototype.write=function($){if(this.addBOM)$=_V0+$,this.addBOM=!1;return this.encoder.write($)};hh.prototype.end=function(){return this.encoder.end()};Pq1.StripBOM=uh;function uh($,I){this.decoder=$,this.pass=!1,this.options=I||{}}uh.prototype.write=function($){var I=this.decoder.write($);if(this.pass||!I)return I;if(I[0]===_V0){if(I=I.slice(1),typeof this.options.stripBOM==="function")this.options.stripBOM()}return this.pass=!0,I};uh.prototype.end=function(){return this.decoder.end()}});var kh=O((pS1,gV0)=>{var Bq1=typeof Object.hasOwn>"u"?Function.call.bind(Object.prototype.hasOwnProperty):Object.hasOwn;function vq1($,I){for(var U in I)if(Bq1(I,U))$[U]=I[U]}gV0.exports=vq1});var hV0=O((cS1,yV0)=>{var m5=d5().Buffer;yV0.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:xh};function xh($,I){if(this.enc=$.encodingName,this.bomAware=$.bomAware,this.enc==="base64")this.encoder=bh;else if(this.enc==="utf8")this.encoder=ch;else if(this.enc==="cesu8"){if(this.enc="utf8",this.encoder=nh,m5.from("eda0bdedb2a9","hex").toString()!=="\uD83D\uDCA9")this.decoder=ph,this.defaultCharUnicode=I.defaultCharUnicode}}xh.prototype.encoder=ih;xh.prototype.decoder=fh;var Rq1=t("string_decoder").StringDecoder;function fh($,I){this.decoder=new Rq1(I.enc)}fh.prototype.write=function($){if(!m5.isBuffer($))$=m5.from($);return this.decoder.write($)};fh.prototype.end=function(){return this.decoder.end()};function ih($,I){this.enc=I.enc}ih.prototype.write=function($){return m5.from($,this.enc)};ih.prototype.end=function(){};function bh($,I){this.prevStr=""}bh.prototype.write=function($){$=this.prevStr+$;var I=$.length-$.length%4;return this.prevStr=$.slice(I),$=$.slice(0,I),m5.from($,"base64")};bh.prototype.end=function(){return m5.from(this.prevStr,"base64")};function nh($,I){}nh.prototype.write=function($){var I=m5.alloc($.length*3),U=0;for(var Y=0;Y<$.length;Y++){var J=$.charCodeAt(Y);if(J<128)I[U++]=J;else if(J<2048)I[U++]=192+(J>>>6),I[U++]=128+(J&63);else I[U++]=224+(J>>>12),I[U++]=128+(J>>>6&63),I[U++]=128+(J&63)}return I.slice(0,U)};nh.prototype.end=function(){};function ph($,I){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=I.defaultCharUnicode}ph.prototype.write=function($){var I=this.acc,U=this.contBytes,Y=this.accBytes,J="";for(var Q=0;Q<$.length;Q++){var K=$[Q];if((K&192)!==128){if(U>0)J+=this.defaultCharUnicode,U=0;if(K<128)J+=String.fromCharCode(K);else if(K<224)I=K&31,U=1,Y=1;else if(K<240)I=K&15,U=2,Y=1;else J+=this.defaultCharUnicode}else if(U>0){if(I=I<<6|K&63,U--,Y++,U===0)if(Y===2&&I<128&&I>0)J+=this.defaultCharUnicode;else if(Y===3&&I<2048)J+=this.defaultCharUnicode;else J+=String.fromCharCode(I)}else J+=this.defaultCharUnicode}return this.acc=I,this.contBytes=U,this.accBytes=Y,J};ph.prototype.end=function(){var $=0;if(this.contBytes>0)$+=this.defaultCharUnicode;return $};function ch($,I){this.highSurrogate=""}ch.prototype.write=function($){if(this.highSurrogate)$=this.highSurrogate+$,this.highSurrogate="";if($.length>0){var I=$.charCodeAt($.length-1);if(I>=55296&&I<56320)this.highSurrogate=$[$.length-1],$=$.slice(0,$.length-1)}return m5.from($,this.enc)};ch.prototype.end=function(){if(this.highSurrogate){var $=this.highSurrogate;return this.highSurrogate="",m5.from($,this.enc)}}});var xV0=O((jq1)=>{var WD=d5().Buffer;jq1._utf32=dh;function dh($,I){this.iconv=I,this.bomAware=!0,this.isLE=$.isLE}jq1.utf32le={type:"_utf32",isLE:!0};jq1.utf32be={type:"_utf32",isLE:!1};jq1.ucs4le="utf32le";jq1.ucs4be="utf32be";dh.prototype.encoder=mh;dh.prototype.decoder=lh;function mh($,I){this.isLE=I.isLE,this.highSurrogate=0}mh.prototype.write=function($){var I=WD.from($,"ucs2"),U=WD.alloc(I.length*2+4),Y=this.isLE?U.writeUInt32LE:U.writeUInt32BE,J=0;for(var Q=0;Q=55296&&K<56320,H=K>=56320&&K<57344;if(this.highSurrogate)if(q||!H)Y.call(U,this.highSurrogate,J),J+=4;else{var G=(this.highSurrogate-55296<<10|K-56320)+65536;Y.call(U,G,J),J+=4,this.highSurrogate=0;continue}if(q)this.highSurrogate=K;else Y.call(U,K,J),J+=4,this.highSurrogate=0}if(J0){for(;I<$.length&&K.length<4;I++)K.push($[I]);if(K.length===4){if(Q)U=K[0]|K[1]<<8|K[2]<<16|K[3]<<24;else U=K[3]|K[2]<<8|K[1]<<16|K[0]<<24;K.length=0,J=uV0(Y,J,U,q)}}for(;I<$.length-3;I+=4){if(Q)U=$[I]|$[I+1]<<8|$[I+2]<<16|$[I+3]<<24;else U=$[I+3]|$[I+2]<<8|$[I+1]<<16|$[I]<<24;J=uV0(Y,J,U,q)}for(;I<$.length;I++)K.push($[I]);return Y.slice(0,J).toString("ucs2")};function uV0($,I,U,Y){if(U<0||U>1114111)U=Y;if(U>=65536){U-=65536;var J=55296|U>>10;$[I++]=J&255,$[I++]=J>>8;var U=56320|U&1023}return $[I++]=U&255,$[I++]=U>>8,I}lh.prototype.end=function(){if(this.overflow.length===0)return;return this.overflow.length=0,String.fromCharCode(this.badChar)};jq1.utf32=oh;jq1.ucs4="utf32";function oh($,I){this.iconv=I}oh.prototype.encoder=rh;oh.prototype.decoder=th;function rh($,I){if($=$||{},$.addBOM===void 0)$.addBOM=!0;this.encoder=I.iconv.getEncoder($.defaultEncoding||"utf-32le",$)}rh.prototype.write=function($){return this.encoder.write($)};rh.prototype.end=function(){return this.encoder.end()};function th($,I){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=$||{},this.iconv=I.iconv}th.prototype.write=function($){if(!this.decoder){if(this.initialBufs.push($),this.initialBufsLen+=$.length,this.initialBufsLen<32)return"";var I=kV0(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(I,this.options);var U="";for(var Y=0;Y16)Q++;if(U[3]!==0||U[2]>16)J++;if(U[0]===0&&U[1]===0&&(U[2]!==0||U[3]!==0))q++;if((U[0]!==0||U[1]!==0)&&U[2]===0&&U[3]===0)K++;if(U.length=0,Y++,Y>=100)break $}}if(q-Q>K-J)return"utf-32be";if(q-Q{var fV0=d5().Buffer;kq1.utf16be=wD;function wD(){}wD.prototype.encoder=ah;wD.prototype.decoder=sh;wD.prototype.bomAware=!0;function ah(){}ah.prototype.write=function($){var I=fV0.from($,"ucs2");for(var U=0;U=100)break $}}if(Q>J)return"utf-16be";if(Q{var t8=d5().Buffer;pq1.utf7=VD;pq1.unicode11utf7="utf7";function VD($,I){this.iconv=I}VD.prototype.encoder=Yu;VD.prototype.decoder=Ju;VD.prototype.bomAware=!0;var iq1=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Yu($,I){this.iconv=I.iconv}Yu.prototype.write=function($){return t8.from($.replace(iq1,function(I){return"+"+(I==="+"?"":this.iconv.encode(I,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Yu.prototype.end=function(){};function Ju($,I){this.iconv=I.iconv,this.inBase64=!1,this.base64Accum=""}var bq1=/[A-Za-z0-9\/+]/,Qu=[];for(CJ=0;CJ<256;CJ++)Qu[CJ]=bq1.test(String.fromCharCode(CJ));var CJ,nq1=43,qI=45,Uu=38;Ju.prototype.write=function($){var I="",U=0,Y=this.inBase64,J=this.base64Accum;for(var Q=0;Q<$.length;Q++)if(!Y){if($[Q]==nq1)I+=this.iconv.decode($.slice(U,Q),"ascii"),U=Q+1,Y=!0}else if(!Qu[$[Q]]){if(Q==U&&$[Q]==qI)I+="+";else{var K=J+this.iconv.decode($.slice(U,Q),"ascii");I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}if($[Q]!=qI)Q--;U=Q+1,Y=!1,J=""}if(!Y)I+=this.iconv.decode($.slice(U),"ascii");else{var K=J+this.iconv.decode($.slice(U),"ascii"),q=K.length-K.length%8;J=K.slice(q),K=K.slice(0,q),I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}return this.inBase64=Y,this.base64Accum=J,I};Ju.prototype.end=function(){var $="";if(this.inBase64&&this.base64Accum.length>0)$=this.iconv.decode(t8.from(this.base64Accum,"base64"),"utf16-be");return this.inBase64=!1,this.base64Accum="",$};pq1.utf7imap=ZD;function ZD($,I){this.iconv=I}ZD.prototype.encoder=Ku;ZD.prototype.decoder=qu;ZD.prototype.bomAware=!0;function Ku($,I){this.iconv=I.iconv,this.inBase64=!1,this.base64Accum=t8.alloc(6),this.base64AccumIdx=0}Ku.prototype.write=function($){var I=this.inBase64,U=this.base64Accum,Y=this.base64AccumIdx,J=t8.alloc($.length*5+10),Q=0;for(var K=0;K<$.length;K++){var q=$.charCodeAt(K);if(q>=32&&q<=126){if(I){if(Y>0)Q+=J.write(U.slice(0,Y).toString("base64").replace(/\//g,",").replace(/=+$/,""),Q),Y=0;J[Q++]=qI,I=!1}if(!I){if(J[Q++]=q,q===Uu)J[Q++]=qI}}else{if(!I)J[Q++]=Uu,I=!0;if(I){if(U[Y++]=q>>8,U[Y++]=q&255,Y==U.length)Q+=J.write(U.toString("base64").replace(/\//g,","),Q),Y=0}}}return this.inBase64=I,this.base64AccumIdx=Y,J.slice(0,Q)};Ku.prototype.end=function(){var $=t8.alloc(10),I=0;if(this.inBase64){if(this.base64AccumIdx>0)I+=$.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),I),this.base64AccumIdx=0;$[I++]=qI,this.inBase64=!1}return $.slice(0,I)};function qu($,I){this.iconv=I.iconv,this.inBase64=!1,this.base64Accum=""}var nV0=Qu.slice();nV0[44]=!0;qu.prototype.write=function($){var I="",U=0,Y=this.inBase64,J=this.base64Accum;for(var Q=0;Q<$.length;Q++)if(!Y){if($[Q]==Uu)I+=this.iconv.decode($.slice(U,Q),"ascii"),U=Q+1,Y=!0}else if(!nV0[$[Q]]){if(Q==U&&$[Q]==qI)I+="&";else{var K=J+this.iconv.decode($.slice(U,Q),"ascii").replace(/,/g,"/");I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}if($[Q]!=qI)Q--;U=Q+1,Y=!1,J=""}if(!Y)I+=this.iconv.decode($.slice(U),"ascii");else{var K=J+this.iconv.decode($.slice(U),"ascii").replace(/,/g,"/"),q=K.length-K.length%8;J=K.slice(q),K=K.slice(0,q),I+=this.iconv.decode(t8.from(K,"base64"),"utf16-be")}return this.inBase64=Y,this.base64Accum=J,I};qu.prototype.end=function(){var $="";if(this.inBase64&&this.base64Accum.length>0)$=this.iconv.decode(t8.from(this.base64Accum,"base64"),"utf16-be");return this.inBase64=!1,this.base64Accum="",$}});var cV0=O((lq1)=>{var zD=d5().Buffer;lq1._sbcs=Hu;function Hu($,I){if(!$)throw Error("SBCS codec is called without the data.");if(!$.chars||$.chars.length!==128&&$.chars.length!==256)throw Error("Encoding '"+$.type+"' has incorrect 'chars' (must be of len 128 or 256)");if($.chars.length===128){var U="";for(var Y=0;Y<128;Y++)U+=String.fromCharCode(Y);$.chars=U+$.chars}this.decodeBuf=zD.from($.chars,"ucs2");var J=zD.alloc(65536,I.defaultCharSingleByte.charCodeAt(0));for(var Y=0;Y<$.chars.length;Y++)J[$.chars.charCodeAt(Y)]=Y;this.encodeBuf=J}Hu.prototype.encoder=Gu;Hu.prototype.decoder=Wu;function Gu($,I){this.encodeBuf=I.encodeBuf}Gu.prototype.write=function($){var I=zD.alloc($.length);for(var U=0;U<$.length;U++)I[U]=this.encodeBuf[$.charCodeAt(U)];return I};Gu.prototype.end=function(){};function Wu($,I){this.decodeBuf=I.decodeBuf}Wu.prototype.write=function($){var I=this.decodeBuf,U=zD.alloc($.length*2),Y=0,J=0;for(var Q=0;Q<$.length;Q++)Y=$[Q]*2,J=Q*2,U[J]=I[Y],U[J+1]=I[Y+1];return U.toString("ucs2")};Wu.prototype.end=function(){}});var mV0=O((rS1,dV0)=>{dV0.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},cp720:{type:"_sbcs",chars:"€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■ "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",iso88598i:"iso88598",iso88598e:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var oV0=O((tS1,lV0)=>{lV0.exports={"437":"cp437","737":"cp737","775":"cp775","850":"cp850","852":"cp852","855":"cp855","856":"cp856","857":"cp857","858":"cp858","860":"cp860","861":"cp861","862":"cp862","863":"cp863","864":"cp864","865":"cp865","866":"cp866","869":"cp869","874":"windows874","922":"cp922","1046":"cp1046","1124":"cp1124","1125":"cp1125","1129":"cp1129","1133":"cp1133","1161":"cp1161","1162":"cp1162","1163":"cp1163","1250":"windows1250","1251":"windows1251","1252":"windows1252","1253":"windows1253","1254":"windows1254","1255":"windows1255","1256":"windows1256","1257":"windows1257","1258":"windows1258","28591":"iso88591","28592":"iso88592","28593":"iso88593","28594":"iso88594","28595":"iso88595","28596":"iso88596","28597":"iso88597","28598":"iso88598","28599":"iso88599","28600":"iso885910","28601":"iso885911","28603":"iso885913","28604":"iso885914","28605":"iso885915","28606":"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b \v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:`\x00ÚỤ\x03ỪỬỮ\x07\b \v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:`\x00\x01Ẳ\x03\x04ẴẪ\x07\b \v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`},iso646cn:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b \v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},iso646jp:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b -\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}});var tV0=O((rq1)=>{var Gu=d5().Buffer;rq1._dbcs=l5;var w6=-1,rV0=-2,c$=-10,x6=-1000,jJ=Array(256),VH=-1;for(wH=0;wH<256;wH++)jJ[wH]=w6;var wH;function l5($,I){if(this.encodingName=$.encodingName,!$)throw Error("DBCS codec is called without the data.");if(!$.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var U=$.table();this.decodeTables=[],this.decodeTables[0]=jJ.slice(0),this.decodeTableSeq=[];for(var Y=0;Yx6)throw Error("gb18030 decode tables conflict at byte 2");var G=this.decodeTables[x6-q[H]];for(var W=129;W<=254;W++){if(G[W]===w6)G[W]=x6-Q;else if(G[W]===x6-Q)continue;else if(G[W]>x6)throw Error("gb18030 decode tables conflict at byte 3");var w=this.decodeTables[x6-G[W]];for(var Z=48;Z<=57;Z++)if(w[Z]===w6)w[Z]=rV0}}}}this.defaultCharUnicode=I.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var V={};if($.encodeSkipVals)for(var Y=0;Y<$.encodeSkipVals.length;Y++){var X=$.encodeSkipVals[Y];if(typeof X==="number")V[X]=!0;else for(var H=X.from;H<=X.to;H++)V[H]=!0}if(this._fillEncodeTable(0,0,V),$.encodeAdd){for(var L in $.encodeAdd)if(Object.prototype.hasOwnProperty.call($.encodeAdd,L))this._setEncodeChar(L.charCodeAt(0),$.encodeAdd[L])}if(this.defCharSB=this.encodeTable[0][I.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===w6)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===w6)this.defCharSB=63}l5.prototype.encoder=zD;l5.prototype.decoder=Wu;l5.prototype._getDecodeTrieNode=function($){var I=[];for(;$>0;$>>>=8)I.push($&255);if(I.length==0)I.push(0);var U=this.decodeTables[0];for(var Y=I.length-1;Y>0;Y--){var J=U[I[Y]];if(J==w6)U[I[Y]]=x6-this.decodeTables.length,this.decodeTables.push(U=jJ.slice(0));else if(J<=x6)U=this.decodeTables[x6-J];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+$.toString(16))}return U};l5.prototype._addDecodeChunk=function($){var I=parseInt($[0],16),U=this._getDecodeTrieNode(I);I=I&255;for(var Y=1;Y<$.length;Y++){var J=$[Y];if(typeof J==="string")for(var Q=0;Q=55296&&K<56320){var q=J.charCodeAt(Q++);if(q>=56320&&q<57344)U[I++]=65536+(K-55296)*1024+(q-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+$[0])}else if(K>4080&&K<=4095){var H=4095-K+2,G=[];for(var W=0;W255)throw Error("Incorrect chunk in "+this.encodingName+" at addr "+$[0]+": too long"+I)};l5.prototype._getEncodeBucket=function($){var I=$>>8;if(this.encodeTable[I]===void 0)this.encodeTable[I]=jJ.slice(0);return this.encodeTable[I]};l5.prototype._setEncodeChar=function($,I){var U=this._getEncodeBucket($),Y=$&255;if(U[Y]<=c$)this.encodeTableSeq[c$-U[Y]][VH]=I;else if(U[Y]==w6)U[Y]=I};l5.prototype._setEncodeSequence=function($,I){var U=$[0],Y=this._getEncodeBucket(U),J=U&255,Q;if(Y[J]<=c$)Q=this.encodeTableSeq[c$-Y[J]];else{if(Q={},Y[J]!==w6)Q[VH]=Y[J];Y[J]=c$-this.encodeTableSeq.length,this.encodeTableSeq.push(Q)}for(var K=1;K<$.length-1;K++){var q=Q[U];if(typeof q==="object")Q=q;else if(Q=Q[U]={},q!==void 0)Q[VH]=q}U=$[$.length-1],Q[U]=I};l5.prototype._fillEncodeTable=function($,I,U){var Y=this.decodeTables[$],J=!1,Q={};for(var K=0;K<256;K++){var q=Y[K],H=I+K;if(U[H])continue;if(q>=0)this._setEncodeChar(q,H),J=!0;else if(q<=x6){var G=x6-q;if(!Q[G]){var W=H<<8>>>0;if(this._fillEncodeTable(G,W,U))J=!0;else Q[G]=!0}}else if(q<=c$)this._setEncodeSequence(this.decodeTableSeq[c$-q],H),J=!0}return J};function zD($,I){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=I.encodeTable,this.encodeTableSeq=I.encodeTableSeq,this.defaultCharSingleByte=I.defCharSB,this.gb18030=I.gb18030}zD.prototype.write=function($){var I=Gu.alloc($.length*(this.gb18030?4:3)),U=this.leadSurrogate,Y=this.seqObj,J=-1,Q=0,K=0;while(!0){if(J===-1){if(Q==$.length)break;var q=$.charCodeAt(Q++)}else{var q=J;J=-1}if(q>=55296&&q<57344)if(q<56320)if(U===-1){U=q;continue}else U=q,q=w6;else if(U!==-1)q=65536+(U-55296)*1024+(q-56320),U=-1;else q=w6;else if(U!==-1)J=q,q=w6,U=-1;var H=w6;if(Y!==void 0&&q!=w6){var G=Y[q];if(typeof G==="object"){Y=G;continue}else if(typeof G==="number")H=G;else if(G==null){if(G=Y[VH],G!==void 0)H=G,J=q}Y=void 0}else if(q>=0){var W=this.encodeTable[q>>8];if(W!==void 0)H=W[q&255];if(H<=c$){Y=this.encodeTableSeq[c$-H];continue}if(H==w6&&this.gb18030){var w=wu(this.gb18030.uChars,q);if(w!=-1){var H=this.gb18030.gbChars[w]+(q-this.gb18030.uChars[w]);I[K++]=129+Math.floor(H/12600),H=H%12600,I[K++]=48+Math.floor(H/1260),H=H%1260,I[K++]=129+Math.floor(H/10),H=H%10,I[K++]=48+H;continue}}}if(H===w6)H=this.defaultCharSingleByte;if(H<256)I[K++]=H;else if(H<65536)I[K++]=H>>8,I[K++]=H&255;else if(H<16777216)I[K++]=H>>16,I[K++]=H>>8&255,I[K++]=H&255;else I[K++]=H>>>24,I[K++]=H>>>16&255,I[K++]=H>>>8&255,I[K++]=H&255}return this.seqObj=Y,this.leadSurrogate=U,I.slice(0,K)};zD.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===void 0)return;var $=Gu.alloc(10),I=0;if(this.seqObj){var U=this.seqObj[VH];if(U!==void 0)if(U<256)$[I++]=U;else $[I++]=U>>8,$[I++]=U&255;this.seqObj=void 0}if(this.leadSurrogate!==-1)$[I++]=this.defaultCharSingleByte,this.leadSurrogate=-1;return $.slice(0,I)};zD.prototype.findIdx=wu;function Wu($,I){this.nodeIdx=0,this.prevBytes=[],this.decodeTables=I.decodeTables,this.decodeTableSeq=I.decodeTableSeq,this.defaultCharUnicode=I.defaultCharUnicode,this.gb18030=I.gb18030}Wu.prototype.write=function($){var I=Gu.alloc($.length*2),U=this.nodeIdx,Y=this.prevBytes,J=this.prevBytes.length,Q=-this.prevBytes.length,K;for(var q=0,H=0;q<$.length;q++){var G=q>=0?$[q]:Y[q+J],K=this.decodeTables[U][G];if(K>=0);else if(K===w6)K=this.defaultCharUnicode.charCodeAt(0),q=Q;else if(K===rV0){if(q>=3)var W=($[q-3]-129)*12600+($[q-2]-48)*1260+($[q-1]-129)*10+(G-48);else var W=(Y[q-3+J]-129)*12600+((q-2>=0?$[q-2]:Y[q-2+J])-48)*1260+((q-1>=0?$[q-1]:Y[q-1+J])-129)*10+(G-48);var w=wu(this.gb18030.gbChars,W);K=this.gb18030.uChars[w]+W-this.gb18030.gbChars[w]}else if(K<=x6){U=x6-K;continue}else if(K<=c$){var Z=this.decodeTableSeq[c$-K];for(var V=0;V>8;K=Z[Z.length-1]}else throw Error("iconv-lite internal error: invalid decoding table value "+K+" at "+U+"/"+G);if(K>=65536){K-=65536;var X=55296|K>>10;I[H++]=X&255,I[H++]=X>>8,K=56320|K&1023}I[H++]=K&255,I[H++]=K>>8,U=0,Q=q+1}return this.nodeIdx=U,this.prevBytes=Q>=0?Array.prototype.slice.call($,Q):Y.slice(Q+J).concat(Array.prototype.slice.call($)),I.slice(0,H).toString("ucs2")};Wu.prototype.end=function(){var $="";while(this.prevBytes.length>0){$+=this.defaultCharUnicode;var I=this.prevBytes.slice(1);if(this.prevBytes=[],this.nodeIdx=0,I.length>0)$+=this.write(I)}return this.prevBytes=[],this.nodeIdx=0,$};function wu($,I){if($[0]>I)return-1;var U=0,Y=$.length;while(U>1);if($[J]<=I)U=J;else Y=J}return U}});var aV0=O((aS1,aq1)=>{aq1.exports=[["0","\x00",128],["a1","。",62],["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],["81b8","∈∋⊆⊇⊂⊃∪∩"],["81c8","∧∨¬⇒⇔∀∃"],["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["81f0","ʼn♯♭♪†‡¶"],["81fc","◯"],["824f","0",9],["8260","A",25],["8281","a",25],["829f","ぁ",82],["8340","ァ",62],["8380","ム",22],["839f","Α",16,"Σ",6],["83bf","α",16,"σ",6],["8440","А",5,"ЁЖ",25],["8470","а",5,"ёж",7],["8480","о",17],["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["8740","①",19,"Ⅰ",9],["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["877e","㍻"],["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["eeef","ⅰ",9,"¬¦'""],["f040","",62],["f080","",124],["f140","",62],["f180","",124],["f240","",62],["f280","",124],["f340","",62],["f380","",124],["f440","",62],["f480","",124],["f540","",62],["f580","",124],["f640","",62],["f680","",124],["f740","",62],["f780","",124],["f840","",62],["f880","",124],["f940",""],["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]]});var sV0=O((sS1,sq1)=>{sq1.exports=[["0","\x00",127],["8ea1","。",62],["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],["a2a1","◆□■△▲▽▼※〒→←↑↓〓"],["a2ba","∈∋⊆⊇⊂⊃∪∩"],["a2ca","∧∨¬⇒⇔∀∃"],["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["a2f2","ʼn♯♭♪†‡¶"],["a2fe","◯"],["a3b0","0",9],["a3c1","A",25],["a3e1","a",25],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["ada1","①",19,"Ⅰ",9],["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],["f4a1","堯槇遙瑤凜熙"],["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["fcf1","ⅰ",9,"¬¦'""],["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"],["8fa2c2","¡¦¿"],["8fa2eb","ºª©®™¤№"],["8fa6e1","ΆΈΉΊΪ"],["8fa6e7","Ό"],["8fa6e9","ΎΫ"],["8fa6ec","Ώ"],["8fa6f1","άέήίϊΐόςύϋΰώ"],["8fa7c2","Ђ",10,"ЎЏ"],["8fa7f2","ђ",10,"ўџ"],["8fa9a1","ÆĐ"],["8fa9a4","Ħ"],["8fa9a6","IJ"],["8fa9a8","ŁĿ"],["8fa9ab","ŊØŒ"],["8fa9af","ŦÞ"],["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"],["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],["8fabbd","ġĥíìïîǐ"],["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"],["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5],["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"],["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4],["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]]});var XD=O((eS1,eq1)=>{eq1.exports=[["0","\x00",127,"€"],["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11],["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"],["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"],["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5],["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"],["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"],["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"],["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"],["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4],["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6],["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7],["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"],["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5],["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"],["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6],["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4],["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4],["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"],["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"],["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6],["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6],["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"],["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"],["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"],["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"],["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"],["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8],["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"],["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"],["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"],["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"],["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5],["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"],["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"],["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5],["9980","檧檨檪檭",114,"欥欦欨",6],["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"],["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"],["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"],["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5],["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"],["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"],["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6],["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"],["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"],["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4],["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19],["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],["a2a1","ⅰ",9],["a2b1","⒈",19,"⑴",19,"①",9],["a2e5","㈠",9],["a2f1","Ⅰ",11],["a3a1","!"#¥%",88," ̄"],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],["a6ee","︻︼︷︸︱"],["a6f4","︳︴"],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6],["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],["a8bd","ńň"],["a8c0","ɡ"],["a8c5","ㄅ",36],["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],["a959","℡㈱"],["a95c","‐"],["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8],["a980","﹢",4,"﹨﹩﹪﹫"],["a996","〇"],["a9a4","─",75],["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8],["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"],["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4],["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4],["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11],["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"],["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12],["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"],["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"],["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"],["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4],["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9],["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"],["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"],["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16],["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"],["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"],["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"],["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],["bb40","籃",9,"籎",36,"籵",5,"籾",9],["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5],["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],["bd40","紷",54,"絯",7],["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],["be40","継",12,"綧",6,"綯",42],["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],["bf40","緻",62],["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],["c040","繞",35,"纃",23,"纜纝纞"],["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"],["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"],["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"],["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"],["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"],["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10],["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"],["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"],["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"],["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9],["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"],["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5],["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"],["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6],["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],["d440","訞",31,"訿",8,"詉",21],["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],["d540","誁",7,"誋",7,"誔",46],["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],["d640","諤",34,"謈",27],["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],["d740","譆",31,"譧",4,"譭",25],["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"],["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],["d940","貮",62],["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"],["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"],["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7],["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],["dd40","軥",62],["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"],["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"],["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"],["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],["e240","釦",62],["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],["e340","鉆",45,"鉵",16],["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],["e440","銨",5,"銯",24,"鋉",31],["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],["e540","錊",51,"錿",10],["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],["e640","鍬",34,"鎐",27],["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],["e740","鏎",7,"鏗",54],["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"],["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42],["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"],["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7],["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46],["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],["ee40","頏",62],["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4],["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],["f040","餈",4,"餎餏餑",28,"餯",26],["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],["f140","馌馎馚",10,"馦馧馩",47],["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],["f240","駺",62],["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"],["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5],["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],["f540","魼",62],["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],["f640","鯜",62],["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],["f740","鰼",62],["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],["f840","鳣",62],["f880","鴢",32],["f940","鵃",62],["f980","鶂",32],["fa40","鶣",62],["fa80","鷢",32],["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"],["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"],["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6],["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"],["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38],["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"],["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]]});var Vu=O(($g1,$H1)=>{$H1.exports=[["a140","",62],["a180","",32],["a240","",62],["a280","",32],["a2ab","",5],["a2e3","€"],["a2ef",""],["a2fd",""],["a340","",62],["a380","",31," "],["a440","",62],["a480","",32],["a4f4","",10],["a540","",62],["a580","",32],["a5f7","",7],["a640","",62],["a680","",32],["a6b9","",7],["a6d9","",6],["a6ec",""],["a6f3",""],["a6f6","",8],["a740","",62],["a780","",32],["a7c2","",14],["a7f2","",12],["a896","",10],["a8bc","ḿ"],["a8bf","ǹ"],["a8c1",""],["a8ea","",20],["a958",""],["a95b",""],["a95d",""],["a989","〾⿰",11],["a997","",12],["a9f0","",14],["aaa1","",93],["aba1","",93],["aca1","",93],["ada1","",93],["aea1","",93],["afa1","",93],["d7fa","",4],["f8a1","",93],["f9a1","",93],["faa1","",93],["fba1","",93],["fca1","",93],["fda1","",93],["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93],["8135f437",""]]});var eV0=O((Ig1,IH1)=>{IH1.exports={uChars:[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],gbChars:[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]}});var $Z0=O((Ug1,UH1)=>{UH1.exports=[["0","\x00",127],["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"],["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5],["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"],["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18],["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7],["8361","긝",18,"긲긳긵긶긹긻긼"],["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8],["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8],["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18],["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"],["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4],["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"],["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"],["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"],["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10],["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"],["8741","놞",9,"놩",15],["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"],["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4],["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4],["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"],["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"],["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"],["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15],["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"],["8a61","둧",4,"둭",18,"뒁뒂"],["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"],["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"],["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8],["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18],["8c41","똀",15,"똒똓똕똖똗똙",4],["8c61","똞",6,"똦",5,"똭",6,"똵",5],["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16],["8d41","뛃",16,"뛕",8],["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"],["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"],["8e41","랟랡",6,"랪랮",5,"랶랷랹",8],["8e61","럂",4,"럈럊",19],["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7],["8f41","뢅",7,"뢎",17],["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4],["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5],["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"],["9061","륾",5,"릆릈릋릌릏",15],["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"],["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5],["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5],["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6],["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"],["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4],["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"],["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8],["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"],["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8],["9461","봞",5,"봥",6,"봭",12],["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24],["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"],["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"],["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14],["9641","뺸",23,"뻒뻓"],["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8],["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44],["9741","뾃",16,"뾕",8],["9761","뾞",17,"뾱",7],["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"],["9841","쁀",16,"쁒",5,"쁙쁚쁛"],["9861","쁝쁞쁟쁡",6,"쁪",15],["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"],["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"],["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"],["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"],["9a41","숤숥숦숧숪숬숮숰숳숵",16],["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"],["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"],["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8],["9b61","쌳",17,"썆",7],["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"],["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5],["9c61","쏿",8,"쐉",6,"쐑",9],["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12],["9d41","쒪",13,"쒹쒺쒻쒽",8],["9d61","쓆",25],["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"],["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"],["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"],["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"],["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"],["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"],["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"],["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13],["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"],["a141","좥좦좧좩",18,"좾좿죀죁"],["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"],["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],["a241","줐줒",5,"줙",18],["a261","줭",6,"줵",18],["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"],["a361","즑",6,"즚즜즞",16],["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"],["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"],["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12],["a481","쨦쨧쨨쨪",28,"ㄱ",93],["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"],["a561","쩫",17,"쩾",5,"쪅쪆"],["a581","쪇",16,"쪙",14,"ⅰ",9],["a5b0","Ⅰ",9],["a5c1","Α",16,"Σ",6],["a5e1","α",16,"σ",6],["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"],["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6],["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7],["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7],["a761","쬪",22,"쭂쭃쭄"],["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],["a841","쭭",10,"쭺",14],["a861","쮉",18,"쮝",6],["a881","쮤",19,"쮹",11,"ÆÐªĦ"],["a8a6","IJ"],["a8a8","ĿŁØŒºÞŦŊ"],["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"],["a941","쯅",14,"쯕",10],["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18],["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"],["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"],["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"],["aa81","챳챴챶",29,"ぁ",82],["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"],["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5],["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85],["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"],["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4],["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25],["acd1","а",5,"ёж",25],["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7],["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"],["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"],["ae41","췆",5,"췍췎췏췑",16],["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4],["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"],["af41","츬츭츮츯츲츴츶",19],["af61","칊",13,"칚칛칝칞칢",5,"칪칬"],["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"],["b041","캚",5,"캢캦",5,"캮",12],["b061","캻",5,"컂",19],["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"],["b161","켥",6,"켮켲",5,"켹",11],["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"],["b261","쾎",18,"쾢",5,"쾩"],["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"],["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5],["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5],["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"],["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],["b541","킕",14,"킦킧킩킪킫킭",5],["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4],["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],["b641","턅",7,"턎",17],["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"],["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],["b741","텮",13,"텽",6,"톅톆톇톉톊"],["b761","톋",20,"톢톣톥톦톧"],["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],["b841","퇐",7,"퇙",17],["b861","퇫",8,"퇵퇶퇷퇹",13],["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"],["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"],["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"],["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5],["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"],["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"],["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"],["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"],["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"],["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13],["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],["be41","퐸",7,"푁푂푃푅",14],["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"],["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"],["bf41","풞",10,"풪",14],["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"],["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5],["c061","픞",25],["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"],["c161","햌햍햎햏햑",19,"햦햧"],["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"],["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"],["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4],["c361","홢",4,"홨홪",5,"홲홳홵",11],["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"],["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4],["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"],["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4],["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],["c641","힍힎힏힑",6,"힚힜힞",5],["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"],["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]]});var Zu=O((Yg1,YH1)=>{YH1.exports=[["0","\x00",127],["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21],["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10],["a3a1","ㄐ",25,"˙ˉˊˇˋ"],["a3e1","€"],["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]]});var IZ0=O((Jg1,JH1)=>{JH1.exports=[["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],["88a1","ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"],["8940","𪎩𡅅"],["8943","攊"],["8946","丽滝鵎釟"],["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],["89a1","琑糼緍楆竉刧"],["89ab","醌碸酞肼"],["89b0","贋胶𠧧"],["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],["89c1","溚舾甙"],["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],["8a40","𧶄唥"],["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],["8aac","䠋𠆩㿺塳𢶍"],["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],["8ac9","𪘁𠸉𢫏𢳉"],["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],["8ca1","𣏹椙橃𣱣泿"],["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],["8cc9","顨杫䉶圽"],["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],["8d40","𠮟"],["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],["9fae","酙隁酜"],["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],["9fc1","𤤙盖鮝个𠳔莾衂"],["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],["9fe7","毺蠘罸"],["9feb","嘠𪙊蹷齓"],["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],["a055","𡠻𦸅"],["a058","詾𢔛"],["a05b","惽癧髗鵄鍮鮏蟵"],["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],["a0a1","嵗𨯂迚𨸹"],["a0a6","僙𡵆礆匲阸𠼻䁥"],["a0ae","矾"],["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],["a3c0","␀",31,"␡"],["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],["c740","す",58,"ァアィイ"],["c7a1","ゥ",81,"А",5,"ЁЖ",4],["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],["c8a1","龰冈龱𧘇"],["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],["c8f5","ʃɐɛɔɵœøŋʊɪ"],["f9fe","■"],["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]]});var YZ0=O((Qg1,UZ0)=>{UZ0.exports={shiftjis:{type:"_dbcs",table:function(){return aV0()},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return sV0()},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return XD()}},gbk:{type:"_dbcs",table:function(){return XD().concat(Vu())}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return XD().concat(Vu())},gb18030:function(){return eV0()},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return $Z0()}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return Zu()}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return Zu().concat(IZ0())},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}});var KZ0=O((QZ0,zH)=>{var QH1=hh(),JZ0=[hV0(),kV0(),iV0(),pV0(),cV0(),mV0(),oV0(),tV0(),YZ0()];for(ZH=0;ZH{var qZ0=d5().Buffer;HZ0.exports=function($){var I=$.Transform;function U(J,Q){this.conv=J,Q=Q||{},Q.decodeStrings=!1,I.call(this,Q)}U.prototype=Object.create(I.prototype,{constructor:{value:U}}),U.prototype._transform=function(J,Q,K){if(typeof J!=="string")return K(Error("Iconv encoding stream needs strings as its input."));try{var q=this.conv.write(J);if(q&&q.length)this.push(q);K()}catch(H){K(H)}},U.prototype._flush=function(J){try{var Q=this.conv.end();if(Q&&Q.length)this.push(Q);J()}catch(K){J(K)}},U.prototype.collect=function(J){var Q=[];return this.on("error",J),this.on("data",function(K){Q.push(K)}),this.on("end",function(){J(null,qZ0.concat(Q))}),this};function Y(J,Q){this.conv=J,Q=Q||{},Q.encoding=this.encoding="utf8",I.call(this,Q)}return Y.prototype=Object.create(I.prototype,{constructor:{value:Y}}),Y.prototype._transform=function(J,Q,K){if(!qZ0.isBuffer(J)&&!(J instanceof Uint8Array))return K(Error("Iconv decoding stream needs buffers as its input."));try{var q=this.conv.write(J);if(q&&q.length)this.push(q,this.encoding);K()}catch(H){K(H)}},Y.prototype._flush=function(J){try{var Q=this.conv.end();if(Q&&Q.length)this.push(Q,this.encoding);J()}catch(K){J(K)}},Y.prototype.collect=function(J){var Q="";return this.on("error",J),this.on("data",function(K){Q+=K}),this.on("end",function(){J(null,Q)}),this},{IconvLiteEncoderStream:U,IconvLiteDecoderStream:Y}}});var DZ0=O((wH1,d0)=>{var WZ0=d5().Buffer,wZ0=SV0(),WH1=hh();wH1.encodings=null;wH1.defaultCharUnicode="�";wH1.defaultCharSingleByte="?";wH1.encode=function(I,U,Y){I=""+(I||"");var J=wH1.getEncoder(U,Y),Q=J.write(I),K=J.end();return K&&K.length>0?WZ0.concat([Q,K]):Q};wH1.decode=function(I,U,Y){if(typeof I==="string"){if(!wH1.skipDecodeWarning)console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),wH1.skipDecodeWarning=!0;I=WZ0.from(""+(I||""),"binary")}var J=wH1.getDecoder(U,Y),Q=J.write(I),K=J.end();return K?Q+K:Q};wH1.encodingExists=function(I){try{return wH1.getCodec(I),!0}catch(U){return!1}};wH1.toEncoding=wH1.encode;wH1.fromEncoding=wH1.decode;wH1._codecDataCache={__proto__:null};wH1.getCodec=function(I){if(!wH1.encodings){var U=KZ0();wH1.encodings={__proto__:null},WH1(wH1.encodings,U)}var Y=wH1._canonicalizeEncoding(I),J={};while(!0){var Q=wH1._codecDataCache[Y];if(Q)return Q;var K=wH1.encodings[Y];switch(typeof K){case"string":Y=K;break;case"object":for(var q in K)J[q]=K[q];if(!J.encodingName)J.encodingName=Y;Y=K.type;break;case"function":if(!J.encodingName)J.encodingName=Y;return Q=new K(J,wH1),wH1._codecDataCache[J.encodingName]=Q,Q;default:throw Error("Encoding not recognized: '"+I+"' (searched as: '"+Y+"')")}}};wH1._canonicalizeEncoding=function($){return(""+$).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};wH1.getEncoder=function(I,U){var Y=wH1.getCodec(I),J=new Y.encoder(U,Y);if(Y.bomAware&&U&&U.addBOM)J=new wZ0.PrependBOM(J,U);return J};wH1.getDecoder=function(I,U){var Y=wH1.getCodec(I),J=new Y.decoder(U,Y);if(Y.bomAware&&!(U&&U.stripBOM===!1))J=new wZ0.StripBOM(J,U);return J};wH1.enableStreamingAPI=function(I){if(wH1.supportsStreams)return;var U=GZ0()(I);wH1.IconvLiteEncoderStream=U.IconvLiteEncoderStream,wH1.IconvLiteDecoderStream=U.IconvLiteDecoderStream,wH1.encodeStream=function(J,Q){return new wH1.IconvLiteEncoderStream(wH1.getEncoder(J,Q),Q)},wH1.decodeStream=function(J,Q){return new wH1.IconvLiteDecoderStream(wH1.getDecoder(J,Q),Q)},wH1.supportsStreams=!0};var LD;try{LD=t("stream")}catch($){}if(LD&&LD.Transform)wH1.enableStreamingAPI(LD);else wH1.encodeStream=wH1.decodeStream=function(){throw Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}});import{dirname as CH,resolve as pX0}from"node:path";import{fileURLToPath as CW1}from"node:url";var Y5={};$5(Y5,{version:()=>GF,util:()=>D0,treeifyError:()=>zO,toJSONSchema:()=>rG,toDotPath:()=>bx,safeParseAsync:()=>sJ,safeParse:()=>BI,safeEncodeAsync:()=>lx,safeEncode:()=>dx,safeDecodeAsync:()=>ox,safeDecode:()=>mx,registry:()=>NG,regexes:()=>Q$,process:()=>S1,prettifyError:()=>XO,parseAsync:()=>aJ,parse:()=>tJ,meta:()=>IA,locales:()=>GQ,isValidJWT:()=>Lk,isValidBase64URL:()=>Xk,isValidBase64:()=>_F,initializeContext:()=>Q9,globalRegistry:()=>l4,globalConfig:()=>v7,formatError:()=>rJ,flattenError:()=>oJ,finalize:()=>q9,extractDefs:()=>K9,encodeAsync:()=>px,encode:()=>ix,describe:()=>$A,decodeAsync:()=>cx,decode:()=>nx,createToJSONSchemaMethod:()=>YA,createStandardJSONSchemaMethod:()=>pI,config:()=>z4,clone:()=>T6,_xor:()=>CO0,_xid:()=>_G,_void:()=>dM,_uuidv7:()=>EG,_uuidv6:()=>TG,_uuidv4:()=>PG,_uuid:()=>AG,_url:()=>wQ,_uppercase:()=>SI,_unknown:()=>pM,_union:()=>jO0,_undefined:()=>bM,_ulid:()=>CG,_uint64:()=>kM,_uint32:()=>SM,_tuple:()=>gO0,_trim:()=>kI,_transform:()=>bO0,_toUpperCase:()=>bI,_toLowerCase:()=>fI,_templateLiteral:()=>rO0,_symbol:()=>fM,_superRefine:()=>eM,_success:()=>dO0,_stringbool:()=>UA,_stringFormat:()=>nI,_string:()=>OM,_startsWith:()=>yI,_slugify:()=>iI,_size:()=>S7,_set:()=>uO0,_safeParseAsync:()=>vI,_safeParse:()=>EI,_safeEncodeAsync:()=>QG,_safeEncode:()=>YG,_safeDecodeAsync:()=>KG,_safeDecode:()=>JG,_regex:()=>CI,_refine:()=>sM,_record:()=>yO0,_readonly:()=>oO0,_property:()=>dG,_promise:()=>aO0,_positive:()=>iG,_pipe:()=>lO0,_parseAsync:()=>TI,_parse:()=>PI,_overwrite:()=>m$,_optional:()=>iO0,_number:()=>BM,_nullable:()=>nO0,_null:()=>iM,_normalize:()=>xI,_nonpositive:()=>pG,_nonoptional:()=>cO0,_nonnegative:()=>cG,_never:()=>cM,_negative:()=>nG,_nativeEnum:()=>kO0,_nanoid:()=>vG,_nan:()=>oM,_multipleOf:()=>Y9,_minSize:()=>L8,_minLength:()=>U5,_min:()=>B6,_mime:()=>uI,_maxSize:()=>J9,_maxLength:()=>g7,_max:()=>K$,_map:()=>hO0,_mac:()=>NM,_lte:()=>K$,_lt:()=>z8,_lowercase:()=>_I,_literal:()=>fO0,_length:()=>y7,_lazy:()=>tO0,_ksuid:()=>SG,_jwt:()=>bG,_isoTime:()=>TM,_isoDuration:()=>EM,_isoDateTime:()=>AM,_isoDate:()=>PM,_ipv6:()=>yG,_ipv4:()=>gG,_intersection:()=>SO0,_int64:()=>xM,_int32:()=>_M,_int:()=>RM,_includes:()=>gI,_guid:()=>WQ,_gte:()=>B6,_gt:()=>X8,_float64:()=>CM,_float32:()=>jM,_file:()=>tM,_enum:()=>xO0,_endsWith:()=>hI,_encodeAsync:()=>IG,_encode:()=>eH,_emoji:()=>BG,_email:()=>MG,_e164:()=>fG,_discriminatedUnion:()=>_O0,_default:()=>pO0,_decodeAsync:()=>UG,_decode:()=>$G,_date:()=>mM,_custom:()=>aM,_cuid2:()=>jG,_cuid:()=>RG,_coercedString:()=>FM,_coercedNumber:()=>vM,_coercedDate:()=>lM,_coercedBoolean:()=>yM,_coercedBigint:()=>uM,_cidrv6:()=>uG,_cidrv4:()=>hG,_check:()=>Ek,_catch:()=>mO0,_boolean:()=>gM,_bigint:()=>hM,_base64url:()=>kG,_base64:()=>xG,_array:()=>rM,_any:()=>nM,TimePrecision:()=>MM,NEVER:()=>UO,JSONSchemaGenerator:()=>iA,JSONSchema:()=>Bk,Doc:()=>WG,$output:()=>XM,$input:()=>LM,$constructor:()=>o,$brand:()=>YO,$ZodXor:()=>rF,$ZodXID:()=>NF,$ZodVoid:()=>dF,$ZodUnknown:()=>pF,$ZodUnion:()=>YQ,$ZodUndefined:()=>bF,$ZodUUID:()=>VF,$ZodURL:()=>zF,$ZodULID:()=>FF,$ZodType:()=>n0,$ZodTuple:()=>DG,$ZodTransform:()=>JN,$ZodTemplateLiteral:()=>XN,$ZodSymbol:()=>fF,$ZodSuccess:()=>WN,$ZodStringFormat:()=>x1,$ZodString:()=>_7,$ZodSet:()=>$N,$ZodRegistry:()=>DM,$ZodRecord:()=>sF,$ZodRealError:()=>n6,$ZodReadonly:()=>zN,$ZodPromise:()=>DN,$ZodPreprocess:()=>ZN,$ZodPrefault:()=>HN,$ZodPipe:()=>FG,$ZodOptional:()=>OG,$ZodObjectJIT:()=>oF,$ZodObject:()=>Fk,$ZodNumberFormat:()=>xF,$ZodNumber:()=>XG,$ZodNullable:()=>KN,$ZodNull:()=>iF,$ZodNonOptional:()=>GN,$ZodNever:()=>cF,$ZodNanoID:()=>LF,$ZodNaN:()=>VN,$ZodMap:()=>eF,$ZodMAC:()=>RF,$ZodLiteral:()=>UN,$ZodLazy:()=>ON,$ZodKSUID:()=>MF,$ZodJWT:()=>hF,$ZodIntersection:()=>aF,$ZodISOTime:()=>TF,$ZodISODuration:()=>EF,$ZodISODateTime:()=>AF,$ZodISODate:()=>PF,$ZodIPv6:()=>vF,$ZodIPv4:()=>BF,$ZodGUID:()=>wF,$ZodFunction:()=>LN,$ZodFile:()=>YN,$ZodExactOptional:()=>QN,$ZodError:()=>lJ,$ZodEnum:()=>IN,$ZodEncodeError:()=>R7,$ZodEmoji:()=>XF,$ZodEmail:()=>ZF,$ZodE164:()=>yF,$ZodDiscriminatedUnion:()=>tF,$ZodDefault:()=>qN,$ZodDate:()=>mF,$ZodCustomStringFormat:()=>uF,$ZodCustom:()=>FN,$ZodCodec:()=>JQ,$ZodCheckUpperCase:()=>UF,$ZodCheckStringFormat:()=>RI,$ZodCheckStartsWith:()=>JF,$ZodCheckSizeEquals:()=>tO,$ZodCheckRegex:()=>$F,$ZodCheckProperty:()=>KF,$ZodCheckOverwrite:()=>HF,$ZodCheckNumberFormat:()=>mO,$ZodCheckMultipleOf:()=>dO,$ZodCheckMinSize:()=>rO,$ZodCheckMinLength:()=>sO,$ZodCheckMimeType:()=>qF,$ZodCheckMaxSize:()=>oO,$ZodCheckMaxLength:()=>aO,$ZodCheckLowerCase:()=>IF,$ZodCheckLessThan:()=>HG,$ZodCheckLengthEquals:()=>eO,$ZodCheckIncludes:()=>YF,$ZodCheckGreaterThan:()=>GG,$ZodCheckEndsWith:()=>QF,$ZodCheckBigIntFormat:()=>lO,$ZodCheck:()=>n1,$ZodCatch:()=>wN,$ZodCUID2:()=>OF,$ZodCUID:()=>DF,$ZodCIDRv6:()=>CF,$ZodCIDRv4:()=>jF,$ZodBoolean:()=>UQ,$ZodBigIntFormat:()=>kF,$ZodBigInt:()=>LG,$ZodBase64URL:()=>gF,$ZodBase64:()=>SF,$ZodAsyncError:()=>Z8,$ZodArray:()=>lF,$ZodAny:()=>nF});var yx,UO=Object.freeze({status:"aborted"});function o($,I,U){function Y(q,H){if(!q._zod)Object.defineProperty(q,"_zod",{value:{def:H,constr:K,traits:new Set},enumerable:!1});if(q._zod.traits.has($))return;q._zod.traits.add($),I(q,H);let G=K.prototype,W=Object.keys(G);for(let w=0;w{if(U?.Parent&&q instanceof U.Parent)return!0;return q?._zod?.traits?.has($)}}),Object.defineProperty(K,"name",{value:$}),K}var YO=Symbol("zod_brand");class Z8 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class R7 extends Error{constructor($){super(`Encountered unidirectional transform during encode: ${$}`);this.name="ZodEncodeError"}}(yx=globalThis).__zod_globalConfig??(yx.__zod_globalConfig={});var v7=globalThis.__zod_globalConfig;function z4($){if($)Object.assign(v7,$);return v7}var D0={};$5(D0,{unwrapMessage:()=>iJ,uint8ArrayToHex:()=>UD0,uint8ArrayToBase64url:()=>$D0,uint8ArrayToBase64:()=>xx,stringifyPrimitive:()=>Z0,slugify:()=>KO,shallowClone:()=>HO,safeExtend:()=>oL0,required:()=>aL0,randomString:()=>iL0,propertyKeyTypes:()=>cJ,promiseAllObject:()=>bL0,primitiveTypes:()=>GO,prefixIssues:()=>i6,pick:()=>dL0,partial:()=>tL0,parsedType:()=>X0,optionalKeys:()=>WO,omit:()=>mL0,objectClone:()=>xL0,numKeys:()=>nL0,nullish:()=>e5,normalizeParams:()=>N0,mergeDefs:()=>I5,merge:()=>rL0,jsonStringifyReplacer:()=>NI,joinValues:()=>I0,issue:()=>AI,isPlainObject:()=>I9,isObject:()=>j7,hexToUint8Array:()=>ID0,getSizableOrigin:()=>dJ,getParsedType:()=>pL0,getLengthableOrigin:()=>mJ,getEnumValues:()=>nJ,getElementAtPath:()=>fL0,floatSafeRemainder:()=>QO,finalizeIssue:()=>E6,extend:()=>lL0,explicitlyAborted:()=>ZO,escapeRegex:()=>A$,esc:()=>aH,defineLazy:()=>e0,createTransparentProxy:()=>cL0,cloneDef:()=>kL0,clone:()=>T6,cleanRegex:()=>pJ,cleanEnum:()=>sL0,captureStackTrace:()=>sH,cached:()=>MI,base64urlToUint8Array:()=>eL0,base64ToUint8Array:()=>ux,assignProp:()=>$9,assertNotEqual:()=>gL0,assertNever:()=>hL0,assertIs:()=>yL0,assertEqual:()=>SL0,assert:()=>uL0,allowsEval:()=>qO,aborted:()=>U9,NUMBER_FORMAT_RANGES:()=>wO,Class:()=>kx,BIGINT_FORMAT_RANGES:()=>VO});function SL0($){return $}function gL0($){return $}function yL0($){}function hL0($){throw Error("Unexpected value in exhaustive check")}function uL0($){}function nJ($){let I=Object.values($).filter((Y)=>typeof Y==="number");return Object.entries($).filter(([Y,J])=>I.indexOf(+Y)===-1).map(([Y,J])=>J)}function I0($,I="|"){return $.map((U)=>Z0(U)).join(I)}function NI($,I){if(typeof I==="bigint")return I.toString();return I}function MI($){return{get value(){{let U=$();return Object.defineProperty(this,"value",{value:U}),U}throw Error("cached value already set")}}}function e5($){return $===null||$===void 0}function pJ($){let I=$.startsWith("^")?1:0,U=$.endsWith("$")?$.length-1:$.length;return $.slice(I,U)}function QO($,I){let U=$/I,Y=Math.round(U),J=Number.EPSILON*Math.max(Math.abs(U),1);if(Math.abs(U-Y)U?.[Y],$)}function bL0($){let I=Object.keys($),U=I.map((Y)=>$[Y]);return Promise.all(U).then((Y)=>{let J={};for(let Q=0;Q{};function j7($){return typeof $==="object"&&$!==null&&!Array.isArray($)}var qO=MI(()=>{if(v7.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch($){return!1}});function I9($){if(j7($)===!1)return!1;let I=$.constructor;if(I===void 0)return!0;if(typeof I!=="function")return!0;let U=I.prototype;if(j7(U)===!1)return!1;if(Object.prototype.hasOwnProperty.call(U,"isPrototypeOf")===!1)return!1;return!0}function HO($){if(I9($))return{...$};if(Array.isArray($))return[...$];if($ instanceof Map)return new Map($);if($ instanceof Set)return new Set($);return $}function nL0($){let I=0;for(let U in $)if(Object.prototype.hasOwnProperty.call($,U))I++;return I}var pL0=($)=>{let I=typeof $;switch(I){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN($)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray($))return"array";if($===null)return"null";if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return"promise";if(typeof Map<"u"&&$ instanceof Map)return"map";if(typeof Set<"u"&&$ instanceof Set)return"set";if(typeof Date<"u"&&$ instanceof Date)return"date";if(typeof File<"u"&&$ instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${I}`)}},cJ=new Set(["string","number","symbol"]),GO=new Set(["string","number","bigint","boolean","symbol","undefined"]);function A$($){return $.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function T6($,I,U){let Y=new $._zod.constr(I??$._zod.def);if(!I||U?.parent)Y._zod.parent=$;return Y}function N0($){let I=$;if(!I)return{};if(typeof I==="string")return{error:()=>I};if(I?.message!==void 0){if(I?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");I.error=I.message}if(delete I.message,typeof I.error==="string")return{...I,error:()=>I.error};return I}function cL0($){let I;return new Proxy({},{get(U,Y,J){return I??(I=$()),Reflect.get(I,Y,J)},set(U,Y,J,Q){return I??(I=$()),Reflect.set(I,Y,J,Q)},has(U,Y){return I??(I=$()),Reflect.has(I,Y)},deleteProperty(U,Y){return I??(I=$()),Reflect.deleteProperty(I,Y)},ownKeys(U){return I??(I=$()),Reflect.ownKeys(I)},getOwnPropertyDescriptor(U,Y){return I??(I=$()),Reflect.getOwnPropertyDescriptor(I,Y)},defineProperty(U,Y,J){return I??(I=$()),Reflect.defineProperty(I,Y,J)}})}function Z0($){if(typeof $==="bigint")return $.toString()+"n";if(typeof $==="string")return`"${$}"`;return`${$}`}function WO($){return Object.keys($).filter((I)=>{return $[I]._zod.optin==="optional"&&$[I]._zod.optout==="optional"})}var wO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},VO={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function dL0($,I){let U=$._zod.def,Y=U.checks;if(Y&&Y.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let Q=I5($._zod.def,{get shape(){let K={};for(let q in I){if(!(q in U.shape))throw Error(`Unrecognized key: "${q}"`);if(!I[q])continue;K[q]=U.shape[q]}return $9(this,"shape",K),K},checks:[]});return T6($,Q)}function mL0($,I){let U=$._zod.def,Y=U.checks;if(Y&&Y.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let Q=I5($._zod.def,{get shape(){let K={...$._zod.def.shape};for(let q in I){if(!(q in U.shape))throw Error(`Unrecognized key: "${q}"`);if(!I[q])continue;delete K[q]}return $9(this,"shape",K),K},checks:[]});return T6($,Q)}function lL0($,I){if(!I9(I))throw Error("Invalid input to extend: expected a plain object");let U=$._zod.def.checks;if(U&&U.length>0){let Q=$._zod.def.shape;for(let K in I)if(Object.getOwnPropertyDescriptor(Q,K)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let J=I5($._zod.def,{get shape(){let Q={...$._zod.def.shape,...I};return $9(this,"shape",Q),Q}});return T6($,J)}function oL0($,I){if(!I9(I))throw Error("Invalid input to safeExtend: expected a plain object");let U=I5($._zod.def,{get shape(){let Y={...$._zod.def.shape,...I};return $9(this,"shape",Y),Y}});return T6($,U)}function rL0($,I){if($._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let U=I5($._zod.def,{get shape(){let Y={...$._zod.def.shape,...I._zod.def.shape};return $9(this,"shape",Y),Y},get catchall(){return I._zod.def.catchall},checks:I._zod.def.checks??[]});return T6($,U)}function tL0($,I,U){let J=I._zod.def.checks;if(J&&J.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let K=I5(I._zod.def,{get shape(){let q=I._zod.def.shape,H={...q};if(U)for(let G in U){if(!(G in q))throw Error(`Unrecognized key: "${G}"`);if(!U[G])continue;H[G]=$?new $({type:"optional",innerType:q[G]}):q[G]}else for(let G in q)H[G]=$?new $({type:"optional",innerType:q[G]}):q[G];return $9(this,"shape",H),H},checks:[]});return T6(I,K)}function aL0($,I,U){let Y=I5(I._zod.def,{get shape(){let J=I._zod.def.shape,Q={...J};if(U)for(let K in U){if(!(K in Q))throw Error(`Unrecognized key: "${K}"`);if(!U[K])continue;Q[K]=new $({type:"nonoptional",innerType:J[K]})}else for(let K in J)Q[K]=new $({type:"nonoptional",innerType:J[K]});return $9(this,"shape",Q),Q}});return T6(I,Y)}function U9($,I=0){if($.aborted===!0)return!0;for(let U=I;U<$.issues.length;U++)if($.issues[U]?.continue!==!0)return!0;return!1}function ZO($,I=0){if($.aborted===!0)return!0;for(let U=I;U<$.issues.length;U++)if($.issues[U]?.continue===!1)return!0;return!1}function i6($,I){return I.map((U)=>{var Y;return(Y=U).path??(Y.path=[]),U.path.unshift($),U})}function iJ($){return typeof $==="string"?$:$?.message}function E6($,I,U){let Y=$.message?$.message:iJ($.inst?._zod.def?.error?.($))??iJ(I?.error?.($))??iJ(U.customError?.($))??iJ(U.localeError?.($))??"Invalid input",{inst:J,continue:Q,input:K,...q}=$;if(q.path??(q.path=[]),q.message=Y,I?.reportInput)q.input=K;return q}function dJ($){if($ instanceof Set)return"set";if($ instanceof Map)return"map";if($ instanceof File)return"file";return"unknown"}function mJ($){if(Array.isArray($))return"array";if(typeof $==="string")return"string";return"unknown"}function X0($){let I=typeof $;switch(I){case"number":return Number.isNaN($)?"nan":"number";case"object":{if($===null)return"null";if(Array.isArray($))return"array";let U=$;if(U&&Object.getPrototypeOf(U)!==Object.prototype&&"constructor"in U&&U.constructor)return U.constructor.name}}return I}function AI(...$){let[I,U,Y]=$;if(typeof I==="string")return{message:I,code:"custom",input:U,inst:Y};return{...I}}function sL0($){return Object.entries($).filter(([I,U])=>{return Number.isNaN(Number.parseInt(I,10))}).map((I)=>I[1])}function ux($){let I=atob($),U=new Uint8Array(I.length);for(let Y=0;YI.toString(16).padStart(2,"0")).join("")}class kx{constructor(...$){}}var fx=($,I)=>{$.name="$ZodError",Object.defineProperty($,"_zod",{value:$._zod,enumerable:!1}),Object.defineProperty($,"issues",{value:I,enumerable:!1}),$.message=JSON.stringify(I,NI,2),Object.defineProperty($,"toString",{value:()=>$.message,enumerable:!1})},lJ=o("$ZodError",fx),n6=o("$ZodError",fx,{Parent:Error});function oJ($,I=(U)=>U.message){let U={},Y=[];for(let J of $.issues)if(J.path.length>0)U[J.path[0]]=U[J.path[0]]||[],U[J.path[0]].push(I(J));else Y.push(I(J));return{formErrors:Y,fieldErrors:U}}function rJ($,I=(U)=>U.message){let U={_errors:[]},Y=(J,Q=[])=>{for(let K of J.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((q)=>Y({issues:q},[...Q,...K.path]));else if(K.code==="invalid_key")Y({issues:K.issues},[...Q,...K.path]);else if(K.code==="invalid_element")Y({issues:K.issues},[...Q,...K.path]);else{let q=[...Q,...K.path];if(q.length===0)U._errors.push(I(K));else{let H=U,G=0;while(GU.message){let U={errors:[]},Y=(J,Q=[])=>{var K,q;for(let H of J.issues)if(H.code==="invalid_union"&&H.errors.length)H.errors.map((G)=>Y({issues:G},[...Q,...H.path]));else if(H.code==="invalid_key")Y({issues:H.issues},[...Q,...H.path]);else if(H.code==="invalid_element")Y({issues:H.issues},[...Q,...H.path]);else{let G=[...Q,...H.path];if(G.length===0){U.errors.push(I(H));continue}let W=U,w=0;while(wtypeof Y==="object"?Y.key:Y);for(let Y of U)if(typeof Y==="number")I.push(`[${Y}]`);else if(typeof Y==="symbol")I.push(`[${JSON.stringify(String(Y))}]`);else if(/[^\w$]/.test(Y))I.push(`[${JSON.stringify(Y)}]`);else{if(I.length)I.push(".");I.push(Y)}return I.join("")}function XO($){let I=[],U=[...$.issues].sort((Y,J)=>(Y.path??[]).length-(J.path??[]).length);for(let Y of U)if(I.push(`✖ ${Y.message}`),Y.path?.length)I.push(` → at ${bx(Y.path)}`);return I.join(` -`)}var PI=($)=>(I,U,Y,J)=>{let Q=Y?{...Y,async:!1}:{async:!1},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)throw new Z8;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((H)=>E6(H,Q,z4())));throw sH(q,J?.callee),q}return K.value},tJ=PI(n6),TI=($)=>async(I,U,Y,J)=>{let Q=Y?{...Y,async:!0}:{async:!0},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)K=await K;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((H)=>E6(H,Q,z4())));throw sH(q,J?.callee),q}return K.value},aJ=TI(n6),EI=($)=>(I,U,Y)=>{let J=Y?{...Y,async:!1}:{async:!1},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)throw new Z8;return Q.issues.length?{success:!1,error:new($??lJ)(Q.issues.map((K)=>E6(K,J,z4())))}:{success:!0,data:Q.value}},BI=EI(n6),vI=($)=>async(I,U,Y)=>{let J=Y?{...Y,async:!0}:{async:!0},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)Q=await Q;return Q.issues.length?{success:!1,error:new $(Q.issues.map((K)=>E6(K,J,z4())))}:{success:!0,data:Q.value}},sJ=vI(n6),eH=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return PI($)(I,U,J)},ix=eH(n6),$G=($)=>(I,U,Y)=>{return PI($)(I,U,Y)},nx=$G(n6),IG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return TI($)(I,U,J)},px=IG(n6),UG=($)=>async(I,U,Y)=>{return TI($)(I,U,Y)},cx=UG(n6),YG=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return EI($)(I,U,J)},dx=YG(n6),JG=($)=>(I,U,Y)=>{return EI($)(I,U,Y)},mx=JG(n6),QG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return vI($)(I,U,J)},lx=QG(n6),KG=($)=>async(I,U,Y)=>{return vI($)(I,U,Y)},ox=KG(n6);var Q$={};$5(Q$,{xid:()=>FO,uuid7:()=>qD0,uuid6:()=>KD0,uuid4:()=>QD0,uuid:()=>C7,uppercase:()=>cO,unicodeEmail:()=>rx,undefined:()=>nO,ulid:()=>OO,time:()=>hO,string:()=>xO,sha512_hex:()=>RD0,sha512_base64url:()=>CD0,sha512_base64:()=>jD0,sha384_hex:()=>ED0,sha384_base64url:()=>vD0,sha384_base64:()=>BD0,sha256_hex:()=>AD0,sha256_base64url:()=>TD0,sha256_base64:()=>PD0,sha1_hex:()=>FD0,sha1_base64url:()=>MD0,sha1_base64:()=>ND0,rfc5322Email:()=>GD0,number:()=>eJ,null:()=>iO,nanoid:()=>MO,md5_hex:()=>LD0,md5_base64url:()=>OD0,md5_base64:()=>DD0,mac:()=>RO,lowercase:()=>pO,ksuid:()=>NO,ipv6:()=>vO,ipv4:()=>BO,integer:()=>fO,idnEmail:()=>WD0,httpProtocol:()=>SO,html5Email:()=>HD0,hostname:()=>ZD0,hex:()=>XD0,guid:()=>PO,extendedDuration:()=>JD0,emoji:()=>EO,email:()=>TO,e164:()=>gO,duration:()=>AO,domain:()=>zD0,datetime:()=>uO,date:()=>yO,cuid2:()=>DO,cuid:()=>LO,cidrv6:()=>CO,cidrv4:()=>jO,browserEmail:()=>wD0,boolean:()=>bO,bigint:()=>kO,base64url:()=>qG,base64:()=>_O});var LO=/^[cC][0-9a-z]{6,}$/,DO=/^[0-9a-z]+$/,OO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,FO=/^[0-9a-vA-V]{20}$/,NO=/^[A-Za-z0-9]{27}$/,MO=/^[a-zA-Z0-9_-]{21}$/,AO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,JD0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,PO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,C7=($)=>{if(!$)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${$}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},QD0=C7(4),KD0=C7(6),qD0=C7(7),TO=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,HD0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,GD0=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,rx=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,WD0=rx,wD0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,VD0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function EO(){return new RegExp(VD0,"u")}var BO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,RO=($)=>{let I=A$($??":");return new RegExp(`^(?:[0-9A-F]{2}${I}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${I}){5}[0-9a-f]{2}$`)},jO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,CO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_O=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qG=/^[A-Za-z0-9_-]*$/,ZD0=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zD0=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,SO=/^https?$/,gO=/^\+[1-9]\d{6,14}$/,tx="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",yO=new RegExp(`^${tx}$`);function ax($){return typeof $.precision==="number"?$.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":$.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${$.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function hO($){return new RegExp(`^${ax($)}$`)}function uO($){let I=ax({precision:$.precision}),U=["Z"];if($.local)U.push("");if($.offset)U.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let Y=`${I}(?:${U.join("|")})`;return new RegExp(`^${tx}T(?:${Y})$`)}var xO=($)=>{let I=$?`[\\s\\S]{${$?.minimum??0},${$?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${I}$`)},kO=/^-?\d+n?$/,fO=/^-?\d+$/,eJ=/^-?\d+(?:\.\d+)?$/,bO=/^(?:true|false)$/i,iO=/^null$/i;var nO=/^undefined$/i;var pO=/^[^A-Z]*$/,cO=/^[^a-z]*$/,XD0=/^[0-9a-fA-F]*$/;function $Q($,I){return new RegExp(`^[A-Za-z0-9+/]{${$}}${I}$`)}function IQ($){return new RegExp(`^[A-Za-z0-9_-]{${$}}$`)}var LD0=/^[0-9a-fA-F]{32}$/,DD0=$Q(22,"=="),OD0=IQ(22),FD0=/^[0-9a-fA-F]{40}$/,ND0=$Q(27,"="),MD0=IQ(27),AD0=/^[0-9a-fA-F]{64}$/,PD0=$Q(43,"="),TD0=IQ(43),ED0=/^[0-9a-fA-F]{96}$/,BD0=$Q(64,""),vD0=IQ(64),RD0=/^[0-9a-fA-F]{128}$/,jD0=$Q(86,"=="),CD0=IQ(86);var n1=o("$ZodCheck",($,I)=>{var U;$._zod??($._zod={}),$._zod.def=I,(U=$._zod).onattach??(U.onattach=[])}),ex={number:"number",bigint:"bigint",object:"date"},HG=o("$ZodCheckLessThan",($,I)=>{n1.init($,I);let U=ex[typeof I.value];$._zod.onattach.push((Y)=>{let J=Y._zod.bag,Q=(I.inclusive?J.maximum:J.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(I.value{if(I.inclusive?Y.value<=I.value:Y.value{n1.init($,I);let U=ex[typeof I.value];$._zod.onattach.push((Y)=>{let J=Y._zod.bag,Q=(I.inclusive?J.minimum:J.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(I.value>Q)if(I.inclusive)J.minimum=I.value;else J.exclusiveMinimum=I.value}),$._zod.check=(Y)=>{if(I.inclusive?Y.value>=I.value:Y.value>I.value)return;Y.issues.push({origin:U,code:"too_small",minimum:typeof I.value==="object"?I.value.getTime():I.value,input:Y.value,inclusive:I.inclusive,inst:$,continue:!I.abort})}}),dO=o("$ZodCheckMultipleOf",($,I)=>{n1.init($,I),$._zod.onattach.push((U)=>{var Y;(Y=U._zod.bag).multipleOf??(Y.multipleOf=I.value)}),$._zod.check=(U)=>{if(typeof U.value!==typeof I.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof U.value==="bigint"?U.value%I.value===BigInt(0):QO(U.value,I.value)===0)return;U.issues.push({origin:typeof U.value,code:"not_multiple_of",divisor:I.value,input:U.value,inst:$,continue:!I.abort})}}),mO=o("$ZodCheckNumberFormat",($,I)=>{n1.init($,I),I.format=I.format||"float64";let U=I.format?.includes("int"),Y=U?"int":"number",[J,Q]=wO[I.format];$._zod.onattach.push((K)=>{let q=K._zod.bag;if(q.format=I.format,q.minimum=J,q.maximum=Q,U)q.pattern=fO}),$._zod.check=(K)=>{let q=K.value;if(U){if(!Number.isInteger(q)){K.issues.push({expected:Y,format:I.format,code:"invalid_type",continue:!1,input:q,inst:$});return}if(!Number.isSafeInteger(q)){if(q>0)K.issues.push({input:q,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:$,origin:Y,inclusive:!0,continue:!I.abort});else K.issues.push({input:q,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:$,origin:Y,inclusive:!0,continue:!I.abort});return}}if(qQ)K.issues.push({origin:"number",input:q,code:"too_big",maximum:Q,inclusive:!0,inst:$,continue:!I.abort})}}),lO=o("$ZodCheckBigIntFormat",($,I)=>{n1.init($,I);let[U,Y]=VO[I.format];$._zod.onattach.push((J)=>{let Q=J._zod.bag;Q.format=I.format,Q.minimum=U,Q.maximum=Y}),$._zod.check=(J)=>{let Q=J.value;if(QY)J.issues.push({origin:"bigint",input:Q,code:"too_big",maximum:Y,inclusive:!0,inst:$,continue:!I.abort})}}),oO=o("$ZodCheckMaxSize",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.size!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.maximum??Number.POSITIVE_INFINITY;if(I.maximum{let J=Y.value;if(J.size<=I.maximum)return;Y.issues.push({origin:dJ(J),code:"too_big",maximum:I.maximum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),rO=o("$ZodCheckMinSize",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.size!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(I.minimum>J)Y._zod.bag.minimum=I.minimum}),$._zod.check=(Y)=>{let J=Y.value;if(J.size>=I.minimum)return;Y.issues.push({origin:dJ(J),code:"too_small",minimum:I.minimum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),tO=o("$ZodCheckSizeEquals",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.size!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.minimum=I.size,J.maximum=I.size,J.size=I.size}),$._zod.check=(Y)=>{let J=Y.value,Q=J.size;if(Q===I.size)return;let K=Q>I.size;Y.issues.push({origin:dJ(J),...K?{code:"too_big",maximum:I.size}:{code:"too_small",minimum:I.size},inclusive:!0,exact:!0,input:Y.value,inst:$,continue:!I.abort})}}),aO=o("$ZodCheckMaxLength",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.length!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.maximum??Number.POSITIVE_INFINITY;if(I.maximum{let J=Y.value;if(J.length<=I.maximum)return;let K=mJ(J);Y.issues.push({origin:K,code:"too_big",maximum:I.maximum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),sO=o("$ZodCheckMinLength",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.length!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(I.minimum>J)Y._zod.bag.minimum=I.minimum}),$._zod.check=(Y)=>{let J=Y.value;if(J.length>=I.minimum)return;let K=mJ(J);Y.issues.push({origin:K,code:"too_small",minimum:I.minimum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),eO=o("$ZodCheckLengthEquals",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.length!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.minimum=I.length,J.maximum=I.length,J.length=I.length}),$._zod.check=(Y)=>{let J=Y.value,Q=J.length;if(Q===I.length)return;let K=mJ(J),q=Q>I.length;Y.issues.push({origin:K,...q?{code:"too_big",maximum:I.length}:{code:"too_small",minimum:I.length},inclusive:!0,exact:!0,input:Y.value,inst:$,continue:!I.abort})}}),RI=o("$ZodCheckStringFormat",($,I)=>{var U,Y;if(n1.init($,I),$._zod.onattach.push((J)=>{let Q=J._zod.bag;if(Q.format=I.format,I.pattern)Q.patterns??(Q.patterns=new Set),Q.patterns.add(I.pattern)}),I.pattern)(U=$._zod).check??(U.check=(J)=>{if(I.pattern.lastIndex=0,I.pattern.test(J.value))return;J.issues.push({origin:"string",code:"invalid_format",format:I.format,input:J.value,...I.pattern?{pattern:I.pattern.toString()}:{},inst:$,continue:!I.abort})});else(Y=$._zod).check??(Y.check=()=>{})}),$F=o("$ZodCheckRegex",($,I)=>{RI.init($,I),$._zod.check=(U)=>{if(I.pattern.lastIndex=0,I.pattern.test(U.value))return;U.issues.push({origin:"string",code:"invalid_format",format:"regex",input:U.value,pattern:I.pattern.toString(),inst:$,continue:!I.abort})}}),IF=o("$ZodCheckLowerCase",($,I)=>{I.pattern??(I.pattern=pO),RI.init($,I)}),UF=o("$ZodCheckUpperCase",($,I)=>{I.pattern??(I.pattern=cO),RI.init($,I)}),YF=o("$ZodCheckIncludes",($,I)=>{n1.init($,I);let U=A$(I.includes),Y=new RegExp(typeof I.position==="number"?`^.{${I.position}}${U}`:U);I.pattern=Y,$._zod.onattach.push((J)=>{let Q=J._zod.bag;Q.patterns??(Q.patterns=new Set),Q.patterns.add(Y)}),$._zod.check=(J)=>{if(J.value.includes(I.includes,I.position))return;J.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:I.includes,input:J.value,inst:$,continue:!I.abort})}}),JF=o("$ZodCheckStartsWith",($,I)=>{n1.init($,I);let U=new RegExp(`^${A$(I.prefix)}.*`);I.pattern??(I.pattern=U),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.patterns??(J.patterns=new Set),J.patterns.add(U)}),$._zod.check=(Y)=>{if(Y.value.startsWith(I.prefix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:I.prefix,input:Y.value,inst:$,continue:!I.abort})}}),QF=o("$ZodCheckEndsWith",($,I)=>{n1.init($,I);let U=new RegExp(`.*${A$(I.suffix)}$`);I.pattern??(I.pattern=U),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.patterns??(J.patterns=new Set),J.patterns.add(U)}),$._zod.check=(Y)=>{if(Y.value.endsWith(I.suffix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:I.suffix,input:Y.value,inst:$,continue:!I.abort})}});function sx($,I,U){if($.issues.length)I.issues.push(...i6(U,$.issues))}var KF=o("$ZodCheckProperty",($,I)=>{n1.init($,I),$._zod.check=(U)=>{let Y=I.schema._zod.run({value:U.value[I.property],issues:[]},{});if(Y instanceof Promise)return Y.then((J)=>sx(J,U,I.property));sx(Y,U,I.property);return}}),qF=o("$ZodCheckMimeType",($,I)=>{n1.init($,I);let U=new Set(I.mime);$._zod.onattach.push((Y)=>{Y._zod.bag.mime=I.mime}),$._zod.check=(Y)=>{if(U.has(Y.value.type))return;Y.issues.push({code:"invalid_value",values:I.mime,input:Y.value.type,inst:$,continue:!I.abort})}}),HF=o("$ZodCheckOverwrite",($,I)=>{n1.init($,I),$._zod.check=(U)=>{U.value=I.tx(U.value)}});class WG{constructor($=[]){if(this.content=[],this.indent=0,this)this.args=$}indented($){this.indent+=1,$(this),this.indent-=1}write($){if(typeof $==="function"){$(this,{execution:"sync"}),$(this,{execution:"async"});return}let U=$.split(` +\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}});var tV0=O((rq1)=>{var wu=d5().Buffer;rq1._dbcs=l5;var w6=-1,rV0=-2,c$=-10,k6=-1000,_J=Array(256),VH=-1;for(wH=0;wH<256;wH++)_J[wH]=w6;var wH;function l5($,I){if(this.encodingName=$.encodingName,!$)throw Error("DBCS codec is called without the data.");if(!$.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var U=$.table();this.decodeTables=[],this.decodeTables[0]=_J.slice(0),this.decodeTableSeq=[];for(var Y=0;Yk6)throw Error("gb18030 decode tables conflict at byte 2");var G=this.decodeTables[k6-q[H]];for(var W=129;W<=254;W++){if(G[W]===w6)G[W]=k6-Q;else if(G[W]===k6-Q)continue;else if(G[W]>k6)throw Error("gb18030 decode tables conflict at byte 3");var w=this.decodeTables[k6-G[W]];for(var Z=48;Z<=57;Z++)if(w[Z]===w6)w[Z]=rV0}}}}this.defaultCharUnicode=I.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var V={};if($.encodeSkipVals)for(var Y=0;Y<$.encodeSkipVals.length;Y++){var X=$.encodeSkipVals[Y];if(typeof X==="number")V[X]=!0;else for(var H=X.from;H<=X.to;H++)V[H]=!0}if(this._fillEncodeTable(0,0,V),$.encodeAdd){for(var L in $.encodeAdd)if(Object.prototype.hasOwnProperty.call($.encodeAdd,L))this._setEncodeChar(L.charCodeAt(0),$.encodeAdd[L])}if(this.defCharSB=this.encodeTable[0][I.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===w6)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===w6)this.defCharSB=63}l5.prototype.encoder=XD;l5.prototype.decoder=Vu;l5.prototype._getDecodeTrieNode=function($){var I=[];for(;$>0;$>>>=8)I.push($&255);if(I.length==0)I.push(0);var U=this.decodeTables[0];for(var Y=I.length-1;Y>0;Y--){var J=U[I[Y]];if(J==w6)U[I[Y]]=k6-this.decodeTables.length,this.decodeTables.push(U=_J.slice(0));else if(J<=k6)U=this.decodeTables[k6-J];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+$.toString(16))}return U};l5.prototype._addDecodeChunk=function($){var I=parseInt($[0],16),U=this._getDecodeTrieNode(I);I=I&255;for(var Y=1;Y<$.length;Y++){var J=$[Y];if(typeof J==="string")for(var Q=0;Q=55296&&K<56320){var q=J.charCodeAt(Q++);if(q>=56320&&q<57344)U[I++]=65536+(K-55296)*1024+(q-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+$[0])}else if(K>4080&&K<=4095){var H=4095-K+2,G=[];for(var W=0;W255)throw Error("Incorrect chunk in "+this.encodingName+" at addr "+$[0]+": too long"+I)};l5.prototype._getEncodeBucket=function($){var I=$>>8;if(this.encodeTable[I]===void 0)this.encodeTable[I]=_J.slice(0);return this.encodeTable[I]};l5.prototype._setEncodeChar=function($,I){var U=this._getEncodeBucket($),Y=$&255;if(U[Y]<=c$)this.encodeTableSeq[c$-U[Y]][VH]=I;else if(U[Y]==w6)U[Y]=I};l5.prototype._setEncodeSequence=function($,I){var U=$[0],Y=this._getEncodeBucket(U),J=U&255,Q;if(Y[J]<=c$)Q=this.encodeTableSeq[c$-Y[J]];else{if(Q={},Y[J]!==w6)Q[VH]=Y[J];Y[J]=c$-this.encodeTableSeq.length,this.encodeTableSeq.push(Q)}for(var K=1;K<$.length-1;K++){var q=Q[U];if(typeof q==="object")Q=q;else if(Q=Q[U]={},q!==void 0)Q[VH]=q}U=$[$.length-1],Q[U]=I};l5.prototype._fillEncodeTable=function($,I,U){var Y=this.decodeTables[$],J=!1,Q={};for(var K=0;K<256;K++){var q=Y[K],H=I+K;if(U[H])continue;if(q>=0)this._setEncodeChar(q,H),J=!0;else if(q<=k6){var G=k6-q;if(!Q[G]){var W=H<<8>>>0;if(this._fillEncodeTable(G,W,U))J=!0;else Q[G]=!0}}else if(q<=c$)this._setEncodeSequence(this.decodeTableSeq[c$-q],H),J=!0}return J};function XD($,I){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=I.encodeTable,this.encodeTableSeq=I.encodeTableSeq,this.defaultCharSingleByte=I.defCharSB,this.gb18030=I.gb18030}XD.prototype.write=function($){var I=wu.alloc($.length*(this.gb18030?4:3)),U=this.leadSurrogate,Y=this.seqObj,J=-1,Q=0,K=0;while(!0){if(J===-1){if(Q==$.length)break;var q=$.charCodeAt(Q++)}else{var q=J;J=-1}if(q>=55296&&q<57344)if(q<56320)if(U===-1){U=q;continue}else U=q,q=w6;else if(U!==-1)q=65536+(U-55296)*1024+(q-56320),U=-1;else q=w6;else if(U!==-1)J=q,q=w6,U=-1;var H=w6;if(Y!==void 0&&q!=w6){var G=Y[q];if(typeof G==="object"){Y=G;continue}else if(typeof G==="number")H=G;else if(G==null){if(G=Y[VH],G!==void 0)H=G,J=q}Y=void 0}else if(q>=0){var W=this.encodeTable[q>>8];if(W!==void 0)H=W[q&255];if(H<=c$){Y=this.encodeTableSeq[c$-H];continue}if(H==w6&&this.gb18030){var w=Zu(this.gb18030.uChars,q);if(w!=-1){var H=this.gb18030.gbChars[w]+(q-this.gb18030.uChars[w]);I[K++]=129+Math.floor(H/12600),H=H%12600,I[K++]=48+Math.floor(H/1260),H=H%1260,I[K++]=129+Math.floor(H/10),H=H%10,I[K++]=48+H;continue}}}if(H===w6)H=this.defaultCharSingleByte;if(H<256)I[K++]=H;else if(H<65536)I[K++]=H>>8,I[K++]=H&255;else if(H<16777216)I[K++]=H>>16,I[K++]=H>>8&255,I[K++]=H&255;else I[K++]=H>>>24,I[K++]=H>>>16&255,I[K++]=H>>>8&255,I[K++]=H&255}return this.seqObj=Y,this.leadSurrogate=U,I.slice(0,K)};XD.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===void 0)return;var $=wu.alloc(10),I=0;if(this.seqObj){var U=this.seqObj[VH];if(U!==void 0)if(U<256)$[I++]=U;else $[I++]=U>>8,$[I++]=U&255;this.seqObj=void 0}if(this.leadSurrogate!==-1)$[I++]=this.defaultCharSingleByte,this.leadSurrogate=-1;return $.slice(0,I)};XD.prototype.findIdx=Zu;function Vu($,I){this.nodeIdx=0,this.prevBytes=[],this.decodeTables=I.decodeTables,this.decodeTableSeq=I.decodeTableSeq,this.defaultCharUnicode=I.defaultCharUnicode,this.gb18030=I.gb18030}Vu.prototype.write=function($){var I=wu.alloc($.length*2),U=this.nodeIdx,Y=this.prevBytes,J=this.prevBytes.length,Q=-this.prevBytes.length,K;for(var q=0,H=0;q<$.length;q++){var G=q>=0?$[q]:Y[q+J],K=this.decodeTables[U][G];if(K>=0);else if(K===w6)K=this.defaultCharUnicode.charCodeAt(0),q=Q;else if(K===rV0){if(q>=3)var W=($[q-3]-129)*12600+($[q-2]-48)*1260+($[q-1]-129)*10+(G-48);else var W=(Y[q-3+J]-129)*12600+((q-2>=0?$[q-2]:Y[q-2+J])-48)*1260+((q-1>=0?$[q-1]:Y[q-1+J])-129)*10+(G-48);var w=Zu(this.gb18030.gbChars,W);K=this.gb18030.uChars[w]+W-this.gb18030.gbChars[w]}else if(K<=k6){U=k6-K;continue}else if(K<=c$){var Z=this.decodeTableSeq[c$-K];for(var V=0;V>8;K=Z[Z.length-1]}else throw Error("iconv-lite internal error: invalid decoding table value "+K+" at "+U+"/"+G);if(K>=65536){K-=65536;var X=55296|K>>10;I[H++]=X&255,I[H++]=X>>8,K=56320|K&1023}I[H++]=K&255,I[H++]=K>>8,U=0,Q=q+1}return this.nodeIdx=U,this.prevBytes=Q>=0?Array.prototype.slice.call($,Q):Y.slice(Q+J).concat(Array.prototype.slice.call($)),I.slice(0,H).toString("ucs2")};Vu.prototype.end=function(){var $="";while(this.prevBytes.length>0){$+=this.defaultCharUnicode;var I=this.prevBytes.slice(1);if(this.prevBytes=[],this.nodeIdx=0,I.length>0)$+=this.write(I)}return this.prevBytes=[],this.nodeIdx=0,$};function Zu($,I){if($[0]>I)return-1;var U=0,Y=$.length;while(U>1);if($[J]<=I)U=J;else Y=J}return U}});var aV0=O((sS1,aq1)=>{aq1.exports=[["0","\x00",128],["a1","。",62],["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],["81b8","∈∋⊆⊇⊂⊃∪∩"],["81c8","∧∨¬⇒⇔∀∃"],["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["81f0","ʼn♯♭♪†‡¶"],["81fc","◯"],["824f","0",9],["8260","A",25],["8281","a",25],["829f","ぁ",82],["8340","ァ",62],["8380","ム",22],["839f","Α",16,"Σ",6],["83bf","α",16,"σ",6],["8440","А",5,"ЁЖ",25],["8470","а",5,"ёж",7],["8480","о",17],["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["8740","①",19,"Ⅰ",9],["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["877e","㍻"],["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["eeef","ⅰ",9,"¬¦'""],["f040","",62],["f080","",124],["f140","",62],["f180","",124],["f240","",62],["f280","",124],["f340","",62],["f380","",124],["f440","",62],["f480","",124],["f540","",62],["f580","",124],["f640","",62],["f680","",124],["f740","",62],["f780","",124],["f840","",62],["f880","",124],["f940",""],["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]]});var sV0=O((eS1,sq1)=>{sq1.exports=[["0","\x00",127],["8ea1","。",62],["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],["a2a1","◆□■△▲▽▼※〒→←↑↓〓"],["a2ba","∈∋⊆⊇⊂⊃∪∩"],["a2ca","∧∨¬⇒⇔∀∃"],["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["a2f2","ʼn♯♭♪†‡¶"],["a2fe","◯"],["a3b0","0",9],["a3c1","A",25],["a3e1","a",25],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["ada1","①",19,"Ⅰ",9],["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],["f4a1","堯槇遙瑤凜熙"],["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["fcf1","ⅰ",9,"¬¦'""],["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"],["8fa2c2","¡¦¿"],["8fa2eb","ºª©®™¤№"],["8fa6e1","ΆΈΉΊΪ"],["8fa6e7","Ό"],["8fa6e9","ΎΫ"],["8fa6ec","Ώ"],["8fa6f1","άέήίϊΐόςύϋΰώ"],["8fa7c2","Ђ",10,"ЎЏ"],["8fa7f2","ђ",10,"ўџ"],["8fa9a1","ÆĐ"],["8fa9a4","Ħ"],["8fa9a6","IJ"],["8fa9a8","ŁĿ"],["8fa9ab","ŊØŒ"],["8fa9af","ŦÞ"],["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"],["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],["8fabbd","ġĥíìïîǐ"],["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"],["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5],["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"],["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4],["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]]});var LD=O(($g1,eq1)=>{eq1.exports=[["0","\x00",127,"€"],["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11],["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"],["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"],["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5],["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"],["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"],["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"],["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"],["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4],["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6],["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7],["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"],["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5],["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"],["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6],["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4],["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4],["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"],["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"],["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6],["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6],["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"],["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"],["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"],["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"],["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"],["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8],["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"],["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"],["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"],["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"],["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5],["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"],["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"],["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5],["9980","檧檨檪檭",114,"欥欦欨",6],["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"],["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"],["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"],["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5],["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"],["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"],["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6],["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"],["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"],["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4],["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19],["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],["a2a1","ⅰ",9],["a2b1","⒈",19,"⑴",19,"①",9],["a2e5","㈠",9],["a2f1","Ⅰ",11],["a3a1","!"#¥%",88," ̄"],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],["a6ee","︻︼︷︸︱"],["a6f4","︳︴"],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6],["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],["a8bd","ńň"],["a8c0","ɡ"],["a8c5","ㄅ",36],["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],["a959","℡㈱"],["a95c","‐"],["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8],["a980","﹢",4,"﹨﹩﹪﹫"],["a996","〇"],["a9a4","─",75],["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8],["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"],["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4],["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4],["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11],["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"],["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12],["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"],["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"],["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"],["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4],["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9],["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"],["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"],["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16],["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"],["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"],["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"],["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],["bb40","籃",9,"籎",36,"籵",5,"籾",9],["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5],["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],["bd40","紷",54,"絯",7],["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],["be40","継",12,"綧",6,"綯",42],["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],["bf40","緻",62],["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],["c040","繞",35,"纃",23,"纜纝纞"],["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"],["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"],["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"],["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"],["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"],["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10],["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"],["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"],["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"],["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9],["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"],["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5],["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"],["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6],["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],["d440","訞",31,"訿",8,"詉",21],["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],["d540","誁",7,"誋",7,"誔",46],["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],["d640","諤",34,"謈",27],["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],["d740","譆",31,"譧",4,"譭",25],["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"],["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],["d940","貮",62],["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"],["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"],["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7],["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],["dd40","軥",62],["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"],["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"],["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"],["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],["e240","釦",62],["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],["e340","鉆",45,"鉵",16],["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],["e440","銨",5,"銯",24,"鋉",31],["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],["e540","錊",51,"錿",10],["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],["e640","鍬",34,"鎐",27],["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],["e740","鏎",7,"鏗",54],["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"],["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42],["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"],["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7],["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46],["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],["ee40","頏",62],["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4],["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],["f040","餈",4,"餎餏餑",28,"餯",26],["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],["f140","馌馎馚",10,"馦馧馩",47],["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],["f240","駺",62],["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"],["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5],["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],["f540","魼",62],["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],["f640","鯜",62],["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],["f740","鰼",62],["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],["f840","鳣",62],["f880","鴢",32],["f940","鵃",62],["f980","鶂",32],["fa40","鶣",62],["fa80","鷢",32],["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"],["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"],["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6],["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"],["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38],["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"],["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]]});var zu=O((Ig1,$H1)=>{$H1.exports=[["a140","",62],["a180","",32],["a240","",62],["a280","",32],["a2ab","",5],["a2e3","€"],["a2ef",""],["a2fd",""],["a340","",62],["a380","",31," "],["a440","",62],["a480","",32],["a4f4","",10],["a540","",62],["a580","",32],["a5f7","",7],["a640","",62],["a680","",32],["a6b9","",7],["a6d9","",6],["a6ec",""],["a6f3",""],["a6f6","",8],["a740","",62],["a780","",32],["a7c2","",14],["a7f2","",12],["a896","",10],["a8bc","ḿ"],["a8bf","ǹ"],["a8c1",""],["a8ea","",20],["a958",""],["a95b",""],["a95d",""],["a989","〾⿰",11],["a997","",12],["a9f0","",14],["aaa1","",93],["aba1","",93],["aca1","",93],["ada1","",93],["aea1","",93],["afa1","",93],["d7fa","",4],["f8a1","",93],["f9a1","",93],["faa1","",93],["fba1","",93],["fca1","",93],["fda1","",93],["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93],["8135f437",""]]});var eV0=O((Ug1,IH1)=>{IH1.exports={uChars:[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],gbChars:[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]}});var $Z0=O((Yg1,UH1)=>{UH1.exports=[["0","\x00",127],["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"],["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5],["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"],["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18],["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7],["8361","긝",18,"긲긳긵긶긹긻긼"],["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8],["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8],["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18],["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"],["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4],["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"],["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"],["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"],["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10],["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"],["8741","놞",9,"놩",15],["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"],["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4],["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4],["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"],["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"],["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"],["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15],["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"],["8a61","둧",4,"둭",18,"뒁뒂"],["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"],["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"],["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8],["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18],["8c41","똀",15,"똒똓똕똖똗똙",4],["8c61","똞",6,"똦",5,"똭",6,"똵",5],["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16],["8d41","뛃",16,"뛕",8],["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"],["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"],["8e41","랟랡",6,"랪랮",5,"랶랷랹",8],["8e61","럂",4,"럈럊",19],["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7],["8f41","뢅",7,"뢎",17],["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4],["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5],["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"],["9061","륾",5,"릆릈릋릌릏",15],["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"],["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5],["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5],["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6],["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"],["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4],["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"],["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8],["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"],["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8],["9461","봞",5,"봥",6,"봭",12],["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24],["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"],["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"],["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14],["9641","뺸",23,"뻒뻓"],["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8],["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44],["9741","뾃",16,"뾕",8],["9761","뾞",17,"뾱",7],["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"],["9841","쁀",16,"쁒",5,"쁙쁚쁛"],["9861","쁝쁞쁟쁡",6,"쁪",15],["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"],["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"],["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"],["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"],["9a41","숤숥숦숧숪숬숮숰숳숵",16],["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"],["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"],["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8],["9b61","쌳",17,"썆",7],["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"],["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5],["9c61","쏿",8,"쐉",6,"쐑",9],["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12],["9d41","쒪",13,"쒹쒺쒻쒽",8],["9d61","쓆",25],["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"],["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"],["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"],["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"],["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"],["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"],["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"],["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13],["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"],["a141","좥좦좧좩",18,"좾좿죀죁"],["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"],["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],["a241","줐줒",5,"줙",18],["a261","줭",6,"줵",18],["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"],["a361","즑",6,"즚즜즞",16],["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"],["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"],["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12],["a481","쨦쨧쨨쨪",28,"ㄱ",93],["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"],["a561","쩫",17,"쩾",5,"쪅쪆"],["a581","쪇",16,"쪙",14,"ⅰ",9],["a5b0","Ⅰ",9],["a5c1","Α",16,"Σ",6],["a5e1","α",16,"σ",6],["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"],["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6],["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7],["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7],["a761","쬪",22,"쭂쭃쭄"],["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],["a841","쭭",10,"쭺",14],["a861","쮉",18,"쮝",6],["a881","쮤",19,"쮹",11,"ÆÐªĦ"],["a8a6","IJ"],["a8a8","ĿŁØŒºÞŦŊ"],["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"],["a941","쯅",14,"쯕",10],["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18],["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"],["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"],["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"],["aa81","챳챴챶",29,"ぁ",82],["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"],["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5],["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85],["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"],["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4],["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25],["acd1","а",5,"ёж",25],["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7],["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"],["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"],["ae41","췆",5,"췍췎췏췑",16],["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4],["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"],["af41","츬츭츮츯츲츴츶",19],["af61","칊",13,"칚칛칝칞칢",5,"칪칬"],["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"],["b041","캚",5,"캢캦",5,"캮",12],["b061","캻",5,"컂",19],["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"],["b161","켥",6,"켮켲",5,"켹",11],["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"],["b261","쾎",18,"쾢",5,"쾩"],["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"],["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5],["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5],["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"],["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],["b541","킕",14,"킦킧킩킪킫킭",5],["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4],["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],["b641","턅",7,"턎",17],["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"],["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],["b741","텮",13,"텽",6,"톅톆톇톉톊"],["b761","톋",20,"톢톣톥톦톧"],["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],["b841","퇐",7,"퇙",17],["b861","퇫",8,"퇵퇶퇷퇹",13],["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"],["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"],["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"],["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5],["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"],["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"],["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"],["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"],["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"],["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13],["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],["be41","퐸",7,"푁푂푃푅",14],["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"],["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"],["bf41","풞",10,"풪",14],["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"],["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5],["c061","픞",25],["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"],["c161","햌햍햎햏햑",19,"햦햧"],["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"],["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"],["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4],["c361","홢",4,"홨홪",5,"홲홳홵",11],["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"],["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4],["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"],["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4],["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],["c641","힍힎힏힑",6,"힚힜힞",5],["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"],["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]]});var Xu=O((Jg1,YH1)=>{YH1.exports=[["0","\x00",127],["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21],["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10],["a3a1","ㄐ",25,"˙ˉˊˇˋ"],["a3e1","€"],["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]]});var IZ0=O((Qg1,JH1)=>{JH1.exports=[["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],["88a1","ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"],["8940","𪎩𡅅"],["8943","攊"],["8946","丽滝鵎釟"],["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],["89a1","琑糼緍楆竉刧"],["89ab","醌碸酞肼"],["89b0","贋胶𠧧"],["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],["89c1","溚舾甙"],["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],["8a40","𧶄唥"],["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],["8aac","䠋𠆩㿺塳𢶍"],["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],["8ac9","𪘁𠸉𢫏𢳉"],["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],["8ca1","𣏹椙橃𣱣泿"],["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],["8cc9","顨杫䉶圽"],["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],["8d40","𠮟"],["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],["9fae","酙隁酜"],["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],["9fc1","𤤙盖鮝个𠳔莾衂"],["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],["9fe7","毺蠘罸"],["9feb","嘠𪙊蹷齓"],["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],["a055","𡠻𦸅"],["a058","詾𢔛"],["a05b","惽癧髗鵄鍮鮏蟵"],["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],["a0a1","嵗𨯂迚𨸹"],["a0a6","僙𡵆礆匲阸𠼻䁥"],["a0ae","矾"],["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],["a3c0","␀",31,"␡"],["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],["c740","す",58,"ァアィイ"],["c7a1","ゥ",81,"А",5,"ЁЖ",4],["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],["c8a1","龰冈龱𧘇"],["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],["c8f5","ʃɐɛɔɵœøŋʊɪ"],["f9fe","■"],["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]]});var YZ0=O((Kg1,UZ0)=>{UZ0.exports={shiftjis:{type:"_dbcs",table:function(){return aV0()},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return sV0()},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return LD()}},gbk:{type:"_dbcs",table:function(){return LD().concat(zu())}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return LD().concat(zu())},gb18030:function(){return eV0()},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return $Z0()}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return Xu()}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return Xu().concat(IZ0())},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}});var KZ0=O((QZ0,zH)=>{var QH1=kh(),JZ0=[hV0(),xV0(),bV0(),pV0(),cV0(),mV0(),oV0(),tV0(),YZ0()];for(ZH=0;ZH{var qZ0=d5().Buffer;HZ0.exports=function($){var I=$.Transform;function U(J,Q){this.conv=J,Q=Q||{},Q.decodeStrings=!1,I.call(this,Q)}U.prototype=Object.create(I.prototype,{constructor:{value:U}}),U.prototype._transform=function(J,Q,K){if(typeof J!=="string")return K(Error("Iconv encoding stream needs strings as its input."));try{var q=this.conv.write(J);if(q&&q.length)this.push(q);K()}catch(H){K(H)}},U.prototype._flush=function(J){try{var Q=this.conv.end();if(Q&&Q.length)this.push(Q);J()}catch(K){J(K)}},U.prototype.collect=function(J){var Q=[];return this.on("error",J),this.on("data",function(K){Q.push(K)}),this.on("end",function(){J(null,qZ0.concat(Q))}),this};function Y(J,Q){this.conv=J,Q=Q||{},Q.encoding=this.encoding="utf8",I.call(this,Q)}return Y.prototype=Object.create(I.prototype,{constructor:{value:Y}}),Y.prototype._transform=function(J,Q,K){if(!qZ0.isBuffer(J)&&!(J instanceof Uint8Array))return K(Error("Iconv decoding stream needs buffers as its input."));try{var q=this.conv.write(J);if(q&&q.length)this.push(q,this.encoding);K()}catch(H){K(H)}},Y.prototype._flush=function(J){try{var Q=this.conv.end();if(Q&&Q.length)this.push(Q,this.encoding);J()}catch(K){J(K)}},Y.prototype.collect=function(J){var Q="";return this.on("error",J),this.on("data",function(K){Q+=K}),this.on("end",function(){J(null,Q)}),this},{IconvLiteEncoderStream:U,IconvLiteDecoderStream:Y}}});var DZ0=O((wH1,m0)=>{var WZ0=d5().Buffer,wZ0=SV0(),WH1=kh();wH1.encodings=null;wH1.defaultCharUnicode="�";wH1.defaultCharSingleByte="?";wH1.encode=function(I,U,Y){I=""+(I||"");var J=wH1.getEncoder(U,Y),Q=J.write(I),K=J.end();return K&&K.length>0?WZ0.concat([Q,K]):Q};wH1.decode=function(I,U,Y){if(typeof I==="string"){if(!wH1.skipDecodeWarning)console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),wH1.skipDecodeWarning=!0;I=WZ0.from(""+(I||""),"binary")}var J=wH1.getDecoder(U,Y),Q=J.write(I),K=J.end();return K?Q+K:Q};wH1.encodingExists=function(I){try{return wH1.getCodec(I),!0}catch(U){return!1}};wH1.toEncoding=wH1.encode;wH1.fromEncoding=wH1.decode;wH1._codecDataCache={__proto__:null};wH1.getCodec=function(I){if(!wH1.encodings){var U=KZ0();wH1.encodings={__proto__:null},WH1(wH1.encodings,U)}var Y=wH1._canonicalizeEncoding(I),J={};while(!0){var Q=wH1._codecDataCache[Y];if(Q)return Q;var K=wH1.encodings[Y];switch(typeof K){case"string":Y=K;break;case"object":for(var q in K)J[q]=K[q];if(!J.encodingName)J.encodingName=Y;Y=K.type;break;case"function":if(!J.encodingName)J.encodingName=Y;return Q=new K(J,wH1),wH1._codecDataCache[J.encodingName]=Q,Q;default:throw Error("Encoding not recognized: '"+I+"' (searched as: '"+Y+"')")}}};wH1._canonicalizeEncoding=function($){return(""+$).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};wH1.getEncoder=function(I,U){var Y=wH1.getCodec(I),J=new Y.encoder(U,Y);if(Y.bomAware&&U&&U.addBOM)J=new wZ0.PrependBOM(J,U);return J};wH1.getDecoder=function(I,U){var Y=wH1.getCodec(I),J=new Y.decoder(U,Y);if(Y.bomAware&&!(U&&U.stripBOM===!1))J=new wZ0.StripBOM(J,U);return J};wH1.enableStreamingAPI=function(I){if(wH1.supportsStreams)return;var U=GZ0()(I);wH1.IconvLiteEncoderStream=U.IconvLiteEncoderStream,wH1.IconvLiteDecoderStream=U.IconvLiteDecoderStream,wH1.encodeStream=function(J,Q){return new wH1.IconvLiteEncoderStream(wH1.getEncoder(J,Q),Q)},wH1.decodeStream=function(J,Q){return new wH1.IconvLiteDecoderStream(wH1.getDecoder(J,Q),Q)},wH1.supportsStreams=!0};var DD;try{DD=t("stream")}catch($){}if(DD&&DD.Transform)wH1.enableStreamingAPI(DD);else wH1.encodeStream=wH1.decodeStream=function(){throw Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}});import{dirname as CH,resolve as pX0}from"node:path";import{fileURLToPath as _W1}from"node:url";var Y5={};$5(Y5,{version:()=>WF,util:()=>D0,treeifyError:()=>XO,toJSONSchema:()=>rG,toDotPath:()=>nk,safeParseAsync:()=>$Q,safeParse:()=>BI,safeEncodeAsync:()=>rk,safeEncode:()=>lk,safeDecodeAsync:()=>tk,safeDecode:()=>ok,registry:()=>NG,regexes:()=>Q$,process:()=>S1,prettifyError:()=>LO,parseAsync:()=>eJ,parse:()=>sJ,meta:()=>UA,locales:()=>wQ,isValidJWT:()=>Ox,isValidBase64URL:()=>Dx,isValidBase64:()=>SF,initializeContext:()=>Q9,globalRegistry:()=>l4,globalConfig:()=>v7,formatError:()=>aJ,flattenError:()=>tJ,finalize:()=>q9,extractDefs:()=>K9,encodeAsync:()=>dk,encode:()=>pk,describe:()=>IA,decodeAsync:()=>mk,decode:()=>ck,createToJSONSchemaMethod:()=>JA,createStandardJSONSchemaMethod:()=>pI,config:()=>z4,clone:()=>T6,_xor:()=>CO0,_xid:()=>_G,_void:()=>mM,_uuidv7:()=>EG,_uuidv6:()=>TG,_uuidv4:()=>PG,_uuid:()=>AG,_url:()=>ZQ,_uppercase:()=>SI,_unknown:()=>cM,_union:()=>jO0,_undefined:()=>bM,_ulid:()=>CG,_uint64:()=>fM,_uint32:()=>gM,_tuple:()=>gO0,_trim:()=>xI,_transform:()=>iO0,_toUpperCase:()=>iI,_toLowerCase:()=>fI,_templateLiteral:()=>rO0,_symbol:()=>iM,_superRefine:()=>$A,_success:()=>dO0,_stringbool:()=>YA,_stringFormat:()=>nI,_string:()=>FM,_startsWith:()=>yI,_slugify:()=>bI,_size:()=>S7,_set:()=>uO0,_safeParseAsync:()=>vI,_safeParse:()=>EI,_safeEncodeAsync:()=>QG,_safeEncode:()=>YG,_safeDecodeAsync:()=>KG,_safeDecode:()=>JG,_regex:()=>CI,_refine:()=>eM,_record:()=>yO0,_readonly:()=>oO0,_property:()=>dG,_promise:()=>aO0,_positive:()=>bG,_pipe:()=>lO0,_parseAsync:()=>TI,_parse:()=>PI,_overwrite:()=>m$,_optional:()=>bO0,_number:()=>vM,_nullable:()=>nO0,_null:()=>nM,_normalize:()=>kI,_nonpositive:()=>pG,_nonoptional:()=>cO0,_nonnegative:()=>cG,_never:()=>dM,_negative:()=>nG,_nativeEnum:()=>xO0,_nanoid:()=>vG,_nan:()=>rM,_multipleOf:()=>Y9,_minSize:()=>L8,_minLength:()=>U5,_min:()=>B6,_mime:()=>uI,_maxSize:()=>J9,_maxLength:()=>g7,_max:()=>K$,_map:()=>hO0,_mac:()=>MM,_lte:()=>K$,_lt:()=>z8,_lowercase:()=>_I,_literal:()=>fO0,_length:()=>y7,_lazy:()=>tO0,_ksuid:()=>SG,_jwt:()=>iG,_isoTime:()=>EM,_isoDuration:()=>BM,_isoDateTime:()=>PM,_isoDate:()=>TM,_ipv6:()=>yG,_ipv4:()=>gG,_intersection:()=>SO0,_int64:()=>xM,_int32:()=>SM,_int:()=>jM,_includes:()=>gI,_guid:()=>VQ,_gte:()=>B6,_gt:()=>X8,_float64:()=>_M,_float32:()=>CM,_file:()=>aM,_enum:()=>kO0,_endsWith:()=>hI,_encodeAsync:()=>IG,_encode:()=>eH,_emoji:()=>BG,_email:()=>MG,_e164:()=>fG,_discriminatedUnion:()=>_O0,_default:()=>pO0,_decodeAsync:()=>UG,_decode:()=>$G,_date:()=>lM,_custom:()=>sM,_cuid2:()=>jG,_cuid:()=>RG,_coercedString:()=>NM,_coercedNumber:()=>RM,_coercedDate:()=>oM,_coercedBoolean:()=>hM,_coercedBigint:()=>kM,_cidrv6:()=>uG,_cidrv4:()=>hG,_check:()=>vx,_catch:()=>mO0,_boolean:()=>yM,_bigint:()=>uM,_base64url:()=>xG,_base64:()=>kG,_array:()=>tM,_any:()=>pM,TimePrecision:()=>AM,NEVER:()=>YO,JSONSchemaGenerator:()=>nA,JSONSchema:()=>Rx,Doc:()=>WG,$output:()=>LM,$input:()=>DM,$constructor:()=>o,$brand:()=>JO,$ZodXor:()=>tF,$ZodXID:()=>MF,$ZodVoid:()=>mF,$ZodUnknown:()=>cF,$ZodUnion:()=>QQ,$ZodUndefined:()=>bF,$ZodUUID:()=>ZF,$ZodURL:()=>XF,$ZodULID:()=>NF,$ZodType:()=>p0,$ZodTuple:()=>DG,$ZodTransform:()=>QN,$ZodTemplateLiteral:()=>LN,$ZodSymbol:()=>iF,$ZodSuccess:()=>wN,$ZodStringFormat:()=>k1,$ZodString:()=>_7,$ZodSet:()=>IN,$ZodRegistry:()=>OM,$ZodRecord:()=>eF,$ZodRealError:()=>n6,$ZodReadonly:()=>XN,$ZodPromise:()=>ON,$ZodPreprocess:()=>zN,$ZodPrefault:()=>GN,$ZodPipe:()=>FG,$ZodOptional:()=>OG,$ZodObjectJIT:()=>rF,$ZodObject:()=>Mx,$ZodNumberFormat:()=>xF,$ZodNumber:()=>XG,$ZodNullable:()=>qN,$ZodNull:()=>nF,$ZodNonOptional:()=>WN,$ZodNever:()=>dF,$ZodNanoID:()=>DF,$ZodNaN:()=>ZN,$ZodMap:()=>$N,$ZodMAC:()=>jF,$ZodLiteral:()=>YN,$ZodLazy:()=>FN,$ZodKSUID:()=>AF,$ZodJWT:()=>uF,$ZodIntersection:()=>sF,$ZodISOTime:()=>EF,$ZodISODuration:()=>BF,$ZodISODateTime:()=>PF,$ZodISODate:()=>TF,$ZodIPv6:()=>RF,$ZodIPv4:()=>vF,$ZodGUID:()=>VF,$ZodFunction:()=>DN,$ZodFile:()=>JN,$ZodExactOptional:()=>KN,$ZodError:()=>rJ,$ZodEnum:()=>UN,$ZodEncodeError:()=>R7,$ZodEmoji:()=>LF,$ZodEmail:()=>zF,$ZodE164:()=>hF,$ZodDiscriminatedUnion:()=>aF,$ZodDefault:()=>HN,$ZodDate:()=>lF,$ZodCustomStringFormat:()=>kF,$ZodCustom:()=>NN,$ZodCodec:()=>KQ,$ZodCheckUpperCase:()=>YF,$ZodCheckStringFormat:()=>RI,$ZodCheckStartsWith:()=>QF,$ZodCheckSizeEquals:()=>aO,$ZodCheckRegex:()=>IF,$ZodCheckProperty:()=>qF,$ZodCheckOverwrite:()=>GF,$ZodCheckNumberFormat:()=>lO,$ZodCheckMultipleOf:()=>mO,$ZodCheckMinSize:()=>tO,$ZodCheckMinLength:()=>eO,$ZodCheckMimeType:()=>HF,$ZodCheckMaxSize:()=>rO,$ZodCheckMaxLength:()=>sO,$ZodCheckLowerCase:()=>UF,$ZodCheckLessThan:()=>HG,$ZodCheckLengthEquals:()=>$F,$ZodCheckIncludes:()=>JF,$ZodCheckGreaterThan:()=>GG,$ZodCheckEndsWith:()=>KF,$ZodCheckBigIntFormat:()=>oO,$ZodCheck:()=>n1,$ZodCatch:()=>VN,$ZodCUID2:()=>FF,$ZodCUID:()=>OF,$ZodCIDRv6:()=>_F,$ZodCIDRv4:()=>CF,$ZodBoolean:()=>JQ,$ZodBigIntFormat:()=>fF,$ZodBigInt:()=>LG,$ZodBase64URL:()=>yF,$ZodBase64:()=>gF,$ZodAsyncError:()=>Z8,$ZodArray:()=>oF,$ZodAny:()=>pF});var uk,YO=Object.freeze({status:"aborted"});function o($,I,U){function Y(q,H){if(!q._zod)Object.defineProperty(q,"_zod",{value:{def:H,constr:K,traits:new Set},enumerable:!1});if(q._zod.traits.has($))return;q._zod.traits.add($),I(q,H);let G=K.prototype,W=Object.keys(G);for(let w=0;w{if(U?.Parent&&q instanceof U.Parent)return!0;return q?._zod?.traits?.has($)}}),Object.defineProperty(K,"name",{value:$}),K}var JO=Symbol("zod_brand");class Z8 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class R7 extends Error{constructor($){super(`Encountered unidirectional transform during encode: ${$}`);this.name="ZodEncodeError"}}(uk=globalThis).__zod_globalConfig??(uk.__zod_globalConfig={});var v7=globalThis.__zod_globalConfig;function z4($){if($)Object.assign(v7,$);return v7}var D0={};$5(D0,{unwrapMessage:()=>pJ,uint8ArrayToHex:()=>UD0,uint8ArrayToBase64url:()=>$D0,uint8ArrayToBase64:()=>fk,stringifyPrimitive:()=>Z0,slugify:()=>qO,shallowClone:()=>GO,safeExtend:()=>oL0,required:()=>aL0,randomString:()=>bL0,propertyKeyTypes:()=>mJ,promiseAllObject:()=>iL0,primitiveTypes:()=>WO,prefixIssues:()=>b6,pick:()=>dL0,partial:()=>tL0,parsedType:()=>X0,optionalKeys:()=>wO,omit:()=>mL0,objectClone:()=>kL0,numKeys:()=>nL0,nullish:()=>e5,normalizeParams:()=>N0,mergeDefs:()=>I5,merge:()=>rL0,jsonStringifyReplacer:()=>NI,joinValues:()=>I0,issue:()=>AI,isPlainObject:()=>I9,isObject:()=>j7,hexToUint8Array:()=>ID0,getSizableOrigin:()=>lJ,getParsedType:()=>pL0,getLengthableOrigin:()=>oJ,getEnumValues:()=>cJ,getElementAtPath:()=>fL0,floatSafeRemainder:()=>KO,finalizeIssue:()=>E6,extend:()=>lL0,explicitlyAborted:()=>zO,escapeRegex:()=>P$,esc:()=>aH,defineLazy:()=>e0,createTransparentProxy:()=>cL0,cloneDef:()=>xL0,clone:()=>T6,cleanRegex:()=>dJ,cleanEnum:()=>sL0,captureStackTrace:()=>sH,cached:()=>MI,base64urlToUint8Array:()=>eL0,base64ToUint8Array:()=>xk,assignProp:()=>$9,assertNotEqual:()=>gL0,assertNever:()=>hL0,assertIs:()=>yL0,assertEqual:()=>SL0,assert:()=>uL0,allowsEval:()=>HO,aborted:()=>U9,NUMBER_FORMAT_RANGES:()=>VO,Class:()=>ik,BIGINT_FORMAT_RANGES:()=>ZO});function SL0($){return $}function gL0($){return $}function yL0($){}function hL0($){throw Error("Unexpected value in exhaustive check")}function uL0($){}function cJ($){let I=Object.values($).filter((Y)=>typeof Y==="number");return Object.entries($).filter(([Y,J])=>I.indexOf(+Y)===-1).map(([Y,J])=>J)}function I0($,I="|"){return $.map((U)=>Z0(U)).join(I)}function NI($,I){if(typeof I==="bigint")return I.toString();return I}function MI($){return{get value(){{let U=$();return Object.defineProperty(this,"value",{value:U}),U}throw Error("cached value already set")}}}function e5($){return $===null||$===void 0}function dJ($){let I=$.startsWith("^")?1:0,U=$.endsWith("$")?$.length-1:$.length;return $.slice(I,U)}function KO($,I){let U=$/I,Y=Math.round(U),J=Number.EPSILON*Math.max(Math.abs(U),1);if(Math.abs(U-Y)U?.[Y],$)}function iL0($){let I=Object.keys($),U=I.map((Y)=>$[Y]);return Promise.all(U).then((Y)=>{let J={};for(let Q=0;Q{};function j7($){return typeof $==="object"&&$!==null&&!Array.isArray($)}var HO=MI(()=>{if(v7.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch($){return!1}});function I9($){if(j7($)===!1)return!1;let I=$.constructor;if(I===void 0)return!0;if(typeof I!=="function")return!0;let U=I.prototype;if(j7(U)===!1)return!1;if(Object.prototype.hasOwnProperty.call(U,"isPrototypeOf")===!1)return!1;return!0}function GO($){if(I9($))return{...$};if(Array.isArray($))return[...$];if($ instanceof Map)return new Map($);if($ instanceof Set)return new Set($);return $}function nL0($){let I=0;for(let U in $)if(Object.prototype.hasOwnProperty.call($,U))I++;return I}var pL0=($)=>{let I=typeof $;switch(I){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN($)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray($))return"array";if($===null)return"null";if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return"promise";if(typeof Map<"u"&&$ instanceof Map)return"map";if(typeof Set<"u"&&$ instanceof Set)return"set";if(typeof Date<"u"&&$ instanceof Date)return"date";if(typeof File<"u"&&$ instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${I}`)}},mJ=new Set(["string","number","symbol"]),WO=new Set(["string","number","bigint","boolean","symbol","undefined"]);function P$($){return $.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function T6($,I,U){let Y=new $._zod.constr(I??$._zod.def);if(!I||U?.parent)Y._zod.parent=$;return Y}function N0($){let I=$;if(!I)return{};if(typeof I==="string")return{error:()=>I};if(I?.message!==void 0){if(I?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");I.error=I.message}if(delete I.message,typeof I.error==="string")return{...I,error:()=>I.error};return I}function cL0($){let I;return new Proxy({},{get(U,Y,J){return I??(I=$()),Reflect.get(I,Y,J)},set(U,Y,J,Q){return I??(I=$()),Reflect.set(I,Y,J,Q)},has(U,Y){return I??(I=$()),Reflect.has(I,Y)},deleteProperty(U,Y){return I??(I=$()),Reflect.deleteProperty(I,Y)},ownKeys(U){return I??(I=$()),Reflect.ownKeys(I)},getOwnPropertyDescriptor(U,Y){return I??(I=$()),Reflect.getOwnPropertyDescriptor(I,Y)},defineProperty(U,Y,J){return I??(I=$()),Reflect.defineProperty(I,Y,J)}})}function Z0($){if(typeof $==="bigint")return $.toString()+"n";if(typeof $==="string")return`"${$}"`;return`${$}`}function wO($){return Object.keys($).filter((I)=>{return $[I]._zod.optin==="optional"&&$[I]._zod.optout==="optional"})}var VO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ZO={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function dL0($,I){let U=$._zod.def,Y=U.checks;if(Y&&Y.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let Q=I5($._zod.def,{get shape(){let K={};for(let q in I){if(!(q in U.shape))throw Error(`Unrecognized key: "${q}"`);if(!I[q])continue;K[q]=U.shape[q]}return $9(this,"shape",K),K},checks:[]});return T6($,Q)}function mL0($,I){let U=$._zod.def,Y=U.checks;if(Y&&Y.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let Q=I5($._zod.def,{get shape(){let K={...$._zod.def.shape};for(let q in I){if(!(q in U.shape))throw Error(`Unrecognized key: "${q}"`);if(!I[q])continue;delete K[q]}return $9(this,"shape",K),K},checks:[]});return T6($,Q)}function lL0($,I){if(!I9(I))throw Error("Invalid input to extend: expected a plain object");let U=$._zod.def.checks;if(U&&U.length>0){let Q=$._zod.def.shape;for(let K in I)if(Object.getOwnPropertyDescriptor(Q,K)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let J=I5($._zod.def,{get shape(){let Q={...$._zod.def.shape,...I};return $9(this,"shape",Q),Q}});return T6($,J)}function oL0($,I){if(!I9(I))throw Error("Invalid input to safeExtend: expected a plain object");let U=I5($._zod.def,{get shape(){let Y={...$._zod.def.shape,...I};return $9(this,"shape",Y),Y}});return T6($,U)}function rL0($,I){if($._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let U=I5($._zod.def,{get shape(){let Y={...$._zod.def.shape,...I._zod.def.shape};return $9(this,"shape",Y),Y},get catchall(){return I._zod.def.catchall},checks:I._zod.def.checks??[]});return T6($,U)}function tL0($,I,U){let J=I._zod.def.checks;if(J&&J.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let K=I5(I._zod.def,{get shape(){let q=I._zod.def.shape,H={...q};if(U)for(let G in U){if(!(G in q))throw Error(`Unrecognized key: "${G}"`);if(!U[G])continue;H[G]=$?new $({type:"optional",innerType:q[G]}):q[G]}else for(let G in q)H[G]=$?new $({type:"optional",innerType:q[G]}):q[G];return $9(this,"shape",H),H},checks:[]});return T6(I,K)}function aL0($,I,U){let Y=I5(I._zod.def,{get shape(){let J=I._zod.def.shape,Q={...J};if(U)for(let K in U){if(!(K in Q))throw Error(`Unrecognized key: "${K}"`);if(!U[K])continue;Q[K]=new $({type:"nonoptional",innerType:J[K]})}else for(let K in J)Q[K]=new $({type:"nonoptional",innerType:J[K]});return $9(this,"shape",Q),Q}});return T6(I,Y)}function U9($,I=0){if($.aborted===!0)return!0;for(let U=I;U<$.issues.length;U++)if($.issues[U]?.continue!==!0)return!0;return!1}function zO($,I=0){if($.aborted===!0)return!0;for(let U=I;U<$.issues.length;U++)if($.issues[U]?.continue===!1)return!0;return!1}function b6($,I){return I.map((U)=>{var Y;return(Y=U).path??(Y.path=[]),U.path.unshift($),U})}function pJ($){return typeof $==="string"?$:$?.message}function E6($,I,U){let Y=$.message?$.message:pJ($.inst?._zod.def?.error?.($))??pJ(I?.error?.($))??pJ(U.customError?.($))??pJ(U.localeError?.($))??"Invalid input",{inst:J,continue:Q,input:K,...q}=$;if(q.path??(q.path=[]),q.message=Y,I?.reportInput)q.input=K;return q}function lJ($){if($ instanceof Set)return"set";if($ instanceof Map)return"map";if($ instanceof File)return"file";return"unknown"}function oJ($){if(Array.isArray($))return"array";if(typeof $==="string")return"string";return"unknown"}function X0($){let I=typeof $;switch(I){case"number":return Number.isNaN($)?"nan":"number";case"object":{if($===null)return"null";if(Array.isArray($))return"array";let U=$;if(U&&Object.getPrototypeOf(U)!==Object.prototype&&"constructor"in U&&U.constructor)return U.constructor.name}}return I}function AI(...$){let[I,U,Y]=$;if(typeof I==="string")return{message:I,code:"custom",input:U,inst:Y};return{...I}}function sL0($){return Object.entries($).filter(([I,U])=>{return Number.isNaN(Number.parseInt(I,10))}).map((I)=>I[1])}function xk($){let I=atob($),U=new Uint8Array(I.length);for(let Y=0;YI.toString(16).padStart(2,"0")).join("")}class ik{constructor(...$){}}var bk=($,I)=>{$.name="$ZodError",Object.defineProperty($,"_zod",{value:$._zod,enumerable:!1}),Object.defineProperty($,"issues",{value:I,enumerable:!1}),$.message=JSON.stringify(I,NI,2),Object.defineProperty($,"toString",{value:()=>$.message,enumerable:!1})},rJ=o("$ZodError",bk),n6=o("$ZodError",bk,{Parent:Error});function tJ($,I=(U)=>U.message){let U={},Y=[];for(let J of $.issues)if(J.path.length>0)U[J.path[0]]=U[J.path[0]]||[],U[J.path[0]].push(I(J));else Y.push(I(J));return{formErrors:Y,fieldErrors:U}}function aJ($,I=(U)=>U.message){let U={_errors:[]},Y=(J,Q=[])=>{for(let K of J.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((q)=>Y({issues:q},[...Q,...K.path]));else if(K.code==="invalid_key")Y({issues:K.issues},[...Q,...K.path]);else if(K.code==="invalid_element")Y({issues:K.issues},[...Q,...K.path]);else{let q=[...Q,...K.path];if(q.length===0)U._errors.push(I(K));else{let H=U,G=0;while(GU.message){let U={errors:[]},Y=(J,Q=[])=>{var K,q;for(let H of J.issues)if(H.code==="invalid_union"&&H.errors.length)H.errors.map((G)=>Y({issues:G},[...Q,...H.path]));else if(H.code==="invalid_key")Y({issues:H.issues},[...Q,...H.path]);else if(H.code==="invalid_element")Y({issues:H.issues},[...Q,...H.path]);else{let G=[...Q,...H.path];if(G.length===0){U.errors.push(I(H));continue}let W=U,w=0;while(wtypeof Y==="object"?Y.key:Y);for(let Y of U)if(typeof Y==="number")I.push(`[${Y}]`);else if(typeof Y==="symbol")I.push(`[${JSON.stringify(String(Y))}]`);else if(/[^\w$]/.test(Y))I.push(`[${JSON.stringify(Y)}]`);else{if(I.length)I.push(".");I.push(Y)}return I.join("")}function LO($){let I=[],U=[...$.issues].sort((Y,J)=>(Y.path??[]).length-(J.path??[]).length);for(let Y of U)if(I.push(`✖ ${Y.message}`),Y.path?.length)I.push(` → at ${nk(Y.path)}`);return I.join(` +`)}var PI=($)=>(I,U,Y,J)=>{let Q=Y?{...Y,async:!1}:{async:!1},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)throw new Z8;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((H)=>E6(H,Q,z4())));throw sH(q,J?.callee),q}return K.value},sJ=PI(n6),TI=($)=>async(I,U,Y,J)=>{let Q=Y?{...Y,async:!0}:{async:!0},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)K=await K;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((H)=>E6(H,Q,z4())));throw sH(q,J?.callee),q}return K.value},eJ=TI(n6),EI=($)=>(I,U,Y)=>{let J=Y?{...Y,async:!1}:{async:!1},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)throw new Z8;return Q.issues.length?{success:!1,error:new($??rJ)(Q.issues.map((K)=>E6(K,J,z4())))}:{success:!0,data:Q.value}},BI=EI(n6),vI=($)=>async(I,U,Y)=>{let J=Y?{...Y,async:!0}:{async:!0},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)Q=await Q;return Q.issues.length?{success:!1,error:new $(Q.issues.map((K)=>E6(K,J,z4())))}:{success:!0,data:Q.value}},$Q=vI(n6),eH=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return PI($)(I,U,J)},pk=eH(n6),$G=($)=>(I,U,Y)=>{return PI($)(I,U,Y)},ck=$G(n6),IG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return TI($)(I,U,J)},dk=IG(n6),UG=($)=>async(I,U,Y)=>{return TI($)(I,U,Y)},mk=UG(n6),YG=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return EI($)(I,U,J)},lk=YG(n6),JG=($)=>(I,U,Y)=>{return EI($)(I,U,Y)},ok=JG(n6),QG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return vI($)(I,U,J)},rk=QG(n6),KG=($)=>async(I,U,Y)=>{return vI($)(I,U,Y)},tk=KG(n6);var Q$={};$5(Q$,{xid:()=>NO,uuid7:()=>qD0,uuid6:()=>KD0,uuid4:()=>QD0,uuid:()=>C7,uppercase:()=>dO,unicodeEmail:()=>ak,undefined:()=>pO,ulid:()=>FO,time:()=>uO,string:()=>xO,sha512_hex:()=>RD0,sha512_base64url:()=>CD0,sha512_base64:()=>jD0,sha384_hex:()=>ED0,sha384_base64url:()=>vD0,sha384_base64:()=>BD0,sha256_hex:()=>AD0,sha256_base64url:()=>TD0,sha256_base64:()=>PD0,sha1_hex:()=>FD0,sha1_base64url:()=>MD0,sha1_base64:()=>ND0,rfc5322Email:()=>GD0,number:()=>IQ,null:()=>nO,nanoid:()=>AO,md5_hex:()=>LD0,md5_base64url:()=>OD0,md5_base64:()=>DD0,mac:()=>jO,lowercase:()=>cO,ksuid:()=>MO,ipv6:()=>RO,ipv4:()=>vO,integer:()=>iO,idnEmail:()=>WD0,httpProtocol:()=>gO,html5Email:()=>HD0,hostname:()=>ZD0,hex:()=>XD0,guid:()=>TO,extendedDuration:()=>JD0,emoji:()=>BO,email:()=>EO,e164:()=>yO,duration:()=>PO,domain:()=>zD0,datetime:()=>kO,date:()=>hO,cuid2:()=>OO,cuid:()=>DO,cidrv6:()=>_O,cidrv4:()=>CO,browserEmail:()=>wD0,boolean:()=>bO,bigint:()=>fO,base64url:()=>qG,base64:()=>SO});var DO=/^[cC][0-9a-z]{6,}$/,OO=/^[0-9a-z]+$/,FO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,NO=/^[0-9a-vA-V]{20}$/,MO=/^[A-Za-z0-9]{27}$/,AO=/^[a-zA-Z0-9_-]{21}$/,PO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,JD0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,TO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,C7=($)=>{if(!$)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${$}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},QD0=C7(4),KD0=C7(6),qD0=C7(7),EO=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,HD0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,GD0=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ak=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,WD0=ak,wD0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,VD0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function BO(){return new RegExp(VD0,"u")}var vO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,RO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jO=($)=>{let I=P$($??":");return new RegExp(`^(?:[0-9A-F]{2}${I}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${I}){5}[0-9a-f]{2}$`)},CO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_O=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,SO=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qG=/^[A-Za-z0-9_-]*$/,ZD0=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zD0=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,gO=/^https?$/,yO=/^\+[1-9]\d{6,14}$/,sk="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",hO=new RegExp(`^${sk}$`);function ek($){return typeof $.precision==="number"?$.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":$.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${$.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function uO($){return new RegExp(`^${ek($)}$`)}function kO($){let I=ek({precision:$.precision}),U=["Z"];if($.local)U.push("");if($.offset)U.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let Y=`${I}(?:${U.join("|")})`;return new RegExp(`^${sk}T(?:${Y})$`)}var xO=($)=>{let I=$?`[\\s\\S]{${$?.minimum??0},${$?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${I}$`)},fO=/^-?\d+n?$/,iO=/^-?\d+$/,IQ=/^-?\d+(?:\.\d+)?$/,bO=/^(?:true|false)$/i,nO=/^null$/i;var pO=/^undefined$/i;var cO=/^[^A-Z]*$/,dO=/^[^a-z]*$/,XD0=/^[0-9a-fA-F]*$/;function UQ($,I){return new RegExp(`^[A-Za-z0-9+/]{${$}}${I}$`)}function YQ($){return new RegExp(`^[A-Za-z0-9_-]{${$}}$`)}var LD0=/^[0-9a-fA-F]{32}$/,DD0=UQ(22,"=="),OD0=YQ(22),FD0=/^[0-9a-fA-F]{40}$/,ND0=UQ(27,"="),MD0=YQ(27),AD0=/^[0-9a-fA-F]{64}$/,PD0=UQ(43,"="),TD0=YQ(43),ED0=/^[0-9a-fA-F]{96}$/,BD0=UQ(64,""),vD0=YQ(64),RD0=/^[0-9a-fA-F]{128}$/,jD0=UQ(86,"=="),CD0=YQ(86);var n1=o("$ZodCheck",($,I)=>{var U;$._zod??($._zod={}),$._zod.def=I,(U=$._zod).onattach??(U.onattach=[])}),Ix={number:"number",bigint:"bigint",object:"date"},HG=o("$ZodCheckLessThan",($,I)=>{n1.init($,I);let U=Ix[typeof I.value];$._zod.onattach.push((Y)=>{let J=Y._zod.bag,Q=(I.inclusive?J.maximum:J.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(I.value{if(I.inclusive?Y.value<=I.value:Y.value{n1.init($,I);let U=Ix[typeof I.value];$._zod.onattach.push((Y)=>{let J=Y._zod.bag,Q=(I.inclusive?J.minimum:J.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(I.value>Q)if(I.inclusive)J.minimum=I.value;else J.exclusiveMinimum=I.value}),$._zod.check=(Y)=>{if(I.inclusive?Y.value>=I.value:Y.value>I.value)return;Y.issues.push({origin:U,code:"too_small",minimum:typeof I.value==="object"?I.value.getTime():I.value,input:Y.value,inclusive:I.inclusive,inst:$,continue:!I.abort})}}),mO=o("$ZodCheckMultipleOf",($,I)=>{n1.init($,I),$._zod.onattach.push((U)=>{var Y;(Y=U._zod.bag).multipleOf??(Y.multipleOf=I.value)}),$._zod.check=(U)=>{if(typeof U.value!==typeof I.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof U.value==="bigint"?U.value%I.value===BigInt(0):KO(U.value,I.value)===0)return;U.issues.push({origin:typeof U.value,code:"not_multiple_of",divisor:I.value,input:U.value,inst:$,continue:!I.abort})}}),lO=o("$ZodCheckNumberFormat",($,I)=>{n1.init($,I),I.format=I.format||"float64";let U=I.format?.includes("int"),Y=U?"int":"number",[J,Q]=VO[I.format];$._zod.onattach.push((K)=>{let q=K._zod.bag;if(q.format=I.format,q.minimum=J,q.maximum=Q,U)q.pattern=iO}),$._zod.check=(K)=>{let q=K.value;if(U){if(!Number.isInteger(q)){K.issues.push({expected:Y,format:I.format,code:"invalid_type",continue:!1,input:q,inst:$});return}if(!Number.isSafeInteger(q)){if(q>0)K.issues.push({input:q,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:$,origin:Y,inclusive:!0,continue:!I.abort});else K.issues.push({input:q,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:$,origin:Y,inclusive:!0,continue:!I.abort});return}}if(qQ)K.issues.push({origin:"number",input:q,code:"too_big",maximum:Q,inclusive:!0,inst:$,continue:!I.abort})}}),oO=o("$ZodCheckBigIntFormat",($,I)=>{n1.init($,I);let[U,Y]=ZO[I.format];$._zod.onattach.push((J)=>{let Q=J._zod.bag;Q.format=I.format,Q.minimum=U,Q.maximum=Y}),$._zod.check=(J)=>{let Q=J.value;if(QY)J.issues.push({origin:"bigint",input:Q,code:"too_big",maximum:Y,inclusive:!0,inst:$,continue:!I.abort})}}),rO=o("$ZodCheckMaxSize",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.size!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.maximum??Number.POSITIVE_INFINITY;if(I.maximum{let J=Y.value;if(J.size<=I.maximum)return;Y.issues.push({origin:lJ(J),code:"too_big",maximum:I.maximum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),tO=o("$ZodCheckMinSize",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.size!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(I.minimum>J)Y._zod.bag.minimum=I.minimum}),$._zod.check=(Y)=>{let J=Y.value;if(J.size>=I.minimum)return;Y.issues.push({origin:lJ(J),code:"too_small",minimum:I.minimum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),aO=o("$ZodCheckSizeEquals",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.size!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.minimum=I.size,J.maximum=I.size,J.size=I.size}),$._zod.check=(Y)=>{let J=Y.value,Q=J.size;if(Q===I.size)return;let K=Q>I.size;Y.issues.push({origin:lJ(J),...K?{code:"too_big",maximum:I.size}:{code:"too_small",minimum:I.size},inclusive:!0,exact:!0,input:Y.value,inst:$,continue:!I.abort})}}),sO=o("$ZodCheckMaxLength",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.length!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.maximum??Number.POSITIVE_INFINITY;if(I.maximum{let J=Y.value;if(J.length<=I.maximum)return;let K=oJ(J);Y.issues.push({origin:K,code:"too_big",maximum:I.maximum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),eO=o("$ZodCheckMinLength",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.length!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(I.minimum>J)Y._zod.bag.minimum=I.minimum}),$._zod.check=(Y)=>{let J=Y.value;if(J.length>=I.minimum)return;let K=oJ(J);Y.issues.push({origin:K,code:"too_small",minimum:I.minimum,inclusive:!0,input:J,inst:$,continue:!I.abort})}}),$F=o("$ZodCheckLengthEquals",($,I)=>{var U;n1.init($,I),(U=$._zod.def).when??(U.when=(Y)=>{let J=Y.value;return!e5(J)&&J.length!==void 0}),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.minimum=I.length,J.maximum=I.length,J.length=I.length}),$._zod.check=(Y)=>{let J=Y.value,Q=J.length;if(Q===I.length)return;let K=oJ(J),q=Q>I.length;Y.issues.push({origin:K,...q?{code:"too_big",maximum:I.length}:{code:"too_small",minimum:I.length},inclusive:!0,exact:!0,input:Y.value,inst:$,continue:!I.abort})}}),RI=o("$ZodCheckStringFormat",($,I)=>{var U,Y;if(n1.init($,I),$._zod.onattach.push((J)=>{let Q=J._zod.bag;if(Q.format=I.format,I.pattern)Q.patterns??(Q.patterns=new Set),Q.patterns.add(I.pattern)}),I.pattern)(U=$._zod).check??(U.check=(J)=>{if(I.pattern.lastIndex=0,I.pattern.test(J.value))return;J.issues.push({origin:"string",code:"invalid_format",format:I.format,input:J.value,...I.pattern?{pattern:I.pattern.toString()}:{},inst:$,continue:!I.abort})});else(Y=$._zod).check??(Y.check=()=>{})}),IF=o("$ZodCheckRegex",($,I)=>{RI.init($,I),$._zod.check=(U)=>{if(I.pattern.lastIndex=0,I.pattern.test(U.value))return;U.issues.push({origin:"string",code:"invalid_format",format:"regex",input:U.value,pattern:I.pattern.toString(),inst:$,continue:!I.abort})}}),UF=o("$ZodCheckLowerCase",($,I)=>{I.pattern??(I.pattern=cO),RI.init($,I)}),YF=o("$ZodCheckUpperCase",($,I)=>{I.pattern??(I.pattern=dO),RI.init($,I)}),JF=o("$ZodCheckIncludes",($,I)=>{n1.init($,I);let U=P$(I.includes),Y=new RegExp(typeof I.position==="number"?`^.{${I.position}}${U}`:U);I.pattern=Y,$._zod.onattach.push((J)=>{let Q=J._zod.bag;Q.patterns??(Q.patterns=new Set),Q.patterns.add(Y)}),$._zod.check=(J)=>{if(J.value.includes(I.includes,I.position))return;J.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:I.includes,input:J.value,inst:$,continue:!I.abort})}}),QF=o("$ZodCheckStartsWith",($,I)=>{n1.init($,I);let U=new RegExp(`^${P$(I.prefix)}.*`);I.pattern??(I.pattern=U),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.patterns??(J.patterns=new Set),J.patterns.add(U)}),$._zod.check=(Y)=>{if(Y.value.startsWith(I.prefix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:I.prefix,input:Y.value,inst:$,continue:!I.abort})}}),KF=o("$ZodCheckEndsWith",($,I)=>{n1.init($,I);let U=new RegExp(`.*${P$(I.suffix)}$`);I.pattern??(I.pattern=U),$._zod.onattach.push((Y)=>{let J=Y._zod.bag;J.patterns??(J.patterns=new Set),J.patterns.add(U)}),$._zod.check=(Y)=>{if(Y.value.endsWith(I.suffix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:I.suffix,input:Y.value,inst:$,continue:!I.abort})}});function $x($,I,U){if($.issues.length)I.issues.push(...b6(U,$.issues))}var qF=o("$ZodCheckProperty",($,I)=>{n1.init($,I),$._zod.check=(U)=>{let Y=I.schema._zod.run({value:U.value[I.property],issues:[]},{});if(Y instanceof Promise)return Y.then((J)=>$x(J,U,I.property));$x(Y,U,I.property);return}}),HF=o("$ZodCheckMimeType",($,I)=>{n1.init($,I);let U=new Set(I.mime);$._zod.onattach.push((Y)=>{Y._zod.bag.mime=I.mime}),$._zod.check=(Y)=>{if(U.has(Y.value.type))return;Y.issues.push({code:"invalid_value",values:I.mime,input:Y.value.type,inst:$,continue:!I.abort})}}),GF=o("$ZodCheckOverwrite",($,I)=>{n1.init($,I),$._zod.check=(U)=>{U.value=I.tx(U.value)}});class WG{constructor($=[]){if(this.content=[],this.indent=0,this)this.args=$}indented($){this.indent+=1,$(this),this.indent-=1}write($){if(typeof $==="function"){$(this,{execution:"sync"}),$(this,{execution:"async"});return}let U=$.split(` `).filter((Q)=>Q),Y=Math.min(...U.map((Q)=>Q.length-Q.trimStart().length)),J=U.map((Q)=>Q.slice(Y)).map((Q)=>" ".repeat(this.indent*2)+Q);for(let Q of J)this.content.push(Q)}compile(){let $=Function,I=this?.args,Y=[...(this?.content??[""]).map((J)=>` ${J}`)];return new $(...I,Y.join(` -`))}}var GF={major:4,minor:4,patch:3};var n0=o("$ZodType",($,I)=>{var U;$??($={}),$._zod.def=I,$._zod.bag=$._zod.bag||{},$._zod.version=GF;let Y=[...$._zod.def.checks??[]];if($._zod.traits.has("$ZodCheck"))Y.unshift($);for(let J of Y)for(let Q of J._zod.onattach)Q($);if(Y.length===0)(U=$._zod).deferred??(U.deferred=[]),$._zod.deferred?.push(()=>{$._zod.run=$._zod.parse});else{let J=(K,q,H)=>{let G=U9(K),W;for(let w of q){if(w._zod.def.when){if(ZO(K))continue;if(!w._zod.def.when(K))continue}else if(G)continue;let Z=K.issues.length,V=w._zod.check(K);if(V instanceof Promise&&H?.async===!1)throw new Z8;if(W||V instanceof Promise)W=(W??Promise.resolve()).then(async()=>{if(await V,K.issues.length===Z)return;if(!G)G=U9(K,Z)});else{if(K.issues.length===Z)continue;if(!G)G=U9(K,Z)}}if(W)return W.then(()=>{return K});return K},Q=(K,q,H)=>{if(U9(K))return K.aborted=!0,K;let G=J(q,Y,H);if(G instanceof Promise){if(H.async===!1)throw new Z8;return G.then((W)=>$._zod.parse(W,H))}return $._zod.parse(G,H)};$._zod.run=(K,q)=>{if(q.skipChecks)return $._zod.parse(K,q);if(q.direction==="backward"){let G=$._zod.parse({value:K.value,issues:[]},{...q,skipChecks:!0});if(G instanceof Promise)return G.then((W)=>{return Q(W,K,q)});return Q(G,K,q)}let H=$._zod.parse(K,q);if(H instanceof Promise){if(q.async===!1)throw new Z8;return H.then((G)=>J(G,Y,q))}return J(H,Y,q)}}e0($,"~standard",()=>({validate:(J)=>{try{let Q=BI($,J);return Q.success?{value:Q.data}:{issues:Q.error?.issues}}catch(Q){return sJ($,J).then((K)=>K.success?{value:K.data}:{issues:K.error?.issues})}},vendor:"zod",version:1}))}),_7=o("$ZodString",($,I)=>{n0.init($,I),$._zod.pattern=[...$?._zod.bag?.patterns??[]].pop()??xO($._zod.bag),$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=String(U.value)}catch(J){}if(typeof U.value==="string")return U;return U.issues.push({expected:"string",code:"invalid_type",input:U.value,inst:$}),U}}),x1=o("$ZodStringFormat",($,I)=>{RI.init($,I),_7.init($,I)}),wF=o("$ZodGUID",($,I)=>{I.pattern??(I.pattern=PO),x1.init($,I)}),VF=o("$ZodUUID",($,I)=>{if(I.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[I.version];if(Y===void 0)throw Error(`Invalid UUID version: "${I.version}"`);I.pattern??(I.pattern=C7(Y))}else I.pattern??(I.pattern=C7());x1.init($,I)}),ZF=o("$ZodEmail",($,I)=>{I.pattern??(I.pattern=TO),x1.init($,I)}),zF=o("$ZodURL",($,I)=>{x1.init($,I),$._zod.check=(U)=>{try{let Y=U.value.trim();if(!I.normalize&&I.protocol?.source===SO.source){if(!/^https?:\/\//i.test(Y)){U.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:U.value,inst:$,continue:!I.abort});return}}let J=new URL(Y);if(I.hostname){if(I.hostname.lastIndex=0,!I.hostname.test(J.hostname))U.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I.hostname.source,input:U.value,inst:$,continue:!I.abort})}if(I.protocol){if(I.protocol.lastIndex=0,!I.protocol.test(J.protocol.endsWith(":")?J.protocol.slice(0,-1):J.protocol))U.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:I.protocol.source,input:U.value,inst:$,continue:!I.abort})}if(I.normalize)U.value=J.href;else U.value=Y;return}catch(Y){U.issues.push({code:"invalid_format",format:"url",input:U.value,inst:$,continue:!I.abort})}}}),XF=o("$ZodEmoji",($,I)=>{I.pattern??(I.pattern=EO()),x1.init($,I)}),LF=o("$ZodNanoID",($,I)=>{I.pattern??(I.pattern=MO),x1.init($,I)}),DF=o("$ZodCUID",($,I)=>{I.pattern??(I.pattern=LO),x1.init($,I)}),OF=o("$ZodCUID2",($,I)=>{I.pattern??(I.pattern=DO),x1.init($,I)}),FF=o("$ZodULID",($,I)=>{I.pattern??(I.pattern=OO),x1.init($,I)}),NF=o("$ZodXID",($,I)=>{I.pattern??(I.pattern=FO),x1.init($,I)}),MF=o("$ZodKSUID",($,I)=>{I.pattern??(I.pattern=NO),x1.init($,I)}),AF=o("$ZodISODateTime",($,I)=>{I.pattern??(I.pattern=uO(I)),x1.init($,I)}),PF=o("$ZodISODate",($,I)=>{I.pattern??(I.pattern=yO),x1.init($,I)}),TF=o("$ZodISOTime",($,I)=>{I.pattern??(I.pattern=hO(I)),x1.init($,I)}),EF=o("$ZodISODuration",($,I)=>{I.pattern??(I.pattern=AO),x1.init($,I)}),BF=o("$ZodIPv4",($,I)=>{I.pattern??(I.pattern=BO),x1.init($,I),$._zod.bag.format="ipv4"}),vF=o("$ZodIPv6",($,I)=>{I.pattern??(I.pattern=vO),x1.init($,I),$._zod.bag.format="ipv6",$._zod.check=(U)=>{try{new URL(`http://[${U.value}]`)}catch{U.issues.push({code:"invalid_format",format:"ipv6",input:U.value,inst:$,continue:!I.abort})}}}),RF=o("$ZodMAC",($,I)=>{I.pattern??(I.pattern=RO(I.delimiter)),x1.init($,I),$._zod.bag.format="mac"}),jF=o("$ZodCIDRv4",($,I)=>{I.pattern??(I.pattern=jO),x1.init($,I)}),CF=o("$ZodCIDRv6",($,I)=>{I.pattern??(I.pattern=CO),x1.init($,I),$._zod.check=(U)=>{let Y=U.value.split("/");try{if(Y.length!==2)throw Error();let[J,Q]=Y;if(!Q)throw Error();let K=Number(Q);if(`${K}`!==Q)throw Error();if(K<0||K>128)throw Error();new URL(`http://[${J}]`)}catch{U.issues.push({code:"invalid_format",format:"cidrv6",input:U.value,inst:$,continue:!I.abort})}}});function _F($){if($==="")return!0;if(/\s/.test($))return!1;if($.length%4!==0)return!1;try{return atob($),!0}catch{return!1}}var SF=o("$ZodBase64",($,I)=>{I.pattern??(I.pattern=_O),x1.init($,I),$._zod.bag.contentEncoding="base64",$._zod.check=(U)=>{if(_F(U.value))return;U.issues.push({code:"invalid_format",format:"base64",input:U.value,inst:$,continue:!I.abort})}});function Xk($){if(!qG.test($))return!1;let I=$.replace(/[-_]/g,(Y)=>Y==="-"?"+":"/"),U=I.padEnd(Math.ceil(I.length/4)*4,"=");return _F(U)}var gF=o("$ZodBase64URL",($,I)=>{I.pattern??(I.pattern=qG),x1.init($,I),$._zod.bag.contentEncoding="base64url",$._zod.check=(U)=>{if(Xk(U.value))return;U.issues.push({code:"invalid_format",format:"base64url",input:U.value,inst:$,continue:!I.abort})}}),yF=o("$ZodE164",($,I)=>{I.pattern??(I.pattern=gO),x1.init($,I)});function Lk($,I=null){try{let U=$.split(".");if(U.length!==3)return!1;let[Y]=U;if(!Y)return!1;let J=JSON.parse(atob(Y));if("typ"in J&&J?.typ!=="JWT")return!1;if(!J.alg)return!1;if(I&&(!("alg"in J)||J.alg!==I))return!1;return!0}catch{return!1}}var hF=o("$ZodJWT",($,I)=>{x1.init($,I),$._zod.check=(U)=>{if(Lk(U.value,I.alg))return;U.issues.push({code:"invalid_format",format:"jwt",input:U.value,inst:$,continue:!I.abort})}}),uF=o("$ZodCustomStringFormat",($,I)=>{x1.init($,I),$._zod.check=(U)=>{if(I.fn(U.value))return;U.issues.push({code:"invalid_format",format:I.format,input:U.value,inst:$,continue:!I.abort})}}),XG=o("$ZodNumber",($,I)=>{n0.init($,I),$._zod.pattern=$._zod.bag.pattern??eJ,$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=Number(U.value)}catch(K){}let J=U.value;if(typeof J==="number"&&!Number.isNaN(J)&&Number.isFinite(J))return U;let Q=typeof J==="number"?Number.isNaN(J)?"NaN":!Number.isFinite(J)?"Infinity":void 0:void 0;return U.issues.push({expected:"number",code:"invalid_type",input:J,inst:$,...Q?{received:Q}:{}}),U}}),xF=o("$ZodNumberFormat",($,I)=>{mO.init($,I),XG.init($,I)}),UQ=o("$ZodBoolean",($,I)=>{n0.init($,I),$._zod.pattern=bO,$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=Boolean(U.value)}catch(Q){}let J=U.value;if(typeof J==="boolean")return U;return U.issues.push({expected:"boolean",code:"invalid_type",input:J,inst:$}),U}}),LG=o("$ZodBigInt",($,I)=>{n0.init($,I),$._zod.pattern=kO,$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=BigInt(U.value)}catch(J){}if(typeof U.value==="bigint")return U;return U.issues.push({expected:"bigint",code:"invalid_type",input:U.value,inst:$}),U}}),kF=o("$ZodBigIntFormat",($,I)=>{lO.init($,I),LG.init($,I)}),fF=o("$ZodSymbol",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(typeof J==="symbol")return U;return U.issues.push({expected:"symbol",code:"invalid_type",input:J,inst:$}),U}}),bF=o("$ZodUndefined",($,I)=>{n0.init($,I),$._zod.pattern=nO,$._zod.values=new Set([void 0]),$._zod.parse=(U,Y)=>{let J=U.value;if(typeof J>"u")return U;return U.issues.push({expected:"undefined",code:"invalid_type",input:J,inst:$}),U}}),iF=o("$ZodNull",($,I)=>{n0.init($,I),$._zod.pattern=iO,$._zod.values=new Set([null]),$._zod.parse=(U,Y)=>{let J=U.value;if(J===null)return U;return U.issues.push({expected:"null",code:"invalid_type",input:J,inst:$}),U}}),nF=o("$ZodAny",($,I)=>{n0.init($,I),$._zod.parse=(U)=>U}),pF=o("$ZodUnknown",($,I)=>{n0.init($,I),$._zod.parse=(U)=>U}),cF=o("$ZodNever",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{return U.issues.push({expected:"never",code:"invalid_type",input:U.value,inst:$}),U}}),dF=o("$ZodVoid",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(typeof J>"u")return U;return U.issues.push({expected:"void",code:"invalid_type",input:J,inst:$}),U}}),mF=o("$ZodDate",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=new Date(U.value)}catch(q){}let J=U.value,Q=J instanceof Date;if(Q&&!Number.isNaN(J.getTime()))return U;return U.issues.push({expected:"date",code:"invalid_type",input:J,...Q?{received:"Invalid Date"}:{},inst:$}),U}});function Ik($,I,U){if($.issues.length)I.issues.push(...i6(U,$.issues));I.value[U]=$.value}var lF=o("$ZodArray",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!Array.isArray(J))return U.issues.push({expected:"array",code:"invalid_type",input:J,inst:$}),U;U.value=Array(J.length);let Q=[];for(let K=0;KIk(G,U,K)));else Ik(H,U,K)}if(Q.length)return Promise.all(Q).then(()=>U);return U}});function zG($,I,U,Y,J,Q){let K=U in Y;if($.issues.length){if(J&&Q&&!K)return;I.issues.push(...i6(U,$.issues))}if(!K&&!J){if(!$.issues.length)I.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[U]});return}if($.value===void 0){if(K)I.value[U]=void 0}else I.value[U]=$.value}function Dk($){let I=Object.keys($.shape);for(let Y of I)if(!$.shape?.[Y]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${Y}": expected a Zod schema`);let U=WO($.shape);return{...$,keys:I,keySet:new Set(I),numKeys:I.length,optionalKeys:new Set(U)}}function Ok($,I,U,Y,J,Q){let K=[],q=J.keySet,H=J.catchall._zod,G=H.def.type,W=H.optin==="optional",w=H.optout==="optional";for(let Z in I){if(Z==="__proto__")continue;if(q.has(Z))continue;if(G==="never"){K.push(Z);continue}let V=H.run({value:I[Z],issues:[]},Y);if(V instanceof Promise)$.push(V.then((X)=>zG(X,U,Z,I,W,w)));else zG(V,U,Z,I,W,w)}if(K.length)U.issues.push({code:"unrecognized_keys",keys:K,input:I,inst:Q});if(!$.length)return U;return Promise.all($).then(()=>{return U})}var Fk=o("$ZodObject",($,I)=>{if(n0.init($,I),!Object.getOwnPropertyDescriptor(I,"shape")?.get){let q=I.shape;Object.defineProperty(I,"shape",{get:()=>{let H={...q};return Object.defineProperty(I,"shape",{value:H}),H}})}let Y=MI(()=>Dk(I));e0($._zod,"propValues",()=>{let q=I.shape,H={};for(let G in q){let W=q[G]._zod;if(W.values){H[G]??(H[G]=new Set);for(let w of W.values)H[G].add(w)}}return H});let J=j7,Q=I.catchall,K;$._zod.parse=(q,H)=>{K??(K=Y.value);let G=q.value;if(!J(G))return q.issues.push({expected:"object",code:"invalid_type",input:G,inst:$}),q;q.value={};let W=[],w=K.shape;for(let Z of K.keys){let V=w[Z],X=V._zod.optin==="optional",L=V._zod.optout==="optional",D=V._zod.run({value:G[Z],issues:[]},H);if(D instanceof Promise)W.push(D.then((F)=>zG(F,q,Z,G,X,L)));else zG(D,q,Z,G,X,L)}if(!Q)return W.length?Promise.all(W).then(()=>q):q;return Ok(W,G,q,H,Y.value,$)}}),oF=o("$ZodObjectJIT",($,I)=>{Fk.init($,I);let U=$._zod.parse,Y=MI(()=>Dk(I)),J=(Z)=>{let V=new WG(["shape","payload","ctx"]),X=Y.value,L=(E)=>{let A=aH(E);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};V.write("const input = payload.value;");let D=Object.create(null),F=0;for(let E of X.keys)D[E]=`key_${F++}`;V.write("const newResult = {};");for(let E of X.keys){let A=D[E],R=aH(E),k=Z[E],y=k?._zod?.optin==="optional",f=k?._zod?.optout==="optional";if(V.write(`const ${A} = ${L(E)};`),y&&f)V.write(` +`))}}var WF={major:4,minor:4,patch:3};var p0=o("$ZodType",($,I)=>{var U;$??($={}),$._zod.def=I,$._zod.bag=$._zod.bag||{},$._zod.version=WF;let Y=[...$._zod.def.checks??[]];if($._zod.traits.has("$ZodCheck"))Y.unshift($);for(let J of Y)for(let Q of J._zod.onattach)Q($);if(Y.length===0)(U=$._zod).deferred??(U.deferred=[]),$._zod.deferred?.push(()=>{$._zod.run=$._zod.parse});else{let J=(K,q,H)=>{let G=U9(K),W;for(let w of q){if(w._zod.def.when){if(zO(K))continue;if(!w._zod.def.when(K))continue}else if(G)continue;let Z=K.issues.length,V=w._zod.check(K);if(V instanceof Promise&&H?.async===!1)throw new Z8;if(W||V instanceof Promise)W=(W??Promise.resolve()).then(async()=>{if(await V,K.issues.length===Z)return;if(!G)G=U9(K,Z)});else{if(K.issues.length===Z)continue;if(!G)G=U9(K,Z)}}if(W)return W.then(()=>{return K});return K},Q=(K,q,H)=>{if(U9(K))return K.aborted=!0,K;let G=J(q,Y,H);if(G instanceof Promise){if(H.async===!1)throw new Z8;return G.then((W)=>$._zod.parse(W,H))}return $._zod.parse(G,H)};$._zod.run=(K,q)=>{if(q.skipChecks)return $._zod.parse(K,q);if(q.direction==="backward"){let G=$._zod.parse({value:K.value,issues:[]},{...q,skipChecks:!0});if(G instanceof Promise)return G.then((W)=>{return Q(W,K,q)});return Q(G,K,q)}let H=$._zod.parse(K,q);if(H instanceof Promise){if(q.async===!1)throw new Z8;return H.then((G)=>J(G,Y,q))}return J(H,Y,q)}}e0($,"~standard",()=>({validate:(J)=>{try{let Q=BI($,J);return Q.success?{value:Q.data}:{issues:Q.error?.issues}}catch(Q){return $Q($,J).then((K)=>K.success?{value:K.data}:{issues:K.error?.issues})}},vendor:"zod",version:1}))}),_7=o("$ZodString",($,I)=>{p0.init($,I),$._zod.pattern=[...$?._zod.bag?.patterns??[]].pop()??xO($._zod.bag),$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=String(U.value)}catch(J){}if(typeof U.value==="string")return U;return U.issues.push({expected:"string",code:"invalid_type",input:U.value,inst:$}),U}}),k1=o("$ZodStringFormat",($,I)=>{RI.init($,I),_7.init($,I)}),VF=o("$ZodGUID",($,I)=>{I.pattern??(I.pattern=TO),k1.init($,I)}),ZF=o("$ZodUUID",($,I)=>{if(I.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[I.version];if(Y===void 0)throw Error(`Invalid UUID version: "${I.version}"`);I.pattern??(I.pattern=C7(Y))}else I.pattern??(I.pattern=C7());k1.init($,I)}),zF=o("$ZodEmail",($,I)=>{I.pattern??(I.pattern=EO),k1.init($,I)}),XF=o("$ZodURL",($,I)=>{k1.init($,I),$._zod.check=(U)=>{try{let Y=U.value.trim();if(!I.normalize&&I.protocol?.source===gO.source){if(!/^https?:\/\//i.test(Y)){U.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:U.value,inst:$,continue:!I.abort});return}}let J=new URL(Y);if(I.hostname){if(I.hostname.lastIndex=0,!I.hostname.test(J.hostname))U.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I.hostname.source,input:U.value,inst:$,continue:!I.abort})}if(I.protocol){if(I.protocol.lastIndex=0,!I.protocol.test(J.protocol.endsWith(":")?J.protocol.slice(0,-1):J.protocol))U.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:I.protocol.source,input:U.value,inst:$,continue:!I.abort})}if(I.normalize)U.value=J.href;else U.value=Y;return}catch(Y){U.issues.push({code:"invalid_format",format:"url",input:U.value,inst:$,continue:!I.abort})}}}),LF=o("$ZodEmoji",($,I)=>{I.pattern??(I.pattern=BO()),k1.init($,I)}),DF=o("$ZodNanoID",($,I)=>{I.pattern??(I.pattern=AO),k1.init($,I)}),OF=o("$ZodCUID",($,I)=>{I.pattern??(I.pattern=DO),k1.init($,I)}),FF=o("$ZodCUID2",($,I)=>{I.pattern??(I.pattern=OO),k1.init($,I)}),NF=o("$ZodULID",($,I)=>{I.pattern??(I.pattern=FO),k1.init($,I)}),MF=o("$ZodXID",($,I)=>{I.pattern??(I.pattern=NO),k1.init($,I)}),AF=o("$ZodKSUID",($,I)=>{I.pattern??(I.pattern=MO),k1.init($,I)}),PF=o("$ZodISODateTime",($,I)=>{I.pattern??(I.pattern=kO(I)),k1.init($,I)}),TF=o("$ZodISODate",($,I)=>{I.pattern??(I.pattern=hO),k1.init($,I)}),EF=o("$ZodISOTime",($,I)=>{I.pattern??(I.pattern=uO(I)),k1.init($,I)}),BF=o("$ZodISODuration",($,I)=>{I.pattern??(I.pattern=PO),k1.init($,I)}),vF=o("$ZodIPv4",($,I)=>{I.pattern??(I.pattern=vO),k1.init($,I),$._zod.bag.format="ipv4"}),RF=o("$ZodIPv6",($,I)=>{I.pattern??(I.pattern=RO),k1.init($,I),$._zod.bag.format="ipv6",$._zod.check=(U)=>{try{new URL(`http://[${U.value}]`)}catch{U.issues.push({code:"invalid_format",format:"ipv6",input:U.value,inst:$,continue:!I.abort})}}}),jF=o("$ZodMAC",($,I)=>{I.pattern??(I.pattern=jO(I.delimiter)),k1.init($,I),$._zod.bag.format="mac"}),CF=o("$ZodCIDRv4",($,I)=>{I.pattern??(I.pattern=CO),k1.init($,I)}),_F=o("$ZodCIDRv6",($,I)=>{I.pattern??(I.pattern=_O),k1.init($,I),$._zod.check=(U)=>{let Y=U.value.split("/");try{if(Y.length!==2)throw Error();let[J,Q]=Y;if(!Q)throw Error();let K=Number(Q);if(`${K}`!==Q)throw Error();if(K<0||K>128)throw Error();new URL(`http://[${J}]`)}catch{U.issues.push({code:"invalid_format",format:"cidrv6",input:U.value,inst:$,continue:!I.abort})}}});function SF($){if($==="")return!0;if(/\s/.test($))return!1;if($.length%4!==0)return!1;try{return atob($),!0}catch{return!1}}var gF=o("$ZodBase64",($,I)=>{I.pattern??(I.pattern=SO),k1.init($,I),$._zod.bag.contentEncoding="base64",$._zod.check=(U)=>{if(SF(U.value))return;U.issues.push({code:"invalid_format",format:"base64",input:U.value,inst:$,continue:!I.abort})}});function Dx($){if(!qG.test($))return!1;let I=$.replace(/[-_]/g,(Y)=>Y==="-"?"+":"/"),U=I.padEnd(Math.ceil(I.length/4)*4,"=");return SF(U)}var yF=o("$ZodBase64URL",($,I)=>{I.pattern??(I.pattern=qG),k1.init($,I),$._zod.bag.contentEncoding="base64url",$._zod.check=(U)=>{if(Dx(U.value))return;U.issues.push({code:"invalid_format",format:"base64url",input:U.value,inst:$,continue:!I.abort})}}),hF=o("$ZodE164",($,I)=>{I.pattern??(I.pattern=yO),k1.init($,I)});function Ox($,I=null){try{let U=$.split(".");if(U.length!==3)return!1;let[Y]=U;if(!Y)return!1;let J=JSON.parse(atob(Y));if("typ"in J&&J?.typ!=="JWT")return!1;if(!J.alg)return!1;if(I&&(!("alg"in J)||J.alg!==I))return!1;return!0}catch{return!1}}var uF=o("$ZodJWT",($,I)=>{k1.init($,I),$._zod.check=(U)=>{if(Ox(U.value,I.alg))return;U.issues.push({code:"invalid_format",format:"jwt",input:U.value,inst:$,continue:!I.abort})}}),kF=o("$ZodCustomStringFormat",($,I)=>{k1.init($,I),$._zod.check=(U)=>{if(I.fn(U.value))return;U.issues.push({code:"invalid_format",format:I.format,input:U.value,inst:$,continue:!I.abort})}}),XG=o("$ZodNumber",($,I)=>{p0.init($,I),$._zod.pattern=$._zod.bag.pattern??IQ,$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=Number(U.value)}catch(K){}let J=U.value;if(typeof J==="number"&&!Number.isNaN(J)&&Number.isFinite(J))return U;let Q=typeof J==="number"?Number.isNaN(J)?"NaN":!Number.isFinite(J)?"Infinity":void 0:void 0;return U.issues.push({expected:"number",code:"invalid_type",input:J,inst:$,...Q?{received:Q}:{}}),U}}),xF=o("$ZodNumberFormat",($,I)=>{lO.init($,I),XG.init($,I)}),JQ=o("$ZodBoolean",($,I)=>{p0.init($,I),$._zod.pattern=bO,$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=Boolean(U.value)}catch(Q){}let J=U.value;if(typeof J==="boolean")return U;return U.issues.push({expected:"boolean",code:"invalid_type",input:J,inst:$}),U}}),LG=o("$ZodBigInt",($,I)=>{p0.init($,I),$._zod.pattern=fO,$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=BigInt(U.value)}catch(J){}if(typeof U.value==="bigint")return U;return U.issues.push({expected:"bigint",code:"invalid_type",input:U.value,inst:$}),U}}),fF=o("$ZodBigIntFormat",($,I)=>{oO.init($,I),LG.init($,I)}),iF=o("$ZodSymbol",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(typeof J==="symbol")return U;return U.issues.push({expected:"symbol",code:"invalid_type",input:J,inst:$}),U}}),bF=o("$ZodUndefined",($,I)=>{p0.init($,I),$._zod.pattern=pO,$._zod.values=new Set([void 0]),$._zod.parse=(U,Y)=>{let J=U.value;if(typeof J>"u")return U;return U.issues.push({expected:"undefined",code:"invalid_type",input:J,inst:$}),U}}),nF=o("$ZodNull",($,I)=>{p0.init($,I),$._zod.pattern=nO,$._zod.values=new Set([null]),$._zod.parse=(U,Y)=>{let J=U.value;if(J===null)return U;return U.issues.push({expected:"null",code:"invalid_type",input:J,inst:$}),U}}),pF=o("$ZodAny",($,I)=>{p0.init($,I),$._zod.parse=(U)=>U}),cF=o("$ZodUnknown",($,I)=>{p0.init($,I),$._zod.parse=(U)=>U}),dF=o("$ZodNever",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{return U.issues.push({expected:"never",code:"invalid_type",input:U.value,inst:$}),U}}),mF=o("$ZodVoid",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(typeof J>"u")return U;return U.issues.push({expected:"void",code:"invalid_type",input:J,inst:$}),U}}),lF=o("$ZodDate",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=new Date(U.value)}catch(q){}let J=U.value,Q=J instanceof Date;if(Q&&!Number.isNaN(J.getTime()))return U;return U.issues.push({expected:"date",code:"invalid_type",input:J,...Q?{received:"Invalid Date"}:{},inst:$}),U}});function Yx($,I,U){if($.issues.length)I.issues.push(...b6(U,$.issues));I.value[U]=$.value}var oF=o("$ZodArray",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!Array.isArray(J))return U.issues.push({expected:"array",code:"invalid_type",input:J,inst:$}),U;U.value=Array(J.length);let Q=[];for(let K=0;KYx(G,U,K)));else Yx(H,U,K)}if(Q.length)return Promise.all(Q).then(()=>U);return U}});function zG($,I,U,Y,J,Q){let K=U in Y;if($.issues.length){if(J&&Q&&!K)return;I.issues.push(...b6(U,$.issues))}if(!K&&!J){if(!$.issues.length)I.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[U]});return}if($.value===void 0){if(K)I.value[U]=void 0}else I.value[U]=$.value}function Fx($){let I=Object.keys($.shape);for(let Y of I)if(!$.shape?.[Y]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${Y}": expected a Zod schema`);let U=wO($.shape);return{...$,keys:I,keySet:new Set(I),numKeys:I.length,optionalKeys:new Set(U)}}function Nx($,I,U,Y,J,Q){let K=[],q=J.keySet,H=J.catchall._zod,G=H.def.type,W=H.optin==="optional",w=H.optout==="optional";for(let Z in I){if(Z==="__proto__")continue;if(q.has(Z))continue;if(G==="never"){K.push(Z);continue}let V=H.run({value:I[Z],issues:[]},Y);if(V instanceof Promise)$.push(V.then((X)=>zG(X,U,Z,I,W,w)));else zG(V,U,Z,I,W,w)}if(K.length)U.issues.push({code:"unrecognized_keys",keys:K,input:I,inst:Q});if(!$.length)return U;return Promise.all($).then(()=>{return U})}var Mx=o("$ZodObject",($,I)=>{if(p0.init($,I),!Object.getOwnPropertyDescriptor(I,"shape")?.get){let q=I.shape;Object.defineProperty(I,"shape",{get:()=>{let H={...q};return Object.defineProperty(I,"shape",{value:H}),H}})}let Y=MI(()=>Fx(I));e0($._zod,"propValues",()=>{let q=I.shape,H={};for(let G in q){let W=q[G]._zod;if(W.values){H[G]??(H[G]=new Set);for(let w of W.values)H[G].add(w)}}return H});let J=j7,Q=I.catchall,K;$._zod.parse=(q,H)=>{K??(K=Y.value);let G=q.value;if(!J(G))return q.issues.push({expected:"object",code:"invalid_type",input:G,inst:$}),q;q.value={};let W=[],w=K.shape;for(let Z of K.keys){let V=w[Z],X=V._zod.optin==="optional",L=V._zod.optout==="optional",D=V._zod.run({value:G[Z],issues:[]},H);if(D instanceof Promise)W.push(D.then((F)=>zG(F,q,Z,G,X,L)));else zG(D,q,Z,G,X,L)}if(!Q)return W.length?Promise.all(W).then(()=>q):q;return Nx(W,G,q,H,Y.value,$)}}),rF=o("$ZodObjectJIT",($,I)=>{Mx.init($,I);let U=$._zod.parse,Y=MI(()=>Fx(I)),J=(Z)=>{let V=new WG(["shape","payload","ctx"]),X=Y.value,L=(T)=>{let A=aH(T);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};V.write("const input = payload.value;");let D=Object.create(null),F=0;for(let T of X.keys)D[T]=`key_${F++}`;V.write("const newResult = {};");for(let T of X.keys){let A=D[T],R=aH(T),x=Z[T],y=x?._zod?.optin==="optional",f=x?._zod?.optout==="optional";if(V.write(`const ${A} = ${L(T)};`),y&&f)V.write(` if (${A}.issues.length) { if (${R} in input) { payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ @@ -303,34 +303,38 @@ Unsupported type: `+$.type,"ENOTSUP");$._finish()})};b$.prototype._stat=function newResult[${R}] = ${A}.value; } - `)}V.write("payload.value = newResult;"),V.write("return payload;");let P=V.compile();return(E,A)=>P(Z,E,A)},Q,K=j7,q=!v7.jitless,G=q&&qO.value,W=I.catchall,w;$._zod.parse=(Z,V)=>{w??(w=Y.value);let X=Z.value;if(!K(X))return Z.issues.push({expected:"object",code:"invalid_type",input:X,inst:$}),Z;if(q&&G&&V?.async===!1&&V.jitless!==!0){if(!Q)Q=J(I.shape);if(Z=Q(Z,V),!W)return Z;return Ok([],X,Z,V,w,$)}return U(Z,V)}});function Uk($,I,U,Y){for(let Q of $)if(Q.issues.length===0)return I.value=Q.value,I;let J=$.filter((Q)=>!U9(Q));if(J.length===1)return I.value=J[0].value,J[0];return I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>E6(K,Y,z4())))}),I}var YQ=o("$ZodUnion",($,I)=>{n0.init($,I),e0($._zod,"optin",()=>I.options.some((Y)=>Y._zod.optin==="optional")?"optional":void 0),e0($._zod,"optout",()=>I.options.some((Y)=>Y._zod.optout==="optional")?"optional":void 0),e0($._zod,"values",()=>{if(I.options.every((Y)=>Y._zod.values))return new Set(I.options.flatMap((Y)=>Array.from(Y._zod.values)));return}),e0($._zod,"pattern",()=>{if(I.options.every((Y)=>Y._zod.pattern)){let Y=I.options.map((J)=>J._zod.pattern);return new RegExp(`^(${Y.map((J)=>pJ(J.source)).join("|")})$`)}return});let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let H=q._zod.run({value:Y.value,issues:[]},J);if(H instanceof Promise)K.push(H),Q=!0;else{if(H.issues.length===0)return H;K.push(H)}}if(!Q)return Uk(K,Y,$,J);return Promise.all(K).then((q)=>{return Uk(q,Y,$,J)})}});function Yk($,I,U,Y){let J=$.filter((Q)=>Q.issues.length===0);if(J.length===1)return I.value=J[0].value,I;if(J.length===0)I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>E6(K,Y,z4())))});else I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:[],inclusive:!1});return I}var rF=o("$ZodXor",($,I)=>{YQ.init($,I),I.inclusive=!1;let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let H=q._zod.run({value:Y.value,issues:[]},J);if(H instanceof Promise)K.push(H),Q=!0;else K.push(H)}if(!Q)return Yk(K,Y,$,J);return Promise.all(K).then((q)=>{return Yk(q,Y,$,J)})}}),tF=o("$ZodDiscriminatedUnion",($,I)=>{I.inclusive=!1,YQ.init($,I);let U=$._zod.parse;e0($._zod,"propValues",()=>{let J={};for(let Q of I.options){let K=Q._zod.propValues;if(!K||Object.keys(K).length===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(Q)}"`);for(let[q,H]of Object.entries(K)){if(!J[q])J[q]=new Set;for(let G of H)J[q].add(G)}}return J});let Y=MI(()=>{let J=I.options,Q=new Map;for(let K of J){let q=K._zod.propValues?.[I.discriminator];if(!q||q.size===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(K)}"`);for(let H of q){if(Q.has(H))throw Error(`Duplicate discriminator value "${String(H)}"`);Q.set(H,K)}}return Q});$._zod.parse=(J,Q)=>{let K=J.value;if(!j7(K))return J.issues.push({code:"invalid_type",expected:"object",input:K,inst:$}),J;let q=Y.value.get(K?.[I.discriminator]);if(q)return q._zod.run(J,Q);if(I.unionFallback||Q.direction==="backward")return U(J,Q);return J.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:I.discriminator,options:Array.from(Y.value.keys()),input:K,path:[I.discriminator],inst:$}),J}}),aF=o("$ZodIntersection",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value,Q=I.left._zod.run({value:J,issues:[]},Y),K=I.right._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise||K instanceof Promise)return Promise.all([Q,K]).then(([H,G])=>{return Jk(U,H,G)});return Jk(U,Q,K)}});function WF($,I){if($===I)return{valid:!0,data:$};if($ instanceof Date&&I instanceof Date&&+$===+I)return{valid:!0,data:$};if(I9($)&&I9(I)){let U=Object.keys(I),Y=Object.keys($).filter((Q)=>U.indexOf(Q)!==-1),J={...$,...I};for(let Q of Y){let K=WF($[Q],I[Q]);if(!K.valid)return{valid:!1,mergeErrorPath:[Q,...K.mergeErrorPath]};J[Q]=K.data}return{valid:!0,data:J}}if(Array.isArray($)&&Array.isArray(I)){if($.length!==I.length)return{valid:!1,mergeErrorPath:[]};let U=[];for(let Y=0;Y<$.length;Y++){let J=$[Y],Q=I[Y],K=WF(J,Q);if(!K.valid)return{valid:!1,mergeErrorPath:[Y,...K.mergeErrorPath]};U.push(K.data)}return{valid:!0,data:U}}return{valid:!1,mergeErrorPath:[]}}function Jk($,I,U){let Y=new Map,J;for(let q of I.issues)if(q.code==="unrecognized_keys"){J??(J=q);for(let H of q.keys){if(!Y.has(H))Y.set(H,{});Y.get(H).l=!0}}else $.issues.push(q);for(let q of U.issues)if(q.code==="unrecognized_keys")for(let H of q.keys){if(!Y.has(H))Y.set(H,{});Y.get(H).r=!0}else $.issues.push(q);let Q=[...Y].filter(([,q])=>q.l&&q.r).map(([q])=>q);if(Q.length&&J)$.issues.push({...J,keys:Q});if(U9($))return $;let K=WF(I.value,U.value);if(!K.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(K.mergeErrorPath)}`);return $.value=K.data,$}var DG=o("$ZodTuple",($,I)=>{n0.init($,I);let U=I.items;$._zod.parse=(Y,J)=>{let Q=Y.value;if(!Array.isArray(Q))return Y.issues.push({input:Q,inst:$,expected:"tuple",code:"invalid_type"}),Y;Y.value=[];let K=[],q=Qk(U,"optin"),H=Qk(U,"optout");if(!I.rest){if(Q.lengthU.length)Y.issues.push({code:"too_big",maximum:U.length,inclusive:!0,input:Q,inst:$,origin:"array"})}let G=Array(U.length);for(let W=0;W{G[W]=Z}));else G[W]=w}if(I.rest){let W=U.length-1,w=Q.slice(U.length);for(let Z of w){W++;let V=I.rest._zod.run({value:Z,issues:[]},J);if(V instanceof Promise)K.push(V.then((X)=>Kk(X,Y,W)));else Kk(V,Y,W)}}if(K.length)return Promise.all(K).then(()=>qk(G,Y,U,Q,H));return qk(G,Y,U,Q,H)}});function Qk($,I){for(let U=$.length-1;U>=0;U--)if($[U]._zod[I]!=="optional")return U+1;return 0}function Kk($,I,U){if($.issues.length)I.issues.push(...i6(U,$.issues));I.value[U]=$.value}function qk($,I,U,Y,J){for(let Q=0;Q=J){I.value.length=Q;break}I.issues.push(...i6(Q,K.issues))}I.value[Q]=K.value}for(let Q=I.value.length-1;Q>=Y.length;Q--)if(U[Q]._zod.optout==="optional"&&I.value[Q]===void 0)I.value.length=Q;else break;return I}var sF=o("$ZodRecord",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!I9(J))return U.issues.push({expected:"record",code:"invalid_type",input:J,inst:$}),U;let Q=[],K=I.keyType._zod.values;if(K){U.value={};let q=new Set;for(let G of K)if(typeof G==="string"||typeof G==="number"||typeof G==="symbol"){q.add(typeof G==="number"?G.toString():G);let W=I.keyType._zod.run({value:G,issues:[]},Y);if(W instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(W.issues.length){U.issues.push({code:"invalid_key",origin:"record",issues:W.issues.map((V)=>E6(V,Y,z4())),input:G,path:[G],inst:$});continue}let w=W.value,Z=I.valueType._zod.run({value:J[G],issues:[]},Y);if(Z instanceof Promise)Q.push(Z.then((V)=>{if(V.issues.length)U.issues.push(...i6(G,V.issues));U.value[w]=V.value}));else{if(Z.issues.length)U.issues.push(...i6(G,Z.issues));U.value[w]=Z.value}}let H;for(let G in J)if(!q.has(G))H=H??[],H.push(G);if(H&&H.length>0)U.issues.push({code:"unrecognized_keys",input:J,inst:$,keys:H})}else{U.value={};for(let q of Reflect.ownKeys(J)){if(q==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(J,q))continue;let H=I.keyType._zod.run({value:q,issues:[]},Y);if(H instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof q==="string"&&eJ.test(q)&&H.issues.length){let w=I.keyType._zod.run({value:Number(q),issues:[]},Y);if(w instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(w.issues.length===0)H=w}if(H.issues.length){if(I.mode==="loose")U.value[q]=J[q];else U.issues.push({code:"invalid_key",origin:"record",issues:H.issues.map((w)=>E6(w,Y,z4())),input:q,path:[q],inst:$});continue}let W=I.valueType._zod.run({value:J[q],issues:[]},Y);if(W instanceof Promise)Q.push(W.then((w)=>{if(w.issues.length)U.issues.push(...i6(q,w.issues));U.value[H.value]=w.value}));else{if(W.issues.length)U.issues.push(...i6(q,W.issues));U.value[H.value]=W.value}}}if(Q.length)return Promise.all(Q).then(()=>U);return U}}),eF=o("$ZodMap",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!(J instanceof Map))return U.issues.push({expected:"map",code:"invalid_type",input:J,inst:$}),U;let Q=[];U.value=new Map;for(let[K,q]of J){let H=I.keyType._zod.run({value:K,issues:[]},Y),G=I.valueType._zod.run({value:q,issues:[]},Y);if(H instanceof Promise||G instanceof Promise)Q.push(Promise.all([H,G]).then(([W,w])=>{Hk(W,w,U,K,J,$,Y)}));else Hk(H,G,U,K,J,$,Y)}if(Q.length)return Promise.all(Q).then(()=>U);return U}});function Hk($,I,U,Y,J,Q,K){if($.issues.length)if(cJ.has(typeof Y))U.issues.push(...i6(Y,$.issues));else U.issues.push({code:"invalid_key",origin:"map",input:J,inst:Q,issues:$.issues.map((q)=>E6(q,K,z4()))});if(I.issues.length)if(cJ.has(typeof Y))U.issues.push(...i6(Y,I.issues));else U.issues.push({origin:"map",code:"invalid_element",input:J,inst:Q,key:Y,issues:I.issues.map((q)=>E6(q,K,z4()))});U.value.set($.value,I.value)}var $N=o("$ZodSet",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!(J instanceof Set))return U.issues.push({input:J,inst:$,expected:"set",code:"invalid_type"}),U;let Q=[];U.value=new Set;for(let K of J){let q=I.valueType._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)Q.push(q.then((H)=>Gk(H,U)));else Gk(q,U)}if(Q.length)return Promise.all(Q).then(()=>U);return U}});function Gk($,I){if($.issues.length)I.issues.push(...$.issues);I.value.add($.value)}var IN=o("$ZodEnum",($,I)=>{n0.init($,I);let U=nJ(I.entries),Y=new Set(U);$._zod.values=Y,$._zod.pattern=new RegExp(`^(${U.filter((J)=>cJ.has(typeof J)).map((J)=>typeof J==="string"?A$(J):J.toString()).join("|")})$`),$._zod.parse=(J,Q)=>{let K=J.value;if(Y.has(K))return J;return J.issues.push({code:"invalid_value",values:U,input:K,inst:$}),J}}),UN=o("$ZodLiteral",($,I)=>{if(n0.init($,I),I.values.length===0)throw Error("Cannot create literal schema with no valid values");let U=new Set(I.values);$._zod.values=U,$._zod.pattern=new RegExp(`^(${I.values.map((Y)=>typeof Y==="string"?A$(Y):Y?A$(Y.toString()):String(Y)).join("|")})$`),$._zod.parse=(Y,J)=>{let Q=Y.value;if(U.has(Q))return Y;return Y.issues.push({code:"invalid_value",values:I.values,input:Q,inst:$}),Y}}),YN=o("$ZodFile",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(J instanceof File)return U;return U.issues.push({expected:"file",code:"invalid_type",input:J,inst:$}),U}}),JN=o("$ZodTransform",($,I)=>{n0.init($,I),$._zod.optin="optional",$._zod.parse=(U,Y)=>{if(Y.direction==="backward")throw new R7($.constructor.name);let J=I.transform(U.value,U);if(Y.async)return(J instanceof Promise?J:Promise.resolve(J)).then((K)=>{return U.value=K,U.fallback=!0,U});if(J instanceof Promise)throw new Z8;return U.value=J,U.fallback=!0,U}});function Wk($,I){if(I===void 0&&($.issues.length||$.fallback))return{issues:[],value:void 0};return $}var OG=o("$ZodOptional",($,I)=>{n0.init($,I),$._zod.optin="optional",$._zod.optout="optional",e0($._zod,"values",()=>{return I.innerType._zod.values?new Set([...I.innerType._zod.values,void 0]):void 0}),e0($._zod,"pattern",()=>{let U=I.innerType._zod.pattern;return U?new RegExp(`^(${pJ(U.source)})?$`):void 0}),$._zod.parse=(U,Y)=>{if(I.innerType._zod.optin==="optional"){let J=U.value,Q=I.innerType._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>Wk(K,J));return Wk(Q,J)}if(U.value===void 0)return U;return I.innerType._zod.run(U,Y)}}),QN=o("$ZodExactOptional",($,I)=>{OG.init($,I),e0($._zod,"values",()=>I.innerType._zod.values),e0($._zod,"pattern",()=>I.innerType._zod.pattern),$._zod.parse=(U,Y)=>{return I.innerType._zod.run(U,Y)}}),KN=o("$ZodNullable",($,I)=>{n0.init($,I),e0($._zod,"optin",()=>I.innerType._zod.optin),e0($._zod,"optout",()=>I.innerType._zod.optout),e0($._zod,"pattern",()=>{let U=I.innerType._zod.pattern;return U?new RegExp(`^(${pJ(U.source)}|null)$`):void 0}),e0($._zod,"values",()=>{return I.innerType._zod.values?new Set([...I.innerType._zod.values,null]):void 0}),$._zod.parse=(U,Y)=>{if(U.value===null)return U;return I.innerType._zod.run(U,Y)}}),qN=o("$ZodDefault",($,I)=>{n0.init($,I),$._zod.optin="optional",e0($._zod,"values",()=>I.innerType._zod.values),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);if(U.value===void 0)return U.value=I.defaultValue,U;let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>wk(Q,I));return wk(J,I)}});function wk($,I){if($.value===void 0)$.value=I.defaultValue;return $}var HN=o("$ZodPrefault",($,I)=>{n0.init($,I),$._zod.optin="optional",e0($._zod,"values",()=>I.innerType._zod.values),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);if(U.value===void 0)U.value=I.defaultValue;return I.innerType._zod.run(U,Y)}}),GN=o("$ZodNonOptional",($,I)=>{n0.init($,I),e0($._zod,"values",()=>{let U=I.innerType._zod.values;return U?new Set([...U].filter((Y)=>Y!==void 0)):void 0}),$._zod.parse=(U,Y)=>{let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>Vk(Q,$));return Vk(J,$)}});function Vk($,I){if(!$.issues.length&&$.value===void 0)$.issues.push({code:"invalid_type",expected:"nonoptional",input:$.value,inst:I});return $}var WN=o("$ZodSuccess",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")throw new R7("ZodSuccess");let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>{return U.value=Q.issues.length===0,U});return U.value=J.issues.length===0,U}}),wN=o("$ZodCatch",($,I)=>{n0.init($,I),$._zod.optin="optional",e0($._zod,"optout",()=>I.innerType._zod.optout),e0($._zod,"values",()=>I.innerType._zod.values),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>{if(U.value=Q.value,Q.issues.length)U.value=I.catchValue({...U,error:{issues:Q.issues.map((K)=>E6(K,Y,z4()))},input:U.value}),U.issues=[],U.fallback=!0;return U});if(U.value=J.value,J.issues.length)U.value=I.catchValue({...U,error:{issues:J.issues.map((Q)=>E6(Q,Y,z4()))},input:U.value}),U.issues=[],U.fallback=!0;return U}}),VN=o("$ZodNaN",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{if(typeof U.value!=="number"||!Number.isNaN(U.value))return U.issues.push({input:U.value,inst:$,expected:"nan",code:"invalid_type"}),U;return U}}),FG=o("$ZodPipe",($,I)=>{n0.init($,I),e0($._zod,"values",()=>I.in._zod.values),e0($._zod,"optin",()=>I.in._zod.optin),e0($._zod,"optout",()=>I.out._zod.optout),e0($._zod,"propValues",()=>I.in._zod.propValues),$._zod.parse=(U,Y)=>{if(Y.direction==="backward"){let Q=I.out._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>wG(K,I.in,Y));return wG(Q,I.in,Y)}let J=I.in._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>wG(Q,I.out,Y));return wG(J,I.out,Y)}});function wG($,I,U){if($.issues.length)return $.aborted=!0,$;return I._zod.run({value:$.value,issues:$.issues,fallback:$.fallback},U)}var JQ=o("$ZodCodec",($,I)=>{n0.init($,I),e0($._zod,"values",()=>I.in._zod.values),e0($._zod,"optin",()=>I.in._zod.optin),e0($._zod,"optout",()=>I.out._zod.optout),e0($._zod,"propValues",()=>I.in._zod.propValues),$._zod.parse=(U,Y)=>{if((Y.direction||"forward")==="forward"){let Q=I.in._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>VG(K,I,Y));return VG(Q,I,Y)}else{let Q=I.out._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>VG(K,I,Y));return VG(Q,I,Y)}}});function VG($,I,U){if($.issues.length)return $.aborted=!0,$;if((U.direction||"forward")==="forward"){let J=I.transform($.value,$);if(J instanceof Promise)return J.then((Q)=>ZG($,Q,I.out,U));return ZG($,J,I.out,U)}else{let J=I.reverseTransform($.value,$);if(J instanceof Promise)return J.then((Q)=>ZG($,Q,I.in,U));return ZG($,J,I.in,U)}}function ZG($,I,U,Y){if($.issues.length)return $.aborted=!0,$;return U._zod.run({value:I,issues:$.issues},Y)}var ZN=o("$ZodPreprocess",($,I)=>{FG.init($,I)}),zN=o("$ZodReadonly",($,I)=>{n0.init($,I),e0($._zod,"propValues",()=>I.innerType._zod.propValues),e0($._zod,"values",()=>I.innerType._zod.values),e0($._zod,"optin",()=>I.innerType?._zod?.optin),e0($._zod,"optout",()=>I.innerType?._zod?.optout),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then(Zk);return Zk(J)}});function Zk($){return $.value=Object.freeze($.value),$}var XN=o("$ZodTemplateLiteral",($,I)=>{n0.init($,I);let U=[];for(let Y of I.parts)if(typeof Y==="object"&&Y!==null){if(!Y._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...Y._zod.traits].shift()}`);let J=Y._zod.pattern instanceof RegExp?Y._zod.pattern.source:Y._zod.pattern;if(!J)throw Error(`Invalid template literal part: ${Y._zod.traits}`);let Q=J.startsWith("^")?1:0,K=J.endsWith("$")?J.length-1:J.length;U.push(J.slice(Q,K))}else if(Y===null||GO.has(typeof Y))U.push(A$(`${Y}`));else throw Error(`Invalid template literal part: ${Y}`);$._zod.pattern=new RegExp(`^${U.join("")}$`),$._zod.parse=(Y,J)=>{if(typeof Y.value!=="string")return Y.issues.push({input:Y.value,inst:$,expected:"string",code:"invalid_type"}),Y;if($._zod.pattern.lastIndex=0,!$._zod.pattern.test(Y.value))return Y.issues.push({input:Y.value,inst:$,code:"invalid_format",format:I.format??"template_literal",pattern:$._zod.pattern.source}),Y;return Y}}),LN=o("$ZodFunction",($,I)=>{return n0.init($,I),$._def=I,$._zod.def=I,$.implement=(U)=>{if(typeof U!=="function")throw Error("implement() must be called with a function");return function(...Y){let J=$._def.input?tJ($._def.input,Y):Y,Q=Reflect.apply(U,this,J);if($._def.output)return tJ($._def.output,Q);return Q}},$.implementAsync=(U)=>{if(typeof U!=="function")throw Error("implementAsync() must be called with a function");return async function(...Y){let J=$._def.input?await aJ($._def.input,Y):Y,Q=await Reflect.apply(U,this,J);if($._def.output)return await aJ($._def.output,Q);return Q}},$._zod.parse=(U,Y)=>{if(typeof U.value!=="function")return U.issues.push({code:"invalid_type",expected:"function",input:U.value,inst:$}),U;if($._def.output&&$._def.output._zod.def.type==="promise")U.value=$.implementAsync(U.value);else U.value=$.implement(U.value);return U},$.input=(...U)=>{let Y=$.constructor;if(Array.isArray(U[0]))return new Y({type:"function",input:new DG({type:"tuple",items:U[0],rest:U[1]}),output:$._def.output});return new Y({type:"function",input:U[0],output:$._def.output})},$.output=(U)=>{return new $.constructor({type:"function",input:$._def.input,output:U})},$}),DN=o("$ZodPromise",($,I)=>{n0.init($,I),$._zod.parse=(U,Y)=>{return Promise.resolve(U.value).then((J)=>I.innerType._zod.run({value:J,issues:[]},Y))}}),ON=o("$ZodLazy",($,I)=>{n0.init($,I),e0($._zod,"innerType",()=>{let U=I;if(!U._cachedInner)U._cachedInner=I.getter();return U._cachedInner}),e0($._zod,"pattern",()=>$._zod.innerType?._zod?.pattern),e0($._zod,"propValues",()=>$._zod.innerType?._zod?.propValues),e0($._zod,"optin",()=>$._zod.innerType?._zod?.optin??void 0),e0($._zod,"optout",()=>$._zod.innerType?._zod?.optout??void 0),$._zod.parse=(U,Y)=>{return $._zod.innerType._zod.run(U,Y)}}),FN=o("$ZodCustom",($,I)=>{n1.init($,I),n0.init($,I),$._zod.parse=(U,Y)=>{return U},$._zod.check=(U)=>{let Y=U.value,J=I.fn(Y);if(J instanceof Promise)return J.then((Q)=>zk(Q,U,Y,$));zk(J,U,Y,$);return}});function zk($,I,U,Y){if(!$){let J={code:"custom",input:U,inst:Y,path:[...Y._zod.def.path??[]],continue:!Y._zod.def.abort};if(Y._zod.def.params)J.params=Y._zod.def.params;I.issues.push(AI(J))}}var GQ={};$5(GQ,{zhTW:()=>ZM,zhCN:()=>VM,yo:()=>zM,vi:()=>wM,uz:()=>WM,ur:()=>GM,uk:()=>HQ,ua:()=>HM,tr:()=>qM,th:()=>KM,ta:()=>QM,sv:()=>JM,sl:()=>YM,ru:()=>UM,ro:()=>IM,pt:()=>$M,ps:()=>sN,pl:()=>eN,ota:()=>aN,no:()=>tN,nl:()=>rN,ms:()=>oN,mk:()=>lN,lt:()=>mN,ko:()=>dN,km:()=>KQ,kh:()=>cN,ka:()=>pN,ja:()=>nN,it:()=>iN,is:()=>bN,id:()=>fN,hy:()=>kN,hu:()=>xN,hr:()=>uN,he:()=>hN,frCA:()=>yN,fr:()=>gN,fi:()=>SN,fa:()=>_N,es:()=>CN,eo:()=>jN,en:()=>QQ,el:()=>RN,de:()=>vN,da:()=>BN,cs:()=>EN,ca:()=>TN,bg:()=>PN,be:()=>AN,az:()=>MN,ar:()=>NN});var SD0=()=>{let $={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function I(J){return $[J]??null}let U={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:"مدخل"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${J.expected}، ولكن تم إدخال ${q}`;return`مدخلات غير مقبولة: يفترض إدخال ${Q}، ولكن تم إدخال ${q}`}case"invalid_value":if(J.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${Z0(J.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return` أكبر من اللازم: يفترض أن تكون ${J.origin??"القيمة"} ${Q} ${J.maximum.toString()} ${K.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${J.origin??"القيمة"} ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`أصغر من اللازم: يفترض لـ ${J.origin} أن يكون ${Q} ${J.minimum.toString()} ${K.unit}`;return`أصغر من اللازم: يفترض لـ ${J.origin} أن يكون ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${J.prefix}"`;if(Q.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${Q.suffix}"`;if(Q.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${Q.includes}"`;if(Q.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${Q.pattern}`;return`${U[Q.format]??J.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${J.divisor}`;case"unrecognized_keys":return`معرف${J.keys.length>1?"ات":""} غريب${J.keys.length>1?"ة":""}: ${I0(J.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${J.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${J.origin}`;default:return"مدخل غير مقبول"}}};function NN(){return{localeError:SD0()}}var gD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Yanlış dəyər: gözlənilən instanceof ${J.expected}, daxil olan ${q}`;return`Yanlış dəyər: gözlənilən ${Q}, daxil olan ${q}`}case"invalid_value":if(J.values.length===1)return`Yanlış dəyər: gözlənilən ${Z0(J.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Çox böyük: gözlənilən ${J.origin??"dəyər"} ${Q}${J.maximum.toString()} ${K.unit??"element"}`;return`Çox böyük: gözlənilən ${J.origin??"dəyər"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Çox kiçik: gözlənilən ${J.origin} ${Q}${J.minimum.toString()} ${K.unit}`;return`Çox kiçik: gözlənilən ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Yanlış mətn: "${Q.prefix}" ilə başlamalıdır`;if(Q.format==="ends_with")return`Yanlış mətn: "${Q.suffix}" ilə bitməlidir`;if(Q.format==="includes")return`Yanlış mətn: "${Q.includes}" daxil olmalıdır`;if(Q.format==="regex")return`Yanlış mətn: ${Q.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${U[Q.format]??J.format}`}case"not_multiple_of":return`Yanlış ədəd: ${J.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${J.keys.length>1?"lar":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${J.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function MN(){return{localeError:gD0()}}function Nk($,I,U,Y){let J=Math.abs($),Q=J%10,K=J%100;if(K>=11&&K<=19)return Y;if(Q===1)return I;if(Q>=2&&Q<=4)return U;return Y}var yD0=()=>{let $={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 I(J){return $[J]??null}let U={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:"увод"},Y={nan:"NaN",number:"лік",array:"масіў"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Няправільны ўвод: чакаўся instanceof ${J.expected}, атрымана ${q}`;return`Няправільны ўвод: чакаўся ${Q}, атрымана ${q}`}case"invalid_value":if(J.values.length===1)return`Няправільны ўвод: чакалася ${Z0(J.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K){let q=Number(J.maximum),H=Nk(q,K.unit.one,K.unit.few,K.unit.many);return`Занадта вялікі: чакалася, што ${J.origin??"значэнне"} павінна ${K.verb} ${Q}${J.maximum.toString()} ${H}`}return`Занадта вялікі: чакалася, што ${J.origin??"значэнне"} павінна быць ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K){let q=Number(J.minimum),H=Nk(q,K.unit.one,K.unit.few,K.unit.many);return`Занадта малы: чакалася, што ${J.origin} павінна ${K.verb} ${Q}${J.minimum.toString()} ${H}`}return`Занадта малы: чакалася, што ${J.origin} павінна быць ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${Q.prefix}"`;if(Q.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${Q.suffix}"`;if(Q.format==="includes")return`Няправільны радок: павінен змяшчаць "${Q.includes}"`;if(Q.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${Q.pattern}`;return`Няправільны ${U[Q.format]??J.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${J.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${J.keys.length>1?"ключы":"ключ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${J.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${J.origin}`;default:return"Няправільны ўвод"}}};function AN(){return{localeError:yD0()}}var hD0=()=>{let $={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function I(J){return $[J]??null}let U={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:"вход"},Y={nan:"NaN",number:"число",array:"масив"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Невалиден вход: очакван instanceof ${J.expected}, получен ${q}`;return`Невалиден вход: очакван ${Q}, получен ${q}`}case"invalid_value":if(J.values.length===1)return`Невалиден вход: очакван ${Z0(J.values[0])}`;return`Невалидна опция: очаквано едно от ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Твърде голямо: очаква се ${J.origin??"стойност"} да съдържа ${Q}${J.maximum.toString()} ${K.unit??"елемента"}`;return`Твърде голямо: очаква се ${J.origin??"стойност"} да бъде ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Твърде малко: очаква се ${J.origin} да съдържа ${Q}${J.minimum.toString()} ${K.unit}`;return`Твърде малко: очаква се ${J.origin} да бъде ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Невалиден низ: трябва да започва с "${Q.prefix}"`;if(Q.format==="ends_with")return`Невалиден низ: трябва да завършва с "${Q.suffix}"`;if(Q.format==="includes")return`Невалиден низ: трябва да включва "${Q.includes}"`;if(Q.format==="regex")return`Невалиден низ: трябва да съвпада с ${Q.pattern}`;let K="Невалиден";if(Q.format==="emoji")K="Невалидно";if(Q.format==="datetime")K="Невалидно";if(Q.format==="date")K="Невалидна";if(Q.format==="time")K="Невалидно";if(Q.format==="duration")K="Невалидна";return`${K} ${U[Q.format]??J.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${J.divisor}`;case"unrecognized_keys":return`Неразпознат${J.keys.length>1?"и":""} ключ${J.keys.length>1?"ове":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${J.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${J.origin}`;default:return"Невалиден вход"}}};function PN(){return{localeError:hD0()}}var uD0=()=>{let $={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Tipus invàlid: s'esperava instanceof ${J.expected}, s'ha rebut ${q}`;return`Tipus invàlid: s'esperava ${Q}, s'ha rebut ${q}`}case"invalid_value":if(J.values.length===1)return`Valor invàlid: s'esperava ${Z0(J.values[0])}`;return`Opció invàlida: s'esperava una de ${I0(J.values," o ")}`;case"too_big":{let Q=J.inclusive?"com a màxim":"menys de",K=I(J.origin);if(K)return`Massa gran: s'esperava que ${J.origin??"el valor"} contingués ${Q} ${J.maximum.toString()} ${K.unit??"elements"}`;return`Massa gran: s'esperava que ${J.origin??"el valor"} fos ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?"com a mínim":"més de",K=I(J.origin);if(K)return`Massa petit: s'esperava que ${J.origin} contingués ${Q} ${J.minimum.toString()} ${K.unit}`;return`Massa petit: s'esperava que ${J.origin} fos ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Format invàlid: ha de començar amb "${Q.prefix}"`;if(Q.format==="ends_with")return`Format invàlid: ha d'acabar amb "${Q.suffix}"`;if(Q.format==="includes")return`Format invàlid: ha d'incloure "${Q.includes}"`;if(Q.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${Q.pattern}`;return`Format invàlid per a ${U[Q.format]??J.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${J.divisor}`;case"unrecognized_keys":return`Clau${J.keys.length>1?"s":""} no reconeguda${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${J.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${J.origin}`;default:return"Entrada invàlida"}}};function TN(){return{localeError:uD0()}}var xD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Neplatný vstup: očekáváno instanceof ${J.expected}, obdrženo ${q}`;return`Neplatný vstup: očekáváno ${Q}, obdrženo ${q}`}case"invalid_value":if(J.values.length===1)return`Neplatný vstup: očekáváno ${Z0(J.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Hodnota je příliš velká: ${J.origin??"hodnota"} musí mít ${Q}${J.maximum.toString()} ${K.unit??"prvků"}`;return`Hodnota je příliš velká: ${J.origin??"hodnota"} musí být ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Hodnota je příliš malá: ${J.origin??"hodnota"} musí mít ${Q}${J.minimum.toString()} ${K.unit??"prvků"}`;return`Hodnota je příliš malá: ${J.origin??"hodnota"} musí být ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Neplatný řetězec: musí začínat na "${Q.prefix}"`;if(Q.format==="ends_with")return`Neplatný řetězec: musí končit na "${Q.suffix}"`;if(Q.format==="includes")return`Neplatný řetězec: musí obsahovat "${Q.includes}"`;if(Q.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${Q.pattern}`;return`Neplatný formát ${U[Q.format]??J.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${J.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${I0(J.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${J.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${J.origin}`;default:return"Neplatný vstup"}}};function EN(){return{localeError:xD0()}}var kD0=()=>{let $={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ugyldigt input: forventede instanceof ${J.expected}, fik ${q}`;return`Ugyldigt input: forventede ${Q}, fik ${q}`}case"invalid_value":if(J.values.length===1)return`Ugyldig værdi: forventede ${Z0(J.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`For stor: forventede ${q??"value"} ${K.verb} ${Q} ${J.maximum.toString()} ${K.unit??"elementer"}`;return`For stor: forventede ${q??"value"} havde ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`For lille: forventede ${q} ${K.verb} ${Q} ${J.minimum.toString()} ${K.unit}`;return`For lille: forventede ${q} havde ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ugyldig streng: skal starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: skal ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: skal indeholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: skal matche mønsteret ${Q.pattern}`;return`Ugyldig ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${J.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${J.origin}`;default:return"Ugyldigt input"}}};function BN(){return{localeError:kD0()}}var fD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"Zahl",array:"Array"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ungültige Eingabe: erwartet instanceof ${J.expected}, erhalten ${q}`;return`Ungültige Eingabe: erwartet ${Q}, erhalten ${q}`}case"invalid_value":if(J.values.length===1)return`Ungültige Eingabe: erwartet ${Z0(J.values[0])}`;return`Ungültige Option: erwartet eine von ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Zu groß: erwartet, dass ${J.origin??"Wert"} ${Q}${J.maximum.toString()} ${K.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${J.origin??"Wert"} ${Q}${J.maximum.toString()} ist`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Zu klein: erwartet, dass ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} hat`;return`Zu klein: erwartet, dass ${J.origin} ${Q}${J.minimum.toString()} ist`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ungültiger String: muss mit "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ungültiger String: muss mit "${Q.suffix}" enden`;if(Q.format==="includes")return`Ungültiger String: muss "${Q.includes}" enthalten`;if(Q.format==="regex")return`Ungültiger String: muss dem Muster ${Q.pattern} entsprechen`;return`Ungültig: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${J.divisor} sein`;case"unrecognized_keys":return`${J.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${J.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${J.origin}`;default:return"Ungültige Eingabe"}}};function vN(){return{localeError:fD0()}}var bD0=()=>{let $={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function I(J){return $[J]??null}let U={regex:"είσοδος",email:"διεύθυνση 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",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(typeof J.expected==="string"&&/^[A-Z]/.test(J.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${J.expected}, λήφθηκε ${q}`;return`Μη έγκυρη είσοδος: αναμενόταν ${Q}, λήφθηκε ${q}`}case"invalid_value":if(J.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${Z0(J.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Πολύ μεγάλο: αναμενόταν ${J.origin??"τιμή"} να έχει ${Q}${J.maximum.toString()} ${K.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${J.origin??"τιμή"} να είναι ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Πολύ μικρό: αναμενόταν ${J.origin} να έχει ${Q}${J.minimum.toString()} ${K.unit}`;return`Πολύ μικρό: αναμενόταν ${J.origin} να είναι ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${Q.prefix}"`;if(Q.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${Q.suffix}"`;if(Q.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${Q.includes}"`;if(Q.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${Q.pattern}`;return`Μη έγκυρο: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${J.divisor}`;case"unrecognized_keys":return`Άγνωστ${J.keys.length>1?"α":"ο"} κλειδ${J.keys.length>1?"ιά":"ί"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${J.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${J.origin}`;default:return"Μη έγκυρη είσοδος"}}};function RN(){return{localeError:bD0()}}var iD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;return`Invalid input: expected ${Q}, received ${q}`}case"invalid_value":if(J.values.length===1)return`Invalid input: expected ${Z0(J.values[0])}`;return`Invalid option: expected one of ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Too big: expected ${J.origin??"value"} to have ${Q}${J.maximum.toString()} ${K.unit??"elements"}`;return`Too big: expected ${J.origin??"value"} to be ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Too small: expected ${J.origin} to have ${Q}${J.minimum.toString()} ${K.unit}`;return`Too small: expected ${J.origin} to be ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Invalid string: must start with "${Q.prefix}"`;if(Q.format==="ends_with")return`Invalid string: must end with "${Q.suffix}"`;if(Q.format==="includes")return`Invalid string: must include "${Q.includes}"`;if(Q.format==="regex")return`Invalid string: must match pattern ${Q.pattern}`;return`Invalid ${U[Q.format]??J.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${J.divisor}`;case"unrecognized_keys":return`Unrecognized key${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Invalid key in ${J.origin}`;case"invalid_union":if(J.options&&Array.isArray(J.options)&&J.options.length>0)return`Invalid discriminator value. Expected ${J.options.map((K)=>`'${K}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${J.origin}`;default:return"Invalid input"}}};function QQ(){return{localeError:iD0()}}var nD0=()=>{let $={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Nevalida enigo: atendiĝis instanceof ${J.expected}, riceviĝis ${q}`;return`Nevalida enigo: atendiĝis ${Q}, riceviĝis ${q}`}case"invalid_value":if(J.values.length===1)return`Nevalida enigo: atendiĝis ${Z0(J.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Tro granda: atendiĝis ke ${J.origin??"valoro"} havu ${Q}${J.maximum.toString()} ${K.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${J.origin??"valoro"} havu ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Tro malgranda: atendiĝis ke ${J.origin} havu ${Q}${J.minimum.toString()} ${K.unit}`;return`Tro malgranda: atendiĝis ke ${J.origin} estu ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${Q.prefix}"`;if(Q.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${Q.suffix}"`;if(Q.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${Q.includes}"`;if(Q.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${Q.pattern}`;return`Nevalida ${U[Q.format]??J.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${J.divisor}`;case"unrecognized_keys":return`Nekonata${J.keys.length>1?"j":""} ŝlosilo${J.keys.length>1?"j":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${J.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${J.origin}`;default:return"Nevalida enigo"}}};function jN(){return{localeError:nD0()}}var pD0=()=>{let $={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function I(J){return $[J]??null}let U={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"},Y={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(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Entrada inválida: se esperaba instanceof ${J.expected}, recibido ${q}`;return`Entrada inválida: se esperaba ${Q}, recibido ${q}`}case"invalid_value":if(J.values.length===1)return`Entrada inválida: se esperaba ${Z0(J.values[0])}`;return`Opción inválida: se esperaba una de ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Demasiado grande: se esperaba que ${q??"valor"} tuviera ${Q}${J.maximum.toString()} ${K.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${q??"valor"} fuera ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Demasiado pequeño: se esperaba que ${q} tuviera ${Q}${J.minimum.toString()} ${K.unit}`;return`Demasiado pequeño: se esperaba que ${q} fuera ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Cadena inválida: debe comenzar con "${Q.prefix}"`;if(Q.format==="ends_with")return`Cadena inválida: debe terminar en "${Q.suffix}"`;if(Q.format==="includes")return`Cadena inválida: debe incluir "${Q.includes}"`;if(Q.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${Q.pattern}`;return`Inválido ${U[Q.format]??J.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${J.divisor}`;case"unrecognized_keys":return`Llave${J.keys.length>1?"s":""} desconocida${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Llave inválida en ${Y[J.origin]??J.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${Y[J.origin]??J.origin}`;default:return"Entrada inválida"}}};function CN(){return{localeError:pD0()}}var cD0=()=>{let $={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function I(J){return $[J]??null}let U={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:"ورودی"},Y={nan:"NaN",number:"عدد",array:"آرایه"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ورودی نامعتبر: می‌بایست instanceof ${J.expected} می‌بود، ${q} دریافت شد`;return`ورودی نامعتبر: می‌بایست ${Q} می‌بود، ${q} دریافت شد`}case"invalid_value":if(J.values.length===1)return`ورودی نامعتبر: می‌بایست ${Z0(J.values[0])} می‌بود`;return`گزینه نامعتبر: می‌بایست یکی از ${I0(J.values,"|")} می‌بود`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`خیلی بزرگ: ${J.origin??"مقدار"} باید ${Q}${J.maximum.toString()} ${K.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${J.origin??"مقدار"} باید ${Q}${J.maximum.toString()} باشد`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`خیلی کوچک: ${J.origin} باید ${Q}${J.minimum.toString()} ${K.unit} باشد`;return`خیلی کوچک: ${J.origin} باید ${Q}${J.minimum.toString()} باشد`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`رشته نامعتبر: باید با "${Q.prefix}" شروع شود`;if(Q.format==="ends_with")return`رشته نامعتبر: باید با "${Q.suffix}" تمام شود`;if(Q.format==="includes")return`رشته نامعتبر: باید شامل "${Q.includes}" باشد`;if(Q.format==="regex")return`رشته نامعتبر: باید با الگوی ${Q.pattern} مطابقت داشته باشد`;return`${U[Q.format]??J.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${J.divisor} باشد`;case"unrecognized_keys":return`کلید${J.keys.length>1?"های":""} ناشناس: ${I0(J.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${J.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${J.origin}`;default:return"ورودی نامعتبر"}}};function _N(){return{localeError:cD0()}}var dD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Virheellinen tyyppi: odotettiin instanceof ${J.expected}, oli ${q}`;return`Virheellinen tyyppi: odotettiin ${Q}, oli ${q}`}case"invalid_value":if(J.values.length===1)return`Virheellinen syöte: täytyy olla ${Z0(J.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Liian suuri: ${K.subject} täytyy olla ${Q}${J.maximum.toString()} ${K.unit}`.trim();return`Liian suuri: arvon täytyy olla ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Liian pieni: ${K.subject} täytyy olla ${Q}${J.minimum.toString()} ${K.unit}`.trim();return`Liian pieni: arvon täytyy olla ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${Q.prefix}"`;if(Q.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${Q.suffix}"`;if(Q.format==="includes")return`Virheellinen syöte: täytyy sisältää "${Q.includes}"`;if(Q.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${Q.pattern}`;return`Virheellinen ${U[Q.format]??J.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${J.divisor} monikerta`;case"unrecognized_keys":return`${J.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I0(J.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 SN(){return{localeError:dD0()}}var mD0=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(J){return $[J]??null}let U={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"},Y={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Entrée invalide : instanceof ${J.expected} attendu, ${q} reçu`;return`Entrée invalide : ${Q} attendu, ${q} reçu`}case"invalid_value":if(J.values.length===1)return`Entrée invalide : ${Z0(J.values[0])} attendu`;return`Option invalide : une valeur parmi ${I0(J.values,"|")} attendue`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Trop grand : ${Y[J.origin]??"valeur"} doit ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"élément(s)"}`;return`Trop grand : ${Y[J.origin]??"valeur"} doit être ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Trop petit : ${Y[J.origin]??"valeur"} doit ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Trop petit : ${Y[J.origin]??"valeur"} doit être ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Chaîne invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${Q.pattern}`;return`${U[Q.format]??J.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${J.divisor}`;case"unrecognized_keys":return`Clé${J.keys.length>1?"s":""} non reconnue${J.keys.length>1?"s":""} : ${I0(J.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${J.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${J.origin}`;default:return"Entrée invalide"}}};function gN(){return{localeError:mD0()}}var lD0=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Entrée invalide : attendu instanceof ${J.expected}, reçu ${q}`;return`Entrée invalide : attendu ${Q}, reçu ${q}`}case"invalid_value":if(J.values.length===1)return`Entrée invalide : attendu ${Z0(J.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"≤":"<",K=I(J.origin);if(K)return`Trop grand : attendu que ${J.origin??"la valeur"} ait ${Q}${J.maximum.toString()} ${K.unit}`;return`Trop grand : attendu que ${J.origin??"la valeur"} soit ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?"≥":">",K=I(J.origin);if(K)return`Trop petit : attendu que ${J.origin} ait ${Q}${J.minimum.toString()} ${K.unit}`;return`Trop petit : attendu que ${J.origin} soit ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Chaîne invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne invalide : doit correspondre au motif ${Q.pattern}`;return`${U[Q.format]??J.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${J.divisor}`;case"unrecognized_keys":return`Clé${J.keys.length>1?"s":""} non reconnue${J.keys.length>1?"s":""} : ${I0(J.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${J.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${J.origin}`;default:return"Entrée invalide"}}};function yN(){return{localeError:lD0()}}var oD0=()=>{let $={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"}},I={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},U=(G)=>G?$[G]:void 0,Y=(G)=>{let W=U(G);if(W)return W.label;return G??$.unknown.label},J=(G)=>`ה${Y(G)}`,Q=(G)=>{return(U(G)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},K=(G)=>{if(!G)return null;return I[G]??null},q={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"}},H={nan:"NaN"};return(G)=>{switch(G.code){case"invalid_type":{let W=G.expected,w=H[W??""]??Y(W),Z=X0(G.input),V=H[Z]??$[Z]?.label??Z;if(/^[A-Z]/.test(G.expected))return`קלט לא תקין: צריך להיות instanceof ${G.expected}, התקבל ${V}`;return`קלט לא תקין: צריך להיות ${w}, התקבל ${V}`}case"invalid_value":{if(G.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Z0(G.values[0])}`;let W=G.values.map((V)=>Z0(V));if(G.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${W[0]} או ${W[1]}`;let w=W[W.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${W.slice(0,-1).join(", ")} או ${w}`}case"too_big":{let W=K(G.origin),w=J(G.origin??"value");if(G.origin==="string")return`${W?.longLabel??"ארוך"} מדי: ${w} צריכה להכיל ${G.maximum.toString()} ${W?.unit??""} ${G.inclusive?"או פחות":"לכל היותר"}`.trim();if(G.origin==="number"){let X=G.inclusive?`קטן או שווה ל-${G.maximum}`:`קטן מ-${G.maximum}`;return`גדול מדי: ${w} צריך להיות ${X}`}if(G.origin==="array"||G.origin==="set"){let X=G.origin==="set"?"צריכה":"צריך",L=G.inclusive?`${G.maximum} ${W?.unit??""} או פחות`:`פחות מ-${G.maximum} ${W?.unit??""}`;return`גדול מדי: ${w} ${X} להכיל ${L}`.trim()}let Z=G.inclusive?"<=":"<",V=Q(G.origin??"value");if(W?.unit)return`${W.longLabel} מדי: ${w} ${V} ${Z}${G.maximum.toString()} ${W.unit}`;return`${W?.longLabel??"גדול"} מדי: ${w} ${V} ${Z}${G.maximum.toString()}`}case"too_small":{let W=K(G.origin),w=J(G.origin??"value");if(G.origin==="string")return`${W?.shortLabel??"קצר"} מדי: ${w} צריכה להכיל ${G.minimum.toString()} ${W?.unit??""} ${G.inclusive?"או יותר":"לפחות"}`.trim();if(G.origin==="number"){let X=G.inclusive?`גדול או שווה ל-${G.minimum}`:`גדול מ-${G.minimum}`;return`קטן מדי: ${w} צריך להיות ${X}`}if(G.origin==="array"||G.origin==="set"){let X=G.origin==="set"?"צריכה":"צריך";if(G.minimum===1&&G.inclusive){let D=G.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${w} ${X} להכיל ${D}`}let L=G.inclusive?`${G.minimum} ${W?.unit??""} או יותר`:`יותר מ-${G.minimum} ${W?.unit??""}`;return`קטן מדי: ${w} ${X} להכיל ${L}`.trim()}let Z=G.inclusive?">=":">",V=Q(G.origin??"value");if(W?.unit)return`${W.shortLabel} מדי: ${w} ${V} ${Z}${G.minimum.toString()} ${W.unit}`;return`${W?.shortLabel??"קטן"} מדי: ${w} ${V} ${Z}${G.minimum.toString()}`}case"invalid_format":{let W=G;if(W.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${W.prefix}"`;if(W.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${W.suffix}"`;if(W.format==="includes")return`המחרוזת חייבת לכלול "${W.includes}"`;if(W.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${W.pattern}`;let w=q[W.format],Z=w?.label??W.format,X=(w?.gender??"m")==="f"?"תקינה":"תקין";return`${Z} לא ${X}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${G.divisor}`;case"unrecognized_keys":return`מפתח${G.keys.length>1?"ות":""} לא מזוה${G.keys.length>1?"ים":"ה"}: ${I0(G.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${J(G.origin??"array")}`;default:return"קלט לא תקין"}}};function hN(){return{localeError:oD0()}}var rD0=()=>{let $={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function I(J){return $[J]??null}let U={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},Y={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Neispravan unos: očekuje se instanceof ${J.expected}, a primljeno je ${q}`;return`Neispravan unos: očekuje se ${Q}, a primljeno je ${q}`}case"invalid_value":if(J.values.length===1)return`Neispravna vrijednost: očekivano ${Z0(J.values[0])}`;return`Neispravna opcija: očekivano jedno od ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Preveliko: očekivano da ${q??"vrijednost"} ima ${Q}${J.maximum.toString()} ${K.unit??"elemenata"}`;return`Preveliko: očekivano da ${q??"vrijednost"} bude ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Premalo: očekivano da ${q} ima ${Q}${J.minimum.toString()} ${K.unit}`;return`Premalo: očekivano da ${q} bude ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Neispravan tekst: mora započinjati s "${Q.prefix}"`;if(Q.format==="ends_with")return`Neispravan tekst: mora završavati s "${Q.suffix}"`;if(Q.format==="includes")return`Neispravan tekst: mora sadržavati "${Q.includes}"`;if(Q.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${Q.pattern}`;return`Neispravna ${U[Q.format]??J.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${J.divisor}`;case"unrecognized_keys":return`Neprepoznat${J.keys.length>1?"i ključevi":" ključ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${Y[J.origin]??J.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${Y[J.origin]??J.origin}`;default:return"Neispravan unos"}}};function uN(){return{localeError:rD0()}}var tD0=()=>{let $={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"szám",array:"tömb"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Érvénytelen bemenet: a várt érték instanceof ${J.expected}, a kapott érték ${q}`;return`Érvénytelen bemenet: a várt érték ${Q}, a kapott érték ${q}`}case"invalid_value":if(J.values.length===1)return`Érvénytelen bemenet: a várt érték ${Z0(J.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Túl nagy: ${J.origin??"érték"} mérete túl nagy ${Q}${J.maximum.toString()} ${K.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${J.origin??"érték"} túl nagy: ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Túl kicsi: a bemeneti érték ${J.origin} mérete túl kicsi ${Q}${J.minimum.toString()} ${K.unit}`;return`Túl kicsi: a bemeneti érték ${J.origin} túl kicsi ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Érvénytelen string: "${Q.prefix}" értékkel kell kezdődnie`;if(Q.format==="ends_with")return`Érvénytelen string: "${Q.suffix}" értékkel kell végződnie`;if(Q.format==="includes")return`Érvénytelen string: "${Q.includes}" értéket kell tartalmaznia`;if(Q.format==="regex")return`Érvénytelen string: ${Q.pattern} mintának kell megfelelnie`;return`Érvénytelen ${U[Q.format]??J.format}`}case"not_multiple_of":return`Érvénytelen szám: ${J.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${J.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${J.origin}`;default:return"Érvénytelen bemenet"}}};function xN(){return{localeError:tD0()}}function Mk($,I,U){return Math.abs($)===1?I:U}function jI($){if(!$)return"";let I=["ա","ե","ը","ի","ո","ու","օ"],U=$[$.length-1];return $+(I.includes(U)?"ն":"ը")}var aD0=()=>{let $={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function I(J){return $[J]??null}let U={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:"մուտք"},Y={nan:"NaN",number:"թիվ",array:"զանգված"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${J.expected}, ստացվել է ${q}`;return`Սխալ մուտքագրում․ սպասվում էր ${Q}, ստացվել է ${q}`}case"invalid_value":if(J.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${Z0(J.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K){let q=Number(J.maximum),H=Mk(q,K.unit.one,K.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${jI(J.origin??"արժեք")} կունենա ${Q}${J.maximum.toString()} ${H}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${jI(J.origin??"արժեք")} լինի ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K){let q=Number(J.minimum),H=Mk(q,K.unit.one,K.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${jI(J.origin)} կունենա ${Q}${J.minimum.toString()} ${H}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${jI(J.origin)} լինի ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${Q.prefix}"-ով`;if(Q.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${Q.suffix}"-ով`;if(Q.format==="includes")return`Սխալ տող․ պետք է պարունակի "${Q.includes}"`;if(Q.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${Q.pattern} ձևաչափին`;return`Սխալ ${U[Q.format]??J.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${J.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${J.keys.length>1?"ներ":""}. ${I0(J.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${jI(J.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${jI(J.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function kN(){return{localeError:aD0()}}var sD0=()=>{let $={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Input tidak valid: diharapkan instanceof ${J.expected}, diterima ${q}`;return`Input tidak valid: diharapkan ${Q}, diterima ${q}`}case"invalid_value":if(J.values.length===1)return`Input tidak valid: diharapkan ${Z0(J.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Terlalu besar: diharapkan ${J.origin??"value"} memiliki ${Q}${J.maximum.toString()} ${K.unit??"elemen"}`;return`Terlalu besar: diharapkan ${J.origin??"value"} menjadi ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Terlalu kecil: diharapkan ${J.origin} memiliki ${Q}${J.minimum.toString()} ${K.unit}`;return`Terlalu kecil: diharapkan ${J.origin} menjadi ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`String tidak valid: harus dimulai dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak valid: harus berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak valid: harus menyertakan "${Q.includes}"`;if(Q.format==="regex")return`String tidak valid: harus sesuai pola ${Q.pattern}`;return`${U[Q.format]??J.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${J.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${J.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${J.origin}`;default:return"Input tidak valid"}}};function fN(){return{localeError:sD0()}}var eD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"númer",array:"fylki"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Rangt gildi: Þú slóst inn ${q} þar sem á að vera instanceof ${J.expected}`;return`Rangt gildi: Þú slóst inn ${q} þar sem á að vera ${Q}`}case"invalid_value":if(J.values.length===1)return`Rangt gildi: gert ráð fyrir ${Z0(J.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Of stórt: gert er ráð fyrir að ${J.origin??"gildi"} hafi ${Q}${J.maximum.toString()} ${K.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${J.origin??"gildi"} sé ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Of lítið: gert er ráð fyrir að ${J.origin} hafi ${Q}${J.minimum.toString()} ${K.unit}`;return`Of lítið: gert er ráð fyrir að ${J.origin} sé ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ógildur strengur: verður að byrja á "${Q.prefix}"`;if(Q.format==="ends_with")return`Ógildur strengur: verður að enda á "${Q.suffix}"`;if(Q.format==="includes")return`Ógildur strengur: verður að innihalda "${Q.includes}"`;if(Q.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${Q.pattern}`;return`Rangt ${U[Q.format]??J.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${J.divisor}`;case"unrecognized_keys":return`Óþekkt ${J.keys.length>1?"ir lyklar":"ur lykill"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${J.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${J.origin}`;default:return"Rangt gildi"}}};function bN(){return{localeError:eD0()}}var $O0=()=>{let $={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"numero",array:"vettore"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Input non valido: atteso instanceof ${J.expected}, ricevuto ${q}`;return`Input non valido: atteso ${Q}, ricevuto ${q}`}case"invalid_value":if(J.values.length===1)return`Input non valido: atteso ${Z0(J.values[0])}`;return`Opzione non valida: atteso uno tra ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Troppo grande: ${J.origin??"valore"} deve avere ${Q}${J.maximum.toString()} ${K.unit??"elementi"}`;return`Troppo grande: ${J.origin??"valore"} deve essere ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Troppo piccolo: ${J.origin} deve avere ${Q}${J.minimum.toString()} ${K.unit}`;return`Troppo piccolo: ${J.origin} deve essere ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Stringa non valida: deve iniziare con "${Q.prefix}"`;if(Q.format==="ends_with")return`Stringa non valida: deve terminare con "${Q.suffix}"`;if(Q.format==="includes")return`Stringa non valida: deve includere "${Q.includes}"`;if(Q.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${Q.pattern}`;return`Input non valido: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${J.divisor}`;case"unrecognized_keys":return`Chiav${J.keys.length>1?"i":"e"} non riconosciut${J.keys.length>1?"e":"a"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${J.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${J.origin}`;default:return"Input non valido"}}};function iN(){return{localeError:$O0()}}var IO0=()=>{let $={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function I(J){return $[J]??null}let U={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:"入力値"},Y={nan:"NaN",number:"数値",array:"配列"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`無効な入力: instanceof ${J.expected}が期待されましたが、${q}が入力されました`;return`無効な入力: ${Q}が期待されましたが、${q}が入力されました`}case"invalid_value":if(J.values.length===1)return`無効な入力: ${Z0(J.values[0])}が期待されました`;return`無効な選択: ${I0(J.values,"、")}のいずれかである必要があります`;case"too_big":{let Q=J.inclusive?"以下である":"より小さい",K=I(J.origin);if(K)return`大きすぎる値: ${J.origin??"値"}は${J.maximum.toString()}${K.unit??"要素"}${Q}必要があります`;return`大きすぎる値: ${J.origin??"値"}は${J.maximum.toString()}${Q}必要があります`}case"too_small":{let Q=J.inclusive?"以上である":"より大きい",K=I(J.origin);if(K)return`小さすぎる値: ${J.origin}は${J.minimum.toString()}${K.unit}${Q}必要があります`;return`小さすぎる値: ${J.origin}は${J.minimum.toString()}${Q}必要があります`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`無効な文字列: "${Q.prefix}"で始まる必要があります`;if(Q.format==="ends_with")return`無効な文字列: "${Q.suffix}"で終わる必要があります`;if(Q.format==="includes")return`無効な文字列: "${Q.includes}"を含む必要があります`;if(Q.format==="regex")return`無効な文字列: パターン${Q.pattern}に一致する必要があります`;return`無効な${U[Q.format]??J.format}`}case"not_multiple_of":return`無効な数値: ${J.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${J.keys.length>1?"群":""}: ${I0(J.keys,"、")}`;case"invalid_key":return`${J.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${J.origin}内の無効な値`;default:return"無効な入力"}}};function nN(){return{localeError:IO0()}}var UO0=()=>{let $={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function I(J){return $[J]??null}let U={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:"შეყვანა"},Y={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${J.expected}, მიღებული ${q}`;return`არასწორი შეყვანა: მოსალოდნელი ${Q}, მიღებული ${q}`}case"invalid_value":if(J.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${Z0(J.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${I0(J.values,"|")}-დან`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`ზედმეტად დიდი: მოსალოდნელი ${J.origin??"მნიშვნელობა"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${J.origin??"მნიშვნელობა"} იყოს ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`ზედმეტად პატარა: მოსალოდნელი ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${J.origin} იყოს ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${Q.prefix}"-ით`;if(Q.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${Q.suffix}"-ით`;if(Q.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${Q.includes}"-ს`;if(Q.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${Q.pattern}`;return`არასწორი ${U[Q.format]??J.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${J.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${J.keys.length>1?"ები":"ი"}: ${I0(J.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${J.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${J.origin}-ში`;default:return"არასწორი შეყვანა"}}};function pN(){return{localeError:UO0()}}var YO0=()=>{let $={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function I(J){return $[J]??null}let U={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:"ទិន្នន័យបញ្ចូល"},Y={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${J.expected} ប៉ុន្តែទទួលបាន ${q}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q} ប៉ុន្តែទទួលបាន ${q}`}case"invalid_value":if(J.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Z0(J.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`ធំពេក៖ ត្រូវការ ${J.origin??"តម្លៃ"} ${Q} ${J.maximum.toString()} ${K.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${J.origin??"តម្លៃ"} ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`តូចពេក៖ ត្រូវការ ${J.origin} ${Q} ${J.minimum.toString()} ${K.unit}`;return`តូចពេក៖ ត្រូវការ ${J.origin} ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${Q.prefix}"`;if(Q.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${Q.suffix}"`;if(Q.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${Q.includes}"`;if(Q.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${Q.pattern}`;return`មិនត្រឹមត្រូវ៖ ${U[Q.format]??J.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${J.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${I0(J.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${J.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${J.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function KQ(){return{localeError:YO0()}}function cN(){return KQ()}var JO0=()=>{let $={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function I(J){return $[J]??null}let U={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:"입력"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`잘못된 입력: 예상 타입은 instanceof ${J.expected}, 받은 타입은 ${q}입니다`;return`잘못된 입력: 예상 타입은 ${Q}, 받은 타입은 ${q}입니다`}case"invalid_value":if(J.values.length===1)return`잘못된 입력: 값은 ${Z0(J.values[0])} 이어야 합니다`;return`잘못된 옵션: ${I0(J.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let Q=J.inclusive?"이하":"미만",K=Q==="미만"?"이어야 합니다":"여야 합니다",q=I(J.origin),H=q?.unit??"요소";if(q)return`${J.origin??"값"}이 너무 큽니다: ${J.maximum.toString()}${H} ${Q}${K}`;return`${J.origin??"값"}이 너무 큽니다: ${J.maximum.toString()} ${Q}${K}`}case"too_small":{let Q=J.inclusive?"이상":"초과",K=Q==="이상"?"이어야 합니다":"여야 합니다",q=I(J.origin),H=q?.unit??"요소";if(q)return`${J.origin??"값"}이 너무 작습니다: ${J.minimum.toString()}${H} ${Q}${K}`;return`${J.origin??"값"}이 너무 작습니다: ${J.minimum.toString()} ${Q}${K}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`잘못된 문자열: "${Q.prefix}"(으)로 시작해야 합니다`;if(Q.format==="ends_with")return`잘못된 문자열: "${Q.suffix}"(으)로 끝나야 합니다`;if(Q.format==="includes")return`잘못된 문자열: "${Q.includes}"을(를) 포함해야 합니다`;if(Q.format==="regex")return`잘못된 문자열: 정규식 ${Q.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${U[Q.format]??J.format}`}case"not_multiple_of":return`잘못된 숫자: ${J.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${I0(J.keys,", ")}`;case"invalid_key":return`잘못된 키: ${J.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${J.origin}`;default:return"잘못된 입력"}}};function dN(){return{localeError:JO0()}}var qQ=($)=>{return $.charAt(0).toUpperCase()+$.slice(1)};function Ak($){let I=Math.abs($),U=I%10,Y=I%100;if(Y>=11&&Y<=19||U===0)return"many";if(U===1)return"one";return"few"}var QO0=()=>{let $={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 I(J,Q,K,q){let H=$[J]??null;if(H===null)return H;return{unit:H.unit[Q],verb:H.verb[q][K?"inclusive":"notInclusive"]}}let U={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"},Y={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(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Gautas tipas ${q}, o tikėtasi - instanceof ${J.expected}`;return`Gautas tipas ${q}, o tikėtasi - ${Q}`}case"invalid_value":if(J.values.length===1)return`Privalo būti ${Z0(J.values[0])}`;return`Privalo būti vienas iš ${I0(J.values,"|")} pasirinkimų`;case"too_big":{let Q=Y[J.origin]??J.origin,K=I(J.origin,Ak(Number(J.maximum)),J.inclusive??!1,"smaller");if(K?.verb)return`${qQ(Q??J.origin??"reikšmė")} ${K.verb} ${J.maximum.toString()} ${K.unit??"elementų"}`;let q=J.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${qQ(Q??J.origin??"reikšmė")} turi būti ${q} ${J.maximum.toString()} ${K?.unit}`}case"too_small":{let Q=Y[J.origin]??J.origin,K=I(J.origin,Ak(Number(J.minimum)),J.inclusive??!1,"bigger");if(K?.verb)return`${qQ(Q??J.origin??"reikšmė")} ${K.verb} ${J.minimum.toString()} ${K.unit??"elementų"}`;let q=J.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${qQ(Q??J.origin??"reikšmė")} turi būti ${q} ${J.minimum.toString()} ${K?.unit}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Eilutė privalo prasidėti "${Q.prefix}"`;if(Q.format==="ends_with")return`Eilutė privalo pasibaigti "${Q.suffix}"`;if(Q.format==="includes")return`Eilutė privalo įtraukti "${Q.includes}"`;if(Q.format==="regex")return`Eilutė privalo atitikti ${Q.pattern}`;return`Neteisingas ${U[Q.format]??J.format}`}case"not_multiple_of":return`Skaičius privalo būti ${J.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${J.keys.length>1?"i":"as"} rakt${J.keys.length>1?"ai":"as"}: ${I0(J.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let Q=Y[J.origin]??J.origin;return`${qQ(Q??J.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function mN(){return{localeError:QO0()}}var KO0=()=>{let $={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function I(J){return $[J]??null}let U={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:"внес"},Y={nan:"NaN",number:"број",array:"низа"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Грешен внес: се очекува instanceof ${J.expected}, примено ${q}`;return`Грешен внес: се очекува ${Q}, примено ${q}`}case"invalid_value":if(J.values.length===1)return`Invalid input: expected ${Z0(J.values[0])}`;return`Грешана опција: се очекува една ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Премногу голем: се очекува ${J.origin??"вредноста"} да има ${Q}${J.maximum.toString()} ${K.unit??"елементи"}`;return`Премногу голем: се очекува ${J.origin??"вредноста"} да биде ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Премногу мал: се очекува ${J.origin} да има ${Q}${J.minimum.toString()} ${K.unit}`;return`Премногу мал: се очекува ${J.origin} да биде ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Неважечка низа: мора да започнува со "${Q.prefix}"`;if(Q.format==="ends_with")return`Неважечка низа: мора да завршува со "${Q.suffix}"`;if(Q.format==="includes")return`Неважечка низа: мора да вклучува "${Q.includes}"`;if(Q.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${Q.pattern}`;return`Invalid ${U[Q.format]??J.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${J.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${J.origin}`;default:return"Грешен внес"}}};function lN(){return{localeError:KO0()}}var qO0=()=>{let $={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"nombor"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Input tidak sah: dijangka instanceof ${J.expected}, diterima ${q}`;return`Input tidak sah: dijangka ${Q}, diterima ${q}`}case"invalid_value":if(J.values.length===1)return`Input tidak sah: dijangka ${Z0(J.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Terlalu besar: dijangka ${J.origin??"nilai"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"elemen"}`;return`Terlalu besar: dijangka ${J.origin??"nilai"} adalah ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Terlalu kecil: dijangka ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Terlalu kecil: dijangka ${J.origin} adalah ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`String tidak sah: mesti bermula dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak sah: mesti mengandungi "${Q.includes}"`;if(Q.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${Q.pattern}`;return`${U[Q.format]??J.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${J.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I0(J.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${J.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${J.origin}`;default:return"Input tidak sah"}}};function oN(){return{localeError:qO0()}}var HO0=()=>{let $={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"getal"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ongeldige invoer: verwacht instanceof ${J.expected}, ontving ${q}`;return`Ongeldige invoer: verwacht ${Q}, ontving ${q}`}case"invalid_value":if(J.values.length===1)return`Ongeldige invoer: verwacht ${Z0(J.values[0])}`;return`Ongeldige optie: verwacht één van ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=J.origin==="date"?"laat":J.origin==="string"?"lang":"groot";if(K)return`Te ${q}: verwacht dat ${J.origin??"waarde"} ${Q}${J.maximum.toString()} ${K.unit??"elementen"} ${K.verb}`;return`Te ${q}: verwacht dat ${J.origin??"waarde"} ${Q}${J.maximum.toString()} is`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=J.origin==="date"?"vroeg":J.origin==="string"?"kort":"klein";if(K)return`Te ${q}: verwacht dat ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} ${K.verb}`;return`Te ${q}: verwacht dat ${J.origin} ${Q}${J.minimum.toString()} is`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ongeldige tekst: moet met "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ongeldige tekst: moet op "${Q.suffix}" eindigen`;if(Q.format==="includes")return`Ongeldige tekst: moet "${Q.includes}" bevatten`;if(Q.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${Q.pattern}`;return`Ongeldig: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${J.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${J.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${J.origin}`;default:return"Ongeldige invoer"}}};function rN(){return{localeError:HO0()}}var GO0=()=>{let $={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"tall",array:"liste"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ugyldig input: forventet instanceof ${J.expected}, fikk ${q}`;return`Ugyldig input: forventet ${Q}, fikk ${q}`}case"invalid_value":if(J.values.length===1)return`Ugyldig verdi: forventet ${Z0(J.values[0])}`;return`Ugyldig valg: forventet en av ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`For stor(t): forventet ${J.origin??"value"} til å ha ${Q}${J.maximum.toString()} ${K.unit??"elementer"}`;return`For stor(t): forventet ${J.origin??"value"} til å ha ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`For lite(n): forventet ${J.origin} til å ha ${Q}${J.minimum.toString()} ${K.unit}`;return`For lite(n): forventet ${J.origin} til å ha ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ugyldig streng: må starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: må ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: må inneholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: må matche mønsteret ${Q.pattern}`;return`Ugyldig ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${J.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${J.origin}`;default:return"Ugyldig input"}}};function tN(){return{localeError:GO0()}}var WO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Fâsit giren: umulan instanceof ${J.expected}, alınan ${q}`;return`Fâsit giren: umulan ${Q}, alınan ${q}`}case"invalid_value":if(J.values.length===1)return`Fâsit giren: umulan ${Z0(J.values[0])}`;return`Fâsit tercih: mûteberler ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Fazla büyük: ${J.origin??"value"}, ${Q}${J.maximum.toString()} ${K.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${J.origin??"value"}, ${Q}${J.maximum.toString()} olmalıydı.`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Fazla küçük: ${J.origin}, ${Q}${J.minimum.toString()} ${K.unit} sahip olmalıydı.`;return`Fazla küçük: ${J.origin}, ${Q}${J.minimum.toString()} olmalıydı.`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Fâsit metin: "${Q.prefix}" ile başlamalı.`;if(Q.format==="ends_with")return`Fâsit metin: "${Q.suffix}" ile bitmeli.`;if(Q.format==="includes")return`Fâsit metin: "${Q.includes}" ihtivâ etmeli.`;if(Q.format==="regex")return`Fâsit metin: ${Q.pattern} nakşına uymalı.`;return`Fâsit ${U[Q.format]??J.format}`}case"not_multiple_of":return`Fâsit sayı: ${J.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${J.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function aN(){return{localeError:WO0()}}var wO0=()=>{let $={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function I(J){return $[J]??null}let U={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:"ورودي"},Y={nan:"NaN",number:"عدد",array:"ارې"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ناسم ورودي: باید instanceof ${J.expected} وای, مګر ${q} ترلاسه شو`;return`ناسم ورودي: باید ${Q} وای, مګر ${q} ترلاسه شو`}case"invalid_value":if(J.values.length===1)return`ناسم ورودي: باید ${Z0(J.values[0])} وای`;return`ناسم انتخاب: باید یو له ${I0(J.values,"|")} څخه وای`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`ډیر لوی: ${J.origin??"ارزښت"} باید ${Q}${J.maximum.toString()} ${K.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${J.origin??"ارزښت"} باید ${Q}${J.maximum.toString()} وي`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`ډیر کوچنی: ${J.origin} باید ${Q}${J.minimum.toString()} ${K.unit} ولري`;return`ډیر کوچنی: ${J.origin} باید ${Q}${J.minimum.toString()} وي`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`ناسم متن: باید د "${Q.prefix}" سره پیل شي`;if(Q.format==="ends_with")return`ناسم متن: باید د "${Q.suffix}" سره پای ته ورسيږي`;if(Q.format==="includes")return`ناسم متن: باید "${Q.includes}" ولري`;if(Q.format==="regex")return`ناسم متن: باید د ${Q.pattern} سره مطابقت ولري`;return`${U[Q.format]??J.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${J.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${J.keys.length>1?"کلیډونه":"کلیډ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${J.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${J.origin} کې`;default:return"ناسمه ورودي"}}};function sN(){return{localeError:wO0()}}var VO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"liczba",array:"tablica"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${J.expected}, otrzymano ${q}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${Q}, otrzymano ${q}`}case"invalid_value":if(J.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${Z0(J.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Za duża wartość: oczekiwano, że ${J.origin??"wartość"} będzie mieć ${Q}${J.maximum.toString()} ${K.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${J.origin??"wartość"} będzie wynosić ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Za mała wartość: oczekiwano, że ${J.origin??"wartość"} będzie mieć ${Q}${J.minimum.toString()} ${K.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${J.origin??"wartość"} będzie wynosić ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${Q.prefix}"`;if(Q.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${Q.suffix}"`;if(Q.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${Q.includes}"`;if(Q.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${Q.pattern}`;return`Nieprawidłow(y/a/e) ${U[Q.format]??J.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${J.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${J.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${J.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function eN(){return{localeError:VO0()}}var ZO0=()=>{let $={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"número",null:"nulo"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Tipo inválido: esperado instanceof ${J.expected}, recebido ${q}`;return`Tipo inválido: esperado ${Q}, recebido ${q}`}case"invalid_value":if(J.values.length===1)return`Entrada inválida: esperado ${Z0(J.values[0])}`;return`Opção inválida: esperada uma das ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Muito grande: esperado que ${J.origin??"valor"} tivesse ${Q}${J.maximum.toString()} ${K.unit??"elementos"}`;return`Muito grande: esperado que ${J.origin??"valor"} fosse ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Muito pequeno: esperado que ${J.origin} tivesse ${Q}${J.minimum.toString()} ${K.unit}`;return`Muito pequeno: esperado que ${J.origin} fosse ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Texto inválido: deve começar com "${Q.prefix}"`;if(Q.format==="ends_with")return`Texto inválido: deve terminar com "${Q.suffix}"`;if(Q.format==="includes")return`Texto inválido: deve incluir "${Q.includes}"`;if(Q.format==="regex")return`Texto inválido: deve corresponder ao padrão ${Q.pattern}`;return`${U[Q.format]??J.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${J.divisor}`;case"unrecognized_keys":return`Chave${J.keys.length>1?"s":""} desconhecida${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Chave inválida em ${J.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${J.origin}`;default:return"Campo inválido"}}};function $M(){return{localeError:ZO0()}}var zO0=()=>{let $={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function I(J){return $[J]??null}let U={regex:"intrare",email:"adresă de 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:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},Y={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;return`Intrare invalidă: așteptat ${Q}, primit ${q}`}case"invalid_value":if(J.values.length===1)return`Intrare invalidă: așteptat ${Z0(J.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Prea mare: așteptat ca ${J.origin??"valoarea"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"elemente"}`;return`Prea mare: așteptat ca ${J.origin??"valoarea"} să fie ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Prea mic: așteptat ca ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Prea mic: așteptat ca ${J.origin} să fie ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${Q.prefix}"`;if(Q.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${Q.suffix}"`;if(Q.format==="includes")return`Șir invalid: trebuie să includă "${Q.includes}"`;if(Q.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${Q.pattern}`;return`Format invalid: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${J.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I0(J.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${J.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${J.origin}`;default:return"Intrare invalidă"}}};function IM(){return{localeError:zO0()}}function Pk($,I,U,Y){let J=Math.abs($),Q=J%10,K=J%100;if(K>=11&&K<=19)return Y;if(Q===1)return I;if(Q>=2&&Q<=4)return U;return Y}var XO0=()=>{let $={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 I(J){return $[J]??null}let U={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:"ввод"},Y={nan:"NaN",number:"число",array:"массив"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Неверный ввод: ожидалось instanceof ${J.expected}, получено ${q}`;return`Неверный ввод: ожидалось ${Q}, получено ${q}`}case"invalid_value":if(J.values.length===1)return`Неверный ввод: ожидалось ${Z0(J.values[0])}`;return`Неверный вариант: ожидалось одно из ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K){let q=Number(J.maximum),H=Pk(q,K.unit.one,K.unit.few,K.unit.many);return`Слишком большое значение: ожидалось, что ${J.origin??"значение"} будет иметь ${Q}${J.maximum.toString()} ${H}`}return`Слишком большое значение: ожидалось, что ${J.origin??"значение"} будет ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K){let q=Number(J.minimum),H=Pk(q,K.unit.one,K.unit.few,K.unit.many);return`Слишком маленькое значение: ожидалось, что ${J.origin} будет иметь ${Q}${J.minimum.toString()} ${H}`}return`Слишком маленькое значение: ожидалось, что ${J.origin} будет ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Неверная строка: должна начинаться с "${Q.prefix}"`;if(Q.format==="ends_with")return`Неверная строка: должна заканчиваться на "${Q.suffix}"`;if(Q.format==="includes")return`Неверная строка: должна содержать "${Q.includes}"`;if(Q.format==="regex")return`Неверная строка: должна соответствовать шаблону ${Q.pattern}`;return`Неверный ${U[Q.format]??J.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${J.divisor}`;case"unrecognized_keys":return`Нераспознанн${J.keys.length>1?"ые":"ый"} ключ${J.keys.length>1?"и":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${J.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${J.origin}`;default:return"Неверные входные данные"}}};function UM(){return{localeError:XO0()}}var LO0=()=>{let $={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"število",array:"tabela"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Neveljaven vnos: pričakovano instanceof ${J.expected}, prejeto ${q}`;return`Neveljaven vnos: pričakovano ${Q}, prejeto ${q}`}case"invalid_value":if(J.values.length===1)return`Neveljaven vnos: pričakovano ${Z0(J.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Preveliko: pričakovano, da bo ${J.origin??"vrednost"} imelo ${Q}${J.maximum.toString()} ${K.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${J.origin??"vrednost"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Premajhno: pričakovano, da bo ${J.origin} imelo ${Q}${J.minimum.toString()} ${K.unit}`;return`Premajhno: pričakovano, da bo ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Neveljaven niz: mora se začeti z "${Q.prefix}"`;if(Q.format==="ends_with")return`Neveljaven niz: mora se končati z "${Q.suffix}"`;if(Q.format==="includes")return`Neveljaven niz: mora vsebovati "${Q.includes}"`;if(Q.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${Q.pattern}`;return`Neveljaven ${U[Q.format]??J.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${J.divisor}`;case"unrecognized_keys":return`Neprepoznan${J.keys.length>1?"i ključi":" ključ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${J.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${J.origin}`;default:return"Neveljaven vnos"}}};function YM(){return{localeError:LO0()}}var DO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"antal",array:"lista"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ogiltig inmatning: förväntat instanceof ${J.expected}, fick ${q}`;return`Ogiltig inmatning: förväntat ${Q}, fick ${q}`}case"invalid_value":if(J.values.length===1)return`Ogiltig inmatning: förväntat ${Z0(J.values[0])}`;return`Ogiltigt val: förväntade en av ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`För stor(t): förväntade ${J.origin??"värdet"} att ha ${Q}${J.maximum.toString()} ${K.unit??"element"}`;return`För stor(t): förväntat ${J.origin??"värdet"} att ha ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`För lite(t): förväntade ${J.origin??"värdet"} att ha ${Q}${J.minimum.toString()} ${K.unit}`;return`För lite(t): förväntade ${J.origin??"värdet"} att ha ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ogiltig sträng: måste börja med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ogiltig sträng: måste sluta med "${Q.suffix}"`;if(Q.format==="includes")return`Ogiltig sträng: måste innehålla "${Q.includes}"`;if(Q.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${Q.pattern}"`;return`Ogiltig(t) ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${J.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${J.origin??"värdet"}`;default:return"Ogiltig input"}}};function JM(){return{localeError:DO0()}}var OO0=()=>{let $={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${J.expected}, பெறப்பட்டது ${q}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q}, பெறப்பட்டது ${q}`}case"invalid_value":if(J.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Z0(J.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${I0(J.values,"|")} இல் ஒன்று`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${J.origin??"மதிப்பு"} ${Q}${J.maximum.toString()} ${K.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${J.origin??"மதிப்பு"} ${Q}${J.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${J.origin} ${Q}${J.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`தவறான சரம்: "${Q.prefix}" இல் தொடங்க வேண்டும்`;if(Q.format==="ends_with")return`தவறான சரம்: "${Q.suffix}" இல் முடிவடைய வேண்டும்`;if(Q.format==="includes")return`தவறான சரம்: "${Q.includes}" ஐ உள்ளடக்க வேண்டும்`;if(Q.format==="regex")return`தவறான சரம்: ${Q.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${U[Q.format]??J.format}`}case"not_multiple_of":return`தவறான எண்: ${J.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${J.keys.length>1?"கள்":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${J.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function QM(){return{localeError:OO0()}}var FO0=()=>{let $={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function I(J){return $[J]??null}let U={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:"ข้อมูลที่ป้อน"},Y={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${J.expected} แต่ได้รับ ${q}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${Q} แต่ได้รับ ${q}`}case"invalid_value":if(J.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${Z0(J.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"ไม่เกิน":"น้อยกว่า",K=I(J.origin);if(K)return`เกินกำหนด: ${J.origin??"ค่า"} ควรมี${Q} ${J.maximum.toString()} ${K.unit??"รายการ"}`;return`เกินกำหนด: ${J.origin??"ค่า"} ควรมี${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?"อย่างน้อย":"มากกว่า",K=I(J.origin);if(K)return`น้อยกว่ากำหนด: ${J.origin} ควรมี${Q} ${J.minimum.toString()} ${K.unit}`;return`น้อยกว่ากำหนด: ${J.origin} ควรมี${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${Q.prefix}"`;if(Q.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${Q.suffix}"`;if(Q.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${Q.includes}" อยู่ในข้อความ`;if(Q.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${Q.pattern}`;return`รูปแบบไม่ถูกต้อง: ${U[Q.format]??J.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${J.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${I0(J.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${J.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${J.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function KM(){return{localeError:FO0()}}var NO0=()=>{let $={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Geçersiz değer: beklenen instanceof ${J.expected}, alınan ${q}`;return`Geçersiz değer: beklenen ${Q}, alınan ${q}`}case"invalid_value":if(J.values.length===1)return`Geçersiz değer: beklenen ${Z0(J.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Çok büyük: beklenen ${J.origin??"değer"} ${Q}${J.maximum.toString()} ${K.unit??"öğe"}`;return`Çok büyük: beklenen ${J.origin??"değer"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Çok küçük: beklenen ${J.origin} ${Q}${J.minimum.toString()} ${K.unit}`;return`Çok küçük: beklenen ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Geçersiz metin: "${Q.prefix}" ile başlamalı`;if(Q.format==="ends_with")return`Geçersiz metin: "${Q.suffix}" ile bitmeli`;if(Q.format==="includes")return`Geçersiz metin: "${Q.includes}" içermeli`;if(Q.format==="regex")return`Geçersiz metin: ${Q.pattern} desenine uymalı`;return`Geçersiz ${U[Q.format]??J.format}`}case"not_multiple_of":return`Geçersiz sayı: ${J.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${J.keys.length>1?"lar":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${J.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function qM(){return{localeError:NO0()}}var MO0=()=>{let $={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function I(J){return $[J]??null}let U={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:"вхідні дані"},Y={nan:"NaN",number:"число",array:"масив"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Неправильні вхідні дані: очікується instanceof ${J.expected}, отримано ${q}`;return`Неправильні вхідні дані: очікується ${Q}, отримано ${q}`}case"invalid_value":if(J.values.length===1)return`Неправильні вхідні дані: очікується ${Z0(J.values[0])}`;return`Неправильна опція: очікується одне з ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Занадто велике: очікується, що ${J.origin??"значення"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"елементів"}`;return`Занадто велике: очікується, що ${J.origin??"значення"} буде ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Занадто мале: очікується, що ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Занадто мале: очікується, що ${J.origin} буде ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Неправильний рядок: повинен починатися з "${Q.prefix}"`;if(Q.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${Q.suffix}"`;if(Q.format==="includes")return`Неправильний рядок: повинен містити "${Q.includes}"`;if(Q.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${Q.pattern}`;return`Неправильний ${U[Q.format]??J.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${J.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${J.keys.length>1?"і":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${J.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${J.origin}`;default:return"Неправильні вхідні дані"}}};function HQ(){return{localeError:MO0()}}function HM(){return HQ()}var AO0=()=>{let $={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function I(J){return $[J]??null}let U={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:"ان پٹ"},Y={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`غلط ان پٹ: instanceof ${J.expected} متوقع تھا، ${q} موصول ہوا`;return`غلط ان پٹ: ${Q} متوقع تھا، ${q} موصول ہوا`}case"invalid_value":if(J.values.length===1)return`غلط ان پٹ: ${Z0(J.values[0])} متوقع تھا`;return`غلط آپشن: ${I0(J.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`بہت بڑا: ${J.origin??"ویلیو"} کے ${Q}${J.maximum.toString()} ${K.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${J.origin??"ویلیو"} کا ${Q}${J.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`بہت چھوٹا: ${J.origin} کے ${Q}${J.minimum.toString()} ${K.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${J.origin} کا ${Q}${J.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`غلط سٹرنگ: "${Q.prefix}" سے شروع ہونا چاہیے`;if(Q.format==="ends_with")return`غلط سٹرنگ: "${Q.suffix}" پر ختم ہونا چاہیے`;if(Q.format==="includes")return`غلط سٹرنگ: "${Q.includes}" شامل ہونا چاہیے`;if(Q.format==="regex")return`غلط سٹرنگ: پیٹرن ${Q.pattern} سے میچ ہونا چاہیے`;return`غلط ${U[Q.format]??J.format}`}case"not_multiple_of":return`غلط نمبر: ${J.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${J.keys.length>1?"ز":""}: ${I0(J.keys,"، ")}`;case"invalid_key":return`${J.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${J.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function GM(){return{localeError:AO0()}}var PO0=()=>{let $={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"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"raqam",array:"massiv"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${J.expected}, qabul qilingan ${q}`;return`Noto‘g‘ri kirish: kutilgan ${Q}, qabul qilingan ${q}`}case"invalid_value":if(J.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${Z0(J.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Juda katta: kutilgan ${J.origin??"qiymat"} ${Q}${J.maximum.toString()} ${K.unit} ${K.verb}`;return`Juda katta: kutilgan ${J.origin??"qiymat"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Juda kichik: kutilgan ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} ${K.verb}`;return`Juda kichik: kutilgan ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Noto‘g‘ri satr: "${Q.prefix}" bilan boshlanishi kerak`;if(Q.format==="ends_with")return`Noto‘g‘ri satr: "${Q.suffix}" bilan tugashi kerak`;if(Q.format==="includes")return`Noto‘g‘ri satr: "${Q.includes}" ni o‘z ichiga olishi kerak`;if(Q.format==="regex")return`Noto‘g‘ri satr: ${Q.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${U[Q.format]??J.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${J.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${J.keys.length>1?"lar":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${J.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function WM(){return{localeError:PO0()}}var TO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"số",array:"mảng"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${J.expected}, nhận được ${q}`;return`Đầu vào không hợp lệ: mong đợi ${Q}, nhận được ${q}`}case"invalid_value":if(J.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${Z0(J.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Quá lớn: mong đợi ${J.origin??"giá trị"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"phần tử"}`;return`Quá lớn: mong đợi ${J.origin??"giá trị"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Quá nhỏ: mong đợi ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Quá nhỏ: mong đợi ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${Q.prefix}"`;if(Q.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${Q.suffix}"`;if(Q.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${Q.includes}"`;if(Q.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${Q.pattern}`;return`${U[Q.format]??J.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 ${J.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${I0(J.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${J.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 ${J.origin}`;default:return"Đầu vào không hợp lệ"}}};function wM(){return{localeError:TO0()}}var EO0=()=>{let $={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function I(J){return $[J]??null}let U={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:"输入"},Y={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`无效输入:期望 instanceof ${J.expected},实际接收 ${q}`;return`无效输入:期望 ${Q},实际接收 ${q}`}case"invalid_value":if(J.values.length===1)return`无效输入:期望 ${Z0(J.values[0])}`;return`无效选项:期望以下之一 ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`数值过大:期望 ${J.origin??"值"} ${Q}${J.maximum.toString()} ${K.unit??"个元素"}`;return`数值过大:期望 ${J.origin??"值"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`数值过小:期望 ${J.origin} ${Q}${J.minimum.toString()} ${K.unit}`;return`数值过小:期望 ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`无效字符串:必须以 "${Q.prefix}" 开头`;if(Q.format==="ends_with")return`无效字符串:必须以 "${Q.suffix}" 结尾`;if(Q.format==="includes")return`无效字符串:必须包含 "${Q.includes}"`;if(Q.format==="regex")return`无效字符串:必须满足正则表达式 ${Q.pattern}`;return`无效${U[Q.format]??J.format}`}case"not_multiple_of":return`无效数字:必须是 ${J.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${J.origin} 中包含无效值(value)`;default:return"无效输入"}}};function VM(){return{localeError:EO0()}}var BO0=()=>{let $={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function I(J){return $[J]??null}let U={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:"輸入"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`無效的輸入值:預期為 instanceof ${J.expected},但收到 ${q}`;return`無效的輸入值:預期為 ${Q},但收到 ${q}`}case"invalid_value":if(J.values.length===1)return`無效的輸入值:預期為 ${Z0(J.values[0])}`;return`無效的選項:預期為以下其中之一 ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`數值過大:預期 ${J.origin??"值"} 應為 ${Q}${J.maximum.toString()} ${K.unit??"個元素"}`;return`數值過大:預期 ${J.origin??"值"} 應為 ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`數值過小:預期 ${J.origin} 應為 ${Q}${J.minimum.toString()} ${K.unit}`;return`數值過小:預期 ${J.origin} 應為 ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`無效的字串:必須以 "${Q.prefix}" 開頭`;if(Q.format==="ends_with")return`無效的字串:必須以 "${Q.suffix}" 結尾`;if(Q.format==="includes")return`無效的字串:必須包含 "${Q.includes}"`;if(Q.format==="regex")return`無效的字串:必須符合格式 ${Q.pattern}`;return`無效的 ${U[Q.format]??J.format}`}case"not_multiple_of":return`無效的數字:必須為 ${J.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${J.keys.length>1?"們":""}:${I0(J.keys,"、")}`;case"invalid_key":return`${J.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${J.origin} 中有無效的值`;default:return"無效的輸入值"}}};function ZM(){return{localeError:BO0()}}var vO0=()=>{let $={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function I(J){return $[J]??null}let U={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é"},Y={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${J.expected}, àmọ̀ a rí ${q}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${Q}, àmọ̀ a rí ${q}`}case"invalid_value":if(J.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${Z0(J.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${J.origin??"iye"} ${K.verb} ${Q}${J.maximum} ${K.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${Q}${J.maximum}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Kéré ju: a ní láti jẹ́ pé ${J.origin} ${K.verb} ${Q}${J.minimum} ${K.unit}`;return`Kéré ju: a ní láti jẹ́ ${Q}${J.minimum}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${Q.prefix}"`;if(Q.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${Q.suffix}"`;if(Q.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${Q.includes}"`;if(Q.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${Q.pattern}`;return`Aṣìṣe: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${J.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${I0(J.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${J.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${J.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function zM(){return{localeError:vO0()}}var Tk,XM=Symbol("ZodOutput"),LM=Symbol("ZodInput");class DM{constructor(){this._map=new WeakMap,this._idmap=new Map}add($,...I){let U=I[0];if(this._map.set($,U),U&&typeof U==="object"&&"id"in U)this._idmap.set(U.id,$);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove($){let I=this._map.get($);if(I&&typeof I==="object"&&"id"in I)this._idmap.delete(I.id);return this._map.delete($),this}get($){let I=$._zod.parent;if(I){let U={...this.get(I)??{}};delete U.id;let Y={...U,...this._map.get($)};return Object.keys(Y).length?Y:void 0}return this._map.get($)}has($){return this._map.has($)}}function NG(){return new DM}(Tk=globalThis).__zod_globalRegistry??(Tk.__zod_globalRegistry=NG());var l4=globalThis.__zod_globalRegistry;function OM($,I){return new $({type:"string",...N0(I)})}function FM($,I){return new $({type:"string",coerce:!0,...N0(I)})}function MG($,I){return new $({type:"string",format:"email",check:"string_format",abort:!1,...N0(I)})}function WQ($,I){return new $({type:"string",format:"guid",check:"string_format",abort:!1,...N0(I)})}function AG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,...N0(I)})}function PG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...N0(I)})}function TG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...N0(I)})}function EG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...N0(I)})}function wQ($,I){return new $({type:"string",format:"url",check:"string_format",abort:!1,...N0(I)})}function BG($,I){return new $({type:"string",format:"emoji",check:"string_format",abort:!1,...N0(I)})}function vG($,I){return new $({type:"string",format:"nanoid",check:"string_format",abort:!1,...N0(I)})}function RG($,I){return new $({type:"string",format:"cuid",check:"string_format",abort:!1,...N0(I)})}function jG($,I){return new $({type:"string",format:"cuid2",check:"string_format",abort:!1,...N0(I)})}function CG($,I){return new $({type:"string",format:"ulid",check:"string_format",abort:!1,...N0(I)})}function _G($,I){return new $({type:"string",format:"xid",check:"string_format",abort:!1,...N0(I)})}function SG($,I){return new $({type:"string",format:"ksuid",check:"string_format",abort:!1,...N0(I)})}function gG($,I){return new $({type:"string",format:"ipv4",check:"string_format",abort:!1,...N0(I)})}function yG($,I){return new $({type:"string",format:"ipv6",check:"string_format",abort:!1,...N0(I)})}function NM($,I){return new $({type:"string",format:"mac",check:"string_format",abort:!1,...N0(I)})}function hG($,I){return new $({type:"string",format:"cidrv4",check:"string_format",abort:!1,...N0(I)})}function uG($,I){return new $({type:"string",format:"cidrv6",check:"string_format",abort:!1,...N0(I)})}function xG($,I){return new $({type:"string",format:"base64",check:"string_format",abort:!1,...N0(I)})}function kG($,I){return new $({type:"string",format:"base64url",check:"string_format",abort:!1,...N0(I)})}function fG($,I){return new $({type:"string",format:"e164",check:"string_format",abort:!1,...N0(I)})}function bG($,I){return new $({type:"string",format:"jwt",check:"string_format",abort:!1,...N0(I)})}var MM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function AM($,I){return new $({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...N0(I)})}function PM($,I){return new $({type:"string",format:"date",check:"string_format",...N0(I)})}function TM($,I){return new $({type:"string",format:"time",check:"string_format",precision:null,...N0(I)})}function EM($,I){return new $({type:"string",format:"duration",check:"string_format",...N0(I)})}function BM($,I){return new $({type:"number",checks:[],...N0(I)})}function vM($,I){return new $({type:"number",coerce:!0,checks:[],...N0(I)})}function RM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"safeint",...N0(I)})}function jM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"float32",...N0(I)})}function CM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"float64",...N0(I)})}function _M($,I){return new $({type:"number",check:"number_format",abort:!1,format:"int32",...N0(I)})}function SM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"uint32",...N0(I)})}function gM($,I){return new $({type:"boolean",...N0(I)})}function yM($,I){return new $({type:"boolean",coerce:!0,...N0(I)})}function hM($,I){return new $({type:"bigint",...N0(I)})}function uM($,I){return new $({type:"bigint",coerce:!0,...N0(I)})}function xM($,I){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...N0(I)})}function kM($,I){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...N0(I)})}function fM($,I){return new $({type:"symbol",...N0(I)})}function bM($,I){return new $({type:"undefined",...N0(I)})}function iM($,I){return new $({type:"null",...N0(I)})}function nM($){return new $({type:"any"})}function pM($){return new $({type:"unknown"})}function cM($,I){return new $({type:"never",...N0(I)})}function dM($,I){return new $({type:"void",...N0(I)})}function mM($,I){return new $({type:"date",...N0(I)})}function lM($,I){return new $({type:"date",coerce:!0,...N0(I)})}function oM($,I){return new $({type:"nan",...N0(I)})}function z8($,I){return new HG({check:"less_than",...N0(I),value:$,inclusive:!1})}function K$($,I){return new HG({check:"less_than",...N0(I),value:$,inclusive:!0})}function X8($,I){return new GG({check:"greater_than",...N0(I),value:$,inclusive:!1})}function B6($,I){return new GG({check:"greater_than",...N0(I),value:$,inclusive:!0})}function iG($){return X8(0,$)}function nG($){return z8(0,$)}function pG($){return K$(0,$)}function cG($){return B6(0,$)}function Y9($,I){return new dO({check:"multiple_of",...N0(I),value:$})}function J9($,I){return new oO({check:"max_size",...N0(I),maximum:$})}function L8($,I){return new rO({check:"min_size",...N0(I),minimum:$})}function S7($,I){return new tO({check:"size_equals",...N0(I),size:$})}function g7($,I){return new aO({check:"max_length",...N0(I),maximum:$})}function U5($,I){return new sO({check:"min_length",...N0(I),minimum:$})}function y7($,I){return new eO({check:"length_equals",...N0(I),length:$})}function CI($,I){return new $F({check:"string_format",format:"regex",...N0(I),pattern:$})}function _I($){return new IF({check:"string_format",format:"lowercase",...N0($)})}function SI($){return new UF({check:"string_format",format:"uppercase",...N0($)})}function gI($,I){return new YF({check:"string_format",format:"includes",...N0(I),includes:$})}function yI($,I){return new JF({check:"string_format",format:"starts_with",...N0(I),prefix:$})}function hI($,I){return new QF({check:"string_format",format:"ends_with",...N0(I),suffix:$})}function dG($,I,U){return new KF({check:"property",property:$,schema:I,...N0(U)})}function uI($,I){return new qF({check:"mime_type",mime:$,...N0(I)})}function m$($){return new HF({check:"overwrite",tx:$})}function xI($){return m$((I)=>I.normalize($))}function kI(){return m$(($)=>$.trim())}function fI(){return m$(($)=>$.toLowerCase())}function bI(){return m$(($)=>$.toUpperCase())}function iI(){return m$(($)=>KO($))}function rM($,I,U){return new $({type:"array",element:I,...N0(U)})}function jO0($,I,U){return new $({type:"union",options:I,...N0(U)})}function CO0($,I,U){return new $({type:"union",options:I,inclusive:!1,...N0(U)})}function _O0($,I,U,Y){return new $({type:"union",options:U,discriminator:I,...N0(Y)})}function SO0($,I,U){return new $({type:"intersection",left:I,right:U})}function gO0($,I,U,Y){let J=U instanceof n0;return new $({type:"tuple",items:I,rest:J?U:null,...N0(J?Y:U)})}function yO0($,I,U,Y){return new $({type:"record",keyType:I,valueType:U,...N0(Y)})}function hO0($,I,U,Y){return new $({type:"map",keyType:I,valueType:U,...N0(Y)})}function uO0($,I,U){return new $({type:"set",valueType:I,...N0(U)})}function xO0($,I,U){let Y=Array.isArray(I)?Object.fromEntries(I.map((J)=>[J,J])):I;return new $({type:"enum",entries:Y,...N0(U)})}function kO0($,I,U){return new $({type:"enum",entries:I,...N0(U)})}function fO0($,I,U){return new $({type:"literal",values:Array.isArray(I)?I:[I],...N0(U)})}function tM($,I){return new $({type:"file",...N0(I)})}function bO0($,I){return new $({type:"transform",transform:I})}function iO0($,I){return new $({type:"optional",innerType:I})}function nO0($,I){return new $({type:"nullable",innerType:I})}function pO0($,I,U){return new $({type:"default",innerType:I,get defaultValue(){return typeof U==="function"?U():HO(U)}})}function cO0($,I,U){return new $({type:"nonoptional",innerType:I,...N0(U)})}function dO0($,I){return new $({type:"success",innerType:I})}function mO0($,I,U){return new $({type:"catch",innerType:I,catchValue:typeof U==="function"?U:()=>U})}function lO0($,I,U){return new $({type:"pipe",in:I,out:U})}function oO0($,I){return new $({type:"readonly",innerType:I})}function rO0($,I,U){return new $({type:"template_literal",parts:I,...N0(U)})}function tO0($,I){return new $({type:"lazy",getter:I})}function aO0($,I){return new $({type:"promise",innerType:I})}function aM($,I,U){let Y=N0(U);return Y.abort??(Y.abort=!0),new $({type:"custom",check:"custom",fn:I,...Y})}function sM($,I,U){return new $({type:"custom",check:"custom",fn:I,...N0(U)})}function eM($,I){let U=Ek((Y)=>{return Y.addIssue=(J)=>{if(typeof J==="string")Y.issues.push(AI(J,Y.value,U._zod.def));else{let Q=J;if(Q.fatal)Q.continue=!1;Q.code??(Q.code="custom"),Q.input??(Q.input=Y.value),Q.inst??(Q.inst=U),Q.continue??(Q.continue=!U._zod.def.abort),Y.issues.push(AI(Q))}},$(Y.value,Y)},I);return U}function Ek($,I){let U=new n1({check:"custom",...N0(I)});return U._zod.check=$,U}function $A($){let I=new n1({check:"describe"});return I._zod.onattach=[(U)=>{let Y=l4.get(U)??{};l4.add(U,{...Y,description:$})}],I._zod.check=()=>{},I}function IA($){let I=new n1({check:"meta"});return I._zod.onattach=[(U)=>{let Y=l4.get(U)??{};l4.add(U,{...Y,...$})}],I._zod.check=()=>{},I}function UA($,I){let U=N0(I),Y=U.truthy??["true","1","yes","on","y","enabled"],J=U.falsy??["false","0","no","off","n","disabled"];if(U.case!=="sensitive")Y=Y.map((V)=>typeof V==="string"?V.toLowerCase():V),J=J.map((V)=>typeof V==="string"?V.toLowerCase():V);let Q=new Set(Y),K=new Set(J),q=$.Codec??JQ,H=$.Boolean??UQ,W=new($.String??_7)({type:"string",error:U.error}),w=new H({type:"boolean",error:U.error}),Z=new q({type:"pipe",in:W,out:w,transform:(V,X)=>{let L=V;if(U.case!=="sensitive")L=L.toLowerCase();if(Q.has(L))return!0;else if(K.has(L))return!1;else return X.issues.push({code:"invalid_value",expected:"stringbool",values:[...Q,...K],input:X.value,inst:Z,continue:!1}),{}},reverseTransform:(V,X)=>{if(V===!0)return Y[0]||"true";else return J[0]||"false"},error:U.error});return Z}function nI($,I,U,Y={}){let J=N0(Y),Q={...N0(Y),check:"string_format",type:"string",format:I,fn:typeof U==="function"?U:(q)=>U.test(q),...J};if(U instanceof RegExp)Q.pattern=U;return new $(Q)}function Q9($){let I=$?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";return{processors:$.processors??{},metadataRegistry:$?.metadata??l4,target:I,unrepresentable:$?.unrepresentable??"throw",override:$?.override??(()=>{}),io:$?.io??"output",counter:0,seen:new Map,cycles:$?.cycles??"ref",reused:$?.reused??"inline",external:$?.external??void 0}}function S1($,I,U={path:[],schemaPath:[]}){var Y;let J=$._zod.def,Q=I.seen.get($);if(Q){if(Q.count++,U.schemaPath.includes($))Q.cycle=U.path;return Q.schema}let K={schema:{},count:1,cycle:void 0,path:U.path};I.seen.set($,K);let q=$._zod.toJSONSchema?.();if(q)K.schema=q;else{let W={...U,schemaPath:[...U.schemaPath,$],path:U.path};if($._zod.processJSONSchema)$._zod.processJSONSchema(I,K.schema,W);else{let Z=K.schema,V=I.processors[J.type];if(!V)throw Error(`[toJSONSchema]: Non-representable type encountered: ${J.type}`);V($,I,Z,W)}let w=$._zod.parent;if(w){if(!K.ref)K.ref=w;S1(w,I,W),I.seen.get(w).isParent=!0}}let H=I.metadataRegistry.get($);if(H)Object.assign(K.schema,H);if(I.io==="input"&&v6($))delete K.schema.examples,delete K.schema.default;if(I.io==="input"&&"_prefault"in K.schema)(Y=K.schema).default??(Y.default=K.schema._prefault);return delete K.schema._prefault,I.seen.get($).schema}function K9($,I){let U=$.seen.get(I);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=new Map;for(let K of $.seen.entries()){let q=$.metadataRegistry.get(K[0])?.id;if(q){let H=Y.get(q);if(H&&H!==K[0])throw Error(`Duplicate schema id "${q}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);Y.set(q,K[0])}}let J=(K)=>{let q=$.target==="draft-2020-12"?"$defs":"definitions";if($.external){let w=$.external.registry.get(K[0])?.id,Z=$.external.uri??((X)=>X);if(w)return{ref:Z(w)};let V=K[1].defId??K[1].schema.id??`schema${$.counter++}`;return K[1].defId=V,{defId:V,ref:`${Z("__shared")}#/${q}/${V}`}}if(K[1]===U)return{ref:"#"};let G=`${"#"}/${q}/`,W=K[1].schema.id??`__schema${$.counter++}`;return{defId:W,ref:G+W}},Q=(K)=>{if(K[1].schema.$ref)return;let q=K[1],{ref:H,defId:G}=J(K);if(q.def={...q.schema},G)q.defId=G;let W=q.schema;for(let w in W)delete W[w];W.$ref=H};if($.cycles==="throw")for(let K of $.seen.entries()){let q=K[1];if(q.cycle)throw Error(`Cycle detected: #/${q.cycle?.join("/")}/ + `)}V.write("payload.value = newResult;"),V.write("return payload;");let P=V.compile();return(T,A)=>P(Z,T,A)},Q,K=j7,q=!v7.jitless,G=q&&HO.value,W=I.catchall,w;$._zod.parse=(Z,V)=>{w??(w=Y.value);let X=Z.value;if(!K(X))return Z.issues.push({expected:"object",code:"invalid_type",input:X,inst:$}),Z;if(q&&G&&V?.async===!1&&V.jitless!==!0){if(!Q)Q=J(I.shape);if(Z=Q(Z,V),!W)return Z;return Nx([],X,Z,V,w,$)}return U(Z,V)}});function Jx($,I,U,Y){for(let Q of $)if(Q.issues.length===0)return I.value=Q.value,I;let J=$.filter((Q)=>!U9(Q));if(J.length===1)return I.value=J[0].value,J[0];return I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>E6(K,Y,z4())))}),I}var QQ=o("$ZodUnion",($,I)=>{p0.init($,I),e0($._zod,"optin",()=>I.options.some((Y)=>Y._zod.optin==="optional")?"optional":void 0),e0($._zod,"optout",()=>I.options.some((Y)=>Y._zod.optout==="optional")?"optional":void 0),e0($._zod,"values",()=>{if(I.options.every((Y)=>Y._zod.values))return new Set(I.options.flatMap((Y)=>Array.from(Y._zod.values)));return}),e0($._zod,"pattern",()=>{if(I.options.every((Y)=>Y._zod.pattern)){let Y=I.options.map((J)=>J._zod.pattern);return new RegExp(`^(${Y.map((J)=>dJ(J.source)).join("|")})$`)}return});let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let H=q._zod.run({value:Y.value,issues:[]},J);if(H instanceof Promise)K.push(H),Q=!0;else{if(H.issues.length===0)return H;K.push(H)}}if(!Q)return Jx(K,Y,$,J);return Promise.all(K).then((q)=>{return Jx(q,Y,$,J)})}});function Qx($,I,U,Y){let J=$.filter((Q)=>Q.issues.length===0);if(J.length===1)return I.value=J[0].value,I;if(J.length===0)I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>E6(K,Y,z4())))});else I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:[],inclusive:!1});return I}var tF=o("$ZodXor",($,I)=>{QQ.init($,I),I.inclusive=!1;let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let H=q._zod.run({value:Y.value,issues:[]},J);if(H instanceof Promise)K.push(H),Q=!0;else K.push(H)}if(!Q)return Qx(K,Y,$,J);return Promise.all(K).then((q)=>{return Qx(q,Y,$,J)})}}),aF=o("$ZodDiscriminatedUnion",($,I)=>{I.inclusive=!1,QQ.init($,I);let U=$._zod.parse;e0($._zod,"propValues",()=>{let J={};for(let Q of I.options){let K=Q._zod.propValues;if(!K||Object.keys(K).length===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(Q)}"`);for(let[q,H]of Object.entries(K)){if(!J[q])J[q]=new Set;for(let G of H)J[q].add(G)}}return J});let Y=MI(()=>{let J=I.options,Q=new Map;for(let K of J){let q=K._zod.propValues?.[I.discriminator];if(!q||q.size===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(K)}"`);for(let H of q){if(Q.has(H))throw Error(`Duplicate discriminator value "${String(H)}"`);Q.set(H,K)}}return Q});$._zod.parse=(J,Q)=>{let K=J.value;if(!j7(K))return J.issues.push({code:"invalid_type",expected:"object",input:K,inst:$}),J;let q=Y.value.get(K?.[I.discriminator]);if(q)return q._zod.run(J,Q);if(I.unionFallback||Q.direction==="backward")return U(J,Q);return J.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:I.discriminator,options:Array.from(Y.value.keys()),input:K,path:[I.discriminator],inst:$}),J}}),sF=o("$ZodIntersection",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value,Q=I.left._zod.run({value:J,issues:[]},Y),K=I.right._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise||K instanceof Promise)return Promise.all([Q,K]).then(([H,G])=>{return Kx(U,H,G)});return Kx(U,Q,K)}});function wF($,I){if($===I)return{valid:!0,data:$};if($ instanceof Date&&I instanceof Date&&+$===+I)return{valid:!0,data:$};if(I9($)&&I9(I)){let U=Object.keys(I),Y=Object.keys($).filter((Q)=>U.indexOf(Q)!==-1),J={...$,...I};for(let Q of Y){let K=wF($[Q],I[Q]);if(!K.valid)return{valid:!1,mergeErrorPath:[Q,...K.mergeErrorPath]};J[Q]=K.data}return{valid:!0,data:J}}if(Array.isArray($)&&Array.isArray(I)){if($.length!==I.length)return{valid:!1,mergeErrorPath:[]};let U=[];for(let Y=0;Y<$.length;Y++){let J=$[Y],Q=I[Y],K=wF(J,Q);if(!K.valid)return{valid:!1,mergeErrorPath:[Y,...K.mergeErrorPath]};U.push(K.data)}return{valid:!0,data:U}}return{valid:!1,mergeErrorPath:[]}}function Kx($,I,U){let Y=new Map,J;for(let q of I.issues)if(q.code==="unrecognized_keys"){J??(J=q);for(let H of q.keys){if(!Y.has(H))Y.set(H,{});Y.get(H).l=!0}}else $.issues.push(q);for(let q of U.issues)if(q.code==="unrecognized_keys")for(let H of q.keys){if(!Y.has(H))Y.set(H,{});Y.get(H).r=!0}else $.issues.push(q);let Q=[...Y].filter(([,q])=>q.l&&q.r).map(([q])=>q);if(Q.length&&J)$.issues.push({...J,keys:Q});if(U9($))return $;let K=wF(I.value,U.value);if(!K.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(K.mergeErrorPath)}`);return $.value=K.data,$}var DG=o("$ZodTuple",($,I)=>{p0.init($,I);let U=I.items;$._zod.parse=(Y,J)=>{let Q=Y.value;if(!Array.isArray(Q))return Y.issues.push({input:Q,inst:$,expected:"tuple",code:"invalid_type"}),Y;Y.value=[];let K=[],q=qx(U,"optin"),H=qx(U,"optout");if(!I.rest){if(Q.lengthU.length)Y.issues.push({code:"too_big",maximum:U.length,inclusive:!0,input:Q,inst:$,origin:"array"})}let G=Array(U.length);for(let W=0;W{G[W]=Z}));else G[W]=w}if(I.rest){let W=U.length-1,w=Q.slice(U.length);for(let Z of w){W++;let V=I.rest._zod.run({value:Z,issues:[]},J);if(V instanceof Promise)K.push(V.then((X)=>Hx(X,Y,W)));else Hx(V,Y,W)}}if(K.length)return Promise.all(K).then(()=>Gx(G,Y,U,Q,H));return Gx(G,Y,U,Q,H)}});function qx($,I){for(let U=$.length-1;U>=0;U--)if($[U]._zod[I]!=="optional")return U+1;return 0}function Hx($,I,U){if($.issues.length)I.issues.push(...b6(U,$.issues));I.value[U]=$.value}function Gx($,I,U,Y,J){for(let Q=0;Q=J){I.value.length=Q;break}I.issues.push(...b6(Q,K.issues))}I.value[Q]=K.value}for(let Q=I.value.length-1;Q>=Y.length;Q--)if(U[Q]._zod.optout==="optional"&&I.value[Q]===void 0)I.value.length=Q;else break;return I}var eF=o("$ZodRecord",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!I9(J))return U.issues.push({expected:"record",code:"invalid_type",input:J,inst:$}),U;let Q=[],K=I.keyType._zod.values;if(K){U.value={};let q=new Set;for(let G of K)if(typeof G==="string"||typeof G==="number"||typeof G==="symbol"){q.add(typeof G==="number"?G.toString():G);let W=I.keyType._zod.run({value:G,issues:[]},Y);if(W instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(W.issues.length){U.issues.push({code:"invalid_key",origin:"record",issues:W.issues.map((V)=>E6(V,Y,z4())),input:G,path:[G],inst:$});continue}let w=W.value,Z=I.valueType._zod.run({value:J[G],issues:[]},Y);if(Z instanceof Promise)Q.push(Z.then((V)=>{if(V.issues.length)U.issues.push(...b6(G,V.issues));U.value[w]=V.value}));else{if(Z.issues.length)U.issues.push(...b6(G,Z.issues));U.value[w]=Z.value}}let H;for(let G in J)if(!q.has(G))H=H??[],H.push(G);if(H&&H.length>0)U.issues.push({code:"unrecognized_keys",input:J,inst:$,keys:H})}else{U.value={};for(let q of Reflect.ownKeys(J)){if(q==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(J,q))continue;let H=I.keyType._zod.run({value:q,issues:[]},Y);if(H instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof q==="string"&&IQ.test(q)&&H.issues.length){let w=I.keyType._zod.run({value:Number(q),issues:[]},Y);if(w instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(w.issues.length===0)H=w}if(H.issues.length){if(I.mode==="loose")U.value[q]=J[q];else U.issues.push({code:"invalid_key",origin:"record",issues:H.issues.map((w)=>E6(w,Y,z4())),input:q,path:[q],inst:$});continue}let W=I.valueType._zod.run({value:J[q],issues:[]},Y);if(W instanceof Promise)Q.push(W.then((w)=>{if(w.issues.length)U.issues.push(...b6(q,w.issues));U.value[H.value]=w.value}));else{if(W.issues.length)U.issues.push(...b6(q,W.issues));U.value[H.value]=W.value}}}if(Q.length)return Promise.all(Q).then(()=>U);return U}}),$N=o("$ZodMap",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!(J instanceof Map))return U.issues.push({expected:"map",code:"invalid_type",input:J,inst:$}),U;let Q=[];U.value=new Map;for(let[K,q]of J){let H=I.keyType._zod.run({value:K,issues:[]},Y),G=I.valueType._zod.run({value:q,issues:[]},Y);if(H instanceof Promise||G instanceof Promise)Q.push(Promise.all([H,G]).then(([W,w])=>{Wx(W,w,U,K,J,$,Y)}));else Wx(H,G,U,K,J,$,Y)}if(Q.length)return Promise.all(Q).then(()=>U);return U}});function Wx($,I,U,Y,J,Q,K){if($.issues.length)if(mJ.has(typeof Y))U.issues.push(...b6(Y,$.issues));else U.issues.push({code:"invalid_key",origin:"map",input:J,inst:Q,issues:$.issues.map((q)=>E6(q,K,z4()))});if(I.issues.length)if(mJ.has(typeof Y))U.issues.push(...b6(Y,I.issues));else U.issues.push({origin:"map",code:"invalid_element",input:J,inst:Q,key:Y,issues:I.issues.map((q)=>E6(q,K,z4()))});U.value.set($.value,I.value)}var IN=o("$ZodSet",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(!(J instanceof Set))return U.issues.push({input:J,inst:$,expected:"set",code:"invalid_type"}),U;let Q=[];U.value=new Set;for(let K of J){let q=I.valueType._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)Q.push(q.then((H)=>wx(H,U)));else wx(q,U)}if(Q.length)return Promise.all(Q).then(()=>U);return U}});function wx($,I){if($.issues.length)I.issues.push(...$.issues);I.value.add($.value)}var UN=o("$ZodEnum",($,I)=>{p0.init($,I);let U=cJ(I.entries),Y=new Set(U);$._zod.values=Y,$._zod.pattern=new RegExp(`^(${U.filter((J)=>mJ.has(typeof J)).map((J)=>typeof J==="string"?P$(J):J.toString()).join("|")})$`),$._zod.parse=(J,Q)=>{let K=J.value;if(Y.has(K))return J;return J.issues.push({code:"invalid_value",values:U,input:K,inst:$}),J}}),YN=o("$ZodLiteral",($,I)=>{if(p0.init($,I),I.values.length===0)throw Error("Cannot create literal schema with no valid values");let U=new Set(I.values);$._zod.values=U,$._zod.pattern=new RegExp(`^(${I.values.map((Y)=>typeof Y==="string"?P$(Y):Y?P$(Y.toString()):String(Y)).join("|")})$`),$._zod.parse=(Y,J)=>{let Q=Y.value;if(U.has(Q))return Y;return Y.issues.push({code:"invalid_value",values:I.values,input:Q,inst:$}),Y}}),JN=o("$ZodFile",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value;if(J instanceof File)return U;return U.issues.push({expected:"file",code:"invalid_type",input:J,inst:$}),U}}),QN=o("$ZodTransform",($,I)=>{p0.init($,I),$._zod.optin="optional",$._zod.parse=(U,Y)=>{if(Y.direction==="backward")throw new R7($.constructor.name);let J=I.transform(U.value,U);if(Y.async)return(J instanceof Promise?J:Promise.resolve(J)).then((K)=>{return U.value=K,U.fallback=!0,U});if(J instanceof Promise)throw new Z8;return U.value=J,U.fallback=!0,U}});function Vx($,I){if(I===void 0&&($.issues.length||$.fallback))return{issues:[],value:void 0};return $}var OG=o("$ZodOptional",($,I)=>{p0.init($,I),$._zod.optin="optional",$._zod.optout="optional",e0($._zod,"values",()=>{return I.innerType._zod.values?new Set([...I.innerType._zod.values,void 0]):void 0}),e0($._zod,"pattern",()=>{let U=I.innerType._zod.pattern;return U?new RegExp(`^(${dJ(U.source)})?$`):void 0}),$._zod.parse=(U,Y)=>{if(I.innerType._zod.optin==="optional"){let J=U.value,Q=I.innerType._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>Vx(K,J));return Vx(Q,J)}if(U.value===void 0)return U;return I.innerType._zod.run(U,Y)}}),KN=o("$ZodExactOptional",($,I)=>{OG.init($,I),e0($._zod,"values",()=>I.innerType._zod.values),e0($._zod,"pattern",()=>I.innerType._zod.pattern),$._zod.parse=(U,Y)=>{return I.innerType._zod.run(U,Y)}}),qN=o("$ZodNullable",($,I)=>{p0.init($,I),e0($._zod,"optin",()=>I.innerType._zod.optin),e0($._zod,"optout",()=>I.innerType._zod.optout),e0($._zod,"pattern",()=>{let U=I.innerType._zod.pattern;return U?new RegExp(`^(${dJ(U.source)}|null)$`):void 0}),e0($._zod,"values",()=>{return I.innerType._zod.values?new Set([...I.innerType._zod.values,null]):void 0}),$._zod.parse=(U,Y)=>{if(U.value===null)return U;return I.innerType._zod.run(U,Y)}}),HN=o("$ZodDefault",($,I)=>{p0.init($,I),$._zod.optin="optional",e0($._zod,"values",()=>I.innerType._zod.values),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);if(U.value===void 0)return U.value=I.defaultValue,U;let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>Zx(Q,I));return Zx(J,I)}});function Zx($,I){if($.value===void 0)$.value=I.defaultValue;return $}var GN=o("$ZodPrefault",($,I)=>{p0.init($,I),$._zod.optin="optional",e0($._zod,"values",()=>I.innerType._zod.values),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);if(U.value===void 0)U.value=I.defaultValue;return I.innerType._zod.run(U,Y)}}),WN=o("$ZodNonOptional",($,I)=>{p0.init($,I),e0($._zod,"values",()=>{let U=I.innerType._zod.values;return U?new Set([...U].filter((Y)=>Y!==void 0)):void 0}),$._zod.parse=(U,Y)=>{let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>zx(Q,$));return zx(J,$)}});function zx($,I){if(!$.issues.length&&$.value===void 0)$.issues.push({code:"invalid_type",expected:"nonoptional",input:$.value,inst:I});return $}var wN=o("$ZodSuccess",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")throw new R7("ZodSuccess");let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>{return U.value=Q.issues.length===0,U});return U.value=J.issues.length===0,U}}),VN=o("$ZodCatch",($,I)=>{p0.init($,I),$._zod.optin="optional",e0($._zod,"optout",()=>I.innerType._zod.optout),e0($._zod,"values",()=>I.innerType._zod.values),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>{if(U.value=Q.value,Q.issues.length)U.value=I.catchValue({...U,error:{issues:Q.issues.map((K)=>E6(K,Y,z4()))},input:U.value}),U.issues=[],U.fallback=!0;return U});if(U.value=J.value,J.issues.length)U.value=I.catchValue({...U,error:{issues:J.issues.map((Q)=>E6(Q,Y,z4()))},input:U.value}),U.issues=[],U.fallback=!0;return U}}),ZN=o("$ZodNaN",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{if(typeof U.value!=="number"||!Number.isNaN(U.value))return U.issues.push({input:U.value,inst:$,expected:"nan",code:"invalid_type"}),U;return U}}),FG=o("$ZodPipe",($,I)=>{p0.init($,I),e0($._zod,"values",()=>I.in._zod.values),e0($._zod,"optin",()=>I.in._zod.optin),e0($._zod,"optout",()=>I.out._zod.optout),e0($._zod,"propValues",()=>I.in._zod.propValues),$._zod.parse=(U,Y)=>{if(Y.direction==="backward"){let Q=I.out._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>wG(K,I.in,Y));return wG(Q,I.in,Y)}let J=I.in._zod.run(U,Y);if(J instanceof Promise)return J.then((Q)=>wG(Q,I.out,Y));return wG(J,I.out,Y)}});function wG($,I,U){if($.issues.length)return $.aborted=!0,$;return I._zod.run({value:$.value,issues:$.issues,fallback:$.fallback},U)}var KQ=o("$ZodCodec",($,I)=>{p0.init($,I),e0($._zod,"values",()=>I.in._zod.values),e0($._zod,"optin",()=>I.in._zod.optin),e0($._zod,"optout",()=>I.out._zod.optout),e0($._zod,"propValues",()=>I.in._zod.propValues),$._zod.parse=(U,Y)=>{if((Y.direction||"forward")==="forward"){let Q=I.in._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>VG(K,I,Y));return VG(Q,I,Y)}else{let Q=I.out._zod.run(U,Y);if(Q instanceof Promise)return Q.then((K)=>VG(K,I,Y));return VG(Q,I,Y)}}});function VG($,I,U){if($.issues.length)return $.aborted=!0,$;if((U.direction||"forward")==="forward"){let J=I.transform($.value,$);if(J instanceof Promise)return J.then((Q)=>ZG($,Q,I.out,U));return ZG($,J,I.out,U)}else{let J=I.reverseTransform($.value,$);if(J instanceof Promise)return J.then((Q)=>ZG($,Q,I.in,U));return ZG($,J,I.in,U)}}function ZG($,I,U,Y){if($.issues.length)return $.aborted=!0,$;return U._zod.run({value:I,issues:$.issues},Y)}var zN=o("$ZodPreprocess",($,I)=>{FG.init($,I)}),XN=o("$ZodReadonly",($,I)=>{p0.init($,I),e0($._zod,"propValues",()=>I.innerType._zod.propValues),e0($._zod,"values",()=>I.innerType._zod.values),e0($._zod,"optin",()=>I.innerType?._zod?.optin),e0($._zod,"optout",()=>I.innerType?._zod?.optout),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")return I.innerType._zod.run(U,Y);let J=I.innerType._zod.run(U,Y);if(J instanceof Promise)return J.then(Xx);return Xx(J)}});function Xx($){return $.value=Object.freeze($.value),$}var LN=o("$ZodTemplateLiteral",($,I)=>{p0.init($,I);let U=[];for(let Y of I.parts)if(typeof Y==="object"&&Y!==null){if(!Y._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...Y._zod.traits].shift()}`);let J=Y._zod.pattern instanceof RegExp?Y._zod.pattern.source:Y._zod.pattern;if(!J)throw Error(`Invalid template literal part: ${Y._zod.traits}`);let Q=J.startsWith("^")?1:0,K=J.endsWith("$")?J.length-1:J.length;U.push(J.slice(Q,K))}else if(Y===null||WO.has(typeof Y))U.push(P$(`${Y}`));else throw Error(`Invalid template literal part: ${Y}`);$._zod.pattern=new RegExp(`^${U.join("")}$`),$._zod.parse=(Y,J)=>{if(typeof Y.value!=="string")return Y.issues.push({input:Y.value,inst:$,expected:"string",code:"invalid_type"}),Y;if($._zod.pattern.lastIndex=0,!$._zod.pattern.test(Y.value))return Y.issues.push({input:Y.value,inst:$,code:"invalid_format",format:I.format??"template_literal",pattern:$._zod.pattern.source}),Y;return Y}}),DN=o("$ZodFunction",($,I)=>{return p0.init($,I),$._def=I,$._zod.def=I,$.implement=(U)=>{if(typeof U!=="function")throw Error("implement() must be called with a function");return function(...Y){let J=$._def.input?sJ($._def.input,Y):Y,Q=Reflect.apply(U,this,J);if($._def.output)return sJ($._def.output,Q);return Q}},$.implementAsync=(U)=>{if(typeof U!=="function")throw Error("implementAsync() must be called with a function");return async function(...Y){let J=$._def.input?await eJ($._def.input,Y):Y,Q=await Reflect.apply(U,this,J);if($._def.output)return await eJ($._def.output,Q);return Q}},$._zod.parse=(U,Y)=>{if(typeof U.value!=="function")return U.issues.push({code:"invalid_type",expected:"function",input:U.value,inst:$}),U;if($._def.output&&$._def.output._zod.def.type==="promise")U.value=$.implementAsync(U.value);else U.value=$.implement(U.value);return U},$.input=(...U)=>{let Y=$.constructor;if(Array.isArray(U[0]))return new Y({type:"function",input:new DG({type:"tuple",items:U[0],rest:U[1]}),output:$._def.output});return new Y({type:"function",input:U[0],output:$._def.output})},$.output=(U)=>{return new $.constructor({type:"function",input:$._def.input,output:U})},$}),ON=o("$ZodPromise",($,I)=>{p0.init($,I),$._zod.parse=(U,Y)=>{return Promise.resolve(U.value).then((J)=>I.innerType._zod.run({value:J,issues:[]},Y))}}),FN=o("$ZodLazy",($,I)=>{p0.init($,I),e0($._zod,"innerType",()=>{let U=I;if(!U._cachedInner)U._cachedInner=I.getter();return U._cachedInner}),e0($._zod,"pattern",()=>$._zod.innerType?._zod?.pattern),e0($._zod,"propValues",()=>$._zod.innerType?._zod?.propValues),e0($._zod,"optin",()=>$._zod.innerType?._zod?.optin??void 0),e0($._zod,"optout",()=>$._zod.innerType?._zod?.optout??void 0),$._zod.parse=(U,Y)=>{return $._zod.innerType._zod.run(U,Y)}}),NN=o("$ZodCustom",($,I)=>{n1.init($,I),p0.init($,I),$._zod.parse=(U,Y)=>{return U},$._zod.check=(U)=>{let Y=U.value,J=I.fn(Y);if(J instanceof Promise)return J.then((Q)=>Lx(Q,U,Y,$));Lx(J,U,Y,$);return}});function Lx($,I,U,Y){if(!$){let J={code:"custom",input:U,inst:Y,path:[...Y._zod.def.path??[]],continue:!Y._zod.def.abort};if(Y._zod.def.params)J.params=Y._zod.def.params;I.issues.push(AI(J))}}var wQ={};$5(wQ,{zhTW:()=>zM,zhCN:()=>ZM,yo:()=>XM,vi:()=>VM,uz:()=>wM,ur:()=>WM,uk:()=>WQ,ua:()=>GM,tr:()=>HM,th:()=>qM,ta:()=>KM,sv:()=>QM,sl:()=>JM,ru:()=>YM,ro:()=>UM,pt:()=>IM,ps:()=>eN,pl:()=>$M,ota:()=>sN,no:()=>aN,nl:()=>tN,ms:()=>rN,mk:()=>oN,lt:()=>lN,ko:()=>mN,km:()=>HQ,kh:()=>dN,ka:()=>cN,ja:()=>pN,it:()=>nN,is:()=>bN,id:()=>iN,hy:()=>fN,hu:()=>xN,hr:()=>kN,he:()=>uN,frCA:()=>hN,fr:()=>yN,fi:()=>gN,fa:()=>SN,es:()=>_N,eo:()=>CN,en:()=>qQ,el:()=>jN,de:()=>RN,da:()=>vN,cs:()=>BN,ca:()=>EN,bg:()=>TN,be:()=>PN,az:()=>AN,ar:()=>MN});var SD0=()=>{let $={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function I(J){return $[J]??null}let U={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:"مدخل"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${J.expected}، ولكن تم إدخال ${q}`;return`مدخلات غير مقبولة: يفترض إدخال ${Q}، ولكن تم إدخال ${q}`}case"invalid_value":if(J.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${Z0(J.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return` أكبر من اللازم: يفترض أن تكون ${J.origin??"القيمة"} ${Q} ${J.maximum.toString()} ${K.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${J.origin??"القيمة"} ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`أصغر من اللازم: يفترض لـ ${J.origin} أن يكون ${Q} ${J.minimum.toString()} ${K.unit}`;return`أصغر من اللازم: يفترض لـ ${J.origin} أن يكون ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${J.prefix}"`;if(Q.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${Q.suffix}"`;if(Q.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${Q.includes}"`;if(Q.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${Q.pattern}`;return`${U[Q.format]??J.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${J.divisor}`;case"unrecognized_keys":return`معرف${J.keys.length>1?"ات":""} غريب${J.keys.length>1?"ة":""}: ${I0(J.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${J.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${J.origin}`;default:return"مدخل غير مقبول"}}};function MN(){return{localeError:SD0()}}var gD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Yanlış dəyər: gözlənilən instanceof ${J.expected}, daxil olan ${q}`;return`Yanlış dəyər: gözlənilən ${Q}, daxil olan ${q}`}case"invalid_value":if(J.values.length===1)return`Yanlış dəyər: gözlənilən ${Z0(J.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Çox böyük: gözlənilən ${J.origin??"dəyər"} ${Q}${J.maximum.toString()} ${K.unit??"element"}`;return`Çox böyük: gözlənilən ${J.origin??"dəyər"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Çox kiçik: gözlənilən ${J.origin} ${Q}${J.minimum.toString()} ${K.unit}`;return`Çox kiçik: gözlənilən ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Yanlış mətn: "${Q.prefix}" ilə başlamalıdır`;if(Q.format==="ends_with")return`Yanlış mətn: "${Q.suffix}" ilə bitməlidir`;if(Q.format==="includes")return`Yanlış mətn: "${Q.includes}" daxil olmalıdır`;if(Q.format==="regex")return`Yanlış mətn: ${Q.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${U[Q.format]??J.format}`}case"not_multiple_of":return`Yanlış ədəd: ${J.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${J.keys.length>1?"lar":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${J.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function AN(){return{localeError:gD0()}}function Ax($,I,U,Y){let J=Math.abs($),Q=J%10,K=J%100;if(K>=11&&K<=19)return Y;if(Q===1)return I;if(Q>=2&&Q<=4)return U;return Y}var yD0=()=>{let $={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 I(J){return $[J]??null}let U={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:"увод"},Y={nan:"NaN",number:"лік",array:"масіў"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Няправільны ўвод: чакаўся instanceof ${J.expected}, атрымана ${q}`;return`Няправільны ўвод: чакаўся ${Q}, атрымана ${q}`}case"invalid_value":if(J.values.length===1)return`Няправільны ўвод: чакалася ${Z0(J.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K){let q=Number(J.maximum),H=Ax(q,K.unit.one,K.unit.few,K.unit.many);return`Занадта вялікі: чакалася, што ${J.origin??"значэнне"} павінна ${K.verb} ${Q}${J.maximum.toString()} ${H}`}return`Занадта вялікі: чакалася, што ${J.origin??"значэнне"} павінна быць ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K){let q=Number(J.minimum),H=Ax(q,K.unit.one,K.unit.few,K.unit.many);return`Занадта малы: чакалася, што ${J.origin} павінна ${K.verb} ${Q}${J.minimum.toString()} ${H}`}return`Занадта малы: чакалася, што ${J.origin} павінна быць ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${Q.prefix}"`;if(Q.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${Q.suffix}"`;if(Q.format==="includes")return`Няправільны радок: павінен змяшчаць "${Q.includes}"`;if(Q.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${Q.pattern}`;return`Няправільны ${U[Q.format]??J.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${J.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${J.keys.length>1?"ключы":"ключ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${J.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${J.origin}`;default:return"Няправільны ўвод"}}};function PN(){return{localeError:yD0()}}var hD0=()=>{let $={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function I(J){return $[J]??null}let U={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:"вход"},Y={nan:"NaN",number:"число",array:"масив"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Невалиден вход: очакван instanceof ${J.expected}, получен ${q}`;return`Невалиден вход: очакван ${Q}, получен ${q}`}case"invalid_value":if(J.values.length===1)return`Невалиден вход: очакван ${Z0(J.values[0])}`;return`Невалидна опция: очаквано едно от ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Твърде голямо: очаква се ${J.origin??"стойност"} да съдържа ${Q}${J.maximum.toString()} ${K.unit??"елемента"}`;return`Твърде голямо: очаква се ${J.origin??"стойност"} да бъде ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Твърде малко: очаква се ${J.origin} да съдържа ${Q}${J.minimum.toString()} ${K.unit}`;return`Твърде малко: очаква се ${J.origin} да бъде ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Невалиден низ: трябва да започва с "${Q.prefix}"`;if(Q.format==="ends_with")return`Невалиден низ: трябва да завършва с "${Q.suffix}"`;if(Q.format==="includes")return`Невалиден низ: трябва да включва "${Q.includes}"`;if(Q.format==="regex")return`Невалиден низ: трябва да съвпада с ${Q.pattern}`;let K="Невалиден";if(Q.format==="emoji")K="Невалидно";if(Q.format==="datetime")K="Невалидно";if(Q.format==="date")K="Невалидна";if(Q.format==="time")K="Невалидно";if(Q.format==="duration")K="Невалидна";return`${K} ${U[Q.format]??J.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${J.divisor}`;case"unrecognized_keys":return`Неразпознат${J.keys.length>1?"и":""} ключ${J.keys.length>1?"ове":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${J.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${J.origin}`;default:return"Невалиден вход"}}};function TN(){return{localeError:hD0()}}var uD0=()=>{let $={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Tipus invàlid: s'esperava instanceof ${J.expected}, s'ha rebut ${q}`;return`Tipus invàlid: s'esperava ${Q}, s'ha rebut ${q}`}case"invalid_value":if(J.values.length===1)return`Valor invàlid: s'esperava ${Z0(J.values[0])}`;return`Opció invàlida: s'esperava una de ${I0(J.values," o ")}`;case"too_big":{let Q=J.inclusive?"com a màxim":"menys de",K=I(J.origin);if(K)return`Massa gran: s'esperava que ${J.origin??"el valor"} contingués ${Q} ${J.maximum.toString()} ${K.unit??"elements"}`;return`Massa gran: s'esperava que ${J.origin??"el valor"} fos ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?"com a mínim":"més de",K=I(J.origin);if(K)return`Massa petit: s'esperava que ${J.origin} contingués ${Q} ${J.minimum.toString()} ${K.unit}`;return`Massa petit: s'esperava que ${J.origin} fos ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Format invàlid: ha de començar amb "${Q.prefix}"`;if(Q.format==="ends_with")return`Format invàlid: ha d'acabar amb "${Q.suffix}"`;if(Q.format==="includes")return`Format invàlid: ha d'incloure "${Q.includes}"`;if(Q.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${Q.pattern}`;return`Format invàlid per a ${U[Q.format]??J.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${J.divisor}`;case"unrecognized_keys":return`Clau${J.keys.length>1?"s":""} no reconeguda${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${J.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${J.origin}`;default:return"Entrada invàlida"}}};function EN(){return{localeError:uD0()}}var kD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Neplatný vstup: očekáváno instanceof ${J.expected}, obdrženo ${q}`;return`Neplatný vstup: očekáváno ${Q}, obdrženo ${q}`}case"invalid_value":if(J.values.length===1)return`Neplatný vstup: očekáváno ${Z0(J.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Hodnota je příliš velká: ${J.origin??"hodnota"} musí mít ${Q}${J.maximum.toString()} ${K.unit??"prvků"}`;return`Hodnota je příliš velká: ${J.origin??"hodnota"} musí být ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Hodnota je příliš malá: ${J.origin??"hodnota"} musí mít ${Q}${J.minimum.toString()} ${K.unit??"prvků"}`;return`Hodnota je příliš malá: ${J.origin??"hodnota"} musí být ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Neplatný řetězec: musí začínat na "${Q.prefix}"`;if(Q.format==="ends_with")return`Neplatný řetězec: musí končit na "${Q.suffix}"`;if(Q.format==="includes")return`Neplatný řetězec: musí obsahovat "${Q.includes}"`;if(Q.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${Q.pattern}`;return`Neplatný formát ${U[Q.format]??J.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${J.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${I0(J.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${J.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${J.origin}`;default:return"Neplatný vstup"}}};function BN(){return{localeError:kD0()}}var xD0=()=>{let $={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ugyldigt input: forventede instanceof ${J.expected}, fik ${q}`;return`Ugyldigt input: forventede ${Q}, fik ${q}`}case"invalid_value":if(J.values.length===1)return`Ugyldig værdi: forventede ${Z0(J.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`For stor: forventede ${q??"value"} ${K.verb} ${Q} ${J.maximum.toString()} ${K.unit??"elementer"}`;return`For stor: forventede ${q??"value"} havde ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`For lille: forventede ${q} ${K.verb} ${Q} ${J.minimum.toString()} ${K.unit}`;return`For lille: forventede ${q} havde ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ugyldig streng: skal starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: skal ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: skal indeholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: skal matche mønsteret ${Q.pattern}`;return`Ugyldig ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${J.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${J.origin}`;default:return"Ugyldigt input"}}};function vN(){return{localeError:xD0()}}var fD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"Zahl",array:"Array"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ungültige Eingabe: erwartet instanceof ${J.expected}, erhalten ${q}`;return`Ungültige Eingabe: erwartet ${Q}, erhalten ${q}`}case"invalid_value":if(J.values.length===1)return`Ungültige Eingabe: erwartet ${Z0(J.values[0])}`;return`Ungültige Option: erwartet eine von ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Zu groß: erwartet, dass ${J.origin??"Wert"} ${Q}${J.maximum.toString()} ${K.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${J.origin??"Wert"} ${Q}${J.maximum.toString()} ist`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Zu klein: erwartet, dass ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} hat`;return`Zu klein: erwartet, dass ${J.origin} ${Q}${J.minimum.toString()} ist`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ungültiger String: muss mit "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ungültiger String: muss mit "${Q.suffix}" enden`;if(Q.format==="includes")return`Ungültiger String: muss "${Q.includes}" enthalten`;if(Q.format==="regex")return`Ungültiger String: muss dem Muster ${Q.pattern} entsprechen`;return`Ungültig: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${J.divisor} sein`;case"unrecognized_keys":return`${J.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${J.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${J.origin}`;default:return"Ungültige Eingabe"}}};function RN(){return{localeError:fD0()}}var iD0=()=>{let $={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function I(J){return $[J]??null}let U={regex:"είσοδος",email:"διεύθυνση 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",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(typeof J.expected==="string"&&/^[A-Z]/.test(J.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${J.expected}, λήφθηκε ${q}`;return`Μη έγκυρη είσοδος: αναμενόταν ${Q}, λήφθηκε ${q}`}case"invalid_value":if(J.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${Z0(J.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Πολύ μεγάλο: αναμενόταν ${J.origin??"τιμή"} να έχει ${Q}${J.maximum.toString()} ${K.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${J.origin??"τιμή"} να είναι ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Πολύ μικρό: αναμενόταν ${J.origin} να έχει ${Q}${J.minimum.toString()} ${K.unit}`;return`Πολύ μικρό: αναμενόταν ${J.origin} να είναι ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${Q.prefix}"`;if(Q.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${Q.suffix}"`;if(Q.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${Q.includes}"`;if(Q.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${Q.pattern}`;return`Μη έγκυρο: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${J.divisor}`;case"unrecognized_keys":return`Άγνωστ${J.keys.length>1?"α":"ο"} κλειδ${J.keys.length>1?"ιά":"ί"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${J.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${J.origin}`;default:return"Μη έγκυρη είσοδος"}}};function jN(){return{localeError:iD0()}}var bD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;return`Invalid input: expected ${Q}, received ${q}`}case"invalid_value":if(J.values.length===1)return`Invalid input: expected ${Z0(J.values[0])}`;return`Invalid option: expected one of ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Too big: expected ${J.origin??"value"} to have ${Q}${J.maximum.toString()} ${K.unit??"elements"}`;return`Too big: expected ${J.origin??"value"} to be ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Too small: expected ${J.origin} to have ${Q}${J.minimum.toString()} ${K.unit}`;return`Too small: expected ${J.origin} to be ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Invalid string: must start with "${Q.prefix}"`;if(Q.format==="ends_with")return`Invalid string: must end with "${Q.suffix}"`;if(Q.format==="includes")return`Invalid string: must include "${Q.includes}"`;if(Q.format==="regex")return`Invalid string: must match pattern ${Q.pattern}`;return`Invalid ${U[Q.format]??J.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${J.divisor}`;case"unrecognized_keys":return`Unrecognized key${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Invalid key in ${J.origin}`;case"invalid_union":if(J.options&&Array.isArray(J.options)&&J.options.length>0)return`Invalid discriminator value. Expected ${J.options.map((K)=>`'${K}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${J.origin}`;default:return"Invalid input"}}};function qQ(){return{localeError:bD0()}}var nD0=()=>{let $={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Nevalida enigo: atendiĝis instanceof ${J.expected}, riceviĝis ${q}`;return`Nevalida enigo: atendiĝis ${Q}, riceviĝis ${q}`}case"invalid_value":if(J.values.length===1)return`Nevalida enigo: atendiĝis ${Z0(J.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Tro granda: atendiĝis ke ${J.origin??"valoro"} havu ${Q}${J.maximum.toString()} ${K.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${J.origin??"valoro"} havu ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Tro malgranda: atendiĝis ke ${J.origin} havu ${Q}${J.minimum.toString()} ${K.unit}`;return`Tro malgranda: atendiĝis ke ${J.origin} estu ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${Q.prefix}"`;if(Q.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${Q.suffix}"`;if(Q.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${Q.includes}"`;if(Q.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${Q.pattern}`;return`Nevalida ${U[Q.format]??J.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${J.divisor}`;case"unrecognized_keys":return`Nekonata${J.keys.length>1?"j":""} ŝlosilo${J.keys.length>1?"j":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${J.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${J.origin}`;default:return"Nevalida enigo"}}};function CN(){return{localeError:nD0()}}var pD0=()=>{let $={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function I(J){return $[J]??null}let U={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"},Y={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(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Entrada inválida: se esperaba instanceof ${J.expected}, recibido ${q}`;return`Entrada inválida: se esperaba ${Q}, recibido ${q}`}case"invalid_value":if(J.values.length===1)return`Entrada inválida: se esperaba ${Z0(J.values[0])}`;return`Opción inválida: se esperaba una de ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Demasiado grande: se esperaba que ${q??"valor"} tuviera ${Q}${J.maximum.toString()} ${K.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${q??"valor"} fuera ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Demasiado pequeño: se esperaba que ${q} tuviera ${Q}${J.minimum.toString()} ${K.unit}`;return`Demasiado pequeño: se esperaba que ${q} fuera ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Cadena inválida: debe comenzar con "${Q.prefix}"`;if(Q.format==="ends_with")return`Cadena inválida: debe terminar en "${Q.suffix}"`;if(Q.format==="includes")return`Cadena inválida: debe incluir "${Q.includes}"`;if(Q.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${Q.pattern}`;return`Inválido ${U[Q.format]??J.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${J.divisor}`;case"unrecognized_keys":return`Llave${J.keys.length>1?"s":""} desconocida${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Llave inválida en ${Y[J.origin]??J.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${Y[J.origin]??J.origin}`;default:return"Entrada inválida"}}};function _N(){return{localeError:pD0()}}var cD0=()=>{let $={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function I(J){return $[J]??null}let U={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:"ورودی"},Y={nan:"NaN",number:"عدد",array:"آرایه"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ورودی نامعتبر: می‌بایست instanceof ${J.expected} می‌بود، ${q} دریافت شد`;return`ورودی نامعتبر: می‌بایست ${Q} می‌بود، ${q} دریافت شد`}case"invalid_value":if(J.values.length===1)return`ورودی نامعتبر: می‌بایست ${Z0(J.values[0])} می‌بود`;return`گزینه نامعتبر: می‌بایست یکی از ${I0(J.values,"|")} می‌بود`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`خیلی بزرگ: ${J.origin??"مقدار"} باید ${Q}${J.maximum.toString()} ${K.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${J.origin??"مقدار"} باید ${Q}${J.maximum.toString()} باشد`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`خیلی کوچک: ${J.origin} باید ${Q}${J.minimum.toString()} ${K.unit} باشد`;return`خیلی کوچک: ${J.origin} باید ${Q}${J.minimum.toString()} باشد`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`رشته نامعتبر: باید با "${Q.prefix}" شروع شود`;if(Q.format==="ends_with")return`رشته نامعتبر: باید با "${Q.suffix}" تمام شود`;if(Q.format==="includes")return`رشته نامعتبر: باید شامل "${Q.includes}" باشد`;if(Q.format==="regex")return`رشته نامعتبر: باید با الگوی ${Q.pattern} مطابقت داشته باشد`;return`${U[Q.format]??J.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${J.divisor} باشد`;case"unrecognized_keys":return`کلید${J.keys.length>1?"های":""} ناشناس: ${I0(J.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${J.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${J.origin}`;default:return"ورودی نامعتبر"}}};function SN(){return{localeError:cD0()}}var dD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Virheellinen tyyppi: odotettiin instanceof ${J.expected}, oli ${q}`;return`Virheellinen tyyppi: odotettiin ${Q}, oli ${q}`}case"invalid_value":if(J.values.length===1)return`Virheellinen syöte: täytyy olla ${Z0(J.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Liian suuri: ${K.subject} täytyy olla ${Q}${J.maximum.toString()} ${K.unit}`.trim();return`Liian suuri: arvon täytyy olla ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Liian pieni: ${K.subject} täytyy olla ${Q}${J.minimum.toString()} ${K.unit}`.trim();return`Liian pieni: arvon täytyy olla ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${Q.prefix}"`;if(Q.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${Q.suffix}"`;if(Q.format==="includes")return`Virheellinen syöte: täytyy sisältää "${Q.includes}"`;if(Q.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${Q.pattern}`;return`Virheellinen ${U[Q.format]??J.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${J.divisor} monikerta`;case"unrecognized_keys":return`${J.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I0(J.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 gN(){return{localeError:dD0()}}var mD0=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(J){return $[J]??null}let U={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"},Y={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Entrée invalide : instanceof ${J.expected} attendu, ${q} reçu`;return`Entrée invalide : ${Q} attendu, ${q} reçu`}case"invalid_value":if(J.values.length===1)return`Entrée invalide : ${Z0(J.values[0])} attendu`;return`Option invalide : une valeur parmi ${I0(J.values,"|")} attendue`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Trop grand : ${Y[J.origin]??"valeur"} doit ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"élément(s)"}`;return`Trop grand : ${Y[J.origin]??"valeur"} doit être ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Trop petit : ${Y[J.origin]??"valeur"} doit ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Trop petit : ${Y[J.origin]??"valeur"} doit être ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Chaîne invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${Q.pattern}`;return`${U[Q.format]??J.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${J.divisor}`;case"unrecognized_keys":return`Clé${J.keys.length>1?"s":""} non reconnue${J.keys.length>1?"s":""} : ${I0(J.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${J.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${J.origin}`;default:return"Entrée invalide"}}};function yN(){return{localeError:mD0()}}var lD0=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Entrée invalide : attendu instanceof ${J.expected}, reçu ${q}`;return`Entrée invalide : attendu ${Q}, reçu ${q}`}case"invalid_value":if(J.values.length===1)return`Entrée invalide : attendu ${Z0(J.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"≤":"<",K=I(J.origin);if(K)return`Trop grand : attendu que ${J.origin??"la valeur"} ait ${Q}${J.maximum.toString()} ${K.unit}`;return`Trop grand : attendu que ${J.origin??"la valeur"} soit ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?"≥":">",K=I(J.origin);if(K)return`Trop petit : attendu que ${J.origin} ait ${Q}${J.minimum.toString()} ${K.unit}`;return`Trop petit : attendu que ${J.origin} soit ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Chaîne invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne invalide : doit correspondre au motif ${Q.pattern}`;return`${U[Q.format]??J.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${J.divisor}`;case"unrecognized_keys":return`Clé${J.keys.length>1?"s":""} non reconnue${J.keys.length>1?"s":""} : ${I0(J.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${J.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${J.origin}`;default:return"Entrée invalide"}}};function hN(){return{localeError:lD0()}}var oD0=()=>{let $={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"}},I={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},U=(G)=>G?$[G]:void 0,Y=(G)=>{let W=U(G);if(W)return W.label;return G??$.unknown.label},J=(G)=>`ה${Y(G)}`,Q=(G)=>{return(U(G)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},K=(G)=>{if(!G)return null;return I[G]??null},q={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"}},H={nan:"NaN"};return(G)=>{switch(G.code){case"invalid_type":{let W=G.expected,w=H[W??""]??Y(W),Z=X0(G.input),V=H[Z]??$[Z]?.label??Z;if(/^[A-Z]/.test(G.expected))return`קלט לא תקין: צריך להיות instanceof ${G.expected}, התקבל ${V}`;return`קלט לא תקין: צריך להיות ${w}, התקבל ${V}`}case"invalid_value":{if(G.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Z0(G.values[0])}`;let W=G.values.map((V)=>Z0(V));if(G.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${W[0]} או ${W[1]}`;let w=W[W.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${W.slice(0,-1).join(", ")} או ${w}`}case"too_big":{let W=K(G.origin),w=J(G.origin??"value");if(G.origin==="string")return`${W?.longLabel??"ארוך"} מדי: ${w} צריכה להכיל ${G.maximum.toString()} ${W?.unit??""} ${G.inclusive?"או פחות":"לכל היותר"}`.trim();if(G.origin==="number"){let X=G.inclusive?`קטן או שווה ל-${G.maximum}`:`קטן מ-${G.maximum}`;return`גדול מדי: ${w} צריך להיות ${X}`}if(G.origin==="array"||G.origin==="set"){let X=G.origin==="set"?"צריכה":"צריך",L=G.inclusive?`${G.maximum} ${W?.unit??""} או פחות`:`פחות מ-${G.maximum} ${W?.unit??""}`;return`גדול מדי: ${w} ${X} להכיל ${L}`.trim()}let Z=G.inclusive?"<=":"<",V=Q(G.origin??"value");if(W?.unit)return`${W.longLabel} מדי: ${w} ${V} ${Z}${G.maximum.toString()} ${W.unit}`;return`${W?.longLabel??"גדול"} מדי: ${w} ${V} ${Z}${G.maximum.toString()}`}case"too_small":{let W=K(G.origin),w=J(G.origin??"value");if(G.origin==="string")return`${W?.shortLabel??"קצר"} מדי: ${w} צריכה להכיל ${G.minimum.toString()} ${W?.unit??""} ${G.inclusive?"או יותר":"לפחות"}`.trim();if(G.origin==="number"){let X=G.inclusive?`גדול או שווה ל-${G.minimum}`:`גדול מ-${G.minimum}`;return`קטן מדי: ${w} צריך להיות ${X}`}if(G.origin==="array"||G.origin==="set"){let X=G.origin==="set"?"צריכה":"צריך";if(G.minimum===1&&G.inclusive){let D=G.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${w} ${X} להכיל ${D}`}let L=G.inclusive?`${G.minimum} ${W?.unit??""} או יותר`:`יותר מ-${G.minimum} ${W?.unit??""}`;return`קטן מדי: ${w} ${X} להכיל ${L}`.trim()}let Z=G.inclusive?">=":">",V=Q(G.origin??"value");if(W?.unit)return`${W.shortLabel} מדי: ${w} ${V} ${Z}${G.minimum.toString()} ${W.unit}`;return`${W?.shortLabel??"קטן"} מדי: ${w} ${V} ${Z}${G.minimum.toString()}`}case"invalid_format":{let W=G;if(W.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${W.prefix}"`;if(W.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${W.suffix}"`;if(W.format==="includes")return`המחרוזת חייבת לכלול "${W.includes}"`;if(W.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${W.pattern}`;let w=q[W.format],Z=w?.label??W.format,X=(w?.gender??"m")==="f"?"תקינה":"תקין";return`${Z} לא ${X}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${G.divisor}`;case"unrecognized_keys":return`מפתח${G.keys.length>1?"ות":""} לא מזוה${G.keys.length>1?"ים":"ה"}: ${I0(G.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${J(G.origin??"array")}`;default:return"קלט לא תקין"}}};function uN(){return{localeError:oD0()}}var rD0=()=>{let $={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function I(J){return $[J]??null}let U={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},Y={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Neispravan unos: očekuje se instanceof ${J.expected}, a primljeno je ${q}`;return`Neispravan unos: očekuje se ${Q}, a primljeno je ${q}`}case"invalid_value":if(J.values.length===1)return`Neispravna vrijednost: očekivano ${Z0(J.values[0])}`;return`Neispravna opcija: očekivano jedno od ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Preveliko: očekivano da ${q??"vrijednost"} ima ${Q}${J.maximum.toString()} ${K.unit??"elemenata"}`;return`Preveliko: očekivano da ${q??"vrijednost"} bude ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=Y[J.origin]??J.origin;if(K)return`Premalo: očekivano da ${q} ima ${Q}${J.minimum.toString()} ${K.unit}`;return`Premalo: očekivano da ${q} bude ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Neispravan tekst: mora započinjati s "${Q.prefix}"`;if(Q.format==="ends_with")return`Neispravan tekst: mora završavati s "${Q.suffix}"`;if(Q.format==="includes")return`Neispravan tekst: mora sadržavati "${Q.includes}"`;if(Q.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${Q.pattern}`;return`Neispravna ${U[Q.format]??J.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${J.divisor}`;case"unrecognized_keys":return`Neprepoznat${J.keys.length>1?"i ključevi":" ključ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${Y[J.origin]??J.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${Y[J.origin]??J.origin}`;default:return"Neispravan unos"}}};function kN(){return{localeError:rD0()}}var tD0=()=>{let $={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"szám",array:"tömb"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Érvénytelen bemenet: a várt érték instanceof ${J.expected}, a kapott érték ${q}`;return`Érvénytelen bemenet: a várt érték ${Q}, a kapott érték ${q}`}case"invalid_value":if(J.values.length===1)return`Érvénytelen bemenet: a várt érték ${Z0(J.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Túl nagy: ${J.origin??"érték"} mérete túl nagy ${Q}${J.maximum.toString()} ${K.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${J.origin??"érték"} túl nagy: ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Túl kicsi: a bemeneti érték ${J.origin} mérete túl kicsi ${Q}${J.minimum.toString()} ${K.unit}`;return`Túl kicsi: a bemeneti érték ${J.origin} túl kicsi ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Érvénytelen string: "${Q.prefix}" értékkel kell kezdődnie`;if(Q.format==="ends_with")return`Érvénytelen string: "${Q.suffix}" értékkel kell végződnie`;if(Q.format==="includes")return`Érvénytelen string: "${Q.includes}" értéket kell tartalmaznia`;if(Q.format==="regex")return`Érvénytelen string: ${Q.pattern} mintának kell megfelelnie`;return`Érvénytelen ${U[Q.format]??J.format}`}case"not_multiple_of":return`Érvénytelen szám: ${J.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${J.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${J.origin}`;default:return"Érvénytelen bemenet"}}};function xN(){return{localeError:tD0()}}function Px($,I,U){return Math.abs($)===1?I:U}function jI($){if(!$)return"";let I=["ա","ե","ը","ի","ո","ու","օ"],U=$[$.length-1];return $+(I.includes(U)?"ն":"ը")}var aD0=()=>{let $={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function I(J){return $[J]??null}let U={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:"մուտք"},Y={nan:"NaN",number:"թիվ",array:"զանգված"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${J.expected}, ստացվել է ${q}`;return`Սխալ մուտքագրում․ սպասվում էր ${Q}, ստացվել է ${q}`}case"invalid_value":if(J.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${Z0(J.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K){let q=Number(J.maximum),H=Px(q,K.unit.one,K.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${jI(J.origin??"արժեք")} կունենա ${Q}${J.maximum.toString()} ${H}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${jI(J.origin??"արժեք")} լինի ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K){let q=Number(J.minimum),H=Px(q,K.unit.one,K.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${jI(J.origin)} կունենա ${Q}${J.minimum.toString()} ${H}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${jI(J.origin)} լինի ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${Q.prefix}"-ով`;if(Q.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${Q.suffix}"-ով`;if(Q.format==="includes")return`Սխալ տող․ պետք է պարունակի "${Q.includes}"`;if(Q.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${Q.pattern} ձևաչափին`;return`Սխալ ${U[Q.format]??J.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${J.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${J.keys.length>1?"ներ":""}. ${I0(J.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${jI(J.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${jI(J.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function fN(){return{localeError:aD0()}}var sD0=()=>{let $={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Input tidak valid: diharapkan instanceof ${J.expected}, diterima ${q}`;return`Input tidak valid: diharapkan ${Q}, diterima ${q}`}case"invalid_value":if(J.values.length===1)return`Input tidak valid: diharapkan ${Z0(J.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Terlalu besar: diharapkan ${J.origin??"value"} memiliki ${Q}${J.maximum.toString()} ${K.unit??"elemen"}`;return`Terlalu besar: diharapkan ${J.origin??"value"} menjadi ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Terlalu kecil: diharapkan ${J.origin} memiliki ${Q}${J.minimum.toString()} ${K.unit}`;return`Terlalu kecil: diharapkan ${J.origin} menjadi ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`String tidak valid: harus dimulai dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak valid: harus berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak valid: harus menyertakan "${Q.includes}"`;if(Q.format==="regex")return`String tidak valid: harus sesuai pola ${Q.pattern}`;return`${U[Q.format]??J.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${J.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${J.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${J.origin}`;default:return"Input tidak valid"}}};function iN(){return{localeError:sD0()}}var eD0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"númer",array:"fylki"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Rangt gildi: Þú slóst inn ${q} þar sem á að vera instanceof ${J.expected}`;return`Rangt gildi: Þú slóst inn ${q} þar sem á að vera ${Q}`}case"invalid_value":if(J.values.length===1)return`Rangt gildi: gert ráð fyrir ${Z0(J.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Of stórt: gert er ráð fyrir að ${J.origin??"gildi"} hafi ${Q}${J.maximum.toString()} ${K.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${J.origin??"gildi"} sé ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Of lítið: gert er ráð fyrir að ${J.origin} hafi ${Q}${J.minimum.toString()} ${K.unit}`;return`Of lítið: gert er ráð fyrir að ${J.origin} sé ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ógildur strengur: verður að byrja á "${Q.prefix}"`;if(Q.format==="ends_with")return`Ógildur strengur: verður að enda á "${Q.suffix}"`;if(Q.format==="includes")return`Ógildur strengur: verður að innihalda "${Q.includes}"`;if(Q.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${Q.pattern}`;return`Rangt ${U[Q.format]??J.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${J.divisor}`;case"unrecognized_keys":return`Óþekkt ${J.keys.length>1?"ir lyklar":"ur lykill"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${J.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${J.origin}`;default:return"Rangt gildi"}}};function bN(){return{localeError:eD0()}}var $O0=()=>{let $={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"numero",array:"vettore"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Input non valido: atteso instanceof ${J.expected}, ricevuto ${q}`;return`Input non valido: atteso ${Q}, ricevuto ${q}`}case"invalid_value":if(J.values.length===1)return`Input non valido: atteso ${Z0(J.values[0])}`;return`Opzione non valida: atteso uno tra ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Troppo grande: ${J.origin??"valore"} deve avere ${Q}${J.maximum.toString()} ${K.unit??"elementi"}`;return`Troppo grande: ${J.origin??"valore"} deve essere ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Troppo piccolo: ${J.origin} deve avere ${Q}${J.minimum.toString()} ${K.unit}`;return`Troppo piccolo: ${J.origin} deve essere ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Stringa non valida: deve iniziare con "${Q.prefix}"`;if(Q.format==="ends_with")return`Stringa non valida: deve terminare con "${Q.suffix}"`;if(Q.format==="includes")return`Stringa non valida: deve includere "${Q.includes}"`;if(Q.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${Q.pattern}`;return`Input non valido: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${J.divisor}`;case"unrecognized_keys":return`Chiav${J.keys.length>1?"i":"e"} non riconosciut${J.keys.length>1?"e":"a"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${J.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${J.origin}`;default:return"Input non valido"}}};function nN(){return{localeError:$O0()}}var IO0=()=>{let $={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function I(J){return $[J]??null}let U={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:"入力値"},Y={nan:"NaN",number:"数値",array:"配列"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`無効な入力: instanceof ${J.expected}が期待されましたが、${q}が入力されました`;return`無効な入力: ${Q}が期待されましたが、${q}が入力されました`}case"invalid_value":if(J.values.length===1)return`無効な入力: ${Z0(J.values[0])}が期待されました`;return`無効な選択: ${I0(J.values,"、")}のいずれかである必要があります`;case"too_big":{let Q=J.inclusive?"以下である":"より小さい",K=I(J.origin);if(K)return`大きすぎる値: ${J.origin??"値"}は${J.maximum.toString()}${K.unit??"要素"}${Q}必要があります`;return`大きすぎる値: ${J.origin??"値"}は${J.maximum.toString()}${Q}必要があります`}case"too_small":{let Q=J.inclusive?"以上である":"より大きい",K=I(J.origin);if(K)return`小さすぎる値: ${J.origin}は${J.minimum.toString()}${K.unit}${Q}必要があります`;return`小さすぎる値: ${J.origin}は${J.minimum.toString()}${Q}必要があります`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`無効な文字列: "${Q.prefix}"で始まる必要があります`;if(Q.format==="ends_with")return`無効な文字列: "${Q.suffix}"で終わる必要があります`;if(Q.format==="includes")return`無効な文字列: "${Q.includes}"を含む必要があります`;if(Q.format==="regex")return`無効な文字列: パターン${Q.pattern}に一致する必要があります`;return`無効な${U[Q.format]??J.format}`}case"not_multiple_of":return`無効な数値: ${J.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${J.keys.length>1?"群":""}: ${I0(J.keys,"、")}`;case"invalid_key":return`${J.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${J.origin}内の無効な値`;default:return"無効な入力"}}};function pN(){return{localeError:IO0()}}var UO0=()=>{let $={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function I(J){return $[J]??null}let U={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:"შეყვანა"},Y={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${J.expected}, მიღებული ${q}`;return`არასწორი შეყვანა: მოსალოდნელი ${Q}, მიღებული ${q}`}case"invalid_value":if(J.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${Z0(J.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${I0(J.values,"|")}-დან`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`ზედმეტად დიდი: მოსალოდნელი ${J.origin??"მნიშვნელობა"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${J.origin??"მნიშვნელობა"} იყოს ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`ზედმეტად პატარა: მოსალოდნელი ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${J.origin} იყოს ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${Q.prefix}"-ით`;if(Q.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${Q.suffix}"-ით`;if(Q.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${Q.includes}"-ს`;if(Q.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${Q.pattern}`;return`არასწორი ${U[Q.format]??J.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${J.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${J.keys.length>1?"ები":"ი"}: ${I0(J.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${J.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${J.origin}-ში`;default:return"არასწორი შეყვანა"}}};function cN(){return{localeError:UO0()}}var YO0=()=>{let $={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function I(J){return $[J]??null}let U={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:"ទិន្នន័យបញ្ចូល"},Y={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${J.expected} ប៉ុន្តែទទួលបាន ${q}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q} ប៉ុន្តែទទួលបាន ${q}`}case"invalid_value":if(J.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Z0(J.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`ធំពេក៖ ត្រូវការ ${J.origin??"តម្លៃ"} ${Q} ${J.maximum.toString()} ${K.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${J.origin??"តម្លៃ"} ${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`តូចពេក៖ ត្រូវការ ${J.origin} ${Q} ${J.minimum.toString()} ${K.unit}`;return`តូចពេក៖ ត្រូវការ ${J.origin} ${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${Q.prefix}"`;if(Q.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${Q.suffix}"`;if(Q.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${Q.includes}"`;if(Q.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${Q.pattern}`;return`មិនត្រឹមត្រូវ៖ ${U[Q.format]??J.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${J.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${I0(J.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${J.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${J.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function HQ(){return{localeError:YO0()}}function dN(){return HQ()}var JO0=()=>{let $={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function I(J){return $[J]??null}let U={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:"입력"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`잘못된 입력: 예상 타입은 instanceof ${J.expected}, 받은 타입은 ${q}입니다`;return`잘못된 입력: 예상 타입은 ${Q}, 받은 타입은 ${q}입니다`}case"invalid_value":if(J.values.length===1)return`잘못된 입력: 값은 ${Z0(J.values[0])} 이어야 합니다`;return`잘못된 옵션: ${I0(J.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let Q=J.inclusive?"이하":"미만",K=Q==="미만"?"이어야 합니다":"여야 합니다",q=I(J.origin),H=q?.unit??"요소";if(q)return`${J.origin??"값"}이 너무 큽니다: ${J.maximum.toString()}${H} ${Q}${K}`;return`${J.origin??"값"}이 너무 큽니다: ${J.maximum.toString()} ${Q}${K}`}case"too_small":{let Q=J.inclusive?"이상":"초과",K=Q==="이상"?"이어야 합니다":"여야 합니다",q=I(J.origin),H=q?.unit??"요소";if(q)return`${J.origin??"값"}이 너무 작습니다: ${J.minimum.toString()}${H} ${Q}${K}`;return`${J.origin??"값"}이 너무 작습니다: ${J.minimum.toString()} ${Q}${K}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`잘못된 문자열: "${Q.prefix}"(으)로 시작해야 합니다`;if(Q.format==="ends_with")return`잘못된 문자열: "${Q.suffix}"(으)로 끝나야 합니다`;if(Q.format==="includes")return`잘못된 문자열: "${Q.includes}"을(를) 포함해야 합니다`;if(Q.format==="regex")return`잘못된 문자열: 정규식 ${Q.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${U[Q.format]??J.format}`}case"not_multiple_of":return`잘못된 숫자: ${J.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${I0(J.keys,", ")}`;case"invalid_key":return`잘못된 키: ${J.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${J.origin}`;default:return"잘못된 입력"}}};function mN(){return{localeError:JO0()}}var GQ=($)=>{return $.charAt(0).toUpperCase()+$.slice(1)};function Tx($){let I=Math.abs($),U=I%10,Y=I%100;if(Y>=11&&Y<=19||U===0)return"many";if(U===1)return"one";return"few"}var QO0=()=>{let $={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 I(J,Q,K,q){let H=$[J]??null;if(H===null)return H;return{unit:H.unit[Q],verb:H.verb[q][K?"inclusive":"notInclusive"]}}let U={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"},Y={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(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Gautas tipas ${q}, o tikėtasi - instanceof ${J.expected}`;return`Gautas tipas ${q}, o tikėtasi - ${Q}`}case"invalid_value":if(J.values.length===1)return`Privalo būti ${Z0(J.values[0])}`;return`Privalo būti vienas iš ${I0(J.values,"|")} pasirinkimų`;case"too_big":{let Q=Y[J.origin]??J.origin,K=I(J.origin,Tx(Number(J.maximum)),J.inclusive??!1,"smaller");if(K?.verb)return`${GQ(Q??J.origin??"reikšmė")} ${K.verb} ${J.maximum.toString()} ${K.unit??"elementų"}`;let q=J.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${GQ(Q??J.origin??"reikšmė")} turi būti ${q} ${J.maximum.toString()} ${K?.unit}`}case"too_small":{let Q=Y[J.origin]??J.origin,K=I(J.origin,Tx(Number(J.minimum)),J.inclusive??!1,"bigger");if(K?.verb)return`${GQ(Q??J.origin??"reikšmė")} ${K.verb} ${J.minimum.toString()} ${K.unit??"elementų"}`;let q=J.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${GQ(Q??J.origin??"reikšmė")} turi būti ${q} ${J.minimum.toString()} ${K?.unit}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Eilutė privalo prasidėti "${Q.prefix}"`;if(Q.format==="ends_with")return`Eilutė privalo pasibaigti "${Q.suffix}"`;if(Q.format==="includes")return`Eilutė privalo įtraukti "${Q.includes}"`;if(Q.format==="regex")return`Eilutė privalo atitikti ${Q.pattern}`;return`Neteisingas ${U[Q.format]??J.format}`}case"not_multiple_of":return`Skaičius privalo būti ${J.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${J.keys.length>1?"i":"as"} rakt${J.keys.length>1?"ai":"as"}: ${I0(J.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let Q=Y[J.origin]??J.origin;return`${GQ(Q??J.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function lN(){return{localeError:QO0()}}var KO0=()=>{let $={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function I(J){return $[J]??null}let U={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:"внес"},Y={nan:"NaN",number:"број",array:"низа"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Грешен внес: се очекува instanceof ${J.expected}, примено ${q}`;return`Грешен внес: се очекува ${Q}, примено ${q}`}case"invalid_value":if(J.values.length===1)return`Invalid input: expected ${Z0(J.values[0])}`;return`Грешана опција: се очекува една ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Премногу голем: се очекува ${J.origin??"вредноста"} да има ${Q}${J.maximum.toString()} ${K.unit??"елементи"}`;return`Премногу голем: се очекува ${J.origin??"вредноста"} да биде ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Премногу мал: се очекува ${J.origin} да има ${Q}${J.minimum.toString()} ${K.unit}`;return`Премногу мал: се очекува ${J.origin} да биде ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Неважечка низа: мора да започнува со "${Q.prefix}"`;if(Q.format==="ends_with")return`Неважечка низа: мора да завршува со "${Q.suffix}"`;if(Q.format==="includes")return`Неважечка низа: мора да вклучува "${Q.includes}"`;if(Q.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${Q.pattern}`;return`Invalid ${U[Q.format]??J.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${J.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${J.origin}`;default:return"Грешен внес"}}};function oN(){return{localeError:KO0()}}var qO0=()=>{let $={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"nombor"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Input tidak sah: dijangka instanceof ${J.expected}, diterima ${q}`;return`Input tidak sah: dijangka ${Q}, diterima ${q}`}case"invalid_value":if(J.values.length===1)return`Input tidak sah: dijangka ${Z0(J.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Terlalu besar: dijangka ${J.origin??"nilai"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"elemen"}`;return`Terlalu besar: dijangka ${J.origin??"nilai"} adalah ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Terlalu kecil: dijangka ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Terlalu kecil: dijangka ${J.origin} adalah ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`String tidak sah: mesti bermula dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak sah: mesti mengandungi "${Q.includes}"`;if(Q.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${Q.pattern}`;return`${U[Q.format]??J.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${J.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I0(J.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${J.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${J.origin}`;default:return"Input tidak sah"}}};function rN(){return{localeError:qO0()}}var HO0=()=>{let $={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"getal"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ongeldige invoer: verwacht instanceof ${J.expected}, ontving ${q}`;return`Ongeldige invoer: verwacht ${Q}, ontving ${q}`}case"invalid_value":if(J.values.length===1)return`Ongeldige invoer: verwacht ${Z0(J.values[0])}`;return`Ongeldige optie: verwacht één van ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin),q=J.origin==="date"?"laat":J.origin==="string"?"lang":"groot";if(K)return`Te ${q}: verwacht dat ${J.origin??"waarde"} ${Q}${J.maximum.toString()} ${K.unit??"elementen"} ${K.verb}`;return`Te ${q}: verwacht dat ${J.origin??"waarde"} ${Q}${J.maximum.toString()} is`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin),q=J.origin==="date"?"vroeg":J.origin==="string"?"kort":"klein";if(K)return`Te ${q}: verwacht dat ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} ${K.verb}`;return`Te ${q}: verwacht dat ${J.origin} ${Q}${J.minimum.toString()} is`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ongeldige tekst: moet met "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ongeldige tekst: moet op "${Q.suffix}" eindigen`;if(Q.format==="includes")return`Ongeldige tekst: moet "${Q.includes}" bevatten`;if(Q.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${Q.pattern}`;return`Ongeldig: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${J.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${J.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${J.origin}`;default:return"Ongeldige invoer"}}};function tN(){return{localeError:HO0()}}var GO0=()=>{let $={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"tall",array:"liste"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ugyldig input: forventet instanceof ${J.expected}, fikk ${q}`;return`Ugyldig input: forventet ${Q}, fikk ${q}`}case"invalid_value":if(J.values.length===1)return`Ugyldig verdi: forventet ${Z0(J.values[0])}`;return`Ugyldig valg: forventet en av ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`For stor(t): forventet ${J.origin??"value"} til å ha ${Q}${J.maximum.toString()} ${K.unit??"elementer"}`;return`For stor(t): forventet ${J.origin??"value"} til å ha ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`For lite(n): forventet ${J.origin} til å ha ${Q}${J.minimum.toString()} ${K.unit}`;return`For lite(n): forventet ${J.origin} til å ha ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ugyldig streng: må starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: må ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: må inneholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: må matche mønsteret ${Q.pattern}`;return`Ugyldig ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${J.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${J.origin}`;default:return"Ugyldig input"}}};function aN(){return{localeError:GO0()}}var WO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Fâsit giren: umulan instanceof ${J.expected}, alınan ${q}`;return`Fâsit giren: umulan ${Q}, alınan ${q}`}case"invalid_value":if(J.values.length===1)return`Fâsit giren: umulan ${Z0(J.values[0])}`;return`Fâsit tercih: mûteberler ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Fazla büyük: ${J.origin??"value"}, ${Q}${J.maximum.toString()} ${K.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${J.origin??"value"}, ${Q}${J.maximum.toString()} olmalıydı.`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Fazla küçük: ${J.origin}, ${Q}${J.minimum.toString()} ${K.unit} sahip olmalıydı.`;return`Fazla küçük: ${J.origin}, ${Q}${J.minimum.toString()} olmalıydı.`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Fâsit metin: "${Q.prefix}" ile başlamalı.`;if(Q.format==="ends_with")return`Fâsit metin: "${Q.suffix}" ile bitmeli.`;if(Q.format==="includes")return`Fâsit metin: "${Q.includes}" ihtivâ etmeli.`;if(Q.format==="regex")return`Fâsit metin: ${Q.pattern} nakşına uymalı.`;return`Fâsit ${U[Q.format]??J.format}`}case"not_multiple_of":return`Fâsit sayı: ${J.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${J.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function sN(){return{localeError:WO0()}}var wO0=()=>{let $={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function I(J){return $[J]??null}let U={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:"ورودي"},Y={nan:"NaN",number:"عدد",array:"ارې"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ناسم ورودي: باید instanceof ${J.expected} وای, مګر ${q} ترلاسه شو`;return`ناسم ورودي: باید ${Q} وای, مګر ${q} ترلاسه شو`}case"invalid_value":if(J.values.length===1)return`ناسم ورودي: باید ${Z0(J.values[0])} وای`;return`ناسم انتخاب: باید یو له ${I0(J.values,"|")} څخه وای`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`ډیر لوی: ${J.origin??"ارزښت"} باید ${Q}${J.maximum.toString()} ${K.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${J.origin??"ارزښت"} باید ${Q}${J.maximum.toString()} وي`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`ډیر کوچنی: ${J.origin} باید ${Q}${J.minimum.toString()} ${K.unit} ولري`;return`ډیر کوچنی: ${J.origin} باید ${Q}${J.minimum.toString()} وي`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`ناسم متن: باید د "${Q.prefix}" سره پیل شي`;if(Q.format==="ends_with")return`ناسم متن: باید د "${Q.suffix}" سره پای ته ورسيږي`;if(Q.format==="includes")return`ناسم متن: باید "${Q.includes}" ولري`;if(Q.format==="regex")return`ناسم متن: باید د ${Q.pattern} سره مطابقت ولري`;return`${U[Q.format]??J.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${J.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${J.keys.length>1?"کلیډونه":"کلیډ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${J.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${J.origin} کې`;default:return"ناسمه ورودي"}}};function eN(){return{localeError:wO0()}}var VO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"liczba",array:"tablica"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${J.expected}, otrzymano ${q}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${Q}, otrzymano ${q}`}case"invalid_value":if(J.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${Z0(J.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Za duża wartość: oczekiwano, że ${J.origin??"wartość"} będzie mieć ${Q}${J.maximum.toString()} ${K.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${J.origin??"wartość"} będzie wynosić ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Za mała wartość: oczekiwano, że ${J.origin??"wartość"} będzie mieć ${Q}${J.minimum.toString()} ${K.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${J.origin??"wartość"} będzie wynosić ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${Q.prefix}"`;if(Q.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${Q.suffix}"`;if(Q.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${Q.includes}"`;if(Q.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${Q.pattern}`;return`Nieprawidłow(y/a/e) ${U[Q.format]??J.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${J.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${J.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${J.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function $M(){return{localeError:VO0()}}var ZO0=()=>{let $={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"número",null:"nulo"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Tipo inválido: esperado instanceof ${J.expected}, recebido ${q}`;return`Tipo inválido: esperado ${Q}, recebido ${q}`}case"invalid_value":if(J.values.length===1)return`Entrada inválida: esperado ${Z0(J.values[0])}`;return`Opção inválida: esperada uma das ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Muito grande: esperado que ${J.origin??"valor"} tivesse ${Q}${J.maximum.toString()} ${K.unit??"elementos"}`;return`Muito grande: esperado que ${J.origin??"valor"} fosse ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Muito pequeno: esperado que ${J.origin} tivesse ${Q}${J.minimum.toString()} ${K.unit}`;return`Muito pequeno: esperado que ${J.origin} fosse ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Texto inválido: deve começar com "${Q.prefix}"`;if(Q.format==="ends_with")return`Texto inválido: deve terminar com "${Q.suffix}"`;if(Q.format==="includes")return`Texto inválido: deve incluir "${Q.includes}"`;if(Q.format==="regex")return`Texto inválido: deve corresponder ao padrão ${Q.pattern}`;return`${U[Q.format]??J.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${J.divisor}`;case"unrecognized_keys":return`Chave${J.keys.length>1?"s":""} desconhecida${J.keys.length>1?"s":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Chave inválida em ${J.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${J.origin}`;default:return"Campo inválido"}}};function IM(){return{localeError:ZO0()}}var zO0=()=>{let $={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function I(J){return $[J]??null}let U={regex:"intrare",email:"adresă de 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:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},Y={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;return`Intrare invalidă: așteptat ${Q}, primit ${q}`}case"invalid_value":if(J.values.length===1)return`Intrare invalidă: așteptat ${Z0(J.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Prea mare: așteptat ca ${J.origin??"valoarea"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"elemente"}`;return`Prea mare: așteptat ca ${J.origin??"valoarea"} să fie ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Prea mic: așteptat ca ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Prea mic: așteptat ca ${J.origin} să fie ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${Q.prefix}"`;if(Q.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${Q.suffix}"`;if(Q.format==="includes")return`Șir invalid: trebuie să includă "${Q.includes}"`;if(Q.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${Q.pattern}`;return`Format invalid: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${J.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I0(J.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${J.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${J.origin}`;default:return"Intrare invalidă"}}};function UM(){return{localeError:zO0()}}function Ex($,I,U,Y){let J=Math.abs($),Q=J%10,K=J%100;if(K>=11&&K<=19)return Y;if(Q===1)return I;if(Q>=2&&Q<=4)return U;return Y}var XO0=()=>{let $={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 I(J){return $[J]??null}let U={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:"ввод"},Y={nan:"NaN",number:"число",array:"массив"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Неверный ввод: ожидалось instanceof ${J.expected}, получено ${q}`;return`Неверный ввод: ожидалось ${Q}, получено ${q}`}case"invalid_value":if(J.values.length===1)return`Неверный ввод: ожидалось ${Z0(J.values[0])}`;return`Неверный вариант: ожидалось одно из ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K){let q=Number(J.maximum),H=Ex(q,K.unit.one,K.unit.few,K.unit.many);return`Слишком большое значение: ожидалось, что ${J.origin??"значение"} будет иметь ${Q}${J.maximum.toString()} ${H}`}return`Слишком большое значение: ожидалось, что ${J.origin??"значение"} будет ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K){let q=Number(J.minimum),H=Ex(q,K.unit.one,K.unit.few,K.unit.many);return`Слишком маленькое значение: ожидалось, что ${J.origin} будет иметь ${Q}${J.minimum.toString()} ${H}`}return`Слишком маленькое значение: ожидалось, что ${J.origin} будет ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Неверная строка: должна начинаться с "${Q.prefix}"`;if(Q.format==="ends_with")return`Неверная строка: должна заканчиваться на "${Q.suffix}"`;if(Q.format==="includes")return`Неверная строка: должна содержать "${Q.includes}"`;if(Q.format==="regex")return`Неверная строка: должна соответствовать шаблону ${Q.pattern}`;return`Неверный ${U[Q.format]??J.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${J.divisor}`;case"unrecognized_keys":return`Нераспознанн${J.keys.length>1?"ые":"ый"} ключ${J.keys.length>1?"и":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${J.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${J.origin}`;default:return"Неверные входные данные"}}};function YM(){return{localeError:XO0()}}var LO0=()=>{let $={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"število",array:"tabela"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Neveljaven vnos: pričakovano instanceof ${J.expected}, prejeto ${q}`;return`Neveljaven vnos: pričakovano ${Q}, prejeto ${q}`}case"invalid_value":if(J.values.length===1)return`Neveljaven vnos: pričakovano ${Z0(J.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Preveliko: pričakovano, da bo ${J.origin??"vrednost"} imelo ${Q}${J.maximum.toString()} ${K.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${J.origin??"vrednost"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Premajhno: pričakovano, da bo ${J.origin} imelo ${Q}${J.minimum.toString()} ${K.unit}`;return`Premajhno: pričakovano, da bo ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Neveljaven niz: mora se začeti z "${Q.prefix}"`;if(Q.format==="ends_with")return`Neveljaven niz: mora se končati z "${Q.suffix}"`;if(Q.format==="includes")return`Neveljaven niz: mora vsebovati "${Q.includes}"`;if(Q.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${Q.pattern}`;return`Neveljaven ${U[Q.format]??J.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${J.divisor}`;case"unrecognized_keys":return`Neprepoznan${J.keys.length>1?"i ključi":" ključ"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${J.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${J.origin}`;default:return"Neveljaven vnos"}}};function JM(){return{localeError:LO0()}}var DO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"antal",array:"lista"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ogiltig inmatning: förväntat instanceof ${J.expected}, fick ${q}`;return`Ogiltig inmatning: förväntat ${Q}, fick ${q}`}case"invalid_value":if(J.values.length===1)return`Ogiltig inmatning: förväntat ${Z0(J.values[0])}`;return`Ogiltigt val: förväntade en av ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`För stor(t): förväntade ${J.origin??"värdet"} att ha ${Q}${J.maximum.toString()} ${K.unit??"element"}`;return`För stor(t): förväntat ${J.origin??"värdet"} att ha ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`För lite(t): förväntade ${J.origin??"värdet"} att ha ${Q}${J.minimum.toString()} ${K.unit}`;return`För lite(t): förväntade ${J.origin??"värdet"} att ha ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ogiltig sträng: måste börja med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ogiltig sträng: måste sluta med "${Q.suffix}"`;if(Q.format==="includes")return`Ogiltig sträng: måste innehålla "${Q.includes}"`;if(Q.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${Q.pattern}"`;return`Ogiltig(t) ${U[Q.format]??J.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${J.divisor}`;case"unrecognized_keys":return`${J.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${I0(J.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${J.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${J.origin??"värdet"}`;default:return"Ogiltig input"}}};function QM(){return{localeError:DO0()}}var OO0=()=>{let $={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${J.expected}, பெறப்பட்டது ${q}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q}, பெறப்பட்டது ${q}`}case"invalid_value":if(J.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Z0(J.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${I0(J.values,"|")} இல் ஒன்று`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${J.origin??"மதிப்பு"} ${Q}${J.maximum.toString()} ${K.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${J.origin??"மதிப்பு"} ${Q}${J.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${J.origin} ${Q}${J.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`தவறான சரம்: "${Q.prefix}" இல் தொடங்க வேண்டும்`;if(Q.format==="ends_with")return`தவறான சரம்: "${Q.suffix}" இல் முடிவடைய வேண்டும்`;if(Q.format==="includes")return`தவறான சரம்: "${Q.includes}" ஐ உள்ளடக்க வேண்டும்`;if(Q.format==="regex")return`தவறான சரம்: ${Q.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${U[Q.format]??J.format}`}case"not_multiple_of":return`தவறான எண்: ${J.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${J.keys.length>1?"கள்":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${J.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function KM(){return{localeError:OO0()}}var FO0=()=>{let $={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function I(J){return $[J]??null}let U={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:"ข้อมูลที่ป้อน"},Y={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${J.expected} แต่ได้รับ ${q}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${Q} แต่ได้รับ ${q}`}case"invalid_value":if(J.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${Z0(J.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"ไม่เกิน":"น้อยกว่า",K=I(J.origin);if(K)return`เกินกำหนด: ${J.origin??"ค่า"} ควรมี${Q} ${J.maximum.toString()} ${K.unit??"รายการ"}`;return`เกินกำหนด: ${J.origin??"ค่า"} ควรมี${Q} ${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?"อย่างน้อย":"มากกว่า",K=I(J.origin);if(K)return`น้อยกว่ากำหนด: ${J.origin} ควรมี${Q} ${J.minimum.toString()} ${K.unit}`;return`น้อยกว่ากำหนด: ${J.origin} ควรมี${Q} ${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${Q.prefix}"`;if(Q.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${Q.suffix}"`;if(Q.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${Q.includes}" อยู่ในข้อความ`;if(Q.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${Q.pattern}`;return`รูปแบบไม่ถูกต้อง: ${U[Q.format]??J.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${J.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${I0(J.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${J.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${J.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function qM(){return{localeError:FO0()}}var NO0=()=>{let $={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Geçersiz değer: beklenen instanceof ${J.expected}, alınan ${q}`;return`Geçersiz değer: beklenen ${Q}, alınan ${q}`}case"invalid_value":if(J.values.length===1)return`Geçersiz değer: beklenen ${Z0(J.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Çok büyük: beklenen ${J.origin??"değer"} ${Q}${J.maximum.toString()} ${K.unit??"öğe"}`;return`Çok büyük: beklenen ${J.origin??"değer"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Çok küçük: beklenen ${J.origin} ${Q}${J.minimum.toString()} ${K.unit}`;return`Çok küçük: beklenen ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Geçersiz metin: "${Q.prefix}" ile başlamalı`;if(Q.format==="ends_with")return`Geçersiz metin: "${Q.suffix}" ile bitmeli`;if(Q.format==="includes")return`Geçersiz metin: "${Q.includes}" içermeli`;if(Q.format==="regex")return`Geçersiz metin: ${Q.pattern} desenine uymalı`;return`Geçersiz ${U[Q.format]??J.format}`}case"not_multiple_of":return`Geçersiz sayı: ${J.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${J.keys.length>1?"lar":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${J.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function HM(){return{localeError:NO0()}}var MO0=()=>{let $={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function I(J){return $[J]??null}let U={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:"вхідні дані"},Y={nan:"NaN",number:"число",array:"масив"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Неправильні вхідні дані: очікується instanceof ${J.expected}, отримано ${q}`;return`Неправильні вхідні дані: очікується ${Q}, отримано ${q}`}case"invalid_value":if(J.values.length===1)return`Неправильні вхідні дані: очікується ${Z0(J.values[0])}`;return`Неправильна опція: очікується одне з ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Занадто велике: очікується, що ${J.origin??"значення"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"елементів"}`;return`Занадто велике: очікується, що ${J.origin??"значення"} буде ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Занадто мале: очікується, що ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Занадто мале: очікується, що ${J.origin} буде ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Неправильний рядок: повинен починатися з "${Q.prefix}"`;if(Q.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${Q.suffix}"`;if(Q.format==="includes")return`Неправильний рядок: повинен містити "${Q.includes}"`;if(Q.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${Q.pattern}`;return`Неправильний ${U[Q.format]??J.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${J.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${J.keys.length>1?"і":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${J.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${J.origin}`;default:return"Неправильні вхідні дані"}}};function WQ(){return{localeError:MO0()}}function GM(){return WQ()}var AO0=()=>{let $={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function I(J){return $[J]??null}let U={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:"ان پٹ"},Y={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`غلط ان پٹ: instanceof ${J.expected} متوقع تھا، ${q} موصول ہوا`;return`غلط ان پٹ: ${Q} متوقع تھا، ${q} موصول ہوا`}case"invalid_value":if(J.values.length===1)return`غلط ان پٹ: ${Z0(J.values[0])} متوقع تھا`;return`غلط آپشن: ${I0(J.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`بہت بڑا: ${J.origin??"ویلیو"} کے ${Q}${J.maximum.toString()} ${K.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${J.origin??"ویلیو"} کا ${Q}${J.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`بہت چھوٹا: ${J.origin} کے ${Q}${J.minimum.toString()} ${K.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${J.origin} کا ${Q}${J.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`غلط سٹرنگ: "${Q.prefix}" سے شروع ہونا چاہیے`;if(Q.format==="ends_with")return`غلط سٹرنگ: "${Q.suffix}" پر ختم ہونا چاہیے`;if(Q.format==="includes")return`غلط سٹرنگ: "${Q.includes}" شامل ہونا چاہیے`;if(Q.format==="regex")return`غلط سٹرنگ: پیٹرن ${Q.pattern} سے میچ ہونا چاہیے`;return`غلط ${U[Q.format]??J.format}`}case"not_multiple_of":return`غلط نمبر: ${J.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${J.keys.length>1?"ز":""}: ${I0(J.keys,"، ")}`;case"invalid_key":return`${J.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${J.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function WM(){return{localeError:AO0()}}var PO0=()=>{let $={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"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"raqam",array:"massiv"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${J.expected}, qabul qilingan ${q}`;return`Noto‘g‘ri kirish: kutilgan ${Q}, qabul qilingan ${q}`}case"invalid_value":if(J.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${Z0(J.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Juda katta: kutilgan ${J.origin??"qiymat"} ${Q}${J.maximum.toString()} ${K.unit} ${K.verb}`;return`Juda katta: kutilgan ${J.origin??"qiymat"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Juda kichik: kutilgan ${J.origin} ${Q}${J.minimum.toString()} ${K.unit} ${K.verb}`;return`Juda kichik: kutilgan ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Noto‘g‘ri satr: "${Q.prefix}" bilan boshlanishi kerak`;if(Q.format==="ends_with")return`Noto‘g‘ri satr: "${Q.suffix}" bilan tugashi kerak`;if(Q.format==="includes")return`Noto‘g‘ri satr: "${Q.includes}" ni o‘z ichiga olishi kerak`;if(Q.format==="regex")return`Noto‘g‘ri satr: ${Q.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${U[Q.format]??J.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${J.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${J.keys.length>1?"lar":""}: ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${J.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function wM(){return{localeError:PO0()}}var TO0=()=>{let $={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 I(J){return $[J]??null}let U={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"},Y={nan:"NaN",number:"số",array:"mảng"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${J.expected}, nhận được ${q}`;return`Đầu vào không hợp lệ: mong đợi ${Q}, nhận được ${q}`}case"invalid_value":if(J.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${Z0(J.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Quá lớn: mong đợi ${J.origin??"giá trị"} ${K.verb} ${Q}${J.maximum.toString()} ${K.unit??"phần tử"}`;return`Quá lớn: mong đợi ${J.origin??"giá trị"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Quá nhỏ: mong đợi ${J.origin} ${K.verb} ${Q}${J.minimum.toString()} ${K.unit}`;return`Quá nhỏ: mong đợi ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${Q.prefix}"`;if(Q.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${Q.suffix}"`;if(Q.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${Q.includes}"`;if(Q.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${Q.pattern}`;return`${U[Q.format]??J.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 ${J.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${I0(J.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${J.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 ${J.origin}`;default:return"Đầu vào không hợp lệ"}}};function VM(){return{localeError:TO0()}}var EO0=()=>{let $={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function I(J){return $[J]??null}let U={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:"输入"},Y={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`无效输入:期望 instanceof ${J.expected},实际接收 ${q}`;return`无效输入:期望 ${Q},实际接收 ${q}`}case"invalid_value":if(J.values.length===1)return`无效输入:期望 ${Z0(J.values[0])}`;return`无效选项:期望以下之一 ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`数值过大:期望 ${J.origin??"值"} ${Q}${J.maximum.toString()} ${K.unit??"个元素"}`;return`数值过大:期望 ${J.origin??"值"} ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`数值过小:期望 ${J.origin} ${Q}${J.minimum.toString()} ${K.unit}`;return`数值过小:期望 ${J.origin} ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`无效字符串:必须以 "${Q.prefix}" 开头`;if(Q.format==="ends_with")return`无效字符串:必须以 "${Q.suffix}" 结尾`;if(Q.format==="includes")return`无效字符串:必须包含 "${Q.includes}"`;if(Q.format==="regex")return`无效字符串:必须满足正则表达式 ${Q.pattern}`;return`无效${U[Q.format]??J.format}`}case"not_multiple_of":return`无效数字:必须是 ${J.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${I0(J.keys,", ")}`;case"invalid_key":return`${J.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${J.origin} 中包含无效值(value)`;default:return"无效输入"}}};function ZM(){return{localeError:EO0()}}var BO0=()=>{let $={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function I(J){return $[J]??null}let U={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:"輸入"},Y={nan:"NaN"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`無效的輸入值:預期為 instanceof ${J.expected},但收到 ${q}`;return`無效的輸入值:預期為 ${Q},但收到 ${q}`}case"invalid_value":if(J.values.length===1)return`無效的輸入值:預期為 ${Z0(J.values[0])}`;return`無效的選項:預期為以下其中之一 ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`數值過大:預期 ${J.origin??"值"} 應為 ${Q}${J.maximum.toString()} ${K.unit??"個元素"}`;return`數值過大:預期 ${J.origin??"值"} 應為 ${Q}${J.maximum.toString()}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`數值過小:預期 ${J.origin} 應為 ${Q}${J.minimum.toString()} ${K.unit}`;return`數值過小:預期 ${J.origin} 應為 ${Q}${J.minimum.toString()}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`無效的字串:必須以 "${Q.prefix}" 開頭`;if(Q.format==="ends_with")return`無效的字串:必須以 "${Q.suffix}" 結尾`;if(Q.format==="includes")return`無效的字串:必須包含 "${Q.includes}"`;if(Q.format==="regex")return`無效的字串:必須符合格式 ${Q.pattern}`;return`無效的 ${U[Q.format]??J.format}`}case"not_multiple_of":return`無效的數字:必須為 ${J.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${J.keys.length>1?"們":""}:${I0(J.keys,"、")}`;case"invalid_key":return`${J.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${J.origin} 中有無效的值`;default:return"無效的輸入值"}}};function zM(){return{localeError:BO0()}}var vO0=()=>{let $={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function I(J){return $[J]??null}let U={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é"},Y={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(J)=>{switch(J.code){case"invalid_type":{let Q=Y[J.expected]??J.expected,K=X0(J.input),q=Y[K]??K;if(/^[A-Z]/.test(J.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${J.expected}, àmọ̀ a rí ${q}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${Q}, àmọ̀ a rí ${q}`}case"invalid_value":if(J.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${Z0(J.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${I0(J.values,"|")}`;case"too_big":{let Q=J.inclusive?"<=":"<",K=I(J.origin);if(K)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${J.origin??"iye"} ${K.verb} ${Q}${J.maximum} ${K.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${Q}${J.maximum}`}case"too_small":{let Q=J.inclusive?">=":">",K=I(J.origin);if(K)return`Kéré ju: a ní láti jẹ́ pé ${J.origin} ${K.verb} ${Q}${J.minimum} ${K.unit}`;return`Kéré ju: a ní láti jẹ́ ${Q}${J.minimum}`}case"invalid_format":{let Q=J;if(Q.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${Q.prefix}"`;if(Q.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${Q.suffix}"`;if(Q.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${Q.includes}"`;if(Q.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${Q.pattern}`;return`Aṣìṣe: ${U[Q.format]??J.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${J.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${I0(J.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${J.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${J.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function XM(){return{localeError:vO0()}}var Bx,LM=Symbol("ZodOutput"),DM=Symbol("ZodInput");class OM{constructor(){this._map=new WeakMap,this._idmap=new Map}add($,...I){let U=I[0];if(this._map.set($,U),U&&typeof U==="object"&&"id"in U)this._idmap.set(U.id,$);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove($){let I=this._map.get($);if(I&&typeof I==="object"&&"id"in I)this._idmap.delete(I.id);return this._map.delete($),this}get($){let I=$._zod.parent;if(I){let U={...this.get(I)??{}};delete U.id;let Y={...U,...this._map.get($)};return Object.keys(Y).length?Y:void 0}return this._map.get($)}has($){return this._map.has($)}}function NG(){return new OM}(Bx=globalThis).__zod_globalRegistry??(Bx.__zod_globalRegistry=NG());var l4=globalThis.__zod_globalRegistry;function FM($,I){return new $({type:"string",...N0(I)})}function NM($,I){return new $({type:"string",coerce:!0,...N0(I)})}function MG($,I){return new $({type:"string",format:"email",check:"string_format",abort:!1,...N0(I)})}function VQ($,I){return new $({type:"string",format:"guid",check:"string_format",abort:!1,...N0(I)})}function AG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,...N0(I)})}function PG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...N0(I)})}function TG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...N0(I)})}function EG($,I){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...N0(I)})}function ZQ($,I){return new $({type:"string",format:"url",check:"string_format",abort:!1,...N0(I)})}function BG($,I){return new $({type:"string",format:"emoji",check:"string_format",abort:!1,...N0(I)})}function vG($,I){return new $({type:"string",format:"nanoid",check:"string_format",abort:!1,...N0(I)})}function RG($,I){return new $({type:"string",format:"cuid",check:"string_format",abort:!1,...N0(I)})}function jG($,I){return new $({type:"string",format:"cuid2",check:"string_format",abort:!1,...N0(I)})}function CG($,I){return new $({type:"string",format:"ulid",check:"string_format",abort:!1,...N0(I)})}function _G($,I){return new $({type:"string",format:"xid",check:"string_format",abort:!1,...N0(I)})}function SG($,I){return new $({type:"string",format:"ksuid",check:"string_format",abort:!1,...N0(I)})}function gG($,I){return new $({type:"string",format:"ipv4",check:"string_format",abort:!1,...N0(I)})}function yG($,I){return new $({type:"string",format:"ipv6",check:"string_format",abort:!1,...N0(I)})}function MM($,I){return new $({type:"string",format:"mac",check:"string_format",abort:!1,...N0(I)})}function hG($,I){return new $({type:"string",format:"cidrv4",check:"string_format",abort:!1,...N0(I)})}function uG($,I){return new $({type:"string",format:"cidrv6",check:"string_format",abort:!1,...N0(I)})}function kG($,I){return new $({type:"string",format:"base64",check:"string_format",abort:!1,...N0(I)})}function xG($,I){return new $({type:"string",format:"base64url",check:"string_format",abort:!1,...N0(I)})}function fG($,I){return new $({type:"string",format:"e164",check:"string_format",abort:!1,...N0(I)})}function iG($,I){return new $({type:"string",format:"jwt",check:"string_format",abort:!1,...N0(I)})}var AM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function PM($,I){return new $({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...N0(I)})}function TM($,I){return new $({type:"string",format:"date",check:"string_format",...N0(I)})}function EM($,I){return new $({type:"string",format:"time",check:"string_format",precision:null,...N0(I)})}function BM($,I){return new $({type:"string",format:"duration",check:"string_format",...N0(I)})}function vM($,I){return new $({type:"number",checks:[],...N0(I)})}function RM($,I){return new $({type:"number",coerce:!0,checks:[],...N0(I)})}function jM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"safeint",...N0(I)})}function CM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"float32",...N0(I)})}function _M($,I){return new $({type:"number",check:"number_format",abort:!1,format:"float64",...N0(I)})}function SM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"int32",...N0(I)})}function gM($,I){return new $({type:"number",check:"number_format",abort:!1,format:"uint32",...N0(I)})}function yM($,I){return new $({type:"boolean",...N0(I)})}function hM($,I){return new $({type:"boolean",coerce:!0,...N0(I)})}function uM($,I){return new $({type:"bigint",...N0(I)})}function kM($,I){return new $({type:"bigint",coerce:!0,...N0(I)})}function xM($,I){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...N0(I)})}function fM($,I){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...N0(I)})}function iM($,I){return new $({type:"symbol",...N0(I)})}function bM($,I){return new $({type:"undefined",...N0(I)})}function nM($,I){return new $({type:"null",...N0(I)})}function pM($){return new $({type:"any"})}function cM($){return new $({type:"unknown"})}function dM($,I){return new $({type:"never",...N0(I)})}function mM($,I){return new $({type:"void",...N0(I)})}function lM($,I){return new $({type:"date",...N0(I)})}function oM($,I){return new $({type:"date",coerce:!0,...N0(I)})}function rM($,I){return new $({type:"nan",...N0(I)})}function z8($,I){return new HG({check:"less_than",...N0(I),value:$,inclusive:!1})}function K$($,I){return new HG({check:"less_than",...N0(I),value:$,inclusive:!0})}function X8($,I){return new GG({check:"greater_than",...N0(I),value:$,inclusive:!1})}function B6($,I){return new GG({check:"greater_than",...N0(I),value:$,inclusive:!0})}function bG($){return X8(0,$)}function nG($){return z8(0,$)}function pG($){return K$(0,$)}function cG($){return B6(0,$)}function Y9($,I){return new mO({check:"multiple_of",...N0(I),value:$})}function J9($,I){return new rO({check:"max_size",...N0(I),maximum:$})}function L8($,I){return new tO({check:"min_size",...N0(I),minimum:$})}function S7($,I){return new aO({check:"size_equals",...N0(I),size:$})}function g7($,I){return new sO({check:"max_length",...N0(I),maximum:$})}function U5($,I){return new eO({check:"min_length",...N0(I),minimum:$})}function y7($,I){return new $F({check:"length_equals",...N0(I),length:$})}function CI($,I){return new IF({check:"string_format",format:"regex",...N0(I),pattern:$})}function _I($){return new UF({check:"string_format",format:"lowercase",...N0($)})}function SI($){return new YF({check:"string_format",format:"uppercase",...N0($)})}function gI($,I){return new JF({check:"string_format",format:"includes",...N0(I),includes:$})}function yI($,I){return new QF({check:"string_format",format:"starts_with",...N0(I),prefix:$})}function hI($,I){return new KF({check:"string_format",format:"ends_with",...N0(I),suffix:$})}function dG($,I,U){return new qF({check:"property",property:$,schema:I,...N0(U)})}function uI($,I){return new HF({check:"mime_type",mime:$,...N0(I)})}function m$($){return new GF({check:"overwrite",tx:$})}function kI($){return m$((I)=>I.normalize($))}function xI(){return m$(($)=>$.trim())}function fI(){return m$(($)=>$.toLowerCase())}function iI(){return m$(($)=>$.toUpperCase())}function bI(){return m$(($)=>qO($))}function tM($,I,U){return new $({type:"array",element:I,...N0(U)})}function jO0($,I,U){return new $({type:"union",options:I,...N0(U)})}function CO0($,I,U){return new $({type:"union",options:I,inclusive:!1,...N0(U)})}function _O0($,I,U,Y){return new $({type:"union",options:U,discriminator:I,...N0(Y)})}function SO0($,I,U){return new $({type:"intersection",left:I,right:U})}function gO0($,I,U,Y){let J=U instanceof p0;return new $({type:"tuple",items:I,rest:J?U:null,...N0(J?Y:U)})}function yO0($,I,U,Y){return new $({type:"record",keyType:I,valueType:U,...N0(Y)})}function hO0($,I,U,Y){return new $({type:"map",keyType:I,valueType:U,...N0(Y)})}function uO0($,I,U){return new $({type:"set",valueType:I,...N0(U)})}function kO0($,I,U){let Y=Array.isArray(I)?Object.fromEntries(I.map((J)=>[J,J])):I;return new $({type:"enum",entries:Y,...N0(U)})}function xO0($,I,U){return new $({type:"enum",entries:I,...N0(U)})}function fO0($,I,U){return new $({type:"literal",values:Array.isArray(I)?I:[I],...N0(U)})}function aM($,I){return new $({type:"file",...N0(I)})}function iO0($,I){return new $({type:"transform",transform:I})}function bO0($,I){return new $({type:"optional",innerType:I})}function nO0($,I){return new $({type:"nullable",innerType:I})}function pO0($,I,U){return new $({type:"default",innerType:I,get defaultValue(){return typeof U==="function"?U():GO(U)}})}function cO0($,I,U){return new $({type:"nonoptional",innerType:I,...N0(U)})}function dO0($,I){return new $({type:"success",innerType:I})}function mO0($,I,U){return new $({type:"catch",innerType:I,catchValue:typeof U==="function"?U:()=>U})}function lO0($,I,U){return new $({type:"pipe",in:I,out:U})}function oO0($,I){return new $({type:"readonly",innerType:I})}function rO0($,I,U){return new $({type:"template_literal",parts:I,...N0(U)})}function tO0($,I){return new $({type:"lazy",getter:I})}function aO0($,I){return new $({type:"promise",innerType:I})}function sM($,I,U){let Y=N0(U);return Y.abort??(Y.abort=!0),new $({type:"custom",check:"custom",fn:I,...Y})}function eM($,I,U){return new $({type:"custom",check:"custom",fn:I,...N0(U)})}function $A($,I){let U=vx((Y)=>{return Y.addIssue=(J)=>{if(typeof J==="string")Y.issues.push(AI(J,Y.value,U._zod.def));else{let Q=J;if(Q.fatal)Q.continue=!1;Q.code??(Q.code="custom"),Q.input??(Q.input=Y.value),Q.inst??(Q.inst=U),Q.continue??(Q.continue=!U._zod.def.abort),Y.issues.push(AI(Q))}},$(Y.value,Y)},I);return U}function vx($,I){let U=new n1({check:"custom",...N0(I)});return U._zod.check=$,U}function IA($){let I=new n1({check:"describe"});return I._zod.onattach=[(U)=>{let Y=l4.get(U)??{};l4.add(U,{...Y,description:$})}],I._zod.check=()=>{},I}function UA($){let I=new n1({check:"meta"});return I._zod.onattach=[(U)=>{let Y=l4.get(U)??{};l4.add(U,{...Y,...$})}],I._zod.check=()=>{},I}function YA($,I){let U=N0(I),Y=U.truthy??["true","1","yes","on","y","enabled"],J=U.falsy??["false","0","no","off","n","disabled"];if(U.case!=="sensitive")Y=Y.map((V)=>typeof V==="string"?V.toLowerCase():V),J=J.map((V)=>typeof V==="string"?V.toLowerCase():V);let Q=new Set(Y),K=new Set(J),q=$.Codec??KQ,H=$.Boolean??JQ,W=new($.String??_7)({type:"string",error:U.error}),w=new H({type:"boolean",error:U.error}),Z=new q({type:"pipe",in:W,out:w,transform:(V,X)=>{let L=V;if(U.case!=="sensitive")L=L.toLowerCase();if(Q.has(L))return!0;else if(K.has(L))return!1;else return X.issues.push({code:"invalid_value",expected:"stringbool",values:[...Q,...K],input:X.value,inst:Z,continue:!1}),{}},reverseTransform:(V,X)=>{if(V===!0)return Y[0]||"true";else return J[0]||"false"},error:U.error});return Z}function nI($,I,U,Y={}){let J=N0(Y),Q={...N0(Y),check:"string_format",type:"string",format:I,fn:typeof U==="function"?U:(q)=>U.test(q),...J};if(U instanceof RegExp)Q.pattern=U;return new $(Q)}function Q9($){let I=$?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";return{processors:$.processors??{},metadataRegistry:$?.metadata??l4,target:I,unrepresentable:$?.unrepresentable??"throw",override:$?.override??(()=>{}),io:$?.io??"output",counter:0,seen:new Map,cycles:$?.cycles??"ref",reused:$?.reused??"inline",external:$?.external??void 0}}function S1($,I,U={path:[],schemaPath:[]}){var Y;let J=$._zod.def,Q=I.seen.get($);if(Q){if(Q.count++,U.schemaPath.includes($))Q.cycle=U.path;return Q.schema}let K={schema:{},count:1,cycle:void 0,path:U.path};I.seen.set($,K);let q=$._zod.toJSONSchema?.();if(q)K.schema=q;else{let W={...U,schemaPath:[...U.schemaPath,$],path:U.path};if($._zod.processJSONSchema)$._zod.processJSONSchema(I,K.schema,W);else{let Z=K.schema,V=I.processors[J.type];if(!V)throw Error(`[toJSONSchema]: Non-representable type encountered: ${J.type}`);V($,I,Z,W)}let w=$._zod.parent;if(w){if(!K.ref)K.ref=w;S1(w,I,W),I.seen.get(w).isParent=!0}}let H=I.metadataRegistry.get($);if(H)Object.assign(K.schema,H);if(I.io==="input"&&v6($))delete K.schema.examples,delete K.schema.default;if(I.io==="input"&&"_prefault"in K.schema)(Y=K.schema).default??(Y.default=K.schema._prefault);return delete K.schema._prefault,I.seen.get($).schema}function K9($,I){let U=$.seen.get(I);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=new Map;for(let K of $.seen.entries()){let q=$.metadataRegistry.get(K[0])?.id;if(q){let H=Y.get(q);if(H&&H!==K[0])throw Error(`Duplicate schema id "${q}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);Y.set(q,K[0])}}let J=(K)=>{let q=$.target==="draft-2020-12"?"$defs":"definitions";if($.external){let w=$.external.registry.get(K[0])?.id,Z=$.external.uri??((X)=>X);if(w)return{ref:Z(w)};let V=K[1].defId??K[1].schema.id??`schema${$.counter++}`;return K[1].defId=V,{defId:V,ref:`${Z("__shared")}#/${q}/${V}`}}if(K[1]===U)return{ref:"#"};let G=`${"#"}/${q}/`,W=K[1].schema.id??`__schema${$.counter++}`;return{defId:W,ref:G+W}},Q=(K)=>{if(K[1].schema.$ref)return;let q=K[1],{ref:H,defId:G}=J(K);if(q.def={...q.schema},G)q.defId=G;let W=q.schema;for(let w in W)delete W[w];W.$ref=H};if($.cycles==="throw")for(let K of $.seen.entries()){let q=K[1];if(q.cycle)throw Error(`Cycle detected: #/${q.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let K of $.seen.entries()){let q=K[1];if(I===K[0]){Q(K);continue}if($.external){let G=$.external.registry.get(K[0])?.id;if(I!==K[0]&&G){Q(K);continue}}if($.metadataRegistry.get(K[0])?.id){Q(K);continue}if(q.cycle){Q(K);continue}if(q.count>1){if($.reused==="ref"){Q(K);continue}}}}function q9($,I){let U=$.seen.get(I);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=(q)=>{let H=$.seen.get(q);if(H.ref===null)return;let G=H.def??H.schema,W={...G},w=H.ref;if(H.ref=null,w){Y(w);let V=$.seen.get(w),X=V.schema;if(X.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))G.allOf=G.allOf??[],G.allOf.push(X);else Object.assign(G,X);if(Object.assign(G,W),q._zod.parent===w)for(let D in G){if(D==="$ref"||D==="allOf")continue;if(!(D in W))delete G[D]}if(X.$ref&&V.def)for(let D in G){if(D==="$ref"||D==="allOf")continue;if(D in V.def&&JSON.stringify(G[D])===JSON.stringify(V.def[D]))delete G[D]}}let Z=q._zod.parent;if(Z&&Z!==w){Y(Z);let V=$.seen.get(Z);if(V?.schema.$ref){if(G.$ref=V.schema.$ref,V.def)for(let X in G){if(X==="$ref"||X==="allOf")continue;if(X in V.def&&JSON.stringify(G[X])===JSON.stringify(V.def[X]))delete G[X]}}}$.override({zodSchema:q,jsonSchema:G,path:H.path??[]})};for(let q of[...$.seen.entries()].reverse())Y(q[0]);let J={};if($.target==="draft-2020-12")J.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")J.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")J.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let q=$.external.registry.get(I)?.id;if(!q)throw Error("Schema is missing an `id` property");J.$id=$.external.uri(q)}Object.assign(J,U.def??U.schema);let Q=$.metadataRegistry.get(I)?.id;if(Q!==void 0&&J.id===Q)delete J.id;let K=$.external?.defs??{};for(let q of $.seen.entries()){let H=q[1];if(H.def&&H.defId){if(H.def.id===H.defId)delete H.def.id;K[H.defId]=H.def}}if($.external);else if(Object.keys(K).length>0)if($.target==="draft-2020-12")J.$defs=K;else J.definitions=K;try{let q=JSON.parse(JSON.stringify(J));return Object.defineProperty(q,"~standard",{value:{...I["~standard"],jsonSchema:{input:pI(I,"input",$.processors),output:pI(I,"output",$.processors)}},enumerable:!1,writable:!1}),q}catch(q){throw Error("Error converting schema to JSON.")}}function v6($,I){let U=I??{seen:new Set};if(U.seen.has($))return!1;U.seen.add($);let Y=$._zod.def;if(Y.type==="transform")return!0;if(Y.type==="array")return v6(Y.element,U);if(Y.type==="set")return v6(Y.valueType,U);if(Y.type==="lazy")return v6(Y.getter(),U);if(Y.type==="promise"||Y.type==="optional"||Y.type==="nonoptional"||Y.type==="nullable"||Y.type==="readonly"||Y.type==="default"||Y.type==="prefault")return v6(Y.innerType,U);if(Y.type==="intersection")return v6(Y.left,U)||v6(Y.right,U);if(Y.type==="record"||Y.type==="map")return v6(Y.keyType,U)||v6(Y.valueType,U);if(Y.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return v6(Y.in,U)||v6(Y.out,U)}if(Y.type==="object"){for(let J in Y.shape)if(v6(Y.shape[J],U))return!0;return!1}if(Y.type==="union"){for(let J of Y.options)if(v6(J,U))return!0;return!1}if(Y.type==="tuple"){for(let J of Y.items)if(v6(J,U))return!0;if(Y.rest&&v6(Y.rest,U))return!0;return!1}return!1}var YA=($,I={})=>(U)=>{let Y=Q9({...U,processors:I});return S1($,Y),K9(Y,$),q9(Y,$)},pI=($,I,U={})=>(Y)=>{let{libraryOptions:J,target:Q}=Y??{},K=Q9({...J??{},target:Q,io:I,processors:U});return S1($,K),K9(K,$),q9(K,$)};var sO0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},JA=($,I,U,Y)=>{let J=U;J.type="string";let{minimum:Q,maximum:K,format:q,patterns:H,contentEncoding:G}=$._zod.bag;if(typeof Q==="number")J.minLength=Q;if(typeof K==="number")J.maxLength=K;if(q){if(J.format=sO0[q]??q,J.format==="")delete J.format;if(q==="time")delete J.format}if(G)J.contentEncoding=G;if(H&&H.size>0){let W=[...H];if(W.length===1)J.pattern=W[0].source;else if(W.length>1)J.allOf=[...W.map((w)=>({...I.target==="draft-07"||I.target==="draft-04"||I.target==="openapi-3.0"?{type:"string"}:{},pattern:w.source}))]}},QA=($,I,U,Y)=>{let J=U,{minimum:Q,maximum:K,format:q,multipleOf:H,exclusiveMaximum:G,exclusiveMinimum:W}=$._zod.bag;if(typeof q==="string"&&q.includes("int"))J.type="integer";else J.type="number";let w=typeof W==="number"&&W>=(Q??Number.NEGATIVE_INFINITY),Z=typeof G==="number"&&G<=(K??Number.POSITIVE_INFINITY),V=I.target==="draft-04"||I.target==="openapi-3.0";if(w)if(V)J.minimum=W,J.exclusiveMinimum=!0;else J.exclusiveMinimum=W;else if(typeof Q==="number")J.minimum=Q;if(Z)if(V)J.maximum=G,J.exclusiveMaximum=!0;else J.exclusiveMaximum=G;else if(typeof K==="number")J.maximum=K;if(typeof H==="number")J.multipleOf=H},KA=($,I,U,Y)=>{U.type="boolean"},qA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},HA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},GA=($,I,U,Y)=>{if(I.target==="openapi-3.0")U.type="string",U.nullable=!0,U.enum=[null];else U.type="null"},WA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},wA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},VA=($,I,U,Y)=>{U.not={}},ZA=($,I,U,Y)=>{},zA=($,I,U,Y)=>{},XA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},LA=($,I,U,Y)=>{let J=$._zod.def,Q=nJ(J.entries);if(Q.every((K)=>typeof K==="number"))U.type="number";if(Q.every((K)=>typeof K==="string"))U.type="string";U.enum=Q},DA=($,I,U,Y)=>{let J=$._zod.def,Q=[];for(let K of J.values)if(K===void 0){if(I.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof K==="bigint")if(I.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else Q.push(Number(K));else Q.push(K);if(Q.length===0);else if(Q.length===1){let K=Q[0];if(U.type=K===null?"null":typeof K,I.target==="draft-04"||I.target==="openapi-3.0")U.enum=[K];else U.const=K}else{if(Q.every((K)=>typeof K==="number"))U.type="number";if(Q.every((K)=>typeof K==="string"))U.type="string";if(Q.every((K)=>typeof K==="boolean"))U.type="boolean";if(Q.every((K)=>K===null))U.type="null";U.enum=Q}},OA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},FA=($,I,U,Y)=>{let J=U,Q=$._zod.pattern;if(!Q)throw Error("Pattern not found in template literal");J.type="string",J.pattern=Q.source},NA=($,I,U,Y)=>{let J=U,Q={type:"string",format:"binary",contentEncoding:"binary"},{minimum:K,maximum:q,mime:H}=$._zod.bag;if(K!==void 0)Q.minLength=K;if(q!==void 0)Q.maxLength=q;if(H)if(H.length===1)Q.contentMediaType=H[0],Object.assign(J,Q);else Object.assign(J,Q),J.anyOf=H.map((G)=>({contentMediaType:G}));else Object.assign(J,Q)},MA=($,I,U,Y)=>{U.type="boolean"},AA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},PA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},TA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},EA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},BA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},vA=($,I,U,Y)=>{let J=U,Q=$._zod.def,{minimum:K,maximum:q}=$._zod.bag;if(typeof K==="number")J.minItems=K;if(typeof q==="number")J.maxItems=q;J.type="array",J.items=S1(Q.element,I,{...Y,path:[...Y.path,"items"]})},RA=($,I,U,Y)=>{let J=U,Q=$._zod.def;J.type="object",J.properties={};let K=Q.shape;for(let G in K)J.properties[G]=S1(K[G],I,{...Y,path:[...Y.path,"properties",G]});let q=new Set(Object.keys(K)),H=new Set([...q].filter((G)=>{let W=Q.shape[G]._zod;if(I.io==="input")return W.optin===void 0;else return W.optout===void 0}));if(H.size>0)J.required=Array.from(H);if(Q.catchall?._zod.def.type==="never")J.additionalProperties=!1;else if(!Q.catchall){if(I.io==="output")J.additionalProperties=!1}else if(Q.catchall)J.additionalProperties=S1(Q.catchall,I,{...Y,path:[...Y.path,"additionalProperties"]})},lG=($,I,U,Y)=>{let J=$._zod.def,Q=J.inclusive===!1,K=J.options.map((q,H)=>S1(q,I,{...Y,path:[...Y.path,Q?"oneOf":"anyOf",H]}));if(Q)U.oneOf=K;else U.anyOf=K},jA=($,I,U,Y)=>{let J=$._zod.def,Q=S1(J.left,I,{...Y,path:[...Y.path,"allOf",0]}),K=S1(J.right,I,{...Y,path:[...Y.path,"allOf",1]}),q=(G)=>("allOf"in G)&&Object.keys(G).length===1,H=[...q(Q)?Q.allOf:[Q],...q(K)?K.allOf:[K]];U.allOf=H},CA=($,I,U,Y)=>{let J=U,Q=$._zod.def;J.type="array";let K=I.target==="draft-2020-12"?"prefixItems":"items",q=I.target==="draft-2020-12"?"items":I.target==="openapi-3.0"?"items":"additionalItems",H=Q.items.map((Z,V)=>S1(Z,I,{...Y,path:[...Y.path,K,V]})),G=Q.rest?S1(Q.rest,I,{...Y,path:[...Y.path,q,...I.target==="openapi-3.0"?[Q.items.length]:[]]}):null;if(I.target==="draft-2020-12"){if(J.prefixItems=H,G)J.items=G}else if(I.target==="openapi-3.0"){if(J.items={anyOf:H},G)J.items.anyOf.push(G);if(J.minItems=H.length,!G)J.maxItems=H.length}else if(J.items=H,G)J.additionalItems=G;let{minimum:W,maximum:w}=$._zod.bag;if(typeof W==="number")J.minItems=W;if(typeof w==="number")J.maxItems=w},_A=($,I,U,Y)=>{let J=U,Q=$._zod.def;J.type="object";let K=Q.keyType,H=K._zod.bag?.patterns;if(Q.mode==="loose"&&H&&H.size>0){let W=S1(Q.valueType,I,{...Y,path:[...Y.path,"patternProperties","*"]});J.patternProperties={};for(let w of H)J.patternProperties[w.source]=W}else{if(I.target==="draft-07"||I.target==="draft-2020-12")J.propertyNames=S1(Q.keyType,I,{...Y,path:[...Y.path,"propertyNames"]});J.additionalProperties=S1(Q.valueType,I,{...Y,path:[...Y.path,"additionalProperties"]})}let G=K._zod.values;if(G){let W=[...G].filter((w)=>typeof w==="string"||typeof w==="number");if(W.length>0)J.required=W}},SA=($,I,U,Y)=>{let J=$._zod.def,Q=S1(J.innerType,I,Y),K=I.seen.get($);if(I.target==="openapi-3.0")K.ref=J.innerType,U.nullable=!0;else U.anyOf=[Q,{type:"null"}]},gA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType},yA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType,U.default=JSON.parse(JSON.stringify(J.defaultValue))},hA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);if(Q.ref=J.innerType,I.io==="input")U._prefault=JSON.parse(JSON.stringify(J.defaultValue))},uA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType;let K;try{K=J.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}U.default=K},xA=($,I,U,Y)=>{let J=$._zod.def,Q=J.in._zod.traits.has("$ZodTransform"),K=I.io==="input"?Q?J.out:J.in:J.out;S1(K,I,Y);let q=I.seen.get($);q.ref=K},kA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType,U.readOnly=!0},fA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType},oG=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType},bA=($,I,U,Y)=>{let J=$._zod.innerType;S1(J,I,Y);let Q=I.seen.get($);Q.ref=J},mG={string:JA,number:QA,boolean:KA,bigint:qA,symbol:HA,null:GA,undefined:WA,void:wA,never:VA,any:ZA,unknown:zA,date:XA,enum:LA,literal:DA,nan:OA,template_literal:FA,file:NA,success:MA,custom:AA,function:PA,transform:TA,map:EA,set:BA,array:vA,object:RA,union:lG,intersection:jA,tuple:CA,record:_A,nullable:SA,nonoptional:gA,default:yA,prefault:hA,catch:uA,pipe:xA,readonly:kA,promise:fA,optional:oG,lazy:bA};function rG($,I){if("_idmap"in $){let Y=$,J=Q9({...I,processors:mG}),Q={};for(let H of Y._idmap.entries()){let[G,W]=H;S1(W,J)}let K={},q={registry:Y,uri:I?.uri,defs:Q};J.external=q;for(let H of Y._idmap.entries()){let[G,W]=H;K9(J,W),K[G]=q9(J,W)}if(Object.keys(Q).length>0){let H=J.target==="draft-2020-12"?"$defs":"definitions";K.__shared={[H]:Q}}return{schemas:K}}let U=Q9({...I,processors:mG});return S1($,U),K9(U,$),q9(U,$)}class iA{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($){this.ctx.counter=$}get seen(){return this.ctx.seen}constructor($){let I=$?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";this.ctx=Q9({processors:mG,target:I,...$?.metadata&&{metadata:$.metadata},...$?.unrepresentable&&{unrepresentable:$.unrepresentable},...$?.override&&{override:$.override},...$?.io&&{io:$.io}})}process($,I={path:[],schemaPath:[]}){return S1($,this.ctx,I)}emit($,I){if(I){if(I.cycles)this.ctx.cycles=I.cycles;if(I.reused)this.ctx.reused=I.reused;if(I.external)this.ctx.external=I.external}K9(this.ctx,$);let U=q9(this.ctx,$),{"~standard":Y,...J}=U;return J}}var Bk={};function cI($){return!!$._zod}function H9($,I){if(cI($))return BI($,I);return $.safeParse(I)}function tG($){if(!$)return;let I;if(cI($))I=$._zod?.def?.shape;else I=$.shape;if(!I)return;if(typeof I==="function")try{return I()}catch{return}return I}function vk($){if(cI($)){let Q=$._zod?.def;if(Q){if(Q.value!==void 0)return Q.value;if(Array.isArray(Q.values)&&Q.values.length>0)return Q.values[0]}}let U=$._def;if(U){if(U.value!==void 0)return U.value;if(Array.isArray(U.values)&&U.values.length>0)return U.values[0]}let Y=$.value;if(Y!==void 0)return Y;return}var z={};$5(z,{xor:()=>Of,xid:()=>pk,void:()=>zf,uuidv7:()=>hk,uuidv6:()=>yk,uuidv4:()=>gk,uuid:()=>Sk,util:()=>D0,url:()=>uk,uppercase:()=>SI,unknown:()=>f1,union:()=>b1,undefined:()=>Vf,ulid:()=>nk,uint64:()=>Wf,uint32:()=>qf,tuple:()=>DP,trim:()=>kI,treeifyError:()=>zO,transform:()=>PW,toUpperCase:()=>bI,toLowerCase:()=>fI,toJSONSchema:()=>rG,templateLiteral:()=>Cf,symbol:()=>wf,superRefine:()=>cP,success:()=>Bf,stringbool:()=>xf,stringFormat:()=>$f,string:()=>q0,strictObject:()=>Df,startsWith:()=>yI,slugify:()=>iI,size:()=>S7,setErrorMap:()=>YF0,set:()=>Af,safeParseAsync:()=>rA,safeParse:()=>oA,safeEncodeAsync:()=>UP,safeEncode:()=>$P,safeDecodeAsync:()=>YP,safeDecode:()=>IP,registry:()=>NG,regexes:()=>Q$,regex:()=>CI,refine:()=>pP,record:()=>h1,readonly:()=>xP,property:()=>dG,promise:()=>_f,prettifyError:()=>XO,preprocess:()=>EQ,prefault:()=>jP,positive:()=>iG,pipe:()=>YW,partialRecord:()=>Ff,parseAsync:()=>lA,parse:()=>mA,overwrite:()=>m$,optional:()=>p1,object:()=>E0,number:()=>L1,nullish:()=>Ef,nullable:()=>zQ,null:()=>DQ,normalize:()=>xI,nonpositive:()=>pG,nonoptional:()=>CP,nonnegative:()=>cG,never:()=>AW,negative:()=>nG,nativeEnum:()=>Pf,nanoid:()=>fk,nan:()=>vf,multipleOf:()=>Y9,minSize:()=>L8,minLength:()=>U5,mime:()=>uI,meta:()=>hf,maxSize:()=>J9,maxLength:()=>g7,map:()=>Mf,mac:()=>mk,lte:()=>K$,lt:()=>z8,lowercase:()=>_I,looseRecord:()=>Nf,looseObject:()=>o4,locales:()=>GQ,literal:()=>g0,length:()=>y7,lazy:()=>bP,ksuid:()=>ck,keyof:()=>Lf,jwt:()=>ek,json:()=>kf,iso:()=>G9,ipv6:()=>lk,ipv4:()=>dk,invertCodec:()=>jf,intersection:()=>sI,int64:()=>Gf,int32:()=>Kf,int:()=>UW,instanceof:()=>uf,includes:()=>gI,httpUrl:()=>xk,hostname:()=>If,hex:()=>Uf,hash:()=>Yf,guid:()=>_k,gte:()=>B6,gt:()=>X8,globalRegistry:()=>l4,getErrorMap:()=>JF0,function:()=>Sf,fromJSONSchema:()=>bf,formatError:()=>rJ,float64:()=>Qf,float32:()=>Jf,flattenError:()=>oJ,file:()=>Tf,exactOptional:()=>TP,enum:()=>r4,endsWith:()=>hI,encodeAsync:()=>sA,encode:()=>tA,emoji:()=>kk,email:()=>Ck,e164:()=>sk,discriminatedUnion:()=>MQ,describe:()=>yf,decodeAsync:()=>eA,decode:()=>aA,date:()=>Xf,custom:()=>BW,cuid2:()=>ik,cuid:()=>bk,core:()=>Y5,config:()=>z4,coerce:()=>mP,codec:()=>Rf,clone:()=>T6,cidrv6:()=>rk,cidrv4:()=>ok,check:()=>gf,catch:()=>gP,boolean:()=>F4,bigint:()=>Hf,base64url:()=>ak,base64:()=>tk,array:()=>$1,any:()=>Zf,_function:()=>Sf,_default:()=>vP,_ZodString:()=>JW,ZodXor:()=>ZP,ZodXID:()=>wW,ZodVoid:()=>wP,ZodUnknown:()=>GP,ZodUnion:()=>NQ,ZodUndefined:()=>KP,ZodUUID:()=>D8,ZodURL:()=>LQ,ZodULID:()=>WW,ZodType:()=>l0,ZodTuple:()=>LP,ZodTransform:()=>AP,ZodTemplateLiteral:()=>kP,ZodSymbol:()=>QP,ZodSuccess:()=>_P,ZodStringFormat:()=>k1,ZodString:()=>lI,ZodSet:()=>FP,ZodRecord:()=>dI,ZodRealError:()=>p6,ZodReadonly:()=>uP,ZodPromise:()=>iP,ZodPreprocess:()=>hP,ZodPrefault:()=>RP,ZodPipe:()=>AQ,ZodOptional:()=>TW,ZodObject:()=>FQ,ZodNumberFormat:()=>h7,ZodNumber:()=>rI,ZodNullable:()=>EP,ZodNull:()=>qP,ZodNonOptional:()=>EW,ZodNever:()=>WP,ZodNanoID:()=>qW,ZodNaN:()=>yP,ZodMap:()=>OP,ZodMAC:()=>JP,ZodLiteral:()=>NP,ZodLazy:()=>fP,ZodKSUID:()=>VW,ZodJWT:()=>NW,ZodIssueCode:()=>UF0,ZodIntersection:()=>XP,ZodISOTime:()=>$W,ZodISODuration:()=>IW,ZodISODateTime:()=>sG,ZodISODate:()=>eG,ZodIPv6:()=>zW,ZodIPv4:()=>ZW,ZodGUID:()=>ZQ,ZodFunction:()=>nP,ZodFirstPartyTypeKind:()=>dP,ZodFile:()=>MP,ZodExactOptional:()=>PP,ZodError:()=>$F0,ZodEnum:()=>mI,ZodEmoji:()=>KW,ZodEmail:()=>QW,ZodE164:()=>FW,ZodDiscriminatedUnion:()=>zP,ZodDefault:()=>BP,ZodDate:()=>OQ,ZodCustomStringFormat:()=>oI,ZodCustom:()=>TQ,ZodCodec:()=>PQ,ZodCatch:()=>SP,ZodCUID2:()=>GW,ZodCUID:()=>HW,ZodCIDRv6:()=>LW,ZodCIDRv4:()=>XW,ZodBoolean:()=>tI,ZodBigIntFormat:()=>MW,ZodBigInt:()=>aI,ZodBase64URL:()=>OW,ZodBase64:()=>DW,ZodArray:()=>VP,ZodAny:()=>HP,TimePrecision:()=>MM,NEVER:()=>UO,$output:()=>XM,$input:()=>LM,$brand:()=>YO});var VQ={};$5(VQ,{xor:()=>Of,xid:()=>pk,void:()=>zf,uuidv7:()=>hk,uuidv6:()=>yk,uuidv4:()=>gk,uuid:()=>Sk,url:()=>uk,unknown:()=>f1,union:()=>b1,undefined:()=>Vf,ulid:()=>nk,uint64:()=>Wf,uint32:()=>qf,tuple:()=>DP,transform:()=>PW,templateLiteral:()=>Cf,symbol:()=>wf,superRefine:()=>cP,success:()=>Bf,stringbool:()=>xf,stringFormat:()=>$f,string:()=>q0,strictObject:()=>Df,set:()=>Af,refine:()=>pP,record:()=>h1,readonly:()=>xP,promise:()=>_f,preprocess:()=>EQ,prefault:()=>jP,pipe:()=>YW,partialRecord:()=>Ff,optional:()=>p1,object:()=>E0,number:()=>L1,nullish:()=>Ef,nullable:()=>zQ,null:()=>DQ,nonoptional:()=>CP,never:()=>AW,nativeEnum:()=>Pf,nanoid:()=>fk,nan:()=>vf,meta:()=>hf,map:()=>Mf,mac:()=>mk,looseRecord:()=>Nf,looseObject:()=>o4,literal:()=>g0,lazy:()=>bP,ksuid:()=>ck,keyof:()=>Lf,jwt:()=>ek,json:()=>kf,ipv6:()=>lk,ipv4:()=>dk,invertCodec:()=>jf,intersection:()=>sI,int64:()=>Gf,int32:()=>Kf,int:()=>UW,instanceof:()=>uf,httpUrl:()=>xk,hostname:()=>If,hex:()=>Uf,hash:()=>Yf,guid:()=>_k,function:()=>Sf,float64:()=>Qf,float32:()=>Jf,file:()=>Tf,exactOptional:()=>TP,enum:()=>r4,emoji:()=>kk,email:()=>Ck,e164:()=>sk,discriminatedUnion:()=>MQ,describe:()=>yf,date:()=>Xf,custom:()=>BW,cuid2:()=>ik,cuid:()=>bk,codec:()=>Rf,cidrv6:()=>rk,cidrv4:()=>ok,check:()=>gf,catch:()=>gP,boolean:()=>F4,bigint:()=>Hf,base64url:()=>ak,base64:()=>tk,array:()=>$1,any:()=>Zf,_function:()=>Sf,_default:()=>vP,_ZodString:()=>JW,ZodXor:()=>ZP,ZodXID:()=>wW,ZodVoid:()=>wP,ZodUnknown:()=>GP,ZodUnion:()=>NQ,ZodUndefined:()=>KP,ZodUUID:()=>D8,ZodURL:()=>LQ,ZodULID:()=>WW,ZodType:()=>l0,ZodTuple:()=>LP,ZodTransform:()=>AP,ZodTemplateLiteral:()=>kP,ZodSymbol:()=>QP,ZodSuccess:()=>_P,ZodStringFormat:()=>k1,ZodString:()=>lI,ZodSet:()=>FP,ZodRecord:()=>dI,ZodReadonly:()=>uP,ZodPromise:()=>iP,ZodPreprocess:()=>hP,ZodPrefault:()=>RP,ZodPipe:()=>AQ,ZodOptional:()=>TW,ZodObject:()=>FQ,ZodNumberFormat:()=>h7,ZodNumber:()=>rI,ZodNullable:()=>EP,ZodNull:()=>qP,ZodNonOptional:()=>EW,ZodNever:()=>WP,ZodNanoID:()=>qW,ZodNaN:()=>yP,ZodMap:()=>OP,ZodMAC:()=>JP,ZodLiteral:()=>NP,ZodLazy:()=>fP,ZodKSUID:()=>VW,ZodJWT:()=>NW,ZodIntersection:()=>XP,ZodIPv6:()=>zW,ZodIPv4:()=>ZW,ZodGUID:()=>ZQ,ZodFunction:()=>nP,ZodFile:()=>MP,ZodExactOptional:()=>PP,ZodEnum:()=>mI,ZodEmoji:()=>KW,ZodEmail:()=>QW,ZodE164:()=>FW,ZodDiscriminatedUnion:()=>zP,ZodDefault:()=>BP,ZodDate:()=>OQ,ZodCustomStringFormat:()=>oI,ZodCustom:()=>TQ,ZodCodec:()=>PQ,ZodCatch:()=>SP,ZodCUID2:()=>GW,ZodCUID:()=>HW,ZodCIDRv6:()=>LW,ZodCIDRv4:()=>XW,ZodBoolean:()=>tI,ZodBigIntFormat:()=>MW,ZodBigInt:()=>aI,ZodBase64URL:()=>OW,ZodBase64:()=>DW,ZodArray:()=>VP,ZodAny:()=>HP});var aG={};$5(aG,{uppercase:()=>SI,trim:()=>kI,toUpperCase:()=>bI,toLowerCase:()=>fI,startsWith:()=>yI,slugify:()=>iI,size:()=>S7,regex:()=>CI,property:()=>dG,positive:()=>iG,overwrite:()=>m$,normalize:()=>xI,nonpositive:()=>pG,nonnegative:()=>cG,negative:()=>nG,multipleOf:()=>Y9,minSize:()=>L8,minLength:()=>U5,mime:()=>uI,maxSize:()=>J9,maxLength:()=>g7,lte:()=>K$,lt:()=>z8,lowercase:()=>_I,length:()=>y7,includes:()=>gI,gte:()=>B6,gt:()=>X8,endsWith:()=>hI});var G9={};$5(G9,{time:()=>cA,duration:()=>dA,datetime:()=>nA,date:()=>pA,ZodISOTime:()=>$W,ZodISODuration:()=>IW,ZodISODateTime:()=>sG,ZodISODate:()=>eG});var sG=o("ZodISODateTime",($,I)=>{AF.init($,I),k1.init($,I)});function nA($){return AM(sG,$)}var eG=o("ZodISODate",($,I)=>{PF.init($,I),k1.init($,I)});function pA($){return PM(eG,$)}var $W=o("ZodISOTime",($,I)=>{TF.init($,I),k1.init($,I)});function cA($){return TM($W,$)}var IW=o("ZodISODuration",($,I)=>{EF.init($,I),k1.init($,I)});function dA($){return EM(IW,$)}var Rk=($,I)=>{lJ.init($,I),$.name="ZodError",Object.defineProperties($,{format:{value:(U)=>rJ($,U)},flatten:{value:(U)=>oJ($,U)},addIssue:{value:(U)=>{$.issues.push(U),$.message=JSON.stringify($.issues,NI,2)}},addIssues:{value:(U)=>{$.issues.push(...U),$.message=JSON.stringify($.issues,NI,2)}},isEmpty:{get(){return $.issues.length===0}}})},$F0=o("ZodError",Rk),p6=o("ZodError",Rk,{Parent:Error});var mA=PI(p6),lA=TI(p6),oA=EI(p6),rA=vI(p6),tA=eH(p6),aA=$G(p6),sA=IG(p6),eA=UG(p6),$P=YG(p6),IP=JG(p6),UP=QG(p6),YP=KG(p6);var jk=new WeakMap;function XQ($,I,U){let Y=Object.getPrototypeOf($),J=jk.get(Y);if(!J)J=new Set,jk.set(Y,J);if(J.has(I))return;J.add(I);for(let Q in U){let K=U[Q];Object.defineProperty(Y,Q,{configurable:!0,enumerable:!1,get(){let q=K.bind(this);return Object.defineProperty(this,Q,{configurable:!0,writable:!0,enumerable:!0,value:q}),q},set(q){Object.defineProperty(this,Q,{configurable:!0,writable:!0,enumerable:!0,value:q})}})}}var l0=o("ZodType",($,I)=>{return n0.init($,I),Object.assign($["~standard"],{jsonSchema:{input:pI($,"input"),output:pI($,"output")}}),$.toJSONSchema=YA($,{}),$.def=I,$.type=I.type,Object.defineProperty($,"_def",{value:I}),$.parse=(U,Y)=>mA($,U,Y,{callee:$.parse}),$.safeParse=(U,Y)=>oA($,U,Y),$.parseAsync=async(U,Y)=>lA($,U,Y,{callee:$.parseAsync}),$.safeParseAsync=async(U,Y)=>rA($,U,Y),$.spa=$.safeParseAsync,$.encode=(U,Y)=>tA($,U,Y),$.decode=(U,Y)=>aA($,U,Y),$.encodeAsync=async(U,Y)=>sA($,U,Y),$.decodeAsync=async(U,Y)=>eA($,U,Y),$.safeEncode=(U,Y)=>$P($,U,Y),$.safeDecode=(U,Y)=>IP($,U,Y),$.safeEncodeAsync=async(U,Y)=>UP($,U,Y),$.safeDecodeAsync=async(U,Y)=>YP($,U,Y),XQ($,"ZodType",{check(...U){let Y=this.def;return this.clone(D0.mergeDefs(Y,{checks:[...Y.checks??[],...U.map((J)=>typeof J==="function"?{_zod:{check:J,def:{check:"custom"},onattach:[]}}:J)]}),{parent:!0})},with(...U){return this.check(...U)},clone(U,Y){return T6(this,U,Y)},brand(){return this},register(U,Y){return U.add(this,Y),this},refine(U,Y){return this.check(pP(U,Y))},superRefine(U,Y){return this.check(cP(U,Y))},overwrite(U){return this.check(m$(U))},optional(){return p1(this)},exactOptional(){return TP(this)},nullable(){return zQ(this)},nullish(){return p1(zQ(this))},nonoptional(U){return CP(this,U)},array(){return $1(this)},or(U){return b1([this,U])},and(U){return sI(this,U)},transform(U){return YW(this,PW(U))},default(U){return vP(this,U)},prefault(U){return jP(this,U)},catch(U){return gP(this,U)},pipe(U){return YW(this,U)},readonly(){return xP(this)},describe(U){let Y=this.clone();return l4.add(Y,{description:U}),Y},meta(...U){if(U.length===0)return l4.get(this);let Y=this.clone();return l4.add(Y,U[0]),Y},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(U){return U(this)}}),Object.defineProperty($,"description",{get(){return l4.get($)?.description},configurable:!0}),$}),JW=o("_ZodString",($,I)=>{_7.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>JA($,Y,J,Q);let U=$._zod.bag;$.format=U.format??null,$.minLength=U.minimum??null,$.maxLength=U.maximum??null,XQ($,"_ZodString",{regex(...Y){return this.check(CI(...Y))},includes(...Y){return this.check(gI(...Y))},startsWith(...Y){return this.check(yI(...Y))},endsWith(...Y){return this.check(hI(...Y))},min(...Y){return this.check(U5(...Y))},max(...Y){return this.check(g7(...Y))},length(...Y){return this.check(y7(...Y))},nonempty(...Y){return this.check(U5(1,...Y))},lowercase(Y){return this.check(_I(Y))},uppercase(Y){return this.check(SI(Y))},trim(){return this.check(kI())},normalize(...Y){return this.check(xI(...Y))},toLowerCase(){return this.check(fI())},toUpperCase(){return this.check(bI())},slugify(){return this.check(iI())}})}),lI=o("ZodString",($,I)=>{_7.init($,I),JW.init($,I),$.email=(U)=>$.check(MG(QW,U)),$.url=(U)=>$.check(wQ(LQ,U)),$.jwt=(U)=>$.check(bG(NW,U)),$.emoji=(U)=>$.check(BG(KW,U)),$.guid=(U)=>$.check(WQ(ZQ,U)),$.uuid=(U)=>$.check(AG(D8,U)),$.uuidv4=(U)=>$.check(PG(D8,U)),$.uuidv6=(U)=>$.check(TG(D8,U)),$.uuidv7=(U)=>$.check(EG(D8,U)),$.nanoid=(U)=>$.check(vG(qW,U)),$.guid=(U)=>$.check(WQ(ZQ,U)),$.cuid=(U)=>$.check(RG(HW,U)),$.cuid2=(U)=>$.check(jG(GW,U)),$.ulid=(U)=>$.check(CG(WW,U)),$.base64=(U)=>$.check(xG(DW,U)),$.base64url=(U)=>$.check(kG(OW,U)),$.xid=(U)=>$.check(_G(wW,U)),$.ksuid=(U)=>$.check(SG(VW,U)),$.ipv4=(U)=>$.check(gG(ZW,U)),$.ipv6=(U)=>$.check(yG(zW,U)),$.cidrv4=(U)=>$.check(hG(XW,U)),$.cidrv6=(U)=>$.check(uG(LW,U)),$.e164=(U)=>$.check(fG(FW,U)),$.datetime=(U)=>$.check(nA(U)),$.date=(U)=>$.check(pA(U)),$.time=(U)=>$.check(cA(U)),$.duration=(U)=>$.check(dA(U))});function q0($){return OM(lI,$)}var k1=o("ZodStringFormat",($,I)=>{x1.init($,I),JW.init($,I)}),QW=o("ZodEmail",($,I)=>{ZF.init($,I),k1.init($,I)});function Ck($){return MG(QW,$)}var ZQ=o("ZodGUID",($,I)=>{wF.init($,I),k1.init($,I)});function _k($){return WQ(ZQ,$)}var D8=o("ZodUUID",($,I)=>{VF.init($,I),k1.init($,I)});function Sk($){return AG(D8,$)}function gk($){return PG(D8,$)}function yk($){return TG(D8,$)}function hk($){return EG(D8,$)}var LQ=o("ZodURL",($,I)=>{zF.init($,I),k1.init($,I)});function uk($){return wQ(LQ,$)}function xk($){return wQ(LQ,{protocol:Q$.httpProtocol,hostname:Q$.domain,...D0.normalizeParams($)})}var KW=o("ZodEmoji",($,I)=>{XF.init($,I),k1.init($,I)});function kk($){return BG(KW,$)}var qW=o("ZodNanoID",($,I)=>{LF.init($,I),k1.init($,I)});function fk($){return vG(qW,$)}var HW=o("ZodCUID",($,I)=>{DF.init($,I),k1.init($,I)});function bk($){return RG(HW,$)}var GW=o("ZodCUID2",($,I)=>{OF.init($,I),k1.init($,I)});function ik($){return jG(GW,$)}var WW=o("ZodULID",($,I)=>{FF.init($,I),k1.init($,I)});function nk($){return CG(WW,$)}var wW=o("ZodXID",($,I)=>{NF.init($,I),k1.init($,I)});function pk($){return _G(wW,$)}var VW=o("ZodKSUID",($,I)=>{MF.init($,I),k1.init($,I)});function ck($){return SG(VW,$)}var ZW=o("ZodIPv4",($,I)=>{BF.init($,I),k1.init($,I)});function dk($){return gG(ZW,$)}var JP=o("ZodMAC",($,I)=>{RF.init($,I),k1.init($,I)});function mk($){return NM(JP,$)}var zW=o("ZodIPv6",($,I)=>{vF.init($,I),k1.init($,I)});function lk($){return yG(zW,$)}var XW=o("ZodCIDRv4",($,I)=>{jF.init($,I),k1.init($,I)});function ok($){return hG(XW,$)}var LW=o("ZodCIDRv6",($,I)=>{CF.init($,I),k1.init($,I)});function rk($){return uG(LW,$)}var DW=o("ZodBase64",($,I)=>{SF.init($,I),k1.init($,I)});function tk($){return xG(DW,$)}var OW=o("ZodBase64URL",($,I)=>{gF.init($,I),k1.init($,I)});function ak($){return kG(OW,$)}var FW=o("ZodE164",($,I)=>{yF.init($,I),k1.init($,I)});function sk($){return fG(FW,$)}var NW=o("ZodJWT",($,I)=>{hF.init($,I),k1.init($,I)});function ek($){return bG(NW,$)}var oI=o("ZodCustomStringFormat",($,I)=>{uF.init($,I),k1.init($,I)});function $f($,I,U={}){return nI(oI,$,I,U)}function If($){return nI(oI,"hostname",Q$.hostname,$)}function Uf($){return nI(oI,"hex",Q$.hex,$)}function Yf($,I){let U=I?.enc??"hex",Y=`${$}_${U}`,J=Q$[Y];if(!J)throw Error(`Unrecognized hash format: ${Y}`);return nI(oI,Y,J,I)}var rI=o("ZodNumber",($,I)=>{XG.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>QA($,Y,J,Q),XQ($,"ZodNumber",{gt(Y,J){return this.check(X8(Y,J))},gte(Y,J){return this.check(B6(Y,J))},min(Y,J){return this.check(B6(Y,J))},lt(Y,J){return this.check(z8(Y,J))},lte(Y,J){return this.check(K$(Y,J))},max(Y,J){return this.check(K$(Y,J))},int(Y){return this.check(UW(Y))},safe(Y){return this.check(UW(Y))},positive(Y){return this.check(X8(0,Y))},nonnegative(Y){return this.check(B6(0,Y))},negative(Y){return this.check(z8(0,Y))},nonpositive(Y){return this.check(K$(0,Y))},multipleOf(Y,J){return this.check(Y9(Y,J))},step(Y,J){return this.check(Y9(Y,J))},finite(){return this}});let U=$._zod.bag;$.minValue=Math.max(U.minimum??Number.NEGATIVE_INFINITY,U.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,$.maxValue=Math.min(U.maximum??Number.POSITIVE_INFINITY,U.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,$.isInt=(U.format??"").includes("int")||Number.isSafeInteger(U.multipleOf??0.5),$.isFinite=!0,$.format=U.format??null});function L1($){return BM(rI,$)}var h7=o("ZodNumberFormat",($,I)=>{xF.init($,I),rI.init($,I)});function UW($){return RM(h7,$)}function Jf($){return jM(h7,$)}function Qf($){return CM(h7,$)}function Kf($){return _M(h7,$)}function qf($){return SM(h7,$)}var tI=o("ZodBoolean",($,I)=>{UQ.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>KA($,U,Y,J)});function F4($){return gM(tI,$)}var aI=o("ZodBigInt",($,I)=>{LG.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>qA($,Y,J,Q),$.gte=(Y,J)=>$.check(B6(Y,J)),$.min=(Y,J)=>$.check(B6(Y,J)),$.gt=(Y,J)=>$.check(X8(Y,J)),$.gte=(Y,J)=>$.check(B6(Y,J)),$.min=(Y,J)=>$.check(B6(Y,J)),$.lt=(Y,J)=>$.check(z8(Y,J)),$.lte=(Y,J)=>$.check(K$(Y,J)),$.max=(Y,J)=>$.check(K$(Y,J)),$.positive=(Y)=>$.check(X8(BigInt(0),Y)),$.negative=(Y)=>$.check(z8(BigInt(0),Y)),$.nonpositive=(Y)=>$.check(K$(BigInt(0),Y)),$.nonnegative=(Y)=>$.check(B6(BigInt(0),Y)),$.multipleOf=(Y,J)=>$.check(Y9(Y,J));let U=$._zod.bag;$.minValue=U.minimum??null,$.maxValue=U.maximum??null,$.format=U.format??null});function Hf($){return hM(aI,$)}var MW=o("ZodBigIntFormat",($,I)=>{kF.init($,I),aI.init($,I)});function Gf($){return xM(MW,$)}function Wf($){return kM(MW,$)}var QP=o("ZodSymbol",($,I)=>{fF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>HA($,U,Y,J)});function wf($){return fM(QP,$)}var KP=o("ZodUndefined",($,I)=>{bF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>WA($,U,Y,J)});function Vf($){return bM(KP,$)}var qP=o("ZodNull",($,I)=>{iF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>GA($,U,Y,J)});function DQ($){return iM(qP,$)}var HP=o("ZodAny",($,I)=>{nF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>ZA($,U,Y,J)});function Zf(){return nM(HP)}var GP=o("ZodUnknown",($,I)=>{pF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>zA($,U,Y,J)});function f1(){return pM(GP)}var WP=o("ZodNever",($,I)=>{cF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>VA($,U,Y,J)});function AW($){return cM(WP,$)}var wP=o("ZodVoid",($,I)=>{dF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>wA($,U,Y,J)});function zf($){return dM(wP,$)}var OQ=o("ZodDate",($,I)=>{mF.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>XA($,Y,J,Q),$.min=(Y,J)=>$.check(B6(Y,J)),$.max=(Y,J)=>$.check(K$(Y,J));let U=$._zod.bag;$.minDate=U.minimum?new Date(U.minimum):null,$.maxDate=U.maximum?new Date(U.maximum):null});function Xf($){return mM(OQ,$)}var VP=o("ZodArray",($,I)=>{lF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>vA($,U,Y,J),$.element=I.element,XQ($,"ZodArray",{min(U,Y){return this.check(U5(U,Y))},nonempty(U){return this.check(U5(1,U))},max(U,Y){return this.check(g7(U,Y))},length(U,Y){return this.check(y7(U,Y))},unwrap(){return this.element}})});function $1($,I){return rM(VP,$,I)}function Lf($){let I=$._zod.def.shape;return r4(Object.keys(I))}var FQ=o("ZodObject",($,I)=>{oF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>RA($,U,Y,J),D0.defineLazy($,"shape",()=>{return I.shape}),XQ($,"ZodObject",{keyof(){return r4(Object.keys(this._zod.def.shape))},catchall(U){return this.clone({...this._zod.def,catchall:U})},passthrough(){return this.clone({...this._zod.def,catchall:f1()})},loose(){return this.clone({...this._zod.def,catchall:f1()})},strict(){return this.clone({...this._zod.def,catchall:AW()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(U){return D0.extend(this,U)},safeExtend(U){return D0.safeExtend(this,U)},merge(U){return D0.merge(this,U)},pick(U){return D0.pick(this,U)},omit(U){return D0.omit(this,U)},partial(...U){return D0.partial(TW,this,U[0])},required(...U){return D0.required(EW,this,U[0])}})});function E0($,I){let U={type:"object",shape:$??{},...D0.normalizeParams(I)};return new FQ(U)}function Df($,I){return new FQ({type:"object",shape:$,catchall:AW(),...D0.normalizeParams(I)})}function o4($,I){return new FQ({type:"object",shape:$,catchall:f1(),...D0.normalizeParams(I)})}var NQ=o("ZodUnion",($,I)=>{YQ.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>lG($,U,Y,J),$.options=I.options});function b1($,I){return new NQ({type:"union",options:$,...D0.normalizeParams(I)})}var ZP=o("ZodXor",($,I)=>{NQ.init($,I),rF.init($,I),$._zod.processJSONSchema=(U,Y,J)=>lG($,U,Y,J),$.options=I.options});function Of($,I){return new ZP({type:"union",options:$,inclusive:!1,...D0.normalizeParams(I)})}var zP=o("ZodDiscriminatedUnion",($,I)=>{NQ.init($,I),tF.init($,I)});function MQ($,I,U){return new zP({type:"union",options:I,discriminator:$,...D0.normalizeParams(U)})}var XP=o("ZodIntersection",($,I)=>{aF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>jA($,U,Y,J)});function sI($,I){return new XP({type:"intersection",left:$,right:I})}var LP=o("ZodTuple",($,I)=>{DG.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>CA($,U,Y,J),$.rest=(U)=>$.clone({...$._zod.def,rest:U})});function DP($,I,U){let Y=I instanceof n0,J=Y?U:I;return new LP({type:"tuple",items:$,rest:Y?I:null,...D0.normalizeParams(J)})}var dI=o("ZodRecord",($,I)=>{sF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>_A($,U,Y,J),$.keyType=I.keyType,$.valueType=I.valueType});function h1($,I,U){if(!I||!I._zod)return new dI({type:"record",keyType:q0(),valueType:$,...D0.normalizeParams(I)});return new dI({type:"record",keyType:$,valueType:I,...D0.normalizeParams(U)})}function Ff($,I,U){let Y=T6($);return Y._zod.values=void 0,new dI({type:"record",keyType:Y,valueType:I,...D0.normalizeParams(U)})}function Nf($,I,U){return new dI({type:"record",keyType:$,valueType:I,mode:"loose",...D0.normalizeParams(U)})}var OP=o("ZodMap",($,I)=>{eF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>EA($,U,Y,J),$.keyType=I.keyType,$.valueType=I.valueType,$.min=(...U)=>$.check(L8(...U)),$.nonempty=(U)=>$.check(L8(1,U)),$.max=(...U)=>$.check(J9(...U)),$.size=(...U)=>$.check(S7(...U))});function Mf($,I,U){return new OP({type:"map",keyType:$,valueType:I,...D0.normalizeParams(U)})}var FP=o("ZodSet",($,I)=>{$N.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>BA($,U,Y,J),$.min=(...U)=>$.check(L8(...U)),$.nonempty=(U)=>$.check(L8(1,U)),$.max=(...U)=>$.check(J9(...U)),$.size=(...U)=>$.check(S7(...U))});function Af($,I){return new FP({type:"set",valueType:$,...D0.normalizeParams(I)})}var mI=o("ZodEnum",($,I)=>{IN.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>LA($,Y,J,Q),$.enum=I.entries,$.options=Object.values(I.entries);let U=new Set(Object.keys(I.entries));$.extract=(Y,J)=>{let Q={};for(let K of Y)if(U.has(K))Q[K]=I.entries[K];else throw Error(`Key ${K} not found in enum`);return new mI({...I,checks:[],...D0.normalizeParams(J),entries:Q})},$.exclude=(Y,J)=>{let Q={...I.entries};for(let K of Y)if(U.has(K))delete Q[K];else throw Error(`Key ${K} not found in enum`);return new mI({...I,checks:[],...D0.normalizeParams(J),entries:Q})}});function r4($,I){let U=Array.isArray($)?Object.fromEntries($.map((Y)=>[Y,Y])):$;return new mI({type:"enum",entries:U,...D0.normalizeParams(I)})}function Pf($,I){return new mI({type:"enum",entries:$,...D0.normalizeParams(I)})}var NP=o("ZodLiteral",($,I)=>{UN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>DA($,U,Y,J),$.values=new Set(I.values),Object.defineProperty($,"value",{get(){if(I.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return I.values[0]}})});function g0($,I){return new NP({type:"literal",values:Array.isArray($)?$:[$],...D0.normalizeParams(I)})}var MP=o("ZodFile",($,I)=>{YN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>NA($,U,Y,J),$.min=(U,Y)=>$.check(L8(U,Y)),$.max=(U,Y)=>$.check(J9(U,Y)),$.mime=(U,Y)=>$.check(uI(Array.isArray(U)?U:[U],Y))});function Tf($){return tM(MP,$)}var AP=o("ZodTransform",($,I)=>{JN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>TA($,U,Y,J),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")throw new R7($.constructor.name);U.addIssue=(Q)=>{if(typeof Q==="string")U.issues.push(D0.issue(Q,U.value,I));else{let K=Q;if(K.fatal)K.continue=!1;K.code??(K.code="custom"),K.input??(K.input=U.value),K.inst??(K.inst=$),U.issues.push(D0.issue(K))}};let J=I.transform(U.value,U);if(J instanceof Promise)return J.then((Q)=>{return U.value=Q,U.fallback=!0,U});return U.value=J,U.fallback=!0,U}});function PW($){return new AP({type:"transform",transform:$})}var TW=o("ZodOptional",($,I)=>{OG.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>oG($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function p1($){return new TW({type:"optional",innerType:$})}var PP=o("ZodExactOptional",($,I)=>{QN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>oG($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function TP($){return new PP({type:"optional",innerType:$})}var EP=o("ZodNullable",($,I)=>{KN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>SA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function zQ($){return new EP({type:"nullable",innerType:$})}function Ef($){return p1(zQ($))}var BP=o("ZodDefault",($,I)=>{qN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>yA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType,$.removeDefault=$.unwrap});function vP($,I){return new BP({type:"default",innerType:$,get defaultValue(){return typeof I==="function"?I():D0.shallowClone(I)}})}var RP=o("ZodPrefault",($,I)=>{HN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>hA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function jP($,I){return new RP({type:"prefault",innerType:$,get defaultValue(){return typeof I==="function"?I():D0.shallowClone(I)}})}var EW=o("ZodNonOptional",($,I)=>{GN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>gA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function CP($,I){return new EW({type:"nonoptional",innerType:$,...D0.normalizeParams(I)})}var _P=o("ZodSuccess",($,I)=>{WN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>MA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function Bf($){return new _P({type:"success",innerType:$})}var SP=o("ZodCatch",($,I)=>{wN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>uA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType,$.removeCatch=$.unwrap});function gP($,I){return new SP({type:"catch",innerType:$,catchValue:typeof I==="function"?I:()=>I})}var yP=o("ZodNaN",($,I)=>{VN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>OA($,U,Y,J)});function vf($){return oM(yP,$)}var AQ=o("ZodPipe",($,I)=>{FG.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>xA($,U,Y,J),$.in=I.in,$.out=I.out});function YW($,I){return new AQ({type:"pipe",in:$,out:I})}var PQ=o("ZodCodec",($,I)=>{AQ.init($,I),JQ.init($,I)});function Rf($,I,U){return new PQ({type:"pipe",in:$,out:I,transform:U.decode,reverseTransform:U.encode})}function jf($){let I=$._zod.def;return new PQ({type:"pipe",in:I.out,out:I.in,transform:I.reverseTransform,reverseTransform:I.transform})}var hP=o("ZodPreprocess",($,I)=>{AQ.init($,I),ZN.init($,I)}),uP=o("ZodReadonly",($,I)=>{zN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>kA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function xP($){return new uP({type:"readonly",innerType:$})}var kP=o("ZodTemplateLiteral",($,I)=>{XN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>FA($,U,Y,J)});function Cf($,I){return new kP({type:"template_literal",parts:$,...D0.normalizeParams(I)})}var fP=o("ZodLazy",($,I)=>{ON.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>bA($,U,Y,J),$.unwrap=()=>$._zod.def.getter()});function bP($){return new fP({type:"lazy",getter:$})}var iP=o("ZodPromise",($,I)=>{DN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>fA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function _f($){return new iP({type:"promise",innerType:$})}var nP=o("ZodFunction",($,I)=>{LN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>PA($,U,Y,J)});function Sf($){return new nP({type:"function",input:Array.isArray($?.input)?DP($?.input):$?.input??$1(f1()),output:$?.output??f1()})}var TQ=o("ZodCustom",($,I)=>{FN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>AA($,U,Y,J)});function gf($){let I=new n1({check:"custom"});return I._zod.check=$,I}function BW($,I){return aM(TQ,$??(()=>!0),I)}function pP($,I={}){return sM(TQ,$,I)}function cP($,I){return eM($,I)}var yf=$A,hf=IA;function uf($,I={}){let U=new TQ({type:"custom",check:"custom",fn:(Y)=>Y instanceof $,abort:!0,...D0.normalizeParams(I)});return U._zod.bag.Class=$,U._zod.check=(Y)=>{if(!(Y.value instanceof $))Y.issues.push({code:"invalid_type",expected:$.name,input:Y.value,inst:U,path:[...U._zod.def.path??[]]})},U}var xf=(...$)=>UA({Codec:PQ,Boolean:tI,String:lI},...$);function kf($){let I=bP(()=>{return b1([q0($),L1(),F4(),DQ(),$1(I),h1(q0(),I)])});return I}function EQ($,I){return new hP({type:"pipe",in:PW($),out:I})}var UF0={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 YF0($){z4({customError:$})}function JF0(){return z4().customError}var dP;(function($){})(dP||(dP={}));var T0={...VQ,...aG,iso:G9},QF0=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 KF0($,I){let U=$.$schema;if(U==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(U==="http://json-schema.org/draft-07/schema#")return"draft-7";if(U==="http://json-schema.org/draft-04/schema#")return"draft-4";return I??"draft-2020-12"}function qF0($,I){if(!$.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let U=$.slice(1).split("/").filter(Boolean);if(U.length===0)return I.rootSchema;let Y=I.version==="draft-2020-12"?"$defs":"definitions";if(U[0]===Y){let J=U[1];if(!J||!I.defs[J])throw Error(`Reference not found: ${$}`);return I.defs[J]}throw Error(`Reference not found: ${$}`)}function ff($,I){if($.not!==void 0){if(typeof $.not==="object"&&Object.keys($.not).length===0)return T0.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if($.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if($.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if($.if!==void 0||$.then!==void 0||$.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if($.dependentSchemas!==void 0||$.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if($.$ref){let J=$.$ref;if(I.refs.has(J))return I.refs.get(J);if(I.processing.has(J))return T0.lazy(()=>{if(!I.refs.has(J))throw Error(`Circular reference not resolved: ${J}`);return I.refs.get(J)});I.processing.add(J);let Q=qF0(J,I),K=z6(Q,I);return I.refs.set(J,K),I.processing.delete(J),K}if($.enum!==void 0){let J=$.enum;if(I.version==="openapi-3.0"&&$.nullable===!0&&J.length===1&&J[0]===null)return T0.null();if(J.length===0)return T0.never();if(J.length===1)return T0.literal(J[0]);if(J.every((K)=>typeof K==="string"))return T0.enum(J);let Q=J.map((K)=>T0.literal(K));if(Q.length<2)return Q[0];return T0.union([Q[0],Q[1],...Q.slice(2)])}if($.const!==void 0)return T0.literal($.const);let U=$.type;if(Array.isArray(U)){let J=U.map((Q)=>{let K={...$,type:Q};return ff(K,I)});if(J.length===0)return T0.never();if(J.length===1)return J[0];return T0.union(J)}if(!U)return T0.any();let Y;switch(U){case"string":{let J=T0.string();if($.format){let Q=$.format;if(Q==="email")J=J.check(T0.email());else if(Q==="uri"||Q==="uri-reference")J=J.check(T0.url());else if(Q==="uuid"||Q==="guid")J=J.check(T0.uuid());else if(Q==="date-time")J=J.check(T0.iso.datetime());else if(Q==="date")J=J.check(T0.iso.date());else if(Q==="time")J=J.check(T0.iso.time());else if(Q==="duration")J=J.check(T0.iso.duration());else if(Q==="ipv4")J=J.check(T0.ipv4());else if(Q==="ipv6")J=J.check(T0.ipv6());else if(Q==="mac")J=J.check(T0.mac());else if(Q==="cidr")J=J.check(T0.cidrv4());else if(Q==="cidr-v6")J=J.check(T0.cidrv6());else if(Q==="base64")J=J.check(T0.base64());else if(Q==="base64url")J=J.check(T0.base64url());else if(Q==="e164")J=J.check(T0.e164());else if(Q==="jwt")J=J.check(T0.jwt());else if(Q==="emoji")J=J.check(T0.emoji());else if(Q==="nanoid")J=J.check(T0.nanoid());else if(Q==="cuid")J=J.check(T0.cuid());else if(Q==="cuid2")J=J.check(T0.cuid2());else if(Q==="ulid")J=J.check(T0.ulid());else if(Q==="xid")J=J.check(T0.xid());else if(Q==="ksuid")J=J.check(T0.ksuid())}if(typeof $.minLength==="number")J=J.min($.minLength);if(typeof $.maxLength==="number")J=J.max($.maxLength);if($.pattern)J=J.regex(new RegExp($.pattern));Y=J;break}case"number":case"integer":{let J=U==="integer"?T0.number().int():T0.number();if(typeof $.minimum==="number")J=J.min($.minimum);if(typeof $.maximum==="number")J=J.max($.maximum);if(typeof $.exclusiveMinimum==="number")J=J.gt($.exclusiveMinimum);else if($.exclusiveMinimum===!0&&typeof $.minimum==="number")J=J.gt($.minimum);if(typeof $.exclusiveMaximum==="number")J=J.lt($.exclusiveMaximum);else if($.exclusiveMaximum===!0&&typeof $.maximum==="number")J=J.lt($.maximum);if(typeof $.multipleOf==="number")J=J.multipleOf($.multipleOf);Y=J;break}case"boolean":{Y=T0.boolean();break}case"null":{Y=T0.null();break}case"object":{let J={},Q=$.properties||{},K=new Set($.required||[]);for(let[H,G]of Object.entries(Q)){let W=z6(G,I);J[H]=K.has(H)?W:W.optional()}if($.propertyNames){let H=z6($.propertyNames,I),G=$.additionalProperties&&typeof $.additionalProperties==="object"?z6($.additionalProperties,I):T0.any();if(Object.keys(J).length===0){Y=T0.record(H,G);break}let W=T0.object(J).passthrough(),w=T0.looseRecord(H,G);Y=T0.intersection(W,w);break}if($.patternProperties){let H=$.patternProperties,G=Object.keys(H),W=[];for(let Z of G){let V=z6(H[Z],I),X=T0.string().regex(new RegExp(Z));W.push(T0.looseRecord(X,V))}let w=[];if(Object.keys(J).length>0)w.push(T0.object(J).passthrough());if(w.push(...W),w.length===0)Y=T0.object({}).passthrough();else if(w.length===1)Y=w[0];else{let Z=T0.intersection(w[0],w[1]);for(let V=2;Vz6(H,I)),q=Q&&typeof Q==="object"&&!Array.isArray(Q)?z6(Q,I):void 0;if(q)Y=T0.tuple(K).rest(q);else Y=T0.tuple(K);if(typeof $.minItems==="number")Y=Y.check(T0.minLength($.minItems));if(typeof $.maxItems==="number")Y=Y.check(T0.maxLength($.maxItems))}else if(Array.isArray(Q)){let K=Q.map((H)=>z6(H,I)),q=$.additionalItems&&typeof $.additionalItems==="object"?z6($.additionalItems,I):void 0;if(q)Y=T0.tuple(K).rest(q);else Y=T0.tuple(K);if(typeof $.minItems==="number")Y=Y.check(T0.minLength($.minItems));if(typeof $.maxItems==="number")Y=Y.check(T0.maxLength($.maxItems))}else if(Q!==void 0){let K=z6(Q,I),q=T0.array(K);if(typeof $.minItems==="number")q=q.min($.minItems);if(typeof $.maxItems==="number")q=q.max($.maxItems);Y=q}else Y=T0.array(T0.any());break}default:throw Error(`Unsupported type: ${U}`)}return Y}function z6($,I){if(typeof $==="boolean")return $?T0.any():T0.never();let U=ff($,I),Y=$.type||$.enum!==void 0||$.const!==void 0;if($.anyOf&&Array.isArray($.anyOf)){let q=$.anyOf.map((G)=>z6(G,I)),H=T0.union(q);U=Y?T0.intersection(U,H):H}if($.oneOf&&Array.isArray($.oneOf)){let q=$.oneOf.map((G)=>z6(G,I)),H=T0.xor(q);U=Y?T0.intersection(U,H):H}if($.allOf&&Array.isArray($.allOf))if($.allOf.length===0)U=Y?U:T0.any();else{let q=Y?U:z6($.allOf[0],I),H=Y?0:1;for(let G=H;G<$.allOf.length;G++)q=T0.intersection(q,z6($.allOf[G],I));U=q}if($.nullable===!0&&I.version==="openapi-3.0")U=T0.nullable(U);if($.readOnly===!0)U=T0.readonly(U);if($.default!==void 0)U=U.default($.default);let J={},Q=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let q of Q)if(q in $)J[q]=$[q];let K=["contentEncoding","contentMediaType","contentSchema"];for(let q of K)if(q in $)J[q]=$[q];for(let q of Object.keys($))if(!QF0.has(q))J[q]=$[q];if(Object.keys(J).length>0)I.registry.add(U,J);if($.description)U=U.describe($.description);return U}function bf($,I){if(typeof $==="boolean")return $?T0.any():T0.never();let U;try{U=JSON.parse(JSON.stringify($))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let Y=KF0(U,I?.defaultTarget),J=U.$defs||U.definitions||{},Q={version:Y,defs:J,refs:new Map,processing:new Set,rootSchema:U,registry:I?.registry??l4};return z6(U,Q)}var mP={};$5(mP,{string:()=>HF0,number:()=>GF0,date:()=>VF0,boolean:()=>WF0,bigint:()=>wF0});function HF0($){return FM(lI,$)}function GF0($){return vM(rI,$)}function WF0($){return yM(tI,$)}function wF0($){return uM(aI,$)}function VF0($){return lM(OQ,$)}z4(QQ());var lP="2025-11-25";var nf=[lP,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],W9="io.modelcontextprotocol/related-task",RW="2.0",g4=BW(($)=>$!==null&&(typeof $==="object"||typeof $==="function")),pf=b1([q0(),L1().int()]),cf=q0(),bZ1=o4({ttl:L1().optional(),pollInterval:L1().optional()}),ZF0=E0({ttl:L1().optional()}),zF0=E0({taskId:q0()}),oP=o4({progressToken:pf.optional(),[W9]:zF0.optional()}),q$=E0({_meta:oP.optional()}),BQ=q$.extend({task:ZF0.optional()}),df=($)=>BQ.safeParse($).success,t4=E0({method:q0(),params:q$.loose().optional()}),P$=E0({_meta:oP.optional()}),T$=E0({method:q0(),params:P$.loose().optional()}),a4=o4({_meta:oP.optional()}),jW=b1([q0(),L1().int()]),mf=E0({jsonrpc:g0(RW),id:jW,...t4.shape}).strict(),rP=($)=>mf.safeParse($).success,lf=E0({jsonrpc:g0(RW),...T$.shape}).strict(),of=($)=>lf.safeParse($).success,tP=E0({jsonrpc:g0(RW),id:jW,result:a4}).strict(),vQ=($)=>tP.safeParse($).success;var K1;(function($){$[$.ConnectionClosed=-32000]="ConnectionClosed",$[$.RequestTimeout=-32001]="RequestTimeout",$[$.ParseError=-32700]="ParseError",$[$.InvalidRequest=-32600]="InvalidRequest",$[$.MethodNotFound=-32601]="MethodNotFound",$[$.InvalidParams=-32602]="InvalidParams",$[$.InternalError=-32603]="InternalError",$[$.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(K1||(K1={}));var aP=E0({jsonrpc:g0(RW),id:jW.optional(),error:E0({code:L1().int(),message:q0(),data:f1().optional()})}).strict();var rf=($)=>aP.safeParse($).success;var tf=b1([mf,lf,tP,aP]),iZ1=b1([tP,aP]),CW=a4.strict(),XF0=P$.extend({requestId:jW.optional(),reason:q0().optional()}),_W=T$.extend({method:g0("notifications/cancelled"),params:XF0}),LF0=E0({src:q0(),mimeType:q0().optional(),sizes:$1(q0()).optional(),theme:r4(["light","dark"]).optional()}),RQ=E0({icons:$1(LF0).optional()}),eI=E0({name:q0(),title:q0().optional()}),af=eI.extend({...eI.shape,...RQ.shape,version:q0(),websiteUrl:q0().optional(),description:q0().optional()}),DF0=sI(E0({applyDefaults:F4().optional()}),h1(q0(),f1())),OF0=EQ(($)=>{if($&&typeof $==="object"&&!Array.isArray($)){if(Object.keys($).length===0)return{form:{}}}return $},sI(E0({form:DF0.optional(),url:g4.optional()}),h1(q0(),f1()).optional())),FF0=o4({list:g4.optional(),cancel:g4.optional(),requests:o4({sampling:o4({createMessage:g4.optional()}).optional(),elicitation:o4({create:g4.optional()}).optional()}).optional()}),NF0=o4({list:g4.optional(),cancel:g4.optional(),requests:o4({tools:o4({call:g4.optional()}).optional()}).optional()}),MF0=E0({experimental:h1(q0(),g4).optional(),sampling:E0({context:g4.optional(),tools:g4.optional()}).optional(),elicitation:OF0.optional(),roots:E0({listChanged:F4().optional()}).optional(),tasks:FF0.optional(),extensions:h1(q0(),g4).optional()}),AF0=q$.extend({protocolVersion:q0(),capabilities:MF0,clientInfo:af}),sP=t4.extend({method:g0("initialize"),params:AF0});var PF0=E0({experimental:h1(q0(),g4).optional(),logging:g4.optional(),completions:g4.optional(),prompts:E0({listChanged:F4().optional()}).optional(),resources:E0({subscribe:F4().optional(),listChanged:F4().optional()}).optional(),tools:E0({listChanged:F4().optional()}).optional(),tasks:NF0.optional(),extensions:h1(q0(),g4).optional()}),TF0=a4.extend({protocolVersion:q0(),capabilities:PF0,serverInfo:af,instructions:q0().optional()}),eP=T$.extend({method:g0("notifications/initialized"),params:P$.optional()});var SW=t4.extend({method:g0("ping"),params:q$.optional()}),EF0=E0({progress:L1(),total:p1(L1()),message:p1(q0())}),BF0=E0({...P$.shape,...EF0.shape,progressToken:pf}),gW=T$.extend({method:g0("notifications/progress"),params:BF0}),vF0=q$.extend({cursor:cf.optional()}),jQ=t4.extend({params:vF0.optional()}),CQ=a4.extend({nextCursor:cf.optional()}),RF0=r4(["working","input_required","completed","failed","cancelled"]),_Q=E0({taskId:q0(),status:RF0,ttl:b1([L1(),DQ()]),createdAt:q0(),lastUpdatedAt:q0(),pollInterval:p1(L1()),statusMessage:p1(q0())}),$U=a4.extend({task:_Q}),jF0=P$.merge(_Q),SQ=T$.extend({method:g0("notifications/tasks/status"),params:jF0}),yW=t4.extend({method:g0("tasks/get"),params:q$.extend({taskId:q0()})}),hW=a4.merge(_Q),uW=t4.extend({method:g0("tasks/result"),params:q$.extend({taskId:q0()})}),nZ1=a4.loose(),xW=jQ.extend({method:g0("tasks/list")}),kW=CQ.extend({tasks:$1(_Q)}),fW=t4.extend({method:g0("tasks/cancel"),params:q$.extend({taskId:q0()})}),sf=a4.merge(_Q),ef=E0({uri:q0(),mimeType:p1(q0()),_meta:h1(q0(),f1()).optional()}),$b=ef.extend({text:q0()}),$T=q0().refine(($)=>{try{return atob($),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ib=ef.extend({blob:$T}),gQ=r4(["user","assistant"]),IU=E0({audience:$1(gQ).optional(),priority:L1().min(0).max(1).optional(),lastModified:G9.datetime({offset:!0}).optional()}),Ub=E0({...eI.shape,...RQ.shape,uri:q0(),description:p1(q0()),mimeType:p1(q0()),size:p1(L1()),annotations:IU.optional(),_meta:p1(o4({}))}),CF0=E0({...eI.shape,...RQ.shape,uriTemplate:q0(),description:p1(q0()),mimeType:p1(q0()),annotations:IU.optional(),_meta:p1(o4({}))}),_F0=jQ.extend({method:g0("resources/list")}),SF0=CQ.extend({resources:$1(Ub)}),gF0=jQ.extend({method:g0("resources/templates/list")}),yF0=CQ.extend({resourceTemplates:$1(CF0)}),IT=q$.extend({uri:q0()}),hF0=IT,uF0=t4.extend({method:g0("resources/read"),params:hF0}),xF0=a4.extend({contents:$1(b1([$b,Ib]))}),kF0=T$.extend({method:g0("notifications/resources/list_changed"),params:P$.optional()}),fF0=IT,bF0=t4.extend({method:g0("resources/subscribe"),params:fF0}),iF0=IT,nF0=t4.extend({method:g0("resources/unsubscribe"),params:iF0}),pF0=P$.extend({uri:q0()}),cF0=T$.extend({method:g0("notifications/resources/updated"),params:pF0}),dF0=E0({name:q0(),description:p1(q0()),required:p1(F4())}),mF0=E0({...eI.shape,...RQ.shape,description:p1(q0()),arguments:p1($1(dF0)),_meta:p1(o4({}))}),lF0=jQ.extend({method:g0("prompts/list")}),oF0=CQ.extend({prompts:$1(mF0)}),rF0=q$.extend({name:q0(),arguments:h1(q0(),q0()).optional()}),tF0=t4.extend({method:g0("prompts/get"),params:rF0}),UT=E0({type:g0("text"),text:q0(),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),YT=E0({type:g0("image"),data:$T,mimeType:q0(),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),JT=E0({type:g0("audio"),data:$T,mimeType:q0(),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),aF0=E0({type:g0("tool_use"),name:q0(),id:q0(),input:h1(q0(),f1()),_meta:h1(q0(),f1()).optional()}),sF0=E0({type:g0("resource"),resource:b1([$b,Ib]),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),eF0=Ub.extend({type:g0("resource_link")}),QT=b1([UT,YT,JT,eF0,sF0]),$N0=E0({role:gQ,content:QT}),IN0=a4.extend({description:q0().optional(),messages:$1($N0)}),UN0=T$.extend({method:g0("notifications/prompts/list_changed"),params:P$.optional()}),YN0=E0({title:q0().optional(),readOnlyHint:F4().optional(),destructiveHint:F4().optional(),idempotentHint:F4().optional(),openWorldHint:F4().optional()}),JN0=E0({taskSupport:r4(["required","optional","forbidden"]).optional()}),Yb=E0({...eI.shape,...RQ.shape,description:q0().optional(),inputSchema:E0({type:g0("object"),properties:h1(q0(),g4).optional(),required:$1(q0()).optional()}).catchall(f1()),outputSchema:E0({type:g0("object"),properties:h1(q0(),g4).optional(),required:$1(q0()).optional()}).catchall(f1()).optional(),annotations:YN0.optional(),execution:JN0.optional(),_meta:h1(q0(),f1()).optional()}),KT=jQ.extend({method:g0("tools/list")}),QN0=CQ.extend({tools:$1(Yb)}),bW=a4.extend({content:$1(QT).default([]),structuredContent:h1(q0(),f1()).optional(),isError:F4().optional()}),pZ1=bW.or(a4.extend({toolResult:f1()})),KN0=BQ.extend({name:q0(),arguments:h1(q0(),f1()).optional()}),yQ=t4.extend({method:g0("tools/call"),params:KN0}),qN0=T$.extend({method:g0("notifications/tools/list_changed"),params:P$.optional()}),cZ1=E0({autoRefresh:F4().default(!0),debounceMs:L1().int().nonnegative().default(300)}),hQ=r4(["debug","info","notice","warning","error","critical","alert","emergency"]),HN0=q$.extend({level:hQ}),qT=t4.extend({method:g0("logging/setLevel"),params:HN0}),GN0=P$.extend({level:hQ,logger:q0().optional(),data:f1()}),WN0=T$.extend({method:g0("notifications/message"),params:GN0}),wN0=E0({name:q0().optional()}),VN0=E0({hints:$1(wN0).optional(),costPriority:L1().min(0).max(1).optional(),speedPriority:L1().min(0).max(1).optional(),intelligencePriority:L1().min(0).max(1).optional()}),ZN0=E0({mode:r4(["auto","required","none"]).optional()}),zN0=E0({type:g0("tool_result"),toolUseId:q0().describe("The unique identifier for the corresponding tool call."),content:$1(QT).default([]),structuredContent:E0({}).loose().optional(),isError:F4().optional(),_meta:h1(q0(),f1()).optional()}),XN0=MQ("type",[UT,YT,JT]),vW=MQ("type",[UT,YT,JT,aF0,zN0]),LN0=E0({role:gQ,content:b1([vW,$1(vW)]),_meta:h1(q0(),f1()).optional()}),DN0=BQ.extend({messages:$1(LN0),modelPreferences:VN0.optional(),systemPrompt:q0().optional(),includeContext:r4(["none","thisServer","allServers"]).optional(),temperature:L1().optional(),maxTokens:L1().int(),stopSequences:$1(q0()).optional(),metadata:g4.optional(),tools:$1(Yb).optional(),toolChoice:ZN0.optional()}),ON0=t4.extend({method:g0("sampling/createMessage"),params:DN0}),uQ=a4.extend({model:q0(),stopReason:p1(r4(["endTurn","stopSequence","maxTokens"]).or(q0())),role:gQ,content:XN0}),HT=a4.extend({model:q0(),stopReason:p1(r4(["endTurn","stopSequence","maxTokens","toolUse"]).or(q0())),role:gQ,content:b1([vW,$1(vW)])}),FN0=E0({type:g0("boolean"),title:q0().optional(),description:q0().optional(),default:F4().optional()}),NN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),minLength:L1().optional(),maxLength:L1().optional(),format:r4(["email","uri","date","date-time"]).optional(),default:q0().optional()}),MN0=E0({type:r4(["number","integer"]),title:q0().optional(),description:q0().optional(),minimum:L1().optional(),maximum:L1().optional(),default:L1().optional()}),AN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),enum:$1(q0()),default:q0().optional()}),PN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),oneOf:$1(E0({const:q0(),title:q0()})),default:q0().optional()}),TN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),enum:$1(q0()),enumNames:$1(q0()).optional(),default:q0().optional()}),EN0=b1([AN0,PN0]),BN0=E0({type:g0("array"),title:q0().optional(),description:q0().optional(),minItems:L1().optional(),maxItems:L1().optional(),items:E0({type:g0("string"),enum:$1(q0())}),default:$1(q0()).optional()}),vN0=E0({type:g0("array"),title:q0().optional(),description:q0().optional(),minItems:L1().optional(),maxItems:L1().optional(),items:E0({anyOf:$1(E0({const:q0(),title:q0()}))}),default:$1(q0()).optional()}),RN0=b1([BN0,vN0]),jN0=b1([TN0,EN0,RN0]),CN0=b1([jN0,FN0,NN0,MN0]),_N0=BQ.extend({mode:g0("form").optional(),message:q0(),requestedSchema:E0({type:g0("object"),properties:h1(q0(),CN0),required:$1(q0()).optional()})}),SN0=BQ.extend({mode:g0("url"),message:q0(),elicitationId:q0(),url:q0().url()}),gN0=b1([_N0,SN0]),yN0=t4.extend({method:g0("elicitation/create"),params:gN0}),hN0=P$.extend({elicitationId:q0()}),uN0=T$.extend({method:g0("notifications/elicitation/complete"),params:hN0}),UU=a4.extend({action:r4(["accept","decline","cancel"]),content:EQ(($)=>$===null?void 0:$,h1(q0(),b1([q0(),L1(),F4(),$1(q0())])).optional())}),xN0=E0({type:g0("ref/resource"),uri:q0()});var kN0=E0({type:g0("ref/prompt"),name:q0()}),fN0=q$.extend({ref:b1([kN0,xN0]),argument:E0({name:q0(),value:q0()}),context:E0({arguments:h1(q0(),q0()).optional()}).optional()}),bN0=t4.extend({method:g0("completion/complete"),params:fN0});var iN0=a4.extend({completion:o4({values:$1(q0()).max(100),total:p1(L1().int()),hasMore:p1(F4())})}),nN0=E0({uri:q0().startsWith("file://"),name:q0().optional(),_meta:h1(q0(),f1()).optional()}),pN0=t4.extend({method:g0("roots/list"),params:q$.optional()}),GT=a4.extend({roots:$1(nN0)}),cN0=T$.extend({method:g0("notifications/roots/list_changed"),params:P$.optional()}),dZ1=b1([SW,sP,bN0,qT,tF0,lF0,_F0,gF0,uF0,bF0,nF0,yQ,KT,yW,uW,xW,fW]),mZ1=b1([_W,gW,eP,cN0,SQ]),lZ1=b1([CW,uQ,HT,UU,GT,hW,kW,$U]),oZ1=b1([SW,ON0,yN0,pN0,yW,uW,xW,fW]),rZ1=b1([_W,gW,WN0,cF0,kF0,qN0,UN0,SQ,uN0]),tZ1=b1([CW,TF0,iN0,IN0,oF0,SF0,yF0,xF0,bW,QN0,hW,kW,$U]);class r0 extends Error{constructor($,I,U){super(`MCP error ${$}: ${I}`);this.code=$,this.data=U,this.name="McpError"}static fromError($,I,U){if($===K1.UrlElicitationRequired&&U){let Y=U;if(Y.elicitations)return new Jb(Y.elicitations,I)}return new r0($,I,U)}}class Jb extends r0{constructor($,I=`URL elicitation${$.length>1?"s":""} required`){super(K1.UrlElicitationRequired,I,{elicitations:$})}get elicitations(){return this.data?.elicitations??[]}}function w9($){return $==="completed"||$==="failed"||$==="cancelled"}var dN0=Symbol("Let zodToJsonSchema decide on which parser to use");var jz1=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function WT($){let U=tG($)?.method;if(!U)throw Error("Schema is missing a method literal");let Y=vk(U);if(typeof Y!=="string")throw Error("Schema method literal must be a string");return Y}function wT($,I){let U=H9($,I);if(!U.success)throw U.error;return U.data}var aN0=60000;class VT{constructor($){if(this._options=$,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(_W,(I)=>{this._oncancel(I)}),this.setNotificationHandler(gW,(I)=>{this._onprogress(I)}),this.setRequestHandler(SW,(I)=>({})),this._taskStore=$?.taskStore,this._taskMessageQueue=$?.taskMessageQueue,this._taskStore)this.setRequestHandler(yW,async(I,U)=>{let Y=await this._taskStore.getTask(I.params.taskId,U.sessionId);if(!Y)throw new r0(K1.InvalidParams,"Failed to retrieve task: Task not found");return{...Y}}),this.setRequestHandler(uW,async(I,U)=>{let Y=async()=>{let J=I.params.taskId;if(this._taskMessageQueue){let K;while(K=await this._taskMessageQueue.dequeue(J,U.sessionId)){if(K.type==="response"||K.type==="error"){let q=K.message,H=q.id,G=this._requestResolvers.get(H);if(G)if(this._requestResolvers.delete(H),K.type==="response")G(q);else{let W=q,w=new r0(W.error.code,W.error.message,W.error.data);G(w)}else{let W=K.type==="response"?"Response":"Error";this._onerror(Error(`${W} handler missing for request ${H}`))}continue}await this._transport?.send(K.message,{relatedRequestId:U.requestId})}}let Q=await this._taskStore.getTask(J,U.sessionId);if(!Q)throw new r0(K1.InvalidParams,`Task not found: ${J}`);if(!w9(Q.status))return await this._waitForTaskUpdate(J,U.signal),await Y();if(w9(Q.status)){let K=await this._taskStore.getTaskResult(J,U.sessionId);return this._clearTaskQueue(J),{...K,_meta:{...K._meta,[W9]:{taskId:J}}}}return await Y()};return await Y()}),this.setRequestHandler(xW,async(I,U)=>{try{let{tasks:Y,nextCursor:J}=await this._taskStore.listTasks(I.params?.cursor,U.sessionId);return{tasks:Y,nextCursor:J,_meta:{}}}catch(Y){throw new r0(K1.InvalidParams,`Failed to list tasks: ${Y instanceof Error?Y.message:String(Y)}`)}}),this.setRequestHandler(fW,async(I,U)=>{try{let Y=await this._taskStore.getTask(I.params.taskId,U.sessionId);if(!Y)throw new r0(K1.InvalidParams,`Task not found: ${I.params.taskId}`);if(w9(Y.status))throw new r0(K1.InvalidParams,`Cannot cancel task in terminal status: ${Y.status}`);await this._taskStore.updateTaskStatus(I.params.taskId,"cancelled","Client cancelled task execution.",U.sessionId),this._clearTaskQueue(I.params.taskId);let J=await this._taskStore.getTask(I.params.taskId,U.sessionId);if(!J)throw new r0(K1.InvalidParams,`Task not found after cancellation: ${I.params.taskId}`);return{_meta:{},...J}}catch(Y){if(Y instanceof r0)throw Y;throw new r0(K1.InvalidRequest,`Failed to cancel task: ${Y instanceof Error?Y.message:String(Y)}`)}})}async _oncancel($){if(!$.params.requestId)return;this._requestHandlerAbortControllers.get($.params.requestId)?.abort($.params.reason)}_setupTimeout($,I,U,Y,J=!1){this._timeoutInfo.set($,{timeoutId:setTimeout(Y,I),startTime:Date.now(),timeout:I,maxTotalTimeout:U,resetTimeoutOnProgress:J,onTimeout:Y})}_resetTimeout($){let I=this._timeoutInfo.get($);if(!I)return!1;let U=Date.now()-I.startTime;if(I.maxTotalTimeout&&U>=I.maxTotalTimeout)throw this._timeoutInfo.delete($),r0.fromError(K1.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:I.maxTotalTimeout,totalElapsed:U});return clearTimeout(I.timeoutId),I.timeoutId=setTimeout(I.onTimeout,I.timeout),!0}_cleanupTimeout($){let I=this._timeoutInfo.get($);if(I)clearTimeout(I.timeoutId),this._timeoutInfo.delete($)}async connect($){if(this._transport)throw Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=$;let I=this.transport?.onclose;this._transport.onclose=()=>{I?.(),this._onclose()};let U=this.transport?.onerror;this._transport.onerror=(J)=>{U?.(J),this._onerror(J)};let Y=this._transport?.onmessage;this._transport.onmessage=(J,Q)=>{if(Y?.(J,Q),vQ(J)||rf(J))this._onresponse(J);else if(rP(J))this._onrequest(J,Q);else if(of(J))this._onnotification(J);else this._onerror(Error(`Unknown message type: ${JSON.stringify(J)}`))},await this._transport.start()}_onclose(){let $=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let U of this._timeoutInfo.values())clearTimeout(U.timeoutId);this._timeoutInfo.clear();for(let U of this._requestHandlerAbortControllers.values())U.abort();this._requestHandlerAbortControllers.clear();let I=r0.fromError(K1.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let U of $.values())U(I)}_onerror($){this.onerror?.($)}_onnotification($){let I=this._notificationHandlers.get($.method)??this.fallbackNotificationHandler;if(I===void 0)return;Promise.resolve().then(()=>I($)).catch((U)=>this._onerror(Error(`Uncaught error in notification handler: ${U}`)))}_onrequest($,I){let U=this._requestHandlers.get($.method)??this.fallbackRequestHandler,Y=this._transport,J=$.params?._meta?.[W9]?.taskId;if(U===void 0){let G={jsonrpc:"2.0",id:$.id,error:{code:K1.MethodNotFound,message:"Method not found"}};if(J&&this._taskMessageQueue)this._enqueueTaskMessage(J,{type:"error",message:G,timestamp:Date.now()},Y?.sessionId).catch((W)=>this._onerror(Error(`Failed to enqueue error response: ${W}`)));else Y?.send(G).catch((W)=>this._onerror(Error(`Failed to send an error response: ${W}`)));return}let Q=new AbortController;this._requestHandlerAbortControllers.set($.id,Q);let K=df($.params)?$.params.task:void 0,q=this._taskStore?this.requestTaskStore($,Y?.sessionId):void 0,H={signal:Q.signal,sessionId:Y?.sessionId,_meta:$.params?._meta,sendNotification:async(G)=>{if(Q.signal.aborted)return;let W={relatedRequestId:$.id};if(J)W.relatedTask={taskId:J};await this.notification(G,W)},sendRequest:async(G,W,w)=>{if(Q.signal.aborted)throw new r0(K1.ConnectionClosed,"Request was cancelled");let Z={...w,relatedRequestId:$.id};if(J&&!Z.relatedTask)Z.relatedTask={taskId:J};let V=Z.relatedTask?.taskId??J;if(V&&q)await q.updateTaskStatus(V,"input_required");return await this.request(G,W,Z)},authInfo:I?.authInfo,requestId:$.id,requestInfo:I?.requestInfo,taskId:J,taskStore:q,taskRequestedTtl:K?.ttl,closeSSEStream:I?.closeSSEStream,closeStandaloneSSEStream:I?.closeStandaloneSSEStream};Promise.resolve().then(()=>{if(K)this.assertTaskHandlerCapability($.method)}).then(()=>U($,H)).then(async(G)=>{if(Q.signal.aborted)return;let W={result:G,jsonrpc:"2.0",id:$.id};if(J&&this._taskMessageQueue)await this._enqueueTaskMessage(J,{type:"response",message:W,timestamp:Date.now()},Y?.sessionId);else await Y?.send(W)},async(G)=>{if(Q.signal.aborted)return;let W={jsonrpc:"2.0",id:$.id,error:{code:Number.isSafeInteger(G.code)?G.code:K1.InternalError,message:G.message??"Internal error",...G.data!==void 0&&{data:G.data}}};if(J&&this._taskMessageQueue)await this._enqueueTaskMessage(J,{type:"error",message:W,timestamp:Date.now()},Y?.sessionId);else await Y?.send(W)}).catch((G)=>this._onerror(Error(`Failed to send response: ${G}`))).finally(()=>{if(this._requestHandlerAbortControllers.get($.id)===Q)this._requestHandlerAbortControllers.delete($.id)})}_onprogress($){let{progressToken:I,...U}=$.params,Y=Number(I),J=this._progressHandlers.get(Y);if(!J){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify($)}`));return}let Q=this._responseHandlers.get(Y),K=this._timeoutInfo.get(Y);if(K&&Q&&K.resetTimeoutOnProgress)try{this._resetTimeout(Y)}catch(q){this._responseHandlers.delete(Y),this._progressHandlers.delete(Y),this._cleanupTimeout(Y),Q(q);return}J(U)}_onresponse($){let I=Number($.id),U=this._requestResolvers.get(I);if(U){if(this._requestResolvers.delete(I),vQ($))U($);else{let Q=new r0($.error.code,$.error.message,$.error.data);U(Q)}return}let Y=this._responseHandlers.get(I);if(Y===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify($)}`));return}this._responseHandlers.delete(I),this._cleanupTimeout(I);let J=!1;if(vQ($)&&$.result&&typeof $.result==="object"){let Q=$.result;if(Q.task&&typeof Q.task==="object"){let K=Q.task;if(typeof K.taskId==="string")J=!0,this._taskProgressTokens.set(K.taskId,I)}}if(!J)this._progressHandlers.delete(I);if(vQ($))Y($);else{let Q=r0.fromError($.error.code,$.error.message,$.error.data);Y(Q)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream($,I,U){let{task:Y}=U??{};if(!Y){try{yield{type:"result",result:await this.request($,I,U)}}catch(Q){yield{type:"error",error:Q instanceof r0?Q:new r0(K1.InternalError,String(Q))}}return}let J;try{let Q=await this.request($,$U,U);if(Q.task)J=Q.task.taskId,yield{type:"taskCreated",task:Q.task};else throw new r0(K1.InternalError,"Task creation did not return a task");while(!0){let K=await this.getTask({taskId:J},U);if(yield{type:"taskStatus",task:K},w9(K.status)){if(K.status==="completed")yield{type:"result",result:await this.getTaskResult({taskId:J},I,U)};else if(K.status==="failed")yield{type:"error",error:new r0(K1.InternalError,`Task ${J} failed`)};else if(K.status==="cancelled")yield{type:"error",error:new r0(K1.InternalError,`Task ${J} was cancelled`)};return}if(K.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:J},I,U)};return}let q=K.pollInterval??this._options?.defaultTaskPollInterval??1000;await new Promise((H)=>setTimeout(H,q)),U?.signal?.throwIfAborted()}}catch(Q){yield{type:"error",error:Q instanceof r0?Q:new r0(K1.InternalError,String(Q))}}}request($,I,U){let{relatedRequestId:Y,resumptionToken:J,onresumptiontoken:Q,task:K,relatedTask:q}=U??{};return new Promise((H,G)=>{let W=(F)=>{G(F)};if(!this._transport){W(Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{if(this.assertCapabilityForMethod($.method),K)this.assertTaskCapability($.method)}catch(F){W(F);return}U?.signal?.throwIfAborted();let w=this._requestMessageId++,Z={...$,jsonrpc:"2.0",id:w};if(U?.onprogress)this._progressHandlers.set(w,U.onprogress),Z.params={...$.params,_meta:{...$.params?._meta||{},progressToken:w}};if(K)Z.params={...Z.params,task:K};if(q)Z.params={...Z.params,_meta:{...Z.params?._meta||{},[W9]:q}};let V=(F)=>{this._responseHandlers.delete(w),this._progressHandlers.delete(w),this._cleanupTimeout(w),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:w,reason:String(F)}},{relatedRequestId:Y,resumptionToken:J,onresumptiontoken:Q}).catch((E)=>this._onerror(Error(`Failed to send cancellation: ${E}`)));let P=F instanceof r0?F:new r0(K1.RequestTimeout,String(F));G(P)};this._responseHandlers.set(w,(F)=>{if(U?.signal?.aborted)return;if(F instanceof Error)return G(F);try{let P=H9(I,F.result);if(!P.success)G(P.error);else H(P.data)}catch(P){G(P)}}),U?.signal?.addEventListener("abort",()=>{V(U?.signal?.reason)});let X=U?.timeout??aN0,L=()=>V(r0.fromError(K1.RequestTimeout,"Request timed out",{timeout:X}));this._setupTimeout(w,X,U?.maxTotalTimeout,L,U?.resetTimeoutOnProgress??!1);let D=q?.taskId;if(D){let F=(P)=>{let E=this._responseHandlers.get(w);if(E)E(P);else this._onerror(Error(`Response handler missing for side-channeled request ${w}`))};this._requestResolvers.set(w,F),this._enqueueTaskMessage(D,{type:"request",message:Z,timestamp:Date.now()}).catch((P)=>{this._cleanupTimeout(w),G(P)})}else this._transport.send(Z,{relatedRequestId:Y,resumptionToken:J,onresumptiontoken:Q}).catch((F)=>{this._cleanupTimeout(w),G(F)})})}async getTask($,I){return this.request({method:"tasks/get",params:$},hW,I)}async getTaskResult($,I,U){return this.request({method:"tasks/result",params:$},I,U)}async listTasks($,I){return this.request({method:"tasks/list",params:$},kW,I)}async cancelTask($,I){return this.request({method:"tasks/cancel",params:$},sf,I)}async notification($,I){if(!this._transport)throw Error("Not connected");this.assertNotificationCapability($.method);let U=I?.relatedTask?.taskId;if(U){let K={...$,jsonrpc:"2.0",params:{...$.params,_meta:{...$.params?._meta||{},[W9]:I.relatedTask}}};await this._enqueueTaskMessage(U,{type:"notification",message:K,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes($.method)&&!$.params&&!I?.relatedRequestId&&!I?.relatedTask){if(this._pendingDebouncedNotifications.has($.method))return;this._pendingDebouncedNotifications.add($.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete($.method),!this._transport)return;let K={...$,jsonrpc:"2.0"};if(I?.relatedTask)K={...K,params:{...K.params,_meta:{...K.params?._meta||{},[W9]:I.relatedTask}}};this._transport?.send(K,I).catch((q)=>this._onerror(q))});return}let Q={...$,jsonrpc:"2.0"};if(I?.relatedTask)Q={...Q,params:{...Q.params,_meta:{...Q.params?._meta||{},[W9]:I.relatedTask}}};await this._transport.send(Q,I)}setRequestHandler($,I){let U=WT($);this.assertRequestHandlerCapability(U),this._requestHandlers.set(U,(Y,J)=>{let Q=wT($,Y);return Promise.resolve(I(Q,J))})}removeRequestHandler($){this._requestHandlers.delete($)}assertCanSetRequestHandler($){if(this._requestHandlers.has($))throw Error(`A request handler for ${$} already exists, which would be overridden`)}setNotificationHandler($,I){let U=WT($);this._notificationHandlers.set(U,(Y)=>{let J=wT($,Y);return Promise.resolve(I(J))})}removeNotificationHandler($){this._notificationHandlers.delete($)}_cleanupTaskProgressHandler($){let I=this._taskProgressTokens.get($);if(I!==void 0)this._progressHandlers.delete(I),this._taskProgressTokens.delete($)}async _enqueueTaskMessage($,I,U){if(!this._taskStore||!this._taskMessageQueue)throw Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let Y=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue($,I,U,Y)}async _clearTaskQueue($,I){if(this._taskMessageQueue){let U=await this._taskMessageQueue.dequeueAll($,I);for(let Y of U)if(Y.type==="request"&&rP(Y.message)){let J=Y.message.id,Q=this._requestResolvers.get(J);if(Q)Q(new r0(K1.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(J);else this._onerror(Error(`Resolver missing for request ${J} during task ${$} cleanup`))}}}async _waitForTaskUpdate($,I){let U=this._options?.defaultTaskPollInterval??1000;try{let Y=await this._taskStore?.getTask($);if(Y?.pollInterval)U=Y.pollInterval}catch{}return new Promise((Y,J)=>{if(I.aborted){J(new r0(K1.InvalidRequest,"Request cancelled"));return}let Q=setTimeout(Y,U);I.addEventListener("abort",()=>{clearTimeout(Q),J(new r0(K1.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore($,I){let U=this._taskStore;if(!U)throw Error("No task store configured");return{createTask:async(Y)=>{if(!$)throw Error("No request provided");return await U.createTask(Y,$.id,{method:$.method,params:$.params},I)},getTask:async(Y)=>{let J=await U.getTask(Y,I);if(!J)throw new r0(K1.InvalidParams,"Failed to retrieve task: Task not found");return J},storeTaskResult:async(Y,J,Q)=>{await U.storeTaskResult(Y,J,Q,I);let K=await U.getTask(Y,I);if(K){let q=SQ.parse({method:"notifications/tasks/status",params:K});if(await this.notification(q),w9(K.status))this._cleanupTaskProgressHandler(Y)}},getTaskResult:(Y)=>{return U.getTaskResult(Y,I)},updateTaskStatus:async(Y,J,Q)=>{let K=await U.getTask(Y,I);if(!K)throw new r0(K1.InvalidParams,`Task "${Y}" not found - it may have been cleaned up`);if(w9(K.status))throw new r0(K1.InvalidParams,`Cannot update task "${Y}" from terminal status "${K.status}" to "${J}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await U.updateTaskStatus(Y,J,Q,I);let q=await U.getTask(Y,I);if(q){let H=SQ.parse({method:"notifications/tasks/status",params:q});if(await this.notification(H),w9(q.status))this._cleanupTaskProgressHandler(Y)}},listTasks:(Y)=>{return U.listTasks(Y,I)}}}}function Qb($){return $!==null&&typeof $==="object"&&!Array.isArray($)}function Kb($,I){let U={...$};for(let Y in I){let J=Y,Q=I[J];if(Q===void 0)continue;let K=U[J];if(Qb(K)&&Qb(Q))U[J]={...K,...Q};else U[J]=Q}return U}var pc=FI(qE(),1),cc=FI(nc(),1);function Fj0(){let $=new pc.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return cc.default($),$}class DE{constructor($){this._ajv=$??Fj0()}getValidator($){let I="$id"in $&&typeof $.$id==="string"?this._ajv.getSchema($.$id)??this._ajv.compile($):this._ajv.compile($);return(U)=>{if(I(U))return{valid:!0,data:U,errorMessage:void 0};else return{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(I.errors)}}}}class OE{constructor($){this._server=$}requestStream($,I,U){return this._server.requestStream($,I,U)}createMessageStream($,I){let U=this._server.getClientCapabilities();if(($.tools||$.toolChoice)&&!U?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if($.messages.length>0){let Y=$.messages[$.messages.length-1],J=Array.isArray(Y.content)?Y.content:[Y.content],Q=J.some((G)=>G.type==="tool_result"),K=$.messages.length>1?$.messages[$.messages.length-2]:void 0,q=K?Array.isArray(K.content)?K.content:[K.content]:[],H=q.some((G)=>G.type==="tool_use");if(Q){if(J.some((G)=>G.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!H)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(H){let G=new Set(q.filter((w)=>w.type==="tool_use").map((w)=>w.id)),W=new Set(J.filter((w)=>w.type==="tool_result").map((w)=>w.toolUseId));if(G.size!==W.size||![...G].every((w)=>W.has(w)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:$},uQ,I)}elicitInputStream($,I){let U=this._server.getClientCapabilities(),Y=$.mode??"form";switch(Y){case"url":{if(!U?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!U?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let J=Y==="form"&&$.mode===void 0?{...$,mode:"form"}:$;return this.requestStream({method:"elicitation/create",params:J},UU,I)}async getTask($,I){return this._server.getTask({taskId:$},I)}async getTaskResult($,I,U){return this._server.getTaskResult({taskId:$},I,U)}async listTasks($,I){return this._server.listTasks($?{cursor:$}:void 0,I)}async cancelTask($,I){return this._server.cancelTask({taskId:$},I)}}function dc($,I,U){if(!$)throw Error(`${U} does not support task creation (required for ${I})`);switch(I){case"tools/call":if(!$.tools?.call)throw Error(`${U} does not support task creation for tools/call (required for ${I})`);break;default:break}}function mc($,I,U){if(!$)throw Error(`${U} does not support task creation (required for ${I})`);switch(I){case"sampling/createMessage":if(!$.sampling?.createMessage)throw Error(`${U} does not support task creation for sampling/createMessage (required for ${I})`);break;case"elicitation/create":if(!$.elicitation?.create)throw Error(`${U} does not support task creation for elicitation/create (required for ${I})`);break;default:break}}class FE extends VT{constructor($,I){super(I);if(this._serverInfo=$,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(hQ.options.map((U,Y)=>[U,Y])),this.isMessageIgnored=(U,Y)=>{let J=this._loggingLevels.get(Y);return J?this.LOG_LEVEL_SEVERITY.get(U)this._oninitialize(U)),this.setNotificationHandler(eP,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(qT,async(U,Y)=>{let J=Y.sessionId||Y.requestInfo?.headers["mcp-session-id"]||void 0,{level:Q}=U.params,K=hQ.safeParse(Q);if(K.success)this._loggingLevels.set(J,K.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new OE(this)};return this._experimental}registerCapabilities($){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=Kb(this._capabilities,$)}setRequestHandler($,I){let Y=tG($)?.method;if(!Y)throw Error("Schema is missing a method literal");let J;if(cI(Y)){let K=Y;J=K._zod?.def?.value??K.value}else{let K=Y;J=K._def?.value??K.value}if(typeof J!=="string")throw Error("Schema method literal must be a string");if(J==="tools/call"){let K=async(q,H)=>{let G=H9(yQ,q);if(!G.success){let V=G.error instanceof Error?G.error.message:String(G.error);throw new r0(K1.InvalidParams,`Invalid tools/call request: ${V}`)}let{params:W}=G.data,w=await Promise.resolve(I(q,H));if(W.task){let V=H9($U,w);if(!V.success){let X=V.error instanceof Error?V.error.message:String(V.error);throw new r0(K1.InvalidParams,`Invalid task creation result: ${X}`)}return V.data}let Z=H9(bW,w);if(!Z.success){let V=Z.error instanceof Error?Z.error.message:String(Z.error);throw new r0(K1.InvalidParams,`Invalid tools/call result: ${V}`)}return Z.data};return super.setRequestHandler($,K)}return super.setRequestHandler($,I)}assertCapabilityForMethod($){switch($){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${$})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${$})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${$})`);break;case"ping":break}}assertNotificationCapability($){switch($){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${$})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${$})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${$})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${$})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${$})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability($){if(!this._capabilities)return;switch($){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${$})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${$})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${$})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${$})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${$})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${$})`);break;case"ping":case"initialize":break}}assertTaskCapability($){mc(this._clientCapabilities?.tasks?.requests,$,"Client")}assertTaskHandlerCapability($){if(!this._capabilities)return;dc(this._capabilities.tasks?.requests,$,"Server")}async _oninitialize($){let I=$.params.protocolVersion;return this._clientCapabilities=$.params.capabilities,this._clientVersion=$.params.clientInfo,{protocolVersion:nf.includes(I)?I:lP,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},CW)}async createMessage($,I){if($.tools||$.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if($.messages.length>0){let U=$.messages[$.messages.length-1],Y=Array.isArray(U.content)?U.content:[U.content],J=Y.some((H)=>H.type==="tool_result"),Q=$.messages.length>1?$.messages[$.messages.length-2]:void 0,K=Q?Array.isArray(Q.content)?Q.content:[Q.content]:[],q=K.some((H)=>H.type==="tool_use");if(J){if(Y.some((H)=>H.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!q)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(q){let H=new Set(K.filter((W)=>W.type==="tool_use").map((W)=>W.id)),G=new Set(Y.filter((W)=>W.type==="tool_result").map((W)=>W.toolUseId));if(H.size!==G.size||![...H].every((W)=>G.has(W)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if($.tools)return this.request({method:"sampling/createMessage",params:$},HT,I);return this.request({method:"sampling/createMessage",params:$},uQ,I)}async elicitInput($,I){switch($.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Y=$;return this.request({method:"elicitation/create",params:Y},UU,I)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Y=$.mode==="form"?$:{...$,mode:"form"},J=await this.request({method:"elicitation/create",params:Y},UU,I);if(J.action==="accept"&&J.content&&Y.requestedSchema)try{let K=this._jsonSchemaValidator.getValidator(Y.requestedSchema)(J.content);if(!K.valid)throw new r0(K1.InvalidParams,`Elicitation response content does not match requested schema: ${K.errorMessage}`)}catch(Q){if(Q instanceof r0)throw Q;throw new r0(K1.InternalError,`Error validating elicitation response: ${Q instanceof Error?Q.message:String(Q)}`)}return J}}}createElicitationCompletionNotifier($,I){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:$}},I)}async listRoots($,I){return this.request({method:"roots/list",params:$},GT,I)}async sendLoggingMessage($,I){if(this._capabilities.logging){if(!this.isMessageIgnored($.level,I))return this.notification({method:"notifications/message",params:$})}}async sendResourceUpdated($){return this.notification({method:"notifications/resources/updated",params:$})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}import oc from"node:process";class NE{append($){this._buffer=this._buffer?Buffer.concat([this._buffer,$]):$}readMessage(){if(!this._buffer)return null;let $=this._buffer.indexOf(` -`);if($===-1)return null;let I=this._buffer.toString("utf8",0,$).replace(/\r$/,"");return this._buffer=this._buffer.subarray($+1),Nj0(I)}clear(){this._buffer=void 0}}function Nj0($){return tf.parse(JSON.parse($))}function lc($){return JSON.stringify($)+` -`}class ME{constructor($=oc.stdin,I=oc.stdout){this._stdin=$,this._stdout=I,this._readBuffer=new NE,this._started=!1,this._ondata=(U)=>{this._readBuffer.append(U),this.processReadBuffer()},this._onerror=(U)=>{this.onerror?.(U)}}async start(){if(this._started)throw Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){while(!0)try{let $=this._readBuffer.readMessage();if($===null)break;this.onmessage?.($)}catch($){this.onerror?.($)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send($){return new Promise((I)=>{let U=lc($);if(this._stdout.write(U))I();else this._stdout.once("drain",I)})}}import{dirname as au,join as TW1}from"node:path";import{fileURLToPath as EW1}from"node:url";class G5 extends Error{name="KyError";get isKyError(){return!0}}class H$ extends G5{name="HTTPError";response;request;options;data;constructor($,I,U){let Y=$.status||$.status===0?$.status:"",J=$.statusText??"",Q=`${Y} ${J}`.trim(),K=Q?`status code ${Q}`:"an unknown error";super(`Request failed with ${K}: ${I.method} ${I.url}`);this.response=$,this.request=I,this.options=U}}class q2 extends G5{name="NetworkError";request;constructor($,I){super(`Request failed due to a network error: ${$.method} ${$.url}`,I);this.request=$}}class H2 extends Error{name="NonError";value;constructor($){let I="Non-error value was thrown";try{if(typeof $==="string")I=$;else if($&&typeof $==="object"&&"message"in $&&typeof $.message==="string")I=$.message}catch{}super(I);this.value=$}}class LU extends G5{name="ForceRetryError";customDelay;code;customRequest;constructor($){let I=$?.cause?$.cause instanceof Error?$.cause:new H2($.cause):void 0;super($?.code?`Forced retry: ${$.code}`:"Forced retry",I?{cause:I}:void 0);this.customDelay=$?.delay,this.code=$?.code,this.customRequest=$?.request}}class AE extends Error{name="SchemaValidationError";issues;constructor($){super("Response schema validation failed");this.issues=$}}class e$ extends G5{name="TimeoutError";request;constructor($){super(`Request timed out: ${$.method} ${$.url}`);this.request=$}}var PE=(()=>{let $=!1,I=!1,U=typeof globalThis.ReadableStream==="function",Y=typeof globalThis.Request==="function";if(U&&Y)try{I=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return $=!0,"half"}}).headers.has("Content-Type")}catch(J){if(J instanceof Error&&J.message==="unsupported BodyInit type")return!1;throw J}return $&&!I})(),rc=typeof globalThis.AbortController==="function",Pw=typeof globalThis.AbortSignal==="function"&&typeof globalThis.AbortSignal.any==="function",tc=typeof globalThis.ReadableStream==="function",ac=typeof globalThis.FormData==="function",Tw=["get","post","put","patch","head","delete"],Mj0=()=>{return};Mj0();var sc={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},DU=2147483647,ec=40,Ew=Symbol("stop");class Bw{options;constructor($){this.options=$}}var $d=($)=>new Bw($),Id={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Ud={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var vw=new TextEncoder,Aj0=($)=>{if(!$)return 0;if($ instanceof FormData){let I=0;for(let[U,Y]of $)I+=ec,I+=vw.encode(`Content-Disposition: form-data; name="${U}"`).byteLength,I+=typeof Y==="string"?vw.encode(Y).byteLength:Y.size;return I}if($ instanceof Blob)return $.size;if($ instanceof ArrayBuffer||ArrayBuffer.isView($))return $.byteLength;if(typeof $==="string")return vw.encode($).byteLength;if($ instanceof URLSearchParams)return vw.encode($.toString()).byteLength;return 0},Yd=($,I,U)=>{let Y,J=0;return $.pipeThrough(new TransformStream({transform(Q,K){if(K.enqueue(Q),Y){J+=Y.byteLength;let q=I===0?0:J/I;if(q>=1)q=1-Number.EPSILON;U?.({percent:q,totalBytes:Math.max(I,J),transferredBytes:J},Y)}Y=Q},flush(){if(Y)J+=Y.byteLength,U?.({percent:1,totalBytes:Math.max(I,J),transferredBytes:J},Y)}}))},Jd=($,I)=>{if(!$.body)return $;let U={status:$.status,statusText:$.statusText,headers:$.headers};if($.status===204)return new Response(null,U);let Y=Math.max(0,Number($.headers.get("content-length"))||0);return new Response(Yd($.body,Y,I),U)},Qd=($,I,U)=>{if(!$.body)return $;let Y=Aj0(U??$.body);return new Request($,{duplex:"half",body:Yd($.body,Y,I)})};var N8=($)=>$!==null&&typeof $==="object";var Pj0=Symbol("replaceOption"),TE=($)=>N8($)&&$[Pj0]===!0?{isReplace:!0,value:$.value}:{isReplace:!1,value:$};var W2=(...$)=>{for(let I of $)if((!N8(I)||Array.isArray(I))&&I!==void 0)throw TypeError("The `options` argument must be an object");return vE({},...$)},BE=($={},I={})=>{let U=new globalThis.Headers($),Y=I instanceof globalThis.Headers,J=new globalThis.Headers(I);for(let[Q,K]of J.entries())if(Y&&K==="undefined"||K===void 0)U.delete(Q);else U.set(Q,K);return U},EE=($)=>{if(!N8($)||Array.isArray($))return!1;let I=Object.getPrototypeOf($);return I===Object.prototype||I===null},OU=($)=>{if($ instanceof URLSearchParams){let I=new URLSearchParams($),U=$[F9];if(U)I[F9]=new Set(U);return I}if($ instanceof globalThis.Headers)return new globalThis.Headers($);if(Array.isArray($))return[...$];if(EE($))return{...$};return $},Tj0=($)=>Object.fromEntries(Object.entries($).filter((I)=>I[1]!==void 0)),Ej0=($,I)=>{if(EE($)&&EE(I))return Tj0({...$,...I});return BE($,I)};function G2($,I,U){return Object.hasOwn(I,U)&&I[U]===void 0?[]:vE($[U]??[],I[U]??[])}var Rw=($={},I={})=>({init:G2($,I,"init"),beforeRequest:G2($,I,"beforeRequest"),beforeRetry:G2($,I,"beforeRetry"),beforeError:G2($,I,"beforeError"),afterResponse:G2($,I,"afterResponse")}),F9=Symbol("deletedParameters"),Bj0=($,I)=>{let U=new URLSearchParams,Y=new Set;for(let J of[$,I]){if(J===void 0)continue;if(J instanceof URLSearchParams){for(let[K,q]of J.entries())U.append(K,q),Y.delete(K);let Q=J[F9];if(Q)for(let K of Q)U.delete(K),Y.add(K)}else if(Array.isArray(J))for(let Q of J){if(!Array.isArray(Q)||Q.length!==2)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");U.append(String(Q[0]),String(Q[1])),Y.delete(String(Q[0]))}else if(N8(J))for(let[Q,K]of Object.entries(J))if(K===void 0)U.delete(Q),Y.add(Q);else U.append(Q,String(K)),Y.delete(Q);else{let Q=new URLSearchParams(J);for(let[K,q]of Q.entries())U.append(K,q),Y.delete(K)}}if(Y.size>0)U[F9]=Y;return U},vE=(...$)=>{let I={},U={},Y={},J,Q=[];for(let K of $)if(Array.isArray(K)){if(!Array.isArray(I))I=[];I=[...I,...K]}else if(N8(K)){for(let[q,H]of Object.entries(K)){if(q==="signal"&&H instanceof globalThis.AbortSignal){Q.push(H);continue}let G=TE(H),{isReplace:W}=G;if(H=G.value,q==="context"){if(H!==void 0&&H!==null&&(!N8(H)||Array.isArray(H)))throw TypeError("The `context` option must be an object");I={...I,context:H===void 0||H===null?{}:W?{...H}:{...I.context,...H}};continue}if(q==="searchParams"){if(H===void 0||H===null)J=void 0;else if(W)J=H;else J=J===void 0?H:Bj0(J,H);continue}if(N8(H)&&!W&&q in I)H=vE(I[q],H);I={...I,[q]:H}}if(N8(K.hooks)){let{value:q,isReplace:H}=TE(K.hooks);Y=H?Rw({},q):Rw(Y,q),I.hooks=Y}if(N8(K.headers)){let{value:q,isReplace:H}=TE(K.headers);U=H?OU(q):Ej0(U,q),I.headers=U}}if(J!==void 0)I.searchParams=J;if(Q.length>0)if(Q.length===1)I.signal=Q[0];else if(Pw)I.signal=AbortSignal.any(Q);else I.signal=Q.at(-1);return I};var qd=($)=>Tw.includes($)?$.toUpperCase():$,vj0=["get","put","head","delete","options","trace"],Rj0=[408,413,429,500,502,503,504],jj0=[413,429,503],Kd={limit:2,methods:vj0,statusCodes:Rj0,afterStatusCodes:jj0,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:($)=>0.3*2**($-1)*1000,jitter:void 0,retryOnTimeout:!1},Hd=($={})=>{if(typeof $==="number")return{...Kd,limit:$};if($.methods&&!Array.isArray($.methods))throw Error("retry.methods must be an array");if($.statusCodes&&!Array.isArray($.statusCodes))throw Error("retry.statusCodes must be an array");let I=Object.fromEntries(Object.entries({...$,methods:$.methods?.map((U)=>U.toLowerCase())}).filter(([,U])=>U!==void 0));return{...Kd,...I}};async function RE($,I,U,Y){return new Promise((J,Q)=>{let K=setTimeout(()=>{if(U)U.abort();Q(new e$($))},Y.timeout);Y.fetch($,I).then(J).catch(Q).then(()=>{clearTimeout(K)})})}async function jw($,{signal:I}){return new Promise((U,Y)=>{if(I)I.throwIfAborted(),I.addEventListener("abort",J,{once:!0});function J(){clearTimeout(Q),Y(I.reason)}let Q=setTimeout(()=>{I?.removeEventListener("abort",J),U()},$)})}var Gd=($)=>{let I={};for(let U in $){if(!Object.hasOwn($,U))continue;if(!(U in Ud)&&!(U in Id))I[U]=$[U]}return I},Wd=($)=>{if($===void 0)return!1;if(Array.isArray($))return $.length>0;if($ instanceof URLSearchParams)return $.size>0||Boolean($[F9]?.size);if(typeof $==="object")return Object.keys($).length>0;if(typeof $==="string")return $.trim().length>0;return Boolean($)};var Cj0=Object.prototype.toString,_j0=($)=>Cj0.call($)==="[object Error]",Sj0=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function jE($){if(!($&&_j0($)&&$.name==="TypeError"&&typeof $.message==="string"))return!1;let{message:U,stack:Y}=$;if(U==="Load failed")return Y===void 0||"__sentry_captured__"in $;if(U.startsWith("error sending request for url"))return!0;if(U==="Failed to fetch"||U.startsWith("Failed to fetch (")&&U.endsWith(")"))return!0;return Sj0.has(U)}var CE=($,I)=>$ instanceof I||$?.name===I.name;function wd($){return CE($,H$)}function Vd($){return CE($,q2)}function Zd($){return CE($,e$)}var gj0=10485760,yj0="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",w2=Symbol("timedOutResponseData"),hj0=($)=>{let I=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec($),U=I?.[1]??I?.[2];if(U)try{return new TextDecoder(U)}catch{}return new TextDecoder},zd="The `schema` argument must follow the Standard Schema specification",uj0=($)=>{if(typeof $!=="object")return $;return{...$,...$.methods&&{methods:[...$.methods]},...$.statusCodes&&{statusCodes:[...$.statusCodes]},...$.afterStatusCodes&&{afterStatusCodes:[...$.afterStatusCodes]}}},Dd=Object.prototype.toString,Xd=($)=>$ instanceof globalThis.Request||Dd.call($)==="[object Request]",V2=($)=>$ instanceof globalThis.Response||Dd.call($)==="[object Response]",xj0=($)=>{if(Array.isArray($))return $.map((I)=>[...I]);return OU($)};function kj0($){let I={...$,json:OU($.json),context:OU($.context),headers:OU($.headers),searchParams:xj0($.searchParams)};if($.retry!==void 0)I.retry=uj0($.retry);return I}var Ld=async($,I)=>{if(typeof I!=="object"&&typeof I!=="function"||I===null)throw TypeError(zd);let U=I["~standard"];if(typeof U!=="object"||U===null||typeof U.validate!=="function")throw TypeError(zd);let Y=await U.validate($);if(Y.issues)throw new AE(Y.issues);return Y.value};class FU{static create($,I){let U=I.hooks?.init??[],Y=U.length>0?kj0(I):I;for(let q of U)q(Y);let J=new FU($,Y),Q=async()=>{if(typeof J.#$.timeout==="number"&&J.#$.timeout>DU)throw RangeError(`The \`timeout\` option cannot be greater than ${DU}`);if(typeof J.#$.totalTimeout==="number"&&J.#$.totalTimeout>DU)throw RangeError(`The \`totalTimeout\` option cannot be greater than ${DU}`);await Promise.resolve();let q=await J.#y(),H=q??await J.#B(async()=>J.#D()),G=q!==void 0||J.#L();for(;;){if(H===void 0)return H;if(V2(H))try{H=await J.#h(H)}catch(w){if(!(w instanceof LU))throw w;let Z=await J.#X(w,async()=>J.#D());if(Z===void 0)return Z;H=Z,G=J.#L();continue}let W=H;if(!W.ok&&W.type!=="opaque"&&(typeof J.#$.throwHttpErrors==="function"?J.#$.throwHttpErrors(W.status):J.#$.throwHttpErrors)){let w=new H$(W,J.#q(W),J.#K()),Z=w;if(w.data=await J.#C(W),G)throw Z;let V=await J.#X(w,async()=>J.#D());if(V===void 0)return V;H=V,G=J.#L();continue}break}if(!V2(H))return H;if(J.#P(H),J.#$.onDownloadProgress){if(typeof J.#$.onDownloadProgress!=="function")throw TypeError("The `onDownloadProgress` option must be a function");if(!tc)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let W=H.clone();return J.#Y(H),Jd(W,J.#$.onDownloadProgress)}return H},K=(async()=>{try{return await Q()}catch(q){if(!(q instanceof Error))throw q;if(J.#M.has(q))throw q;let H=q;for(let G of J.#$.hooks.beforeError){let W=await G({request:J.request,options:J.#K(),error:H,retryCount:J.#U});if(W instanceof Error)H=W}throw H}finally{let q=J.#N;if(J.#z(q?.body??void 0),J.request!==q)J.#z(J.request.body??void 0)}})();for(let[q,H]of Object.entries(sc)){if(q==="bytes"&&typeof globalThis.Response?.prototype?.bytes!=="function")continue;K[q]=async(G)=>{J.request.headers.set("accept",J.request.headers.get("accept")||H);let W=await K;if(q!=="json")return W[q]();let w=await W.text();if(w===""){if(G!==void 0)return Ld(void 0,G);return JSON.parse(w)}let Z=Y.parseJson?await Y.parseJson(w,{request:J.#q(W),response:W}):JSON.parse(w);return G===void 0?Z:Ld(Z,G)}}return K}static#R($){if($&&typeof $==="object"&&!Array.isArray($)&&!($ instanceof URLSearchParams))return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0));return $}request;#J;#U=0;#I;#$;#N;#H;#M=new WeakSet;#G;#Z;#W=!1;#A=new WeakMap;constructor($,I={}){if(this.#I=$,Object.hasOwn(I,"prefixUrl"))throw Error(yj0);if(this.#$={...I,headers:BE(this.#I.headers,I.headers),hooks:Rw({},I.hooks),method:qd(I.method??this.#I.method??"GET"),prefix:String(I.prefix||""),retry:Hd(I.retry),throwHttpErrors:I.throwHttpErrors??!0,timeout:I.timeout??1e4,totalTimeout:I.totalTimeout??!1,fetch:I.fetch??globalThis.fetch.bind(globalThis),context:I.context??{}},typeof this.#I!=="string"&&!(this.#I instanceof URL||this.#I instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(typeof this.#I==="string"){if(this.#$.prefix){let Y=this.#$.prefix.replace(/\/+$/,""),J=this.#I.replace(/^\/+/,"");this.#I=`${Y}/${J}`}if(this.#$.baseUrl){let Y;try{Y=new URL(this.#I)}catch{}if(!Y)this.#I=new URL(this.#I,new Request(this.#$.baseUrl).url)}}if(rc&&Pw)this.#H=this.#$.signal??this.#I.signal,this.#J=new globalThis.AbortController,this.#$.signal=this.#E();if(PE)this.#$.duplex="half";if(this.#$.json!==void 0)this.#$.body=this.#$.stringifyJson?.(this.#$.json)??JSON.stringify(this.#$.json),this.#$.headers.set("content-type",this.#$.headers.get("content-type")??"application/json");let U=I.headers&&new globalThis.Headers(I.headers).has("content-type");if(this.#I instanceof globalThis.Request&&(ac&&this.#$.body instanceof globalThis.FormData||this.#$.body instanceof URLSearchParams)&&!U)this.#$.headers.delete("content-type");if(this.request=new globalThis.Request(this.#I,this.#$),Wd(this.#$.searchParams)){let Y=new URL(this.request.url),J=this.#$.searchParams?.[F9];if(J)for(let Q of J)Y.searchParams.delete(Q);if(typeof this.#$.searchParams==="string"){let Q=this.#$.searchParams.replace(/^\?/,"");if(Q!=="")Y.search=Y.search?`${Y.search}&${Q}`:`?${Q}`}else{let Q=new URLSearchParams(FU.#R(this.#$.searchParams));for(let[K,q]of Q.entries())Y.searchParams.append(K,q)}if(this.#$.searchParams&&typeof this.#$.searchParams==="object"&&!Array.isArray(this.#$.searchParams)&&!(this.#$.searchParams instanceof URLSearchParams)){for(let[Q,K]of Object.entries(this.#$.searchParams))if(K===void 0)Y.searchParams.delete(Q)}this.request=new globalThis.Request(Y,this.#$)}if(this.#$.onUploadProgress&&typeof this.#$.onUploadProgress!=="function")throw TypeError("The `onUploadProgress` option must be a function");this.#Z=typeof this.#$.totalTimeout==="number"?this.#v():void 0}#Q(){let $=this.#$.retry.delay(this.#U+1),I=$;if(this.#$.retry.jitter===!0)I=Math.random()*$;else if(typeof this.#$.retry.jitter==="function"){if(I=this.#$.retry.jitter($),!Number.isFinite(I)||I<0)I=$}return Math.min(this.#$.retry.backoffLimit,I)}async#j($){if(this.#U>=this.#$.retry.limit)throw $;let I=$ instanceof Error?$:new H2($);if(I instanceof LU)return I.customDelay??this.#Q();if(!this.#$.retry.methods.includes(this.request.method.toLowerCase()))throw $;if(this.#$.retry.shouldRetry!==void 0){let U=await this.#$.retry.shouldRetry({error:I,retryCount:this.#U+1});if(U===!1)throw $;if(U===!0)return this.#Q()}if(Zd($)){if(!this.#$.retry.retryOnTimeout)throw $;return this.#Q()}if(wd($)){if(!this.#$.retry.statusCodes.includes($.response.status))throw $;let U=$.response.headers.get("Retry-After")??$.response.headers.get("RateLimit-Reset")??$.response.headers.get("X-RateLimit-Retry-After")??$.response.headers.get("X-RateLimit-Reset")??$.response.headers.get("X-Rate-Limit-Reset");if(U&&this.#$.retry.afterStatusCodes.includes($.response.status)){let Y=Number(U)*1000;if(Number.isNaN(Y))Y=Date.parse(U)-Date.now();else if(Y>=Date.parse("2024-01-01"))Y-=Date.now();if(!Number.isFinite(Y))return Math.min(this.#$.retry.maxRetryAfter,this.#Q());return Y=Math.max(0,Y),Math.min(this.#$.retry.maxRetryAfter,Y)}if($.response.status===413)throw $;return this.#Q()}if(!Vd($))throw $;return this.#Q()}#P($){let I=this.#q($);if(this.#$.parseJson)$.json=async()=>{let U=await $.text();if(U==="")return JSON.parse(U);return this.#$.parseJson(U,{request:I,response:$})};return $}async#C($){let I=await this.#S($,this.#T());if(I===w2){this.#w();return}if(!I)return;if(!this.#_($.headers.get("content-type")??""))return I;let U=await this.#g(I,$,this.#T(),this.#q($));if(U===w2){this.#w();return}return U}#T(){let $=this.#$.timeout===!1?1e4:this.#$.timeout,I=this.#V();if(I===void 0)return $;if(I<=0)throw new e$(this.request);return Math.min($,I)}#_($){let I=($.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(I)}async#S($,I){let{body:U}=$;if(!U)try{return await $.text()}catch{return}let Y;try{Y=U.getReader()}catch{return}let J=hj0($.headers.get("content-type")??""),Q=[],K=0,q=(async()=>{try{for(;;){let{done:W,value:w}=await Y.read();if(W)break;if(K+=w.byteLength,K>gj0){Y.cancel().catch(()=>{return});return}Q.push(J.decode(w,{stream:!0}))}}catch{return}return Q.push(J.decode()),Q.join("")})(),H=new Promise((W)=>{let w=setTimeout(()=>{W(w2)},I);q.finally(()=>{clearTimeout(w)})}),G=await Promise.race([q,H]);if(G===w2)Y.cancel().catch(()=>{return});return G}async#g($,I,U,Y){let J;try{return await Promise.race([Promise.resolve().then(()=>this.#$.parseJson?this.#$.parseJson($,{request:Y,response:I}):JSON.parse($)),new Promise((Q)=>{J=setTimeout(()=>{Q(w2)},U)})])}catch{return}finally{clearTimeout(J)}}#z($){if(!$)return;$.cancel().catch(()=>{return})}#Y($){this.#z($.body??void 0)}#E(){return this.#H?AbortSignal.any([this.#H,this.#J.signal]):this.#J.signal}#w(){let $=this.#V();if($!==void 0&&$<=0)throw new e$(this.request)}async#y(){for(let $ of this.#$.hooks.beforeRequest){let I=await $({request:this.request,options:this.#K(),retryCount:0});if(Xd(I))this.#O(I);else if(V2(I))return I}return}async#h($){let I=this.#q($);for(let U of this.#$.hooks.afterResponse){let Y=this.#F($.clone(),I);this.#P(Y);let J;try{J=await U({request:this.request,options:this.#K(),response:Y,retryCount:this.#U})}catch(K){if(Y!==$)this.#Y(Y);throw this.#Y($),K}if(J instanceof Bw){if(Y!==$)this.#Y(Y);throw this.#Y($),new LU(J.options)}let Q=V2(J)?this.#F(J,I):$;if(Y!==$&&Y!==Q&&Y.body!==Q.body)this.#Y(Y);if($!==Q&&$.body!==Q.body)this.#Y($);$=Q}return $}async#B($){try{return await $()}catch(I){return this.#X(I,$)}}async#X($,I){this.#W=!1;let U=Math.min(await this.#j($),DU),Y={signal:this.#H},J=this.#V();if(J!==void 0){if(J<=0)throw new e$(this.request);if(U>=J)throw await jw(J,Y),new e$(this.request)}if(await jw(U,Y),this.#w(),$ instanceof LU&&$.customRequest){let Q=new globalThis.Request($.customRequest,this.#$.signal?{signal:this.#$.signal}:void 0);this.#O(Q)}for(let Q of this.#$.hooks.beforeRetry){let K;try{K=await Q({request:this.request,options:this.#K(),error:$,retryCount:this.#U+1})}catch(q){if(q instanceof Error&&q!==$)this.#M.add(q);throw q}if(Xd(K)){this.#O(K);break}if(V2(K))return this.#W=!0,this.#U++,K;if(K===Ew)return}return this.#w(),this.#U++,this.#B(I)}#L(){let $=this.#W;return this.#W=!1,$}async#D(){if(this.#J?.signal.aborted)this.#J=new globalThis.AbortController,this.#$.signal=this.#E(),this.request=new globalThis.Request(this.request,{signal:this.#$.signal});let $=Gd(this.#$),I=this.#$.retry.limit>0?this.request.clone():void 0,U=this.#u(this.request,this.#$.body??void 0);if(this.#N=U,I)this.request=I;try{let Y=this.#V();if(Y!==void 0&&Y<=0)throw new e$(this.request);let J=this.#$.timeout===!1?Y:Y===void 0?this.#$.timeout:Math.min(this.#$.timeout,Y),Q=J===void 0?await this.#$.fetch(U,$):await RE(U,$,this.#J,{timeout:J,fetch:this.#$.fetch});return this.#F(Q,U)}catch(Y){if(jE(Y))throw new q2(this.request,{cause:Y});throw Y}}#V(){if(this.#Z===void 0)return;let $=this.#v()-this.#Z;return Math.max(0,this.#$.totalTimeout-$)}#v(){return globalThis.performance?.now()??Date.now()}#K(){if(!this.#G){let{hooks:$,json:I,parseJson:U,stringifyJson:Y,searchParams:J,timeout:Q,totalTimeout:K,throwHttpErrors:q,fetch:H,...G}=this.#$;this.#G=Object.freeze(G)}return this.#G}#O($){this.#G=void 0,this.request=$}#q($){return this.#A.get($)??this.request}#F($,I){return this.#A.set($,I),$}#u($,I){if(!this.#$.onUploadProgress||!$.body||!PE)return $;return Qd($,this.#$.onUploadProgress,I??this.#$.body??void 0)}}/*! MIT License © Sindre Sorhus */var _E=($)=>{let I=(U,Y)=>FU.create(U,W2($,Y));for(let U of Tw)I[U]=(Y,J)=>FU.create(Y,W2($,J,{method:U}));return I.create=(U)=>_E(W2(U)),I.extend=(U)=>{if(typeof U==="function")U=U($??{});return _E(W2($,U))},I.stop=Ew,I.retry=$d,I},fj0=_E(),W5=fj0;async function Od($){if($.source.type!=="direct"&&$.source.type!=="seal")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=$.seal.url??$.source.sealUrl,U=$.source.type==="seal"?$.source:void 0;return{token:$.source.token,expiresAt:Date.now()+$.source.expiresIn*1000,enterprise:{provider:U?"seal":"direct",corpId:$.source.corpId??$.id,staffId:$.source.staffId,sealUrl:I,tenantId:U?.tenantId,tenantSlug:$.seal.tenantSlug??U?.tenantSlug,tenantName:U?.tenantName,raw:{sourceType:$.source.type}}}}import{existsSync as SE,mkdirSync as cj0,readFileSync as dj0,writeFileSync as mj0}from"node:fs";import{dirname as lj0,join as Ad}from"node:path";import{homedir as Pd}from"node:os";var Fd=z.object({token:z.string(),expiresAt:z.number(),url:z.string().url().optional()}),bj0=z.object({provider:z.string(),corpId:z.string().optional(),staffId:z.string(),sealUrl:z.string().url(),tenantId:z.string().optional(),tenantSlug:z.string().optional(),tenantName:z.string().optional(),raw:z.unknown().optional()}),ij0=z.object({token:z.string(),expiresAt:z.number(),enterprise:bj0}),nj0=z.object({openapi:Fd.optional(),closeapi:Fd.optional()}),pj0=z.object({seal:ij0.optional(),hose:nj0.optional()}),Nd=z.record(z.string(),pj0);var Cw=Ad(Pd(),".config","seal-use","seal_tokens.json"),Md=Ad(Pd(),".config","seal-home","seal_tokens.json");function oj0(){let $=(process.env.SEAL_USE_TOKEN_STORE??process.env.SEAL_HOME_TOKEN_STORE)?.trim();if($)return $;if(SE(Cw))return Cw;if(SE(Md))return Md;return Cw}function rj0(){let $=(process.env.SEAL_USE_TOKEN_STORE??process.env.SEAL_HOME_TOKEN_STORE)?.trim();if($)return $;return Cw}function NU(){let $=oj0();if(!SE($))return{};try{return Nd.parse(JSON.parse(dj0($,"utf-8")))}catch{return{}}}function _w($){let I=rj0();cj0(lj0(I),{recursive:!0,mode:448}),mj0(I,JSON.stringify($,null,2),{mode:384})}function Td($){return NU()[$]?.seal}function Ed($,I){let U=NU();_w({...U,[$]:{...U[$],seal:I}})}function Bd($){let I=NU(),U=I[$];if(!U)return;_w({...I,[$]:{...U,seal:void 0}})}function Z2($){return NU()[$]?.hose??{}}function gE($,I){let U=NU();_w({...U,[$]:{...U[$],hose:I}})}function Sw($){let I=NU();delete I[$],_w(I)}var tj0=["https://app.ekuaibao.com","https://dd2.hosecloud.com","https://wx2.ekuaibao.com","https://kdcloud2.ekuaibao.com","https://ddenterprise.ekuaibao.com","https://feishu.ekuaibao.com"],aj0=[".ekuaibao.com",".hosecloud.com"],sj0="/web/thirdparty.html",Rd=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/,yE=new Map,hE=new Map;function $8($){return $.replace(/\/+$/,"")}function ej0($){let I;try{I=new URL($.trim())}catch{throw Error("Invalid Hose assistance link: expected a valid HTTPS URL")}if(I.protocol!=="https:"||I.port||!$C0(I.hostname)||I.pathname.replace(/\/+$/,"")!==sj0)throw Error("Invalid Hose assistance link: expected an HTTPS */web/thirdparty.html URL from ekuaibao.com or hosecloud.com");let U=I.searchParams.getAll("accessToken").filter(Boolean),Y=I.searchParams.getAll("ekbCorpId").filter(Boolean);if(U.length!==1||Y.length!==1)throw Error("Invalid Hose assistance link: accessToken and ekbCorpId are required exactly once");let J=Y[0].trim().toLowerCase();if(!Rd.test(J))throw Error("Invalid Hose assistance link: ekbCorpId is not a valid tenant slug");return{corpId:J,accessToken:U[0]}}async function gw($){let I=typeof $==="string"?ej0($):IC0($),U=`https://${I.corpId}.sealai.cc`,Y=await W5.get(`${U}/api/auth/oauth2/session/oem-hosecloud`,{searchParams:{token:I.accessToken,returnToken:"1"},timeout:30000}).json(),J=Y.token??Y.accessToken??Y.data?.token??Y.data?.accessToken;if(!J)throw Error("Seal SSO did not return a bearer token");let Q=Y.expiresIn??Y.expires_in??Y.data?.expiresIn??Y.data?.expires_in??3600;return{corpId:I.corpId,sealUrl:U,token:J,expiresIn:Number.isFinite(Q)&&Q>0?Q:3600}}function yw($,I){let U=I.hoseCorpConfig&&typeof I.hoseCorpConfig==="object"?I.hoseCorpConfig:void 0,Y=[I.tenantSlug,U?.corporationId].filter((K)=>typeof K==="string"&&Boolean(K)),J=$.trim().toLowerCase(),Q=Y.map((K)=>K.trim().toLowerCase()).filter(Boolean);if(Q.length===0||Q.some((K)=>K!==J))throw Error("Hose assistance link tenant mismatch: the Seal tenant does not match ekbCorpId")}function $C0($){let I=$.toLowerCase();return aj0.some((U)=>I.endsWith(U))}function IC0($){let I=typeof $?.corpId==="string"?$.corpId.trim().toLowerCase():"",U=typeof $?.accessToken==="string"?$.accessToken.trim():"";if(!Rd.test(I)||!U)throw Error("Invalid Hose assistance link: accessToken and ekbCorpId are required");return{corpId:I,accessToken:U}}function jd($,I=60){return Boolean($&&Date.now()<$.expiresAt-I*1000)}function z2($,I){if($.seal.url)return $.seal.url;if(I.sealUrl)return I.sealUrl;return`https://${I.corpId.toLowerCase()}.sealai.cc`}function UC0($){return $.staffId.includes(":")?$.staffId:`${$.corpId}:${$.staffId}`}function Cd($){return W5.create({prefix:$8($.domain),timeout:30000,hooks:{beforeError:[async({error:I})=>{let U=I instanceof H$?await I.response.text().catch(()=>""):"";return I.message=`${I.message}${U?`: ${U}`:""}`,I}]}})}async function YC0($){let I=Cd($),U=$.appKey??$.key,Y=$.appSecurity??$.password;if(!U||!Y)throw Error("Hose source requires appKey/key and appSecurity/password");let J=await I.post("api/openapi/v1/auth/getAccessToken",{json:{appKey:U,appSecurity:Y}}).json(),Q=J.value?.accessToken??J.accessToken??J.token;if(!Q)throw Error("Hose login did not return an access token");return{token:Q,expiresAt:Date.now()+3600000}}async function hw($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=Z2($.id);if(jd(I.openapi))return I.openapi.token;let U=yE.get($.id);if(U)return U;let Y=YC0($.source).then((J)=>{return gE($.id,{...Z2($.id),openapi:J}),J.token}).finally(()=>yE.delete($.id));return yE.set($.id,Y),Y}async function uw($,I,U=7200){let Y=Cd($),J=UC0($),K=(await Y.post("api/openapi/v1.1/provisional/getProvisionalAuth",{searchParams:{accessToken:I},json:{uid:J,pageType:"home",expireDate:U}}).json()).value?.message;if(!K)throw Error("Hose CloseAPI did not return a provisional auth URL");let q=new URL(K).searchParams.get("accessToken");if(!q)throw Error("Hose provisional auth URL did not include accessToken");return{token:q,url:K,expiresAt:Date.now()+U*1000}}async function _d($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=$.source,U=Z2($.id);if(jd(U.closeapi)&&U.closeapi.url)return U.closeapi;let Y=hE.get($.id);if(Y)return Y;let J=hw($).then((Q)=>uw(I,Q)).then((Q)=>{return gE($.id,{...Z2($.id),closeapi:Q}),Q}).finally(()=>hE.delete($.id));return hE.set($.id,J),J}async function Sd($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=(await _d($)).url;if(!I)throw Error("Hose provisional auth URL was not available");return I}async function gd($,I=7200){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let U=await hw($),Y=await uw($.source,U,I);if(!Y.url)throw Error("Hose provisional auth URL was not available");return{corpId:$.source.corpId,staffId:$.source.staffId,url:Y.url,expiresIn:I}}async function yd($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=await _d($),U=z2($,$.source),Y=await W5.get(`${$8(U)}/api/auth/oauth2/session/oem-hosecloud`,{searchParams:{token:I.token,returnToken:"1"},timeout:30000}).json(),J=Y.token??Y.accessToken??Y.data?.token??Y.data?.accessToken;if(!J)throw Error("Seal SSO did not return a bearer token");let Q=Y.expiresIn??Y.expires_in??Y.data?.expiresIn??Y.data?.expires_in??3600,K={provider:"hose",corpId:$.source.corpId,staffId:$.source.staffId,sealUrl:$8(U),tenantSlug:$.seal.tenantSlug,raw:{sourceType:"hose",hoseDomain:$8($.source.domain)}};return{token:J,expiresAt:Date.now()+Q*1000,enterprise:K}}async function MU($,I,U){if(U){let K=$8(U),q=await vd(K,$,I);if(!q)throw Error(`Failed to authenticate on specified domain: ${K}. Please verify appKey/appSecurity and domain connectivity.`);return q}let Y=tj0.map(async(K)=>{try{return await vd(K,$,I)}catch{return}}),Q=(await Promise.all(Y)).filter((K)=>Boolean(K));if(Q.length>0&&Q[0])return Q[0];throw Error("Failed to authenticate with appKey/appSecurity on all 6 standard Hose domains (app.ekuaibao.com, dd2.hosecloud.com, wx2.ekuaibao.com, kdcloud2.ekuaibao.com, ddenterprise.ekuaibao.com, feishu.ekuaibao.com). "+'If your enterprise uses a private cloud or custom domain (such as 美年大健康), please specify the "domain" parameter explicitly.')}async function vd($,I,U){try{let Y=await fetch(`${$}/api/openapi/v1/auth/getAccessToken`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({appKey:I,appSecurity:U}),signal:AbortSignal.timeout(8000)});if(!Y.ok)return;let J=await Y.json();if(J.value?.errorCode)return;let Q=J.value?.accessToken??J.accessToken,K=J.value?.corporationId??J.value?.corporation?.id;if(!Q||!K)return;return{domain:$,corpId:K,corpName:J.value?.corporation?.name,openapiToken:Q,expireTime:J.value?.expireTime}}catch{return}}async function xw($,I){let U=`${$8($)}/api/openapi/v1/roleDefGroups?accessToken=${encodeURIComponent(I)}`,Y=await fetch(U,{headers:{"content-type":"application/json",Accept:"application/json"},signal:AbortSignal.timeout(1e4)});if(!Y.ok){let K=await Y.text().catch(()=>"");throw Error(`Failed to fetch Hose role definition groups: ${Y.status} ${K}`)}return((await Y.json()).items??[]).map((K)=>({id:K.id,name:K.name,enName:K.enName,roleDefs:(K.roleDefs??[]).map((q)=>({id:q.id,name:q.name,enName:q.enName,sourceType:q.sourceType,sourceTypeValue:q.sourceTypeValue,groupId:K.id,groupName:K.name}))}))}async function uE($,I,U,Y="id"){let J=U.startsWith("$")?U.slice(1):U,Q=`${$8($)}/api/openapi/v1/roledefs/$${J}?accessToken=${encodeURIComponent(I)}&staffBy=${encodeURIComponent(Y)}&pathType=name`,K=await fetch(Q,{headers:{"content-type":"application/json",Accept:"application/json"},signal:AbortSignal.timeout(1e4)});if(!K.ok){let W=await K.text().catch(()=>"");throw Error(`Failed to fetch Hose role staffs for ${J}: ${K.status} ${W}`)}let H=(await K.json()).value;if(!H)throw Error(`Hose role staff query returned empty result for ${J}`);let G=[];for(let W of H.contents??[])for(let w of W.staffs??[])if(w&&!G.includes(w))G.push(w);return{id:H.id??J,name:H.name??"",count:H.count??G.length,staffs:G}}async function xE($,I,U){if(U.length===0)return[];let Y=`${$8($)}/api/openapi/v1/staffs/getStaffIds?accessToken=${encodeURIComponent(I)}`,J=await fetch(Y,{method:"POST",headers:{"content-type":"application/json",Accept:"application/json"},body:JSON.stringify({type:"STAFFID",conditionIds:U.slice(0,100)}),signal:AbortSignal.timeout(1e4)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(`Failed to fetch Hose staff details: ${J.status} ${K}`)}return(await J.json()).items??[]}var kw=new Map;function hd($,I){return Date.now()>=$.expiresAt-I*1000}async function JC0($){switch($.source.type){case"hose":return yd($);case"direct":case"seal":return Od($)}}async function fw($){let I=$.auth.refreshTtl,U=kw.get($.id);if(U&&!hd(U,I))return U;let Y=Td($.id);if(Y&&!hd(Y,I))return kw.set($.id,Y),Y;let J=await JC0($);return kw.set($.id,J),Ed($.id,J),J}async function ud($){return(await fw($)).enterprise}function xd($){kw.delete($),Bd($)}function QC0($){let I=Object.entries($??{}).map(([U,Y])=>`${U}=${Y}`);return I.length?I.join("; "):void 0}function X2($){let I={...$?.headers??{}},U=QC0($?.cookies);if(U)I.Cookie=U;return I}function KC0($){if($===void 0||$===null||$==="")return"";if(typeof $==="string")return $;try{return JSON.stringify($)}catch{return String($)}}function qC0($){if(!($ instanceof H$))return $;let I=KC0($.data);if(I)$.message=`${$.message}: ${I}`;return $}function kd($){return async({error:I})=>{if($&&I instanceof H$&&I.response.status===401)xd($);return qC0(I)}}async function u1($){let I=await fw($);return W5.create({prefix:I.enterprise.sealUrl,timeout:30000,headers:{...X2($.seal),Authorization:`Bearer ${I.token}`},hooks:{beforeError:[kd($.id)]}})}async function fd($,I){let U=await fw($);return L2(U.enterprise.sealUrl,I,X2($.seal))}function L2($,I,U={}){return W5.create({prefix:$.replace(/\/+$/,""),timeout:30000,headers:{...U,Authorization:`Bearer ${I}`},hooks:{beforeError:[kd()]}})}import{spawnSync as bd}from"node:child_process";var D2={name:"seal-use",version:"0.10.17",type:"module",module:"src/server.ts",bin:{"seal-use":"src/cli.ts","seal-home":"src/cli.ts"},scripts:{dev:"bun run --watch src/server.ts",start:"bun run src/server.ts",probe:"bun run src/probe.ts",cli:"bun run src/cli.ts",check:"tsc --noEmit","build:binary":"node scripts/build-binary.mjs","build:plugin":"node scripts/build-plugin.mjs",bump:"bun run scripts/bump-version.ts","dev:override":"bun run scripts/dev-override.ts","dev:link":"bun run scripts/dev-override.ts","openapi:bundle":"bun run scripts/bundle-openapi.ts","openapi:raw":"bun run scripts/generate-raw-openapi.ts",test:"bun test"},dependencies:{"@modelcontextprotocol/sdk":"^1.29.0",exceljs:"^4.4.0","iconv-lite":"^0.7.3",ky:"^2.0.2","pinyin-pro":"^3.29.3",yauzl:"^3.4.0",zod:"^4.4.3"},devDependencies:{"@types/bun":"^1.3.14","@types/yauzl":"^3.4.0","bun-types":"^1.3.14",typescript:"^5.9.3",yaml:"^2.9.0"}};function GC0($,I=D2.version){let U=$.trim();if(!U)return null;let Y=U.endsWith("-dirty"),J=Y?U.slice(0,-6):U,Q=J.match(/^v?(\d+\.\d+\.\d+(?:-[a-zA-Z0-9.]+)?)-(\d+)-g([0-9a-f]+)$/);if(Q&&Q[1]&&Q[2]&&Q[3])return{baseVersion:Q[1],commitsAhead:Number.parseInt(Q[2],10),commit:Q[3],dirty:Y,describe:U};let K=J.match(/^v?(\d+\.\d+\.\d+(?:-[a-zA-Z0-9.]+)?)$/);if(K&&K[1])return{baseVersion:K[1],commitsAhead:0,commit:"",dirty:Y,describe:U};let q=J.match(/^([0-9a-f]{7,40})$/);if(q&&q[1])return{baseVersion:I,commitsAhead:0,commit:q[1],dirty:Y,describe:U};return null}function WC0($,I,U,Y){let Q=U?`+g${U}${Y?".dirty":""}`:Y?"+dirty":"";return`${$}-dev.${I}${Q}`}function wC0($){let I=$?.env,U=I?.SEAL_BUILD_VERSION??process.env.SEAL_BUILD_VERSION,Y=I?.SEAL_BUILD_IS_RELEASE??process.env.SEAL_BUILD_IS_RELEASE,J=I?.SEAL_BUILD_CHANNEL??process.env.SEAL_BUILD_CHANNEL,Q=I?.SEAL_BUILD_GIT_BASE??process.env.SEAL_BUILD_GIT_BASE,K=I?.SEAL_BUILD_GIT_COMMITS_AHEAD??process.env.SEAL_BUILD_GIT_COMMITS_AHEAD,q=I?.SEAL_BUILD_GIT_COMMIT??process.env.SEAL_BUILD_GIT_COMMIT,H=I?.SEAL_BUILD_GIT_DIRTY??process.env.SEAL_BUILD_GIT_DIRTY,G=I?.SEAL_BUILD_GIT_DESCRIBE??process.env.SEAL_BUILD_GIT_DESCRIBE,W=I?.SEAL_FORCE_RELEASE??process.env.SEAL_FORCE_RELEASE,w=$?.cwd;if(U){let Z=Y==="true",X={name:"seal-use",version:U,channel:J||(Z?"release":"dev"),isRelease:Z};if(Q)X.git={baseVersion:Q,commitsAhead:Number.parseInt(K||"0",10),commit:q||"",dirty:H==="true",describe:G||U};return X}if(Y==="true"||W==="1")return{name:"seal-use",version:D2.version,channel:"release",isRelease:!0};try{let Z=bd("git",["describe","--tags","--long","--dirty","--always"],{cwd:w,encoding:"utf8",stdio:["ignore","pipe","ignore"]});if(Z.status===0&&Z.stdout){let V=GC0(Z.stdout.trim(),D2.version);if(V){if(!V.commit){let L=bd("git",["rev-parse","--short","HEAD"],{cwd:w,encoding:"utf8",stdio:["ignore","pipe","ignore"]});if(L.status===0&&L.stdout)V.commit=L.stdout.trim()}return{name:"seal-use",version:WC0(V.baseVersion,V.commitsAhead,V.commit,V.dirty),channel:"dev",isRelease:!1,git:V}}}}catch{}return{name:"seal-use",version:`${D2.version}-dev.0+local`,channel:"dev",isRelease:!1}}var O2=wC0(),Y1=O2.version,kE=O2.isRelease,KM1=O2.channel;import{randomBytes as Mm}from"node:crypto";var id=[".pdf",".xls",".xlsx",".csv",".doc",".docx",".ppt",".pptx",".txt",".rtf",".odt",".ods",".odp",".jpg",".jpeg",".png",".gif",".bmp",".webp",".heic",".eml",".msg"],fE={minFileSizeBytes:500,allowedExtensions:[...id]},nd=z.string().trim().min(1).transform(($)=>{let I=$.toLowerCase();return I.startsWith(".")?I:`.${I}`}).refine(($)=>/^\.[a-z0-9][a-z0-9+_-]*$/.test($),{message:"文件后缀必须是简单扩展名,例如 .pdf 或 xlsx"}),bE=z.object({minFileSizeBytes:z.number().int().min(0).default(fE.minFileSizeBytes),maxFileSizeBytes:z.number().int().positive().nullable().optional(),allowedExtensions:z.array(nd).min(1).default([...id]).transform(($)=>[...new Set($)])}).superRefine(($,I)=>{if($.maxFileSizeBytes!==void 0&&$.maxFileSizeBytes!==null&&$.maxFileSizeBytes<$.minFileSizeBytes)I.addIssue({code:"custom",path:["maxFileSizeBytes"],message:"最大文件大小不能小于最小文件大小"})}),iE=z.object({minFileSizeBytes:z.number().int().min(0).optional(),maxFileSizeBytes:z.number().int().positive().nullable().optional(),allowedExtensions:z.array(nd).min(1).transform(($)=>[...new Set($)])}).optional();function AU($=void 0){return bE.parse($??{})}function pd($,I){return AU({...AU($),...I})}var VC0=z.object({staffId:z.string(),name:z.string().optional(),code:z.string().default(""),bindTime:z.number().optional()}),ZC0=z.object({id:z.string(),tenantId:z.string(),name:z.string(),isAdmin:z.boolean().default(!1),permissions:z.array(z.string()).default([]),providerUserId:z.string().optional(),hosecloudStaff:VC0.optional()}),zC0=z.object({apiKey:z.string().optional(),corporationId:z.string().optional(),corporationName:z.string().optional()}),XC0=z.object({id:z.string(),name:z.string(),tenantSlug:z.string().optional(),isDemo:z.boolean().default(!1),logoUrl:z.string().nullable().optional(),hoseCorpConfig:zC0.optional()}),dd=z.object({user:ZC0,tenant:XC0}),LC0=z.object({id:z.string(),name:z.string(),email:z.string().nullable().optional(),emailVerified:z.boolean().optional(),image:z.string().nullable().optional(),tenantId:z.string().optional(),provider:z.string().optional(),providerUserId:z.string().optional(),mobile:z.string().nullable().optional(),status:z.string().optional(),permissions:z.array(z.string()).default([]),isAdmin:z.boolean().default(!1),hosecloudStaff:z.unknown().optional()}).passthrough(),DC0=z.object({id:z.string(),token:z.string().optional(),expiresAt:z.string(),createdAt:z.string().optional(),updatedAt:z.string().optional(),ipAddress:z.string().optional(),userAgent:z.string().optional(),userId:z.string(),delegationId:z.string().nullable().optional()}).passthrough(),md=z.object({user:LC0,session:DC0}),bw=z.object({id:z.string(),tenantId:z.string().optional(),code:z.number().optional(),description:z.string(),scope:z.string(),strictness:z.string(),status:z.string().optional(),createdAt:z.number().optional(),updatedAt:z.number().optional()}),ld=z.object({rules:z.array(bw),hasPendingDeletes:z.boolean().default(!1)}),OC0=z.object({code:z.string().optional(),description:z.string(),scope:z.string(),strictness:z.string()}),iw=z.object({id:z.string(),tenantId:z.string().optional(),versionNumber:z.number(),versionName:z.string().nullable().optional(),publishedBy:z.string().nullable().optional(),publishedByName:z.string().nullable().optional(),rules:z.array(OC0).default([]),publishedAt:z.number().optional(),createdAt:z.number().optional()}),od=z.object({version:iw,rulesCount:z.number()}),F2=z.object({id:z.string(),tenantId:z.string().optional(),title:z.string(),purpose:z.string().default(""),contentType:z.string().default("policy"),content:z.string(),status:z.string().default("published"),enabled:z.boolean().default(!0),scenarios:z.array(z.string()).default([]),tags:z.array(z.string()).default([]),category:z.string().nullable().optional(),categoryTags:z.array(z.string()).default([]),createdBy:z.string().nullable().optional(),createdByName:z.string().nullable().optional(),createdAt:z.number().optional(),updatedAt:z.number().optional(),updatedBy:z.string().nullable().optional(),updatedByName:z.string().nullable().optional(),isDeleted:z.boolean().default(!1)}),rd=z.object({articles:z.array(F2),total:z.number().optional()}),FC0=z.object({explicitApprove:z.string().default(""),explicitReject:z.string().default(""),exemptApprove:z.string().default(""),review:z.string().default("")}).passthrough(),NC0=z.object({type:z.string(),signKey:z.string().optional(),outboundName:z.string().optional(),mode:z.string().optional(),autoApprovalRate:z.number().optional(),apiKey:z.string().optional(),apiSecret:z.string().optional(),apiOrigin:z.string().optional(),corporationId:z.string().optional(),ebotSignKey:z.string().optional(),completionSignKey:z.string().optional(),outboundMessageId:z.string().optional(),completionMessageId:z.string().optional()}).passthrough(),MC0=z.enum(["assisted","semi_automatic","fully_automatic"]),cd=z.object({id:z.string(),url:z.string().url()}).passthrough(),N2=z.object({type:z.literal("webhook"),id:z.string(),name:z.string(),mode:MC0,incomingDocumentWebhook:cd,outgoingResultWebhook:z.string().url(),incomingManualResultWebhook:cd,secret:z.string().min(1),autoApprovalRate:z.number().int().min(0).max(100).optional(),materialPackFilePolicy:bE.default(fE)}).passthrough(),td=z.object({id:z.string().optional(),tenantId:z.string().optional(),tone:z.string().optional(),language:z.string().optional(),detailLevel:z.string().optional(),outputFormat:z.string().optional(),examples:z.array(z.string()).default([]),prohibitedPhrases:z.array(z.string()).default([]),customInstructions:z.string().optional(),updatedAt:z.number().optional(),decisionPreferences:FC0.optional(),integrationSystem:z.string().optional(),integrations:z.array(NC0).default([])}).passthrough(),AC0=z.object({id:z.string().optional(),sn:z.string().optional(),title:z.string().optional(),name:z.string().optional(),fields:z.array(z.unknown()).optional()}).passthrough(),PC0=z.object({_langfuseTraceId:z.string().optional(),simulation_batch_id:z.string().optional()}).passthrough(),nw=z.object({id:z.string(),tenantId:z.string().optional(),agentId:z.string().optional(),status:z.string().optional(),taskMode:z.string().optional(),finalExecutionMode:z.string().optional(),sourceSystem:z.string().optional(),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),documentId:z.string().optional(),document:AC0.optional(),result:z.unknown().optional(),pipelineData:z.unknown().optional(),sourceExtendData:PC0.optional(),ruleSetVersionNumber:z.number().optional(),ruleSetPublishedAt:z.number().optional(),ruleSetPublishedByName:z.string().optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),nE=z.object({records:z.array(nw).default([]),total:z.number().optional(),page:z.number().optional(),pageSize:z.number().optional()}).passthrough(),ad=z.object({id:z.string(),expiresAt:z.number().nullable().optional(),revokedAt:z.number().nullable().optional(),createdAt:z.number().nullable().optional(),lastUsedAt:z.number().nullable().optional(),useCount:z.number().default(0),note:z.string().nullable().optional(),link:z.string()}).passthrough(),sd=z.object({id:z.string(),token:z.string(),link:z.string()}).passthrough(),ed=z.object({userId:z.string(),password:z.string()}).passthrough(),$m=z.object({password:z.string()}).passthrough(),pw=z.object({_id:z.string(),tenantId:z.string().optional(),name:z.string(),mobile:z.string().optional(),email:z.string().optional(),departmentIds:z.array(z.string()).default([]),status:z.string().optional(),permissions:z.array(z.string()).default([]),createdAt:z.string().optional(),updatedAt:z.string().optional()}).passthrough(),Im=z.object({departments:z.array(z.record(z.string(),z.unknown())).default([]),users:z.array(pw).default([])}).passthrough(),pE=z.object({_id:z.string(),tenantId:z.string().optional(),name:z.string().optional(),parentId:z.string().nullable().optional(),ancestors:z.array(z.string()).default([]),provider:z.string().optional(),permissions:z.array(z.string()).default([]),isDeleted:z.boolean().optional(),syncedAt:z.string().optional(),createdAt:z.string().optional(),updatedAt:z.string().optional()}).passthrough(),cE=z.object({items:z.array(pE).default([])}).passthrough(),Um=z.object({items:z.array(pw).default([])}).passthrough(),Ym=z.object({lastSyncTime:z.union([z.string(),z.number(),z.null()])}).passthrough(),TC0=z.record(z.string(),z.unknown()),Jm=z.object({tagStats:z.array(TC0).default([]),totalRisks:z.number().default(0),analyzedRisks:z.number().default(0),pendingRisks:z.number().default(0)}).passthrough(),Qm=z.record(z.string(),z.unknown()),Km=z.object({expenses:z.array(Qm).default([]),total:z.number().optional()}).passthrough(),qm=z.object({invoices:z.array(Qm).default([]),total:z.number().optional(),feishuApprovalAppId:z.string().nullable().optional()}).passthrough(),Hm=z.record(z.string(),z.unknown()),Gm=z.object({provider:z.string(),config:z.record(z.string(),z.unknown()).default({})}).passthrough(),Wm=z.object({id:z.string(),name:z.string(),description:z.string().optional(),available:z.boolean().default(!0),fields:z.array(z.record(z.string(),z.unknown())).default([])}).passthrough(),wm=z.object({permissions:z.array(z.object({key:z.string(),name:z.string(),description:z.string().optional()}).passthrough()).default([])}).passthrough(),Vm=z.object({configs:z.array(z.record(z.string(),z.unknown())).default([])}).passthrough(),Zm=z.object({subscriptions:z.array(z.record(z.string(),z.unknown())).default([]),features:z.array(z.record(z.string(),z.unknown())).default([])}).passthrough(),zm=z.object({key:z.string(),type:z.string(),label:z.string(),column:z.string(),mask:z.string().optional()}).passthrough(),EC0=z.object({columns:z.array(zm).default([]),fieldKey:z.string().optional(),keyColumn:z.string().optional(),sheetName:z.string().optional(),fieldLabel:z.string().optional()}).passthrough(),Xm=z.object({id:z.string().optional(),listSheets:z.array(EC0).default([]),mainColumns:z.array(zm).default([]),workbookName:z.string().optional(),mainKeyColumn:z.string().optional(),mainSheetName:z.string().optional(),titleColumn:z.string().optional(),statusColumn:z.string().optional(),applicationDateColumn:z.string().optional(),updatedDateColumn:z.string().optional(),attachmentFieldKey:z.string().optional(),attachmentFieldLabel:z.string().optional()}).passthrough(),BC0=z.object({approvalCode:z.string(),nodeId:z.string().optional(),flowIds:z.array(z.string()).max(100).optional(),limit:z.number().int().positive().max(100).optional(),dataCollectionMode:z.string().optional(),signKey:z.string().optional(),rejectNodeName:z.string().nullable().optional(),skipInvoiceGeneration:z.boolean().optional(),skipExpenseExtraction:z.boolean().optional(),disableAttachmentCache:z.boolean().optional(),thinkingDepthOverride:z.enum(["default","medium","high"]).optional(),startTime:z.number().optional(),endTime:z.number().optional(),templateId:z.string().optional(),packageIds:z.array(z.string()).optional(),packageLabel:z.string().optional(),runMode:z.string().optional(),schemaConfig:Xm.optional()}).passthrough(),vC0=z.object({mode:z.string().optional(),conditions:z.array(z.object({label:z.string(),value:z.string()}).passthrough()).default([])}).passthrough(),RC0=z.object({kind:z.string().optional(),stage:z.string().optional(),code:z.string().optional(),message:z.string().optional()}).passthrough(),dE=z.object({id:z.string(),tenantId:z.string().optional(),approvalCode:z.string().optional(),nodeId:z.string().optional(),sourceSystem:z.string().optional(),status:z.string().optional(),totalCount:z.number().default(0),processedCount:z.number().default(0),successCount:z.number().default(0),failedCount:z.number().default(0),createdCount:z.number().default(0),createFailedCount:z.number().default(0),params:BC0.optional(),requestSummary:vC0.nullable().optional(),resultSummary:RC0.nullable().optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),mE=z.object({batchId:z.string()}).passthrough(),jC0=z.object({dataCollectionMode:z.string().optional(),flowIds:z.array(z.string()).max(100).optional(),rejectNodeName:z.string().nullable().optional(),skipInvoiceGeneration:z.boolean().optional(),skipExpenseExtraction:z.boolean().optional()}).passthrough(),Lm=z.object({id:z.string(),tenantId:z.string().optional(),name:z.string().optional(),description:z.string().optional(),approvalSystem:z.string().optional(),hosecloudConfig:jC0.optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),Dm=z.object({hasFeishu:z.boolean().default(!1),hasHosecloud:z.boolean().default(!1),hasWeaver:z.boolean().default(!1),hasHelios:z.boolean().default(!1),hasMaycur:z.boolean().default(!1),hasMaycurStandard:z.boolean().default(!1)}).passthrough(),Om=z.object({signKey:z.string().optional(),displayName:z.string().optional(),corporationId:z.string().optional()}).passthrough(),Fm=z.object({id:z.string(),tenantId:z.string().optional(),name:z.string().optional(),templateId:z.string().optional(),originalFileName:z.string().optional(),status:z.string().optional(),documentCount:z.number().optional(),attachmentCount:z.number().optional(),uploadedBy:z.string().optional(),schemaConfig:Xm.nullable().optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),CC0=z.object({hitScopes:z.array(z.string()).default([]),hitRuleIds:z.array(z.string()).default([]),notHitScopes:z.array(z.string()).default([]),notHitRuleIds:z.array(z.string()).default([])}).passthrough(),lE=z.object({id:z.string().min(1),name:z.string().min(1),enabled:z.boolean().default(!0),description:z.string().default(""),condition:CC0.default({hitScopes:[],hitRuleIds:[],notHitScopes:[],notHitRuleIds:[]}),level:z.enum(["medium","high"])}).passthrough(),VM1=z.object({defaultLevel:z.enum(["medium","high"]).default("medium"),routingPolicies:z.array(lE).default([])}).passthrough(),ZM1=z.object({dryRun:z.boolean().optional(),signKey:z.string().min(1).optional(),outboundName:z.string().optional(),specificationId:z.string().optional(),specificationName:z.string().optional(),mode:z.enum(["fully_automatic","semi_automatic","assisted"]).default("assisted"),autoApprovalRate:z.number().min(0).max(100).optional(),rejectResubmitMethod:z.enum(["node_default","to_ebot","from_start"]).optional(),autoApproveNodeNames:z.array(z.string()).optional(),apiKey:z.string().min(1),apiSecret:z.string().min(1),apiOrigin:z.string().default("production"),customApiUrl:z.string().optional()}).passthrough(),Nm=z.object({id:z.string().optional(),code:z.string().optional(),name:z.string().optional(),approvalSystem:z.string().optional()}).passthrough(),zM1=z.object({total:z.number(),dedupeBy:z.string(),unique:z.number(),byStatus:z.record(z.string(),z.number()),bySourceSystem:z.record(z.string(),z.number())}).passthrough();var mw=z.object({success:z.boolean().optional()}).passthrough(),_C0=z.object({items:z.array(z.object({_id:z.string()})).optional()}).passthrough(),SC0=z.object({user:z.unknown().optional(),session:z.object({token:z.string().optional()}).optional()}).passthrough(),Am=z.json();async function s0($,I){let U=await $.json();return I.parse(U.data??U)}async function v$($){return s0(await $.get("api/v1/auth/me"),dd)}async function Pm($){return s0(await $.get("api/auth/get-session"),md)}async function _6($){return s0(await $.get("api/v1/rules"),ld)}async function A2($,I){return s0(await $.post("api/v1/rules",{json:I}),bw)}async function oE($,I,U){return s0(await $.put(`api/v1/rules/${I}`,{json:U}),bw)}async function TU($,I){await $.delete(`api/v1/rules/${I}`)}async function lw($){let I=await $.post("api/v1/rules/batch-recode",{throwHttpErrors:!1}),U=await I.json().catch(()=>({}));return z.object({ok:z.boolean(),status:z.number(),body:z.unknown()}).parse({ok:I.ok,status:I.status,body:U})}async function R$($){return s0(await $.get("api/v1/rule-set-versions"),z.array(iw))}async function P2($,I){return s0(await $.get(`api/v1/rule-set-versions/${I}`),iw)}async function T2($,I){return s0(await $.post("api/v1/rule-set-versions/publish",{json:{versionName:I}}),od)}async function N9($,I={}){let U=new URLSearchParams;return U.set("offset",String(I.offset??0)),U.set("limit",String(I.limit??20)),U.set("sortBy",I.sortBy??"createdAt"),U.set("sortOrder",I.sortOrder??"desc"),I.scenarios?.forEach((Y,J)=>{U.set(`filter[scenarios][${J}]`,Y)}),s0(await $.get("api/v1/knowledge/articles",{searchParams:U}),rd)}async function Tm($,I){return s0(await $.get(`api/v1/knowledge/articles/${I}`),F2)}async function ow($,I){return s0(await $.post("api/v1/knowledge/articles",{json:{...I,contentType:I.contentType??"policy",status:I.status??"published",enabled:I.enabled??!0,scenarios:I.scenarios&&I.scenarios.length>0?I.scenarios:["audit"],tags:I.tags??[]}}),F2)}async function rw($,I,U){let Y=Object.fromEntries(Object.entries(U).filter(([,J])=>J!==void 0));return s0(await $.patch(`api/v1/knowledge/articles/${I}`,{json:{attributes:Y}}),F2)}async function tw($,I){return await $.delete(`api/v1/knowledge/articles/${I}`),{success:!0,id:I}}async function M1($,I="api/v1/agent/ai-approval/config"){return s0(await $.get(I),td)}async function M8($,I,U="api/v1/agent/ai-approval/config"){return await $.post(U,{json:I}),M1($,U)}async function rE($,I,U="api/v1/agent/ai-approval/config"){let Y=await $.post(U,{json:I}),J=await Y.json().catch(()=>({})),Q=mw.safeParse(J.data??J);return Q.success?Q.data.success??Y.ok:Y.ok}async function w5($,I="api/v1/agent/ai-approval/config"){let U=await M1($,I);return tE(U.integrations)}async function Em($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=tE(J.integrations),K=Sm(I,Q,U);if(!await rE($,{...J,integrations:[...J.integrations,K]},Y))throw Error("Seal did not confirm saving the Webhook integration");return K}async function Bm($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=tE(J.integrations),K=Sm(I,Q,U);return{before:J,after:{...J,integrations:[...J.integrations,K]},integration:K}}async function vm($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=aw(J.integrations),K=sw(Q,I),q=gm(K.integration,U);if(!await rE($,{...J,integrations:J.integrations.map((G,W)=>W===K.index?q:G)},Y))throw Error("Seal did not confirm saving the Webhook integration");return q}async function Rm($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=aw(J.integrations),K=sw(Q,I),q=gm(K.integration,U);return{before:J,after:{...J,integrations:J.integrations.map((H,G)=>G===K.index?q:H)},integration:q}}async function jm($,I,U="api/v1/agent/ai-approval/config"){let Y=await M1($,U),J=aw(Y.integrations),Q=sw(J,I);if(!await rE($,{...Y,integrations:Y.integrations.filter((q,H)=>H!==Q.index)},U))throw Error("Seal did not confirm deleting the Webhook integration");return Q.integration}async function Cm($,I,U="api/v1/agent/ai-approval/config"){let Y=await M1($,U),J=aw(Y.integrations),Q=sw(J,I);return{before:Y,after:{...Y,integrations:Y.integrations.filter((K,q)=>q!==Q.index)},integration:Q.integration}}function M9($,I){let U=I.trim();if(!U)throw Error("Webhook selector must not be empty");let Y=$.find((Q)=>Q.id===U);if(Y)return Y;let J=$.filter((Q)=>Q.name===U);if(J.length===1)return J[0];if(J.length>1)throw Error(`Multiple Webhook integrations match name: ${U}. Use the integration ID.`);throw Error(`Webhook integration not found: ${U}`)}function _m($,I){let U=I?.trim().toLowerCase();if(!U)return $;return $.filter((Y)=>[Y.id,Y.name,Y.mode,Y.outgoingResultWebhook,Y.incomingDocumentWebhook.url,Y.incomingManualResultWebhook.url].some((J)=>J.toLowerCase().includes(U)))}function tE($){return $.filter((I)=>I.type==="webhook").map((I)=>N2.parse(I))}function aw($){return $.flatMap((I,U)=>{if(I.type!=="webhook")return[];return[{index:U,integration:N2.parse(I)}]})}function sw($,I){let U=M9($.map((Y)=>Y.integration),I);return $.find((Y)=>Y.integration.id===U.id)}function Sm($,I,U){let Y=M2(U.name,"name"),J=U.mode??"assisted",Q=hm(U.outgoingResultWebhook,"outgoingResultWebhook"),K=um(U.autoApprovalRate??60),q=gC0(I),H=`wh_${q}_${Mm(8).toString("hex").slice(0,7)}`,G=$8($);return N2.parse({type:"webhook",id:`integration-${q}`,name:Y,mode:J,incomingDocumentWebhook:{id:H,url:`${G}/api/v1/integrations/webhook/${H}/document`},outgoingResultWebhook:Q,incomingManualResultWebhook:{id:H,url:`${G}/api/v1/integrations/webhook/${H}/manual-result`},secret:U.secret?M2(U.secret,"secret"):ym(),autoApprovalRate:K,materialPackFilePolicy:AU(U.materialPackFilePolicy)})}function gm($,I){return N2.parse({...$,...I.name===void 0?{}:{name:M2(I.name,"name")},...I.mode===void 0?{}:{mode:I.mode},...I.outgoingResultWebhook===void 0?{}:{outgoingResultWebhook:hm(I.outgoingResultWebhook,"outgoingResultWebhook")},...I.autoApprovalRate===void 0?{}:{autoApprovalRate:um(I.autoApprovalRate)},...I.rotateSecret||I.secret!==void 0?{secret:I.rotateSecret?ym():M2(I.secret??"","secret")}:{},...I.materialPackFilePolicy===void 0?{}:{materialPackFilePolicy:pd($.materialPackFilePolicy,I.materialPackFilePolicy)}})}function gC0($){let I=new Set($.map((Y)=>Y.id)),U=Date.now();while(I.has(`integration-${U}`))U+=1;return U}function ym(){return Mm(16).toString("hex")}function M2($,I){let U=$.trim();if(!U)throw Error(`Webhook ${I} must not be empty`);return U}function hm($,I){let U=M2($,I);try{return new URL(U).toString()}catch{throw Error(`Webhook ${I} must be a valid URL`)}}function um($){if(!Number.isInteger($)||$<0||$>100)throw Error("Webhook autoApprovalRate must be an integer between 0 and 100");return $}async function ew($,I={}){let[U,Y,J]=await Promise.all([_6($),N9($,{limit:I.documentLimit??50}),M1($,I.stylePreferencesEndpoint).then((Q)=>({ok:!0,data:Q}),(Q)=>({ok:!1,error:Q instanceof Error?Q.message:String(Q)}))]);return{rules:U,documents:Y,stylePreferences:J}}async function j$($,I={}){let U=new URLSearchParams;return U.set("offset",String(I.offset??0)),U.set("limit",String(I.limit??50)),C6(U,"fromTimestamp",I.fromTimestamp),C6(U,"toTimestamp",I.toTimestamp),C6(U,"startDate",I.startDate),C6(U,"endDate",I.endDate),C6(U,"status",I.status),C6(U,"sourceSystem",I.sourceSystem),C6(U,"taskMode",I.taskMode),C6(U,"search",I.search),C6(U,"sourceDocumentSN",I.sourceDocumentSN),C6(U,"sourceDocumentId",I.sourceDocumentId),yC0(U,"manualApprovalStatus",I.manualApprovalStatus),s0(await $.get("api/v1/approvals",{searchParams:U}),nE)}async function T4($,I){return s0(await $.get(`api/v1/approvals/${I}`),nw)}async function aE($,I){let U=await $.get(`api/v1/simulation/batch/${I}/records`).json(),Y=U.data??U;if(Array.isArray(Y))return z.array(nw).parse(Y);return nE.parse(Y).records}async function xm($,I){return s0(await $.post("api/v1/simulation/create-batch",{json:I}),mE)}async function km($,I){return s0(await $.post("api/v1/simulation/create-material-pack-batch",{json:I}),mE)}async function fm($,I={}){let U=await $.get("api/v1/simulation/batches",{searchParams:{limit:String(I.limit??50)}}).json(),Y=U.data??U;return z.array(dE).parse(Y)}async function $V($,I){return s0(await $.get(`api/v1/simulation/batch/${I}`),dE)}async function bm($){let I=await $.get("api/v1/simulation/templates").json(),U=I.data??I;return z.array(Lm).parse(U)}async function sE($){return s0(await $.get("api/v1/simulation/integration-status"),Dm)}async function eE($){let I=await $.get("api/v1/simulation/hosecloud-integrations").json(),U=I.data??I;return z.array(Om).parse(U)}async function im($,I){let Y=await(await $.delete(`api/v1/simulation/batch/${encodeURIComponent(I)}/data`)).json().catch(()=>({}));return Y.data??Y}async function nm($,I){let U=I?"api/v1/simulation/hosecloud-specifications-by-sign-key":"api/v1/simulation/hosecloud-specifications",Y=I?new URLSearchParams({signKey:I}):void 0,J=await $.get(U,{searchParams:Y}).json(),Q=J.data??J;return z.array(Nm).parse(Q)}async function pm($,I){let U=await $.post("api/hosecloud/corporation",{json:I}).json(),Y=U.data??U;return z.object({corporationId:z.string()}).parse(Y)}async function cm($,I){let Y=await(await $.post("api/hosecloud/outbound-config/sync",{json:I})).json().catch(()=>({}));return Y.data??Y}async function dm($,I){let U=new FormData;return U.append("file",new Blob([new Uint8Array(I.fileBuffer)]),I.fileName),s0(await $.post("api/v1/material-packages/upload",{body:U}),Fm)}function C6($,I,U){if(U)$.set(I,U)}function yC0($,I,U){if(!U)return;(Array.isArray(U)?U:[U]).map((J)=>J.trim()).filter(Boolean).forEach((J,Q)=>{$.set(`${I}[${Q}]`,J)})}async function mm($){return s0(await $.get("api/v1/delegation/list"),z.array(ad))}async function PU($,I){return s0(await $.post("api/v1/delegation/create",{json:I??{}}),sd)}async function lm($,I){let U=await $.post("api/v1/delegation/revoke",{json:{tokenId:I}}),Y=await U.json(),J=mw.safeParse(Y.data??Y);return J.success?J.data.success??U.ok:U.ok}async function om($,I){let U=I.departmentIds&&I.departmentIds.length>0?I.departmentIds:void 0;if(!U){let Y=await $.get("api/v1/contacts/departments/root/children").json(),J=_C0.safeParse(Y.data??Y),Q=J.success?J.data.items?.[0]?._id:void 0;if(Q)U=[Q]}return s0(await $.post("api/v1/contacts/local/users",{json:{name:I.name,phone:I.phone,permissions:I.permissions??[],departmentIds:U??[]}}),ed)}async function $B($,I){return s0(await $.post(`api/v1/contacts/local/users/${I}/reset-password`,{json:{}}),$m)}async function cw($,I){return s0(await $.get(`api/v1/contacts/users/${I}`),pw)}async function dw($,I=""){return s0(await $.get("api/v1/contacts/search",{searchParams:{query:I}}),Im)}async function rm($){return s0(await $.get("api/v1/contacts/departments/root/children"),cE)}async function tm($,I){return s0(await $.get(`api/v1/contacts/departments/${encodeURIComponent(I)}`),pE)}async function am($,I){return s0(await $.get(`api/v1/contacts/departments/${encodeURIComponent(I)}/children`),cE)}async function sm($,I){return s0(await $.get(`api/v1/contacts/departments/${encodeURIComponent(I)}/users`),Um)}async function em($){return s0(await $.get("api/v1/contacts/last-sync-time"),Ym)}async function $l($,I={}){let U=hC0(),Y=new URLSearchParams;if(C6(Y,"startDate",I.startDate??U.startDate),C6(Y,"endDate",I.endDate??U.endDate),I.limit!==void 0)Y.set("limit",String(I.limit));return s0(await $.get("api/v1/insight/stats",{searchParams:Y}),Jm)}function hC0(){let $=new Date,I=new Date($.getFullYear(),$.getMonth(),1),U=new Date($.getFullYear(),$.getMonth()+1,0,23,59,59,999);return{startDate:I.toISOString(),endDate:U.toISOString()}}function Il($){let I=new URLSearchParams;return C6(I,"filter[startDate]",$.startDate),C6(I,"filter[endDate]",$.endDate),C6(I,"filter[search]",$.search),I.set("offset",String($.offset??0)),I.set("limit",String($.limit??50)),I}async function Ul($,I={}){return s0(await $.get("api/v1/expenses/list",{searchParams:Il(I)}),Km)}async function Yl($,I={}){return s0(await $.get("api/v1/invoice/list",{searchParams:Il(I)}),qm)}async function Jl($){return s0(await $.get("api/v1/integrations/feishu/simulation/approval-definitions"),z.array(Hm))}async function Ql($,I){let U=await $.delete(`api/v1/contacts/local/users/${I}`),Y=await U.json(),J=mw.safeParse(Y.data??Y);return J.success?J.data.success??U.ok:U.ok}async function IB($,I){let U=await $.post(`api/v1/contacts/local/users/${I}/activate`,{json:{}}),Y=await U.json(),J=mw.safeParse(Y.data??Y);return J.success?J.data.success??U.ok:U.ok}async function uC0($,I){let U=await $.post("api/auth/sms-otp/sign-in-password",{json:I}),Y=U.headers.get("set-auth-token"),J=SC0.parse(await U.json()),Q=Y??J.session?.token;if(!Q)throw Error("Failed to retrieve authentication token from login response");return{token:Q,user:J.user}}async function Kl($,I,U,Y){let J;if(I.userIdOrPhone.startsWith("+")||/^\d{11}$/.test(I.userIdOrPhone)){let V=await dw($,I.userIdOrPhone),X=V.users.find((L)=>L.mobile?.includes(I.userIdOrPhone)||L._id===I.userIdOrPhone)??V.users[0];if(!X)throw Error(`User not found with phone/ID: ${I.userIdOrPhone}`);J=X}else J=await cw($,I.userIdOrPhone).catch(async()=>{let V=await dw($,I.userIdOrPhone),X=V.users.find((L)=>L.name===I.userIdOrPhone)??V.users[0];if(!X)throw Error(`User not found: ${I.userIdOrPhone}`);return X});if(J.status==="resigned")await IB($,J._id),J=await cw($,J._id);let Q=J,K=Array.isArray(Q.identities)&&Q.identities.some((V)=>V.provider&&V.provider!=="local")||!!Q.apps?.hosecloud;if(K&&Y&&Y.source.type==="hose"){let X=(J.mobile||Q.identities?.[0]?.providerId||"").replace(/^\+86/,""),L=Q.identities?.find((F)=>F.provider==="hosecloud")?.providerId,D=Q.apps?.hosecloud?.boundId||L||(X?`${Y.source.corpId}:${X}`:void 0);if(D){let F=await hw(Y),E=(await uw({...Y.source,staffId:D},F)).token,A=z2(Y,Y.source),R;try{R=await W5.get(`${$8(A)}/api/auth/oauth2/session/oem-hosecloud`,{searchParams:{token:E,returnToken:"1"},timeout:30000}).json()}catch(y){if(y instanceof H$&&y.response.status===400)throw Error(`Seal AI 用户“${J.name}”未绑定合思账号,无法生成个人协助链接。`);throw y}let k=R.token??R.accessToken??R.data?.token;if(k){let y=await U(k),f=await PU(y,{note:I.note??`Delegation generated by admin for ${J.name}`});return{targetUser:J,delegation:f,temporaryPassword:"N/A (Hose SSO)"}}}}let q;try{q=await $B($,J._id)}catch(V){if(K)throw Error(`用户 "${J.name}" (${J.mobile||J._id}) 为合思同步账号 (provider: hosecloud),无 Seal 本地密码。`+"Seal 系统暂不支持对同步账号直接重置本地密码。");throw V}let G=(J.mobile||J.identities?.[0]?.providerId||"").replace(/^\+86/,"");if(!G)throw Error(`User ${J.name} has no associated phone number for password login`);let{token:W}=await uC0($,{phone:G,password:q.password}),w=await U(W),Z=await PU(w,{note:I.note??`Delegation generated by admin for ${J.name}`});return{targetUser:J,delegation:Z,temporaryPassword:q.password}}async function ql($){return s0(await $.get("api/v1/llm/config"),Gm)}async function Hl($){return s0(await $.get("api/v1/llm/providers"),z.array(Wm))}async function Gl($){return s0(await $.get("api/v1/permissions/available"),wm)}async function Wl($){return s0(await $.get("api/v1/permissions/configs"),Vm)}async function wl($){return s0(await $.get("api/v1/billing/status"),Zm)}async function Vl($){let U=await(await $.get("api/v1/billing/plans")).json();return Am.parse(U.data??U)}async function Zl($){let U=await(await $.get("api/v1/billing/features")).json();return Am.parse(U.data??U)}var fw0=FI(Vh(),1);import{existsSync as uw0,mkdirSync as xw0,statSync as l21}from"node:fs";import{homedir as o21}from"node:os";import{dirname as r21,resolve as cL}from"node:path";function kw0($,I=!1){if($===void 0||$===null||$==="")return;if(typeof $==="number")return String($);let U=String($).trim();if(!U)return;if(/^\d{10,13}$/.test(U))return U.length===10?`${U}000`:U;if(/^\d{4}-\d{2}-\d{2}$/.test(U)){let Q=new Date(`${U}${I?"T23:59:59.999+08:00":"T00:00:00.000+08:00"}`).getTime();if(!Number.isNaN(Q))return String(Q)}let Y=new Date(U).getTime();if(!Number.isNaN(Y))return String(Y);return U}function t21($){if(!$)return;let I=Array.isArray($)?$:[$],U=[];for(let Y of I){let J=Y.trim().toUpperCase();if(["APPROVED","已通过","已完成","已支付","已支付/审批完成"].includes(J))U.push("APPROVED");else if(["TERMINATED","REJECTED","REJECT","驳回","被驳回","已驳回"].includes(J))U.push("TERMINATED");else if(["PROCESSING","审批中","处理中"].includes(J))U.push("PROCESSING");else if(["CANCELLED","CANCELED","已撤回","已撤销"].includes(J))U.push("CANCELLED");else if(J)U.push(J)}return U.length>0?U:void 0}function a21($,I,U){if(!I)return U?`${$} (${U})`:$;return(I.split(/[。\n\r;;!!]/)[0]?.trim()||I.trim()).replace(/[*#`_]/g,"").trim().slice(0,22)}function s21($){if($.outputFile){let K=cL($.outputFile),q=r21(K);if(!uw0(q))xw0(q,{recursive:!0});return K}let I=$.corpName.replace(/[/\\?%*:|"<>]/g,"_").trim()||"审批记录",U=$.dateTag||new Date().toISOString().slice(0,10),Y=$.recordCount>0?`${$.recordCount}条`:"空数据",J=`${I}_审核记录_${U}_${Y}.xlsx`,Q;if($.toDownloads)Q=cL(o21(),"Downloads");else Q=cL(process.cwd(),"exports");if(!uw0(Q))xw0(Q,{recursive:!0});return cL(Q,J)}async function dL($,I,U={}){let Y=I.name||I.id,J=U.pageSize??100,Q=U.pageDelayMs??250,K=U.limit??1e5,q=kw0(U.startDate,!1),H=kw0(U.endDate,!0),G=t21(U.manualApprovalStatus);console.error(`正在加载企业「${Y}」审核规则集...`);let W=new Map;try{(await _6($)).rules.forEach((p,n)=>{let S=`rule-${p.code??n}`,b=a21(S,p.description,p.scope);W.set(S,{id:S,code:String(p.code??n),title:`[${S}] ${b}`,desc:p.description})})}catch(j){console.error(`⚠️ 加载规则字典失败: ${j.message},将仅导出基础信息列。`)}let w=Array.from(W.keys()).sort((j,p)=>{let n=parseInt(j.replace(/\D/g,""),10)||0,S=parseInt(p.replace(/\D/g,""),10)||0;return n-S});console.error(`已就绪 ${w.length} 个规则列。开始拉取单据...`);let Z=[],V=0,X=0;while(Z.length0)try{j=await j$($,{limit:J,offset:V,startDate:q,endDate:H,status:U.status,manualApprovalStatus:G});break}catch(S){if(p--,console.error(`分页拉取失败 (offset=${V}): ${S.message},剩余重试 ${p} 次...`),p===0)throw S;await new Promise((b)=>setTimeout(b,1000))}if(!j||!j.records||j.records.length===0)break;X=j.total??X;for(let S of j.records){if(U.includeCompletedOnly&&S.status!=="completed")continue;if(S.status==="completed"&&(!S.result||!S.result.rulesResult))try{let b=await T4($,S.id);Z.push(b)}catch{Z.push(S)}else Z.push(S);if(Z.length>=K)break}V+=j.records.length;let n=X>0?(V/X*100).toFixed(1):"-";if(V%500===0||V>=X||Z.length>=K)console.error(`[进度] 已读取单据: ${V}/${X} (${n}%),有效加入: ${Z.length} 条`);if(j.records.length=X)break;if(Q>0)await new Promise((S)=>setTimeout(S,Q))}console.error(`成功拉取 ${Z.length} 条单据数据,正在生成高保真 Excel...`);let L=new fw0.default.Workbook;L.creator="Seal AI (seal-use)",L.created=new Date;let D=L.addWorksheet("审核记录明细",{views:[{state:"frozen",ySplit:1,xSplit:2}]}),F=[{header:"单据编号",key:"sn",width:16},{header:"单据模板名称",key:"templateName",width:26},{header:"来源系统",key:"sourceSystem",width:12},{header:"任务模式",key:"taskMode",width:12},{header:"状态",key:"status",width:12},{header:"AI行为",key:"aiAction",width:14},{header:"AI决策",key:"aiDecision",width:14},{header:"思考深度",key:"thinkingDepth",width:12},{header:"人工审核",key:"manualStatus",width:16},{header:"人工驳回原因",key:"humanRejectReason",width:36},{header:"创建时间",key:"createdAt",width:20},{header:"任务耗时",key:"duration",width:12},{header:"关联规则数",key:"hitRuleCount",width:12},{header:"关联规则汇总",key:"hitRulesSummary",width:30},{header:"AI审核结论摘要",key:"aiSummary",width:45}],P=w.map((j)=>{return{header:W.get(j).title,key:`rule_${j}`,width:22}});D.columns=[...F,...P];let E=D.getRow(1);E.height=32,E.eachCell((j,p)=>{let n=p<=F.length;j.font={name:"Microsoft YaHei",bold:!0,color:{argb:"FFFFFFFF"},size:11},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:n?"FF1E3A8A":"FF334155"}},j.alignment={vertical:"middle",horizontal:n&&p<=2?"left":"center",wrapText:!1}});let A={},R=0;for(let j of Z){let p=j.result||{},n=j.document||{},S="未知模板";if(Array.isArray(n.fields)){let M0=n.fields.find((Q0)=>Q0.label==="单据模板"||Q0.label==="流程名称"||Q0.key==="templateName"||Q0.key==="specificationId"||Q0.key==="formName");if(M0?.value)S=String(M0.value)}if(S==="未知模板"&&(n.name||n.title))S=n.name||n.title;let b=j.taskMode||"-";if(b==="assisted")b="辅助审核";else if(b==="simulation")b="测试任务";else if(b==="automatic")b="自动审批";let i=j.status||"-";if(i==="completed")i="已完成";else if(i==="processing")i="处理中";else if(i==="failed")i="失败";let U0=p.decision||j.aiDecision||"-",B=U0,x="-";if(U0==="APPROVE")B="通过",x="添加评论";else if(U0==="REVIEW")B="转交复核",x="转交复核";else if(U0==="REJECT")B="驳回",x="驳回";let c="-";if(j.createdAt&&j.updatedAt&&j.status==="completed"){let M0=Math.round((Number(j.updatedAt)-Number(j.createdAt))/1000);if(M0>=60)c=`${Math.floor(M0/60)}分${M0%60}秒`;else if(M0>0)c=`${M0}秒`}let r=j.manualApprovalRecord||{},J0="-";if(r.status?.label)J0=String(r.status.label);else if(r.status?.type){let M0=String(r.status.type);if(M0==="APPROVED")J0="已通过";else if(M0==="TERMINATED")J0="被驳回";else if(M0==="PROCESSING")J0="处理中";else if(M0==="CANCELLED")J0="已撤回";else J0=M0}A[J0]=(A[J0]||0)+1;let w0=r.rejectComment?String(r.rejectComment).trim():"-";if(w0!=="-")R++;let A0=new Map,j0=[];if(Array.isArray(p.rulesResult)){for(let M0 of p.rulesResult)if(M0.id)A0.set(M0.id,M0.checkResult||"PASS"),j0.push(M0.id)}if(Array.isArray(p.hitRules)){for(let M0 of p.hitRules)if(M0.id&&!A0.has(M0.id))A0.set(M0.id,"TRIGGERED"),j0.push(M0.id)}let q1="-";if(j.createdAt)q1=new Date(Number(j.createdAt)).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai",hour12:!1});let k0={sn:j.sourceDocumentSN||j.sourceDocumentId||"-",templateName:S,sourceSystem:j.sourceSystem||"合思",taskMode:b,status:i,aiAction:x,aiDecision:B,thinkingDepth:"标准",manualStatus:J0,humanRejectReason:w0,createdAt:q1,duration:c,hitRuleCount:j0.length,hitRulesSummary:j0.join(", ")||"-",aiSummary:p.summary||"-"};for(let M0 of w){let Q0=A0.get(M0);if(Q0)if(Q0==="PASS")k0[`rule_${M0}`]="关联 (通过)";else if(Q0==="FAIL")k0[`rule_${M0}`]="关联 (不通过)";else if(Q0==="UNKNOWN")k0[`rule_${M0}`]="关联 (待复核)";else k0[`rule_${M0}`]="已关联";else k0[`rule_${M0}`]="未关联"}let I1=D.addRow(k0);I1.height=24,I1.eachCell((M0,Q0)=>{let R0=String(M0.value||"");if(M0.font={name:"Microsoft YaHei",size:10},M0.border={top:{style:"thin",color:{argb:"FFE2E8F0"}},bottom:{style:"thin",color:{argb:"FFE2E8F0"}},left:{style:"thin",color:{argb:"FFE2E8F0"}},right:{style:"thin",color:{argb:"FFE2E8F0"}}},Q0<=F.length){if(M0.alignment={vertical:"middle",horizontal:[1,2,10,14,15].includes(Q0)?"left":"center",wrapText:[10,14,15].includes(Q0)},Q0===7){if(R0==="通过")M0.font={color:{argb:"FF16A34A"},bold:!0};else if(R0==="转交复核")M0.font={color:{argb:"FFD97706"},bold:!0};else if(R0==="驳回")M0.font={color:{argb:"FFDC2626"},bold:!0}}if(Q0===9){if(R0.includes("驳回"))M0.font={name:"Microsoft YaHei",size:10,color:{argb:"FFDC2626"},bold:!0},M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFEE2E2"}};else if(R0.includes("通过")||R0.includes("支付")||R0.includes("完成"))M0.font={name:"Microsoft YaHei",size:10,color:{argb:"FF16A34A"},bold:!0},M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFDCFCE7"}};else if(R0.includes("处理中")||R0.includes("审批中"))M0.font={name:"Microsoft YaHei",size:10,color:{argb:"FF2563EB"}},M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFEFF6FF"}}}if(Q0===10&&R0!=="-")M0.font={name:"Microsoft YaHei",size:9,color:{argb:"FF991B1B"}}}else if(M0.alignment={vertical:"middle",horizontal:"center"},R0.includes("不通过"))M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFEE2E2"}},M0.font={color:{argb:"FF991B1B"},bold:!0};else if(R0.includes("通过"))M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFDCFCE7"}},M0.font={color:{argb:"FF166534"},bold:!0};else if(R0.includes("待复核")||R0.includes("已关联"))M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFEF3C7"}},M0.font={color:{argb:"FF92400E"}};else M0.font={color:{argb:"FF94A3B8"}}})}let k;if(U.startDate){let j=String(U.startDate);if(/^\d{4}-\d{2}-\d{2}/.test(j))k=`${j.slice(0,10)}至今`;else if(/^\d+$/.test(j)){let p=new Date(Number(j));k=`${p.getFullYear()}${String(p.getMonth()+1).padStart(2,"0")}${String(p.getDate()).padStart(2,"0")}至今`}}let y=s21({outputFile:U.outputFile,toDownloads:U.toDownloads,corpName:Y,dateTag:k,recordCount:Z.length});await L.xlsx.writeFile(y),console.error(`Excel 文件已成功落地: ${y}`);let f=l21(y);return{filePath:y,corpId:I.id,corpName:Y,recordCount:Z.length,ruleColumnCount:w.length,statusCounts:A,rejectReasonCount:R,fileSizeBytes:f.size,exportedAt:new Date().toISOString()}}import bw0 from"node:fs";import iw0 from"node:path";function e21($){try{let I=new URL($);if(I.search)return`${I.origin}${I.pathname}?[MASKED]`;return $}catch{return $.replace(/\?.*$/,"?[MASKED]")}}function $K1($){return $.replace(/[/\\?%*:|"<>]/g,"_").trim()||"attachment"}function nw0($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}function IK1($){return $&&typeof $==="object"&&!Array.isArray($)?$:void 0}function _1($){return typeof $==="string"&&$.trim()?$.trim():void 0}function Zh($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function UK1($){if(!$)return;if(typeof $==="string")try{let I=JSON.parse($);if(I&&typeof I==="object")return I}catch{return}if(typeof $==="object"&&!Array.isArray($))return $;return}function YK1($,I,U){if(U?.fieldType?.toUpperCase()==="ATTACHMENT"){if(Boolean($.fileName||$.filename||$.name||$.originalName||$.fileId||$.ossPath||$.url||$.ossSignedUrl||$.signedUrl||$.token))return!0}if($.ossSignedUrl||$.signedUrl)return!0;let Y=$.fileName??$.filename??$.name??$.originalName,J=$.fileId??$.id??$.attachmentId,Q=$.ossPath??$.ossKey,K=$.url??$.downloadUrl??$.previewUrl,q=$.mimeType??$.mimetype??$.contentType,H=$.ossFileSize??$.fileSize??$.size;if(Y&&(K||Q||J||H))return!0;if(J&&(q||H||Q||K))return!0;let G=Object.keys($).map((Z)=>Z.toLowerCase());return(/(attachment|attachments|invoice|receipt|file|files|附件|发票)/i.test(I)||Boolean(U?.fieldKey&&/(attachment|attachments|invoice|receipt|file|files|附件|发票)/i.test(U.fieldKey))||Boolean(U?.fieldLabel&&/(attachment|attachments|invoice|receipt|file|files|附件|发票)/i.test(U.fieldLabel)))&&["filename","filename","mimetype","contenttype","fileid","osspath","signedurl","downloadurl","previewurl","attachmentid","ossfilesize","osssignedurl"].some((Z)=>G.includes(Z))}function JK1($,I,U){let Y=`${$} ${U?.fieldLabel??""} ${U?.fieldKey??""} ${_1(I.type)??""} ${_1(I.category)??""}`.toLowerCase();if(Y.includes("invoice")||Y.includes("发票"))return"invoice";if(Y.includes("receipt"))return"receipt";let J=(_1(I.fileName)??_1(I.name)??"").toLowerCase();if(J.includes("发票")||J.includes("invoice"))return"invoice";return"attachment"}function zh($,I,U,Y,J){if(Array.isArray($)){$.forEach((G,W)=>zh(G,`${I}.${W}`,U,Y,J));return}let Q=IK1($);if(!Q)return;let K=Q.type&&typeof Q.type==="string"||"label"in Q&&"value"in Q||"key"in Q&&"value"in Q,q=J;if(K)q={fieldLabel:_1(Q.label)??J?.fieldLabel,fieldKey:_1(Q.key)??J?.fieldKey,fieldType:_1(Q.type)??J?.fieldType};if(!(Array.isArray(Q.value)&&!Q.url&&!Q.ossSignedUrl&&!Q.fileId)&&YK1(Q,I,J)){let G=UK1(Q.token),W=_1(G?.key),w=_1(G?.fileId),Z=nw0({path:I,fieldPath:I,kind:JK1(I,Q,J),fileName:_1(Q.fileName)??_1(Q.filename)??_1(Q.name)??_1(Q.originalName),mimeType:_1(Q.mimeType)??_1(Q.mimetype)??_1(Q.contentType),fileId:_1(Q.fileId)??_1(Q.id)??_1(Q.attachmentId)??w,ossPath:_1(Q.ossPath)??_1(Q.ossKey)??W,url:_1(Q.url)??_1(Q.signedUrl)??_1(Q.downloadUrl)??_1(Q.previewUrl),ossSignedUrl:_1(Q.ossSignedUrl)??_1(Q.signedUrl),token:Q.token,tokenKey:W,category:_1(Q.category),ossFileSize:Zh(Q.ossFileSize)??Zh(Q.fileSize)??Zh(Q.size),invoiceId:_1(Q.invoiceId),sourceField:_1(Q.fieldName)??_1(Q.label)??J?.fieldLabel??J?.fieldKey}),V=JSON.stringify(Z);if(!Y.has(V))Y.add(V),U.push(Z)}for(let[G,W]of Object.entries(Q))zh(W,`${I}.${G}`,U,Y,q)}function OJ($,I={}){let U=[["document",$.document],["result",$.result],["pipelineData",$.pipelineData],["sourceExtendData",$.sourceExtendData]],Y=[],J=new Set;for(let[Q,K]of U)zh(K,Q,Y,J);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,count:Y.length,attachments:I.summary?Y.map((Q)=>nw0({path:Q.path,kind:Q.kind,fileName:Q.fileName,mimeType:Q.mimeType,fileId:Q.fileId,sourceField:Q.sourceField,ossFileSize:Q.ossFileSize,hasSignedUrl:Boolean(Q.ossSignedUrl)})):Y}}async function mL($){let{record:I,fetchFn:U=globalThis.fetch}=$,J=OJ(I,{summary:!1}).attachments,Q=iw0.resolve($.outDir??"./attachments");if(J.length===0)return{recordId:I.id,outDir:Q,total:0,downloaded:0,failed:0,files:[]};let K=[];if($.name){let w=$.name.toLowerCase();if(K=J.filter((Z)=>{let V=Z.fileName?.toLowerCase()??"",X=Z.fileId?.toLowerCase()??"",L=Z.tokenKey?.toLowerCase()??"";return V.includes(w)||X===w||L.includes(w)}),K.length===0){let Z=J.map((V)=>V.fileName??V.fileId).filter(Boolean).join(", ");throw Error(`未找到匹配 "${$.name}" 的附件。可选附件: ${Z||"无"}`)}}else if(!$.all){if(J.length>1){let w=J.map((Z)=>Z.fileName??Z.fileId).filter(Boolean).join(", ");throw Error(`共发现 ${J.length} 个附件。请使用 --all 下载全部附件,或使用 --name <名称|fileId> 指定下载项。可选附件: ${w}`)}K=J}else K=J;await bw0.promises.mkdir(Q,{recursive:!0});let q=[],H=new Set;for(let w of K){let Z=w.fileName??w.fileId??"attachment",V=$K1(Z),X=V,L=V.lastIndexOf("."),D=L>0?V.slice(0,L):V,F=L>0?V.slice(L):"",P=1;while(H.has(X.toLowerCase()))X=`${D}_${P}${F}`,P++;H.add(X.toLowerCase());let E=w.ossSignedUrl??w.url;if(!E){console.error(`⚠️ [跳过] 附件 "${Z}": 记录中无下载直链 (ossSignedUrl/url)`),q.push({name:X,fileId:w.fileId,status:"failed",error:"缺少可用的下载直链 (ossSignedUrl/url)。",sourceField:w.sourceField,tokenKey:w.tokenKey});continue}let A=e21(E);try{let R=await U(E,{signal:AbortSignal.timeout(60000)});if(!R.ok){let j=R.status===403?"HTTP 403 Forbidden: 签名直链可能已过期":`HTTP ${R.status} ${R.statusText}`;throw Error(j)}let k=await R.arrayBuffer(),y=Buffer.from(k);if(w.ossFileSize!==void 0&&y.length!==w.ossFileSize)console.error(`⚠️ [校验] 附件 "${X}" 实际大小 (${y.length} 字节) 与 ossFileSize (${w.ossFileSize} 字节) 不一致`);let f=iw0.join(Q,X);await bw0.promises.writeFile(f,y),console.error(`✓ 已下载: ${X} (${y.length} 字节)`),q.push({name:X,fileId:w.fileId,path:f,size:y.length,expectedSize:w.ossFileSize,status:"success",sourceField:w.sourceField,tokenKey:w.tokenKey})}catch(R){let k=R.message??String(R);console.error(`⚠️ [失败] 附件 "${Z}" 下载失败: ${k} [${A}]`),q.push({name:X,fileId:w.fileId,status:"failed",error:k,sourceField:w.sourceField,tokenKey:w.tokenKey})}}let G=q.filter((w)=>w.status==="success").length,W=q.filter((w)=>w.status==="failed").length;return{recordId:I.id,outDir:Q,total:K.length,downloaded:G,failed:W,files:q}}import{copyFileSync as cw0,existsSync as D$,mkdirSync as mw0,readFileSync as aL,readdirSync as rL,rmSync as ZK1,statSync as qH,writeFileSync as lw0}from"node:fs";import{homedir as sL}from"node:os";import{dirname as zK1,join as l8}from"node:path";var QK1=z.object({type:z.literal("hose"),domain:z.string().url().default("https://app.ekuaibao.com"),appKey:z.string().optional(),appSecurity:z.string().optional(),key:z.string().optional(),password:z.string().optional(),staffId:z.string(),corpId:z.string(),sealUrl:z.string().url().optional()}).superRefine(($,I)=>{if(!$.appKey&&!$.key)I.addIssue({code:"custom",path:["appKey"],message:"Hose source requires appKey or key"});if(!$.appSecurity&&!$.password)I.addIssue({code:"custom",path:["appSecurity"],message:"Hose source requires appSecurity or password"})}),KK1=z.object({type:z.literal("direct"),token:z.string(),sealUrl:z.string().url(),expiresIn:z.number().int().positive().default(3600),staffId:z.string().default("direct"),corpId:z.string().optional()}),qK1=z.object({type:z.literal("seal"),token:z.string(),sealUrl:z.string().url(),expiresIn:z.number().int().positive().default(3600),staffId:z.string().default("seal"),corpId:z.string().optional(),tenantId:z.string().optional(),tenantSlug:z.string().optional(),tenantName:z.string().optional(),providerUserId:z.string().optional(),provider:z.string().optional(),providerName:z.string().optional()}),HK1=z.discriminatedUnion("type",[QK1,KK1,qK1]),pw0=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Xh=z.record(z.string().regex(pw0,"Invalid HTTP header name"),z.string()).superRefine(($,I)=>{for(let U of Object.keys($))if(U.toLowerCase()==="authorization")I.addIssue({code:"custom",path:[U],message:"seal.headers cannot set Authorization; the Seal session supplies the bearer token"})}).optional(),Lh=z.record(z.string().regex(pw0,"Invalid cookie name"),z.string().refine(($)=>!/[\u0000-\u001f\u007f;]/.test($),{message:"Cookie value cannot contain control characters or semicolons"})).optional(),GK1=z.object({url:z.string().url().optional(),tenantSlug:z.string().optional(),headers:Xh,cookies:Lh,endpoints:z.object({approvalStylePreferences:z.string().default("api/v1/agent/ai-approval/config")}).default({approvalStylePreferences:"api/v1/agent/ai-approval/config"})}).default({endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}}),WK1=z.object({refreshTtl:z.number().int().positive().default(300)}).default({refreshTtl:300}),wK1=z.enum(["production","test"]).default("production"),Dh=z.object({id:z.string(),name:z.string(),seal:GK1,source:HK1,auth:WK1,environment:wK1,testCorpId:z.string().optional(),prodCorpId:z.string().optional()}),VK1=z.object({enabled:z.boolean().default(!1),activeLinter:z.string().default("builtin"),minScore:z.number().min(0).max(100).default(0)}).default({enabled:!1,activeLinter:"builtin",minScore:0}),lL=z.object({stateful:z.boolean().default(!1),defaultCorpId:z.string().min(1).optional(),testEnterprisesDir:z.string().min(1).optional(),lint:VK1});var Oh="SEAL_USE_ENTERPRISES_DIR",ow0="SEAL_HOME_ENTERPRISES_DIR",rw0="SEAL_USE_USER_ENTERPRISES_DIR",tw0="SEAL_HOME_USER_ENTERPRISES_DIR",aw0="SEAL_USE_CONFIG_FILE",sw0="SEAL_HOME_CONFIG_FILE",FJ=l8(sL(),".config","seal-use","enterprises"),tL=l8(sL(),".config","seal-home","enterprises"),oL=l8(sL(),".config","seal-use","config.json"),dw0=l8(sL(),".config","seal-home","config.json");function XK1($=FJ,I=tL){if(!D$(I))return{copied:[],deletedLegacyDir:!1};mw0($,{recursive:!0,mode:448});let U=[],Y=[];try{Y=rL(I).filter((w)=>w.endsWith(".json"))}catch{return{copied:[],deletedLegacyDir:!1}}for(let w of Y){let Z=l8(I,w),V=l8($,w);if(!D$(V))cw0(Z,V),U.push(w);else{let X=qH(Z).mtimeMs,L=qH(V).mtimeMs;if(X>L)cw0(Z,V),U.push(w)}}let J=604800000,Q=Date.now(),K=!1,q=!1;for(let w of rL(I)){let Z=l8(I,w),V=l8($,w),X=qH(Z);if(Q-X.mtimeMsqH(V).mtimeMs)K=!0}}let H=qH(I),G=Q-H.mtimeMsJ.endsWith(".json")).filter((J)=>!J.startsWith("example."))){let J=aL(l8(U,Y),"utf-8"),Q=Dh.parse(JSON.parse(J));I.set(Q.id,Q)}return Array.from(I.values())}function ew0(){let $=(process.env[Oh]??process.env[ow0])?.trim();if($)return D$($)?[$]:[];let I=(process.env[rw0]??process.env[tw0])?.trim(),U;if(I)U=D$(I)?[I]:[];else{try{XK1()}catch{}U=D$(FJ)?[FJ]:D$(tL)?[tL]:[FJ]}let J=O4().testEnterprisesDir?.trim(),Q=J?[J,...U]:U,K=[];for(let q of Q)if(D$(q)&&!K.includes(q))K.push(q);return K}function Fh(){let $=(process.env[Oh]??process.env[ow0])?.trim();if($)return $;let I=(process.env[rw0]??process.env[tw0])?.trim();if(I)return I;let U=O4().testEnterprisesDir?.trim();if(U&&D$(U))return U;return FJ}function YI(){let $=O4().testEnterprisesDir?.trim();return[`${Oh}=`,...$?[`testEnterprisesDir: ${$}`]:[],FJ,tL]}function JI(){let $=(process.env[aw0]??process.env[sw0])?.trim();if($)return $;if(D$(oL))return oL;if(D$(dw0))return dw0;return oL}function O4(){let $=JI();if(!D$($))return lL.parse({});return lL.parse(JSON.parse(aL($,"utf-8")))}function QI($){let I=lL.parse($),Y=(process.env[aw0]??process.env[sw0])?.trim()||oL;return mw0(zK1(Y),{recursive:!0,mode:448}),lw0(Y,`${JSON.stringify(I,null,2)} -`,{mode:384}),I}function LK1($){let I=ew0();for(let U of I){if(!D$(U))continue;for(let Y of rL(U).filter((J)=>J.endsWith(".json")).filter((J)=>!J.startsWith("example."))){let J=l8(U,Y);try{let Q=aL(J,"utf-8"),K=JSON.parse(Q);if(K&&typeof K==="object"&&K.id===$)return J}catch{}}}return}function F7($,I){let U=LK1($);if(!U)throw Error(`Enterprise config not found: ${$}`);let J={...JSON.parse(aL(U,"utf-8")),...I};for(let K of Object.keys(I))if(I[K]===void 0)delete J[K];let Q=Dh.parse(J);return lw0(U,`${JSON.stringify(Q,null,2)} -`,"utf-8"),Q}function NJ($,I,U=[]){let Y=I.corpId?.trim()||void 0,J=I.stateful?I.defaultCorpId?.trim()||void 0:void 0,Q=Y??J;if(Q){let q=$.find((H)=>H.id===Q);if(q)return q;throw Error(`No enterprise config found for ${Q}`)}if(!I.stateful)throw Error("Stateless mode is enabled. Every enterprise command requires --corp . Use `seal-home config mode stateful` to enable a default enterprise.");let K=$[0];if(K)return K;throw Error("No enterprise config found. Add a non-example JSON file under one of: "+(U.length?U.join(", "):"the configured enterprise directories"))}import{readFileSync as hH1}from"node:fs";import{randomBytes as uH1}from"node:crypto";var UV0=300000,$V0=new Map;function DK1($,I){return $.map((U)=>U.trim()).filter(Boolean).map((U)=>I?U:U.toLowerCase())}function OK1($,I){return I?$:$.toLowerCase()}function FK1($,I,U,Y){let J=OK1($,Y),Q=I.filter((K)=>J.includes(K));if(U==="all"&&Q.length!==I.length)return[];return Q}function NK1($){if(typeof $==="string")return $.split(/\r?\n/);return JSON.stringify($,null,2).split(/\r?\n/)}function MK1($,I){if(I.fields&&!I.fields.has($.field))return[];let U=NK1($.value),Y=[];return U.forEach((J,Q)=>{let K=FK1(J,I.keywords,I.matchMode,I.caseSensitive);if(K.length===0)return;let q=Math.max(0,Q-I.contextLines),H=Math.min(U.length,Q+I.contextLines+1),G={area:$.area,entityType:$.entityType,entityId:$.entityId,title:$.title,field:$.field,lineNumber:Q+1,matchedKeywords:K,matchedText:eL(J,I.maxChars),context:{before:I.snippetOnly?[]:U.slice(q,Q).map((W)=>eL(W,I.maxChars)),line:eL(J,I.maxChars),after:I.snippetOnly?[]:U.slice(Q+1,H).map((W)=>eL(W,I.maxChars))},metadata:$.metadata};if(I.snippetOnly)G.context={before:[],line:G.context.line,after:[]};Y.push(G)}),Y}function eL($,I){if(!I||$.length<=I)return $;return`${$.slice(0,Math.max(0,I))}...`}function AK1($){return[{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"description",value:$.description,metadata:{scope:$.scope,strictness:$.strictness,status:$.status}},{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"scope",value:$.scope,metadata:{strictness:$.strictness,status:$.status}}]}function IV0($){return $.rules.flatMap((I,U)=>{let Y=`${$.id}:${I.description.slice(0,32)}`,J={versionId:$.id,versionNumber:$.versionNumber,versionName:$.versionName,publishedByName:$.publishedByName,publishedAt:$.publishedAt,scope:I.scope,strictness:I.strictness,code:"code"in I?I.code:void 0,index:U};return[{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.description",value:I.description,metadata:J},{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.scope",value:I.scope,metadata:J}]})}function PK1($){return[{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"title",value:$.title,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"purpose",value:$.purpose,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"content",value:$.content,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}}]}function TK1($){let I=[];if($.decisionPreferences)for(let[U,Y]of Object.entries($.decisionPreferences))I.push({area:"preferences",entityType:"preference",field:`decisionPreferences.${U}`,value:Y,metadata:{integrationSystem:$.integrationSystem}});return $.integrations.forEach((U,Y)=>{I.push({area:"preferences",entityType:"integration",title:U.outboundName,field:`integrations[${Y}]`,value:U,metadata:{type:U.type,outboundName:U.outboundName,mode:U.mode,corporationId:U.corporationId}})}),I}async function EK1($,I,U){let Y=U.ruleVersionScope??"current",J=[I.id,`ruleVersionScope=${Y}`,`ruleVersionId=${U.ruleVersionId??""}`,`ruleVersionNumber=${U.ruleVersionNumber??""}`,`latestRuleVersion=${U.latestRuleVersion??!1}`,`documentLimit=${U.documentLimit??100}`].join("|"),Q=$V0.get(J);if(!U.refresh&&Q&&Date.now()J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}async function YV0($,I,U){let Y=U.matchMode??"any",J=U.caseSensitive??!1,Q=U.contextLines??3,K=new Set(U.areas??["rules","documents","preferences"]),q=U.maxResults??50,H=U.ruleVersionScope??"current",G=DK1(U.keywords,J),W=U.fields?.length?new Set(U.fields):void 0;if(G.length===0)throw Error("keywords must contain at least one non-empty string");let w=await EK1($,I,{documentLimit:U.documentLimit,refresh:U.refresh,ruleVersionScope:H,ruleVersionId:U.ruleVersionId,ruleVersionNumber:U.ruleVersionNumber,latestRuleVersion:U.latestRuleVersion}),Z=w.entries.filter((V)=>K.has(V.area)).flatMap((V)=>MK1(V,{keywords:G,matchMode:Y,caseSensitive:J,contextLines:Q,snippetOnly:U.snippetOnly,maxChars:U.maxChars,fields:W}));return{query:{keywords:U.keywords,matchMode:Y,areas:Array.from(K),caseSensitive:J,contextLines:Q,refresh:U.refresh??!1,ruleVersionScope:H,ruleVersionId:U.ruleVersionId,ruleVersionNumber:U.ruleVersionNumber,latestRuleVersion:U.latestRuleVersion??!1,snippetOnly:U.snippetOnly??!1,maxChars:U.maxChars,fields:U.fields},cache:{fetchedAt:new Date(w.fetchedAt).toISOString(),expiresAt:new Date(w.expiresAt).toISOString(),ttlMs:UV0},total:Z.length,returned:Math.min(Z.length,q),results:Z.slice(0,q)}}var JV0=z.object({level:z.enum(["error","warning","info"]),code:z.string(),message:z.string(),snippet:z.string().optional(),suggestion:z.string().optional()}),ZS1=z.object({score:z.number().min(0).max(100),passed:z.boolean(),issues:z.array(JV0)}),RK1=z.object({ruleId:z.string().optional(),ruleCode:z.string().optional(),ruleName:z.string().optional(),score:z.number().min(0).max(100),passed:z.boolean(),issues:z.array(JV0),description:z.string().optional()}),zS1=z.object({linter:z.string(),linterType:z.enum(["builtin","custom"]),totalRules:z.number(),healthyCount:z.number(),issueCount:z.number(),overallScore:z.number().min(0).max(100),passed:z.boolean(),issues:z.array(RK1)});var jK1=["原则上","尽量","适当","酌情","一般情况下","尽可能","合理控制","视情况","视具体情况"],CK1=["除非","特殊情况","特殊原因","经批准","经审批","经领导同意","除外","例外"],_K1=["备注","说明","附件","证明","邮件","截图","凭证","审批","单据","发票"];function KI($){let I=($.description||"").trim(),U=[];if(I.length<5)U.push({level:"error",code:"TOO_SHORT",message:"规则描述过于简短(少于 5 个字),大模型难以形成明确的判定逻辑",suggestion:"请补充具体的费用类型、核验条件与限制标准"});for(let H of jK1)if(I.includes(H))U.push({level:"error",code:"VAGUE_WORD",snippet:H,message:`包含主观模糊词 "${H}",容易导致大模型判定标准产生波动与幻觉`,suggestion:`建议移除 "${H}",改为具体的金额上限、枚举范围或刚性判定条件`});let Y=CK1.find((H)=>I.includes(H)),J=_K1.some((H)=>I.includes(H));if(Y&&!J)U.push({level:"warning",code:"HANGING_EXCEPTION",snippet:Y,message:`包含例外条款 "${Y}",但未指定 AI 从何处核验该例外成立的依据`,suggestion:'建议补充明确的凭据来源(例如:"需在【单据备注】中说明原因" 或 "需在【附件】中上传审批截图")'});let Q=U.filter((H)=>H.level==="error").length,K=U.filter((H)=>H.level==="warning").length;return{score:Math.max(0,100-Q*25-K*10),passed:Q===0,issues:U}}import{existsSync as Nh,readdirSync as OS1}from"node:fs";import{homedir as SK1}from"node:os";import{isAbsolute as gK1,join as N7,resolve as yK1}from"node:path";import{pathToFileURL as hK1}from"node:url";var Mh=N7(SK1(),".config","seal-use","linters"),Ah=N7(process.cwd(),"linters");function uK1($){if(!$||$==="builtin")return;if(gK1($)||$.startsWith("./")||$.startsWith("../")){let U=yK1($);if(Nh(U))return U;for(let Y of[".ts",".js",".mjs"])if(Nh(`${U}${Y}`))return`${U}${Y}`}let I=[N7(Mh,`${$}.ts`),N7(Mh,`${$}.js`),N7(Mh,`${$}.mjs`),N7(Ah,`${$}.ts`),N7(Ah,`${$}.js`),N7(Ah,`${$}.mjs`)];for(let U of I)if(Nh(U))return U;return}async function Ph($){if(!$||$==="builtin")return{name:"builtin",type:"builtin",linter:KI};let I=uK1($);if(!I)return console.error(`⚠️ [linter] 未找到自定义校验器 "${$}",已自动安全降级至内置校验器。`),{name:"builtin",type:"builtin",linter:KI};try{let Y=await import(hK1(I).href),J=Y.default??Y.lintRule??Y.linter??Y.lint;if(typeof J!=="function")return console.error(`⚠️ [linter] 自定义校验器 "${I}" 未导出标准函数 (default / lintRule),已安全降级至内置校验器。`),{name:"builtin",type:"builtin",linter:KI};return{name:$,type:"custom",filePath:I,linter:async(K,q)=>{try{let H=await J(K,q);if(H&&typeof H==="object"&&typeof H.score==="number"&&Array.isArray(H.issues))return H;return console.error("⚠️ [linter] 自定义校验器返回值格式不符合 RuleLintResult 契约,已回退至内置结果。"),KI(K)}catch(H){return console.error("⚠️ [linter] 自定义校验器执行异常:",H),KI(K)}}}}catch(U){return console.error(`⚠️ [linter] 加载自定义校验器脚本 "${I}" 失败(语法错误或依赖缺失: ${U?.message??U}),已自动安全降级至内置校验器。`),{name:"builtin",type:"builtin",linter:KI}}}async function Th($,I,U){let Y=await I.linter($,U);return{ruleId:$.id,ruleCode:$.code,ruleName:$.name,score:Y.score,passed:Y.passed,issues:Y.issues,description:$.description}}async function QV0($,I,U,Y){let J=Y?.minScore??0,Q=Y?.level??"all",K=[],q=0;for(let V of $){let X=await Th(V,I,U);q+=X.score;let L=X.issues;if(Q==="error")L=X.issues.filter((F)=>F.level==="error");else if(Q==="warning")L=X.issues.filter((F)=>F.level==="warning"||F.level==="error");let D=L.every((F)=>F.level!=="error");if(Y?.summary){if(L.length>0)K.push({...X,passed:D,issues:L})}else K.push({...X,passed:D,issues:L})}let H=$.length,G=H===0?100:Math.round(q/H),W=K.filter((V)=>V.issues.length>0).length,w=H-W,Z=G>=J&&K.every((V)=>V.passed);return{linter:I.name,linterType:I.type,totalRules:H,healthyCount:w,issueCount:W,overallScore:G,passed:Z,issues:K}}import{existsSync as xK1,readFileSync as kK1,writeFileSync as fK1,mkdirSync as bK1}from"node:fs";import{dirname as iK1,resolve as qV0}from"node:path";function nK1($){let I;try{I=JSON.parse($)}catch(U){throw Error(`本地规则文件 JSON 解析失败: ${U instanceof Error?U.message:String(U)}`)}if(Array.isArray(I))return{rules:KV0(I),meta:{rulesCount:I.length}};if(I&&typeof I==="object"){let U=I,Y=Array.isArray(U.rules)?U.rules:void 0;if(!Y)throw Error("本地规则文件格式错误: 顶层必须为规则数组或包含 'rules' 数组的对象");return{rules:KV0(Y),meta:{corpId:typeof U.corpId==="string"?U.corpId:void 0,source:typeof U.source==="string"?U.source:void 0,versionNumber:typeof U.versionNumber==="number"?U.versionNumber:void 0,exportedAt:typeof U.exportedAt==="string"?U.exportedAt:void 0,rulesCount:Y.length}}}throw Error("本地规则文件格式错误: 顶层必须为规则数组或包含 'rules' 数组的对象")}function KV0($){return $.map((I,U)=>{if(!I||typeof I!=="object")throw Error(`第 ${U+1} 条规则格式错误: 必须为对象`);let Y=I,J=typeof Y.description==="string"?Y.description.trim():"";if(!J)throw Error(`第 ${U+1} 条规则缺少有效的 'description' (规则描述) 字段`);let Q=typeof Y.code==="number"||typeof Y.code==="string"?Y.code:U+1;return{...Y,code:Q,description:J,scope:typeof Y.scope==="string"?Y.scope:"ALL",strictness:typeof Y.strictness==="string"?Y.strictness:"MUST_FOLLOW"}})}function Eh($){let I=qV0($);if(!xK1(I))throw Error(`未找到本地规则文件: ${$} (${I})`);let U=kK1(I,"utf8");return{...nK1(U),resolvedPath:I}}function HV0($,I){let U=qV0($);return bK1(iK1(U),{recursive:!0}),fK1(U,`${JSON.stringify(I,null,2)} -`,"utf8"),U}function GV0($){return $.map((I,U)=>{let Y;if(typeof I.code==="number")Y=`#${String(I.code).padStart(4,"0")}`;else if(typeof I.code==="string")Y=I.code.startsWith("#")?I.code:`#${I.code}`;else Y=`#${String(U+1).padStart(4,"0")}`;return{id:I.id,code:Y,name:I.name,description:I.description,scope:I.scope,strictness:I.strictness}})}class i$ extends Error{errors;warnings;constructor($,I=[]){super([`材料包校验失败:${$.length} 个错误`,...$.map((U)=>`- ${U}`)].join(` -`));this.errors=$;this.warnings=I;this.name="MaterialPackValidationError"}}import{createHmac as pK1,randomBytes as cK1}from"node:crypto";function dK1($,I,U,Y){return pK1("sha256",Y).update(`${$}.${I}.${JSON.stringify(U)}`).digest("hex")}function HH($,I){let U=Math.floor(Date.now()/1000),Y=cK1(16).toString("hex");return{Authorization:`Bearer ${I}`,"x-webhook-signature":dK1(U,Y,$,I),"x-webhook-timestamp":String(U),"x-webhook-nonce":Y}}var Xu=FI(jV0(),1),OZ0=FI(DZ0(),1);var OD={maxEntries:1000,maxTotalSize:524288000,maxCompressionRatio:150};async function FZ0($){return new Promise((I,U)=>{Xu.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(Y,J)=>{if(Y||!J)return U(Y??Error("无法打开 ZIP"));let Q=[];J.readEntry(),J.on("entry",(K)=>{let q=NZ0(K);if(!q.endsWith("/")&&!NH1(q))Q.push({fileName:q,uncompressedSize:K.uncompressedSize,compressedSize:K.compressedSize,raw:K});J.readEntry()}),J.on("end",()=>I(Q)),J.on("error",U)})})}function NZ0($){let I=Buffer.isBuffer($.fileName)?$.fileName:Buffer.from(String($.fileName),"binary"),U=I.toString("utf8");if(!U.includes("�"))return U;let Y=OZ0.default.decode(I,"gbk");if(!Y.includes("�"))return Y;return U}function NH1($){let I=$.split("/").pop()??"";return $.split("/").includes("__MACOSX")||I===".DS_Store"||I.startsWith("._")||I.startsWith(".~")||I.startsWith("~$")}function MZ0($,I){let U=[],Y=AU(I);if($.length>OD.maxEntries)U.push(`文件数超过 ${OD.maxEntries}`);if($.reduce((K,q)=>K+q.uncompressedSize,0)>OD.maxTotalSize)U.push("解压后总大小超过 500MB");for(let K of $){if(K.fileName.startsWith("/")||K.fileName.split("/").includes(".."))U.push(`存在不安全路径: ${K.fileName}`);if(K.compressedSize>0&&K.uncompressedSize/K.compressedSize>OD.maxCompressionRatio)U.push(`压缩比超过 150: ${K.fileName}`);if(K.fileName==="信息表.xlsx")continue;MH1(K,Y,U)}if(!$.find((K)=>K.fileName==="信息表.xlsx"))U.push("ZIP 根目录缺少精确名为「信息表.xlsx」的文件");if($.some((K)=>K.fileName.toLowerCase().endsWith(".zip")))U.push("不允许嵌套 ZIP");if(U.length)throw new i$(U)}function MH1($,I,U){let Y=AH1($.fileName);if(!Y||!I.allowedExtensions.includes(Y))U.push(`附件后缀不在白名单中: ${$.fileName}(允许: ${I.allowedExtensions.join(", ")})`);if($.uncompressedSizeI.maxFileSizeBytes)U.push(`附件文件过大: ${$.fileName}(${$.uncompressedSize} B,大于最大值 ${I.maxFileSizeBytes} B)`)}function AH1($){let I=$.split("/").pop()??$,U=I.lastIndexOf(".");return U>0?I.slice(U).toLowerCase():""}function Lu($,I){return new Promise((U,Y)=>{Xu.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(J,Q)=>{if(J||!Q)return Y(J??Error("无法打开 ZIP"));Q.readEntry(),Q.on("entry",(K)=>{if(NZ0(K)!==I.fileName)return Q.readEntry();Q.openReadStream(K,(q,H)=>{if(q||!H)return Y(q??Error(`无法读取 ${I.fileName}`));let G=[];H.on("data",(W)=>G.push(W)),H.on("end",()=>U(Buffer.concat(G))),H.on("error",Y)})}),Q.on("error",Y)})})}var PZ0=FI(Vh(),1);function PH1($){return $.startsWith("[附件]")}function TZ0($){return $.startsWith("[附件]")?$.slice(4):$}function TH1($){return TZ0($).toLowerCase().replace(/\s+/g,"_")||"attachment"}function EH1($){if($==null||$==="")return[];return String($).split(/[\n,;,;]/).map((I)=>I.trim()).filter(Boolean)}function Du($,I){let U=[];for(let[Y,J]of I.entries()){if(!PH1(Y))continue;let Q=$.getCell(J).value,K=EH1(Q);if(!K.length)continue;U.push({key:TH1(Y),label:TZ0(Y),paths:K})}return U}function Ou($){let I=new Map;return $.map((U)=>{let Y=(I.get(U.key)??0)+1;return I.set(U.key,Y),Y===1?U:{...U,key:`${U.key}-${Y}`}})}function FD($,I,U,Y){return{key:$,label:I,type:U,value:Y}}function EZ0($,I,U){return FD($,I,"TEXT",U==null?"":String(U))}function BZ0($,I,U){return FD($,I,"AMOUNT",typeof U==="number"?{amount:U,currency:"CNY"}:null)}function vZ0($){if($ instanceof Date)return $.toISOString();if(typeof $==="string"&&$.trim())return $.trim();return null}function BH1($){if($ instanceof Date)return Math.floor($.getTime()/1000);if(typeof $==="string"&&$.trim()){let I=Date.parse($.trim().replace(" ","T"));if(Number.isFinite(I))return Math.floor(I/1000)}return null}function LH($){let I=new Map;return $.getRow(1).eachCell((U,Y)=>I.set(String(U.value??"").trim(),Y)),I}function HI($,I,U){let Y=I.get(U);return Y?$.getCell(Y).value:void 0}function vH1($,I){return[["会议编号","meeting_id","TEXT"],["会议名称","meeting_name","TEXT"],["状态","status","TEXT"],["总金额","total_amount","AMOUNT"],["税前劳务总额","pretax_labor_total","AMOUNT"],["报销事由","reimbursement_reason","TEXT"],["po码","po_code","TEXT"],["快递单号","tracking_number","TEXT"],["申请日期","application_date","DATE"],["更新日期","updated_date","DATE"]].flatMap(([Y,J,Q])=>{let K=HI($,I,Y);if(K==null||K==="")return[];return[Q==="TEXT"?EZ0(J,Y,K):Q==="AMOUNT"?BZ0(J,Y,K):FD(J,Y,Q,vZ0(K))]})}function AZ0($,I,U){return U.flatMap(([Y,J,Q])=>{let K=HI($,I,Y);if(K==null||K==="")return[];return[Q==="TEXT"?EZ0(J,Y,K):Q==="AMOUNT"?BZ0(J,Y,K):FD(J,Y,Q,vZ0(K))]})}var RH1=[["姓名","name","TEXT"],["身份证号码","id_number","TEXT"],["手机号","phone","TEXT"],["劳务费用","labor_fee","AMOUNT"],["税前费用","pretax_fee","AMOUNT"],["开户行","bank","TEXT"],["支行名称","branch_name","TEXT"],["联行号","bank_code","TEXT"],["银行卡号","bank_card_number","TEXT"]],jH1=[["报销金额","reimbursement_amount","AMOUNT"],["费用类型","expense_type","TEXT"],["发生时间","occurrence_time","DATE"],["收款人","payee","TEXT"],["开户行","bank","TEXT"],["支行名称","branch_name","TEXT"],["支行行号","branch_code","TEXT"],["银行卡号","bank_card_number","TEXT"],["费用说明","expense_description","TEXT"]];async function RZ0($){let I=new PZ0.default.Workbook;if(await I.xlsx.load(Buffer.from($)),!I.worksheets.length)throw new i$(["信息表没有任何 Sheet"]);let U=I.worksheets,Y=U[0],J=LH(Y),Q=J.get("会议编号")??1,K=(Y.getRows(2,Y.rowCount)??[]).filter((V)=>V.getCell(Q).value!=null&&V.getCell(Q).value!==""),q=new Set,H=U.find((V,X)=>X>0&&LH(V).has("姓名")),G=U.find((V,X)=>X>0&&LH(V).has("报销金额")),W=H?LH(H):void 0,w=G?LH(G):void 0;return K.map((V)=>{let X=String(V.getCell(Q).value).trim();if(!X)throw new i$(["主表会议编号不能为空"]);if(q.has(X))throw new i$([`主表会议编号重复: ${X}`]);q.add(X);let L=HI(V,J,"申请日期"),D=(H?.getRows(2,H.rowCount)??[]).filter((y)=>String(HI(y,W,"会议编号")??"").trim()===X),F=(G?.getRows(2,G.rowCount)??[]).filter((y)=>String(HI(y,w,"会议编号")??"").trim()===X),P=D.map((y)=>String(HI(y,W,"姓名")??"").trim()).filter(Boolean),E=Ou(Du(V,J)),A={};F.forEach((y,f)=>{let j=Ou(Du(y,w));if(j.length)A[f]=j});let R={};D.forEach((y)=>{let f=String(HI(y,W,"姓名")??"").trim();if(!f)return;let j=Ou(Du(y,W));if(j.length)R[f]=j});let k=vH1(V,J);if(D.length)k.push({key:"daoshi_list",label:"导师列表",type:"LIST",value:D.map((y)=>AZ0(y,W,RH1))});if(F.length)k.push({key:"mingxi_list",label:"明细列表",type:"LIST",value:F.map((y)=>AZ0(y,w,jH1))});return{laborNames:P,documentAttachments:E,expenseAttachments:A,personAttachments:R,document:{type:"document",documentId:X,documentSN:X,startTime:BH1(L),fields:k}}})}function jZ0($,I){let U=[],Y=new Map,J=I.map((K)=>{let{documentAttachments:q,expenseAttachments:H,personAttachments:G}=K,W=K.document.documentId,w=(Z,V)=>{let X=Z.split("/")[0],L=X.indexOf("@");if((L>=0?X.slice(0,L):X)!==W)U.push(`单据「${W}」声明了跨单据或非本单据目录的附件路径: ${Z}。附件必须位于该单据自己的根目录「${W}/」或「${W}@备注/」下。`);let F=Y.get(Z);if(F)F.push({documentId:W,location:V});else Y.set(Z,[{documentId:W,location:V}])};for(let Z of q)Z.paths.forEach((V)=>w(V,`主表 [附件]${Z.label}`));for(let[Z,V]of Object.entries(H)){let X=Number(Z)+1;for(let L of V)L.paths.forEach((D)=>w(D,`费用明细行 ${X} [附件]${L.label}`))}for(let[Z,V]of Object.entries(G))for(let X of V)X.paths.forEach((L)=>w(L,`劳务人员「${Z}」[附件]${X.label}`));return{documentId:W,categoryFields:q,expenseAttachments:H,personAttachments:G}});for(let[K,q]of Y.entries())if(q.length>1){let H=q.map((G)=>`单据「${G.documentId}」的 ${G.location}`).join("、");U.push(`附件路径「${K}」被重复声明了 ${q.length} 次(出现在 ${H})。禁止复用同一路径,若需在不同单据或不同字段使用,请分别放置到独立的附件文件路径。`)}if(!$.length){if(U.length)throw new i$(U);return J}let Q=new Set($.map((K)=>K.fileName));for(let K of Y.keys())if(!Q.has(K))U.push(`Excel 声明的附件路径在 ZIP 中不存在: ${K}`);for(let K of $){if(K.fileName==="信息表.xlsx")continue;if(!Y.has(K.fileName))U.push(`ZIP 中的文件未在 Excel 任何 [附件] 列中声明: ${K.fileName}`)}if(U.length)throw new i$(U);return J}function Fu($,I,U){let Y=structuredClone($),J=(q)=>{if(U.has(q))return U.get(q);return[{path:q,fileName:q.split("/").pop()??q}]};for(let q of I.categoryFields){let H=q.paths.flatMap(J);Y.fields.push({key:q.key,label:q.label,type:"ATTACHMENT",value:H})}let Q=Y.fields.find((q)=>q.key==="daoshi_list"&&q.type==="LIST");if(Q&&Array.isArray(Q.value))for(let q of Q.value){let H=q.find((G)=>G.key==="name")?.value;for(let G of I.personAttachments[String(H)]??[])q.push({key:G.key,label:G.label,type:"ATTACHMENT",value:G.paths.flatMap(J)})}let K=Y.fields.find((q)=>q.key==="mingxi_list"&&q.type==="LIST");if(K&&Array.isArray(K.value))for(let q=0;q{let K=Q.fileName.split("/")[0],q=K.indexOf("@");return q>=0?K.slice(0,q):K}).filter((Q)=>Q!=="信息表.xlsx")),Y=[];for(let Q of I)if(!U.has(Q))Y.push(`Excel 会议编号「${Q}」在 ZIP 中找不到对应的根目录「${Q}/」或「${Q}@.../」。`);let J=new Set(I);for(let Q of U)if(!J.has(Q))Y.push(`ZIP 根目录对应的编号「${Q}」在信息表中找不到对应的会议编号。`);if(Y.length)throw new i$(Y)}async function CZ0($,I,U){let Y=[],J=$;if(SH1($,I)){Y=await FZ0($),MZ0(Y,U);let H=Y.find((G)=>G.fileName==="信息表.xlsx");if(!H)throw Error("ZIP 根目录缺少信息表.xlsx");J=await Lu($,H)}let Q=await RZ0(J);gH1(Y,Q.map((H)=>H.document.documentId));let K=jZ0(Y,Q),q=Q.map((H)=>H.document);return{entries:Y,parsed:Q,plans:K,documents:q,fileBuffer:$}}async function GI($,I,U){let Y=await CZ0($,I,U),J=Y.parsed.map((Q,K)=>Fu(Q.document,Y.plans[K],new Map));return{warnings:[],documents:J,attachmentPlan:Y.plans}}async function ND($,I,U){let Y=await CZ0($,I,U.materialPackFilePolicy),{baseUrl:J,webhookId:Q}=_H1(U.webhookUrl),K=[];for(let q=0;qk.fileName===L);if(!D)continue;process.stderr.write(`⬆ 上传附件: ${L} -`);let F=new FormData,P=await Lu(Y.fileBuffer,D),E=L.split("/").pop()??L;F.append("files",new File([new Uint8Array(P)],E));let A=await fetch(`${J}/api/v1/integrations/webhook/${encodeURIComponent(Q)}/attachments`,{method:"POST",headers:HH({},U.secret),body:F});if(!A.ok)throw Error(`附件上传失败 ${A.status}: ${await A.text()}`);let R=await A.json();W.set(L,R.attachments?.map((k)=>k.data)??(R.data===void 0?[]:[R.data])),process.stderr.write(`✓ 附件上传成功: ${L} +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let K of $.seen.entries()){let q=K[1];if(I===K[0]){Q(K);continue}if($.external){let G=$.external.registry.get(K[0])?.id;if(I!==K[0]&&G){Q(K);continue}}if($.metadataRegistry.get(K[0])?.id){Q(K);continue}if(q.cycle){Q(K);continue}if(q.count>1){if($.reused==="ref"){Q(K);continue}}}}function q9($,I){let U=$.seen.get(I);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=(q)=>{let H=$.seen.get(q);if(H.ref===null)return;let G=H.def??H.schema,W={...G},w=H.ref;if(H.ref=null,w){Y(w);let V=$.seen.get(w),X=V.schema;if(X.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))G.allOf=G.allOf??[],G.allOf.push(X);else Object.assign(G,X);if(Object.assign(G,W),q._zod.parent===w)for(let D in G){if(D==="$ref"||D==="allOf")continue;if(!(D in W))delete G[D]}if(X.$ref&&V.def)for(let D in G){if(D==="$ref"||D==="allOf")continue;if(D in V.def&&JSON.stringify(G[D])===JSON.stringify(V.def[D]))delete G[D]}}let Z=q._zod.parent;if(Z&&Z!==w){Y(Z);let V=$.seen.get(Z);if(V?.schema.$ref){if(G.$ref=V.schema.$ref,V.def)for(let X in G){if(X==="$ref"||X==="allOf")continue;if(X in V.def&&JSON.stringify(G[X])===JSON.stringify(V.def[X]))delete G[X]}}}$.override({zodSchema:q,jsonSchema:G,path:H.path??[]})};for(let q of[...$.seen.entries()].reverse())Y(q[0]);let J={};if($.target==="draft-2020-12")J.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")J.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")J.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let q=$.external.registry.get(I)?.id;if(!q)throw Error("Schema is missing an `id` property");J.$id=$.external.uri(q)}Object.assign(J,U.def??U.schema);let Q=$.metadataRegistry.get(I)?.id;if(Q!==void 0&&J.id===Q)delete J.id;let K=$.external?.defs??{};for(let q of $.seen.entries()){let H=q[1];if(H.def&&H.defId){if(H.def.id===H.defId)delete H.def.id;K[H.defId]=H.def}}if($.external);else if(Object.keys(K).length>0)if($.target==="draft-2020-12")J.$defs=K;else J.definitions=K;try{let q=JSON.parse(JSON.stringify(J));return Object.defineProperty(q,"~standard",{value:{...I["~standard"],jsonSchema:{input:pI(I,"input",$.processors),output:pI(I,"output",$.processors)}},enumerable:!1,writable:!1}),q}catch(q){throw Error("Error converting schema to JSON.")}}function v6($,I){let U=I??{seen:new Set};if(U.seen.has($))return!1;U.seen.add($);let Y=$._zod.def;if(Y.type==="transform")return!0;if(Y.type==="array")return v6(Y.element,U);if(Y.type==="set")return v6(Y.valueType,U);if(Y.type==="lazy")return v6(Y.getter(),U);if(Y.type==="promise"||Y.type==="optional"||Y.type==="nonoptional"||Y.type==="nullable"||Y.type==="readonly"||Y.type==="default"||Y.type==="prefault")return v6(Y.innerType,U);if(Y.type==="intersection")return v6(Y.left,U)||v6(Y.right,U);if(Y.type==="record"||Y.type==="map")return v6(Y.keyType,U)||v6(Y.valueType,U);if(Y.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return v6(Y.in,U)||v6(Y.out,U)}if(Y.type==="object"){for(let J in Y.shape)if(v6(Y.shape[J],U))return!0;return!1}if(Y.type==="union"){for(let J of Y.options)if(v6(J,U))return!0;return!1}if(Y.type==="tuple"){for(let J of Y.items)if(v6(J,U))return!0;if(Y.rest&&v6(Y.rest,U))return!0;return!1}return!1}var JA=($,I={})=>(U)=>{let Y=Q9({...U,processors:I});return S1($,Y),K9(Y,$),q9(Y,$)},pI=($,I,U={})=>(Y)=>{let{libraryOptions:J,target:Q}=Y??{},K=Q9({...J??{},target:Q,io:I,processors:U});return S1($,K),K9(K,$),q9(K,$)};var sO0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},QA=($,I,U,Y)=>{let J=U;J.type="string";let{minimum:Q,maximum:K,format:q,patterns:H,contentEncoding:G}=$._zod.bag;if(typeof Q==="number")J.minLength=Q;if(typeof K==="number")J.maxLength=K;if(q){if(J.format=sO0[q]??q,J.format==="")delete J.format;if(q==="time")delete J.format}if(G)J.contentEncoding=G;if(H&&H.size>0){let W=[...H];if(W.length===1)J.pattern=W[0].source;else if(W.length>1)J.allOf=[...W.map((w)=>({...I.target==="draft-07"||I.target==="draft-04"||I.target==="openapi-3.0"?{type:"string"}:{},pattern:w.source}))]}},KA=($,I,U,Y)=>{let J=U,{minimum:Q,maximum:K,format:q,multipleOf:H,exclusiveMaximum:G,exclusiveMinimum:W}=$._zod.bag;if(typeof q==="string"&&q.includes("int"))J.type="integer";else J.type="number";let w=typeof W==="number"&&W>=(Q??Number.NEGATIVE_INFINITY),Z=typeof G==="number"&&G<=(K??Number.POSITIVE_INFINITY),V=I.target==="draft-04"||I.target==="openapi-3.0";if(w)if(V)J.minimum=W,J.exclusiveMinimum=!0;else J.exclusiveMinimum=W;else if(typeof Q==="number")J.minimum=Q;if(Z)if(V)J.maximum=G,J.exclusiveMaximum=!0;else J.exclusiveMaximum=G;else if(typeof K==="number")J.maximum=K;if(typeof H==="number")J.multipleOf=H},qA=($,I,U,Y)=>{U.type="boolean"},HA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},GA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},WA=($,I,U,Y)=>{if(I.target==="openapi-3.0")U.type="string",U.nullable=!0,U.enum=[null];else U.type="null"},wA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},VA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},ZA=($,I,U,Y)=>{U.not={}},zA=($,I,U,Y)=>{},XA=($,I,U,Y)=>{},LA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},DA=($,I,U,Y)=>{let J=$._zod.def,Q=cJ(J.entries);if(Q.every((K)=>typeof K==="number"))U.type="number";if(Q.every((K)=>typeof K==="string"))U.type="string";U.enum=Q},OA=($,I,U,Y)=>{let J=$._zod.def,Q=[];for(let K of J.values)if(K===void 0){if(I.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof K==="bigint")if(I.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else Q.push(Number(K));else Q.push(K);if(Q.length===0);else if(Q.length===1){let K=Q[0];if(U.type=K===null?"null":typeof K,I.target==="draft-04"||I.target==="openapi-3.0")U.enum=[K];else U.const=K}else{if(Q.every((K)=>typeof K==="number"))U.type="number";if(Q.every((K)=>typeof K==="string"))U.type="string";if(Q.every((K)=>typeof K==="boolean"))U.type="boolean";if(Q.every((K)=>K===null))U.type="null";U.enum=Q}},FA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},NA=($,I,U,Y)=>{let J=U,Q=$._zod.pattern;if(!Q)throw Error("Pattern not found in template literal");J.type="string",J.pattern=Q.source},MA=($,I,U,Y)=>{let J=U,Q={type:"string",format:"binary",contentEncoding:"binary"},{minimum:K,maximum:q,mime:H}=$._zod.bag;if(K!==void 0)Q.minLength=K;if(q!==void 0)Q.maxLength=q;if(H)if(H.length===1)Q.contentMediaType=H[0],Object.assign(J,Q);else Object.assign(J,Q),J.anyOf=H.map((G)=>({contentMediaType:G}));else Object.assign(J,Q)},AA=($,I,U,Y)=>{U.type="boolean"},PA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},TA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},EA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},BA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},vA=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},RA=($,I,U,Y)=>{let J=U,Q=$._zod.def,{minimum:K,maximum:q}=$._zod.bag;if(typeof K==="number")J.minItems=K;if(typeof q==="number")J.maxItems=q;J.type="array",J.items=S1(Q.element,I,{...Y,path:[...Y.path,"items"]})},jA=($,I,U,Y)=>{let J=U,Q=$._zod.def;J.type="object",J.properties={};let K=Q.shape;for(let G in K)J.properties[G]=S1(K[G],I,{...Y,path:[...Y.path,"properties",G]});let q=new Set(Object.keys(K)),H=new Set([...q].filter((G)=>{let W=Q.shape[G]._zod;if(I.io==="input")return W.optin===void 0;else return W.optout===void 0}));if(H.size>0)J.required=Array.from(H);if(Q.catchall?._zod.def.type==="never")J.additionalProperties=!1;else if(!Q.catchall){if(I.io==="output")J.additionalProperties=!1}else if(Q.catchall)J.additionalProperties=S1(Q.catchall,I,{...Y,path:[...Y.path,"additionalProperties"]})},lG=($,I,U,Y)=>{let J=$._zod.def,Q=J.inclusive===!1,K=J.options.map((q,H)=>S1(q,I,{...Y,path:[...Y.path,Q?"oneOf":"anyOf",H]}));if(Q)U.oneOf=K;else U.anyOf=K},CA=($,I,U,Y)=>{let J=$._zod.def,Q=S1(J.left,I,{...Y,path:[...Y.path,"allOf",0]}),K=S1(J.right,I,{...Y,path:[...Y.path,"allOf",1]}),q=(G)=>("allOf"in G)&&Object.keys(G).length===1,H=[...q(Q)?Q.allOf:[Q],...q(K)?K.allOf:[K]];U.allOf=H},_A=($,I,U,Y)=>{let J=U,Q=$._zod.def;J.type="array";let K=I.target==="draft-2020-12"?"prefixItems":"items",q=I.target==="draft-2020-12"?"items":I.target==="openapi-3.0"?"items":"additionalItems",H=Q.items.map((Z,V)=>S1(Z,I,{...Y,path:[...Y.path,K,V]})),G=Q.rest?S1(Q.rest,I,{...Y,path:[...Y.path,q,...I.target==="openapi-3.0"?[Q.items.length]:[]]}):null;if(I.target==="draft-2020-12"){if(J.prefixItems=H,G)J.items=G}else if(I.target==="openapi-3.0"){if(J.items={anyOf:H},G)J.items.anyOf.push(G);if(J.minItems=H.length,!G)J.maxItems=H.length}else if(J.items=H,G)J.additionalItems=G;let{minimum:W,maximum:w}=$._zod.bag;if(typeof W==="number")J.minItems=W;if(typeof w==="number")J.maxItems=w},SA=($,I,U,Y)=>{let J=U,Q=$._zod.def;J.type="object";let K=Q.keyType,H=K._zod.bag?.patterns;if(Q.mode==="loose"&&H&&H.size>0){let W=S1(Q.valueType,I,{...Y,path:[...Y.path,"patternProperties","*"]});J.patternProperties={};for(let w of H)J.patternProperties[w.source]=W}else{if(I.target==="draft-07"||I.target==="draft-2020-12")J.propertyNames=S1(Q.keyType,I,{...Y,path:[...Y.path,"propertyNames"]});J.additionalProperties=S1(Q.valueType,I,{...Y,path:[...Y.path,"additionalProperties"]})}let G=K._zod.values;if(G){let W=[...G].filter((w)=>typeof w==="string"||typeof w==="number");if(W.length>0)J.required=W}},gA=($,I,U,Y)=>{let J=$._zod.def,Q=S1(J.innerType,I,Y),K=I.seen.get($);if(I.target==="openapi-3.0")K.ref=J.innerType,U.nullable=!0;else U.anyOf=[Q,{type:"null"}]},yA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType},hA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType,U.default=JSON.parse(JSON.stringify(J.defaultValue))},uA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);if(Q.ref=J.innerType,I.io==="input")U._prefault=JSON.parse(JSON.stringify(J.defaultValue))},kA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType;let K;try{K=J.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}U.default=K},xA=($,I,U,Y)=>{let J=$._zod.def,Q=J.in._zod.traits.has("$ZodTransform"),K=I.io==="input"?Q?J.out:J.in:J.out;S1(K,I,Y);let q=I.seen.get($);q.ref=K},fA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType,U.readOnly=!0},iA=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType},oG=($,I,U,Y)=>{let J=$._zod.def;S1(J.innerType,I,Y);let Q=I.seen.get($);Q.ref=J.innerType},bA=($,I,U,Y)=>{let J=$._zod.innerType;S1(J,I,Y);let Q=I.seen.get($);Q.ref=J},mG={string:QA,number:KA,boolean:qA,bigint:HA,symbol:GA,null:WA,undefined:wA,void:VA,never:ZA,any:zA,unknown:XA,date:LA,enum:DA,literal:OA,nan:FA,template_literal:NA,file:MA,success:AA,custom:PA,function:TA,transform:EA,map:BA,set:vA,array:RA,object:jA,union:lG,intersection:CA,tuple:_A,record:SA,nullable:gA,nonoptional:yA,default:hA,prefault:uA,catch:kA,pipe:xA,readonly:fA,promise:iA,optional:oG,lazy:bA};function rG($,I){if("_idmap"in $){let Y=$,J=Q9({...I,processors:mG}),Q={};for(let H of Y._idmap.entries()){let[G,W]=H;S1(W,J)}let K={},q={registry:Y,uri:I?.uri,defs:Q};J.external=q;for(let H of Y._idmap.entries()){let[G,W]=H;K9(J,W),K[G]=q9(J,W)}if(Object.keys(Q).length>0){let H=J.target==="draft-2020-12"?"$defs":"definitions";K.__shared={[H]:Q}}return{schemas:K}}let U=Q9({...I,processors:mG});return S1($,U),K9(U,$),q9(U,$)}class nA{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($){this.ctx.counter=$}get seen(){return this.ctx.seen}constructor($){let I=$?.target??"draft-2020-12";if(I==="draft-4")I="draft-04";if(I==="draft-7")I="draft-07";this.ctx=Q9({processors:mG,target:I,...$?.metadata&&{metadata:$.metadata},...$?.unrepresentable&&{unrepresentable:$.unrepresentable},...$?.override&&{override:$.override},...$?.io&&{io:$.io}})}process($,I={path:[],schemaPath:[]}){return S1($,this.ctx,I)}emit($,I){if(I){if(I.cycles)this.ctx.cycles=I.cycles;if(I.reused)this.ctx.reused=I.reused;if(I.external)this.ctx.external=I.external}K9(this.ctx,$);let U=q9(this.ctx,$),{"~standard":Y,...J}=U;return J}}var Rx={};function cI($){return!!$._zod}function H9($,I){if(cI($))return BI($,I);return $.safeParse(I)}function tG($){if(!$)return;let I;if(cI($))I=$._zod?.def?.shape;else I=$.shape;if(!I)return;if(typeof I==="function")try{return I()}catch{return}return I}function jx($){if(cI($)){let Q=$._zod?.def;if(Q){if(Q.value!==void 0)return Q.value;if(Array.isArray(Q.values)&&Q.values.length>0)return Q.values[0]}}let U=$._def;if(U){if(U.value!==void 0)return U.value;if(Array.isArray(U.values)&&U.values.length>0)return U.values[0]}let Y=$.value;if(Y!==void 0)return Y;return}var z={};$5(z,{xor:()=>Nf,xid:()=>dx,void:()=>Lf,uuidv7:()=>kx,uuidv6:()=>ux,uuidv4:()=>hx,uuid:()=>yx,util:()=>D0,url:()=>xx,uppercase:()=>SI,unknown:()=>f1,union:()=>i1,undefined:()=>zf,ulid:()=>cx,uint64:()=>Vf,uint32:()=>Gf,tuple:()=>OP,trim:()=>xI,treeifyError:()=>XO,transform:()=>PW,toUpperCase:()=>iI,toLowerCase:()=>fI,toJSONSchema:()=>rG,templateLiteral:()=>Sf,symbol:()=>Zf,superRefine:()=>dP,success:()=>Rf,stringbool:()=>ff,stringFormat:()=>Uf,string:()=>q0,strictObject:()=>Ff,startsWith:()=>yI,slugify:()=>bI,size:()=>S7,setErrorMap:()=>YF0,set:()=>Tf,safeParseAsync:()=>tA,safeParse:()=>rA,safeEncodeAsync:()=>YP,safeEncode:()=>IP,safeDecodeAsync:()=>JP,safeDecode:()=>UP,registry:()=>NG,regexes:()=>Q$,regex:()=>CI,refine:()=>cP,record:()=>h1,readonly:()=>xP,property:()=>dG,promise:()=>gf,prettifyError:()=>LO,preprocess:()=>vQ,prefault:()=>CP,positive:()=>bG,pipe:()=>YW,partialRecord:()=>Mf,parseAsync:()=>oA,parse:()=>lA,overwrite:()=>m$,optional:()=>p1,object:()=>E0,number:()=>L1,nullish:()=>vf,nullable:()=>LQ,null:()=>FQ,normalize:()=>kI,nonpositive:()=>pG,nonoptional:()=>_P,nonnegative:()=>cG,never:()=>AW,negative:()=>nG,nativeEnum:()=>Ef,nanoid:()=>bx,nan:()=>jf,multipleOf:()=>Y9,minSize:()=>L8,minLength:()=>U5,mime:()=>uI,meta:()=>kf,maxSize:()=>J9,maxLength:()=>g7,map:()=>Pf,mac:()=>ox,lte:()=>K$,lt:()=>z8,lowercase:()=>_I,looseRecord:()=>Af,looseObject:()=>o4,locales:()=>wQ,literal:()=>g0,length:()=>y7,lazy:()=>bP,ksuid:()=>mx,keyof:()=>Of,jwt:()=>If,json:()=>bf,iso:()=>G9,ipv6:()=>rx,ipv4:()=>lx,invertCodec:()=>_f,intersection:()=>sI,int64:()=>wf,int32:()=>Hf,int:()=>UW,instanceof:()=>xf,includes:()=>gI,httpUrl:()=>fx,hostname:()=>Yf,hex:()=>Jf,hash:()=>Qf,guid:()=>gx,gte:()=>B6,gt:()=>X8,globalRegistry:()=>l4,getErrorMap:()=>JF0,function:()=>yf,fromJSONSchema:()=>pf,formatError:()=>aJ,float64:()=>qf,float32:()=>Kf,flattenError:()=>tJ,file:()=>Bf,exactOptional:()=>EP,enum:()=>r4,endsWith:()=>hI,encodeAsync:()=>eA,encode:()=>aA,emoji:()=>ix,email:()=>Sx,e164:()=>$f,discriminatedUnion:()=>PQ,describe:()=>uf,decodeAsync:()=>$P,decode:()=>sA,date:()=>Df,custom:()=>BW,cuid2:()=>px,cuid:()=>nx,core:()=>Y5,config:()=>z4,coerce:()=>lP,codec:()=>Cf,clone:()=>T6,cidrv6:()=>ax,cidrv4:()=>tx,check:()=>hf,catch:()=>yP,boolean:()=>F4,bigint:()=>Wf,base64url:()=>ex,base64:()=>sx,array:()=>$1,any:()=>Xf,_function:()=>yf,_default:()=>RP,_ZodString:()=>JW,ZodXor:()=>zP,ZodXID:()=>wW,ZodVoid:()=>VP,ZodUnknown:()=>WP,ZodUnion:()=>AQ,ZodUndefined:()=>qP,ZodUUID:()=>D8,ZodURL:()=>OQ,ZodULID:()=>WW,ZodType:()=>l0,ZodTuple:()=>DP,ZodTransform:()=>PP,ZodTemplateLiteral:()=>fP,ZodSymbol:()=>KP,ZodSuccess:()=>SP,ZodStringFormat:()=>x1,ZodString:()=>lI,ZodSet:()=>NP,ZodRecord:()=>dI,ZodRealError:()=>p6,ZodReadonly:()=>kP,ZodPromise:()=>nP,ZodPreprocess:()=>uP,ZodPrefault:()=>jP,ZodPipe:()=>TQ,ZodOptional:()=>TW,ZodObject:()=>MQ,ZodNumberFormat:()=>h7,ZodNumber:()=>rI,ZodNullable:()=>BP,ZodNull:()=>HP,ZodNonOptional:()=>EW,ZodNever:()=>wP,ZodNanoID:()=>qW,ZodNaN:()=>hP,ZodMap:()=>FP,ZodMAC:()=>QP,ZodLiteral:()=>MP,ZodLazy:()=>iP,ZodKSUID:()=>VW,ZodJWT:()=>NW,ZodIssueCode:()=>UF0,ZodIntersection:()=>LP,ZodISOTime:()=>$W,ZodISODuration:()=>IW,ZodISODateTime:()=>sG,ZodISODate:()=>eG,ZodIPv6:()=>zW,ZodIPv4:()=>ZW,ZodGUID:()=>XQ,ZodFunction:()=>pP,ZodFirstPartyTypeKind:()=>mP,ZodFile:()=>AP,ZodExactOptional:()=>TP,ZodError:()=>$F0,ZodEnum:()=>mI,ZodEmoji:()=>KW,ZodEmail:()=>QW,ZodE164:()=>FW,ZodDiscriminatedUnion:()=>XP,ZodDefault:()=>vP,ZodDate:()=>NQ,ZodCustomStringFormat:()=>oI,ZodCustom:()=>BQ,ZodCodec:()=>EQ,ZodCatch:()=>gP,ZodCUID2:()=>GW,ZodCUID:()=>HW,ZodCIDRv6:()=>LW,ZodCIDRv4:()=>XW,ZodBoolean:()=>tI,ZodBigIntFormat:()=>MW,ZodBigInt:()=>aI,ZodBase64URL:()=>OW,ZodBase64:()=>DW,ZodArray:()=>ZP,ZodAny:()=>GP,TimePrecision:()=>AM,NEVER:()=>YO,$output:()=>LM,$input:()=>DM,$brand:()=>JO});var zQ={};$5(zQ,{xor:()=>Nf,xid:()=>dx,void:()=>Lf,uuidv7:()=>kx,uuidv6:()=>ux,uuidv4:()=>hx,uuid:()=>yx,url:()=>xx,unknown:()=>f1,union:()=>i1,undefined:()=>zf,ulid:()=>cx,uint64:()=>Vf,uint32:()=>Gf,tuple:()=>OP,transform:()=>PW,templateLiteral:()=>Sf,symbol:()=>Zf,superRefine:()=>dP,success:()=>Rf,stringbool:()=>ff,stringFormat:()=>Uf,string:()=>q0,strictObject:()=>Ff,set:()=>Tf,refine:()=>cP,record:()=>h1,readonly:()=>xP,promise:()=>gf,preprocess:()=>vQ,prefault:()=>CP,pipe:()=>YW,partialRecord:()=>Mf,optional:()=>p1,object:()=>E0,number:()=>L1,nullish:()=>vf,nullable:()=>LQ,null:()=>FQ,nonoptional:()=>_P,never:()=>AW,nativeEnum:()=>Ef,nanoid:()=>bx,nan:()=>jf,meta:()=>kf,map:()=>Pf,mac:()=>ox,looseRecord:()=>Af,looseObject:()=>o4,literal:()=>g0,lazy:()=>bP,ksuid:()=>mx,keyof:()=>Of,jwt:()=>If,json:()=>bf,ipv6:()=>rx,ipv4:()=>lx,invertCodec:()=>_f,intersection:()=>sI,int64:()=>wf,int32:()=>Hf,int:()=>UW,instanceof:()=>xf,httpUrl:()=>fx,hostname:()=>Yf,hex:()=>Jf,hash:()=>Qf,guid:()=>gx,function:()=>yf,float64:()=>qf,float32:()=>Kf,file:()=>Bf,exactOptional:()=>EP,enum:()=>r4,emoji:()=>ix,email:()=>Sx,e164:()=>$f,discriminatedUnion:()=>PQ,describe:()=>uf,date:()=>Df,custom:()=>BW,cuid2:()=>px,cuid:()=>nx,codec:()=>Cf,cidrv6:()=>ax,cidrv4:()=>tx,check:()=>hf,catch:()=>yP,boolean:()=>F4,bigint:()=>Wf,base64url:()=>ex,base64:()=>sx,array:()=>$1,any:()=>Xf,_function:()=>yf,_default:()=>RP,_ZodString:()=>JW,ZodXor:()=>zP,ZodXID:()=>wW,ZodVoid:()=>VP,ZodUnknown:()=>WP,ZodUnion:()=>AQ,ZodUndefined:()=>qP,ZodUUID:()=>D8,ZodURL:()=>OQ,ZodULID:()=>WW,ZodType:()=>l0,ZodTuple:()=>DP,ZodTransform:()=>PP,ZodTemplateLiteral:()=>fP,ZodSymbol:()=>KP,ZodSuccess:()=>SP,ZodStringFormat:()=>x1,ZodString:()=>lI,ZodSet:()=>NP,ZodRecord:()=>dI,ZodReadonly:()=>kP,ZodPromise:()=>nP,ZodPreprocess:()=>uP,ZodPrefault:()=>jP,ZodPipe:()=>TQ,ZodOptional:()=>TW,ZodObject:()=>MQ,ZodNumberFormat:()=>h7,ZodNumber:()=>rI,ZodNullable:()=>BP,ZodNull:()=>HP,ZodNonOptional:()=>EW,ZodNever:()=>wP,ZodNanoID:()=>qW,ZodNaN:()=>hP,ZodMap:()=>FP,ZodMAC:()=>QP,ZodLiteral:()=>MP,ZodLazy:()=>iP,ZodKSUID:()=>VW,ZodJWT:()=>NW,ZodIntersection:()=>LP,ZodIPv6:()=>zW,ZodIPv4:()=>ZW,ZodGUID:()=>XQ,ZodFunction:()=>pP,ZodFile:()=>AP,ZodExactOptional:()=>TP,ZodEnum:()=>mI,ZodEmoji:()=>KW,ZodEmail:()=>QW,ZodE164:()=>FW,ZodDiscriminatedUnion:()=>XP,ZodDefault:()=>vP,ZodDate:()=>NQ,ZodCustomStringFormat:()=>oI,ZodCustom:()=>BQ,ZodCodec:()=>EQ,ZodCatch:()=>gP,ZodCUID2:()=>GW,ZodCUID:()=>HW,ZodCIDRv6:()=>LW,ZodCIDRv4:()=>XW,ZodBoolean:()=>tI,ZodBigIntFormat:()=>MW,ZodBigInt:()=>aI,ZodBase64URL:()=>OW,ZodBase64:()=>DW,ZodArray:()=>ZP,ZodAny:()=>GP});var aG={};$5(aG,{uppercase:()=>SI,trim:()=>xI,toUpperCase:()=>iI,toLowerCase:()=>fI,startsWith:()=>yI,slugify:()=>bI,size:()=>S7,regex:()=>CI,property:()=>dG,positive:()=>bG,overwrite:()=>m$,normalize:()=>kI,nonpositive:()=>pG,nonnegative:()=>cG,negative:()=>nG,multipleOf:()=>Y9,minSize:()=>L8,minLength:()=>U5,mime:()=>uI,maxSize:()=>J9,maxLength:()=>g7,lte:()=>K$,lt:()=>z8,lowercase:()=>_I,length:()=>y7,includes:()=>gI,gte:()=>B6,gt:()=>X8,endsWith:()=>hI});var G9={};$5(G9,{time:()=>dA,duration:()=>mA,datetime:()=>pA,date:()=>cA,ZodISOTime:()=>$W,ZodISODuration:()=>IW,ZodISODateTime:()=>sG,ZodISODate:()=>eG});var sG=o("ZodISODateTime",($,I)=>{PF.init($,I),x1.init($,I)});function pA($){return PM(sG,$)}var eG=o("ZodISODate",($,I)=>{TF.init($,I),x1.init($,I)});function cA($){return TM(eG,$)}var $W=o("ZodISOTime",($,I)=>{EF.init($,I),x1.init($,I)});function dA($){return EM($W,$)}var IW=o("ZodISODuration",($,I)=>{BF.init($,I),x1.init($,I)});function mA($){return BM(IW,$)}var Cx=($,I)=>{rJ.init($,I),$.name="ZodError",Object.defineProperties($,{format:{value:(U)=>aJ($,U)},flatten:{value:(U)=>tJ($,U)},addIssue:{value:(U)=>{$.issues.push(U),$.message=JSON.stringify($.issues,NI,2)}},addIssues:{value:(U)=>{$.issues.push(...U),$.message=JSON.stringify($.issues,NI,2)}},isEmpty:{get(){return $.issues.length===0}}})},$F0=o("ZodError",Cx),p6=o("ZodError",Cx,{Parent:Error});var lA=PI(p6),oA=TI(p6),rA=EI(p6),tA=vI(p6),aA=eH(p6),sA=$G(p6),eA=IG(p6),$P=UG(p6),IP=YG(p6),UP=JG(p6),YP=QG(p6),JP=KG(p6);var _x=new WeakMap;function DQ($,I,U){let Y=Object.getPrototypeOf($),J=_x.get(Y);if(!J)J=new Set,_x.set(Y,J);if(J.has(I))return;J.add(I);for(let Q in U){let K=U[Q];Object.defineProperty(Y,Q,{configurable:!0,enumerable:!1,get(){let q=K.bind(this);return Object.defineProperty(this,Q,{configurable:!0,writable:!0,enumerable:!0,value:q}),q},set(q){Object.defineProperty(this,Q,{configurable:!0,writable:!0,enumerable:!0,value:q})}})}}var l0=o("ZodType",($,I)=>{return p0.init($,I),Object.assign($["~standard"],{jsonSchema:{input:pI($,"input"),output:pI($,"output")}}),$.toJSONSchema=JA($,{}),$.def=I,$.type=I.type,Object.defineProperty($,"_def",{value:I}),$.parse=(U,Y)=>lA($,U,Y,{callee:$.parse}),$.safeParse=(U,Y)=>rA($,U,Y),$.parseAsync=async(U,Y)=>oA($,U,Y,{callee:$.parseAsync}),$.safeParseAsync=async(U,Y)=>tA($,U,Y),$.spa=$.safeParseAsync,$.encode=(U,Y)=>aA($,U,Y),$.decode=(U,Y)=>sA($,U,Y),$.encodeAsync=async(U,Y)=>eA($,U,Y),$.decodeAsync=async(U,Y)=>$P($,U,Y),$.safeEncode=(U,Y)=>IP($,U,Y),$.safeDecode=(U,Y)=>UP($,U,Y),$.safeEncodeAsync=async(U,Y)=>YP($,U,Y),$.safeDecodeAsync=async(U,Y)=>JP($,U,Y),DQ($,"ZodType",{check(...U){let Y=this.def;return this.clone(D0.mergeDefs(Y,{checks:[...Y.checks??[],...U.map((J)=>typeof J==="function"?{_zod:{check:J,def:{check:"custom"},onattach:[]}}:J)]}),{parent:!0})},with(...U){return this.check(...U)},clone(U,Y){return T6(this,U,Y)},brand(){return this},register(U,Y){return U.add(this,Y),this},refine(U,Y){return this.check(cP(U,Y))},superRefine(U,Y){return this.check(dP(U,Y))},overwrite(U){return this.check(m$(U))},optional(){return p1(this)},exactOptional(){return EP(this)},nullable(){return LQ(this)},nullish(){return p1(LQ(this))},nonoptional(U){return _P(this,U)},array(){return $1(this)},or(U){return i1([this,U])},and(U){return sI(this,U)},transform(U){return YW(this,PW(U))},default(U){return RP(this,U)},prefault(U){return CP(this,U)},catch(U){return yP(this,U)},pipe(U){return YW(this,U)},readonly(){return xP(this)},describe(U){let Y=this.clone();return l4.add(Y,{description:U}),Y},meta(...U){if(U.length===0)return l4.get(this);let Y=this.clone();return l4.add(Y,U[0]),Y},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(U){return U(this)}}),Object.defineProperty($,"description",{get(){return l4.get($)?.description},configurable:!0}),$}),JW=o("_ZodString",($,I)=>{_7.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>QA($,Y,J,Q);let U=$._zod.bag;$.format=U.format??null,$.minLength=U.minimum??null,$.maxLength=U.maximum??null,DQ($,"_ZodString",{regex(...Y){return this.check(CI(...Y))},includes(...Y){return this.check(gI(...Y))},startsWith(...Y){return this.check(yI(...Y))},endsWith(...Y){return this.check(hI(...Y))},min(...Y){return this.check(U5(...Y))},max(...Y){return this.check(g7(...Y))},length(...Y){return this.check(y7(...Y))},nonempty(...Y){return this.check(U5(1,...Y))},lowercase(Y){return this.check(_I(Y))},uppercase(Y){return this.check(SI(Y))},trim(){return this.check(xI())},normalize(...Y){return this.check(kI(...Y))},toLowerCase(){return this.check(fI())},toUpperCase(){return this.check(iI())},slugify(){return this.check(bI())}})}),lI=o("ZodString",($,I)=>{_7.init($,I),JW.init($,I),$.email=(U)=>$.check(MG(QW,U)),$.url=(U)=>$.check(ZQ(OQ,U)),$.jwt=(U)=>$.check(iG(NW,U)),$.emoji=(U)=>$.check(BG(KW,U)),$.guid=(U)=>$.check(VQ(XQ,U)),$.uuid=(U)=>$.check(AG(D8,U)),$.uuidv4=(U)=>$.check(PG(D8,U)),$.uuidv6=(U)=>$.check(TG(D8,U)),$.uuidv7=(U)=>$.check(EG(D8,U)),$.nanoid=(U)=>$.check(vG(qW,U)),$.guid=(U)=>$.check(VQ(XQ,U)),$.cuid=(U)=>$.check(RG(HW,U)),$.cuid2=(U)=>$.check(jG(GW,U)),$.ulid=(U)=>$.check(CG(WW,U)),$.base64=(U)=>$.check(kG(DW,U)),$.base64url=(U)=>$.check(xG(OW,U)),$.xid=(U)=>$.check(_G(wW,U)),$.ksuid=(U)=>$.check(SG(VW,U)),$.ipv4=(U)=>$.check(gG(ZW,U)),$.ipv6=(U)=>$.check(yG(zW,U)),$.cidrv4=(U)=>$.check(hG(XW,U)),$.cidrv6=(U)=>$.check(uG(LW,U)),$.e164=(U)=>$.check(fG(FW,U)),$.datetime=(U)=>$.check(pA(U)),$.date=(U)=>$.check(cA(U)),$.time=(U)=>$.check(dA(U)),$.duration=(U)=>$.check(mA(U))});function q0($){return FM(lI,$)}var x1=o("ZodStringFormat",($,I)=>{k1.init($,I),JW.init($,I)}),QW=o("ZodEmail",($,I)=>{zF.init($,I),x1.init($,I)});function Sx($){return MG(QW,$)}var XQ=o("ZodGUID",($,I)=>{VF.init($,I),x1.init($,I)});function gx($){return VQ(XQ,$)}var D8=o("ZodUUID",($,I)=>{ZF.init($,I),x1.init($,I)});function yx($){return AG(D8,$)}function hx($){return PG(D8,$)}function ux($){return TG(D8,$)}function kx($){return EG(D8,$)}var OQ=o("ZodURL",($,I)=>{XF.init($,I),x1.init($,I)});function xx($){return ZQ(OQ,$)}function fx($){return ZQ(OQ,{protocol:Q$.httpProtocol,hostname:Q$.domain,...D0.normalizeParams($)})}var KW=o("ZodEmoji",($,I)=>{LF.init($,I),x1.init($,I)});function ix($){return BG(KW,$)}var qW=o("ZodNanoID",($,I)=>{DF.init($,I),x1.init($,I)});function bx($){return vG(qW,$)}var HW=o("ZodCUID",($,I)=>{OF.init($,I),x1.init($,I)});function nx($){return RG(HW,$)}var GW=o("ZodCUID2",($,I)=>{FF.init($,I),x1.init($,I)});function px($){return jG(GW,$)}var WW=o("ZodULID",($,I)=>{NF.init($,I),x1.init($,I)});function cx($){return CG(WW,$)}var wW=o("ZodXID",($,I)=>{MF.init($,I),x1.init($,I)});function dx($){return _G(wW,$)}var VW=o("ZodKSUID",($,I)=>{AF.init($,I),x1.init($,I)});function mx($){return SG(VW,$)}var ZW=o("ZodIPv4",($,I)=>{vF.init($,I),x1.init($,I)});function lx($){return gG(ZW,$)}var QP=o("ZodMAC",($,I)=>{jF.init($,I),x1.init($,I)});function ox($){return MM(QP,$)}var zW=o("ZodIPv6",($,I)=>{RF.init($,I),x1.init($,I)});function rx($){return yG(zW,$)}var XW=o("ZodCIDRv4",($,I)=>{CF.init($,I),x1.init($,I)});function tx($){return hG(XW,$)}var LW=o("ZodCIDRv6",($,I)=>{_F.init($,I),x1.init($,I)});function ax($){return uG(LW,$)}var DW=o("ZodBase64",($,I)=>{gF.init($,I),x1.init($,I)});function sx($){return kG(DW,$)}var OW=o("ZodBase64URL",($,I)=>{yF.init($,I),x1.init($,I)});function ex($){return xG(OW,$)}var FW=o("ZodE164",($,I)=>{hF.init($,I),x1.init($,I)});function $f($){return fG(FW,$)}var NW=o("ZodJWT",($,I)=>{uF.init($,I),x1.init($,I)});function If($){return iG(NW,$)}var oI=o("ZodCustomStringFormat",($,I)=>{kF.init($,I),x1.init($,I)});function Uf($,I,U={}){return nI(oI,$,I,U)}function Yf($){return nI(oI,"hostname",Q$.hostname,$)}function Jf($){return nI(oI,"hex",Q$.hex,$)}function Qf($,I){let U=I?.enc??"hex",Y=`${$}_${U}`,J=Q$[Y];if(!J)throw Error(`Unrecognized hash format: ${Y}`);return nI(oI,Y,J,I)}var rI=o("ZodNumber",($,I)=>{XG.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>KA($,Y,J,Q),DQ($,"ZodNumber",{gt(Y,J){return this.check(X8(Y,J))},gte(Y,J){return this.check(B6(Y,J))},min(Y,J){return this.check(B6(Y,J))},lt(Y,J){return this.check(z8(Y,J))},lte(Y,J){return this.check(K$(Y,J))},max(Y,J){return this.check(K$(Y,J))},int(Y){return this.check(UW(Y))},safe(Y){return this.check(UW(Y))},positive(Y){return this.check(X8(0,Y))},nonnegative(Y){return this.check(B6(0,Y))},negative(Y){return this.check(z8(0,Y))},nonpositive(Y){return this.check(K$(0,Y))},multipleOf(Y,J){return this.check(Y9(Y,J))},step(Y,J){return this.check(Y9(Y,J))},finite(){return this}});let U=$._zod.bag;$.minValue=Math.max(U.minimum??Number.NEGATIVE_INFINITY,U.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,$.maxValue=Math.min(U.maximum??Number.POSITIVE_INFINITY,U.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,$.isInt=(U.format??"").includes("int")||Number.isSafeInteger(U.multipleOf??0.5),$.isFinite=!0,$.format=U.format??null});function L1($){return vM(rI,$)}var h7=o("ZodNumberFormat",($,I)=>{xF.init($,I),rI.init($,I)});function UW($){return jM(h7,$)}function Kf($){return CM(h7,$)}function qf($){return _M(h7,$)}function Hf($){return SM(h7,$)}function Gf($){return gM(h7,$)}var tI=o("ZodBoolean",($,I)=>{JQ.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>qA($,U,Y,J)});function F4($){return yM(tI,$)}var aI=o("ZodBigInt",($,I)=>{LG.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>HA($,Y,J,Q),$.gte=(Y,J)=>$.check(B6(Y,J)),$.min=(Y,J)=>$.check(B6(Y,J)),$.gt=(Y,J)=>$.check(X8(Y,J)),$.gte=(Y,J)=>$.check(B6(Y,J)),$.min=(Y,J)=>$.check(B6(Y,J)),$.lt=(Y,J)=>$.check(z8(Y,J)),$.lte=(Y,J)=>$.check(K$(Y,J)),$.max=(Y,J)=>$.check(K$(Y,J)),$.positive=(Y)=>$.check(X8(BigInt(0),Y)),$.negative=(Y)=>$.check(z8(BigInt(0),Y)),$.nonpositive=(Y)=>$.check(K$(BigInt(0),Y)),$.nonnegative=(Y)=>$.check(B6(BigInt(0),Y)),$.multipleOf=(Y,J)=>$.check(Y9(Y,J));let U=$._zod.bag;$.minValue=U.minimum??null,$.maxValue=U.maximum??null,$.format=U.format??null});function Wf($){return uM(aI,$)}var MW=o("ZodBigIntFormat",($,I)=>{fF.init($,I),aI.init($,I)});function wf($){return xM(MW,$)}function Vf($){return fM(MW,$)}var KP=o("ZodSymbol",($,I)=>{iF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>GA($,U,Y,J)});function Zf($){return iM(KP,$)}var qP=o("ZodUndefined",($,I)=>{bF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>wA($,U,Y,J)});function zf($){return bM(qP,$)}var HP=o("ZodNull",($,I)=>{nF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>WA($,U,Y,J)});function FQ($){return nM(HP,$)}var GP=o("ZodAny",($,I)=>{pF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>zA($,U,Y,J)});function Xf(){return pM(GP)}var WP=o("ZodUnknown",($,I)=>{cF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>XA($,U,Y,J)});function f1(){return cM(WP)}var wP=o("ZodNever",($,I)=>{dF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>ZA($,U,Y,J)});function AW($){return dM(wP,$)}var VP=o("ZodVoid",($,I)=>{mF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>VA($,U,Y,J)});function Lf($){return mM(VP,$)}var NQ=o("ZodDate",($,I)=>{lF.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>LA($,Y,J,Q),$.min=(Y,J)=>$.check(B6(Y,J)),$.max=(Y,J)=>$.check(K$(Y,J));let U=$._zod.bag;$.minDate=U.minimum?new Date(U.minimum):null,$.maxDate=U.maximum?new Date(U.maximum):null});function Df($){return lM(NQ,$)}var ZP=o("ZodArray",($,I)=>{oF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>RA($,U,Y,J),$.element=I.element,DQ($,"ZodArray",{min(U,Y){return this.check(U5(U,Y))},nonempty(U){return this.check(U5(1,U))},max(U,Y){return this.check(g7(U,Y))},length(U,Y){return this.check(y7(U,Y))},unwrap(){return this.element}})});function $1($,I){return tM(ZP,$,I)}function Of($){let I=$._zod.def.shape;return r4(Object.keys(I))}var MQ=o("ZodObject",($,I)=>{rF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>jA($,U,Y,J),D0.defineLazy($,"shape",()=>{return I.shape}),DQ($,"ZodObject",{keyof(){return r4(Object.keys(this._zod.def.shape))},catchall(U){return this.clone({...this._zod.def,catchall:U})},passthrough(){return this.clone({...this._zod.def,catchall:f1()})},loose(){return this.clone({...this._zod.def,catchall:f1()})},strict(){return this.clone({...this._zod.def,catchall:AW()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(U){return D0.extend(this,U)},safeExtend(U){return D0.safeExtend(this,U)},merge(U){return D0.merge(this,U)},pick(U){return D0.pick(this,U)},omit(U){return D0.omit(this,U)},partial(...U){return D0.partial(TW,this,U[0])},required(...U){return D0.required(EW,this,U[0])}})});function E0($,I){let U={type:"object",shape:$??{},...D0.normalizeParams(I)};return new MQ(U)}function Ff($,I){return new MQ({type:"object",shape:$,catchall:AW(),...D0.normalizeParams(I)})}function o4($,I){return new MQ({type:"object",shape:$,catchall:f1(),...D0.normalizeParams(I)})}var AQ=o("ZodUnion",($,I)=>{QQ.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>lG($,U,Y,J),$.options=I.options});function i1($,I){return new AQ({type:"union",options:$,...D0.normalizeParams(I)})}var zP=o("ZodXor",($,I)=>{AQ.init($,I),tF.init($,I),$._zod.processJSONSchema=(U,Y,J)=>lG($,U,Y,J),$.options=I.options});function Nf($,I){return new zP({type:"union",options:$,inclusive:!1,...D0.normalizeParams(I)})}var XP=o("ZodDiscriminatedUnion",($,I)=>{AQ.init($,I),aF.init($,I)});function PQ($,I,U){return new XP({type:"union",options:I,discriminator:$,...D0.normalizeParams(U)})}var LP=o("ZodIntersection",($,I)=>{sF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>CA($,U,Y,J)});function sI($,I){return new LP({type:"intersection",left:$,right:I})}var DP=o("ZodTuple",($,I)=>{DG.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>_A($,U,Y,J),$.rest=(U)=>$.clone({...$._zod.def,rest:U})});function OP($,I,U){let Y=I instanceof p0,J=Y?U:I;return new DP({type:"tuple",items:$,rest:Y?I:null,...D0.normalizeParams(J)})}var dI=o("ZodRecord",($,I)=>{eF.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>SA($,U,Y,J),$.keyType=I.keyType,$.valueType=I.valueType});function h1($,I,U){if(!I||!I._zod)return new dI({type:"record",keyType:q0(),valueType:$,...D0.normalizeParams(I)});return new dI({type:"record",keyType:$,valueType:I,...D0.normalizeParams(U)})}function Mf($,I,U){let Y=T6($);return Y._zod.values=void 0,new dI({type:"record",keyType:Y,valueType:I,...D0.normalizeParams(U)})}function Af($,I,U){return new dI({type:"record",keyType:$,valueType:I,mode:"loose",...D0.normalizeParams(U)})}var FP=o("ZodMap",($,I)=>{$N.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>BA($,U,Y,J),$.keyType=I.keyType,$.valueType=I.valueType,$.min=(...U)=>$.check(L8(...U)),$.nonempty=(U)=>$.check(L8(1,U)),$.max=(...U)=>$.check(J9(...U)),$.size=(...U)=>$.check(S7(...U))});function Pf($,I,U){return new FP({type:"map",keyType:$,valueType:I,...D0.normalizeParams(U)})}var NP=o("ZodSet",($,I)=>{IN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>vA($,U,Y,J),$.min=(...U)=>$.check(L8(...U)),$.nonempty=(U)=>$.check(L8(1,U)),$.max=(...U)=>$.check(J9(...U)),$.size=(...U)=>$.check(S7(...U))});function Tf($,I){return new NP({type:"set",valueType:$,...D0.normalizeParams(I)})}var mI=o("ZodEnum",($,I)=>{UN.init($,I),l0.init($,I),$._zod.processJSONSchema=(Y,J,Q)=>DA($,Y,J,Q),$.enum=I.entries,$.options=Object.values(I.entries);let U=new Set(Object.keys(I.entries));$.extract=(Y,J)=>{let Q={};for(let K of Y)if(U.has(K))Q[K]=I.entries[K];else throw Error(`Key ${K} not found in enum`);return new mI({...I,checks:[],...D0.normalizeParams(J),entries:Q})},$.exclude=(Y,J)=>{let Q={...I.entries};for(let K of Y)if(U.has(K))delete Q[K];else throw Error(`Key ${K} not found in enum`);return new mI({...I,checks:[],...D0.normalizeParams(J),entries:Q})}});function r4($,I){let U=Array.isArray($)?Object.fromEntries($.map((Y)=>[Y,Y])):$;return new mI({type:"enum",entries:U,...D0.normalizeParams(I)})}function Ef($,I){return new mI({type:"enum",entries:$,...D0.normalizeParams(I)})}var MP=o("ZodLiteral",($,I)=>{YN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>OA($,U,Y,J),$.values=new Set(I.values),Object.defineProperty($,"value",{get(){if(I.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return I.values[0]}})});function g0($,I){return new MP({type:"literal",values:Array.isArray($)?$:[$],...D0.normalizeParams(I)})}var AP=o("ZodFile",($,I)=>{JN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>MA($,U,Y,J),$.min=(U,Y)=>$.check(L8(U,Y)),$.max=(U,Y)=>$.check(J9(U,Y)),$.mime=(U,Y)=>$.check(uI(Array.isArray(U)?U:[U],Y))});function Bf($){return aM(AP,$)}var PP=o("ZodTransform",($,I)=>{QN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>EA($,U,Y,J),$._zod.parse=(U,Y)=>{if(Y.direction==="backward")throw new R7($.constructor.name);U.addIssue=(Q)=>{if(typeof Q==="string")U.issues.push(D0.issue(Q,U.value,I));else{let K=Q;if(K.fatal)K.continue=!1;K.code??(K.code="custom"),K.input??(K.input=U.value),K.inst??(K.inst=$),U.issues.push(D0.issue(K))}};let J=I.transform(U.value,U);if(J instanceof Promise)return J.then((Q)=>{return U.value=Q,U.fallback=!0,U});return U.value=J,U.fallback=!0,U}});function PW($){return new PP({type:"transform",transform:$})}var TW=o("ZodOptional",($,I)=>{OG.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>oG($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function p1($){return new TW({type:"optional",innerType:$})}var TP=o("ZodExactOptional",($,I)=>{KN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>oG($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function EP($){return new TP({type:"optional",innerType:$})}var BP=o("ZodNullable",($,I)=>{qN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>gA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function LQ($){return new BP({type:"nullable",innerType:$})}function vf($){return p1(LQ($))}var vP=o("ZodDefault",($,I)=>{HN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>hA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType,$.removeDefault=$.unwrap});function RP($,I){return new vP({type:"default",innerType:$,get defaultValue(){return typeof I==="function"?I():D0.shallowClone(I)}})}var jP=o("ZodPrefault",($,I)=>{GN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>uA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function CP($,I){return new jP({type:"prefault",innerType:$,get defaultValue(){return typeof I==="function"?I():D0.shallowClone(I)}})}var EW=o("ZodNonOptional",($,I)=>{WN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>yA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function _P($,I){return new EW({type:"nonoptional",innerType:$,...D0.normalizeParams(I)})}var SP=o("ZodSuccess",($,I)=>{wN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>AA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function Rf($){return new SP({type:"success",innerType:$})}var gP=o("ZodCatch",($,I)=>{VN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>kA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType,$.removeCatch=$.unwrap});function yP($,I){return new gP({type:"catch",innerType:$,catchValue:typeof I==="function"?I:()=>I})}var hP=o("ZodNaN",($,I)=>{ZN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>FA($,U,Y,J)});function jf($){return rM(hP,$)}var TQ=o("ZodPipe",($,I)=>{FG.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>xA($,U,Y,J),$.in=I.in,$.out=I.out});function YW($,I){return new TQ({type:"pipe",in:$,out:I})}var EQ=o("ZodCodec",($,I)=>{TQ.init($,I),KQ.init($,I)});function Cf($,I,U){return new EQ({type:"pipe",in:$,out:I,transform:U.decode,reverseTransform:U.encode})}function _f($){let I=$._zod.def;return new EQ({type:"pipe",in:I.out,out:I.in,transform:I.reverseTransform,reverseTransform:I.transform})}var uP=o("ZodPreprocess",($,I)=>{TQ.init($,I),zN.init($,I)}),kP=o("ZodReadonly",($,I)=>{XN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>fA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function xP($){return new kP({type:"readonly",innerType:$})}var fP=o("ZodTemplateLiteral",($,I)=>{LN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>NA($,U,Y,J)});function Sf($,I){return new fP({type:"template_literal",parts:$,...D0.normalizeParams(I)})}var iP=o("ZodLazy",($,I)=>{FN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>bA($,U,Y,J),$.unwrap=()=>$._zod.def.getter()});function bP($){return new iP({type:"lazy",getter:$})}var nP=o("ZodPromise",($,I)=>{ON.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>iA($,U,Y,J),$.unwrap=()=>$._zod.def.innerType});function gf($){return new nP({type:"promise",innerType:$})}var pP=o("ZodFunction",($,I)=>{DN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>TA($,U,Y,J)});function yf($){return new pP({type:"function",input:Array.isArray($?.input)?OP($?.input):$?.input??$1(f1()),output:$?.output??f1()})}var BQ=o("ZodCustom",($,I)=>{NN.init($,I),l0.init($,I),$._zod.processJSONSchema=(U,Y,J)=>PA($,U,Y,J)});function hf($){let I=new n1({check:"custom"});return I._zod.check=$,I}function BW($,I){return sM(BQ,$??(()=>!0),I)}function cP($,I={}){return eM(BQ,$,I)}function dP($,I){return $A($,I)}var uf=IA,kf=UA;function xf($,I={}){let U=new BQ({type:"custom",check:"custom",fn:(Y)=>Y instanceof $,abort:!0,...D0.normalizeParams(I)});return U._zod.bag.Class=$,U._zod.check=(Y)=>{if(!(Y.value instanceof $))Y.issues.push({code:"invalid_type",expected:$.name,input:Y.value,inst:U,path:[...U._zod.def.path??[]]})},U}var ff=(...$)=>YA({Codec:EQ,Boolean:tI,String:lI},...$);function bf($){let I=bP(()=>{return i1([q0($),L1(),F4(),FQ(),$1(I),h1(q0(),I)])});return I}function vQ($,I){return new uP({type:"pipe",in:PW($),out:I})}var UF0={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 YF0($){z4({customError:$})}function JF0(){return z4().customError}var mP;(function($){})(mP||(mP={}));var T0={...zQ,...aG,iso:G9},QF0=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 KF0($,I){let U=$.$schema;if(U==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(U==="http://json-schema.org/draft-07/schema#")return"draft-7";if(U==="http://json-schema.org/draft-04/schema#")return"draft-4";return I??"draft-2020-12"}function qF0($,I){if(!$.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let U=$.slice(1).split("/").filter(Boolean);if(U.length===0)return I.rootSchema;let Y=I.version==="draft-2020-12"?"$defs":"definitions";if(U[0]===Y){let J=U[1];if(!J||!I.defs[J])throw Error(`Reference not found: ${$}`);return I.defs[J]}throw Error(`Reference not found: ${$}`)}function nf($,I){if($.not!==void 0){if(typeof $.not==="object"&&Object.keys($.not).length===0)return T0.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if($.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if($.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if($.if!==void 0||$.then!==void 0||$.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if($.dependentSchemas!==void 0||$.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if($.$ref){let J=$.$ref;if(I.refs.has(J))return I.refs.get(J);if(I.processing.has(J))return T0.lazy(()=>{if(!I.refs.has(J))throw Error(`Circular reference not resolved: ${J}`);return I.refs.get(J)});I.processing.add(J);let Q=qF0(J,I),K=z6(Q,I);return I.refs.set(J,K),I.processing.delete(J),K}if($.enum!==void 0){let J=$.enum;if(I.version==="openapi-3.0"&&$.nullable===!0&&J.length===1&&J[0]===null)return T0.null();if(J.length===0)return T0.never();if(J.length===1)return T0.literal(J[0]);if(J.every((K)=>typeof K==="string"))return T0.enum(J);let Q=J.map((K)=>T0.literal(K));if(Q.length<2)return Q[0];return T0.union([Q[0],Q[1],...Q.slice(2)])}if($.const!==void 0)return T0.literal($.const);let U=$.type;if(Array.isArray(U)){let J=U.map((Q)=>{let K={...$,type:Q};return nf(K,I)});if(J.length===0)return T0.never();if(J.length===1)return J[0];return T0.union(J)}if(!U)return T0.any();let Y;switch(U){case"string":{let J=T0.string();if($.format){let Q=$.format;if(Q==="email")J=J.check(T0.email());else if(Q==="uri"||Q==="uri-reference")J=J.check(T0.url());else if(Q==="uuid"||Q==="guid")J=J.check(T0.uuid());else if(Q==="date-time")J=J.check(T0.iso.datetime());else if(Q==="date")J=J.check(T0.iso.date());else if(Q==="time")J=J.check(T0.iso.time());else if(Q==="duration")J=J.check(T0.iso.duration());else if(Q==="ipv4")J=J.check(T0.ipv4());else if(Q==="ipv6")J=J.check(T0.ipv6());else if(Q==="mac")J=J.check(T0.mac());else if(Q==="cidr")J=J.check(T0.cidrv4());else if(Q==="cidr-v6")J=J.check(T0.cidrv6());else if(Q==="base64")J=J.check(T0.base64());else if(Q==="base64url")J=J.check(T0.base64url());else if(Q==="e164")J=J.check(T0.e164());else if(Q==="jwt")J=J.check(T0.jwt());else if(Q==="emoji")J=J.check(T0.emoji());else if(Q==="nanoid")J=J.check(T0.nanoid());else if(Q==="cuid")J=J.check(T0.cuid());else if(Q==="cuid2")J=J.check(T0.cuid2());else if(Q==="ulid")J=J.check(T0.ulid());else if(Q==="xid")J=J.check(T0.xid());else if(Q==="ksuid")J=J.check(T0.ksuid())}if(typeof $.minLength==="number")J=J.min($.minLength);if(typeof $.maxLength==="number")J=J.max($.maxLength);if($.pattern)J=J.regex(new RegExp($.pattern));Y=J;break}case"number":case"integer":{let J=U==="integer"?T0.number().int():T0.number();if(typeof $.minimum==="number")J=J.min($.minimum);if(typeof $.maximum==="number")J=J.max($.maximum);if(typeof $.exclusiveMinimum==="number")J=J.gt($.exclusiveMinimum);else if($.exclusiveMinimum===!0&&typeof $.minimum==="number")J=J.gt($.minimum);if(typeof $.exclusiveMaximum==="number")J=J.lt($.exclusiveMaximum);else if($.exclusiveMaximum===!0&&typeof $.maximum==="number")J=J.lt($.maximum);if(typeof $.multipleOf==="number")J=J.multipleOf($.multipleOf);Y=J;break}case"boolean":{Y=T0.boolean();break}case"null":{Y=T0.null();break}case"object":{let J={},Q=$.properties||{},K=new Set($.required||[]);for(let[H,G]of Object.entries(Q)){let W=z6(G,I);J[H]=K.has(H)?W:W.optional()}if($.propertyNames){let H=z6($.propertyNames,I),G=$.additionalProperties&&typeof $.additionalProperties==="object"?z6($.additionalProperties,I):T0.any();if(Object.keys(J).length===0){Y=T0.record(H,G);break}let W=T0.object(J).passthrough(),w=T0.looseRecord(H,G);Y=T0.intersection(W,w);break}if($.patternProperties){let H=$.patternProperties,G=Object.keys(H),W=[];for(let Z of G){let V=z6(H[Z],I),X=T0.string().regex(new RegExp(Z));W.push(T0.looseRecord(X,V))}let w=[];if(Object.keys(J).length>0)w.push(T0.object(J).passthrough());if(w.push(...W),w.length===0)Y=T0.object({}).passthrough();else if(w.length===1)Y=w[0];else{let Z=T0.intersection(w[0],w[1]);for(let V=2;Vz6(H,I)),q=Q&&typeof Q==="object"&&!Array.isArray(Q)?z6(Q,I):void 0;if(q)Y=T0.tuple(K).rest(q);else Y=T0.tuple(K);if(typeof $.minItems==="number")Y=Y.check(T0.minLength($.minItems));if(typeof $.maxItems==="number")Y=Y.check(T0.maxLength($.maxItems))}else if(Array.isArray(Q)){let K=Q.map((H)=>z6(H,I)),q=$.additionalItems&&typeof $.additionalItems==="object"?z6($.additionalItems,I):void 0;if(q)Y=T0.tuple(K).rest(q);else Y=T0.tuple(K);if(typeof $.minItems==="number")Y=Y.check(T0.minLength($.minItems));if(typeof $.maxItems==="number")Y=Y.check(T0.maxLength($.maxItems))}else if(Q!==void 0){let K=z6(Q,I),q=T0.array(K);if(typeof $.minItems==="number")q=q.min($.minItems);if(typeof $.maxItems==="number")q=q.max($.maxItems);Y=q}else Y=T0.array(T0.any());break}default:throw Error(`Unsupported type: ${U}`)}return Y}function z6($,I){if(typeof $==="boolean")return $?T0.any():T0.never();let U=nf($,I),Y=$.type||$.enum!==void 0||$.const!==void 0;if($.anyOf&&Array.isArray($.anyOf)){let q=$.anyOf.map((G)=>z6(G,I)),H=T0.union(q);U=Y?T0.intersection(U,H):H}if($.oneOf&&Array.isArray($.oneOf)){let q=$.oneOf.map((G)=>z6(G,I)),H=T0.xor(q);U=Y?T0.intersection(U,H):H}if($.allOf&&Array.isArray($.allOf))if($.allOf.length===0)U=Y?U:T0.any();else{let q=Y?U:z6($.allOf[0],I),H=Y?0:1;for(let G=H;G<$.allOf.length;G++)q=T0.intersection(q,z6($.allOf[G],I));U=q}if($.nullable===!0&&I.version==="openapi-3.0")U=T0.nullable(U);if($.readOnly===!0)U=T0.readonly(U);if($.default!==void 0)U=U.default($.default);let J={},Q=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let q of Q)if(q in $)J[q]=$[q];let K=["contentEncoding","contentMediaType","contentSchema"];for(let q of K)if(q in $)J[q]=$[q];for(let q of Object.keys($))if(!QF0.has(q))J[q]=$[q];if(Object.keys(J).length>0)I.registry.add(U,J);if($.description)U=U.describe($.description);return U}function pf($,I){if(typeof $==="boolean")return $?T0.any():T0.never();let U;try{U=JSON.parse(JSON.stringify($))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let Y=KF0(U,I?.defaultTarget),J=U.$defs||U.definitions||{},Q={version:Y,defs:J,refs:new Map,processing:new Set,rootSchema:U,registry:I?.registry??l4};return z6(U,Q)}var lP={};$5(lP,{string:()=>HF0,number:()=>GF0,date:()=>VF0,boolean:()=>WF0,bigint:()=>wF0});function HF0($){return NM(lI,$)}function GF0($){return RM(rI,$)}function WF0($){return hM(tI,$)}function wF0($){return kM(aI,$)}function VF0($){return oM(NQ,$)}z4(qQ());var oP="2025-11-25";var cf=[oP,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],W9="io.modelcontextprotocol/related-task",RW="2.0",g4=BW(($)=>$!==null&&(typeof $==="object"||typeof $==="function")),df=i1([q0(),L1().int()]),mf=q0(),bZ1=o4({ttl:L1().optional(),pollInterval:L1().optional()}),ZF0=E0({ttl:L1().optional()}),zF0=E0({taskId:q0()}),rP=o4({progressToken:df.optional(),[W9]:zF0.optional()}),q$=E0({_meta:rP.optional()}),RQ=q$.extend({task:ZF0.optional()}),lf=($)=>RQ.safeParse($).success,t4=E0({method:q0(),params:q$.loose().optional()}),T$=E0({_meta:rP.optional()}),E$=E0({method:q0(),params:T$.loose().optional()}),a4=o4({_meta:rP.optional()}),jW=i1([q0(),L1().int()]),of=E0({jsonrpc:g0(RW),id:jW,...t4.shape}).strict(),tP=($)=>of.safeParse($).success,rf=E0({jsonrpc:g0(RW),...E$.shape}).strict(),tf=($)=>rf.safeParse($).success,aP=E0({jsonrpc:g0(RW),id:jW,result:a4}).strict(),jQ=($)=>aP.safeParse($).success;var K1;(function($){$[$.ConnectionClosed=-32000]="ConnectionClosed",$[$.RequestTimeout=-32001]="RequestTimeout",$[$.ParseError=-32700]="ParseError",$[$.InvalidRequest=-32600]="InvalidRequest",$[$.MethodNotFound=-32601]="MethodNotFound",$[$.InvalidParams=-32602]="InvalidParams",$[$.InternalError=-32603]="InternalError",$[$.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(K1||(K1={}));var sP=E0({jsonrpc:g0(RW),id:jW.optional(),error:E0({code:L1().int(),message:q0(),data:f1().optional()})}).strict();var af=($)=>sP.safeParse($).success;var sf=i1([of,rf,aP,sP]),nZ1=i1([aP,sP]),CW=a4.strict(),XF0=T$.extend({requestId:jW.optional(),reason:q0().optional()}),_W=E$.extend({method:g0("notifications/cancelled"),params:XF0}),LF0=E0({src:q0(),mimeType:q0().optional(),sizes:$1(q0()).optional(),theme:r4(["light","dark"]).optional()}),CQ=E0({icons:$1(LF0).optional()}),eI=E0({name:q0(),title:q0().optional()}),ef=eI.extend({...eI.shape,...CQ.shape,version:q0(),websiteUrl:q0().optional(),description:q0().optional()}),DF0=sI(E0({applyDefaults:F4().optional()}),h1(q0(),f1())),OF0=vQ(($)=>{if($&&typeof $==="object"&&!Array.isArray($)){if(Object.keys($).length===0)return{form:{}}}return $},sI(E0({form:DF0.optional(),url:g4.optional()}),h1(q0(),f1()).optional())),FF0=o4({list:g4.optional(),cancel:g4.optional(),requests:o4({sampling:o4({createMessage:g4.optional()}).optional(),elicitation:o4({create:g4.optional()}).optional()}).optional()}),NF0=o4({list:g4.optional(),cancel:g4.optional(),requests:o4({tools:o4({call:g4.optional()}).optional()}).optional()}),MF0=E0({experimental:h1(q0(),g4).optional(),sampling:E0({context:g4.optional(),tools:g4.optional()}).optional(),elicitation:OF0.optional(),roots:E0({listChanged:F4().optional()}).optional(),tasks:FF0.optional(),extensions:h1(q0(),g4).optional()}),AF0=q$.extend({protocolVersion:q0(),capabilities:MF0,clientInfo:ef}),eP=t4.extend({method:g0("initialize"),params:AF0});var PF0=E0({experimental:h1(q0(),g4).optional(),logging:g4.optional(),completions:g4.optional(),prompts:E0({listChanged:F4().optional()}).optional(),resources:E0({subscribe:F4().optional(),listChanged:F4().optional()}).optional(),tools:E0({listChanged:F4().optional()}).optional(),tasks:NF0.optional(),extensions:h1(q0(),g4).optional()}),TF0=a4.extend({protocolVersion:q0(),capabilities:PF0,serverInfo:ef,instructions:q0().optional()}),$T=E$.extend({method:g0("notifications/initialized"),params:T$.optional()});var SW=t4.extend({method:g0("ping"),params:q$.optional()}),EF0=E0({progress:L1(),total:p1(L1()),message:p1(q0())}),BF0=E0({...T$.shape,...EF0.shape,progressToken:df}),gW=E$.extend({method:g0("notifications/progress"),params:BF0}),vF0=q$.extend({cursor:mf.optional()}),_Q=t4.extend({params:vF0.optional()}),SQ=a4.extend({nextCursor:mf.optional()}),RF0=r4(["working","input_required","completed","failed","cancelled"]),gQ=E0({taskId:q0(),status:RF0,ttl:i1([L1(),FQ()]),createdAt:q0(),lastUpdatedAt:q0(),pollInterval:p1(L1()),statusMessage:p1(q0())}),$U=a4.extend({task:gQ}),jF0=T$.merge(gQ),yQ=E$.extend({method:g0("notifications/tasks/status"),params:jF0}),yW=t4.extend({method:g0("tasks/get"),params:q$.extend({taskId:q0()})}),hW=a4.merge(gQ),uW=t4.extend({method:g0("tasks/result"),params:q$.extend({taskId:q0()})}),pZ1=a4.loose(),kW=_Q.extend({method:g0("tasks/list")}),xW=SQ.extend({tasks:$1(gQ)}),fW=t4.extend({method:g0("tasks/cancel"),params:q$.extend({taskId:q0()})}),$i=a4.merge(gQ),Ii=E0({uri:q0(),mimeType:p1(q0()),_meta:h1(q0(),f1()).optional()}),Ui=Ii.extend({text:q0()}),IT=q0().refine(($)=>{try{return atob($),!0}catch{return!1}},{message:"Invalid Base64 string"}),Yi=Ii.extend({blob:IT}),hQ=r4(["user","assistant"]),IU=E0({audience:$1(hQ).optional(),priority:L1().min(0).max(1).optional(),lastModified:G9.datetime({offset:!0}).optional()}),Ji=E0({...eI.shape,...CQ.shape,uri:q0(),description:p1(q0()),mimeType:p1(q0()),size:p1(L1()),annotations:IU.optional(),_meta:p1(o4({}))}),CF0=E0({...eI.shape,...CQ.shape,uriTemplate:q0(),description:p1(q0()),mimeType:p1(q0()),annotations:IU.optional(),_meta:p1(o4({}))}),_F0=_Q.extend({method:g0("resources/list")}),SF0=SQ.extend({resources:$1(Ji)}),gF0=_Q.extend({method:g0("resources/templates/list")}),yF0=SQ.extend({resourceTemplates:$1(CF0)}),UT=q$.extend({uri:q0()}),hF0=UT,uF0=t4.extend({method:g0("resources/read"),params:hF0}),kF0=a4.extend({contents:$1(i1([Ui,Yi]))}),xF0=E$.extend({method:g0("notifications/resources/list_changed"),params:T$.optional()}),fF0=UT,iF0=t4.extend({method:g0("resources/subscribe"),params:fF0}),bF0=UT,nF0=t4.extend({method:g0("resources/unsubscribe"),params:bF0}),pF0=T$.extend({uri:q0()}),cF0=E$.extend({method:g0("notifications/resources/updated"),params:pF0}),dF0=E0({name:q0(),description:p1(q0()),required:p1(F4())}),mF0=E0({...eI.shape,...CQ.shape,description:p1(q0()),arguments:p1($1(dF0)),_meta:p1(o4({}))}),lF0=_Q.extend({method:g0("prompts/list")}),oF0=SQ.extend({prompts:$1(mF0)}),rF0=q$.extend({name:q0(),arguments:h1(q0(),q0()).optional()}),tF0=t4.extend({method:g0("prompts/get"),params:rF0}),YT=E0({type:g0("text"),text:q0(),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),JT=E0({type:g0("image"),data:IT,mimeType:q0(),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),QT=E0({type:g0("audio"),data:IT,mimeType:q0(),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),aF0=E0({type:g0("tool_use"),name:q0(),id:q0(),input:h1(q0(),f1()),_meta:h1(q0(),f1()).optional()}),sF0=E0({type:g0("resource"),resource:i1([Ui,Yi]),annotations:IU.optional(),_meta:h1(q0(),f1()).optional()}),eF0=Ji.extend({type:g0("resource_link")}),KT=i1([YT,JT,QT,eF0,sF0]),$N0=E0({role:hQ,content:KT}),IN0=a4.extend({description:q0().optional(),messages:$1($N0)}),UN0=E$.extend({method:g0("notifications/prompts/list_changed"),params:T$.optional()}),YN0=E0({title:q0().optional(),readOnlyHint:F4().optional(),destructiveHint:F4().optional(),idempotentHint:F4().optional(),openWorldHint:F4().optional()}),JN0=E0({taskSupport:r4(["required","optional","forbidden"]).optional()}),Qi=E0({...eI.shape,...CQ.shape,description:q0().optional(),inputSchema:E0({type:g0("object"),properties:h1(q0(),g4).optional(),required:$1(q0()).optional()}).catchall(f1()),outputSchema:E0({type:g0("object"),properties:h1(q0(),g4).optional(),required:$1(q0()).optional()}).catchall(f1()).optional(),annotations:YN0.optional(),execution:JN0.optional(),_meta:h1(q0(),f1()).optional()}),qT=_Q.extend({method:g0("tools/list")}),QN0=SQ.extend({tools:$1(Qi)}),iW=a4.extend({content:$1(KT).default([]),structuredContent:h1(q0(),f1()).optional(),isError:F4().optional()}),cZ1=iW.or(a4.extend({toolResult:f1()})),KN0=RQ.extend({name:q0(),arguments:h1(q0(),f1()).optional()}),uQ=t4.extend({method:g0("tools/call"),params:KN0}),qN0=E$.extend({method:g0("notifications/tools/list_changed"),params:T$.optional()}),dZ1=E0({autoRefresh:F4().default(!0),debounceMs:L1().int().nonnegative().default(300)}),kQ=r4(["debug","info","notice","warning","error","critical","alert","emergency"]),HN0=q$.extend({level:kQ}),HT=t4.extend({method:g0("logging/setLevel"),params:HN0}),GN0=T$.extend({level:kQ,logger:q0().optional(),data:f1()}),WN0=E$.extend({method:g0("notifications/message"),params:GN0}),wN0=E0({name:q0().optional()}),VN0=E0({hints:$1(wN0).optional(),costPriority:L1().min(0).max(1).optional(),speedPriority:L1().min(0).max(1).optional(),intelligencePriority:L1().min(0).max(1).optional()}),ZN0=E0({mode:r4(["auto","required","none"]).optional()}),zN0=E0({type:g0("tool_result"),toolUseId:q0().describe("The unique identifier for the corresponding tool call."),content:$1(KT).default([]),structuredContent:E0({}).loose().optional(),isError:F4().optional(),_meta:h1(q0(),f1()).optional()}),XN0=PQ("type",[YT,JT,QT]),vW=PQ("type",[YT,JT,QT,aF0,zN0]),LN0=E0({role:hQ,content:i1([vW,$1(vW)]),_meta:h1(q0(),f1()).optional()}),DN0=RQ.extend({messages:$1(LN0),modelPreferences:VN0.optional(),systemPrompt:q0().optional(),includeContext:r4(["none","thisServer","allServers"]).optional(),temperature:L1().optional(),maxTokens:L1().int(),stopSequences:$1(q0()).optional(),metadata:g4.optional(),tools:$1(Qi).optional(),toolChoice:ZN0.optional()}),ON0=t4.extend({method:g0("sampling/createMessage"),params:DN0}),xQ=a4.extend({model:q0(),stopReason:p1(r4(["endTurn","stopSequence","maxTokens"]).or(q0())),role:hQ,content:XN0}),GT=a4.extend({model:q0(),stopReason:p1(r4(["endTurn","stopSequence","maxTokens","toolUse"]).or(q0())),role:hQ,content:i1([vW,$1(vW)])}),FN0=E0({type:g0("boolean"),title:q0().optional(),description:q0().optional(),default:F4().optional()}),NN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),minLength:L1().optional(),maxLength:L1().optional(),format:r4(["email","uri","date","date-time"]).optional(),default:q0().optional()}),MN0=E0({type:r4(["number","integer"]),title:q0().optional(),description:q0().optional(),minimum:L1().optional(),maximum:L1().optional(),default:L1().optional()}),AN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),enum:$1(q0()),default:q0().optional()}),PN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),oneOf:$1(E0({const:q0(),title:q0()})),default:q0().optional()}),TN0=E0({type:g0("string"),title:q0().optional(),description:q0().optional(),enum:$1(q0()),enumNames:$1(q0()).optional(),default:q0().optional()}),EN0=i1([AN0,PN0]),BN0=E0({type:g0("array"),title:q0().optional(),description:q0().optional(),minItems:L1().optional(),maxItems:L1().optional(),items:E0({type:g0("string"),enum:$1(q0())}),default:$1(q0()).optional()}),vN0=E0({type:g0("array"),title:q0().optional(),description:q0().optional(),minItems:L1().optional(),maxItems:L1().optional(),items:E0({anyOf:$1(E0({const:q0(),title:q0()}))}),default:$1(q0()).optional()}),RN0=i1([BN0,vN0]),jN0=i1([TN0,EN0,RN0]),CN0=i1([jN0,FN0,NN0,MN0]),_N0=RQ.extend({mode:g0("form").optional(),message:q0(),requestedSchema:E0({type:g0("object"),properties:h1(q0(),CN0),required:$1(q0()).optional()})}),SN0=RQ.extend({mode:g0("url"),message:q0(),elicitationId:q0(),url:q0().url()}),gN0=i1([_N0,SN0]),yN0=t4.extend({method:g0("elicitation/create"),params:gN0}),hN0=T$.extend({elicitationId:q0()}),uN0=E$.extend({method:g0("notifications/elicitation/complete"),params:hN0}),UU=a4.extend({action:r4(["accept","decline","cancel"]),content:vQ(($)=>$===null?void 0:$,h1(q0(),i1([q0(),L1(),F4(),$1(q0())])).optional())}),kN0=E0({type:g0("ref/resource"),uri:q0()});var xN0=E0({type:g0("ref/prompt"),name:q0()}),fN0=q$.extend({ref:i1([xN0,kN0]),argument:E0({name:q0(),value:q0()}),context:E0({arguments:h1(q0(),q0()).optional()}).optional()}),iN0=t4.extend({method:g0("completion/complete"),params:fN0});var bN0=a4.extend({completion:o4({values:$1(q0()).max(100),total:p1(L1().int()),hasMore:p1(F4())})}),nN0=E0({uri:q0().startsWith("file://"),name:q0().optional(),_meta:h1(q0(),f1()).optional()}),pN0=t4.extend({method:g0("roots/list"),params:q$.optional()}),WT=a4.extend({roots:$1(nN0)}),cN0=E$.extend({method:g0("notifications/roots/list_changed"),params:T$.optional()}),mZ1=i1([SW,eP,iN0,HT,tF0,lF0,_F0,gF0,uF0,iF0,nF0,uQ,qT,yW,uW,kW,fW]),lZ1=i1([_W,gW,$T,cN0,yQ]),oZ1=i1([CW,xQ,GT,UU,WT,hW,xW,$U]),rZ1=i1([SW,ON0,yN0,pN0,yW,uW,kW,fW]),tZ1=i1([_W,gW,WN0,cF0,xF0,qN0,UN0,yQ,uN0]),aZ1=i1([CW,TF0,bN0,IN0,oF0,SF0,yF0,kF0,iW,QN0,hW,xW,$U]);class r0 extends Error{constructor($,I,U){super(`MCP error ${$}: ${I}`);this.code=$,this.data=U,this.name="McpError"}static fromError($,I,U){if($===K1.UrlElicitationRequired&&U){let Y=U;if(Y.elicitations)return new Ki(Y.elicitations,I)}return new r0($,I,U)}}class Ki extends r0{constructor($,I=`URL elicitation${$.length>1?"s":""} required`){super(K1.UrlElicitationRequired,I,{elicitations:$})}get elicitations(){return this.data?.elicitations??[]}}function w9($){return $==="completed"||$==="failed"||$==="cancelled"}var dN0=Symbol("Let zodToJsonSchema decide on which parser to use");var Cz1=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function wT($){let U=tG($)?.method;if(!U)throw Error("Schema is missing a method literal");let Y=jx(U);if(typeof Y!=="string")throw Error("Schema method literal must be a string");return Y}function VT($,I){let U=H9($,I);if(!U.success)throw U.error;return U.data}var aN0=60000;class ZT{constructor($){if(this._options=$,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(_W,(I)=>{this._oncancel(I)}),this.setNotificationHandler(gW,(I)=>{this._onprogress(I)}),this.setRequestHandler(SW,(I)=>({})),this._taskStore=$?.taskStore,this._taskMessageQueue=$?.taskMessageQueue,this._taskStore)this.setRequestHandler(yW,async(I,U)=>{let Y=await this._taskStore.getTask(I.params.taskId,U.sessionId);if(!Y)throw new r0(K1.InvalidParams,"Failed to retrieve task: Task not found");return{...Y}}),this.setRequestHandler(uW,async(I,U)=>{let Y=async()=>{let J=I.params.taskId;if(this._taskMessageQueue){let K;while(K=await this._taskMessageQueue.dequeue(J,U.sessionId)){if(K.type==="response"||K.type==="error"){let q=K.message,H=q.id,G=this._requestResolvers.get(H);if(G)if(this._requestResolvers.delete(H),K.type==="response")G(q);else{let W=q,w=new r0(W.error.code,W.error.message,W.error.data);G(w)}else{let W=K.type==="response"?"Response":"Error";this._onerror(Error(`${W} handler missing for request ${H}`))}continue}await this._transport?.send(K.message,{relatedRequestId:U.requestId})}}let Q=await this._taskStore.getTask(J,U.sessionId);if(!Q)throw new r0(K1.InvalidParams,`Task not found: ${J}`);if(!w9(Q.status))return await this._waitForTaskUpdate(J,U.signal),await Y();if(w9(Q.status)){let K=await this._taskStore.getTaskResult(J,U.sessionId);return this._clearTaskQueue(J),{...K,_meta:{...K._meta,[W9]:{taskId:J}}}}return await Y()};return await Y()}),this.setRequestHandler(kW,async(I,U)=>{try{let{tasks:Y,nextCursor:J}=await this._taskStore.listTasks(I.params?.cursor,U.sessionId);return{tasks:Y,nextCursor:J,_meta:{}}}catch(Y){throw new r0(K1.InvalidParams,`Failed to list tasks: ${Y instanceof Error?Y.message:String(Y)}`)}}),this.setRequestHandler(fW,async(I,U)=>{try{let Y=await this._taskStore.getTask(I.params.taskId,U.sessionId);if(!Y)throw new r0(K1.InvalidParams,`Task not found: ${I.params.taskId}`);if(w9(Y.status))throw new r0(K1.InvalidParams,`Cannot cancel task in terminal status: ${Y.status}`);await this._taskStore.updateTaskStatus(I.params.taskId,"cancelled","Client cancelled task execution.",U.sessionId),this._clearTaskQueue(I.params.taskId);let J=await this._taskStore.getTask(I.params.taskId,U.sessionId);if(!J)throw new r0(K1.InvalidParams,`Task not found after cancellation: ${I.params.taskId}`);return{_meta:{},...J}}catch(Y){if(Y instanceof r0)throw Y;throw new r0(K1.InvalidRequest,`Failed to cancel task: ${Y instanceof Error?Y.message:String(Y)}`)}})}async _oncancel($){if(!$.params.requestId)return;this._requestHandlerAbortControllers.get($.params.requestId)?.abort($.params.reason)}_setupTimeout($,I,U,Y,J=!1){this._timeoutInfo.set($,{timeoutId:setTimeout(Y,I),startTime:Date.now(),timeout:I,maxTotalTimeout:U,resetTimeoutOnProgress:J,onTimeout:Y})}_resetTimeout($){let I=this._timeoutInfo.get($);if(!I)return!1;let U=Date.now()-I.startTime;if(I.maxTotalTimeout&&U>=I.maxTotalTimeout)throw this._timeoutInfo.delete($),r0.fromError(K1.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:I.maxTotalTimeout,totalElapsed:U});return clearTimeout(I.timeoutId),I.timeoutId=setTimeout(I.onTimeout,I.timeout),!0}_cleanupTimeout($){let I=this._timeoutInfo.get($);if(I)clearTimeout(I.timeoutId),this._timeoutInfo.delete($)}async connect($){if(this._transport)throw Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=$;let I=this.transport?.onclose;this._transport.onclose=()=>{I?.(),this._onclose()};let U=this.transport?.onerror;this._transport.onerror=(J)=>{U?.(J),this._onerror(J)};let Y=this._transport?.onmessage;this._transport.onmessage=(J,Q)=>{if(Y?.(J,Q),jQ(J)||af(J))this._onresponse(J);else if(tP(J))this._onrequest(J,Q);else if(tf(J))this._onnotification(J);else this._onerror(Error(`Unknown message type: ${JSON.stringify(J)}`))},await this._transport.start()}_onclose(){let $=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let U of this._timeoutInfo.values())clearTimeout(U.timeoutId);this._timeoutInfo.clear();for(let U of this._requestHandlerAbortControllers.values())U.abort();this._requestHandlerAbortControllers.clear();let I=r0.fromError(K1.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let U of $.values())U(I)}_onerror($){this.onerror?.($)}_onnotification($){let I=this._notificationHandlers.get($.method)??this.fallbackNotificationHandler;if(I===void 0)return;Promise.resolve().then(()=>I($)).catch((U)=>this._onerror(Error(`Uncaught error in notification handler: ${U}`)))}_onrequest($,I){let U=this._requestHandlers.get($.method)??this.fallbackRequestHandler,Y=this._transport,J=$.params?._meta?.[W9]?.taskId;if(U===void 0){let G={jsonrpc:"2.0",id:$.id,error:{code:K1.MethodNotFound,message:"Method not found"}};if(J&&this._taskMessageQueue)this._enqueueTaskMessage(J,{type:"error",message:G,timestamp:Date.now()},Y?.sessionId).catch((W)=>this._onerror(Error(`Failed to enqueue error response: ${W}`)));else Y?.send(G).catch((W)=>this._onerror(Error(`Failed to send an error response: ${W}`)));return}let Q=new AbortController;this._requestHandlerAbortControllers.set($.id,Q);let K=lf($.params)?$.params.task:void 0,q=this._taskStore?this.requestTaskStore($,Y?.sessionId):void 0,H={signal:Q.signal,sessionId:Y?.sessionId,_meta:$.params?._meta,sendNotification:async(G)=>{if(Q.signal.aborted)return;let W={relatedRequestId:$.id};if(J)W.relatedTask={taskId:J};await this.notification(G,W)},sendRequest:async(G,W,w)=>{if(Q.signal.aborted)throw new r0(K1.ConnectionClosed,"Request was cancelled");let Z={...w,relatedRequestId:$.id};if(J&&!Z.relatedTask)Z.relatedTask={taskId:J};let V=Z.relatedTask?.taskId??J;if(V&&q)await q.updateTaskStatus(V,"input_required");return await this.request(G,W,Z)},authInfo:I?.authInfo,requestId:$.id,requestInfo:I?.requestInfo,taskId:J,taskStore:q,taskRequestedTtl:K?.ttl,closeSSEStream:I?.closeSSEStream,closeStandaloneSSEStream:I?.closeStandaloneSSEStream};Promise.resolve().then(()=>{if(K)this.assertTaskHandlerCapability($.method)}).then(()=>U($,H)).then(async(G)=>{if(Q.signal.aborted)return;let W={result:G,jsonrpc:"2.0",id:$.id};if(J&&this._taskMessageQueue)await this._enqueueTaskMessage(J,{type:"response",message:W,timestamp:Date.now()},Y?.sessionId);else await Y?.send(W)},async(G)=>{if(Q.signal.aborted)return;let W={jsonrpc:"2.0",id:$.id,error:{code:Number.isSafeInteger(G.code)?G.code:K1.InternalError,message:G.message??"Internal error",...G.data!==void 0&&{data:G.data}}};if(J&&this._taskMessageQueue)await this._enqueueTaskMessage(J,{type:"error",message:W,timestamp:Date.now()},Y?.sessionId);else await Y?.send(W)}).catch((G)=>this._onerror(Error(`Failed to send response: ${G}`))).finally(()=>{if(this._requestHandlerAbortControllers.get($.id)===Q)this._requestHandlerAbortControllers.delete($.id)})}_onprogress($){let{progressToken:I,...U}=$.params,Y=Number(I),J=this._progressHandlers.get(Y);if(!J){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify($)}`));return}let Q=this._responseHandlers.get(Y),K=this._timeoutInfo.get(Y);if(K&&Q&&K.resetTimeoutOnProgress)try{this._resetTimeout(Y)}catch(q){this._responseHandlers.delete(Y),this._progressHandlers.delete(Y),this._cleanupTimeout(Y),Q(q);return}J(U)}_onresponse($){let I=Number($.id),U=this._requestResolvers.get(I);if(U){if(this._requestResolvers.delete(I),jQ($))U($);else{let Q=new r0($.error.code,$.error.message,$.error.data);U(Q)}return}let Y=this._responseHandlers.get(I);if(Y===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify($)}`));return}this._responseHandlers.delete(I),this._cleanupTimeout(I);let J=!1;if(jQ($)&&$.result&&typeof $.result==="object"){let Q=$.result;if(Q.task&&typeof Q.task==="object"){let K=Q.task;if(typeof K.taskId==="string")J=!0,this._taskProgressTokens.set(K.taskId,I)}}if(!J)this._progressHandlers.delete(I);if(jQ($))Y($);else{let Q=r0.fromError($.error.code,$.error.message,$.error.data);Y(Q)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream($,I,U){let{task:Y}=U??{};if(!Y){try{yield{type:"result",result:await this.request($,I,U)}}catch(Q){yield{type:"error",error:Q instanceof r0?Q:new r0(K1.InternalError,String(Q))}}return}let J;try{let Q=await this.request($,$U,U);if(Q.task)J=Q.task.taskId,yield{type:"taskCreated",task:Q.task};else throw new r0(K1.InternalError,"Task creation did not return a task");while(!0){let K=await this.getTask({taskId:J},U);if(yield{type:"taskStatus",task:K},w9(K.status)){if(K.status==="completed")yield{type:"result",result:await this.getTaskResult({taskId:J},I,U)};else if(K.status==="failed")yield{type:"error",error:new r0(K1.InternalError,`Task ${J} failed`)};else if(K.status==="cancelled")yield{type:"error",error:new r0(K1.InternalError,`Task ${J} was cancelled`)};return}if(K.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:J},I,U)};return}let q=K.pollInterval??this._options?.defaultTaskPollInterval??1000;await new Promise((H)=>setTimeout(H,q)),U?.signal?.throwIfAborted()}}catch(Q){yield{type:"error",error:Q instanceof r0?Q:new r0(K1.InternalError,String(Q))}}}request($,I,U){let{relatedRequestId:Y,resumptionToken:J,onresumptiontoken:Q,task:K,relatedTask:q}=U??{};return new Promise((H,G)=>{let W=(F)=>{G(F)};if(!this._transport){W(Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{if(this.assertCapabilityForMethod($.method),K)this.assertTaskCapability($.method)}catch(F){W(F);return}U?.signal?.throwIfAborted();let w=this._requestMessageId++,Z={...$,jsonrpc:"2.0",id:w};if(U?.onprogress)this._progressHandlers.set(w,U.onprogress),Z.params={...$.params,_meta:{...$.params?._meta||{},progressToken:w}};if(K)Z.params={...Z.params,task:K};if(q)Z.params={...Z.params,_meta:{...Z.params?._meta||{},[W9]:q}};let V=(F)=>{this._responseHandlers.delete(w),this._progressHandlers.delete(w),this._cleanupTimeout(w),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:w,reason:String(F)}},{relatedRequestId:Y,resumptionToken:J,onresumptiontoken:Q}).catch((T)=>this._onerror(Error(`Failed to send cancellation: ${T}`)));let P=F instanceof r0?F:new r0(K1.RequestTimeout,String(F));G(P)};this._responseHandlers.set(w,(F)=>{if(U?.signal?.aborted)return;if(F instanceof Error)return G(F);try{let P=H9(I,F.result);if(!P.success)G(P.error);else H(P.data)}catch(P){G(P)}}),U?.signal?.addEventListener("abort",()=>{V(U?.signal?.reason)});let X=U?.timeout??aN0,L=()=>V(r0.fromError(K1.RequestTimeout,"Request timed out",{timeout:X}));this._setupTimeout(w,X,U?.maxTotalTimeout,L,U?.resetTimeoutOnProgress??!1);let D=q?.taskId;if(D){let F=(P)=>{let T=this._responseHandlers.get(w);if(T)T(P);else this._onerror(Error(`Response handler missing for side-channeled request ${w}`))};this._requestResolvers.set(w,F),this._enqueueTaskMessage(D,{type:"request",message:Z,timestamp:Date.now()}).catch((P)=>{this._cleanupTimeout(w),G(P)})}else this._transport.send(Z,{relatedRequestId:Y,resumptionToken:J,onresumptiontoken:Q}).catch((F)=>{this._cleanupTimeout(w),G(F)})})}async getTask($,I){return this.request({method:"tasks/get",params:$},hW,I)}async getTaskResult($,I,U){return this.request({method:"tasks/result",params:$},I,U)}async listTasks($,I){return this.request({method:"tasks/list",params:$},xW,I)}async cancelTask($,I){return this.request({method:"tasks/cancel",params:$},$i,I)}async notification($,I){if(!this._transport)throw Error("Not connected");this.assertNotificationCapability($.method);let U=I?.relatedTask?.taskId;if(U){let K={...$,jsonrpc:"2.0",params:{...$.params,_meta:{...$.params?._meta||{},[W9]:I.relatedTask}}};await this._enqueueTaskMessage(U,{type:"notification",message:K,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes($.method)&&!$.params&&!I?.relatedRequestId&&!I?.relatedTask){if(this._pendingDebouncedNotifications.has($.method))return;this._pendingDebouncedNotifications.add($.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete($.method),!this._transport)return;let K={...$,jsonrpc:"2.0"};if(I?.relatedTask)K={...K,params:{...K.params,_meta:{...K.params?._meta||{},[W9]:I.relatedTask}}};this._transport?.send(K,I).catch((q)=>this._onerror(q))});return}let Q={...$,jsonrpc:"2.0"};if(I?.relatedTask)Q={...Q,params:{...Q.params,_meta:{...Q.params?._meta||{},[W9]:I.relatedTask}}};await this._transport.send(Q,I)}setRequestHandler($,I){let U=wT($);this.assertRequestHandlerCapability(U),this._requestHandlers.set(U,(Y,J)=>{let Q=VT($,Y);return Promise.resolve(I(Q,J))})}removeRequestHandler($){this._requestHandlers.delete($)}assertCanSetRequestHandler($){if(this._requestHandlers.has($))throw Error(`A request handler for ${$} already exists, which would be overridden`)}setNotificationHandler($,I){let U=wT($);this._notificationHandlers.set(U,(Y)=>{let J=VT($,Y);return Promise.resolve(I(J))})}removeNotificationHandler($){this._notificationHandlers.delete($)}_cleanupTaskProgressHandler($){let I=this._taskProgressTokens.get($);if(I!==void 0)this._progressHandlers.delete(I),this._taskProgressTokens.delete($)}async _enqueueTaskMessage($,I,U){if(!this._taskStore||!this._taskMessageQueue)throw Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let Y=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue($,I,U,Y)}async _clearTaskQueue($,I){if(this._taskMessageQueue){let U=await this._taskMessageQueue.dequeueAll($,I);for(let Y of U)if(Y.type==="request"&&tP(Y.message)){let J=Y.message.id,Q=this._requestResolvers.get(J);if(Q)Q(new r0(K1.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(J);else this._onerror(Error(`Resolver missing for request ${J} during task ${$} cleanup`))}}}async _waitForTaskUpdate($,I){let U=this._options?.defaultTaskPollInterval??1000;try{let Y=await this._taskStore?.getTask($);if(Y?.pollInterval)U=Y.pollInterval}catch{}return new Promise((Y,J)=>{if(I.aborted){J(new r0(K1.InvalidRequest,"Request cancelled"));return}let Q=setTimeout(Y,U);I.addEventListener("abort",()=>{clearTimeout(Q),J(new r0(K1.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore($,I){let U=this._taskStore;if(!U)throw Error("No task store configured");return{createTask:async(Y)=>{if(!$)throw Error("No request provided");return await U.createTask(Y,$.id,{method:$.method,params:$.params},I)},getTask:async(Y)=>{let J=await U.getTask(Y,I);if(!J)throw new r0(K1.InvalidParams,"Failed to retrieve task: Task not found");return J},storeTaskResult:async(Y,J,Q)=>{await U.storeTaskResult(Y,J,Q,I);let K=await U.getTask(Y,I);if(K){let q=yQ.parse({method:"notifications/tasks/status",params:K});if(await this.notification(q),w9(K.status))this._cleanupTaskProgressHandler(Y)}},getTaskResult:(Y)=>{return U.getTaskResult(Y,I)},updateTaskStatus:async(Y,J,Q)=>{let K=await U.getTask(Y,I);if(!K)throw new r0(K1.InvalidParams,`Task "${Y}" not found - it may have been cleaned up`);if(w9(K.status))throw new r0(K1.InvalidParams,`Cannot update task "${Y}" from terminal status "${K.status}" to "${J}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await U.updateTaskStatus(Y,J,Q,I);let q=await U.getTask(Y,I);if(q){let H=yQ.parse({method:"notifications/tasks/status",params:q});if(await this.notification(H),w9(q.status))this._cleanupTaskProgressHandler(Y)}},listTasks:(Y)=>{return U.listTasks(Y,I)}}}}function qi($){return $!==null&&typeof $==="object"&&!Array.isArray($)}function Hi($,I){let U={...$};for(let Y in I){let J=Y,Q=I[J];if(Q===void 0)continue;let K=U[J];if(qi(K)&&qi(Q))U[J]={...K,...Q};else U[J]=Q}return U}var dc=FI(HE(),1),mc=FI(cc(),1);function Fj0(){let $=new dc.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return mc.default($),$}class OE{constructor($){this._ajv=$??Fj0()}getValidator($){let I="$id"in $&&typeof $.$id==="string"?this._ajv.getSchema($.$id)??this._ajv.compile($):this._ajv.compile($);return(U)=>{if(I(U))return{valid:!0,data:U,errorMessage:void 0};else return{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(I.errors)}}}}class FE{constructor($){this._server=$}requestStream($,I,U){return this._server.requestStream($,I,U)}createMessageStream($,I){let U=this._server.getClientCapabilities();if(($.tools||$.toolChoice)&&!U?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if($.messages.length>0){let Y=$.messages[$.messages.length-1],J=Array.isArray(Y.content)?Y.content:[Y.content],Q=J.some((G)=>G.type==="tool_result"),K=$.messages.length>1?$.messages[$.messages.length-2]:void 0,q=K?Array.isArray(K.content)?K.content:[K.content]:[],H=q.some((G)=>G.type==="tool_use");if(Q){if(J.some((G)=>G.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!H)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(H){let G=new Set(q.filter((w)=>w.type==="tool_use").map((w)=>w.id)),W=new Set(J.filter((w)=>w.type==="tool_result").map((w)=>w.toolUseId));if(G.size!==W.size||![...G].every((w)=>W.has(w)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:$},xQ,I)}elicitInputStream($,I){let U=this._server.getClientCapabilities(),Y=$.mode??"form";switch(Y){case"url":{if(!U?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!U?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let J=Y==="form"&&$.mode===void 0?{...$,mode:"form"}:$;return this.requestStream({method:"elicitation/create",params:J},UU,I)}async getTask($,I){return this._server.getTask({taskId:$},I)}async getTaskResult($,I,U){return this._server.getTaskResult({taskId:$},I,U)}async listTasks($,I){return this._server.listTasks($?{cursor:$}:void 0,I)}async cancelTask($,I){return this._server.cancelTask({taskId:$},I)}}function lc($,I,U){if(!$)throw Error(`${U} does not support task creation (required for ${I})`);switch(I){case"tools/call":if(!$.tools?.call)throw Error(`${U} does not support task creation for tools/call (required for ${I})`);break;default:break}}function oc($,I,U){if(!$)throw Error(`${U} does not support task creation (required for ${I})`);switch(I){case"sampling/createMessage":if(!$.sampling?.createMessage)throw Error(`${U} does not support task creation for sampling/createMessage (required for ${I})`);break;case"elicitation/create":if(!$.elicitation?.create)throw Error(`${U} does not support task creation for elicitation/create (required for ${I})`);break;default:break}}class NE extends ZT{constructor($,I){super(I);if(this._serverInfo=$,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(kQ.options.map((U,Y)=>[U,Y])),this.isMessageIgnored=(U,Y)=>{let J=this._loggingLevels.get(Y);return J?this.LOG_LEVEL_SEVERITY.get(U)this._oninitialize(U)),this.setNotificationHandler($T,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(HT,async(U,Y)=>{let J=Y.sessionId||Y.requestInfo?.headers["mcp-session-id"]||void 0,{level:Q}=U.params,K=kQ.safeParse(Q);if(K.success)this._loggingLevels.set(J,K.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new FE(this)};return this._experimental}registerCapabilities($){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=Hi(this._capabilities,$)}setRequestHandler($,I){let Y=tG($)?.method;if(!Y)throw Error("Schema is missing a method literal");let J;if(cI(Y)){let K=Y;J=K._zod?.def?.value??K.value}else{let K=Y;J=K._def?.value??K.value}if(typeof J!=="string")throw Error("Schema method literal must be a string");if(J==="tools/call"){let K=async(q,H)=>{let G=H9(uQ,q);if(!G.success){let V=G.error instanceof Error?G.error.message:String(G.error);throw new r0(K1.InvalidParams,`Invalid tools/call request: ${V}`)}let{params:W}=G.data,w=await Promise.resolve(I(q,H));if(W.task){let V=H9($U,w);if(!V.success){let X=V.error instanceof Error?V.error.message:String(V.error);throw new r0(K1.InvalidParams,`Invalid task creation result: ${X}`)}return V.data}let Z=H9(iW,w);if(!Z.success){let V=Z.error instanceof Error?Z.error.message:String(Z.error);throw new r0(K1.InvalidParams,`Invalid tools/call result: ${V}`)}return Z.data};return super.setRequestHandler($,K)}return super.setRequestHandler($,I)}assertCapabilityForMethod($){switch($){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${$})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${$})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${$})`);break;case"ping":break}}assertNotificationCapability($){switch($){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${$})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${$})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${$})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${$})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${$})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability($){if(!this._capabilities)return;switch($){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${$})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${$})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${$})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${$})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${$})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${$})`);break;case"ping":case"initialize":break}}assertTaskCapability($){oc(this._clientCapabilities?.tasks?.requests,$,"Client")}assertTaskHandlerCapability($){if(!this._capabilities)return;lc(this._capabilities.tasks?.requests,$,"Server")}async _oninitialize($){let I=$.params.protocolVersion;return this._clientCapabilities=$.params.capabilities,this._clientVersion=$.params.clientInfo,{protocolVersion:cf.includes(I)?I:oP,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},CW)}async createMessage($,I){if($.tools||$.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if($.messages.length>0){let U=$.messages[$.messages.length-1],Y=Array.isArray(U.content)?U.content:[U.content],J=Y.some((H)=>H.type==="tool_result"),Q=$.messages.length>1?$.messages[$.messages.length-2]:void 0,K=Q?Array.isArray(Q.content)?Q.content:[Q.content]:[],q=K.some((H)=>H.type==="tool_use");if(J){if(Y.some((H)=>H.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!q)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(q){let H=new Set(K.filter((W)=>W.type==="tool_use").map((W)=>W.id)),G=new Set(Y.filter((W)=>W.type==="tool_result").map((W)=>W.toolUseId));if(H.size!==G.size||![...H].every((W)=>G.has(W)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if($.tools)return this.request({method:"sampling/createMessage",params:$},GT,I);return this.request({method:"sampling/createMessage",params:$},xQ,I)}async elicitInput($,I){switch($.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Y=$;return this.request({method:"elicitation/create",params:Y},UU,I)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Y=$.mode==="form"?$:{...$,mode:"form"},J=await this.request({method:"elicitation/create",params:Y},UU,I);if(J.action==="accept"&&J.content&&Y.requestedSchema)try{let K=this._jsonSchemaValidator.getValidator(Y.requestedSchema)(J.content);if(!K.valid)throw new r0(K1.InvalidParams,`Elicitation response content does not match requested schema: ${K.errorMessage}`)}catch(Q){if(Q instanceof r0)throw Q;throw new r0(K1.InternalError,`Error validating elicitation response: ${Q instanceof Error?Q.message:String(Q)}`)}return J}}}createElicitationCompletionNotifier($,I){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:$}},I)}async listRoots($,I){return this.request({method:"roots/list",params:$},WT,I)}async sendLoggingMessage($,I){if(this._capabilities.logging){if(!this.isMessageIgnored($.level,I))return this.notification({method:"notifications/message",params:$})}}async sendResourceUpdated($){return this.notification({method:"notifications/resources/updated",params:$})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}import tc from"node:process";class ME{append($){this._buffer=this._buffer?Buffer.concat([this._buffer,$]):$}readMessage(){if(!this._buffer)return null;let $=this._buffer.indexOf(` +`);if($===-1)return null;let I=this._buffer.toString("utf8",0,$).replace(/\r$/,"");return this._buffer=this._buffer.subarray($+1),Nj0(I)}clear(){this._buffer=void 0}}function Nj0($){return sf.parse(JSON.parse($))}function rc($){return JSON.stringify($)+` +`}class AE{constructor($=tc.stdin,I=tc.stdout){this._stdin=$,this._stdout=I,this._readBuffer=new ME,this._started=!1,this._ondata=(U)=>{this._readBuffer.append(U),this.processReadBuffer()},this._onerror=(U)=>{this.onerror?.(U)}}async start(){if(this._started)throw Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){while(!0)try{let $=this._readBuffer.readMessage();if($===null)break;this.onmessage?.($)}catch($){this.onerror?.($)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send($){return new Promise((I)=>{let U=rc($);if(this._stdout.write(U))I();else this._stdout.once("drain",I)})}}import{dirname as eu,join as EW1}from"node:path";import{fileURLToPath as BW1}from"node:url";class G5 extends Error{name="KyError";get isKyError(){return!0}}class H$ extends G5{name="HTTPError";response;request;options;data;constructor($,I,U){let Y=$.status||$.status===0?$.status:"",J=$.statusText??"",Q=`${Y} ${J}`.trim(),K=Q?`status code ${Q}`:"an unknown error";super(`Request failed with ${K}: ${I.method} ${I.url}`);this.response=$,this.request=I,this.options=U}}class G2 extends G5{name="NetworkError";request;constructor($,I){super(`Request failed due to a network error: ${$.method} ${$.url}`,I);this.request=$}}class W2 extends Error{name="NonError";value;constructor($){let I="Non-error value was thrown";try{if(typeof $==="string")I=$;else if($&&typeof $==="object"&&"message"in $&&typeof $.message==="string")I=$.message}catch{}super(I);this.value=$}}class LU extends G5{name="ForceRetryError";customDelay;code;customRequest;constructor($){let I=$?.cause?$.cause instanceof Error?$.cause:new W2($.cause):void 0;super($?.code?`Forced retry: ${$.code}`:"Forced retry",I?{cause:I}:void 0);this.customDelay=$?.delay,this.code=$?.code,this.customRequest=$?.request}}class PE extends Error{name="SchemaValidationError";issues;constructor($){super("Response schema validation failed");this.issues=$}}class e$ extends G5{name="TimeoutError";request;constructor($){super(`Request timed out: ${$.method} ${$.url}`);this.request=$}}var TE=(()=>{let $=!1,I=!1,U=typeof globalThis.ReadableStream==="function",Y=typeof globalThis.Request==="function";if(U&&Y)try{I=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return $=!0,"half"}}).headers.has("Content-Type")}catch(J){if(J instanceof Error&&J.message==="unsupported BodyInit type")return!1;throw J}return $&&!I})(),ac=typeof globalThis.AbortController==="function",Pw=typeof globalThis.AbortSignal==="function"&&typeof globalThis.AbortSignal.any==="function",sc=typeof globalThis.ReadableStream==="function",ec=typeof globalThis.FormData==="function",Tw=["get","post","put","patch","head","delete"],Mj0=()=>{return};Mj0();var $d={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},DU=2147483647,Id=40,Ew=Symbol("stop");class Bw{options;constructor($){this.options=$}}var Ud=($)=>new Bw($),Yd={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Jd={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var vw=new TextEncoder,Aj0=($)=>{if(!$)return 0;if($ instanceof FormData){let I=0;for(let[U,Y]of $)I+=Id,I+=vw.encode(`Content-Disposition: form-data; name="${U}"`).byteLength,I+=typeof Y==="string"?vw.encode(Y).byteLength:Y.size;return I}if($ instanceof Blob)return $.size;if($ instanceof ArrayBuffer||ArrayBuffer.isView($))return $.byteLength;if(typeof $==="string")return vw.encode($).byteLength;if($ instanceof URLSearchParams)return vw.encode($.toString()).byteLength;return 0},Qd=($,I,U)=>{let Y,J=0;return $.pipeThrough(new TransformStream({transform(Q,K){if(K.enqueue(Q),Y){J+=Y.byteLength;let q=I===0?0:J/I;if(q>=1)q=1-Number.EPSILON;U?.({percent:q,totalBytes:Math.max(I,J),transferredBytes:J},Y)}Y=Q},flush(){if(Y)J+=Y.byteLength,U?.({percent:1,totalBytes:Math.max(I,J),transferredBytes:J},Y)}}))},Kd=($,I)=>{if(!$.body)return $;let U={status:$.status,statusText:$.statusText,headers:$.headers};if($.status===204)return new Response(null,U);let Y=Math.max(0,Number($.headers.get("content-length"))||0);return new Response(Qd($.body,Y,I),U)},qd=($,I,U)=>{if(!$.body)return $;let Y=Aj0(U??$.body);return new Request($,{duplex:"half",body:Qd($.body,Y,I)})};var N8=($)=>$!==null&&typeof $==="object";var Pj0=Symbol("replaceOption"),EE=($)=>N8($)&&$[Pj0]===!0?{isReplace:!0,value:$.value}:{isReplace:!1,value:$};var V2=(...$)=>{for(let I of $)if((!N8(I)||Array.isArray(I))&&I!==void 0)throw TypeError("The `options` argument must be an object");return RE({},...$)},vE=($={},I={})=>{let U=new globalThis.Headers($),Y=I instanceof globalThis.Headers,J=new globalThis.Headers(I);for(let[Q,K]of J.entries())if(Y&&K==="undefined"||K===void 0)U.delete(Q);else U.set(Q,K);return U},BE=($)=>{if(!N8($)||Array.isArray($))return!1;let I=Object.getPrototypeOf($);return I===Object.prototype||I===null},OU=($)=>{if($ instanceof URLSearchParams){let I=new URLSearchParams($),U=$[F9];if(U)I[F9]=new Set(U);return I}if($ instanceof globalThis.Headers)return new globalThis.Headers($);if(Array.isArray($))return[...$];if(BE($))return{...$};return $},Tj0=($)=>Object.fromEntries(Object.entries($).filter((I)=>I[1]!==void 0)),Ej0=($,I)=>{if(BE($)&&BE(I))return Tj0({...$,...I});return vE($,I)};function w2($,I,U){return Object.hasOwn(I,U)&&I[U]===void 0?[]:RE($[U]??[],I[U]??[])}var Rw=($={},I={})=>({init:w2($,I,"init"),beforeRequest:w2($,I,"beforeRequest"),beforeRetry:w2($,I,"beforeRetry"),beforeError:w2($,I,"beforeError"),afterResponse:w2($,I,"afterResponse")}),F9=Symbol("deletedParameters"),Bj0=($,I)=>{let U=new URLSearchParams,Y=new Set;for(let J of[$,I]){if(J===void 0)continue;if(J instanceof URLSearchParams){for(let[K,q]of J.entries())U.append(K,q),Y.delete(K);let Q=J[F9];if(Q)for(let K of Q)U.delete(K),Y.add(K)}else if(Array.isArray(J))for(let Q of J){if(!Array.isArray(Q)||Q.length!==2)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");U.append(String(Q[0]),String(Q[1])),Y.delete(String(Q[0]))}else if(N8(J))for(let[Q,K]of Object.entries(J))if(K===void 0)U.delete(Q),Y.add(Q);else U.append(Q,String(K)),Y.delete(Q);else{let Q=new URLSearchParams(J);for(let[K,q]of Q.entries())U.append(K,q),Y.delete(K)}}if(Y.size>0)U[F9]=Y;return U},RE=(...$)=>{let I={},U={},Y={},J,Q=[];for(let K of $)if(Array.isArray(K)){if(!Array.isArray(I))I=[];I=[...I,...K]}else if(N8(K)){for(let[q,H]of Object.entries(K)){if(q==="signal"&&H instanceof globalThis.AbortSignal){Q.push(H);continue}let G=EE(H),{isReplace:W}=G;if(H=G.value,q==="context"){if(H!==void 0&&H!==null&&(!N8(H)||Array.isArray(H)))throw TypeError("The `context` option must be an object");I={...I,context:H===void 0||H===null?{}:W?{...H}:{...I.context,...H}};continue}if(q==="searchParams"){if(H===void 0||H===null)J=void 0;else if(W)J=H;else J=J===void 0?H:Bj0(J,H);continue}if(N8(H)&&!W&&q in I)H=RE(I[q],H);I={...I,[q]:H}}if(N8(K.hooks)){let{value:q,isReplace:H}=EE(K.hooks);Y=H?Rw({},q):Rw(Y,q),I.hooks=Y}if(N8(K.headers)){let{value:q,isReplace:H}=EE(K.headers);U=H?OU(q):Ej0(U,q),I.headers=U}}if(J!==void 0)I.searchParams=J;if(Q.length>0)if(Q.length===1)I.signal=Q[0];else if(Pw)I.signal=AbortSignal.any(Q);else I.signal=Q.at(-1);return I};var Gd=($)=>Tw.includes($)?$.toUpperCase():$,vj0=["get","put","head","delete","options","trace"],Rj0=[408,413,429,500,502,503,504],jj0=[413,429,503],Hd={limit:2,methods:vj0,statusCodes:Rj0,afterStatusCodes:jj0,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:($)=>0.3*2**($-1)*1000,jitter:void 0,retryOnTimeout:!1},Wd=($={})=>{if(typeof $==="number")return{...Hd,limit:$};if($.methods&&!Array.isArray($.methods))throw Error("retry.methods must be an array");if($.statusCodes&&!Array.isArray($.statusCodes))throw Error("retry.statusCodes must be an array");let I=Object.fromEntries(Object.entries({...$,methods:$.methods?.map((U)=>U.toLowerCase())}).filter(([,U])=>U!==void 0));return{...Hd,...I}};async function jE($,I,U,Y){return new Promise((J,Q)=>{let K=setTimeout(()=>{if(U)U.abort();Q(new e$($))},Y.timeout);Y.fetch($,I).then(J).catch(Q).then(()=>{clearTimeout(K)})})}async function jw($,{signal:I}){return new Promise((U,Y)=>{if(I)I.throwIfAborted(),I.addEventListener("abort",J,{once:!0});function J(){clearTimeout(Q),Y(I.reason)}let Q=setTimeout(()=>{I?.removeEventListener("abort",J),U()},$)})}var wd=($)=>{let I={};for(let U in $){if(!Object.hasOwn($,U))continue;if(!(U in Jd)&&!(U in Yd))I[U]=$[U]}return I},Vd=($)=>{if($===void 0)return!1;if(Array.isArray($))return $.length>0;if($ instanceof URLSearchParams)return $.size>0||Boolean($[F9]?.size);if(typeof $==="object")return Object.keys($).length>0;if(typeof $==="string")return $.trim().length>0;return Boolean($)};var Cj0=Object.prototype.toString,_j0=($)=>Cj0.call($)==="[object Error]",Sj0=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function CE($){if(!($&&_j0($)&&$.name==="TypeError"&&typeof $.message==="string"))return!1;let{message:U,stack:Y}=$;if(U==="Load failed")return Y===void 0||"__sentry_captured__"in $;if(U.startsWith("error sending request for url"))return!0;if(U==="Failed to fetch"||U.startsWith("Failed to fetch (")&&U.endsWith(")"))return!0;return Sj0.has(U)}var _E=($,I)=>$ instanceof I||$?.name===I.name;function Zd($){return _E($,H$)}function zd($){return _E($,G2)}function Xd($){return _E($,e$)}var gj0=10485760,yj0="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",Z2=Symbol("timedOutResponseData"),hj0=($)=>{let I=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec($),U=I?.[1]??I?.[2];if(U)try{return new TextDecoder(U)}catch{}return new TextDecoder},Ld="The `schema` argument must follow the Standard Schema specification",uj0=($)=>{if(typeof $!=="object")return $;return{...$,...$.methods&&{methods:[...$.methods]},...$.statusCodes&&{statusCodes:[...$.statusCodes]},...$.afterStatusCodes&&{afterStatusCodes:[...$.afterStatusCodes]}}},Fd=Object.prototype.toString,Dd=($)=>$ instanceof globalThis.Request||Fd.call($)==="[object Request]",z2=($)=>$ instanceof globalThis.Response||Fd.call($)==="[object Response]",kj0=($)=>{if(Array.isArray($))return $.map((I)=>[...I]);return OU($)};function xj0($){let I={...$,json:OU($.json),context:OU($.context),headers:OU($.headers),searchParams:kj0($.searchParams)};if($.retry!==void 0)I.retry=uj0($.retry);return I}var Od=async($,I)=>{if(typeof I!=="object"&&typeof I!=="function"||I===null)throw TypeError(Ld);let U=I["~standard"];if(typeof U!=="object"||U===null||typeof U.validate!=="function")throw TypeError(Ld);let Y=await U.validate($);if(Y.issues)throw new PE(Y.issues);return Y.value};class FU{static create($,I){let U=I.hooks?.init??[],Y=U.length>0?xj0(I):I;for(let q of U)q(Y);let J=new FU($,Y),Q=async()=>{if(typeof J.#$.timeout==="number"&&J.#$.timeout>DU)throw RangeError(`The \`timeout\` option cannot be greater than ${DU}`);if(typeof J.#$.totalTimeout==="number"&&J.#$.totalTimeout>DU)throw RangeError(`The \`totalTimeout\` option cannot be greater than ${DU}`);await Promise.resolve();let q=await J.#y(),H=q??await J.#B(async()=>J.#D()),G=q!==void 0||J.#L();for(;;){if(H===void 0)return H;if(z2(H))try{H=await J.#h(H)}catch(w){if(!(w instanceof LU))throw w;let Z=await J.#X(w,async()=>J.#D());if(Z===void 0)return Z;H=Z,G=J.#L();continue}let W=H;if(!W.ok&&W.type!=="opaque"&&(typeof J.#$.throwHttpErrors==="function"?J.#$.throwHttpErrors(W.status):J.#$.throwHttpErrors)){let w=new H$(W,J.#q(W),J.#K()),Z=w;if(w.data=await J.#C(W),G)throw Z;let V=await J.#X(w,async()=>J.#D());if(V===void 0)return V;H=V,G=J.#L();continue}break}if(!z2(H))return H;if(J.#P(H),J.#$.onDownloadProgress){if(typeof J.#$.onDownloadProgress!=="function")throw TypeError("The `onDownloadProgress` option must be a function");if(!sc)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let W=H.clone();return J.#Y(H),Kd(W,J.#$.onDownloadProgress)}return H},K=(async()=>{try{return await Q()}catch(q){if(!(q instanceof Error))throw q;if(J.#M.has(q))throw q;let H=q;for(let G of J.#$.hooks.beforeError){let W=await G({request:J.request,options:J.#K(),error:H,retryCount:J.#U});if(W instanceof Error)H=W}throw H}finally{let q=J.#N;if(J.#z(q?.body??void 0),J.request!==q)J.#z(J.request.body??void 0)}})();for(let[q,H]of Object.entries($d)){if(q==="bytes"&&typeof globalThis.Response?.prototype?.bytes!=="function")continue;K[q]=async(G)=>{J.request.headers.set("accept",J.request.headers.get("accept")||H);let W=await K;if(q!=="json")return W[q]();let w=await W.text();if(w===""){if(G!==void 0)return Od(void 0,G);return JSON.parse(w)}let Z=Y.parseJson?await Y.parseJson(w,{request:J.#q(W),response:W}):JSON.parse(w);return G===void 0?Z:Od(Z,G)}}return K}static#R($){if($&&typeof $==="object"&&!Array.isArray($)&&!($ instanceof URLSearchParams))return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0));return $}request;#J;#U=0;#I;#$;#N;#H;#M=new WeakSet;#G;#Z;#W=!1;#A=new WeakMap;constructor($,I={}){if(this.#I=$,Object.hasOwn(I,"prefixUrl"))throw Error(yj0);if(this.#$={...I,headers:vE(this.#I.headers,I.headers),hooks:Rw({},I.hooks),method:Gd(I.method??this.#I.method??"GET"),prefix:String(I.prefix||""),retry:Wd(I.retry),throwHttpErrors:I.throwHttpErrors??!0,timeout:I.timeout??1e4,totalTimeout:I.totalTimeout??!1,fetch:I.fetch??globalThis.fetch.bind(globalThis),context:I.context??{}},typeof this.#I!=="string"&&!(this.#I instanceof URL||this.#I instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(typeof this.#I==="string"){if(this.#$.prefix){let Y=this.#$.prefix.replace(/\/+$/,""),J=this.#I.replace(/^\/+/,"");this.#I=`${Y}/${J}`}if(this.#$.baseUrl){let Y;try{Y=new URL(this.#I)}catch{}if(!Y)this.#I=new URL(this.#I,new Request(this.#$.baseUrl).url)}}if(ac&&Pw)this.#H=this.#$.signal??this.#I.signal,this.#J=new globalThis.AbortController,this.#$.signal=this.#E();if(TE)this.#$.duplex="half";if(this.#$.json!==void 0)this.#$.body=this.#$.stringifyJson?.(this.#$.json)??JSON.stringify(this.#$.json),this.#$.headers.set("content-type",this.#$.headers.get("content-type")??"application/json");let U=I.headers&&new globalThis.Headers(I.headers).has("content-type");if(this.#I instanceof globalThis.Request&&(ec&&this.#$.body instanceof globalThis.FormData||this.#$.body instanceof URLSearchParams)&&!U)this.#$.headers.delete("content-type");if(this.request=new globalThis.Request(this.#I,this.#$),Vd(this.#$.searchParams)){let Y=new URL(this.request.url),J=this.#$.searchParams?.[F9];if(J)for(let Q of J)Y.searchParams.delete(Q);if(typeof this.#$.searchParams==="string"){let Q=this.#$.searchParams.replace(/^\?/,"");if(Q!=="")Y.search=Y.search?`${Y.search}&${Q}`:`?${Q}`}else{let Q=new URLSearchParams(FU.#R(this.#$.searchParams));for(let[K,q]of Q.entries())Y.searchParams.append(K,q)}if(this.#$.searchParams&&typeof this.#$.searchParams==="object"&&!Array.isArray(this.#$.searchParams)&&!(this.#$.searchParams instanceof URLSearchParams)){for(let[Q,K]of Object.entries(this.#$.searchParams))if(K===void 0)Y.searchParams.delete(Q)}this.request=new globalThis.Request(Y,this.#$)}if(this.#$.onUploadProgress&&typeof this.#$.onUploadProgress!=="function")throw TypeError("The `onUploadProgress` option must be a function");this.#Z=typeof this.#$.totalTimeout==="number"?this.#v():void 0}#Q(){let $=this.#$.retry.delay(this.#U+1),I=$;if(this.#$.retry.jitter===!0)I=Math.random()*$;else if(typeof this.#$.retry.jitter==="function"){if(I=this.#$.retry.jitter($),!Number.isFinite(I)||I<0)I=$}return Math.min(this.#$.retry.backoffLimit,I)}async#j($){if(this.#U>=this.#$.retry.limit)throw $;let I=$ instanceof Error?$:new W2($);if(I instanceof LU)return I.customDelay??this.#Q();if(!this.#$.retry.methods.includes(this.request.method.toLowerCase()))throw $;if(this.#$.retry.shouldRetry!==void 0){let U=await this.#$.retry.shouldRetry({error:I,retryCount:this.#U+1});if(U===!1)throw $;if(U===!0)return this.#Q()}if(Xd($)){if(!this.#$.retry.retryOnTimeout)throw $;return this.#Q()}if(Zd($)){if(!this.#$.retry.statusCodes.includes($.response.status))throw $;let U=$.response.headers.get("Retry-After")??$.response.headers.get("RateLimit-Reset")??$.response.headers.get("X-RateLimit-Retry-After")??$.response.headers.get("X-RateLimit-Reset")??$.response.headers.get("X-Rate-Limit-Reset");if(U&&this.#$.retry.afterStatusCodes.includes($.response.status)){let Y=Number(U)*1000;if(Number.isNaN(Y))Y=Date.parse(U)-Date.now();else if(Y>=Date.parse("2024-01-01"))Y-=Date.now();if(!Number.isFinite(Y))return Math.min(this.#$.retry.maxRetryAfter,this.#Q());return Y=Math.max(0,Y),Math.min(this.#$.retry.maxRetryAfter,Y)}if($.response.status===413)throw $;return this.#Q()}if(!zd($))throw $;return this.#Q()}#P($){let I=this.#q($);if(this.#$.parseJson)$.json=async()=>{let U=await $.text();if(U==="")return JSON.parse(U);return this.#$.parseJson(U,{request:I,response:$})};return $}async#C($){let I=await this.#S($,this.#T());if(I===Z2){this.#w();return}if(!I)return;if(!this.#_($.headers.get("content-type")??""))return I;let U=await this.#g(I,$,this.#T(),this.#q($));if(U===Z2){this.#w();return}return U}#T(){let $=this.#$.timeout===!1?1e4:this.#$.timeout,I=this.#V();if(I===void 0)return $;if(I<=0)throw new e$(this.request);return Math.min($,I)}#_($){let I=($.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(I)}async#S($,I){let{body:U}=$;if(!U)try{return await $.text()}catch{return}let Y;try{Y=U.getReader()}catch{return}let J=hj0($.headers.get("content-type")??""),Q=[],K=0,q=(async()=>{try{for(;;){let{done:W,value:w}=await Y.read();if(W)break;if(K+=w.byteLength,K>gj0){Y.cancel().catch(()=>{return});return}Q.push(J.decode(w,{stream:!0}))}}catch{return}return Q.push(J.decode()),Q.join("")})(),H=new Promise((W)=>{let w=setTimeout(()=>{W(Z2)},I);q.finally(()=>{clearTimeout(w)})}),G=await Promise.race([q,H]);if(G===Z2)Y.cancel().catch(()=>{return});return G}async#g($,I,U,Y){let J;try{return await Promise.race([Promise.resolve().then(()=>this.#$.parseJson?this.#$.parseJson($,{request:Y,response:I}):JSON.parse($)),new Promise((Q)=>{J=setTimeout(()=>{Q(Z2)},U)})])}catch{return}finally{clearTimeout(J)}}#z($){if(!$)return;$.cancel().catch(()=>{return})}#Y($){this.#z($.body??void 0)}#E(){return this.#H?AbortSignal.any([this.#H,this.#J.signal]):this.#J.signal}#w(){let $=this.#V();if($!==void 0&&$<=0)throw new e$(this.request)}async#y(){for(let $ of this.#$.hooks.beforeRequest){let I=await $({request:this.request,options:this.#K(),retryCount:0});if(Dd(I))this.#O(I);else if(z2(I))return I}return}async#h($){let I=this.#q($);for(let U of this.#$.hooks.afterResponse){let Y=this.#F($.clone(),I);this.#P(Y);let J;try{J=await U({request:this.request,options:this.#K(),response:Y,retryCount:this.#U})}catch(K){if(Y!==$)this.#Y(Y);throw this.#Y($),K}if(J instanceof Bw){if(Y!==$)this.#Y(Y);throw this.#Y($),new LU(J.options)}let Q=z2(J)?this.#F(J,I):$;if(Y!==$&&Y!==Q&&Y.body!==Q.body)this.#Y(Y);if($!==Q&&$.body!==Q.body)this.#Y($);$=Q}return $}async#B($){try{return await $()}catch(I){return this.#X(I,$)}}async#X($,I){this.#W=!1;let U=Math.min(await this.#j($),DU),Y={signal:this.#H},J=this.#V();if(J!==void 0){if(J<=0)throw new e$(this.request);if(U>=J)throw await jw(J,Y),new e$(this.request)}if(await jw(U,Y),this.#w(),$ instanceof LU&&$.customRequest){let Q=new globalThis.Request($.customRequest,this.#$.signal?{signal:this.#$.signal}:void 0);this.#O(Q)}for(let Q of this.#$.hooks.beforeRetry){let K;try{K=await Q({request:this.request,options:this.#K(),error:$,retryCount:this.#U+1})}catch(q){if(q instanceof Error&&q!==$)this.#M.add(q);throw q}if(Dd(K)){this.#O(K);break}if(z2(K))return this.#W=!0,this.#U++,K;if(K===Ew)return}return this.#w(),this.#U++,this.#B(I)}#L(){let $=this.#W;return this.#W=!1,$}async#D(){if(this.#J?.signal.aborted)this.#J=new globalThis.AbortController,this.#$.signal=this.#E(),this.request=new globalThis.Request(this.request,{signal:this.#$.signal});let $=wd(this.#$),I=this.#$.retry.limit>0?this.request.clone():void 0,U=this.#u(this.request,this.#$.body??void 0);if(this.#N=U,I)this.request=I;try{let Y=this.#V();if(Y!==void 0&&Y<=0)throw new e$(this.request);let J=this.#$.timeout===!1?Y:Y===void 0?this.#$.timeout:Math.min(this.#$.timeout,Y),Q=J===void 0?await this.#$.fetch(U,$):await jE(U,$,this.#J,{timeout:J,fetch:this.#$.fetch});return this.#F(Q,U)}catch(Y){if(CE(Y))throw new G2(this.request,{cause:Y});throw Y}}#V(){if(this.#Z===void 0)return;let $=this.#v()-this.#Z;return Math.max(0,this.#$.totalTimeout-$)}#v(){return globalThis.performance?.now()??Date.now()}#K(){if(!this.#G){let{hooks:$,json:I,parseJson:U,stringifyJson:Y,searchParams:J,timeout:Q,totalTimeout:K,throwHttpErrors:q,fetch:H,...G}=this.#$;this.#G=Object.freeze(G)}return this.#G}#O($){this.#G=void 0,this.request=$}#q($){return this.#A.get($)??this.request}#F($,I){return this.#A.set($,I),$}#u($,I){if(!this.#$.onUploadProgress||!$.body||!TE)return $;return qd($,this.#$.onUploadProgress,I??this.#$.body??void 0)}}/*! MIT License © Sindre Sorhus */var SE=($)=>{let I=(U,Y)=>FU.create(U,V2($,Y));for(let U of Tw)I[U]=(Y,J)=>FU.create(Y,V2($,J,{method:U}));return I.create=(U)=>SE(V2(U)),I.extend=(U)=>{if(typeof U==="function")U=U($??{});return SE(V2($,U))},I.stop=Ew,I.retry=Ud,I},fj0=SE(),W5=fj0;async function Nd($){if($.source.type!=="direct"&&$.source.type!=="seal")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=$.seal.url??$.source.sealUrl,U=$.source.type==="seal"?$.source:void 0;return{token:$.source.token,expiresAt:Date.now()+$.source.expiresIn*1000,enterprise:{provider:U?"seal":"direct",corpId:$.source.corpId??$.id,staffId:$.source.staffId,sealUrl:I,tenantId:U?.tenantId,tenantSlug:$.seal.tenantSlug??U?.tenantSlug,tenantName:U?.tenantName,raw:{sourceType:$.source.type}}}}import{existsSync as gE,mkdirSync as cj0,readFileSync as dj0,writeFileSync as mj0}from"node:fs";import{dirname as lj0,join as Td}from"node:path";import{homedir as Ed}from"node:os";var Md=z.object({token:z.string(),expiresAt:z.number(),url:z.string().url().optional()}),ij0=z.object({provider:z.string(),corpId:z.string().optional(),staffId:z.string(),sealUrl:z.string().url(),tenantId:z.string().optional(),tenantSlug:z.string().optional(),tenantName:z.string().optional(),raw:z.unknown().optional()}),bj0=z.object({token:z.string(),expiresAt:z.number(),enterprise:ij0}),nj0=z.object({openapi:Md.optional(),closeapi:Md.optional()}),pj0=z.object({seal:bj0.optional(),hose:nj0.optional()}),Ad=z.record(z.string(),pj0);var Cw=Td(Ed(),".config","seal-use","seal_tokens.json"),Pd=Td(Ed(),".config","seal-home","seal_tokens.json");function oj0(){let $=(process.env.SEAL_USE_TOKEN_STORE??process.env.SEAL_HOME_TOKEN_STORE)?.trim();if($)return $;if(gE(Cw))return Cw;if(gE(Pd))return Pd;return Cw}function rj0(){let $=(process.env.SEAL_USE_TOKEN_STORE??process.env.SEAL_HOME_TOKEN_STORE)?.trim();if($)return $;return Cw}function NU(){let $=oj0();if(!gE($))return{};try{return Ad.parse(JSON.parse(dj0($,"utf-8")))}catch{return{}}}function _w($){let I=rj0();cj0(lj0(I),{recursive:!0,mode:448}),mj0(I,JSON.stringify($,null,2),{mode:384})}function Bd($){return NU()[$]?.seal}function vd($,I){let U=NU();_w({...U,[$]:{...U[$],seal:I}})}function Rd($){let I=NU(),U=I[$];if(!U)return;_w({...I,[$]:{...U,seal:void 0}})}function MU($){return NU()[$]?.hose??{}}function yE($,I){let U=NU();_w({...U,[$]:{...U[$],hose:I}})}function Sw($){let I=NU();delete I[$],_w(I)}var tj0=["https://app.ekuaibao.com","https://dd2.hosecloud.com","https://wx2.ekuaibao.com","https://kdcloud2.ekuaibao.com","https://ddenterprise.ekuaibao.com","https://feishu.ekuaibao.com"],aj0=[".ekuaibao.com",".hosecloud.com"],sj0="/web/thirdparty.html",Cd=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/,hE=new Map,uE=new Map;function $8($){return $.replace(/\/+$/,"")}function ej0($){let I;try{I=new URL($.trim())}catch{throw Error("Invalid Hose assistance link: expected a valid HTTPS URL")}if(I.protocol!=="https:"||I.port||!$C0(I.hostname)||I.pathname.replace(/\/+$/,"")!==sj0)throw Error("Invalid Hose assistance link: expected an HTTPS */web/thirdparty.html URL from ekuaibao.com or hosecloud.com");let U=I.searchParams.getAll("accessToken").filter(Boolean),Y=I.searchParams.getAll("ekbCorpId").filter(Boolean);if(U.length!==1||Y.length!==1)throw Error("Invalid Hose assistance link: accessToken and ekbCorpId are required exactly once");let J=Y[0].trim().toLowerCase();if(!Cd.test(J))throw Error("Invalid Hose assistance link: ekbCorpId is not a valid tenant slug");return{corpId:J,accessToken:U[0]}}async function gw($){let I=typeof $==="string"?ej0($):IC0($),U=`https://${I.corpId}.sealai.cc`,Y=await W5.get(`${U}/api/auth/oauth2/session/oem-hosecloud`,{searchParams:{token:I.accessToken,returnToken:"1"},timeout:30000}).json(),J=Y.token??Y.accessToken??Y.data?.token??Y.data?.accessToken;if(!J)throw Error("Seal SSO did not return a bearer token");let Q=Y.expiresIn??Y.expires_in??Y.data?.expiresIn??Y.data?.expires_in??3600;return{corpId:I.corpId,sealUrl:U,token:J,expiresIn:Number.isFinite(Q)&&Q>0?Q:3600}}function yw($,I){let U=I.hoseCorpConfig&&typeof I.hoseCorpConfig==="object"?I.hoseCorpConfig:void 0,Y=[I.tenantSlug,U?.corporationId].filter((K)=>typeof K==="string"&&Boolean(K)),J=$.trim().toLowerCase(),Q=Y.map((K)=>K.trim().toLowerCase()).filter(Boolean);if(Q.length===0||Q.some((K)=>K!==J))throw Error("Hose assistance link tenant mismatch: the Seal tenant does not match ekbCorpId")}function $C0($){let I=$.toLowerCase();return aj0.some((U)=>I.endsWith(U))}function IC0($){let I=typeof $?.corpId==="string"?$.corpId.trim().toLowerCase():"",U=typeof $?.accessToken==="string"?$.accessToken.trim():"";if(!Cd.test(I)||!U)throw Error("Invalid Hose assistance link: accessToken and ekbCorpId are required");return{corpId:I,accessToken:U}}function kE($,I=60){return Boolean($&&Date.now()<$.expiresAt-I*1000)}function AU($,I){if($.seal.url)return $.seal.url;if(I.sealUrl)return I.sealUrl;return`https://${I.corpId.toLowerCase()}.sealai.cc`}function UC0($){return $.staffId.includes(":")?$.staffId:`${$.corpId}:${$.staffId}`}function _d($){return W5.create({prefix:$8($.domain),timeout:30000,hooks:{beforeError:[async({error:I})=>{let U=I instanceof H$?await I.response.text().catch(()=>""):"";return I.message=`${I.message}${U?`: ${U}`:""}`,I}]}})}async function YC0($){let I=_d($),U=$.appKey??$.key,Y=$.appSecurity??$.password;if(!U||!Y)throw Error("Hose source requires appKey/key and appSecurity/password");let J=await I.post("api/openapi/v1/auth/getAccessToken",{json:{appKey:U,appSecurity:Y}}).json(),Q=J.value?.accessToken??J.accessToken??J.token;if(!Q)throw Error("Hose login did not return an access token");return{token:Q,expiresAt:Date.now()+3600000}}async function hw($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=MU($.id);if(kE(I.openapi))return I.openapi.token;let U=hE.get($.id);if(U)return U;let Y=YC0($.source).then((J)=>{return yE($.id,{...MU($.id),openapi:J}),J.token}).finally(()=>hE.delete($.id));return hE.set($.id,Y),Y}async function uw($,I,U=7200){let Y=_d($),J=UC0($),K=(await Y.post("api/openapi/v1.1/provisional/getProvisionalAuth",{searchParams:{accessToken:I},json:{uid:J,pageType:"home",expireDate:U}}).json()).value?.message;if(!K)throw Error("Hose CloseAPI did not return a provisional auth URL");let q=new URL(K).searchParams.get("accessToken");if(!q)throw Error("Hose provisional auth URL did not include accessToken");return{token:q,url:K,expiresAt:Date.now()+U*1000}}async function Sd($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=$.source,U=MU($.id);if(kE(U.closeapi)&&U.closeapi.url)return U.closeapi;let Y=uE.get($.id);if(Y)return Y;let J=hw($).then((Q)=>uw(I,Q)).then((Q)=>{return yE($.id,{...MU($.id),closeapi:Q}),Q}).finally(()=>uE.delete($.id));return uE.set($.id,J),J}async function gd($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=(await Sd($)).url;if(!I)throw Error("Hose provisional auth URL was not available");return I}async function kw($,I=7200){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let U=MU($.id);if(kE(U.closeapi)&&U.closeapi.url&&U.closeapi.token){let Q=Math.max(60,Math.floor((U.closeapi.expiresAt-Date.now())/1000));return{corpId:$.source.corpId,staffId:$.source.staffId,url:U.closeapi.url,token:U.closeapi.token,expiresIn:Math.min(I,Q)}}let Y=await hw($),J=await uw($.source,Y,I);if(!J.url)throw Error("Hose provisional auth URL was not available");return{corpId:$.source.corpId,staffId:$.source.staffId,url:J.url,token:J.token,expiresIn:I}}async function yd($){if($.source.type!=="hose")throw Error(`Unsupported Seal source: ${$.source.type}`);let I=await Sd($),U=AU($,$.source),Y=await W5.get(`${$8(U)}/api/auth/oauth2/session/oem-hosecloud`,{searchParams:{token:I.token,returnToken:"1"},timeout:30000}).json(),J=Y.token??Y.accessToken??Y.data?.token??Y.data?.accessToken;if(!J)throw Error("Seal SSO did not return a bearer token");let Q=Y.expiresIn??Y.expires_in??Y.data?.expiresIn??Y.data?.expires_in??3600,K={provider:"hose",corpId:$.source.corpId,staffId:$.source.staffId,sealUrl:$8(U),tenantSlug:$.seal.tenantSlug,raw:{sourceType:"hose",hoseDomain:$8($.source.domain)}};return{token:J,expiresAt:Date.now()+Q*1000,enterprise:K}}async function PU($,I,U){if(U){let K=$8(U),q=await jd(K,$,I);if(!q)throw Error(`Failed to authenticate on specified domain: ${K}. Please verify appKey/appSecurity and domain connectivity.`);return q}let Y=tj0.map(async(K)=>{try{return await jd(K,$,I)}catch{return}}),Q=(await Promise.all(Y)).filter((K)=>Boolean(K));if(Q.length>0&&Q[0])return Q[0];throw Error("Failed to authenticate with appKey/appSecurity on all 6 standard Hose domains (app.ekuaibao.com, dd2.hosecloud.com, wx2.ekuaibao.com, kdcloud2.ekuaibao.com, ddenterprise.ekuaibao.com, feishu.ekuaibao.com). "+'If your enterprise uses a private cloud or custom domain (such as 美年大健康), please specify the "domain" parameter explicitly.')}async function jd($,I,U){try{let Y=await fetch(`${$}/api/openapi/v1/auth/getAccessToken`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({appKey:I,appSecurity:U}),signal:AbortSignal.timeout(8000)});if(!Y.ok)return;let J=await Y.json();if(J.value?.errorCode)return;let Q=J.value?.accessToken??J.accessToken,K=J.value?.corporationId??J.value?.corporation?.id;if(!Q||!K)return;return{domain:$,corpId:K,corpName:J.value?.corporation?.name,openapiToken:Q,expireTime:J.value?.expireTime}}catch{return}}async function xw($,I){let U=`${$8($)}/api/openapi/v1/roleDefGroups?accessToken=${encodeURIComponent(I)}`,Y=await fetch(U,{headers:{"content-type":"application/json",Accept:"application/json"},signal:AbortSignal.timeout(1e4)});if(!Y.ok){let K=await Y.text().catch(()=>"");throw Error(`Failed to fetch Hose role definition groups: ${Y.status} ${K}`)}return((await Y.json()).items??[]).map((K)=>({id:K.id,name:K.name,enName:K.enName,roleDefs:(K.roleDefs??[]).map((q)=>({id:q.id,name:q.name,enName:q.enName,sourceType:q.sourceType,sourceTypeValue:q.sourceTypeValue,groupId:K.id,groupName:K.name}))}))}async function xE($,I,U,Y="id"){let J=U.startsWith("$")?U.slice(1):U,Q=`${$8($)}/api/openapi/v1/roledefs/$${J}?accessToken=${encodeURIComponent(I)}&staffBy=${encodeURIComponent(Y)}&pathType=name`,K=await fetch(Q,{headers:{"content-type":"application/json",Accept:"application/json"},signal:AbortSignal.timeout(1e4)});if(!K.ok){let W=await K.text().catch(()=>"");throw Error(`Failed to fetch Hose role staffs for ${J}: ${K.status} ${W}`)}let H=(await K.json()).value;if(!H)throw Error(`Hose role staff query returned empty result for ${J}`);let G=[];for(let W of H.contents??[])for(let w of W.staffs??[])if(w&&!G.includes(w))G.push(w);return{id:H.id??J,name:H.name??"",count:H.count??G.length,staffs:G}}async function fE($,I,U){if(U.length===0)return[];let Y=`${$8($)}/api/openapi/v1/staffs/getStaffIds?accessToken=${encodeURIComponent(I)}`,J=await fetch(Y,{method:"POST",headers:{"content-type":"application/json",Accept:"application/json"},body:JSON.stringify({type:"STAFFID",conditionIds:U.slice(0,100)}),signal:AbortSignal.timeout(1e4)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(`Failed to fetch Hose staff details: ${J.status} ${K}`)}return(await J.json()).items??[]}var fw=new Map;function hd($,I){return Date.now()>=$.expiresAt-I*1000}async function JC0($){switch($.source.type){case"hose":return yd($);case"direct":case"seal":return Nd($)}}async function iw($){let I=$.auth.refreshTtl,U=fw.get($.id);if(U&&!hd(U,I))return U;let Y=Bd($.id);if(Y&&!hd(Y,I))return fw.set($.id,Y),Y;let J=await JC0($);return fw.set($.id,J),vd($.id,J),J}async function ud($){return(await iw($)).enterprise}function kd($){fw.delete($),Rd($)}function QC0($){let I=Object.entries($??{}).map(([U,Y])=>`${U}=${Y}`);return I.length?I.join("; "):void 0}function X2($){let I={...$?.headers??{}},U=QC0($?.cookies);if(U)I.Cookie=U;return I}function KC0($){if($===void 0||$===null||$==="")return"";if(typeof $==="string")return $;try{return JSON.stringify($)}catch{return String($)}}function qC0($){if(!($ instanceof H$))return $;let I=KC0($.data);if(I)$.message=`${$.message}: ${I}`;return $}function xd($){return async({error:I})=>{if($&&I instanceof H$&&I.response.status===401)kd($);return qC0(I)}}async function u1($){let I=await iw($);return W5.create({prefix:I.enterprise.sealUrl,timeout:30000,headers:{...X2($.seal),Authorization:`Bearer ${I.token}`},hooks:{beforeError:[xd($.id)]}})}async function fd($,I){let U=await iw($);return L2(U.enterprise.sealUrl,I,X2($.seal))}function L2($,I,U={}){return W5.create({prefix:$.replace(/\/+$/,""),timeout:30000,headers:{...U,Authorization:`Bearer ${I}`},hooks:{beforeError:[xd()]}})}import{spawnSync as id}from"node:child_process";var D2={name:"seal-use",version:"0.10.17",type:"module",module:"src/server.ts",bin:{"seal-use":"src/cli.ts","seal-home":"src/cli.ts"},scripts:{dev:"bun run --watch src/server.ts",start:"bun run src/server.ts",probe:"bun run src/probe.ts",cli:"bun run src/cli.ts",check:"tsc --noEmit","build:binary":"node scripts/build-binary.mjs","build:plugin":"node scripts/build-plugin.mjs",bump:"bun run scripts/bump-version.ts","dev:override":"bun run scripts/dev-override.ts","dev:link":"bun run scripts/dev-override.ts","openapi:bundle":"bun run scripts/bundle-openapi.ts","openapi:raw":"bun run scripts/generate-raw-openapi.ts",test:"bun test"},dependencies:{"@modelcontextprotocol/sdk":"^1.29.0",exceljs:"^4.4.0","iconv-lite":"^0.7.3",ky:"^2.0.2","pinyin-pro":"^3.29.3",yauzl:"^3.4.0",zod:"^4.4.3"},devDependencies:{"@types/bun":"^1.3.14","@types/yauzl":"^3.4.0","bun-types":"^1.3.14",typescript:"^5.9.3",yaml:"^2.9.0"}};function GC0($,I=D2.version){let U=$.trim();if(!U)return null;let Y=U.endsWith("-dirty"),J=Y?U.slice(0,-6):U,Q=J.match(/^v?(\d+\.\d+\.\d+(?:-[a-zA-Z0-9.]+)?)-(\d+)-g([0-9a-f]+)$/);if(Q&&Q[1]&&Q[2]&&Q[3])return{baseVersion:Q[1],commitsAhead:Number.parseInt(Q[2],10),commit:Q[3],dirty:Y,describe:U};let K=J.match(/^v?(\d+\.\d+\.\d+(?:-[a-zA-Z0-9.]+)?)$/);if(K&&K[1])return{baseVersion:K[1],commitsAhead:0,commit:"",dirty:Y,describe:U};let q=J.match(/^([0-9a-f]{7,40})$/);if(q&&q[1])return{baseVersion:I,commitsAhead:0,commit:q[1],dirty:Y,describe:U};return null}function WC0($,I,U,Y){let Q=U?`+g${U}${Y?".dirty":""}`:Y?"+dirty":"";return`${$}-dev.${I}${Q}`}function wC0($){let I=$?.env,U=I?.SEAL_BUILD_VERSION??process.env.SEAL_BUILD_VERSION,Y=I?.SEAL_BUILD_IS_RELEASE??process.env.SEAL_BUILD_IS_RELEASE,J=I?.SEAL_BUILD_CHANNEL??process.env.SEAL_BUILD_CHANNEL,Q=I?.SEAL_BUILD_GIT_BASE??process.env.SEAL_BUILD_GIT_BASE,K=I?.SEAL_BUILD_GIT_COMMITS_AHEAD??process.env.SEAL_BUILD_GIT_COMMITS_AHEAD,q=I?.SEAL_BUILD_GIT_COMMIT??process.env.SEAL_BUILD_GIT_COMMIT,H=I?.SEAL_BUILD_GIT_DIRTY??process.env.SEAL_BUILD_GIT_DIRTY,G=I?.SEAL_BUILD_GIT_DESCRIBE??process.env.SEAL_BUILD_GIT_DESCRIBE,W=I?.SEAL_FORCE_RELEASE??process.env.SEAL_FORCE_RELEASE,w=$?.cwd;if(U){let Z=Y==="true",X={name:"seal-use",version:U,channel:J||(Z?"release":"dev"),isRelease:Z};if(Q)X.git={baseVersion:Q,commitsAhead:Number.parseInt(K||"0",10),commit:q||"",dirty:H==="true",describe:G||U};return X}if(Y==="true"||W==="1")return{name:"seal-use",version:D2.version,channel:"release",isRelease:!0};try{let Z=id("git",["describe","--tags","--long","--dirty","--always"],{cwd:w,encoding:"utf8",stdio:["ignore","pipe","ignore"]});if(Z.status===0&&Z.stdout){let V=GC0(Z.stdout.trim(),D2.version);if(V){if(!V.commit){let L=id("git",["rev-parse","--short","HEAD"],{cwd:w,encoding:"utf8",stdio:["ignore","pipe","ignore"]});if(L.status===0&&L.stdout)V.commit=L.stdout.trim()}return{name:"seal-use",version:WC0(V.baseVersion,V.commitsAhead,V.commit,V.dirty),channel:"dev",isRelease:!1,git:V}}}}catch{}return{name:"seal-use",version:`${D2.version}-dev.0+local`,channel:"dev",isRelease:!1}}var O2=wC0(),Y1=O2.version,iE=O2.isRelease,qM1=O2.channel;import{randomBytes as Mm}from"node:crypto";var bd=[".pdf",".xls",".xlsx",".csv",".doc",".docx",".ppt",".pptx",".txt",".rtf",".odt",".ods",".odp",".jpg",".jpeg",".png",".gif",".bmp",".webp",".heic",".eml",".msg"],bE={minFileSizeBytes:500,allowedExtensions:[...bd]},nd=z.string().trim().min(1).transform(($)=>{let I=$.toLowerCase();return I.startsWith(".")?I:`.${I}`}).refine(($)=>/^\.[a-z0-9][a-z0-9+_-]*$/.test($),{message:"文件后缀必须是简单扩展名,例如 .pdf 或 xlsx"}),nE=z.object({minFileSizeBytes:z.number().int().min(0).default(bE.minFileSizeBytes),maxFileSizeBytes:z.number().int().positive().nullable().optional(),allowedExtensions:z.array(nd).min(1).default([...bd]).transform(($)=>[...new Set($)])}).superRefine(($,I)=>{if($.maxFileSizeBytes!==void 0&&$.maxFileSizeBytes!==null&&$.maxFileSizeBytes<$.minFileSizeBytes)I.addIssue({code:"custom",path:["maxFileSizeBytes"],message:"最大文件大小不能小于最小文件大小"})}),pE=z.object({minFileSizeBytes:z.number().int().min(0).optional(),maxFileSizeBytes:z.number().int().positive().nullable().optional(),allowedExtensions:z.array(nd).min(1).transform(($)=>[...new Set($)])}).optional();function TU($=void 0){return nE.parse($??{})}function pd($,I){return TU({...TU($),...I})}var VC0=z.object({staffId:z.string(),name:z.string().optional(),code:z.string().default(""),bindTime:z.number().optional()}),ZC0=z.object({id:z.string(),tenantId:z.string(),name:z.string(),isAdmin:z.boolean().default(!1),permissions:z.array(z.string()).default([]),providerUserId:z.string().optional(),hosecloudStaff:VC0.optional()}),zC0=z.object({apiKey:z.string().optional(),corporationId:z.string().optional(),corporationName:z.string().optional()}),XC0=z.object({id:z.string(),name:z.string(),tenantSlug:z.string().optional(),isDemo:z.boolean().default(!1),logoUrl:z.string().nullable().optional(),hoseCorpConfig:zC0.optional()}),dd=z.object({user:ZC0,tenant:XC0}),LC0=z.object({id:z.string(),name:z.string(),email:z.string().nullable().optional(),emailVerified:z.boolean().optional(),image:z.string().nullable().optional(),tenantId:z.string().optional(),provider:z.string().optional(),providerUserId:z.string().optional(),mobile:z.string().nullable().optional(),status:z.string().optional(),permissions:z.array(z.string()).default([]),isAdmin:z.boolean().default(!1),hosecloudStaff:z.unknown().optional()}).passthrough(),DC0=z.object({id:z.string(),token:z.string().optional(),expiresAt:z.string(),createdAt:z.string().optional(),updatedAt:z.string().optional(),ipAddress:z.string().optional(),userAgent:z.string().optional(),userId:z.string(),delegationId:z.string().nullable().optional()}).passthrough(),md=z.object({user:LC0,session:DC0}),bw=z.object({id:z.string(),tenantId:z.string().optional(),code:z.number().optional(),description:z.string(),scope:z.string(),strictness:z.string(),status:z.string().optional(),createdAt:z.number().optional(),updatedAt:z.number().optional()}),ld=z.object({rules:z.array(bw),hasPendingDeletes:z.boolean().default(!1)}),OC0=z.object({code:z.string().optional(),description:z.string(),scope:z.string(),strictness:z.string()}),nw=z.object({id:z.string(),tenantId:z.string().optional(),versionNumber:z.number(),versionName:z.string().nullable().optional(),publishedBy:z.string().nullable().optional(),publishedByName:z.string().nullable().optional(),rules:z.array(OC0).default([]),publishedAt:z.number().optional(),createdAt:z.number().optional()}),od=z.object({version:nw,rulesCount:z.number()}),F2=z.object({id:z.string(),tenantId:z.string().optional(),title:z.string(),purpose:z.string().default(""),contentType:z.string().default("policy"),content:z.string(),status:z.string().default("published"),enabled:z.boolean().default(!0),scenarios:z.array(z.string()).default([]),tags:z.array(z.string()).default([]),category:z.string().nullable().optional(),categoryTags:z.array(z.string()).default([]),createdBy:z.string().nullable().optional(),createdByName:z.string().nullable().optional(),createdAt:z.number().optional(),updatedAt:z.number().optional(),updatedBy:z.string().nullable().optional(),updatedByName:z.string().nullable().optional(),isDeleted:z.boolean().default(!1)}),rd=z.object({articles:z.array(F2),total:z.number().optional()}),FC0=z.object({explicitApprove:z.string().default(""),explicitReject:z.string().default(""),exemptApprove:z.string().default(""),review:z.string().default("")}).passthrough(),NC0=z.object({type:z.string(),signKey:z.string().optional(),outboundName:z.string().optional(),mode:z.string().optional(),autoApprovalRate:z.number().optional(),apiKey:z.string().optional(),apiSecret:z.string().optional(),apiOrigin:z.string().optional(),corporationId:z.string().optional(),ebotSignKey:z.string().optional(),completionSignKey:z.string().optional(),outboundMessageId:z.string().optional(),completionMessageId:z.string().optional()}).passthrough(),MC0=z.enum(["assisted","semi_automatic","fully_automatic"]),cd=z.object({id:z.string(),url:z.string().url()}).passthrough(),N2=z.object({type:z.literal("webhook"),id:z.string(),name:z.string(),mode:MC0,incomingDocumentWebhook:cd,outgoingResultWebhook:z.string().url(),incomingManualResultWebhook:cd,secret:z.string().min(1),autoApprovalRate:z.number().int().min(0).max(100).optional(),materialPackFilePolicy:nE.default(bE)}).passthrough(),td=z.object({id:z.string().optional(),tenantId:z.string().optional(),tone:z.string().optional(),language:z.string().optional(),detailLevel:z.string().optional(),outputFormat:z.string().optional(),examples:z.array(z.string()).default([]),prohibitedPhrases:z.array(z.string()).default([]),customInstructions:z.string().optional(),updatedAt:z.number().optional(),decisionPreferences:FC0.optional(),integrationSystem:z.string().optional(),integrations:z.array(NC0).default([])}).passthrough(),AC0=z.object({id:z.string().optional(),sn:z.string().optional(),title:z.string().optional(),name:z.string().optional(),fields:z.array(z.unknown()).optional()}).passthrough(),PC0=z.object({_langfuseTraceId:z.string().optional(),simulation_batch_id:z.string().optional()}).passthrough(),pw=z.object({id:z.string(),tenantId:z.string().optional(),agentId:z.string().optional(),status:z.string().optional(),taskMode:z.string().optional(),finalExecutionMode:z.string().optional(),sourceSystem:z.string().optional(),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),documentId:z.string().optional(),document:AC0.optional(),result:z.unknown().optional(),pipelineData:z.unknown().optional(),sourceExtendData:PC0.optional(),ruleSetVersionNumber:z.number().optional(),ruleSetPublishedAt:z.number().optional(),ruleSetPublishedByName:z.string().optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),cE=z.object({records:z.array(pw).default([]),total:z.number().optional(),page:z.number().optional(),pageSize:z.number().optional()}).passthrough(),ad=z.object({id:z.string(),expiresAt:z.number().nullable().optional(),revokedAt:z.number().nullable().optional(),createdAt:z.number().nullable().optional(),lastUsedAt:z.number().nullable().optional(),useCount:z.number().default(0),note:z.string().nullable().optional(),link:z.string()}).passthrough(),sd=z.object({id:z.string(),token:z.string(),link:z.string()}).passthrough(),ed=z.object({userId:z.string(),password:z.string()}).passthrough(),$m=z.object({password:z.string()}).passthrough(),cw=z.object({_id:z.string(),tenantId:z.string().optional(),name:z.string(),mobile:z.string().optional(),email:z.string().optional(),departmentIds:z.array(z.string()).default([]),status:z.string().optional(),permissions:z.array(z.string()).default([]),createdAt:z.string().optional(),updatedAt:z.string().optional()}).passthrough(),Im=z.object({departments:z.array(z.record(z.string(),z.unknown())).default([]),users:z.array(cw).default([])}).passthrough(),dE=z.object({_id:z.string(),tenantId:z.string().optional(),name:z.string().optional(),parentId:z.string().nullable().optional(),ancestors:z.array(z.string()).default([]),provider:z.string().optional(),permissions:z.array(z.string()).default([]),isDeleted:z.boolean().optional(),syncedAt:z.string().optional(),createdAt:z.string().optional(),updatedAt:z.string().optional()}).passthrough(),mE=z.object({items:z.array(dE).default([])}).passthrough(),Um=z.object({items:z.array(cw).default([])}).passthrough(),Ym=z.object({lastSyncTime:z.union([z.string(),z.number(),z.null()])}).passthrough(),TC0=z.record(z.string(),z.unknown()),Jm=z.object({tagStats:z.array(TC0).default([]),totalRisks:z.number().default(0),analyzedRisks:z.number().default(0),pendingRisks:z.number().default(0)}).passthrough(),Qm=z.record(z.string(),z.unknown()),Km=z.object({expenses:z.array(Qm).default([]),total:z.number().optional()}).passthrough(),qm=z.object({invoices:z.array(Qm).default([]),total:z.number().optional(),feishuApprovalAppId:z.string().nullable().optional()}).passthrough(),Hm=z.record(z.string(),z.unknown()),Gm=z.object({provider:z.string(),config:z.record(z.string(),z.unknown()).default({})}).passthrough(),Wm=z.object({id:z.string(),name:z.string(),description:z.string().optional(),available:z.boolean().default(!0),fields:z.array(z.record(z.string(),z.unknown())).default([])}).passthrough(),wm=z.object({permissions:z.array(z.object({key:z.string(),name:z.string(),description:z.string().optional()}).passthrough()).default([])}).passthrough(),Vm=z.object({configs:z.array(z.record(z.string(),z.unknown())).default([])}).passthrough(),Zm=z.object({subscriptions:z.array(z.record(z.string(),z.unknown())).default([]),features:z.array(z.record(z.string(),z.unknown())).default([])}).passthrough(),zm=z.object({key:z.string(),type:z.string(),label:z.string(),column:z.string(),mask:z.string().optional()}).passthrough(),EC0=z.object({columns:z.array(zm).default([]),fieldKey:z.string().optional(),keyColumn:z.string().optional(),sheetName:z.string().optional(),fieldLabel:z.string().optional()}).passthrough(),Xm=z.object({id:z.string().optional(),listSheets:z.array(EC0).default([]),mainColumns:z.array(zm).default([]),workbookName:z.string().optional(),mainKeyColumn:z.string().optional(),mainSheetName:z.string().optional(),titleColumn:z.string().optional(),statusColumn:z.string().optional(),applicationDateColumn:z.string().optional(),updatedDateColumn:z.string().optional(),attachmentFieldKey:z.string().optional(),attachmentFieldLabel:z.string().optional()}).passthrough(),BC0=z.object({approvalCode:z.string(),nodeId:z.string().optional(),flowIds:z.array(z.string()).max(100).optional(),limit:z.number().int().positive().max(100).optional(),dataCollectionMode:z.string().optional(),signKey:z.string().optional(),rejectNodeName:z.string().nullable().optional(),skipInvoiceGeneration:z.boolean().optional(),skipExpenseExtraction:z.boolean().optional(),disableAttachmentCache:z.boolean().optional(),thinkingDepthOverride:z.enum(["default","medium","high"]).optional(),startTime:z.number().optional(),endTime:z.number().optional(),templateId:z.string().optional(),packageIds:z.array(z.string()).optional(),packageLabel:z.string().optional(),runMode:z.string().optional(),schemaConfig:Xm.optional()}).passthrough(),vC0=z.object({mode:z.string().optional(),conditions:z.array(z.object({label:z.string(),value:z.string()}).passthrough()).default([])}).passthrough(),RC0=z.object({kind:z.string().optional(),stage:z.string().optional(),code:z.string().optional(),message:z.string().optional()}).passthrough(),lE=z.object({id:z.string(),tenantId:z.string().optional(),approvalCode:z.string().optional(),nodeId:z.string().optional(),sourceSystem:z.string().optional(),status:z.string().optional(),totalCount:z.number().default(0),processedCount:z.number().default(0),successCount:z.number().default(0),failedCount:z.number().default(0),createdCount:z.number().default(0),createFailedCount:z.number().default(0),params:BC0.optional(),requestSummary:vC0.nullable().optional(),resultSummary:RC0.nullable().optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),oE=z.object({batchId:z.string()}).passthrough(),jC0=z.object({dataCollectionMode:z.string().optional(),flowIds:z.array(z.string()).max(100).optional(),rejectNodeName:z.string().nullable().optional(),skipInvoiceGeneration:z.boolean().optional(),skipExpenseExtraction:z.boolean().optional()}).passthrough(),Lm=z.object({id:z.string(),tenantId:z.string().optional(),name:z.string().optional(),description:z.string().optional(),approvalSystem:z.string().optional(),hosecloudConfig:jC0.optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),Dm=z.object({hasFeishu:z.boolean().default(!1),hasHosecloud:z.boolean().default(!1),hasWeaver:z.boolean().default(!1),hasHelios:z.boolean().default(!1),hasMaycur:z.boolean().default(!1),hasMaycurStandard:z.boolean().default(!1)}).passthrough(),Om=z.object({signKey:z.string().optional(),displayName:z.string().optional(),corporationId:z.string().optional()}).passthrough(),Fm=z.object({id:z.string(),tenantId:z.string().optional(),name:z.string().optional(),templateId:z.string().optional(),originalFileName:z.string().optional(),status:z.string().optional(),documentCount:z.number().optional(),attachmentCount:z.number().optional(),uploadedBy:z.string().optional(),schemaConfig:Xm.nullable().optional(),createdAt:z.union([z.string(),z.number()]).optional(),updatedAt:z.union([z.string(),z.number()]).optional()}).passthrough(),CC0=z.object({hitScopes:z.array(z.string()).default([]),hitRuleIds:z.array(z.string()).default([]),notHitScopes:z.array(z.string()).default([]),notHitRuleIds:z.array(z.string()).default([])}).passthrough(),rE=z.object({id:z.string().min(1),name:z.string().min(1),enabled:z.boolean().default(!0),description:z.string().default(""),condition:CC0.default({hitScopes:[],hitRuleIds:[],notHitScopes:[],notHitRuleIds:[]}),level:z.enum(["medium","high"])}).passthrough(),ZM1=z.object({defaultLevel:z.enum(["medium","high"]).default("medium"),routingPolicies:z.array(rE).default([])}).passthrough(),zM1=z.object({dryRun:z.boolean().optional(),signKey:z.string().min(1).optional(),outboundName:z.string().optional(),specificationId:z.string().optional(),specificationName:z.string().optional(),mode:z.enum(["fully_automatic","semi_automatic","assisted"]).default("assisted"),autoApprovalRate:z.number().min(0).max(100).optional(),rejectResubmitMethod:z.enum(["node_default","to_ebot","from_start"]).optional(),autoApproveNodeNames:z.array(z.string()).optional(),apiKey:z.string().min(1),apiSecret:z.string().min(1),apiOrigin:z.string().default("production"),customApiUrl:z.string().optional()}).passthrough(),Nm=z.object({id:z.string().optional(),code:z.string().optional(),name:z.string().optional(),approvalSystem:z.string().optional()}).passthrough(),XM1=z.object({total:z.number(),dedupeBy:z.string(),unique:z.number(),byStatus:z.record(z.string(),z.number()),bySourceSystem:z.record(z.string(),z.number())}).passthrough();var lw=z.object({success:z.boolean().optional()}).passthrough(),_C0=z.object({items:z.array(z.object({_id:z.string()})).optional()}).passthrough(),SC0=z.object({user:z.unknown().optional(),session:z.object({token:z.string().optional()}).optional()}).passthrough(),Am=z.json();async function s0($,I){let U=await $.json();return I.parse(U.data??U)}async function G$($){return s0(await $.get("api/v1/auth/me"),dd)}async function Pm($){return s0(await $.get("api/auth/get-session"),md)}async function _6($){return s0(await $.get("api/v1/rules"),ld)}async function A2($,I){return s0(await $.post("api/v1/rules",{json:I}),bw)}async function tE($,I,U){return s0(await $.put(`api/v1/rules/${I}`,{json:U}),bw)}async function BU($,I){await $.delete(`api/v1/rules/${I}`)}async function ow($){let I=await $.post("api/v1/rules/batch-recode",{throwHttpErrors:!1}),U=await I.json().catch(()=>({}));return z.object({ok:z.boolean(),status:z.number(),body:z.unknown()}).parse({ok:I.ok,status:I.status,body:U})}async function R$($){return s0(await $.get("api/v1/rule-set-versions"),z.array(nw))}async function P2($,I){return s0(await $.get(`api/v1/rule-set-versions/${I}`),nw)}async function T2($,I){return s0(await $.post("api/v1/rule-set-versions/publish",{json:{versionName:I}}),od)}async function N9($,I={}){let U=new URLSearchParams;return U.set("offset",String(I.offset??0)),U.set("limit",String(I.limit??20)),U.set("sortBy",I.sortBy??"createdAt"),U.set("sortOrder",I.sortOrder??"desc"),I.scenarios?.forEach((Y,J)=>{U.set(`filter[scenarios][${J}]`,Y)}),s0(await $.get("api/v1/knowledge/articles",{searchParams:U}),rd)}async function Tm($,I){return s0(await $.get(`api/v1/knowledge/articles/${I}`),F2)}async function rw($,I){return s0(await $.post("api/v1/knowledge/articles",{json:{...I,contentType:I.contentType??"policy",status:I.status??"published",enabled:I.enabled??!0,scenarios:I.scenarios&&I.scenarios.length>0?I.scenarios:["audit"],tags:I.tags??[]}}),F2)}async function tw($,I,U){let Y=Object.fromEntries(Object.entries(U).filter(([,J])=>J!==void 0));return s0(await $.patch(`api/v1/knowledge/articles/${I}`,{json:{attributes:Y}}),F2)}async function aw($,I){return await $.delete(`api/v1/knowledge/articles/${I}`),{success:!0,id:I}}async function M1($,I="api/v1/agent/ai-approval/config"){return s0(await $.get(I),td)}async function M8($,I,U="api/v1/agent/ai-approval/config"){return await $.post(U,{json:I}),M1($,U)}async function aE($,I,U="api/v1/agent/ai-approval/config"){let Y=await $.post(U,{json:I}),J=await Y.json().catch(()=>({})),Q=lw.safeParse(J.data??J);return Q.success?Q.data.success??Y.ok:Y.ok}async function w5($,I="api/v1/agent/ai-approval/config"){let U=await M1($,I);return sE(U.integrations)}async function Em($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=sE(J.integrations),K=Sm(I,Q,U);if(!await aE($,{...J,integrations:[...J.integrations,K]},Y))throw Error("Seal did not confirm saving the Webhook integration");return K}async function Bm($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=sE(J.integrations),K=Sm(I,Q,U);return{before:J,after:{...J,integrations:[...J.integrations,K]},integration:K}}async function vm($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=sw(J.integrations),K=ew(Q,I),q=gm(K.integration,U);if(!await aE($,{...J,integrations:J.integrations.map((G,W)=>W===K.index?q:G)},Y))throw Error("Seal did not confirm saving the Webhook integration");return q}async function Rm($,I,U,Y="api/v1/agent/ai-approval/config"){let J=await M1($,Y),Q=sw(J.integrations),K=ew(Q,I),q=gm(K.integration,U);return{before:J,after:{...J,integrations:J.integrations.map((H,G)=>G===K.index?q:H)},integration:q}}async function jm($,I,U="api/v1/agent/ai-approval/config"){let Y=await M1($,U),J=sw(Y.integrations),Q=ew(J,I);if(!await aE($,{...Y,integrations:Y.integrations.filter((q,H)=>H!==Q.index)},U))throw Error("Seal did not confirm deleting the Webhook integration");return Q.integration}async function Cm($,I,U="api/v1/agent/ai-approval/config"){let Y=await M1($,U),J=sw(Y.integrations),Q=ew(J,I);return{before:Y,after:{...Y,integrations:Y.integrations.filter((K,q)=>q!==Q.index)},integration:Q.integration}}function M9($,I){let U=I.trim();if(!U)throw Error("Webhook selector must not be empty");let Y=$.find((Q)=>Q.id===U);if(Y)return Y;let J=$.filter((Q)=>Q.name===U);if(J.length===1)return J[0];if(J.length>1)throw Error(`Multiple Webhook integrations match name: ${U}. Use the integration ID.`);throw Error(`Webhook integration not found: ${U}`)}function _m($,I){let U=I?.trim().toLowerCase();if(!U)return $;return $.filter((Y)=>[Y.id,Y.name,Y.mode,Y.outgoingResultWebhook,Y.incomingDocumentWebhook.url,Y.incomingManualResultWebhook.url].some((J)=>J.toLowerCase().includes(U)))}function sE($){return $.filter((I)=>I.type==="webhook").map((I)=>N2.parse(I))}function sw($){return $.flatMap((I,U)=>{if(I.type!=="webhook")return[];return[{index:U,integration:N2.parse(I)}]})}function ew($,I){let U=M9($.map((Y)=>Y.integration),I);return $.find((Y)=>Y.integration.id===U.id)}function Sm($,I,U){let Y=M2(U.name,"name"),J=U.mode??"assisted",Q=hm(U.outgoingResultWebhook,"outgoingResultWebhook"),K=um(U.autoApprovalRate??60),q=gC0(I),H=`wh_${q}_${Mm(8).toString("hex").slice(0,7)}`,G=$8($);return N2.parse({type:"webhook",id:`integration-${q}`,name:Y,mode:J,incomingDocumentWebhook:{id:H,url:`${G}/api/v1/integrations/webhook/${H}/document`},outgoingResultWebhook:Q,incomingManualResultWebhook:{id:H,url:`${G}/api/v1/integrations/webhook/${H}/manual-result`},secret:U.secret?M2(U.secret,"secret"):ym(),autoApprovalRate:K,materialPackFilePolicy:TU(U.materialPackFilePolicy)})}function gm($,I){return N2.parse({...$,...I.name===void 0?{}:{name:M2(I.name,"name")},...I.mode===void 0?{}:{mode:I.mode},...I.outgoingResultWebhook===void 0?{}:{outgoingResultWebhook:hm(I.outgoingResultWebhook,"outgoingResultWebhook")},...I.autoApprovalRate===void 0?{}:{autoApprovalRate:um(I.autoApprovalRate)},...I.rotateSecret||I.secret!==void 0?{secret:I.rotateSecret?ym():M2(I.secret??"","secret")}:{},...I.materialPackFilePolicy===void 0?{}:{materialPackFilePolicy:pd($.materialPackFilePolicy,I.materialPackFilePolicy)}})}function gC0($){let I=new Set($.map((Y)=>Y.id)),U=Date.now();while(I.has(`integration-${U}`))U+=1;return U}function ym(){return Mm(16).toString("hex")}function M2($,I){let U=$.trim();if(!U)throw Error(`Webhook ${I} must not be empty`);return U}function hm($,I){let U=M2($,I);try{return new URL(U).toString()}catch{throw Error(`Webhook ${I} must be a valid URL`)}}function um($){if(!Number.isInteger($)||$<0||$>100)throw Error("Webhook autoApprovalRate must be an integer between 0 and 100");return $}async function $V($,I={}){let[U,Y,J]=await Promise.all([_6($),N9($,{limit:I.documentLimit??50}),M1($,I.stylePreferencesEndpoint).then((Q)=>({ok:!0,data:Q}),(Q)=>({ok:!1,error:Q instanceof Error?Q.message:String(Q)}))]);return{rules:U,documents:Y,stylePreferences:J}}async function j$($,I={}){let U=new URLSearchParams;return U.set("offset",String(I.offset??0)),U.set("limit",String(I.limit??50)),C6(U,"fromTimestamp",I.fromTimestamp),C6(U,"toTimestamp",I.toTimestamp),C6(U,"startDate",I.startDate),C6(U,"endDate",I.endDate),C6(U,"status",I.status),C6(U,"sourceSystem",I.sourceSystem),C6(U,"taskMode",I.taskMode),C6(U,"search",I.search),C6(U,"sourceDocumentSN",I.sourceDocumentSN),C6(U,"sourceDocumentId",I.sourceDocumentId),yC0(U,"manualApprovalStatus",I.manualApprovalStatus),s0(await $.get("api/v1/approvals",{searchParams:U}),cE)}async function T4($,I){return s0(await $.get(`api/v1/approvals/${I}`),pw)}async function eE($,I){let U=await $.get(`api/v1/simulation/batch/${I}/records`).json(),Y=U.data??U;if(Array.isArray(Y))return z.array(pw).parse(Y);return cE.parse(Y).records}async function km($,I){return s0(await $.post("api/v1/simulation/create-batch",{json:I}),oE)}async function xm($,I){return s0(await $.post("api/v1/simulation/create-material-pack-batch",{json:I}),oE)}async function fm($,I={}){let U=await $.get("api/v1/simulation/batches",{searchParams:{limit:String(I.limit??50)}}).json(),Y=U.data??U;return z.array(lE).parse(Y)}async function IV($,I){return s0(await $.get(`api/v1/simulation/batch/${I}`),lE)}async function im($){let I=await $.get("api/v1/simulation/templates").json(),U=I.data??I;return z.array(Lm).parse(U)}async function $B($){return s0(await $.get("api/v1/simulation/integration-status"),Dm)}async function IB($){let I=await $.get("api/v1/simulation/hosecloud-integrations").json(),U=I.data??I;return z.array(Om).parse(U)}async function bm($,I){let Y=await(await $.delete(`api/v1/simulation/batch/${encodeURIComponent(I)}/data`)).json().catch(()=>({}));return Y.data??Y}async function nm($,I){let U=I?"api/v1/simulation/hosecloud-specifications-by-sign-key":"api/v1/simulation/hosecloud-specifications",Y=I?new URLSearchParams({signKey:I}):void 0,J=await $.get(U,{searchParams:Y}).json(),Q=J.data??J;return z.array(Nm).parse(Q)}async function pm($,I){let U=await $.post("api/hosecloud/corporation",{json:I}).json(),Y=U.data??U;return z.object({corporationId:z.string()}).parse(Y)}async function cm($,I){let Y=await(await $.post("api/hosecloud/outbound-config/sync",{json:I})).json().catch(()=>({}));return Y.data??Y}async function dm($,I){let U=new FormData;return U.append("file",new Blob([new Uint8Array(I.fileBuffer)]),I.fileName),s0(await $.post("api/v1/material-packages/upload",{body:U}),Fm)}function C6($,I,U){if(U)$.set(I,U)}function yC0($,I,U){if(!U)return;(Array.isArray(U)?U:[U]).map((J)=>J.trim()).filter(Boolean).forEach((J,Q)=>{$.set(`${I}[${Q}]`,J)})}async function mm($){return s0(await $.get("api/v1/delegation/list"),z.array(ad))}async function EU($,I){return s0(await $.post("api/v1/delegation/create",{json:I??{}}),sd)}async function lm($,I){let U=await $.post("api/v1/delegation/revoke",{json:{tokenId:I}}),Y=await U.json(),J=lw.safeParse(Y.data??Y);return J.success?J.data.success??U.ok:U.ok}async function om($,I){let U=I.departmentIds&&I.departmentIds.length>0?I.departmentIds:void 0;if(!U){let Y=await $.get("api/v1/contacts/departments/root/children").json(),J=_C0.safeParse(Y.data??Y),Q=J.success?J.data.items?.[0]?._id:void 0;if(Q)U=[Q]}return s0(await $.post("api/v1/contacts/local/users",{json:{name:I.name,phone:I.phone,permissions:I.permissions??[],departmentIds:U??[]}}),ed)}async function UB($,I){return s0(await $.post(`api/v1/contacts/local/users/${I}/reset-password`,{json:{}}),$m)}async function dw($,I){return s0(await $.get(`api/v1/contacts/users/${I}`),cw)}async function mw($,I=""){return s0(await $.get("api/v1/contacts/search",{searchParams:{query:I}}),Im)}async function rm($){return s0(await $.get("api/v1/contacts/departments/root/children"),mE)}async function tm($,I){return s0(await $.get(`api/v1/contacts/departments/${encodeURIComponent(I)}`),dE)}async function am($,I){return s0(await $.get(`api/v1/contacts/departments/${encodeURIComponent(I)}/children`),mE)}async function sm($,I){return s0(await $.get(`api/v1/contacts/departments/${encodeURIComponent(I)}/users`),Um)}async function em($){return s0(await $.get("api/v1/contacts/last-sync-time"),Ym)}async function $l($,I={}){let U=hC0(),Y=new URLSearchParams;if(C6(Y,"startDate",I.startDate??U.startDate),C6(Y,"endDate",I.endDate??U.endDate),I.limit!==void 0)Y.set("limit",String(I.limit));return s0(await $.get("api/v1/insight/stats",{searchParams:Y}),Jm)}function hC0(){let $=new Date,I=new Date($.getFullYear(),$.getMonth(),1),U=new Date($.getFullYear(),$.getMonth()+1,0,23,59,59,999);return{startDate:I.toISOString(),endDate:U.toISOString()}}function Il($){let I=new URLSearchParams;return C6(I,"filter[startDate]",$.startDate),C6(I,"filter[endDate]",$.endDate),C6(I,"filter[search]",$.search),I.set("offset",String($.offset??0)),I.set("limit",String($.limit??50)),I}async function Ul($,I={}){return s0(await $.get("api/v1/expenses/list",{searchParams:Il(I)}),Km)}async function Yl($,I={}){return s0(await $.get("api/v1/invoice/list",{searchParams:Il(I)}),qm)}async function Jl($){return s0(await $.get("api/v1/integrations/feishu/simulation/approval-definitions"),z.array(Hm))}async function Ql($,I){let U=await $.delete(`api/v1/contacts/local/users/${I}`),Y=await U.json(),J=lw.safeParse(Y.data??Y);return J.success?J.data.success??U.ok:U.ok}async function YB($,I){let U=await $.post(`api/v1/contacts/local/users/${I}/activate`,{json:{}}),Y=await U.json(),J=lw.safeParse(Y.data??Y);return J.success?J.data.success??U.ok:U.ok}async function uC0($,I){let U=await $.post("api/auth/sms-otp/sign-in-password",{json:I}),Y=U.headers.get("set-auth-token"),J=SC0.parse(await U.json()),Q=Y??J.session?.token;if(!Q)throw Error("Failed to retrieve authentication token from login response");return{token:Q,user:J.user}}async function Kl($,I,U,Y){let J;if(I.userIdOrPhone.startsWith("+")||/^\d{11}$/.test(I.userIdOrPhone)){let V=await mw($,I.userIdOrPhone),X=V.users.find((L)=>L.mobile?.includes(I.userIdOrPhone)||L._id===I.userIdOrPhone)??V.users[0];if(!X)throw Error(`User not found with phone/ID: ${I.userIdOrPhone}`);J=X}else J=await dw($,I.userIdOrPhone).catch(async()=>{let V=await mw($,I.userIdOrPhone),X=V.users.find((L)=>L.name===I.userIdOrPhone)??V.users[0];if(!X)throw Error(`User not found: ${I.userIdOrPhone}`);return X});if(J.status==="resigned")await YB($,J._id),J=await dw($,J._id);let Q=J,K=Array.isArray(Q.identities)&&Q.identities.some((V)=>V.provider&&V.provider!=="local")||!!Q.apps?.hosecloud;if(K&&Y&&Y.source.type==="hose"){let X=(J.mobile||Q.identities?.[0]?.providerId||"").replace(/^\+86/,""),L=Q.identities?.find((F)=>F.provider==="hosecloud")?.providerId,D=Q.apps?.hosecloud?.boundId||L||(X?`${Y.source.corpId}:${X}`:void 0);if(D){let F=await hw(Y),T=(await uw({...Y.source,staffId:D},F)).token,A=AU(Y,Y.source),R;try{R=await W5.get(`${$8(A)}/api/auth/oauth2/session/oem-hosecloud`,{searchParams:{token:T,returnToken:"1"},timeout:30000}).json()}catch(y){if(y instanceof H$&&y.response.status===400)throw Error(`Seal AI 用户“${J.name}”未绑定合思账号,无法生成个人协助链接。`);throw y}let x=R.token??R.accessToken??R.data?.token;if(x){let y=await U(x),f=await EU(y,{note:I.note??`Delegation generated by admin for ${J.name}`});return{targetUser:J,delegation:f,temporaryPassword:"N/A (Hose SSO)"}}}}let q;try{q=await UB($,J._id)}catch(V){if(K)throw Error(`用户 "${J.name}" (${J.mobile||J._id}) 为合思同步账号 (provider: hosecloud),无 Seal 本地密码。`+"Seal 系统暂不支持对同步账号直接重置本地密码。");throw V}let G=(J.mobile||J.identities?.[0]?.providerId||"").replace(/^\+86/,"");if(!G)throw Error(`User ${J.name} has no associated phone number for password login`);let{token:W}=await uC0($,{phone:G,password:q.password}),w=await U(W),Z=await EU(w,{note:I.note??`Delegation generated by admin for ${J.name}`});return{targetUser:J,delegation:Z,temporaryPassword:q.password}}async function ql($){return s0(await $.get("api/v1/llm/config"),Gm)}async function Hl($){return s0(await $.get("api/v1/llm/providers"),z.array(Wm))}async function Gl($){return s0(await $.get("api/v1/permissions/available"),wm)}async function Wl($){return s0(await $.get("api/v1/permissions/configs"),Vm)}async function wl($){return s0(await $.get("api/v1/billing/status"),Zm)}async function Vl($){let U=await(await $.get("api/v1/billing/plans")).json();return Am.parse(U.data??U)}async function Zl($){let U=await(await $.get("api/v1/billing/features")).json();return Am.parse(U.data??U)}var fw0=FI(zh(),1);import{existsSync as uw0,mkdirSync as kw0,statSync as l21}from"node:fs";import{homedir as o21}from"node:os";import{dirname as r21,resolve as dL}from"node:path";function xw0($,I=!1){if($===void 0||$===null||$==="")return;if(typeof $==="number")return String($);let U=String($).trim();if(!U)return;if(/^\d{10,13}$/.test(U))return U.length===10?`${U}000`:U;if(/^\d{4}-\d{2}-\d{2}$/.test(U)){let Q=new Date(`${U}${I?"T23:59:59.999+08:00":"T00:00:00.000+08:00"}`).getTime();if(!Number.isNaN(Q))return String(Q)}let Y=new Date(U).getTime();if(!Number.isNaN(Y))return String(Y);return U}function t21($){if(!$)return;let I=Array.isArray($)?$:[$],U=[];for(let Y of I){let J=Y.trim().toUpperCase();if(["APPROVED","已通过","已完成","已支付","已支付/审批完成"].includes(J))U.push("APPROVED");else if(["TERMINATED","REJECTED","REJECT","驳回","被驳回","已驳回"].includes(J))U.push("TERMINATED");else if(["PROCESSING","审批中","处理中"].includes(J))U.push("PROCESSING");else if(["CANCELLED","CANCELED","已撤回","已撤销"].includes(J))U.push("CANCELLED");else if(J)U.push(J)}return U.length>0?U:void 0}function a21($,I,U){if(!I)return U?`${$} (${U})`:$;return(I.split(/[。\n\r;;!!]/)[0]?.trim()||I.trim()).replace(/[*#`_]/g,"").trim().slice(0,22)}function s21($){if($.outputFile){let K=dL($.outputFile),q=r21(K);if(!uw0(q))kw0(q,{recursive:!0});return K}let I=$.corpName.replace(/[/\\?%*:|"<>]/g,"_").trim()||"审批记录",U=$.dateTag||new Date().toISOString().slice(0,10),Y=$.recordCount>0?`${$.recordCount}条`:"空数据",J=`${I}_审核记录_${U}_${Y}.xlsx`,Q;if($.toDownloads)Q=dL(o21(),"Downloads");else Q=dL(process.cwd(),"exports");if(!uw0(Q))kw0(Q,{recursive:!0});return dL(Q,J)}async function mL($,I,U={}){let Y=I.name||I.id,J=U.pageSize??100,Q=U.pageDelayMs??250,K=U.limit??1e5,q=xw0(U.startDate,!1),H=xw0(U.endDate,!0),G=t21(U.manualApprovalStatus);console.error(`正在加载企业「${Y}」审核规则集...`);let W=new Map;try{(await _6($)).rules.forEach((p,n)=>{let S=`rule-${p.code??n}`,i=a21(S,p.description,p.scope);W.set(S,{id:S,code:String(p.code??n),title:`[${S}] ${i}`,desc:p.description})})}catch(j){console.error(`⚠️ 加载规则字典失败: ${j.message},将仅导出基础信息列。`)}let w=Array.from(W.keys()).sort((j,p)=>{let n=parseInt(j.replace(/\D/g,""),10)||0,S=parseInt(p.replace(/\D/g,""),10)||0;return n-S});console.error(`已就绪 ${w.length} 个规则列。开始拉取单据...`);let Z=[],V=0,X=0;while(Z.length0)try{j=await j$($,{limit:J,offset:V,startDate:q,endDate:H,status:U.status,manualApprovalStatus:G});break}catch(S){if(p--,console.error(`分页拉取失败 (offset=${V}): ${S.message},剩余重试 ${p} 次...`),p===0)throw S;await new Promise((i)=>setTimeout(i,1000))}if(!j||!j.records||j.records.length===0)break;X=j.total??X;for(let S of j.records){if(U.includeCompletedOnly&&S.status!=="completed")continue;if(S.status==="completed"&&(!S.result||!S.result.rulesResult))try{let i=await T4($,S.id);Z.push(i)}catch{Z.push(S)}else Z.push(S);if(Z.length>=K)break}V+=j.records.length;let n=X>0?(V/X*100).toFixed(1):"-";if(V%500===0||V>=X||Z.length>=K)console.error(`[进度] 已读取单据: ${V}/${X} (${n}%),有效加入: ${Z.length} 条`);if(j.records.length=X)break;if(Q>0)await new Promise((S)=>setTimeout(S,Q))}console.error(`成功拉取 ${Z.length} 条单据数据,正在生成高保真 Excel...`);let L=new fw0.default.Workbook;L.creator="Seal AI (seal-use)",L.created=new Date;let D=L.addWorksheet("审核记录明细",{views:[{state:"frozen",ySplit:1,xSplit:2}]}),F=[{header:"单据编号",key:"sn",width:16},{header:"单据模板名称",key:"templateName",width:26},{header:"来源系统",key:"sourceSystem",width:12},{header:"任务模式",key:"taskMode",width:12},{header:"状态",key:"status",width:12},{header:"AI行为",key:"aiAction",width:14},{header:"AI决策",key:"aiDecision",width:14},{header:"思考深度",key:"thinkingDepth",width:12},{header:"人工审核",key:"manualStatus",width:16},{header:"人工驳回原因",key:"humanRejectReason",width:36},{header:"创建时间",key:"createdAt",width:20},{header:"任务耗时",key:"duration",width:12},{header:"关联规则数",key:"hitRuleCount",width:12},{header:"关联规则汇总",key:"hitRulesSummary",width:30},{header:"AI审核结论摘要",key:"aiSummary",width:45}],P=w.map((j)=>{return{header:W.get(j).title,key:`rule_${j}`,width:22}});D.columns=[...F,...P];let T=D.getRow(1);T.height=32,T.eachCell((j,p)=>{let n=p<=F.length;j.font={name:"Microsoft YaHei",bold:!0,color:{argb:"FFFFFFFF"},size:11},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:n?"FF1E3A8A":"FF334155"}},j.alignment={vertical:"middle",horizontal:n&&p<=2?"left":"center",wrapText:!1}});let A={},R=0;for(let j of Z){let p=j.result||{},n=j.document||{},S="未知模板";if(Array.isArray(n.fields)){let M0=n.fields.find((Q0)=>Q0.label==="单据模板"||Q0.label==="流程名称"||Q0.key==="templateName"||Q0.key==="specificationId"||Q0.key==="formName");if(M0?.value)S=String(M0.value)}if(S==="未知模板"&&(n.name||n.title))S=n.name||n.title;let i=j.taskMode||"-";if(i==="assisted")i="辅助审核";else if(i==="simulation")i="测试任务";else if(i==="automatic")i="自动审批";let b=j.status||"-";if(b==="completed")b="已完成";else if(b==="processing")b="处理中";else if(b==="failed")b="失败";let U0=p.decision||j.aiDecision||"-",B=U0,k="-";if(U0==="APPROVE")B="通过",k="添加评论";else if(U0==="REVIEW")B="转交复核",k="转交复核";else if(U0==="REJECT")B="驳回",k="驳回";let c="-";if(j.createdAt&&j.updatedAt&&j.status==="completed"){let M0=Math.round((Number(j.updatedAt)-Number(j.createdAt))/1000);if(M0>=60)c=`${Math.floor(M0/60)}分${M0%60}秒`;else if(M0>0)c=`${M0}秒`}let r=j.manualApprovalRecord||{},J0="-";if(r.status?.label)J0=String(r.status.label);else if(r.status?.type){let M0=String(r.status.type);if(M0==="APPROVED")J0="已通过";else if(M0==="TERMINATED")J0="被驳回";else if(M0==="PROCESSING")J0="处理中";else if(M0==="CANCELLED")J0="已撤回";else J0=M0}A[J0]=(A[J0]||0)+1;let w0=r.rejectComment?String(r.rejectComment).trim():"-";if(w0!=="-")R++;let A0=new Map,j0=[];if(Array.isArray(p.rulesResult)){for(let M0 of p.rulesResult)if(M0.id)A0.set(M0.id,M0.checkResult||"PASS"),j0.push(M0.id)}if(Array.isArray(p.hitRules)){for(let M0 of p.hitRules)if(M0.id&&!A0.has(M0.id))A0.set(M0.id,"TRIGGERED"),j0.push(M0.id)}let q1="-";if(j.createdAt)q1=new Date(Number(j.createdAt)).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai",hour12:!1});let x0={sn:j.sourceDocumentSN||j.sourceDocumentId||"-",templateName:S,sourceSystem:j.sourceSystem||"合思",taskMode:i,status:b,aiAction:k,aiDecision:B,thinkingDepth:"标准",manualStatus:J0,humanRejectReason:w0,createdAt:q1,duration:c,hitRuleCount:j0.length,hitRulesSummary:j0.join(", ")||"-",aiSummary:p.summary||"-"};for(let M0 of w){let Q0=A0.get(M0);if(Q0)if(Q0==="PASS")x0[`rule_${M0}`]="关联 (通过)";else if(Q0==="FAIL")x0[`rule_${M0}`]="关联 (不通过)";else if(Q0==="UNKNOWN")x0[`rule_${M0}`]="关联 (待复核)";else x0[`rule_${M0}`]="已关联";else x0[`rule_${M0}`]="未关联"}let I1=D.addRow(x0);I1.height=24,I1.eachCell((M0,Q0)=>{let R0=String(M0.value||"");if(M0.font={name:"Microsoft YaHei",size:10},M0.border={top:{style:"thin",color:{argb:"FFE2E8F0"}},bottom:{style:"thin",color:{argb:"FFE2E8F0"}},left:{style:"thin",color:{argb:"FFE2E8F0"}},right:{style:"thin",color:{argb:"FFE2E8F0"}}},Q0<=F.length){if(M0.alignment={vertical:"middle",horizontal:[1,2,10,14,15].includes(Q0)?"left":"center",wrapText:[10,14,15].includes(Q0)},Q0===7){if(R0==="通过")M0.font={color:{argb:"FF16A34A"},bold:!0};else if(R0==="转交复核")M0.font={color:{argb:"FFD97706"},bold:!0};else if(R0==="驳回")M0.font={color:{argb:"FFDC2626"},bold:!0}}if(Q0===9){if(R0.includes("驳回"))M0.font={name:"Microsoft YaHei",size:10,color:{argb:"FFDC2626"},bold:!0},M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFEE2E2"}};else if(R0.includes("通过")||R0.includes("支付")||R0.includes("完成"))M0.font={name:"Microsoft YaHei",size:10,color:{argb:"FF16A34A"},bold:!0},M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFDCFCE7"}};else if(R0.includes("处理中")||R0.includes("审批中"))M0.font={name:"Microsoft YaHei",size:10,color:{argb:"FF2563EB"}},M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFEFF6FF"}}}if(Q0===10&&R0!=="-")M0.font={name:"Microsoft YaHei",size:9,color:{argb:"FF991B1B"}}}else if(M0.alignment={vertical:"middle",horizontal:"center"},R0.includes("不通过"))M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFEE2E2"}},M0.font={color:{argb:"FF991B1B"},bold:!0};else if(R0.includes("通过"))M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFDCFCE7"}},M0.font={color:{argb:"FF166534"},bold:!0};else if(R0.includes("待复核")||R0.includes("已关联"))M0.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFEF3C7"}},M0.font={color:{argb:"FF92400E"}};else M0.font={color:{argb:"FF94A3B8"}}})}let x;if(U.startDate){let j=String(U.startDate);if(/^\d{4}-\d{2}-\d{2}/.test(j))x=`${j.slice(0,10)}至今`;else if(/^\d+$/.test(j)){let p=new Date(Number(j));x=`${p.getFullYear()}${String(p.getMonth()+1).padStart(2,"0")}${String(p.getDate()).padStart(2,"0")}至今`}}let y=s21({outputFile:U.outputFile,toDownloads:U.toDownloads,corpName:Y,dateTag:x,recordCount:Z.length});await L.xlsx.writeFile(y),console.error(`Excel 文件已成功落地: ${y}`);let f=l21(y);return{filePath:y,corpId:I.id,corpName:Y,recordCount:Z.length,ruleColumnCount:w.length,statusCounts:A,rejectReasonCount:R,fileSizeBytes:f.size,exportedAt:new Date().toISOString()}}import iw0 from"node:fs";import bw0 from"node:path";function e21($){try{let I=new URL($);if(I.search)return`${I.origin}${I.pathname}?[MASKED]`;return $}catch{return $.replace(/\?.*$/,"?[MASKED]")}}function $K1($){return $.replace(/[/\\?%*:|"<>]/g,"_").trim()||"attachment"}function nw0($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}function IK1($){return $&&typeof $==="object"&&!Array.isArray($)?$:void 0}function _1($){return typeof $==="string"&&$.trim()?$.trim():void 0}function Xh($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function UK1($){if(!$)return;if(typeof $==="string")try{let I=JSON.parse($);if(I&&typeof I==="object")return I}catch{return}if(typeof $==="object"&&!Array.isArray($))return $;return}function YK1($,I,U){if(U?.fieldType?.toUpperCase()==="ATTACHMENT"){if(Boolean($.fileName||$.filename||$.name||$.originalName||$.fileId||$.ossPath||$.url||$.ossSignedUrl||$.signedUrl||$.token))return!0}if($.ossSignedUrl||$.signedUrl)return!0;let Y=$.fileName??$.filename??$.name??$.originalName,J=$.fileId??$.id??$.attachmentId,Q=$.ossPath??$.ossKey,K=$.url??$.downloadUrl??$.previewUrl,q=$.mimeType??$.mimetype??$.contentType,H=$.ossFileSize??$.fileSize??$.size;if(Y&&(K||Q||J||H))return!0;if(J&&(q||H||Q||K))return!0;let G=Object.keys($).map((Z)=>Z.toLowerCase());return(/(attachment|attachments|invoice|receipt|file|files|附件|发票)/i.test(I)||Boolean(U?.fieldKey&&/(attachment|attachments|invoice|receipt|file|files|附件|发票)/i.test(U.fieldKey))||Boolean(U?.fieldLabel&&/(attachment|attachments|invoice|receipt|file|files|附件|发票)/i.test(U.fieldLabel)))&&["filename","filename","mimetype","contenttype","fileid","osspath","signedurl","downloadurl","previewurl","attachmentid","ossfilesize","osssignedurl"].some((Z)=>G.includes(Z))}function JK1($,I,U){let Y=`${$} ${U?.fieldLabel??""} ${U?.fieldKey??""} ${_1(I.type)??""} ${_1(I.category)??""}`.toLowerCase();if(Y.includes("invoice")||Y.includes("发票"))return"invoice";if(Y.includes("receipt"))return"receipt";let J=(_1(I.fileName)??_1(I.name)??"").toLowerCase();if(J.includes("发票")||J.includes("invoice"))return"invoice";return"attachment"}function Lh($,I,U,Y,J){if(Array.isArray($)){$.forEach((G,W)=>Lh(G,`${I}.${W}`,U,Y,J));return}let Q=IK1($);if(!Q)return;let K=Q.type&&typeof Q.type==="string"||"label"in Q&&"value"in Q||"key"in Q&&"value"in Q,q=J;if(K)q={fieldLabel:_1(Q.label)??J?.fieldLabel,fieldKey:_1(Q.key)??J?.fieldKey,fieldType:_1(Q.type)??J?.fieldType};if(!(Array.isArray(Q.value)&&!Q.url&&!Q.ossSignedUrl&&!Q.fileId)&&YK1(Q,I,J)){let G=UK1(Q.token),W=_1(G?.key),w=_1(G?.fileId),Z=nw0({path:I,fieldPath:I,kind:JK1(I,Q,J),fileName:_1(Q.fileName)??_1(Q.filename)??_1(Q.name)??_1(Q.originalName),mimeType:_1(Q.mimeType)??_1(Q.mimetype)??_1(Q.contentType),fileId:_1(Q.fileId)??_1(Q.id)??_1(Q.attachmentId)??w,ossPath:_1(Q.ossPath)??_1(Q.ossKey)??W,url:_1(Q.url)??_1(Q.signedUrl)??_1(Q.downloadUrl)??_1(Q.previewUrl),ossSignedUrl:_1(Q.ossSignedUrl)??_1(Q.signedUrl),token:Q.token,tokenKey:W,category:_1(Q.category),ossFileSize:Xh(Q.ossFileSize)??Xh(Q.fileSize)??Xh(Q.size),invoiceId:_1(Q.invoiceId),sourceField:_1(Q.fieldName)??_1(Q.label)??J?.fieldLabel??J?.fieldKey}),V=JSON.stringify(Z);if(!Y.has(V))Y.add(V),U.push(Z)}for(let[G,W]of Object.entries(Q))Lh(W,`${I}.${G}`,U,Y,q)}function NJ($,I={}){let U=[["document",$.document],["result",$.result],["pipelineData",$.pipelineData],["sourceExtendData",$.sourceExtendData]],Y=[],J=new Set;for(let[Q,K]of U)Lh(K,Q,Y,J);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,count:Y.length,attachments:I.summary?Y.map((Q)=>nw0({path:Q.path,kind:Q.kind,fileName:Q.fileName,mimeType:Q.mimeType,fileId:Q.fileId,sourceField:Q.sourceField,ossFileSize:Q.ossFileSize,hasSignedUrl:Boolean(Q.ossSignedUrl)})):Y}}async function lL($){let{record:I,fetchFn:U=globalThis.fetch}=$,J=NJ(I,{summary:!1}).attachments,Q=bw0.resolve($.outDir??"./attachments");if(J.length===0)return{recordId:I.id,outDir:Q,total:0,downloaded:0,failed:0,files:[]};let K=[];if($.name){let w=$.name.toLowerCase();if(K=J.filter((Z)=>{let V=Z.fileName?.toLowerCase()??"",X=Z.fileId?.toLowerCase()??"",L=Z.tokenKey?.toLowerCase()??"";return V.includes(w)||X===w||L.includes(w)}),K.length===0){let Z=J.map((V)=>V.fileName??V.fileId).filter(Boolean).join(", ");throw Error(`未找到匹配 "${$.name}" 的附件。可选附件: ${Z||"无"}`)}}else if(!$.all){if(J.length>1){let w=J.map((Z)=>Z.fileName??Z.fileId).filter(Boolean).join(", ");throw Error(`共发现 ${J.length} 个附件。请使用 --all 下载全部附件,或使用 --name <名称|fileId> 指定下载项。可选附件: ${w}`)}K=J}else K=J;await iw0.promises.mkdir(Q,{recursive:!0});let q=[],H=new Set;for(let w of K){let Z=w.fileName??w.fileId??"attachment",V=$K1(Z),X=V,L=V.lastIndexOf("."),D=L>0?V.slice(0,L):V,F=L>0?V.slice(L):"",P=1;while(H.has(X.toLowerCase()))X=`${D}_${P}${F}`,P++;H.add(X.toLowerCase());let T=w.ossSignedUrl??w.url;if(!T){console.error(`⚠️ [跳过] 附件 "${Z}": 记录中无下载直链 (ossSignedUrl/url)`),q.push({name:X,fileId:w.fileId,status:"failed",error:"缺少可用的下载直链 (ossSignedUrl/url)。",sourceField:w.sourceField,tokenKey:w.tokenKey});continue}let A=e21(T);try{let R=await U(T,{signal:AbortSignal.timeout(60000)});if(!R.ok){let j=R.status===403?"HTTP 403 Forbidden: 签名直链可能已过期":`HTTP ${R.status} ${R.statusText}`;throw Error(j)}let x=await R.arrayBuffer(),y=Buffer.from(x);if(w.ossFileSize!==void 0&&y.length!==w.ossFileSize)console.error(`⚠️ [校验] 附件 "${X}" 实际大小 (${y.length} 字节) 与 ossFileSize (${w.ossFileSize} 字节) 不一致`);let f=bw0.join(Q,X);await iw0.promises.writeFile(f,y),console.error(`✓ 已下载: ${X} (${y.length} 字节)`),q.push({name:X,fileId:w.fileId,path:f,size:y.length,expectedSize:w.ossFileSize,status:"success",sourceField:w.sourceField,tokenKey:w.tokenKey})}catch(R){let x=R.message??String(R);console.error(`⚠️ [失败] 附件 "${Z}" 下载失败: ${x} [${A}]`),q.push({name:X,fileId:w.fileId,status:"failed",error:x,sourceField:w.sourceField,tokenKey:w.tokenKey})}}let G=q.filter((w)=>w.status==="success").length,W=q.filter((w)=>w.status==="failed").length;return{recordId:I.id,outDir:Q,total:K.length,downloaded:G,failed:W,files:q}}import{copyFileSync as cw0,existsSync as O$,mkdirSync as mw0,readFileSync as sL,readdirSync as tL,rmSync as ZK1,statSync as qH,writeFileSync as lw0}from"node:fs";import{homedir as eL}from"node:os";import{dirname as zK1,join as l8}from"node:path";var QK1=z.object({type:z.literal("hose"),domain:z.string().url().default("https://app.ekuaibao.com"),appKey:z.string().optional(),appSecurity:z.string().optional(),key:z.string().optional(),password:z.string().optional(),staffId:z.string(),corpId:z.string(),sealUrl:z.string().url().optional()}).superRefine(($,I)=>{if(!$.appKey&&!$.key)I.addIssue({code:"custom",path:["appKey"],message:"Hose source requires appKey or key"});if(!$.appSecurity&&!$.password)I.addIssue({code:"custom",path:["appSecurity"],message:"Hose source requires appSecurity or password"})}),KK1=z.object({type:z.literal("direct"),token:z.string(),sealUrl:z.string().url(),expiresIn:z.number().int().positive().default(3600),staffId:z.string().default("direct"),corpId:z.string().optional()}),qK1=z.object({type:z.literal("seal"),token:z.string(),sealUrl:z.string().url(),expiresIn:z.number().int().positive().default(3600),staffId:z.string().default("seal"),corpId:z.string().optional(),tenantId:z.string().optional(),tenantSlug:z.string().optional(),tenantName:z.string().optional(),providerUserId:z.string().optional(),provider:z.string().optional(),providerName:z.string().optional()}),HK1=z.discriminatedUnion("type",[QK1,KK1,qK1]),pw0=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Dh=z.record(z.string().regex(pw0,"Invalid HTTP header name"),z.string()).superRefine(($,I)=>{for(let U of Object.keys($))if(U.toLowerCase()==="authorization")I.addIssue({code:"custom",path:[U],message:"seal.headers cannot set Authorization; the Seal session supplies the bearer token"})}).optional(),Oh=z.record(z.string().regex(pw0,"Invalid cookie name"),z.string().refine(($)=>!/[\u0000-\u001f\u007f;]/.test($),{message:"Cookie value cannot contain control characters or semicolons"})).optional(),GK1=z.object({url:z.string().url().optional(),tenantSlug:z.string().optional(),headers:Dh,cookies:Oh,endpoints:z.object({approvalStylePreferences:z.string().default("api/v1/agent/ai-approval/config")}).default({approvalStylePreferences:"api/v1/agent/ai-approval/config"})}).default({endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}}),WK1=z.object({refreshTtl:z.number().int().positive().default(300)}).default({refreshTtl:300}),wK1=z.enum(["production","test"]).default("production"),Fh=z.object({id:z.string(),name:z.string(),seal:GK1,source:HK1,auth:WK1,environment:wK1,testCorpId:z.string().optional(),prodCorpId:z.string().optional()}),VK1=z.object({enabled:z.boolean().default(!1),activeLinter:z.string().default("builtin"),minScore:z.number().min(0).max(100).default(0)}).default({enabled:!1,activeLinter:"builtin",minScore:0}),oL=z.object({stateful:z.boolean().default(!1),defaultCorpId:z.string().min(1).optional(),testEnterprisesDir:z.string().min(1).optional(),lint:VK1});var Nh="SEAL_USE_ENTERPRISES_DIR",ow0="SEAL_HOME_ENTERPRISES_DIR",rw0="SEAL_USE_USER_ENTERPRISES_DIR",tw0="SEAL_HOME_USER_ENTERPRISES_DIR",aw0="SEAL_USE_CONFIG_FILE",sw0="SEAL_HOME_CONFIG_FILE",MJ=l8(eL(),".config","seal-use","enterprises"),aL=l8(eL(),".config","seal-home","enterprises"),rL=l8(eL(),".config","seal-use","config.json"),dw0=l8(eL(),".config","seal-home","config.json");function XK1($=MJ,I=aL){if(!O$(I))return{copied:[],deletedLegacyDir:!1};mw0($,{recursive:!0,mode:448});let U=[],Y=[];try{Y=tL(I).filter((w)=>w.endsWith(".json"))}catch{return{copied:[],deletedLegacyDir:!1}}for(let w of Y){let Z=l8(I,w),V=l8($,w);if(!O$(V))cw0(Z,V),U.push(w);else{let X=qH(Z).mtimeMs,L=qH(V).mtimeMs;if(X>L)cw0(Z,V),U.push(w)}}let J=604800000,Q=Date.now(),K=!1,q=!1;for(let w of tL(I)){let Z=l8(I,w),V=l8($,w),X=qH(Z);if(Q-X.mtimeMsqH(V).mtimeMs)K=!0}}let H=qH(I),G=Q-H.mtimeMsJ.endsWith(".json")).filter((J)=>!J.startsWith("example."))){let J=sL(l8(U,Y),"utf-8"),Q=Fh.parse(JSON.parse(J));I.set(Q.id,Q)}return Array.from(I.values())}function ew0(){let $=(process.env[Nh]??process.env[ow0])?.trim();if($)return O$($)?[$]:[];let I=(process.env[rw0]??process.env[tw0])?.trim(),U;if(I)U=O$(I)?[I]:[];else{try{XK1()}catch{}U=O$(MJ)?[MJ]:O$(aL)?[aL]:[MJ]}let J=O4().testEnterprisesDir?.trim(),Q=J?[J,...U]:U,K=[];for(let q of Q)if(O$(q)&&!K.includes(q))K.push(q);return K}function Mh(){let $=(process.env[Nh]??process.env[ow0])?.trim();if($)return $;let I=(process.env[rw0]??process.env[tw0])?.trim();if(I)return I;let U=O4().testEnterprisesDir?.trim();if(U&&O$(U))return U;return MJ}function YI(){let $=O4().testEnterprisesDir?.trim();return[`${Nh}=`,...$?[`testEnterprisesDir: ${$}`]:[],MJ,aL]}function JI(){let $=(process.env[aw0]??process.env[sw0])?.trim();if($)return $;if(O$(rL))return rL;if(O$(dw0))return dw0;return rL}function O4(){let $=JI();if(!O$($))return oL.parse({});return oL.parse(JSON.parse(sL($,"utf-8")))}function QI($){let I=oL.parse($),Y=(process.env[aw0]??process.env[sw0])?.trim()||rL;return mw0(zK1(Y),{recursive:!0,mode:448}),lw0(Y,`${JSON.stringify(I,null,2)} +`,{mode:384}),I}function LK1($){let I=ew0();for(let U of I){if(!O$(U))continue;for(let Y of tL(U).filter((J)=>J.endsWith(".json")).filter((J)=>!J.startsWith("example."))){let J=l8(U,Y);try{let Q=sL(J,"utf-8"),K=JSON.parse(Q);if(K&&typeof K==="object"&&K.id===$)return J}catch{}}}return}function F7($,I){let U=LK1($);if(!U)throw Error(`Enterprise config not found: ${$}`);let J={...JSON.parse(sL(U,"utf-8")),...I};for(let K of Object.keys(I))if(I[K]===void 0)delete J[K];let Q=Fh.parse(J);return lw0(U,`${JSON.stringify(Q,null,2)} +`,"utf-8"),Q}function AJ($,I,U=[]){let Y=I.corpId?.trim()||void 0,J=I.stateful?I.defaultCorpId?.trim()||void 0:void 0,Q=Y??J;if(Q){let q=$.find((H)=>H.id===Q);if(q)return q;throw Error(`No enterprise config found for ${Q}`)}if(!I.stateful)throw Error("Stateless mode is enabled. Every enterprise command requires --corp . Use `seal-home config mode stateful` to enable a default enterprise.");let K=$[0];if(K)return K;throw Error("No enterprise config found. Add a non-example JSON file under one of: "+(U.length?U.join(", "):"the configured enterprise directories"))}import{readFileSync as hH1}from"node:fs";import{randomBytes as uH1}from"node:crypto";var UV0=300000,$V0=new Map;function DK1($,I){return $.map((U)=>U.trim()).filter(Boolean).map((U)=>I?U:U.toLowerCase())}function OK1($,I){return I?$:$.toLowerCase()}function FK1($,I,U,Y){let J=OK1($,Y),Q=I.filter((K)=>J.includes(K));if(U==="all"&&Q.length!==I.length)return[];return Q}function NK1($){if(typeof $==="string")return $.split(/\r?\n/);return JSON.stringify($,null,2).split(/\r?\n/)}function MK1($,I){if(I.fields&&!I.fields.has($.field))return[];let U=NK1($.value),Y=[];return U.forEach((J,Q)=>{let K=FK1(J,I.keywords,I.matchMode,I.caseSensitive);if(K.length===0)return;let q=Math.max(0,Q-I.contextLines),H=Math.min(U.length,Q+I.contextLines+1),G={area:$.area,entityType:$.entityType,entityId:$.entityId,title:$.title,field:$.field,lineNumber:Q+1,matchedKeywords:K,matchedText:$D(J,I.maxChars),context:{before:I.snippetOnly?[]:U.slice(q,Q).map((W)=>$D(W,I.maxChars)),line:$D(J,I.maxChars),after:I.snippetOnly?[]:U.slice(Q+1,H).map((W)=>$D(W,I.maxChars))},metadata:$.metadata};if(I.snippetOnly)G.context={before:[],line:G.context.line,after:[]};Y.push(G)}),Y}function $D($,I){if(!I||$.length<=I)return $;return`${$.slice(0,Math.max(0,I))}...`}function AK1($){return[{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"description",value:$.description,metadata:{scope:$.scope,strictness:$.strictness,status:$.status}},{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"scope",value:$.scope,metadata:{strictness:$.strictness,status:$.status}}]}function IV0($){return $.rules.flatMap((I,U)=>{let Y=`${$.id}:${I.description.slice(0,32)}`,J={versionId:$.id,versionNumber:$.versionNumber,versionName:$.versionName,publishedByName:$.publishedByName,publishedAt:$.publishedAt,scope:I.scope,strictness:I.strictness,code:"code"in I?I.code:void 0,index:U};return[{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.description",value:I.description,metadata:J},{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.scope",value:I.scope,metadata:J}]})}function PK1($){return[{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"title",value:$.title,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"purpose",value:$.purpose,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"content",value:$.content,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}}]}function TK1($){let I=[];if($.decisionPreferences)for(let[U,Y]of Object.entries($.decisionPreferences))I.push({area:"preferences",entityType:"preference",field:`decisionPreferences.${U}`,value:Y,metadata:{integrationSystem:$.integrationSystem}});return $.integrations.forEach((U,Y)=>{I.push({area:"preferences",entityType:"integration",title:U.outboundName,field:`integrations[${Y}]`,value:U,metadata:{type:U.type,outboundName:U.outboundName,mode:U.mode,corporationId:U.corporationId}})}),I}async function EK1($,I,U){let Y=U.ruleVersionScope??"current",J=[I.id,`ruleVersionScope=${Y}`,`ruleVersionId=${U.ruleVersionId??""}`,`ruleVersionNumber=${U.ruleVersionNumber??""}`,`latestRuleVersion=${U.latestRuleVersion??!1}`,`documentLimit=${U.documentLimit??100}`].join("|"),Q=$V0.get(J);if(!U.refresh&&Q&&Date.now()J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}async function YV0($,I,U){let Y=U.matchMode??"any",J=U.caseSensitive??!1,Q=U.contextLines??3,K=new Set(U.areas??["rules","documents","preferences"]),q=U.maxResults??50,H=U.ruleVersionScope??"current",G=DK1(U.keywords,J),W=U.fields?.length?new Set(U.fields):void 0;if(G.length===0)throw Error("keywords must contain at least one non-empty string");let w=await EK1($,I,{documentLimit:U.documentLimit,refresh:U.refresh,ruleVersionScope:H,ruleVersionId:U.ruleVersionId,ruleVersionNumber:U.ruleVersionNumber,latestRuleVersion:U.latestRuleVersion}),Z=w.entries.filter((V)=>K.has(V.area)).flatMap((V)=>MK1(V,{keywords:G,matchMode:Y,caseSensitive:J,contextLines:Q,snippetOnly:U.snippetOnly,maxChars:U.maxChars,fields:W}));return{query:{keywords:U.keywords,matchMode:Y,areas:Array.from(K),caseSensitive:J,contextLines:Q,refresh:U.refresh??!1,ruleVersionScope:H,ruleVersionId:U.ruleVersionId,ruleVersionNumber:U.ruleVersionNumber,latestRuleVersion:U.latestRuleVersion??!1,snippetOnly:U.snippetOnly??!1,maxChars:U.maxChars,fields:U.fields},cache:{fetchedAt:new Date(w.fetchedAt).toISOString(),expiresAt:new Date(w.expiresAt).toISOString(),ttlMs:UV0},total:Z.length,returned:Math.min(Z.length,q),results:Z.slice(0,q)}}var JV0=z.object({level:z.enum(["error","warning","info"]),code:z.string(),message:z.string(),snippet:z.string().optional(),suggestion:z.string().optional()}),zS1=z.object({score:z.number().min(0).max(100),passed:z.boolean(),issues:z.array(JV0)}),RK1=z.object({ruleId:z.string().optional(),ruleCode:z.string().optional(),ruleName:z.string().optional(),score:z.number().min(0).max(100),passed:z.boolean(),issues:z.array(JV0),description:z.string().optional()}),XS1=z.object({linter:z.string(),linterType:z.enum(["builtin","custom"]),totalRules:z.number(),healthyCount:z.number(),issueCount:z.number(),overallScore:z.number().min(0).max(100),passed:z.boolean(),issues:z.array(RK1)});var jK1=["原则上","尽量","适当","酌情","一般情况下","尽可能","合理控制","视情况","视具体情况"],CK1=["除非","特殊情况","特殊原因","经批准","经审批","经领导同意","除外","例外"],_K1=["备注","说明","附件","证明","邮件","截图","凭证","审批","单据","发票"];function KI($){let I=($.description||"").trim(),U=[];if(I.length<5)U.push({level:"error",code:"TOO_SHORT",message:"规则描述过于简短(少于 5 个字),大模型难以形成明确的判定逻辑",suggestion:"请补充具体的费用类型、核验条件与限制标准"});for(let H of jK1)if(I.includes(H))U.push({level:"error",code:"VAGUE_WORD",snippet:H,message:`包含主观模糊词 "${H}",容易导致大模型判定标准产生波动与幻觉`,suggestion:`建议移除 "${H}",改为具体的金额上限、枚举范围或刚性判定条件`});let Y=CK1.find((H)=>I.includes(H)),J=_K1.some((H)=>I.includes(H));if(Y&&!J)U.push({level:"warning",code:"HANGING_EXCEPTION",snippet:Y,message:`包含例外条款 "${Y}",但未指定 AI 从何处核验该例外成立的依据`,suggestion:'建议补充明确的凭据来源(例如:"需在【单据备注】中说明原因" 或 "需在【附件】中上传审批截图")'});let Q=U.filter((H)=>H.level==="error").length,K=U.filter((H)=>H.level==="warning").length;return{score:Math.max(0,100-Q*25-K*10),passed:Q===0,issues:U}}import{existsSync as Ah,readdirSync as FS1}from"node:fs";import{homedir as SK1}from"node:os";import{isAbsolute as gK1,join as N7,resolve as yK1}from"node:path";import{pathToFileURL as hK1}from"node:url";var Ph=N7(SK1(),".config","seal-use","linters"),Th=N7(process.cwd(),"linters");function uK1($){if(!$||$==="builtin")return;if(gK1($)||$.startsWith("./")||$.startsWith("../")){let U=yK1($);if(Ah(U))return U;for(let Y of[".ts",".js",".mjs"])if(Ah(`${U}${Y}`))return`${U}${Y}`}let I=[N7(Ph,`${$}.ts`),N7(Ph,`${$}.js`),N7(Ph,`${$}.mjs`),N7(Th,`${$}.ts`),N7(Th,`${$}.js`),N7(Th,`${$}.mjs`)];for(let U of I)if(Ah(U))return U;return}async function Eh($){if(!$||$==="builtin")return{name:"builtin",type:"builtin",linter:KI};let I=uK1($);if(!I)return console.error(`⚠️ [linter] 未找到自定义校验器 "${$}",已自动安全降级至内置校验器。`),{name:"builtin",type:"builtin",linter:KI};try{let Y=await import(hK1(I).href),J=Y.default??Y.lintRule??Y.linter??Y.lint;if(typeof J!=="function")return console.error(`⚠️ [linter] 自定义校验器 "${I}" 未导出标准函数 (default / lintRule),已安全降级至内置校验器。`),{name:"builtin",type:"builtin",linter:KI};return{name:$,type:"custom",filePath:I,linter:async(K,q)=>{try{let H=await J(K,q);if(H&&typeof H==="object"&&typeof H.score==="number"&&Array.isArray(H.issues))return H;return console.error("⚠️ [linter] 自定义校验器返回值格式不符合 RuleLintResult 契约,已回退至内置结果。"),KI(K)}catch(H){return console.error("⚠️ [linter] 自定义校验器执行异常:",H),KI(K)}}}}catch(U){return console.error(`⚠️ [linter] 加载自定义校验器脚本 "${I}" 失败(语法错误或依赖缺失: ${U?.message??U}),已自动安全降级至内置校验器。`),{name:"builtin",type:"builtin",linter:KI}}}async function Bh($,I,U){let Y=await I.linter($,U);return{ruleId:$.id,ruleCode:$.code,ruleName:$.name,score:Y.score,passed:Y.passed,issues:Y.issues,description:$.description}}async function QV0($,I,U,Y){let J=Y?.minScore??0,Q=Y?.level??"all",K=[],q=0;for(let V of $){let X=await Bh(V,I,U);q+=X.score;let L=X.issues;if(Q==="error")L=X.issues.filter((F)=>F.level==="error");else if(Q==="warning")L=X.issues.filter((F)=>F.level==="warning"||F.level==="error");let D=L.every((F)=>F.level!=="error");if(Y?.summary){if(L.length>0)K.push({...X,passed:D,issues:L})}else K.push({...X,passed:D,issues:L})}let H=$.length,G=H===0?100:Math.round(q/H),W=K.filter((V)=>V.issues.length>0).length,w=H-W,Z=G>=J&&K.every((V)=>V.passed);return{linter:I.name,linterType:I.type,totalRules:H,healthyCount:w,issueCount:W,overallScore:G,passed:Z,issues:K}}import{existsSync as kK1,readFileSync as xK1,writeFileSync as fK1,mkdirSync as iK1}from"node:fs";import{dirname as bK1,resolve as qV0}from"node:path";function nK1($){let I;try{I=JSON.parse($)}catch(U){throw Error(`本地规则文件 JSON 解析失败: ${U instanceof Error?U.message:String(U)}`)}if(Array.isArray(I))return{rules:KV0(I),meta:{rulesCount:I.length}};if(I&&typeof I==="object"){let U=I,Y=Array.isArray(U.rules)?U.rules:void 0;if(!Y)throw Error("本地规则文件格式错误: 顶层必须为规则数组或包含 'rules' 数组的对象");return{rules:KV0(Y),meta:{corpId:typeof U.corpId==="string"?U.corpId:void 0,source:typeof U.source==="string"?U.source:void 0,versionNumber:typeof U.versionNumber==="number"?U.versionNumber:void 0,exportedAt:typeof U.exportedAt==="string"?U.exportedAt:void 0,rulesCount:Y.length}}}throw Error("本地规则文件格式错误: 顶层必须为规则数组或包含 'rules' 数组的对象")}function KV0($){return $.map((I,U)=>{if(!I||typeof I!=="object")throw Error(`第 ${U+1} 条规则格式错误: 必须为对象`);let Y=I,J=typeof Y.description==="string"?Y.description.trim():"";if(!J)throw Error(`第 ${U+1} 条规则缺少有效的 'description' (规则描述) 字段`);let Q=typeof Y.code==="number"||typeof Y.code==="string"?Y.code:U+1;return{...Y,code:Q,description:J,scope:typeof Y.scope==="string"?Y.scope:"ALL",strictness:typeof Y.strictness==="string"?Y.strictness:"MUST_FOLLOW"}})}function vh($){let I=qV0($);if(!kK1(I))throw Error(`未找到本地规则文件: ${$} (${I})`);let U=xK1(I,"utf8");return{...nK1(U),resolvedPath:I}}function HV0($,I){let U=qV0($);return iK1(bK1(U),{recursive:!0}),fK1(U,`${JSON.stringify(I,null,2)} +`,"utf8"),U}function GV0($){return $.map((I,U)=>{let Y;if(typeof I.code==="number")Y=`#${String(I.code).padStart(4,"0")}`;else if(typeof I.code==="string")Y=I.code.startsWith("#")?I.code:`#${I.code}`;else Y=`#${String(U+1).padStart(4,"0")}`;return{id:I.id,code:Y,name:I.name,description:I.description,scope:I.scope,strictness:I.strictness}})}class b$ extends Error{errors;warnings;constructor($,I=[]){super([`材料包校验失败:${$.length} 个错误`,...$.map((U)=>`- ${U}`)].join(` +`));this.errors=$;this.warnings=I;this.name="MaterialPackValidationError"}}import{createHmac as pK1,randomBytes as cK1}from"node:crypto";function dK1($,I,U,Y){return pK1("sha256",Y).update(`${$}.${I}.${JSON.stringify(U)}`).digest("hex")}function HH($,I){let U=Math.floor(Date.now()/1000),Y=cK1(16).toString("hex");return{Authorization:`Bearer ${I}`,"x-webhook-signature":dK1(U,Y,$,I),"x-webhook-timestamp":String(U),"x-webhook-nonce":Y}}var Du=FI(jV0(),1),OZ0=FI(DZ0(),1);var FD={maxEntries:1000,maxTotalSize:524288000,maxCompressionRatio:150};async function FZ0($){return new Promise((I,U)=>{Du.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(Y,J)=>{if(Y||!J)return U(Y??Error("无法打开 ZIP"));let Q=[];J.readEntry(),J.on("entry",(K)=>{let q=NZ0(K);if(!q.endsWith("/")&&!NH1(q))Q.push({fileName:q,uncompressedSize:K.uncompressedSize,compressedSize:K.compressedSize,raw:K});J.readEntry()}),J.on("end",()=>I(Q)),J.on("error",U)})})}function NZ0($){let I=Buffer.isBuffer($.fileName)?$.fileName:Buffer.from(String($.fileName),"binary"),U=I.toString("utf8");if(!U.includes("�"))return U;let Y=OZ0.default.decode(I,"gbk");if(!Y.includes("�"))return Y;return U}function NH1($){let I=$.split("/").pop()??"";return $.split("/").includes("__MACOSX")||I===".DS_Store"||I.startsWith("._")||I.startsWith(".~")||I.startsWith("~$")}function MZ0($,I){let U=[],Y=TU(I);if($.length>FD.maxEntries)U.push(`文件数超过 ${FD.maxEntries}`);if($.reduce((K,q)=>K+q.uncompressedSize,0)>FD.maxTotalSize)U.push("解压后总大小超过 500MB");for(let K of $){if(K.fileName.startsWith("/")||K.fileName.split("/").includes(".."))U.push(`存在不安全路径: ${K.fileName}`);if(K.compressedSize>0&&K.uncompressedSize/K.compressedSize>FD.maxCompressionRatio)U.push(`压缩比超过 150: ${K.fileName}`);if(K.fileName==="信息表.xlsx")continue;MH1(K,Y,U)}if(!$.find((K)=>K.fileName==="信息表.xlsx"))U.push("ZIP 根目录缺少精确名为「信息表.xlsx」的文件");if($.some((K)=>K.fileName.toLowerCase().endsWith(".zip")))U.push("不允许嵌套 ZIP");if(U.length)throw new b$(U)}function MH1($,I,U){let Y=AH1($.fileName);if(!Y||!I.allowedExtensions.includes(Y))U.push(`附件后缀不在白名单中: ${$.fileName}(允许: ${I.allowedExtensions.join(", ")})`);if($.uncompressedSizeI.maxFileSizeBytes)U.push(`附件文件过大: ${$.fileName}(${$.uncompressedSize} B,大于最大值 ${I.maxFileSizeBytes} B)`)}function AH1($){let I=$.split("/").pop()??$,U=I.lastIndexOf(".");return U>0?I.slice(U).toLowerCase():""}function Ou($,I){return new Promise((U,Y)=>{Du.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(J,Q)=>{if(J||!Q)return Y(J??Error("无法打开 ZIP"));Q.readEntry(),Q.on("entry",(K)=>{if(NZ0(K)!==I.fileName)return Q.readEntry();Q.openReadStream(K,(q,H)=>{if(q||!H)return Y(q??Error(`无法读取 ${I.fileName}`));let G=[];H.on("data",(W)=>G.push(W)),H.on("end",()=>U(Buffer.concat(G))),H.on("error",Y)})}),Q.on("error",Y)})})}var PZ0=FI(zh(),1);function PH1($){return $.startsWith("[附件]")}function TZ0($){return $.startsWith("[附件]")?$.slice(4):$}function TH1($){return TZ0($).toLowerCase().replace(/\s+/g,"_")||"attachment"}function EH1($){if($==null||$==="")return[];return String($).split(/[\n,;,;]/).map((I)=>I.trim()).filter(Boolean)}function Fu($,I){let U=[];for(let[Y,J]of I.entries()){if(!PH1(Y))continue;let Q=$.getCell(J).value,K=EH1(Q);if(!K.length)continue;U.push({key:TH1(Y),label:TZ0(Y),paths:K})}return U}function Nu($){let I=new Map;return $.map((U)=>{let Y=(I.get(U.key)??0)+1;return I.set(U.key,Y),Y===1?U:{...U,key:`${U.key}-${Y}`}})}function ND($,I,U,Y){return{key:$,label:I,type:U,value:Y}}function EZ0($,I,U){return ND($,I,"TEXT",U==null?"":String(U))}function BZ0($,I,U){return ND($,I,"AMOUNT",typeof U==="number"?{amount:U,currency:"CNY"}:null)}function vZ0($){if($ instanceof Date)return $.toISOString();if(typeof $==="string"&&$.trim())return $.trim();return null}function BH1($){if($ instanceof Date)return Math.floor($.getTime()/1000);if(typeof $==="string"&&$.trim()){let I=Date.parse($.trim().replace(" ","T"));if(Number.isFinite(I))return Math.floor(I/1000)}return null}function LH($){let I=new Map;return $.getRow(1).eachCell((U,Y)=>I.set(String(U.value??"").trim(),Y)),I}function HI($,I,U){let Y=I.get(U);return Y?$.getCell(Y).value:void 0}function vH1($,I){return[["会议编号","meeting_id","TEXT"],["会议名称","meeting_name","TEXT"],["状态","status","TEXT"],["总金额","total_amount","AMOUNT"],["税前劳务总额","pretax_labor_total","AMOUNT"],["报销事由","reimbursement_reason","TEXT"],["po码","po_code","TEXT"],["快递单号","tracking_number","TEXT"],["申请日期","application_date","DATE"],["更新日期","updated_date","DATE"]].flatMap(([Y,J,Q])=>{let K=HI($,I,Y);if(K==null||K==="")return[];return[Q==="TEXT"?EZ0(J,Y,K):Q==="AMOUNT"?BZ0(J,Y,K):ND(J,Y,Q,vZ0(K))]})}function AZ0($,I,U){return U.flatMap(([Y,J,Q])=>{let K=HI($,I,Y);if(K==null||K==="")return[];return[Q==="TEXT"?EZ0(J,Y,K):Q==="AMOUNT"?BZ0(J,Y,K):ND(J,Y,Q,vZ0(K))]})}var RH1=[["姓名","name","TEXT"],["身份证号码","id_number","TEXT"],["手机号","phone","TEXT"],["劳务费用","labor_fee","AMOUNT"],["税前费用","pretax_fee","AMOUNT"],["开户行","bank","TEXT"],["支行名称","branch_name","TEXT"],["联行号","bank_code","TEXT"],["银行卡号","bank_card_number","TEXT"]],jH1=[["报销金额","reimbursement_amount","AMOUNT"],["费用类型","expense_type","TEXT"],["发生时间","occurrence_time","DATE"],["收款人","payee","TEXT"],["开户行","bank","TEXT"],["支行名称","branch_name","TEXT"],["支行行号","branch_code","TEXT"],["银行卡号","bank_card_number","TEXT"],["费用说明","expense_description","TEXT"]];async function RZ0($){let I=new PZ0.default.Workbook;if(await I.xlsx.load(Buffer.from($)),!I.worksheets.length)throw new b$(["信息表没有任何 Sheet"]);let U=I.worksheets,Y=U[0],J=LH(Y),Q=J.get("会议编号")??1,K=(Y.getRows(2,Y.rowCount)??[]).filter((V)=>V.getCell(Q).value!=null&&V.getCell(Q).value!==""),q=new Set,H=U.find((V,X)=>X>0&&LH(V).has("姓名")),G=U.find((V,X)=>X>0&&LH(V).has("报销金额")),W=H?LH(H):void 0,w=G?LH(G):void 0;return K.map((V)=>{let X=String(V.getCell(Q).value).trim();if(!X)throw new b$(["主表会议编号不能为空"]);if(q.has(X))throw new b$([`主表会议编号重复: ${X}`]);q.add(X);let L=HI(V,J,"申请日期"),D=(H?.getRows(2,H.rowCount)??[]).filter((y)=>String(HI(y,W,"会议编号")??"").trim()===X),F=(G?.getRows(2,G.rowCount)??[]).filter((y)=>String(HI(y,w,"会议编号")??"").trim()===X),P=D.map((y)=>String(HI(y,W,"姓名")??"").trim()).filter(Boolean),T=Nu(Fu(V,J)),A={};F.forEach((y,f)=>{let j=Nu(Fu(y,w));if(j.length)A[f]=j});let R={};D.forEach((y)=>{let f=String(HI(y,W,"姓名")??"").trim();if(!f)return;let j=Nu(Fu(y,W));if(j.length)R[f]=j});let x=vH1(V,J);if(D.length)x.push({key:"daoshi_list",label:"导师列表",type:"LIST",value:D.map((y)=>AZ0(y,W,RH1))});if(F.length)x.push({key:"mingxi_list",label:"明细列表",type:"LIST",value:F.map((y)=>AZ0(y,w,jH1))});return{laborNames:P,documentAttachments:T,expenseAttachments:A,personAttachments:R,document:{type:"document",documentId:X,documentSN:X,startTime:BH1(L),fields:x}}})}function jZ0($,I){let U=[],Y=new Map,J=I.map((K)=>{let{documentAttachments:q,expenseAttachments:H,personAttachments:G}=K,W=K.document.documentId,w=(Z,V)=>{let X=Z.split("/")[0],L=X.indexOf("@");if((L>=0?X.slice(0,L):X)!==W)U.push(`单据「${W}」声明了跨单据或非本单据目录的附件路径: ${Z}。附件必须位于该单据自己的根目录「${W}/」或「${W}@备注/」下。`);let F=Y.get(Z);if(F)F.push({documentId:W,location:V});else Y.set(Z,[{documentId:W,location:V}])};for(let Z of q)Z.paths.forEach((V)=>w(V,`主表 [附件]${Z.label}`));for(let[Z,V]of Object.entries(H)){let X=Number(Z)+1;for(let L of V)L.paths.forEach((D)=>w(D,`费用明细行 ${X} [附件]${L.label}`))}for(let[Z,V]of Object.entries(G))for(let X of V)X.paths.forEach((L)=>w(L,`劳务人员「${Z}」[附件]${X.label}`));return{documentId:W,categoryFields:q,expenseAttachments:H,personAttachments:G}});for(let[K,q]of Y.entries())if(q.length>1){let H=q.map((G)=>`单据「${G.documentId}」的 ${G.location}`).join("、");U.push(`附件路径「${K}」被重复声明了 ${q.length} 次(出现在 ${H})。禁止复用同一路径,若需在不同单据或不同字段使用,请分别放置到独立的附件文件路径。`)}if(!$.length){if(U.length)throw new b$(U);return J}let Q=new Set($.map((K)=>K.fileName));for(let K of Y.keys())if(!Q.has(K))U.push(`Excel 声明的附件路径在 ZIP 中不存在: ${K}`);for(let K of $){if(K.fileName==="信息表.xlsx")continue;if(!Y.has(K.fileName))U.push(`ZIP 中的文件未在 Excel 任何 [附件] 列中声明: ${K.fileName}`)}if(U.length)throw new b$(U);return J}function Mu($,I,U){let Y=structuredClone($),J=(q)=>{if(U.has(q))return U.get(q);return[{path:q,fileName:q.split("/").pop()??q}]};for(let q of I.categoryFields){let H=q.paths.flatMap(J);Y.fields.push({key:q.key,label:q.label,type:"ATTACHMENT",value:H})}let Q=Y.fields.find((q)=>q.key==="daoshi_list"&&q.type==="LIST");if(Q&&Array.isArray(Q.value))for(let q of Q.value){let H=q.find((G)=>G.key==="name")?.value;for(let G of I.personAttachments[String(H)]??[])q.push({key:G.key,label:G.label,type:"ATTACHMENT",value:G.paths.flatMap(J)})}let K=Y.fields.find((q)=>q.key==="mingxi_list"&&q.type==="LIST");if(K&&Array.isArray(K.value))for(let q=0;q{let K=Q.fileName.split("/")[0],q=K.indexOf("@");return q>=0?K.slice(0,q):K}).filter((Q)=>Q!=="信息表.xlsx")),Y=[];for(let Q of I)if(!U.has(Q))Y.push(`Excel 会议编号「${Q}」在 ZIP 中找不到对应的根目录「${Q}/」或「${Q}@.../」。`);let J=new Set(I);for(let Q of U)if(!J.has(Q))Y.push(`ZIP 根目录对应的编号「${Q}」在信息表中找不到对应的会议编号。`);if(Y.length)throw new b$(Y)}async function CZ0($,I,U){let Y=[],J=$;if(SH1($,I)){Y=await FZ0($),MZ0(Y,U);let H=Y.find((G)=>G.fileName==="信息表.xlsx");if(!H)throw Error("ZIP 根目录缺少信息表.xlsx");J=await Ou($,H)}let Q=await RZ0(J);gH1(Y,Q.map((H)=>H.document.documentId));let K=jZ0(Y,Q),q=Q.map((H)=>H.document);return{entries:Y,parsed:Q,plans:K,documents:q,fileBuffer:$}}async function GI($,I,U){let Y=await CZ0($,I,U),J=Y.parsed.map((Q,K)=>Mu(Q.document,Y.plans[K],new Map));return{warnings:[],documents:J,attachmentPlan:Y.plans}}async function MD($,I,U){let Y=await CZ0($,I,U.materialPackFilePolicy),{baseUrl:J,webhookId:Q}=_H1(U.webhookUrl),K=[];for(let q=0;qx.fileName===L);if(!D)continue;process.stderr.write(`⬆ 上传附件: ${L} +`);let F=new FormData,P=await Ou(Y.fileBuffer,D),T=L.split("/").pop()??L;F.append("files",new File([new Uint8Array(P)],T));let A=await fetch(`${J}/api/v1/integrations/webhook/${encodeURIComponent(Q)}/attachments`,{method:"POST",headers:HH({},U.secret),body:F});if(!A.ok)throw Error(`附件上传失败 ${A.status}: ${await A.text()}`);let R=await A.json();W.set(L,R.attachments?.map((x)=>x.data)??(R.data===void 0?[]:[R.data])),process.stderr.write(`✓ 附件上传成功: ${L} `)}process.stderr.write(`\uD83D\uDCE4 推送单据: ${H.document.documentId} -`);let Z=Fu(H.document,G,W),V=await fetch(`${J}/api/v1/integrations/webhook/${encodeURIComponent(Q)}/document`,{method:"POST",headers:{"Content-Type":"application/json",...HH({webhookId:Q,...Z},U.secret)},body:JSON.stringify(Z)});if(!V.ok)throw Error(`Webhook 单据推送失败 ${V.status}: ${await V.text()}`);K.push({documentId:Z.documentId,document:Z,pushResult:await V.json()}),process.stderr.write(`✓ 单据推送成功: ${Z.documentId} -`)}return{warnings:[],results:K}}function WI($){return{fileBuffer:CH1($),fileName:$.split(/[\\\/]/).pop()??"material-pack.zip"}}import{existsSync as yH1}from"node:fs";async function MD($,I,U={}){let J=O4().stateful?"stateful":"stateless",Q="ok",K,q,H;try{let A=await v$($);H={id:A.user.id,name:A.user.name,isAdmin:A.user.isAdmin},q={id:A.tenant.id,name:A.tenant.name,tenantSlug:A.tenant.tenantSlug,corporationName:A.tenant.hoseCorpConfig?.corporationName}}catch(A){Q="error",K=A instanceof Error?A.message:String(A)}let G=[];if(Q==="ok")try{G=await w5($,I.seal.endpoints.approvalStylePreferences)}catch(A){Q="error",K=`读取 Webhook 配置失败: ${A instanceof Error?A.message:String(A)}`}let W=G.length===1,w=G.map((A)=>({id:A.id,name:A.name,mode:A.mode,incomingDocumentWebhookUrl:A.incomingDocumentWebhook.url,outgoingResultWebhookUrl:A.outgoingResultWebhook,autoApprovalRate:A.autoApprovalRate,...W?{isDefault:!0}:{}})),Z=W?{id:G[0].id,name:G[0].name,mode:G[0].mode}:null,V=U.webhook?M9(G,U.webhook):W?G[0]:void 0,X;if(U.filePath)if(!yH1(U.filePath))X={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[`文件不存在: ${U.filePath}`]};else try{let A=WI(U.filePath),R=await GI(A.fileBuffer,A.fileName,V?.materialPackFilePolicy);X={valid:!0,filePath:U.filePath,fileName:A.fileName,documentCount:R.documents.length,warnings:R.warnings}}catch(A){X={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[A instanceof Error?A.message:String(A)]}}let L=X?X.valid:!0,D=Q==="ok"&&w.length>0&&L,F=J==="stateful"?"":` --corp ${I.id}`,P="",E="";if(Q!=="ok")E=`凭证鉴权异常: ${K}`,P=`seal-use auth diagnose${F}`;else if(w.length===0)E="当前企业尚未配置任何 Webhook 集成通道",P=`seal-use webhook add --name "默认入站通道" --result-url "https://your-domain.com/callback"${F}`;else if(X&&!X.valid)E=`材料包预检失败: ${X.errors?.join("; ")}`,P=`seal-use webhook material-pack preview ${X.filePath}${F}`;else{E=W?"所有通道正常,已自动锁定唯一 Webhook 通道,等待载入":`所有通道正常,检测到 ${w.length} 个 Webhook 通道,等待载入`;let A=X?.filePath??"<材料包.zip>",R=W?"":` --webhook ${Z?Z.id:""}`;P=`seal-use webhook material-pack push ${A}${R}${F}`}return{ready:D,corp:{id:I.id,name:I.name,sourceType:I.source.type,tenant:q,user:H},stateMode:J,authStatus:Q,authError:K,activeWebhooks:w,defaultWebhook:Z,materialPack:X,statusMessage:E,nextAction:P}}var OH=[{name:"seal_whoami",description:"查询当前 Seal 用户身份及租户信息",parameters:z.object({}),handler:async($)=>v$($)},{name:"seal_session_get",description:"查询当前 Seal Bearer session、用户和过期时间",parameters:z.object({}),handler:async($)=>Pm($)},{name:"seal_delegation_list",description:"查询当前 Seal 租户下的授权链接 (Delegation) 列表",parameters:z.object({}),handler:async($)=>mm($)},{name:"seal_delegation_create",description:"创建新的 Seal 授权链接 (Delegation)",parameters:z.object({note:z.string().optional().describe("授权链接的备注或说明信息")}),handler:async($,I)=>PU($,I)},{name:"seal_delegation_revoke",description:"撤销/废除指定的 Seal 授权链接 (Delegation)",parameters:z.object({tokenId:z.string().describe("授权链接 ID (delegation record ID)")}),handler:async($,I)=>lm($,I.tokenId)},{name:"seal_user_create",description:"创建本地 Seal 用户,生成并返回初始随机密码",parameters:z.object({name:z.string().describe("用户姓名"),phone:z.string().describe("手机号码 (例如 13300001111 或 +8613300001111)"),permissions:z.array(z.string()).optional().describe("权限列表,默认为 []"),departmentIds:z.array(z.string()).optional().describe("关联部门 ID 数组")}),handler:async($,I)=>om($,I)},{name:"seal_user_reset_password",description:"重置指定 Seal 用户的默认/随机密码,并返回生成的新密码",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>$B($,I.userId)},{name:"seal_user_get",description:"获取指定 Seal 用户的详细信息",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>cw($,I.userId)},{name:"seal_user_search",description:"按姓名、手机号或邮箱搜索 Seal 成员用户列表",parameters:z.object({keyword:z.string().optional().describe("搜索关键词(姓名、手机号、邮箱等),不传或传空字符串可列出租户成员")}),handler:async($,I)=>dw($,I.keyword??"")},{name:"seal_user_delete",description:"删除指定 Seal 本地用户",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>Ql($,I.userId)},{name:"seal_user_activate",description:"启用/激活已离职的 Seal 用户账号",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>IB($,I.userId)},{name:"seal_user_delegation_create",description:"为指定 Seal 用户(按用户ID、手机号或姓名)重置密码登录并生成其专属授权链接 (Delegation)",parameters:z.object({userIdOrPhone:z.string().describe("目标用户 ID、手机号或姓名"),note:z.string().optional().describe("授权链接备注信息")}),handler:async($,I,U)=>Kl($,I,(Y)=>fd(U.corp,Y),U.corp)},{name:"seal_contacts_departments_root_list",description:"列出当前 Seal 租户通讯录的顶级部门",parameters:z.object({}),handler:async($)=>rm($)},{name:"seal_contacts_department_get",description:"获取指定通讯录部门的详细信息",parameters:z.object({departmentId:z.string().describe("部门 ID")}),handler:async($,I)=>tm($,I.departmentId)},{name:"seal_contacts_department_children_list",description:"列出指定通讯录部门的直接子部门",parameters:z.object({departmentId:z.string().describe("部门 ID")}),handler:async($,I)=>am($,I.departmentId)},{name:"seal_contacts_department_users_list",description:"列出指定通讯录部门下的用户",parameters:z.object({departmentId:z.string().describe("部门 ID")}),handler:async($,I)=>sm($,I.departmentId)},{name:"seal_contacts_last_sync_time_get",description:"查询通讯录最后同步时间",parameters:z.object({}),handler:async($)=>em($)},{name:"seal_insight_stats_get",description:"查询智能洞察风险标签统计及分析状态",parameters:z.object({startDate:z.string().optional().describe("统计开始时间(ISO 8601)"),endDate:z.string().optional().describe("统计结束时间(ISO 8601)"),limit:z.number().int().positive().max(100).optional().describe("最多返回的风险标签数量")}),handler:async($,I)=>$l($,I)},{name:"seal_expenses_list",description:"分页查询费用明细",parameters:z.object({offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),startDate:z.string().optional().describe("开始时间"),endDate:z.string().optional().describe("结束时间"),search:z.string().optional().describe("搜索费用类型、描述或金额")}),handler:async($,I)=>Ul($,I)},{name:"seal_invoices_list",description:"分页查询进项发票",parameters:z.object({offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),startDate:z.string().optional().describe("开始时间"),endDate:z.string().optional().describe("结束时间"),search:z.string().optional().describe("搜索发票号码或销售方")}),handler:async($,I)=>Yl($,I)},{name:"seal_simulation_feishu_approval_definitions_list",description:"列出飞书模拟测试可用的审批定义,便于选择 approvalCode",parameters:z.object({}),handler:async($)=>{let I=await Jl($);return{count:I.length,approvalDefinitions:I}}},{name:"seal_llm_config_get",description:"查询当前 Seal 租户的大模型 (LLM) 配置",parameters:z.object({}),handler:async($)=>ql($)},{name:"seal_llm_providers_list",description:"查询支持的大模型 (LLM) 供应商与配置属性字段",parameters:z.object({}),handler:async($)=>Hl($)},{name:"seal_permissions_available_list",description:"查询系统可选权限清单(如超级管理员、智能审核管理、数据管理等)",parameters:z.object({}),handler:async($)=>Gl($)},{name:"seal_permissions_configs_list",description:"查询当前租户已绑定的权限配置",parameters:z.object({}),handler:async($)=>Wl($)},{name:"seal_billing_status_get",description:"查询当前 Seal 租户的订阅状态与各功能额度(AI审批、审核规则、知识文档等)",parameters:z.object({}),handler:async($)=>wl($)},{name:"seal_billing_plans_list",description:"查询系统支持的订阅套餐列表",parameters:z.object({}),handler:async($)=>Vl($)},{name:"seal_billing_features_list",description:"查询系统支持的功能特性定义列表",parameters:z.object({}),handler:async($)=>Zl($)},{name:"seal_approval_rules_list",description:"列出 Seal 当前草稿审批规则;返回的 code 属于草稿编号体系,发布版本可能重新编码;支持 countOnly、fields、limit 以避免返回规则正文",parameters:z.object({countOnly:z.boolean().optional().describe("只返回规则数量,不返回规则列表"),fields:z.array(z.enum(["id","code","tenantId","status","strictness","scope","createdAt","updatedAt","description"])).optional().describe("只返回指定字段;不传则返回完整规则"),limit:z.number().int().nonnegative().optional().describe("最多返回多少条规则;0 可配合 fields 或 countOnly 只取数量"),offset:z.number().int().nonnegative().optional().describe("跳过前多少条规则")}),handler:async($,I)=>{let U=await _6($);return kH1(U,I)}},{name:"seal_approval_rules_clear",description:"清空 Seal 当前草稿审批规则;用于测试环境导入规则前重置草稿规则集",parameters:z.object({dryRun:z.boolean().optional().describe("只预览将删除的规则数量,不执行删除"),recode:z.boolean().optional().describe("删除后尝试重新编排规则编号;失败会作为 warning 返回")}),handler:async($,I,U)=>{let Y=await _6($);if(I.dryRun)return{...a8(U,"api/v1/rules",Y.rules,[],Y.rules.length),corpId:U.corp.id,corpName:U.corp.name,dryRun:!0,beforeCount:Y.rules.length,deleted:0,afterCount:Y.rules.length,hasPendingDeletes:Y.hasPendingDeletes};let J=[],Q=0;for(let G of Y.rules)try{await TU($,G.id),Q+=1}catch(W){J.push({ruleId:G.id,error:W instanceof Error?W.message:String(W)})}let K=[],q;if(Q>0&&I.recode!==!1){if(q=await lw($),q&&typeof q==="object"&&"ok"in q&&q.ok!==!0)K.push("batch-recode did not complete; current rules were still deleted")}let H=await _6($);return{corpId:U.corp.id,corpName:U.corp.name,dryRun:!1,beforeCount:Y.rules.length,deleted:Q,failed:J,afterCount:H.rules.length,hasPendingDeletes:H.hasPendingDeletes,warnings:K,recode:q}}},{name:"seal_approval_rule_create",description:"新建 Seal 草稿审批规则",parameters:z.object({description:z.string().describe("规则描述"),scope:z.string().describe("适用场景"),strictness:z.enum(["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]).describe("严格程度")}),handler:async($,I)=>A2($,I)},{name:"seal_approval_rule_update",description:"更新 Seal 草稿审批规则",parameters:z.object({ruleId:z.string().describe("规则 ID"),description:z.string().optional(),scope:z.string().optional(),strictness:z.enum(["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]).optional()}),handler:async($,I)=>{let{ruleId:U,...Y}=I,J=await oE($,U,Y);if(I.description)try{let Q=O4();if(Q.lint?.enabled){let K=await Ph(Q.lint.activeLinter),q=await Th({id:U,description:I.description},K);if(q.issues.length>0){console.error(`⚠️ [Linter 质检提醒] 规则质量评分: ${q.score}/100 (发现 ${q.issues.length} 处潜在风险):`);for(let H of q.issues)if(console.error(` • [${H.level.toUpperCase()}] ${H.message}${H.snippet?` ("${H.snippet}")`:""}`),H.suggestion)console.error(` \uD83D\uDC49 建议: ${H.suggestion}`)}}}catch{}return J}},{name:"seal_approval_rule_delete",description:"删除 Seal 草稿审批规则",parameters:z.object({ruleId:z.string().describe("规则 ID")}),handler:async($,I)=>{return await TU($,I.ruleId),{success:!0}}},{name:"seal_approval_rule_versions_list",description:"列出 Seal 已发布审批规则版本摘要,不展开每个版本的规则快照",parameters:z.object({}),handler:async($)=>{let I=await R$($);return{count:I.length,latest:I[0]?Nu(I[0]):void 0,versions:I.map(Nu)}}},{name:"seal_approval_rule_version_get",description:"获取指定 Seal 已发布审批规则版本详情,包含该版本的规则快照",parameters:z.object({versionId:z.string().optional().describe("规则版本 ID"),versionNumber:z.number().int().positive().optional().describe("规则版本号"),latest:z.boolean().optional().describe("为 true 时获取最新版本")}),handler:async($,I)=>{if(I.versionId)return P2($,I.versionId);let U=await R$($),Y=I.versionNumber?U.find((J)=>J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}},{name:"seal_approval_rule_version_publish",description:"发布 Seal 草稿审批规则为新版本",parameters:z.object({versionName:z.string().describe("版本名称")}),handler:async($,I)=>T2($,I.versionName)},{name:"seal_approval_rule_get",description:"按版本号/code/runtime-id/record-id 定位单条规则;code 只在选定的版本编号体系内有效,避免拉取整版规则快照",parameters:z.object({versionId:z.string().optional().describe("规则版本 ID"),versionNumber:z.number().int().positive().optional().describe("规则版本号"),latest:z.boolean().optional().describe("为 true 时取最新版本"),code:z.string().optional().describe("规则展示编号,如 #0038;没有后端 code 时按版本内序号匹配"),runtimeId:z.string().optional().describe("运行时规则 ID,如 rule-205;按版本内序号匹配"),recordId:z.string().optional().describe("从运行记录推断 ruleSetVersionNumber")}),handler:async($,I)=>{let U=await sH1($,I),Y=eH1(U,{code:I.code,runtimeId:I.runtimeId});if(!Y)throw Error(`Rule not found in version ${U.versionNumber}`);return Y}},{name:"seal_approval_rules_lint",description:"对 Seal 本地规则文件、草稿审批规则或指定发布版本规则进行质量与可执行性检查(模糊词、悬空例外检测)",parameters:z.object({file:z.string().optional().describe("指定本地规则文件路径进行离线质检(支持 .json),0网络请求、不污染远端草稿"),linter:z.string().optional().describe("指定使用的校验器名称或脚本路径(如 builtin、strict、./my-linter.ts)"),version:z.string().optional().describe("指定要质检的历史发布版本号或 ID(如 16 或 latest),不传默认质检当前草稿"),code:z.string().optional().describe("按规则展示编号过滤(如 #0038)"),ruleId:z.string().optional().describe("按规则 ID 过滤"),minScore:z.number().optional().describe("最低合格质量分阈值(0~100),低于该分值抛出错误以返回非零退出码"),level:z.enum(["all","error","warning"]).default("all").describe("问题报告等级过滤"),summary:z.boolean().optional().describe("为 true 时仅返回存在瑕疵/扣分的规则")}),handler:async($,I,U)=>{let Y=[],J;if(I.file){let G=Eh(I.file);Y=GV0(G.rules),J=G.meta.versionNumber}else if(I.version){let G=await R$($),W=Number(I.version),w=isNaN(W)?I.version==="latest"?G[0]:G.find((Z)=>Z.id===I.version):G.find((Z)=>Z.versionNumber===W);if(!w)throw Error(`未找到指定的规则版本: ${I.version}`);J=w.versionNumber,Y=(w.rules??[]).map((Z,V)=>({id:Z.id??Z.runtimeId,code:Z.code??`#${String(V+1).padStart(4,"0")}`,name:Z.name??Z.title,description:Z.description??"",scope:Z.scope,strictness:Z.strictness}))}else Y=((await _6($)).rules??[]).map((W,w)=>({id:W.id,code:W.code??`#${String(w+1).padStart(4,"0")}`,name:W.name??W.title,description:W.description??"",scope:W.scope,strictness:W.strictness}));if(I.code)Y=Y.filter((G)=>G.code===I.code||G.code?.replace(/[#\s]/g,"")===I.code?.replace(/[#\s]/g,""));if(I.ruleId)Y=Y.filter((G)=>G.id===I.ruleId||G.code===I.ruleId);let Q=O4(),K=I.linter??Q.lint?.activeLinter??"builtin",q=await Ph(K),H=await QV0(Y,q,{corpId:U?.corp?.id,versionNumber:J,allRules:Y},{minScore:I.minScore,level:I.level,summary:I.summary});if(I.minScore&&H.overallScore{let Y=I.out??"./rules.local.json",J=[],Q="draft",K;if(I.version){let H=await R$($),G=Number(I.version),W=isNaN(G)?I.version==="latest"?H[0]:H.find((w)=>w.id===I.version):H.find((w)=>w.versionNumber===G);if(!W)throw Error(`未找到指定的规则版本: ${I.version}`);K=W.versionNumber,Q=`version:${K}`,J=(W.rules??[]).map((w,Z)=>({code:w.code?Number(String(w.code).replace(/^#/,""))||Z+1:Z+1,name:w.name??w.title,description:w.description??"",scope:w.scope??"ALL",strictness:w.strictness??"MUST_FOLLOW"}))}else J=((await _6($)).rules??[]).map((G,W)=>({id:G.id,code:G.code??W+1,name:G.name??G.title,description:G.description??"",scope:G.scope??"ALL",strictness:G.strictness??"MUST_FOLLOW",status:G.status}));return{saved:!0,path:HV0(Y,{corpId:U.corp.id,source:Q,versionNumber:K,exportedAt:new Date().toISOString(),rulesCount:J.length,rules:J}),rulesCount:J.length,corpId:U.corp.id,source:Q,versionNumber:K}}},{name:"seal_approval_rules_push",description:"将本地规则文件增量同步到远端草稿;按规则 ID 更新/删除并保留未变更规则,支持直接发布为正式版本",parameters:z.object({file:z.string().optional().describe("要推送的本地规则文件路径,默认为 ./rules.local.json"),dryRun:z.boolean().optional().describe("是否仅预览变更而不实际写入远端(默认 true,传 --yes 或 confirm: true 执行写入)"),confirm:z.boolean().optional().describe("确认覆盖写入远端草稿"),publish:z.boolean().optional().describe("写入草稿后是否直接发布为一个正式版本"),versionName:z.string().optional().describe("发布版本的名称(仅在 publish=true 时有效)")}),handler:async($,I,U)=>{let Y=I.file??"./rules.local.json",J=Eh(Y),Q=I.confirm===!0,K=I.dryRun??!Q,q=await _6($),H=bH1(q.rules,J.rules);if(K)return{...a8(U,"api/v1/rules",q.rules,J.rules.map((Z)=>({description:Z.description,scope:Z.scope??"ALL",strictness:Z.strictness??"MUST_FOLLOW"})),q.rules.length+J.rules.length),corpId:U.corp.id,dryRun:!0,localFile:J.resolvedPath,localRulesCount:J.rules.length,remoteDraftCount:q.rules.length,changes:H,impactCount:H.created.length+H.updated.length+H.deleted.length,preservedRuleIds:[...H.updated.map((Z)=>Z.id),...H.unchanged.map((Z)=>Z.id)],warning:"Incremental mode preserves matched rule IDs and does not recode the draft rule set.",willPublish:Boolean(I.publish),message:"Preview mode. Use --yes or confirm=true to apply the listed incremental changes to the remote draft."};for(let Z of H.deleted)await TU($,Z.id);let G=[];for(let Z of H.created){let V=await A2($,{description:Z.description,scope:Z.scope??"ALL",strictness:ED(Z.strictness)});G.push({id:V.id,description:V.description,code:V.code})}let W=[];for(let Z of H.updated)await oE($,Z.id,{description:Z.rule.description,scope:Z.rule.scope??"ALL",strictness:ED(Z.rule.strictness)}),W.push(Z.id);let w=void 0;if(I.publish){let Z=new Date().toISOString().slice(0,10).replace(/-/g,""),V=I.versionName||`v-local-${Z}-${Date.now().toString().slice(-4)}`;w=await T2($,V)}return{corpId:U.corp.id,dryRun:!1,localFile:J.resolvedPath,deletedRules:H.deleted.length,createdRules:G.length,updatedRules:W.length,unchangedRules:H.unchanged.length,preservedRuleIds:[...W,...H.unchanged.map((Z)=>Z.id)],recoded:!1,published:w??!1}}},{name:"seal_approval_documents_list",description:"列出 Seal 审批知识文档",parameters:z.object({scenarios:z.array(z.string()).optional().describe("场景过滤"),offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().optional()}),handler:async($,I)=>N9($,I)},{name:"seal_approval_document_get",description:"获取 Seal 审批知识文档详情",parameters:z.object({documentId:z.string().describe("文档 ID")}),handler:async($,I)=>Tm($,I.documentId)},{name:"seal_approval_document_create",description:"新建 Seal 审批知识文档",parameters:z.object({title:z.string(),purpose:z.string(),content:z.string().describe("正文,通常为 Markdown"),contentType:z.string().optional(),status:z.string().optional(),enabled:z.boolean().optional(),scenarios:z.array(z.string()).optional(),tags:z.array(z.string()).optional()}),handler:async($,I)=>ow($,I)},{name:"seal_approval_document_update",description:"更新 Seal 审批知识文档",parameters:z.object({documentId:z.string(),title:z.string().optional(),purpose:z.string().optional(),content:z.string().optional(),contentType:z.string().optional(),status:z.string().optional(),enabled:z.boolean().optional(),scenarios:z.array(z.string()).optional(),tags:z.array(z.string()).optional()}),handler:async($,I)=>{let{documentId:U,...Y}=I;return rw($,U,Y)}},{name:"seal_approval_delete_document",description:"删除 Seal 审批知识文档",parameters:z.object({documentId:z.string().describe("知识文档 ID")}),handler:($,I)=>tw($,I.documentId)},{name:"seal_approval_search",description:"按关键词组检索 Seal 审批规则、审批文档和审批偏好配置,返回命中位置、字段、行号和前后三行上下文",parameters:z.object({keywords:z.array(z.string()).min(1).describe("关键词组"),matchMode:z.enum(["any","all"]).optional().describe("any 命中任一关键词,all 要求同一行命中全部关键词"),areas:z.array(z.enum(["rules","documents","preferences"])).optional().describe("检索范围"),caseSensitive:z.boolean().optional().describe("是否大小写敏感"),contextLines:z.number().int().nonnegative().optional().describe("返回命中行前后几行,默认 3"),documentLimit:z.number().int().positive().optional().describe("缓存刷新时最多拉取文档数,默认 100"),maxResults:z.number().int().positive().optional().describe("最多返回命中数,默认 50"),refresh:z.boolean().optional().describe("是否跳过 5 分钟内存缓存并强制刷新"),ruleVersionScope:z.enum(["current","all","version"]).optional().describe("规则检索范围,默认 current;all 会检索所有已发布历史版本"),ruleVersionId:z.string().optional().describe("ruleVersionScope=version 时指定版本 ID"),ruleVersionNumber:z.number().int().positive().optional().describe("ruleVersionScope=version 时指定版本号"),latestRuleVersion:z.boolean().optional().describe("ruleVersionScope=version 时取最新已发布版本"),snippetOnly:z.boolean().optional().describe("只返回命中行,不返回前后文"),maxChars:z.number().int().positive().optional().describe("每个文本片段最多返回字符数"),fields:z.array(z.string()).optional().describe("只搜索指定字段,如 history.description、description、scope")}),handler:async($,I,U)=>YV0($,U.corp,I)},{name:"seal_approval_context_get",description:"聚合获取 Seal 现有审批规则、审批文档和审批风格偏好",parameters:z.object({documentLimit:z.number().int().positive().optional().describe("最多返回的审批文档数量"),ruleVersionId:z.string().optional().describe("指定已发布规则版本 ID;指定后 rules 返回该版本快照"),ruleVersionNumber:z.number().int().positive().optional().describe("指定已发布规则版本号;指定后 rules 返回该版本快照"),latestRuleVersion:z.boolean().optional().describe("为 true 时 rules 返回最新已发布版本快照")}),handler:async($,I,U)=>{let Y=await ew($,{documentLimit:I.documentLimit,stylePreferencesEndpoint:U.corp.seal.endpoints.approvalStylePreferences});if(!I.ruleVersionId&&!I.ruleVersionNumber&&!I.latestRuleVersion)return Y;let J=await Pu($,I);return{...Y,rules:{version:Nu(J),rules:J.rules}}}},{name:"seal_approval_style_preferences_get",description:"获取 Seal 审批风格偏好配置",parameters:z.object({}),handler:async($,I,U)=>M1($,U.corp.seal.endpoints.approvalStylePreferences)},{name:"seal_approval_style_preferences_update",description:"更新 Seal 审批风格偏好配置",parameters:z.object({tone:z.string().optional(),language:z.string().optional(),detailLevel:z.string().optional(),outputFormat:z.string().optional(),examples:z.array(z.string()).optional(),prohibitedPhrases:z.array(z.string()).optional(),customInstructions:z.string().optional()}),handler:async($,I,U)=>M8($,I,U.corp.seal.endpoints.approvalStylePreferences)},{name:"seal_webhook_list",description:"列出当前 Seal 租户的 Webhook 集成,可按 ID、名称或 URL 查找",parameters:z.object({query:z.string().optional().describe("按集成 ID、名称或 URL 做本地包含匹配"),includeSecret:z.boolean().optional().describe("是否返回 Webhook secret;默认遮罩")}),handler:async($,I,U)=>{let Y=_m(await w5($,U.corp.seal.endpoints.approvalStylePreferences),I.query);return{count:Y.length,integrations:Y.map((J)=>DH(J,I.includeSecret===!0))}}},{name:"seal_webhook_get",description:"按 Webhook 集成 ID 或名称精确查找一条集成",parameters:z.object({selector:z.string().min(1).describe("Webhook 集成 ID 或名称"),includeSecret:z.boolean().optional().describe("是否返回 Webhook secret;默认遮罩")}),handler:async($,I,U)=>{let Y=M9(await w5($,U.corp.seal.endpoints.approvalStylePreferences),I.selector);return DH(Y,I.includeSecret===!0)}},{name:"seal_webhook_add",description:"新增 Webhook 集成;使用 dryRun=true 可只预览请求而不持久化",parameters:z.object({name:z.string().min(1).describe("集成名称"),mode:z.enum(["assisted","semi_automatic","fully_automatic"]).optional(),outgoingResultWebhook:z.string().url().describe("Seal 完成 AI 审核后回调的外部地址"),autoApprovalRate:z.number().int().min(0).max(100).optional(),secret:z.string().min(1).optional().describe("可选;不传则生成 32 位十六进制 secret"),materialPackFilePolicy:iE.describe("材料包附件文件策略:大小和后缀白名单"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=iZ0(U.corp),J=I.dryRun?await Bm($,Y,I,U.corp.seal.endpoints.approvalStylePreferences):void 0,Q=J?.integration??await Em($,Y,I,U.corp.seal.endpoints.approvalStylePreferences);if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,J.before,J.after,1);return{saved:!0,integration:DH(Q,!0)}}},{name:"seal_webhook_update",description:"更新现有 Webhook 集成;使用 dryRun=true 可只预览请求而不持久化",parameters:z.object({selector:z.string().min(1).describe("Webhook 集成 ID 或名称"),name:z.string().min(1).optional(),mode:z.enum(["assisted","semi_automatic","fully_automatic"]).optional(),outgoingResultWebhook:z.string().url().optional(),autoApprovalRate:z.number().int().min(0).max(100).optional(),secret:z.string().min(1).optional(),rotateSecret:z.boolean().optional().describe("生成新 secret;与 secret 二选一"),materialPackFilePolicy:iE.describe("材料包附件文件策略:大小和后缀白名单"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{if(I.secret!==void 0&&I.rotateSecret)throw Error("Webhook secret and rotateSecret cannot be used together");let Y=I.dryRun?await Rm($,I.selector,I,U.corp.seal.endpoints.approvalStylePreferences):void 0,J=Y?.integration??await vm($,I.selector,I,U.corp.seal.endpoints.approvalStylePreferences);if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y.before,Y.after,1);return{saved:!0,integration:DH(J,I.secret!==void 0||I.rotateSecret===!0)}}},{name:"seal_webhook_delete",description:"删除指定 Webhook 集成;使用 dryRun=true 可只预览请求而不持久化",parameters:z.object({selector:z.string().min(1).describe("Webhook 集成 ID 或名称"),confirm:z.boolean().optional().describe("执行删除时必须明确传 true;dryRun 可省略"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行删除")}),handler:async($,I,U)=>{if(!I.confirm&&!I.dryRun)throw Error("Refusing to delete Webhook integration without confirm=true");let Y=I.dryRun?await Cm($,I.selector,U.corp.seal.endpoints.approvalStylePreferences):void 0,J=Y?.integration??await jm($,I.selector,U.corp.seal.endpoints.approvalStylePreferences);if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y.before,Y.after,1);return{deleted:!0,integration:DH(J,!1)}}},{name:"seal_approval_runs_search",description:"查询 Seal 审批/审核运行记录总表,并整理合思单据到 Langfuse trace/session 的桥接字段",parameters:z.object({offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),fromTimestamp:z.string().optional(),toTimestamp:z.string().optional(),startDate:z.string().optional().describe("运行记录创建开始时间戳(毫秒),对应前端 startDate"),endDate:z.string().optional().describe("运行记录创建结束时间戳(毫秒),对应前端 endDate"),status:z.string().optional(),taskMode:z.string().optional(),manualApprovalStatus:z.union([z.string(),z.array(z.string())]).optional().describe("人工审核状态,如 TERMINATED 对应已驳回"),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),humanResult:z.string().optional().describe("按人工审批结果做本地包含匹配,如 驳回、通过、reject"),query:z.string().optional().describe("在 id、sourceDocumentSN、sourceDocumentId、documentId、Langfuse traceId 中做本地包含匹配"),includeBridge:z.boolean().optional().describe("是否返回完整 bridge 数组;默认 false,避免长输出")}),handler:async($,I)=>{let U=I.query?.trim(),Y=await j$($,KG1({...I,search:U})),J=await uZ0($,Y.records,{humanResult:I.humanResult});return{...Y,records:J.map(wI),...I.includeBridge?{bridge:TD(J)}:{}}}},{name:"seal_approval_runs_summary",description:"按本地日期/时区汇总 Seal 审批运行记录,返回状态、模式统计和精简记录,避免长 JSON 输出",parameters:z.object({date:z.string().optional().describe("本地日期,格式 YYYY-MM-DD;默认使用 timezone 下的今天"),timezone:z.string().optional().describe("IANA 时区,默认 Asia/Shanghai"),offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),startDate:z.string().optional().describe("运行记录创建开始时间戳(毫秒),对应前端 startDate"),endDate:z.string().optional().describe("运行记录创建结束时间戳(毫秒),对应前端 endDate"),status:z.string().optional(),taskMode:z.string().optional(),manualApprovalStatus:z.union([z.string(),z.array(z.string())]).optional().describe("人工审核状态,如 TERMINATED 对应已驳回"),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),humanResult:z.string().optional().describe("按人工审批结果做本地包含匹配,如 驳回、通过、reject"),query:z.string().optional().describe("在 id、sourceDocumentSN、sourceDocumentId、documentId、Langfuse traceId 中做本地包含匹配")}),handler:async($,I)=>{let U=I.timezone??"Asia/Shanghai",Y=I.date??fZ0(Date.now(),U)??"",J=await j$($,{offset:I.offset,limit:I.limit??100,startDate:I.startDate,endDate:I.endDate,status:I.status,taskMode:I.taskMode,manualApprovalStatus:mZ0(I.manualApprovalStatus,I.humanResult),sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId}),Q=(await uZ0($,J.records,{query:I.query,humanResult:I.humanResult})).filter((K)=>fZ0(K.createdAt,U)===Y);return dH1(Q,{date:Y,timezone:U,fetched:J.records.length,total:J.total})}},{name:"seal_approval_runs_export",description:"将企业的审批审核记录导出为高保真 Excel 报表(包含单据模板、AI决策、人工审核结论、驳回原因及企业规则列细分结果)",parameters:z.object({startDate:z.string().optional().describe("起始时间,支持 YYYY-MM-DD 或毫秒时间戳"),endDate:z.string().optional().describe("截止时间,支持 YYYY-MM-DD 或毫秒时间戳"),limit:z.number().int().positive().optional().describe("最大拉取记录条数"),status:z.string().optional().describe("单据状态过滤,如 completed, processing, failed"),manualApprovalStatus:z.union([z.string(),z.array(z.string())]).optional().describe("人工审核状态过滤,如 APPROVED, TERMINATED, PROCESSING"),includeCompletedOnly:z.boolean().optional().describe("是否仅导出已完成单据"),outputFile:z.string().optional().describe("输出 Excel 文件的自定义绝对或相对路径"),toDownloads:z.boolean().optional().describe("是否直接保存到用户的系统下载目录")}),handler:async($,I,U)=>dL($,U.corp,I)},{name:"seal_approval_run_get",description:"获取 Seal 单条审批/审核运行记录详情;可用 fields 只取 metadata、document.fields、result.summary 等局部字段",parameters:z.object({recordId:z.string().describe("Seal approval run record ID"),fields:z.union([z.string(),z.array(z.string())]).optional().describe("逗号分隔或数组形式的字段路径,如 metadata、document.fields、result.summary"),summary:z.boolean().optional().describe("返回单据摘要、AI 结果、人工结果和版本号")}),handler:async($,I)=>{let U=await T4($,I.recordId);if(I.summary)return mH1(U);let Y={...U,aliases:qG1(U),humanResult:VI(U)},J=SZ0(I.fields);return J.length>0?nZ0(Y,J):Y}},{name:"seal_approval_run_cited_rules_get",description:"从审批运行结果中抽取 AI 引用或命中的规则及应用分析",parameters:z.object({recordId:z.string().describe("Seal approval run record ID")}),handler:async($,I)=>{let U=await T4($,I.recordId);return lH1(U)}},{name:"seal_approval_run_document_summary_get",description:"返回单据关键字段、附件摘要、AI/人工结果,避免拉取完整原始单据",parameters:z.object({recordId:z.string().describe("Seal approval run record ID")}),handler:async($,I)=>{let U=await T4($,I.recordId);return cZ0(U)}},{name:"seal_approval_run_attachments_get",description:"从审批运行记录中抽取附件、发票附件和字段位置,不返回完整单据正文和规则结果",parameters:z.object({recordId:z.string().describe("Seal approval run record ID"),summary:z.boolean().optional().describe("只返回附件列表摘要")}),handler:async($,I)=>{let U=await T4($,I.recordId);return OJ(U,{summary:I.summary})}},{name:"seal_approval_run_result_get",description:"返回审批运行结果摘要;summary=true 时只返回 decision、summary、风险点数量、命中规则数量、traceId 等",parameters:z.object({recordId:z.string().describe("Seal approval run record ID"),summary:z.boolean().optional()}),handler:async($,I)=>{let U=await T4($,I.recordId);if(I.summary)return jD(U);return{recordId:U.id,result:U.result}}},{name:"seal_approval_run_url_get",description:"获取合思企业协助链接,按需附带单据链接;支持只取企业协助链接,或按 Seal recordId/合思 sourceDocumentSN 查询单据链接",parameters:z.object({recordId:z.string().optional().describe("Seal approval run record ID"),sourceDocumentSN:z.string().optional().describe("合思/易快报单号"),sourceDocumentId:z.string().optional().describe("合思/易快报源单据 ID")}),handler:async($,I,U)=>{let Y=Boolean(I.recordId||I.sourceDocumentSN||I.sourceDocumentId),J=Y?await UG1($,I):void 0,Q=U.corp.source,K=Q.type==="hose"?await Sd(U.corp):void 0,q=Q4(J?.sourceExtendData?.hosecloudViewUrl);return{enterpriseAssistUrl:K,enterpriseUrl:K,hoseDomain:Q.type==="hose"?YG1(Q.domain):void 0,documentUrl:q,recordId:J?.id,sourceDocumentSN:J?.sourceDocumentSN,sourceDocumentId:J?.sourceDocumentId,sourceSystem:J?.sourceSystem,missing:{enterpriseAssistUrl:K?void 0:"Current enterprise source is not Hose, so no Hose enterprise assist URL is configured.",documentUrl:Y&&!q?"sourceExtendData.hosecloudViewUrl is absent from the approval run detail.":void 0}}}},{name:"seal_approval_run_pick",description:"按合思单号或关键字查询运行记录,返回候选记录及其当时使用的规则版本,便于再取详情或查版本规则",parameters:z.object({query:z.string().optional().describe("合思单号、源单据 ID、运行记录 ID 或 trace 关键字"),sn:z.string().optional().describe("合思/易快报单号;优先作为精确 sourceDocumentSN 查询"),batchId:z.string().optional().describe("模拟批次 ID"),latest:z.boolean().optional().describe("只返回最新一条匹配记录"),fields:z.union([z.string(),z.array(z.string())]).optional().describe("限制返回字段"),limit:z.number().int().positive().max(100).optional(),maxScan:z.number().int().positive().max(5000).optional().describe("最多扫描多少条运行记录用于本地匹配,默认 1000"),includeBridge:z.boolean().optional()}),handler:async($,I)=>{let U=I.sn??I.query;if(!U)throw Error("query or sn is required");let Y=await JG1($,{query:U,sn:I.sn,batchId:I.batchId,latest:I.latest,limit:I.latest?1:I.limit??20,maxScan:I.maxScan??1000}),J=await Promise.all(Y.records.map((q)=>T4($,q.id))),Q=SZ0(I.fields),K=J.map((q)=>IG1(q,Q));return{query:U,sourceDocumentSN:I.sn,simulationBatchId:I.batchId,latest:I.latest??!1,total:Y.total,scanned:Y.scanned,matched:K.length,records:K,next:{getSummary:"seal-home approval-runs get --summary",getRuleVersion:"seal-home rules version ",searchRuleVersion:`seal-home tool seal_approval_search --json '{"keywords":["关键词"],"areas":["rules"],"ruleVersionScope":"version","ruleVersionNumber":14}'`,getVersionContext:`seal-home tool seal_approval_context_get --json '{"ruleVersionNumber":14}'`},...I.includeBridge?{bridge:TD(J)}:{}}}},{name:"seal_simulation_batch_records_get",description:"获取某一次 Seal 模拟批次的运行记录,并整理对应 Langfuse trace/session 桥接字段",parameters:z.object({batchId:z.string().describe("simulation batch ID"),query:z.string().optional().describe("在 id、sourceDocumentSN、sourceDocumentId、documentId、Langfuse traceId 中做本地包含匹配")}),handler:async($,I)=>{let U=Ru(await aE($,I.batchId),I.query);return{batchId:I.batchId,count:U.length,records:U.map(wI),bridge:TD(U)}}},{name:"seal_simulation_batch_create",description:"创建 Seal 模拟测试批次。支持合思指定单号(hosecloud)与材料包导入(material_pack)两种模式;其他取数模式通过 rawParams 预留透传。",parameters:z.object({mode:z.enum(["hosecloud","material_pack"]).default("hosecloud").describe("来源模式: hosecloud=合思指定单号; material_pack=材料包导入"),flowIds:z.array(z.string()).max(100).optional().describe("合思模式: 单据流水号列表"),rejectNodeName:z.string().nullable().optional().describe("仅关注特定节点: 节点名称, 不设为 null 表示不限制"),thinkingDepthOverride:z.enum(["default","medium","high"]).optional().describe("思考深度: default=按偏好设置, medium=标准, high=深度推理"),skipInvoiceGeneration:z.boolean().optional().describe("跳过发票生成, 默认 true"),skipExpenseExtraction:z.boolean().optional().describe("跳过费用提取, 默认 true"),disableAttachmentCache:z.boolean().optional().describe("不使用附件缓存, 默认 false"),signKey:z.string().optional().describe("合思集成标识; 缺省时自动取第一个合思集成"),packageIds:z.array(z.string()).optional().describe("材料包模式: 材料包 id 列表(来自 material-packages upload 响应)"),templateId:z.string().optional().describe("材料包模板 id, 例如 conference_reimbursement_v1; 缺省取 schemaConfig.id"),schemaConfig:z.record(z.string(),z.unknown()).optional().describe("材料包字段映射(确认参数), 建议使用 material-packages upload 返回的 schemaConfig"),noWait:z.boolean().optional().describe("创建后立即返回异步票据,不等待批次完成"),rawParams:z.record(z.string(),z.unknown()).optional().describe("预留: 其他取数模式(如时间范围 startTime/endTime)透传参数, 覆盖上述构建结果")}),handler:async($,I)=>{let U=I.mode??"hosecloud",Y=I.signKey;if(U==="hosecloud"&&!Y){if(Y=(await eE($)).find((q)=>q.signKey)?.signKey,!Y)throw Error("未找到合思集成 signKey, 请通过 signKey 参数提供")}let J=pH1({mode:U,flowIds:I.flowIds,rejectNodeName:I.rejectNodeName,thinkingDepthOverride:I.thinkingDepthOverride,skipInvoiceGeneration:I.skipInvoiceGeneration,skipExpenseExtraction:I.skipExpenseExtraction,disableAttachmentCache:I.disableAttachmentCache,signKey:Y,packageIds:I.packageIds,templateId:I.templateId,schemaConfig:I.schemaConfig,rawParams:I.rawParams}),Q=U==="material_pack"?await km($,J):await xm($,J);return{...Q,created:!0,noWait:I.noWait??!0,asyncTicket:Q.batchId,next:{status:`seal-use simulation status ${Q.batchId}`,wait:`seal-use simulation wait ${Q.batchId}`,getBatch:"seal-home simulation get ",getRecords:"seal-home simulation batch-records ",listBatches:"seal-home simulation list"}}}},{name:"seal_simulation_batches_list",description:"列出 Seal 模拟测试批次摘要(含状态、统计计数与展示摘要)",parameters:z.object({limit:z.number().int().positive().max(100).optional().describe("最多返回批次数量, 默认 50")}),handler:async($,I)=>{let U=await fm($,{limit:I.limit??50});return{count:U.length,batches:U.map(cH1),next:{getBatch:"seal-home simulation get ",getRecords:"seal-home simulation batch-records "}}}},{name:"seal_simulation_batch_get",description:"获取某一次 Seal 模拟测试批次的详情,包含服务端回显的创建参数、展示摘要和任务统计",parameters:z.object({batchId:z.string().describe("simulation batch ID")}),handler:async($,I)=>{return{batch:await $V($,I.batchId),next:{getRecords:"seal-home simulation batch-records "}}}},{name:"seal_simulation_batch_status",description:"单次读取 Seal 模拟批次状态,不阻塞等待;适合根据异步票据轮询",parameters:z.object({batchId:z.string().describe("simulation batch ID")}),handler:async($,I)=>{let U=await $V($,I.batchId),Y=String(U.status??"UNKNOWN").toUpperCase(),J=["COMPLETED","FAILED","CANCELLED","CANCELED"].includes(Y);return{batchId:I.batchId,status:Y,terminal:J,totalCount:U.totalCount,processedCount:U.processedCount,successCount:U.successCount,failedCount:U.failedCount,createdAt:U.createdAt,updatedAt:U.updatedAt,next:J?{getRecords:`seal-use simulation batch-records ${I.batchId}`}:{status:`seal-use simulation status ${I.batchId}`,wait:`seal-use simulation wait ${I.batchId}`}}}},{name:"seal_simulation_templates_get",description:"列出 Seal 模拟测试模板(我的模板,保存常用配置快速复用)",parameters:z.object({}),handler:async($)=>{let I=await bm($);return{count:I.length,templates:I.map((U)=>({id:U.id,name:U.name,description:U.description,approvalSystem:U.approvalSystem,hosecloudConfig:U.hosecloudConfig,updatedAt:U.updatedAt})),next:{createBatch:"seal-home simulation create --mode hosecloud --flow-ids ..."}}}},{name:"seal_simulation_integrations_get",description:"查询模拟测试可用的来源集成状态与合思集成选项(signKey 等)",parameters:z.object({}),handler:async($)=>{let[I,U]=await Promise.all([sE($),eE($)]);return{status:I,hosecloudIntegrations:U}}},{name:"seal_simulation_material_package_upload",description:"上传材料包 ZIP 到 Seal 模拟测试;服务端解析 Excel/AI 推断配置并返回材料包 id 与 schemaConfig(字段映射确认后用于创建模拟批次)",parameters:z.object({filePath:z.string().describe("材料包 ZIP 文件路径(含 信息表.xlsx 与附件)")}),handler:async($,I)=>{if(!I.filePath)throw Error("filePath is required");let U=hH1(I.filePath),Y=I.filePath.split(/[\\/]/).pop()??"material-pack.zip",J=await dm($,{fileName:Y,fileBuffer:U});return{materialPackage:J,next:{createBatch:`seal-home simulation create --mode material_pack --package-ids ${J.id} --schema-config schema.json`}}}},{name:"seal_webhook_ready",description:"检查当前企业的 Webhook 就绪状态看板(包括企业环境、租户身份、凭证连通性、已激活 Webhook 通道及材料包预检)",parameters:z.object({filePath:z.string().optional().describe("可选的材料包路径(ZIP 或 信息表.xlsx),用于同步做本地预检")}),handler:async($,I,U)=>{return MD($,U.corp,{filePath:I.filePath})}},{name:"seal_webhook_material_pack",description:"将官方材料包格式本地校验、解析并通过 Seal 入站 Webhook 触发 AI 审批;preview 模式不联网,push 模式单通道自动选择",parameters:z.object({filePath:z.string().describe("材料包 ZIP 或 信息表.xlsx 文件路径"),mode:z.enum(["preview","push"]).default("preview"),webhook:z.string().optional().describe("Webhook ID 或名称;当租户仅配置 1 个通道时可省略")}),handler:async($,I)=>{let U=WI(I.filePath);if(I.mode!=="push")return GI(U.fileBuffer,U.fileName);let Y=await w5($),J;if(I.webhook)J=M9(Y,I.webhook);else if(Y.length===1)J=Y[0];else if(Y.length>1){let Q=Y.map((K)=>`"${K.name}" (${K.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${Q}],请通过 webhook 参数指定目标通道。`)}else throw Error("当前租户未配置任何 Webhook 集成通道。");return ND(U.fileBuffer,U.fileName,{webhookUrl:J.incomingDocumentWebhook.url,secret:J.secret,materialPackFilePolicy:J.materialPackFilePolicy})}},{name:"seal_approval_run_langfuse_bridge_get",description:"从 Seal approval run 中抽取 Langfuse 定位信息;优先返回 _langfuseTraceId,没有时给出 hosecloud-{sourceDocumentSN} session 回退",parameters:z.object({recordId:z.string().optional(),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),simulationBatchId:z.string().optional(),limit:z.number().int().positive().max(100).optional()}),handler:async($,I)=>{let Y=(I.simulationBatchId?await aE($,I.simulationBatchId):(await j$($,{limit:I.limit??50,search:I.sourceDocumentSN??I.sourceDocumentId,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId})).records).filter((J)=>HG1(J,{recordId:I.recordId,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId}));return{count:Y.length,records:Y.map(wI),bridge:TD(Y)}}},{name:"seal_simulation_batch_wait",description:"等待 Seal 模拟测试批次完成(轮询状态直到 completed/failed/canceled 或超时)",parameters:z.object({batchId:z.string().describe("模拟批次 ID"),timeout:z.string().default("10m").describe("最长等待时间, 默认 10m"),pollInterval:z.string().default("2s").describe("轮询间隔, 默认 2s")}),handler:async($,I)=>{let U=_Z0(I.timeout??"10m"),Y=_Z0(I.pollInterval??"2s"),J=Date.now();while(!0){let Q=await $V($,I.batchId),K=(Q.status??"").toLowerCase();if(["completed","failed","cancelled","canceled"].includes(K))return{batch:Q,completed:!0,status:K,elapsedMs:Date.now()-J,next:{getRecords:`seal-home simulation batch-records ${I.batchId}`}};if(Date.now()-J>=U)throw Error(`等待模拟批次 ${I.batchId} 超时(已等待 ${(Date.now()-J)/1000}s)。可稍后执行 seal-home simulation get ${I.batchId} 查看状态`);await new Promise((q)=>setTimeout(q,Y))}}},{name:"seal_simulation_batch_clean",description:"删除模拟测试批次产生的测试数据",parameters:z.object({batchId:z.string().describe("模拟批次 ID")}),handler:async($,I)=>{let U=await im($,I.batchId);return{batchId:I.batchId,cleaned:!0,result:U}}},{name:"seal_simulation_specifications_list",description:"列出指定合思集成可用的单据模板列表",parameters:z.object({signKey:z.string().optional().describe("合思集成 sign-key")}),handler:async($,I)=>{let U=await nm($,I.signKey);return{count:U.length,specifications:U}}},{name:"seal_deploy_hosecloud_requirements",description:"获取 Seal AI 审批发布到合思费控所需配置字段与说明",parameters:z.object({}),handler:async()=>{return{input:`JSON via --json '{"apiKey":"...","apiSecret":"...","mode":"assisted"}'`,questions:[{field:"apiOrigin",prompt:"使用哪一种合思版本或 API 环境?(production/custom,未指定时自动探测)",required:!1,default:"production"},{field:"customApiUrl",prompt:"自定义环境的 API 地址是什么?(如专属私有云域名)",requiredWhen:"apiOrigin=custom"},{field:"apiKey",prompt:"合思 API Key(appKey)是什么?",required:!0,secret:!0},{field:"apiSecret",prompt:"合思 API Secret(appSecurity)是什么?",required:!0,secret:!0},{field:"mode",prompt:"使用全自动、半自动还是辅助审核?(fully_automatic/semi_automatic/assisted)",required:!0,default:"assisted"},{field:"autoApprovalRate",prompt:"自动审批比例是多少?(0-100)",requiredWhen:"mode!=assisted"},{field:"rejectResubmitMethod",prompt:"驳回重提后从哪个节点继续?(node_default/to_ebot/from_start)"},{field:"autoApproveNodeNames",prompt:"哪些节点允许自动审批?(string[])"},{field:"outboundName",prompt:"合思审批流节点消息名称是什么?",default:"SealAI 审批"}]}}},{name:"seal_deploy_hosecloud_list",description:"列出当前企业【Seal AI 审批发布到合思费控】的集成配置列表",parameters:z.object({}),handler:async($)=>{let U=((await M1($)).integrations??[]).filter((Y)=>Y.type==="hosecloud");return{count:U.length,integrations:U.map(AD)}}},{name:"seal_deploy_hosecloud_get",description:"查询【Seal AI 审批发布到合思费控】的单项配置详情",parameters:z.object({signKey:z.string().describe("合思集成 sign-key")}),handler:async($,I)=>{let Y=((await M1($)).integrations??[]).find((J)=>J.type==="hosecloud"&&J.signKey===I.signKey);if(!Y)throw Error(`未找到合思配置:${I.signKey}`);return AD(Y)}},{name:"seal_deploy_hosecloud_status",description:"检查【Seal AI 审批发布到合思费控】与多平台集成状态",parameters:z.object({}),handler:async($)=>{let I=await sE($),Y=((await M1($)).integrations??[]).filter((J)=>J.type==="hosecloud");return{status:I,integrations:Y.map(AD)}}},{name:"seal_deploy_hosecloud_configure",description:"自动探测平台并保存【Seal AI 审批发布到合思费控】集成配置",parameters:z.object({apiKey:z.string().describe("合思 API Key (appKey)"),apiSecret:z.string().describe("合思 API Secret (appSecurity)"),signKey:z.string().optional().describe("集成 signKey,不提供则自动生成"),outboundName:z.string().optional().describe("出站消息名称(合思审批流节点中显示)"),specificationId:z.string().optional(),specificationName:z.string().optional(),mode:z.enum(["fully_automatic","semi_automatic","assisted"]).default("assisted"),autoApprovalRate:z.number().min(0).max(100).optional(),rejectResubmitMethod:z.enum(["node_default","to_ebot","from_start"]).optional(),autoApproveNodeNames:z.array(z.string()).optional(),apiOrigin:z.string().default("production"),customApiUrl:z.string().optional(),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let{dryRun:Y,...J}=I,Q=J.apiKey??J.appKey,K=J.apiSecret??J.appSecurity;if(!Q||!K)throw Error("缺少合思凭证:apiKey (或 appKey) 与 apiSecret (或 appSecurity) 为必填项");let q={...J,apiKey:Q,apiSecret:K},H=q.apiOrigin??"production",G=q.customApiUrl;if(!G&&H!=="custom")try{let D=await MU(q.apiKey,q.apiSecret);if(D?.domain)if(D.domain==="https://app.ekuaibao.com")H="production",G=void 0;else H="custom",G=D.domain}catch{}if(H==="custom"&&!G)throw Error("自定义合思环境必须提供 customApiUrl");let W=await pm($,{apiKey:q.apiKey,apiSecret:q.apiSecret,apiOrigin:H,customApiUrl:G}),w=await M1($),Z=q.signKey??uH1(6).toString("hex"),V={type:"hosecloud",...q,apiOrigin:H,...G?{customApiUrl:G}:{},signKey:Z,corporationId:W.corporationId},X=(w.integrations??[]).filter((D)=>D.type!=="hosecloud"||D.signKey!==Z);X.push(V);let L={...w,integrationSystem:"hosecloud",integrations:X};if(Y)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,w,L,1);return await M8($,L,U.corp.seal.endpoints.approvalStylePreferences),console.error(`✓ 配置已保存 (signKey: ${Z})`),console.error(`\uD83D\uDC49 Next action: seal-use deploy hosecloud sync ${Z} --corp ${U.corp.id}`),{integration:AD(V)}}},{name:"seal_deploy_hosecloud_sync",description:"一键将 Seal AI 审核配置同步发布到合思费控审批流",parameters:z.object({signKey:z.string().describe("合思集成 sign-key")}),handler:async($,I,U)=>{let J=((await M1($)).integrations??[]).find((H)=>H.type==="hosecloud"&&H.signKey===I.signKey);if(!J)throw Error(`未找到合思配置:${I.signKey}`);let Q=(U.corp.seal.url??`https://${U.corp.id.toLowerCase()}.sealai.cc`).replace(/\/+$/,""),K=J.outboundName??"SealAI 审批",q=await cm($,{signKey:I.signKey,webhookUrl:`${Q}/api/hosecloud/outbound?config_id=${encodeURIComponent(I.signKey)}`,completionWebhookUrl:`${Q}/api/hosecloud/flow/completion?config_id=${encodeURIComponent(I.signKey)}`,messageName:K,mode:J.mode??"assisted"});return console.error(`✓ 同步成功!出站消息已在合思开放平台创建/更新: "${K}"`),console.error(`\uD83D\uDC49 发布完成:请登录合思后台在审批流中添加【EBot】节点并选择 "${K}"。`),{signKey:I.signKey,synced:!0,result:q}}},{name:"seal_preference_get",description:"获取当前决策偏好、思考深度偏好与绑定的规则版本",parameters:z.object({}),handler:async($)=>{let I=await M1($);return{decisionPreferences:I.decisionPreferences,thinkingDepthPreference:I.thinkingDepthPreference,ruleSetVersionId:I.ruleSetVersionId}}},{name:"seal_preference_decision_update",description:"修改审核决策偏好(立即影响当前运行中的审核智能体及后续决策)",parameters:z.object({explicitApprove:z.string().optional(),explicitReject:z.string().optional(),exemptApprove:z.string().optional(),review:z.string().optional(),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),{dryRun:J,...Q}=I,K={...Y,decisionPreferences:{...Y.decisionPreferences,...Q}};if(J)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,K,1);return await M8($,K,U.corp.seal.endpoints.approvalStylePreferences),{decisionPreferences:K.decisionPreferences}}},{name:"seal_preference_thinking_depth_set",description:"修改默认思考深度(medium 或 high)",parameters:z.object({defaultLevel:z.enum(["medium","high"]).describe("默认思考深度"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),J={...Y,thinkingDepthPreference:{defaultLevel:I.defaultLevel,routingPolicies:Y.thinkingDepthPreference?.routingPolicies??[]}};if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,J,1);return await M8($,J,U.corp.seal.endpoints.approvalStylePreferences),{thinkingDepthPreference:J.thinkingDepthPreference}}},{name:"seal_preference_thinking_depth_policies_list",description:"列出思考深度路由策略列表",parameters:z.object({}),handler:async($)=>{return{policies:(await M1($)).thinkingDepthPreference?.routingPolicies??[]}}},{name:"seal_preference_thinking_depth_policies_upsert",description:"新增或修改思考深度路由策略",parameters:lE.extend({dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),{dryRun:J,...Q}=I,q=(Y.thinkingDepthPreference?.routingPolicies??[]).filter((G)=>G.id!==Q.id);q.push(Q);let H={...Y,thinkingDepthPreference:{defaultLevel:Y.thinkingDepthPreference?.defaultLevel??"medium",routingPolicies:q}};if(J)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,H,1);return await M8($,H,U.corp.seal.endpoints.approvalStylePreferences),{policy:Q,policies:q}}},{name:"seal_preference_thinking_depth_policies_remove",description:"删除一条思考深度路由策略",parameters:z.object({policyId:z.string().describe("路由策略 ID"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),J=Y.thinkingDepthPreference?.routingPolicies??[],Q=J.filter((q)=>q.id!==I.policyId);if(Q.length===J.length)throw Error(`未找到路由策略:${I.policyId}`);let K={...Y,thinkingDepthPreference:{defaultLevel:Y.thinkingDepthPreference?.defaultLevel??"medium",routingPolicies:Q}};if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,K,1);return await M8($,K,U.corp.seal.endpoints.approvalStylePreferences),{removedId:I.policyId,policies:Q}}},{name:"seal_approval_runs_stats",description:"统计审核记录状态分布、来源系统分布及按单号/ID去重统计",parameters:z.object({since:z.string().optional().describe("时间范围,如 3months, 7days, 24hours"),dedupeBy:z.enum(["sourceDocumentSN","sourceDocumentId","id"]).default("sourceDocumentSN").describe("去重字段"),status:z.string().optional(),sourceSystem:z.string().optional(),taskMode:z.string().optional()}),handler:async($,I)=>{let U=await j$($,{limit:1000,status:I.status,sourceSystem:I.sourceSystem,taskMode:I.taskMode}),Y=I.dedupeBy??"sourceDocumentSN",J=U.records,Q={},K={},q=new Set;for(let H of J){let G=H.status??"unknown";Q[G]=(Q[G]??0)+1;let W=H.sourceSystem??"unknown";K[W]=(K[W]??0)+1;let w=H[Y];if(w)q.add(String(w))}return{total:J.length,dedupeBy:Y,unique:q.size,byStatus:Q,bySourceSystem:K}}},{name:"seal_approval_runs_count",description:"统计符合条件的审核记录总数",parameters:z.object({status:z.string().optional(),sourceSystem:z.string().optional(),taskMode:z.string().optional(),search:z.string().optional()}),handler:async($,I)=>{let U=await j$($,{limit:1,status:I.status,sourceSystem:I.sourceSystem,taskMode:I.taskMode,search:I.search});return{total:U.total??U.records.length}}}],xH1=new Map(OH.map(($)=>[$.name,$]));function _4($){return xH1.get($)}function DH($,I){return I?$:{...$,secret:""}}function iZ0($){if($.seal.url)return $.seal.url;if($.source.type==="hose")return z2($,$.source);return $.source.sealUrl}function kH1($,I){let U=$.rules.length;if(I.countOnly||I.limit===0)return{count:U};let Y=I.offset??0,J=$.rules.slice(Y,I.limit===void 0?void 0:Y+I.limit),Q=I.fields;return{count:U,hasPendingDeletes:$.hasPendingDeletes,rules:Q?J.map((K)=>fH1(K,Q)):J}}function fH1($,I){let U={};for(let Y of I)if($[Y]!==void 0)U[Y]=$[Y];return U}function bH1($,I){let U=new Map($.map((q)=>[q.id,q])),Y=new Set,J=[],Q=[],K=[];for(let q of I){let H;if(q.id){if(H=U.get(q.id),!H)throw Error(`本地规则 ${q.id} 不存在于当前草稿。请先用 rules pull 获取当前草稿,再重新应用修改。`);if(Y.has(q.id))throw Error(`本地规则文件包含重复的规则 ID:${q.id}`)}else{let W=$.filter((w)=>!Y.has(w.id)&&iH1(w,q));if(W.length>1)throw Error(`本地规则“${q.description}”无法唯一匹配远端草稿,请在规则文件中补充稳定的 id。`);H=W[0]}if(!H){J.push(q);continue}Y.add(H.id);let G=nH1(H,q);if(G.length)Q.push({id:H.id,rule:q,changedFields:G});else K.push({id:H.id})}return{created:J,updated:Q,deleted:$.filter((q)=>!Y.has(q.id)),unchanged:K}}function iH1($,I){return $.description===I.description.trim()&&$.scope===(I.scope??"ALL")&&$.strictness===ED(I.strictness)}function nH1($,I){let U=[];if($.description!==I.description.trim())U.push("description");if($.scope!==(I.scope??"ALL"))U.push("scope");if($.strictness!==ED(I.strictness))U.push("strictness");return U}function ED($){let I=$?.toUpperCase()??"MUST_FOLLOW";if(I.includes("SHOULD"))return"SHOULD_FOLLOW";if(I.includes("SUGGEST"))return"SUGGESTION";return"MUST_FOLLOW"}function _Z0($){let I=$.match(/^(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)?$/i);if(!I||!I[1])return 600000;let U=parseFloat(I[1]);switch((I[2]??"s").toLowerCase()){case"ms":return U;case"s":return U*1000;case"m":return U*60*1000;case"h":return U*3600*1000;case"d":return U*86400*1000;default:return U*1000}}function AD($){return Object.fromEntries(Object.entries($).map(([I,U])=>[I,["apiKey","apiSecret","secret"].includes(I)&&typeof U==="string"?"***":U]))}function a8($,I,U,Y,J){return{preview:!0,targetUrl:`${iZ0($.corp).replace(/\/+$/,"")}/${I.replace(/^\/+/,"")}`,changesDiff:{before:BD(U),after:BD(Y)},impactCount:J}}function BD($){if(Array.isArray($))return $.map(BD);if(!$||typeof $!=="object")return $;return Object.fromEntries(Object.entries($).map(([I,U])=>[I,["apiKey","apiSecret","secret","token","password"].includes(I)&&typeof U==="string"?"***":BD(U)]))}function pH1($){let I=$.sourceSystem??$.mode??"hosecloud",U={skipInvoiceGeneration:$.skipInvoiceGeneration??!0,skipExpenseExtraction:$.skipExpenseExtraction??!0,thinkingDepthOverride:$.thinkingDepthOverride??"default",disableAttachmentCache:$.disableAttachmentCache??!1},Y=$.flowIds??(typeof $.documentSn==="string"?$.documentSn.split(",").map((J)=>J.trim()).filter(Boolean):$.documentSn);if(I==="hosecloud"){if(!Y?.length&&$.startTime===void 0)throw Error("hosecloud 模式需要提供 flowIds(单号列表)");if(Object.assign(U,{dataCollectionMode:"2",rejectNodeName:$.rejectNodeName??null,sourceSystem:"hosecloud"}),Y?.length)U.flowIds=Y;if($.signKey)U.signKey=$.signKey;if($.startTime!==void 0)U.startTime=$.startTime;if($.endTime!==void 0)U.endTime=$.endTime;if($.status)U.status=$.status;if($.limit)U.limit=$.limit}else if(I==="material_pack"||I==="material-pack"){let J=$.packageIds??($.packageId?[$.packageId]:void 0);if(!J?.length)throw Error("material_pack 模式需要提供 packageIds(材料包 id)");let Q=$.templateId??$.schemaConfig?.id;if(!Q)throw Error("material_pack 模式需要提供 templateId(或 schemaConfig.id)");if(Object.assign(U,{templateId:Q,packageIds:J,approvalCode:$.approvalCode??"material_pack",nodeId:$.nodeId??"material_pack",runMode:$.runMode??"import_and_simulate"}),$.schemaConfig!==void 0)U.schemaConfig=$.schemaConfig}else if(I==="weaver")Object.assign(U,{sourceSystem:"weaver",workflowTypeId:$.workflowTypeId,requestIds:$.requestIds,flowStatusList:$.flowStatusList,nodeId:$.nodeId,startTime:$.startTime,endTime:$.endTime,status:$.status,limit:$.limit??100,rejectNodeName:$.rejectNodeName??null});else if(I==="helios")Object.assign(U,{sourceSystem:"helios",documentType:$.documentType,businessCodes:$.businessCodes,rejectNodeName:$.rejectNodeName??null});else if(I==="maycur"||I==="maycur-standard")Object.assign(U,{sourceSystem:I,formCodes:$.formCodes??Y,createdAtStart:$.startTime,createdAtEnd:$.endTime,formSubTypeBizCode:$.formSubTypeBizCode,formStatus:$.formStatus,pageNo:$.pageNo??1,pageSize:$.pageSize??100,signKey:$.signKey});else if(I==="feishu")Object.assign(U,{sourceSystem:"feishu",approvalCode:$.approvalCode,nodeId:$.nodeId,startTime:$.startTime,endTime:$.endTime,status:$.status,limit:$.limit??100,signKey:$.signKey});else Object.assign(U,{sourceSystem:I});if($.rawParams)Object.assign(U,$.rawParams);return U}function cH1($){return{id:$.id,status:$.status,approvalCode:$.approvalCode,sourceSystem:$.sourceSystem,totalCount:$.totalCount,processedCount:$.processedCount,successCount:$.successCount,failedCount:$.failedCount,createdCount:$.createdCount,createFailedCount:$.createFailedCount,requestSummary:$.requestSummary,resultSummary:$.resultSummary,createdAt:$.createdAt}}function wI($){let I=$.sourceDocumentSN,U=VI($),Y=jD($);return{id:$.id,tenantId:$.tenantId,agentId:$.agentId,status:$.status,taskMode:$.taskMode,finalExecutionMode:$.finalExecutionMode,sourceSystem:$.sourceSystem,sourceDocumentSN:I,sourceDocumentId:$.sourceDocumentId,documentId:$.documentId,simulationBatchId:$.sourceExtendData?.simulation_batch_id,langfuseTraceId:$.sourceExtendData?._langfuseTraceId,langfuseSessionFallback:I?`hosecloud-${I}`:void 0,ruleSetVersionNumber:$.ruleSetVersionNumber,ruleSetPublishedAt:$.ruleSetPublishedAt,ruleSetPublishedByName:$.ruleSetPublishedByName,humanResult:U?.value,humanResultPath:U?.path,aiDecision:Y.decision,aiSummary:Y.summary,createdAt:$.createdAt,updatedAt:$.updatedAt}}function dH1($,I){return{date:I.date,timezone:I.timezone,fetched:I.fetched,matched:$.length,total:I.total,statusCounts:kZ0($,(U)=>U.status??"unknown"),taskModeCounts:kZ0($,(U)=>U.taskMode??"unknown"),records:$.map((U)=>{let Y=wI(U);return{createdAt:bZ0(Y.createdAt,I.timezone),sourceDocumentSN:Y.sourceDocumentSN,sourceDocumentId:Y.sourceDocumentId,status:Y.status,taskMode:Y.taskMode,finalExecutionMode:Y.finalExecutionMode,simulationBatchId:Y.simulationBatchId,langfuseTraceId:Y.langfuseTraceId,langfuseSessionFallback:Y.langfuseSessionFallback,ruleSetVersionNumber:Y.ruleSetVersionNumber,ruleSetPublishedAt:bZ0(Y.ruleSetPublishedAt,I.timezone),ruleSetPublishedByName:Y.ruleSetPublishedByName,humanResult:Y.humanResult,humanResultPath:Y.humanResultPath,recordId:Y.id}})}}function SZ0($){if(!$)return[];return(Array.isArray($)?$:$.split(",")).map((U)=>U.trim()).filter(Boolean)}function nZ0($,I){let U={};for(let Y of I){if(Y==="metadata"){U.metadata=pZ0($);continue}let J=o5($,Y);if(J!==void 0)oH1(U,Y,J)}return U}function pZ0($){let I=wI($);return{recordId:I.id,tenantId:I.tenantId,agentId:I.agentId,sourceSystem:I.sourceSystem,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId,documentId:I.documentId,status:I.status,taskMode:I.taskMode,finalExecutionMode:I.finalExecutionMode,simulationBatchId:I.simulationBatchId,langfuseTraceId:I.langfuseTraceId,langfuseSessionFallback:I.langfuseSessionFallback,ruleSetVersionNumber:I.ruleSetVersionNumber,ruleSetPublishedAt:I.ruleSetPublishedAt,ruleSetPublishedByName:I.ruleSetPublishedByName,createdAt:I.createdAt,updatedAt:I.updatedAt}}function mH1($){return{metadata:pZ0($),document:cZ0($).document,aiResult:jD($),manualResult:VI($)?.value,manualResultPath:VI($)?.path,ruleSetVersionNumber:$.ruleSetVersionNumber,ruleSetPublishedAt:$.ruleSetPublishedAt,ruleSetPublishedByName:$.ruleSetPublishedByName}}function jD($){let I=FH($.result);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,traceId:$.sourceExtendData?._langfuseTraceId,langfuseTraceId:$.sourceExtendData?._langfuseTraceId,decision:vD(I,["decision","manualApproval.decision","manualApproval.result","review.decision","finalDecision"]),summary:vD(I,["summary","result.summary","review.summary","conclusion"]),riskPointCount:gZ0(I,["riskPoints","risks","risk_points","review.riskPoints"]),matchedRuleCount:gZ0(I,["matchedRules","hitRules","ruleResults","rules","review.matchedRules"])}}function cZ0($){let I=FH($.document),U=tH1($.document),Y=U.map((J)=>`${J.label??J.path??""}:${J.value??""}`).join(` -`);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,document:CJ({id:I?.id,sn:I?.sn??I?.sourceDocumentSN??$.sourceDocumentSN,title:I?.title??I?.name,template:vD(I,["template.name","templateName","form.name","formName","formTitle"]),amount:PD(U,["金额","报销金额","付款金额","合计","价税合计"])??vD(I,["amount","totalAmount","expenseAmount"]),expenseType:PD(U,["费用类型","费用类别","报销类型"]),costCompany:PD(U,["费用承担公司","承担公司","成本中心","费用归属"]),payee:PD(U,["收款方","收款账户","收款信息","开户名","银行账号"]),keyFields:U.slice(0,30)}),invoices:aH1($),attachments:OJ($,{summary:!0}).attachments,aiResult:jD($),manualResult:VI($)?.value,hints:CJ({amountMentions:yZ0(Y,["金额","合计","税率"],8),partyMentions:yZ0(Y,["买方","卖方","甲方","乙方","收款"],8)})}}function lH1($){let I=[["result.citedRules",o5($,"result.citedRules")],["result.matchedRules",o5($,"result.matchedRules")],["result.ruleResults",o5($,"result.ruleResults")],["result.rules",o5($,"result.rules")],["pipelineData.citedRules",o5($,"pipelineData.citedRules")],["pipelineData.matchedRules",o5($,"pipelineData.matchedRules")]],U=[],Y=new Set;for(let[J,Q]of I)(Array.isArray(Q)?Q:Q&&typeof Q==="object"?Object.values(Q):[]).forEach((q,H)=>{let G=FH(q);if(!G)return;let W=Q4(G.runtimeRuleId)??Q4(G.runtimeId)??Q4(G.id)??Q4(G.ruleId),w=Q4(G.ruleCode)??Q4(G.code)??(W?$G1(W):void 0),Z=CJ({runtimeRuleId:W,ruleCode:w,versionNumber:rH1(G.versionNumber)??$.ruleSetVersionNumber,scope:Q4(G.scope),strictness:Q4(G.strictness),appliedAnalysis:G.appliedAnalysis??G.analysis??G.reasoning,checkResult:G.checkResult??G.result??G.decision,findings:G.findings??G.riskPoints??G.evidence,sourcePath:`${J}.${H}`}),V=JSON.stringify(Z);if(!Y.has(V))Y.add(V),U.push(Z)});return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,ruleSetVersionNumber:$.ruleSetVersionNumber,count:U.length,rules:U}}function vD($,I){if(!$)return;for(let U of I){let Y=o5($,U);if(Y!==void 0)return Y}return}function gZ0($,I){if(!$)return 0;for(let U of I){let Y=o5($,U);if(Array.isArray(Y))return Y.length;if(Y&&typeof Y==="object")return Object.keys(Y).length;if(typeof Y==="number")return Y}return 0}function o5($,I){return I.split(".").reduce((U,Y)=>{if(U===void 0||U===null)return;if(Array.isArray(U)){let J=Number(Y);return Number.isInteger(J)?U[J]:void 0}if(typeof U==="object")return U[Y];return},$)}function oH1($,I,U){let Y=I.split("."),J=$;for(let Q of Y.slice(0,-1)){let K=J[Q];if(!K||typeof K!=="object"||Array.isArray(K))J[Q]={};J=J[Q]}J[Y[Y.length-1]??I]=U}function CJ($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}function FH($){return $&&typeof $==="object"&&!Array.isArray($)?$:void 0}function rH1($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function tH1($){let I=[];return Au($,"document",I),I}function Au($,I,U){if(Array.isArray($)){$.forEach((K,q)=>Au(K,`${I}.${q}`,U));return}let Y=FH($);if(!Y)return;let J=Q4(Y.label)??Q4(Y.name)??Q4(Y.title)??Q4(Y.fieldName),Q=Y.value??Y.displayValue??Y.text??Y.content;if(J&&Q!==void 0&&typeof Q!=="object")U.push(CJ({path:I,label:J,value:Q,type:Q4(Y.type)??Q4(Y.fieldType)}));for(let[K,q]of Object.entries(Y)){if(K==="attachments")continue;Au(q,`${I}.${K}`,U)}}function PD($,I){return $.find((Y)=>{let J=Q4(Y.label)??"";return I.some((Q)=>J.includes(Q))})?.value}function aH1($){let I=[];return RD($.result,"result",I),RD($.document,"document",I),I.slice(0,20)}function RD($,I,U){if(Array.isArray($)){$.forEach((J,Q)=>RD(J,`${I}.${Q}`,U));return}let Y=FH($);if(!Y)return;if(/invoice|发票/i.test(I))U.push(CJ({path:I,fileName:Q4(Y.fileName)??Q4(Y.filename)??Q4(Y.name),buyer:Y.buyer??Y.buyerName??Y.purchaserName,seller:Y.seller??Y.sellerName,amount:Y.amount??Y.totalAmount??Y.total,taxRate:Y.taxRate,category:Y.category??Y.type}));for(let[J,Q]of Object.entries(Y))RD(Q,`${I}.${J}`,U)}function yZ0($,I,U){return $.split(/\r?\n/).filter((Y)=>I.some((J)=>Y.includes(J))).slice(0,U)}function TD($){return $.map((I)=>{let U=wI(I);return{recordId:U.id,tenantId:U.tenantId,agentId:U.agentId,sourceDocumentSN:U.sourceDocumentSN,sourceDocumentId:U.sourceDocumentId,simulationBatchId:U.simulationBatchId,langfuseTraceId:U.langfuseTraceId,langfuseSessionFallback:U.langfuseSessionFallback,ruleSetVersionNumber:U.ruleSetVersionNumber,ruleSetPublishedAt:U.ruleSetPublishedAt,ruleSetPublishedByName:U.ruleSetPublishedByName,resolution:U.langfuseTraceId?"trace":U.langfuseSessionFallback?"session-fallback":"unresolved"}})}function Nu($){return{id:$.id,tenantId:$.tenantId,versionNumber:$.versionNumber,versionName:$.versionName,publishedBy:$.publishedBy,publishedByName:$.publishedByName,rulesCount:$.rules.length,publishedAt:$.publishedAt,createdAt:$.createdAt}}async function sH1($,I){if(I.recordId&&!I.versionId&&!I.versionNumber&&!I.latest){let U=await T4($,I.recordId);if(!U.ruleSetVersionNumber)throw Error(`Approval run ${I.recordId} has no ruleSetVersionNumber`);return Pu($,{versionNumber:U.ruleSetVersionNumber})}return Pu($,I)}function eH1($,I){let U=Mu(I.code),Y=dZ0(I.runtimeId),J=U?Number(U.slice(1)):Y;if(!J||J<1)throw Error("Pass --code '#0038' or --runtime-id rule-205");let Q=$.rules.find((H,G)=>{let W=H;return Mu(Q4(W.code)??Q4(W.ruleCode))===U||G+1===J});if(!Q)return;let K=Q,q=$.rules.indexOf(Q)+1;return CJ({runtimeRuleId:Q4(K.runtimeRuleId)??`rule-${q}`,ruleCode:Mu(Q4(K.code)??Q4(K.ruleCode))??vu(q),versionId:$.id,versionNumber:$.versionNumber,versionName:$.versionName,publishedAt:$.publishedAt,publishedByName:$.publishedByName,description:Q.description,scope:Q.scope,strictness:Q.strictness,status:Q4(K.status)})}function Mu($){if(!$)return;let I=$.match(/\d+/)?.[0];return I?vu(Number(I)):$}function dZ0($){if(!$)return;let I=$.match(/(\d+)$/);return I?Number(I[1]):void 0}function $G1($){let I=dZ0($);return I?vu(I):void 0}function vu($){return`#${String($).padStart(4,"0")}`}function IG1($,I){let U=wI($),Y={recordId:U.id,sourceDocumentSN:U.sourceDocumentSN,sourceDocumentId:U.sourceDocumentId,simulationBatchId:U.simulationBatchId,status:U.status,taskMode:U.taskMode,ruleSetVersionNumber:U.ruleSetVersionNumber,langfuseTraceId:U.langfuseTraceId,manualResult:U.humanResult,aiDecision:U.aiDecision,aiSummary:U.aiSummary,createdAt:U.createdAt};if(I.length===0)return Y;return nZ0(Y,I)}async function UG1($,I){if(I.recordId)return T4($,I.recordId);let Y=(await j$($,{limit:1,search:I.sourceDocumentSN??I.sourceDocumentId,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId})).records[0];if(!Y){let J=I.sourceDocumentSN?`sourceDocumentSN ${I.sourceDocumentSN}`:`sourceDocumentId ${I.sourceDocumentId}`;throw Error(`Approval run not found for ${J}`)}return T4($,Y.id)}function YG1($){return $.replace(/\/+$/,"")}function Q4($){return typeof $==="string"&&$.trim()?$:void 0}async function JG1($,I){let U=Math.min(100,Math.max(I.limit,20)),Y=[],J,Q=0;while(Q!I.sn||H.sourceDocumentSN===I.sn).filter((H)=>!I.batchId||H.sourceExtendData?.simulation_batch_id===I.batchId);if(Y.push(...q),K.records.length===0||J!==void 0&&Q>=J)break}return Y.sort((K,q)=>hZ0(q.createdAt)-hZ0(K.createdAt)),{total:J,scanned:Q,records:Y.slice(0,I.latest?1:I.limit)}}function hZ0($){if(typeof $==="number")return $;if(typeof $==="string"){let I=Date.parse($);return Number.isFinite(I)?I:0}return 0}async function Pu($,I){if(I.versionId)return P2($,I.versionId);let U=await R$($),Y=I.versionNumber?U.find((J)=>J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}function Ru($,I){let U=I?.trim().toLowerCase();if(!U)return $;return $.filter((Y)=>{return[Y.id,Y.sourceDocumentSN,Y.sourceDocumentId,Y.documentId,Y.sourceExtendData?._langfuseTraceId,Y.sourceExtendData?.simulation_batch_id,Y.status,Y.taskMode,Y.finalExecutionMode,Y.sourceSystem,Y.ruleSetVersionNumber,Y.ruleSetPublishedByName].some((Q)=>Tu(Q,U))||Eu(Y,U)})}function Tu($,I){if($===null||$===void 0)return!1;if(typeof $==="string"||typeof $==="number"||typeof $==="boolean")return String($).toLowerCase().includes(I);return!1}function Eu($,I,U=0){if(U>6)return!1;if(Tu($,I))return!0;if(!$||typeof $!=="object")return!1;if(Array.isArray($))return $.some((Y)=>Eu(Y,I,U+1));return Object.entries($).some(([Y,J])=>Tu(Y,I)||Eu(J,I,U+1))}function QG1($,I){let U=I?.trim().toLowerCase();if(!U)return $;return $.filter((Y)=>VI(Y)?.value.toLowerCase().includes(U))}function KG1($){return{...$,manualApprovalStatus:mZ0($.manualApprovalStatus,$.humanResult)}}function mZ0($,I){if($)return $;let U=I?.trim().toLowerCase();if(!U)return;if(["驳回","已驳回","拒绝","不通过","terminated","reject","rejected","denied"].includes(U))return"TERMINATED";return}async function uZ0($,I,U){let Y=Ru(I,U.query);if(!U.humanResult?.trim())return Y;let J=await Promise.all(Y.map(async(Q)=>{if(VI(Q))return Q;try{return await T4($,Q.id)}catch{return Q}}));return QG1(J,U.humanResult)}function qG1($){return{originalDocumentData:{path:"document",frontendLabel:"单据原始数据",description:"前端详情页展示的单据原始数据对象",id:$.document?.id??$.documentId,sourceDocumentSN:$.document?.sourceDocumentSN??$.sourceDocumentSN,sourceDocumentId:$.document?.sourceDocumentId??$.sourceDocumentId},aiDocumentFields:{path:"document.fields",frontendLabel:"AI 看的单据",description:"AI 审核实际读取的字段数组,即单据原始数据中的 fields",fieldCount:$.document?.fields?.length},aiDocument:{path:"document.fields",frontendLabel:"AI 看的单据",description:"兼容别名,等同于 aiDocumentFields",aliasOf:"aiDocumentFields",fieldCount:$.document?.fields?.length},sourceDocument:{path:"sourceExtendData.hosecloudViewUrl",description:"合思原始单据入口;详情响应中只有入口和源单据 ID,不包含完整原始单据 JSON",sourceSystem:$.sourceSystem,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,originalDocumentId:$.sourceExtendData?.original_document_id,viewUrl:$.sourceExtendData?.hosecloudViewUrl},aiResult:{path:"result",description:"AI 最终审核结构化结果"},aiAuditLog:{path:"pipelineData.logs",description:"AI 审核过程日志"},manualApproval:{path:"manualApprovalRecord",description:"人工审核结果、节点和驳回原因"}}}function VI($){let I=[["result",$.result],["pipelineData",$.pipelineData]];for(let[U,Y]of I){let J=Bu(Y,U);if(J)return J}return}function Bu($,I,U=0){if(U>8||$===null||$===void 0)return;if(Array.isArray($)){for(let Y=0;Y<$.length;Y+=1){let J=Bu($[Y],`${I}[${Y}]`,U+1);if(J)return J}return}if(typeof $!=="object")return;for(let[Y,J]of Object.entries($)){let Q=`${I}.${Y}`,K=Bu(J,Q,U+1);if(K)return K;if(xZ0(Y)||xZ0(Q)){let q=lZ0(J);if(q)return{value:q,path:Q}}}return}function xZ0($){let I=$.toLowerCase(),U=I.includes("human")||I.includes("manual")||I.includes("reviewer")||I.includes("operator")||$.includes("人工")||$.includes("人工审批")||$.includes("人工审核"),Y=I.includes("result")||I.includes("decision")||I.includes("outcome")||I.includes("conclusion")||I.includes("action")||$.includes("结果")||$.includes("结论")||$.includes("动作");return U&&Y}function lZ0($){if(typeof $==="string")return $.trim()||void 0;if(typeof $==="number"||typeof $==="boolean")return String($);if(!$||typeof $!=="object")return;let I=$;for(let U of["label","name","text","value","result","decision","outcome","status","action"]){let Y=lZ0(I[U]);if(Y)return Y}return}function HG1($,I){if(I.recordId&&$.id!==I.recordId)return!1;if(I.sourceDocumentSN&&$.sourceDocumentSN!==I.sourceDocumentSN)return!1;if(I.sourceDocumentId&&$.sourceDocumentId!==I.sourceDocumentId)return!1;return!0}function kZ0($,I){return $.reduce((U,Y)=>{let J=I(Y);return U[J]=(U[J]??0)+1,U},{})}function fZ0($,I){let U=oZ0($);if(!U)return;let Y=rZ0(U,I),J=Y.year,Q=(Y.month??"01").padStart(2,"0"),K=(Y.day??"01").padStart(2,"0");return`${J}-${Q}-${K}`}function bZ0($,I){let U=oZ0($);if(!U)return;let Y=rZ0(U,I),J=(Y.month??"01").padStart(2,"0"),Q=(Y.day??"01").padStart(2,"0"),K=(Y.hour??"00").padStart(2,"0"),q=(Y.minute??"00").padStart(2,"0"),H=(Y.second??"00").padStart(2,"0");return`${Y.year??"0000"}-${J}-${Q} ${K}:${q}:${H}`}function oZ0($){if($===void 0)return null;let I=new Date($);return Number.isNaN(I.getTime())?null:I}function rZ0($,I){return Object.fromEntries(new Intl.DateTimeFormat("en-CA",{timeZone:I,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts($).filter((U)=>U.type!=="literal").map((U)=>[U.type,U.value]))}import{writeFileSync as zG1}from"node:fs";class d$ extends Error{exitCode;nextAction;constructor($,I,U){super($);this.name="CliError",this.exitCode=I,this.nextAction=U}}class CD extends d${constructor($,I){super($,12,I);this.name="PayloadTooLargeError"}}function S4($,I){return new d$($,2,I)}function s8($,I){return new d$($,10,I)}function _D($){if($ instanceof d$)return{exitCode:$.exitCode,nextAction:$.nextAction};let I=$ instanceof Error?$.message:String($),U=GG1($);if(U===401||U===403||/(?:^|\s)(?:token|bearer|session) (?:expired|missing|invalid)/i.test(I))return{exitCode:11};if(/^(?:Usage:|Unknown (?:[a-z0-9_-]+ )?command|Invalid (?:number|boolean|command)|--json must|Missing required JSON field)/i.test(I))return{exitCode:2};if(/^Refusing to (?:clear|delete)|without --yes|without confirm=true/i.test(I))return{exitCode:10};return{exitCode:1}}function GG1($){if(!$||typeof $!=="object")return;let I=$.response;if(!I||typeof I!=="object")return;let U=I.status;return typeof U==="number"?U:void 0}function tZ0($){let I=[],U={},Y;for(let J=0;J<$.length;J+=1){let Q=$[J];if(!Q)continue;if(Q==="--json"){let K=$[J+1];if(!K)throw S4("--json requires a JSON object argument");try{Y=JSON.parse(K)}catch(q){throw S4(`Invalid JSON: ${q instanceof Error?q.message:String(q)}`)}J+=1;continue}if(Q.startsWith("-")){let K=Q.replace(/^-+/,"");if(K.includes("=")){let H=K.indexOf("="),G=K.slice(0,H),W=K.slice(H+1);U[G]=W;continue}let q=$[J+1];if(!q||q.startsWith("-"))U[K]=!0;else U[K]=q,J+=1;continue}I.push(Q)}return{command:I,options:U,json:Y}}function U$($){if($===void 0)return{};if(!$||typeof $!=="object"||Array.isArray($))throw S4("--json must be an object");return $}function g($){return typeof $==="string"?$:void 0}function m0($){if(typeof $!=="string")return;let I=Number($);if(!Number.isFinite(I))throw S4(`Invalid number: ${$}`);return I}function V6($){if(typeof $!=="string")return;let I=$.split(",").map((U)=>U.trim()).filter(Boolean);return I.length?I:void 0}function O0($){if($===void 0)return;if(typeof $==="boolean")return $;if($==="true")return!0;if($==="false")return!1;throw S4(`Invalid boolean: ${$}`)}function A7($,I){let U=m1($,I);if(!U)throw Error(`Missing required JSON field: ${I}`);return U}function m1($,I){let U=$[I];return typeof U==="string"&&U.trim()?U.trim():void 0}function aZ0($,I){let U=$[I];return typeof U==="number"&&Number.isFinite(U)?U:void 0}function ju($){return $.replace(/[^a-zA-Z0-9._-]/g,"_")}function sZ0($){let I=$.trim().toLowerCase();if(["stateful","state","有状态"].includes(I))return!0;if(["stateless","无状态"].includes(I))return!1;throw Error("Invalid config mode. Use stateful or stateless.")}function NH($){if($==="latest")return{latest:!0};let I=Number($);if(Number.isInteger(I)&&I>0)return{versionNumber:I};return{versionId:$}}function eZ0($){if(!$)return{};let I=NH($);if("latest"in I)return{ruleVersionScope:"version",latestRuleVersion:!0};if("versionNumber"in I)return{ruleVersionScope:"version",ruleVersionNumber:I.versionNumber};return{ruleVersionScope:"version",ruleVersionId:I.versionId}}function $z0($){if(!$)return{};let I=NH($);if("latest"in I)return{latestRuleVersion:!0};if("versionNumber"in I)return{ruleVersionNumber:I.versionNumber};return{ruleVersionId:I.versionId}}function Iz0($){if(!$)return{};let I=NH($);if("latest"in I)return{latest:!0};if("versionNumber"in I)return{versionNumber:I.versionNumber};return{versionId:I.versionId}}function Cu($){if(!$)return;let I=$.trim().toLowerCase().replace(/[\s-]+/g,"_"),Y={assisted:"assisted",辅助:"assisted",semi_automatic:"semi_automatic",半自动:"semi_automatic",fully_automatic:"fully_automatic",全自动:"fully_automatic"}[I];if(!Y)throw Error("Invalid Webhook mode. Use assisted, semi_automatic, or fully_automatic");return Y}function _u($){let I=m0($.autoApprovalRate??$["auto-approval-rate"]??$["approval-rate"]);if(I!==void 0&&(!Number.isInteger(I)||I<0||I>100))throw Error("Webhook auto approval rate must be an integer between 0 and 100");return I}function Su($){return O0($.showSecret)??O0($["show-secret"])}function MH($){let I=O0($.clearMaxFileSize??$["clear-max-file-size"])===!0,U=m0($.minFileSizeBytes??$["min-file-size-bytes"]??$.minFileSize??$["min-file-size"]),Y=m0($.maxFileSizeBytes??$["max-file-size-bytes"]??$.maxFileSize??$["max-file-size"]),J=V6($.allowedExtensions??$["allowed-extensions"]??$.extensions);if(U===void 0&&Y===void 0&&J===void 0&&!I)return;return{minFileSizeBytes:U,maxFileSizeBytes:I?null:Y,allowedExtensions:J}}var Yz0=[{area:"corps",title:"Enterprise and tenant management",description:"Manage enterprise configurations, environment modes, test bindings, and syncing.",commands:[{name:"list",summary:"List all configured enterprises",usage:["seal-use corps list [--corp ]"]},{name:"current",summary:"Show active enterprise in stateful mode",usage:["seal-use corps current [--corp ]"]},{name:"switch",summary:"Switch default active enterprise",usage:["seal-use corps switch "]},{name:"mark",summary:"Mark enterprise environment as production or test",usage:["seal-use corps mark --env [--confirm]"],options:[{flag:"--env ",description:"Target environment: 'production' or 'test' (required)"},{flag:"--confirm",description:"Confirm the environment update (required)"}],description:"Explicitly updates an enterprise's environment tag. Requires --confirm to prevent accidental changes."},{name:"bind-test",summary:"Bind a production enterprise to a test enterprise (1-to-1 association)",usage:["seal-use corps bind-test [--confirm] [--force]","seal-use corps bind-test --corp [--confirm] [--force]"],options:[{flag:"--confirm",description:"Explicitly confirm binding and tag test environment (required)"},{flag:"--force",description:"Force re-binding if the production enterprise is already bound"},{flag:"--corp ",description:"Specify production enterprise ID or name"}],description:"Establishes a strict 1-to-1 association between a production enterprise and a test enterprise. Automatically marks the test enterprise with environment 'test'."},{name:"unbind-test",summary:"Unbind a production and test enterprise association",usage:["seal-use corps unbind-test [] [--confirm]"],options:[{flag:"--confirm",description:"Explicitly confirm unbinding both sides (required)"},{flag:"--corp ",description:"Specify enterprise ID or name"}],description:"Removes the 1-to-1 test association from both the production enterprise and the test enterprise."},{name:"sync-test",summary:"Synchronize rules and preferences from production to test enterprise",usage:["seal-use corps sync-test [] [--dry-run] [--yes] [--version-name ]"],options:[{flag:"--dry-run",description:"Preview sync diff without making network mutations (default)"},{flag:"--yes",description:"Execute synchronization and publish new rule version on test enterprise"},{flag:"--version-name ",description:"Custom version name for published test rule version"},{flag:"--corp ",description:"Specify production enterprise ID or name"}],description:"Overwrites test enterprise decision preferences with production preferences, syncs production draft rules to test enterprise, and immediately publishes a new version on the test enterprise. Production rules remain safe in draft state."},{name:"add-hose",summary:"Add a Hose/Ekuaibao enterprise configuration",usage:[`seal-use corps add-hose --json '{"name":"企业名称","domain":"https://app.ekuaibao.com","appKey":"...","appSecurity":"...","proxyStaffBizId":"corpId:staffId"}'`]},{name:"add-seal",summary:"Add a native Seal enterprise configuration",usage:[`seal-use corps add-seal --json '{"sealUrl":"https://tenant.sealai.cc","token":"seal-bearer-token"}'`]},{name:"add-link",summary:"Import enterprise configuration from a Hose assistance link",usage:["seal-use corps add-link [--name ] [--overwrite]"]}]},{area:"rules",title:"Approval rules management",description:"Query, search, version, lint, import, and export approval audit rules.",commands:[{name:"count",summary:"Count total rules in current enterprise",usage:["seal-use rules count [--corp ]"]},{name:"list",summary:"List approval rules with optional pagination and summary",usage:["seal-use rules list [--summary] [--count] [--limit 20] [--offset 0] [--corp ]"],options:[{flag:"--summary",description:"Output compact summary fields (id, code, strictness, scope)"},{flag:"--limit ",description:"Number of rules to fetch (default: 20)"},{flag:"--offset ",description:"Offset index for pagination"},{flag:"--full",description:"Allow large payloads beyond standard size limits"}]},{name:"clear",summary:"Clear all draft rules from enterprise",usage:["seal-use rules clear [--corp ] [--dry-run|--yes]"]},{name:"versions",summary:"List published rule versions",usage:["seal-use rules versions [--corp ]"]},{name:"version",summary:"Inspect a specific rule version",usage:["seal-use rules version [--corp ]"]},{name:"get",summary:"Get single rule by code or record ID",usage:["seal-use rules get --corp --version --code '#0038'","seal-use rules get --corp --record-id --runtime-id rule-205"]},{name:"search",summary:"Search rules by keyword",usage:["seal-use rules search [--version ] [--maxResults 20] [--corp ]"]},{name:"lint",summary:"Lint rule text or rule file using builtin or custom linter",usage:["seal-use rules lint [--file ] [--linter ] [--min-score ] [--corp ]"]},{name:"pull",summary:"Export rules to local JSON file",usage:["seal-use rules pull [--out ] [--corp ]"]},{name:"push",summary:"Push rules from local JSON file to enterprise draft space",usage:["seal-use rules push --file [--mode replace|incremental] [--yes] [--corp ]"]}]},{area:"webhook",title:"Webhook integrations and material packs",description:"Manage incoming audit webhooks and upload offline simulation material packs.",commands:[{name:"ready",summary:"Check readiness of webhook integration and material pack",usage:["seal-use webhook ready [<材料包.zip>] [--webhook ] [--corp ]"]},{name:"status",summary:"Check status of webhook integration",usage:["seal-use webhook status [<材料包.zip>] [--corp ]"]},{name:"list",summary:"List registered webhook endpoints",usage:["seal-use webhook list [--query ] [--show-secret] [--corp ]"]},{name:"get",aliases:["find"],summary:"Get webhook endpoint details",usage:["seal-use webhook get|find [--show-secret] [--corp ]"]},{name:"add",summary:"Register a new webhook endpoint",usage:["seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size 500] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]"]},{name:"update",summary:"Update an existing webhook endpoint",usage:["seal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]"]},{name:"delete",summary:"Delete a webhook endpoint",usage:["seal-use webhook delete [--yes|--dry-run] [--corp ]"]},{name:"material-pack preview",summary:"Inspect and validate a material pack ZIP or Excel sheet",usage:["seal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--corp ]"]},{name:"material-pack push",summary:"Upload and push a material pack to webhook endpoint",usage:["seal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook ] [--corp ]"]},{name:"replay",summary:"Replay an existing approval record into a Webhook channel",usage:["seal-use webhook replay [--webhook ] [--sn-suffix ] [--dry-run] [--corp ]","seal-use webhook replay --sn [--webhook ] [--source-corp ] [--corp ]"],options:[{flag:"",description:"Approval run record ID to replay"},{flag:"--sn ",description:"Lookup approval record by source document SN if recordId not given"},{flag:"--webhook ",description:"Target Webhook integration (auto-locks if only one exists)"},{flag:"--source-corp ",description:"Source enterprise where the approval record resides (default: active)"},{flag:"--sn-suffix ",description:"Optional suffix appended to documentSN and documentId"},{flag:"--sn-prefix ",description:"Optional prefix prepended to documentSN and documentId"},{flag:"--dry-run",description:"Generate and output Webhook payload JSON without sending HTTP request"}],description:"Extracts structured form fields from any historical approval record (Webhook or Hose source), sanitizes field types, and pushes a new document to the target Webhook channel."}]},{area:"approval-runs",title:"Approval runs and audit execution records",description:"Inspect live and historical AI approval decisions, cited rules, and attachments.",commands:[{name:"summary",summary:"Daily summary of approval runs",usage:["seal-use approval-runs summary [--date YYYY-MM-DD] [--timezone Asia/Shanghai] [--corp ]"]},{name:"stats",summary:"Statistical aggregation of approval run metrics",usage:["seal-use approval-runs stats [--since 3months] [--dedupe-by sourceDocumentSN|sourceDocumentId|id] [--corp ]"]},{name:"count",summary:"Count approval runs filtered by status",usage:["seal-use approval-runs count [--status APPROVED] [--corp ]"]},{name:"export",summary:"Export approval run audit records to Excel workbook",usage:["seal-use approval-runs export [--start ] [--end ] [--limit ] [--downloads] [--out ] [--corp ]"]},{name:"list",aliases:["search"],summary:"Search approval records by keyword, dates, or decision status",usage:["seal-use approval-runs list|search [--query text] [--humanResult 驳回] [--manualApprovalStatus TERMINATED] [--startDate ms] [--endDate ms] [--limit 20] [--includeBridge true] [--corp ]"]},{name:"pick",summary:"Locate single approval run by document SN",usage:["seal-use approval-runs pick --sn [--batch ] [--latest] [--fields recordId,status,aiDecision] [--corp ]"]},{name:"get",summary:"Get detailed approval record payload",usage:["seal-use approval-runs get [--summary] [--fields metadata|document.fields,result.summary] [--full] [--output-file file.json] [--corp ]"]},{name:"cited-rules",summary:"Inspect rules cited by AI in an approval decision",usage:["seal-use approval-runs cited-rules [--corp ]"]},{name:"document-summary",summary:"Inspect parsed source document summary",usage:["seal-use approval-runs document-summary [--corp ]"]},{name:"attachments",summary:"Inspect and list attachments for approval run",usage:["seal-use approval-runs attachments [--summary] [--corp ]","seal-use approval-runs attachments download [--all] [--name ] [--out-dir ] [--corp ]"]},{name:"result",summary:"Get decision result for an approval run",usage:["seal-use approval-runs result [--summary] [--corp ]"]},{name:"url",summary:"Get web console URL for approval run",usage:["seal-use approval-runs url [--corp ]","seal-use approval-runs url [--corp ]","seal-use approval-runs url --sourceDocumentSN B26022501 [--corp ]"]},{name:"bridge",summary:"Inspect browser bridge integration payload",usage:["seal-use approval-runs bridge [--sourceDocumentSN B26001887] [--corp ]"]},{name:"replay",summary:"Replay approval run record into a Webhook integration",usage:["seal-use approval-runs replay [--webhook ] [--sn-suffix ] [--dry-run] [--corp ]","seal-use approval-runs replay --sn [--webhook ] [--source-corp ] [--corp ]"],options:[{flag:"",description:"Approval run record ID"},{flag:"--sn ",description:"Lookup approval record by source document SN"},{flag:"--webhook ",description:"Target Webhook integration"},{flag:"--source-corp ",description:"Source enterprise where the approval record resides"},{flag:"--sn-suffix ",description:"Optional suffix appended to documentSN"},{flag:"--dry-run",description:"Preview payload without sending"}]}]},{area:"simulation",title:"Simulation testing engine",description:"Execute and analyze offline or HoseCloud batch simulations against approval rules.",commands:[{name:"batch-records",summary:"Fetch records for a simulation batch",usage:["seal-use simulation batch-records [--corp ]"]},{name:"create",summary:"Trigger a new simulation batch",usage:['seal-use simulation create --mode hosecloud --flow-ids "B26017701,B26022501" [--reject-node 财务] [--thinking-depth default|medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--no-wait] [--corp ]',"seal-use simulation create --mode material_pack --package-ids [--template-id conference_reimbursement_v1] [--schema-config file.json] [--corp ]",'seal-use simulation create --source-system weaver --request-ids "req-01,req-02" [--corp ]']},{name:"status",summary:"Check current progress of a simulation batch",usage:["seal-use simulation status [--corp ]"]},{name:"wait",summary:"Wait synchronously for simulation batch to finish",usage:["seal-use simulation wait [--timeout 10m] [--poll-interval 2s] [--corp ]"]},{name:"clean",summary:"Clean simulation batch records",usage:["seal-use simulation clean [--corp ]"]},{name:"specifications",summary:"Query simulation specifications",usage:["seal-use simulation specifications [--integration ] [--corp ]"]},{name:"approval-definitions",summary:"Query simulation approval definitions",usage:["seal-use simulation approval-definitions [--corp ]"]},{name:"list",summary:"List recent simulation batches",usage:["seal-use simulation list [--limit 50] [--corp ]"]},{name:"get",summary:"Get details for simulation batch",usage:["seal-use simulation get [--corp ]"]},{name:"templates",summary:"List available simulation templates",usage:["seal-use simulation templates [--corp ]"]},{name:"integrations",summary:"List available simulation integrations",usage:["seal-use simulation integrations [--corp ]"]},{name:"package-upload",summary:"Upload a simulation material package",usage:["seal-use simulation package-upload <材料包.zip> [--corp ]"]}]},{area:"deploy",title:"Deployment and cloud synchronization",description:"Manage HoseCloud integration configurations and synchronization.",commands:[{name:"hosecloud requirements",summary:"Check HoseCloud deployment requirements",usage:["seal-use deploy hosecloud requirements [--corp ]"]},{name:"hosecloud list",summary:"List HoseCloud deployment targets",usage:["seal-use deploy hosecloud list [--corp ]"]},{name:"hosecloud get",summary:"Get HoseCloud deployment details",usage:["seal-use deploy hosecloud get [--corp ]"]},{name:"hosecloud status",summary:"Check HoseCloud deployment status",usage:["seal-use deploy hosecloud status [--corp ]"]},{name:"hosecloud configure",summary:"Configure HoseCloud deployment settings",usage:["seal-use deploy hosecloud configure --json '{...}' [--dry-run] [--corp ]"]},{name:"hosecloud sync",summary:"Synchronize HoseCloud rules and definitions",usage:["seal-use deploy hosecloud sync [--corp ]"]}]},{area:"preference",title:"Audit preferences and thinking depth",description:"Manage AI decision preferences, strictness, and thinking depth policies.",commands:[{name:"get",summary:"Get current decision preference configuration",usage:["seal-use preference get [--corp ]"]},{name:"decision update",summary:"Update decision preference rules",usage:[`seal-use preference decision update --json '{"explicitApprove":"..."}' [--dry-run] [--corp ]`]},{name:"thinking-depth set",summary:"Set default thinking depth",usage:["seal-use preference thinking-depth set --default [--dry-run] [--corp ]"]},{name:"thinking-depth policies list",summary:"List thinking depth policies",usage:["seal-use preference thinking-depth policies list [--corp ]"]},{name:"thinking-depth policies upsert",summary:"Upsert a thinking depth policy",usage:["seal-use preference thinking-depth policies upsert --json '{...}' [--dry-run] [--corp ]"]},{name:"thinking-depth policies remove",summary:"Remove a thinking depth policy",usage:["seal-use preference thinking-depth policies remove [--dry-run] [--corp ]"]}]},{area:"config",title:"CLI and global workspace configuration",description:"Manage configuration paths, stateful/stateless mode, test directory, and rule linter.",commands:[{name:"paths",summary:"Display active configuration file and directory paths",usage:["seal-use config paths"]},{name:"get",aliases:["status"],summary:"Display current global configuration",usage:["seal-use config get"]},{name:"mode",summary:"Configure stateful or stateless CLI operating mode",usage:["seal-use config mode [--corp ]"]},{name:"test-dir",aliases:["test-enterprises-dir"],summary:"Set or clear global test enterprises directory",usage:["seal-use config test-dir [|--clear]"]},{name:"lint",summary:"Configure automatic rule linter status and thresholds",usage:["seal-use config lint [status|enable|disable] [--linter ] [--min-score ]"]}]},{area:"auth",title:"Authentication and session diagnostics",description:"Diagnose upstream token status and generate provisional assistance links.",commands:[{name:"diagnose",summary:"Diagnose auth session and platform connectivity",usage:["seal-use auth diagnose [--corp ]"]},{name:"hose-link",summary:"Generate Hose third-party assistance link",usage:["seal-use auth hose-link [--corp ] [--expire 7200]"]}]},{area:"delegation",title:"Delegation tokens",description:"Manage Seal user delegation tokens and temporary access credentials.",commands:[{name:"list",summary:"List active delegation tokens",usage:["seal-use delegation list [--corp ]"]},{name:"create",summary:"Create a new delegation token",usage:["seal-use delegation create [--note ] [--from-link ] [--corp ]"]},{name:"revoke",summary:"Revoke an existing delegation token",usage:["seal-use delegation revoke [--corp ]"]}]},{area:"users",title:"User administration",description:"Manage tenant users, phone credentials, and passwords.",commands:[{name:"create",summary:"Create a new tenant user",usage:["seal-use users create --name --phone [--dept ] [--corp ]"]},{name:"search",summary:"Search tenant users by name or phone",usage:["seal-use users search [--corp ]"]},{name:"delegation",summary:"Create delegation token for a specific user",usage:["seal-use users delegation [--note ] [--corp ]"]},{name:"reset-password",summary:"Reset user password",usage:["seal-use users reset-password [--corp ]"]},{name:"get",summary:"Get user details",usage:["seal-use users get [--corp ]"]},{name:"delete",summary:"Delete user",usage:["seal-use users delete [--corp ]"]}]},{area:"contacts",title:"Contacts directory",description:"Query organizational departments, child hierarchies, and user mappings.",commands:[{name:"departments",summary:"List organizational departments",usage:["seal-use contacts departments [] [--corp ]"]},{name:"children",summary:"List child departments",usage:["seal-use contacts children [--corp ]"]},{name:"users",summary:"List users in department",usage:["seal-use contacts users [--corp ]"]},{name:"sync-time",summary:"Get latest contacts synchronization time",usage:["seal-use contacts sync-time [--corp ]"]}]},{area:"data",title:"Expense and invoice data records",description:"Search raw historical expense and invoice data entries.",commands:[{name:"expenses",summary:"Search raw expense items",usage:["seal-use data expenses [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ] [--corp ]"]},{name:"invoices",summary:"Search raw invoice records",usage:["seal-use data invoices [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ] [--corp ]"]}]},{area:"llm",title:"LLM configuration",description:"Query LLM providers and configuration settings.",commands:[{name:"config",summary:"Get active LLM configuration",usage:["seal-use llm config [--corp ]"]},{name:"providers",summary:"List available LLM providers",usage:["seal-use llm providers [--corp ]"]}]},{area:"permissions",title:"Tenant permissions",description:"Inspect available and configured permissions.",commands:[{name:"available",summary:"List available permissions",usage:["seal-use permissions available [--corp ]"]},{name:"configs",summary:"List active permission configurations",usage:["seal-use permissions configs [--corp ]"]}]},{area:"billing",title:"Subscription and billing plans",description:"Query billing status, feature entitlements, and plan limits.",commands:[{name:"status",summary:"Query current billing and subscription status",usage:["seal-use billing status [--corp ]"]},{name:"plans",summary:"Query available billing plans",usage:["seal-use billing plans [--corp ]"]},{name:"features",summary:"Query billing feature toggles",usage:["seal-use billing features [--corp ]"]}]},{area:"analytics",title:"Audit analytics and insights",description:"Query high-level audit analytics and insights.",commands:[{name:"insight",summary:"Query AI audit insights and trends",usage:["seal-use analytics insight [--start-date ] [--end-date ] [--limit ] [--corp ]"]}]},{area:"context",title:"Knowledge context and documents",description:"Query uploaded knowledge context and documents.",commands:[{name:"",summary:"Inspect knowledge context documents",usage:["seal-use context [--ruleVersion ] [--documentLimit 50] [--corp ]"]}]},{area:"source",title:"Data source configurations",description:"Inspect enterprise source system configuration.",commands:[{name:"config",summary:"Inspect source configuration",usage:["seal-use source config [--corp ]"]}]},{area:"tool",title:"Direct low-level tool invocation",description:"Execute individual Seal tools directly.",commands:[{name:"",summary:"Invoke a tool directly",usage:[`seal-use tool [--corp ] [--json '{"key":"value"}']`]}]},{area:"tools",title:"Available tools listing",description:"List all executable domain tools.",commands:[{name:"list",summary:"List all available domain tools",usage:["seal-use tools list"]}]},{area:"update",title:"CLI self-update and release changelogs",description:"Check for new releases, perform self-updates, and view changelogs.",commands:[{name:"",summary:"Update seal-use to latest or target version",usage:["seal-use update [--check] [--force] [--version ]","seal-use update check","seal-use update changelog [--limit ]","seal-use changelog [--limit ]"]}]},{area:"probe",title:"Enterprise connectivity probe",description:"Probe upstream Hose and Seal HTTP connectivity and token validity.",commands:[{name:"",summary:"Run connectivity probe",usage:["seal-use probe []"]}]},{area:"mcp",title:"Model Context Protocol (MCP) server",description:"Run standalone or stdio MCP server for agent harnesses.",commands:[{name:"",summary:"Run MCP server or output MCP config",usage:["seal-use mcp","seal-use mcp config","seal-use mcp-config"]}]},{area:"skill",title:"Agent skill management",description:"Install, dump, or inspect agent skills.",commands:[{name:"dump",summary:"Dump embedded skill markdown",usage:["seal-use skill dump"]},{name:"install",summary:"Install skill to active workspace",usage:["seal-use skill install [--dir |--local]"]},{name:"status",summary:"Check skill installation status",usage:["seal-use skill status"]}]},{area:"http",title:"HTTP server",description:"Run interactive HTTP server.",commands:[{name:"",summary:"Start HTTP daemon",usage:["seal-use http [--port 8787] [--host 127.0.0.1]","seal-use serve [--port 8787]"]}]},{area:"service",title:"Background HTTP service lifecycle",description:"Start, stop, restart, inspect, and read logs from the standalone seal-use HTTP service daemon.",commands:[{name:"start",summary:"Start the background service daemon",usage:["seal-use service start [--port 8787] [--host 127.0.0.1]"]},{name:"stop",summary:"Stop the background service daemon",usage:["seal-use service stop"]},{name:"restart",summary:"Restart the background service daemon",usage:["seal-use service restart [--port 8787] [--host 127.0.0.1]"]},{name:"status",summary:"Show service daemon status",usage:["seal-use service status"]},{name:"logs",summary:"Print recent service daemon logs",usage:["seal-use service logs [--lines 50]"]},{name:"run",summary:"Run the service in the foreground",usage:["seal-use service run [--port 8787] [--host 127.0.0.1]"]}]},{area:"stop",title:"Stop the background service",description:"Shortcut for stopping the background seal-use HTTP service daemon.",commands:[{name:"",summary:"Stop the background service daemon",usage:["seal-use stop"]}]},{area:"openapi",title:"OpenAPI specification",description:"Output embedded OpenAPI JSON specification.",commands:[{name:"",summary:"Print OpenAPI schema",usage:["seal-use openapi"]}]}];function Jz0($){let I=Boolean($.options.help||$.options.h);if(!$.command.length)return{isHelp:!0,target:[]};if($.command[0]==="help")return{isHelp:!0,target:$.command.slice(1)};let U=$.command.indexOf("help");if(U!==-1)return{isHelp:!0,target:$.command.filter((J,Q)=>Q!==U)};if(I)return{isHelp:!0,target:[...$.command]};return{isHelp:!1,target:[]}}function Qz0($=[]){if(!$.length)return Uz0();let I=$[0];if(!I)return Uz0();let U=$.slice(1),Y=WG1(I),J=Yz0.find((q)=>q.area===Y);if(!J)throw S4(`Unknown command: ${$.join(" ")}. Run 'seal-use help' for available commands.`);if(!U.length)return ZG1(J);let Q=U.join(" ").toLowerCase(),K=wG1(J,Q,U);if(!K)throw S4(`Unknown ${J.area} command: ${U.join(" ")}. Run 'seal-use ${J.area} --help' for available commands.`);return VG1(J,K)}function WG1($){let I=$.toLowerCase();if(I==="corp")return"corps";if(I==="webhooks")return"webhook";if(I==="preferences")return"preference";if(I==="changelog")return"update";if(I==="serve")return"http";if(I==="mcp-config")return"mcp";if(I==="server")return"mcp";return I}function wG1($,I,U){let Y=$.commands.find((K)=>{if(!K.name)return!1;if(K.name.toLowerCase()===I)return!0;if(K.aliases?.some((q)=>q.toLowerCase()===I))return!0;return!1});if(Y)return Y;let J=U[0]?.toLowerCase();if(!J)return;return $.commands.find((K)=>{if(!K.name)return!1;if(K.name.toLowerCase()===J)return!0;if(K.aliases?.some((q)=>q.toLowerCase()===J))return!0;return!1})}function VG1($,I){let U=[],Y=I.name?`seal-use ${$.area} ${I.name}`:`seal-use ${$.area}`,J=I.summary?`${Y} - ${I.summary}`:Y;U.push(J),U.push(""),U.push("Usage:");for(let Q of I.usage)U.push(` ${Q}`);if(I.options&&I.options.length>0){U.push(""),U.push("Options:");let Q=Math.max(...I.options.map((K)=>K.flag.length));for(let K of I.options)U.push(` ${K.flag.padEnd(Q+2)} ${K.description}`)}if(I.description)U.push(""),U.push("Description:"),U.push(` ${I.description}`);return U.join(` -`)}function ZG1($){let I=[];if(I.push(`seal-use ${$.area} - ${$.title}`),$.description)I.push($.description);I.push(""),I.push("Usage:");for(let U of $.commands)for(let Y of U.usage)I.push(` ${Y}`);if($.commands.some((U)=>U.name))I.push(""),I.push(`Run 'seal-use ${$.area} --help' for details on a specific command.`);return I.join(` +`);let Z=Mu(H.document,G,W),V=await fetch(`${J}/api/v1/integrations/webhook/${encodeURIComponent(Q)}/document`,{method:"POST",headers:{"Content-Type":"application/json",...HH({webhookId:Q,...Z},U.secret)},body:JSON.stringify(Z)});if(!V.ok)throw Error(`Webhook 单据推送失败 ${V.status}: ${await V.text()}`);K.push({documentId:Z.documentId,document:Z,pushResult:await V.json()}),process.stderr.write(`✓ 单据推送成功: ${Z.documentId} +`)}return{warnings:[],results:K}}function WI($){return{fileBuffer:CH1($),fileName:$.split(/[\\\/]/).pop()??"material-pack.zip"}}import{existsSync as yH1}from"node:fs";async function AD($,I,U={}){let J=O4().stateful?"stateful":"stateless",Q="ok",K,q,H;try{let A=await G$($);H={id:A.user.id,name:A.user.name,isAdmin:A.user.isAdmin},q={id:A.tenant.id,name:A.tenant.name,tenantSlug:A.tenant.tenantSlug,corporationName:A.tenant.hoseCorpConfig?.corporationName}}catch(A){Q="error",K=A instanceof Error?A.message:String(A)}let G=[];if(Q==="ok")try{G=await w5($,I.seal.endpoints.approvalStylePreferences)}catch(A){Q="error",K=`读取 Webhook 配置失败: ${A instanceof Error?A.message:String(A)}`}let W=G.length===1,w=G.map((A)=>({id:A.id,name:A.name,mode:A.mode,incomingDocumentWebhookUrl:A.incomingDocumentWebhook.url,outgoingResultWebhookUrl:A.outgoingResultWebhook,autoApprovalRate:A.autoApprovalRate,...W?{isDefault:!0}:{}})),Z=W?{id:G[0].id,name:G[0].name,mode:G[0].mode}:null,V=U.webhook?M9(G,U.webhook):W?G[0]:void 0,X;if(U.filePath)if(!yH1(U.filePath))X={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[`文件不存在: ${U.filePath}`]};else try{let A=WI(U.filePath),R=await GI(A.fileBuffer,A.fileName,V?.materialPackFilePolicy);X={valid:!0,filePath:U.filePath,fileName:A.fileName,documentCount:R.documents.length,warnings:R.warnings}}catch(A){X={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[A instanceof Error?A.message:String(A)]}}let L=X?X.valid:!0,D=Q==="ok"&&w.length>0&&L,F=J==="stateful"?"":` --corp ${I.id}`,P="",T="";if(Q!=="ok")T=`凭证鉴权异常: ${K}`,P=`seal-use auth diagnose${F}`;else if(w.length===0)T="当前企业尚未配置任何 Webhook 集成通道",P=`seal-use webhook add --name "默认入站通道" --result-url "https://your-domain.com/callback"${F}`;else if(X&&!X.valid)T=`材料包预检失败: ${X.errors?.join("; ")}`,P=`seal-use webhook material-pack preview ${X.filePath}${F}`;else{T=W?"所有通道正常,已自动锁定唯一 Webhook 通道,等待载入":`所有通道正常,检测到 ${w.length} 个 Webhook 通道,等待载入`;let A=X?.filePath??"<材料包.zip>",R=W?"":` --webhook ${Z?Z.id:""}`;P=`seal-use webhook material-pack push ${A}${R}${F}`}return{ready:D,corp:{id:I.id,name:I.name,sourceType:I.source.type,tenant:q,user:H},stateMode:J,authStatus:Q,authError:K,activeWebhooks:w,defaultWebhook:Z,materialPack:X,statusMessage:T,nextAction:P}}var OH=[{name:"seal_whoami",description:"查询当前 Seal 用户身份及租户信息",parameters:z.object({}),handler:async($)=>G$($)},{name:"seal_session_get",description:"查询当前 Seal Bearer session、用户和过期时间",parameters:z.object({}),handler:async($)=>Pm($)},{name:"seal_delegation_list",description:"查询当前 Seal 租户下的授权链接 (Delegation) 列表",parameters:z.object({}),handler:async($)=>mm($)},{name:"seal_delegation_create",description:"创建新的 Seal 授权链接 (Delegation)",parameters:z.object({note:z.string().optional().describe("授权链接的备注或说明信息")}),handler:async($,I)=>EU($,I)},{name:"seal_delegation_revoke",description:"撤销/废除指定的 Seal 授权链接 (Delegation)",parameters:z.object({tokenId:z.string().describe("授权链接 ID (delegation record ID)")}),handler:async($,I)=>lm($,I.tokenId)},{name:"seal_user_create",description:"创建本地 Seal 用户,生成并返回初始随机密码",parameters:z.object({name:z.string().describe("用户姓名"),phone:z.string().describe("手机号码 (例如 13300001111 或 +8613300001111)"),permissions:z.array(z.string()).optional().describe("权限列表,默认为 []"),departmentIds:z.array(z.string()).optional().describe("关联部门 ID 数组")}),handler:async($,I)=>om($,I)},{name:"seal_user_reset_password",description:"重置指定 Seal 用户的默认/随机密码,并返回生成的新密码",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>UB($,I.userId)},{name:"seal_user_get",description:"获取指定 Seal 用户的详细信息",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>dw($,I.userId)},{name:"seal_user_search",description:"按姓名、手机号或邮箱搜索 Seal 成员用户列表",parameters:z.object({keyword:z.string().optional().describe("搜索关键词(姓名、手机号、邮箱等),不传或传空字符串可列出租户成员")}),handler:async($,I)=>mw($,I.keyword??"")},{name:"seal_user_delete",description:"删除指定 Seal 本地用户",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>Ql($,I.userId)},{name:"seal_user_activate",description:"启用/激活已离职的 Seal 用户账号",parameters:z.object({userId:z.string().describe("用户 ID (_id)")}),handler:async($,I)=>YB($,I.userId)},{name:"seal_user_delegation_create",description:"为指定 Seal 用户(按用户ID、手机号或姓名)重置密码登录并生成其专属授权链接 (Delegation)",parameters:z.object({userIdOrPhone:z.string().describe("目标用户 ID、手机号或姓名"),note:z.string().optional().describe("授权链接备注信息")}),handler:async($,I,U)=>Kl($,I,(Y)=>fd(U.corp,Y),U.corp)},{name:"seal_contacts_departments_root_list",description:"列出当前 Seal 租户通讯录的顶级部门",parameters:z.object({}),handler:async($)=>rm($)},{name:"seal_contacts_department_get",description:"获取指定通讯录部门的详细信息",parameters:z.object({departmentId:z.string().describe("部门 ID")}),handler:async($,I)=>tm($,I.departmentId)},{name:"seal_contacts_department_children_list",description:"列出指定通讯录部门的直接子部门",parameters:z.object({departmentId:z.string().describe("部门 ID")}),handler:async($,I)=>am($,I.departmentId)},{name:"seal_contacts_department_users_list",description:"列出指定通讯录部门下的用户",parameters:z.object({departmentId:z.string().describe("部门 ID")}),handler:async($,I)=>sm($,I.departmentId)},{name:"seal_contacts_last_sync_time_get",description:"查询通讯录最后同步时间",parameters:z.object({}),handler:async($)=>em($)},{name:"seal_insight_stats_get",description:"查询智能洞察风险标签统计及分析状态",parameters:z.object({startDate:z.string().optional().describe("统计开始时间(ISO 8601)"),endDate:z.string().optional().describe("统计结束时间(ISO 8601)"),limit:z.number().int().positive().max(100).optional().describe("最多返回的风险标签数量")}),handler:async($,I)=>$l($,I)},{name:"seal_expenses_list",description:"分页查询费用明细",parameters:z.object({offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),startDate:z.string().optional().describe("开始时间"),endDate:z.string().optional().describe("结束时间"),search:z.string().optional().describe("搜索费用类型、描述或金额")}),handler:async($,I)=>Ul($,I)},{name:"seal_invoices_list",description:"分页查询进项发票",parameters:z.object({offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),startDate:z.string().optional().describe("开始时间"),endDate:z.string().optional().describe("结束时间"),search:z.string().optional().describe("搜索发票号码或销售方")}),handler:async($,I)=>Yl($,I)},{name:"seal_simulation_feishu_approval_definitions_list",description:"列出飞书模拟测试可用的审批定义,便于选择 approvalCode",parameters:z.object({}),handler:async($)=>{let I=await Jl($);return{count:I.length,approvalDefinitions:I}}},{name:"seal_llm_config_get",description:"查询当前 Seal 租户的大模型 (LLM) 配置",parameters:z.object({}),handler:async($)=>ql($)},{name:"seal_llm_providers_list",description:"查询支持的大模型 (LLM) 供应商与配置属性字段",parameters:z.object({}),handler:async($)=>Hl($)},{name:"seal_permissions_available_list",description:"查询系统可选权限清单(如超级管理员、智能审核管理、数据管理等)",parameters:z.object({}),handler:async($)=>Gl($)},{name:"seal_permissions_configs_list",description:"查询当前租户已绑定的权限配置",parameters:z.object({}),handler:async($)=>Wl($)},{name:"seal_billing_status_get",description:"查询当前 Seal 租户的订阅状态与各功能额度(AI审批、审核规则、知识文档等)",parameters:z.object({}),handler:async($)=>wl($)},{name:"seal_billing_plans_list",description:"查询系统支持的订阅套餐列表",parameters:z.object({}),handler:async($)=>Vl($)},{name:"seal_billing_features_list",description:"查询系统支持的功能特性定义列表",parameters:z.object({}),handler:async($)=>Zl($)},{name:"seal_approval_rules_list",description:"列出 Seal 当前草稿审批规则;返回的 code 属于草稿编号体系,发布版本可能重新编码;支持 countOnly、fields、limit 以避免返回规则正文",parameters:z.object({countOnly:z.boolean().optional().describe("只返回规则数量,不返回规则列表"),fields:z.array(z.enum(["id","code","tenantId","status","strictness","scope","createdAt","updatedAt","description"])).optional().describe("只返回指定字段;不传则返回完整规则"),limit:z.number().int().nonnegative().optional().describe("最多返回多少条规则;0 可配合 fields 或 countOnly 只取数量"),offset:z.number().int().nonnegative().optional().describe("跳过前多少条规则")}),handler:async($,I)=>{let U=await _6($);return xH1(U,I)}},{name:"seal_approval_rules_clear",description:"清空 Seal 当前草稿审批规则;用于测试环境导入规则前重置草稿规则集",parameters:z.object({dryRun:z.boolean().optional().describe("只预览将删除的规则数量,不执行删除"),recode:z.boolean().optional().describe("删除后尝试重新编排规则编号;失败会作为 warning 返回")}),handler:async($,I,U)=>{let Y=await _6($);if(I.dryRun)return{...a8(U,"api/v1/rules",Y.rules,[],Y.rules.length),corpId:U.corp.id,corpName:U.corp.name,dryRun:!0,beforeCount:Y.rules.length,deleted:0,afterCount:Y.rules.length,hasPendingDeletes:Y.hasPendingDeletes};let J=[],Q=0;for(let G of Y.rules)try{await BU($,G.id),Q+=1}catch(W){J.push({ruleId:G.id,error:W instanceof Error?W.message:String(W)})}let K=[],q;if(Q>0&&I.recode!==!1){if(q=await ow($),q&&typeof q==="object"&&"ok"in q&&q.ok!==!0)K.push("batch-recode did not complete; current rules were still deleted")}let H=await _6($);return{corpId:U.corp.id,corpName:U.corp.name,dryRun:!1,beforeCount:Y.rules.length,deleted:Q,failed:J,afterCount:H.rules.length,hasPendingDeletes:H.hasPendingDeletes,warnings:K,recode:q}}},{name:"seal_approval_rule_create",description:"新建 Seal 草稿审批规则",parameters:z.object({description:z.string().describe("规则描述"),scope:z.string().describe("适用场景"),strictness:z.enum(["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]).describe("严格程度")}),handler:async($,I)=>A2($,I)},{name:"seal_approval_rule_update",description:"更新 Seal 草稿审批规则",parameters:z.object({ruleId:z.string().describe("规则 ID"),description:z.string().optional(),scope:z.string().optional(),strictness:z.enum(["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]).optional()}),handler:async($,I)=>{let{ruleId:U,...Y}=I,J=await tE($,U,Y);if(I.description)try{let Q=O4();if(Q.lint?.enabled){let K=await Eh(Q.lint.activeLinter),q=await Bh({id:U,description:I.description},K);if(q.issues.length>0){console.error(`⚠️ [Linter 质检提醒] 规则质量评分: ${q.score}/100 (发现 ${q.issues.length} 处潜在风险):`);for(let H of q.issues)if(console.error(` • [${H.level.toUpperCase()}] ${H.message}${H.snippet?` ("${H.snippet}")`:""}`),H.suggestion)console.error(` \uD83D\uDC49 建议: ${H.suggestion}`)}}}catch{}return J}},{name:"seal_approval_rule_delete",description:"删除 Seal 草稿审批规则",parameters:z.object({ruleId:z.string().describe("规则 ID")}),handler:async($,I)=>{return await BU($,I.ruleId),{success:!0}}},{name:"seal_approval_rule_versions_list",description:"列出 Seal 已发布审批规则版本摘要,不展开每个版本的规则快照",parameters:z.object({}),handler:async($)=>{let I=await R$($);return{count:I.length,latest:I[0]?Au(I[0]):void 0,versions:I.map(Au)}}},{name:"seal_approval_rule_version_get",description:"获取指定 Seal 已发布审批规则版本详情,包含该版本的规则快照",parameters:z.object({versionId:z.string().optional().describe("规则版本 ID"),versionNumber:z.number().int().positive().optional().describe("规则版本号"),latest:z.boolean().optional().describe("为 true 时获取最新版本")}),handler:async($,I)=>{if(I.versionId)return P2($,I.versionId);let U=await R$($),Y=I.versionNumber?U.find((J)=>J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}},{name:"seal_approval_rule_version_publish",description:"发布 Seal 草稿审批规则为新版本",parameters:z.object({versionName:z.string().describe("版本名称")}),handler:async($,I)=>T2($,I.versionName)},{name:"seal_approval_rule_get",description:"按版本号/code/runtime-id/record-id 定位单条规则;code 只在选定的版本编号体系内有效,避免拉取整版规则快照",parameters:z.object({versionId:z.string().optional().describe("规则版本 ID"),versionNumber:z.number().int().positive().optional().describe("规则版本号"),latest:z.boolean().optional().describe("为 true 时取最新版本"),code:z.string().optional().describe("规则展示编号,如 #0038;没有后端 code 时按版本内序号匹配"),runtimeId:z.string().optional().describe("运行时规则 ID,如 rule-205;按版本内序号匹配"),recordId:z.string().optional().describe("从运行记录推断 ruleSetVersionNumber")}),handler:async($,I)=>{let U=await sH1($,I),Y=eH1(U,{code:I.code,runtimeId:I.runtimeId});if(!Y)throw Error(`Rule not found in version ${U.versionNumber}`);return Y}},{name:"seal_approval_rules_lint",description:"对 Seal 本地规则文件、草稿审批规则或指定发布版本规则进行质量与可执行性检查(模糊词、悬空例外检测)",parameters:z.object({file:z.string().optional().describe("指定本地规则文件路径进行离线质检(支持 .json),0网络请求、不污染远端草稿"),linter:z.string().optional().describe("指定使用的校验器名称或脚本路径(如 builtin、strict、./my-linter.ts)"),version:z.string().optional().describe("指定要质检的历史发布版本号或 ID(如 16 或 latest),不传默认质检当前草稿"),code:z.string().optional().describe("按规则展示编号过滤(如 #0038)"),ruleId:z.string().optional().describe("按规则 ID 过滤"),minScore:z.number().optional().describe("最低合格质量分阈值(0~100),低于该分值抛出错误以返回非零退出码"),level:z.enum(["all","error","warning"]).default("all").describe("问题报告等级过滤"),summary:z.boolean().optional().describe("为 true 时仅返回存在瑕疵/扣分的规则")}),handler:async($,I,U)=>{let Y=[],J;if(I.file){let G=vh(I.file);Y=GV0(G.rules),J=G.meta.versionNumber}else if(I.version){let G=await R$($),W=Number(I.version),w=isNaN(W)?I.version==="latest"?G[0]:G.find((Z)=>Z.id===I.version):G.find((Z)=>Z.versionNumber===W);if(!w)throw Error(`未找到指定的规则版本: ${I.version}`);J=w.versionNumber,Y=(w.rules??[]).map((Z,V)=>({id:Z.id??Z.runtimeId,code:Z.code??`#${String(V+1).padStart(4,"0")}`,name:Z.name??Z.title,description:Z.description??"",scope:Z.scope,strictness:Z.strictness}))}else Y=((await _6($)).rules??[]).map((W,w)=>({id:W.id,code:W.code??`#${String(w+1).padStart(4,"0")}`,name:W.name??W.title,description:W.description??"",scope:W.scope,strictness:W.strictness}));if(I.code)Y=Y.filter((G)=>G.code===I.code||G.code?.replace(/[#\s]/g,"")===I.code?.replace(/[#\s]/g,""));if(I.ruleId)Y=Y.filter((G)=>G.id===I.ruleId||G.code===I.ruleId);let Q=O4(),K=I.linter??Q.lint?.activeLinter??"builtin",q=await Eh(K),H=await QV0(Y,q,{corpId:U?.corp?.id,versionNumber:J,allRules:Y},{minScore:I.minScore,level:I.level,summary:I.summary});if(I.minScore&&H.overallScore{let Y=I.out??"./rules.local.json",J=[],Q="draft",K;if(I.version){let H=await R$($),G=Number(I.version),W=isNaN(G)?I.version==="latest"?H[0]:H.find((w)=>w.id===I.version):H.find((w)=>w.versionNumber===G);if(!W)throw Error(`未找到指定的规则版本: ${I.version}`);K=W.versionNumber,Q=`version:${K}`,J=(W.rules??[]).map((w,Z)=>({code:w.code?Number(String(w.code).replace(/^#/,""))||Z+1:Z+1,name:w.name??w.title,description:w.description??"",scope:w.scope??"ALL",strictness:w.strictness??"MUST_FOLLOW"}))}else J=((await _6($)).rules??[]).map((G,W)=>({id:G.id,code:G.code??W+1,name:G.name??G.title,description:G.description??"",scope:G.scope??"ALL",strictness:G.strictness??"MUST_FOLLOW",status:G.status}));return{saved:!0,path:HV0(Y,{corpId:U.corp.id,source:Q,versionNumber:K,exportedAt:new Date().toISOString(),rulesCount:J.length,rules:J}),rulesCount:J.length,corpId:U.corp.id,source:Q,versionNumber:K}}},{name:"seal_approval_rules_push",description:"将本地规则文件增量同步到远端草稿;按规则 ID 更新/删除并保留未变更规则,支持直接发布为正式版本",parameters:z.object({file:z.string().optional().describe("要推送的本地规则文件路径,默认为 ./rules.local.json"),dryRun:z.boolean().optional().describe("是否仅预览变更而不实际写入远端(默认 true,传 --yes 或 confirm: true 执行写入)"),confirm:z.boolean().optional().describe("确认覆盖写入远端草稿"),publish:z.boolean().optional().describe("写入草稿后是否直接发布为一个正式版本"),versionName:z.string().optional().describe("发布版本的名称(仅在 publish=true 时有效)")}),handler:async($,I,U)=>{let Y=I.file??"./rules.local.json",J=vh(Y),Q=I.confirm===!0,K=I.dryRun??!Q,q=await _6($),H=iH1(q.rules,J.rules);if(K)return{...a8(U,"api/v1/rules",q.rules,J.rules.map((Z)=>({description:Z.description,scope:Z.scope??"ALL",strictness:Z.strictness??"MUST_FOLLOW"})),q.rules.length+J.rules.length),corpId:U.corp.id,dryRun:!0,localFile:J.resolvedPath,localRulesCount:J.rules.length,remoteDraftCount:q.rules.length,changes:H,impactCount:H.created.length+H.updated.length+H.deleted.length,preservedRuleIds:[...H.updated.map((Z)=>Z.id),...H.unchanged.map((Z)=>Z.id)],warning:"Incremental mode preserves matched rule IDs and does not recode the draft rule set.",willPublish:Boolean(I.publish),message:"Preview mode. Use --yes or confirm=true to apply the listed incremental changes to the remote draft."};for(let Z of H.deleted)await BU($,Z.id);let G=[];for(let Z of H.created){let V=await A2($,{description:Z.description,scope:Z.scope??"ALL",strictness:BD(Z.strictness)});G.push({id:V.id,description:V.description,code:V.code})}let W=[];for(let Z of H.updated)await tE($,Z.id,{description:Z.rule.description,scope:Z.rule.scope??"ALL",strictness:BD(Z.rule.strictness)}),W.push(Z.id);let w=void 0;if(I.publish){let Z=new Date().toISOString().slice(0,10).replace(/-/g,""),V=I.versionName||`v-local-${Z}-${Date.now().toString().slice(-4)}`;w=await T2($,V)}return{corpId:U.corp.id,dryRun:!1,localFile:J.resolvedPath,deletedRules:H.deleted.length,createdRules:G.length,updatedRules:W.length,unchangedRules:H.unchanged.length,preservedRuleIds:[...W,...H.unchanged.map((Z)=>Z.id)],recoded:!1,published:w??!1}}},{name:"seal_approval_documents_list",description:"列出 Seal 审批知识文档",parameters:z.object({scenarios:z.array(z.string()).optional().describe("场景过滤"),offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().optional()}),handler:async($,I)=>N9($,I)},{name:"seal_approval_document_get",description:"获取 Seal 审批知识文档详情",parameters:z.object({documentId:z.string().describe("文档 ID")}),handler:async($,I)=>Tm($,I.documentId)},{name:"seal_approval_document_create",description:"新建 Seal 审批知识文档",parameters:z.object({title:z.string(),purpose:z.string(),content:z.string().describe("正文,通常为 Markdown"),contentType:z.string().optional(),status:z.string().optional(),enabled:z.boolean().optional(),scenarios:z.array(z.string()).optional(),tags:z.array(z.string()).optional()}),handler:async($,I)=>rw($,I)},{name:"seal_approval_document_update",description:"更新 Seal 审批知识文档",parameters:z.object({documentId:z.string(),title:z.string().optional(),purpose:z.string().optional(),content:z.string().optional(),contentType:z.string().optional(),status:z.string().optional(),enabled:z.boolean().optional(),scenarios:z.array(z.string()).optional(),tags:z.array(z.string()).optional()}),handler:async($,I)=>{let{documentId:U,...Y}=I;return tw($,U,Y)}},{name:"seal_approval_delete_document",description:"删除 Seal 审批知识文档",parameters:z.object({documentId:z.string().describe("知识文档 ID")}),handler:($,I)=>aw($,I.documentId)},{name:"seal_approval_search",description:"按关键词组检索 Seal 审批规则、审批文档和审批偏好配置,返回命中位置、字段、行号和前后三行上下文",parameters:z.object({keywords:z.array(z.string()).min(1).describe("关键词组"),matchMode:z.enum(["any","all"]).optional().describe("any 命中任一关键词,all 要求同一行命中全部关键词"),areas:z.array(z.enum(["rules","documents","preferences"])).optional().describe("检索范围"),caseSensitive:z.boolean().optional().describe("是否大小写敏感"),contextLines:z.number().int().nonnegative().optional().describe("返回命中行前后几行,默认 3"),documentLimit:z.number().int().positive().optional().describe("缓存刷新时最多拉取文档数,默认 100"),maxResults:z.number().int().positive().optional().describe("最多返回命中数,默认 50"),refresh:z.boolean().optional().describe("是否跳过 5 分钟内存缓存并强制刷新"),ruleVersionScope:z.enum(["current","all","version"]).optional().describe("规则检索范围,默认 current;all 会检索所有已发布历史版本"),ruleVersionId:z.string().optional().describe("ruleVersionScope=version 时指定版本 ID"),ruleVersionNumber:z.number().int().positive().optional().describe("ruleVersionScope=version 时指定版本号"),latestRuleVersion:z.boolean().optional().describe("ruleVersionScope=version 时取最新已发布版本"),snippetOnly:z.boolean().optional().describe("只返回命中行,不返回前后文"),maxChars:z.number().int().positive().optional().describe("每个文本片段最多返回字符数"),fields:z.array(z.string()).optional().describe("只搜索指定字段,如 history.description、description、scope")}),handler:async($,I,U)=>YV0($,U.corp,I)},{name:"seal_approval_context_get",description:"聚合获取 Seal 现有审批规则、审批文档和审批风格偏好",parameters:z.object({documentLimit:z.number().int().positive().optional().describe("最多返回的审批文档数量"),ruleVersionId:z.string().optional().describe("指定已发布规则版本 ID;指定后 rules 返回该版本快照"),ruleVersionNumber:z.number().int().positive().optional().describe("指定已发布规则版本号;指定后 rules 返回该版本快照"),latestRuleVersion:z.boolean().optional().describe("为 true 时 rules 返回最新已发布版本快照")}),handler:async($,I,U)=>{let Y=await $V($,{documentLimit:I.documentLimit,stylePreferencesEndpoint:U.corp.seal.endpoints.approvalStylePreferences});if(!I.ruleVersionId&&!I.ruleVersionNumber&&!I.latestRuleVersion)return Y;let J=await Eu($,I);return{...Y,rules:{version:Au(J),rules:J.rules}}}},{name:"seal_approval_style_preferences_get",description:"获取 Seal 审批风格偏好配置",parameters:z.object({}),handler:async($,I,U)=>M1($,U.corp.seal.endpoints.approvalStylePreferences)},{name:"seal_approval_style_preferences_update",description:"更新 Seal 审批风格偏好配置",parameters:z.object({tone:z.string().optional(),language:z.string().optional(),detailLevel:z.string().optional(),outputFormat:z.string().optional(),examples:z.array(z.string()).optional(),prohibitedPhrases:z.array(z.string()).optional(),customInstructions:z.string().optional()}),handler:async($,I,U)=>M8($,I,U.corp.seal.endpoints.approvalStylePreferences)},{name:"seal_webhook_list",description:"列出当前 Seal 租户的 Webhook 集成,可按 ID、名称或 URL 查找",parameters:z.object({query:z.string().optional().describe("按集成 ID、名称或 URL 做本地包含匹配"),includeSecret:z.boolean().optional().describe("是否返回 Webhook secret;默认遮罩")}),handler:async($,I,U)=>{let Y=_m(await w5($,U.corp.seal.endpoints.approvalStylePreferences),I.query);return{count:Y.length,integrations:Y.map((J)=>DH(J,I.includeSecret===!0))}}},{name:"seal_webhook_get",description:"按 Webhook 集成 ID 或名称精确查找一条集成",parameters:z.object({selector:z.string().min(1).describe("Webhook 集成 ID 或名称"),includeSecret:z.boolean().optional().describe("是否返回 Webhook secret;默认遮罩")}),handler:async($,I,U)=>{let Y=M9(await w5($,U.corp.seal.endpoints.approvalStylePreferences),I.selector);return DH(Y,I.includeSecret===!0)}},{name:"seal_webhook_add",description:"新增 Webhook 集成;使用 dryRun=true 可只预览请求而不持久化",parameters:z.object({name:z.string().min(1).describe("集成名称"),mode:z.enum(["assisted","semi_automatic","fully_automatic"]).optional(),outgoingResultWebhook:z.string().url().describe("Seal 完成 AI 审核后回调的外部地址"),autoApprovalRate:z.number().int().min(0).max(100).optional(),secret:z.string().min(1).optional().describe("可选;不传则生成 32 位十六进制 secret"),materialPackFilePolicy:pE.describe("材料包附件文件策略:大小和后缀白名单"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=bZ0(U.corp),J=I.dryRun?await Bm($,Y,I,U.corp.seal.endpoints.approvalStylePreferences):void 0,Q=J?.integration??await Em($,Y,I,U.corp.seal.endpoints.approvalStylePreferences);if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,J.before,J.after,1);return{saved:!0,integration:DH(Q,!0)}}},{name:"seal_webhook_update",description:"更新现有 Webhook 集成;使用 dryRun=true 可只预览请求而不持久化",parameters:z.object({selector:z.string().min(1).describe("Webhook 集成 ID 或名称"),name:z.string().min(1).optional(),mode:z.enum(["assisted","semi_automatic","fully_automatic"]).optional(),outgoingResultWebhook:z.string().url().optional(),autoApprovalRate:z.number().int().min(0).max(100).optional(),secret:z.string().min(1).optional(),rotateSecret:z.boolean().optional().describe("生成新 secret;与 secret 二选一"),materialPackFilePolicy:pE.describe("材料包附件文件策略:大小和后缀白名单"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{if(I.secret!==void 0&&I.rotateSecret)throw Error("Webhook secret and rotateSecret cannot be used together");let Y=I.dryRun?await Rm($,I.selector,I,U.corp.seal.endpoints.approvalStylePreferences):void 0,J=Y?.integration??await vm($,I.selector,I,U.corp.seal.endpoints.approvalStylePreferences);if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y.before,Y.after,1);return{saved:!0,integration:DH(J,I.secret!==void 0||I.rotateSecret===!0)}}},{name:"seal_webhook_delete",description:"删除指定 Webhook 集成;使用 dryRun=true 可只预览请求而不持久化",parameters:z.object({selector:z.string().min(1).describe("Webhook 集成 ID 或名称"),confirm:z.boolean().optional().describe("执行删除时必须明确传 true;dryRun 可省略"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行删除")}),handler:async($,I,U)=>{if(!I.confirm&&!I.dryRun)throw Error("Refusing to delete Webhook integration without confirm=true");let Y=I.dryRun?await Cm($,I.selector,U.corp.seal.endpoints.approvalStylePreferences):void 0,J=Y?.integration??await jm($,I.selector,U.corp.seal.endpoints.approvalStylePreferences);if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y.before,Y.after,1);return{deleted:!0,integration:DH(J,!1)}}},{name:"seal_approval_runs_search",description:"查询 Seal 审批/审核运行记录总表,并整理合思单据到 Langfuse trace/session 的桥接字段",parameters:z.object({offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),fromTimestamp:z.string().optional(),toTimestamp:z.string().optional(),startDate:z.string().optional().describe("运行记录创建开始时间戳(毫秒),对应前端 startDate"),endDate:z.string().optional().describe("运行记录创建结束时间戳(毫秒),对应前端 endDate"),status:z.string().optional(),taskMode:z.string().optional(),manualApprovalStatus:z.union([z.string(),z.array(z.string())]).optional().describe("人工审核状态,如 TERMINATED 对应已驳回"),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),humanResult:z.string().optional().describe("按人工审批结果做本地包含匹配,如 驳回、通过、reject"),query:z.string().optional().describe("在 id、sourceDocumentSN、sourceDocumentId、documentId、Langfuse traceId 中做本地包含匹配"),includeBridge:z.boolean().optional().describe("是否返回完整 bridge 数组;默认 false,避免长输出")}),handler:async($,I)=>{let U=I.query?.trim(),Y=await j$($,qG1({...I,search:U})),J=await uZ0($,Y.records,{humanResult:I.humanResult});return{...Y,records:J.map(wI),...I.includeBridge?{bridge:ED(J)}:{}}}},{name:"seal_approval_runs_summary",description:"按本地日期/时区汇总 Seal 审批运行记录,返回状态、模式统计和精简记录,避免长 JSON 输出",parameters:z.object({date:z.string().optional().describe("本地日期,格式 YYYY-MM-DD;默认使用 timezone 下的今天"),timezone:z.string().optional().describe("IANA 时区,默认 Asia/Shanghai"),offset:z.number().int().nonnegative().optional(),limit:z.number().int().positive().max(100).optional(),startDate:z.string().optional().describe("运行记录创建开始时间戳(毫秒),对应前端 startDate"),endDate:z.string().optional().describe("运行记录创建结束时间戳(毫秒),对应前端 endDate"),status:z.string().optional(),taskMode:z.string().optional(),manualApprovalStatus:z.union([z.string(),z.array(z.string())]).optional().describe("人工审核状态,如 TERMINATED 对应已驳回"),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),humanResult:z.string().optional().describe("按人工审批结果做本地包含匹配,如 驳回、通过、reject"),query:z.string().optional().describe("在 id、sourceDocumentSN、sourceDocumentId、documentId、Langfuse traceId 中做本地包含匹配")}),handler:async($,I)=>{let U=I.timezone??"Asia/Shanghai",Y=I.date??fZ0(Date.now(),U)??"",J=await j$($,{offset:I.offset,limit:I.limit??100,startDate:I.startDate,endDate:I.endDate,status:I.status,taskMode:I.taskMode,manualApprovalStatus:mZ0(I.manualApprovalStatus,I.humanResult),sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId}),Q=(await uZ0($,J.records,{query:I.query,humanResult:I.humanResult})).filter((K)=>fZ0(K.createdAt,U)===Y);return dH1(Q,{date:Y,timezone:U,fetched:J.records.length,total:J.total})}},{name:"seal_approval_runs_export",description:"将企业的审批审核记录导出为高保真 Excel 报表(包含单据模板、AI决策、人工审核结论、驳回原因及企业规则列细分结果)",parameters:z.object({startDate:z.string().optional().describe("起始时间,支持 YYYY-MM-DD 或毫秒时间戳"),endDate:z.string().optional().describe("截止时间,支持 YYYY-MM-DD 或毫秒时间戳"),limit:z.number().int().positive().optional().describe("最大拉取记录条数"),status:z.string().optional().describe("单据状态过滤,如 completed, processing, failed"),manualApprovalStatus:z.union([z.string(),z.array(z.string())]).optional().describe("人工审核状态过滤,如 APPROVED, TERMINATED, PROCESSING"),includeCompletedOnly:z.boolean().optional().describe("是否仅导出已完成单据"),outputFile:z.string().optional().describe("输出 Excel 文件的自定义绝对或相对路径"),toDownloads:z.boolean().optional().describe("是否直接保存到用户的系统下载目录")}),handler:async($,I,U)=>mL($,U.corp,I)},{name:"seal_approval_run_get",description:"获取 Seal 单条审批/审核运行记录详情;可用 fields 只取 metadata、document.fields、result.summary 等局部字段",parameters:z.object({recordId:z.string().describe("Seal approval run record ID"),fields:z.union([z.string(),z.array(z.string())]).optional().describe("逗号分隔或数组形式的字段路径,如 metadata、document.fields、result.summary"),summary:z.boolean().optional().describe("返回单据摘要、AI 结果、人工结果和版本号")}),handler:async($,I)=>{let U=await T4($,I.recordId);if(I.summary)return mH1(U);let Y={...U,aliases:HG1(U),humanResult:VI(U)},J=SZ0(I.fields);return J.length>0?nZ0(Y,J):Y}},{name:"seal_approval_run_cited_rules_get",description:"从审批运行结果中抽取 AI 引用或命中的规则及应用分析",parameters:z.object({recordId:z.string().describe("Seal approval run record ID")}),handler:async($,I)=>{let U=await T4($,I.recordId);return lH1(U)}},{name:"seal_approval_run_document_summary_get",description:"返回单据关键字段、附件摘要、AI/人工结果,避免拉取完整原始单据",parameters:z.object({recordId:z.string().describe("Seal approval run record ID")}),handler:async($,I)=>{let U=await T4($,I.recordId);return cZ0(U)}},{name:"seal_approval_run_attachments_get",description:"从审批运行记录中抽取附件、发票附件和字段位置,不返回完整单据正文和规则结果",parameters:z.object({recordId:z.string().describe("Seal approval run record ID"),summary:z.boolean().optional().describe("只返回附件列表摘要")}),handler:async($,I)=>{let U=await T4($,I.recordId);return NJ(U,{summary:I.summary})}},{name:"seal_approval_run_result_get",description:"返回审批运行结果摘要;summary=true 时只返回 decision、summary、风险点数量、命中规则数量、traceId 等",parameters:z.object({recordId:z.string().describe("Seal approval run record ID"),summary:z.boolean().optional()}),handler:async($,I)=>{let U=await T4($,I.recordId);if(I.summary)return CD(U);return{recordId:U.id,result:U.result}}},{name:"seal_approval_run_url_get",description:"获取审批单的 Web 控制台直达链接或合思企业协助链接,支持纯深度链接与带安全警告的免密 SSO 链接",parameters:z.object({recordId:z.string().optional().describe("Seal approval run record ID"),sourceDocumentSN:z.string().optional().describe("合思/易快报单号"),sourceDocumentId:z.string().optional().describe("合思/易快报源单据 ID"),sso:z.boolean().optional().describe("是否生成带临时认证凭证的免密直达链接 (SSO link)"),expiresIn:z.number().optional().describe("SSO 免密凭证有效秒数,默认 7200 (2小时)")}),handler:async($,I,U)=>{let Y=Boolean(I.recordId||I.sourceDocumentSN||I.sourceDocumentId),J=Y?await UG1($,I):void 0,Q=U.corp.source,K=Q.type==="hose"?await gd(U.corp):void 0,q=Q4(J?.sourceExtendData?.hosecloudViewUrl),H=YG1(U.corp),G=J?.id?`${H}/approval-result/${J.id}`:void 0,W,w,Z,V=I.expiresIn??7200;if(I.sso){if(!J?.id)throw Error("recordId or sourceDocumentSN is required to generate an SSO approval result URL");if(Q.type!=="hose")throw Error(`SSO direct links currently support Hose-integrated enterprises (corp '${U.corp.id}' uses '${Q.type}'). For Seal-native enterprises, use 'seal-use delegation create' for authorized access.`);let X=await kw(U.corp,V),L=new URL(X.url).searchParams.get("accessToken");if(!L)throw Error("Failed to obtain Hose provisional authentication token");let D=`/approval-result/${J.id}`;W=`${H}/api/auth/oauth2/session/oem-hosecloud?token=${encodeURIComponent(L)}&path=${encodeURIComponent(D)}`;try{let T=await G$($);w={name:T.user.name,staffId:Q.staffId,isAdmin:T.user.isAdmin,providerUserId:T.user.providerUserId}}catch{w={staffId:Q.staffId}}let F=w.name??"企业成员",P=w.isAdmin?" (管理员)":"";Z=`⚠️ 安全警示:该链接使用 [${F}${P}] 身份签发,在 Seal AI 拥有全站操作权限。链接具备 ${Math.round(V/3600*10)/10} 小时时效,仅供受信任人员排查使用,请勿在外部公开分享。`,console.error(`⚠️ 安全警示 (SSO 强化免密链接): +`+`• 身份主体:${F}${P} +`+`• 权限范围:持有该链接者在 Seal AI 中拥有该用户的完整操作权限(含系统设置与规则编辑) +`+`• 时效性:换票凭证有效时间 ${V} 秒(${Math.round(V/60)} 分钟),在浏览器打开后将保留 30 天会话 +`+"• 安全边界:该凭证绝不包含且无法访问合思 (Hose) 主系统;仅限内部排查,严禁在外部公开分享!")}return{url:I.sso?W:G,sealResultUrl:G,ssoUrl:W,type:I.sso?"sso_link":"deep_link",expiresIn:I.sso?V:void 0,identity:w,warning:Z,enterpriseAssistUrl:K,enterpriseUrl:K,hoseDomain:Q.type==="hose"?JG1(Q.domain):void 0,documentUrl:q,recordId:J?.id,sourceDocumentSN:J?.sourceDocumentSN,sourceDocumentId:J?.sourceDocumentId,sourceSystem:J?.sourceSystem,missing:{enterpriseAssistUrl:K?void 0:"Current enterprise source is not Hose, so no Hose enterprise assist URL is configured.",documentUrl:Y&&!q?"sourceExtendData.hosecloudViewUrl is absent from the approval run detail.":void 0}}}},{name:"seal_approval_run_pick",description:"按合思单号或关键字查询运行记录,返回候选记录及其当时使用的规则版本,便于再取详情或查版本规则",parameters:z.object({query:z.string().optional().describe("合思单号、源单据 ID、运行记录 ID 或 trace 关键字"),sn:z.string().optional().describe("合思/易快报单号;优先作为精确 sourceDocumentSN 查询"),batchId:z.string().optional().describe("模拟批次 ID"),latest:z.boolean().optional().describe("只返回最新一条匹配记录"),fields:z.union([z.string(),z.array(z.string())]).optional().describe("限制返回字段"),limit:z.number().int().positive().max(100).optional(),maxScan:z.number().int().positive().max(5000).optional().describe("最多扫描多少条运行记录用于本地匹配,默认 1000"),includeBridge:z.boolean().optional()}),handler:async($,I)=>{let U=I.sn??I.query;if(!U)throw Error("query or sn is required");let Y=await QG1($,{query:U,sn:I.sn,batchId:I.batchId,latest:I.latest,limit:I.latest?1:I.limit??20,maxScan:I.maxScan??1000}),J=await Promise.all(Y.records.map((q)=>T4($,q.id))),Q=SZ0(I.fields),K=J.map((q)=>IG1(q,Q));return{query:U,sourceDocumentSN:I.sn,simulationBatchId:I.batchId,latest:I.latest??!1,total:Y.total,scanned:Y.scanned,matched:K.length,records:K,next:{getSummary:"seal-home approval-runs get --summary",getRuleVersion:"seal-home rules version ",searchRuleVersion:`seal-home tool seal_approval_search --json '{"keywords":["关键词"],"areas":["rules"],"ruleVersionScope":"version","ruleVersionNumber":14}'`,getVersionContext:`seal-home tool seal_approval_context_get --json '{"ruleVersionNumber":14}'`},...I.includeBridge?{bridge:ED(J)}:{}}}},{name:"seal_simulation_batch_records_get",description:"获取某一次 Seal 模拟批次的运行记录,并整理对应 Langfuse trace/session 桥接字段",parameters:z.object({batchId:z.string().describe("simulation batch ID"),query:z.string().optional().describe("在 id、sourceDocumentSN、sourceDocumentId、documentId、Langfuse traceId 中做本地包含匹配")}),handler:async($,I)=>{let U=Cu(await eE($,I.batchId),I.query);return{batchId:I.batchId,count:U.length,records:U.map(wI),bridge:ED(U)}}},{name:"seal_simulation_batch_create",description:"创建 Seal 模拟测试批次。支持合思指定单号(hosecloud)与材料包导入(material_pack)两种模式;其他取数模式通过 rawParams 预留透传。",parameters:z.object({mode:z.enum(["hosecloud","material_pack"]).default("hosecloud").describe("来源模式: hosecloud=合思指定单号; material_pack=材料包导入"),flowIds:z.array(z.string()).max(100).optional().describe("合思模式: 单据流水号列表"),rejectNodeName:z.string().nullable().optional().describe("仅关注特定节点: 节点名称, 不设为 null 表示不限制"),thinkingDepthOverride:z.enum(["default","medium","high"]).optional().describe("思考深度: default=按偏好设置, medium=标准, high=深度推理"),skipInvoiceGeneration:z.boolean().optional().describe("跳过发票生成, 默认 true"),skipExpenseExtraction:z.boolean().optional().describe("跳过费用提取, 默认 true"),disableAttachmentCache:z.boolean().optional().describe("不使用附件缓存, 默认 false"),signKey:z.string().optional().describe("合思集成标识; 缺省时自动取第一个合思集成"),packageIds:z.array(z.string()).optional().describe("材料包模式: 材料包 id 列表(来自 material-packages upload 响应)"),templateId:z.string().optional().describe("材料包模板 id, 例如 conference_reimbursement_v1; 缺省取 schemaConfig.id"),schemaConfig:z.record(z.string(),z.unknown()).optional().describe("材料包字段映射(确认参数), 建议使用 material-packages upload 返回的 schemaConfig"),noWait:z.boolean().optional().describe("创建后立即返回异步票据,不等待批次完成"),rawParams:z.record(z.string(),z.unknown()).optional().describe("预留: 其他取数模式(如时间范围 startTime/endTime)透传参数, 覆盖上述构建结果")}),handler:async($,I)=>{let U=I.mode??"hosecloud",Y=I.signKey;if(U==="hosecloud"&&!Y){if(Y=(await IB($)).find((q)=>q.signKey)?.signKey,!Y)throw Error("未找到合思集成 signKey, 请通过 signKey 参数提供")}let J=pH1({mode:U,flowIds:I.flowIds,rejectNodeName:I.rejectNodeName,thinkingDepthOverride:I.thinkingDepthOverride,skipInvoiceGeneration:I.skipInvoiceGeneration,skipExpenseExtraction:I.skipExpenseExtraction,disableAttachmentCache:I.disableAttachmentCache,signKey:Y,packageIds:I.packageIds,templateId:I.templateId,schemaConfig:I.schemaConfig,rawParams:I.rawParams}),Q=U==="material_pack"?await xm($,J):await km($,J);return{...Q,created:!0,noWait:I.noWait??!0,asyncTicket:Q.batchId,next:{status:`seal-use simulation status ${Q.batchId}`,wait:`seal-use simulation wait ${Q.batchId}`,getBatch:"seal-home simulation get ",getRecords:"seal-home simulation batch-records ",listBatches:"seal-home simulation list"}}}},{name:"seal_simulation_batches_list",description:"列出 Seal 模拟测试批次摘要(含状态、统计计数与展示摘要)",parameters:z.object({limit:z.number().int().positive().max(100).optional().describe("最多返回批次数量, 默认 50")}),handler:async($,I)=>{let U=await fm($,{limit:I.limit??50});return{count:U.length,batches:U.map(cH1),next:{getBatch:"seal-home simulation get ",getRecords:"seal-home simulation batch-records "}}}},{name:"seal_simulation_batch_get",description:"获取某一次 Seal 模拟测试批次的详情,包含服务端回显的创建参数、展示摘要和任务统计",parameters:z.object({batchId:z.string().describe("simulation batch ID")}),handler:async($,I)=>{return{batch:await IV($,I.batchId),next:{getRecords:"seal-home simulation batch-records "}}}},{name:"seal_simulation_batch_status",description:"单次读取 Seal 模拟批次状态,不阻塞等待;适合根据异步票据轮询",parameters:z.object({batchId:z.string().describe("simulation batch ID")}),handler:async($,I)=>{let U=await IV($,I.batchId),Y=String(U.status??"UNKNOWN").toUpperCase(),J=["COMPLETED","FAILED","CANCELLED","CANCELED"].includes(Y);return{batchId:I.batchId,status:Y,terminal:J,totalCount:U.totalCount,processedCount:U.processedCount,successCount:U.successCount,failedCount:U.failedCount,createdAt:U.createdAt,updatedAt:U.updatedAt,next:J?{getRecords:`seal-use simulation batch-records ${I.batchId}`}:{status:`seal-use simulation status ${I.batchId}`,wait:`seal-use simulation wait ${I.batchId}`}}}},{name:"seal_simulation_templates_get",description:"列出 Seal 模拟测试模板(我的模板,保存常用配置快速复用)",parameters:z.object({}),handler:async($)=>{let I=await im($);return{count:I.length,templates:I.map((U)=>({id:U.id,name:U.name,description:U.description,approvalSystem:U.approvalSystem,hosecloudConfig:U.hosecloudConfig,updatedAt:U.updatedAt})),next:{createBatch:"seal-home simulation create --mode hosecloud --flow-ids ..."}}}},{name:"seal_simulation_integrations_get",description:"查询模拟测试可用的来源集成状态与合思集成选项(signKey 等)",parameters:z.object({}),handler:async($)=>{let[I,U]=await Promise.all([$B($),IB($)]);return{status:I,hosecloudIntegrations:U}}},{name:"seal_simulation_material_package_upload",description:"上传材料包 ZIP 到 Seal 模拟测试;服务端解析 Excel/AI 推断配置并返回材料包 id 与 schemaConfig(字段映射确认后用于创建模拟批次)",parameters:z.object({filePath:z.string().describe("材料包 ZIP 文件路径(含 信息表.xlsx 与附件)")}),handler:async($,I)=>{if(!I.filePath)throw Error("filePath is required");let U=hH1(I.filePath),Y=I.filePath.split(/[\\/]/).pop()??"material-pack.zip",J=await dm($,{fileName:Y,fileBuffer:U});return{materialPackage:J,next:{createBatch:`seal-home simulation create --mode material_pack --package-ids ${J.id} --schema-config schema.json`}}}},{name:"seal_webhook_ready",description:"检查当前企业的 Webhook 就绪状态看板(包括企业环境、租户身份、凭证连通性、已激活 Webhook 通道及材料包预检)",parameters:z.object({filePath:z.string().optional().describe("可选的材料包路径(ZIP 或 信息表.xlsx),用于同步做本地预检")}),handler:async($,I,U)=>{return AD($,U.corp,{filePath:I.filePath})}},{name:"seal_webhook_material_pack",description:"将官方材料包格式本地校验、解析并通过 Seal 入站 Webhook 触发 AI 审批;preview 模式不联网,push 模式单通道自动选择",parameters:z.object({filePath:z.string().describe("材料包 ZIP 或 信息表.xlsx 文件路径"),mode:z.enum(["preview","push"]).default("preview"),webhook:z.string().optional().describe("Webhook ID 或名称;当租户仅配置 1 个通道时可省略")}),handler:async($,I)=>{let U=WI(I.filePath);if(I.mode!=="push")return GI(U.fileBuffer,U.fileName);let Y=await w5($),J;if(I.webhook)J=M9(Y,I.webhook);else if(Y.length===1)J=Y[0];else if(Y.length>1){let Q=Y.map((K)=>`"${K.name}" (${K.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${Q}],请通过 webhook 参数指定目标通道。`)}else throw Error("当前租户未配置任何 Webhook 集成通道。");return MD(U.fileBuffer,U.fileName,{webhookUrl:J.incomingDocumentWebhook.url,secret:J.secret,materialPackFilePolicy:J.materialPackFilePolicy})}},{name:"seal_approval_run_langfuse_bridge_get",description:"从 Seal approval run 中抽取 Langfuse 定位信息;优先返回 _langfuseTraceId,没有时给出 hosecloud-{sourceDocumentSN} session 回退",parameters:z.object({recordId:z.string().optional(),sourceDocumentSN:z.string().optional(),sourceDocumentId:z.string().optional(),simulationBatchId:z.string().optional(),limit:z.number().int().positive().max(100).optional()}),handler:async($,I)=>{let Y=(I.simulationBatchId?await eE($,I.simulationBatchId):(await j$($,{limit:I.limit??50,search:I.sourceDocumentSN??I.sourceDocumentId,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId})).records).filter((J)=>GG1(J,{recordId:I.recordId,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId}));return{count:Y.length,records:Y.map(wI),bridge:ED(Y)}}},{name:"seal_simulation_batch_wait",description:"等待 Seal 模拟测试批次完成(轮询状态直到 completed/failed/canceled 或超时)",parameters:z.object({batchId:z.string().describe("模拟批次 ID"),timeout:z.string().default("10m").describe("最长等待时间, 默认 10m"),pollInterval:z.string().default("2s").describe("轮询间隔, 默认 2s")}),handler:async($,I)=>{let U=_Z0(I.timeout??"10m"),Y=_Z0(I.pollInterval??"2s"),J=Date.now();while(!0){let Q=await IV($,I.batchId),K=(Q.status??"").toLowerCase();if(["completed","failed","cancelled","canceled"].includes(K))return{batch:Q,completed:!0,status:K,elapsedMs:Date.now()-J,next:{getRecords:`seal-home simulation batch-records ${I.batchId}`}};if(Date.now()-J>=U)throw Error(`等待模拟批次 ${I.batchId} 超时(已等待 ${(Date.now()-J)/1000}s)。可稍后执行 seal-home simulation get ${I.batchId} 查看状态`);await new Promise((q)=>setTimeout(q,Y))}}},{name:"seal_simulation_batch_clean",description:"删除模拟测试批次产生的测试数据",parameters:z.object({batchId:z.string().describe("模拟批次 ID")}),handler:async($,I)=>{let U=await bm($,I.batchId);return{batchId:I.batchId,cleaned:!0,result:U}}},{name:"seal_simulation_specifications_list",description:"列出指定合思集成可用的单据模板列表",parameters:z.object({signKey:z.string().optional().describe("合思集成 sign-key")}),handler:async($,I)=>{let U=await nm($,I.signKey);return{count:U.length,specifications:U}}},{name:"seal_deploy_hosecloud_requirements",description:"获取 Seal AI 审批发布到合思费控所需配置字段与说明",parameters:z.object({}),handler:async()=>{return{input:`JSON via --json '{"apiKey":"...","apiSecret":"...","mode":"assisted"}'`,questions:[{field:"apiOrigin",prompt:"使用哪一种合思版本或 API 环境?(production/custom,未指定时自动探测)",required:!1,default:"production"},{field:"customApiUrl",prompt:"自定义环境的 API 地址是什么?(如专属私有云域名)",requiredWhen:"apiOrigin=custom"},{field:"apiKey",prompt:"合思 API Key(appKey)是什么?",required:!0,secret:!0},{field:"apiSecret",prompt:"合思 API Secret(appSecurity)是什么?",required:!0,secret:!0},{field:"mode",prompt:"使用全自动、半自动还是辅助审核?(fully_automatic/semi_automatic/assisted)",required:!0,default:"assisted"},{field:"autoApprovalRate",prompt:"自动审批比例是多少?(0-100)",requiredWhen:"mode!=assisted"},{field:"rejectResubmitMethod",prompt:"驳回重提后从哪个节点继续?(node_default/to_ebot/from_start)"},{field:"autoApproveNodeNames",prompt:"哪些节点允许自动审批?(string[])"},{field:"outboundName",prompt:"合思审批流节点消息名称是什么?",default:"SealAI 审批"}]}}},{name:"seal_deploy_hosecloud_list",description:"列出当前企业【Seal AI 审批发布到合思费控】的集成配置列表",parameters:z.object({}),handler:async($)=>{let U=((await M1($)).integrations??[]).filter((Y)=>Y.type==="hosecloud");return{count:U.length,integrations:U.map(PD)}}},{name:"seal_deploy_hosecloud_get",description:"查询【Seal AI 审批发布到合思费控】的单项配置详情",parameters:z.object({signKey:z.string().describe("合思集成 sign-key")}),handler:async($,I)=>{let Y=((await M1($)).integrations??[]).find((J)=>J.type==="hosecloud"&&J.signKey===I.signKey);if(!Y)throw Error(`未找到合思配置:${I.signKey}`);return PD(Y)}},{name:"seal_deploy_hosecloud_status",description:"检查【Seal AI 审批发布到合思费控】与多平台集成状态",parameters:z.object({}),handler:async($)=>{let I=await $B($),Y=((await M1($)).integrations??[]).filter((J)=>J.type==="hosecloud");return{status:I,integrations:Y.map(PD)}}},{name:"seal_deploy_hosecloud_configure",description:"自动探测平台并保存【Seal AI 审批发布到合思费控】集成配置",parameters:z.object({apiKey:z.string().describe("合思 API Key (appKey)"),apiSecret:z.string().describe("合思 API Secret (appSecurity)"),signKey:z.string().optional().describe("集成 signKey,不提供则自动生成"),outboundName:z.string().optional().describe("出站消息名称(合思审批流节点中显示)"),specificationId:z.string().optional(),specificationName:z.string().optional(),mode:z.enum(["fully_automatic","semi_automatic","assisted"]).default("assisted"),autoApprovalRate:z.number().min(0).max(100).optional(),rejectResubmitMethod:z.enum(["node_default","to_ebot","from_start"]).optional(),autoApproveNodeNames:z.array(z.string()).optional(),apiOrigin:z.string().default("production"),customApiUrl:z.string().optional(),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let{dryRun:Y,...J}=I,Q=J.apiKey??J.appKey,K=J.apiSecret??J.appSecurity;if(!Q||!K)throw Error("缺少合思凭证:apiKey (或 appKey) 与 apiSecret (或 appSecurity) 为必填项");let q={...J,apiKey:Q,apiSecret:K},H=q.apiOrigin??"production",G=q.customApiUrl;if(!G&&H!=="custom")try{let D=await PU(q.apiKey,q.apiSecret);if(D?.domain)if(D.domain==="https://app.ekuaibao.com")H="production",G=void 0;else H="custom",G=D.domain}catch{}if(H==="custom"&&!G)throw Error("自定义合思环境必须提供 customApiUrl");let W=await pm($,{apiKey:q.apiKey,apiSecret:q.apiSecret,apiOrigin:H,customApiUrl:G}),w=await M1($),Z=q.signKey??uH1(6).toString("hex"),V={type:"hosecloud",...q,apiOrigin:H,...G?{customApiUrl:G}:{},signKey:Z,corporationId:W.corporationId},X=(w.integrations??[]).filter((D)=>D.type!=="hosecloud"||D.signKey!==Z);X.push(V);let L={...w,integrationSystem:"hosecloud",integrations:X};if(Y)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,w,L,1);return await M8($,L,U.corp.seal.endpoints.approvalStylePreferences),console.error(`✓ 配置已保存 (signKey: ${Z})`),console.error(`\uD83D\uDC49 Next action: seal-use deploy hosecloud sync ${Z} --corp ${U.corp.id}`),{integration:PD(V)}}},{name:"seal_deploy_hosecloud_sync",description:"一键将 Seal AI 审核配置同步发布到合思费控审批流",parameters:z.object({signKey:z.string().describe("合思集成 sign-key")}),handler:async($,I,U)=>{let J=((await M1($)).integrations??[]).find((H)=>H.type==="hosecloud"&&H.signKey===I.signKey);if(!J)throw Error(`未找到合思配置:${I.signKey}`);let Q=(U.corp.seal.url??`https://${U.corp.id.toLowerCase()}.sealai.cc`).replace(/\/+$/,""),K=J.outboundName??"SealAI 审批",q=await cm($,{signKey:I.signKey,webhookUrl:`${Q}/api/hosecloud/outbound?config_id=${encodeURIComponent(I.signKey)}`,completionWebhookUrl:`${Q}/api/hosecloud/flow/completion?config_id=${encodeURIComponent(I.signKey)}`,messageName:K,mode:J.mode??"assisted"});return console.error(`✓ 同步成功!出站消息已在合思开放平台创建/更新: "${K}"`),console.error(`\uD83D\uDC49 发布完成:请登录合思后台在审批流中添加【EBot】节点并选择 "${K}"。`),{signKey:I.signKey,synced:!0,result:q}}},{name:"seal_preference_get",description:"获取当前决策偏好、思考深度偏好与绑定的规则版本",parameters:z.object({}),handler:async($)=>{let I=await M1($);return{decisionPreferences:I.decisionPreferences,thinkingDepthPreference:I.thinkingDepthPreference,ruleSetVersionId:I.ruleSetVersionId}}},{name:"seal_preference_decision_update",description:"修改审核决策偏好(立即影响当前运行中的审核智能体及后续决策)",parameters:z.object({explicitApprove:z.string().optional(),explicitReject:z.string().optional(),exemptApprove:z.string().optional(),review:z.string().optional(),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),{dryRun:J,...Q}=I,K={...Y,decisionPreferences:{...Y.decisionPreferences,...Q}};if(J)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,K,1);return await M8($,K,U.corp.seal.endpoints.approvalStylePreferences),{decisionPreferences:K.decisionPreferences}}},{name:"seal_preference_thinking_depth_set",description:"修改默认思考深度(medium 或 high)",parameters:z.object({defaultLevel:z.enum(["medium","high"]).describe("默认思考深度"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),J={...Y,thinkingDepthPreference:{defaultLevel:I.defaultLevel,routingPolicies:Y.thinkingDepthPreference?.routingPolicies??[]}};if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,J,1);return await M8($,J,U.corp.seal.endpoints.approvalStylePreferences),{thinkingDepthPreference:J.thinkingDepthPreference}}},{name:"seal_preference_thinking_depth_policies_list",description:"列出思考深度路由策略列表",parameters:z.object({}),handler:async($)=>{return{policies:(await M1($)).thinkingDepthPreference?.routingPolicies??[]}}},{name:"seal_preference_thinking_depth_policies_upsert",description:"新增或修改思考深度路由策略",parameters:rE.extend({dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),{dryRun:J,...Q}=I,q=(Y.thinkingDepthPreference?.routingPolicies??[]).filter((G)=>G.id!==Q.id);q.push(Q);let H={...Y,thinkingDepthPreference:{defaultLevel:Y.thinkingDepthPreference?.defaultLevel??"medium",routingPolicies:q}};if(J)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,H,1);return await M8($,H,U.corp.seal.endpoints.approvalStylePreferences),{policy:Q,policies:q}}},{name:"seal_preference_thinking_depth_policies_remove",description:"删除一条思考深度路由策略",parameters:z.object({policyId:z.string().describe("路由策略 ID"),dryRun:z.boolean().optional().describe("只返回前后配置 Diff,不执行写入")}),handler:async($,I,U)=>{let Y=await M1($,U.corp.seal.endpoints.approvalStylePreferences),J=Y.thinkingDepthPreference?.routingPolicies??[],Q=J.filter((q)=>q.id!==I.policyId);if(Q.length===J.length)throw Error(`未找到路由策略:${I.policyId}`);let K={...Y,thinkingDepthPreference:{defaultLevel:Y.thinkingDepthPreference?.defaultLevel??"medium",routingPolicies:Q}};if(I.dryRun)return a8(U,U.corp.seal.endpoints.approvalStylePreferences,Y,K,1);return await M8($,K,U.corp.seal.endpoints.approvalStylePreferences),{removedId:I.policyId,policies:Q}}},{name:"seal_approval_runs_stats",description:"统计审核记录状态分布、来源系统分布及按单号/ID去重统计",parameters:z.object({since:z.string().optional().describe("时间范围,如 3months, 7days, 24hours"),dedupeBy:z.enum(["sourceDocumentSN","sourceDocumentId","id"]).default("sourceDocumentSN").describe("去重字段"),status:z.string().optional(),sourceSystem:z.string().optional(),taskMode:z.string().optional()}),handler:async($,I)=>{let U=await j$($,{limit:1000,status:I.status,sourceSystem:I.sourceSystem,taskMode:I.taskMode}),Y=I.dedupeBy??"sourceDocumentSN",J=U.records,Q={},K={},q=new Set;for(let H of J){let G=H.status??"unknown";Q[G]=(Q[G]??0)+1;let W=H.sourceSystem??"unknown";K[W]=(K[W]??0)+1;let w=H[Y];if(w)q.add(String(w))}return{total:J.length,dedupeBy:Y,unique:q.size,byStatus:Q,bySourceSystem:K}}},{name:"seal_approval_runs_count",description:"统计符合条件的审核记录总数",parameters:z.object({status:z.string().optional(),sourceSystem:z.string().optional(),taskMode:z.string().optional(),search:z.string().optional()}),handler:async($,I)=>{let U=await j$($,{limit:1,status:I.status,sourceSystem:I.sourceSystem,taskMode:I.taskMode,search:I.search});return{total:U.total??U.records.length}}}],kH1=new Map(OH.map(($)=>[$.name,$]));function _4($){return kH1.get($)}function DH($,I){return I?$:{...$,secret:""}}function bZ0($){if($.seal.url)return $.seal.url;if($.source.type==="hose")return AU($,$.source);return $.source.sealUrl}function xH1($,I){let U=$.rules.length;if(I.countOnly||I.limit===0)return{count:U};let Y=I.offset??0,J=$.rules.slice(Y,I.limit===void 0?void 0:Y+I.limit),Q=I.fields;return{count:U,hasPendingDeletes:$.hasPendingDeletes,rules:Q?J.map((K)=>fH1(K,Q)):J}}function fH1($,I){let U={};for(let Y of I)if($[Y]!==void 0)U[Y]=$[Y];return U}function iH1($,I){let U=new Map($.map((q)=>[q.id,q])),Y=new Set,J=[],Q=[],K=[];for(let q of I){let H;if(q.id){if(H=U.get(q.id),!H)throw Error(`本地规则 ${q.id} 不存在于当前草稿。请先用 rules pull 获取当前草稿,再重新应用修改。`);if(Y.has(q.id))throw Error(`本地规则文件包含重复的规则 ID:${q.id}`)}else{let W=$.filter((w)=>!Y.has(w.id)&&bH1(w,q));if(W.length>1)throw Error(`本地规则“${q.description}”无法唯一匹配远端草稿,请在规则文件中补充稳定的 id。`);H=W[0]}if(!H){J.push(q);continue}Y.add(H.id);let G=nH1(H,q);if(G.length)Q.push({id:H.id,rule:q,changedFields:G});else K.push({id:H.id})}return{created:J,updated:Q,deleted:$.filter((q)=>!Y.has(q.id)),unchanged:K}}function bH1($,I){return $.description===I.description.trim()&&$.scope===(I.scope??"ALL")&&$.strictness===BD(I.strictness)}function nH1($,I){let U=[];if($.description!==I.description.trim())U.push("description");if($.scope!==(I.scope??"ALL"))U.push("scope");if($.strictness!==BD(I.strictness))U.push("strictness");return U}function BD($){let I=$?.toUpperCase()??"MUST_FOLLOW";if(I.includes("SHOULD"))return"SHOULD_FOLLOW";if(I.includes("SUGGEST"))return"SUGGESTION";return"MUST_FOLLOW"}function _Z0($){let I=$.match(/^(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)?$/i);if(!I||!I[1])return 600000;let U=parseFloat(I[1]);switch((I[2]??"s").toLowerCase()){case"ms":return U;case"s":return U*1000;case"m":return U*60*1000;case"h":return U*3600*1000;case"d":return U*86400*1000;default:return U*1000}}function PD($){return Object.fromEntries(Object.entries($).map(([I,U])=>[I,["apiKey","apiSecret","secret"].includes(I)&&typeof U==="string"?"***":U]))}function a8($,I,U,Y,J){return{preview:!0,targetUrl:`${bZ0($.corp).replace(/\/+$/,"")}/${I.replace(/^\/+/,"")}`,changesDiff:{before:vD(U),after:vD(Y)},impactCount:J}}function vD($){if(Array.isArray($))return $.map(vD);if(!$||typeof $!=="object")return $;return Object.fromEntries(Object.entries($).map(([I,U])=>[I,["apiKey","apiSecret","secret","token","password"].includes(I)&&typeof U==="string"?"***":vD(U)]))}function pH1($){let I=$.sourceSystem??$.mode??"hosecloud",U={skipInvoiceGeneration:$.skipInvoiceGeneration??!0,skipExpenseExtraction:$.skipExpenseExtraction??!0,thinkingDepthOverride:$.thinkingDepthOverride??"default",disableAttachmentCache:$.disableAttachmentCache??!1},Y=$.flowIds??(typeof $.documentSn==="string"?$.documentSn.split(",").map((J)=>J.trim()).filter(Boolean):$.documentSn);if(I==="hosecloud"){if(!Y?.length&&$.startTime===void 0)throw Error("hosecloud 模式需要提供 flowIds(单号列表)");if(Object.assign(U,{dataCollectionMode:"2",rejectNodeName:$.rejectNodeName??null,sourceSystem:"hosecloud"}),Y?.length)U.flowIds=Y;if($.signKey)U.signKey=$.signKey;if($.startTime!==void 0)U.startTime=$.startTime;if($.endTime!==void 0)U.endTime=$.endTime;if($.status)U.status=$.status;if($.limit)U.limit=$.limit}else if(I==="material_pack"||I==="material-pack"){let J=$.packageIds??($.packageId?[$.packageId]:void 0);if(!J?.length)throw Error("material_pack 模式需要提供 packageIds(材料包 id)");let Q=$.templateId??$.schemaConfig?.id;if(!Q)throw Error("material_pack 模式需要提供 templateId(或 schemaConfig.id)");if(Object.assign(U,{templateId:Q,packageIds:J,approvalCode:$.approvalCode??"material_pack",nodeId:$.nodeId??"material_pack",runMode:$.runMode??"import_and_simulate"}),$.schemaConfig!==void 0)U.schemaConfig=$.schemaConfig}else if(I==="weaver")Object.assign(U,{sourceSystem:"weaver",workflowTypeId:$.workflowTypeId,requestIds:$.requestIds,flowStatusList:$.flowStatusList,nodeId:$.nodeId,startTime:$.startTime,endTime:$.endTime,status:$.status,limit:$.limit??100,rejectNodeName:$.rejectNodeName??null});else if(I==="helios")Object.assign(U,{sourceSystem:"helios",documentType:$.documentType,businessCodes:$.businessCodes,rejectNodeName:$.rejectNodeName??null});else if(I==="maycur"||I==="maycur-standard")Object.assign(U,{sourceSystem:I,formCodes:$.formCodes??Y,createdAtStart:$.startTime,createdAtEnd:$.endTime,formSubTypeBizCode:$.formSubTypeBizCode,formStatus:$.formStatus,pageNo:$.pageNo??1,pageSize:$.pageSize??100,signKey:$.signKey});else if(I==="feishu")Object.assign(U,{sourceSystem:"feishu",approvalCode:$.approvalCode,nodeId:$.nodeId,startTime:$.startTime,endTime:$.endTime,status:$.status,limit:$.limit??100,signKey:$.signKey});else Object.assign(U,{sourceSystem:I});if($.rawParams)Object.assign(U,$.rawParams);return U}function cH1($){return{id:$.id,status:$.status,approvalCode:$.approvalCode,sourceSystem:$.sourceSystem,totalCount:$.totalCount,processedCount:$.processedCount,successCount:$.successCount,failedCount:$.failedCount,createdCount:$.createdCount,createFailedCount:$.createFailedCount,requestSummary:$.requestSummary,resultSummary:$.resultSummary,createdAt:$.createdAt}}function wI($){let I=$.sourceDocumentSN,U=VI($),Y=CD($);return{id:$.id,tenantId:$.tenantId,agentId:$.agentId,status:$.status,taskMode:$.taskMode,finalExecutionMode:$.finalExecutionMode,sourceSystem:$.sourceSystem,sourceDocumentSN:I,sourceDocumentId:$.sourceDocumentId,documentId:$.documentId,simulationBatchId:$.sourceExtendData?.simulation_batch_id,langfuseTraceId:$.sourceExtendData?._langfuseTraceId,langfuseSessionFallback:I?`hosecloud-${I}`:void 0,ruleSetVersionNumber:$.ruleSetVersionNumber,ruleSetPublishedAt:$.ruleSetPublishedAt,ruleSetPublishedByName:$.ruleSetPublishedByName,humanResult:U?.value,humanResultPath:U?.path,aiDecision:Y.decision,aiSummary:Y.summary,createdAt:$.createdAt,updatedAt:$.updatedAt}}function dH1($,I){return{date:I.date,timezone:I.timezone,fetched:I.fetched,matched:$.length,total:I.total,statusCounts:xZ0($,(U)=>U.status??"unknown"),taskModeCounts:xZ0($,(U)=>U.taskMode??"unknown"),records:$.map((U)=>{let Y=wI(U);return{createdAt:iZ0(Y.createdAt,I.timezone),sourceDocumentSN:Y.sourceDocumentSN,sourceDocumentId:Y.sourceDocumentId,status:Y.status,taskMode:Y.taskMode,finalExecutionMode:Y.finalExecutionMode,simulationBatchId:Y.simulationBatchId,langfuseTraceId:Y.langfuseTraceId,langfuseSessionFallback:Y.langfuseSessionFallback,ruleSetVersionNumber:Y.ruleSetVersionNumber,ruleSetPublishedAt:iZ0(Y.ruleSetPublishedAt,I.timezone),ruleSetPublishedByName:Y.ruleSetPublishedByName,humanResult:Y.humanResult,humanResultPath:Y.humanResultPath,recordId:Y.id}})}}function SZ0($){if(!$)return[];return(Array.isArray($)?$:$.split(",")).map((U)=>U.trim()).filter(Boolean)}function nZ0($,I){let U={};for(let Y of I){if(Y==="metadata"){U.metadata=pZ0($);continue}let J=o5($,Y);if(J!==void 0)oH1(U,Y,J)}return U}function pZ0($){let I=wI($);return{recordId:I.id,tenantId:I.tenantId,agentId:I.agentId,sourceSystem:I.sourceSystem,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId,documentId:I.documentId,status:I.status,taskMode:I.taskMode,finalExecutionMode:I.finalExecutionMode,simulationBatchId:I.simulationBatchId,langfuseTraceId:I.langfuseTraceId,langfuseSessionFallback:I.langfuseSessionFallback,ruleSetVersionNumber:I.ruleSetVersionNumber,ruleSetPublishedAt:I.ruleSetPublishedAt,ruleSetPublishedByName:I.ruleSetPublishedByName,createdAt:I.createdAt,updatedAt:I.updatedAt}}function mH1($){return{metadata:pZ0($),document:cZ0($).document,aiResult:CD($),manualResult:VI($)?.value,manualResultPath:VI($)?.path,ruleSetVersionNumber:$.ruleSetVersionNumber,ruleSetPublishedAt:$.ruleSetPublishedAt,ruleSetPublishedByName:$.ruleSetPublishedByName}}function CD($){let I=FH($.result);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,traceId:$.sourceExtendData?._langfuseTraceId,langfuseTraceId:$.sourceExtendData?._langfuseTraceId,decision:RD(I,["decision","manualApproval.decision","manualApproval.result","review.decision","finalDecision"]),summary:RD(I,["summary","result.summary","review.summary","conclusion"]),riskPointCount:gZ0(I,["riskPoints","risks","risk_points","review.riskPoints"]),matchedRuleCount:gZ0(I,["matchedRules","hitRules","ruleResults","rules","review.matchedRules"])}}function cZ0($){let I=FH($.document),U=tH1($.document),Y=U.map((J)=>`${J.label??J.path??""}:${J.value??""}`).join(` +`);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,document:SJ({id:I?.id,sn:I?.sn??I?.sourceDocumentSN??$.sourceDocumentSN,title:I?.title??I?.name,template:RD(I,["template.name","templateName","form.name","formName","formTitle"]),amount:TD(U,["金额","报销金额","付款金额","合计","价税合计"])??RD(I,["amount","totalAmount","expenseAmount"]),expenseType:TD(U,["费用类型","费用类别","报销类型"]),costCompany:TD(U,["费用承担公司","承担公司","成本中心","费用归属"]),payee:TD(U,["收款方","收款账户","收款信息","开户名","银行账号"]),keyFields:U.slice(0,30)}),invoices:aH1($),attachments:NJ($,{summary:!0}).attachments,aiResult:CD($),manualResult:VI($)?.value,hints:SJ({amountMentions:yZ0(Y,["金额","合计","税率"],8),partyMentions:yZ0(Y,["买方","卖方","甲方","乙方","收款"],8)})}}function lH1($){let I=[["result.citedRules",o5($,"result.citedRules")],["result.matchedRules",o5($,"result.matchedRules")],["result.ruleResults",o5($,"result.ruleResults")],["result.rules",o5($,"result.rules")],["pipelineData.citedRules",o5($,"pipelineData.citedRules")],["pipelineData.matchedRules",o5($,"pipelineData.matchedRules")]],U=[],Y=new Set;for(let[J,Q]of I)(Array.isArray(Q)?Q:Q&&typeof Q==="object"?Object.values(Q):[]).forEach((q,H)=>{let G=FH(q);if(!G)return;let W=Q4(G.runtimeRuleId)??Q4(G.runtimeId)??Q4(G.id)??Q4(G.ruleId),w=Q4(G.ruleCode)??Q4(G.code)??(W?$G1(W):void 0),Z=SJ({runtimeRuleId:W,ruleCode:w,versionNumber:rH1(G.versionNumber)??$.ruleSetVersionNumber,scope:Q4(G.scope),strictness:Q4(G.strictness),appliedAnalysis:G.appliedAnalysis??G.analysis??G.reasoning,checkResult:G.checkResult??G.result??G.decision,findings:G.findings??G.riskPoints??G.evidence,sourcePath:`${J}.${H}`}),V=JSON.stringify(Z);if(!Y.has(V))Y.add(V),U.push(Z)});return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,ruleSetVersionNumber:$.ruleSetVersionNumber,count:U.length,rules:U}}function RD($,I){if(!$)return;for(let U of I){let Y=o5($,U);if(Y!==void 0)return Y}return}function gZ0($,I){if(!$)return 0;for(let U of I){let Y=o5($,U);if(Array.isArray(Y))return Y.length;if(Y&&typeof Y==="object")return Object.keys(Y).length;if(typeof Y==="number")return Y}return 0}function o5($,I){return I.split(".").reduce((U,Y)=>{if(U===void 0||U===null)return;if(Array.isArray(U)){let J=Number(Y);return Number.isInteger(J)?U[J]:void 0}if(typeof U==="object")return U[Y];return},$)}function oH1($,I,U){let Y=I.split("."),J=$;for(let Q of Y.slice(0,-1)){let K=J[Q];if(!K||typeof K!=="object"||Array.isArray(K))J[Q]={};J=J[Q]}J[Y[Y.length-1]??I]=U}function SJ($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}function FH($){return $&&typeof $==="object"&&!Array.isArray($)?$:void 0}function rH1($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function tH1($){let I=[];return Tu($,"document",I),I}function Tu($,I,U){if(Array.isArray($)){$.forEach((K,q)=>Tu(K,`${I}.${q}`,U));return}let Y=FH($);if(!Y)return;let J=Q4(Y.label)??Q4(Y.name)??Q4(Y.title)??Q4(Y.fieldName),Q=Y.value??Y.displayValue??Y.text??Y.content;if(J&&Q!==void 0&&typeof Q!=="object")U.push(SJ({path:I,label:J,value:Q,type:Q4(Y.type)??Q4(Y.fieldType)}));for(let[K,q]of Object.entries(Y)){if(K==="attachments")continue;Tu(q,`${I}.${K}`,U)}}function TD($,I){return $.find((Y)=>{let J=Q4(Y.label)??"";return I.some((Q)=>J.includes(Q))})?.value}function aH1($){let I=[];return jD($.result,"result",I),jD($.document,"document",I),I.slice(0,20)}function jD($,I,U){if(Array.isArray($)){$.forEach((J,Q)=>jD(J,`${I}.${Q}`,U));return}let Y=FH($);if(!Y)return;if(/invoice|发票/i.test(I))U.push(SJ({path:I,fileName:Q4(Y.fileName)??Q4(Y.filename)??Q4(Y.name),buyer:Y.buyer??Y.buyerName??Y.purchaserName,seller:Y.seller??Y.sellerName,amount:Y.amount??Y.totalAmount??Y.total,taxRate:Y.taxRate,category:Y.category??Y.type}));for(let[J,Q]of Object.entries(Y))jD(Q,`${I}.${J}`,U)}function yZ0($,I,U){return $.split(/\r?\n/).filter((Y)=>I.some((J)=>Y.includes(J))).slice(0,U)}function ED($){return $.map((I)=>{let U=wI(I);return{recordId:U.id,tenantId:U.tenantId,agentId:U.agentId,sourceDocumentSN:U.sourceDocumentSN,sourceDocumentId:U.sourceDocumentId,simulationBatchId:U.simulationBatchId,langfuseTraceId:U.langfuseTraceId,langfuseSessionFallback:U.langfuseSessionFallback,ruleSetVersionNumber:U.ruleSetVersionNumber,ruleSetPublishedAt:U.ruleSetPublishedAt,ruleSetPublishedByName:U.ruleSetPublishedByName,resolution:U.langfuseTraceId?"trace":U.langfuseSessionFallback?"session-fallback":"unresolved"}})}function Au($){return{id:$.id,tenantId:$.tenantId,versionNumber:$.versionNumber,versionName:$.versionName,publishedBy:$.publishedBy,publishedByName:$.publishedByName,rulesCount:$.rules.length,publishedAt:$.publishedAt,createdAt:$.createdAt}}async function sH1($,I){if(I.recordId&&!I.versionId&&!I.versionNumber&&!I.latest){let U=await T4($,I.recordId);if(!U.ruleSetVersionNumber)throw Error(`Approval run ${I.recordId} has no ruleSetVersionNumber`);return Eu($,{versionNumber:U.ruleSetVersionNumber})}return Eu($,I)}function eH1($,I){let U=Pu(I.code),Y=dZ0(I.runtimeId),J=U?Number(U.slice(1)):Y;if(!J||J<1)throw Error("Pass --code '#0038' or --runtime-id rule-205");let Q=$.rules.find((H,G)=>{let W=H;return Pu(Q4(W.code)??Q4(W.ruleCode))===U||G+1===J});if(!Q)return;let K=Q,q=$.rules.indexOf(Q)+1;return SJ({runtimeRuleId:Q4(K.runtimeRuleId)??`rule-${q}`,ruleCode:Pu(Q4(K.code)??Q4(K.ruleCode))??ju(q),versionId:$.id,versionNumber:$.versionNumber,versionName:$.versionName,publishedAt:$.publishedAt,publishedByName:$.publishedByName,description:Q.description,scope:Q.scope,strictness:Q.strictness,status:Q4(K.status)})}function Pu($){if(!$)return;let I=$.match(/\d+/)?.[0];return I?ju(Number(I)):$}function dZ0($){if(!$)return;let I=$.match(/(\d+)$/);return I?Number(I[1]):void 0}function $G1($){let I=dZ0($);return I?ju(I):void 0}function ju($){return`#${String($).padStart(4,"0")}`}function IG1($,I){let U=wI($),Y={recordId:U.id,sourceDocumentSN:U.sourceDocumentSN,sourceDocumentId:U.sourceDocumentId,simulationBatchId:U.simulationBatchId,status:U.status,taskMode:U.taskMode,ruleSetVersionNumber:U.ruleSetVersionNumber,langfuseTraceId:U.langfuseTraceId,manualResult:U.humanResult,aiDecision:U.aiDecision,aiSummary:U.aiSummary,createdAt:U.createdAt};if(I.length===0)return Y;return nZ0(Y,I)}async function UG1($,I){if(I.recordId)return T4($,I.recordId);let Y=(await j$($,{limit:1,search:I.sourceDocumentSN??I.sourceDocumentId,sourceDocumentSN:I.sourceDocumentSN,sourceDocumentId:I.sourceDocumentId})).records[0];if(!Y){let J=I.sourceDocumentSN?`sourceDocumentSN ${I.sourceDocumentSN}`:`sourceDocumentId ${I.sourceDocumentId}`;throw Error(`Approval run not found for ${J}`)}return T4($,Y.id)}function YG1($){if($.seal?.url)return $.seal.url.replace(/\/+$/,"");if($.source.type==="hose")return AU($,$.source).replace(/\/+$/,"");if("sealUrl"in $.source&&typeof $.source.sealUrl==="string"&&$.source.sealUrl)return $.source.sealUrl.replace(/\/+$/,"");return`https://${$.id.toLowerCase()}.sealai.cc`}function JG1($){return $.replace(/\/+$/,"")}function Q4($){return typeof $==="string"&&$.trim()?$:void 0}async function QG1($,I){let U=Math.min(100,Math.max(I.limit,20)),Y=[],J,Q=0;while(Q!I.sn||H.sourceDocumentSN===I.sn).filter((H)=>!I.batchId||H.sourceExtendData?.simulation_batch_id===I.batchId);if(Y.push(...q),K.records.length===0||J!==void 0&&Q>=J)break}return Y.sort((K,q)=>hZ0(q.createdAt)-hZ0(K.createdAt)),{total:J,scanned:Q,records:Y.slice(0,I.latest?1:I.limit)}}function hZ0($){if(typeof $==="number")return $;if(typeof $==="string"){let I=Date.parse($);return Number.isFinite(I)?I:0}return 0}async function Eu($,I){if(I.versionId)return P2($,I.versionId);let U=await R$($),Y=I.versionNumber?U.find((J)=>J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}function Cu($,I){let U=I?.trim().toLowerCase();if(!U)return $;return $.filter((Y)=>{return[Y.id,Y.sourceDocumentSN,Y.sourceDocumentId,Y.documentId,Y.sourceExtendData?._langfuseTraceId,Y.sourceExtendData?.simulation_batch_id,Y.status,Y.taskMode,Y.finalExecutionMode,Y.sourceSystem,Y.ruleSetVersionNumber,Y.ruleSetPublishedByName].some((Q)=>Bu(Q,U))||vu(Y,U)})}function Bu($,I){if($===null||$===void 0)return!1;if(typeof $==="string"||typeof $==="number"||typeof $==="boolean")return String($).toLowerCase().includes(I);return!1}function vu($,I,U=0){if(U>6)return!1;if(Bu($,I))return!0;if(!$||typeof $!=="object")return!1;if(Array.isArray($))return $.some((Y)=>vu(Y,I,U+1));return Object.entries($).some(([Y,J])=>Bu(Y,I)||vu(J,I,U+1))}function KG1($,I){let U=I?.trim().toLowerCase();if(!U)return $;return $.filter((Y)=>VI(Y)?.value.toLowerCase().includes(U))}function qG1($){return{...$,manualApprovalStatus:mZ0($.manualApprovalStatus,$.humanResult)}}function mZ0($,I){if($)return $;let U=I?.trim().toLowerCase();if(!U)return;if(["驳回","已驳回","拒绝","不通过","terminated","reject","rejected","denied"].includes(U))return"TERMINATED";return}async function uZ0($,I,U){let Y=Cu(I,U.query);if(!U.humanResult?.trim())return Y;let J=await Promise.all(Y.map(async(Q)=>{if(VI(Q))return Q;try{return await T4($,Q.id)}catch{return Q}}));return KG1(J,U.humanResult)}function HG1($){return{originalDocumentData:{path:"document",frontendLabel:"单据原始数据",description:"前端详情页展示的单据原始数据对象",id:$.document?.id??$.documentId,sourceDocumentSN:$.document?.sourceDocumentSN??$.sourceDocumentSN,sourceDocumentId:$.document?.sourceDocumentId??$.sourceDocumentId},aiDocumentFields:{path:"document.fields",frontendLabel:"AI 看的单据",description:"AI 审核实际读取的字段数组,即单据原始数据中的 fields",fieldCount:$.document?.fields?.length},aiDocument:{path:"document.fields",frontendLabel:"AI 看的单据",description:"兼容别名,等同于 aiDocumentFields",aliasOf:"aiDocumentFields",fieldCount:$.document?.fields?.length},sourceDocument:{path:"sourceExtendData.hosecloudViewUrl",description:"合思原始单据入口;详情响应中只有入口和源单据 ID,不包含完整原始单据 JSON",sourceSystem:$.sourceSystem,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,originalDocumentId:$.sourceExtendData?.original_document_id,viewUrl:$.sourceExtendData?.hosecloudViewUrl},aiResult:{path:"result",description:"AI 最终审核结构化结果"},aiAuditLog:{path:"pipelineData.logs",description:"AI 审核过程日志"},manualApproval:{path:"manualApprovalRecord",description:"人工审核结果、节点和驳回原因"}}}function VI($){let I=[["result",$.result],["pipelineData",$.pipelineData]];for(let[U,Y]of I){let J=Ru(Y,U);if(J)return J}return}function Ru($,I,U=0){if(U>8||$===null||$===void 0)return;if(Array.isArray($)){for(let Y=0;Y<$.length;Y+=1){let J=Ru($[Y],`${I}[${Y}]`,U+1);if(J)return J}return}if(typeof $!=="object")return;for(let[Y,J]of Object.entries($)){let Q=`${I}.${Y}`,K=Ru(J,Q,U+1);if(K)return K;if(kZ0(Y)||kZ0(Q)){let q=lZ0(J);if(q)return{value:q,path:Q}}}return}function kZ0($){let I=$.toLowerCase(),U=I.includes("human")||I.includes("manual")||I.includes("reviewer")||I.includes("operator")||$.includes("人工")||$.includes("人工审批")||$.includes("人工审核"),Y=I.includes("result")||I.includes("decision")||I.includes("outcome")||I.includes("conclusion")||I.includes("action")||$.includes("结果")||$.includes("结论")||$.includes("动作");return U&&Y}function lZ0($){if(typeof $==="string")return $.trim()||void 0;if(typeof $==="number"||typeof $==="boolean")return String($);if(!$||typeof $!=="object")return;let I=$;for(let U of["label","name","text","value","result","decision","outcome","status","action"]){let Y=lZ0(I[U]);if(Y)return Y}return}function GG1($,I){if(I.recordId&&$.id!==I.recordId)return!1;if(I.sourceDocumentSN&&$.sourceDocumentSN!==I.sourceDocumentSN)return!1;if(I.sourceDocumentId&&$.sourceDocumentId!==I.sourceDocumentId)return!1;return!0}function xZ0($,I){return $.reduce((U,Y)=>{let J=I(Y);return U[J]=(U[J]??0)+1,U},{})}function fZ0($,I){let U=oZ0($);if(!U)return;let Y=rZ0(U,I),J=Y.year,Q=(Y.month??"01").padStart(2,"0"),K=(Y.day??"01").padStart(2,"0");return`${J}-${Q}-${K}`}function iZ0($,I){let U=oZ0($);if(!U)return;let Y=rZ0(U,I),J=(Y.month??"01").padStart(2,"0"),Q=(Y.day??"01").padStart(2,"0"),K=(Y.hour??"00").padStart(2,"0"),q=(Y.minute??"00").padStart(2,"0"),H=(Y.second??"00").padStart(2,"0");return`${Y.year??"0000"}-${J}-${Q} ${K}:${q}:${H}`}function oZ0($){if($===void 0)return null;let I=new Date($);return Number.isNaN(I.getTime())?null:I}function rZ0($,I){return Object.fromEntries(new Intl.DateTimeFormat("en-CA",{timeZone:I,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts($).filter((U)=>U.type!=="literal").map((U)=>[U.type,U.value]))}import{writeFileSync as XG1}from"node:fs";class d$ extends Error{exitCode;nextAction;constructor($,I,U){super($);this.name="CliError",this.exitCode=I,this.nextAction=U}}class _D extends d${constructor($,I){super($,12,I);this.name="PayloadTooLargeError"}}function S4($,I){return new d$($,2,I)}function s8($,I){return new d$($,10,I)}function SD($){if($ instanceof d$)return{exitCode:$.exitCode,nextAction:$.nextAction};let I=$ instanceof Error?$.message:String($),U=WG1($);if(U===401||U===403||/(?:^|\s)(?:token|bearer|session) (?:expired|missing|invalid)/i.test(I))return{exitCode:11};if(/^(?:Usage:|Unknown (?:[a-z0-9_-]+ )?command|Invalid (?:number|boolean|command)|--json must|Missing required JSON field)/i.test(I))return{exitCode:2};if(/^Refusing to (?:clear|delete)|without --yes|without confirm=true/i.test(I))return{exitCode:10};return{exitCode:1}}function WG1($){if(!$||typeof $!=="object")return;let I=$.response;if(!I||typeof I!=="object")return;let U=I.status;return typeof U==="number"?U:void 0}function tZ0($){let I=[],U={},Y;for(let J=0;J<$.length;J+=1){let Q=$[J];if(!Q)continue;if(Q==="--json"){let K=$[J+1];if(!K)throw S4("--json requires a JSON object argument");try{Y=JSON.parse(K)}catch(q){throw S4(`Invalid JSON: ${q instanceof Error?q.message:String(q)}`)}J+=1;continue}if(Q.startsWith("-")){let K=Q.replace(/^-+/,"");if(K.includes("=")){let H=K.indexOf("="),G=K.slice(0,H),W=K.slice(H+1);U[G]=W;continue}let q=$[J+1];if(!q||q.startsWith("-"))U[K]=!0;else U[K]=q,J+=1;continue}I.push(Q)}return{command:I,options:U,json:Y}}function U$($){if($===void 0)return{};if(!$||typeof $!=="object"||Array.isArray($))throw S4("--json must be an object");return $}function g($){return typeof $==="string"?$:void 0}function n0($){if(typeof $!=="string")return;let I=Number($);if(!Number.isFinite(I))throw S4(`Invalid number: ${$}`);return I}function V6($){if(typeof $!=="string")return;let I=$.split(",").map((U)=>U.trim()).filter(Boolean);return I.length?I:void 0}function O0($){if($===void 0)return;if(typeof $==="boolean")return $;if($==="true")return!0;if($==="false")return!1;throw S4(`Invalid boolean: ${$}`)}function A7($,I){let U=m1($,I);if(!U)throw Error(`Missing required JSON field: ${I}`);return U}function m1($,I){let U=$[I];return typeof U==="string"&&U.trim()?U.trim():void 0}function aZ0($,I){let U=$[I];return typeof U==="number"&&Number.isFinite(U)?U:void 0}function _u($){return $.replace(/[^a-zA-Z0-9._-]/g,"_")}function sZ0($){let I=$.trim().toLowerCase();if(["stateful","state","有状态"].includes(I))return!0;if(["stateless","无状态"].includes(I))return!1;throw Error("Invalid config mode. Use stateful or stateless.")}function NH($){if($==="latest")return{latest:!0};let I=Number($);if(Number.isInteger(I)&&I>0)return{versionNumber:I};return{versionId:$}}function eZ0($){if(!$)return{};let I=NH($);if("latest"in I)return{ruleVersionScope:"version",latestRuleVersion:!0};if("versionNumber"in I)return{ruleVersionScope:"version",ruleVersionNumber:I.versionNumber};return{ruleVersionScope:"version",ruleVersionId:I.versionId}}function $z0($){if(!$)return{};let I=NH($);if("latest"in I)return{latestRuleVersion:!0};if("versionNumber"in I)return{ruleVersionNumber:I.versionNumber};return{ruleVersionId:I.versionId}}function Iz0($){if(!$)return{};let I=NH($);if("latest"in I)return{latest:!0};if("versionNumber"in I)return{versionNumber:I.versionNumber};return{versionId:I.versionId}}function Su($){if(!$)return;let I=$.trim().toLowerCase().replace(/[\s-]+/g,"_"),Y={assisted:"assisted",辅助:"assisted",semi_automatic:"semi_automatic",半自动:"semi_automatic",fully_automatic:"fully_automatic",全自动:"fully_automatic"}[I];if(!Y)throw Error("Invalid Webhook mode. Use assisted, semi_automatic, or fully_automatic");return Y}function gu($){let I=n0($.autoApprovalRate??$["auto-approval-rate"]??$["approval-rate"]);if(I!==void 0&&(!Number.isInteger(I)||I<0||I>100))throw Error("Webhook auto approval rate must be an integer between 0 and 100");return I}function yu($){return O0($.showSecret)??O0($["show-secret"])}function MH($){let I=O0($.clearMaxFileSize??$["clear-max-file-size"])===!0,U=n0($.minFileSizeBytes??$["min-file-size-bytes"]??$.minFileSize??$["min-file-size"]),Y=n0($.maxFileSizeBytes??$["max-file-size-bytes"]??$.maxFileSize??$["max-file-size"]),J=V6($.allowedExtensions??$["allowed-extensions"]??$.extensions);if(U===void 0&&Y===void 0&&J===void 0&&!I)return;return{minFileSizeBytes:U,maxFileSizeBytes:I?null:Y,allowedExtensions:J}}var Yz0=[{area:"corps",title:"Enterprise and tenant management",description:"Manage enterprise configurations, environment modes, test bindings, and syncing.",commands:[{name:"list",summary:"List all configured enterprises",usage:["seal-use corps list [--corp ]"]},{name:"current",summary:"Show active enterprise in stateful mode",usage:["seal-use corps current [--corp ]"]},{name:"switch",summary:"Switch default active enterprise",usage:["seal-use corps switch "]},{name:"mark",summary:"Mark enterprise environment as production or test",usage:["seal-use corps mark --env [--confirm]"],options:[{flag:"--env ",description:"Target environment: 'production' or 'test' (required)"},{flag:"--confirm",description:"Confirm the environment update (required)"}],description:"Explicitly updates an enterprise's environment tag. Requires --confirm to prevent accidental changes."},{name:"bind-test",summary:"Bind a production enterprise to a test enterprise (1-to-1 association)",usage:["seal-use corps bind-test [--confirm] [--force]","seal-use corps bind-test --corp [--confirm] [--force]"],options:[{flag:"--confirm",description:"Explicitly confirm binding and tag test environment (required)"},{flag:"--force",description:"Force re-binding if the production enterprise is already bound"},{flag:"--corp ",description:"Specify production enterprise ID or name"}],description:"Establishes a strict 1-to-1 association between a production enterprise and a test enterprise. Automatically marks the test enterprise with environment 'test'."},{name:"unbind-test",summary:"Unbind a production and test enterprise association",usage:["seal-use corps unbind-test [] [--confirm]"],options:[{flag:"--confirm",description:"Explicitly confirm unbinding both sides (required)"},{flag:"--corp ",description:"Specify enterprise ID or name"}],description:"Removes the 1-to-1 test association from both the production enterprise and the test enterprise."},{name:"sync-test",summary:"Synchronize rules and preferences from production to test enterprise",usage:["seal-use corps sync-test [] [--dry-run] [--yes] [--version-name ]"],options:[{flag:"--dry-run",description:"Preview sync diff without making network mutations (default)"},{flag:"--yes",description:"Execute synchronization and publish new rule version on test enterprise"},{flag:"--version-name ",description:"Custom version name for published test rule version"},{flag:"--corp ",description:"Specify production enterprise ID or name"}],description:"Overwrites test enterprise decision preferences with production preferences, syncs production draft rules to test enterprise, and immediately publishes a new version on the test enterprise. Production rules remain safe in draft state."},{name:"add-hose",summary:"Add a Hose/Ekuaibao enterprise configuration",usage:[`seal-use corps add-hose --json '{"name":"企业名称","domain":"https://app.ekuaibao.com","appKey":"...","appSecurity":"...","proxyStaffBizId":"corpId:staffId"}'`]},{name:"add-seal",summary:"Add a native Seal enterprise configuration",usage:[`seal-use corps add-seal --json '{"sealUrl":"https://tenant.sealai.cc","token":"seal-bearer-token"}'`]},{name:"add-link",summary:"Import enterprise configuration from a Hose assistance link",usage:["seal-use corps add-link [--name ] [--overwrite]"]}]},{area:"rules",title:"Approval rules management",description:"Query, search, version, lint, import, and export approval audit rules.",commands:[{name:"count",summary:"Count total rules in current enterprise",usage:["seal-use rules count [--corp ]"]},{name:"list",summary:"List approval rules with optional pagination and summary",usage:["seal-use rules list [--summary] [--count] [--limit 20] [--offset 0] [--corp ]"],options:[{flag:"--summary",description:"Output compact summary fields (id, code, strictness, scope)"},{flag:"--limit ",description:"Number of rules to fetch (default: 20)"},{flag:"--offset ",description:"Offset index for pagination"},{flag:"--full",description:"Allow large payloads beyond standard size limits"}]},{name:"clear",summary:"Clear all draft rules from enterprise",usage:["seal-use rules clear [--corp ] [--dry-run|--yes]"]},{name:"versions",summary:"List published rule versions",usage:["seal-use rules versions [--corp ]"]},{name:"version",summary:"Inspect a specific rule version",usage:["seal-use rules version [--corp ]"]},{name:"get",summary:"Get single rule by code or record ID",usage:["seal-use rules get --corp --version --code '#0038'","seal-use rules get --corp --record-id --runtime-id rule-205"]},{name:"search",summary:"Search rules by keyword",usage:["seal-use rules search [--version ] [--maxResults 20] [--corp ]"]},{name:"lint",summary:"Lint rule text or rule file using builtin or custom linter",usage:["seal-use rules lint [--file ] [--linter ] [--min-score ] [--corp ]"]},{name:"pull",summary:"Export rules to local JSON file",usage:["seal-use rules pull [--out ] [--corp ]"]},{name:"push",summary:"Push rules from local JSON file to enterprise draft space",usage:["seal-use rules push --file [--mode replace|incremental] [--yes] [--corp ]"]}]},{area:"webhook",title:"Webhook integrations and material packs",description:"Manage incoming audit webhooks and upload offline simulation material packs.",commands:[{name:"ready",summary:"Check readiness of webhook integration and material pack",usage:["seal-use webhook ready [<材料包.zip>] [--webhook ] [--corp ]"]},{name:"status",summary:"Check status of webhook integration",usage:["seal-use webhook status [<材料包.zip>] [--corp ]"]},{name:"list",summary:"List registered webhook endpoints",usage:["seal-use webhook list [--query ] [--show-secret] [--corp ]"]},{name:"get",aliases:["find"],summary:"Get webhook endpoint details",usage:["seal-use webhook get|find [--show-secret] [--corp ]"]},{name:"add",summary:"Register a new webhook endpoint",usage:["seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size 500] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]"]},{name:"update",summary:"Update an existing webhook endpoint",usage:["seal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]"]},{name:"delete",summary:"Delete a webhook endpoint",usage:["seal-use webhook delete [--yes|--dry-run] [--corp ]"]},{name:"material-pack preview",summary:"Inspect and validate a material pack ZIP or Excel sheet",usage:["seal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--corp ]"]},{name:"material-pack push",summary:"Upload and push a material pack to webhook endpoint",usage:["seal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook ] [--corp ]"]},{name:"replay",summary:"Replay an existing approval record into a Webhook channel",usage:["seal-use webhook replay [--webhook ] [--sn-suffix ] [--dry-run] [--corp ]","seal-use webhook replay --sn [--webhook ] [--source-corp ] [--corp ]"],options:[{flag:"",description:"Approval run record ID to replay"},{flag:"--sn ",description:"Lookup approval record by source document SN if recordId not given"},{flag:"--webhook ",description:"Target Webhook integration (auto-locks if only one exists)"},{flag:"--source-corp ",description:"Source enterprise where the approval record resides (default: active)"},{flag:"--sn-suffix ",description:"Optional suffix appended to documentSN and documentId"},{flag:"--sn-prefix ",description:"Optional prefix prepended to documentSN and documentId"},{flag:"--dry-run",description:"Generate and output Webhook payload JSON without sending HTTP request"}],description:"Extracts structured form fields from any historical approval record (Webhook or Hose source), sanitizes field types, and pushes a new document to the target Webhook channel."}]},{area:"approval-runs",title:"Approval runs and audit execution records",description:"Inspect live and historical AI approval decisions, cited rules, and attachments.",commands:[{name:"summary",summary:"Daily summary of approval runs",usage:["seal-use approval-runs summary [--date YYYY-MM-DD] [--timezone Asia/Shanghai] [--corp ]"]},{name:"stats",summary:"Statistical aggregation of approval run metrics",usage:["seal-use approval-runs stats [--since 3months] [--dedupe-by sourceDocumentSN|sourceDocumentId|id] [--corp ]"]},{name:"count",summary:"Count approval runs filtered by status",usage:["seal-use approval-runs count [--status APPROVED] [--corp ]"]},{name:"export",summary:"Export approval run audit records to Excel workbook",usage:["seal-use approval-runs export [--start ] [--end ] [--limit ] [--downloads] [--out ] [--corp ]"]},{name:"list",aliases:["search"],summary:"Search approval records by keyword, dates, or decision status",usage:["seal-use approval-runs list|search [--query text] [--humanResult 驳回] [--manualApprovalStatus TERMINATED] [--startDate ms] [--endDate ms] [--limit 20] [--includeBridge true] [--corp ]"]},{name:"pick",summary:"Locate single approval run by document SN",usage:["seal-use approval-runs pick --sn [--batch ] [--latest] [--fields recordId,status,aiDecision] [--corp ]"]},{name:"get",summary:"Get detailed approval record payload",usage:["seal-use approval-runs get [--summary] [--fields metadata|document.fields,result.summary] [--full] [--output-file file.json] [--corp ]"]},{name:"cited-rules",summary:"Inspect rules cited by AI in an approval decision",usage:["seal-use approval-runs cited-rules [--corp ]"]},{name:"document-summary",summary:"Inspect parsed source document summary",usage:["seal-use approval-runs document-summary [--corp ]"]},{name:"attachments",summary:"Inspect and list attachments for approval run",usage:["seal-use approval-runs attachments [--summary] [--corp ]","seal-use approval-runs attachments download [--all] [--name ] [--out-dir ] [--corp ]"]},{name:"result",summary:"Get decision result for an approval run",usage:["seal-use approval-runs result [--summary] [--corp ]"]},{name:"url",summary:"Get web console URL for approval run (default deep link, or --sso for auto-login link)",usage:["seal-use approval-runs url [--corp ]","seal-use approval-runs url --sso [--expire 7200] [--corp ]","seal-use approval-runs url --sn [--sso] [--corp ]","seal-use approval-runs url [--corp ]"]},{name:"bridge",summary:"Inspect browser bridge integration payload",usage:["seal-use approval-runs bridge [--sourceDocumentSN B26001887] [--corp ]"]},{name:"replay",summary:"Replay approval run record into a Webhook integration",usage:["seal-use approval-runs replay [--webhook ] [--sn-suffix ] [--dry-run] [--corp ]","seal-use approval-runs replay --sn [--webhook ] [--source-corp ] [--corp ]"],options:[{flag:"",description:"Approval run record ID"},{flag:"--sn ",description:"Lookup approval record by source document SN"},{flag:"--webhook ",description:"Target Webhook integration"},{flag:"--source-corp ",description:"Source enterprise where the approval record resides"},{flag:"--sn-suffix ",description:"Optional suffix appended to documentSN"},{flag:"--dry-run",description:"Preview payload without sending"}]}]},{area:"simulation",title:"Simulation testing engine",description:"Execute and analyze offline or HoseCloud batch simulations against approval rules.",commands:[{name:"batch-records",summary:"Fetch records for a simulation batch",usage:["seal-use simulation batch-records [--corp ]"]},{name:"create",summary:"Trigger a new simulation batch",usage:['seal-use simulation create --mode hosecloud --flow-ids "B26017701,B26022501" [--reject-node 财务] [--thinking-depth default|medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--no-wait] [--corp ]',"seal-use simulation create --mode material_pack --package-ids [--template-id conference_reimbursement_v1] [--schema-config file.json] [--corp ]",'seal-use simulation create --source-system weaver --request-ids "req-01,req-02" [--corp ]']},{name:"status",summary:"Check current progress of a simulation batch",usage:["seal-use simulation status [--corp ]"]},{name:"wait",summary:"Wait synchronously for simulation batch to finish",usage:["seal-use simulation wait [--timeout 10m] [--poll-interval 2s] [--corp ]"]},{name:"clean",summary:"Clean simulation batch records",usage:["seal-use simulation clean [--corp ]"]},{name:"specifications",summary:"Query simulation specifications",usage:["seal-use simulation specifications [--integration ] [--corp ]"]},{name:"approval-definitions",summary:"Query simulation approval definitions",usage:["seal-use simulation approval-definitions [--corp ]"]},{name:"list",summary:"List recent simulation batches",usage:["seal-use simulation list [--limit 50] [--corp ]"]},{name:"get",summary:"Get details for simulation batch",usage:["seal-use simulation get [--corp ]"]},{name:"templates",summary:"List available simulation templates",usage:["seal-use simulation templates [--corp ]"]},{name:"integrations",summary:"List available simulation integrations",usage:["seal-use simulation integrations [--corp ]"]},{name:"package-upload",summary:"Upload a simulation material package",usage:["seal-use simulation package-upload <材料包.zip> [--corp ]"]}]},{area:"deploy",title:"Deployment and cloud synchronization",description:"Manage HoseCloud integration configurations and synchronization.",commands:[{name:"hosecloud requirements",summary:"Check HoseCloud deployment requirements",usage:["seal-use deploy hosecloud requirements [--corp ]"]},{name:"hosecloud list",summary:"List HoseCloud deployment targets",usage:["seal-use deploy hosecloud list [--corp ]"]},{name:"hosecloud get",summary:"Get HoseCloud deployment details",usage:["seal-use deploy hosecloud get [--corp ]"]},{name:"hosecloud status",summary:"Check HoseCloud deployment status",usage:["seal-use deploy hosecloud status [--corp ]"]},{name:"hosecloud configure",summary:"Configure HoseCloud deployment settings",usage:["seal-use deploy hosecloud configure --json '{...}' [--dry-run] [--corp ]"]},{name:"hosecloud sync",summary:"Synchronize HoseCloud rules and definitions",usage:["seal-use deploy hosecloud sync [--corp ]"]}]},{area:"preference",title:"Audit preferences and thinking depth",description:"Manage AI decision preferences, strictness, and thinking depth policies.",commands:[{name:"get",summary:"Get current decision preference configuration",usage:["seal-use preference get [--corp ]"]},{name:"decision update",summary:"Update decision preference rules",usage:[`seal-use preference decision update --json '{"explicitApprove":"..."}' [--dry-run] [--corp ]`]},{name:"thinking-depth set",summary:"Set default thinking depth",usage:["seal-use preference thinking-depth set --default [--dry-run] [--corp ]"]},{name:"thinking-depth policies list",summary:"List thinking depth policies",usage:["seal-use preference thinking-depth policies list [--corp ]"]},{name:"thinking-depth policies upsert",summary:"Upsert a thinking depth policy",usage:["seal-use preference thinking-depth policies upsert --json '{...}' [--dry-run] [--corp ]"]},{name:"thinking-depth policies remove",summary:"Remove a thinking depth policy",usage:["seal-use preference thinking-depth policies remove [--dry-run] [--corp ]"]}]},{area:"config",title:"CLI and global workspace configuration",description:"Manage configuration paths, stateful/stateless mode, test directory, and rule linter.",commands:[{name:"paths",summary:"Display active configuration file and directory paths",usage:["seal-use config paths"]},{name:"get",aliases:["status"],summary:"Display current global configuration",usage:["seal-use config get"]},{name:"mode",summary:"Configure stateful or stateless CLI operating mode",usage:["seal-use config mode [--corp ]"]},{name:"test-dir",aliases:["test-enterprises-dir"],summary:"Set or clear global test enterprises directory",usage:["seal-use config test-dir [|--clear]"]},{name:"lint",summary:"Configure automatic rule linter status and thresholds",usage:["seal-use config lint [status|enable|disable] [--linter ] [--min-score ]"]}]},{area:"auth",title:"Authentication and session diagnostics",description:"Diagnose upstream token status and generate provisional assistance links.",commands:[{name:"diagnose",summary:"Diagnose auth session and platform connectivity",usage:["seal-use auth diagnose [--corp ]"]},{name:"hose-link",summary:"Generate Hose third-party assistance link",usage:["seal-use auth hose-link [--corp ] [--expire 7200]"]}]},{area:"delegation",title:"Delegation tokens",description:"Manage Seal user delegation tokens and temporary access credentials.",commands:[{name:"list",summary:"List active delegation tokens",usage:["seal-use delegation list [--corp ]"]},{name:"create",summary:"Create a new delegation token",usage:["seal-use delegation create [--note ] [--from-link ] [--corp ]"]},{name:"revoke",summary:"Revoke an existing delegation token",usage:["seal-use delegation revoke [--corp ]"]}]},{area:"users",title:"User administration",description:"Manage tenant users, phone credentials, and passwords.",commands:[{name:"create",summary:"Create a new tenant user",usage:["seal-use users create --name --phone [--dept ] [--corp ]"]},{name:"search",summary:"Search tenant users by name or phone",usage:["seal-use users search [--corp ]"]},{name:"delegation",summary:"Create delegation token for a specific user",usage:["seal-use users delegation [--note ] [--corp ]"]},{name:"reset-password",summary:"Reset user password",usage:["seal-use users reset-password [--corp ]"]},{name:"get",summary:"Get user details",usage:["seal-use users get [--corp ]"]},{name:"delete",summary:"Delete user",usage:["seal-use users delete [--corp ]"]}]},{area:"contacts",title:"Contacts directory",description:"Query organizational departments, child hierarchies, and user mappings.",commands:[{name:"departments",summary:"List organizational departments",usage:["seal-use contacts departments [] [--corp ]"]},{name:"children",summary:"List child departments",usage:["seal-use contacts children [--corp ]"]},{name:"users",summary:"List users in department",usage:["seal-use contacts users [--corp ]"]},{name:"sync-time",summary:"Get latest contacts synchronization time",usage:["seal-use contacts sync-time [--corp ]"]}]},{area:"data",title:"Expense and invoice data records",description:"Search raw historical expense and invoice data entries.",commands:[{name:"expenses",summary:"Search raw expense items",usage:["seal-use data expenses [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ] [--corp ]"]},{name:"invoices",summary:"Search raw invoice records",usage:["seal-use data invoices [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ] [--corp ]"]}]},{area:"llm",title:"LLM configuration",description:"Query LLM providers and configuration settings.",commands:[{name:"config",summary:"Get active LLM configuration",usage:["seal-use llm config [--corp ]"]},{name:"providers",summary:"List available LLM providers",usage:["seal-use llm providers [--corp ]"]}]},{area:"permissions",title:"Tenant permissions",description:"Inspect available and configured permissions.",commands:[{name:"available",summary:"List available permissions",usage:["seal-use permissions available [--corp ]"]},{name:"configs",summary:"List active permission configurations",usage:["seal-use permissions configs [--corp ]"]}]},{area:"billing",title:"Subscription and billing plans",description:"Query billing status, feature entitlements, and plan limits.",commands:[{name:"status",summary:"Query current billing and subscription status",usage:["seal-use billing status [--corp ]"]},{name:"plans",summary:"Query available billing plans",usage:["seal-use billing plans [--corp ]"]},{name:"features",summary:"Query billing feature toggles",usage:["seal-use billing features [--corp ]"]}]},{area:"analytics",title:"Audit analytics and insights",description:"Query high-level audit analytics and insights.",commands:[{name:"insight",summary:"Query AI audit insights and trends",usage:["seal-use analytics insight [--start-date ] [--end-date ] [--limit ] [--corp ]"]}]},{area:"context",title:"Knowledge context and documents",description:"Query uploaded knowledge context and documents.",commands:[{name:"",summary:"Inspect knowledge context documents",usage:["seal-use context [--ruleVersion ] [--documentLimit 50] [--corp ]"]}]},{area:"source",title:"Data source configurations",description:"Inspect enterprise source system configuration.",commands:[{name:"config",summary:"Inspect source configuration",usage:["seal-use source config [--corp ]"]}]},{area:"tool",title:"Direct low-level tool invocation",description:"Execute individual Seal tools directly.",commands:[{name:"",summary:"Invoke a tool directly",usage:[`seal-use tool [--corp ] [--json '{"key":"value"}']`]}]},{area:"tools",title:"Available tools listing",description:"List all executable domain tools.",commands:[{name:"list",summary:"List all available domain tools",usage:["seal-use tools list"]}]},{area:"update",title:"CLI self-update and release changelogs",description:"Check for new releases, perform self-updates, and view changelogs.",commands:[{name:"",summary:"Update seal-use to latest or target version",usage:["seal-use update [--check] [--force] [--version ]","seal-use update check","seal-use update changelog [--limit ]","seal-use changelog [--limit ]"]}]},{area:"probe",title:"Enterprise connectivity probe",description:"Probe upstream Hose and Seal HTTP connectivity and token validity.",commands:[{name:"",summary:"Run connectivity probe",usage:["seal-use probe []"]}]},{area:"mcp",title:"Model Context Protocol (MCP) server",description:"Run standalone or stdio MCP server for agent harnesses.",commands:[{name:"",summary:"Run MCP server or output MCP config",usage:["seal-use mcp","seal-use mcp config","seal-use mcp-config"]}]},{area:"skill",title:"Agent skill management",description:"Install, dump, or inspect agent skills.",commands:[{name:"dump",summary:"Dump embedded skill markdown",usage:["seal-use skill dump"]},{name:"install",summary:"Install skill to active workspace",usage:["seal-use skill install [--dir |--local]"]},{name:"status",summary:"Check skill installation status",usage:["seal-use skill status"]}]},{area:"http",title:"HTTP server",description:"Run interactive HTTP server.",commands:[{name:"",summary:"Start HTTP daemon",usage:["seal-use http [--port 8787] [--host 127.0.0.1]","seal-use serve [--port 8787]"]}]},{area:"service",title:"Background HTTP service lifecycle",description:"Start, stop, restart, inspect, and read logs from the standalone seal-use HTTP service daemon.",commands:[{name:"start",summary:"Start the background service daemon",usage:["seal-use service start [--port 8787] [--host 127.0.0.1]"]},{name:"stop",summary:"Stop the background service daemon",usage:["seal-use service stop"]},{name:"restart",summary:"Restart the background service daemon",usage:["seal-use service restart [--port 8787] [--host 127.0.0.1]"]},{name:"status",summary:"Show service daemon status",usage:["seal-use service status"]},{name:"logs",summary:"Print recent service daemon logs",usage:["seal-use service logs [--lines 50]"]},{name:"run",summary:"Run the service in the foreground",usage:["seal-use service run [--port 8787] [--host 127.0.0.1]"]}]},{area:"stop",title:"Stop the background service",description:"Shortcut for stopping the background seal-use HTTP service daemon.",commands:[{name:"",summary:"Stop the background service daemon",usage:["seal-use stop"]}]},{area:"openapi",title:"OpenAPI specification",description:"Output embedded OpenAPI JSON specification.",commands:[{name:"",summary:"Print OpenAPI schema",usage:["seal-use openapi"]}]}];function Jz0($){let I=Boolean($.options.help||$.options.h);if(!$.command.length)return{isHelp:!0,target:[]};if($.command[0]==="help")return{isHelp:!0,target:$.command.slice(1)};let U=$.command.indexOf("help");if(U!==-1)return{isHelp:!0,target:$.command.filter((J,Q)=>Q!==U)};if(I)return{isHelp:!0,target:[...$.command]};return{isHelp:!1,target:[]}}function Qz0($=[]){if(!$.length)return Uz0();let I=$[0];if(!I)return Uz0();let U=$.slice(1),Y=wG1(I),J=Yz0.find((q)=>q.area===Y);if(!J)throw S4(`Unknown command: ${$.join(" ")}. Run 'seal-use help' for available commands.`);if(!U.length)return zG1(J);let Q=U.join(" ").toLowerCase(),K=VG1(J,Q,U);if(!K)throw S4(`Unknown ${J.area} command: ${U.join(" ")}. Run 'seal-use ${J.area} --help' for available commands.`);return ZG1(J,K)}function wG1($){let I=$.toLowerCase();if(I==="corp")return"corps";if(I==="webhooks")return"webhook";if(I==="preferences")return"preference";if(I==="changelog")return"update";if(I==="serve")return"http";if(I==="mcp-config")return"mcp";if(I==="server")return"mcp";return I}function VG1($,I,U){let Y=$.commands.find((K)=>{if(!K.name)return!1;if(K.name.toLowerCase()===I)return!0;if(K.aliases?.some((q)=>q.toLowerCase()===I))return!0;return!1});if(Y)return Y;let J=U[0]?.toLowerCase();if(!J)return;return $.commands.find((K)=>{if(!K.name)return!1;if(K.name.toLowerCase()===J)return!0;if(K.aliases?.some((q)=>q.toLowerCase()===J))return!0;return!1})}function ZG1($,I){let U=[],Y=I.name?`seal-use ${$.area} ${I.name}`:`seal-use ${$.area}`,J=I.summary?`${Y} - ${I.summary}`:Y;U.push(J),U.push(""),U.push("Usage:");for(let Q of I.usage)U.push(` ${Q}`);if(I.options&&I.options.length>0){U.push(""),U.push("Options:");let Q=Math.max(...I.options.map((K)=>K.flag.length));for(let K of I.options)U.push(` ${K.flag.padEnd(Q+2)} ${K.description}`)}if(I.description)U.push(""),U.push("Description:"),U.push(` ${I.description}`);return U.join(` +`)}function zG1($){let I=[];if(I.push(`seal-use ${$.area} - ${$.title}`),$.description)I.push($.description);I.push(""),I.push("Usage:");for(let U of $.commands)for(let Y of U.usage)I.push(` ${Y}`);if($.commands.some((U)=>U.name))I.push(""),I.push(`Run 'seal-use ${$.area} --help' for details on a specific command.`);return I.join(` `)}function Uz0(){let $=[];$.push("seal-use CLI"),$.push(""),$.push("Usage:"),$.push(" seal-use version");for(let I of Yz0)for(let U of I.commands)for(let Y of U.usage)$.push(` ${Y}`);return $.push(""),$.push("Run 'seal-use --help' for details on a specific command."),$.join(` -`)}var XG1=100,LG1=120000,Kz0=["id","code","status","strictness","scope","createdAt","updatedAt"],DG1=200000;function gu($){return $.map((I)=>typeof I==="string"?I:String(I)).join(" ")}function AH($){if(!$.length)return"";return`${$.join(` +`)}var LG1=100,DG1=120000,Kz0=["id","code","status","strictness","scope","createdAt","updatedAt"],OG1=200000;function hu($){return $.map((I)=>typeof I==="string"?I:String(I)).join(" ")}function AH($){if(!$.length)return"";return`${$.join(` `)} -`}function PH($){return $.replace(/([?&](?:accessToken|token|returnToken)=)[^&\s]+/gi,"$1").replace(/(Bearer\s+)[A-Za-z0-9._~+/=-]+/gi,"$1")}function B0($,I={}){OG1($,I);let U=`${JSON.stringify($,null,2)} -`;if(I.outputFile){zG1(I.outputFile,U),console.log(JSON.stringify({outputFile:I.outputFile,bytes:Buffer.byteLength(U,"utf-8")},null,2));return}console.log(U.trimEnd())}function OG1($,I={}){if(I.allowFull||I.outputFile)return;let U=Buffer.byteLength(JSON.stringify($),"utf-8");if(U>DG1)throw new CD(`Output is large (${U} bytes). Use --summary, --fields, --count, or --output-file; pass --full only when you really need the full response.`)}function qz0($,I){if(I)return;let U=$&&typeof $==="object"?$:{},Y=typeof U.count==="number"?U.count:void 0,J=Array.isArray(U.rules)?U.rules.length:void 0,Q=Buffer.byteLength(JSON.stringify($),"utf-8"),K=Y??J??0;if(K>XG1||Q>LG1)throw new CD(`Rule list is large (${K} rules, ${Q} bytes). Use "seal-use rules list --summary" or "seal-use rules count"; pass --full only when you really need full descriptions.`,"seal-use rules list --summary")}function V0($){return{allowFull:O0($.full)===!0,outputFile:g($.outputFile)??g($["output-file"])}}function Hz0($=[]){console.log(Qz0($))}function y1($){let I=o8(),U=O4();return NJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$},YI())}function ZI($=O4()){return{mode:$.stateful?"stateful":"stateless",stateful:$.stateful,...$.stateful&&$.defaultCorpId?{defaultCorpId:$.defaultCorpId}:{},...$.testEnterprisesDir?{testEnterprisesDir:$.testEnterprisesDir}:{},lint:$.lint,configFile:JI()}}async function F0($,I,U,Y,J={}){B0(await zI($,I,U,Y),J)}async function zI($,I,U,Y){let J=OH.find((q)=>q.name===$);if(!J)throw Error(`Unknown Seal tool: ${$}`);let Q=Object.fromEntries(Object.entries(Y).filter(([,q])=>q!==void 0)),K=J.handler;return K(I,Q,{corp:U})}import{existsSync as Zz0}from"node:fs";var FG1=new Set(["TEXT","NUMBER","DATE","AMOUNT","PERSON","ATTACHMENT","DATE_RANGE","DEPARTMENT","LIST","CITY","OBJECT"]);function Gz0($,I){let U=$&&typeof $==="object"?$:{},Y=typeof U.type==="string"?U.type.toUpperCase().trim():"",J=typeof U.key==="string"&&U.key.trim()?U.key.trim():typeof U.label==="string"&&U.label.trim()?U.label.trim():`field_${I}`,Q=typeof U.label==="string"&&U.label.trim()?U.label.trim():J,K=U.value!==void 0?U.value:null;if(Y==="LIST"&&Array.isArray(K))K=K.map((H)=>{if(Array.isArray(H))return H.map((G,W)=>Gz0(G,W));return H});let q=Y;if(!FG1.has(q))if(Array.isArray(K))q="LIST";else if(K&&typeof K==="object")q="OBJECT";else if(typeof K==="number")q="NUMBER";else q="TEXT";return{key:J,label:Q,type:q,value:K}}function Wz0($,I={}){let U=$.document,Y=$.sourceDocumentSN??(typeof U?.sn==="string"?U.sn:void 0)??(typeof U?.sourceDocumentSN==="string"?U.sourceDocumentSN:void 0)??$.id,J=$.sourceDocumentId??(typeof U?.id==="string"?U.id:void 0)??(typeof U?.sourceDocumentId==="string"?U.sourceDocumentId:void 0)??$.documentId??$.id,Q=I.snPrefix??"",K=I.snSuffix??"",q=I.docIdPrefix??Q,H=I.docIdSuffix??K,G=`${Q}${Y}${K}`,W=`${q}${J}${H}`,w=typeof U?.sourceStartTime==="number"?U.sourceStartTime:typeof $.createdAt==="number"?Math.floor($.createdAt/1000):null,V=(Array.isArray(U?.fields)?U.fields:[]).map((X,L)=>Gz0(X,L));return{type:"document",documentId:W,documentSN:G,startTime:w,fields:V}}function NG1($){let I=new URL($),U=I.pathname.match(/\/webhook\/([^/]+)/);if(!U)throw Error(`Webhook URL 必须包含 /webhook/{webhookId}/document,收到: ${$}`);let Y=U[1],J=`${I.protocol}//${I.host}`,Q=`${J}/api/v1/integrations/webhook/${encodeURIComponent(Y)}/document`;return{baseUrl:J,webhookId:Y,documentEndpoint:Q}}async function wz0($,I,U,Y=fetch){let{webhookId:J,documentEndpoint:Q}=NG1($),K={"Content-Type":"application/json",...HH({webhookId:J,...U},I)},q=await Y(Q,{method:"POST",headers:K,body:JSON.stringify(U)});if(!q.ok){let H=await q.text();throw Error(`Webhook 单据推送失败 (${q.status}): ${H}`)}return q.json()}function Vz0($,I,U){if(I){let Y=I.trim().toLowerCase(),J=$.find((Q)=>Q.id.toLowerCase()===Y||Q.name.toLowerCase()===Y||Q.incomingDocumentWebhook.id.toLowerCase()===Y);if(!J){let Q=$.map((K)=>`"${K.name}" (${K.id})`).join(", ");throw Error(`未找到匹配 "${I}" 的 Webhook 集成通道。可用通道: [${Q}]`)}return J}if($.length===1)return $[0];if($.length>1){let Y=$.map((J)=>`"${J.name}" (${J.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${Y}],请通过 --webhook 指定目标通道。`)}throw new d$("当前租户未配置任何 Webhook 集成通道。",1,`seal-use webhook add --name --result-url ${U?` --corp ${U}`:""}`)}async function zz0($,I){if(!Zz0($))throw Error(`File not found: ${$}`);let U=WI($);console.log(JSON.stringify(await GI(U.fileBuffer,U.fileName,I),null,2))}async function SD($,I,U,Y,J){if($==="ready"||$==="status"){let Q=I??g(J.options.file)??g(J.options.input),K=await MD(U,Y,{filePath:Q,webhook:g(J.options.webhook)??g(J.options.selector)});if(console.error(`[webhook-ready] 企业环境: ${K.corp.name} (${K.corp.id}) [${K.stateMode}]`),K.corp.tenant?.name)console.error(`[webhook-ready] 租户信息: ${K.corp.tenant.name} (${K.corp.tenant.id})`);console.error(`[webhook-ready] 凭证状态: ${K.authStatus==="ok"?"OK":`异常 (${K.authError})`}`),console.error(`[webhook-ready] Webhook 通道: ${K.activeWebhooks.length} 个可用`);for(let q of K.activeWebhooks){let H=q.isDefault?" [默认通道]":"";console.error(` - ${q.name} (${q.id}) mode=${q.mode}${H}`)}if(K.materialPack)console.error(`[webhook-ready] 材料包预检: ${K.materialPack.valid?`通过 (${K.materialPack.documentCount} 单)`:`失败 (${K.materialPack.errors?.join("; ")})`}`);if(K.ready)console.error(`\uD83D\uDFE2 ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);else console.error(`\uD83D\uDD34 准备阶段未通过: ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);console.log(JSON.stringify(K,null,2));return}if($==="replay"){let Q=I??g(J.options.recordId)??g(J.options["record-id"])??g(J.options.id),K=g(J.options.sn)??g(J.options.documentSn)??g(J.options["document-sn"]);if(!Q&&!K)throw Error("Usage: seal-use webhook replay [--sn ] [--webhook ] [--source-corp ] [--sn-suffix ] [--dry-run]");let q=g(J.options.sourceCorp)??g(J.options["source-corp"]),H=q?y1(q):Y,G=H.id===Y.id?U:await u1(H),W;if(Q)W=await T4(G,Q);else{let k=await j$(G,{sourceDocumentSN:K,limit:1});if(!k.records.length)throw Error(`在企业「${H.name}」中未找到单据编号为「${K}」的审批记录。`);W=k.records[0]}let w=g(J.options.webhook)??g(J.options.selector),Z=await w5(U,Y.seal.endpoints.approvalStylePreferences),V=Vz0(Z,w,Y.id),X=g(J.options.snSuffix)??g(J.options["sn-suffix"]),L=g(J.options.snPrefix)??g(J.options["sn-prefix"]),D=g(J.options.docIdSuffix)??g(J.options["doc-id-suffix"]),F=g(J.options.docIdPrefix)??g(J.options["doc-id-prefix"]),P=Wz0(W,{snSuffix:X,snPrefix:L,docIdSuffix:D,docIdPrefix:F});if(O0(J.options.dryRun)??O0(J.options["dry-run"])){let k={dryRun:!0,sourceCorp:{id:H.id,name:H.name},targetCorp:{id:Y.id,name:Y.name},targetWebhook:{id:V.id,name:V.name,mode:V.mode,incomingDocumentWebhookUrl:V.incomingDocumentWebhook.url},originalRecord:{id:W.id,sourceSystem:W.sourceSystem,sourceDocumentSN:W.sourceDocumentSN,sourceDocumentId:W.sourceDocumentId},document:P};console.error(`[webhook-replay] 预览模式:已成功从 ${H.name} 提取单据并转换为 Webhook Payload(未实际推送)。`),console.log(JSON.stringify(k,null,2));return}process.stderr.write(`[webhook-replay] 正在向 Webhook 通道「${V.name}」推送单据: ${P.documentSN}... -`);let A=await wz0(V.incomingDocumentWebhook.url,V.secret,P),R={success:!0,sourceCorp:{id:H.id,name:H.name},targetCorp:{id:Y.id,name:Y.name},targetWebhook:{id:V.id,name:V.name,mode:V.mode,incomingDocumentWebhookUrl:V.incomingDocumentWebhook.url},originalRecord:{id:W.id,sourceSystem:W.sourceSystem,sourceDocumentSN:W.sourceDocumentSN,sourceDocumentId:W.sourceDocumentId},replayedDocument:{documentSN:P.documentSN,documentId:P.documentId,fieldCount:P.fields.length},pushResult:A};console.error(`\uD83D\uDFE2 成功重放单据「${P.documentSN}」至 ${Y.name} (${V.name})`),console.error(`\uD83D\uDC49 Next action: seal-use approval-runs list --corp ${Y.id} --limit 1`),console.log(JSON.stringify(R,null,2));return}if($==="material-pack"||$==="material-pack-push"){let Q=$==="material-pack-push"?"push":I,K=$==="material-pack-push"?g(J.options.file)??g(J.options.input):J.command[3]??g(J.options.file)??g(J.options.input);if(!K)throw Error("Usage: seal-use webhook material-pack <材料包.zip>");if(!Zz0(K))throw Error(`File not found: ${K}`);let q=WI(K);if(Q==="preview"){console.log(JSON.stringify(await GI(q.fileBuffer,q.fileName),null,2));return}if(Q!=="push")throw Error("Usage: seal-use webhook material-pack <材料包.zip>");let H=g(J.options.webhook)??g(J.options.selector),G=await w5(U,Y.seal.endpoints.approvalStylePreferences),W;if(H)W=M9(G,H);else if(G.length===1)W=G[0],console.error(`\uD83D\uDC49 自动锁定唯一可用 Webhook 通道: ${W.name} (${W.id})`);else if(G.length>1){let Z=G.map((V)=>`"${V.name}" (${V.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${Z}],请通过 --webhook 指定目标通道。`)}else throw new d$("当前租户未配置任何 Webhook 集成通道。",1,`seal-use webhook add --name --result-url --corp ${Y.id}`);let w=await ND(q.fileBuffer,q.fileName,{webhookUrl:W.incomingDocumentWebhook.url,secret:W.secret,materialPackFilePolicy:W.materialPackFilePolicy});console.log(JSON.stringify(w,null,2));return}if($==="list"){await F0("seal_webhook_list",U,Y,{query:g(J.options.query)??g(J.options.keyword),includeSecret:Su(J.options)},V0(J.options));return}if($==="get"||$==="find"){let Q=I??g(J.options.selector)??g(J.options.id);if(!Q)throw Error("Usage: seal-use webhook get [--show-secret]");await F0("seal_webhook_get",U,Y,{selector:Q,includeSecret:Su(J.options)},V0(J.options));return}if($==="add"||$==="create"){let Q=g(J.options.name)??I,K=g(J.options.resultUrl)??g(J.options["result-url"])??g(J.options.outgoingResultWebhook)??g(J.options["outgoing-result-webhook"]);if(!Q||!K)throw Error("Usage: seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic]");let q=_u(J.options),H=MH(J.options),G=O0(J.options.dryRun)??O0(J.options["dry-run"]);await F0("seal_webhook_add",U,Y,{name:Q,mode:Cu(g(J.options.mode)),outgoingResultWebhook:K,autoApprovalRate:q,secret:g(J.options.secret),materialPackFilePolicy:H,dryRun:G},V0(J.options));return}if($==="update"){let Q=I??g(J.options.selector)??g(J.options.id);if(!Q)throw Error("Usage: seal-use webhook update [options]");let K=g(J.options.secret),q=O0(J.options.rotateSecret)??O0(J.options["rotate-secret"]);if(K!==void 0&&q)throw S4("Use either --secret or --rotate-secret, not both");let H=g(J.options.name),G=Cu(g(J.options.mode)),W=g(J.options.resultUrl)??g(J.options["result-url"])??g(J.options.outgoingResultWebhook)??g(J.options["outgoing-result-webhook"]),w=_u(J.options),Z=MH(J.options),V=O0(J.options.dryRun)??O0(J.options["dry-run"]);if(H===void 0&&G===void 0&&W===void 0&&w===void 0&&K===void 0&&!q&&Z===void 0&&!V)throw S4("Webhook update requires at least one field option");await F0("seal_webhook_update",U,Y,{selector:Q,name:H,mode:G,outgoingResultWebhook:W,autoApprovalRate:w,secret:K,rotateSecret:q,materialPackFilePolicy:Z,dryRun:V},V0(J.options));return}if($==="delete"){let Q=I??g(J.options.selector)??g(J.options.id),K=O0(J.options.dryRun)??O0(J.options["dry-run"]);if(!Q)throw Error("Usage: seal-use webhook delete [--yes|--dry-run]");if(O0(J.options.yes)!==!0&&!K)throw s8("Refusing to delete Webhook integration without --yes",`seal-use webhook delete ${Q} --corp ${Y.id} --yes`);await F0("seal_webhook_delete",U,Y,{selector:Q,confirm:!0,dryRun:K},V0(J.options));return}throw Error(`Unknown webhook command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Xz0($,I,U,Y,J){if($==="replay"){await SD("replay",I,U,Y,J);return}if($==="summary"){let Q=await zI("seal_approval_runs_summary",U,Y,{date:g(J.options.date),timezone:g(J.options.timezone),limit:m0(J.options.limit),startDate:g(J.options.startDate),endDate:g(J.options.endDate),status:g(J.options.status),taskMode:g(J.options.taskMode),manualApprovalStatus:g(J.options.manualApprovalStatus),sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId),humanResult:g(J.options.humanResult),query:g(J.options.query)});if(Q?.matched===0&&Q?.total>0)console.error(`提示:在 ${Q.date} 未匹配到记录(该企业共有 ${Q.total} 条历史记录)。可使用 --date YYYY-MM-DD 指定日期,或运行 seal-use approval-runs list --limit 10 查看最近记录。`);B0(Q,V0(J.options));return}if($==="stats"){await F0("seal_approval_runs_stats",U,Y,{since:g(J.options.since),dedupeBy:g(J.options.dedupeBy)??g(J.options["dedupe-by"]),status:g(J.options.status),sourceSystem:g(J.options.sourceSystem)??g(J.options["source-system"]),taskMode:g(J.options.taskMode)??g(J.options["task-mode"])},V0(J.options));return}if($==="count"){await F0("seal_approval_runs_count",U,Y,{status:g(J.options.status),sourceSystem:g(J.options.sourceSystem)??g(J.options["source-system"]),taskMode:g(J.options.taskMode)??g(J.options["task-mode"]),search:g(J.options.search)??g(J.options.query)},V0(J.options));return}if($==="search"||$==="list"){await F0("seal_approval_runs_search",U,Y,{limit:m0(J.options.limit),offset:m0(J.options.offset),startDate:g(J.options.startDate),endDate:g(J.options.endDate),status:g(J.options.status),taskMode:g(J.options.taskMode),manualApprovalStatus:g(J.options.manualApprovalStatus),sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId),humanResult:g(J.options.humanResult),query:g(J.options.query),includeBridge:O0(J.options.includeBridge)},V0(J.options));return}if($==="bridge"){await F0("seal_approval_run_langfuse_bridge_get",U,Y,{recordId:g(J.options.recordId),sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId),simulationBatchId:g(J.options.simulationBatchId),limit:m0(J.options.limit)},V0(J.options));return}if($==="pick"){let Q=I??g(J.options.query)??g(J.options.sn);if(!Q)throw Error("Usage: seal-use approval-runs pick --sn ");await F0("seal_approval_run_pick",U,Y,{query:Q,sn:g(J.options.sn),batchId:g(J.options.batch)??g(J.options.batchId),latest:O0(J.options.latest),fields:g(J.options.fields),limit:m0(J.options.limit),includeBridge:O0(J.options.includeBridge)},V0(J.options));return}if($==="get"){let Q=J.command[2];if(!Q)throw Error("Missing approval run recordId");await F0("seal_approval_run_get",U,Y,{recordId:Q,fields:g(J.options.fields),summary:O0(J.options.summary)},V0(J.options));return}if($==="cited-rules"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs cited-rules ");await F0("seal_approval_run_cited_rules_get",U,Y,{recordId:Q},V0(J.options));return}if($==="document-summary"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs document-summary ");await F0("seal_approval_run_document_summary_get",U,Y,{recordId:Q},V0(J.options));return}if($==="attachments"){if(J.command[2]==="download"){let G=J.command[3];if(!G)throw Error("Usage: seal-use approval-runs attachments download [--all] [--name ] [--out-dir ]");let W=await T4(U,G),w=await mL({record:W,all:O0(J.options.all),name:g(J.options.name),outDir:g(J.options["out-dir"])??g(J.options.outDir)??g(J.options.dir)});if(B0(w,V0(J.options)),w.total>0&&w.downloaded===0)throw Error(`所有 ${w.total} 个附件下载均失败。`);return}let K=J.command[2];if(!K)throw Error("Usage: seal-use approval-runs attachments | seal-use approval-runs attachments download ");if(O0(J.options.download)){let G=await T4(U,K),W=await mL({record:G,all:O0(J.options.all)??!0,name:g(J.options.name),outDir:g(J.options["out-dir"])??g(J.options.outDir)??g(J.options.dir)});if(B0(W,V0(J.options)),W.total>0&&W.downloaded===0)throw Error(`所有 ${W.total} 个附件下载均失败。`);return}let q=await T4(U,K),H=OJ(q,{summary:O0(J.options.summary)});B0(H,V0(J.options));return}if($==="download"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs download [--all] [--name ] [--out-dir ]");let K=await T4(U,Q),q=await mL({record:K,all:O0(J.options.all),name:g(J.options.name),outDir:g(J.options["out-dir"])??g(J.options.outDir)??g(J.options.dir)});if(B0(q,V0(J.options)),q.total>0&&q.downloaded===0)throw Error(`所有 ${q.total} 个附件下载均失败。`);return}if($==="result"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs result [--summary]");await F0("seal_approval_run_result_get",U,Y,{recordId:Q,summary:O0(J.options.summary)},V0(J.options));return}if($==="url"){await F0("seal_approval_run_url_get",U,Y,{recordId:I,sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId)},V0(J.options));return}if($==="export"){let Q=await dL(U,Y,{limit:m0(J.options.limit),startDate:g(J.options.start)??g(J.options.startDate)??g(J.options.since),endDate:g(J.options.end)??g(J.options.endDate),status:g(J.options.status),manualApprovalStatus:g(J.options["manual-status"])??g(J.options.manualStatus)??g(J.options.manualApprovalStatus),includeCompletedOnly:O0(J.options["completed-only"])??O0(J.options.completedOnly),outputFile:g(J.options.out)??g(J.options.output)??g(J.options.file),toDownloads:O0(J.options.downloads)??O0(J.options.download)});B0(Q,V0(J.options));return}throw Error(`Unknown approval-runs command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Lz0($,I,U,Y){if($==="insight"||$==="insight-stats"||$==="stats"){await F0("seal_insight_stats_get",I,U,{startDate:g(Y.options.startDate)??g(Y.options["start-date"]),endDate:g(Y.options.endDate)??g(Y.options["end-date"]),limit:m0(Y.options.limit)},V0(Y.options));return}throw Error(`Unknown analytics command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Fz0($,I,U){if($==="diagnose"){B0(await MG1(I));return}if($==="hose-link"){let Y=m0(U.options.expire)??7200;B0(await gd(I,Y));return}throw Error(`Unknown auth command: ${$??""}. Run 'seal-use help' for available commands.`)}async function MG1($){if($.source.type!=="hose"){let X=await u1($),L=await v$(X);return{corp:{id:$.id,name:$.name,sourceType:$.source.type},ok:!0,stages:[{name:"seal.whoami",ok:!0,user:L.user,tenant:L.tenant}]}}Sw($.id);let I=$.source,U=I.appKey??I.key,Y=I.appSecurity??I.password,J=($.seal.url??I.sealUrl??`https://${I.corpId.toLowerCase()}.sealai.cc`).replace(/\/+$/,""),Q=I.staffId.includes(":")?I.staffId:`${I.corpId}:${I.staffId}`,K=[];if(!U||!Y)return{corp:{id:$.id,name:$.name,sourceType:$.source.type},ok:!1,stages:[{name:"hose.openapi",ok:!1,error:"Hose source requires appKey/key and appSecurity/password"}]};let q=await gD("hose.openapi",async()=>{let X=await Dz0(`${I.domain.replace(/\/+$/,"")}/api/openapi/v1/auth/getAccessToken`,{appKey:U,appSecurity:Y}),L=r5(X.value),D=m4(L.accessToken)??m4(X.accessToken)??m4(X.token);if(!D)throw Error("Hose login did not return an access token");return{token:D,public:{corporationId:m4(L.corporationId)??m4(r5(L.corporation).id),expireTime:TH(L.expireTime)}}});K.push(q.public);let H=q.private?.token,G=H?await gD("hose.provisional",async()=>{let X=await Dz0(`${I.domain.replace(/\/+$/,"")}/api/openapi/v1.1/provisional/getProvisionalAuth?accessToken=${encodeURIComponent(H)}`,{uid:Q,pageType:"home",expireDate:7200}),L=m4(r5(X.value).message);if(!L)throw Error("Hose CloseAPI did not return a provisional auth URL");let D=new URL(L).searchParams.get("accessToken");if(!D)throw Error("Hose provisional auth URL did not include accessToken");return{token:D,public:{uid:Q,enterpriseUrl:PH(L)}}}):yu("hose.provisional");K.push(G.public);let W=G.private?.token,w=W?await gD("seal.sso",async()=>{let X=await Oz0(`${J}/api/auth/oauth2/session/oem-hosecloud?token=${encodeURIComponent(W)}&returnToken=1`),L=r5(X.data),D=m4(X.token)??m4(X.accessToken)??m4(L.token)??m4(L.accessToken);if(!D)throw Error("Seal SSO did not return a bearer token");return{token:D,public:{sealUrl:J,expiresIn:TH(X.expiresIn)??TH(X.expires_in)??TH(L.expiresIn)??TH(L.expires_in)}}}):yu("seal.sso");K.push(w.public);let Z=w.private?.token,V=Z?await gD("seal.whoami",async()=>{let X=await Oz0(`${J}/api/v1/auth/me`,{authorization:`Bearer ${Z}`}),L=r5(X.data),D=r5(L.user??X.user),F=r5(L.tenant??X.tenant);return{public:{user:{id:m4(D.id),name:m4(D.name),isAdmin:AG1(D.isAdmin),providerUserId:m4(D.providerUserId)},tenant:{id:m4(F.id),name:m4(F.name),tenantSlug:m4(F.tenantSlug),hoseCorpConfig:PG1(F.hoseCorpConfig)}}}}):yu("seal.whoami");return K.push(V.public),{corp:{id:$.id,name:$.name,sourceType:$.source.type},ok:K.every((X)=>X.ok===!0),stages:K}}async function gD($,I){try{let U=await I();return{public:{name:$,ok:!0,...Mz0(U.public)},private:U.token?{token:U.token}:void 0}}catch(U){return{public:{name:$,ok:!1,error:PH(U instanceof Error?U.message:String(U))}}}}function yu($){return{public:{name:$,ok:!1,skipped:!0}}}async function Dz0($,I){let U=await fetch($,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(I)});return Nz0(U)}async function Oz0($,I={}){let U=await fetch($,{headers:I});return Nz0(U)}async function Nz0($){let I=await $.text();if(!$.ok)throw Error(`${$.status} ${I}`);let U=JSON.parse(I);return r5(U)}function r5($){return $&&typeof $==="object"&&!Array.isArray($)?$:{}}function m4($){return typeof $==="string"&&$?$:void 0}function TH($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function AG1($){return typeof $==="boolean"?$:void 0}function PG1($){let I=r5($);return Mz0({corporationId:m4(I.corporationId),corporationName:m4(I.corporationName)})}function Mz0($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}async function Az0($,I,U,Y){if($==="status"||$==="get"){await F0("seal_billing_status_get",I,U,{},V0(Y.options));return}if($==="plans"){await F0("seal_billing_plans_list",I,U,{},V0(Y.options));return}if($==="features"){await F0("seal_billing_features_list",I,U,{},V0(Y.options));return}throw Error(`Unknown billing command: ${$??""}. Run 'seal-use help' for available commands.`)}function Pz0($,I,U){if($==="paths"){B0({candidates:YI(),globalConfigFile:JI()});return}if($==="get"||$==="status"){B0(ZI());return}if($==="mode"){let Y=I??g(U.options.mode);if(!Y){B0(ZI());return}let J=sZ0(Y),Q=g(U.options.corp),K=O4(),q=J?Q?NJ(o8(),{stateful:!0,corpId:Q},YI()).id:K.defaultCorpId:void 0,H=QI({...K,stateful:J,...q?{defaultCorpId:q}:{}});B0(ZI(H));return}if($==="lint"){let Y=I??g(U.options.state)??g(U.options.enable),J=O4(),Q=J.lint??{enabled:!1,activeLinter:"builtin",minScore:0};if(!Y||Y==="status"||Y==="get"){B0({lint:Q,configFile:JI()});return}let K=Q.enabled;if(Y==="enable"||Y==="on"||Y==="true")K=!0;else if(Y==="disable"||Y==="off"||Y==="false")K=!1;let q=g(U.options.linter)??Q.activeLinter,H=U.options.minScore!==void 0||U.options["min-score"]!==void 0?Number(U.options.minScore??U.options["min-score"]):Q.minScore,G={enabled:K,activeLinter:q,minScore:isNaN(H)?0:Math.max(0,Math.min(100,H))},W=QI({...J,lint:G});B0(ZI(W));return}if($==="test-dir"||$==="test-enterprises-dir"){let Y=U.options.clear===!0||I==="--clear"||I==="clear",J=O4();if(Y){let q=QI({...J,testEnterprisesDir:void 0});B0(ZI(q));return}let Q=I&&!I.startsWith("-")?I:g(U.options.path)??g(U.options.dir);if(!Q){B0({testEnterprisesDir:J.testEnterprisesDir??null,configFile:JI()});return}let K=QI({...J,testEnterprisesDir:Q});B0(ZI(K));return}throw Error(`Unknown config command: ${$??""}. Available: paths, get, status, mode, lint, test-dir. Run 'seal-use help' for available commands.`)}async function Tz0($,I,U,Y,J){if($==="sync-time"||$==="last-sync-time"){await F0("seal_contacts_last_sync_time_get",U,Y,{},V0(J.options));return}if($==="departments"||$==="department"){if(!I){await F0("seal_contacts_departments_root_list",U,Y,{},V0(J.options));return}await F0("seal_contacts_department_get",U,Y,{departmentId:I},V0(J.options));return}if($==="children"||$==="department-children"){if(!I)throw Error("Usage: seal-use contacts children ");await F0("seal_contacts_department_children_list",U,Y,{departmentId:I},V0(J.options));return}if($==="users"||$==="department-users"){if(!I)throw Error("Usage: seal-use contacts users ");await F0("seal_contacts_department_users_list",U,Y,{departmentId:I},V0(J.options));return}throw Error(`Unknown contacts command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Ez0($,I,U,Y){let J={offset:m0(Y.options.offset),limit:m0(Y.options.limit),startDate:g(Y.options.startDate)??g(Y.options["start-date"]),endDate:g(Y.options.endDate)??g(Y.options["end-date"]),search:g(Y.options.search)??g(Y.options.query)};if($==="expenses"||$==="expense"){await F0("seal_expenses_list",I,U,J,V0(Y.options));return}if($==="invoices"||$==="invoice"){await F0("seal_invoices_list",I,U,J,V0(Y.options));return}throw Error(`Unknown data command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Bz0($,I,U){await F0("seal_approval_context_get",$,I,{documentLimit:m0(U.options.documentLimit),...$z0(g(U.options.ruleVersion))},V0(U.options))}import{existsSync as yz0,mkdirSync as hz0,writeFileSync as uz0}from"node:fs";import{randomBytes as RG1}from"node:crypto";import{join as xz0}from"node:path";import{existsSync as TG1,mkdirSync as EG1,readFileSync as BG1,writeFileSync as vz0}from"node:fs";import{homedir as vG1}from"node:os";import{join as yD}from"node:path";function Rz0(){let $=process.env.SEAL_USE_MAPPINGS_DIR?.trim();if($)return $;return yD(vG1(),".config","seal-use","mappings")}function jz0($){let I=Rz0();EG1(I,{recursive:!0,mode:448});let U=yD(I,`${$.target.id}-v${$.target.publishedVersionNumber}.json`),Y=yD(I,`${$.target.id}-latest.json`),J=JSON.stringify($,null,2);return vz0(U,J,{encoding:"utf-8",mode:384}),vz0(Y,J,{encoding:"utf-8",mode:384}),U}function Cz0($,I){let U=Rz0(),Y;if(!I||I==="latest")Y=`${$}-latest.json`;else{let Q=String(I).replace(/^v/i,"");Y=`${$}-v${Q}.json`}let J=yD(U,Y);if(!TG1(J))return null;try{let Q=BG1(J,"utf-8");return JSON.parse(Q)}catch{return null}}function _z0($,I){if(!I)return $;let U=I.trim().toLowerCase();return $.filter((Y)=>{return String(Y.sourceRuleCode).toLowerCase()===U||String(Y.targetRuleCode).toLowerCase()===U||Y.sourceRuleId.toLowerCase()===U||Y.targetRuleId.toLowerCase()===U||`#${Y.sourceRuleCode}`.toLowerCase()===U||`#${Y.targetRuleCode}`.toLowerCase()===U})}function Sz0($,I,U){let Y=0,J=I!==void 0?new RegExp(`\\[Prod v${I}\\s*·\\s*#(\\d+)(?:[^\\]]*)\\]`):/\[Prod draft\s*·\s*#(\d+)(?:[^\]]*)\]/;for(let K of U){if(!K.versionName)continue;let q=K.versionName.match(J);if(q&&q[1]){let H=parseInt(q[1],10);if(!isNaN(H)&&H>Y)Y=H}}if(Y>0)return Y+1;if(!U.some((K)=>K.versionName&&/\[Prod v\d+/.test(K.versionName))){let K=U.filter((q)=>q.versionName&&q.versionName.includes(`Sync from ${$}`)).length;if(K>0)return K+1}return 1}function gz0($,I,U,Y){let J=I!==void 0?`Prod v${I}`:"Prod draft",Q=Y!==void 0?` -> Test v${Y}`:"";return`Sync from ${$} [${J} · #${U}${Q}]`}async function _J($){let[I,U]=await Promise.all([ud($),u1($)]),Y=await v$(U);return{...I,tenantId:Y.tenant.id,tenantSlug:Y.tenant.tenantSlug??I.tenantSlug,tenantName:Y.tenant.name,raw:{...typeof I.raw==="object"&&I.raw!==null?I.raw:{},user:{id:Y.user.id,name:Y.user.name,isAdmin:Y.user.isAdmin,providerUserId:Y.user.providerUserId,hosecloudStaff:Y.user.hosecloudStaff},tenant:Y.tenant}}}async function kz0($,I,U){if($==="list"){let Y=g(U.options.corp),J=o8(),Q=O4(),K=Y??(Q.stateful?Q.defaultCorpId??J[0]?.id:void 0);if(J.length===0)console.error("提示:当前未检测到企业配置。你可以使用 seal-use corps add-hose 或 seal-use corps add-seal 添加企业,或运行 seal-use help 查看说明。");B0(J.map((q)=>({id:q.id,name:q.name,environment:q.environment??"production",sourceType:q.source.type,provider:q.source.provider??q.source.type,testCorpId:q.testCorpId,prodCorpId:q.prodCorpId,current:q.id===K})));return}if($==="current"){let Y=y1(g(U.options.corp));B0({id:Y.id,name:Y.name,environment:Y.environment??"production",sourceType:Y.source.type,provider:Y.source.provider??Y.source.type,testCorpId:Y.testCorpId,prodCorpId:Y.prodCorpId});return}if($==="mark"||$==="mark-test"||$==="mark-prod"){let Y=I??g(U.options.corp);if(!Y)throw S4("Usage: seal-use corps mark --env [--confirm]");let J=y1(Y),Q=$==="mark-test"?"test":$==="mark-prod"?"production":g(U.options.env)??g(U.options.environment);if(Q!=="production"&&Q!=="test")throw S4("Usage: seal-use corps mark --env [--confirm]");if(!(O0(U.options.confirm)===!0||O0(U.options.yes)===!0))throw s8(`Refusing to change environment tag of enterprise '${J.name}' (${J.id}) to '${Q}' without --confirm. Marking alters synchronization safety guards.`,`seal-use corps mark ${J.id} --env ${Q} --confirm`);let q=F7(J.id,{environment:Q});B0({id:q.id,name:q.name,environment:q.environment,testCorpId:q.testCorpId,prodCorpId:q.prodCorpId});return}if($==="bind-test"){let Y,J;if(I&&U.command[3])Y=I,J=U.command[3];else if(I){let w=g(U.options.corp),Z=g(U.options["test-corp"])??g(U.options.testCorp);if(w)Y=w,J=I;else if(Z)Y=I,J=Z}if(!Y||!J)throw S4(`Usage: seal-use corps bind-test [--confirm] [--force] +`}function PH($){return $.replace(/([?&](?:accessToken|token|returnToken)=)[^&\s]+/gi,"$1").replace(/(Bearer\s+)[A-Za-z0-9._~+/=-]+/gi,"$1")}function B0($,I={}){FG1($,I);let U=`${JSON.stringify($,null,2)} +`;if(I.outputFile){XG1(I.outputFile,U),console.log(JSON.stringify({outputFile:I.outputFile,bytes:Buffer.byteLength(U,"utf-8")},null,2));return}console.log(U.trimEnd())}function FG1($,I={}){if(I.allowFull||I.outputFile)return;let U=Buffer.byteLength(JSON.stringify($),"utf-8");if(U>OG1)throw new _D(`Output is large (${U} bytes). Use --summary, --fields, --count, or --output-file; pass --full only when you really need the full response.`)}function qz0($,I){if(I)return;let U=$&&typeof $==="object"?$:{},Y=typeof U.count==="number"?U.count:void 0,J=Array.isArray(U.rules)?U.rules.length:void 0,Q=Buffer.byteLength(JSON.stringify($),"utf-8"),K=Y??J??0;if(K>LG1||Q>DG1)throw new _D(`Rule list is large (${K} rules, ${Q} bytes). Use "seal-use rules list --summary" or "seal-use rules count"; pass --full only when you really need full descriptions.`,"seal-use rules list --summary")}function V0($){return{allowFull:O0($.full)===!0,outputFile:g($.outputFile)??g($["output-file"])}}function Hz0($=[]){console.log(Qz0($))}function y1($){let I=o8(),U=O4();return AJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$},YI())}function ZI($=O4()){return{mode:$.stateful?"stateful":"stateless",stateful:$.stateful,...$.stateful&&$.defaultCorpId?{defaultCorpId:$.defaultCorpId}:{},...$.testEnterprisesDir?{testEnterprisesDir:$.testEnterprisesDir}:{},lint:$.lint,configFile:JI()}}async function F0($,I,U,Y,J={}){B0(await zI($,I,U,Y),J)}async function zI($,I,U,Y){let J=OH.find((q)=>q.name===$);if(!J)throw Error(`Unknown Seal tool: ${$}`);let Q=Object.fromEntries(Object.entries(Y).filter(([,q])=>q!==void 0)),K=J.handler;return K(I,Q,{corp:U})}import{existsSync as Zz0}from"node:fs";var NG1=new Set(["TEXT","NUMBER","DATE","AMOUNT","PERSON","ATTACHMENT","DATE_RANGE","DEPARTMENT","LIST","CITY","OBJECT"]);function Gz0($,I){let U=$&&typeof $==="object"?$:{},Y=typeof U.type==="string"?U.type.toUpperCase().trim():"",J=typeof U.key==="string"&&U.key.trim()?U.key.trim():typeof U.label==="string"&&U.label.trim()?U.label.trim():`field_${I}`,Q=typeof U.label==="string"&&U.label.trim()?U.label.trim():J,K=U.value!==void 0?U.value:null;if(Y==="LIST"&&Array.isArray(K))K=K.map((H)=>{if(Array.isArray(H))return H.map((G,W)=>Gz0(G,W));return H});let q=Y;if(!NG1.has(q))if(Array.isArray(K))q="LIST";else if(K&&typeof K==="object")q="OBJECT";else if(typeof K==="number")q="NUMBER";else q="TEXT";return{key:J,label:Q,type:q,value:K}}function Wz0($,I={}){let U=$.document,Y=$.sourceDocumentSN??(typeof U?.sn==="string"?U.sn:void 0)??(typeof U?.sourceDocumentSN==="string"?U.sourceDocumentSN:void 0)??$.id,J=$.sourceDocumentId??(typeof U?.id==="string"?U.id:void 0)??(typeof U?.sourceDocumentId==="string"?U.sourceDocumentId:void 0)??$.documentId??$.id,Q=I.snPrefix??"",K=I.snSuffix??"",q=I.docIdPrefix??Q,H=I.docIdSuffix??K,G=`${Q}${Y}${K}`,W=`${q}${J}${H}`,w=typeof U?.sourceStartTime==="number"?U.sourceStartTime:typeof $.createdAt==="number"?Math.floor($.createdAt/1000):null,V=(Array.isArray(U?.fields)?U.fields:[]).map((X,L)=>Gz0(X,L));return{type:"document",documentId:W,documentSN:G,startTime:w,fields:V}}function MG1($){let I=new URL($),U=I.pathname.match(/\/webhook\/([^/]+)/);if(!U)throw Error(`Webhook URL 必须包含 /webhook/{webhookId}/document,收到: ${$}`);let Y=U[1],J=`${I.protocol}//${I.host}`,Q=`${J}/api/v1/integrations/webhook/${encodeURIComponent(Y)}/document`;return{baseUrl:J,webhookId:Y,documentEndpoint:Q}}async function wz0($,I,U,Y=fetch){let{webhookId:J,documentEndpoint:Q}=MG1($),K={"Content-Type":"application/json",...HH({webhookId:J,...U},I)},q=await Y(Q,{method:"POST",headers:K,body:JSON.stringify(U)});if(!q.ok){let H=await q.text();throw Error(`Webhook 单据推送失败 (${q.status}): ${H}`)}return q.json()}function Vz0($,I,U){if(I){let Y=I.trim().toLowerCase(),J=$.find((Q)=>Q.id.toLowerCase()===Y||Q.name.toLowerCase()===Y||Q.incomingDocumentWebhook.id.toLowerCase()===Y);if(!J){let Q=$.map((K)=>`"${K.name}" (${K.id})`).join(", ");throw Error(`未找到匹配 "${I}" 的 Webhook 集成通道。可用通道: [${Q}]`)}return J}if($.length===1)return $[0];if($.length>1){let Y=$.map((J)=>`"${J.name}" (${J.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${Y}],请通过 --webhook 指定目标通道。`)}throw new d$("当前租户未配置任何 Webhook 集成通道。",1,`seal-use webhook add --name --result-url ${U?` --corp ${U}`:""}`)}async function zz0($,I){if(!Zz0($))throw Error(`File not found: ${$}`);let U=WI($);console.log(JSON.stringify(await GI(U.fileBuffer,U.fileName,I),null,2))}async function gD($,I,U,Y,J){if($==="ready"||$==="status"){let Q=I??g(J.options.file)??g(J.options.input),K=await AD(U,Y,{filePath:Q,webhook:g(J.options.webhook)??g(J.options.selector)});if(console.error(`[webhook-ready] 企业环境: ${K.corp.name} (${K.corp.id}) [${K.stateMode}]`),K.corp.tenant?.name)console.error(`[webhook-ready] 租户信息: ${K.corp.tenant.name} (${K.corp.tenant.id})`);console.error(`[webhook-ready] 凭证状态: ${K.authStatus==="ok"?"OK":`异常 (${K.authError})`}`),console.error(`[webhook-ready] Webhook 通道: ${K.activeWebhooks.length} 个可用`);for(let q of K.activeWebhooks){let H=q.isDefault?" [默认通道]":"";console.error(` - ${q.name} (${q.id}) mode=${q.mode}${H}`)}if(K.materialPack)console.error(`[webhook-ready] 材料包预检: ${K.materialPack.valid?`通过 (${K.materialPack.documentCount} 单)`:`失败 (${K.materialPack.errors?.join("; ")})`}`);if(K.ready)console.error(`\uD83D\uDFE2 ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);else console.error(`\uD83D\uDD34 准备阶段未通过: ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);console.log(JSON.stringify(K,null,2));return}if($==="replay"){let Q=I??g(J.options.recordId)??g(J.options["record-id"])??g(J.options.id),K=g(J.options.sn)??g(J.options.documentSn)??g(J.options["document-sn"]);if(!Q&&!K)throw Error("Usage: seal-use webhook replay [--sn ] [--webhook ] [--source-corp ] [--sn-suffix ] [--dry-run]");let q=g(J.options.sourceCorp)??g(J.options["source-corp"]),H=q?y1(q):Y,G=H.id===Y.id?U:await u1(H),W;if(Q)W=await T4(G,Q);else{let x=await j$(G,{sourceDocumentSN:K,limit:1});if(!x.records.length)throw Error(`在企业「${H.name}」中未找到单据编号为「${K}」的审批记录。`);W=x.records[0]}let w=g(J.options.webhook)??g(J.options.selector),Z=await w5(U,Y.seal.endpoints.approvalStylePreferences),V=Vz0(Z,w,Y.id),X=g(J.options.snSuffix)??g(J.options["sn-suffix"]),L=g(J.options.snPrefix)??g(J.options["sn-prefix"]),D=g(J.options.docIdSuffix)??g(J.options["doc-id-suffix"]),F=g(J.options.docIdPrefix)??g(J.options["doc-id-prefix"]),P=Wz0(W,{snSuffix:X,snPrefix:L,docIdSuffix:D,docIdPrefix:F});if(O0(J.options.dryRun)??O0(J.options["dry-run"])){let x={dryRun:!0,sourceCorp:{id:H.id,name:H.name},targetCorp:{id:Y.id,name:Y.name},targetWebhook:{id:V.id,name:V.name,mode:V.mode,incomingDocumentWebhookUrl:V.incomingDocumentWebhook.url},originalRecord:{id:W.id,sourceSystem:W.sourceSystem,sourceDocumentSN:W.sourceDocumentSN,sourceDocumentId:W.sourceDocumentId},document:P};console.error(`[webhook-replay] 预览模式:已成功从 ${H.name} 提取单据并转换为 Webhook Payload(未实际推送)。`),console.log(JSON.stringify(x,null,2));return}process.stderr.write(`[webhook-replay] 正在向 Webhook 通道「${V.name}」推送单据: ${P.documentSN}... +`);let A=await wz0(V.incomingDocumentWebhook.url,V.secret,P),R={success:!0,sourceCorp:{id:H.id,name:H.name},targetCorp:{id:Y.id,name:Y.name},targetWebhook:{id:V.id,name:V.name,mode:V.mode,incomingDocumentWebhookUrl:V.incomingDocumentWebhook.url},originalRecord:{id:W.id,sourceSystem:W.sourceSystem,sourceDocumentSN:W.sourceDocumentSN,sourceDocumentId:W.sourceDocumentId},replayedDocument:{documentSN:P.documentSN,documentId:P.documentId,fieldCount:P.fields.length},pushResult:A};console.error(`\uD83D\uDFE2 成功重放单据「${P.documentSN}」至 ${Y.name} (${V.name})`),console.error(`\uD83D\uDC49 Next action: seal-use approval-runs list --corp ${Y.id} --limit 1`),console.log(JSON.stringify(R,null,2));return}if($==="material-pack"||$==="material-pack-push"){let Q=$==="material-pack-push"?"push":I,K=$==="material-pack-push"?g(J.options.file)??g(J.options.input):J.command[3]??g(J.options.file)??g(J.options.input);if(!K)throw Error("Usage: seal-use webhook material-pack <材料包.zip>");if(!Zz0(K))throw Error(`File not found: ${K}`);let q=WI(K);if(Q==="preview"){console.log(JSON.stringify(await GI(q.fileBuffer,q.fileName),null,2));return}if(Q!=="push")throw Error("Usage: seal-use webhook material-pack <材料包.zip>");let H=g(J.options.webhook)??g(J.options.selector),G=await w5(U,Y.seal.endpoints.approvalStylePreferences),W;if(H)W=M9(G,H);else if(G.length===1)W=G[0],console.error(`\uD83D\uDC49 自动锁定唯一可用 Webhook 通道: ${W.name} (${W.id})`);else if(G.length>1){let Z=G.map((V)=>`"${V.name}" (${V.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${Z}],请通过 --webhook 指定目标通道。`)}else throw new d$("当前租户未配置任何 Webhook 集成通道。",1,`seal-use webhook add --name --result-url --corp ${Y.id}`);let w=await MD(q.fileBuffer,q.fileName,{webhookUrl:W.incomingDocumentWebhook.url,secret:W.secret,materialPackFilePolicy:W.materialPackFilePolicy});console.log(JSON.stringify(w,null,2));return}if($==="list"){await F0("seal_webhook_list",U,Y,{query:g(J.options.query)??g(J.options.keyword),includeSecret:yu(J.options)},V0(J.options));return}if($==="get"||$==="find"){let Q=I??g(J.options.selector)??g(J.options.id);if(!Q)throw Error("Usage: seal-use webhook get [--show-secret]");await F0("seal_webhook_get",U,Y,{selector:Q,includeSecret:yu(J.options)},V0(J.options));return}if($==="add"||$==="create"){let Q=g(J.options.name)??I,K=g(J.options.resultUrl)??g(J.options["result-url"])??g(J.options.outgoingResultWebhook)??g(J.options["outgoing-result-webhook"]);if(!Q||!K)throw Error("Usage: seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic]");let q=gu(J.options),H=MH(J.options),G=O0(J.options.dryRun)??O0(J.options["dry-run"]);await F0("seal_webhook_add",U,Y,{name:Q,mode:Su(g(J.options.mode)),outgoingResultWebhook:K,autoApprovalRate:q,secret:g(J.options.secret),materialPackFilePolicy:H,dryRun:G},V0(J.options));return}if($==="update"){let Q=I??g(J.options.selector)??g(J.options.id);if(!Q)throw Error("Usage: seal-use webhook update [options]");let K=g(J.options.secret),q=O0(J.options.rotateSecret)??O0(J.options["rotate-secret"]);if(K!==void 0&&q)throw S4("Use either --secret or --rotate-secret, not both");let H=g(J.options.name),G=Su(g(J.options.mode)),W=g(J.options.resultUrl)??g(J.options["result-url"])??g(J.options.outgoingResultWebhook)??g(J.options["outgoing-result-webhook"]),w=gu(J.options),Z=MH(J.options),V=O0(J.options.dryRun)??O0(J.options["dry-run"]);if(H===void 0&&G===void 0&&W===void 0&&w===void 0&&K===void 0&&!q&&Z===void 0&&!V)throw S4("Webhook update requires at least one field option");await F0("seal_webhook_update",U,Y,{selector:Q,name:H,mode:G,outgoingResultWebhook:W,autoApprovalRate:w,secret:K,rotateSecret:q,materialPackFilePolicy:Z,dryRun:V},V0(J.options));return}if($==="delete"){let Q=I??g(J.options.selector)??g(J.options.id),K=O0(J.options.dryRun)??O0(J.options["dry-run"]);if(!Q)throw Error("Usage: seal-use webhook delete [--yes|--dry-run]");if(O0(J.options.yes)!==!0&&!K)throw s8("Refusing to delete Webhook integration without --yes",`seal-use webhook delete ${Q} --corp ${Y.id} --yes`);await F0("seal_webhook_delete",U,Y,{selector:Q,confirm:!0,dryRun:K},V0(J.options));return}throw Error(`Unknown webhook command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Xz0($,I,U,Y,J){if($==="replay"){await gD("replay",I,U,Y,J);return}if($==="summary"){let Q=await zI("seal_approval_runs_summary",U,Y,{date:g(J.options.date),timezone:g(J.options.timezone),limit:n0(J.options.limit),startDate:g(J.options.startDate),endDate:g(J.options.endDate),status:g(J.options.status),taskMode:g(J.options.taskMode),manualApprovalStatus:g(J.options.manualApprovalStatus),sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId),humanResult:g(J.options.humanResult),query:g(J.options.query)});if(Q?.matched===0&&Q?.total>0)console.error(`提示:在 ${Q.date} 未匹配到记录(该企业共有 ${Q.total} 条历史记录)。可使用 --date YYYY-MM-DD 指定日期,或运行 seal-use approval-runs list --limit 10 查看最近记录。`);B0(Q,V0(J.options));return}if($==="stats"){await F0("seal_approval_runs_stats",U,Y,{since:g(J.options.since),dedupeBy:g(J.options.dedupeBy)??g(J.options["dedupe-by"]),status:g(J.options.status),sourceSystem:g(J.options.sourceSystem)??g(J.options["source-system"]),taskMode:g(J.options.taskMode)??g(J.options["task-mode"])},V0(J.options));return}if($==="count"){await F0("seal_approval_runs_count",U,Y,{status:g(J.options.status),sourceSystem:g(J.options.sourceSystem)??g(J.options["source-system"]),taskMode:g(J.options.taskMode)??g(J.options["task-mode"]),search:g(J.options.search)??g(J.options.query)},V0(J.options));return}if($==="search"||$==="list"){await F0("seal_approval_runs_search",U,Y,{limit:n0(J.options.limit),offset:n0(J.options.offset),startDate:g(J.options.startDate),endDate:g(J.options.endDate),status:g(J.options.status),taskMode:g(J.options.taskMode),manualApprovalStatus:g(J.options.manualApprovalStatus),sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId),humanResult:g(J.options.humanResult),query:g(J.options.query),includeBridge:O0(J.options.includeBridge)},V0(J.options));return}if($==="bridge"){await F0("seal_approval_run_langfuse_bridge_get",U,Y,{recordId:g(J.options.recordId),sourceDocumentSN:g(J.options.sourceDocumentSN),sourceDocumentId:g(J.options.sourceDocumentId),simulationBatchId:g(J.options.simulationBatchId),limit:n0(J.options.limit)},V0(J.options));return}if($==="pick"){let Q=I??g(J.options.query)??g(J.options.sn);if(!Q)throw Error("Usage: seal-use approval-runs pick --sn ");await F0("seal_approval_run_pick",U,Y,{query:Q,sn:g(J.options.sn),batchId:g(J.options.batch)??g(J.options.batchId),latest:O0(J.options.latest),fields:g(J.options.fields),limit:n0(J.options.limit),includeBridge:O0(J.options.includeBridge)},V0(J.options));return}if($==="get"){let Q=J.command[2];if(!Q)throw Error("Missing approval run recordId");await F0("seal_approval_run_get",U,Y,{recordId:Q,fields:g(J.options.fields),summary:O0(J.options.summary)},V0(J.options));return}if($==="cited-rules"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs cited-rules ");await F0("seal_approval_run_cited_rules_get",U,Y,{recordId:Q},V0(J.options));return}if($==="document-summary"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs document-summary ");await F0("seal_approval_run_document_summary_get",U,Y,{recordId:Q},V0(J.options));return}if($==="attachments"){if(J.command[2]==="download"){let G=J.command[3];if(!G)throw Error("Usage: seal-use approval-runs attachments download [--all] [--name ] [--out-dir ]");let W=await T4(U,G),w=await lL({record:W,all:O0(J.options.all),name:g(J.options.name),outDir:g(J.options["out-dir"])??g(J.options.outDir)??g(J.options.dir)});if(B0(w,V0(J.options)),w.total>0&&w.downloaded===0)throw Error(`所有 ${w.total} 个附件下载均失败。`);return}let K=J.command[2];if(!K)throw Error("Usage: seal-use approval-runs attachments | seal-use approval-runs attachments download ");if(O0(J.options.download)){let G=await T4(U,K),W=await lL({record:G,all:O0(J.options.all)??!0,name:g(J.options.name),outDir:g(J.options["out-dir"])??g(J.options.outDir)??g(J.options.dir)});if(B0(W,V0(J.options)),W.total>0&&W.downloaded===0)throw Error(`所有 ${W.total} 个附件下载均失败。`);return}let q=await T4(U,K),H=NJ(q,{summary:O0(J.options.summary)});B0(H,V0(J.options));return}if($==="download"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs download [--all] [--name ] [--out-dir ]");let K=await T4(U,Q),q=await lL({record:K,all:O0(J.options.all),name:g(J.options.name),outDir:g(J.options["out-dir"])??g(J.options.outDir)??g(J.options.dir)});if(B0(q,V0(J.options)),q.total>0&&q.downloaded===0)throw Error(`所有 ${q.total} 个附件下载均失败。`);return}if($==="result"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs result [--summary]");await F0("seal_approval_run_result_get",U,Y,{recordId:Q,summary:O0(J.options.summary)},V0(J.options));return}if($==="url"){let Q=O0(J.options.sso)??!1,K=n0(J.options.expire)??n0(J.options.expiresIn)??7200,q=g(J.options.sn)??g(J.options.sourceDocumentSN);await F0("seal_approval_run_url_get",U,Y,{recordId:I??g(J.options.id)??g(J.options.recordId),sourceDocumentSN:q,sourceDocumentId:g(J.options.sourceDocumentId),sso:Q,expiresIn:K},V0(J.options));return}if($==="export"){let Q=await mL(U,Y,{limit:n0(J.options.limit),startDate:g(J.options.start)??g(J.options.startDate)??g(J.options.since),endDate:g(J.options.end)??g(J.options.endDate),status:g(J.options.status),manualApprovalStatus:g(J.options["manual-status"])??g(J.options.manualStatus)??g(J.options.manualApprovalStatus),includeCompletedOnly:O0(J.options["completed-only"])??O0(J.options.completedOnly),outputFile:g(J.options.out)??g(J.options.output)??g(J.options.file),toDownloads:O0(J.options.downloads)??O0(J.options.download)});B0(Q,V0(J.options));return}throw Error(`Unknown approval-runs command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Lz0($,I,U,Y){if($==="insight"||$==="insight-stats"||$==="stats"){await F0("seal_insight_stats_get",I,U,{startDate:g(Y.options.startDate)??g(Y.options["start-date"]),endDate:g(Y.options.endDate)??g(Y.options["end-date"]),limit:n0(Y.options.limit)},V0(Y.options));return}throw Error(`Unknown analytics command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Fz0($,I,U){if($==="diagnose"){B0(await AG1(I));return}if($==="hose-link"){let Y=n0(U.options.expire)??7200;B0(await kw(I,Y));return}throw Error(`Unknown auth command: ${$??""}. Run 'seal-use help' for available commands.`)}async function AG1($){if($.source.type!=="hose"){let X=await u1($),L=await G$(X);return{corp:{id:$.id,name:$.name,sourceType:$.source.type},ok:!0,stages:[{name:"seal.whoami",ok:!0,user:L.user,tenant:L.tenant}]}}Sw($.id);let I=$.source,U=I.appKey??I.key,Y=I.appSecurity??I.password,J=($.seal.url??I.sealUrl??`https://${I.corpId.toLowerCase()}.sealai.cc`).replace(/\/+$/,""),Q=I.staffId.includes(":")?I.staffId:`${I.corpId}:${I.staffId}`,K=[];if(!U||!Y)return{corp:{id:$.id,name:$.name,sourceType:$.source.type},ok:!1,stages:[{name:"hose.openapi",ok:!1,error:"Hose source requires appKey/key and appSecurity/password"}]};let q=await yD("hose.openapi",async()=>{let X=await Dz0(`${I.domain.replace(/\/+$/,"")}/api/openapi/v1/auth/getAccessToken`,{appKey:U,appSecurity:Y}),L=r5(X.value),D=m4(L.accessToken)??m4(X.accessToken)??m4(X.token);if(!D)throw Error("Hose login did not return an access token");return{token:D,public:{corporationId:m4(L.corporationId)??m4(r5(L.corporation).id),expireTime:TH(L.expireTime)}}});K.push(q.public);let H=q.private?.token,G=H?await yD("hose.provisional",async()=>{let X=await Dz0(`${I.domain.replace(/\/+$/,"")}/api/openapi/v1.1/provisional/getProvisionalAuth?accessToken=${encodeURIComponent(H)}`,{uid:Q,pageType:"home",expireDate:7200}),L=m4(r5(X.value).message);if(!L)throw Error("Hose CloseAPI did not return a provisional auth URL");let D=new URL(L).searchParams.get("accessToken");if(!D)throw Error("Hose provisional auth URL did not include accessToken");return{token:D,public:{uid:Q,enterpriseUrl:PH(L)}}}):uu("hose.provisional");K.push(G.public);let W=G.private?.token,w=W?await yD("seal.sso",async()=>{let X=await Oz0(`${J}/api/auth/oauth2/session/oem-hosecloud?token=${encodeURIComponent(W)}&returnToken=1`),L=r5(X.data),D=m4(X.token)??m4(X.accessToken)??m4(L.token)??m4(L.accessToken);if(!D)throw Error("Seal SSO did not return a bearer token");return{token:D,public:{sealUrl:J,expiresIn:TH(X.expiresIn)??TH(X.expires_in)??TH(L.expiresIn)??TH(L.expires_in)}}}):uu("seal.sso");K.push(w.public);let Z=w.private?.token,V=Z?await yD("seal.whoami",async()=>{let X=await Oz0(`${J}/api/v1/auth/me`,{authorization:`Bearer ${Z}`}),L=r5(X.data),D=r5(L.user??X.user),F=r5(L.tenant??X.tenant);return{public:{user:{id:m4(D.id),name:m4(D.name),isAdmin:PG1(D.isAdmin),providerUserId:m4(D.providerUserId)},tenant:{id:m4(F.id),name:m4(F.name),tenantSlug:m4(F.tenantSlug),hoseCorpConfig:TG1(F.hoseCorpConfig)}}}}):uu("seal.whoami");return K.push(V.public),{corp:{id:$.id,name:$.name,sourceType:$.source.type},ok:K.every((X)=>X.ok===!0),stages:K}}async function yD($,I){try{let U=await I();return{public:{name:$,ok:!0,...Mz0(U.public)},private:U.token?{token:U.token}:void 0}}catch(U){return{public:{name:$,ok:!1,error:PH(U instanceof Error?U.message:String(U))}}}}function uu($){return{public:{name:$,ok:!1,skipped:!0}}}async function Dz0($,I){let U=await fetch($,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(I)});return Nz0(U)}async function Oz0($,I={}){let U=await fetch($,{headers:I});return Nz0(U)}async function Nz0($){let I=await $.text();if(!$.ok)throw Error(`${$.status} ${I}`);let U=JSON.parse(I);return r5(U)}function r5($){return $&&typeof $==="object"&&!Array.isArray($)?$:{}}function m4($){return typeof $==="string"&&$?$:void 0}function TH($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function PG1($){return typeof $==="boolean"?$:void 0}function TG1($){let I=r5($);return Mz0({corporationId:m4(I.corporationId),corporationName:m4(I.corporationName)})}function Mz0($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}async function Az0($,I,U,Y){if($==="status"||$==="get"){await F0("seal_billing_status_get",I,U,{},V0(Y.options));return}if($==="plans"){await F0("seal_billing_plans_list",I,U,{},V0(Y.options));return}if($==="features"){await F0("seal_billing_features_list",I,U,{},V0(Y.options));return}throw Error(`Unknown billing command: ${$??""}. Run 'seal-use help' for available commands.`)}function Pz0($,I,U){if($==="paths"){B0({candidates:YI(),globalConfigFile:JI()});return}if($==="get"||$==="status"){B0(ZI());return}if($==="mode"){let Y=I??g(U.options.mode);if(!Y){B0(ZI());return}let J=sZ0(Y),Q=g(U.options.corp),K=O4(),q=J?Q?AJ(o8(),{stateful:!0,corpId:Q},YI()).id:K.defaultCorpId:void 0,H=QI({...K,stateful:J,...q?{defaultCorpId:q}:{}});B0(ZI(H));return}if($==="lint"){let Y=I??g(U.options.state)??g(U.options.enable),J=O4(),Q=J.lint??{enabled:!1,activeLinter:"builtin",minScore:0};if(!Y||Y==="status"||Y==="get"){B0({lint:Q,configFile:JI()});return}let K=Q.enabled;if(Y==="enable"||Y==="on"||Y==="true")K=!0;else if(Y==="disable"||Y==="off"||Y==="false")K=!1;let q=g(U.options.linter)??Q.activeLinter,H=U.options.minScore!==void 0||U.options["min-score"]!==void 0?Number(U.options.minScore??U.options["min-score"]):Q.minScore,G={enabled:K,activeLinter:q,minScore:isNaN(H)?0:Math.max(0,Math.min(100,H))},W=QI({...J,lint:G});B0(ZI(W));return}if($==="test-dir"||$==="test-enterprises-dir"){let Y=U.options.clear===!0||I==="--clear"||I==="clear",J=O4();if(Y){let q=QI({...J,testEnterprisesDir:void 0});B0(ZI(q));return}let Q=I&&!I.startsWith("-")?I:g(U.options.path)??g(U.options.dir);if(!Q){B0({testEnterprisesDir:J.testEnterprisesDir??null,configFile:JI()});return}let K=QI({...J,testEnterprisesDir:Q});B0(ZI(K));return}throw Error(`Unknown config command: ${$??""}. Available: paths, get, status, mode, lint, test-dir. Run 'seal-use help' for available commands.`)}async function Tz0($,I,U,Y,J){if($==="sync-time"||$==="last-sync-time"){await F0("seal_contacts_last_sync_time_get",U,Y,{},V0(J.options));return}if($==="departments"||$==="department"){if(!I){await F0("seal_contacts_departments_root_list",U,Y,{},V0(J.options));return}await F0("seal_contacts_department_get",U,Y,{departmentId:I},V0(J.options));return}if($==="children"||$==="department-children"){if(!I)throw Error("Usage: seal-use contacts children ");await F0("seal_contacts_department_children_list",U,Y,{departmentId:I},V0(J.options));return}if($==="users"||$==="department-users"){if(!I)throw Error("Usage: seal-use contacts users ");await F0("seal_contacts_department_users_list",U,Y,{departmentId:I},V0(J.options));return}throw Error(`Unknown contacts command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Ez0($,I,U,Y){let J={offset:n0(Y.options.offset),limit:n0(Y.options.limit),startDate:g(Y.options.startDate)??g(Y.options["start-date"]),endDate:g(Y.options.endDate)??g(Y.options["end-date"]),search:g(Y.options.search)??g(Y.options.query)};if($==="expenses"||$==="expense"){await F0("seal_expenses_list",I,U,J,V0(Y.options));return}if($==="invoices"||$==="invoice"){await F0("seal_invoices_list",I,U,J,V0(Y.options));return}throw Error(`Unknown data command: ${$??""}. Run 'seal-use help' for available commands.`)}async function Bz0($,I,U){await F0("seal_approval_context_get",$,I,{documentLimit:n0(U.options.documentLimit),...$z0(g(U.options.ruleVersion))},V0(U.options))}import{existsSync as yz0,mkdirSync as hz0,writeFileSync as uz0}from"node:fs";import{randomBytes as jG1}from"node:crypto";import{join as kz0}from"node:path";import{existsSync as EG1,mkdirSync as BG1,readFileSync as vG1,writeFileSync as vz0}from"node:fs";import{homedir as RG1}from"node:os";import{join as hD}from"node:path";function Rz0(){let $=process.env.SEAL_USE_MAPPINGS_DIR?.trim();if($)return $;return hD(RG1(),".config","seal-use","mappings")}function jz0($){let I=Rz0();BG1(I,{recursive:!0,mode:448});let U=hD(I,`${$.target.id}-v${$.target.publishedVersionNumber}.json`),Y=hD(I,`${$.target.id}-latest.json`),J=JSON.stringify($,null,2);return vz0(U,J,{encoding:"utf-8",mode:384}),vz0(Y,J,{encoding:"utf-8",mode:384}),U}function Cz0($,I){let U=Rz0(),Y;if(!I||I==="latest")Y=`${$}-latest.json`;else{let Q=String(I).replace(/^v/i,"");Y=`${$}-v${Q}.json`}let J=hD(U,Y);if(!EG1(J))return null;try{let Q=vG1(J,"utf-8");return JSON.parse(Q)}catch{return null}}function _z0($,I){if(!I)return $;let U=I.trim().toLowerCase();return $.filter((Y)=>{return String(Y.sourceRuleCode).toLowerCase()===U||String(Y.targetRuleCode).toLowerCase()===U||Y.sourceRuleId.toLowerCase()===U||Y.targetRuleId.toLowerCase()===U||`#${Y.sourceRuleCode}`.toLowerCase()===U||`#${Y.targetRuleCode}`.toLowerCase()===U})}function Sz0($,I,U){let Y=0,J=I!==void 0?new RegExp(`\\[Prod v${I}\\s*·\\s*#(\\d+)(?:[^\\]]*)\\]`):/\[Prod draft\s*·\s*#(\d+)(?:[^\]]*)\]/;for(let K of U){if(!K.versionName)continue;let q=K.versionName.match(J);if(q&&q[1]){let H=parseInt(q[1],10);if(!isNaN(H)&&H>Y)Y=H}}if(Y>0)return Y+1;if(!U.some((K)=>K.versionName&&/\[Prod v\d+/.test(K.versionName))){let K=U.filter((q)=>q.versionName&&q.versionName.includes(`Sync from ${$}`)).length;if(K>0)return K+1}return 1}function gz0($,I,U,Y){let J=I!==void 0?`Prod v${I}`:"Prod draft",Q=Y!==void 0?` -> Test v${Y}`:"";return`Sync from ${$} [${J} · #${U}${Q}]`}async function gJ($){let[I,U]=await Promise.all([ud($),u1($)]),Y=await G$(U);return{...I,tenantId:Y.tenant.id,tenantSlug:Y.tenant.tenantSlug??I.tenantSlug,tenantName:Y.tenant.name,raw:{...typeof I.raw==="object"&&I.raw!==null?I.raw:{},user:{id:Y.user.id,name:Y.user.name,isAdmin:Y.user.isAdmin,providerUserId:Y.user.providerUserId,hosecloudStaff:Y.user.hosecloudStaff},tenant:Y.tenant}}}async function xz0($,I,U){if($==="list"){let Y=g(U.options.corp),J=o8(),Q=O4(),K=Y??(Q.stateful?Q.defaultCorpId??J[0]?.id:void 0);if(J.length===0)console.error("提示:当前未检测到企业配置。你可以使用 seal-use corps add-hose 或 seal-use corps add-seal 添加企业,或运行 seal-use help 查看说明。");B0(J.map((q)=>({id:q.id,name:q.name,environment:q.environment??"production",sourceType:q.source.type,provider:q.source.provider??q.source.type,testCorpId:q.testCorpId,prodCorpId:q.prodCorpId,current:q.id===K})));return}if($==="current"){let Y=y1(g(U.options.corp));B0({id:Y.id,name:Y.name,environment:Y.environment??"production",sourceType:Y.source.type,provider:Y.source.provider??Y.source.type,testCorpId:Y.testCorpId,prodCorpId:Y.prodCorpId});return}if($==="mark"||$==="mark-test"||$==="mark-prod"){let Y=I??g(U.options.corp);if(!Y)throw S4("Usage: seal-use corps mark --env [--confirm]");let J=y1(Y),Q=$==="mark-test"?"test":$==="mark-prod"?"production":g(U.options.env)??g(U.options.environment);if(Q!=="production"&&Q!=="test")throw S4("Usage: seal-use corps mark --env [--confirm]");if(!(O0(U.options.confirm)===!0||O0(U.options.yes)===!0))throw s8(`Refusing to change environment tag of enterprise '${J.name}' (${J.id}) to '${Q}' without --confirm. Marking alters synchronization safety guards.`,`seal-use corps mark ${J.id} --env ${Q} --confirm`);let q=F7(J.id,{environment:Q});B0({id:q.id,name:q.name,environment:q.environment,testCorpId:q.testCorpId,prodCorpId:q.prodCorpId});return}if($==="bind-test"){let Y,J;if(I&&U.command[3])Y=I,J=U.command[3];else if(I){let w=g(U.options.corp),Z=g(U.options["test-corp"])??g(U.options.testCorp);if(w)Y=w,J=I;else if(Z)Y=I,J=Z}if(!Y||!J)throw S4(`Usage: seal-use corps bind-test [--confirm] [--force] or: seal-use corps bind-test --corp [--confirm] [--force]`);let Q=y1(Y),K=y1(J);if(Q.id===K.id)throw S4(`Cannot bind enterprise '${Q.id}' to itself.`);if(Q.prodCorpId&&Q.prodCorpId!==K.id)throw S4(`Cannot use '${Q.id}' as a production enterprise because it is already registered as a test enterprise for '${Q.prodCorpId}'. Multi-tier chaining is not permitted.`);if(K.testCorpId&&K.testCorpId!==Q.id)throw S4(`Cannot bind '${K.id}' as a test enterprise because it already has a bound test enterprise '${K.testCorpId}'. Multi-tier chaining is not permitted.`);let q=O0(U.options.force)===!0;if(Q.testCorpId&&Q.testCorpId!==K.id||K.prodCorpId&&K.prodCorpId!==Q.id){if(!q)throw s8(`Enterprise binding conflict: production enterprise '${Q.id}' is bound to '${Q.testCorpId??"none"}', and test enterprise '${K.id}' is bound to '${K.prodCorpId??"none"}'. Overwriting an existing binding requires --force and --confirm.`,`seal-use corps bind-test ${Q.id} ${K.id} --confirm --force`)}if(!(O0(U.options.confirm)===!0||O0(U.options.yes)===!0)){let w=q?" --force":"";throw s8(`Refusing to bind test enterprise '${K.name}' (${K.id}) to production enterprise '${Q.name}' (${Q.id}) without --confirm. Enterprise binding establishes 1-to-1 sync pairing and marks '${K.id}' as a test environment.`,`seal-use corps bind-test ${Q.id} ${K.id} --confirm${w}`)}if(Q.testCorpId&&Q.testCorpId!==K.id)try{F7(Q.testCorpId,{prodCorpId:void 0})}catch{}if(K.prodCorpId&&K.prodCorpId!==Q.id)try{F7(K.prodCorpId,{testCorpId:void 0})}catch{}let G=F7(Q.id,{environment:"production",testCorpId:K.id}),W=F7(K.id,{environment:"test",prodCorpId:Q.id});B0({success:!0,productionEnterprise:{id:G.id,name:G.name,environment:G.environment,testCorpId:G.testCorpId},testEnterprise:{id:W.id,name:W.name,environment:W.environment,prodCorpId:W.prodCorpId}});return}if($==="unbind-test"){let Y=I??g(U.options.corp),J=y1(Y);if(!J.testCorpId&&!J.prodCorpId){B0({unbound:!1,message:`Enterprise '${J.name}' (${J.id}) does not have an active test enterprise binding.`});return}let Q=J.testCorpId?J.id:J.prodCorpId,K=J.testCorpId?J.testCorpId:J.id;if(!(O0(U.options.confirm)===!0||O0(U.options.yes)===!0))throw s8(`Refusing to unbind production enterprise '${Q}' and test enterprise '${K}' without --confirm.`,`seal-use corps unbind-test ${J.id} --confirm`);F7(Q,{testCorpId:void 0});try{F7(K,{prodCorpId:void 0})}catch{}B0({success:!0,unboundProduction:Q,unboundTest:K});return}if($==="sync-test"){let Y=I??g(U.options.corp),J=y1(Y);if(!J.testCorpId)throw S4(`Production enterprise '${J.name}' (${J.id}) has no bound test enterprise. -Run 'seal-use corps bind-test ${J.id} --confirm' first to establish a verified 1-to-1 association.`);let Q=y1(J.testCorpId);if(Q.environment!=="test")throw Error(`Target enterprise '${Q.name}' (${Q.id}) is marked as '${Q.environment}', NOT 'test'. Aborting sync to protect non-test environments.`);let K=await u1(J),q=await u1(Q),[H,G,W,w,Z,V,X,L]=await Promise.all([M1(K,J.seal.endpoints.approvalStylePreferences).catch(()=>({})),M1(q,Q.seal.endpoints.approvalStylePreferences).catch(()=>({})),_6(K),_6(q),R$(K).catch(()=>[]),R$(q).catch(()=>[]),N9(K,{limit:100}).catch(()=>({articles:[]})),N9(q,{limit:100}).catch(()=>({articles:[]}))]),D=(X.articles||[]).filter((Q0)=>!Q0.isDeleted),F=(L.articles||[]).filter((Q0)=>!Q0.isDeleted),P=new Map(F.map((Q0)=>[Q0.title.trim(),Q0])),E=[],A=[],R=new Set(D.map((Q0)=>Q0.title.trim()));for(let Q0 of D){let R0=Q0.title.trim(),U1=P.get(R0);if(!U1)E.push(Q0);else{let O1=U1.content!==Q0.content,b4=(U1.purpose??"")!==(Q0.purpose??""),f6=U1.enabled!==Q0.enabled,O$=U1.contentType!==Q0.contentType,b6=(U1.status??"")!==(Q0.status??""),P6=JSON.stringify([...U1.scenarios??[]].sort())!==JSON.stringify([...Q0.scenarios??[]].sort()),F$=JSON.stringify([...U1.tags??[]].sort())!==JSON.stringify([...Q0.tags??[]].sort());if(O1||b4||f6||O$||b6||P6||F$)A.push({testId:U1.id,prodDoc:Q0,reasons:[...O1?["content"]:[],...b4?["purpose"]:[],...f6?["enabled"]:[],...O$?["contentType"]:[],...b6?["status"]:[],...P6?["scenarios"]:[],...F$?["tags"]:[]]})}}let k=F.filter((Q0)=>!R.has(Q0.title.trim())),f=[...Z].sort((Q0,R0)=>R0.versionNumber-Q0.versionNumber)[0],j=f?.versionNumber,n=([...V].sort((Q0,R0)=>R0.versionNumber-Q0.versionNumber)[0]?.versionNumber??0)+1,S=Sz0(J.name,j,V),i=g(U.options["version-name"])??g(U.options.versionName)??gz0(J.name,j,S,n),U0={...G,tone:H.tone,language:H.language,detailLevel:H.detailLevel,outputFormat:H.outputFormat,examples:H.examples??[],prohibitedPhrases:H.prohibitedPhrases??[],customInstructions:H.customInstructions,decisionPreferences:H.decisionPreferences,thinkingDepthPreference:H.thinkingDepthPreference};if(O0(U.options["dry-run"])===!0||O0(U.options.dryRun)===!0){B0({dryRun:!0,source:{id:J.id,name:J.name,environment:J.environment,latestPublishedVersion:f?{versionNumber:f.versionNumber,versionName:f.versionName}:null,documentsCount:D.length},target:{id:Q.id,name:Q.name,environment:Q.environment},versionMappingPlan:{sourceProdVersionNumber:j??null,sourceProdVersionName:f?.versionName??null,targetTestExpectedVersionNumber:n,targetTestPublishVersionName:i,iteration:S},preferencesDiff:{decisionPreferences:{before:G.decisionPreferences,after:H.decisionPreferences},thinkingDepthPreference:{before:G.thinkingDepthPreference,after:H.thinkingDepthPreference}},rulesPlan:{sourceDraftRuleCount:W.rules.length,targetExistingDraftRuleCount:w.rules.length,toDeleteCount:w.rules.length,toCreateCount:W.rules.length,rulesToSync:W.rules.map((Q0,R0)=>({index:R0+1,sourceRuleId:Q0.id,sourceRuleCode:Q0.code??R0+1,expectedTargetCode:`rule-${R0+1}`,description:Q0.description,scope:Q0.scope,strictness:Q0.strictness}))},documentsPlan:{sourceDocumentCount:D.length,targetExistingDocumentCount:F.length,toCreateCount:E.length,toCreate:E.map((Q0)=>({title:Q0.title,purpose:Q0.purpose,contentType:Q0.contentType,scenarios:Q0.scenarios})),toUpdateCount:A.length,toUpdate:A.map((Q0)=>({targetDocumentId:Q0.testId,title:Q0.prodDoc.title,reasons:Q0.reasons})),toDeleteCount:k.length,toDelete:k.map((Q0)=>({targetDocumentId:Q0.id,title:Q0.title}))},publishingPlan:{targetCorpId:Q.id,publishVersionName:i,publishTarget:"test"},hosecloudSyncPlan:(()=>{if(J.source.type!=="hose")return{sourceType:J.source.type,skipped:!0,reason:"prod source is not hose; no hosecloud credentials available"};let Q0=(H.integrations??[]).filter((O1)=>O1.type==="hosecloud"),R0=new Set,U1=Q0.filter((O1)=>{let b4=O1.corporationId??J.id;if(R0.has(b4))return!1;return R0.add(b4),!0});return{sourceType:"hose",outboundName:fz0(J.name),targetMode:"assisted",integrationsCount:U1.length,integrations:U1.map((O1)=>({corporationId:O1.corporationId,apiOrigin:O1.apiOrigin,customApiUrl:O1.customApiUrl}))}})(),productionGuarantees:{prodRulesStayDraft:!0,prodVersionPublished:!1}});return}if(!(O0(U.options.yes)===!0||O0(U.options.confirm)===!0))throw s8(`Refusing to overwrite test enterprise '${Q.name}' (${Q.id}) with preferences, ${W.rules.length} draft rules, and ${D.length} knowledge documents from production enterprise '${J.name}' (${J.id}) without --yes. This will replace test draft rules, synchronize knowledge documents, and publish a new version on the test enterprise.`,`seal-use corps sync-test ${J.id} --yes`);await M8(q,U0,Q.seal.endpoints.approvalStylePreferences);let c=[];for(let Q0 of k)await tw(q,Q0.id),c.push({id:Q0.id,title:Q0.title});let r=[];for(let Q0 of A)await rw(q,Q0.testId,{title:Q0.prodDoc.title,purpose:Q0.prodDoc.purpose,content:Q0.prodDoc.content,contentType:Q0.prodDoc.contentType,status:Q0.prodDoc.status,enabled:Q0.prodDoc.enabled,scenarios:Q0.prodDoc.scenarios&&Q0.prodDoc.scenarios.length>0?Q0.prodDoc.scenarios:["audit"],tags:Q0.prodDoc.tags}),r.push({id:Q0.testId,title:Q0.prodDoc.title,reasons:Q0.reasons});let J0=[];for(let Q0 of E){let R0=await ow(q,{title:Q0.title,purpose:Q0.purpose,content:Q0.content,contentType:Q0.contentType,status:Q0.status,enabled:Q0.enabled,scenarios:Q0.scenarios&&Q0.scenarios.length>0?Q0.scenarios:["audit"],tags:Q0.tags});J0.push({id:R0.id,title:R0.title})}for(let Q0 of w.rules)await TU(q,Q0.id);let w0=[];for(let Q0 of W.rules){let R0=await A2(q,{description:Q0.description,scope:Q0.scope,strictness:Q0.strictness});w0.push(R0)}await lw(q).catch(()=>{return});let A0=await T2(q,i),j0=A0.version.rules??[],q1=W.rules.map((Q0,R0)=>{let U1=w0[R0],O1=j0[R0];return{index:R0+1,sourceRuleId:Q0.id,sourceRuleCode:Q0.code??R0+1,targetRuleId:U1?.id??"",targetRuleCode:O1?.code??`rule-${R0+1}`,description:Q0.description,scope:Q0.scope,strictness:Q0.strictness}}),k0={sourceProdVersionNumber:j??null,sourceProdVersionName:f?.versionName??null,targetTestVersionNumber:A0.version.versionNumber,targetTestVersionName:A0.version.versionName??null},I1;try{I1=jz0({syncedAt:new Date().toISOString(),source:{id:J.id,name:J.name,latestPublishedVersionNumber:j??null,latestPublishedVersionName:f?.versionName??null},target:{id:Q.id,name:Q.name,publishedVersionNumber:A0.version.versionNumber,publishedVersionName:A0.version.versionName,rulesCount:A0.rulesCount},versionMapping:k0,ruleMapping:q1})}catch{}let M0=await jG1(J,Q,K,q).catch((Q0)=>({skipped:!0,reason:`error: ${Q0?.message??String(Q0)}`}));B0({success:!0,syncedAt:new Date().toISOString(),source:{id:J.id,name:J.name,environment:J.environment,latestPublishedVersion:f?{versionNumber:f.versionNumber,versionName:f.versionName}:null,draftRulesCount:W.rules.length,documentsCount:D.length},target:{id:Q.id,name:Q.name,environment:Q.environment,deletedDraftRulesCount:w.rules.length,createdDraftRulesCount:w0.length,publishedVersion:{id:A0.version.id,versionNumber:A0.version.versionNumber,versionName:A0.version.versionName,rulesCount:A0.rulesCount}},documents:{sourceCount:D.length,targetExistingCount:F.length,createdCount:J0.length,created:J0,updatedCount:r.length,updated:r,deletedCount:c.length,deleted:c},versionMapping:k0,ruleMapping:q1,...I1?{mappingSavedTo:I1}:{},hosecloudSync:M0,productionGuarantees:{prodRulesStayDraft:!0,prodVersionPublished:!1}});return}if($==="switch"){let Y=I;if(!Y)throw Error("Usage: seal-use corps switch ");let J=O4();if(!J.stateful)throw Error("Cannot switch the default enterprise while stateless mode is enabled. Use `seal-use config mode stateful` first.");let Q=y1(Y);QI({...J,stateful:!0,defaultCorpId:Q.id}),B0({current:!0,id:Q.id,name:Q.name});return}if($==="probe-hose"){await CG1(U$(U.json));return}if($==="hose-staffs"){await _G1(U$(U.json));return}if($==="add-hose"){await SG1(U$(U.json));return}if($==="add-seal"){await gG1(U$(U.json));return}if($==="add-link"){let Y=I??g(U.options.link)??g(U.options.url);if(!Y)throw Error("Usage: seal-use corps add-link [--name ] [--overwrite]");await yG1(Y,g(U.options.name),O0(U.options.overwrite)===!0);return}throw Error(`Unknown corps command: ${$??""}. Run 'seal-use help' for available commands.`)}function fz0($){return[...$].slice(0,6).join("")+"(Seal测)"}async function jG1($,I,U,Y){if($.source.type!=="hose")return{skipped:!0,reason:"prod source is not hose; no hosecloud credentials available"};let J=($.source.appKey??$.source.key)?.trim(),Q=($.source.appSecurity??$.source.password)?.trim();if(!J||!Q)return{skipped:!0,reason:"prod hose source missing appKey/appSecurity (or key/password)"};let[K,q]=await Promise.all([M1(U,$.seal.endpoints.approvalStylePreferences).catch(()=>({})),M1(Y,I.seal.endpoints.approvalStylePreferences).catch(()=>({}))]),H=(K.integrations??[]).filter((P)=>P.type==="hosecloud");if(H.length===0)return{skipped:!0,reason:"prod Seal enterprise has no hosecloud integrations configured"};let G=new Set,W=[];for(let P of H){let E=P.corporationId??$.id;if(!G.has(E))G.add(E),W.push(P)}let w=q.integrations??[],Z=new Map(w.filter((P)=>P.type==="hosecloud").map((P)=>[P.corporationId,P])),V=fz0($.name),X=[],L=W.map((P)=>{let E=Z.get(P.corporationId),A=E?.signKey??RG1(6).toString("hex");return X.push({signKey:A,outboundName:V,corporationId:P.corporationId,action:E?"updated":"created"}),{type:"hosecloud",signKey:A,outboundName:V,mode:"assisted",apiKey:J,apiSecret:Q,apiOrigin:P.apiOrigin,...P.customApiUrl?{customApiUrl:P.customApiUrl}:{},corporationId:P.corporationId}}),D=w.filter((P)=>P.type!=="hosecloud"),F={...q,integrations:[...D,...L]};return await M8(Y,F,I.seal.endpoints.approvalStylePreferences),{skipped:!1,synced:X}}async function CG1($){let I=A7($,"appKey"),U=A7($,"appSecurity"),Y=m1($,"domain"),J=await MU(I,U,Y),Q=await xw(J.domain,J.openapiToken).catch(()=>[]),K=Q.reduce((q,H)=>q+H.roleDefs.length,0);B0({domain:J.domain,corpId:J.corpId,name:J.corpName??J.corpId,roleCount:K,roleGroups:Q.map((q)=>({id:q.id,name:q.name,roleDefs:q.roleDefs.map((H)=>({id:H.id,name:H.name,sourceType:H.sourceType}))}))})}async function _G1($){let I=A7($,"appKey"),U=A7($,"appSecurity"),Y=m1($,"domain"),J=m1($,"role")??m1($,"roleDefId")??"admin",Q=await MU(I,U,Y),K=await xw(Q.domain,Q.openapiToken),q,H;for(let w of K){for(let Z of w.roleDefs)if(Z.id===J||Z.id===`${Q.corpId}:${J}`){q=Z.id,H=Z.name;break}if(q)break}if(!q&&(J==="admin"||J==="主管理员"))for(let w of K){for(let Z of w.roleDefs)if(Z.id.endsWith(":admin")||Z.name==="主管理员"){q=Z.id,H=Z.name;break}if(q)break}if(!q)for(let w of K){for(let Z of w.roleDefs)if(Z.name.toLowerCase().includes(J.toLowerCase())){q=Z.id,H=Z.name;break}if(q)break}if(!q)throw Error(`Role not found matching query: '${J}'. Run 'seal-use corps probe-hose' to view all available roles.`);let G=await uE(Q.domain,Q.openapiToken,q),W=await xE(Q.domain,Q.openapiToken,G.staffs);B0({domain:Q.domain,corpId:Q.corpId,corpName:Q.corpName??Q.corpId,roleId:q,roleName:H,count:W.length,staffs:W.map((w)=>({id:w.id,name:w.name,cellphone:w.cellphone,active:w.active,authState:w.authState,userId:w.userId,email:w.email}))})}async function SG1($){let I=m1($,"name"),U=A7($,"appKey"),Y=A7($,"appSecurity"),J=m1($,"domain"),Q=m1($,"staffId")??m1($,"proxyStaffBizId"),K=m1($,"staffName"),q=m1($,"staffPhone"),H=m1($,"role")??"admin",G=$.force===!0,W=G||$.verify===!1?!1:!0,w=J,Z=m1($,"corpId")??m1($,"corporationId"),V=I,X;if(!w||!Z||!Q){let k=await MU(U,Y,J);w=k.domain,Z=Z??k.corpId,V=V??k.corpName,X=k.openapiToken}let L=Q;if(!L&&X&&w){let k=await xw(w,X).catch(()=>[]),y;for(let f of k){for(let j of f.roleDefs)if(j.id.endsWith(`:${H}`)||j.name===H||j.id===H){y=j.id;break}if(y)break}if(!y)y=k.find((f)=>f.roleDefs.some((j)=>j.id.endsWith(":admin")))?.roleDefs.find((f)=>f.id.endsWith(":admin"))?.id;if(y){let f=await uE(w,X,y).catch(()=>({staffs:[]})),j=await xE(w,X,f.staffs).catch(()=>[]);if(K||q){let p=j.filter((n)=>{if(K&&n.name!==K&&!n.name.includes(K))return!1;if(q&&(!n.cellphone||!n.cellphone.includes(q)))return!1;return!0});if(p.length===1&&p[0])L=p[0].id;else if(p.length>1)throw Error(`Multiple staff members matched '${K??q}': ${p.map((n)=>`${n.name}(${n.id})`).join(", ")}. Please specify exact staffId.`);else throw Error(`No staff member found matching '${K??q}' under role ${y}. Run 'seal-use corps hose-staffs' to view candidates.`)}else if(!G){let p=j.map((n)=>`${n.name} (${n.cellphone||"no-phone"}, id: ${n.id}, active: ${n.active})`).join(` +Run 'seal-use corps bind-test ${J.id} --confirm' first to establish a verified 1-to-1 association.`);let Q=y1(J.testCorpId);if(Q.environment!=="test")throw Error(`Target enterprise '${Q.name}' (${Q.id}) is marked as '${Q.environment}', NOT 'test'. Aborting sync to protect non-test environments.`);let K=await u1(J),q=await u1(Q),[H,G,W,w,Z,V,X,L]=await Promise.all([M1(K,J.seal.endpoints.approvalStylePreferences).catch(()=>({})),M1(q,Q.seal.endpoints.approvalStylePreferences).catch(()=>({})),_6(K),_6(q),R$(K).catch(()=>[]),R$(q).catch(()=>[]),N9(K,{limit:100}).catch(()=>({articles:[]})),N9(q,{limit:100}).catch(()=>({articles:[]}))]),D=(X.articles||[]).filter((Q0)=>!Q0.isDeleted),F=(L.articles||[]).filter((Q0)=>!Q0.isDeleted),P=new Map(F.map((Q0)=>[Q0.title.trim(),Q0])),T=[],A=[],R=new Set(D.map((Q0)=>Q0.title.trim()));for(let Q0 of D){let R0=Q0.title.trim(),U1=P.get(R0);if(!U1)T.push(Q0);else{let O1=U1.content!==Q0.content,i4=(U1.purpose??"")!==(Q0.purpose??""),f6=U1.enabled!==Q0.enabled,F$=U1.contentType!==Q0.contentType,i6=(U1.status??"")!==(Q0.status??""),P6=JSON.stringify([...U1.scenarios??[]].sort())!==JSON.stringify([...Q0.scenarios??[]].sort()),N$=JSON.stringify([...U1.tags??[]].sort())!==JSON.stringify([...Q0.tags??[]].sort());if(O1||i4||f6||F$||i6||P6||N$)A.push({testId:U1.id,prodDoc:Q0,reasons:[...O1?["content"]:[],...i4?["purpose"]:[],...f6?["enabled"]:[],...F$?["contentType"]:[],...i6?["status"]:[],...P6?["scenarios"]:[],...N$?["tags"]:[]]})}}let x=F.filter((Q0)=>!R.has(Q0.title.trim())),f=[...Z].sort((Q0,R0)=>R0.versionNumber-Q0.versionNumber)[0],j=f?.versionNumber,n=([...V].sort((Q0,R0)=>R0.versionNumber-Q0.versionNumber)[0]?.versionNumber??0)+1,S=Sz0(J.name,j,V),b=g(U.options["version-name"])??g(U.options.versionName)??gz0(J.name,j,S,n),U0={...G,tone:H.tone,language:H.language,detailLevel:H.detailLevel,outputFormat:H.outputFormat,examples:H.examples??[],prohibitedPhrases:H.prohibitedPhrases??[],customInstructions:H.customInstructions,decisionPreferences:H.decisionPreferences,thinkingDepthPreference:H.thinkingDepthPreference};if(O0(U.options["dry-run"])===!0||O0(U.options.dryRun)===!0){B0({dryRun:!0,source:{id:J.id,name:J.name,environment:J.environment,latestPublishedVersion:f?{versionNumber:f.versionNumber,versionName:f.versionName}:null,documentsCount:D.length},target:{id:Q.id,name:Q.name,environment:Q.environment},versionMappingPlan:{sourceProdVersionNumber:j??null,sourceProdVersionName:f?.versionName??null,targetTestExpectedVersionNumber:n,targetTestPublishVersionName:b,iteration:S},preferencesDiff:{decisionPreferences:{before:G.decisionPreferences,after:H.decisionPreferences},thinkingDepthPreference:{before:G.thinkingDepthPreference,after:H.thinkingDepthPreference}},rulesPlan:{sourceDraftRuleCount:W.rules.length,targetExistingDraftRuleCount:w.rules.length,toDeleteCount:w.rules.length,toCreateCount:W.rules.length,rulesToSync:W.rules.map((Q0,R0)=>({index:R0+1,sourceRuleId:Q0.id,sourceRuleCode:Q0.code??R0+1,expectedTargetCode:`rule-${R0+1}`,description:Q0.description,scope:Q0.scope,strictness:Q0.strictness}))},documentsPlan:{sourceDocumentCount:D.length,targetExistingDocumentCount:F.length,toCreateCount:T.length,toCreate:T.map((Q0)=>({title:Q0.title,purpose:Q0.purpose,contentType:Q0.contentType,scenarios:Q0.scenarios})),toUpdateCount:A.length,toUpdate:A.map((Q0)=>({targetDocumentId:Q0.testId,title:Q0.prodDoc.title,reasons:Q0.reasons})),toDeleteCount:x.length,toDelete:x.map((Q0)=>({targetDocumentId:Q0.id,title:Q0.title}))},publishingPlan:{targetCorpId:Q.id,publishVersionName:b,publishTarget:"test"},hosecloudSyncPlan:(()=>{if(J.source.type!=="hose")return{sourceType:J.source.type,skipped:!0,reason:"prod source is not hose; no hosecloud credentials available"};let Q0=(H.integrations??[]).filter((O1)=>O1.type==="hosecloud"),R0=new Set,U1=Q0.filter((O1)=>{let i4=O1.corporationId??J.id;if(R0.has(i4))return!1;return R0.add(i4),!0});return{sourceType:"hose",outboundName:fz0(J.name),targetMode:"assisted",integrationsCount:U1.length,integrations:U1.map((O1)=>({corporationId:O1.corporationId,apiOrigin:O1.apiOrigin,customApiUrl:O1.customApiUrl}))}})(),productionGuarantees:{prodRulesStayDraft:!0,prodVersionPublished:!1}});return}if(!(O0(U.options.yes)===!0||O0(U.options.confirm)===!0))throw s8(`Refusing to overwrite test enterprise '${Q.name}' (${Q.id}) with preferences, ${W.rules.length} draft rules, and ${D.length} knowledge documents from production enterprise '${J.name}' (${J.id}) without --yes. This will replace test draft rules, synchronize knowledge documents, and publish a new version on the test enterprise.`,`seal-use corps sync-test ${J.id} --yes`);await M8(q,U0,Q.seal.endpoints.approvalStylePreferences);let c=[];for(let Q0 of x)await aw(q,Q0.id),c.push({id:Q0.id,title:Q0.title});let r=[];for(let Q0 of A)await tw(q,Q0.testId,{title:Q0.prodDoc.title,purpose:Q0.prodDoc.purpose,content:Q0.prodDoc.content,contentType:Q0.prodDoc.contentType,status:Q0.prodDoc.status,enabled:Q0.prodDoc.enabled,scenarios:Q0.prodDoc.scenarios&&Q0.prodDoc.scenarios.length>0?Q0.prodDoc.scenarios:["audit"],tags:Q0.prodDoc.tags}),r.push({id:Q0.testId,title:Q0.prodDoc.title,reasons:Q0.reasons});let J0=[];for(let Q0 of T){let R0=await rw(q,{title:Q0.title,purpose:Q0.purpose,content:Q0.content,contentType:Q0.contentType,status:Q0.status,enabled:Q0.enabled,scenarios:Q0.scenarios&&Q0.scenarios.length>0?Q0.scenarios:["audit"],tags:Q0.tags});J0.push({id:R0.id,title:R0.title})}for(let Q0 of w.rules)await BU(q,Q0.id);let w0=[];for(let Q0 of W.rules){let R0=await A2(q,{description:Q0.description,scope:Q0.scope,strictness:Q0.strictness});w0.push(R0)}await ow(q).catch(()=>{return});let A0=await T2(q,b),j0=A0.version.rules??[],q1=W.rules.map((Q0,R0)=>{let U1=w0[R0],O1=j0[R0];return{index:R0+1,sourceRuleId:Q0.id,sourceRuleCode:Q0.code??R0+1,targetRuleId:U1?.id??"",targetRuleCode:O1?.code??`rule-${R0+1}`,description:Q0.description,scope:Q0.scope,strictness:Q0.strictness}}),x0={sourceProdVersionNumber:j??null,sourceProdVersionName:f?.versionName??null,targetTestVersionNumber:A0.version.versionNumber,targetTestVersionName:A0.version.versionName??null},I1;try{I1=jz0({syncedAt:new Date().toISOString(),source:{id:J.id,name:J.name,latestPublishedVersionNumber:j??null,latestPublishedVersionName:f?.versionName??null},target:{id:Q.id,name:Q.name,publishedVersionNumber:A0.version.versionNumber,publishedVersionName:A0.version.versionName,rulesCount:A0.rulesCount},versionMapping:x0,ruleMapping:q1})}catch{}let M0=await CG1(J,Q,K,q).catch((Q0)=>({skipped:!0,reason:`error: ${Q0?.message??String(Q0)}`}));B0({success:!0,syncedAt:new Date().toISOString(),source:{id:J.id,name:J.name,environment:J.environment,latestPublishedVersion:f?{versionNumber:f.versionNumber,versionName:f.versionName}:null,draftRulesCount:W.rules.length,documentsCount:D.length},target:{id:Q.id,name:Q.name,environment:Q.environment,deletedDraftRulesCount:w.rules.length,createdDraftRulesCount:w0.length,publishedVersion:{id:A0.version.id,versionNumber:A0.version.versionNumber,versionName:A0.version.versionName,rulesCount:A0.rulesCount}},documents:{sourceCount:D.length,targetExistingCount:F.length,createdCount:J0.length,created:J0,updatedCount:r.length,updated:r,deletedCount:c.length,deleted:c},versionMapping:x0,ruleMapping:q1,...I1?{mappingSavedTo:I1}:{},hosecloudSync:M0,productionGuarantees:{prodRulesStayDraft:!0,prodVersionPublished:!1}});return}if($==="switch"){let Y=I;if(!Y)throw Error("Usage: seal-use corps switch ");let J=O4();if(!J.stateful)throw Error("Cannot switch the default enterprise while stateless mode is enabled. Use `seal-use config mode stateful` first.");let Q=y1(Y);QI({...J,stateful:!0,defaultCorpId:Q.id}),B0({current:!0,id:Q.id,name:Q.name});return}if($==="probe-hose"){await _G1(U$(U.json));return}if($==="hose-staffs"){await SG1(U$(U.json));return}if($==="add-hose"){await gG1(U$(U.json));return}if($==="add-seal"){await yG1(U$(U.json));return}if($==="add-link"){let Y=I??g(U.options.link)??g(U.options.url);if(!Y)throw Error("Usage: seal-use corps add-link [--name ] [--overwrite]");await hG1(Y,g(U.options.name),O0(U.options.overwrite)===!0);return}throw Error(`Unknown corps command: ${$??""}. Run 'seal-use help' for available commands.`)}function fz0($){return[...$].slice(0,6).join("")+"(Seal测)"}async function CG1($,I,U,Y){if($.source.type!=="hose")return{skipped:!0,reason:"prod source is not hose; no hosecloud credentials available"};let J=($.source.appKey??$.source.key)?.trim(),Q=($.source.appSecurity??$.source.password)?.trim();if(!J||!Q)return{skipped:!0,reason:"prod hose source missing appKey/appSecurity (or key/password)"};let[K,q]=await Promise.all([M1(U,$.seal.endpoints.approvalStylePreferences).catch(()=>({})),M1(Y,I.seal.endpoints.approvalStylePreferences).catch(()=>({}))]),H=(K.integrations??[]).filter((P)=>P.type==="hosecloud");if(H.length===0)return{skipped:!0,reason:"prod Seal enterprise has no hosecloud integrations configured"};let G=new Set,W=[];for(let P of H){let T=P.corporationId??$.id;if(!G.has(T))G.add(T),W.push(P)}let w=q.integrations??[],Z=new Map(w.filter((P)=>P.type==="hosecloud").map((P)=>[P.corporationId,P])),V=fz0($.name),X=[],L=W.map((P)=>{let T=Z.get(P.corporationId),A=T?.signKey??jG1(6).toString("hex");return X.push({signKey:A,outboundName:V,corporationId:P.corporationId,action:T?"updated":"created"}),{type:"hosecloud",signKey:A,outboundName:V,mode:"assisted",apiKey:J,apiSecret:Q,apiOrigin:P.apiOrigin,...P.customApiUrl?{customApiUrl:P.customApiUrl}:{},corporationId:P.corporationId}}),D=w.filter((P)=>P.type!=="hosecloud"),F={...q,integrations:[...D,...L]};return await M8(Y,F,I.seal.endpoints.approvalStylePreferences),{skipped:!1,synced:X}}async function _G1($){let I=A7($,"appKey"),U=A7($,"appSecurity"),Y=m1($,"domain"),J=await PU(I,U,Y),Q=await xw(J.domain,J.openapiToken).catch(()=>[]),K=Q.reduce((q,H)=>q+H.roleDefs.length,0);B0({domain:J.domain,corpId:J.corpId,name:J.corpName??J.corpId,roleCount:K,roleGroups:Q.map((q)=>({id:q.id,name:q.name,roleDefs:q.roleDefs.map((H)=>({id:H.id,name:H.name,sourceType:H.sourceType}))}))})}async function SG1($){let I=A7($,"appKey"),U=A7($,"appSecurity"),Y=m1($,"domain"),J=m1($,"role")??m1($,"roleDefId")??"admin",Q=await PU(I,U,Y),K=await xw(Q.domain,Q.openapiToken),q,H;for(let w of K){for(let Z of w.roleDefs)if(Z.id===J||Z.id===`${Q.corpId}:${J}`){q=Z.id,H=Z.name;break}if(q)break}if(!q&&(J==="admin"||J==="主管理员"))for(let w of K){for(let Z of w.roleDefs)if(Z.id.endsWith(":admin")||Z.name==="主管理员"){q=Z.id,H=Z.name;break}if(q)break}if(!q)for(let w of K){for(let Z of w.roleDefs)if(Z.name.toLowerCase().includes(J.toLowerCase())){q=Z.id,H=Z.name;break}if(q)break}if(!q)throw Error(`Role not found matching query: '${J}'. Run 'seal-use corps probe-hose' to view all available roles.`);let G=await xE(Q.domain,Q.openapiToken,q),W=await fE(Q.domain,Q.openapiToken,G.staffs);B0({domain:Q.domain,corpId:Q.corpId,corpName:Q.corpName??Q.corpId,roleId:q,roleName:H,count:W.length,staffs:W.map((w)=>({id:w.id,name:w.name,cellphone:w.cellphone,active:w.active,authState:w.authState,userId:w.userId,email:w.email}))})}async function gG1($){let I=m1($,"name"),U=A7($,"appKey"),Y=A7($,"appSecurity"),J=m1($,"domain"),Q=m1($,"staffId")??m1($,"proxyStaffBizId"),K=m1($,"staffName"),q=m1($,"staffPhone"),H=m1($,"role")??"admin",G=$.force===!0,W=G||$.verify===!1?!1:!0,w=J,Z=m1($,"corpId")??m1($,"corporationId"),V=I,X;if(!w||!Z||!Q){let x=await PU(U,Y,J);w=x.domain,Z=Z??x.corpId,V=V??x.corpName,X=x.openapiToken}let L=Q;if(!L&&X&&w){let x=await xw(w,X).catch(()=>[]),y;for(let f of x){for(let j of f.roleDefs)if(j.id.endsWith(`:${H}`)||j.name===H||j.id===H){y=j.id;break}if(y)break}if(!y)y=x.find((f)=>f.roleDefs.some((j)=>j.id.endsWith(":admin")))?.roleDefs.find((f)=>f.id.endsWith(":admin"))?.id;if(y){let f=await xE(w,X,y).catch(()=>({staffs:[]})),j=await fE(w,X,f.staffs).catch(()=>[]);if(K||q){let p=j.filter((n)=>{if(K&&n.name!==K&&!n.name.includes(K))return!1;if(q&&(!n.cellphone||!n.cellphone.includes(q)))return!1;return!0});if(p.length===1&&p[0])L=p[0].id;else if(p.length>1)throw Error(`Multiple staff members matched '${K??q}': ${p.map((n)=>`${n.name}(${n.id})`).join(", ")}. Please specify exact staffId.`);else throw Error(`No staff member found matching '${K??q}' under role ${y}. Run 'seal-use corps hose-staffs' to view candidates.`)}else if(!G){let p=j.map((n)=>`${n.name} (${n.cellphone||"no-phone"}, id: ${n.id}, active: ${n.active})`).join(` - `);throw Error(`Missing required parameter: staffId. Found ${j.length} candidate administrators: - ${p} -Please specify 'staffId', 'staffName', or 'staffPhone' to explicitly select an account (or pass force:true to bypass).`)}}}if(!L)if(!W&&Q)L=Q;else throw Error("Missing required parameter: staffId (or proxyStaffBizId). Run 'seal-use corps hose-staffs' to discover available administrators.");let D=m1($,"id")??Z,F=V??Z,P=m1($,"sealUrl")??`https://${Z.toLowerCase()}.sealai.cc`,E={id:D,name:F,environment:"production",seal:{url:P,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"hose",domain:w,appKey:U,appSecurity:Y,corpId:Z,staffId:L},auth:{refreshTtl:300}};if(W)Sw(D),await _J(E);let A=Fh();hz0(A,{recursive:!0,mode:448});let R=xz0(A,`${ju(D)}.json`);if(yz0(R)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${R}. Pass "overwrite": true to replace it.`);uz0(R,`${JSON.stringify(E,null,2)} -`,{mode:384}),B0({id:D,name:F,corpId:Z,domain:w,staffId:L,verified:W,path:R})}async function gG1($){let I=A7($,"token"),U=(m1($,"sealUrl")??m1($,"url")??"").replace(/\/+$/,"");if(!U)throw Error("Missing required JSON field: sealUrl");let Y=aZ0($,"expiresIn")??2592000,J=$.force===!0||$.verify===!1?!1:!0,Q=bz0($),K=J?await hG1(U,I,X2(Q)):void 0;iz0($,{token:I,sealUrl:U,expiresIn:Y,verify:J,remote:K,custom:Q})}function bz0($){return{headers:Xh.parse($.headers),cookies:Lh.parse($.cookies)}}async function yG1($,I,U){let Y=await gw($),J=L2(Y.sealUrl,Y.token),Q=await v$(J),K={user:Q.user,tenant:Q.tenant};yw(Y.corpId,K.tenant),iz0({id:Y.corpId,corpId:Y.corpId,name:I,provider:"hosecloud",overwrite:U},{token:Y.token,sealUrl:Y.sealUrl,expiresIn:Y.expiresIn,verify:!0,remote:K})}function iz0($,I){let{token:U,sealUrl:Y,expiresIn:J,verify:Q,remote:K}=I,q=I.custom??bz0($),H=K?.user,G=K?.tenant,W=m1($,"tenantSlug")??P7(G?.tenantSlug),w=m1($,"tenantId")??P7(G?.id),Z=m1($,"tenantName")??P7(G?.name),V=m1($,"id")??W??w;if(!V)throw Error("Missing required JSON field: id. Seal whoami did not return tenantSlug or tenantId.");let X=m1($,"staffId")??P7(H?.providerUserId)??P7(H?.id)??"seal",L=m1($,"provider")??P7(H?.provider)??P7(G?.providerConfig?.provider),D=m1($,"corpId")??W??w??V,F={id:V,name:m1($,"name")??Z??V,environment:"production",seal:{url:Y,tenantSlug:W,headers:q.headers,cookies:q.cookies,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"seal",token:U,sealUrl:Y,expiresIn:J,staffId:X,corpId:D,tenantId:w,tenantSlug:W,tenantName:Z,providerUserId:P7(H?.providerUserId),provider:L},auth:{refreshTtl:300}},P=Fh();hz0(P,{recursive:!0,mode:448});let E=xz0(P,`${ju(V)}.json`);if(yz0(E)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${E}. Pass "overwrite": true to replace it.`);uz0(E,`${JSON.stringify(F,null,2)} -`,{mode:384}),B0({id:V,name:F.name,tenantId:w,tenantSlug:W,verified:Q,path:E})}async function hG1($,I,U={}){let Y=await uG1(`${$}/api/v1/auth/me`,{...U,authorization:`Bearer ${I}`}),J=hD(Y.data);return{user:hD(J.user??Y.user),tenant:hD(J.tenant??Y.tenant)}}async function uG1($,I={}){let U=await fetch($,{headers:I}),Y=await U.text();if(!U.ok)throw Error(`${U.status} ${Y}`);let J=JSON.parse(Y);return hD(J)}function hD($){return $&&typeof $==="object"&&!Array.isArray($)?$:{}}function P7($){return typeof $==="string"&&$?$:void 0}async function nz0($,I){let U=await gw($),Y=L2(U.sealUrl,U.token),J=await v$(Y);yw(U.corpId,J.tenant);let Q=await PU(Y,{note:I});B0({tenant:{id:J.tenant.id,name:J.tenant.name,tenantSlug:J.tenant.tenantSlug,corpId:U.corpId},user:{id:J.user.id,name:J.user.name,providerUserId:J.user.providerUserId,isAdmin:J.user.isAdmin},delegation:Q,expiresIn:U.expiresIn})}async function pz0($,I,U,Y,J){if($==="list"){await F0("seal_delegation_list",U,Y,{},V0(J.options));return}if($==="create"){let Q=g(J.options.note)??(I?[I,...J.command.slice(2)].join(" "):void 0);await F0("seal_delegation_create",U,Y,{note:Q},V0(J.options));return}if($==="revoke"){let Q=I??g(J.options.tokenId);if(!Q)throw Error("Usage: seal-use delegation revoke ");await F0("seal_delegation_revoke",U,Y,{tokenId:Q},V0(J.options));return}throw Error(`Unknown delegation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as xG1}from"node:fs";async function cz0($,I,U,Y,J,Q){if(!$||$==="help")throw Error(`Usage: seal-use deploy [options] +Please specify 'staffId', 'staffName', or 'staffPhone' to explicitly select an account (or pass force:true to bypass).`)}}}if(!L)if(!W&&Q)L=Q;else throw Error("Missing required parameter: staffId (or proxyStaffBizId). Run 'seal-use corps hose-staffs' to discover available administrators.");let D=m1($,"id")??Z,F=V??Z,P=m1($,"sealUrl")??`https://${Z.toLowerCase()}.sealai.cc`,T={id:D,name:F,environment:"production",seal:{url:P,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"hose",domain:w,appKey:U,appSecurity:Y,corpId:Z,staffId:L},auth:{refreshTtl:300}};if(W)Sw(D),await gJ(T);let A=Mh();hz0(A,{recursive:!0,mode:448});let R=kz0(A,`${_u(D)}.json`);if(yz0(R)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${R}. Pass "overwrite": true to replace it.`);uz0(R,`${JSON.stringify(T,null,2)} +`,{mode:384}),B0({id:D,name:F,corpId:Z,domain:w,staffId:L,verified:W,path:R})}async function yG1($){let I=A7($,"token"),U=(m1($,"sealUrl")??m1($,"url")??"").replace(/\/+$/,"");if(!U)throw Error("Missing required JSON field: sealUrl");let Y=aZ0($,"expiresIn")??2592000,J=$.force===!0||$.verify===!1?!1:!0,Q=iz0($),K=J?await uG1(U,I,X2(Q)):void 0;bz0($,{token:I,sealUrl:U,expiresIn:Y,verify:J,remote:K,custom:Q})}function iz0($){return{headers:Dh.parse($.headers),cookies:Oh.parse($.cookies)}}async function hG1($,I,U){let Y=await gw($),J=L2(Y.sealUrl,Y.token),Q=await G$(J),K={user:Q.user,tenant:Q.tenant};yw(Y.corpId,K.tenant),bz0({id:Y.corpId,corpId:Y.corpId,name:I,provider:"hosecloud",overwrite:U},{token:Y.token,sealUrl:Y.sealUrl,expiresIn:Y.expiresIn,verify:!0,remote:K})}function bz0($,I){let{token:U,sealUrl:Y,expiresIn:J,verify:Q,remote:K}=I,q=I.custom??iz0($),H=K?.user,G=K?.tenant,W=m1($,"tenantSlug")??P7(G?.tenantSlug),w=m1($,"tenantId")??P7(G?.id),Z=m1($,"tenantName")??P7(G?.name),V=m1($,"id")??W??w;if(!V)throw Error("Missing required JSON field: id. Seal whoami did not return tenantSlug or tenantId.");let X=m1($,"staffId")??P7(H?.providerUserId)??P7(H?.id)??"seal",L=m1($,"provider")??P7(H?.provider)??P7(G?.providerConfig?.provider),D=m1($,"corpId")??W??w??V,F={id:V,name:m1($,"name")??Z??V,environment:"production",seal:{url:Y,tenantSlug:W,headers:q.headers,cookies:q.cookies,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"seal",token:U,sealUrl:Y,expiresIn:J,staffId:X,corpId:D,tenantId:w,tenantSlug:W,tenantName:Z,providerUserId:P7(H?.providerUserId),provider:L},auth:{refreshTtl:300}},P=Mh();hz0(P,{recursive:!0,mode:448});let T=kz0(P,`${_u(V)}.json`);if(yz0(T)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${T}. Pass "overwrite": true to replace it.`);uz0(T,`${JSON.stringify(F,null,2)} +`,{mode:384}),B0({id:V,name:F.name,tenantId:w,tenantSlug:W,verified:Q,path:T})}async function uG1($,I,U={}){let Y=await kG1(`${$}/api/v1/auth/me`,{...U,authorization:`Bearer ${I}`}),J=uD(Y.data);return{user:uD(J.user??Y.user),tenant:uD(J.tenant??Y.tenant)}}async function kG1($,I={}){let U=await fetch($,{headers:I}),Y=await U.text();if(!U.ok)throw Error(`${U.status} ${Y}`);let J=JSON.parse(Y);return uD(J)}function uD($){return $&&typeof $==="object"&&!Array.isArray($)?$:{}}function P7($){return typeof $==="string"&&$?$:void 0}async function nz0($,I){let U=await gw($),Y=L2(U.sealUrl,U.token),J=await G$(Y);yw(U.corpId,J.tenant);let Q=await EU(Y,{note:I});B0({tenant:{id:J.tenant.id,name:J.tenant.name,tenantSlug:J.tenant.tenantSlug,corpId:U.corpId},user:{id:J.user.id,name:J.user.name,providerUserId:J.user.providerUserId,isAdmin:J.user.isAdmin},delegation:Q,expiresIn:U.expiresIn})}async function pz0($,I,U,Y,J){if($==="list"){await F0("seal_delegation_list",U,Y,{},V0(J.options));return}if($==="create"){let Q=g(J.options.note)??(I?[I,...J.command.slice(2)].join(" "):void 0);await F0("seal_delegation_create",U,Y,{note:Q},V0(J.options));return}if($==="revoke"){let Q=I??g(J.options.tokenId);if(!Q)throw Error("Usage: seal-use delegation revoke ");await F0("seal_delegation_revoke",U,Y,{tokenId:Q},V0(J.options));return}throw Error(`Unknown delegation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as xG1}from"node:fs";async function cz0($,I,U,Y,J,Q){if(!$||$==="help")throw Error(`Usage: seal-use deploy [options] `+`支持的审批系统与发布目标: `+` • hosecloud (合思费控): seal-use deploy hosecloud --corp @@ -345,13 +349,13 @@ Please specify 'staffId', 'staffName', or 'staffPhone' to explicitly select an a `+`\uD83D\uDC49 请先运行配置命令:seal-use deploy hosecloud configure --json '{...}' --corp ${J.id}`);let V=Z[0];if(V&&Z.length===1&&W){let X=V.signKey;console.error(`ℹ️ [auto] 检测到企业仅有 1 个合思配置,已自动选择 (signKey: ${X})`),await F0("seal_deploy_hosecloud_sync",Y,J,{signKey:X},V0(Q.options));return}console.error(`Usage: seal-use deploy hosecloud sync [--corp ${J.id}] `),console.error("ℹ️ 当前企业发现以下可用的合思配置卡片:");for(let X of Z){let L=X.outboundName??"SealAI 审批",D=X.signKey,F=X.apiOrigin??"production";console.error(` • "${L}" (signKey: ${D}, 环境: ${F})`),console.error(` \uD83D\uDC49 同步命令: seal-use deploy hosecloud sync ${D} --corp ${J.id} `)}if(Z.length===1)console.error(`\uD83D\uDCA1 提示:若希望单配置自动同步,可附加 --auto 参数:seal-use deploy hosecloud sync --auto --corp ${J.id} -`);throw new d$("缺少必需参数 。请从上述候选列表中选择并指定 signKey 执行同步。",2,Z.length===1?`seal-use deploy hosecloud sync ${Z[0].signKey} --corp ${J.id}`:void 0)}await F0("seal_deploy_hosecloud_sync",Y,J,{signKey:G},V0(Q.options));return}throw Error(`Unknown deploy hosecloud action: ${q??""}. Available: requirements, list, get, status, configure, sync.`)}import{createServer as nG1}from"node:http";import{URL as fG1}from"node:url";var dz0={openapi:"3.1.0",info:{title:"seal-use Wrapped API",version:"0.10.17",description:`Planned HTTP contract for the seal-use wrapped backend API. +`);throw new d$("缺少必需参数 。请从上述候选列表中选择并指定 signKey 执行同步。",2,Z.length===1?`seal-use deploy hosecloud sync ${Z[0].signKey} --corp ${J.id}`:void 0)}await F0("seal_deploy_hosecloud_sync",Y,J,{signKey:G},V0(Q.options));return}throw Error(`Unknown deploy hosecloud action: ${q??""}. Available: requirements, list, get, status, configure, sync.`)}import{createServer as pG1}from"node:http";import{URL as iG1}from"node:url";var dz0={openapi:"3.1.0",info:{title:"seal-use Wrapped API",version:"0.10.17",description:`Planned HTTP contract for the seal-use wrapped backend API. These endpoints describe the intended stable API for frontend developers and agents once the HTTP adapter is implemented. They are not the raw downstream Seal endpoints. seal-use is responsible for enterprise selection, source authentication, response compaction, and diagnostics-friendly fields. -`},servers:[{url:"http://localhost:8787",description:"Reserved for a future local HTTP adapter; the current service uses MCP stdio."}],security:[{localSession:[]}],tags:[{name:"Corps",description:"Local enterprise configuration selection."},{name:"Source",description:"Source-derived Seal enterprise configuration."},{name:"Auth",description:"Wrapped authentication diagnostics and current identity."},{name:"Approval Runs",description:"Wrapped approval run history, summaries, document URLs, and trace bridge helpers."},{name:"Approval Knowledge",description:"Wrapped approval rules, documents, preferences, and search."},{name:"Simulation",description:"Wrapped simulation batch record access."}],paths:{"/v1/corps":{get:{tags:["Corps"],operationId:"listCorps",summary:"List configured enterprises",responses:{"200":{description:"Configured enterprises.",content:{"application/json":{schema:{type:"array",items:{type:"object",required:["id","name","sourceType","current"],properties:{id:{type:"string"},name:{type:"string"},sourceType:{type:"string",enum:["hose","direct","seal"]},current:{type:"boolean"}}}}}}}}}},"/v1/corps/current":{get:{tags:["Corps"],operationId:"getCurrentCorp",summary:"Get current enterprise",description:"Returns the configured default enterprise in stateful mode. Stateless mode has no current enterprise and requires an explicit corpId for enterprise operations.",responses:{"200":{description:"Current enterprise.",content:{"application/json":{schema:{type:"object",required:["id","name","sourceType","current"],properties:{id:{type:"string"},name:{type:"string"},sourceType:{type:"string",enum:["hose","direct","seal"]},current:{type:"boolean"}}}}}}}}},"/v1/corps/current/switch":{post:{tags:["Corps"],operationId:"switchCurrentCorp",summary:"Switch current enterprise",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["corpId"],properties:{corpId:{type:"string"}}}}}},responses:{"200":{description:"Switched enterprise.",content:{"application/json":{schema:{type:"object",required:["current","id","name"],properties:{current:{type:"boolean"},id:{type:"string"},name:{type:"string"}}}}}},"404":{description:"Requested resource was not found.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/source/config":{get:{tags:["Source"],operationId:"getSourceConfig",summary:"Resolve source-derived Seal enterprise config",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Redacted Seal enterprise config.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,description:"Redacted Seal enterprise config resolved from the configured source."}}}},"401":{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/auth/diagnose":{get:{tags:["Auth"],operationId:"diagnoseAuth",summary:"Diagnose wrapped source-to-Seal authentication",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Authentication stage diagnosis.",content:{"application/json":{schema:{type:"object",required:["stages"],properties:{stages:{type:"array",items:{$ref:"#/components/schemas/AuthStage"}}}}}}}}}},"/v1/whoami":{get:{tags:["Auth"],operationId:"whoami",summary:"Get current wrapped Seal identity",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Current Seal user and tenant.",content:{"application/json":{schema:{type:"object",required:["user","tenant"],properties:{user:{$ref:"#/components/schemas/SealUser"},tenant:{$ref:"#/components/schemas/SealTenant"}}}}}},"401":{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/session":{get:{tags:["Auth"],operationId:"getSession",summary:"Get current wrapped Seal session metadata",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Current session metadata.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["user","session"],properties:{user:{$ref:"#/components/schemas/SealUser"},session:{type:"object",additionalProperties:!0}}}}}},"401":{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/approval/context":{get:{tags:["Approval Knowledge"],operationId:"getApprovalContext",summary:"Get rules, documents, and style preferences together",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"documentLimit",in:"query",schema:{type:"integer",minimum:1}},{name:"latestRuleVersion",in:"query",schema:{type:"boolean"}},{name:"ruleVersionNumber",in:"query",schema:{type:"integer"}}],responses:{"200":{description:"Approval context.",content:{"application/json":{schema:{type:"object",required:["rules","documents","stylePreferences"],properties:{rules:{},documents:{},stylePreferences:{}}}}}}}}},"/v1/approval/search":{post:{tags:["Approval Knowledge"],operationId:"searchApprovalKnowledge",summary:"Search approval rules, documents, and preferences",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["keywords"],properties:{keywords:{type:"array",minItems:1,items:{type:"string"}},matchMode:{type:"string",enum:["any","all"]},areas:{type:"array",items:{type:"string",enum:["rules","documents","preferences"]}},maxResults:{type:"integer"}}}}}},responses:{"200":{description:"Search results with line context.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval/rules":{get:{tags:["Approval Knowledge"],operationId:"listApprovalRules",summary:"List current draft approval rules",responses:{"200":{description:"Draft rules.",content:{"application/json":{schema:{type:"object",required:["rules"],properties:{rules:{type:"array",items:{$ref:"#/components/schemas/ApprovalRule"}},hasPendingDeletes:{type:"boolean"}}}}}}}},post:{tags:["Approval Knowledge"],operationId:"createApprovalRule",summary:"Create draft approval rule",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["description","scope","strictness"],properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}}}}},responses:{"200":{description:"Created rule.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","description","scope","strictness"],properties:{id:{type:"string"},description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]},status:{type:"string"}}}}}}}}},"/v1/approval/rules/{ruleId}":{parameters:[{name:"ruleId",in:"path",required:!0,schema:{type:"string"},description:"Approval rule ID."}],patch:{tags:["Approval Knowledge"],operationId:"updateApprovalRule",summary:"Update draft approval rule",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!1,properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}}}}},responses:{"200":{description:"Updated rule.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","description","scope","strictness"],properties:{id:{type:"string"},description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]},status:{type:"string"}}}}}}}},delete:{tags:["Approval Knowledge"],operationId:"deleteApprovalRule",summary:"Delete draft approval rule",responses:{"200":{description:"Deleted."}}}},"/v1/approval/rule-versions":{get:{tags:["Approval Knowledge"],operationId:"listApprovalRuleVersions",summary:"List published approval rule versions",responses:{"200":{description:"Published rule versions.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0,required:["id","versionNumber","versionName","rules"],properties:{id:{type:"string"},versionNumber:{type:"integer"},versionName:{type:"string"},publishedByName:{type:"string"},rules:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}}},"/v1/approval/rule-versions/{versionId}":{parameters:[{name:"versionId",in:"path",required:!0,schema:{type:"string"},description:"Published rule version ID."}],get:{tags:["Approval Knowledge"],operationId:"getApprovalRuleVersion",summary:"Get published approval rule version",responses:{"200":{description:"Rule version.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","versionNumber","versionName","rules"],properties:{id:{type:"string"},versionNumber:{type:"integer"},versionName:{type:"string"},publishedByName:{type:"string"},rules:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}},"/v1/approval/rules/by-version":{get:{tags:["Approval Knowledge"],operationId:"getApprovalRuleByVersion",summary:"Get one wrapped rule from a published version",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"versionNumber",in:"query",schema:{type:"integer"}},{name:"versionId",in:"query",schema:{type:"string"}},{name:"latest",in:"query",schema:{type:"boolean"}},{name:"code",in:"query",schema:{type:"string"},description:"Display rule code such as '#0038'."},{name:"runtimeId",in:"query",schema:{type:"string"},description:"Runtime rule ID such as rule-205."},{name:"recordId",in:"query",schema:{type:"string"},description:"Infer versionNumber from an approval run."}],responses:{"200":{description:"One rule from a published version.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval/rule-versions/publish":{post:{tags:["Approval Knowledge"],operationId:"publishApprovalRuleVersion",summary:"Publish current draft rules",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["versionName"],properties:{versionName:{type:"string"}}}}}},responses:{"200":{description:"Published version.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval/documents":{get:{tags:["Approval Knowledge"],operationId:"listApprovalDocuments",summary:"List approval knowledge documents",parameters:[{name:"offset",in:"query",schema:{type:"integer",minimum:0,default:0},description:"Zero-based pagination offset."},{name:"limit",in:"query",schema:{type:"integer",minimum:1,default:20}},{name:"scenario",in:"query",schema:{type:"array",items:{type:"string"}},style:"form",explode:!0}],responses:{"200":{description:"Documents.",content:{"application/json":{schema:{type:"object",required:["articles"],properties:{articles:{type:"array",items:{$ref:"#/components/schemas/ApprovalDocument"}},total:{type:"integer"}}}}}}}},post:{tags:["Approval Knowledge"],operationId:"createApprovalDocument",summary:"Create approval knowledge document",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["title","purpose","content"],properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}},responses:{"200":{description:"Created document.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}}}}},"/v1/approval/documents/{documentId}":{parameters:[{name:"documentId",in:"path",required:!0,schema:{type:"string"},description:"Approval knowledge document ID."}],get:{tags:["Approval Knowledge"],operationId:"getApprovalDocument",summary:"Get approval knowledge document",responses:{"200":{description:"Document.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}}}},patch:{tags:["Approval Knowledge"],operationId:"updateApprovalDocument",summary:"Update approval knowledge document",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}},responses:{"200":{description:"Updated document.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}}}},delete:{tags:["Approval Knowledge"],operationId:"deleteApprovalDocument",summary:"Delete approval knowledge document",responses:{"200":{description:"Deleted document confirmation."}}}},"/v1/approval/style-preferences":{get:{tags:["Approval Knowledge"],operationId:"getApprovalStylePreferences",summary:"Get approval style preferences",responses:{"200":{description:"Style preferences.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}}}}}}},patch:{tags:["Approval Knowledge"],operationId:"updateApprovalStylePreferences",summary:"Update approval style preferences",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}}}}},responses:{"200":{description:"Updated style preferences.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}}}}}}}},"/v1/approval-runs":{get:{tags:["Approval Runs"],operationId:"searchApprovalRuns",summary:"Search wrapped approval run history",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"offset",in:"query",schema:{type:"integer",minimum:0,default:0},description:"Zero-based pagination offset."},{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:100,default:50},description:"Maximum number of records to return."},{name:"startDate",in:"query",schema:{type:"string"},description:"Creation-time lower bound in milliseconds."},{name:"endDate",in:"query",schema:{type:"string"},description:"Creation-time upper bound in milliseconds."},{name:"status",in:"query",schema:{type:"string"}},{name:"taskMode",in:"query",schema:{type:"string"}},{name:"manualApprovalStatus",in:"query",schema:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},{name:"sourceDocumentSN",in:"query",schema:{type:"string"},description:"Hose/易快报单号 or other external source document number."},{name:"sourceDocumentId",in:"query",schema:{type:"string"}},{name:"humanResult",in:"query",schema:{type:"string"},description:"Local human result contains filter, such as 驳回 or 通过."},{name:"query",in:"query",schema:{type:"string"},description:"Search across record ID, source document fields, document ID, and trace fields."},{name:"includeBridge",in:"query",schema:{type:"boolean",default:!1},description:"Include full Langfuse bridge rows."}],responses:{"200":{description:"Compact wrapped approval run list.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["records"],properties:{records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},total:{type:"integer"},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}},"/v1/approval-runs/summary":{get:{tags:["Approval Runs"],operationId:"summarizeApprovalRuns",summary:"Summarize approval runs by local date",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"date",in:"query",schema:{type:"string",format:"date"}},{name:"timezone",in:"query",schema:{type:"string",default:"Asia/Shanghai"}},{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:100,default:50},description:"Maximum number of records to return."},{name:"query",in:"query",schema:{type:"string"}},{name:"humanResult",in:"query",schema:{type:"string"}}],responses:{"200":{description:"Date summary with counts and compact records.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{date:{type:"string"},timezone:{type:"string"},matched:{type:"integer"},statusCounts:{type:"object",additionalProperties:{type:"integer"}},taskModeCounts:{type:"object",additionalProperties:{type:"integer"}}}}}}}}}},"/v1/approval-runs/pick":{get:{tags:["Approval Runs"],operationId:"pickApprovalRuns",summary:"Pick likely approval runs by document number or trace key",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"query",in:"query",schema:{type:"string"}},{name:"sn",in:"query",schema:{type:"string"},description:"Source document number for direct lookup."},{name:"batch",in:"query",schema:{type:"string"},description:"Optional simulation batch ID."},{name:"latest",in:"query",schema:{type:"boolean"}},{name:"fields",in:"query",schema:{type:"string"},description:"Comma-separated response fields."},{name:"limit",in:"query",schema:{type:"integer",default:20}},{name:"maxScan",in:"query",schema:{type:"integer",default:1000}}],responses:{"200":{description:"Picked records and suggested next actions.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/bridge":{get:{tags:["Approval Runs"],operationId:"getApprovalRunLangfuseBridge",summary:"Resolve approval runs to Langfuse trace or session hints",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"recordId",in:"query",schema:{type:"string"}},{name:"sourceDocumentSN",in:"query",schema:{type:"string"}},{name:"sourceDocumentId",in:"query",schema:{type:"string"}},{name:"simulationBatchId",in:"query",schema:{type:"string"}}],responses:{"200":{description:"Trace/session bridge hints.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{count:{type:"integer"},records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}},"/v1/approval-runs/url":{get:{tags:["Approval Runs"],operationId:"getApprovalRunUrl",summary:"Get enterprise assist URL and optional source document URL",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"recordId",in:"query",schema:{type:"string"}},{name:"sourceDocumentSN",in:"query",schema:{type:"string"}},{name:"sourceDocumentId",in:"query",schema:{type:"string"}}],responses:{"200":{description:"Enterprise and document URLs.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{enterpriseAssistUrl:{type:"string"},enterpriseUrl:{type:"string"},documentUrl:{type:"string"},recordId:{type:"string"},sourceDocumentSN:{type:"string"}}}}}}}}},"/v1/approval-runs/{recordId}":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRun",summary:"Get wrapped approval run detail",parameters:[{name:"summary",in:"query",schema:{type:"boolean"}},{name:"fields",in:"query",schema:{type:"string"},description:"Comma-separated field paths such as metadata,document.fields,result.summary."}],responses:{"200":{description:"Approval run detail plus stable aliases and human result.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/cited-rules":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunCitedRules",summary:"Extract rules cited or matched by the AI result",responses:{"200":{description:"Cited rule summaries.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/document-summary":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunDocumentSummary",summary:"Get key document fields and compact AI/manual result",responses:{"200":{description:"Document summary.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/attachments":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunAttachments",summary:"List compact attachment metadata",parameters:[{name:"summary",in:"query",schema:{type:"boolean"}}],responses:{"200":{description:"Attachment metadata.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/result":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunResult",summary:"Get AI result, optionally as a compact summary",parameters:[{name:"summary",in:"query",schema:{type:"boolean"}}],responses:{"200":{description:"AI result or summary.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/create-batch":{post:{tags:["Simulation"],operationId:"createSimulationBatch",summary:"Create a simulation batch",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}},responses:{"200":{description:"Created batch id.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/create-material-pack-batch":{post:{tags:["Simulation"],operationId:"createMaterialPackBatch",summary:"Create a material pack simulation batch",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}},responses:{"200":{description:"Created batch id.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/batches":{get:{tags:["Simulation"],operationId:"listSimulationBatches",summary:"List simulation batches",parameters:[{name:"limit",in:"query",schema:{type:"integer"},description:"Max batches to return."}],responses:{"200":{description:"Simulation batches.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}},"/v1/simulation/batch/{batchId}":{parameters:[{name:"batchId",in:"path",required:!0,schema:{type:"string"},description:"Simulation batch ID."}],get:{tags:["Simulation"],operationId:"getSimulationBatch",summary:"Get a simulation batch detail including echoed create params",responses:{"200":{description:"Simulation batch detail.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/batches/{batchId}/records":{parameters:[{name:"batchId",in:"path",required:!0,schema:{type:"string"},description:"Simulation batch ID."}],get:{tags:["Simulation"],operationId:"getSimulationBatchRecords",summary:"Get wrapped simulation batch records",parameters:[{name:"query",in:"query",schema:{type:"string"},description:"Optional local contains filter for record/document/trace identifiers."}],responses:{"200":{description:"Compact simulation records and bridge hints.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/templates":{get:{tags:["Simulation"],operationId:"listSimulationTemplates",summary:"List simulation test templates",responses:{"200":{description:"Simulation templates.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}},"/v1/simulation/integration-status":{get:{tags:["Simulation"],operationId:"getSimulationIntegrationStatus",summary:"Get available source integration status for simulation",responses:{"200":{description:"Integration status.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/hosecloud-integrations":{get:{tags:["Simulation"],operationId:"listSimulationHosecloudIntegrations",summary:"List hosecloud source integrations available for simulation",responses:{"200":{description:"Hosecloud integrations.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}},"/v1/material-packages/upload":{post:{tags:["Simulation"],operationId:"uploadMaterialPackage",summary:"Upload a material package ZIP for simulation",requestBody:{required:!0,content:{"multipart/form-data":{schema:{type:"object",properties:{file:{type:"string",format:"binary"}}}}}},responses:{"200":{description:"Parsed material package with schema config.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}}},components:{securitySchemes:{localSession:{type:"apiKey",in:"header",name:"X-Seal-Home-Session",description:"Optional local service session header for future HTTP deployments."}},parameters:{CorpId:{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},Offset:{name:"offset",in:"query",schema:{type:"integer",minimum:0,default:0},description:"Zero-based pagination offset."},Limit:{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:100,default:50},description:"Maximum number of records to return."},RuleId:{name:"ruleId",in:"path",required:!0,schema:{type:"string"},description:"Approval rule ID."},VersionId:{name:"versionId",in:"path",required:!0,schema:{type:"string"},description:"Published rule version ID."},DocumentId:{name:"documentId",in:"path",required:!0,schema:{type:"string"},description:"Approval knowledge document ID."},RecordId:{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."},BatchId:{name:"batchId",in:"path",required:!0,schema:{type:"string"},description:"Simulation batch ID."}},responses:{BadRequest:{description:"Invalid request.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}},Unauthorized:{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}},NotFound:{description:"Requested resource was not found.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}},schemas:{ErrorResponse:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}},CorpSummary:{type:"object",required:["id","name","sourceType","current"],properties:{id:{type:"string"},name:{type:"string"},sourceType:{type:"string",enum:["hose","direct","seal"]},current:{type:"boolean"}}},SwitchCorpRequest:{type:"object",required:["corpId"],properties:{corpId:{type:"string"}}},SwitchCorpResponse:{type:"object",required:["current","id","name"],properties:{current:{type:"boolean"},id:{type:"string"},name:{type:"string"}}},SourceConfig:{type:"object",additionalProperties:!0,description:"Redacted Seal enterprise config resolved from the configured source."},AuthStage:{type:"object",additionalProperties:!0,required:["name","ok"],properties:{name:{type:"string",examples:["hose.openapi","hose.provisional","seal.sso","seal.whoami"]},ok:{type:"boolean"},error:{type:"string"}}},AuthDiagnosis:{type:"object",required:["stages"],properties:{stages:{type:"array",items:{$ref:"#/components/schemas/AuthStage"}}}},SealUser:{type:"object",additionalProperties:!0,required:["id","name"],properties:{id:{type:"string"},tenantId:{type:"string"},name:{type:"string"},isAdmin:{type:"boolean"},permissions:{type:"array",items:{type:"string"}}}},SealTenant:{type:"object",additionalProperties:!0,required:["id","name"],properties:{id:{type:"string"},name:{type:"string"},tenantSlug:{type:"string"}}},WhoamiResponse:{type:"object",required:["user","tenant"],properties:{user:{$ref:"#/components/schemas/SealUser"},tenant:{$ref:"#/components/schemas/SealTenant"}}},SessionResponse:{type:"object",additionalProperties:!0,required:["user","session"],properties:{user:{$ref:"#/components/schemas/SealUser"},session:{type:"object",additionalProperties:!0}}},ApprovalRule:{type:"object",additionalProperties:!0,required:["id","description","scope","strictness"],properties:{id:{type:"string"},description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]},status:{type:"string"}}},ApprovalRuleInput:{type:"object",required:["description","scope","strictness"],properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}},ApprovalRulePatch:{type:"object",additionalProperties:!1,properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}},ApprovalRulesResponse:{type:"object",required:["rules"],properties:{rules:{type:"array",items:{$ref:"#/components/schemas/ApprovalRule"}},hasPendingDeletes:{type:"boolean"}}},RuleSetVersion:{type:"object",additionalProperties:!0,required:["id","versionNumber","versionName","rules"],properties:{id:{type:"string"},versionNumber:{type:"integer"},versionName:{type:"string"},publishedByName:{type:"string"},rules:{type:"array",items:{type:"object",additionalProperties:!0}}}},PublishRuleVersionRequest:{type:"object",required:["versionName"],properties:{versionName:{type:"string"}}},ApprovalDocument:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}},ApprovalDocumentInput:{type:"object",required:["title","purpose","content"],properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}},ApprovalDocumentPatch:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}},ApprovalDocumentsResponse:{type:"object",required:["articles"],properties:{articles:{type:"array",items:{$ref:"#/components/schemas/ApprovalDocument"}},total:{type:"integer"}}},ApprovalStylePreferences:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}},ApprovalContext:{type:"object",required:["rules","documents","stylePreferences"],properties:{rules:{},documents:{},stylePreferences:{}}},ApprovalSearchRequest:{type:"object",required:["keywords"],properties:{keywords:{type:"array",minItems:1,items:{type:"string"}},matchMode:{type:"string",enum:["any","all"]},areas:{type:"array",items:{type:"string",enum:["rules","documents","preferences"]}},maxResults:{type:"integer"}}},ApprovalSearchResponse:{type:"object",additionalProperties:!0},ApprovalRun:{type:"object",additionalProperties:!0,required:["id"],properties:{id:{type:"string"},sourceDocumentSN:{type:"string",description:"External document number, often Hose/易快报单号."},sourceDocumentId:{type:"string"},status:{type:"string"},taskMode:{type:"string"},finalExecutionMode:{type:"string"},ruleSetVersionNumber:{type:"integer"},langfuseTraceId:{type:"string"},langfuseSessionFallback:{type:"string"}}},ApprovalRunsResponse:{type:"object",additionalProperties:!0,required:["records"],properties:{records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},total:{type:"integer"},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}},ApprovalRunsSummary:{type:"object",additionalProperties:!0,properties:{date:{type:"string"},timezone:{type:"string"},matched:{type:"integer"},statusCounts:{type:"object",additionalProperties:{type:"integer"}},taskModeCounts:{type:"object",additionalProperties:{type:"integer"}}}},RunUrlResponse:{type:"object",additionalProperties:!0,properties:{enterpriseAssistUrl:{type:"string"},enterpriseUrl:{type:"string"},documentUrl:{type:"string"},recordId:{type:"string"},sourceDocumentSN:{type:"string"}}},BridgeResponse:{type:"object",additionalProperties:!0,properties:{count:{type:"integer"},records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}};function uD(){return dz0}function mz0(){return` +`},servers:[{url:"http://localhost:8787",description:"Reserved for a future local HTTP adapter; the current service uses MCP stdio."}],security:[{localSession:[]}],tags:[{name:"Corps",description:"Local enterprise configuration selection."},{name:"Source",description:"Source-derived Seal enterprise configuration."},{name:"Auth",description:"Wrapped authentication diagnostics and current identity."},{name:"Approval Runs",description:"Wrapped approval run history, summaries, document URLs, and trace bridge helpers."},{name:"Approval Knowledge",description:"Wrapped approval rules, documents, preferences, and search."},{name:"Simulation",description:"Wrapped simulation batch record access."}],paths:{"/v1/corps":{get:{tags:["Corps"],operationId:"listCorps",summary:"List configured enterprises",responses:{"200":{description:"Configured enterprises.",content:{"application/json":{schema:{type:"array",items:{type:"object",required:["id","name","sourceType","current"],properties:{id:{type:"string"},name:{type:"string"},sourceType:{type:"string",enum:["hose","direct","seal"]},current:{type:"boolean"}}}}}}}}}},"/v1/corps/current":{get:{tags:["Corps"],operationId:"getCurrentCorp",summary:"Get current enterprise",description:"Returns the configured default enterprise in stateful mode. Stateless mode has no current enterprise and requires an explicit corpId for enterprise operations.",responses:{"200":{description:"Current enterprise.",content:{"application/json":{schema:{type:"object",required:["id","name","sourceType","current"],properties:{id:{type:"string"},name:{type:"string"},sourceType:{type:"string",enum:["hose","direct","seal"]},current:{type:"boolean"}}}}}}}}},"/v1/corps/current/switch":{post:{tags:["Corps"],operationId:"switchCurrentCorp",summary:"Switch current enterprise",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["corpId"],properties:{corpId:{type:"string"}}}}}},responses:{"200":{description:"Switched enterprise.",content:{"application/json":{schema:{type:"object",required:["current","id","name"],properties:{current:{type:"boolean"},id:{type:"string"},name:{type:"string"}}}}}},"404":{description:"Requested resource was not found.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/source/config":{get:{tags:["Source"],operationId:"getSourceConfig",summary:"Resolve source-derived Seal enterprise config",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Redacted Seal enterprise config.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,description:"Redacted Seal enterprise config resolved from the configured source."}}}},"401":{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/auth/diagnose":{get:{tags:["Auth"],operationId:"diagnoseAuth",summary:"Diagnose wrapped source-to-Seal authentication",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Authentication stage diagnosis.",content:{"application/json":{schema:{type:"object",required:["stages"],properties:{stages:{type:"array",items:{$ref:"#/components/schemas/AuthStage"}}}}}}}}}},"/v1/whoami":{get:{tags:["Auth"],operationId:"whoami",summary:"Get current wrapped Seal identity",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Current Seal user and tenant.",content:{"application/json":{schema:{type:"object",required:["user","tenant"],properties:{user:{$ref:"#/components/schemas/SealUser"},tenant:{$ref:"#/components/schemas/SealTenant"}}}}}},"401":{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/session":{get:{tags:["Auth"],operationId:"getSession",summary:"Get current wrapped Seal session metadata",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."}],responses:{"200":{description:"Current session metadata.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["user","session"],properties:{user:{$ref:"#/components/schemas/SealUser"},session:{type:"object",additionalProperties:!0}}}}}},"401":{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}}}},"/v1/approval/context":{get:{tags:["Approval Knowledge"],operationId:"getApprovalContext",summary:"Get rules, documents, and style preferences together",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"documentLimit",in:"query",schema:{type:"integer",minimum:1}},{name:"latestRuleVersion",in:"query",schema:{type:"boolean"}},{name:"ruleVersionNumber",in:"query",schema:{type:"integer"}}],responses:{"200":{description:"Approval context.",content:{"application/json":{schema:{type:"object",required:["rules","documents","stylePreferences"],properties:{rules:{},documents:{},stylePreferences:{}}}}}}}}},"/v1/approval/search":{post:{tags:["Approval Knowledge"],operationId:"searchApprovalKnowledge",summary:"Search approval rules, documents, and preferences",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["keywords"],properties:{keywords:{type:"array",minItems:1,items:{type:"string"}},matchMode:{type:"string",enum:["any","all"]},areas:{type:"array",items:{type:"string",enum:["rules","documents","preferences"]}},maxResults:{type:"integer"}}}}}},responses:{"200":{description:"Search results with line context.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval/rules":{get:{tags:["Approval Knowledge"],operationId:"listApprovalRules",summary:"List current draft approval rules",responses:{"200":{description:"Draft rules.",content:{"application/json":{schema:{type:"object",required:["rules"],properties:{rules:{type:"array",items:{$ref:"#/components/schemas/ApprovalRule"}},hasPendingDeletes:{type:"boolean"}}}}}}}},post:{tags:["Approval Knowledge"],operationId:"createApprovalRule",summary:"Create draft approval rule",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["description","scope","strictness"],properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}}}}},responses:{"200":{description:"Created rule.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","description","scope","strictness"],properties:{id:{type:"string"},description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]},status:{type:"string"}}}}}}}}},"/v1/approval/rules/{ruleId}":{parameters:[{name:"ruleId",in:"path",required:!0,schema:{type:"string"},description:"Approval rule ID."}],patch:{tags:["Approval Knowledge"],operationId:"updateApprovalRule",summary:"Update draft approval rule",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!1,properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}}}}},responses:{"200":{description:"Updated rule.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","description","scope","strictness"],properties:{id:{type:"string"},description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]},status:{type:"string"}}}}}}}},delete:{tags:["Approval Knowledge"],operationId:"deleteApprovalRule",summary:"Delete draft approval rule",responses:{"200":{description:"Deleted."}}}},"/v1/approval/rule-versions":{get:{tags:["Approval Knowledge"],operationId:"listApprovalRuleVersions",summary:"List published approval rule versions",responses:{"200":{description:"Published rule versions.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0,required:["id","versionNumber","versionName","rules"],properties:{id:{type:"string"},versionNumber:{type:"integer"},versionName:{type:"string"},publishedByName:{type:"string"},rules:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}}},"/v1/approval/rule-versions/{versionId}":{parameters:[{name:"versionId",in:"path",required:!0,schema:{type:"string"},description:"Published rule version ID."}],get:{tags:["Approval Knowledge"],operationId:"getApprovalRuleVersion",summary:"Get published approval rule version",responses:{"200":{description:"Rule version.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","versionNumber","versionName","rules"],properties:{id:{type:"string"},versionNumber:{type:"integer"},versionName:{type:"string"},publishedByName:{type:"string"},rules:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}},"/v1/approval/rules/by-version":{get:{tags:["Approval Knowledge"],operationId:"getApprovalRuleByVersion",summary:"Get one wrapped rule from a published version",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"versionNumber",in:"query",schema:{type:"integer"}},{name:"versionId",in:"query",schema:{type:"string"}},{name:"latest",in:"query",schema:{type:"boolean"}},{name:"code",in:"query",schema:{type:"string"},description:"Display rule code such as '#0038'."},{name:"runtimeId",in:"query",schema:{type:"string"},description:"Runtime rule ID such as rule-205."},{name:"recordId",in:"query",schema:{type:"string"},description:"Infer versionNumber from an approval run."}],responses:{"200":{description:"One rule from a published version.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval/rule-versions/publish":{post:{tags:["Approval Knowledge"],operationId:"publishApprovalRuleVersion",summary:"Publish current draft rules",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["versionName"],properties:{versionName:{type:"string"}}}}}},responses:{"200":{description:"Published version.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval/documents":{get:{tags:["Approval Knowledge"],operationId:"listApprovalDocuments",summary:"List approval knowledge documents",parameters:[{name:"offset",in:"query",schema:{type:"integer",minimum:0,default:0},description:"Zero-based pagination offset."},{name:"limit",in:"query",schema:{type:"integer",minimum:1,default:20}},{name:"scenario",in:"query",schema:{type:"array",items:{type:"string"}},style:"form",explode:!0}],responses:{"200":{description:"Documents.",content:{"application/json":{schema:{type:"object",required:["articles"],properties:{articles:{type:"array",items:{$ref:"#/components/schemas/ApprovalDocument"}},total:{type:"integer"}}}}}}}},post:{tags:["Approval Knowledge"],operationId:"createApprovalDocument",summary:"Create approval knowledge document",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["title","purpose","content"],properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}},responses:{"200":{description:"Created document.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}}}}},"/v1/approval/documents/{documentId}":{parameters:[{name:"documentId",in:"path",required:!0,schema:{type:"string"},description:"Approval knowledge document ID."}],get:{tags:["Approval Knowledge"],operationId:"getApprovalDocument",summary:"Get approval knowledge document",responses:{"200":{description:"Document.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}}}},patch:{tags:["Approval Knowledge"],operationId:"updateApprovalDocument",summary:"Update approval knowledge document",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}},responses:{"200":{description:"Updated document.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}}}}}}},delete:{tags:["Approval Knowledge"],operationId:"deleteApprovalDocument",summary:"Delete approval knowledge document",responses:{"200":{description:"Deleted document confirmation."}}}},"/v1/approval/style-preferences":{get:{tags:["Approval Knowledge"],operationId:"getApprovalStylePreferences",summary:"Get approval style preferences",responses:{"200":{description:"Style preferences.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}}}}}}},patch:{tags:["Approval Knowledge"],operationId:"updateApprovalStylePreferences",summary:"Update approval style preferences",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}}}}},responses:{"200":{description:"Updated style preferences.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}}}}}}}},"/v1/approval-runs":{get:{tags:["Approval Runs"],operationId:"searchApprovalRuns",summary:"Search wrapped approval run history",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"offset",in:"query",schema:{type:"integer",minimum:0,default:0},description:"Zero-based pagination offset."},{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:100,default:50},description:"Maximum number of records to return."},{name:"startDate",in:"query",schema:{type:"string"},description:"Creation-time lower bound in milliseconds."},{name:"endDate",in:"query",schema:{type:"string"},description:"Creation-time upper bound in milliseconds."},{name:"status",in:"query",schema:{type:"string"}},{name:"taskMode",in:"query",schema:{type:"string"}},{name:"manualApprovalStatus",in:"query",schema:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},{name:"sourceDocumentSN",in:"query",schema:{type:"string"},description:"Hose/易快报单号 or other external source document number."},{name:"sourceDocumentId",in:"query",schema:{type:"string"}},{name:"humanResult",in:"query",schema:{type:"string"},description:"Local human result contains filter, such as 驳回 or 通过."},{name:"query",in:"query",schema:{type:"string"},description:"Search across record ID, source document fields, document ID, and trace fields."},{name:"includeBridge",in:"query",schema:{type:"boolean",default:!1},description:"Include full Langfuse bridge rows."}],responses:{"200":{description:"Compact wrapped approval run list.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["records"],properties:{records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},total:{type:"integer"},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}},"/v1/approval-runs/summary":{get:{tags:["Approval Runs"],operationId:"summarizeApprovalRuns",summary:"Summarize approval runs by local date",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"date",in:"query",schema:{type:"string",format:"date"}},{name:"timezone",in:"query",schema:{type:"string",default:"Asia/Shanghai"}},{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:100,default:50},description:"Maximum number of records to return."},{name:"query",in:"query",schema:{type:"string"}},{name:"humanResult",in:"query",schema:{type:"string"}}],responses:{"200":{description:"Date summary with counts and compact records.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{date:{type:"string"},timezone:{type:"string"},matched:{type:"integer"},statusCounts:{type:"object",additionalProperties:{type:"integer"}},taskModeCounts:{type:"object",additionalProperties:{type:"integer"}}}}}}}}}},"/v1/approval-runs/pick":{get:{tags:["Approval Runs"],operationId:"pickApprovalRuns",summary:"Pick likely approval runs by document number or trace key",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"query",in:"query",schema:{type:"string"}},{name:"sn",in:"query",schema:{type:"string"},description:"Source document number for direct lookup."},{name:"batch",in:"query",schema:{type:"string"},description:"Optional simulation batch ID."},{name:"latest",in:"query",schema:{type:"boolean"}},{name:"fields",in:"query",schema:{type:"string"},description:"Comma-separated response fields."},{name:"limit",in:"query",schema:{type:"integer",default:20}},{name:"maxScan",in:"query",schema:{type:"integer",default:1000}}],responses:{"200":{description:"Picked records and suggested next actions.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/bridge":{get:{tags:["Approval Runs"],operationId:"getApprovalRunLangfuseBridge",summary:"Resolve approval runs to Langfuse trace or session hints",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"recordId",in:"query",schema:{type:"string"}},{name:"sourceDocumentSN",in:"query",schema:{type:"string"}},{name:"sourceDocumentId",in:"query",schema:{type:"string"}},{name:"simulationBatchId",in:"query",schema:{type:"string"}}],responses:{"200":{description:"Trace/session bridge hints.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{count:{type:"integer"},records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}}}},"/v1/approval-runs/url":{get:{tags:["Approval Runs"],operationId:"getApprovalRunUrl",summary:"Get enterprise assist URL and optional source document URL",parameters:[{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},{name:"recordId",in:"query",schema:{type:"string"}},{name:"sourceDocumentSN",in:"query",schema:{type:"string"}},{name:"sourceDocumentId",in:"query",schema:{type:"string"}}],responses:{"200":{description:"Enterprise and document URLs.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,properties:{enterpriseAssistUrl:{type:"string"},enterpriseUrl:{type:"string"},documentUrl:{type:"string"},recordId:{type:"string"},sourceDocumentSN:{type:"string"}}}}}}}}},"/v1/approval-runs/{recordId}":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRun",summary:"Get wrapped approval run detail",parameters:[{name:"summary",in:"query",schema:{type:"boolean"}},{name:"fields",in:"query",schema:{type:"string"},description:"Comma-separated field paths such as metadata,document.fields,result.summary."}],responses:{"200":{description:"Approval run detail plus stable aliases and human result.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/cited-rules":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunCitedRules",summary:"Extract rules cited or matched by the AI result",responses:{"200":{description:"Cited rule summaries.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/document-summary":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunDocumentSummary",summary:"Get key document fields and compact AI/manual result",responses:{"200":{description:"Document summary.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/attachments":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunAttachments",summary:"List compact attachment metadata",parameters:[{name:"summary",in:"query",schema:{type:"boolean"}}],responses:{"200":{description:"Attachment metadata.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/approval-runs/{recordId}/result":{parameters:[{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."}],get:{tags:["Approval Runs"],operationId:"getApprovalRunResult",summary:"Get AI result, optionally as a compact summary",parameters:[{name:"summary",in:"query",schema:{type:"boolean"}}],responses:{"200":{description:"AI result or summary.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/create-batch":{post:{tags:["Simulation"],operationId:"createSimulationBatch",summary:"Create a simulation batch",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}},responses:{"200":{description:"Created batch id.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/create-material-pack-batch":{post:{tags:["Simulation"],operationId:"createMaterialPackBatch",summary:"Create a material pack simulation batch",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}},responses:{"200":{description:"Created batch id.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/batches":{get:{tags:["Simulation"],operationId:"listSimulationBatches",summary:"List simulation batches",parameters:[{name:"limit",in:"query",schema:{type:"integer"},description:"Max batches to return."}],responses:{"200":{description:"Simulation batches.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}},"/v1/simulation/batch/{batchId}":{parameters:[{name:"batchId",in:"path",required:!0,schema:{type:"string"},description:"Simulation batch ID."}],get:{tags:["Simulation"],operationId:"getSimulationBatch",summary:"Get a simulation batch detail including echoed create params",responses:{"200":{description:"Simulation batch detail.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/batches/{batchId}/records":{parameters:[{name:"batchId",in:"path",required:!0,schema:{type:"string"},description:"Simulation batch ID."}],get:{tags:["Simulation"],operationId:"getSimulationBatchRecords",summary:"Get wrapped simulation batch records",parameters:[{name:"query",in:"query",schema:{type:"string"},description:"Optional local contains filter for record/document/trace identifiers."}],responses:{"200":{description:"Compact simulation records and bridge hints.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/templates":{get:{tags:["Simulation"],operationId:"listSimulationTemplates",summary:"List simulation test templates",responses:{"200":{description:"Simulation templates.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}},"/v1/simulation/integration-status":{get:{tags:["Simulation"],operationId:"getSimulationIntegrationStatus",summary:"Get available source integration status for simulation",responses:{"200":{description:"Integration status.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}},"/v1/simulation/hosecloud-integrations":{get:{tags:["Simulation"],operationId:"listSimulationHosecloudIntegrations",summary:"List hosecloud source integrations available for simulation",responses:{"200":{description:"Hosecloud integrations.",content:{"application/json":{schema:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}}},"/v1/material-packages/upload":{post:{tags:["Simulation"],operationId:"uploadMaterialPackage",summary:"Upload a material package ZIP for simulation",requestBody:{required:!0,content:{"multipart/form-data":{schema:{type:"object",properties:{file:{type:"string",format:"binary"}}}}}},responses:{"200":{description:"Parsed material package with schema config.",content:{"application/json":{schema:{type:"object",additionalProperties:!0}}}}}}}},components:{securitySchemes:{localSession:{type:"apiKey",in:"header",name:"X-Seal-Home-Session",description:"Optional local service session header for future HTTP deployments."}},parameters:{CorpId:{name:"corpId",in:"query",schema:{type:"string"},description:"Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used."},Offset:{name:"offset",in:"query",schema:{type:"integer",minimum:0,default:0},description:"Zero-based pagination offset."},Limit:{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:100,default:50},description:"Maximum number of records to return."},RuleId:{name:"ruleId",in:"path",required:!0,schema:{type:"string"},description:"Approval rule ID."},VersionId:{name:"versionId",in:"path",required:!0,schema:{type:"string"},description:"Published rule version ID."},DocumentId:{name:"documentId",in:"path",required:!0,schema:{type:"string"},description:"Approval knowledge document ID."},RecordId:{name:"recordId",in:"path",required:!0,schema:{type:"string"},description:"seal-use approval run record ID."},BatchId:{name:"batchId",in:"path",required:!0,schema:{type:"string"},description:"Simulation batch ID."}},responses:{BadRequest:{description:"Invalid request.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}},Unauthorized:{description:"Local service authentication failed or downstream Seal auth failed.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}},NotFound:{description:"Requested resource was not found.",content:{"application/json":{schema:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}}}}}},schemas:{ErrorResponse:{type:"object",additionalProperties:!0,required:["error"],properties:{error:{type:"string"},message:{type:"string"},details:{}}},CorpSummary:{type:"object",required:["id","name","sourceType","current"],properties:{id:{type:"string"},name:{type:"string"},sourceType:{type:"string",enum:["hose","direct","seal"]},current:{type:"boolean"}}},SwitchCorpRequest:{type:"object",required:["corpId"],properties:{corpId:{type:"string"}}},SwitchCorpResponse:{type:"object",required:["current","id","name"],properties:{current:{type:"boolean"},id:{type:"string"},name:{type:"string"}}},SourceConfig:{type:"object",additionalProperties:!0,description:"Redacted Seal enterprise config resolved from the configured source."},AuthStage:{type:"object",additionalProperties:!0,required:["name","ok"],properties:{name:{type:"string",examples:["hose.openapi","hose.provisional","seal.sso","seal.whoami"]},ok:{type:"boolean"},error:{type:"string"}}},AuthDiagnosis:{type:"object",required:["stages"],properties:{stages:{type:"array",items:{$ref:"#/components/schemas/AuthStage"}}}},SealUser:{type:"object",additionalProperties:!0,required:["id","name"],properties:{id:{type:"string"},tenantId:{type:"string"},name:{type:"string"},isAdmin:{type:"boolean"},permissions:{type:"array",items:{type:"string"}}}},SealTenant:{type:"object",additionalProperties:!0,required:["id","name"],properties:{id:{type:"string"},name:{type:"string"},tenantSlug:{type:"string"}}},WhoamiResponse:{type:"object",required:["user","tenant"],properties:{user:{$ref:"#/components/schemas/SealUser"},tenant:{$ref:"#/components/schemas/SealTenant"}}},SessionResponse:{type:"object",additionalProperties:!0,required:["user","session"],properties:{user:{$ref:"#/components/schemas/SealUser"},session:{type:"object",additionalProperties:!0}}},ApprovalRule:{type:"object",additionalProperties:!0,required:["id","description","scope","strictness"],properties:{id:{type:"string"},description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]},status:{type:"string"}}},ApprovalRuleInput:{type:"object",required:["description","scope","strictness"],properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}},ApprovalRulePatch:{type:"object",additionalProperties:!1,properties:{description:{type:"string"},scope:{type:"string"},strictness:{type:"string",enum:["MUST_FOLLOW","SHOULD_FOLLOW","SUGGESTION"]}}},ApprovalRulesResponse:{type:"object",required:["rules"],properties:{rules:{type:"array",items:{$ref:"#/components/schemas/ApprovalRule"}},hasPendingDeletes:{type:"boolean"}}},RuleSetVersion:{type:"object",additionalProperties:!0,required:["id","versionNumber","versionName","rules"],properties:{id:{type:"string"},versionNumber:{type:"integer"},versionName:{type:"string"},publishedByName:{type:"string"},rules:{type:"array",items:{type:"object",additionalProperties:!0}}}},PublishRuleVersionRequest:{type:"object",required:["versionName"],properties:{versionName:{type:"string"}}},ApprovalDocument:{type:"object",additionalProperties:!0,required:["id","title","content"],properties:{id:{type:"string"},title:{type:"string"},purpose:{type:"string"},content:{type:"string",description:"Usually Markdown."},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}},ApprovalDocumentInput:{type:"object",required:["title","purpose","content"],properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}},ApprovalDocumentPatch:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},purpose:{type:"string"},content:{type:"string"},contentType:{type:"string"},status:{type:"string"},enabled:{type:"boolean"},scenarios:{type:"array",items:{type:"string"}},tags:{type:"array",items:{type:"string"}}}},ApprovalDocumentsResponse:{type:"object",required:["articles"],properties:{articles:{type:"array",items:{$ref:"#/components/schemas/ApprovalDocument"}},total:{type:"integer"}}},ApprovalStylePreferences:{type:"object",additionalProperties:!0,properties:{tone:{type:"string"},language:{type:"string"},detailLevel:{type:"string"},outputFormat:{type:"string"},examples:{type:"array",items:{type:"string"}},prohibitedPhrases:{type:"array",items:{type:"string"}},customInstructions:{type:"string"}}},ApprovalContext:{type:"object",required:["rules","documents","stylePreferences"],properties:{rules:{},documents:{},stylePreferences:{}}},ApprovalSearchRequest:{type:"object",required:["keywords"],properties:{keywords:{type:"array",minItems:1,items:{type:"string"}},matchMode:{type:"string",enum:["any","all"]},areas:{type:"array",items:{type:"string",enum:["rules","documents","preferences"]}},maxResults:{type:"integer"}}},ApprovalSearchResponse:{type:"object",additionalProperties:!0},ApprovalRun:{type:"object",additionalProperties:!0,required:["id"],properties:{id:{type:"string"},sourceDocumentSN:{type:"string",description:"External document number, often Hose/易快报单号."},sourceDocumentId:{type:"string"},status:{type:"string"},taskMode:{type:"string"},finalExecutionMode:{type:"string"},ruleSetVersionNumber:{type:"integer"},langfuseTraceId:{type:"string"},langfuseSessionFallback:{type:"string"}}},ApprovalRunsResponse:{type:"object",additionalProperties:!0,required:["records"],properties:{records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},total:{type:"integer"},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}},ApprovalRunsSummary:{type:"object",additionalProperties:!0,properties:{date:{type:"string"},timezone:{type:"string"},matched:{type:"integer"},statusCounts:{type:"object",additionalProperties:{type:"integer"}},taskModeCounts:{type:"object",additionalProperties:{type:"integer"}}}},RunUrlResponse:{type:"object",additionalProperties:!0,properties:{enterpriseAssistUrl:{type:"string"},enterpriseUrl:{type:"string"},documentUrl:{type:"string"},recordId:{type:"string"},sourceDocumentSN:{type:"string"}}},BridgeResponse:{type:"object",additionalProperties:!0,properties:{count:{type:"integer"},records:{type:"array",items:{$ref:"#/components/schemas/ApprovalRun"}},bridge:{type:"array",items:{type:"object",additionalProperties:!0}}}}}}};function kD(){return dz0}function mz0(){return` @@ -375,13 +379,13 @@ selection, source authentication, response compaction, and diagnostics-friendly src="https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.25.101/dist/browser/standalone.js" > -`}async function f4($,I,U,Y){let J=$.handler;return J(I,U,{corp:Y})}async function lz0($,I){if(I.setHeader("Access-Control-Allow-Origin","*"),I.setHeader("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS, PATCH"),I.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization, X-Seal-Corp, X-Seal-Home-Session"),$.method==="OPTIONS"){I.writeHead(204),I.end();return}let U=$.headers.host||"localhost",Y=$.headers["x-forwarded-proto"]||"http",J=new fG1($.url||"/",`${Y}://${U}`),Q=J.pathname.replace(/\/+$/,"")||"/",K=($.method||"GET").toUpperCase();try{if(K==="GET"&&Q==="/"){t1(I,200,{name:"seal-use",version:Y1,description:"Seal tenant operations and approval automation HTTP API",docs:"/docs",openapi:"/openapi.json",health:"/health",endpoints:{cli:"POST /api/cli",tools:"GET /api/tools",toolInvoke:"POST /api/tool/:name",restV1:"GET/POST /v1/*"}});return}if(K==="GET"&&Q==="/docs"){iG1(I,200,mz0());return}if(K==="GET"&&Q==="/openapi.json"){t1(I,200,uD());return}if(K==="GET"&&Q==="/health"){t1(I,200,{status:"ok",version:Y1,name:"seal-use",timestamp:new Date().toISOString()});return}if(K==="POST"&&(Q==="/shutdown"||Q==="/api/shutdown")){t1(I,200,{success:!0,message:"Shutting down seal-use background daemon",pid:process.pid}),setTimeout(()=>{process.kill(process.pid,"SIGTERM")},50);return}if(K==="POST"&&Q==="/api/cli"){let q=await kD($),H=(typeof q?.command==="string"?q.command:"").trim();if(!H){xD(I,400,"Missing 'command' property in request body");return}let G=hu(H),W=G[0]==="seal-use"||G[0]==="seal-home"||G[0]?.endsWith("/seal-use")||G[0]?.endsWith("/seal-home")?G.slice(1):G,w=await EH(W),Z=void 0;try{if(w.stdout.trim().startsWith("{")||w.stdout.trim().startsWith("["))Z=JSON.parse(w.stdout)}catch{}t1(I,w.isError?400:200,{success:!w.isError,stdout:w.stdout,stderr:w.stderr,exitCode:w.exitCode,data:Z});return}if(K==="POST"&&Q.startsWith("/api/tool/")){let q=Q.slice(10).trim(),H=_4(q);if(!H){xD(I,404,`Tool not found: '${q}'`);return}let G=await kD($)||{},W=k6($,J,G),w=y1(W),Z=await u1(w),V={...G};delete V.corp;let X=await f4(H,Z,V,w);t1(I,200,X);return}if(Q.startsWith("/v1/")){if(await bG1($,I,K,Q,J))return}xD(I,404,`Cannot ${K} ${Q}. Visit /docs for available endpoints.`)}catch(q){let H=q instanceof Error?q.message:String(q);xD(I,500,H)}}async function bG1($,I,U,Y,J){let Q=Object.fromEntries(J.searchParams.entries());if(U==="GET"&&Y==="/v1/corps"){let K=o8(),q=O4();return t1(I,200,{count:K.length,mode:q.stateful?"stateful":"stateless",defaultCorpId:q.defaultCorpId,corps:K.map((H)=>({id:H.id,name:H.name,sourceType:H.source.type,sealUrl:H.seal?.url}))}),!0}if(U==="GET"&&Y==="/v1/whoami"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_whoami"),W=await f4(G,H,{},q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/session"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_session_get"),W=await f4(G,H,{},q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/summary"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_runs_summary"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/stats"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_runs_stats"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/pick"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_run_pick"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/url"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_run_url_get"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(Y.startsWith("/v1/approval-runs/")){let K=Y.slice(18).split("/"),q=K[0],H=K[1];if(q&&!["summary","pick","stats","url","bridge"].includes(q)){let G=k6($,J,Q),W=y1(G),w=await u1(W);if(!H){let Z=_4("seal_approval_run_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="attachments"){let Z=_4("seal_approval_run_attachments_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="cited-rules"){let Z=_4("seal_approval_run_cited_rules_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="document-summary"){let Z=_4("seal_approval_run_document_summary_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="result"){let Z=_4("seal_approval_run_result_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}}}if(U==="GET"&&Y==="/v1/approval-runs"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_runs_search"),W=await f4(G,H,{...Q,limit:Q.limit?Number(Q.limit):void 0,offset:Q.offset?Number(Q.offset):void 0,includeBridge:Q.includeBridge==="true"},q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval/rules"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_rules_list"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/simulation/batches"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_simulation_batches_list"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="POST"&&Y==="/v1/simulation/create-batch"){let K=await kD($)||{},q=k6($,J,K),H=y1(q),G=await u1(H),W=_4("seal_simulation_batch_create"),w=await f4(W,G,K,H);return t1(I,200,w),!0}if(U==="GET"&&Y.startsWith("/v1/simulation/batch/")){let q=Y.slice(21).split("/")[0];if(q){let H=k6($,J,Q),G=y1(H),W=await u1(G),w=_4("seal_simulation_batch_get"),Z=await f4(w,W,{batchId:q},G);return t1(I,200,Z),!0}}if(U==="GET"&&Y==="/v1/preferences"){let K=k6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_preference_get"),W=await f4(G,H,{},q);return t1(I,200,W),!0}if(U==="POST"&&Y==="/v1/preferences/decision"){let K=await kD($)||{},q=k6($,J,K),H=y1(q),G=await u1(H),W=_4("seal_preference_decision_update"),w=await f4(W,G,K,H);return t1(I,200,w),!0}return!1}function k6($,I,U){let Y=$.headers["x-seal-corp"];if(typeof Y==="string"&&Y.trim())return Y.trim();let J=I.searchParams.get("corp");if(J?.trim())return J.trim();if(U&&typeof U.corp==="string"&&U.corp.trim())return U.corp.trim();return}async function kD($){let I="";for await(let U of $)if(I+=U,I.length>20971520)throw Error("Payload too large");if(!I.trim())return{};try{return JSON.parse(I)}catch(U){throw Error(`Invalid JSON body: ${U instanceof Error?U.message:String(U)}`)}}function t1($,I,U){let Y=JSON.stringify(U,null,2);$.writeHead(I,{"Content-Type":"application/json; charset=utf-8","Content-Length":Buffer.byteLength(Y)}),$.end(Y)}function iG1($,I,U){$.writeHead(I,{"Content-Type":"text/html; charset=utf-8","Content-Length":Buffer.byteLength(U)}),$.end(U)}function xD($,I,U,Y){t1($,I,{error:!0,statusCode:I,message:U,...Y!==void 0?{details:Y}:{}})}var fD=8787,bD="127.0.0.1";async function iD($={}){let I=$.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):fD),U=$.host??(process.env.HOST?process.env.HOST:bD),Y=nG1(async(J,Q)=>{try{await lz0(J,Q)}catch(K){if(!Q.headersSent)Q.writeHead(500,{"Content-Type":"application/json"}),Q.end(JSON.stringify({error:!0,message:K instanceof Error?K.message:String(K)}))}});return new Promise((J,Q)=>{Y.on("error",(K)=>{Q(K)}),Y.listen(I,U,()=>{if(!$.silent)console.error(` +`}async function f4($,I,U,Y){let J=$.handler;return J(I,U,{corp:Y})}async function lz0($,I){if(I.setHeader("Access-Control-Allow-Origin","*"),I.setHeader("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS, PATCH"),I.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization, X-Seal-Corp, X-Seal-Home-Session"),$.method==="OPTIONS"){I.writeHead(204),I.end();return}let U=$.headers.host||"localhost",Y=$.headers["x-forwarded-proto"]||"http",J=new iG1($.url||"/",`${Y}://${U}`),Q=J.pathname.replace(/\/+$/,"")||"/",K=($.method||"GET").toUpperCase();try{if(K==="GET"&&Q==="/"){t1(I,200,{name:"seal-use",version:Y1,description:"Seal tenant operations and approval automation HTTP API",docs:"/docs",openapi:"/openapi.json",health:"/health",endpoints:{cli:"POST /api/cli",tools:"GET /api/tools",toolInvoke:"POST /api/tool/:name",restV1:"GET/POST /v1/*"}});return}if(K==="GET"&&Q==="/docs"){nG1(I,200,mz0());return}if(K==="GET"&&Q==="/openapi.json"){t1(I,200,kD());return}if(K==="GET"&&Q==="/health"){t1(I,200,{status:"ok",version:Y1,name:"seal-use",timestamp:new Date().toISOString()});return}if(K==="POST"&&(Q==="/shutdown"||Q==="/api/shutdown")){t1(I,200,{success:!0,message:"Shutting down seal-use background daemon",pid:process.pid}),setTimeout(()=>{process.kill(process.pid,"SIGTERM")},50);return}if(K==="POST"&&Q==="/api/cli"){let q=await fD($),H=(typeof q?.command==="string"?q.command:"").trim();if(!H){xD(I,400,"Missing 'command' property in request body");return}let G=ku(H),W=G[0]==="seal-use"||G[0]==="seal-home"||G[0]?.endsWith("/seal-use")||G[0]?.endsWith("/seal-home")?G.slice(1):G,w=await EH(W),Z=void 0;try{if(w.stdout.trim().startsWith("{")||w.stdout.trim().startsWith("["))Z=JSON.parse(w.stdout)}catch{}t1(I,w.isError?400:200,{success:!w.isError,stdout:w.stdout,stderr:w.stderr,exitCode:w.exitCode,data:Z});return}if(K==="POST"&&Q.startsWith("/api/tool/")){let q=Q.slice(10).trim(),H=_4(q);if(!H){xD(I,404,`Tool not found: '${q}'`);return}let G=await fD($)||{},W=x6($,J,G),w=y1(W),Z=await u1(w),V={...G};delete V.corp;let X=await f4(H,Z,V,w);t1(I,200,X);return}if(Q.startsWith("/v1/")){if(await bG1($,I,K,Q,J))return}xD(I,404,`Cannot ${K} ${Q}. Visit /docs for available endpoints.`)}catch(q){let H=q instanceof Error?q.message:String(q);xD(I,500,H)}}async function bG1($,I,U,Y,J){let Q=Object.fromEntries(J.searchParams.entries());if(U==="GET"&&Y==="/v1/corps"){let K=o8(),q=O4();return t1(I,200,{count:K.length,mode:q.stateful?"stateful":"stateless",defaultCorpId:q.defaultCorpId,corps:K.map((H)=>({id:H.id,name:H.name,sourceType:H.source.type,sealUrl:H.seal?.url}))}),!0}if(U==="GET"&&Y==="/v1/whoami"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_whoami"),W=await f4(G,H,{},q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/session"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_session_get"),W=await f4(G,H,{},q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/summary"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_runs_summary"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/stats"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_runs_stats"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/pick"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_run_pick"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/url"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_run_url_get"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(Y.startsWith("/v1/approval-runs/")){let K=Y.slice(18).split("/"),q=K[0],H=K[1];if(q&&!["summary","pick","stats","url","bridge"].includes(q)){let G=x6($,J,Q),W=y1(G),w=await u1(W);if(!H){let Z=_4("seal_approval_run_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="attachments"){let Z=_4("seal_approval_run_attachments_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="cited-rules"){let Z=_4("seal_approval_run_cited_rules_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="document-summary"){let Z=_4("seal_approval_run_document_summary_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}if(H==="result"){let Z=_4("seal_approval_run_result_get"),V=await f4(Z,w,{recordId:q,...Q},W);return t1(I,200,V),!0}}}if(U==="GET"&&Y==="/v1/approval-runs"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_runs_search"),W=await f4(G,H,{...Q,limit:Q.limit?Number(Q.limit):void 0,offset:Q.offset?Number(Q.offset):void 0,includeBridge:Q.includeBridge==="true"},q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval/rules"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_approval_rules_list"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="GET"&&Y==="/v1/simulation/batches"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_simulation_batches_list"),W=await f4(G,H,Q,q);return t1(I,200,W),!0}if(U==="POST"&&Y==="/v1/simulation/create-batch"){let K=await fD($)||{},q=x6($,J,K),H=y1(q),G=await u1(H),W=_4("seal_simulation_batch_create"),w=await f4(W,G,K,H);return t1(I,200,w),!0}if(U==="GET"&&Y.startsWith("/v1/simulation/batch/")){let q=Y.slice(21).split("/")[0];if(q){let H=x6($,J,Q),G=y1(H),W=await u1(G),w=_4("seal_simulation_batch_get"),Z=await f4(w,W,{batchId:q},G);return t1(I,200,Z),!0}}if(U==="GET"&&Y==="/v1/preferences"){let K=x6($,J,Q),q=y1(K),H=await u1(q),G=_4("seal_preference_get"),W=await f4(G,H,{},q);return t1(I,200,W),!0}if(U==="POST"&&Y==="/v1/preferences/decision"){let K=await fD($)||{},q=x6($,J,K),H=y1(q),G=await u1(H),W=_4("seal_preference_decision_update"),w=await f4(W,G,K,H);return t1(I,200,w),!0}return!1}function x6($,I,U){let Y=$.headers["x-seal-corp"];if(typeof Y==="string"&&Y.trim())return Y.trim();let J=I.searchParams.get("corp");if(J?.trim())return J.trim();if(U&&typeof U.corp==="string"&&U.corp.trim())return U.corp.trim();return}async function fD($){let I="";for await(let U of $)if(I+=U,I.length>20971520)throw Error("Payload too large");if(!I.trim())return{};try{return JSON.parse(I)}catch(U){throw Error(`Invalid JSON body: ${U instanceof Error?U.message:String(U)}`)}}function t1($,I,U){let Y=JSON.stringify(U,null,2);$.writeHead(I,{"Content-Type":"application/json; charset=utf-8","Content-Length":Buffer.byteLength(Y)}),$.end(Y)}function nG1($,I,U){$.writeHead(I,{"Content-Type":"text/html; charset=utf-8","Content-Length":Buffer.byteLength(U)}),$.end(U)}function xD($,I,U,Y){t1($,I,{error:!0,statusCode:I,message:U,...Y!==void 0?{details:Y}:{}})}var iD=8787,bD="127.0.0.1";async function nD($={}){let I=$.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):iD),U=$.host??(process.env.HOST?process.env.HOST:bD),Y=pG1(async(J,Q)=>{try{await lz0(J,Q)}catch(K){if(!Q.headersSent)Q.writeHead(500,{"Content-Type":"application/json"}),Q.end(JSON.stringify({error:!0,message:K instanceof Error?K.message:String(K)}))}});return new Promise((J,Q)=>{Y.on("error",(K)=>{Q(K)}),Y.listen(I,U,()=>{if(!$.silent)console.error(` \uD83D\uDE80 seal-use HTTP Server (v${Y1}) started`),console.error(` URL: http://${U}:${I}`),console.error(` Docs: http://${U}:${I}/docs`),console.error(` OpenAPI: http://${U}:${I}/openapi.json`),console.error(` CLI Exec: POST http://${U}:${I}/api/cli`),console.error(` REST API: http://${U}:${I}/v1/... -`);J(Y)})})}async function oz0($){let I=m0($.options.port)??m0($.options.p),U=g($.options.host)??g($.options.h),Y=await iD({port:I,host:U}),J=()=>{Y.close(()=>{process.exit(0)})};process.on("SIGINT",J),process.on("SIGTERM",J),await new Promise(()=>{})}async function rz0($,I,U,Y){if($==="config"||$==="get"){await F0("seal_llm_config_get",I,U,{},V0(Y.options));return}if($==="providers"||$==="list"){await F0("seal_llm_providers_list",I,U,{},V0(Y.options));return}throw Error(`Unknown llm command: ${$??""}. Run 'seal-use help' for available commands.`)}async function tz0($,I){if($==="config"||$==="json"){uu();return}await xu()}function uu(){B0({mcpServers:{"seal-use":{type:"stdio",command:"seal-use",args:["mcp"],env:{SEAL_USE_MCP_ENABLED:"true"}}}})}function az0($){let I=uD();B0(I,{...V0($.options),allowFull:!0})}async function sz0($,I,U,Y){if($==="available"){await F0("seal_permissions_available_list",I,U,{},V0(Y.options));return}if($==="configs"||$==="list"){await F0("seal_permissions_configs_list",I,U,{},V0(Y.options));return}throw Error(`Unknown permissions command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as ez0}from"node:fs";async function $X0($,I,U,Y,J,Q,K){if(!$||$==="get"){await F0("seal_preference_get",J,Q,{},V0(K.options));return}if($==="decision"){if(I==="update"||!I){let q=g(K.options.input),H=q?JSON.parse(ez0(q,"utf8")):U$(K.json);if(!H||Object.keys(H).length===0)throw Error(`Usage: seal-use preference decision update --json '{"explicitApprove":"..."}'`);await F0("seal_preference_decision_update",J,Q,{...H,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}}if($==="thinking-depth"||$==="thinkingDepth"){if(I==="set"){let q=g(K.options.default)??g(K.options.level)??Y;if(q!=="medium"&&q!=="high")throw Error("Usage: seal-use preference thinking-depth set --default ");await F0("seal_preference_thinking_depth_set",J,Q,{defaultLevel:q,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}if(I==="policies"){if(U==="list"||!U){await F0("seal_preference_thinking_depth_policies_list",J,Q,{},V0(K.options));return}if(U==="upsert"){let q=g(K.options.input),H=q?JSON.parse(ez0(q,"utf8")):U$(K.json);if(!H||!H.id||!H.name)throw Error(`Usage: seal-use preference thinking-depth policies upsert --json '{"id":"...","name":"...","level":"high"}'`);await F0("seal_preference_thinking_depth_policies_upsert",J,Q,{...H,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}if(U==="remove"||U==="delete"){let q=Y??g(K.options.id)??g(K.options.policyId);if(!q)throw Error("Usage: seal-use preference thinking-depth policies remove ");await F0("seal_preference_thinking_depth_policies_remove",J,Q,{policyId:q,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}}}throw Error(`Unknown preference action: ${$??""}. Available: get, decision update, thinking-depth set, thinking-depth policies list/upsert/remove.`)}async function IX0($={}){let I=o8(),U=O4(),Y=NJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$.corpId},YI());console.log(`[probe] corp=${Y.id} source=${Y.source.type}`);let J=await _J(Y);console.log("[probe] seal enterprise"),console.log(JSON.stringify(J,null,2));let Q=await u1(Y),K=await ew(Q,{documentLimit:20,stylePreferencesEndpoint:Y.seal.endpoints.approvalStylePreferences});console.log("[probe] approval context summary"),console.log(JSON.stringify({rules:K.rules.rules.length,hasPendingRuleDeletes:K.rules.hasPendingDeletes,documents:K.documents.articles.length,documentsTotal:K.documents.total,stylePreferences:K.stylePreferences.ok?"ok":`error: ${K.stylePreferences.error}`},null,2))}async function UX0($,I,U){let Y=I??g(U.options.corp)??($&&$!=="--corp"?$:void 0);await IX0({corpId:Y})}async function ku($,I,U,Y,J){if($==="count"){await F0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}if($==="list"){if(O0(J.options.count)){await F0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}let Q=m0(J.options.limit),K=m0(J.options.offset);if(O0(J.options.summary)){await F0("seal_approval_rules_list",U,Y,{fields:Kz0,limit:Q,offset:K},V0(J.options));return}let q=await zI("seal_approval_rules_list",U,Y,{limit:Q,offset:K});qz0(q,O0(J.options.full)===!0),B0(q);return}if($==="clear"){let Q=O0(J.options.yes)===!0,K=O0(J.options.dryRun)??O0(J.options["dry-run"])??!Q;if(!Q&&!K)throw s8("Refusing to clear rules without --yes. Use --dry-run to preview.",`seal-use rules clear --corp ${Y.id} --dry-run`);let q=await zI("seal_approval_rules_clear",U,Y,{dryRun:K,recode:O0(J.options.recode)});if(!Q&&K&&q&&typeof q==="object"){B0({...q,nextCommand:`seal-use rules clear --corp ${Y.id} --yes`},V0(J.options));return}B0(q,V0(J.options));return}if($==="versions"){await F0("seal_approval_rule_versions_list",U,Y,{},V0(J.options));return}if($==="version"){let Q=I??g(J.options.version);if(!Q)throw Error("Usage: seal-use rules version ");await F0("seal_approval_rule_version_get",U,Y,NH(Q),V0(J.options));return}if($==="get"){await F0("seal_approval_rule_get",U,Y,{...Iz0(g(J.options.version)),code:g(J.options.code),runtimeId:g(J.options.runtimeId)??g(J.options["runtime-id"]),recordId:g(J.options.recordId)??g(J.options["record-id"])},V0(J.options));return}if($==="search"){let Q=I??g(J.options.query);if(!Q)throw Error("Usage: seal-use rules search [--version ]");await F0("seal_approval_search",U,Y,{keywords:[Q],areas:["rules"],maxResults:m0(J.options.maxResults),contextLines:m0(J.options.contextLines),refresh:O0(J.options.refresh),snippetOnly:O0(J.options.snippetOnly)??O0(J.options["snippet-only"]),maxChars:m0(J.options.maxChars)??m0(J.options["max-chars"]),fields:V6(J.options.fields),...eZ0(g(J.options.version))},V0(J.options));return}if($==="pull"){let Q=g(J.options.version)??I,K=g(J.options.out)??g(J.options.file)??g(J.options.f);await F0("seal_approval_rules_pull",U,Y,{version:Q,out:K},V0(J.options));return}if($==="push"){let Q=g(J.options.file)??g(J.options.f)??I,K=O0(J.options.yes)===!0,q=O0(J.options.dryRun)??O0(J.options["dry-run"])??!K,H=O0(J.options.publish),G=g(J.options.versionName)??g(J.options["version-name"]),W=await zI("seal_approval_rules_push",U,Y,{file:Q,dryRun:q,confirm:K,publish:H,versionName:G});if(!K&&q&&W&&typeof W==="object"){B0({...W,nextCommand:`seal-use rules push --file ${Q??"./rules.local.json"} --corp ${Y.id} --yes${H?" --publish":""}`},V0(J.options));return}B0(W,V0(J.options));return}if($==="lint"){await F0("seal_approval_rules_lint",U,Y,{file:g(J.options.file)??g(J.options.f),linter:g(J.options.linter),version:g(J.options.version),code:g(J.options.code),ruleId:g(J.options.rule)??I,minScore:m0(J.options.minScore)??m0(J.options["min-score"]),level:g(J.options.level),summary:O0(J.options.summary)},V0(J.options));return}if($==="map"){let Q=g(J.options.version)??I,K=g(J.options.code)??g(J.options.rule),q=Cz0(Y.id,Q);if(!q){let G=Q?`version '${Q}'`:"latest version";B0({error:`No local rule mapping found for enterprise '${Y.name}' (${Y.id}) ${G}. Run 'seal-use corps sync-test --yes' to synchronize and generate mapping snapshots.`,corpId:Y.id,version:Q??"latest"},V0(J.options));return}let H=_z0(q.ruleMapping,K);B0({corpId:Y.id,syncedAt:q.syncedAt,source:q.source,target:q.target,versionMapping:q.versionMapping,totalRules:q.ruleMapping.length,matchedRules:H.length,rules:H},V0(J.options));return}throw Error(`Unknown rules command: ${$??""}. Available: count, list, clear, versions, version, get, search, lint, pull, push, map. Run 'seal-use help' for available commands.`)}import{homedir as rG1}from"node:os";import{join as tG1}from"node:path";import{spawn as pG1,execFileSync as cG1}from"node:child_process";import{existsSync as nD,mkdirSync as dG1,readFileSync as fu,rmSync as e8,writeFileSync as pD}from"node:fs";import{join as bu}from"node:path";async function XI($,I,U={}){switch($){case"run":await lG1(I);return;case"start":return YX0(I);case"stop":case"kill":case"down":case"shutdown":return JX0(I,U);case"restart":return JX0(I,{quiet:!0}),YX0(I);case"logs":case"log":return mG1(I,U.maxLines);case"status":case void 0:return gJ(I);default:throw Error("Usage: seal-use service ")}}function gJ($){let I=dD($),U=iu($),Y=cD(I),J=Y?QX0(Y,$.appRoot):!1;if(!J){if(Y)e8(I,{force:!0});if(nD(U))e8(U,{force:!0})}let Q;if(J&&nD(U))try{Q=JSON.parse(fu(U,"utf8"))}catch{}let K=$.port??Q?.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):fD),q=$.host??Q?.host??(process.env.HOST?process.env.HOST:bD),H=$.version??Q?.version;return{running:J,pid:J?Y:void 0,version:H,port:K,host:q,url:J?`http://${q}:${K}`:void 0,appRoot:$.appRoot,stateDir:$.stateDir,pidFile:I,logFile:BH($)}}function mG1($,I=50){let U=BH($);if(!nD(U))return{logFile:U,lines:[],totalLines:0};let J=fu(U,"utf8").split(` -`).filter(Boolean),Q=J.slice(-I);return{logFile:U,lines:Q,totalLines:J.length}}async function lG1($){let I=dD($),U=iu($),Y=BH($);KX0($.stateDir);let J=$.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):fD),Q=$.host??(process.env.HOST?process.env.HOST:bD);pD(I,`${process.pid} -`,{mode:384}),pD(U,JSON.stringify({pid:process.pid,port:J,host:Q,version:$.version,startedAt:new Date().toISOString()},null,2),{mode:384}),SJ(Y,`service starting on http://${Q}:${J} pid=${process.pid}`);let K=null;try{K=await iD({port:J,host:Q,silent:!0}),SJ(Y,`service listening pid=${process.pid}`)}catch(H){if(SJ(Y,`service failed to bind port ${J}: ${H instanceof Error?H.message:String(H)}`),cD(I)===process.pid)e8(I,{force:!0}),e8(U,{force:!0});throw H}let q=()=>{if(K)K.close(),K=null;if(cD(I)===process.pid)e8(I,{force:!0}),e8(U,{force:!0});SJ(Y,`stopped pid=${process.pid}`)};await new Promise((H)=>{let G=!1,W=()=>{if(G)return;G=!0,q(),process.off("SIGTERM",W),process.off("SIGINT",W),H()};process.once("SIGTERM",W),process.once("SIGINT",W)})}function YX0($){KX0($.stateDir);let I=gJ($);if(I.running)return I;let U=$.launcher??{command:process.execPath,args:[$.entryFile]},Y=[...U.args??[],"service","run"];if($.port)Y.push("--port",String($.port));if($.host)Y.push("--host",String($.host));let J=pG1(U.command,Y,{cwd:$.appRoot,detached:!0,stdio:["ignore","ignore","ignore"],env:process.env});J.unref();let Q=dD($);return pD(Q,`${J.pid} -`,{mode:384}),SJ(BH($),`started pid=${J.pid}`),{started:!0,...gJ($)}}function JX0($,I={}){let U=dD($),Y=iu($),J=cD(U);if(!J||!QX0(J,$.appRoot))return e8(U,{force:!0}),e8(Y,{force:!0}),I.quiet?void 0:{stopped:!1,reason:"not running"};return process.kill(J,"SIGTERM"),e8(U,{force:!0}),e8(Y,{force:!0}),SJ(BH($),`stop requested pid=${J}`),I.quiet?void 0:{stopped:!0,pid:J}}function QX0($,I){if(!oG1($))return!1;try{let U=cG1("ps",["-p",String($),"-o","command="],{encoding:"utf8"});return(U.includes(I)||U.includes("seal-use")||U.includes("src/cli.ts"))&&U.includes("service")&&U.includes("run")}catch{return!1}}function oG1($){try{return process.kill($,0),!0}catch{return!1}}function dD($){return bu($.stateDir,"service.pid")}function iu($){return bu($.stateDir,"service.json")}function BH($){return bu($.stateDir,"service.log")}function cD($){if(!nD($))return;let I=Number(fu($,"utf8").trim());return Number.isInteger(I)&&I>0?I:void 0}function KX0($){dG1($,{recursive:!0,mode:448})}function SJ($,I){pD($,`${new Date().toISOString()} ${I} -`,{flag:"a",mode:384})}var nu=tG1(rG1(),".config","seal-use");async function pu($,I,U){let Y=U?m0(U.options.port)??m0(U.options.p):void 0,J=U?g(U.options.host)??g(U.options.h):void 0,Q=U?m0(U.options.lines)??m0(U.options.n):void 0,K=await XI($,{appRoot:I.appRoot,entryFile:I.entryFile,stateDir:nu,version:Y1,launcher:I.launcher,port:Y,host:J},{maxLines:Q});if(K!==void 0)B0(K)}import{existsSync as aG1,readFileSync as qX0}from"node:fs";async function HX0($,I,U,Y,J){if($==="batch-records"||$==="records"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation batch-records ");await F0("seal_simulation_batch_records_get",U,Y,{batchId:Q,query:g(J.options.query)},V0(J.options));return}if($==="create"||$==="run"){let Q=g(J.options.mode)??g(J.options.sourceSystem)??g(J.options["source-system"])??"hosecloud",K=Q==="material-pack"?"material_pack":Q,q=g(J.options.schemaConfig)??g(J.options["schema-config"]),H=q?JSON.parse(qX0(q,"utf8")):void 0,G=g(J.options.input),W=G?JSON.parse(qX0(G,"utf8")):U$(J.json),w=g(J.options.packageId)??g(J.options["package-id"]),Z=V6(J.options.packageIds)??V6(J.options["package-ids"])??(w?[w]:void 0),V=V6(J.options.flowIds)??V6(J.options["flow-ids"])??V6(J.options.documentSn)??V6(J.options["document-sn"]),X=g(J.options.signKey)??g(J.options["sign-key"])??g(J.options.integration),L=O0(J.options.noWait)??O0(J.options["no-wait"]);await F0("seal_simulation_batch_create",U,Y,{mode:K,sourceSystem:K,flowIds:V,documentSn:V,rejectNodeName:g(J.options.rejectNode)??g(J.options["reject-node"])??null,thinkingDepthOverride:g(J.options.thinkingDepth)??g(J.options["thinking-depth"]),skipInvoiceGeneration:O0(J.options.skipInvoiceGeneration)??O0(J.options["skip-invoice-generation"]),skipExpenseExtraction:O0(J.options.skipExpenseExtraction)??O0(J.options["skip-expense-extraction"]),disableAttachmentCache:O0(J.options.disableAttachmentCache)??O0(J.options["disable-attachment-cache"]),signKey:X,packageIds:Z,packageId:w,templateId:g(J.options.templateId)??g(J.options["template-id"]),schemaConfig:H,requestIds:V6(J.options.requestIds)??V6(J.options["request-ids"]),workflowTypeId:g(J.options.workflowTypeId)??g(J.options["workflow-type-id"]),flowStatusList:V6(J.options.flowStatusList)?.map(Number)??V6(J.options["flow-status-list"])?.map(Number),businessCodes:V6(J.options.businessCodes)??V6(J.options["business-codes"]),documentType:g(J.options.documentType)??g(J.options["document-type"]),startTime:m0(J.options.startTime)??m0(J.options["start-time"]),endTime:m0(J.options.endTime)??m0(J.options["end-time"]),status:V6(J.options.status),limit:m0(J.options.limit),noWait:L,rawParams:W},V0(J.options));return}if($==="wait"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation wait [--timeout 10m] [--poll-interval 2s]");await F0("seal_simulation_batch_wait",U,Y,{batchId:Q,timeout:g(J.options.timeout),pollInterval:g(J.options.pollInterval)??g(J.options["poll-interval"])},V0(J.options));return}if($==="status"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation status ");await F0("seal_simulation_batch_status",U,Y,{batchId:Q},V0(J.options));return}if($==="clean"||$==="delete"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation clean ");await F0("seal_simulation_batch_clean",U,Y,{batchId:Q},V0(J.options));return}if($==="specifications"){let Q=I??g(J.options.integration)??g(J.options.signKey)??g(J.options["sign-key"]);await F0("seal_simulation_specifications_list",U,Y,{signKey:Q},V0(J.options));return}if($==="approval-definitions"||$==="definitions"){await F0("seal_simulation_feishu_approval_definitions_list",U,Y,{},V0(J.options));return}if($==="list"){await F0("seal_simulation_batches_list",U,Y,{limit:m0(J.options.limit)},V0(J.options));return}if($==="get"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation get ");await F0("seal_simulation_batch_get",U,Y,{batchId:Q},V0(J.options));return}if($==="templates"){await F0("seal_simulation_templates_get",U,Y,{},V0(J.options));return}if($==="integrations"){await F0("seal_simulation_integrations_get",U,Y,{},V0(J.options));return}if($==="package-upload"){let Q=I??g(J.options.file);if(!Q)throw Error("Usage: seal-use simulation package-upload <材料包.zip>");if(!aG1(Q))throw Error(`File not found: ${Q}`);await F0("seal_simulation_material_package_upload",U,Y,{filePath:Q},V0(J.options));return}throw Error(`Unknown simulation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{existsSync as BX0}from"node:fs";import{join as mD}from"node:path";import{existsSync as cu,mkdirSync as NX0,rmSync as GW1,writeFileSync as WW1}from"node:fs";import{homedir as MX0}from"node:os";import{dirname as wW1,join as du}from"node:path";var GX0=`--- +`);J(Y)})})}async function oz0($){let I=n0($.options.port)??n0($.options.p),U=g($.options.host)??g($.options.h),Y=await nD({port:I,host:U}),J=()=>{Y.close(()=>{process.exit(0)})};process.on("SIGINT",J),process.on("SIGTERM",J),await new Promise(()=>{})}async function rz0($,I,U,Y){if($==="config"||$==="get"){await F0("seal_llm_config_get",I,U,{},V0(Y.options));return}if($==="providers"||$==="list"){await F0("seal_llm_providers_list",I,U,{},V0(Y.options));return}throw Error(`Unknown llm command: ${$??""}. Run 'seal-use help' for available commands.`)}async function tz0($,I){if($==="config"||$==="json"){xu();return}await fu()}function xu(){B0({mcpServers:{"seal-use":{type:"stdio",command:"seal-use",args:["mcp"],env:{SEAL_USE_MCP_ENABLED:"true"}}}})}function az0($){let I=kD();B0(I,{...V0($.options),allowFull:!0})}async function sz0($,I,U,Y){if($==="available"){await F0("seal_permissions_available_list",I,U,{},V0(Y.options));return}if($==="configs"||$==="list"){await F0("seal_permissions_configs_list",I,U,{},V0(Y.options));return}throw Error(`Unknown permissions command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as ez0}from"node:fs";async function $X0($,I,U,Y,J,Q,K){if(!$||$==="get"){await F0("seal_preference_get",J,Q,{},V0(K.options));return}if($==="decision"){if(I==="update"||!I){let q=g(K.options.input),H=q?JSON.parse(ez0(q,"utf8")):U$(K.json);if(!H||Object.keys(H).length===0)throw Error(`Usage: seal-use preference decision update --json '{"explicitApprove":"..."}'`);await F0("seal_preference_decision_update",J,Q,{...H,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}}if($==="thinking-depth"||$==="thinkingDepth"){if(I==="set"){let q=g(K.options.default)??g(K.options.level)??Y;if(q!=="medium"&&q!=="high")throw Error("Usage: seal-use preference thinking-depth set --default ");await F0("seal_preference_thinking_depth_set",J,Q,{defaultLevel:q,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}if(I==="policies"){if(U==="list"||!U){await F0("seal_preference_thinking_depth_policies_list",J,Q,{},V0(K.options));return}if(U==="upsert"){let q=g(K.options.input),H=q?JSON.parse(ez0(q,"utf8")):U$(K.json);if(!H||!H.id||!H.name)throw Error(`Usage: seal-use preference thinking-depth policies upsert --json '{"id":"...","name":"...","level":"high"}'`);await F0("seal_preference_thinking_depth_policies_upsert",J,Q,{...H,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}if(U==="remove"||U==="delete"){let q=Y??g(K.options.id)??g(K.options.policyId);if(!q)throw Error("Usage: seal-use preference thinking-depth policies remove ");await F0("seal_preference_thinking_depth_policies_remove",J,Q,{policyId:q,dryRun:O0(K.options.dryRun)??O0(K.options["dry-run"])},V0(K.options));return}}}throw Error(`Unknown preference action: ${$??""}. Available: get, decision update, thinking-depth set, thinking-depth policies list/upsert/remove.`)}async function IX0($={}){let I=o8(),U=O4(),Y=AJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$.corpId},YI());console.log(`[probe] corp=${Y.id} source=${Y.source.type}`);let J=await gJ(Y);console.log("[probe] seal enterprise"),console.log(JSON.stringify(J,null,2));let Q=await u1(Y),K=await $V(Q,{documentLimit:20,stylePreferencesEndpoint:Y.seal.endpoints.approvalStylePreferences});console.log("[probe] approval context summary"),console.log(JSON.stringify({rules:K.rules.rules.length,hasPendingRuleDeletes:K.rules.hasPendingDeletes,documents:K.documents.articles.length,documentsTotal:K.documents.total,stylePreferences:K.stylePreferences.ok?"ok":`error: ${K.stylePreferences.error}`},null,2))}async function UX0($,I,U){let Y=I??g(U.options.corp)??($&&$!=="--corp"?$:void 0);await IX0({corpId:Y})}async function iu($,I,U,Y,J){if($==="count"){await F0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}if($==="list"){if(O0(J.options.count)){await F0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}let Q=n0(J.options.limit),K=n0(J.options.offset);if(O0(J.options.summary)){await F0("seal_approval_rules_list",U,Y,{fields:Kz0,limit:Q,offset:K},V0(J.options));return}let q=await zI("seal_approval_rules_list",U,Y,{limit:Q,offset:K});qz0(q,O0(J.options.full)===!0),B0(q);return}if($==="clear"){let Q=O0(J.options.yes)===!0,K=O0(J.options.dryRun)??O0(J.options["dry-run"])??!Q;if(!Q&&!K)throw s8("Refusing to clear rules without --yes. Use --dry-run to preview.",`seal-use rules clear --corp ${Y.id} --dry-run`);let q=await zI("seal_approval_rules_clear",U,Y,{dryRun:K,recode:O0(J.options.recode)});if(!Q&&K&&q&&typeof q==="object"){B0({...q,nextCommand:`seal-use rules clear --corp ${Y.id} --yes`},V0(J.options));return}B0(q,V0(J.options));return}if($==="versions"){await F0("seal_approval_rule_versions_list",U,Y,{},V0(J.options));return}if($==="version"){let Q=I??g(J.options.version);if(!Q)throw Error("Usage: seal-use rules version ");await F0("seal_approval_rule_version_get",U,Y,NH(Q),V0(J.options));return}if($==="get"){await F0("seal_approval_rule_get",U,Y,{...Iz0(g(J.options.version)),code:g(J.options.code),runtimeId:g(J.options.runtimeId)??g(J.options["runtime-id"]),recordId:g(J.options.recordId)??g(J.options["record-id"])},V0(J.options));return}if($==="search"){let Q=I??g(J.options.query);if(!Q)throw Error("Usage: seal-use rules search [--version ]");await F0("seal_approval_search",U,Y,{keywords:[Q],areas:["rules"],maxResults:n0(J.options.maxResults),contextLines:n0(J.options.contextLines),refresh:O0(J.options.refresh),snippetOnly:O0(J.options.snippetOnly)??O0(J.options["snippet-only"]),maxChars:n0(J.options.maxChars)??n0(J.options["max-chars"]),fields:V6(J.options.fields),...eZ0(g(J.options.version))},V0(J.options));return}if($==="pull"){let Q=g(J.options.version)??I,K=g(J.options.out)??g(J.options.file)??g(J.options.f);await F0("seal_approval_rules_pull",U,Y,{version:Q,out:K},V0(J.options));return}if($==="push"){let Q=g(J.options.file)??g(J.options.f)??I,K=O0(J.options.yes)===!0,q=O0(J.options.dryRun)??O0(J.options["dry-run"])??!K,H=O0(J.options.publish),G=g(J.options.versionName)??g(J.options["version-name"]),W=await zI("seal_approval_rules_push",U,Y,{file:Q,dryRun:q,confirm:K,publish:H,versionName:G});if(!K&&q&&W&&typeof W==="object"){B0({...W,nextCommand:`seal-use rules push --file ${Q??"./rules.local.json"} --corp ${Y.id} --yes${H?" --publish":""}`},V0(J.options));return}B0(W,V0(J.options));return}if($==="lint"){await F0("seal_approval_rules_lint",U,Y,{file:g(J.options.file)??g(J.options.f),linter:g(J.options.linter),version:g(J.options.version),code:g(J.options.code),ruleId:g(J.options.rule)??I,minScore:n0(J.options.minScore)??n0(J.options["min-score"]),level:g(J.options.level),summary:O0(J.options.summary)},V0(J.options));return}if($==="map"){let Q=g(J.options.version)??I,K=g(J.options.code)??g(J.options.rule),q=Cz0(Y.id,Q);if(!q){let G=Q?`version '${Q}'`:"latest version";B0({error:`No local rule mapping found for enterprise '${Y.name}' (${Y.id}) ${G}. Run 'seal-use corps sync-test --yes' to synchronize and generate mapping snapshots.`,corpId:Y.id,version:Q??"latest"},V0(J.options));return}let H=_z0(q.ruleMapping,K);B0({corpId:Y.id,syncedAt:q.syncedAt,source:q.source,target:q.target,versionMapping:q.versionMapping,totalRules:q.ruleMapping.length,matchedRules:H.length,rules:H},V0(J.options));return}throw Error(`Unknown rules command: ${$??""}. Available: count, list, clear, versions, version, get, search, lint, pull, push, map. Run 'seal-use help' for available commands.`)}import{homedir as tG1}from"node:os";import{join as aG1}from"node:path";import{spawn as cG1,execFileSync as dG1}from"node:child_process";import{existsSync as pD,mkdirSync as mG1,readFileSync as bu,rmSync as e8,writeFileSync as cD}from"node:fs";import{join as nu}from"node:path";async function XI($,I,U={}){switch($){case"run":await oG1(I);return;case"start":return YX0(I);case"stop":case"kill":case"down":case"shutdown":return JX0(I,U);case"restart":return JX0(I,{quiet:!0}),YX0(I);case"logs":case"log":return lG1(I,U.maxLines);case"status":case void 0:return hJ(I);default:throw Error("Usage: seal-use service ")}}function hJ($){let I=mD($),U=pu($),Y=dD(I),J=Y?QX0(Y,$.appRoot):!1;if(!J){if(Y)e8(I,{force:!0});if(pD(U))e8(U,{force:!0})}let Q;if(J&&pD(U))try{Q=JSON.parse(bu(U,"utf8"))}catch{}let K=$.port??Q?.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):iD),q=$.host??Q?.host??(process.env.HOST?process.env.HOST:bD),H=$.version??Q?.version;return{running:J,pid:J?Y:void 0,version:H,port:K,host:q,url:J?`http://${q}:${K}`:void 0,appRoot:$.appRoot,stateDir:$.stateDir,pidFile:I,logFile:BH($)}}function lG1($,I=50){let U=BH($);if(!pD(U))return{logFile:U,lines:[],totalLines:0};let J=bu(U,"utf8").split(` +`).filter(Boolean),Q=J.slice(-I);return{logFile:U,lines:Q,totalLines:J.length}}async function oG1($){let I=mD($),U=pu($),Y=BH($);KX0($.stateDir);let J=$.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):iD),Q=$.host??(process.env.HOST?process.env.HOST:bD);cD(I,`${process.pid} +`,{mode:384}),cD(U,JSON.stringify({pid:process.pid,port:J,host:Q,version:$.version,startedAt:new Date().toISOString()},null,2),{mode:384}),yJ(Y,`service starting on http://${Q}:${J} pid=${process.pid}`);let K=null;try{K=await nD({port:J,host:Q,silent:!0}),yJ(Y,`service listening pid=${process.pid}`)}catch(H){if(yJ(Y,`service failed to bind port ${J}: ${H instanceof Error?H.message:String(H)}`),dD(I)===process.pid)e8(I,{force:!0}),e8(U,{force:!0});throw H}let q=()=>{if(K)K.close(),K=null;if(dD(I)===process.pid)e8(I,{force:!0}),e8(U,{force:!0});yJ(Y,`stopped pid=${process.pid}`)};await new Promise((H)=>{let G=!1,W=()=>{if(G)return;G=!0,q(),process.off("SIGTERM",W),process.off("SIGINT",W),H()};process.once("SIGTERM",W),process.once("SIGINT",W)})}function YX0($){KX0($.stateDir);let I=hJ($);if(I.running)return I;let U=$.launcher??{command:process.execPath,args:[$.entryFile]},Y=[...U.args??[],"service","run"];if($.port)Y.push("--port",String($.port));if($.host)Y.push("--host",String($.host));let J=cG1(U.command,Y,{cwd:$.appRoot,detached:!0,stdio:["ignore","ignore","ignore"],env:process.env});J.unref();let Q=mD($);return cD(Q,`${J.pid} +`,{mode:384}),yJ(BH($),`started pid=${J.pid}`),{started:!0,...hJ($)}}function JX0($,I={}){let U=mD($),Y=pu($),J=dD(U);if(!J||!QX0(J,$.appRoot))return e8(U,{force:!0}),e8(Y,{force:!0}),I.quiet?void 0:{stopped:!1,reason:"not running"};return process.kill(J,"SIGTERM"),e8(U,{force:!0}),e8(Y,{force:!0}),yJ(BH($),`stop requested pid=${J}`),I.quiet?void 0:{stopped:!0,pid:J}}function QX0($,I){if(!rG1($))return!1;try{let U=dG1("ps",["-p",String($),"-o","command="],{encoding:"utf8"});return(U.includes(I)||U.includes("seal-use")||U.includes("src/cli.ts"))&&U.includes("service")&&U.includes("run")}catch{return!1}}function rG1($){try{return process.kill($,0),!0}catch{return!1}}function mD($){return nu($.stateDir,"service.pid")}function pu($){return nu($.stateDir,"service.json")}function BH($){return nu($.stateDir,"service.log")}function dD($){if(!pD($))return;let I=Number(bu($,"utf8").trim());return Number.isInteger(I)&&I>0?I:void 0}function KX0($){mG1($,{recursive:!0,mode:448})}function yJ($,I){cD($,`${new Date().toISOString()} ${I} +`,{flag:"a",mode:384})}var cu=aG1(tG1(),".config","seal-use");async function du($,I,U){let Y=U?n0(U.options.port)??n0(U.options.p):void 0,J=U?g(U.options.host)??g(U.options.h):void 0,Q=U?n0(U.options.lines)??n0(U.options.n):void 0,K=await XI($,{appRoot:I.appRoot,entryFile:I.entryFile,stateDir:cu,version:Y1,launcher:I.launcher,port:Y,host:J},{maxLines:Q});if(K!==void 0)B0(K)}import{existsSync as sG1,readFileSync as qX0}from"node:fs";async function HX0($,I,U,Y,J){if($==="batch-records"||$==="records"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation batch-records ");await F0("seal_simulation_batch_records_get",U,Y,{batchId:Q,query:g(J.options.query)},V0(J.options));return}if($==="create"||$==="run"){let Q=g(J.options.mode)??g(J.options.sourceSystem)??g(J.options["source-system"])??"hosecloud",K=Q==="material-pack"?"material_pack":Q,q=g(J.options.schemaConfig)??g(J.options["schema-config"]),H=q?JSON.parse(qX0(q,"utf8")):void 0,G=g(J.options.input),W=G?JSON.parse(qX0(G,"utf8")):U$(J.json),w=g(J.options.packageId)??g(J.options["package-id"]),Z=V6(J.options.packageIds)??V6(J.options["package-ids"])??(w?[w]:void 0),V=V6(J.options.flowIds)??V6(J.options["flow-ids"])??V6(J.options.documentSn)??V6(J.options["document-sn"]),X=g(J.options.signKey)??g(J.options["sign-key"])??g(J.options.integration),L=O0(J.options.noWait)??O0(J.options["no-wait"]);await F0("seal_simulation_batch_create",U,Y,{mode:K,sourceSystem:K,flowIds:V,documentSn:V,rejectNodeName:g(J.options.rejectNode)??g(J.options["reject-node"])??null,thinkingDepthOverride:g(J.options.thinkingDepth)??g(J.options["thinking-depth"]),skipInvoiceGeneration:O0(J.options.skipInvoiceGeneration)??O0(J.options["skip-invoice-generation"]),skipExpenseExtraction:O0(J.options.skipExpenseExtraction)??O0(J.options["skip-expense-extraction"]),disableAttachmentCache:O0(J.options.disableAttachmentCache)??O0(J.options["disable-attachment-cache"]),signKey:X,packageIds:Z,packageId:w,templateId:g(J.options.templateId)??g(J.options["template-id"]),schemaConfig:H,requestIds:V6(J.options.requestIds)??V6(J.options["request-ids"]),workflowTypeId:g(J.options.workflowTypeId)??g(J.options["workflow-type-id"]),flowStatusList:V6(J.options.flowStatusList)?.map(Number)??V6(J.options["flow-status-list"])?.map(Number),businessCodes:V6(J.options.businessCodes)??V6(J.options["business-codes"]),documentType:g(J.options.documentType)??g(J.options["document-type"]),startTime:n0(J.options.startTime)??n0(J.options["start-time"]),endTime:n0(J.options.endTime)??n0(J.options["end-time"]),status:V6(J.options.status),limit:n0(J.options.limit),noWait:L,rawParams:W},V0(J.options));return}if($==="wait"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation wait [--timeout 10m] [--poll-interval 2s]");await F0("seal_simulation_batch_wait",U,Y,{batchId:Q,timeout:g(J.options.timeout),pollInterval:g(J.options.pollInterval)??g(J.options["poll-interval"])},V0(J.options));return}if($==="status"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation status ");await F0("seal_simulation_batch_status",U,Y,{batchId:Q},V0(J.options));return}if($==="clean"||$==="delete"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation clean ");await F0("seal_simulation_batch_clean",U,Y,{batchId:Q},V0(J.options));return}if($==="specifications"){let Q=I??g(J.options.integration)??g(J.options.signKey)??g(J.options["sign-key"]);await F0("seal_simulation_specifications_list",U,Y,{signKey:Q},V0(J.options));return}if($==="approval-definitions"||$==="definitions"){await F0("seal_simulation_feishu_approval_definitions_list",U,Y,{},V0(J.options));return}if($==="list"){await F0("seal_simulation_batches_list",U,Y,{limit:n0(J.options.limit)},V0(J.options));return}if($==="get"){let Q=I??g(J.options.batchId)??g(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation get ");await F0("seal_simulation_batch_get",U,Y,{batchId:Q},V0(J.options));return}if($==="templates"){await F0("seal_simulation_templates_get",U,Y,{},V0(J.options));return}if($==="integrations"){await F0("seal_simulation_integrations_get",U,Y,{},V0(J.options));return}if($==="package-upload"){let Q=I??g(J.options.file);if(!Q)throw Error("Usage: seal-use simulation package-upload <材料包.zip>");if(!sG1(Q))throw Error(`File not found: ${Q}`);await F0("seal_simulation_material_package_upload",U,Y,{filePath:Q},V0(J.options));return}throw Error(`Unknown simulation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{existsSync as BX0}from"node:fs";import{join as lD}from"node:path";import{existsSync as mu,mkdirSync as NX0,rmSync as WW1,writeFileSync as wW1}from"node:fs";import{homedir as MX0}from"node:os";import{dirname as VW1,join as lu}from"node:path";var GX0=`--- name: seal-use description: "v0.10.17: Use for Seal Use first-time enterprise onboarding, Hose/合思 or Seal-native authentication, assistance links and browser cURL intake, plus tenant approval operations, diagnosis, simulation, rules, users, configuration, and search." metadata: @@ -441,6 +445,16 @@ seal-use corps list - When returning ANY authorization, login, or delegation links (e.g. 合思授权链接, Seal授权链接/委托链接), ALWAYS provide BOTH a code block (\` \`\`\`text ... \`\`\` \`) for easy copying without accidental default browser redirection, AND a clickable hyperlink. - For delegation links, always prefer \`seal-use delegation create\` over \`users delegation\` for link generation to ensure persistent token tracking. - Never treat “Seal 协助/Seal 授权/委托” as a 合思授权入口. They are different links and must use different commands. +- For approval run links (\`seal-use approval-runs url [--corp ]\`): + - Always default to returning the clean deep link (\`type: 'deep_link'\`), which contains no credentials and requires no sensitive access. Users in their authorized browsers open it directly with zero token leakage risk. + - ONLY provide an SSO link (\`--sso\`) when the user explicitly requests an unauthenticated/cross-browser/no-login/免密 link and acknowledges risks. + - When returning an \`--sso\` link, the Agent MUST: + 1. Declare the 4 mandatory security disclosures: + - 身份主体(Identity attribution: name and admin status) + - 权限范围(Full Seal AI operation permissions under this user) + - 时效性(2-hour provisional ticket TTL, 30-day session after opening) + - 安全与防扩散边界(No Hose main system access, strictly internal, never share to public/external groups) + 2. Provide BOTH a code block (\` \`\`\`text ... \`\`\` \`) and a clickable hyperlink. - In the default stateless mode, every enterprise command requires \`--corp \`. In stateful mode, omitting \`--corp\` uses the configured default enterprise and is unsafe for an explicitly named enterprise. - For an explicitly named enterprise, first resolve it with \`seal-use corps list\`, then pass its exact \`corpId\` to every command. After creation, verify the returned URL host matches that enterprise's Seal tenant; if the host is the current/default tenant or cannot be verified, do not present the link as the target enterprise's link. - 生产规则变更建议优先遵循“生产改草稿 -> 同步测试企业 -> 真实单据模拟验证 -> 生产发布投产”安全闭环;Agent 应主动提示并建议在测试环境中验证,但最终操作权与决策权在用户手中,绝不代替用户做决定。若用户明确要求直接在生产环境发布,尊重用户意图并严格执行。 @@ -718,7 +732,7 @@ Important nuance: - This is a bad-case pattern, not a general rule that every amount-total dispute is caused by \`pre_analysis\`. - Use it when the current trace shows recognized amounts being excluded downstream or duplicate attachments producing inconsistent conclusions. -`;var ZX0="# Seal Use CLI Reference\n\nRun from any directory after installing the global CLI:\n\n```bash\nseal-use \n```\n\nEnterprise config lookup:\n\n- If `SEAL_USE_ENTERPRISES_DIR` is set, only that directory is loaded.\n- Otherwise the user-level `~/.config/seal-use/enterprises` directory is loaded. A configured\n `testEnterprisesDir` is loaded first for test-tenant workflows. The current working directory's\n `./enterprises` directory is not loaded implicitly.\n- Set `SEAL_USE_ENTERPRISES_DIR` to use one explicit directory instead. Legacy\n `~/.config/seal-home/enterprises` files are migrated to the primary directory when possible.\n\nEnterprise selection is stateless by default. Commands that access an enterprise require\n`--corp ` unless stateful mode is explicitly enabled:\n\n```bash\nseal-use config mode stateful --corp \nseal-use corps switch \nseal-use config mode stateless\n```\n\nThe global mode is stored in `~/.config/seal-use/config.json`; set `SEAL_USE_CONFIG_FILE` to\noverride that path. The legacy `current-corp` file is not read.\n\n## Stream & Exit Code Contract\n\n- **`stdout`**: Pure, deterministic JSON for machine/Agent parsing.\n- **`stderr`**: Diagnostics, probing logs, and **Next-Step Command Suggestions** with the stable prefix `👉 Next action: seal-use ...`.\n- **`Exit Code`**: `0` on success; `1` runtime/upstream failure, `2` usage/argument error, `10` explicit destructive-operation confirmation required, `11` missing/invalid authentication, and `12` output protection requiring a compact/file/query alternative.\n\n## Top-Level Commands\n\n```bash\nseal-use version\nseal-use config paths\nseal-use config get\nseal-use config mode [--corp ]\nseal-use config test-dir [|--clear]\nseal-use config lint [--linter ] [--min-score ]\nseal-use rules count [--corp ]\nseal-use rules list [--summary] [--count] [--limit 20] [--offset 0] [--corp ]\nseal-use rules clear [--corp ] [--dry-run|--yes]\nseal-use rules versions [--corp ]\nseal-use rules version [--corp ]\nseal-use rules get --corp --version --code '#0038'\nseal-use rules get --corp --record-id --runtime-id rule-205\nseal-use rules search [--version ] [--maxResults 20] [--corp ]\nseal-use rules pull [--corp ] [--version ] [--out ]\nseal-use rules lint [--file ] [--corp ] [--linter ] [--version ] [--code ] [--min-score ] [--summary]\nseal-use rules push [--file ] [--corp ] [--publish] [--version-name ] [--dry-run|--yes]\nseal-use rules map [--corp ] [--version ] [--code ]\nseal-use service [--port 8787] [--host 127.0.0.1] [--lines 50]\nseal-use http [--port 8787] [--host 127.0.0.1]\nseal-use serve [--port 8787]\nseal-use update [--check] [--force] [--version ]\nseal-use update check\nseal-use update changelog [--limit ]\nseal-use changelog [--limit ]\nseal-use mcp\nseal-use mcp config\nseal-use mcp-config\nseal-use skill dump\nseal-use skill install [--dir |--local]\nseal-use skill status\nseal-use openapi\nseal-use probe []\nseal-use tools list\nseal-use corps list [--corp ]\nseal-use corps current [--corp ]\nseal-use corps switch \nseal-use corps mark --env [--confirm]\nseal-use corps bind-test [--confirm] [--force]\nseal-use corps unbind-test [] [--confirm]\nseal-use corps sync-test [] [--dry-run] [--yes] [--version-name ]\nseal-use corps add-hose --json '{\"name\":\"企业名称\",\"domain\":\"https://app.ekuaibao.com\",\"appKey\":\"...\",\"appSecurity\":\"...\",\"proxyStaffBizId\":\"corpId:staffId\"}'\nseal-use corps add-seal --json '{\"sealUrl\":\"https://tenant.sealai.cc\",\"token\":\"seal-bearer-token\"}'\nseal-use corps add-link [--name ] [--overwrite]\nseal-use auth diagnose [--corp ]\nseal-use auth hose-link [--corp ] [--expire 7200]\nseal-use delegation list [--corp ]\nseal-use delegation create [--note ] [--from-link ] [--corp ]\nseal-use delegation revoke [--corp ]\nseal-use users create --name --phone [--dept ] [--corp ]\nseal-use users search [--corp ]\nseal-use users delegation [--note ] [--corp ]\nseal-use users activate [--corp ]\nseal-use users reset-password [--corp ]\nseal-use users get [--corp ]\nseal-use users delete [--corp ]\nseal-use contacts departments [] [--corp ]\nseal-use contacts children [--corp ]\nseal-use contacts users [--corp ]\nseal-use contacts sync-time [--corp ]\nseal-use data expenses --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]\nseal-use data invoices --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]\nseal-use llm config [--corp ]\nseal-use llm providers [--corp ]\nseal-use permissions available [--corp ]\nseal-use permissions configs [--corp ]\nseal-use billing status [--corp ]\nseal-use billing plans [--corp ]\nseal-use billing features [--corp ]\nseal-use webhook ready [<材料包.zip>] [--webhook ] [--corp ]\nseal-use webhook status [<材料包.zip>] [--corp ]\nseal-use webhook list [--query ] [--show-secret] [--corp ]\nseal-use webhook get|find [--show-secret] [--corp ]\nseal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]\nseal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]\nseal-use webhook delete [--yes|--dry-run] [--corp ]\nseal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--corp ]\nseal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook ] [--corp ]\nseal-use webhook replay [--sn ] [--webhook ] [--source-corp ] [--sn-suffix ] [--dry-run] [--corp ]\nseal-use deploy hosecloud requirements [--corp ]\nseal-use deploy hosecloud list [--corp ]\nseal-use deploy hosecloud get [--corp ]\nseal-use deploy hosecloud status [--corp ]\nseal-use deploy hosecloud configure --json '{...}' [--dry-run] [--corp ]\nseal-use deploy hosecloud sync [] [--auto] [--corp ]\nseal-use preference get [--corp ]\nseal-use preference decision update --json '{\"explicitApprove\":\"...\"}' [--dry-run] [--corp ]\nseal-use preference thinking-depth set --default [--dry-run] [--corp ]\nseal-use preference thinking-depth policies list [--corp ]\nseal-use preference thinking-depth policies upsert --json '{...}' [--dry-run] [--corp ]\nseal-use preference thinking-depth policies remove [--dry-run] [--corp ]\nseal-use context [--ruleVersion ] [--documentLimit 50] [--corp ]\nseal-use source config [--corp ]\nseal-use tool [--corp ] [--json '{\"key\":\"value\"}']\nseal-use approval-runs summary --corp [--date YYYY-MM-DD] [--timezone Asia/Shanghai]\nseal-use approval-runs stats --corp [--since 3months] [--dedupe-by sourceDocumentSN|sourceDocumentId|id]\nseal-use analytics insight --corp [--start-date ] [--end-date ] [--limit ]\nseal-use approval-runs count --corp [--status APPROVED]\nseal-use approval-runs export --corp [--start ] [--end ] [--limit ] [--downloads] [--out ]\nseal-use approval-runs search --corp [--query text] [--limit 20] [--includeBridge true]\nseal-use approval-runs get --corp [--fields metadata|document.fields,result.summary] [--output-file file.json]\nseal-use approval-runs attachments --corp \nseal-use approval-runs attachments download [--all] [--name ] [--out-dir ] --corp \nseal-use approval-runs result --corp [--summary]\nseal-use approval-runs url --corp \nseal-use approval-runs url --corp \nseal-use approval-runs url --sourceDocumentSN --corp \nseal-use approval-runs bridge --corp [--sourceDocumentSN ]\nseal-use simulation batch-records --corp \nseal-use simulation create --mode hosecloud --flow-ids \"B26017701,B26022501\" [--reject-node 财务] [--thinking-depth default|medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--no-wait] --corp \nseal-use simulation create --mode material_pack --package-ids [--template-id conference_reimbursement_v1] [--schema-config file.json] --corp \nseal-use simulation create --source-system weaver --request-ids \"req-01,req-02\" --corp \nseal-use simulation status --corp \nseal-use simulation wait [--timeout 10m] [--poll-interval 2s] --corp \nseal-use simulation clean --corp \nseal-use simulation specifications [--integration ] --corp \nseal-use simulation approval-definitions --corp \nseal-use simulation list [--limit 50] --corp \nseal-use simulation get --corp \nseal-use simulation templates --corp \nseal-use simulation integrations --corp \nseal-use simulation package-upload <材料包.zip> --corp \n```\n\n## CLI Command Overview\n\n`seal-use version` returns:\n\n```json\n{\n \"name\": \"seal-use\",\n \"version\": \"\"\n}\n```\n\n`seal-use service ` manages the persistent background service daemon with embedded HTTP server (serving `/docs`, `/openapi.json`, and `POST /api/cli`). `status` returns the PID, version, host, port, active HTTP URL, state directory, PID file, and log file.\n\n`seal-use update` updates the git checkout, runs `bun install`, and restarts the local service if it was running.\n\nIdentity and session:\n\n- `seal-use auth diagnose --corp `\n- `seal-use corps list`\n- `seal-use corps current`\n\nRead-only discovery:\n\n- `seal-use contacts departments|children|users|sync-time --corp ` queries the tenant's organization tree and last directory sync time.\n- `seal-use data expenses|invoices --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]` queries paginated raw expense or invoice records.\n- `seal-use analytics insight --corp [--start-date ] [--end-date ] [--limit ]` queries risk-tag statistics; omitted dates use the current month.\n- `seal-use context --corp [--ruleVersion ] [--documentLimit 50]` aggregates rules, knowledge documents, and style preferences.\n- `seal-use source config --corp ` resolves the live source-system configuration without changing it.\n\nTest Enterprise Binding & Staging Synchronization:\n\n- **1-to-1 Association**: One production enterprise can only bind at most one test enterprise (`corps bind-test `). Multi-tier chaining is rejected.\n- **Marking & Rigorous Confirmation**: Marking (`corps mark --env `) and binding require explicit `--confirm`. Without confirmation, the CLI blocks with exit code `10` (`confirmationRequired`). Overwriting existing bindings requires `--force`.\n- **Production Safety Guarantee (`corps sync-test`)**:\n - In the **Production Enterprise**: Rules remain strictly in **draft state** without publishing any live version.\n - In the **Test Enterprise**: Style preferences (`decisionPreferences`, `thinkingDepthPreference`) are updated to match production, test draft rules are cleared and populated with production draft rules, recoded, and immediately **published as a new official version** in the test tenant (`--version-name `).\n - **Semantic Version Naming**: Defaults to `Sync from [Prod v · #]` tracking production baseline version and test draft iteration without redundant date strings.\n - **Rule Mapping & Local Snapshot**: Returns `versionMapping` and `ruleMapping` in CLI stdout and saves persistent snapshot to `~/.config/seal-use/mappings/-v.json` and `-latest.json`.\n - `--dry-run` previews the full preference diff, version mapping plan, and rule sync plan without sending mutations. Execution requires `--yes`.\n\nApproval rule maintenance:\n\n- `seal-use rules count [--corp ]`\n- `seal-use rules list --summary [--corp ]`\n- `seal-use rules map [--corp ] [--version ] [--code ]` (reads local sync rule mapping snapshot)\n- `seal-use rules pull [--corp ] [--version ] [--out ]`\n- `seal-use rules lint [--file ] [--corp ] [--linter ] [--version ] [--code ] [--min-score ] [--summary]`\n- `seal-use rules push [--file ] [--corp ] [--publish] [--version-name ] [--dry-run|--yes]` incrementally applies the local file: matched IDs are updated, missing local IDs are created, and remote IDs absent from the file are deleted. It does not clear/recreate the whole draft or recode it. Run `--dry-run` first; a local file exported with `rules pull` is preferred.\n- `seal-use rules clear [--corp ] [--dry-run|--yes]`\n\nRule identity and versioning:\n\n- `rules list` and `rules pull` read the current **draft** rule set. Their `code` values belong to the draft code space.\n- A published version has its own snapshot and code space. Publishing can recode rules, so a published `code` may differ from the draft `code`, and codes can shift again after later edits and publishes.\n- Do not use a draft `#NN` as a cross-version identifier. For current draft work, prefer the stable rule `id`; for historical behavior, select the published `version` and locate the rule by its text/context or runtime rule ID from the approval run.\n- `rules get --version ... --code ...` interprets `code` inside that selected published version, while `rules get --record-id ... --runtime-id ...` resolves the version recorded on the run.\n\nApproval run lightweight queries:\n\n- `seal-use approval-runs get --corp --fields metadata`\n- `seal-use approval-runs get --corp --summary`\n- `seal-use approval-runs pick --corp --sn <单号> --batch --latest`\n- `seal-use approval-runs document-summary --corp `\n- `seal-use approval-runs cited-rules --corp `\n- `seal-use approval-runs get --corp --fields document.fields,result.summary`\n- `seal-use approval-runs attachments --corp --summary`\n- `seal-use approval-runs attachments download [--all] [--name ] [--out-dir ] --corp `\n- `seal-use approval-runs result --corp --summary`\n\nApproval knowledge documents & style:\n\n- `seal-use tool seal_approval_documents_list --corp --json '{\"limit\":50}'`\n- `seal-use tool seal_approval_document_get --corp --json '{\"documentId\":\"doc-id\"}'`\n- `seal-use tool seal_approval_document_create --corp --json '{\"title\":\"标题\",\"purpose\":\"用途\",\"content\":\"Markdown 内容\",\"contentType\":\"policy\",\"scenarios\":[\"audit\"]}'`\n- `seal-use tool seal_approval_document_update --corp --json '{\"documentId\":\"doc-id\",\"enabled\":false}'`\n- `seal-use tool seal_approval_delete_document --corp --json '{\"documentId\":\"doc-id\"}'` (删除前必须重新读取并确认)\n- `seal-use rules get --corp --version --code '#0038'`\n- `seal-use rules get --corp --record-id --runtime-id rule-205`\n\nWebhook integrations:\n\n- `seal-use webhook ready [<材料包.zip|信息表.xlsx>] [--webhook ] [--corp ]`\n- `seal-use webhook status [<材料包.zip|信息表.xlsx>] [--corp ]`\n- `seal-use webhook list [--query ] [--show-secret] [--corp ]`\n- `seal-use webhook get|find [--show-secret] [--corp ]`\n- `seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]`\n- `seal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]`\n- `seal-use webhook delete [--yes|--dry-run] [--corp ]`\n- `seal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] --corp `\n- `seal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook ] --corp `\n- `seal-use webhook replay [--sn ] [--webhook ] [--source-corp ] [--sn-suffix ] [--dry-run] [--corp ]` (别名 `seal-use approval-runs replay ...`;从历史单据汲取结构化表单与明细并清洗规范化字段类型,重新通过 Webhook 触发审批)\n\nWebhook writes read the current AI approval config and POST the merged full config back to `api/v1/agent/ai-approval/config`, preserving non-Webhook integrations. List/get mask `secret` by default; add returns the generated secret once. Each Webhook can also store a mutable `materialPackFilePolicy` with `minFileSizeBytes`, optional `maxFileSizeBytes`, and `allowedExtensions`. Update is a patch: omitted policy fields are retained; `allowedExtensions` replaces the complete list; `--clear-max-file-size` removes the upper bound.\n\nAll supported configuration writes accept `--dry-run`: rules clear/push, `corps sync-test`, preference updates, thinking-depth policy changes, HoseCloud configure, and Webhook add/update/delete. Preview mode performs read-only discovery and returns JSON with `preview: true`, the exact `targetUrl`, a redacted `changesDiff` (`before`/`after`), and `impactCount`. It never sends the mutation request and does not require `--yes`; use the same command with `--yes` only after reviewing the preview.\n\nApproval runs, simulations, and Langfuse bridge:\n\n- `seal-use approval-runs search --corp [--query ] [--limit 20]`\n- `seal-use approval-runs summary --corp [--date YYYY-MM-DD] [--timezone Asia/Shanghai]`\n- `seal-use approval-runs bridge --corp [--sourceDocumentSN ]`\n- `seal-use simulation create --mode hosecloud --flow-ids ... --no-wait --corp ` returns immediately with an `asyncTicket` (creation is non-blocking by default for compatibility).\n- `seal-use simulation status --corp ` performs one non-blocking status check and returns `QUEUED`/`RUNNING`/`COMPLETED`/`FAILED`-style state plus counters.\n- `seal-use simulation approval-definitions --corp ` lists available Feishu approval definitions so an `approvalCode` can be selected before creating a batch.\n- `seal-use simulation wait --corp `\n- `seal-use simulation clean --corp `\n- `seal-use simulation list --corp `\n- `seal-use simulation get --corp `\n- `seal-use simulation batch-records --corp `\n- `seal-use simulation templates --corp `\n- `seal-use simulation integrations --corp `\n\n## Common Examples\n\nAdd and verify a Hose enterprise:\n\n```bash\nseal-use corps add-hose --json '{\"name\":\"企业名称\",\"domain\":\"https://app.ekuaibao.com\",\"appKey\":\"...\",\"appSecurity\":\"...\",\"proxyStaffBizId\":\"corpId:staffId\"}'\nseal-use auth diagnose --corp \n```\n\nForce-write a Hose config without verification:\n\n```bash\nseal-use corps add-hose --json '{\"name\":\"企业名称\",\"domain\":\"https://app.ekuaibao.com\",\"appKey\":\"...\",\"appSecurity\":\"...\",\"proxyStaffBizId\":\"corpId:staffId\",\"force\":true}'\n```\n\nDiagnose auth failures:\n\n```bash\nseal-use auth diagnose --corp \n```\n\nThe diagnostic stages are `hose.openapi`, `hose.provisional`, `seal.sso`, and `seal.whoami`. Tokens are omitted from output.\n\nSearch approval content:\n\n```bash\nseal-use tool seal_approval_search --corp --json '{\"keywords\":[\"关键词\"],\"matchMode\":\"any\",\"maxResults\":20}'\n```\n\nGet aggregated approval context:\n\n```bash\nseal-use tool seal_approval_context_get --corp --json '{\"documentLimit\":20}'\n```\n\nCreate a draft approval rule:\n\n```bash\nseal-use tool seal_approval_rule_create --corp --json '{\"description\":\"规则描述\",\"scope\":\"适用场景\",\"strictness\":\"SHOULD_FOLLOW\"}'\n```\n\nUpdate an approval document:\n\n```bash\nseal-use tool seal_approval_document_update --corp --json '{\"documentId\":\"doc-id\",\"content\":\"Markdown 内容\"}'\n```\n\nSummarize one local date:\n\n```bash\nseal-use approval-runs summary --corp --date 2026-06-09 --timezone Asia/Shanghai --limit 100\n```\n\nFind a run and include Langfuse bridge rows:\n\n```bash\nseal-use approval-runs search --corp --query --limit 20 --includeBridge true\n```\n\nResolve Langfuse trace/session hints:\n\n```bash\nseal-use approval-runs bridge --corp --sourceDocumentSN \n```\n\n模拟测试批次(模拟发布闭环)创建与查询:\n\n```bash\n# 合思指定单号: 创建批次(响应只含 batchId)\nseal-use simulation create --mode hosecloud --flow-ids \"B26017701,B26022501\" --reject-node 财务 --thinking-depth medium --skip-invoice-generation --corp \n# 材料包导入: 先上传材料包 ZIP(服务端解析并返回 schemaConfig), 再用返回的 id 发起\nseal-use simulation package-upload 测试材料包.zip --corp \nseal-use simulation create --mode material_pack --package-ids --template-id conference_reimbursement_v1 --schema-config schema.json --corp \n# 预留: 其他模式参数通过 --json 透传(如时间范围 startTime/endTime)\nseal-use simulation create --mode hosecloud --flow-ids \"B26017701\" --json '{\"startTime\":0,\"endTime\":0}' --corp \n# 创建后轮询批次状态与记录\nseal-use simulation list --limit 50 --corp \nseal-use simulation get --corp \nseal-use simulation batch-records --corp \nseal-use simulation templates --corp \nseal-use simulation integrations --corp \n```\n\n## Write Operation Payloads\n\nCreate a rule:\n\n```json\n{\n \"description\": \"规则描述\",\n \"scope\": \"适用场景\",\n \"strictness\": \"MUST_FOLLOW | SHOULD_FOLLOW | SUGGESTION\"\n}\n```\n\nUpdate a rule:\n\n```json\n{\n \"ruleId\": \"rule-id\",\n \"description\": \"可选\",\n \"scope\": \"可选\",\n \"strictness\": \"SHOULD_FOLLOW\"\n}\n```\n\nPublish a rule version:\n\n```json\n{\n \"versionName\": \"版本名称\"\n}\n```\n\nCreate a document:\n\n```json\n{\n \"title\": \"标题\",\n \"purpose\": \"用途\",\n \"content\": \"Markdown 内容\",\n \"contentType\": \"policy\",\n \"status\": \"published\",\n \"scenarios\": [\"audit\"],\n \"tags\": [\"标签\"]\n}\n```\n\n`contentType` 必须是 `document`、`video`、`pdf`、`feishu_doc` 或 `policy` 之一;`scenarios` 必填且至少包含一个 `fill`(智能填单)或 `audit`(智能审核)。这里的 `scenarios` 是产品能力开关,不是费用类别或业务场景名。\n\n知识文档支持通过 `seal_approval_delete_document` 删除,且 `corps sync-test` 会在按标题对账时删除测试企业中多余的文档;删除仍是破坏性写操作,必须在写入前重新读取并确认标题/ID。若只是暂时撤下内容,优先使用更新操作并设置 `enabled: false`。\n\nUpdate a document:\n\n```json\n{\n \"documentId\": \"doc-id\",\n \"title\": \"可选\",\n \"purpose\": \"可选\",\n \"content\": \"可选\",\n \"enabled\": true,\n \"scenarios\": [\"可选\"],\n \"tags\": [\"可选\"]\n}\n```\n\nUpdate style preferences:\n\n```json\n{\n \"tone\": \"可选\",\n \"language\": \"可选\",\n \"detailLevel\": \"可选\",\n \"outputFormat\": \"可选\",\n \"examples\": [\"可选\"],\n \"prohibitedPhrases\": [\"可选\"],\n \"customInstructions\": \"可选\"\n}\n```\n\n## Material Pack Workflow\n\nA **material pack** (材料包) is a ZIP file that bundles an Excel information sheet (`信息表.xlsx`) with attachments organised by document ID. It is the primary input to the Webhook-based AI approval ingestion pipeline.\n\n### ZIP structure convention\n\n```\n材料包.zip\n├── 信息表.xlsx ← must exist at ZIP root\n├── BX20260826003/ ← root dir name = documentId (or documentId@annotation)\n│ ├── 合同协议/\n│ │ └── 采购合同.pdf\n│ └── 支付凭证/\n│ └── 支付宝交易明细.pdf\n└── BX20260826004@重新提交v2/ ← @annotation is stripped when matching documentId\n └── 发票/\n └── 增值税专用发票.pdf\n```\n\n- The root directory name **must equal** the `documentId` **OR** start with `documentId@` (the `@` separates an optional annotation ignored during matching).\n- `信息表.xlsx` at the ZIP root is the only file not associated with any document directory.\n\n### Excel column convention\n\n| Column type | Naming | Purpose |\n|---|---|---|\n| Regular column | Any header (e.g. `会议编号`, `总金额`) | Standard document fields |\n| Attachment column | Header starts with `[附件]` (e.g. `[附件]合同协议`) | Declares attached files for this row |\n\n- The `[附件]` prefix is stripped to produce the field `label` sent to Seal.\n- The cell value contains full ZIP-relative path(s) to the declared files (multiple paths separated by newline, comma, or semicolon).\n- Example: column `[附件]合同协议`, cell value `BX20260826003/合同协议/采购合同.pdf`\n\n### Sheet → document level mapping\n\n| Excel sheet | Maps to |\n|---|---|\n| First sheet (main / 会议) | Root document `categoryFields` |\n| 费用明细表 (has `报销金额` column) | Per-row entries in `mingxi_list` |\n| 劳务明细 (has `姓名` column) | Per-person entries in `daoshi_list` |\n\n### Strict bidirectional validation\n\nBefore pushing or previewing, the system enforces:\n\n1. **Excel → ZIP**: Every path declared in an `[附件]` column cell **must** exist as a ZIP entry. Error: `Excel 声明的附件路径在 ZIP 中不存在: `\n2. **ZIP → Excel**: Every ZIP file (excluding `信息表.xlsx`) **must** be declared in exactly one `[附件]` column. Error: `ZIP 中的文件未在 Excel 任何 [附件] 列中声明: `\n3. **Document Directory Scope Isolation**: All attachments declared for a document `DOC_X` **must** reside in its own root directory (`DOC_X/` or `DOC_X@annotation/`). Cross-document references are strictly forbidden. Error: `单据「X」声明了跨单据或非本单据目录的附件路径: 。附件必须位于该单据自己的根目录...`\n4. **Strict Declaration Uniqueness**: A given ZIP file path **cannot** be declared more than once across the entire material pack (even within the same document across multiple rows or fields). If the same logical document is needed in multiple places, separate files must be placed in distinct paths. Error: `附件路径「」被重复声明了 N 次...`\n5. **Attachment file policy**: Every attachment except the root `信息表.xlsx` must satisfy the selected Webhook's minimum size, optional maximum size, and extension whitelist. The default minimum is 500 bytes; the default maximum is unlimited; the default whitelist includes common PDF, Office, text, email, and image formats. Error: `附件文件过小...` / `附件文件过大...` / `附件后缀不在白名单中...`\n6. **documentId ↔ ZIP root**: Every `documentId` in the Excel main sheet must have a matching ZIP root dir (exact match or `documentId@annotation`). Errors: `Excel 会议编号「X」在 ZIP 中找不到对应的根目录...` / `ZIP 根目录对应的编号「X」在信息表中找不到对应的会议编号`\n\nAll validation errors are collected and reported together in a single `MaterialPackValidationError`.\n\n### CLI usage\n\n```bash\n# Check environment readiness and optionally pre-validate the material pack\nseal-use webhook ready [--file ] [--corp ]\n\n# Dry-run: local parse & validation only, no network calls, returns preview JSON\nseal-use webhook material-pack preview --corp \n# Preview with temporary local policy overrides (comma-separated extensions)\nseal-use webhook material-pack preview --min-file-size 500 --max-file-size 20971520 --allowed-extensions .pdf,.xlsx,.docx --corp \n\n# Upload attachments and push documents via inbound Webhook\nseal-use webhook material-pack push [--webhook ] --corp \n# When there is exactly one webhook channel, --webhook can be omitted (auto-locked)\n```\n\n### Attachment file policy configuration\n\nThe policy is stored per inbound Webhook integration and is applied before any attachment upload or document push. A failed check stops the entire material-pack flow. The policy is intentionally mutable: after an authorized configuration change, retrying the same push reads the saved policy again.\n\nDefault configuration:\n\n```json\n{\n \"minFileSizeBytes\": 500,\n \"maxFileSizeBytes\": null,\n \"allowedExtensions\": [\n \".pdf\", \".xls\", \".xlsx\", \".csv\", \".doc\", \".docx\", \".ppt\", \".pptx\",\n \".txt\", \".rtf\", \".odt\", \".ods\", \".odp\", \".jpg\", \".jpeg\", \".png\",\n \".gif\", \".bmp\", \".webp\", \".heic\", \".eml\", \".msg\"\n ]\n}\n```\n\n`null` or an omitted `maxFileSizeBytes` means no per-file upper bound. Values are bytes; a file smaller than the minimum or larger than the maximum fails. Extensions are normalized case-insensitively and may be written with or without the leading dot. The root `信息表.xlsx` remains exempt from attachment policy checks.\n\n```bash\n# New Webhook: use the default 500-byte minimum and default extension whitelist\nseal-use webhook add --name \"材料包入站\" --result-url \"https://your-domain.com/callback\" --corp \n\n# Configure an existing Webhook; sizes are bytes and extensions are comma-separated\nseal-use webhook update \\\n --min-file-size 500 \\\n --max-file-size 20971520 \\\n --allowed-extensions .pdf,.xlsx,.xls,.docx,.pptx,.jpg,.png \\\n --corp \n\n# Allow a newly confirmed format while retaining the rest of the policy:\n# first read webhook get/list, then pass the complete desired whitelist.\nseal-use webhook update \\\n --allowed-extensions .pdf,.xlsx,.xls,.docx,.pptx,.jpg,.png,.zip \\\n --corp \n\n# Remove only the maximum-size limit (minimum and whitelist are retained).\nseal-use webhook update --clear-max-file-size --corp \n```\n\nThe saved configuration is returned by `webhook get`/`webhook list` under `materialPackFilePolicy`. The root `信息表.xlsx` is always allowed as the material-pack manifest and is not subject to the attachment policy.\n\n### Failure recovery loop\n\nWhen a push fails because of the attachment policy, the error is actionable and should be handled as a two-channel recovery loop:\n\n1. Error channel: read `附件文件过小`, `附件文件过大`, or `附件后缀不在白名单中`, including the attachment path and the configured boundary.\n2. Resolution channel: ask whether the user wants to replace/compress the file or explicitly allow the format/size by changing the target Webhook policy.\n3. If configuration change is authorized, read the current policy with `webhook get`/`webhook list`, update only the necessary fields, and verify the returned configuration.\n4. Retry the original `material-pack push`; it will load the latest saved policy before any upload begins.\n\nThe same loop is available through MCP: read with `seal_webhook_get`/`seal_webhook_list`, update with `seal_webhook_update` and its `materialPackFilePolicy` patch, then retry `seal_webhook_material_pack` in `push` mode. For MCP, set `maxFileSizeBytes` to `null` to clear the upper bound. `allowedExtensions` is a complete replacement list, so include existing allowed suffixes when adding one.\n\nIf the assistant lacks permission to update the Webhook or the user does not authorize relaxing the rule, report the block rather than bypassing validation. Since validation happens before the upload loop, a failed attempt does not leave a partially pushed material pack.\n\nThe direct local `material-pack preview` command and MCP preview use the default or temporary policy. They do not automatically read a selected Webhook's persisted policy. Use `webhook ready --file --webhook ` or the actual push path when validating against the saved inbound policy.\n\n### Error messages reference\n\n| Error message | Meaning | Fix |\n|---|---|---|\n| `Excel 声明的附件路径在 ZIP 中不存在: ` | Cell value references a file not in ZIP | Add the file to ZIP at exactly that path |\n| `ZIP 中的文件未在 Excel 任何 [附件] 列中声明: ` | ZIP contains a file not referenced by any `[附件]` column | Add an `[附件]` column entry or remove the file from ZIP |\n| `单据「X」声明了跨单据或非本单据目录的附件路径: ` | Document X declared a path inside another document's folder | Move file into Document X's own folder and update Excel |\n| `附件路径「」被重复声明了 N 次` | The same file path was declared in multiple columns/rows/documents | Each declaration must point to a unique file path; duplicate file if needed |\n| `Excel 会议编号「X」在 ZIP 中找不到对应的根目录` | No ZIP root dir matches documentId `X` | Rename the ZIP folder to match the documentId |\n| `ZIP 根目录对应的编号「X」在信息表中找不到` | ZIP folder has no matching documentId in Excel | Remove the folder or add the document to Excel |\n| `ZIP 根目录缺少信息表.xlsx` | No `信息表.xlsx` found at ZIP root | Add the Excel file to the ZIP root |\n| `附件文件过小` | Attachment is below the configured minimum byte size | Replace the empty/truncated file or lower `--min-file-size` |\n| `附件文件过大` | Attachment exceeds the configured maximum byte size | Replace/compress the file or raise `--max-file-size` |\n| `附件后缀不在白名单中` | Attachment extension is not allowed by the Webhook policy | Add the extension with `--allowed-extensions` or convert the file |\n| `附件上传失败 ` | Network/server error during file upload | Check webhook URL, secret, and server availability |\n\n## Failure Handling\n\n- CLI commands are short-lived processes. In-memory auth/search caches only live for that single process. Use `seal-use service restart` after updates so the optional local service picks up new code.\n- If no run is found by `sourceDocumentSN`, retry with `sourceDocumentId` or a broader `query`.\n- If date-based summaries look wrong, pass `--timezone Asia/Shanghai` and an explicit `--date`.\n- If `langfuseTraceId` is missing, use `langfuseSessionFallback`.\n- If a write operation fails, report the raw JSON error and do not retry with guessed payloads.\n";var zX0="# Approval Run Lightweight Queries\n\nUse this reference when the user gives a 合思/易快报单号, source document SN, record ID, simulation batch ID, or asks for an approval decision without needing the full raw run payload.\n\n## Locate A Run By Document Number\n\nPrefer `pick` before broad search + bridge + get.\n\n```bash\nseal-use approval-runs pick --corp --sn --latest\nseal-use approval-runs pick --corp --sn --batch --latest\nseal-use approval-runs pick --corp --sn --latest --fields recordId,sourceDocumentSN,status,aiDecision,aiSummary\n```\n\nDefault output is intentionally small: `recordId`, `sourceDocumentSN`, `sourceDocumentId`, `simulationBatchId`, `status`, `taskMode`, `ruleSetVersionNumber`, `langfuseTraceId`, `manualResult`, `aiDecision`, and `aiSummary`.\n\nIf there are multiple candidates and `--latest` was not used, report the candidates and ask which one to inspect.\n\n## Read Compact Run Detail\n\nUse `--summary` for most diagnosis and support questions.\n\n```bash\nseal-use approval-runs get --corp --summary\n```\n\nUse `--fields` when the user needs a particular slice.\n\n```bash\nseal-use approval-runs get --corp --fields metadata\nseal-use approval-runs get --corp --fields document.fields,result.summary\nseal-use approval-runs get --corp --fields result.summary,result.decision,result.riskPoints\nseal-use approval-runs get --corp --fields document.keyFields,result,manualApprovalRecord,ruleSetVersionNumber\n```\n\nAvoid full `approval-runs get ` unless the user specifically needs raw document fields, pipeline logs, invoice rawData, or signed URLs. Prefer `--output-file` for full payloads.\n\n## Understand The Case First\n\nBefore pulling the full document, use:\n\n```bash\nseal-use approval-runs document-summary --corp \n```\n\nThis is for quick case reading: template/title, key fields, amount, expense type, cost company, payee, invoice summary, attachment names, AI result, and manual result.\n\n## Extract AI-Cited Rules\n\nUse this when the user asks \"AI 用了哪条规则\", \"为什么命中这条\", or needs the rule evidence for a specific run.\n\n```bash\nseal-use approval-runs cited-rules --corp \n```\n\nReturn and discuss `runtimeRuleId`, `ruleCode`, `versionNumber`, `scope`, `strictness`, `appliedAnalysis`, `checkResult`, and `findings` when present.\n\nIf the user then wants the full text of one cited rule, use `rules get --record-id --runtime-id rule-205` from `rule-lightweight.md`.\n\n## Attachments Without Raw Payloads\n\nUse:\n\n```bash\n# 查看附件列表摘要(包含文件名、类型、大小及直链可用性)\nseal-use approval-runs attachments --corp --summary\n\n# 下载全部附件到本地目录(优先使用 ossSignedUrl 签名直链)\nseal-use approval-runs attachments download --all --out-dir ./downloads --corp \n\n# 按名称或 fileId 过滤下载单个附件\nseal-use approval-runs attachments download --name 发票 --corp \n```\n\nThis should be enough for file names, file IDs, mime types, positions, invoice/attachment grouping, and links when available. For customer disputes about OCR, receipt/invoice classification, or image content, switch to `approval-attachment-trace.md`.\n\n## Result Summary\n\nUse:\n\n```bash\nseal-use approval-runs result --corp --summary\n```\n\nThis is for decision, summary, risk point count, matched rule count, trace ID, and record ID.\n\n## Output Discipline\n\nIf a command warns that output is large, do not retry with `--full` reflexively. Narrow with `--summary`, `--fields`, or `--output-file` first.\n";var XX0=`# Approval Attachment Trace Investigation +`;var ZX0="# Seal Use CLI Reference\n\nRun from any directory after installing the global CLI:\n\n```bash\nseal-use \n```\n\nEnterprise config lookup:\n\n- If `SEAL_USE_ENTERPRISES_DIR` is set, only that directory is loaded.\n- Otherwise the user-level `~/.config/seal-use/enterprises` directory is loaded. A configured\n `testEnterprisesDir` is loaded first for test-tenant workflows. The current working directory's\n `./enterprises` directory is not loaded implicitly.\n- Set `SEAL_USE_ENTERPRISES_DIR` to use one explicit directory instead. Legacy\n `~/.config/seal-home/enterprises` files are migrated to the primary directory when possible.\n\nEnterprise selection is stateless by default. Commands that access an enterprise require\n`--corp ` unless stateful mode is explicitly enabled:\n\n```bash\nseal-use config mode stateful --corp \nseal-use corps switch \nseal-use config mode stateless\n```\n\nThe global mode is stored in `~/.config/seal-use/config.json`; set `SEAL_USE_CONFIG_FILE` to\noverride that path. The legacy `current-corp` file is not read.\n\n## Stream & Exit Code Contract\n\n- **`stdout`**: Pure, deterministic JSON for machine/Agent parsing.\n- **`stderr`**: Diagnostics, probing logs, and **Next-Step Command Suggestions** with the stable prefix `👉 Next action: seal-use ...`.\n- **`Exit Code`**: `0` on success; `1` runtime/upstream failure, `2` usage/argument error, `10` explicit destructive-operation confirmation required, `11` missing/invalid authentication, and `12` output protection requiring a compact/file/query alternative.\n\n## Top-Level Commands\n\n```bash\nseal-use version\nseal-use config paths\nseal-use config get\nseal-use config mode [--corp ]\nseal-use config test-dir [|--clear]\nseal-use config lint [--linter ] [--min-score ]\nseal-use rules count [--corp ]\nseal-use rules list [--summary] [--count] [--limit 20] [--offset 0] [--corp ]\nseal-use rules clear [--corp ] [--dry-run|--yes]\nseal-use rules versions [--corp ]\nseal-use rules version [--corp ]\nseal-use rules get --corp --version --code '#0038'\nseal-use rules get --corp --record-id --runtime-id rule-205\nseal-use rules search [--version ] [--maxResults 20] [--corp ]\nseal-use rules pull [--corp ] [--version ] [--out ]\nseal-use rules lint [--file ] [--corp ] [--linter ] [--version ] [--code ] [--min-score ] [--summary]\nseal-use rules push [--file ] [--corp ] [--publish] [--version-name ] [--dry-run|--yes]\nseal-use rules map [--corp ] [--version ] [--code ]\nseal-use service [--port 8787] [--host 127.0.0.1] [--lines 50]\nseal-use http [--port 8787] [--host 127.0.0.1]\nseal-use serve [--port 8787]\nseal-use update [--check] [--force] [--version ]\nseal-use update check\nseal-use update changelog [--limit ]\nseal-use changelog [--limit ]\nseal-use mcp\nseal-use mcp config\nseal-use mcp-config\nseal-use skill dump\nseal-use skill install [--dir |--local]\nseal-use skill status\nseal-use openapi\nseal-use probe []\nseal-use tools list\nseal-use corps list [--corp ]\nseal-use corps current [--corp ]\nseal-use corps switch \nseal-use corps mark --env [--confirm]\nseal-use corps bind-test [--confirm] [--force]\nseal-use corps unbind-test [] [--confirm]\nseal-use corps sync-test [] [--dry-run] [--yes] [--version-name ]\nseal-use corps add-hose --json '{\"name\":\"企业名称\",\"domain\":\"https://app.ekuaibao.com\",\"appKey\":\"...\",\"appSecurity\":\"...\",\"proxyStaffBizId\":\"corpId:staffId\"}'\nseal-use corps add-seal --json '{\"sealUrl\":\"https://tenant.sealai.cc\",\"token\":\"seal-bearer-token\"}'\nseal-use corps add-link [--name ] [--overwrite]\nseal-use auth diagnose [--corp ]\nseal-use auth hose-link [--corp ] [--expire 7200]\nseal-use delegation list [--corp ]\nseal-use delegation create [--note ] [--from-link ] [--corp ]\nseal-use delegation revoke [--corp ]\nseal-use users create --name --phone [--dept ] [--corp ]\nseal-use users search [--corp ]\nseal-use users delegation [--note ] [--corp ]\nseal-use users activate [--corp ]\nseal-use users reset-password [--corp ]\nseal-use users get [--corp ]\nseal-use users delete [--corp ]\nseal-use contacts departments [] [--corp ]\nseal-use contacts children [--corp ]\nseal-use contacts users [--corp ]\nseal-use contacts sync-time [--corp ]\nseal-use data expenses --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]\nseal-use data invoices --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]\nseal-use llm config [--corp ]\nseal-use llm providers [--corp ]\nseal-use permissions available [--corp ]\nseal-use permissions configs [--corp ]\nseal-use billing status [--corp ]\nseal-use billing plans [--corp ]\nseal-use billing features [--corp ]\nseal-use webhook ready [<材料包.zip>] [--webhook ] [--corp ]\nseal-use webhook status [<材料包.zip>] [--corp ]\nseal-use webhook list [--query ] [--show-secret] [--corp ]\nseal-use webhook get|find [--show-secret] [--corp ]\nseal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]\nseal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]\nseal-use webhook delete [--yes|--dry-run] [--corp ]\nseal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--corp ]\nseal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook ] [--corp ]\nseal-use webhook replay [--sn ] [--webhook ] [--source-corp ] [--sn-suffix ] [--dry-run] [--corp ]\nseal-use deploy hosecloud requirements [--corp ]\nseal-use deploy hosecloud list [--corp ]\nseal-use deploy hosecloud get [--corp ]\nseal-use deploy hosecloud status [--corp ]\nseal-use deploy hosecloud configure --json '{...}' [--dry-run] [--corp ]\nseal-use deploy hosecloud sync [] [--auto] [--corp ]\nseal-use preference get [--corp ]\nseal-use preference decision update --json '{\"explicitApprove\":\"...\"}' [--dry-run] [--corp ]\nseal-use preference thinking-depth set --default [--dry-run] [--corp ]\nseal-use preference thinking-depth policies list [--corp ]\nseal-use preference thinking-depth policies upsert --json '{...}' [--dry-run] [--corp ]\nseal-use preference thinking-depth policies remove [--dry-run] [--corp ]\nseal-use context [--ruleVersion ] [--documentLimit 50] [--corp ]\nseal-use source config [--corp ]\nseal-use tool [--corp ] [--json '{\"key\":\"value\"}']\nseal-use approval-runs summary --corp [--date YYYY-MM-DD] [--timezone Asia/Shanghai]\nseal-use approval-runs stats --corp [--since 3months] [--dedupe-by sourceDocumentSN|sourceDocumentId|id]\nseal-use analytics insight --corp [--start-date ] [--end-date ] [--limit ]\nseal-use approval-runs count --corp [--status APPROVED]\nseal-use approval-runs export --corp [--start ] [--end ] [--limit ] [--downloads] [--out ]\nseal-use approval-runs search --corp [--query text] [--limit 20] [--includeBridge true]\nseal-use approval-runs get --corp [--fields metadata|document.fields,result.summary] [--output-file file.json]\nseal-use approval-runs attachments --corp \nseal-use approval-runs attachments download [--all] [--name ] [--out-dir ] --corp \nseal-use approval-runs result --corp [--summary]\nseal-use approval-runs url --corp \nseal-use approval-runs url --sso [--expire 7200] --corp \nseal-use approval-runs url --sn [--sso] --corp \nseal-use approval-runs url --corp \nseal-use approval-runs bridge --corp [--sourceDocumentSN ]\nseal-use simulation batch-records --corp \nseal-use simulation create --mode hosecloud --flow-ids \"B26017701,B26022501\" [--reject-node 财务] [--thinking-depth default|medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--no-wait] --corp \nseal-use simulation create --mode material_pack --package-ids [--template-id conference_reimbursement_v1] [--schema-config file.json] --corp \nseal-use simulation create --source-system weaver --request-ids \"req-01,req-02\" --corp \nseal-use simulation status --corp \nseal-use simulation wait [--timeout 10m] [--poll-interval 2s] --corp \nseal-use simulation clean --corp \nseal-use simulation specifications [--integration ] --corp \nseal-use simulation approval-definitions --corp \nseal-use simulation list [--limit 50] --corp \nseal-use simulation get --corp \nseal-use simulation templates --corp \nseal-use simulation integrations --corp \nseal-use simulation package-upload <材料包.zip> --corp \n```\n\n## CLI Command Overview\n\n`seal-use version` returns:\n\n```json\n{\n \"name\": \"seal-use\",\n \"version\": \"\"\n}\n```\n\n`seal-use service ` manages the persistent background service daemon with embedded HTTP server (serving `/docs`, `/openapi.json`, and `POST /api/cli`). `status` returns the PID, version, host, port, active HTTP URL, state directory, PID file, and log file.\n\n`seal-use update` updates the git checkout, runs `bun install`, and restarts the local service if it was running.\n\nIdentity and session:\n\n- `seal-use auth diagnose --corp `\n- `seal-use corps list`\n- `seal-use corps current`\n\nRead-only discovery:\n\n- `seal-use contacts departments|children|users|sync-time --corp ` queries the tenant's organization tree and last directory sync time.\n- `seal-use data expenses|invoices --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]` queries paginated raw expense or invoice records.\n- `seal-use analytics insight --corp [--start-date ] [--end-date ] [--limit ]` queries risk-tag statistics; omitted dates use the current month.\n- `seal-use context --corp [--ruleVersion ] [--documentLimit 50]` aggregates rules, knowledge documents, and style preferences.\n- `seal-use source config --corp ` resolves the live source-system configuration without changing it.\n\nTest Enterprise Binding & Staging Synchronization:\n\n- **1-to-1 Association**: One production enterprise can only bind at most one test enterprise (`corps bind-test `). Multi-tier chaining is rejected.\n- **Marking & Rigorous Confirmation**: Marking (`corps mark --env `) and binding require explicit `--confirm`. Without confirmation, the CLI blocks with exit code `10` (`confirmationRequired`). Overwriting existing bindings requires `--force`.\n- **Production Safety Guarantee (`corps sync-test`)**:\n - In the **Production Enterprise**: Rules remain strictly in **draft state** without publishing any live version.\n - In the **Test Enterprise**: Style preferences (`decisionPreferences`, `thinkingDepthPreference`) are updated to match production, test draft rules are cleared and populated with production draft rules, recoded, and immediately **published as a new official version** in the test tenant (`--version-name `).\n - **Semantic Version Naming**: Defaults to `Sync from [Prod v · #]` tracking production baseline version and test draft iteration without redundant date strings.\n - **Rule Mapping & Local Snapshot**: Returns `versionMapping` and `ruleMapping` in CLI stdout and saves persistent snapshot to `~/.config/seal-use/mappings/-v.json` and `-latest.json`.\n - `--dry-run` previews the full preference diff, version mapping plan, and rule sync plan without sending mutations. Execution requires `--yes`.\n\nApproval rule maintenance:\n\n- `seal-use rules count [--corp ]`\n- `seal-use rules list --summary [--corp ]`\n- `seal-use rules map [--corp ] [--version ] [--code ]` (reads local sync rule mapping snapshot)\n- `seal-use rules pull [--corp ] [--version ] [--out ]`\n- `seal-use rules lint [--file ] [--corp ] [--linter ] [--version ] [--code ] [--min-score ] [--summary]`\n- `seal-use rules push [--file ] [--corp ] [--publish] [--version-name ] [--dry-run|--yes]` incrementally applies the local file: matched IDs are updated, missing local IDs are created, and remote IDs absent from the file are deleted. It does not clear/recreate the whole draft or recode it. Run `--dry-run` first; a local file exported with `rules pull` is preferred.\n- `seal-use rules clear [--corp ] [--dry-run|--yes]`\n\nRule identity and versioning:\n\n- `rules list` and `rules pull` read the current **draft** rule set. Their `code` values belong to the draft code space.\n- A published version has its own snapshot and code space. Publishing can recode rules, so a published `code` may differ from the draft `code`, and codes can shift again after later edits and publishes.\n- Do not use a draft `#NN` as a cross-version identifier. For current draft work, prefer the stable rule `id`; for historical behavior, select the published `version` and locate the rule by its text/context or runtime rule ID from the approval run.\n- `rules get --version ... --code ...` interprets `code` inside that selected published version, while `rules get --record-id ... --runtime-id ...` resolves the version recorded on the run.\n\nApproval run lightweight queries:\n\n- `seal-use approval-runs get --corp --fields metadata`\n- `seal-use approval-runs get --corp --summary`\n- `seal-use approval-runs pick --corp --sn <单号> --batch --latest`\n- `seal-use approval-runs document-summary --corp `\n- `seal-use approval-runs cited-rules --corp `\n- `seal-use approval-runs get --corp --fields document.fields,result.summary`\n- `seal-use approval-runs attachments --corp --summary`\n- `seal-use approval-runs attachments download [--all] [--name ] [--out-dir ] --corp `\n- `seal-use approval-runs result --corp --summary`\n\nApproval knowledge documents & style:\n\n- `seal-use tool seal_approval_documents_list --corp --json '{\"limit\":50}'`\n- `seal-use tool seal_approval_document_get --corp --json '{\"documentId\":\"doc-id\"}'`\n- `seal-use tool seal_approval_document_create --corp --json '{\"title\":\"标题\",\"purpose\":\"用途\",\"content\":\"Markdown 内容\",\"contentType\":\"policy\",\"scenarios\":[\"audit\"]}'`\n- `seal-use tool seal_approval_document_update --corp --json '{\"documentId\":\"doc-id\",\"enabled\":false}'`\n- `seal-use tool seal_approval_delete_document --corp --json '{\"documentId\":\"doc-id\"}'` (删除前必须重新读取并确认)\n- `seal-use rules get --corp --version --code '#0038'`\n- `seal-use rules get --corp --record-id --runtime-id rule-205`\n\nWebhook integrations:\n\n- `seal-use webhook ready [<材料包.zip|信息表.xlsx>] [--webhook ] [--corp ]`\n- `seal-use webhook status [<材料包.zip|信息表.xlsx>] [--corp ]`\n- `seal-use webhook list [--query ] [--show-secret] [--corp ]`\n- `seal-use webhook get|find [--show-secret] [--corp ]`\n- `seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]`\n- `seal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]`\n- `seal-use webhook delete [--yes|--dry-run] [--corp ]`\n- `seal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] --corp `\n- `seal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook ] --corp `\n- `seal-use webhook replay [--sn ] [--webhook ] [--source-corp ] [--sn-suffix ] [--dry-run] [--corp ]` (别名 `seal-use approval-runs replay ...`;从历史单据汲取结构化表单与明细并清洗规范化字段类型,重新通过 Webhook 触发审批)\n\nWebhook writes read the current AI approval config and POST the merged full config back to `api/v1/agent/ai-approval/config`, preserving non-Webhook integrations. List/get mask `secret` by default; add returns the generated secret once. Each Webhook can also store a mutable `materialPackFilePolicy` with `minFileSizeBytes`, optional `maxFileSizeBytes`, and `allowedExtensions`. Update is a patch: omitted policy fields are retained; `allowedExtensions` replaces the complete list; `--clear-max-file-size` removes the upper bound.\n\nAll supported configuration writes accept `--dry-run`: rules clear/push, `corps sync-test`, preference updates, thinking-depth policy changes, HoseCloud configure, and Webhook add/update/delete. Preview mode performs read-only discovery and returns JSON with `preview: true`, the exact `targetUrl`, a redacted `changesDiff` (`before`/`after`), and `impactCount`. It never sends the mutation request and does not require `--yes`; use the same command with `--yes` only after reviewing the preview.\n\nApproval runs, simulations, and Langfuse bridge:\n\n- `seal-use approval-runs search --corp [--query ] [--limit 20]`\n- `seal-use approval-runs summary --corp [--date YYYY-MM-DD] [--timezone Asia/Shanghai]`\n- `seal-use approval-runs bridge --corp [--sourceDocumentSN ]`\n- `seal-use simulation create --mode hosecloud --flow-ids ... --no-wait --corp ` returns immediately with an `asyncTicket` (creation is non-blocking by default for compatibility).\n- `seal-use simulation status --corp ` performs one non-blocking status check and returns `QUEUED`/`RUNNING`/`COMPLETED`/`FAILED`-style state plus counters.\n- `seal-use simulation approval-definitions --corp ` lists available Feishu approval definitions so an `approvalCode` can be selected before creating a batch.\n- `seal-use simulation wait --corp `\n- `seal-use simulation clean --corp `\n- `seal-use simulation list --corp `\n- `seal-use simulation get --corp `\n- `seal-use simulation batch-records --corp `\n- `seal-use simulation templates --corp `\n- `seal-use simulation integrations --corp `\n\n## Common Examples\n\nAdd and verify a Hose enterprise:\n\n```bash\nseal-use corps add-hose --json '{\"name\":\"企业名称\",\"domain\":\"https://app.ekuaibao.com\",\"appKey\":\"...\",\"appSecurity\":\"...\",\"proxyStaffBizId\":\"corpId:staffId\"}'\nseal-use auth diagnose --corp \n```\n\nForce-write a Hose config without verification:\n\n```bash\nseal-use corps add-hose --json '{\"name\":\"企业名称\",\"domain\":\"https://app.ekuaibao.com\",\"appKey\":\"...\",\"appSecurity\":\"...\",\"proxyStaffBizId\":\"corpId:staffId\",\"force\":true}'\n```\n\nDiagnose auth failures:\n\n```bash\nseal-use auth diagnose --corp \n```\n\nThe diagnostic stages are `hose.openapi`, `hose.provisional`, `seal.sso`, and `seal.whoami`. Tokens are omitted from output.\n\nSearch approval content:\n\n```bash\nseal-use tool seal_approval_search --corp --json '{\"keywords\":[\"关键词\"],\"matchMode\":\"any\",\"maxResults\":20}'\n```\n\nGet aggregated approval context:\n\n```bash\nseal-use tool seal_approval_context_get --corp --json '{\"documentLimit\":20}'\n```\n\nCreate a draft approval rule:\n\n```bash\nseal-use tool seal_approval_rule_create --corp --json '{\"description\":\"规则描述\",\"scope\":\"适用场景\",\"strictness\":\"SHOULD_FOLLOW\"}'\n```\n\nUpdate an approval document:\n\n```bash\nseal-use tool seal_approval_document_update --corp --json '{\"documentId\":\"doc-id\",\"content\":\"Markdown 内容\"}'\n```\n\nSummarize one local date:\n\n```bash\nseal-use approval-runs summary --corp --date 2026-06-09 --timezone Asia/Shanghai --limit 100\n```\n\nFind a run and include Langfuse bridge rows:\n\n```bash\nseal-use approval-runs search --corp --query --limit 20 --includeBridge true\n```\n\nResolve Langfuse trace/session hints:\n\n```bash\nseal-use approval-runs bridge --corp --sourceDocumentSN \n```\n\n模拟测试批次(模拟发布闭环)创建与查询:\n\n```bash\n# 合思指定单号: 创建批次(响应只含 batchId)\nseal-use simulation create --mode hosecloud --flow-ids \"B26017701,B26022501\" --reject-node 财务 --thinking-depth medium --skip-invoice-generation --corp \n# 材料包导入: 先上传材料包 ZIP(服务端解析并返回 schemaConfig), 再用返回的 id 发起\nseal-use simulation package-upload 测试材料包.zip --corp \nseal-use simulation create --mode material_pack --package-ids --template-id conference_reimbursement_v1 --schema-config schema.json --corp \n# 预留: 其他模式参数通过 --json 透传(如时间范围 startTime/endTime)\nseal-use simulation create --mode hosecloud --flow-ids \"B26017701\" --json '{\"startTime\":0,\"endTime\":0}' --corp \n# 创建后轮询批次状态与记录\nseal-use simulation list --limit 50 --corp \nseal-use simulation get --corp \nseal-use simulation batch-records --corp \nseal-use simulation templates --corp \nseal-use simulation integrations --corp \n```\n\n## Write Operation Payloads\n\nCreate a rule:\n\n```json\n{\n \"description\": \"规则描述\",\n \"scope\": \"适用场景\",\n \"strictness\": \"MUST_FOLLOW | SHOULD_FOLLOW | SUGGESTION\"\n}\n```\n\nUpdate a rule:\n\n```json\n{\n \"ruleId\": \"rule-id\",\n \"description\": \"可选\",\n \"scope\": \"可选\",\n \"strictness\": \"SHOULD_FOLLOW\"\n}\n```\n\nPublish a rule version:\n\n```json\n{\n \"versionName\": \"版本名称\"\n}\n```\n\nCreate a document:\n\n```json\n{\n \"title\": \"标题\",\n \"purpose\": \"用途\",\n \"content\": \"Markdown 内容\",\n \"contentType\": \"policy\",\n \"status\": \"published\",\n \"scenarios\": [\"audit\"],\n \"tags\": [\"标签\"]\n}\n```\n\n`contentType` 必须是 `document`、`video`、`pdf`、`feishu_doc` 或 `policy` 之一;`scenarios` 必填且至少包含一个 `fill`(智能填单)或 `audit`(智能审核)。这里的 `scenarios` 是产品能力开关,不是费用类别或业务场景名。\n\n知识文档支持通过 `seal_approval_delete_document` 删除,且 `corps sync-test` 会在按标题对账时删除测试企业中多余的文档;删除仍是破坏性写操作,必须在写入前重新读取并确认标题/ID。若只是暂时撤下内容,优先使用更新操作并设置 `enabled: false`。\n\nUpdate a document:\n\n```json\n{\n \"documentId\": \"doc-id\",\n \"title\": \"可选\",\n \"purpose\": \"可选\",\n \"content\": \"可选\",\n \"enabled\": true,\n \"scenarios\": [\"可选\"],\n \"tags\": [\"可选\"]\n}\n```\n\nUpdate style preferences:\n\n```json\n{\n \"tone\": \"可选\",\n \"language\": \"可选\",\n \"detailLevel\": \"可选\",\n \"outputFormat\": \"可选\",\n \"examples\": [\"可选\"],\n \"prohibitedPhrases\": [\"可选\"],\n \"customInstructions\": \"可选\"\n}\n```\n\n## Material Pack Workflow\n\nA **material pack** (材料包) is a ZIP file that bundles an Excel information sheet (`信息表.xlsx`) with attachments organised by document ID. It is the primary input to the Webhook-based AI approval ingestion pipeline.\n\n### ZIP structure convention\n\n```\n材料包.zip\n├── 信息表.xlsx ← must exist at ZIP root\n├── BX20260826003/ ← root dir name = documentId (or documentId@annotation)\n│ ├── 合同协议/\n│ │ └── 采购合同.pdf\n│ └── 支付凭证/\n│ └── 支付宝交易明细.pdf\n└── BX20260826004@重新提交v2/ ← @annotation is stripped when matching documentId\n └── 发票/\n └── 增值税专用发票.pdf\n```\n\n- The root directory name **must equal** the `documentId` **OR** start with `documentId@` (the `@` separates an optional annotation ignored during matching).\n- `信息表.xlsx` at the ZIP root is the only file not associated with any document directory.\n\n### Excel column convention\n\n| Column type | Naming | Purpose |\n|---|---|---|\n| Regular column | Any header (e.g. `会议编号`, `总金额`) | Standard document fields |\n| Attachment column | Header starts with `[附件]` (e.g. `[附件]合同协议`) | Declares attached files for this row |\n\n- The `[附件]` prefix is stripped to produce the field `label` sent to Seal.\n- The cell value contains full ZIP-relative path(s) to the declared files (multiple paths separated by newline, comma, or semicolon).\n- Example: column `[附件]合同协议`, cell value `BX20260826003/合同协议/采购合同.pdf`\n\n### Sheet → document level mapping\n\n| Excel sheet | Maps to |\n|---|---|\n| First sheet (main / 会议) | Root document `categoryFields` |\n| 费用明细表 (has `报销金额` column) | Per-row entries in `mingxi_list` |\n| 劳务明细 (has `姓名` column) | Per-person entries in `daoshi_list` |\n\n### Strict bidirectional validation\n\nBefore pushing or previewing, the system enforces:\n\n1. **Excel → ZIP**: Every path declared in an `[附件]` column cell **must** exist as a ZIP entry. Error: `Excel 声明的附件路径在 ZIP 中不存在: `\n2. **ZIP → Excel**: Every ZIP file (excluding `信息表.xlsx`) **must** be declared in exactly one `[附件]` column. Error: `ZIP 中的文件未在 Excel 任何 [附件] 列中声明: `\n3. **Document Directory Scope Isolation**: All attachments declared for a document `DOC_X` **must** reside in its own root directory (`DOC_X/` or `DOC_X@annotation/`). Cross-document references are strictly forbidden. Error: `单据「X」声明了跨单据或非本单据目录的附件路径: 。附件必须位于该单据自己的根目录...`\n4. **Strict Declaration Uniqueness**: A given ZIP file path **cannot** be declared more than once across the entire material pack (even within the same document across multiple rows or fields). If the same logical document is needed in multiple places, separate files must be placed in distinct paths. Error: `附件路径「」被重复声明了 N 次...`\n5. **Attachment file policy**: Every attachment except the root `信息表.xlsx` must satisfy the selected Webhook's minimum size, optional maximum size, and extension whitelist. The default minimum is 500 bytes; the default maximum is unlimited; the default whitelist includes common PDF, Office, text, email, and image formats. Error: `附件文件过小...` / `附件文件过大...` / `附件后缀不在白名单中...`\n6. **documentId ↔ ZIP root**: Every `documentId` in the Excel main sheet must have a matching ZIP root dir (exact match or `documentId@annotation`). Errors: `Excel 会议编号「X」在 ZIP 中找不到对应的根目录...` / `ZIP 根目录对应的编号「X」在信息表中找不到对应的会议编号`\n\nAll validation errors are collected and reported together in a single `MaterialPackValidationError`.\n\n### CLI usage\n\n```bash\n# Check environment readiness and optionally pre-validate the material pack\nseal-use webhook ready [--file ] [--corp ]\n\n# Dry-run: local parse & validation only, no network calls, returns preview JSON\nseal-use webhook material-pack preview --corp \n# Preview with temporary local policy overrides (comma-separated extensions)\nseal-use webhook material-pack preview --min-file-size 500 --max-file-size 20971520 --allowed-extensions .pdf,.xlsx,.docx --corp \n\n# Upload attachments and push documents via inbound Webhook\nseal-use webhook material-pack push [--webhook ] --corp \n# When there is exactly one webhook channel, --webhook can be omitted (auto-locked)\n```\n\n### Attachment file policy configuration\n\nThe policy is stored per inbound Webhook integration and is applied before any attachment upload or document push. A failed check stops the entire material-pack flow. The policy is intentionally mutable: after an authorized configuration change, retrying the same push reads the saved policy again.\n\nDefault configuration:\n\n```json\n{\n \"minFileSizeBytes\": 500,\n \"maxFileSizeBytes\": null,\n \"allowedExtensions\": [\n \".pdf\", \".xls\", \".xlsx\", \".csv\", \".doc\", \".docx\", \".ppt\", \".pptx\",\n \".txt\", \".rtf\", \".odt\", \".ods\", \".odp\", \".jpg\", \".jpeg\", \".png\",\n \".gif\", \".bmp\", \".webp\", \".heic\", \".eml\", \".msg\"\n ]\n}\n```\n\n`null` or an omitted `maxFileSizeBytes` means no per-file upper bound. Values are bytes; a file smaller than the minimum or larger than the maximum fails. Extensions are normalized case-insensitively and may be written with or without the leading dot. The root `信息表.xlsx` remains exempt from attachment policy checks.\n\n```bash\n# New Webhook: use the default 500-byte minimum and default extension whitelist\nseal-use webhook add --name \"材料包入站\" --result-url \"https://your-domain.com/callback\" --corp \n\n# Configure an existing Webhook; sizes are bytes and extensions are comma-separated\nseal-use webhook update \\\n --min-file-size 500 \\\n --max-file-size 20971520 \\\n --allowed-extensions .pdf,.xlsx,.xls,.docx,.pptx,.jpg,.png \\\n --corp \n\n# Allow a newly confirmed format while retaining the rest of the policy:\n# first read webhook get/list, then pass the complete desired whitelist.\nseal-use webhook update \\\n --allowed-extensions .pdf,.xlsx,.xls,.docx,.pptx,.jpg,.png,.zip \\\n --corp \n\n# Remove only the maximum-size limit (minimum and whitelist are retained).\nseal-use webhook update --clear-max-file-size --corp \n```\n\nThe saved configuration is returned by `webhook get`/`webhook list` under `materialPackFilePolicy`. The root `信息表.xlsx` is always allowed as the material-pack manifest and is not subject to the attachment policy.\n\n### Failure recovery loop\n\nWhen a push fails because of the attachment policy, the error is actionable and should be handled as a two-channel recovery loop:\n\n1. Error channel: read `附件文件过小`, `附件文件过大`, or `附件后缀不在白名单中`, including the attachment path and the configured boundary.\n2. Resolution channel: ask whether the user wants to replace/compress the file or explicitly allow the format/size by changing the target Webhook policy.\n3. If configuration change is authorized, read the current policy with `webhook get`/`webhook list`, update only the necessary fields, and verify the returned configuration.\n4. Retry the original `material-pack push`; it will load the latest saved policy before any upload begins.\n\nThe same loop is available through MCP: read with `seal_webhook_get`/`seal_webhook_list`, update with `seal_webhook_update` and its `materialPackFilePolicy` patch, then retry `seal_webhook_material_pack` in `push` mode. For MCP, set `maxFileSizeBytes` to `null` to clear the upper bound. `allowedExtensions` is a complete replacement list, so include existing allowed suffixes when adding one.\n\nIf the assistant lacks permission to update the Webhook or the user does not authorize relaxing the rule, report the block rather than bypassing validation. Since validation happens before the upload loop, a failed attempt does not leave a partially pushed material pack.\n\nThe direct local `material-pack preview` command and MCP preview use the default or temporary policy. They do not automatically read a selected Webhook's persisted policy. Use `webhook ready --file --webhook ` or the actual push path when validating against the saved inbound policy.\n\n### Error messages reference\n\n| Error message | Meaning | Fix |\n|---|---|---|\n| `Excel 声明的附件路径在 ZIP 中不存在: ` | Cell value references a file not in ZIP | Add the file to ZIP at exactly that path |\n| `ZIP 中的文件未在 Excel 任何 [附件] 列中声明: ` | ZIP contains a file not referenced by any `[附件]` column | Add an `[附件]` column entry or remove the file from ZIP |\n| `单据「X」声明了跨单据或非本单据目录的附件路径: ` | Document X declared a path inside another document's folder | Move file into Document X's own folder and update Excel |\n| `附件路径「」被重复声明了 N 次` | The same file path was declared in multiple columns/rows/documents | Each declaration must point to a unique file path; duplicate file if needed |\n| `Excel 会议编号「X」在 ZIP 中找不到对应的根目录` | No ZIP root dir matches documentId `X` | Rename the ZIP folder to match the documentId |\n| `ZIP 根目录对应的编号「X」在信息表中找不到` | ZIP folder has no matching documentId in Excel | Remove the folder or add the document to Excel |\n| `ZIP 根目录缺少信息表.xlsx` | No `信息表.xlsx` found at ZIP root | Add the Excel file to the ZIP root |\n| `附件文件过小` | Attachment is below the configured minimum byte size | Replace the empty/truncated file or lower `--min-file-size` |\n| `附件文件过大` | Attachment exceeds the configured maximum byte size | Replace/compress the file or raise `--max-file-size` |\n| `附件后缀不在白名单中` | Attachment extension is not allowed by the Webhook policy | Add the extension with `--allowed-extensions` or convert the file |\n| `附件上传失败 ` | Network/server error during file upload | Check webhook URL, secret, and server availability |\n\n## Failure Handling\n\n- CLI commands are short-lived processes. In-memory auth/search caches only live for that single process. Use `seal-use service restart` after updates so the optional local service picks up new code.\n- If no run is found by `sourceDocumentSN`, retry with `sourceDocumentId` or a broader `query`.\n- If date-based summaries look wrong, pass `--timezone Asia/Shanghai` and an explicit `--date`.\n- If `langfuseTraceId` is missing, use `langfuseSessionFallback`.\n- If a write operation fails, report the raw JSON error and do not retry with guessed payloads.\n";var zX0="# Approval Run Lightweight Queries\n\nUse this reference when the user gives a 合思/易快报单号, source document SN, record ID, simulation batch ID, or asks for an approval decision without needing the full raw run payload.\n\n## Locate A Run By Document Number\n\nPrefer `pick` before broad search + bridge + get.\n\n```bash\nseal-use approval-runs pick --corp --sn --latest\nseal-use approval-runs pick --corp --sn --batch --latest\nseal-use approval-runs pick --corp --sn --latest --fields recordId,sourceDocumentSN,status,aiDecision,aiSummary\n```\n\nDefault output is intentionally small: `recordId`, `sourceDocumentSN`, `sourceDocumentId`, `simulationBatchId`, `status`, `taskMode`, `ruleSetVersionNumber`, `langfuseTraceId`, `manualResult`, `aiDecision`, and `aiSummary`.\n\nIf there are multiple candidates and `--latest` was not used, report the candidates and ask which one to inspect.\n\n## Read Compact Run Detail\n\nUse `--summary` for most diagnosis and support questions.\n\n```bash\nseal-use approval-runs get --corp --summary\n```\n\nUse `--fields` when the user needs a particular slice.\n\n```bash\nseal-use approval-runs get --corp --fields metadata\nseal-use approval-runs get --corp --fields document.fields,result.summary\nseal-use approval-runs get --corp --fields result.summary,result.decision,result.riskPoints\nseal-use approval-runs get --corp --fields document.keyFields,result,manualApprovalRecord,ruleSetVersionNumber\n```\n\nAvoid full `approval-runs get ` unless the user specifically needs raw document fields, pipeline logs, invoice rawData, or signed URLs. Prefer `--output-file` for full payloads.\n\n## Understand The Case First\n\nBefore pulling the full document, use:\n\n```bash\nseal-use approval-runs document-summary --corp \n```\n\nThis is for quick case reading: template/title, key fields, amount, expense type, cost company, payee, invoice summary, attachment names, AI result, and manual result.\n\n## Extract AI-Cited Rules\n\nUse this when the user asks \"AI 用了哪条规则\", \"为什么命中这条\", or needs the rule evidence for a specific run.\n\n```bash\nseal-use approval-runs cited-rules --corp \n```\n\nReturn and discuss `runtimeRuleId`, `ruleCode`, `versionNumber`, `scope`, `strictness`, `appliedAnalysis`, `checkResult`, and `findings` when present.\n\nIf the user then wants the full text of one cited rule, use `rules get --record-id --runtime-id rule-205` from `rule-lightweight.md`.\n\n## Attachments Without Raw Payloads\n\nUse:\n\n```bash\n# 查看附件列表摘要(包含文件名、类型、大小及直链可用性)\nseal-use approval-runs attachments --corp --summary\n\n# 下载全部附件到本地目录(优先使用 ossSignedUrl 签名直链)\nseal-use approval-runs attachments download --all --out-dir ./downloads --corp \n\n# 按名称或 fileId 过滤下载单个附件\nseal-use approval-runs attachments download --name 发票 --corp \n```\n\nThis should be enough for file names, file IDs, mime types, positions, invoice/attachment grouping, and links when available. For customer disputes about OCR, receipt/invoice classification, or image content, switch to `approval-attachment-trace.md`.\n\n## Result Summary\n\nUse:\n\n```bash\nseal-use approval-runs result --corp --summary\n```\n\nThis is for decision, summary, risk point count, matched rule count, trace ID, and record ID.\n\n## Output Discipline\n\nIf a command warns that output is large, do not retry with `--full` reflexively. Narrow with `--summary`, `--fields`, or `--output-file` first.\n";var XX0=`# Approval Attachment Trace Investigation Use this workflow when a customer disputes an AI approval finding about an attachment, invoice, receipt, OCR result, or a UI-highlighted audit result. @@ -1276,12 +1290,12 @@ seal-use corps hose-staffs --json '{ }' \`\`\` * 直接使用指定 ID 完成接入并进行连通性验证。 -`;var AX0={"SKILL.md":GX0,"agents/openai.yaml":WX0,"references/rule-lightweight.md":wX0,"references/approval-bad-cases.md":VX0,"references/cli.md":ZX0,"references/approval-run-lightweight.md":zX0,"references/approval-attachment-trace.md":XX0,"references/customer-feedback-rule-remediation.md":LX0,"references/enterprise-onboarding.md":DX0,"references/hose-enterprise-auth.md":OX0,"references/hose-enterprise-init.md":FX0};function PX0(){return AX0["SKILL.md"]||""}function vH(){return du(MX0(),".agents","skills","seal-use")}function TX0(){return du(MX0(),".agents","skills","seal-home")}function EX0(){let $=TX0();if(cu($))try{return GW1($,{recursive:!0,force:!0}),!0}catch{return!1}return!1}function mu($=vH()){EX0(),NX0($,{recursive:!0});let I=[];for(let[U,Y]of Object.entries(AX0)){let J=du($,U);NX0(wW1(J),{recursive:!0}),WW1(J,Y,"utf8"),I.push(U)}return{targetDir:$,files:I}}function lu(){let $=TX0(),I=vH(),U=cu($),Y=cu(I);if(U||Y)return EX0(),mu(I),{synced:!0,targetDir:I};return{synced:!1}}function vX0($,I,U){if($==="dump"||$==="cat"||$==="show"){process.stdout.write(`${PX0()} -`);return}if($==="install"||$==="init"||$==="sync"){let Y=O0(U.options.local)||O0(U.options.workspace),J=g(U.options.dir)??g(U.options.target)??I,Q=J?J:Y?mD(process.cwd(),".agents","skills","seal-use"):vH(),K=mu(Q);B0({installed:!0,targetDir:K.targetDir,fileCount:K.files.length,files:K.files});return}if($==="status"||$==="get"||!$){let Y=vH(),J=mD(process.cwd(),".agents","skills","seal-use");B0({global:{dir:Y,installed:BX0(mD(Y,"SKILL.md"))},local:{dir:J,installed:BX0(mD(J,"SKILL.md"))}});return}throw Error(`Unknown skill command: ${$}. Run 'seal-use help' for available commands.`)}async function RX0($,I){if($==="config"){B0(await _J(I));return}throw Error(`Unknown source command: ${$??""}. Run 'seal-use help' for available commands.`)}async function jX0($,I,U,Y){if(!$)throw Error("Usage: seal-use tool [--json '{...}']");await F0($,I,U,U$(Y.json),V0(Y.options))}function CX0(){B0(OH.map(($)=>({name:$.name,description:$.description})))}import{chmodSync as VW1,mkdirSync as ZW1,renameSync as ou,rmSync as zW1,unlinkSync as hX0,writeFileSync as _X0}from"node:fs";import{dirname as XW1,join as SX0}from"node:path";import{spawnSync as LI}from"node:child_process";function lD($=process.execPath,I=import.meta.url){if(I.includes("/$bunfs/")||I.includes("\\$bunfs\\"))return!0;let U=$.toLowerCase().replace(/\\/g,"/");return!U.endsWith("/bun")&&!U.endsWith("/bun.exe")&&!U.endsWith("/node")&&!U.endsWith("/node.exe")}var uX0="yunyingk/seal-use",jH="yunyingk/seal-home";var LW1="SEAL_USE_GITHUB_REPO",DW1="SEAL_HOME_GITHUB_REPO";async function xX0($,I={}){let U={appRoot:$.appRoot,entryFile:$.entryFile,stateDir:nu,version:Y1,launcher:$.launcher},Y=I.repo||process.env[LW1]?.trim()||process.env[DW1]?.trim()||uX0,J=I.targetVersion?.trim(),Q=J&&J.toLowerCase()!=="latest"?J:void 0;if(Q){let A=Q.replace(/^v/,""),R=kX0(A,Y1);if(R<0)if(!kE&&I.force);else{B0({updated:!1,currentVersion:Y1,targetVersion:A,mode:lD()?"binary":"source",message:!kE?`Cannot downgrade seal-use from dev build v${Y1} to release v${A}. Use --force to overwrite.`:`Cannot downgrade seal-use from v${Y1} to older version v${A}. Updates must be forward-only.`});return}if(R===0&&!I.force){B0({updated:!1,currentVersion:Y1,targetVersion:A,mode:lD()?"binary":"source",message:`seal-use is already at version v${Y1}. Use --force to reinstall.`});return}}if(I.changelogOnly){let A=await ru(Y,I.limit??10);B0({currentVersion:Y1,totalQueried:A.length,releases:A.map((R)=>({version:R.version,tagName:R.tagName,publishedAt:R.publishedAt,author:R.author,releaseNotes:R.notes,releaseUrl:R.htmlUrl,isCurrent:R.version===Y1,isNewer:RH(R.version,Y1)}))});return}if(!lD()){if(I.checkOnly){let R=await ru(Y,30),k=R[0],y=k?.version??Y1,f=R.find((n)=>n.version===Y1),j=RH(y,Y1),p=R.filter((n)=>RH(n.version,Y1));B0({updated:!1,updateAvailable:j,currentVersion:Y1,currentVersionPublishedAt:f?.publishedAt,latestVersion:y,latestVersionPublishedAt:k?.publishedAt,behindCount:p.length,pendingReleases:p.map((n)=>({version:n.version,tagName:n.tagName,publishedAt:n.publishedAt,author:n.author,releaseNotes:n.notes,releaseUrl:n.htmlUrl})),releaseNotes:k?.notes??"",releaseUrl:k?.htmlUrl??"",mode:"source",message:"Running in source development mode. Run 'seal-use update' to git pull & bun install."});return}let A=gJ(U).running;if(A)await XI("stop",U);try{yX0("git",["-C",$.appRoot,"pull","--ff-only"])}catch(R){console.error(`git pull skipped: ${R instanceof Error?R.message:String(R)}`)}if(yX0("bun",["install"],{cwd:$.appRoot}),A)await XI("start",U);B0({updated:!0,serviceRestarted:A,version:Y1,mode:"source"});return}let K=OW1(),q=FW1(),H=await ru(Y,30),G=Q?H.find((A)=>A.version===Q||A.tagName===Q||A.tagName===`v${Q}`)??await gX0(Y,Q):H[0]??await gX0(Y);if(!G){B0({updated:!1,currentVersion:Y1,mode:"binary",message:`Failed to query releases from repository '${Y}'`});return}let W=G.version,w=H.find((A)=>A.version===Y1),Z=RH(W,Y1),V=Z||Boolean(I.force),X=H.filter((A)=>RH(A.version,Y1));if(I.checkOnly){B0({updated:!1,updateAvailable:Z,currentVersion:Y1,currentVersionPublishedAt:w?.publishedAt,latestVersion:W,latestVersionPublishedAt:G.publishedAt,behindCount:X.length,pendingReleases:X.map((A)=>({version:A.version,tagName:A.tagName,publishedAt:A.publishedAt,author:A.author,releaseNotes:A.notes,releaseUrl:A.htmlUrl})),releaseNotes:G.notes,releaseUrl:G.htmlUrl,mode:"binary"});return}if(!V){B0({updated:!1,currentVersion:Y1,currentVersionPublishedAt:w?.publishedAt,latestVersion:W,latestVersionPublishedAt:G.publishedAt,mode:"binary",message:`seal-use is already up to date (v${Y1})`});return}let L=NW1(G.assets,K,q);if(!L)throw Error(`No compatible binary found for ${K}-${q} in release v${W}. Available assets: ${G.assets.map((A)=>A.name).join(", ")}`);let D=gJ(U).running;if(D)await XI("stop",U);let F=process.execPath,P=XW1(F),E=SX0(P,`.tmp-update-${Date.now()}`);ZW1(E,{recursive:!0});try{let A=SX0(E,L.name);await MW1(L.downloadUrl,A,G.tagName,L.name);let R=A;if(L.name.endsWith(".tar.gz")||L.name.endsWith(".tgz"))R=AW1(A,E,K);else if(L.name.endsWith(".zip"))R=PW1(A,E,K);if(VW1(R,493),process.platform==="darwin")try{LI("/usr/bin/codesign",["--remove-signature",R],{stdio:"ignore"}),LI("/usr/bin/codesign",["--force","--sign","-",R],{stdio:"ignore"})}catch{}if(process.platform==="win32"){let y=`${F}.old.${Date.now()}`;try{ou(F,y)}catch{}ou(R,F)}else ou(R,F);if(D)await XI("start",U);let k=lu();B0({updated:!0,fromVersion:Y1,toVersion:W,serviceRestarted:D,skillSynced:k.synced?k.targetDir:!1,mode:"binary"})}finally{try{zW1(E,{recursive:!0,force:!0})}catch{}}}function OW1(){if(process.platform==="darwin")return"darwin";if(process.platform==="win32")return"windows";return"linux"}function FW1(){return process.arch==="arm64"?"arm64":"x64"}function tu(){let $=(process.env.SEAL_USE_MIRROR||process.env.SEAL_HOME_MIRROR)?.trim().toLowerCase();if($==="github"||$==="gitea")return $;if(process.env.CI)return"github";return"auto"}async function ru($,I=20){let U=process.env.GITHUB_TOKEN||process.env.GH_TOKEN,Y={"User-Agent":`seal-use/${Y1}`,Accept:"application/vnd.github.v3+json",...U?{Authorization:`Bearer ${U}`}:{}},J=tu(),Q=[];if(J!=="github")Q.push(`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases?per_page=${I}`,`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases?per_page=${I}`);if(J!=="gitea"){if(Q.push(`https://api.github.com/repos/${$}/releases?per_page=${I}`),$!==jH)Q.push(`https://api.github.com/repos/${jH}/releases?per_page=${I}`)}for(let K of Q)try{let q=await fetch(K,{headers:Y,signal:AbortSignal.timeout(3000)});if(!q.ok)continue;let H=await q.json();if(!Array.isArray(H)||H.length===0)continue;let G=[];for(let W of H){let w=W.tag_name??"",Z=w.replace(/^v/,"");if(!Z)continue;let V=(W.assets??[]).map((X)=>({name:X.name,downloadUrl:X.browser_download_url,size:X.size??0}));G.push({version:Z,tagName:w,name:W.name??w,publishedAt:W.published_at,author:W.author?.login,notes:W.body??"",htmlUrl:W.html_url??"",assets:V})}if(G.length>0)return G}catch{}return[]}async function gX0($,I){let U=I?I.startsWith("v")?I:`v${I}`:void 0,Y=process.env.GITHUB_TOKEN||process.env.GH_TOKEN,J={"User-Agent":`seal-use/${Y1}`,Accept:"application/vnd.github.v3+json",...Y?{Authorization:`Bearer ${Y}`}:{}},Q=tu(),K=[];if(Q!=="github")K.push(U?`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases/tags/${U}`:"https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases/latest",U?`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/tags/${U}`:"https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/latest");if(Q!=="gitea"){if(K.push(U?`https://api.github.com/repos/${$}/releases/tags/${U}`:`https://api.github.com/repos/${$}/releases/latest`),$!==jH)K.push(U?`https://api.github.com/repos/${jH}/releases/tags/${U}`:`https://api.github.com/repos/${jH}/releases/latest`)}let q;for(let H of K)try{let G=await fetch(H,{headers:J,signal:AbortSignal.timeout(3000)});if(!G.ok)continue;let W=await G.json(),w=W.tag_name??"",Z=w.replace(/^v/,"");if(!Z)continue;let V=(W.assets??[]).map((L)=>({name:L.name,downloadUrl:L.browser_download_url,size:L.size??0})),X={version:Z,tagName:w,name:W.name??w,publishedAt:W.published_at,author:W.author?.login,notes:W.body??"",htmlUrl:W.html_url??"",assets:V};if(V.length>0)return X;if(!q)q=X}catch{}return q}function NW1($,I,U){let Y={darwin:["darwin","macos","osx","apple"],linux:["linux"],windows:["windows","win32","win"]},J={arm64:["arm64","aarch64"],x64:["x64","x86_64","amd64"]},Q=Y[I]||[],K=J[U]||[],q=$.filter((W)=>{let w=W.name.toLowerCase(),Z=Q.some((X)=>w.includes(X)),V=K.some((X)=>w.includes(X));return Z&&V}),H=q.find((W)=>!W.name.endsWith(".tar.gz")&&!W.name.endsWith(".tgz")&&!W.name.endsWith(".zip")&&!W.name.endsWith(".sha256"));if(H)return H;return q.find((W)=>W.name.endsWith(".tar.gz")||W.name.endsWith(".tgz")||W.name.endsWith(".zip"))||q[0]}function oD($){try{process.stderr.write(`${$} -`)}catch{}}async function MW1($,I,U,Y){let J=tu(),Q=[],K=U?U.startsWith("v")?U:`v${U}`:void 0,q=Y||$.split("/").pop()||"";if(J!=="github"){if(K&&q)Q.push(`https://git.ying-qing.cn/gitea/seal-use/releases/download/${K}/${q}`,`https://git.ying-qing.cn/gitea/seal-home/releases/download/${K}/${q}`);if($.startsWith("https://git.ying-qing.cn"))Q.push($)}if(J!=="gitea")if(K&&q){let L=`https://github.com/${uX0}/releases/download/${K}/${q}`;if(!process.env.CI)Q.push(`https://ghfast.top/${L}`,`https://gh.ddlc.top/${L}`);Q.push(L)}else if($.includes("github.com")){if(!process.env.CI)Q.push(`https://ghfast.top/${$}`,`https://gh.ddlc.top/${$}`);Q.push($)}else Q.push($);let H=Array.from(new Set(Q)),G,W=6000,w=6000,Z=307200,V=1e4,X=180000;for(let L=0;L{P=y;try{F.abort()}catch{}},A=setTimeout(()=>{E("Connection timed out (no response headers within 6s)")},W),R,k;try{oD(`==> [${L+1}/${H.length}] Downloading via: ${D}`);let y=await fetch(D,{signal:F.signal});if(A)clearTimeout(A),A=void 0;if(!y.ok)throw Error(`HTTP ${y.status} ${y.statusText}`);R=setTimeout(()=>{E("Overall download time exceeded 3 minutes")},X);let f=Number(y.headers.get("content-length"))||0,j=y.body?.getReader();if(!j){let i=Buffer.from(await y.arrayBuffer());if(i.length<1000)throw Error(`Downloaded content is suspiciously small (${i.length} bytes)`);_X0(I,i),oD(`✓ Download succeeded (${(i.length/1024/1024).toFixed(1)} MB)`);return}let p=[],n=0,S=0;k=setTimeout(()=>{if(n{U0=setTimeout(()=>{w0(Error("Data transfer stalled (no chunk received for 10s)"))},V)}),x;try{x=await Promise.race([i,B])}finally{if(U0)clearTimeout(U0)}let{done:c,value:r}=x;if(c)break;if(r){if(p.push(r),n+=r.length,k&&n>=Z)clearTimeout(k),k=void 0;let J0=Date.now();if(J0-S>200){S=J0;let w0=f?Math.round(n/f*100):0,A0=(n/1048576).toFixed(1),j0=f?(f/1048576).toFixed(1):"?";try{process.stderr.write(`\r ↳ Progress: ${w0}% (${A0} / ${j0} MB)...`)}catch{}}}}try{process.stderr.write(` -`)}catch{}let b=Buffer.concat(p);if(b.length<1000)throw Error(`Downloaded content is suspiciously small (${b.length} bytes)`);_X0(I,b),oD(`✓ Download completed successfully (${(b.length/1024/1024).toFixed(1)} MB)`);return}catch(y){if(A)clearTimeout(A);if(k)clearTimeout(k);if(R)clearTimeout(R);let f=P||(y instanceof Error?y.message:String(y));G=Error(f),oD(` - ↳ Mirror failed: ${G.message}`)}finally{if(A)clearTimeout(A);if(k)clearTimeout(k);if(R)clearTimeout(R)}}throw Error(`Failed to download asset from all mirrors: ${G?.message}`)}function AW1($,I,U){let Y=LI("tar",["-xzf",$,"-C",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract tar archive: ${Y.stderr.toString()}`);hX0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=LI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(` -`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function PW1($,I,U){let Y=LI("unzip",["-q","-o",$,"-d",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract zip archive: ${Y.stderr.toString()}`);hX0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=LI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(` -`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function kX0($,I){let U=$.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0),Y=I.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0);for(let J=0;JK)return 1;if(Q0}function yX0($,I,U={}){let Y=LI($,I,{cwd:U.cwd,encoding:"utf8",stdio:["ignore","pipe","pipe"]});if(Y.stdout)console.error(Y.stdout.trimEnd());if(Y.stderr)console.error(Y.stderr.trimEnd());if(Y.status!==0)throw Error(`${$} ${I.join(" ")} failed with status ${Y.status}`)}async function fX0($,I,U,Y,J){if($==="create"){let Q=g(J.options.name)??I,K=g(J.options.phone);if(!Q||!K)throw Error("Usage: seal-use users create --name --phone [--dept ]");let q=g(J.options.dept)??g(J.options.departmentId);await F0("seal_user_create",U,Y,{name:Q,phone:K,departmentIds:q?[q]:void 0},V0(J.options));return}if($==="reset-password"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users reset-password ");await F0("seal_user_reset_password",U,Y,{userId:Q},V0(J.options));return}if($==="search"||$==="list"){let Q=I??g(J.options.keyword)??g(J.options.query)??"";await F0("seal_user_search",U,Y,{keyword:Q},V0(J.options));return}if($==="get"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users get ");await F0("seal_user_get",U,Y,{userId:Q},V0(J.options));return}if($==="delete"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users delete ");await F0("seal_user_delete",U,Y,{userId:Q},V0(J.options));return}if($==="activate"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users activate ");await F0("seal_user_activate",U,Y,{userId:Q},V0(J.options));return}if($==="delegation"||$==="impersonate"){let Q=I??g(J.options.userId)??g(J.options.phone);if(!Q)throw Error("Usage: seal-use users delegation [--note ]");let K=g(J.options.note);await F0("seal_user_delegation_create",U,Y,{userIdOrPhone:Q,note:K},V0(J.options));return}throw Error(`Unknown users command: ${$??""}. Run 'seal-use help' for available commands.`)}var bX0=au(au(au(EW1(import.meta.url)))),BW1=new Set(["config","service","stop","http","serve","update","tools","corps","corp","tool","source","auth","delegation","users","contacts","data","llm","permissions","billing","webhook","webhooks","context","rules","approval-runs","analytics","simulation","deploy","preference","preferences","mcp","server","mcp-config","skill","openapi","probe","changelog"]),vW1=new Set(["http","server","web","mcp"]);function RW1($){if(!$.length)return!1;let I=$[0]?.toLowerCase(),U=$[1]?.toLowerCase();if(I&&vW1.has(I))return!0;if((I==="service"||I==="daemon")&&U==="run")return!0;return!1}var iX0=Promise.resolve();function EH($,I={}){if(RW1($))return nX0($,I);let U=iX0.then(()=>nX0($,I));return iX0=U.then(()=>{return},()=>{return}),U}async function nX0($,I){let U=[],Y=[],J=console.log,Q=console.error,K={appRoot:I.appRoot??bX0,entryFile:I.entryFile??TW1(I.appRoot??bX0,"src","cli.ts"),launcher:I.launcher};console.log=(...q)=>{U.push(gu(q))},console.error=(...q)=>{Y.push(gu(q))};try{return await jW1($,K),{stdout:AH(U),stderr:AH(Y),isError:!1,exitCode:0}}catch(q){let H=PH(q instanceof Error?q.message:String(q)),G=_D(q);if(Y.push(H),G.nextAction&&!H.includes("Next action:"))Y.push(`\uD83D\uDC49 Next action: ${G.nextAction}`);return{stdout:AH(U),stderr:AH(Y),isError:!0,exitCode:G.exitCode}}finally{console.log=J,console.error=Q}}async function jW1($,I){let U=tZ0($),[Y,J,Q]=U.command;if(Y==="version"||Y==="v"||Boolean(U.options.version)||Boolean(U.options.v)||Boolean(U.options.V)){B0(O2);return}let K=Jz0(U);if(K.isHelp){Hz0(K.target);return}if(!Y||!BW1.has(Y))throw Error(`Unknown command: ${U.command.join(" ")}. Run 'seal-use help' for available commands.`);if(Y==="webhook"&&J==="material-pack"&&Q==="preview"){let G=U.command[3]??g(U.options.file)??g(U.options.input);if(!G)throw Error("Usage: seal-use webhook material-pack preview <材料包.zip>");await zz0(G,MH(U.options));return}if(Y==="openapi"){az0(U);return}if(Y==="mcp-config"){uu();return}if(Y==="skill"){vX0(J,Q,U);return}if(Y==="mcp"||Y==="server"){await tz0(J,U);return}if(Y==="probe"){await UX0(J,Q,U);return}if(Y==="config"){Pz0(J,Q,U);return}if(Y==="service"){await pu(J,I,U);return}if(Y==="stop"){await pu("stop",I,U);return}if(Y==="http"||Y==="serve"){await oz0(U);return}if(Y==="update"||Y==="changelog"){let G=Y==="changelog"||J==="changelog"||J==="log"||J==="history"||O0(U.options.changelog)===!0,W=J==="check"||O0(U.options.check)===!0||O0(U.options["check-only"])===!0,w=g(U.options.version)??g(U.options.tag)??(!G&&!W&&J&&!J.startsWith("-")?J:void 0);await xX0(I,{checkOnly:W,changelogOnly:G,limit:m0(U.options.limit),force:O0(U.options.force),targetVersion:w,repo:g(U.options.repo)});return}if(Y==="tools"&&J==="list"){CX0();return}if(Y==="corps"||Y==="corp"){await kz0(J,Q,U);return}if(Y==="delegation"&&J==="create"&&(("from-link"in U.options)||("link"in U.options))){let G=g(U.options["from-link"])??g(U.options.link);if(!G)throw Error("Usage: seal-use delegation create --from-link [--note ]");await nz0(G,g(U.options.note));return}if(Y==="rules"&&J==="lint"&&(("file"in U.options)||("f"in U.options))){let G;try{G=y1(g(U.options.corp))}catch{G={id:"local",name:"Local Workspace",source:{type:"native"}}}await ku(J,Q,null,G,U);return}let q=y1(g(U.options.corp));if(Y==="source"){await RX0(J,q);return}if(Y==="auth"){await Fz0(J,q,U);return}let H=await u1(q);if(Y==="delegation"){await pz0(J,Q,H,q,U);return}if(Y==="users"){await fX0(J,Q,H,q,U);return}if(Y==="contacts"){await Tz0(J,Q,H,q,U);return}if(Y==="data"){await Ez0(J,H,q,U);return}if(Y==="llm"){await rz0(J,H,q,U);return}if(Y==="permissions"){await sz0(J,H,q,U);return}if(Y==="billing"){await Az0(J,H,q,U);return}if(Y==="webhook"||Y==="webhooks"){await SD(J,Q,H,q,U);return}if(Y==="context"){await Bz0(H,q,U);return}if(Y==="rules"){await ku(J,Q,H,q,U);return}if(Y==="approval-runs"){await Xz0(J,Q,H,q,U);return}if(Y==="analytics"){await Lz0(J,H,q,U);return}if(Y==="simulation"){await HX0(J,Q,H,q,U);return}if(Y==="deploy"){await cz0(J,Q,U.command[3],H,q,U);return}if(Y==="preference"||Y==="preferences"){await $X0(J,Q,U.command[3],U.command[4],H,q,U);return}if(Y==="tool"){await jX0(J,H,q,U);return}throw Error(`Unknown command: ${U.command.join(" ")}. Run 'seal-use help' for available commands.`)}var t5=CW1(import.meta.url),cX0=t5.includes("/dist/mcp/")||t5.includes("\\dist\\mcp\\")?CH(CH(CH(t5))):CH(CH(t5)),_W1="seal_cli",SW1="SEAL_USE_MCP_ENABLED",gW1="SEAL_HOME_MCP_ENABLED";function yW1($=process.env[SW1]??process.env[gW1]){if($===void 0)return!1;return["1","true","yes","on"].includes($.trim().toLowerCase())}function hW1($={}){let I=$.enableCli??!0,U=new FE({name:"seal-use",version:Y1},{capabilities:{tools:{}}});if(U.setRequestHandler(KT,async()=>({tools:I?[{name:_W1,description:"Run seal-use CLI commands. See the seal-use skill for command reference.",inputSchema:{type:"object",properties:{command:{type:"string",description:"A seal-use CLI command, with or without the leading 'seal-use' or 'seal-home'."}},required:["command"],additionalProperties:!1}}]:[]})),I)U.setRequestHandler(yQ,async(Y)=>{let J=Y.params.arguments,Q=J&&typeof J.command==="string"?J.command:void 0;if(!Q?.trim())return su({stdout:"",stderr:"seal_cli requires a non-empty command string",isError:!0,exitCode:2});try{let K=hu(Q),q=uW1(K);if(!q.length)throw Error("seal_cli requires a non-empty command string");return su(await EH(q,{appRoot:cX0,entryFile:t5,launcher:{command:process.execPath,args:[t5,"--seal-home-cli"]}}))}catch(K){let q=_D(K);return su({stdout:"",stderr:K instanceof Error?K.message:String(K),isError:!0,exitCode:q.exitCode})}});return U}async function xu(){let $=yW1();await hW1({enableCli:$}).connect(new ME),console.error($?"seal-use MCP server running on stdio":"seal-use MCP server connected with seal_cli disabled by configuration")}function hu($){let I=[],U="",Y,J=!1,Q=!1;for(let K of $){if(J){U+=K,J=!1,Q=!0;continue}if(K==="\\"&&Y!=="'"){J=!0,Q=!0;continue}if(Y){if(K===Y)Y=void 0;else U+=K;Q=!0;continue}if(K==="'"||K==='"'){Y=K,Q=!0;continue}if(/\s/.test(K)){if(Q)I.push(U),U="",Q=!1;continue}U+=K,Q=!0}if(J)throw Error("Invalid command: trailing escape");if(Y)throw Error("Invalid command: unterminated quote");if(Q)I.push(U);return I}function uW1($){let I=$[0];if(!I)return[];if(I==="seal-use"||I==="seal-home"||I.endsWith("/seal-use")||I.endsWith("/seal-home"))return $.slice(1);return $}function su($){return{content:[{type:"text",text:$.isError?$.stderr||$.stdout:$.stdout}],isError:$.isError}}async function xW1(){let $=await EH(process.argv.slice(3),{appRoot:cX0,entryFile:t5,launcher:{command:process.execPath,args:[t5,"--seal-use-cli"]}});if($.stdout)process.stdout.write($.stdout);if($.stderr)process.stderr.write(`${$.stderr}${$.stderr.endsWith(` +`;var AX0={"SKILL.md":GX0,"agents/openai.yaml":WX0,"references/rule-lightweight.md":wX0,"references/approval-bad-cases.md":VX0,"references/cli.md":ZX0,"references/approval-run-lightweight.md":zX0,"references/approval-attachment-trace.md":XX0,"references/customer-feedback-rule-remediation.md":LX0,"references/enterprise-onboarding.md":DX0,"references/hose-enterprise-auth.md":OX0,"references/hose-enterprise-init.md":FX0};function PX0(){return AX0["SKILL.md"]||""}function vH(){return lu(MX0(),".agents","skills","seal-use")}function TX0(){return lu(MX0(),".agents","skills","seal-home")}function EX0(){let $=TX0();if(mu($))try{return WW1($,{recursive:!0,force:!0}),!0}catch{return!1}return!1}function ou($=vH()){EX0(),NX0($,{recursive:!0});let I=[];for(let[U,Y]of Object.entries(AX0)){let J=lu($,U);NX0(VW1(J),{recursive:!0}),wW1(J,Y,"utf8"),I.push(U)}return{targetDir:$,files:I}}function ru(){let $=TX0(),I=vH(),U=mu($),Y=mu(I);if(U||Y)return EX0(),ou(I),{synced:!0,targetDir:I};return{synced:!1}}function vX0($,I,U){if($==="dump"||$==="cat"||$==="show"){process.stdout.write(`${PX0()} +`);return}if($==="install"||$==="init"||$==="sync"){let Y=O0(U.options.local)||O0(U.options.workspace),J=g(U.options.dir)??g(U.options.target)??I,Q=J?J:Y?lD(process.cwd(),".agents","skills","seal-use"):vH(),K=ou(Q);B0({installed:!0,targetDir:K.targetDir,fileCount:K.files.length,files:K.files});return}if($==="status"||$==="get"||!$){let Y=vH(),J=lD(process.cwd(),".agents","skills","seal-use");B0({global:{dir:Y,installed:BX0(lD(Y,"SKILL.md"))},local:{dir:J,installed:BX0(lD(J,"SKILL.md"))}});return}throw Error(`Unknown skill command: ${$}. Run 'seal-use help' for available commands.`)}async function RX0($,I){if($==="config"){B0(await gJ(I));return}throw Error(`Unknown source command: ${$??""}. Run 'seal-use help' for available commands.`)}async function jX0($,I,U,Y){if(!$)throw Error("Usage: seal-use tool [--json '{...}']");await F0($,I,U,U$(Y.json),V0(Y.options))}function CX0(){B0(OH.map(($)=>({name:$.name,description:$.description})))}import{chmodSync as ZW1,mkdirSync as zW1,renameSync as tu,rmSync as XW1,unlinkSync as hX0,writeFileSync as _X0}from"node:fs";import{dirname as LW1,join as SX0}from"node:path";import{spawnSync as LI}from"node:child_process";function oD($=process.execPath,I=import.meta.url){if(I.includes("/$bunfs/")||I.includes("\\$bunfs\\"))return!0;let U=$.toLowerCase().replace(/\\/g,"/");return!U.endsWith("/bun")&&!U.endsWith("/bun.exe")&&!U.endsWith("/node")&&!U.endsWith("/node.exe")}var uX0="yunyingk/seal-use",jH="yunyingk/seal-home";var DW1="SEAL_USE_GITHUB_REPO",OW1="SEAL_HOME_GITHUB_REPO";async function kX0($,I={}){let U={appRoot:$.appRoot,entryFile:$.entryFile,stateDir:cu,version:Y1,launcher:$.launcher},Y=I.repo||process.env[DW1]?.trim()||process.env[OW1]?.trim()||uX0,J=I.targetVersion?.trim(),Q=J&&J.toLowerCase()!=="latest"?J:void 0;if(Q){let A=Q.replace(/^v/,""),R=xX0(A,Y1);if(R<0)if(!iE&&I.force);else{B0({updated:!1,currentVersion:Y1,targetVersion:A,mode:oD()?"binary":"source",message:!iE?`Cannot downgrade seal-use from dev build v${Y1} to release v${A}. Use --force to overwrite.`:`Cannot downgrade seal-use from v${Y1} to older version v${A}. Updates must be forward-only.`});return}if(R===0&&!I.force){B0({updated:!1,currentVersion:Y1,targetVersion:A,mode:oD()?"binary":"source",message:`seal-use is already at version v${Y1}. Use --force to reinstall.`});return}}if(I.changelogOnly){let A=await au(Y,I.limit??10);B0({currentVersion:Y1,totalQueried:A.length,releases:A.map((R)=>({version:R.version,tagName:R.tagName,publishedAt:R.publishedAt,author:R.author,releaseNotes:R.notes,releaseUrl:R.htmlUrl,isCurrent:R.version===Y1,isNewer:RH(R.version,Y1)}))});return}if(!oD()){if(I.checkOnly){let R=await au(Y,30),x=R[0],y=x?.version??Y1,f=R.find((n)=>n.version===Y1),j=RH(y,Y1),p=R.filter((n)=>RH(n.version,Y1));B0({updated:!1,updateAvailable:j,currentVersion:Y1,currentVersionPublishedAt:f?.publishedAt,latestVersion:y,latestVersionPublishedAt:x?.publishedAt,behindCount:p.length,pendingReleases:p.map((n)=>({version:n.version,tagName:n.tagName,publishedAt:n.publishedAt,author:n.author,releaseNotes:n.notes,releaseUrl:n.htmlUrl})),releaseNotes:x?.notes??"",releaseUrl:x?.htmlUrl??"",mode:"source",message:"Running in source development mode. Run 'seal-use update' to git pull & bun install."});return}let A=hJ(U).running;if(A)await XI("stop",U);try{yX0("git",["-C",$.appRoot,"pull","--ff-only"])}catch(R){console.error(`git pull skipped: ${R instanceof Error?R.message:String(R)}`)}if(yX0("bun",["install"],{cwd:$.appRoot}),A)await XI("start",U);B0({updated:!0,serviceRestarted:A,version:Y1,mode:"source"});return}let K=FW1(),q=NW1(),H=await au(Y,30),G=Q?H.find((A)=>A.version===Q||A.tagName===Q||A.tagName===`v${Q}`)??await gX0(Y,Q):H[0]??await gX0(Y);if(!G){B0({updated:!1,currentVersion:Y1,mode:"binary",message:`Failed to query releases from repository '${Y}'`});return}let W=G.version,w=H.find((A)=>A.version===Y1),Z=RH(W,Y1),V=Z||Boolean(I.force),X=H.filter((A)=>RH(A.version,Y1));if(I.checkOnly){B0({updated:!1,updateAvailable:Z,currentVersion:Y1,currentVersionPublishedAt:w?.publishedAt,latestVersion:W,latestVersionPublishedAt:G.publishedAt,behindCount:X.length,pendingReleases:X.map((A)=>({version:A.version,tagName:A.tagName,publishedAt:A.publishedAt,author:A.author,releaseNotes:A.notes,releaseUrl:A.htmlUrl})),releaseNotes:G.notes,releaseUrl:G.htmlUrl,mode:"binary"});return}if(!V){B0({updated:!1,currentVersion:Y1,currentVersionPublishedAt:w?.publishedAt,latestVersion:W,latestVersionPublishedAt:G.publishedAt,mode:"binary",message:`seal-use is already up to date (v${Y1})`});return}let L=MW1(G.assets,K,q);if(!L)throw Error(`No compatible binary found for ${K}-${q} in release v${W}. Available assets: ${G.assets.map((A)=>A.name).join(", ")}`);let D=hJ(U).running;if(D)await XI("stop",U);let F=process.execPath,P=LW1(F),T=SX0(P,`.tmp-update-${Date.now()}`);zW1(T,{recursive:!0});try{let A=SX0(T,L.name);await AW1(L.downloadUrl,A,G.tagName,L.name);let R=A;if(L.name.endsWith(".tar.gz")||L.name.endsWith(".tgz"))R=PW1(A,T,K);else if(L.name.endsWith(".zip"))R=TW1(A,T,K);if(ZW1(R,493),process.platform==="darwin")try{LI("/usr/bin/codesign",["--remove-signature",R],{stdio:"ignore"}),LI("/usr/bin/codesign",["--force","--sign","-",R],{stdio:"ignore"})}catch{}if(process.platform==="win32"){let y=`${F}.old.${Date.now()}`;try{tu(F,y)}catch{}tu(R,F)}else tu(R,F);if(D)await XI("start",U);let x=ru();B0({updated:!0,fromVersion:Y1,toVersion:W,serviceRestarted:D,skillSynced:x.synced?x.targetDir:!1,mode:"binary"})}finally{try{XW1(T,{recursive:!0,force:!0})}catch{}}}function FW1(){if(process.platform==="darwin")return"darwin";if(process.platform==="win32")return"windows";return"linux"}function NW1(){return process.arch==="arm64"?"arm64":"x64"}function su(){let $=(process.env.SEAL_USE_MIRROR||process.env.SEAL_HOME_MIRROR)?.trim().toLowerCase();if($==="github"||$==="gitea")return $;if(process.env.CI)return"github";return"auto"}async function au($,I=20){let U=process.env.GITHUB_TOKEN||process.env.GH_TOKEN,Y={"User-Agent":`seal-use/${Y1}`,Accept:"application/vnd.github.v3+json",...U?{Authorization:`Bearer ${U}`}:{}},J=su(),Q=[];if(J!=="github")Q.push(`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases?per_page=${I}`,`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases?per_page=${I}`);if(J!=="gitea"){if(Q.push(`https://api.github.com/repos/${$}/releases?per_page=${I}`),$!==jH)Q.push(`https://api.github.com/repos/${jH}/releases?per_page=${I}`)}for(let K of Q)try{let q=await fetch(K,{headers:Y,signal:AbortSignal.timeout(3000)});if(!q.ok)continue;let H=await q.json();if(!Array.isArray(H)||H.length===0)continue;let G=[];for(let W of H){let w=W.tag_name??"",Z=w.replace(/^v/,"");if(!Z)continue;let V=(W.assets??[]).map((X)=>({name:X.name,downloadUrl:X.browser_download_url,size:X.size??0}));G.push({version:Z,tagName:w,name:W.name??w,publishedAt:W.published_at,author:W.author?.login,notes:W.body??"",htmlUrl:W.html_url??"",assets:V})}if(G.length>0)return G}catch{}return[]}async function gX0($,I){let U=I?I.startsWith("v")?I:`v${I}`:void 0,Y=process.env.GITHUB_TOKEN||process.env.GH_TOKEN,J={"User-Agent":`seal-use/${Y1}`,Accept:"application/vnd.github.v3+json",...Y?{Authorization:`Bearer ${Y}`}:{}},Q=su(),K=[];if(Q!=="github")K.push(U?`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases/tags/${U}`:"https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases/latest",U?`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/tags/${U}`:"https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/latest");if(Q!=="gitea"){if(K.push(U?`https://api.github.com/repos/${$}/releases/tags/${U}`:`https://api.github.com/repos/${$}/releases/latest`),$!==jH)K.push(U?`https://api.github.com/repos/${jH}/releases/tags/${U}`:`https://api.github.com/repos/${jH}/releases/latest`)}let q;for(let H of K)try{let G=await fetch(H,{headers:J,signal:AbortSignal.timeout(3000)});if(!G.ok)continue;let W=await G.json(),w=W.tag_name??"",Z=w.replace(/^v/,"");if(!Z)continue;let V=(W.assets??[]).map((L)=>({name:L.name,downloadUrl:L.browser_download_url,size:L.size??0})),X={version:Z,tagName:w,name:W.name??w,publishedAt:W.published_at,author:W.author?.login,notes:W.body??"",htmlUrl:W.html_url??"",assets:V};if(V.length>0)return X;if(!q)q=X}catch{}return q}function MW1($,I,U){let Y={darwin:["darwin","macos","osx","apple"],linux:["linux"],windows:["windows","win32","win"]},J={arm64:["arm64","aarch64"],x64:["x64","x86_64","amd64"]},Q=Y[I]||[],K=J[U]||[],q=$.filter((W)=>{let w=W.name.toLowerCase(),Z=Q.some((X)=>w.includes(X)),V=K.some((X)=>w.includes(X));return Z&&V}),H=q.find((W)=>!W.name.endsWith(".tar.gz")&&!W.name.endsWith(".tgz")&&!W.name.endsWith(".zip")&&!W.name.endsWith(".sha256"));if(H)return H;return q.find((W)=>W.name.endsWith(".tar.gz")||W.name.endsWith(".tgz")||W.name.endsWith(".zip"))||q[0]}function rD($){try{process.stderr.write(`${$} +`)}catch{}}async function AW1($,I,U,Y){let J=su(),Q=[],K=U?U.startsWith("v")?U:`v${U}`:void 0,q=Y||$.split("/").pop()||"";if(J!=="github"){if(K&&q)Q.push(`https://git.ying-qing.cn/gitea/seal-use/releases/download/${K}/${q}`,`https://git.ying-qing.cn/gitea/seal-home/releases/download/${K}/${q}`);if($.startsWith("https://git.ying-qing.cn"))Q.push($)}if(J!=="gitea")if(K&&q){let L=`https://github.com/${uX0}/releases/download/${K}/${q}`;if(!process.env.CI)Q.push(`https://ghfast.top/${L}`,`https://gh.ddlc.top/${L}`);Q.push(L)}else if($.includes("github.com")){if(!process.env.CI)Q.push(`https://ghfast.top/${$}`,`https://gh.ddlc.top/${$}`);Q.push($)}else Q.push($);let H=Array.from(new Set(Q)),G,W=6000,w=6000,Z=307200,V=1e4,X=180000;for(let L=0;L{P=y;try{F.abort()}catch{}},A=setTimeout(()=>{T("Connection timed out (no response headers within 6s)")},W),R,x;try{rD(`==> [${L+1}/${H.length}] Downloading via: ${D}`);let y=await fetch(D,{signal:F.signal});if(A)clearTimeout(A),A=void 0;if(!y.ok)throw Error(`HTTP ${y.status} ${y.statusText}`);R=setTimeout(()=>{T("Overall download time exceeded 3 minutes")},X);let f=Number(y.headers.get("content-length"))||0,j=y.body?.getReader();if(!j){let b=Buffer.from(await y.arrayBuffer());if(b.length<1000)throw Error(`Downloaded content is suspiciously small (${b.length} bytes)`);_X0(I,b),rD(`✓ Download succeeded (${(b.length/1024/1024).toFixed(1)} MB)`);return}let p=[],n=0,S=0;x=setTimeout(()=>{if(n{U0=setTimeout(()=>{w0(Error("Data transfer stalled (no chunk received for 10s)"))},V)}),k;try{k=await Promise.race([b,B])}finally{if(U0)clearTimeout(U0)}let{done:c,value:r}=k;if(c)break;if(r){if(p.push(r),n+=r.length,x&&n>=Z)clearTimeout(x),x=void 0;let J0=Date.now();if(J0-S>200){S=J0;let w0=f?Math.round(n/f*100):0,A0=(n/1048576).toFixed(1),j0=f?(f/1048576).toFixed(1):"?";try{process.stderr.write(`\r ↳ Progress: ${w0}% (${A0} / ${j0} MB)...`)}catch{}}}}try{process.stderr.write(` +`)}catch{}let i=Buffer.concat(p);if(i.length<1000)throw Error(`Downloaded content is suspiciously small (${i.length} bytes)`);_X0(I,i),rD(`✓ Download completed successfully (${(i.length/1024/1024).toFixed(1)} MB)`);return}catch(y){if(A)clearTimeout(A);if(x)clearTimeout(x);if(R)clearTimeout(R);let f=P||(y instanceof Error?y.message:String(y));G=Error(f),rD(` + ↳ Mirror failed: ${G.message}`)}finally{if(A)clearTimeout(A);if(x)clearTimeout(x);if(R)clearTimeout(R)}}throw Error(`Failed to download asset from all mirrors: ${G?.message}`)}function PW1($,I,U){let Y=LI("tar",["-xzf",$,"-C",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract tar archive: ${Y.stderr.toString()}`);hX0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=LI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(` +`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function TW1($,I,U){let Y=LI("unzip",["-q","-o",$,"-d",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract zip archive: ${Y.stderr.toString()}`);hX0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=LI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(` +`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function xX0($,I){let U=$.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0),Y=I.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0);for(let J=0;JK)return 1;if(Q0}function yX0($,I,U={}){let Y=LI($,I,{cwd:U.cwd,encoding:"utf8",stdio:["ignore","pipe","pipe"]});if(Y.stdout)console.error(Y.stdout.trimEnd());if(Y.stderr)console.error(Y.stderr.trimEnd());if(Y.status!==0)throw Error(`${$} ${I.join(" ")} failed with status ${Y.status}`)}async function fX0($,I,U,Y,J){if($==="create"){let Q=g(J.options.name)??I,K=g(J.options.phone);if(!Q||!K)throw Error("Usage: seal-use users create --name --phone [--dept ]");let q=g(J.options.dept)??g(J.options.departmentId);await F0("seal_user_create",U,Y,{name:Q,phone:K,departmentIds:q?[q]:void 0},V0(J.options));return}if($==="reset-password"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users reset-password ");await F0("seal_user_reset_password",U,Y,{userId:Q},V0(J.options));return}if($==="search"||$==="list"){let Q=I??g(J.options.keyword)??g(J.options.query)??"";await F0("seal_user_search",U,Y,{keyword:Q},V0(J.options));return}if($==="get"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users get ");await F0("seal_user_get",U,Y,{userId:Q},V0(J.options));return}if($==="delete"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users delete ");await F0("seal_user_delete",U,Y,{userId:Q},V0(J.options));return}if($==="activate"){let Q=I??g(J.options.userId);if(!Q)throw Error("Usage: seal-use users activate ");await F0("seal_user_activate",U,Y,{userId:Q},V0(J.options));return}if($==="delegation"||$==="impersonate"){let Q=I??g(J.options.userId)??g(J.options.phone);if(!Q)throw Error("Usage: seal-use users delegation [--note ]");let K=g(J.options.note);await F0("seal_user_delegation_create",U,Y,{userIdOrPhone:Q,note:K},V0(J.options));return}throw Error(`Unknown users command: ${$??""}. Run 'seal-use help' for available commands.`)}var iX0=eu(eu(eu(BW1(import.meta.url)))),vW1=new Set(["config","service","stop","http","serve","update","tools","corps","corp","tool","source","auth","delegation","users","contacts","data","llm","permissions","billing","webhook","webhooks","context","rules","approval-runs","analytics","simulation","deploy","preference","preferences","mcp","server","mcp-config","skill","openapi","probe","changelog"]),RW1=new Set(["http","server","web","mcp"]);function jW1($){if(!$.length)return!1;let I=$[0]?.toLowerCase(),U=$[1]?.toLowerCase();if(I&&RW1.has(I))return!0;if((I==="service"||I==="daemon")&&U==="run")return!0;return!1}var bX0=Promise.resolve();function EH($,I={}){if(jW1($))return nX0($,I);let U=bX0.then(()=>nX0($,I));return bX0=U.then(()=>{return},()=>{return}),U}async function nX0($,I){let U=[],Y=[],J=console.log,Q=console.error,K={appRoot:I.appRoot??iX0,entryFile:I.entryFile??EW1(I.appRoot??iX0,"src","cli.ts"),launcher:I.launcher};console.log=(...q)=>{U.push(hu(q))},console.error=(...q)=>{Y.push(hu(q))};try{return await CW1($,K),{stdout:AH(U),stderr:AH(Y),isError:!1,exitCode:0}}catch(q){let H=PH(q instanceof Error?q.message:String(q)),G=SD(q);if(Y.push(H),G.nextAction&&!H.includes("Next action:"))Y.push(`\uD83D\uDC49 Next action: ${G.nextAction}`);return{stdout:AH(U),stderr:AH(Y),isError:!0,exitCode:G.exitCode}}finally{console.log=J,console.error=Q}}async function CW1($,I){let U=tZ0($),[Y,J,Q]=U.command;if(Y==="version"||Y==="v"||Boolean(U.options.version)||Boolean(U.options.v)||Boolean(U.options.V)){B0(O2);return}let K=Jz0(U);if(K.isHelp){Hz0(K.target);return}if(!Y||!vW1.has(Y))throw Error(`Unknown command: ${U.command.join(" ")}. Run 'seal-use help' for available commands.`);if(Y==="webhook"&&J==="material-pack"&&Q==="preview"){let G=U.command[3]??g(U.options.file)??g(U.options.input);if(!G)throw Error("Usage: seal-use webhook material-pack preview <材料包.zip>");await zz0(G,MH(U.options));return}if(Y==="openapi"){az0(U);return}if(Y==="mcp-config"){xu();return}if(Y==="skill"){vX0(J,Q,U);return}if(Y==="mcp"||Y==="server"){await tz0(J,U);return}if(Y==="probe"){await UX0(J,Q,U);return}if(Y==="config"){Pz0(J,Q,U);return}if(Y==="service"){await du(J,I,U);return}if(Y==="stop"){await du("stop",I,U);return}if(Y==="http"||Y==="serve"){await oz0(U);return}if(Y==="update"||Y==="changelog"){let G=Y==="changelog"||J==="changelog"||J==="log"||J==="history"||O0(U.options.changelog)===!0,W=J==="check"||O0(U.options.check)===!0||O0(U.options["check-only"])===!0,w=g(U.options.version)??g(U.options.tag)??(!G&&!W&&J&&!J.startsWith("-")?J:void 0);await kX0(I,{checkOnly:W,changelogOnly:G,limit:n0(U.options.limit),force:O0(U.options.force),targetVersion:w,repo:g(U.options.repo)});return}if(Y==="tools"&&J==="list"){CX0();return}if(Y==="corps"||Y==="corp"){await xz0(J,Q,U);return}if(Y==="delegation"&&J==="create"&&(("from-link"in U.options)||("link"in U.options))){let G=g(U.options["from-link"])??g(U.options.link);if(!G)throw Error("Usage: seal-use delegation create --from-link [--note ]");await nz0(G,g(U.options.note));return}if(Y==="rules"&&J==="lint"&&(("file"in U.options)||("f"in U.options))){let G;try{G=y1(g(U.options.corp))}catch{G={id:"local",name:"Local Workspace",source:{type:"native"}}}await iu(J,Q,null,G,U);return}let q=y1(g(U.options.corp));if(Y==="source"){await RX0(J,q);return}if(Y==="auth"){await Fz0(J,q,U);return}let H=await u1(q);if(Y==="delegation"){await pz0(J,Q,H,q,U);return}if(Y==="users"){await fX0(J,Q,H,q,U);return}if(Y==="contacts"){await Tz0(J,Q,H,q,U);return}if(Y==="data"){await Ez0(J,H,q,U);return}if(Y==="llm"){await rz0(J,H,q,U);return}if(Y==="permissions"){await sz0(J,H,q,U);return}if(Y==="billing"){await Az0(J,H,q,U);return}if(Y==="webhook"||Y==="webhooks"){await gD(J,Q,H,q,U);return}if(Y==="context"){await Bz0(H,q,U);return}if(Y==="rules"){await iu(J,Q,H,q,U);return}if(Y==="approval-runs"){await Xz0(J,Q,H,q,U);return}if(Y==="analytics"){await Lz0(J,H,q,U);return}if(Y==="simulation"){await HX0(J,Q,H,q,U);return}if(Y==="deploy"){await cz0(J,Q,U.command[3],H,q,U);return}if(Y==="preference"||Y==="preferences"){await $X0(J,Q,U.command[3],U.command[4],H,q,U);return}if(Y==="tool"){await jX0(J,H,q,U);return}throw Error(`Unknown command: ${U.command.join(" ")}. Run 'seal-use help' for available commands.`)}var t5=_W1(import.meta.url),cX0=t5.includes("/dist/mcp/")||t5.includes("\\dist\\mcp\\")?CH(CH(CH(t5))):CH(CH(t5)),SW1="seal_cli",gW1="SEAL_USE_MCP_ENABLED",yW1="SEAL_HOME_MCP_ENABLED";function hW1($=process.env[gW1]??process.env[yW1]){if($===void 0)return!1;return["1","true","yes","on"].includes($.trim().toLowerCase())}function uW1($={}){let I=$.enableCli??!0,U=new NE({name:"seal-use",version:Y1},{capabilities:{tools:{}}});if(U.setRequestHandler(qT,async()=>({tools:I?[{name:SW1,description:"Run seal-use CLI commands. See the seal-use skill for command reference.",inputSchema:{type:"object",properties:{command:{type:"string",description:"A seal-use CLI command, with or without the leading 'seal-use' or 'seal-home'."}},required:["command"],additionalProperties:!1}}]:[]})),I)U.setRequestHandler(uQ,async(Y)=>{let J=Y.params.arguments,Q=J&&typeof J.command==="string"?J.command:void 0;if(!Q?.trim())return $k({stdout:"",stderr:"seal_cli requires a non-empty command string",isError:!0,exitCode:2});try{let K=ku(Q),q=kW1(K);if(!q.length)throw Error("seal_cli requires a non-empty command string");return $k(await EH(q,{appRoot:cX0,entryFile:t5,launcher:{command:process.execPath,args:[t5,"--seal-home-cli"]}}))}catch(K){let q=SD(K);return $k({stdout:"",stderr:K instanceof Error?K.message:String(K),isError:!0,exitCode:q.exitCode})}});return U}async function fu(){let $=hW1();await uW1({enableCli:$}).connect(new AE),console.error($?"seal-use MCP server running on stdio":"seal-use MCP server connected with seal_cli disabled by configuration")}function ku($){let I=[],U="",Y,J=!1,Q=!1;for(let K of $){if(J){U+=K,J=!1,Q=!0;continue}if(K==="\\"&&Y!=="'"){J=!0,Q=!0;continue}if(Y){if(K===Y)Y=void 0;else U+=K;Q=!0;continue}if(K==="'"||K==='"'){Y=K,Q=!0;continue}if(/\s/.test(K)){if(Q)I.push(U),U="",Q=!1;continue}U+=K,Q=!0}if(J)throw Error("Invalid command: trailing escape");if(Y)throw Error("Invalid command: unterminated quote");if(Q)I.push(U);return I}function kW1($){let I=$[0];if(!I)return[];if(I==="seal-use"||I==="seal-home"||I.endsWith("/seal-use")||I.endsWith("/seal-home"))return $.slice(1);return $}function $k($){return{content:[{type:"text",text:$.isError?$.stderr||$.stdout:$.stdout}],isError:$.isError}}async function xW1(){let $=await EH(process.argv.slice(3),{appRoot:cX0,entryFile:t5,launcher:{command:process.execPath,args:[t5,"--seal-use-cli"]}});if($.stdout)process.stdout.write($.stdout);if($.stderr)process.stderr.write(`${$.stderr}${$.stderr.endsWith(` `)?"":` -`}`);process.exitCode=$.exitCode}var kW1=Boolean(t.main==t.module||!import.meta.url.includes("$bunfs")&&process.argv[1]&&pX0(process.argv[1])===pX0(t5));if(kW1)if(process.argv[2]==="--seal-use-cli"||process.argv[2]==="--seal-home-cli")await xW1();else xu().catch(($)=>{console.error($),process.exitCode=1});export{hu as tokenizeCommand,xu as startServer,yW1 as resolveMcpEnabled,hW1 as createServer,SW1 as SEAL_MCP_ENABLED_ENV,_W1 as SEAL_CLI_TOOL_NAME,gW1 as LEGACY_SEAL_MCP_ENABLED_ENV}; +`}`);process.exitCode=$.exitCode}var fW1=Boolean(t.main==t.module||!import.meta.url.includes("$bunfs")&&process.argv[1]&&pX0(process.argv[1])===pX0(t5));if(fW1)if(process.argv[2]==="--seal-use-cli"||process.argv[2]==="--seal-home-cli")await xW1();else fu().catch(($)=>{console.error($),process.exitCode=1});export{ku as tokenizeCommand,fu as startServer,hW1 as resolveMcpEnabled,uW1 as createServer,gW1 as SEAL_MCP_ENABLED_ENV,SW1 as SEAL_CLI_TOOL_NAME,yW1 as LEGACY_SEAL_MCP_ENABLED_ENV}; diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md index 26d33db..a60cead 100644 --- a/skills/seal-use/SKILL.md +++ b/skills/seal-use/SKILL.md @@ -58,6 +58,16 @@ seal-use corps list - When returning ANY authorization, login, or delegation links (e.g. 合思授权链接, Seal授权链接/委托链接), ALWAYS provide BOTH a code block (` ```text ... ``` `) for easy copying without accidental default browser redirection, AND a clickable hyperlink. - For delegation links, always prefer `seal-use delegation create` over `users delegation` for link generation to ensure persistent token tracking. - Never treat “Seal 协助/Seal 授权/委托” as a 合思授权入口. They are different links and must use different commands. +- For approval run links (`seal-use approval-runs url [--corp ]`): + - Always default to returning the clean deep link (`type: 'deep_link'`), which contains no credentials and requires no sensitive access. Users in their authorized browsers open it directly with zero token leakage risk. + - ONLY provide an SSO link (`--sso`) when the user explicitly requests an unauthenticated/cross-browser/no-login/免密 link and acknowledges risks. + - When returning an `--sso` link, the Agent MUST: + 1. Declare the 4 mandatory security disclosures: + - 身份主体(Identity attribution: name and admin status) + - 权限范围(Full Seal AI operation permissions under this user) + - 时效性(2-hour provisional ticket TTL, 30-day session after opening) + - 安全与防扩散边界(No Hose main system access, strictly internal, never share to public/external groups) + 2. Provide BOTH a code block (` ```text ... ``` `) and a clickable hyperlink. - In the default stateless mode, every enterprise command requires `--corp `. In stateful mode, omitting `--corp` uses the configured default enterprise and is unsafe for an explicitly named enterprise. - For an explicitly named enterprise, first resolve it with `seal-use corps list`, then pass its exact `corpId` to every command. After creation, verify the returned URL host matches that enterprise's Seal tenant; if the host is the current/default tenant or cannot be verified, do not present the link as the target enterprise's link. - 生产规则变更建议优先遵循“生产改草稿 -> 同步测试企业 -> 真实单据模拟验证 -> 生产发布投产”安全闭环;Agent 应主动提示并建议在测试环境中验证,但最终操作权与决策权在用户手中,绝不代替用户做决定。若用户明确要求直接在生产环境发布,尊重用户意图并严格执行。 diff --git a/skills/seal-use/references/cli.md b/skills/seal-use/references/cli.md index d2483ac..d86ac81 100644 --- a/skills/seal-use/references/cli.md +++ b/skills/seal-use/references/cli.md @@ -140,9 +140,10 @@ seal-use approval-runs get --corp [--fields metadata|documen seal-use approval-runs attachments --corp seal-use approval-runs attachments download [--all] [--name ] [--out-dir ] --corp seal-use approval-runs result --corp [--summary] -seal-use approval-runs url --corp seal-use approval-runs url --corp -seal-use approval-runs url --sourceDocumentSN --corp +seal-use approval-runs url --sso [--expire 7200] --corp +seal-use approval-runs url --sn [--sso] --corp +seal-use approval-runs url --corp seal-use approval-runs bridge --corp [--sourceDocumentSN ] seal-use simulation batch-records --corp seal-use simulation create --mode hosecloud --flow-ids "B26017701,B26022501" [--reject-node 财务] [--thinking-depth default|medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--no-wait] --corp diff --git a/src/cli/commands/approval-runs.ts b/src/cli/commands/approval-runs.ts index 9205833..bd0bb81 100644 --- a/src/cli/commands/approval-runs.ts +++ b/src/cli/commands/approval-runs.ts @@ -278,14 +278,20 @@ export async function handleApprovalRunsCommand( } if (action === "url") { + const sso = booleanOption(args.options.sso) ?? false; + const expiresIn = numberOption(args.options.expire) ?? numberOption(args.options.expiresIn) ?? 7200; + const sn = stringOption(args.options.sn) ?? stringOption(args.options.sourceDocumentSN); + await runTool( "seal_approval_run_url_get", client, corp, { - recordId: maybeName, - sourceDocumentSN: stringOption(args.options.sourceDocumentSN), - sourceDocumentId: stringOption(args.options.sourceDocumentId) + recordId: maybeName ?? stringOption(args.options.id) ?? stringOption(args.options.recordId), + sourceDocumentSN: sn, + sourceDocumentId: stringOption(args.options.sourceDocumentId), + sso, + expiresIn }, outputOptions(args.options) ); diff --git a/src/cli/help.ts b/src/cli/help.ts index e77eac1..7855b57 100644 --- a/src/cli/help.ts +++ b/src/cli/help.ts @@ -309,11 +309,12 @@ export const HELP_REGISTRY: AreaHelp[] = [ }, { name: "url", - summary: "Get web console URL for approval run", + summary: "Get web console URL for approval run (default deep link, or --sso for auto-login link)", usage: [ - "seal-use approval-runs url [--corp ]", "seal-use approval-runs url [--corp ]", - "seal-use approval-runs url --sourceDocumentSN B26022501 [--corp ]" + "seal-use approval-runs url --sso [--expire 7200] [--corp ]", + "seal-use approval-runs url --sn [--sso] [--corp ]", + "seal-use approval-runs url [--corp ]" ] }, { diff --git a/src/core/auth/hose.ts b/src/core/auth/hose.ts index bd98c76..1b75cec 100644 --- a/src/core/auth/hose.ts +++ b/src/core/auth/hose.ts @@ -401,12 +401,25 @@ export async function getHoseProvisionalAuthLink( corpId: string; staffId: string; url: string; + token?: string; expiresIn: number; }> { if (corp.source.type !== "hose") { throw new Error(`Unsupported Seal source: ${corp.source.type}`); } + const cache = getHoseAuthCache(corp.id); + if (isFresh(cache.closeapi) && cache.closeapi.url && cache.closeapi.token) { + const remainingSeconds = Math.max(60, Math.floor((cache.closeapi.expiresAt - Date.now()) / 1000)); + return { + corpId: corp.source.corpId, + staffId: corp.source.staffId, + url: cache.closeapi.url, + token: cache.closeapi.token, + expiresIn: Math.min(expiresIn, remainingSeconds) + }; + } + const openapiToken = await ensureHoseOpenapiToken(corp); const provisional = await fetchHoseCloseApiToken(corp.source, openapiToken, expiresIn); if (!provisional.url) { @@ -417,6 +430,7 @@ export async function getHoseProvisionalAuthLink( corpId: corp.source.corpId, staffId: corp.source.staffId, url: provisional.url, + token: provisional.token, expiresIn }; } diff --git a/src/domains/seal/tools.test.ts b/src/domains/seal/tools.test.ts index f173cfd..4200e46 100644 --- a/src/domains/seal/tools.test.ts +++ b/src/domains/seal/tools.test.ts @@ -660,6 +660,9 @@ describe("sealTools", () => { }; expect(result).toMatchObject({ + url: "https://hose-corp-a.sealai.cc/approval-result/run-1", + sealResultUrl: "https://hose-corp-a.sealai.cc/approval-result/run-1", + type: "deep_link", enterpriseAssistUrl: "https://app.ekuaibao.com/web/home.html?accessToken=close-token", enterpriseUrl: "https://app.ekuaibao.com/web/home.html?accessToken=close-token", hoseDomain: "https://app.ekuaibao.com", @@ -705,11 +708,54 @@ describe("sealTools", () => { fakeApprovalRunsClient(requests), { sourceDocumentSN: "B26001965" }, fakeHoseContext() - ) as { documentUrl?: string }; + ) as { documentUrl?: string; url?: string; type?: string }; expect(requests[0]).toContain("search=B26001965"); expect(requests[1]).toBe("api/v1/approvals/run-1"); expect(result.documentUrl).toBe("https://app.ekuaibao.com/web/thirdparty.html"); + expect(result.type).toBe("deep_link"); + expect(result.url).toBe("https://hose-corp-a.sealai.cc/approval-result/run-1"); + }); + + test("approval run url returns SSO link with identity, expiration, and warning when sso=true", async () => { + const tool = sealTools.find((item) => item.name === "seal_approval_run_url_get"); + expect(tool).toBeDefined(); + primeHoseEnterpriseUrl("corp-a", "https://app.ekuaibao.com/web/home.html?accessToken=close-token"); + + const handler = tool!.handler as ToolHandler; + const result = (await handler( + fakeApprovalRunsClient(), + { recordId: "run-1", sso: true, expiresIn: 3600 }, + fakeHoseContext() + )) as { + url?: string; + ssoUrl?: string; + type?: string; + expiresIn?: number; + warning?: string; + identity?: { staffId?: string }; + }; + + expect(result.type).toBe("sso_link"); + expect(result.expiresIn).toBe(3600); + expect(result.url).toContain("/api/auth/oauth2/session/oem-hosecloud?token=close-token"); + expect(result.url).toContain("path=%2Fapproval-result%2Frun-1"); + expect(result.warning).toContain("安全警示"); + expect(result.identity?.staffId).toBe("staff-a"); + }); + + test("approval run url throws clear error when sso=true is used on non-hose enterprise", async () => { + const tool = sealTools.find((item) => item.name === "seal_approval_run_url_get"); + expect(tool).toBeDefined(); + + const handler = tool!.handler as ToolHandler; + await expect( + handler( + fakeApprovalRunsClient(), + { recordId: "run-1", sso: true }, + fakeContext() + ) + ).rejects.toThrow("SSO direct links currently support Hose-integrated enterprises"); }); test("approval run summary filters by local date and returns compact aggregates", async () => { diff --git a/src/domains/seal/tools.ts b/src/domains/seal/tools.ts index 7462438..ef4d1ef 100644 --- a/src/domains/seal/tools.ts +++ b/src/domains/seal/tools.ts @@ -3,7 +3,7 @@ import { KyInstance } from "ky"; import { readFileSync } from "node:fs"; import { randomBytes } from "node:crypto"; import * as api from "./api.js"; -import { defaultSealUrl, getHoseEnterpriseUrl, probeHoseDomain } from "../../core/auth/hose.js"; +import { defaultSealUrl, getHoseEnterpriseUrl, getHoseProvisionalAuthLink, probeHoseDomain } from "../../core/auth/hose.js"; import { CorpConfig } from "../../core/config/types.js"; import { loadGlobalConfig } from "../../core/config/loader.js"; import { createSealClientForToken } from "../../core/http/factory.js"; @@ -1450,15 +1450,23 @@ export const sealTools = [ }, { name: "seal_approval_run_url_get", - description: "获取合思企业协助链接,按需附带单据链接;支持只取企业协助链接,或按 Seal recordId/合思 sourceDocumentSN 查询单据链接", + description: "获取审批单的 Web 控制台直达链接或合思企业协助链接,支持纯深度链接与带安全警告的免密 SSO 链接", parameters: z.object({ recordId: z.string().optional().describe("Seal approval run record ID"), sourceDocumentSN: z.string().optional().describe("合思/易快报单号"), - sourceDocumentId: z.string().optional().describe("合思/易快报源单据 ID") + sourceDocumentId: z.string().optional().describe("合思/易快报源单据 ID"), + sso: z.boolean().optional().describe("是否生成带临时认证凭证的免密直达链接 (SSO link)"), + expiresIn: z.number().optional().describe("SSO 免密凭证有效秒数,默认 7200 (2小时)") }), handler: async ( client: KyInstance, - params: { recordId?: string; sourceDocumentSN?: string; sourceDocumentId?: string }, + params: { + recordId?: string; + sourceDocumentSN?: string; + sourceDocumentId?: string; + sso?: boolean; + expiresIn?: number; + }, context: ToolContext ) => { const hasDocumentLookup = Boolean(params.recordId || params.sourceDocumentSN || params.sourceDocumentId); @@ -1467,7 +1475,68 @@ export const sealTools = [ const enterpriseAssistUrl = source.type === "hose" ? await getHoseEnterpriseUrl(context.corp) : undefined; const documentUrl = stringFromUnknown(record?.sourceExtendData?.hosecloudViewUrl); + const sealBaseUrl = resolveSealBaseUrl(context.corp); + const sealResultUrl = record?.id ? `${sealBaseUrl}/approval-result/${record.id}` : undefined; + + let ssoUrl: string | undefined; + let identity: { name?: string; staffId?: string; isAdmin?: boolean; providerUserId?: string } | undefined; + let warning: string | undefined; + const expiresIn = params.expiresIn ?? 7200; + + if (params.sso) { + if (!record?.id) { + throw new Error("recordId or sourceDocumentSN is required to generate an SSO approval result URL"); + } + if (source.type !== "hose") { + throw new Error( + `SSO direct links currently support Hose-integrated enterprises (corp '${context.corp.id}' uses '${source.type}'). For Seal-native enterprises, use 'seal-use delegation create' for authorized access.` + ); + } + + const linkInfo = await getHoseProvisionalAuthLink(context.corp, expiresIn); + const provisionalToken = new URL(linkInfo.url).searchParams.get("accessToken"); + if (!provisionalToken) { + throw new Error("Failed to obtain Hose provisional authentication token"); + } + + const targetPath = `/approval-result/${record.id}`; + ssoUrl = `${sealBaseUrl}/api/auth/oauth2/session/oem-hosecloud?token=${encodeURIComponent(provisionalToken)}&path=${encodeURIComponent(targetPath)}`; + + try { + const me = await api.getMe(client); + identity = { + name: me.user.name, + staffId: source.staffId, + isAdmin: me.user.isAdmin, + providerUserId: me.user.providerUserId + }; + } catch { + identity = { + staffId: source.staffId + }; + } + + const userName = identity.name ?? "企业成员"; + const roleLabel = identity.isAdmin ? " (管理员)" : ""; + warning = `⚠️ 安全警示:该链接使用 [${userName}${roleLabel}] 身份签发,在 Seal AI 拥有全站操作权限。链接具备 ${Math.round(expiresIn / 3600 * 10) / 10} 小时时效,仅供受信任人员排查使用,请勿在外部公开分享。`; + + console.error( + `⚠️ 安全警示 (SSO 强化免密链接):\n` + + `• 身份主体:${userName}${roleLabel}\n` + + `• 权限范围:持有该链接者在 Seal AI 中拥有该用户的完整操作权限(含系统设置与规则编辑)\n` + + `• 时效性:换票凭证有效时间 ${expiresIn} 秒(${Math.round(expiresIn / 60)} 分钟),在浏览器打开后将保留 30 天会话\n` + + `• 安全边界:该凭证绝不包含且无法访问合思 (Hose) 主系统;仅限内部排查,严禁在外部公开分享!` + ); + } + return { + url: params.sso ? ssoUrl : sealResultUrl, + sealResultUrl, + ssoUrl, + type: params.sso ? "sso_link" : "deep_link", + expiresIn: params.sso ? expiresIn : undefined, + identity, + warning, enterpriseAssistUrl, enterpriseUrl: enterpriseAssistUrl, hoseDomain: source.type === "hose" ? normalizeUrl(source.domain) : undefined, @@ -3218,6 +3287,15 @@ async function resolveApprovalRunForUrl( return api.getApprovalRun(client, record.id); } +function resolveSealBaseUrl(corp: CorpConfig): string { + if (corp.seal?.url) return corp.seal.url.replace(/\/+$/, ""); + if (corp.source.type === "hose") return defaultSealUrl(corp, corp.source).replace(/\/+$/, ""); + if ("sealUrl" in corp.source && typeof corp.source.sealUrl === "string" && corp.source.sealUrl) { + return corp.source.sealUrl.replace(/\/+$/, ""); + } + return `https://${corp.id.toLowerCase()}.sealai.cc`; +} + function normalizeUrl(value: string): string { return value.replace(/\/+$/, ""); }