update ALL

This commit is contained in:
qist committed 2024-09-23 11:52:18 +08:00
1 parent 513c46a467
commit a5391a344e
39 files changed
+3865 -732

No files matched your search

+16 -16
View File
@@ -78,7 +78,7 @@ caused by: `+HA(t,e)):l},IQ=n=>HA(n,new Set),qA=(n,e,l)=>{if(!n0(n))return"";let
`:""}
${n}
return o
`}});var bw=C((lTe,Ew)=>{"use strict";Ew.exports=fZ;function fZ(n){let{secret:e,censor:l,compileRestore:t,serialize:r,groupRedact:i,nestedRedact:s,wildcards:u,wcLen:a}=n,f=[{secret:e,censor:l,compileRestore:t}];return r!==!1&&f.push({serialize:r}),a>0&&f.push({groupRedact:i,nestedRedact:s,wildcards:u,wcLen:a}),Object.assign(...f)}});var xw=C((tTe,Sw)=>{"use strict";var Tw=ow(),pZ=pw(),dZ=hw(),hZ=_w(),{groupRedact:mZ,nestedRedact:gZ}=Sd(),yZ=bw(),vZ=i8(),_Z=Tw(),xd=n=>n;xd.restore=xd;var EZ="[REDACTED]";Ad.rx=vZ;Ad.validator=Tw;Sw.exports=Ad;function Ad(n={}){let e=Array.from(new Set(n.paths||[])),l="serialize"in n&&(n.serialize===!1||typeof n.serialize=="function")?n.serialize:JSON.stringify,t=n.remove;if(t===!0&&l!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let r=t===!0?void 0:"censor"in n?n.censor:EZ,i=typeof r=="function",s=i&&r.length>1;if(e.length===0)return l||xd;_Z({paths:e,serialize:l,censor:r});let{wildcards:u,wcLen:a,secret:f}=pZ({paths:e,censor:r}),c=hZ({secret:f,wcLen:a}),p="strict"in n?n.strict:!0;return dZ({secret:f,wcLen:a,serialize:l,strict:p,isCensorFct:i,censorFctTakesPath:s},yZ({secret:f,censor:r,compileRestore:c,serialize:l,groupRedact:mZ,nestedRedact:gZ,wildcards:u,wcLen:a}))}});var Ba=C((rTe,Aw)=>{"use strict";var bZ=Symbol("pino.setLevel"),TZ=Symbol("pino.getLevel"),SZ=Symbol("pino.levelVal"),xZ=Symbol("pino.levelComp"),AZ=Symbol("pino.useLevelLabels"),wZ=Symbol("pino.useOnlyCustomLevels"),RZ=Symbol("pino.mixin"),OZ=Symbol("pino.lsCache"),NZ=Symbol("pino.chindings"),IZ=Symbol("pino.asJson"),CZ=Symbol("pino.write"),kZ=Symbol("pino.redactFmt"),PZ=Symbol("pino.time"),DZ=Symbol("pino.timeSliceIndex"),LZ=Symbol("pino.stream"),FZ=Symbol("pino.stringify"),MZ=Symbol("pino.stringifySafe"),$Z=Symbol("pino.stringifiers"),jZ=Symbol("pino.end"),UZ=Symbol("pino.formatOpts"),BZ=Symbol("pino.messageKey"),HZ=Symbol("pino.errorKey"),qZ=Symbol("pino.nestedKey"),VZ=Symbol("pino.nestedKeyStr"),zZ=Symbol("pino.mixinMergeStrategy"),GZ=Symbol("pino.msgPrefix"),XZ=Symbol("pino.wildcardFirst"),WZ=Symbol.for("pino.serializers"),KZ=Symbol.for("pino.formatters"),YZ=Symbol.for("pino.hooks"),JZ=Symbol.for("pino.metadata");Aw.exports={setLevelSym:bZ,getLevelSym:TZ,levelValSym:SZ,levelCompSym:xZ,useLevelLabelsSym:AZ,mixinSym:RZ,lsCacheSym:OZ,chindingsSym:NZ,asJsonSym:IZ,writeSym:CZ,serializersSym:WZ,redactFmtSym:kZ,timeSym:PZ,timeSliceIndexSym:DZ,streamSym:LZ,stringifySym:FZ,stringifySafeSym:MZ,stringifiersSym:$Z,endSym:jZ,formatOptsSym:UZ,messageKeySym:BZ,errorKeySym:HZ,nestedKeySym:qZ,wildcardFirstSym:XZ,needsMetadataGsym:JZ,useOnlyCustomLevelsSym:wZ,formattersSym:KZ,hooksSym:YZ,nestedKeyStrSym:VZ,mixinMergeStrategySym:zZ,msgPrefixSym:GZ}});var Od=C((iTe,Nw)=>{"use strict";var Rd=xw(),{redactFmtSym:QZ,wildcardFirstSym:s8}=Ba(),{rx:wd,validator:ZZ}=Rd,ww=ZZ({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:n=>`pino \u2013 redact paths array contains an invalid path (${n})`}),Rw="[Redacted]",Ow=!1;function eee(n,e){let{paths:l,censor:t}=nee(n),r=l.reduce((u,a)=>{wd.lastIndex=0;let f=wd.exec(a),c=wd.exec(a),p=f[1]!==void 0?f[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):f[0];if(p==="*"&&(p=s8),c===null)return u[p]=null,u;if(u[p]===null)return u;let{index:m}=c,h=`${a.substr(m,a.length-1)}`;return u[p]=u[p]||[],p!==s8&&u[p].length===0&&u[p].push(...u[s8]||[]),p===s8&&Object.keys(u).forEach(function(g){u[g]&&u[g].push(h)}),u[p].push(h),u},{}),i={[QZ]:Rd({paths:l,censor:t,serialize:e,strict:Ow})},s=(...u)=>e(typeof t=="function"?t(...u):t);return[...Object.keys(r),...Object.getOwnPropertySymbols(r)].reduce((u,a)=>{if(r[a]===null)u[a]=f=>s(f,[a]);else{let f=typeof t=="function"?(c,p)=>t(c,[a,...p]):t;u[a]=Rd({paths:r[a],censor:f,serialize:e,strict:Ow})}return u},i)}function nee(n){if(Array.isArray(n))return n={paths:n,censor:Rw},ww(n),n;let{paths:e,censor:l=Rw,remove:t}=n;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return t===!0&&(l=void 0),ww({paths:e,censor:l}),{paths:e,censor:l}}Nw.exports=eee});var Cw=C((sTe,Iw)=>{"use strict";var lee=()=>"",tee=()=>`,"time":${Date.now()}`,ree=()=>`,"time":${Math.round(Date.now()/1e3)}`,iee=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;Iw.exports={nullTime:lee,epochTime:tee,unixTime:ree,isoTime:iee}});var Pw=C((uTe,kw)=>{"use strict";function see(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}kw.exports=uee;function uee(n,e,l){var t=l&&l.stringify||see,r=1;if(typeof n=="object"&&n!==null){var i=e.length+r;if(i===1)return n;var s=new Array(i);s[0]=t(n);for(var u=1;u<i;u++)s[u]=t(e[u]);return s.join(" ")}if(typeof n!="string")return n;var a=e.length;if(a===0)return n;for(var f="",c=1-r,p=-1,m=n&&n.length||0,h=0;h<m;){if(n.charCodeAt(h)===37&&h+1<m){switch(p=p>-1?p:0,n.charCodeAt(h+1)){case 100:case 102:if(c>=a||e[c]==null)break;p<h&&(f+=n.slice(p,h)),f+=Number(e[c]),p=h+2,h++;break;case 105:if(c>=a||e[c]==nLine truncated
`}});var bw=C((lTe,Ew)=>{"use strict";Ew.exports=fZ;function fZ(n){let{secret:e,censor:l,compileRestore:t,serialize:r,groupRedact:i,nestedRedact:s,wildcards:u,wcLen:a}=n,f=[{secret:e,censor:l,compileRestore:t}];return r!==!1&&f.push({serialize:r}),a>0&&f.push({groupRedact:i,nestedRedact:s,wildcards:u,wcLen:a}),Object.assign(...f)}});var xw=C((tTe,Sw)=>{"use strict";var Tw=ow(),pZ=pw(),dZ=hw(),hZ=_w(),{groupRedact:mZ,nestedRedact:gZ}=Sd(),yZ=bw(),vZ=i8(),_Z=Tw(),xd=n=>n;xd.restore=xd;var EZ="[REDACTED]";Ad.rx=vZ;Ad.validator=Tw;Sw.exports=Ad;function Ad(n={}){let e=Array.from(new Set(n.paths||[])),l="serialize"in n&&(n.serialize===!1||typeof n.serialize=="function")?n.serialize:JSON.stringify,t=n.remove;if(t===!0&&l!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let r=t===!0?void 0:"censor"in n?n.censor:EZ,i=typeof r=="function",s=i&&r.length>1;if(e.length===0)return l||xd;_Z({paths:e,serialize:l,censor:r});let{wildcards:u,wcLen:a,secret:f}=pZ({paths:e,censor:r}),c=hZ({secret:f,wcLen:a}),p="strict"in n?n.strict:!0;return dZ({secret:f,wcLen:a,serialize:l,strict:p,isCensorFct:i,censorFctTakesPath:s},yZ({secret:f,censor:r,compileRestore:c,serialize:l,groupRedact:mZ,nestedRedact:gZ,wildcards:u,wcLen:a}))}});var Ba=C((rTe,Aw)=>{"use strict";var bZ=Symbol("pino.setLevel"),TZ=Symbol("pino.getLevel"),SZ=Symbol("pino.levelVal"),xZ=Symbol("pino.levelComp"),AZ=Symbol("pino.useLevelLabels"),wZ=Symbol("pino.useOnlyCustomLevels"),RZ=Symbol("pino.mixin"),OZ=Symbol("pino.lsCache"),NZ=Symbol("pino.chindings"),IZ=Symbol("pino.asJson"),CZ=Symbol("pino.write"),kZ=Symbol("pino.redactFmt"),PZ=Symbol("pino.time"),DZ=Symbol("pino.timeSliceIndex"),LZ=Symbol("pino.stream"),FZ=Symbol("pino.stringify"),MZ=Symbol("pino.stringifySafe"),$Z=Symbol("pino.stringifiers"),jZ=Symbol("pino.end"),UZ=Symbol("pino.formatOpts"),BZ=Symbol("pino.messageKey"),HZ=Symbol("pino.errorKey"),qZ=Symbol("pino.nestedKey"),VZ=Symbol("pino.nestedKeyStr"),zZ=Symbol("pino.mixinMergeStrategy"),GZ=Symbol("pino.msgPrefix"),XZ=Symbol("pino.wildcardFirst"),WZ=Symbol.for("pino.serializers"),KZ=Symbol.for("pino.formatters"),YZ=Symbol.for("pino.hooks"),JZ=Symbol.for("pino.metadata");Aw.exports={setLevelSym:bZ,getLevelSym:TZ,levelValSym:SZ,levelCompSym:xZ,useLevelLabelsSym:AZ,mixinSym:RZ,lsCacheSym:OZ,chindingsSym:NZ,asJsonSym:IZ,writeSym:CZ,serializersSym:WZ,redactFmtSym:kZ,timeSym:PZ,timeSliceIndexSym:DZ,streamSym:LZ,stringifySym:FZ,stringifySafeSym:MZ,stringifiersSym:$Z,endSym:jZ,formatOptsSym:UZ,messageKeySym:BZ,errorKeySym:HZ,nestedKeySym:qZ,wildcardFirstSym:XZ,needsMetadataGsym:JZ,useOnlyCustomLevelsSym:wZ,formattersSym:KZ,hooksSym:YZ,nestedKeyStrSym:VZ,mixinMergeStrategySym:zZ,msgPrefixSym:GZ}});var Od=C((iTe,Nw)=>{"use strict";var Rd=xw(),{redactFmtSym:QZ,wildcardFirstSym:s8}=Ba(),{rx:wd,validator:ZZ}=Rd,ww=ZZ({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:n=>`pino \u2013 redact paths array contains an invalid path (${n})`}),Rw="[Redacted]",Ow=!1;function eee(n,e){let{paths:l,censor:t}=nee(n),r=l.reduce((u,a)=>{wd.lastIndex=0;let f=wd.exec(a),c=wd.exec(a),p=f[1]!==void 0?f[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):f[0];if(p==="*"&&(p=s8),c===null)return u[p]=null,u;if(u[p]===null)return u;let{index:m}=c,h=`${a.substr(m,a.length-1)}`;return u[p]=u[p]||[],p!==s8&&u[p].length===0&&u[p].push(...u[s8]||[]),p===s8&&Object.keys(u).forEach(function(g){u[g]&&u[g].push(h)}),u[p].push(h),u},{}),i={[QZ]:Rd({paths:l,censor:t,serialize:e,strict:Ow})},s=(...u)=>e(typeof t=="function"?t(...u):t);return[...Object.keys(r),...Object.getOwnPropertySymbols(r)].reduce((u,a)=>{if(r[a]===null)u[a]=f=>s(f,[a]);else{let f=typeof t=="function"?(c,p)=>t(c,[a,...p]):t;u[a]=Rd({paths:r[a],censor:f,serialize:e,strict:Ow})}return u},i)}function nee(n){if(Array.isArray(n))return n={paths:n,censor:Rw},ww(n),n;let{paths:e,censor:l=Rw,remove:t}=n;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return t===!0&&(l=void 0),ww({paths:e,censor:l}),{paths:e,censor:l}}Nw.exports=eee});var Cw=C((sTe,Iw)=>{"use strict";var lee=()=>"",tee=()=>`,"time":${Date.now()}`,ree=()=>`,"time":${Math.round(Date.now()/1e3)}`,iee=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;Iw.exports={nullTime:lee,epochTime:tee,unixTime:ree,isoTime:iee}});var Pw=C((uTe,kw)=>{"use strict";function see(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}kw.exports=uee;function uee(n,e,l){var t=l&&l.stringify||see,r=1;if(typeof n=="object"&&n!==null){var i=e.length+r;if(i===1)return n;var s=new Array(i);s[0]=t(n);for(var u=1;u<i;u++)s[u]=t(e[u]);return s.join(" ")}if(typeof n!="string")return n;var a=e.length;if(a===0)return n;for(var f="",c=1-r,p=-1,m=n&&n.length||0,h=0;h<m;){if(n.charCodeAt(h)===37&&h+1<m){switch(p=p>-1?p:0,n.charCodeAt(h+1)){case 100:case 102:if(c>=a||e[c]==null)break;p<h&&(f+=n.slice(p,h)),f+=Number(e[c]),p=h+2,h++;break;case 105:if(c>=a||e[c]==nLine truncated
${T}`,b=`,
${T}`);let Q=Math.min(x.length,s),Y=0;for(;Y<Q-1;Y++){let _e=u(String(Y),x,g,_,S,T);v+=_e!==void 0?_e:"null",v+=b}let Z=u(String(Y),x,g,_,S,T);if(v+=Z!==void 0?Z:"null",x.length-1>s){let _e=x.length-s-1;v+=`${b}"... ${du(_e)} not stringified"`}return S!==""&&(v+=`
${w}`),g.pop(),`[${v}]`}let N=Object.keys(x),O=N.length;if(O===0)return"{}";if(i<g.length+1)return'"[Object]"';let k="",j="";S!==""&&(T+=S,b=`,
@@ -102,10 +102,10 @@ ${T}`),g.pop(),`{${w}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
`:""},this._extScope=e,this._scope=new B3.Scope({parent:e}),this._nodes=[new bh]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,l){let t=this._extScope.value(e,l);return(this._values[t.prefix]||(this._values[t.prefix]=new Set)).add(t),t}getScopeValue(e,l){return this._extScope.getValue(e,l)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,l,t,r){let i=this._scope.toName(l);return t!==void 0&&r&&(this._constants[i.str]=t),this._leafNode(new mh(e,i,t)),i}const(e,l,t){return this._def(B3.varKinds.const,e,l,t)}let(e,l,t){return this._def(B3.varKinds.let,e,l,t)}var(e,l,t){return this._def(B3.varKinds.var,e,l,t)}assign(e,l,t){return this._leafNode(new S8(e,l,t))}add(e,l){return this._leafNode(new gh(e,Sn.operators.ADD,l))}code(e){return typeof e=="function"?e():e!==jn.nil&&this._leafNode(new Eh(e)),this}object(...e){let l=["{"];for(let[t,r]of e)l.length>1&&l.push(","),l.push(t),(t!==r||this.opts.es5)&&(l.push(":"),(0,jn.addCodeArg)(l,r));return l.push("}"),new jn._Code(l)}if(e,l,t){if(this._blockNode(new gu(e)),l&&t)this.code(l).else().code(t).endIf();else if(l)this.code(l).endIf();else if(t)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new gu(e))}else(){return this._elseNode(new Ga)}endIf(){return this._endBlockNode(gu,Ga)}_for(e,l){return this._blockNode(e),l&&this.code(l).endFor(),this}for(e,l){return this._for(new Th(e),l)}forRange(e,l,t,r,i=this.opts.es5?B3.varKinds.var:B3.varKinds.let){let s=this._scope.toName(e);return this._for(new Sh(i,s,l,t),()=>r(s))}forOf(e,l,t,r=B3.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=l instanceof jn.Name?l:this.var("_arr",l);return this.forRange("_i",0,(0,jn._)`${s}.length`,u=>{this.var(i,(0,jn._)`${s}[${u}]`),t(i)})}return this._for(new x8("of",r,i,l),()=>t(i))}forIn(e,l,t,r=this.opts.es5?B3.varKinds.var:B3.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,jn._)`Object.keys(${l})`,t);let i=this._scope.toName(e);return this._for(new x8("in",r,i,l),()=>t(i))}endFor(){return this._endBlockNode(yu)}label(e){return this._leafNode(new yh(e))}break(e){return this._leafNode(new vh(e))}return(e){let l=new f0;if(this._blockNode(l),this.code(e),l.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(f0)}try(e,l,t){if(!l&&!t)throw new Error('CodeGen: "try" without "catch" and "finally"');let r=new xh;if(this._blockNode(r),this.code(e),l){let i=this.name("e");this._currNode=r.catch=new p0(i),l(i)}return t&&(this._currNode=r.finally=new d0,this.code(t)),this._endBlockNode(p0,d0)}throw(e){return this._leafNode(new _h(e))}block(e,l){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(l),this}endBlock(e){let l=this._blockStarts.pop();if(l===void 0)throw new Error("CodeGen: not in self-balancing block");let t=this._nodes.length-l;if(t<0||e!==void 0&&t!==e)throw new Error(`CodeGen: wrong number of nodes: ${t} vs ${e} expected`);return this._nodes.length=l,this}func(e,l=jn.nil,t,r){return this._blockNode(new c0(e,l,t)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(c0)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,l){let t=this._currNode;if(t instanceof e||l&&t instanceof l)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${l?`${e.kind}/${l.kind}`:e.kind}"`)}_elseNode(e){let l=this._currNode;if(!(l instanceof gu))throw new Error('CodeGen: "else" without "if"');return this._currNode=l.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let l=this._nodes;l[l.length-1]=e}};Sn.CodeGen=Ah;function vu(n,e){for(let l in e)n[l]=(n[l]||0)+(e[l]||0);return n}function A8(n,e){return e instanceof jn._CodeOrName?vu(n,e.names):n}function Xa(n,e,l){if(n instanceof jn.Name)return t(n);if(!r(n))return n;return new jn._Code(n._items.reduce((i,s)=>(s instanceof jn.Name&&(s=t(s)),s instanceof jn._Code?i.push(...s._items):i.push(s),i),[]));function t(i){let s=l[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function r(i){return i instanceof jn._Code&&i._items.some(s=>s instanceof jn.Name&&e[s.str]===1&&l[s.str]!==void 0)}}function Xte(n,e){for(let l in e)n[l]=(n[l]||0)-(e[l]||0)}function pO(n){return typeof n=="boolean"||typeof n=="number"||n===null?!n:(0,jn._)`!${wh(n)}`}Sn.not=pO;var Wte=dO(Sn.operators.AND);function Kte(...n){return n.reduce(Wte)}Sn.and=Kte;var Yte=dO(Sn.operators.OR);function Jte(...n){return n.reduce(Yte)}Sn.or=Jte;function dO(n){return(e,l)=>e===jn.nil?l:l===jn.nil?e:(0,jn._)`${wh(e)} ${n} ${wh(l)}`}function wh(n){return n instanceof jn.Name?n:(0, Line truncated
|| (${s} == "string" && ${r} && ${r} == +${r})`).assign(u,(0,_n._)`+${r}`);return;case"integer":t.elseIf((0,_n._)`${s} === "boolean" || ${r} === null
|| (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(u,(0,_n._)`+${r}`);return;case"boolean":t.elseIf((0,_n._)`${r} === "false" || ${r} === 0 || ${r} === null`).assign(u,!1).elseIf((0,_n._)`${r} === "true" || ${r} === 1`).assign(u,!0);return;case"null":t.elseIf((0,_n._)`${r} === "" || ${r} === 0 || ${r} === false`),t.assign(u,null);return;case"array":t.elseIf((0,_n._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${r} === null`).assign(u,(0,_n._)`[${r}]`)}}}function L2e({gen:n,parentData:e,parentDataProperty:l},t){n.if((0,_n._)`${e} !== undefined`,()=>n.assign((0,_n._)`${e}[${l}]`,t))}function kh(n,e,l,t=m0.Correct){let r=t===m0.Correct?_n.operators.EQ:_n.operators.NEQ,i;switch(n){case"null":return(0,_n._)`${e} ${r} null`;case"array":i=(0,_n._)`Array.isArray(${e})`;break;case"object":i=(0,_n._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,_n._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,_n._)`typeof ${e} ${r} ${n}`}return t===m0.Correct?i:(0,_n.not)(i);function s(u=_n.nil){return(0,_n.and)((0,_n._)`typeof ${e} == "number"`,u,l?(0,_n._)`isFinite(${e})`:_n.nil)}}Xt.checkDataType=kh;function Ph(n,e,l,t){if(n.length===1)return kh(n[0],e,l,t);let r,i=(0,NO.toHash)(n);if(i.array&&i.object){let s=(0,_n._)`typeof ${e} != "object"`;r=i.null?s:(0,_n._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else r=_n.nil;i.number&&delete i.integer;for(let s in i)r=(0,_n.and)(r,kh(s,e,l,t));return r}Xt.checkDataTypes=Ph;var F2e={message:({schema:n})=>`must be ${n}`,params:({schema:n,schemaValue:e})=>typeof n=="string"?(0,_n._)`{type: ${n}}`:(0,_n._)`{type: ${e}}`};function Dh(n){let e=M2e(n);(0,I2e.reportError)(e,F2e)}Xt.reportTypeError=Dh;function M2e(n){let{gen:e,data:l,schema:t}=n,r=(0,NO.schemaRefOrVal)(n,t,"type");return{gen:e,keyword:"type",data:l,schema:t.type,schemaCode:r,schemaValue:r,parentSchema:t,params:{},it:n}}});var PO=C(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0});O8.assignDefaults=void 0;var Ya=Ze(),$2e=En();function j2e(n,e){let{properties:l,items:t}=n.schema;if(e==="object"&&l)for(let r in l)kO(n,r,l[r].default);else e==="array"&&Array.isArray(t)&&t.forEach((r,i)=>kO(n,i,r.default))}O8.assignDefaults=j2e;function kO(n,e,l){let{gen:t,compositeRule:r,data:i,opts:s}=n;if(l===void 0)return;let u=(0,Ya._)`${i}${(0,Ya.getProperty)(e)}`;if(r){(0,$2e.checkStrictMode)(n,`default is ignored for: ${u}`);return}let a=(0,Ya._)`${u} === undefined`;s.useDefaults==="empty"&&(a=(0,Ya._)`${a} || ${u} === null || ${u} === ""`),t.if(a,(0,Ya._)`${u} = ${(0,Ya.stringify)(l)}`)}});var Wt=C(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.validateUnion=vl.validateArray=vl.usePattern=vl.callValidateCode=vl.schemaProperties=vl.allSchemaProperties=vl.noPropertyInData=vl.propertyInData=vl.isOwnProperty=vl.hasPropFunc=vl.reportMissingProp=vl.checkMissingProp=vl.checkReportMissingProp=void 0;var Ll=Ze(),Lh=En(),Gi=v3(),U2e=En();function B2e(n,e){let{gen:l,data:t,it:r}=n;l.if(Mh(l,t,e,r.opts.ownProperties),()=>{n.setParams({missingProperty:(0,Ll._)`${e}`},!0),n.error()})}vl.checkReportMissingProp=B2e;function H2e({gen:n,data:e,it:{opts:l}},t,r){return(0,Ll.or)(...t.map(i=>(0,Ll.and)(Mh(n,e,i,l.ownProperties),(0,Ll._)`${r} = ${i}`)))}vl.checkMissingProp=H2e;function q2e(n,e){n.setParams({missingProperty:e},!0),n.error()}vl.reportMissingProp=q2e;function DO(n){return n.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ll._)`Object.prototype.hasOwnProperty`})}vl.hasPropFunc=DO;function Fh(n,e,l){return(0,Ll._)`${DO(n)}.call(${e}, ${l})`}vl.isOwnProperty=Fh;function V2e(n,e,l,t){let r=(0,Ll._)`${e}${(0,Ll.getProperty)(l)} !== undefined`;return t?(0,Ll._)`${r} && ${Fh(n,e,l)}`:r}vl.propertyInData=V2e;function Mh(n,e,l,t){let r=(0,Ll._)`${e}${(0,Ll.getProperty)(l)} === undefined`;return t?(0,Ll.or)(r,(0,Ll.not)(Fh(n,e,l))):r}vl.noPropertyInData=Mh;function LO(n){return n?Object.keys(n).filter(e=>e!=="__proto__"):[]}vl.allSchemaProperties=LO;function z2e(n,e){return LO(e).filter(l=>!(0,Lh.alwaysValidSchema)(n,e[l]))}vl.schemaProperties=z2e;function G2e({schemaCode:n,data:e,it:{gen:l,topSchemaRef:t,schemaPath:r,errorPath:i},it:s},u,a,f){let c=f?(0,Ll._)`${n}, ${e}, ${t}${r}`:e,p=[[Gi.default.instancePath,(0,Ll.strConcat)(Gi.default.instancePath,i)],[Gi.default.parentData,s.parentData],[Gi.default.parentDataProperty,s.parentDataProperty],[Gi.default.rootData,Gi.default.rootData]];s.opts.dynamicRef&&p.push([Gi.default.dynamicAnchors,Gi.default.dynamicAnchors]);let m=(0,Ll._)`${c}, ${l.object(...p)}`;return a!==Ll.nil?(0,Ll._)`${u}.call(${a}, ${m})`:(0,Ll._)`${u}(${m})`}vl.callValidateCode=G2e;var X2e=(0,Ll._)`new RegExp`;function W2e({gen:n,it:{opts:e}},l){let t=e.unicodeRegExp?"u":"",{regExp:r}=e.code,i=r(l,t);return n.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Ll._)`${r.code==="new RegExp"?X2e:(0,U2e.useFunc)(n,r)}(${l}, ${t})`})}vl.usePattern=W2e;function K2e(n){let{gen:e,data:l,keyword:t,it:r}=n,i=e.name("valid");if(r.allErrors){let u=e.let("valid",!0);return s(()=>e.assign(u,!1)),u}return e.var(i,!0),s(()=>e.break()),i;function s(u){let a=e.const("len",(0,Ll._)`${l}.length`);e.forRange("i",0,a,f=>{n.subschema({keyword:t,dataProp:f,dataPropType:Lh.Type.Num},i),e.if((0,Ll.not)(i),u)})}}vl.validateArray=K2e;function Y2e(n){let{gen:e,schema:l,keyword:t,it:r}=n;if(! Line truncated
|| ${s} === "boolean" || ${r} === null`).assign(u,(0,_n._)`[${r}]`)}}}function L2e({gen:n,parentData:e,parentDataProperty:l},t){n.if((0,_n._)`${e} !== undefined`,()=>n.assign((0,_n._)`${e}[${l}]`,t))}function kh(n,e,l,t=m0.Correct){let r=t===m0.Correct?_n.operators.EQ:_n.operators.NEQ,i;switch(n){case"null":return(0,_n._)`${e} ${r} null`;case"array":i=(0,_n._)`Array.isArray(${e})`;break;case"object":i=(0,_n._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,_n._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,_n._)`typeof ${e} ${r} ${n}`}return t===m0.Correct?i:(0,_n.not)(i);function s(u=_n.nil){return(0,_n.and)((0,_n._)`typeof ${e} == "number"`,u,l?(0,_n._)`isFinite(${e})`:_n.nil)}}Xt.checkDataType=kh;function Ph(n,e,l,t){if(n.length===1)return kh(n[0],e,l,t);let r,i=(0,NO.toHash)(n);if(i.array&&i.object){let s=(0,_n._)`typeof ${e} != "object"`;r=i.null?s:(0,_n._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else r=_n.nil;i.number&&delete i.integer;for(let s in i)r=(0,_n.and)(r,kh(s,e,l,t));return r}Xt.checkDataTypes=Ph;var F2e={message:({schema:n})=>`must be ${n}`,params:({schema:n,schemaValue:e})=>typeof n=="string"?(0,_n._)`{type: ${n}}`:(0,_n._)`{type: ${e}}`};function Dh(n){let e=M2e(n);(0,I2e.reportError)(e,F2e)}Xt.reportTypeError=Dh;function M2e(n){let{gen:e,data:l,schema:t}=n,r=(0,NO.schemaRefOrVal)(n,t,"type");return{gen:e,keyword:"type",data:l,schema:t.type,schemaCode:r,schemaValue:r,parentSchema:t,params:{},it:n}}});var PO=C(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0});O8.assignDefaults=void 0;var Ya=Ze(),$2e=En();function j2e(n,e){let{properties:l,items:t}=n.schema;if(e==="object"&&l)for(let r in l)kO(n,r,l[r].default);else e==="array"&&Array.isArray(t)&&t.forEach((r,i)=>kO(n,i,r.default))}O8.assignDefaults=j2e;function kO(n,e,l){let{gen:t,compositeRule:r,data:i,opts:s}=n;if(l===void 0)return;let u=(0,Ya._)`${i}${(0,Ya.getProperty)(e)}`;if(r){(0,$2e.checkStrictMode)(n,`default is ignored for: ${u}`);return}let a=(0,Ya._)`${u} === undefined`;s.useDefaults==="empty"&&(a=(0,Ya._)`${a} || ${u} === null || ${u} === ""`),t.if(a,(0,Ya._)`${u} = ${(0,Ya.stringify)(l)}`)}});var Wt=C(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.validateUnion=vl.validateArray=vl.usePattern=vl.callValidateCode=vl.schemaProperties=vl.allSchemaProperties=vl.noPropertyInData=vl.propertyInData=vl.isOwnProperty=vl.hasPropFunc=vl.reportMissingProp=vl.checkMissingProp=vl.checkReportMissingProp=void 0;var Ll=Ze(),Lh=En(),Gi=v3(),U2e=En();function B2e(n,e){let{gen:l,data:t,it:r}=n;l.if(Mh(l,t,e,r.opts.ownProperties),()=>{n.setParams({missingProperty:(0,Ll._)`${e}`},!0),n.error()})}vl.checkReportMissingProp=B2e;function H2e({gen:n,data:e,it:{opts:l}},t,r){return(0,Ll.or)(...t.map(i=>(0,Ll.and)(Mh(n,e,i,l.ownProperties),(0,Ll._)`${r} = ${i}`)))}vl.checkMissingProp=H2e;function q2e(n,e){n.setParams({missingProperty:e},!0),n.error()}vl.reportMissingProp=q2e;function DO(n){return n.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ll._)`Object.prototype.hasOwnProperty`})}vl.hasPropFunc=DO;function Fh(n,e,l){return(0,Ll._)`${DO(n)}.call(${e}, ${l})`}vl.isOwnProperty=Fh;function V2e(n,e,l,t){let r=(0,Ll._)`${e}${(0,Ll.getProperty)(l)} !== undefined`;return t?(0,Ll._)`${r} && ${Fh(n,e,l)}`:r}vl.propertyInData=V2e;function Mh(n,e,l,t){let r=(0,Ll._)`${e}${(0,Ll.getProperty)(l)} === undefined`;return t?(0,Ll.or)(r,(0,Ll.not)(Fh(n,e,l))):r}vl.noPropertyInData=Mh;function LO(n){return n?Object.keys(n).filter(e=>e!=="__proto__"):[]}vl.allSchemaProperties=LO;function z2e(n,e){return LO(e).filter(l=>!(0,Lh.alwaysValidSchema)(n,e[l]))}vl.schemaProperties=z2e;function G2e({schemaCode:n,data:e,it:{gen:l,topSchemaRef:t,schemaPath:r,errorPath:i},it:s},u,a,f){let c=f?(0,Ll._)`${n}, ${e}, ${t}${r}`:e,p=[[Gi.default.instancePath,(0,Ll.strConcat)(Gi.default.instancePath,i)],[Gi.default.parentData,s.parentData],[Gi.default.parentDataProperty,s.parentDataProperty],[Gi.default.rootData,Gi.default.rootData]];s.opts.dynamicRef&&p.push([Gi.default.dynamicAnchors,Gi.default.dynamicAnchors]);let m=(0,Ll._)`${c}, ${l.object(...p)}`;return a!==Ll.nil?(0,Ll._)`${u}.call(${a}, ${m})`:(0,Ll._)`${u}(${m})`}vl.callValidateCode=G2e;var X2e=(0,Ll._)`new RegExp`;function W2e({gen:n,it:{opts:e}},l){let t=e.unicodeRegExp?"u":"",{regExp:r}=e.code,i=r(l,t);return n.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Ll._)`${r.code==="new RegExp"?X2e:(0,U2e.useFunc)(n,r)}(${l}, ${t})`})}vl.usePattern=W2e;function K2e(n){let{gen:e,data:l,keyword:t,it:r}=n,i=e.name("valid");if(r.allErrors){let u=e.let("valid",!0);return s(()=>e.assign(u,!1)),u}return e.var(i,!0),s(()=>e.break()),i;function s(u){let a=e.const("len",(0,Ll._)`${l}.length`);e.forRange("i",0,a,f=>{n.subschema({keyword:t,dataProp:f,dataPropType:Lh.Type.Num},i),e.if((0,Ll.not)(i),u)})}}vl.validateArray=K2e;function Y2e(n){let{gen:e,schema:l,keyword:t,it:r}=n;if(! Line truncated
missingProperty: ${t},
depsCount: ${e},
deps: ${l}}`};var xie={keyword:"dependencies",type:"object",schemaType:"object",error:_r.error,code(n){let[e,l]=Aie(n);XN(n,e),WN(n,l)}};function Aie({schema:n}){let e={},l={};for(let t in n){if(t==="__proto__")continue;let r=Array.isArray(n[t])?e:l;r[t]=n[t]}return[e,l]}function XN(n,e=n.schema){let{gen:l,data:t,it:r}=n;if(Object.keys(e).length===0)return;let i=l.let("missing");for(let s in e){let u=e[s];if(u.length===0)continue;let a=(0,P0.propertyInData)(l,t,s,r.opts.ownProperties);n.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),r.allErrors?l.if(a,()=>{for(let f of u)(0,P0.checkReportMissingProp)(n,f)}):(l.if((0,Sm._)`${a} && (${(0,P0.checkMissingProp)(n,u,i)})`),(0,P0.reportMissingProp)(n,i),l.else())}}_r.validatePropertyDeps=XN;function WN(n,e=n.schema){let{gen:l,data:t,keyword:r,it:i}=n,s=l.name("valid");for(let u in e)(0,Sie.alwaysValidSchema)(i,e[u])||(l.if((0,P0.propertyInData)(l,t,u,i.opts.ownProperties),()=>{let a=n.subschema({keyword:r,schemaProp:u},s);n.mergeValidEvaluated(a,s)},()=>l.var(s,!0)),n.ok(s))}_r.validateSchemaDeps=WN;_r.default=xie});var JN=C(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var YN=Ze(),wie=En(),Rie={message:"property name must be valid",params:({params:n})=>(0,YN._)`{propertyName: ${n.propertyName}}`},Oie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Rie,code(n){let{gen:e,schema:l,data:t,it:r}=n;if((0,wie.alwaysValidSchema)(r,l))return;let i=e.name("valid");e.forIn("key",t,s=>{n.setParams({propertyName:s}),n.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,YN.not)(i),()=>{n.error(!0),r.allErrors||e.break()})}),n.ok(i)}};xm.default=Oie});var wm=C(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var H8=Wt(),V3=Ze(),Nie=v3(),q8=En(),Iie={message:"must NOT have additional properties",params:({params:n})=>(0,V3._)`{additionalProperty: ${n.additionalProperty}}`},Cie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Iie,code(n){let{gen:e,schema:l,parentSchema:t,data:r,errsCount:i,it:s}=n;if(!i)throw new Error("ajv implementation error");let{allErrors:u,opts:a}=s;if(s.props=!0,a.removeAdditional!=="all"&&(0,q8.alwaysValidSchema)(s,l))return;let f=(0,H8.allSchemaProperties)(t.properties),c=(0,H8.allSchemaProperties)(t.patternProperties);p(),n.ok((0,V3._)`${i} === ${Nie.default.errors}`);function p(){e.forIn("key",r,S=>{!f.length&&!c.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(f.length>8){let x=(0,q8.schemaRefOrVal)(s,t.properties,"properties");T=(0,H8.isOwnProperty)(e,x,S)}else f.length?T=(0,V3.or)(...f.map(x=>(0,V3._)`${S} === ${x}`)):T=V3.nil;return c.length&&(T=(0,V3.or)(T,...c.map(x=>(0,V3._)`${(0,H8.usePattern)(n,x)}.test(${S})`))),(0,V3.not)(T)}function h(S){e.code((0,V3._)`delete ${r}[${S}]`)}function g(S){if(a.removeAdditional==="all"||a.removeAdditional&&l===!1){h(S);return}if(l===!1){n.setParams({additionalProperty:S}),n.error(),u||e.break();return}if(typeof l=="object"&&!(0,q8.alwaysValidSchema)(s,l)){let T=e.name("valid");a.removeAdditional==="failing"?(_(S,T,!1),e.if((0,V3.not)(T),()=>{n.reset(),h(S)})):(_(S,T),u||e.if((0,V3.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:q8.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(v,T)}}};Am.default=Cie});var eI=C(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var kie=Za(),QN=Wt(),Rm=En(),ZN=wm(),Pie={keyword:"properties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,parentSchema:t,data:r,it:i}=n;i.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&ZN.default.code(new kie.KeywordCxt(i,ZN.default,"additionalProperties"));let s=(0,QN.allSchemaProperties)(l);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Rm.mergeEvaluated.props(e,(0,Rm.toHash)(s),i.props));let u=s.filter(p=>!(0,Rm.alwaysValidSchema)(i,l[p]));if(u.length===0)return;let a=e.name("valid");for(let p of u)f(p)?c(p):(e.if((0,QN.propertyInData)(e,r,p,i.opts.ownProperties)),c(p),i.allErrors||e.else().var(a,!0),e.endIf()),n.it.definedProperties.add(p),n.ok(a);function f(p){return i.opts.useDefaults&&!i.compositeRule&&l[p].default!==void 0}function c(p){n.subschema({keyword:"properties",schemaProp:p,dataProp:p},a)}}};Om.default=Pie});var rI=C(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var nI=Wt(),V8=Ze(),lI=En(),tI=En(),Die={keyword:"patternProperties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,data:t,parentSchema:r,it:i}=n,{opts:s}=i,u=(0,nI.allSchemaProperties)(l),a=u.filter(_=>(0,lI.alwaysValidSchema)(i,l[_]));if(u.length===0||a.length===u.length&&(!i.opts.unevaluated||i.props===!0))return;let f=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc Line truncated
deps: ${l}}`};var xie={keyword:"dependencies",type:"object",schemaType:"object",error:_r.error,code(n){let[e,l]=Aie(n);XN(n,e),WN(n,l)}};function Aie({schema:n}){let e={},l={};for(let t in n){if(t==="__proto__")continue;let r=Array.isArray(n[t])?e:l;r[t]=n[t]}return[e,l]}function XN(n,e=n.schema){let{gen:l,data:t,it:r}=n;if(Object.keys(e).length===0)return;let i=l.let("missing");for(let s in e){let u=e[s];if(u.length===0)continue;let a=(0,P0.propertyInData)(l,t,s,r.opts.ownProperties);n.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),r.allErrors?l.if(a,()=>{for(let f of u)(0,P0.checkReportMissingProp)(n,f)}):(l.if((0,Sm._)`${a} && (${(0,P0.checkMissingProp)(n,u,i)})`),(0,P0.reportMissingProp)(n,i),l.else())}}_r.validatePropertyDeps=XN;function WN(n,e=n.schema){let{gen:l,data:t,keyword:r,it:i}=n,s=l.name("valid");for(let u in e)(0,Sie.alwaysValidSchema)(i,e[u])||(l.if((0,P0.propertyInData)(l,t,u,i.opts.ownProperties),()=>{let a=n.subschema({keyword:r,schemaProp:u},s);n.mergeValidEvaluated(a,s)},()=>l.var(s,!0)),n.ok(s))}_r.validateSchemaDeps=WN;_r.default=xie});var JN=C(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var YN=Ze(),wie=En(),Rie={message:"property name must be valid",params:({params:n})=>(0,YN._)`{propertyName: ${n.propertyName}}`},Oie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Rie,code(n){let{gen:e,schema:l,data:t,it:r}=n;if((0,wie.alwaysValidSchema)(r,l))return;let i=e.name("valid");e.forIn("key",t,s=>{n.setParams({propertyName:s}),n.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,YN.not)(i),()=>{n.error(!0),r.allErrors||e.break()})}),n.ok(i)}};xm.default=Oie});var wm=C(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var H8=Wt(),V3=Ze(),Nie=v3(),q8=En(),Iie={message:"must NOT have additional properties",params:({params:n})=>(0,V3._)`{additionalProperty: ${n.additionalProperty}}`},Cie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Iie,code(n){let{gen:e,schema:l,parentSchema:t,data:r,errsCount:i,it:s}=n;if(!i)throw new Error("ajv implementation error");let{allErrors:u,opts:a}=s;if(s.props=!0,a.removeAdditional!=="all"&&(0,q8.alwaysValidSchema)(s,l))return;let f=(0,H8.allSchemaProperties)(t.properties),c=(0,H8.allSchemaProperties)(t.patternProperties);p(),n.ok((0,V3._)`${i} === ${Nie.default.errors}`);function p(){e.forIn("key",r,S=>{!f.length&&!c.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(f.length>8){let x=(0,q8.schemaRefOrVal)(s,t.properties,"properties");T=(0,H8.isOwnProperty)(e,x,S)}else f.length?T=(0,V3.or)(...f.map(x=>(0,V3._)`${S} === ${x}`)):T=V3.nil;return c.length&&(T=(0,V3.or)(T,...c.map(x=>(0,V3._)`${(0,H8.usePattern)(n,x)}.test(${S})`))),(0,V3.not)(T)}function h(S){e.code((0,V3._)`delete ${r}[${S}]`)}function g(S){if(a.removeAdditional==="all"||a.removeAdditional&&l===!1){h(S);return}if(l===!1){n.setParams({additionalProperty:S}),n.error(),u||e.break();return}if(typeof l=="object"&&!(0,q8.alwaysValidSchema)(s,l)){let T=e.name("valid");a.removeAdditional==="failing"?(_(S,T,!1),e.if((0,V3.not)(T),()=>{n.reset(),h(S)})):(_(S,T),u||e.if((0,V3.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:q8.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(v,T)}}};Am.default=Cie});var eI=C(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var kie=Za(),QN=Wt(),Rm=En(),ZN=wm(),Pie={keyword:"properties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,parentSchema:t,data:r,it:i}=n;i.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&ZN.default.code(new kie.KeywordCxt(i,ZN.default,"additionalProperties"));let s=(0,QN.allSchemaProperties)(l);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Rm.mergeEvaluated.props(e,(0,Rm.toHash)(s),i.props));let u=s.filter(p=>!(0,Rm.alwaysValidSchema)(i,l[p]));if(u.length===0)return;let a=e.name("valid");for(let p of u)f(p)?c(p):(e.if((0,QN.propertyInData)(e,r,p,i.opts.ownProperties)),c(p),i.allErrors||e.else().var(a,!0),e.endIf()),n.it.definedProperties.add(p),n.ok(a);function f(p){return i.opts.useDefaults&&!i.compositeRule&&l[p].default!==void 0}function c(p){n.subschema({keyword:"properties",schemaProp:p,dataProp:p},a)}}};Om.default=Pie});var rI=C(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var nI=Wt(),V8=Ze(),lI=En(),tI=En(),Die={keyword:"patternProperties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,data:t,parentSchema:r,it:i}=n,{opts:s}=i,u=(0,nI.allSchemaProperties)(l),a=u.filter(_=>(0,lI.alwaysValidSchema)(i,l[_]));if(u.length===0||a.length===u.length&&(!i.opts.unevaluated||i.props===!0))return;let f=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc Line truncated
`,r+=`const validator = Validator.restoreFromState(validatorState)
`):r+=`const validator = null
`,`
@@ -119,7 +119,7 @@ ${T}`),g.pop(),`{${w}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
${r}
module.exports = ${n.toString()}(validator, serializer)`}lg.exports=Cue;lg.exports.dependencies={Serializer:oh(),Validator:ng()}});var ZI=C((XSe,QI)=>{"use strict";var{dependencies:kue}=tg(),{Serializer:Pue,Validator:GSe}=kue,Due={mode:"standalone"},Lue=Pue.restoreFromState(Due),Fue=null;QI.exports=function(e,l){function t(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let u=!1,a="{";return s.statusCode!==void 0&&(!u&&(u=!0)||(a+=","),a+='"statusCode":',a+=l.asNumber(s.statusCode)),s.code!==void 0&&(!u&&(u=!0)||(a+=","),a+='"code":',a+=l.asString(s.code)),s.error!==void 0&&(!u&&(u=!0)||(a+=","),a+='"error":',a+=l.asString(s.error)),s.message!==void 0&&(!u&&(u=!0)||(a+=","),a+='"message":',a+=l.asString(s.message)),a+"}"}return t}(Fue,Lue)});var M0=C((WSe,tC)=>{"use strict";var eC=require("node:http").STATUS_CODES,Mue=sd(),{kReplyHeaders:wu,kReplyNextErrorHandler:n9,kReplyIsRunningOnErrorHook:$ue,kReplyHasStatusCode:jue,kRouteContext:lC}=$t(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:Uue,FST_ERR_FAILED_ERROR_SERIALIZATION:Bue}=a2(),{getSchemaSerializer:Hue}=s0(),rg=ZI(),que={func:zue,toJSON(){return this.func.name.toString()+"()"}};function Vue(n,e,l){n[$ue]=!1;let t=n[lC];if(n[n9]===!1){nC(e,n,function(u,a){try{u.raw.writeHead(u.raw.statusCode,u[wu])}catch(f){u.log.warn({req:u.request,res:u,err:f},f&&f.message),u.raw.writeHead(u.raw.statusCode)}u.raw.end(a)});return}let r=n[n9]||t.errorHandler;n[n9]=Object.getPrototypeOf(r),delete n[wu]["content-type"],delete n[wu]["content-length"];let i=r.func;if(!i){n[n9]=!1,nC(e,n,l);return}let s=i(e,n.request,n);s!==void 0&&(s!==null&&typeof s.then=="function"?Mue(s,n):n.send(s))}function zue(n,e,l){if(Xue(n,l),!l[jue]||l.statusCode===200){let t=n.statusCode||n.status;l.code(t>=400?t:500)}l.statusCode<500?l.log.info({res:l,err:n},n&&n.message):l.log.error({req:e,res:l,err:n},n&&n.message),l.send(n)}function nC(n,e,l){let t=e.raw,r=e.statusCode;e[wu]["content-type"]=e[wu]["content-type"]??"application/json; charset=utf-8";let i;try{let s=Hue(e[lC],r,e[wu]["content-type"]);i=s===!1?rg({error:eC[r+""],code:n.code,message:n.message,statusCode:r}):s(Object.create(n,{error:{value:eC[r+""]},message:{value:n.message},statusCode:{value:r}}))}catch(s){e.log.error({err:s,statusCode:t.statusCode},"The serializer for the given status code failed"),e.code(500),i=rg(new Bue(s.message,n.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=rg(new Uue(typeof i))),e[wu]["content-length"]=""+Buffer.byteLength(i),l(e,i)}function Gue(n=que,e){if(!e)return n;let l=Object.create(n);return l.func=e,l}function Xue(n,e){let l=e.raw,t=l.statusCode;t=t>=400?t:500,n!=null&&(n.headers!==void 0&&e.headers(n.headers),n.status>=400?t=n.status:n.statusCode>=400&&(t=n.statusCode)),l.statusCode=t}tC.exports={buildErrorHandler:Gue,handleError:Vue}});var u9=C((KSe,s9)=>{"use strict";var ag=require("node:stream").finished,Wue=require("node:stream").Readable,{kFourOhFourContext:rC,kPublicRouteContext:iC,kReplyErrorHandlerCalled:dC,kReplyHijacked:$0,kReplyStartTime:j0,kReplyEndTime:cg,kReplySerializer:fi,kReplySerializerDefault:t9,kReplyIsError:r9,kReplyHeaders:Nl,kReplyTrailers:jt,kReplyHasStatusCode:fg,kReplyIsRunningOnErrorHook:pg,kReplyNextErrorHandler:Kue,kDisableRequestLogging:hC,kSchemaResponse:i9,kReplyCacheSerializeFns:Zi,kSchemaController:ig,kOptions:Yue,kRouteContext:In}=$t(),{onSendHookRunner:mC,onResponseHookRunner:Jue,preHandlerHookRunner:Que,preSerializationHookRunner:Zue}=ji(),sC=cd()[Symbol.for("internals")],eae=r0(),og=eae.now,{handleError:uC}=M0(),{getSchemaSerializer:nae}=s0(),sg={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:lae,FST_ERR_REP_RESPONSE_BODY_CONSUMED:tae,FST_ERR_REP_ALREADY_SENT:gC,FST_ERR_REP_SENT_VALUE:rae,FST_ERR_SEND_INSIDE_ONERR:iae,FST_ERR_BAD_STATUS_CODE:sae,FST_ERR_BAD_TRAILER_NAME:uae,FST_ERR_BAD_TRAILER_VALUE:aae,FST_ERR_MISSING_SERIALIZATION_FN:oae,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:cae}=a2(),{FSTDEP010:fae,FSTDEP013:pae,FSTDEP019:dae,FSTDEP020:hae}=ii(),yC=Object.prototype.toString;function xl(n,e,l){this.raw=n,this[fi]=null,this[dC]=!1,this[r9]=!1,this[pg]=!1,this.request=e,this[Nl]={},this[jt]=null,this[fg]=!1,this[j0]=void 0,this.log=l}xl.props=[];Object.defineProperties(xl.prototype,{[In]:{get(){return this.request[In]}},context:{get(){return dae(),this.request[In]}},elapsedTime:{get(){return this[j0]===void 0?0:(this[cg]||og())-this[j0]}},server:{get(){return this.request[In].server}},sent:{enumerable:!0,get(){return(this[$0]||this.raw.writableEnded)===!0},set(n){if(fae(),n!==!0)throw new rae;if(this.sent&&this[$0])throw new gC(this.request.url,this.request.method);this[$0]=!0}},statusCode:{get(){return this.raw.statusCode},set(n){this.code(n)}},[iC]:{get(){return this.request[iC]}}});xl.prototype.hijack=function(){return this[$0]=!0,this};xl.prototype.send=function(n){if(this[pg]===!0)throw new iae;if(this.sent)return this.log.warn Line truncated
module.exports = ${n.toString()}(validator, serializer)`}lg.exports=Cue;lg.exports.dependencies={Serializer:oh(),Validator:ng()}});var ZI=C((XSe,QI)=>{"use strict";var{dependencies:kue}=tg(),{Serializer:Pue,Validator:GSe}=kue,Due={mode:"standalone"},Lue=Pue.restoreFromState(Due),Fue=null;QI.exports=function(e,l){function t(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let u=!1,a="{";return s.statusCode!==void 0&&(!u&&(u=!0)||(a+=","),a+='"statusCode":',a+=l.asNumber(s.statusCode)),s.code!==void 0&&(!u&&(u=!0)||(a+=","),a+='"code":',a+=l.asString(s.code)),s.error!==void 0&&(!u&&(u=!0)||(a+=","),a+='"error":',a+=l.asString(s.error)),s.message!==void 0&&(!u&&(u=!0)||(a+=","),a+='"message":',a+=l.asString(s.message)),a+"}"}return t}(Fue,Lue)});var M0=C((WSe,tC)=>{"use strict";var eC=require("node:http").STATUS_CODES,Mue=sd(),{kReplyHeaders:wu,kReplyNextErrorHandler:n9,kReplyIsRunningOnErrorHook:$ue,kReplyHasStatusCode:jue,kRouteContext:lC}=$t(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:Uue,FST_ERR_FAILED_ERROR_SERIALIZATION:Bue}=a2(),{getSchemaSerializer:Hue}=s0(),rg=ZI(),que={func:zue,toJSON(){return this.func.name.toString()+"()"}};function Vue(n,e,l){n[$ue]=!1;let t=n[lC];if(n[n9]===!1){nC(e,n,function(u,a){try{u.raw.writeHead(u.raw.statusCode,u[wu])}catch(f){u.log.warn({req:u.request,res:u,err:f},f&&f.message),u.raw.writeHead(u.raw.statusCode)}u.raw.end(a)});return}let r=n[n9]||t.errorHandler;n[n9]=Object.getPrototypeOf(r),delete n[wu]["content-type"],delete n[wu]["content-length"];let i=r.func;if(!i){n[n9]=!1,nC(e,n,l);return}let s=i(e,n.request,n);s!==void 0&&(s!==null&&typeof s.then=="function"?Mue(s,n):n.send(s))}function zue(n,e,l){if(Xue(n,l),!l[jue]||l.statusCode===200){let t=n.statusCode||n.status;l.code(t>=400?t:500)}l.statusCode<500?l.log.info({res:l,err:n},n&&n.message):l.log.error({req:e,res:l,err:n},n&&n.message),l.send(n)}function nC(n,e,l){let t=e.raw,r=e.statusCode;e[wu]["content-type"]=e[wu]["content-type"]??"application/json; charset=utf-8";let i;try{let s=Hue(e[lC],r,e[wu]["content-type"]);i=s===!1?rg({error:eC[r+""],code:n.code,message:n.message,statusCode:r}):s(Object.create(n,{error:{value:eC[r+""]},message:{value:n.message},statusCode:{value:r}}))}catch(s){e.log.error({err:s,statusCode:t.statusCode},"The serializer for the given status code failed"),e.code(500),i=rg(new Bue(s.message,n.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=rg(new Uue(typeof i))),e[wu]["content-length"]=""+Buffer.byteLength(i),l(e,i)}function Gue(n=que,e){if(!e)return n;let l=Object.create(n);return l.func=e,l}function Xue(n,e){let l=e.raw,t=l.statusCode;t=t>=400?t:500,n!=null&&(n.headers!==void 0&&e.headers(n.headers),n.status>=400?t=n.status:n.statusCode>=400&&(t=n.statusCode)),l.statusCode=t}tC.exports={buildErrorHandler:Gue,handleError:Vue}});var u9=C((KSe,s9)=>{"use strict";var ag=require("node:stream").finished,Wue=require("node:stream").Readable,{kFourOhFourContext:rC,kPublicRouteContext:iC,kReplyErrorHandlerCalled:dC,kReplyHijacked:$0,kReplyStartTime:j0,kReplyEndTime:cg,kReplySerializer:fi,kReplySerializerDefault:t9,kReplyIsError:r9,kReplyHeaders:Nl,kReplyTrailers:jt,kReplyHasStatusCode:fg,kReplyIsRunningOnErrorHook:pg,kReplyNextErrorHandler:Kue,kDisableRequestLogging:hC,kSchemaResponse:i9,kReplyCacheSerializeFns:Zi,kSchemaController:ig,kOptions:Yue,kRouteContext:In}=$t(),{onSendHookRunner:mC,onResponseHookRunner:Jue,preHandlerHookRunner:Que,preSerializationHookRunner:Zue}=ji(),sC=cd()[Symbol.for("internals")],eae=r0(),og=eae.now,{handleError:uC}=M0(),{getSchemaSerializer:nae}=s0(),sg={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:lae,FST_ERR_REP_RESPONSE_BODY_CONSUMED:tae,FST_ERR_REP_ALREADY_SENT:gC,FST_ERR_REP_SENT_VALUE:rae,FST_ERR_SEND_INSIDE_ONERR:iae,FST_ERR_BAD_STATUS_CODE:sae,FST_ERR_BAD_TRAILER_NAME:uae,FST_ERR_BAD_TRAILER_VALUE:aae,FST_ERR_MISSING_SERIALIZATION_FN:oae,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:cae}=a2(),{FSTDEP010:fae,FSTDEP013:pae,FSTDEP019:dae,FSTDEP020:hae}=ii(),yC=Object.prototype.toString;function xl(n,e,l){this.raw=n,this[fi]=null,this[dC]=!1,this[r9]=!1,this[pg]=!1,this.request=e,this[Nl]={},this[jt]=null,this[fg]=!1,this[j0]=void 0,this.log=l}xl.props=[];Object.defineProperties(xl.prototype,{[In]:{get(){return this.request[In]}},context:{get(){return dae(),this.request[In]}},elapsedTime:{get(){return this[j0]===void 0?0:(this[cg]||og())-this[j0]}},server:{get(){return this.request[In].server}},sent:{enumerable:!0,get(){return(this[$0]||this.raw.writableEnded)===!0},set(n){if(fae(),n!==!0)throw new rae;if(this.sent&&this[$0])throw new gC(this.request.url,this.request.method);this[$0]=!0}},statusCode:{get(){return this.raw.statusCode},set(n){this.code(n)}},[iC]:{get(){return this.request[iC]}}});xl.prototype.hijack=function(){return this[$0]=!0,this};xl.prototype.send=function(n){if(this[pg]===!0)throw new iae;if(this.sent)return this.log.warn Line truncated
${l.functions.join(`
`)}
const main = anonymous0
@@ -324,14 +324,14 @@ ${e}`)}function W9(n,e,l,t){if((n.isLeafNode||t.commonPrefix!==!1)&&(l=l||"(empt
if (candidates === 0) return null;
`)}for(let t in e.strategies)e.strategies[t].mustMatchWhenDerived&&!this.constraints.includes(t)&&l.push(`if (derivedConstraints.${t} !== undefined) return null`);l.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",l.join(`
`))}};IF.exports=tv});var PF=C((XAe,kF)=>{"use strict";var d9e=CF(),e7={STATIC:0,PARAMETRIC:1,WILDCARD:2},K9=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,l){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new d9e),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(l,e)}},Y9=class extends K9{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,l){let t=this.staticChildren[e.charAt(l)];return t===void 0||!t.matchPrefix(e,l)?null:t}getStaticChild(e,l=0){if(e.length===l)return this;let t=this.findStaticMatchingChild(e,l);return t?t.getStaticChild(e,l+t.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let l=this.staticChildren[e.charAt(0)];if(l){let r=1;for(;r<l.prefix.length;r++)if(e.charCodeAt(r)!==l.prefix.charCodeAt(r)){l=l.split(this,r);break}return l.createStaticChild(e.slice(r))}let t=e.charAt(0);return this.staticChildren[t]=new J9(e),this.staticChildren[t]}},J9=class n extends Y9{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=e7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let l=e&&e.source,t=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===l);return t||null}createParametricChild(e,l,t){let r=this.getParametricChild(e);return r?(r.nodePaths.add(t),r):(r=new Q9(e,l,t),this.parametricChildren.push(r),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new Z9,this.wildcardChild}split(e,l){let t=this.prefix.slice(0,l),r=this.prefix.slice(l);this.prefix=r,this._compilePrefixMatch();let i=new n(t);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[t.charAt(0)]=i,i}getNextNode(e,l,t,r){let i=this.findStaticMatchingChild(e,l),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.wildcardChild});for(let u=this.parametricChildren.length-1;u>=s;u--)t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.parametricChildren[u]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let l=1;l<this.prefix.length;l++){let t=this.prefix.charCodeAt(l);e.push(`path.charCodeAt(i + ${l}) === ${t}`)}this.matchPrefix=new Function("path","i",`return ${e.join(" && ")}`)}},Q9=class extends Y9{constructor(e,l,t){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=l||null,this.kind=e7.PARAMETRIC,this.nodePaths=new Set([t])}getNextNode(e,l){return this.findStaticMatchingChild(e,l)}},Z9=class extends K9{constructor(){super(),this.kind=e7.WILDCARD}getNextNode(){return null}};kF.exports={StaticNode:J9,ParametricNode:Q9,WildcardNode:Z9,NODE_TYPES:e7}});var LF=C((WAe,DF)=>{"use strict";var h9e=require("assert");function m1(){if(!(this instanceof m1))return new m1;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}m1.prototype.set=function(n,e){if(typeof n!="string")throw new TypeError("Version should be a string");let[l,t,r]=n.split(".");return l=Number(l)||0,t=Number(t)||0,r=Number(r)||0,l>=this.maxMajor&&(this.maxMajor=l,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),t>=(this.maxMinors[l]||0)&&(this.maxMinors[l]=t,this.store[`${l}.x`]=e,this.store[`${l}.x.x`]=e),r>=(this.store[`${l}.${t}`]||0)&&(this.maxPatches[`${l}.${t}`]=r,this.store[`${l}.${t}.x`]=e),this.store[`${l}.${t}.${r}`]=e,this};m1.prototype.get=function(n){return this.store[n]};DF.exports={name:"version",mustMatchWhenDerived:!0,storage:m1,validate(n){h9e(typeof n=="string","Version should be a string")}}});var MF=C((KAe,FF)=>{"use strict";var m9e=require("assert");function g9e(){let n={},e=[];return{get:l=>{let t=n[l];if(t)return t;for(let r of e)if(r.host.test(l))return r.value},set:(l,t)=>{l instanceof RegExp?e.push({host:l,value:t}):n[l]=t}}}FF.exports={name:"host",mustMatchWhenDerived:!1,storage:g9e,validate(n){m9e(typeof n=="string"||Object.prototype.toString.call(n)==="[object RegExp]","Host should be a string or a RegExp")}}});var jF=C((YAe,$F)=>{"use strict";var y9e=LF(),v9e=MF(),rv=require("assert"),iv=class{constructor(e){if(this.strategies={version:y9e,host:v9e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let l of Object.values(e))this.addConstraintStrategy(l)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let l=this.strategies[e];return l!==void 0?l.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(rv(typeof e.name=="string"&&e.name!=="","strategy.name is required."),rv(e.storage&&typeof e.storage=="function Line truncated
`)).bind(this)}};$F.exports=iv});var BF=C((JAe,UF)=>{"use strict";var _9e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];UF.exports=_9e});var VF=C((QAe,qF)=>{"use strict";function HF(n,e){return n===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:n===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:n===52&&e===48?"@":null}function E9e(n,e){let l=!1,t=!1,r="";for(let s=1;s<n.length;s++){let u=n.charCodeAt(s);if(u===37){let a=n.charCodeAt(s+1),f=n.charCodeAt(s+2);HF(a,f)===null?l=!0:(t=!0,a===50&&f===53&&(l=!0,n=n.slice(0,s+1)+"25"+n.slice(s+1),s+=2),s+=2)}else if(u===63||u===35||u===59&&e){r=n.slice(s+1),n=n.slice(0,s);break}}return{path:l?decodeURI(n):n,querystring:r,shouldDecodeParam:t}}function b9e(n){let e=n.indexOf("%");if(e===-1)return n;let l="",t=e;for(let r=e;r<n.length;r++)if(n.charCodeAt(r)===37){let i=n.charCodeAt(r+1),s=n.charCodeAt(r+2),u=HF(i,s);l+=n.slice(t,r)+u,t=r+3}return n.slice(0,e)+l+n.slice(t)}qF.exports={safeDecodeURI:E9e,safeDecodeURIComponent:b9e}});var fv=C((ZAe,JF)=>{"use strict";var ct=require("assert"),T9e=fF(),n7=bF(),av=Ja(),{prettyPrintTree:S9e}=NF(),{StaticNode:zF,NODE_TYPES:sv}=PF(),x9e=jF(),Io=BF(),uv=X9(),{safeDecodeURI:A9e,safeDecodeURIComponent:GF}=VF(),XF=/^https?:\/\/.*?\//,Fu=/(\/:[^/()]*?)\?(\/?)/;if(!n7(XF))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!n7(Fu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Gl(n){if(!(this instanceof Gl))return new Gl(n);n=n||{},this._opts=n,n.defaultRoute?(ct(typeof n.defaultRoute=="function","The default route must be a function"),this.defaultRoute=n.defaultRoute):this.defaultRoute=null,n.onBadUrl?(ct(typeof n.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=n.onBadUrl):this.onBadUrl=null,n.buildPrettyMeta?(ct(typeof n.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=n.buildPrettyMeta):this.buildPrettyMeta=w9e,n.querystringParser?(ct(typeof n.querystringParser=="function","querystringParser must be a function"),this.querystringParser=n.querystringParser):this.querystringParser=e=>e===""?{}:T9e.parse(e),this.caseSensitive=n.caseSensitive===void 0?!0:n.caseSensitive,this.ignoreTrailingSlash=n.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=n.ignoreDuplicateSlashes||!1,this.maxParamLength=n.maxParamLength||100,this.allowUnsafeRegex=n.allowUnsafeRegex||!1,this.constrainer=new x9e(n.constraints),this.useSemicolonDelimiter=n.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Gl.prototype.on=function(e,l,t,r,i){typeof t=="function"&&(r!==void 0&&(i=r),r=t,t={}),ct(typeof l=="string","Path should be a string"),ct(l.length>0,"The path could not be empty"),ct(l[0]==="/"||l[0]==="*","The first character of a path should be `/` or `*`"),ct(typeof r=="function","Handler should be a function");let s=l.match(Fu);if(s){ct(l.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let f=l.replace(Fu,"$1$2"),c=l.replace(Fu,"$2");this.on(e,f,t,r,i),this.on(e,c,t,r,i);return}let u=l;this.ignoreDuplicateSlashes&&(l=ov(l)),this.ignoreTrailingSlash&&(l=cv(l));let a=Array.isArray(e)?e:[e];for(let f of a)ct(typeof f=="string","Method should be a string"),ct(Io.includes(f),`Method '${f}' is not an http method.`),this._on(f,l,t,r,i,u)};Gl.prototype._on=function(e,l,t,r,i){let s={};t.constraints!==void 0&&(ct(typeof t.constraints=="object"&&t.constraints!==null,"Constraints should be an object"),Object.keys(t.constraints).length!==0&&(s=t.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new zF("/"));let u=l;if(u==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new zF(""),this.trees[e].staticChildren["/"]=m}let a=this.trees[e],f=a.prefix.length,c=[];for(let m=0;m<=u.length;m++){if(u.charCodeAt(m)===58&&u.charCodeAt(m+1)===58){m++;continue}let h=u.charCodeAt(m)===58&&u.charCodeAt(m+1)!==58,g=u.charCodeAt(m)===42;if(h||g||m===u.length&&m!==f){let _=u.slice(f,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),a=a.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=u.charCodeAt(x),b=v===40,w=v===45||v===46,N=v===47||x===u.length;if(b||w||N){let O=u.slice(T,x);if(c.push(O),_=_||b||w,b){let L=YF(u,x),Q=u.slice(x,L+1);this.allowUnsafeRegex||ct(n7(new RegExp(Q)),`The regex '${Q}' is not safe!`),S.push(KF(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x<u.length;x++){let L=u.charCodeAt(x);if(L===47)break;if(L===58)if(u.charCodeAt(x+1)===58)x++;else break}let j=u.slice(k,x);if(j&&(j= Line truncated
`)).bind(this)}};$F.exports=iv});var BF=C((JAe,UF)=>{"use strict";var _9e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];UF.exports=_9e});var VF=C((QAe,qF)=>{"use strict";function HF(n,e){return n===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:n===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:n===52&&e===48?"@":null}function E9e(n,e){let l=!1,t=!1,r="";for(let s=1;s<n.length;s++){let u=n.charCodeAt(s);if(u===37){let a=n.charCodeAt(s+1),f=n.charCodeAt(s+2);HF(a,f)===null?l=!0:(t=!0,a===50&&f===53&&(l=!0,n=n.slice(0,s+1)+"25"+n.slice(s+1),s+=2),s+=2)}else if(u===63||u===35||u===59&&e){r=n.slice(s+1),n=n.slice(0,s);break}}return{path:l?decodeURI(n):n,querystring:r,shouldDecodeParam:t}}function b9e(n){let e=n.indexOf("%");if(e===-1)return n;let l="",t=e;for(let r=e;r<n.length;r++)if(n.charCodeAt(r)===37){let i=n.charCodeAt(r+1),s=n.charCodeAt(r+2),u=HF(i,s);l+=n.slice(t,r)+u,t=r+3}return n.slice(0,e)+l+n.slice(t)}qF.exports={safeDecodeURI:E9e,safeDecodeURIComponent:b9e}});var fv=C((ZAe,JF)=>{"use strict";var ft=require("assert"),T9e=fF(),n7=bF(),av=Ja(),{prettyPrintTree:S9e}=NF(),{StaticNode:zF,NODE_TYPES:sv}=PF(),x9e=jF(),Io=BF(),uv=X9(),{safeDecodeURI:A9e,safeDecodeURIComponent:GF}=VF(),XF=/^https?:\/\/.*?\//,Fu=/(\/:[^/()]*?)\?(\/?)/;if(!n7(XF))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!n7(Fu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Gl(n){if(!(this instanceof Gl))return new Gl(n);n=n||{},this._opts=n,n.defaultRoute?(ft(typeof n.defaultRoute=="function","The default route must be a function"),this.defaultRoute=n.defaultRoute):this.defaultRoute=null,n.onBadUrl?(ft(typeof n.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=n.onBadUrl):this.onBadUrl=null,n.buildPrettyMeta?(ft(typeof n.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=n.buildPrettyMeta):this.buildPrettyMeta=w9e,n.querystringParser?(ft(typeof n.querystringParser=="function","querystringParser must be a function"),this.querystringParser=n.querystringParser):this.querystringParser=e=>e===""?{}:T9e.parse(e),this.caseSensitive=n.caseSensitive===void 0?!0:n.caseSensitive,this.ignoreTrailingSlash=n.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=n.ignoreDuplicateSlashes||!1,this.maxParamLength=n.maxParamLength||100,this.allowUnsafeRegex=n.allowUnsafeRegex||!1,this.constrainer=new x9e(n.constraints),this.useSemicolonDelimiter=n.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Gl.prototype.on=function(e,l,t,r,i){typeof t=="function"&&(r!==void 0&&(i=r),r=t,t={}),ft(typeof l=="string","Path should be a string"),ft(l.length>0,"The path could not be empty"),ft(l[0]==="/"||l[0]==="*","The first character of a path should be `/` or `*`"),ft(typeof r=="function","Handler should be a function");let s=l.match(Fu);if(s){ft(l.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let f=l.replace(Fu,"$1$2"),c=l.replace(Fu,"$2");this.on(e,f,t,r,i),this.on(e,c,t,r,i);return}let u=l;this.ignoreDuplicateSlashes&&(l=ov(l)),this.ignoreTrailingSlash&&(l=cv(l));let a=Array.isArray(e)?e:[e];for(let f of a)ft(typeof f=="string","Method should be a string"),ft(Io.includes(f),`Method '${f}' is not an http method.`),this._on(f,l,t,r,i,u)};Gl.prototype._on=function(e,l,t,r,i){let s={};t.constraints!==void 0&&(ft(typeof t.constraints=="object"&&t.constraints!==null,"Constraints should be an object"),Object.keys(t.constraints).length!==0&&(s=t.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new zF("/"));let u=l;if(u==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new zF(""),this.trees[e].staticChildren["/"]=m}let a=this.trees[e],f=a.prefix.length,c=[];for(let m=0;m<=u.length;m++){if(u.charCodeAt(m)===58&&u.charCodeAt(m+1)===58){m++;continue}let h=u.charCodeAt(m)===58&&u.charCodeAt(m+1)!==58,g=u.charCodeAt(m)===42;if(h||g||m===u.length&&m!==f){let _=u.slice(f,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),a=a.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=u.charCodeAt(x),b=v===40,w=v===45||v===46,N=v===47||x===u.length;if(b||w||N){let O=u.slice(T,x);if(c.push(O),_=_||b||w,b){let L=YF(u,x),Q=u.slice(x,L+1);this.allowUnsafeRegex||ft(n7(new RegExp(Q)),`The regex '${Q}' is not safe!`),S.push(KF(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x<u.length;x++){let L=u.charCodeAt(x);if(L===47)break;if(L===58)if(u.charCodeAt(x+1)===58)x++;else break}let j=u.slice(k,x);if(j&&(j= Line truncated
Content-Length: ${Te.length}\r
Content-Type: application/json\r
\r
${Te}`),ge.destroy(J)}function ve(J,ge){J.headers["accept-version"]!==void 0&&(J.headers[pce]=J.headers["accept-version"],J.headers["accept-version"]=void 0),h.router.lookup(J,ge)}function q(J,ge,Te){if(u){let sn=o$(L.server,ge),Ce=u$(L,a,ge,sn),On=new p7(sn,null,ge,null,Ce,L),Wl=new w1(Te,On,Ce);return i===!1&&Ce.info({req:On},"incoming request"),u(new kce(J),On,Wl)}let Ue=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${J}' is not a valid url component","statusCode":400}`;Te.writeHead(400,{"Content-Type":"application/json","Content-Length":Ue.length}),Te.end(Ue)}function re(J,ge,Te){if(J!==!1)return function(sn){if(sn){if(u){let On=o$(L.server,ge),Wl=u$(L,a,ge,On),Nn=new p7(On,null,ge,null,Wl,L),Gn=new w1(Te,Nn,Wl);return i===!1&&Wl.info({req:Nn},"incoming request"),u(new Cce,Nn,Gn)}let Ce='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';Te.writeHead(500,{"Content-Type":"application/json","Content-Length":Ce.length}),Te.end(Ce)}}}function te(J,ge){return Q('Cannot call "setNotFoundHandler"!'),h.setNotFoundHandler.call(this,J,ge,j,m.routeHandler),this}function ne(J){return Q('Cannot call "setValidatorCompiler"!'),this[as].setValidatorCompiler(J),this}function Bl(J){return Q('Cannot call "setSchemaErrorFormatter"!'),h$(J),this[Lv]=J.bind(this),this}function Rn(J){return Q('Cannot call "setSerializerCompiler"!'),this[as].setSerializerCompiler(J),this}function Ge(J){Q('Cannot call "setSchemaController"!');let ge=this[as],Te=i$.buildSchemaController(ge,Object.assign({},ge.opts,J));return this[as]=Te,this.getSchema=Te.getSchema.bind(Te),this.getSchemas=Te.getSchemas.bind(Te),this}function Hn(J){return Q('Cannot call "setReplySerializer"!'),this[r$]=J,this}function Ke(J){return Q('Cannot call "setErrorHandler"!'),this[f7]=d$(this[f7],J.bind(this)),this}function Xe(J){return Q('Cannot call "setChildLoggerFactory"!'),this[Mv]=J,this}function bl(J={}){return J.includeMeta=J.includeHooks?J.includeMeta?jv.concat(J.includeMeta):jv:J.includeMeta,m.printRoutes(J)}function fn(J,{rewriteUrl:ge,logger:Te}){let Ue;return function(Ce,On){if(Ue===void 0&&(Ue=J.isAsyncConstraint()),ge){Ce.originalUrl=Ce.url;let Wl=ge.call(O,Ce);if(typeof Wl=="string")Ce.url=Wl;else{let Nn=new Hce(Ce.url,typeof Wl);Ce.destroy(Nn)}}J.routing(Ce,On,re(Ue,Ce,On))}}function dn(J){return Q('Cannot call "setGenReqId"!'),this[$v]=c$(this[Dv].requestIdHeader,J),this}}d7.errorCodes=$u;function h$(n){if(typeof n!="function")throw new p$(typeof n);if(n.constructor.name==="AsyncFunction")throw new p$("AsyncFunction")}h7.exports=d7;h7.exports.fastify=d7;h7.exports.default=d7});var YH=C((mOe,KH)=>{"use strict";KH.exports=Error});var QH=C((gOe,JH)=>{"use strict";JH.exports=EvalError});var eq=C((yOe,ZH)=>{"use strict";ZH.exports=RangeError});var lq=C((vOe,nq)=>{"use strict";nq.exports=ReferenceError});var CE=C((_Oe,tq)=>{"use strict";tq.exports=SyntaxError});var d4=C((EOe,rq)=>{"use strict";rq.exports=TypeError});var sq=C((bOe,iq)=>{"use strict";iq.exports=URIError});var aq=C((TOe,uq)=>{"use strict";uq.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},l=Symbol("test"),t=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var r=42;e[l]=r;for(l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==l||!Object.prototype.propertyIsEnumerable.call(e,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,l);if(s.value!==r||s.enumerable!==!0)return!1}return!0}});var fq=C((SOe,cq)=>{"use strict";var oq=typeof Symbol<"u"&&Symbol,Bme=aq();cq.exports=function(){return typeof oq!="function"||typeof Symbol!="function"||typeof oq("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Bme()}});var dq=C((xOe,pq)=>{"use strict";var kE={__proto__:null,foo:{}},Hme=Object;pq.exports=function(){return{__proto__:kE}.foo===kE.foo&&!(kE instanceof Hme)}});var gq=C((AOe,mq)=>{"use strict";var qme="Function.prototype.bind called on incompatible ",Vme=Object.prototype.toString,zme=Math.max,Gme="[object Function]",hq=function(e,l){for(var t=[],r=0;r<e.length;r+=1)t[r]=e[r];for(var i=0;i<l.length;i+=1)t[i+e.length]=l[i];return t},Xme=function(e,l){for(var t=[],r=l||0,i=0;r<e.length;r+=1,i+=1)t[i]=e[r];return t},Wme=function(n,e){for(var l="",t=0;t<n.length;t+=1)l+=n[t],t+1<n.length&&(l+=e);return l};mq.exports=function(e){var l=this;if(typeof l!="function"||Vme.apply(l)!==Gme)throw new TypeError(qme+l);for(var t=Xme(arguments,1),r,i=function(){if(this instanceof r){var c=l.apply(this,hq(t,arguments));return Object(c)===c?c:this}return l.apply(e,hq(t,arguments))},s=zme(0,l.length-t.length),u Line truncated
`)>=0)return!1;return!0}function Jge(n,e){var l;if(n.indent===" ")l=" ";else if(typeof n.indent=="number"&&n.indent>0)l=jr.call(Array(n.indent+1)," ");else return null;return{base:l,prev:jr.call(Array(e+1),l)}}function GE(n,e){if(n.length===0)return"";var l=`
`+e.prev+e.base;return l+jr.call(n,","+l)+`
`+e.prev}function nf(n,e){var l=zE(n),t=[];if(l){t.length=n.length;for(var r=0;r<n.length;r++)t[r]=bs(n,r)?e(n[r],n):""}var i=typeof UE=="function"?UE(n):[],s;if(_4){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var a in n)bs(n,a)&&(l&&String(Number(a))===a&&a<n.length||_4&&s["$"+a]instanceof Symbol||(oV.call(/[^\w$]/,a)?t.push(e(a,n)+": "+e(n[a],n)):t.push(a+": "+e(n[a],n))));if(typeof UE=="function")for(var f=0;f<i.length;f++)cV.call(n,i[f])&&t.push("["+e(i[f])+"]: "+e(n[i[f]],n));return t}});var _V=C(($Oe,vV)=>{"use strict";var yV=ia(),E4=Wq(),Qge=gV(),Zge=d4(),rf=yV("%WeakMap%",!0),sf=yV("%Map%",!0),eye=E4("WeakMap.prototype.get",!0),nye=E4("WeakMap.prototype.set",!0),lye=E4("WeakMap.prototype.has",!0),tye=E4("Map.prototype.get",!0),rye=E4("Map.prototype.set",!0),iye=E4("Map.prototype.has",!0),YE=function(n,e){for(var l=n,t;(t=l.next)!==null;l=t)if(t.key===e)return l.next=t.next,t.next=n.next,n.next=t,t},sye=function(n,e){var l=YE(n,e);return l&&l.value},uye=function(n,e,l){var t=YE(n,e);t?t.value=l:n.next={key:e,next:n.next,value:l}},aye=function(n,e){return!!YE(n,e)};vV.exports=function(){var e,l,t,r={assert:function(i){if(!r.has(i))throw new Zge("Side channel does not contain "+Qge(i))},get:function(i){if(rf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return eye(e,i)}else if(sf){if(l)return tye(l,i)}else if(t)return sye(t,i)},has:function(i){if(rf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return lye(e,i)}else if(sf){if(l)return iye(l,i)}else if(t)return aye(t,i);return!1},set:function(i,s){rf&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new rf),nye(e,i,s)):sf?(l||(l=new sf),rye(l,i,s)):(t||(t={key:{},next:null}),uye(t,i,s))}};return r}});var uf=C((jOe,EV)=>{"use strict";var oye=String.prototype.replace,cye=/%20/g,JE={RFC1738:"RFC1738",RFC3986:"RFC3986"};EV.exports={default:JE.RFC3986,formatters:{RFC1738:function(n){return oye.call(n,cye,"+")},RFC3986:function(n){return String(n)}},RFC1738:JE.RFC1738,RFC3986:JE.RFC3986}});var eb=C((UOe,TV)=>{"use strict";var fye=uf(),QE=Object.prototype.hasOwnProperty,sa=Array.isArray,Ur=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),pye=function(e){for(;e.length>1;){var l=e.pop(),t=l.obj[l.prop];if(sa(t)){for(var r=[],i=0;i<t.length;++i)typeof t[i]<"u"&&r.push(t[i]);l.obj[l.prop]=r}}},bV=function(e,l){for(var t=l&&l.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(t[r]=e[r]);return t},dye=function n(e,l,t){if(!l)return e;if(typeof l!="object"){if(sa(e))e.push(l);else if(e&&typeof e=="object")(t&&(t.plainObjects||t.allowPrototypes)||!QE.call(Object.prototype,l))&&(e[l]=!0);else return[e,l];return e}if(!e||typeof e!="object")return[e].concat(l);var r=e;return sa(e)&&!sa(l)&&(r=bV(e,t)),sa(e)&&sa(l)?(l.forEach(function(i,s){if(QE.call(e,s)){var u=e[s];u&&typeof u=="object"&&i&&typeof i=="object"?e[s]=n(u,i,t):e.push(i)}else e[s]=i}),e):Object.keys(l).reduce(function(i,s){var u=l[s];return QE.call(i,s)?i[s]=n(i[s],u,t):i[s]=u,i},r)},hye=function(e,l){return Object.keys(l).reduce(function(t,r){return t[r]=l[r],t},e)},mye=function(n,e,l){var t=n.replace(/\+/g," ");if(l==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},ZE=1024,gye=function(e,l,t,r,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),t==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var u="",a=0;a<s.length;a+=ZE){for(var f=s.length>=ZE?s.slice(a,a+ZE):s,c=[],p=0;p<f.length;++p){var m=f.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===fye.RFC1738&&(m===40||m===41)){c[c.length]=f.charAt(p);continue}if(m<128){c[c.length]=Ur[m];continue}if(m<2048){c[c.length]=Ur[192|m>>6]+Ur[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=Ur[224|m>>12]+Ur[128|m>>6&63]+Ur[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|f.charCodeAt(p)&1023),c[c.length]=Ur[240|m>>18]+Ur[128|m>>12&63]+Ur[128|m>>6&63]+Ur[128|m&63]}u+=c.join("")}return u},yye=function(e){for(var l=[{obj:{o:e},prop:"o"}],t=[],r=0;r<l.length;++r)for(var i=l[r],s=i.obj[i.prop],u=Object.keys(s),a=0;a<u.length;++a){var f=u[a],c=s[f];typeof c=="object"&&c!==null&&t.indexOf(c)===-1&&(l.push({obj:s,prop:f}),t.push(c))}return pye(l),e},vye=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},_ye=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Eye=function(e,l){return[].concat(e,l)},bye=function(e,l){if(sa(e)){for(var t=[],r=0;r<e.length;r+=1)t.push(l(e[r]));return t}return l(e)};TV.exports={arrayToObject:bV,assign:hye,combine:Eye,compact:yye,decode:mye,encode:gye,isBuffer:_ye,isRegExp:vye,maybeMap:bye,merge:dye}});var OV=C((BOe,RV)=>{"use strict";var xV=_V(),af=eb(),R5=uf(),Tye=Object.prototype.hasOwnProperty,AV={brack Line truncated
`+e.prev}function nf(n,e){var l=zE(n),t=[];if(l){t.length=n.length;for(var r=0;r<n.length;r++)t[r]=bs(n,r)?e(n[r],n):""}var i=typeof UE=="function"?UE(n):[],s;if(_4){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var a in n)bs(n,a)&&(l&&String(Number(a))===a&&a<n.length||_4&&s["$"+a]instanceof Symbol||(oV.call(/[^\w$]/,a)?t.push(e(a,n)+": "+e(n[a],n)):t.push(a+": "+e(n[a],n))));if(typeof UE=="function")for(var f=0;f<i.length;f++)cV.call(n,i[f])&&t.push("["+e(i[f])+"]: "+e(n[i[f]],n));return t}});var _V=C(($Oe,vV)=>{"use strict";var yV=ia(),E4=Wq(),Qge=gV(),Zge=d4(),rf=yV("%WeakMap%",!0),sf=yV("%Map%",!0),eye=E4("WeakMap.prototype.get",!0),nye=E4("WeakMap.prototype.set",!0),lye=E4("WeakMap.prototype.has",!0),tye=E4("Map.prototype.get",!0),rye=E4("Map.prototype.set",!0),iye=E4("Map.prototype.has",!0),YE=function(n,e){for(var l=n,t;(t=l.next)!==null;l=t)if(t.key===e)return l.next=t.next,t.next=n.next,n.next=t,t},sye=function(n,e){var l=YE(n,e);return l&&l.value},uye=function(n,e,l){var t=YE(n,e);t?t.value=l:n.next={key:e,next:n.next,value:l}},aye=function(n,e){return!!YE(n,e)};vV.exports=function(){var e,l,t,r={assert:function(i){if(!r.has(i))throw new Zge("Side channel does not contain "+Qge(i))},get:function(i){if(rf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return eye(e,i)}else if(sf){if(l)return tye(l,i)}else if(t)return sye(t,i)},has:function(i){if(rf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return lye(e,i)}else if(sf){if(l)return iye(l,i)}else if(t)return aye(t,i);return!1},set:function(i,s){rf&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new rf),nye(e,i,s)):sf?(l||(l=new sf),rye(l,i,s)):(t||(t={key:{},next:null}),uye(t,i,s))}};return r}});var uf=C((jOe,EV)=>{"use strict";var oye=String.prototype.replace,cye=/%20/g,JE={RFC1738:"RFC1738",RFC3986:"RFC3986"};EV.exports={default:JE.RFC3986,formatters:{RFC1738:function(n){return oye.call(n,cye,"+")},RFC3986:function(n){return String(n)}},RFC1738:JE.RFC1738,RFC3986:JE.RFC3986}});var eb=C((UOe,TV)=>{"use strict";var fye=uf(),QE=Object.prototype.hasOwnProperty,sa=Array.isArray,Ur=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),pye=function(e){for(;e.length>1;){var l=e.pop(),t=l.obj[l.prop];if(sa(t)){for(var r=[],i=0;i<t.length;++i)typeof t[i]<"u"&&r.push(t[i]);l.obj[l.prop]=r}}},bV=function(e,l){for(var t=l&&l.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(t[r]=e[r]);return t},dye=function n(e,l,t){if(!l)return e;if(typeof l!="object"){if(sa(e))e.push(l);else if(e&&typeof e=="object")(t&&(t.plainObjects||t.allowPrototypes)||!QE.call(Object.prototype,l))&&(e[l]=!0);else return[e,l];return e}if(!e||typeof e!="object")return[e].concat(l);var r=e;return sa(e)&&!sa(l)&&(r=bV(e,t)),sa(e)&&sa(l)?(l.forEach(function(i,s){if(QE.call(e,s)){var u=e[s];u&&typeof u=="object"&&i&&typeof i=="object"?e[s]=n(u,i,t):e.push(i)}else e[s]=i}),e):Object.keys(l).reduce(function(i,s){var u=l[s];return QE.call(i,s)?i[s]=n(i[s],u,t):i[s]=u,i},r)},hye=function(e,l){return Object.keys(l).reduce(function(t,r){return t[r]=l[r],t},e)},mye=function(n,e,l){var t=n.replace(/\+/g," ");if(l==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},ZE=1024,gye=function(e,l,t,r,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),t==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var u="",a=0;a<s.length;a+=ZE){for(var f=s.length>=ZE?s.slice(a,a+ZE):s,c=[],p=0;p<f.length;++p){var m=f.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===fye.RFC1738&&(m===40||m===41)){c[c.length]=f.charAt(p);continue}if(m<128){c[c.length]=Ur[m];continue}if(m<2048){c[c.length]=Ur[192|m>>6]+Ur[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=Ur[224|m>>12]+Ur[128|m>>6&63]+Ur[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|f.charCodeAt(p)&1023),c[c.length]=Ur[240|m>>18]+Ur[128|m>>12&63]+Ur[128|m>>6&63]+Ur[128|m&63]}u+=c.join("")}return u},yye=function(e){for(var l=[{obj:{o:e},prop:"o"}],t=[],r=0;r<l.length;++r)for(var i=l[r],s=i.obj[i.prop],u=Object.keys(s),a=0;a<u.length;++a){var f=u[a],c=s[f];typeof c=="object"&&c!==null&&t.indexOf(c)===-1&&(l.push({obj:s,prop:f}),t.push(c))}return pye(l),e},vye=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},_ye=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Eye=function(e,l){return[].concat(e,l)},bye=function(e,l){if(sa(e)){for(var t=[],r=0;r<e.length;r+=1)t.push(l(e[r]));return t}return l(e)};TV.exports={arrayToObject:bV,assign:hye,combine:Eye,compact:yye,decode:mye,encode:gye,isBuffer:_ye,isRegExp:vye,maybeMap:bye,merge:dye}});var OV=C((BOe,RV)=>{"use strict";var xV=_V(),af=eb(),R5=uf(),Tye=Object.prototype.hasOwnProperty,AV={brack Line truncated
`;Jn.DEFAULT_CONTENT_TYPE="application/octet-stream";Jn.prototype.append=function(n,e,l){l=l||{},typeof l=="string"&&(l={filename:l});var t=mb.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),Sz.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(n,e,l),i=this._multiPartFooter();t(r),t(e),t(i),this._trackLength(r,e,l)};Jn.prototype._trackLength=function(n,e,l){var t=0;l.knownLength!=null?t+=+l.knownLength:Buffer.isBuffer(e)?t=e.length:typeof e=="string"&&(t=Buffer.byteLength(e)),this._valueLength+=t,this._overheadLength+=Buffer.byteLength(n)+Jn.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof Zve))&&(l.knownLength||this._valuesToMeasure.push(e))};Jn.prototype._lengthRetriever=function(n,e){n.hasOwnProperty("fd")?n.end!=null&&n.end!=1/0&&n.start!=null?e(null,n.end+1-(n.start?n.start:0)):Qve.stat(n.path,function(l,t){var r;if(l){e(l);return}r=t.size-(n.start?n.start:0),e(null,r)}):n.hasOwnProperty("httpVersion")?e(null,+n.headers["content-length"]):n.hasOwnProperty("httpModule")?(n.on("response",function(l){n.pause(),e(null,+l.headers["content-length"])}),n.resume()):e("Unknown stream")};Jn.prototype._multiPartHeader=function(n,e,l){if(typeof l.header=="string")return l.header;var t=this._getContentDisposition(e,l),r=this._getContentType(e,l),i="",s={"Content-Disposition":["form-data",'name="'+n+'"'].concat(t||[]),"Content-Type":[].concat(r||[])};typeof l.header=="object"&&hb(s,l.header);var u;for(var a in s)s.hasOwnProperty(a)&&(u=s[a],u!=null&&(Array.isArray(u)||(u=[u]),u.length&&(i+=a+": "+u.join("; ")+Jn.LINE_BREAK)));return"--"+this.getBoundary()+Jn.LINE_BREAK+i+Jn.LINE_BREAK};Jn.prototype._getContentDisposition=function(n,e){var l,t;return typeof e.filepath=="string"?l=pb.normalize(e.filepath).replace(/\\/g,"/"):e.filename||n.name||n.path?l=pb.basename(e.filename||n.name||n.path):n.readable&&n.hasOwnProperty("httpVersion")&&(l=pb.basename(n.client._httpMessage.path||"")),l&&(t='filename="'+l+'"'),t};Jn.prototype._getContentType=function(n,e){var l=e.contentType;return!l&&n.name&&(l=db.lookup(n.name)),!l&&n.path&&(l=db.lookup(n.path)),!l&&n.readable&&n.hasOwnProperty("httpVersion")&&(l=n.headers["content-type"]),!l&&(e.filepath||e.filename)&&(l=db.lookup(e.filepath||e.filename)),!l&&typeof n=="object"&&(l=Jn.DEFAULT_CONTENT_TYPE),l};Jn.prototype._multiPartFooter=function(){return function(n){var e=Jn.LINE_BREAK,l=this._streams.length===0;l&&(e+=this._lastBoundary()),n(e)}.bind(this)};Jn.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Jn.LINE_BREAK};Jn.prototype.getHeaders=function(n){var e,l={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in n)n.hasOwnProperty(e)&&(l[e.toLowerCase()]=n[e]);return l};Jn.prototype.setBoundary=function(n){this._boundary=n};Jn.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Jn.prototype.getBuffer=function(){for(var n=new Buffer.alloc(0),e=this.getBoundary(),l=0,t=this._streams.length;l<t;l++)typeof this._streams[l]!="function"&&(Buffer.isBuffer(this._streams[l])?n=Buffer.concat([n,this._streams[l]]):n=Buffer.concat([n,Buffer.from(this._streams[l])]),(typeof this._streams[l]!="string"||this._streams[l].substring(2,e.length+2)!==e)&&(n=Buffer.concat([n,Buffer.from(Jn.LINE_BREAK)])));return Buffer.concat([n,Buffer.from(this._lastBoundary())])};Jn.prototype._generateBoundary=function(){for(var n="--------------------------",e=0;e<24;e++)n+=Math.floor(Math.random()*10).toString(16);this._boundary=n};Jn.prototype.getLengthSync=function(){var n=this._overheadLength+this._valueLength;return this._streams.length&&(n+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),n};Jn.prototype.hasKnownLength=function(){var n=!0;return this._valuesToMeasure.length&&(n=!1),n};Jn.prototype.getLength=function(n){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(n.bind(this,null,e));return}e_e.parallel(this._valuesToMeasure,this._lengthRetriever,function(l,t){if(l){n(l);return}t.forEach(function(r){e+=r}),n(null,e)})};Jn.prototype.submit=function(n,e){var l,t,r={method:"post"};return typeof n=="string"?(n=Jve(n),t=hb({port:n.port,path:n.pathname,host:n.hostname,protocol:n.protocol},r)):(t=hb(n,r),t.port||(t.port=t.protocol=="https:"?443:80)),t.headers=this.getHeaders(n.headers),t.protocol=="https:"?l=Yve.request(t):l=Kve.request(t),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&l.setHeader("Content-Length",s),this.pipe(l),e){var u,a=function(f,c){return l.removeListener("error",a),l.removeListener("response",u),e.call(this,f,c)};u=a.bind(this,null),l.on("error",a),l.on("response",u)}}.bind(this)),l};Jn.prototype._error=function(n){this.error||(this.error=n,this.pause(),this.emit("error" Line truncated
`,p.message,p.stack);var m=new Error("tunneling socket could not be established, cause="+p.message);m.code="ECONNRESET",e.request.emit("error",m),t.removeSocket(r)}};Ci.prototype.removeSocket=function(e){var l=this.sockets.indexOf(e);if(l!==-1){this.sockets.splice(l,1);var t=this.requests.shift();t&&this.createSocket(t,function(r){t.request.onSocket(r)})}};function OG(n,e){var l=this;Ci.prototype.createSocket.call(l,n,function(t){var r=n.request.getHeader("host"),i=Yb({},l.options,{socket:t,servername:r?r.replace(/:.*$/,""):n.host}),s=Q_e.connect(0,i);l.sockets[l.sockets.indexOf(t)]=s,e(s)})}function NG(n,e,l){return typeof n=="string"?{host:n,port:e,localAddress:l}:n}function Yb(n){for(var e=1,l=arguments.length;e<l;++e){var t=arguments[e];if(typeof t=="object")for(var r=Object.keys(t),i=0,s=r.length;i<s;++i){var u=r[i];t[u]!==void 0&&(n[u]=t[u])}}return n}var Os;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Os=function(){var n=Array.prototype.slice.call(arguments);typeof n[0]=="string"?n[0]="TUNNEL: "+n[0]:n.unshift("TUNNEL:"),console.error.apply(console,n)}:Os=function(){};I4.debug=Os});var kG=C((Pke,CG)=>{CG.exports=IG()});var bW=C(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.removeTrailingChar=ha.merge=void 0;var ebe=(...n)=>{let e={};return n.forEach(function(l){var t;for(t in l)t in e&&e[t]===null?e[t]=l[t]:t in e&&Array.isArray(e[t])?e[t]=e[t].concat(l[t]):t in e&&typeof e[t]=="object"?e[t]=(0,ha.merge)(e[t],l[t]):e[t]=l[t]}),e};ha.merge=ebe;var nbe=(n,e)=>n.length>1&&n.endsWith(e)?n.substring(0,n.length-1):n;ha.removeTrailingChar=nbe});var k4=C(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.DataError=Gs.DatabaseError=Gs.NestedError=void 0;var z5=class extends Error{inner;id;constructor(e,l,t){super(e),this.inner=t,this.id=l,this.name=this.constructor.name}toString(){let e=this.name+": "+this.message;return this.inner?e+`:
`+this.inner:e}};Gs.NestedError=z5;var AT=class extends z5{};Gs.DatabaseError=AT;var wT=class extends z5{};Gs.DataError=wT});var CT=C(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.getArrayIndicies=I2.validateArrayIndex=I2.validateArrayIndicies=I2.isInt=I2.ArrayInfo=I2.arrayRegex=void 0;var Rf=k4(),lbe=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;I2.arrayRegex=lbe;var RT={},OT=class n{property;index=0;append=!1;indicies=[];constructor(e,l){this.property=e;let t=l[0]??0;if(this.append=t===""||l[l.length-1]==="",this.indicies=l,NT(t))this.index=parseInt(t);else if(!this.append)throw new Rf.DataError("Only numerical values accepted for array index",200)}static processArray(e){if(typeof e>"u")return null;if(RT[e])return RT[e];let t=(0,I2.arrayRegex)().exec(e.trim());if(t!=null){let r=t[1],i="["+t[2].toString()+"]",s=IT(i);return TW(s),RT[e]=new n(r,s)}return null}getIndex(e,l){if(this.append)return-1;let t=this.index;if(t==-1){let r=l?e:e[this.property];return r.length===0?0:r.length-1}return t}getData(e){if(this.append)throw new Rf.DataError("Can't get data when appending",100);let{index:l,dataForProperty:t}=this.getArrayDataAndIndexFromProperty(e);return t[l]}setData(e,l){if(this.append){let t=e[this.property];this.indicies.forEach(r=>{r!==""&&(r=+r,r===-1&&(r=t.length-1),t=t[+r])}),t.push(l)}else{let{index:t,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);t===-1?r.push(l):r[t]=l}}delete(e){if(this.append)throw new Rf.DataError("Can't delete an appended data",10);let{index:l,dataForProperty:t}=this.getArrayDataAndIndexFromProperty(e);t.splice(l,1)}isValid(e){let{index:l,dataForProperty:t}=this.getArrayDataAndIndexFromProperty(e);return t.hasOwnProperty(l)}getArrayDataAndIndexFromProperty(e){let l=0,t=e instanceof Array?e:e[this.property]??e;if(this.indicies.length>0){l=+this.indicies[this.indicies.length-1];for(let r=0;r<this.indicies.length-1;r++){let i=+this.indicies[r];i===-1&&(i=t.length-1),t=t[i]}l===-1&&(l=t.length-1)}return{index:l,dataForProperty:t}}isMultiDimensional(){return this.indicies.length>1}};I2.ArrayInfo=OT;function NT(n){return!isNaN(n)&&Number(n)==n&&!isNaN(parseInt(n,10))}I2.isInt=NT;function TW(n){let e=n.filter(l=>l==="");if(e.length>1)throw Error("Only one append index is supported for nested arrays");if(e.length===1&&n[n.length-1]!=="")throw Error("Append index must be at the end of the nested array")}I2.validateArrayIndicies=TW;function SW(n){if(n.length!==0&&!NT(n))throw new Rf.DataError("Only numerical values accepted for array index",200)}I2.validateArrayIndex=SW;function IT(n){if(n.length===0)return[];if(n.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let e=n.substring(1,n.indexOf("]"));SW(e);let l=e.length+2;return[e,...IT(n.substring(l))]}I2.getArrayIndicies=IT});var wW=C(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.DBParentData=void 0;var xW=CT(),AW=k4(),kT=class{parent;data;db;dataPath;constructor(e,l,t,r){this.parent=r,this.data=e,this.db=l,this.dataPath=t}checkArray(e=!1){let l=xW.ArrayInfo.processArray(this.parent);if(l&&(!l.append||e)&&!l.isValid(this.data))throw new AW.DataError("DataPath: /"+this.dataPath+". Can't find index "+l.index+" in array "+l.property,10);return l}getData(){if(this.parent===void 0)return this.data;let e=this.checkArray();return e?e.getData(this.data):this.data[this.parent]}setData(e){if(this.parent===void 0){this.db.resetData(e);return}let l=xW.ArrayInfo.processArray(this.parent);if(l){if(!this.data.hasOwnProperty(l.property))this.data[l.property]=[];else if(!Array.isArray(this.data[l.property]))throw new AW.DataError("DataPath: /"+this.dataPath+". "+l.property+" is not an array.",11);l.setData(this.data,e)}else this.data[this.parent]=e}delete(){if(this.parent===void 0){this.db.resetData({});return}let e=this.checkArray(!0);e?e.delete(this.data):delete this.data[this.parent]}};Of.DBParentData=kT});var OW=C((QDe,RW)=>{RW.exports=function(){"use strict";function n(){this.readers=0,this.queue=[]}function e(i,s,u){var a;typeof i!="function"?(r.hasOwnProperty(i)||(r[i]=new n),a=r[i]):(u=s,s=i,a=t),u||(u={});var f=null;u.hasOwnProperty("scope")&&(f=u.scope);var c=function(){var h=!1;return function(){h||(h=!0,a.readers--,a.queue.length&&a.queue[0]())}}();if(a.readers<0||a.queue.length){var p=!1;if(a.queue.push(function(){!p&&a.readers>=0&&(p=!0,a.queue.shift(),a.readers++,s.call(f,c),a.queue.length&&a.queue[0]())}),u.hasOwnProperty("timeout")){var m=null;u.hasOwnProperty("timeoutCallback")&&(m=u.timeoutCallback),setTimeout(function(){p||(p=!0,a.queue.shift(),m&&m.call(u.scope))},u.timeout)}}else a.readers++,s.call(u.scope,c)}function l(i,s,u){var a;typeof i!="function"?(r.hasOwnProperty(i)||(r[i]=new n),a=r[i]):(u=s,s=i,a=t),u||(u={});var f=null;u.hasOwnProperty("scope")&&(f=u.scope);var c=function(){var h=!1;return function(){h||(h=!0,a.readers=0,a.queue.length&&a.queue[0]())}}();if(a.readers||a.queue.length){var p=!1;if(a.queue.push(function(){p|| Line truncated
@@ -368,9 +368,9 @@ else {`),this._emit("cb()")),this._emitLine("}")},t.compileIfAsync=function(r,i)
`))},n.random=function(h){return h[Math.floor(Math.random()*h.length)]},n.reject=i(!1),n.rejectattr=function(h,g){return h.filter(function(_){return!_[g]})},n.select=i(!0),n.selectattr=function(h,g){return h.filter(function(_){return!!_[g]})},n.replace=function(h,g,_,S){var T=h;if(g instanceof RegExp)return h.replace(g,_);S===void 0&&(S=-1);var x="";if(typeof g=="number")g=""+g;else if(typeof g!="string")return h;if(typeof(h=typeof h=="number"?""+h:h)!="string"&&!(h instanceof on.SafeString))return h;if(g==="")return x=_+h.split("").join(_)+_,on.copySafeness(h,x);var v=h.indexOf(g);if(S===0||v===-1)return h;for(var b=0,w=0;-1<v&&(S===-1||w<S);)x+=h.substring(b,v)+_,b=v+g.length,w++,v=h.indexOf(g,b);return b<h.length&&(x+=h.substring(b)),on.copySafeness(T,x)},n.reverse=function(h){var g;return(g=ke.isString(h)?r(h):ke.map(h,function(_){return _})).reverse(),ke.isString(h)?on.copySafeness(h,g.join("")):g},n.round=function(h,g,_){return g=g||0,g=Math.pow(10,g),(_==="ceil"?Math.ceil:_==="floor"?Math.floor:Math.round)(h*g)/g},n.slice=function(h,g,_){for(var S=Math.floor(h.length/g),T=h.length%g,x=[],v=0,b=0;b<g;b++){var w=v+b*S;b<T&&v++,w=h.slice(w,v+(b+1)*S),_&&T<=b&&w.push(_),x.push(w)}return x},n.sum=function(h,g,_){return(_=_===void 0?0:_)+(h=g?ke.map(h,function(S){return S[g]}):h).reduce(function(S,T){return S+T},0)},n.sort=on.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(x,g,_,S){var T=this,x=ke.map(x,function(b){return b}),v=ke.getAttrGetter(S);return x.sort(function(b,w){if(b=S?v(b):b,w=S?v(w):w,T.env.opts.throwOnUndefined&&S&&(b===void 0||w===void 0))throw new TypeError('sort: attribute "'+S+'" resolved to undefined');return!_&&ke.isString(b)&&ke.isString(w)&&(b=b.toLowerCase(),w=w.toLowerCase()),b<w?g?1:-1:w<b?g?-1:1:0}),x}),n.string=function(h){return on.copySafeness(h,h)},n.striptags=function(h,S){var _=s((h=e(h,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),S=S?_.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,`
`).replace(/\n\n\n+/g,`
`):_.replace(/\s+/gi," ");return on.copySafeness(h,S)},n.title=function(h){var g=(h=e(h,"")).split(" ").map(t);return on.copySafeness(h,g.join(" "))},n.trim=s,n.truncate=function(h,g,_,S){var T=h;return(h=e(h,"")).length<=(g=g||255)?h:(h=_?h.substring(0,g):((_=h.lastIndexOf(" ",g))===-1&&(_=g),h.substring(0,_)),on.copySafeness(T,h+=S??"..."))},n.upper=function(h){return(h=e(h,"")).toUpperCase()},n.urlencode=function(h){var g=encodeURIComponent;return ke.isString(h)?g(h):(ke.isArray(h)?h:ke._entries(h)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var u=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,f=/^https?:\/\/.*$/,c=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(n.urlize=function(h,g,_){l(g)&&(g=1/0);var S=_===!0?' rel="nofollow"':"";return h.split(/(\s+)/).filter(function(T){return T&&T.length}).map(function(T){var x=T.match(u),v=(x=x?x[1]:T).substr(0,g);return f.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":c.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":a.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":T}).join("")},n.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},n.float=function(h,g){return l(h=parseFloat(h))?g:h},on.makeMacro(["value","default","base"],[],function(h,g,_){return _===void 0&&(_=10),l(h=parseInt(h,_))?g:h}));n.int=m,n.d=n.default,n.e=n.escape}),z7={};function PB(n,e){for(var l=0,t=n.length-1;0<=t;t--){var r=n[t];r==="."?n.splice(t,1):r===".."?(n.splice(t,1),l++):l&&(n.splice(t,1),l--)}if(e)for(;l--;)n.unshift("..");return n}var Che=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,l_=function(n){return Che.exec(n).slice(1)};function t_(){for(var n="",e=!1,l=arguments.length-1;-1<=l&&!e;l--){var t=0<=l?arguments[l]:"/";if(typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");t&&(n=t+"/"+n,e=t.charAt(0)==="/")}return(e?"/":"")+PB(nE(n.split("/"),function(r){return!!r}),!e).join("/")||"."}function Ij(n){var e=DB(n),l=khe(n,-1)==="/";return(n=(n=PB(nE(n.split("/"),function(t){return!!t}),!e).join("/"))||e?n:".")&&l&&(n+="/"),(e?"/":"")+n}function DB(n){return n.charAt(0)==="/"}var Jo={extname:function(n){return l_(n)[3]},basename:function(n,e){return n=l_(n)[2],e&&n.substr(-1*e.length)===e?n.substr(0,n.length-e.length):n},dirname:function(l){var e=(l=l_(l))[0],l=l[1];return e||l?e+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(n,e){function l(f){for(var c=0;c<f.length&&f[c]==="";c++);for(var p=f.length-1;0<=p&&f[p]==="";p--);return p<c?[]:f.slice(c,p-c+1)}n=t_(n).substr(1),e=t_(e).substr(1);for(var t=l(n.split("/")),r=l(e.split("/")),i=Math.min(t.length,r.length),s=i,u=0;u<i;u++)if(t[u]!==r[u]){s=u;break}for(var a=[],u=s;u<t.length;u++)a.push("..");return(a=a.concat(r.slice(s))).join("/")},join:function(){return Ij(nE(Array.prototype.slice.call(arguments,0),function(n,e){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},isAbsolute:DB,normalize:Ij,resolve:t_};function nE(n,e){if(n.filter)return n.filter(e);for(var l=[],t=0;t<n.length;t++)e(n[t],t,n)&&l.push(n[t]);return l}var khe="ab".substr(-1)==="b"?function(n,e,l){return n.substr(e,l)}:function(n,e,l){return e<0&&(e=n.length+e),n.substr(e,l)};function LB(n,e){return(LB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l})(n,e)}var lE=function(n){var e;function l(){return n.apply(this,arguments)||this}e=n,(t=l).prototype=Object.create(e.prototype),LB(t.prototype.constructor=t,e);var t=l.prototype;return t.resolve=function(r,i){return Jo.resolve(Jo.dirname(r),i)},t.isRelative=function(r){return r.indexOf("./")===0||r.indexOf("../")===0},l}(l4.EmitterObj);function FB(n,e){return(FB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l})(n,e)}var Phe=function(n){var e,l;function t(r){var i;return(i=n.call(this)||this).precompiled=r||{},i}return l=n,(e=t).prototype=Object.create(l.prototype),FB(e.prototype.constructor=e,l),t.prototype.getSource=function(r){return this.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},t}(lE);function MB(n,e){n.prototype=Object.create(e.prototype),$B(n.prototype.constructor=n,e)}function $B(n,e){return($B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l})(n,e)}var Dhe=Phe,Lhe=function(n){function e(l,t){var r=n.call(this)||this;return typeof t=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),t=t||{},r.pathsToNames={},r.noCache=!!t.noCache,l?(l=Array.isArray(l)?l:[l],r.searchPaths=l.map(Jo.normalize)):r.searchPaths=["."],t.watch,r}return MB(e,n),e.prototype.getSource=function(l){for(var t=null,r=this.searchPaths,i=0;i<r.length;i++){var s=Jo.resoLine truncated
`):_.replace(/\s+/gi," ");return on.copySafeness(h,S)},n.title=function(h){var g=(h=e(h,"")).split(" ").map(t);return on.copySafeness(h,g.join(" "))},n.trim=s,n.truncate=function(h,g,_,S){var T=h;return(h=e(h,"")).length<=(g=g||255)?h:(h=_?h.substring(0,g):((_=h.lastIndexOf(" ",g))===-1&&(_=g),h.substring(0,_)),on.copySafeness(T,h+=S??"..."))},n.upper=function(h){return(h=e(h,"")).toUpperCase()},n.urlencode=function(h){var g=encodeURIComponent;return ke.isString(h)?g(h):(ke.isArray(h)?h:ke._entries(h)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var u=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,f=/^https?:\/\/.*$/,c=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(n.urlize=function(h,g,_){l(g)&&(g=1/0);var S=_===!0?' rel="nofollow"':"";return h.split(/(\s+)/).filter(function(T){return T&&T.length}).map(function(T){var x=T.match(u),v=(x=x?x[1]:T).substr(0,g);return f.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":c.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":a.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":T}).join("")},n.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},n.float=function(h,g){return l(h=parseFloat(h))?g:h},on.makeMacro(["value","default","base"],[],function(h,g,_){return _===void 0&&(_=10),l(h=parseInt(h,_))?g:h}));n.int=m,n.d=n.default,n.e=n.escape}),z7={};function PB(n,e){for(var l=0,t=n.length-1;0<=t;t--){var r=n[t];r==="."?n.splice(t,1):r===".."?(n.splice(t,1),l++):l&&(n.splice(t,1),l--)}if(e)for(;l--;)n.unshift("..");return n}var Che=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,l_=function(n){return Che.exec(n).slice(1)};function t_(){for(var n="",e=!1,l=arguments.length-1;-1<=l&&!e;l--){var t=0<=l?arguments[l]:"/";if(typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");t&&(n=t+"/"+n,e=t.charAt(0)==="/")}return(e?"/":"")+PB(nE(n.split("/"),function(r){return!!r}),!e).join("/")||"."}function Ij(n){var e=DB(n),l=khe(n,-1)==="/";return(n=(n=PB(nE(n.split("/"),function(t){return!!t}),!e).join("/"))||e?n:".")&&l&&(n+="/"),(e?"/":"")+n}function DB(n){return n.charAt(0)==="/"}var Jo={extname:function(n){return l_(n)[3]},basename:function(n,e){return n=l_(n)[2],e&&n.substr(-1*e.length)===e?n.substr(0,n.length-e.length):n},dirname:function(l){var e=(l=l_(l))[0],l=l[1];return e||l?e+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(n,e){function l(f){for(var c=0;c<f.length&&f[c]==="";c++);for(var p=f.length-1;0<=p&&f[p]==="";p--);return p<c?[]:f.slice(c,p-c+1)}n=t_(n).substr(1),e=t_(e).substr(1);for(var t=l(n.split("/")),r=l(e.split("/")),i=Math.min(t.length,r.length),s=i,u=0;u<i;u++)if(t[u]!==r[u]){s=u;break}for(var a=[],u=s;u<t.length;u++)a.push("..");return(a=a.concat(r.slice(s))).join("/")},join:function(){return Ij(nE(Array.prototype.slice.call(arguments,0),function(n,e){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},isAbsolute:DB,normalize:Ij,resolve:t_};function nE(n,e){if(n.filter)return n.filter(e);for(var l=[],t=0;t<n.length;t++)e(n[t],t,n)&&l.push(n[t]);return l}var khe="ab".substr(-1)==="b"?function(n,e,l){return n.substr(e,l)}:function(n,e,l){return e<0&&(e=n.length+e),n.substr(e,l)};function LB(n,e){return(LB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l})(n,e)}var lE=function(n){var e;function l(){return n.apply(this,arguments)||this}e=n,(t=l).prototype=Object.create(e.prototype),LB(t.prototype.constructor=t,e);var t=l.prototype;return t.resolve=function(r,i){return Jo.resolve(Jo.dirname(r),i)},t.isRelative=function(r){return r.indexOf("./")===0||r.indexOf("../")===0},l}(l4.EmitterObj);function FB(n,e){return(FB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l})(n,e)}var Phe=function(n){var e,l;function t(r){var i;return(i=n.call(this)||this).precompiled=r||{},i}return l=n,(e=t).prototype=Object.create(l.prototype),FB(e.prototype.constructor=e,l),t.prototype.getSource=function(r){return this.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},t}(lE);function MB(n,e){n.prototype=Object.create(e.prototype),$B(n.prototype.constructor=n,e)}function $B(n,e){return($B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l})(n,e)}var Dhe=Phe,Lhe=function(n){function e(l,t){var r=n.call(this)||this;return typeof t=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),t=t||{},r.pathsToNames={},r.noCache=!!t.noCache,l?(l=Array.isArray(l)?l:[l],r.searchPaths=l.map(Jo.normalize)):r.searchPaths=["."],t.watch,r}return MB(e,n),e.prototype.getSource=function(l){for(var t=null,r=this.searchPaths,i=0;i<r.length;i++){var s=Jo.resoLine truncated
/* [wrapped with `+D+`] */
`)):R}(A,function(R,D){return Et(m,function(B){var V="_."+B[0];D&B[1]&&!k3(R,V)&&R.push(V)}),R.sort()}(function(){var R=A.match(C2);return R?R[1].split($l):[]}(),y)))}function ex(o){var d=0,y=0;return function(){var A=XW(),R=16-(A-y);if(y=A,0<R){if(800<=++d)return arguments[0]}else d=0;return o.apply(l,arguments)}}function A6(o,d){var y=-1,A=o.length,R=A-1;for(d=d===l?A:d;++y<d;){var D=Wf(y,R),B=o[D];o[D]=o[y],o[y]=B}return o.length=d,o}var nx=function(){var o=N6(function(y){var A=[];return y.charCodeAt(0)===46&&A.push(""),y.replace(sn,function(R,D,B,V){A.push(B?V.replace(qt,"$1"):D||R)}),A},function(y){return d.size===500&&d.clear(),y}),d=o.cache;return o}();function dr(o){var d;return typeof o=="string"||Q2(o)?o:(d=o+"")=="0"&&1/o==-1/0?"-0":d}function uu(o){if(o!=null){try{return l6.call(o)}catch{}try{return o+""}catch{}}return""}function lx(o){var d;return o instanceof $n?o.clone():((d=new D3(o.__wrapped__,o.__chain__)).__actions__=k2(o.__actions__),d.__index__=o.__index__,d.__values__=o.__values__,d)}function tx(o,d,y){var A=o==null?0:o.length;return A?((y=y==null?0:vn(y))<0&&(y=Tt(A+y,0)),ur(o,nn(d,3),y)):-1}function rx(o,d,y){var A,R=o==null?0:o.length;return R?(A=R-1,y!==l&&(A=vn(y),A=y<0?Tt(R+A,0):t2(A,R-1)),ur(o,nn(d,3),A,!0)):-1}function ix(o){return o!=null&&o.length?zt(o,1):[]}function sx(o){return o&&o.length?o[0]:l}function p3(o){var d=o==null?0:o.length;return d?o[d-1]:l}function ux(o,d){return o&&o.length&&d&&d.length?Xf(o,d):o}Ff=Tn(function(o,d){return it(o)?q4(o,zt(d,1,it,!0)):[]}),cr=Tn(function(o,d){var y=p3(d);return it(y)&&(y=l),it(o)?q4(o,zt(d,1,it,!0),nn(y,2)):[]}),j4=Tn(function(o,d){var y=p3(d);return it(y)&&(y=l),it(o)?q4(o,zt(d,1,it,!0),l,y):[]}),Vn=Tn(function(o){var d=Zn(o,Zf);return d.length&&d[0]===o[0]?qf(d):[]}),Ta=Tn(function(o){var d=p3(o),y=Zn(o,Zf);return d===p3(y)?d=l:y.pop(),y.length&&y[0]===o[0]?qf(y,nn(d,2)):[]}),Mf=Tn(function(o){var d=p3(o),y=Zn(o,Zf);return(d=typeof d=="function"?d:l)&&y.pop(),y.length&&y[0]===o[0]?qf(y,l,d):[]}),r2=Tn(ux);var aK=Zr(function(o,d){var y=o==null?0:o.length,A=jf(o,d);return ES(o,Zn(d,function(R){return ei(R,y)?+R:R}).sort(IS)),A});function dp(o){return o==null?o:KW.call(o)}var oK=Tn(function(o){return Li(zt(o,1,it,!0))}),cK=Tn(function(o){var d=p3(o);return it(d)&&(d=l),Li(zt(o,1,it,!0),nn(d,2))}),fK=Tn(function(o){var d=typeof(d=p3(o))=="function"?d:l;return Li(zt(o,1,it,!0),l,d)});function hp(o){var d;return o&&o.length?(d=0,o=Dt(o,function(y){if(it(y))return d=Tt(y.length,d),!0}),Y5(d,function(y){return Zn(o,ar(y))})):[]}function ax(o,d){return o&&o.length?(o=hp(o),d==null?o:Zn(o,function(y){return Pt(d,l,y)})):[]}var pK=Tn(function(o,d){return it(o)?q4(o,d):[]}),dK=Tn(function(o){return Qf(Dt(o,it))}),hK=Tn(function(o){var d=p3(o);return it(d)&&(d=l),Qf(Dt(o,it),nn(d,2))}),mK=Tn(function(o){var d=typeof(d=p3(o))=="function"?d:l;return Qf(Dt(o,it),l,d)}),gK=Tn(hp),yK=Tn(function(o){var d=typeof(d=1<(d=o.length)?o[d-1]:l)=="function"?(o.pop(),d):l;return ax(o,d)});function ox(o){return(o=I(o)).__chain__=!0,o}function w6(o,d){return d(o)}var vK=Zr(function(o){function d(D){return jf(D,o)}var y=o.length,A=y?o[0]:0,R=this.__wrapped__;return!(1<y||this.__actions__.length)&&R instanceof $n&&ei(A)?((R=R.slice(A,+A+(y?1:0))).__actions__.push({func:w6,args:[d],thisArg:l}),new D3(R,this.__chain__).thru(function(D){return y&&!D.length&&D.push(l),D})):this.thru(d)}),_K=v6(function(o,d,y){yl.call(o,y)?++o[y]:Jr(o,y,1)}),EK=FS(tx),bK=FS(rx);function cx(o,d){return(gn(o)?Et:Di)(o,nn(d,3))}function fx(o,d){return(gn(o)?function(y,A){for(var R=y==null?0:y.length;R--&&A(y[R],R,y)!==!1;);return y}:uS)(o,nn(d,3))}var TK=v6(function(o,d,y){yl.call(o,y)?o[y].push(d):Jr(o,y,[d])}),SK=Tn(function(o,d,y){var A=-1,R=typeof d=="function",D=P2(o)?fe(o.length):[];return Di(o,function(B){D[++A]=R?Pt(d,B,y):V4(B,d,y)}),D}),xK=v6(function(o,d,y){Jr(o,y,d)});function R6(o,d){return(gn(o)?Zn:hS)(o,nn(d,3))}var AK=v6(function(o,d,y){o[y?0:1].push(d)},function(){return[[],[]]}),wK=Tn(function(o,d){var y;return o==null?[]:(1<(y=d.length)&&b2(o,d[0],d[1])?d=[]:2<y&&b2(d[0],d[1],d[2])&&(d=[d[0]]),vS(o,zt(d,1),[]))}),O6=gp||function(){return Dl.Date.now()};function px(o,d,y){return d=y?l:d,d=o&&d==null?o.length:d,Qr(o,u,l,l,l,l,d)}function dx(o,d){var y;if(typeof d!="function")throw new o3(t);return o=vn(o),function(){return 0<--o&&(y=d.apply(this,arguments)),o<=1&&(d=l),y}}var mp=Tn(function(o,d,y){var A,R=1;return y.length&&(A=Wr(y,Oa(mp)),R|=s),Qr(o,R,d,y,A)}),hx=Tn(function(o,d,y){var A,R=3;return y.length&&(A=Wr(y,Oa(hx)),R|=s),Qr(d,R,o,y,A)});function mx(o,d,y){var A,R,D,B,V,K,ae=0,oe=!1,xe=!1,Ee=!0;if(typeof o!="function")throw new o3(t);function ye(Be){var Je=A,tn=R;return A=R=l,ae=Be,B=o.apply(tn,Je)}function Se(Be){var Je=Be-K;return K===l||d<=Je||Je<0||xe&&D<=Be-ae}function We(){var Be=O6();if(Se(Be))return Oe(Be);V=K4(We,function(Je){var tn=d-(Je-K);return xe?t2(tn,D-(Je-ae)):tn}(Be))}function Oe(Be){return V=l,Ee&&A?ye(Be):(A=R=l,B)}function Ie(){var Be Line truncated
`)):R}(A,function(R,D){return Et(m,function(B){var V="_."+B[0];D&B[1]&&!k3(R,V)&&R.push(V)}),R.sort()}(function(){var R=A.match(C2);return R?R[1].split($l):[]}(),y)))}function ex(o){var d=0,y=0;return function(){var A=XW(),R=16-(A-y);if(y=A,0<R){if(800<=++d)return arguments[0]}else d=0;return o.apply(l,arguments)}}function A6(o,d){var y=-1,A=o.length,R=A-1;for(d=d===l?A:d;++y<d;){var D=Wf(y,R),B=o[D];o[D]=o[y],o[y]=B}return o.length=d,o}var nx=function(){var o=N6(function(y){var A=[];return y.charCodeAt(0)===46&&A.push(""),y.replace(sn,function(R,D,B,V){A.push(B?V.replace(qt,"$1"):D||R)}),A},function(y){return d.size===500&&d.clear(),y}),d=o.cache;return o}();function dr(o){var d;return typeof o=="string"||Q2(o)?o:(d=o+"")=="0"&&1/o==-1/0?"-0":d}function uu(o){if(o!=null){try{return l6.call(o)}catch{}try{return o+""}catch{}}return""}function lx(o){var d;return o instanceof $n?o.clone():((d=new D3(o.__wrapped__,o.__chain__)).__actions__=k2(o.__actions__),d.__index__=o.__index__,d.__values__=o.__values__,d)}function tx(o,d,y){var A=o==null?0:o.length;return A?((y=y==null?0:vn(y))<0&&(y=Tt(A+y,0)),ur(o,nn(d,3),y)):-1}function rx(o,d,y){var A,R=o==null?0:o.length;return R?(A=R-1,y!==l&&(A=vn(y),A=y<0?Tt(R+A,0):t2(A,R-1)),ur(o,nn(d,3),A,!0)):-1}function ix(o){return o!=null&&o.length?zt(o,1):[]}function sx(o){return o&&o.length?o[0]:l}function p3(o){var d=o==null?0:o.length;return d?o[d-1]:l}function ux(o,d){return o&&o.length&&d&&d.length?Xf(o,d):o}Ff=Tn(function(o,d){return st(o)?q4(o,zt(d,1,st,!0)):[]}),cr=Tn(function(o,d){var y=p3(d);return st(y)&&(y=l),st(o)?q4(o,zt(d,1,st,!0),nn(y,2)):[]}),j4=Tn(function(o,d){var y=p3(d);return st(y)&&(y=l),st(o)?q4(o,zt(d,1,st,!0),l,y):[]}),Vn=Tn(function(o){var d=Zn(o,Zf);return d.length&&d[0]===o[0]?qf(d):[]}),Ta=Tn(function(o){var d=p3(o),y=Zn(o,Zf);return d===p3(y)?d=l:y.pop(),y.length&&y[0]===o[0]?qf(y,nn(d,2)):[]}),Mf=Tn(function(o){var d=p3(o),y=Zn(o,Zf);return(d=typeof d=="function"?d:l)&&y.pop(),y.length&&y[0]===o[0]?qf(y,l,d):[]}),r2=Tn(ux);var aK=Zr(function(o,d){var y=o==null?0:o.length,A=jf(o,d);return ES(o,Zn(d,function(R){return ei(R,y)?+R:R}).sort(IS)),A});function dp(o){return o==null?o:KW.call(o)}var oK=Tn(function(o){return Li(zt(o,1,st,!0))}),cK=Tn(function(o){var d=p3(o);return st(d)&&(d=l),Li(zt(o,1,st,!0),nn(d,2))}),fK=Tn(function(o){var d=typeof(d=p3(o))=="function"?d:l;return Li(zt(o,1,st,!0),l,d)});function hp(o){var d;return o&&o.length?(d=0,o=Dt(o,function(y){if(st(y))return d=Tt(y.length,d),!0}),Y5(d,function(y){return Zn(o,ar(y))})):[]}function ax(o,d){return o&&o.length?(o=hp(o),d==null?o:Zn(o,function(y){return Pt(d,l,y)})):[]}var pK=Tn(function(o,d){return st(o)?q4(o,d):[]}),dK=Tn(function(o){return Qf(Dt(o,st))}),hK=Tn(function(o){var d=p3(o);return st(d)&&(d=l),Qf(Dt(o,st),nn(d,2))}),mK=Tn(function(o){var d=typeof(d=p3(o))=="function"?d:l;return Qf(Dt(o,st),l,d)}),gK=Tn(hp),yK=Tn(function(o){var d=typeof(d=1<(d=o.length)?o[d-1]:l)=="function"?(o.pop(),d):l;return ax(o,d)});function ox(o){return(o=I(o)).__chain__=!0,o}function w6(o,d){return d(o)}var vK=Zr(function(o){function d(D){return jf(D,o)}var y=o.length,A=y?o[0]:0,R=this.__wrapped__;return!(1<y||this.__actions__.length)&&R instanceof $n&&ei(A)?((R=R.slice(A,+A+(y?1:0))).__actions__.push({func:w6,args:[d],thisArg:l}),new D3(R,this.__chain__).thru(function(D){return y&&!D.length&&D.push(l),D})):this.thru(d)}),_K=v6(function(o,d,y){yl.call(o,y)?++o[y]:Jr(o,y,1)}),EK=FS(tx),bK=FS(rx);function cx(o,d){return(gn(o)?Et:Di)(o,nn(d,3))}function fx(o,d){return(gn(o)?function(y,A){for(var R=y==null?0:y.length;R--&&A(y[R],R,y)!==!1;);return y}:uS)(o,nn(d,3))}var TK=v6(function(o,d,y){yl.call(o,y)?o[y].push(d):Jr(o,y,[d])}),SK=Tn(function(o,d,y){var A=-1,R=typeof d=="function",D=P2(o)?fe(o.length):[];return Di(o,function(B){D[++A]=R?Pt(d,B,y):V4(B,d,y)}),D}),xK=v6(function(o,d,y){Jr(o,y,d)});function R6(o,d){return(gn(o)?Zn:hS)(o,nn(d,3))}var AK=v6(function(o,d,y){o[y?0:1].push(d)},function(){return[[],[]]}),wK=Tn(function(o,d){var y;return o==null?[]:(1<(y=d.length)&&b2(o,d[0],d[1])?d=[]:2<y&&b2(d[0],d[1],d[2])&&(d=[d[0]]),vS(o,zt(d,1),[]))}),O6=gp||function(){return Dl.Date.now()};function px(o,d,y){return d=y?l:d,d=o&&d==null?o.length:d,Qr(o,u,l,l,l,l,d)}function dx(o,d){var y;if(typeof d!="function")throw new o3(t);return o=vn(o),function(){return 0<--o&&(y=d.apply(this,arguments)),o<=1&&(d=l),y}}var mp=Tn(function(o,d,y){var A,R=1;return y.length&&(A=Wr(y,Oa(mp)),R|=s),Qr(o,R,d,y,A)}),hx=Tn(function(o,d,y){var A,R=3;return y.length&&(A=Wr(y,Oa(hx)),R|=s),Qr(d,R,o,y,A)});function mx(o,d,y){var A,R,D,B,V,K,ae=0,oe=!1,xe=!1,Ee=!0;if(typeof o!="function")throw new o3(t);function ye(Be){var Je=A,tn=R;return A=R=l,ae=Be,B=o.apply(tn,Je)}function Se(Be){var Je=Be-K;return K===l||d<=Je||Je<0||xe&&D<=Be-ae}function We(){var Be=O6();if(Se(Be))return Oe(Be);V=K4(We,function(Je){var tn=d-(Je-K);return xe?t2(tn,D-(Je-ae)):tn}(Be))}function Oe(Be){return V=l,Ee&&A?ye(Be):(A=R=l,B)}function Ie(){var Be Line truncated
`;if(o.replace(oe,function(Ee,ye,Se,We,Oe,Ie){return Se=Se||We,ae+=o.slice(V,Ie).replace(mt,zT),ye&&(A=!0,ae+=`' +
__e(`+ye+`) +
'`),Oe&&(R=!0,ae+=`';
@@ -387,9 +387,9 @@ __p += '`),Se&&(ae+=`' +
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ae+`return __p
}`,(oe=kx(function(){return mn(D,xe+"return "+ae).apply(l,B)})).source=ae,_p(oe))throw oe;return oe},I.times=function(o,d){if((o=vn(o))<1||f<o)return[];var y=p,A=t2(o,p);for(d=nn(d),o-=p,A=Y5(A,d);++y<o;)d(y);return A},I.toFinite=li,I.toInteger=vn,I.toLength=Tx,I.toLower=function(o){return il(o).toLowerCase()},I.toNumber=h3,I.toSafeInteger=function(o){return o?ru(vn(o),-9007199254740991,f):o===0?o:0},I.toString=il,I.toUpper=function(o){return il(o).toUpperCase()},I.trim=function(o,d,y){return(o=il(o))&&(y||d===l)?Xr(o):o&&(d=J2(d))?Mi(y=P3(o),J5(y,d=P3(d)),Q5(y,d)+1).join(""):o},I.trimEnd=function(o,d,y){return(o=il(o))&&(y||d===l)?o.slice(0,GT(o)+1):o&&(d=J2(d))?Mi(y=P3(o),0,Q5(y,P3(d))+1).join(""):o},I.trimStart=function(o,d,y){return(o=il(o))&&(y||d===l)?o.replace(Wl,""):o&&(d=J2(d))?Mi(y=P3(o),J5(y,P3(d))).join(""):o},I.truncate=function(o,R){var y,B=30,A="...",R=(ql(R)&&(y="separator"in R?R.separator:y,B="length"in R?vn(R.length):B,A="omission"in R?J2(R.omission):A),(o=il(o)).length);if((R=Zs(o)?(D=P3(o)).length:R)<=B)return o;if((R=B-_a(A))<1)return A;var D,B=D?Mi(D,0,R).join(""):o.slice(0,R);if(y!==l)if(D&&(R+=B.length-R),Ep(y)){if(o.slice(R).search(y)){var V,K=B;for((y=y.global?y:eu(y.source,il(i3.exec(y))+"g")).lastIndex=0;V=y.exec(K);)var ae=V.index;B=B.slice(0,ae===l?R:ae)}}else o.indexOf(J2(y),R)!=R&&-1<(D=B.lastIndexOf(y))&&(B=B.slice(0,D));return B+A},I.unescape=function(o){return(o=il(o))&&bl.test(o)?o.replace(Ke,jW):o},I.uniqueId=function(o){var d=++BW;return il(o)+d},I.upperCase=JK,I.upperFirst=Sp,I.each=cx,I.eachRight=fx,I.first=sx,wp(I,(Ip={},fr(I,function(o,d){yl.call(I.prototype,d)||(Ip[d]=o)}),Ip),{chain:!1}),I.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),Et(["drop","take"],function(o,d){$n.prototype[o]=function(y){y=y===l?1:Tt(vn(y),0);var A=this.__filtered__&&!d?new $n(this):this.clone();return A.__filtered__?A.__takeCount__=t2(y,A.__takeCount__):A.__views__.push({size:t2(y,p),type:o+(A.__dir__<0?"Right":"")}),A},$n.prototype[o+"Right"]=function(y){return this.reverse()[o](y).reverse()}}),Et(["filter","map","takeWhile"],function(o,d){var y=d+1,A=y==1||y==3;$n.prototype[o]=function(R){var D=this.clone();return D.__iteratees__.push({iteratee:nn(R,3),type:y}),D.__filtered__=D.__filtered__||A,D}}),Et(["head","last"],function(o,d){var y="take"+(d?"Right":"");$n.prototype[o]=function(){return this[y](1).value()[0]}}),Et(["initial","tail"],function(o,d){var y="drop"+(d?"":"Right");$n.prototype[o]=function(){return this.__filtered__?new $n(this):this[y](1)}}),$n.prototype.compact=function(){return this.filter(L2)},$n.prototype.find=function(o){return this.filter(o).head()},$n.prototype.findLast=function(o){return this.reverse().find(o)},$n.prototype.invokeMap=Tn(function(o,d){return typeof o=="function"?new $n(this):this.map(function(y){return V4(y,o,d)})}),$n.prototype.reject=function(o){return this.filter(I6(nn(o)))},$n.prototype.slice=function(o,d){o=vn(o);var y=this;return y.__filtered__&&(0<o||d<0)?new $n(y):(o<0?y=y.takeRight(-o):o&&(y=y.drop(o)),d!==l?(d=vn(d))<0?y.dropRight(-d):y.take(d-o):y)},$n.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$n.prototype.toArray=function(){return this.take(p)},fr($n.prototype,function(o,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),A=/^(?:head|last)$/.test(d),R=I[A?"take"+(d=="last"?"Right":""):d],D=A||/^find/.test(d);R&&(I.prototype[d]=function(){function B(We){return We=R.apply(I,sr([We],ae)),A&&xe?We[0]:We}var V,K=this.__wrapped__,ae=A?[1]:arguments,Se=K instanceof $n,Ee=ae[0],oe=Se||gn(K),xe=(oe&&y&&typeof Ee=="function"&&Ee.length!=1&&(Se=oe=!1),this.__chain__),Ee=!!this.__actions__.length,ye=D&&!xe,Se=Se&&!Ee;return!D&&oe?(K=Se?K:new $n(this),(V=o.apply(K,ae)).__actions__.push({func:w6,args:[B],thisArg:l}),new D3(V,xe)):ye&&Se?o.apply(this,ae):(V=this.thru(B),ye?A?V.value()[0]:V.value():V)})}),Et(["pop","push","shift","sort","splice","unshift"],function(o){var d=n6[o],y=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",A=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var R,D=arguments;return A&&!this.__chain__?(R=this.value(),d.apply(gn(R)?R:[],D)):this[y](function(B){return d.apply(gn(B)?B:[],D)})}}),fr($n.prototype,function(o,d){var y,A=I[d];A&&(y=A.name+"",yl.call(xa,y)||(xa[y]=[]),xa[y].push({name:d,func:A}))}),xa[_6(l,2).name]=[{name:"wrapper",func:l}],$n.prototype.clone=function(){var o=new $n(this.__wrapped__);return o.__actions__=k2(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=k2(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=k2(this.__views__),o},$n.prototype.reverse=function(){var o;return this.__filtered__?((o=new $n(this)).__dir__=-1,o.__filtered__=!0):(o=this.clone()).__dir__*=-1,o},$n.prototype.value=function(){var o=this.__wrapped__.value(),d=this.__dir__,y=gn(o),A=d<0,R=y?o.length:0,D=function(Be,Je,tn){for(var jl=-1,Zl=tn.length;++jl<Zl;){var g Line truncated
}`,(oe=kx(function(){return mn(D,xe+"return "+ae).apply(l,B)})).source=ae,_p(oe))throw oe;return oe},I.times=function(o,d){if((o=vn(o))<1||f<o)return[];var y=p,A=t2(o,p);for(d=nn(d),o-=p,A=Y5(A,d);++y<o;)d(y);return A},I.toFinite=li,I.toInteger=vn,I.toLength=Tx,I.toLower=function(o){return il(o).toLowerCase()},I.toNumber=h3,I.toSafeInteger=function(o){return o?ru(vn(o),-9007199254740991,f):o===0?o:0},I.toString=il,I.toUpper=function(o){return il(o).toUpperCase()},I.trim=function(o,d,y){return(o=il(o))&&(y||d===l)?Xr(o):o&&(d=J2(d))?Mi(y=P3(o),J5(y,d=P3(d)),Q5(y,d)+1).join(""):o},I.trimEnd=function(o,d,y){return(o=il(o))&&(y||d===l)?o.slice(0,GT(o)+1):o&&(d=J2(d))?Mi(y=P3(o),0,Q5(y,P3(d))+1).join(""):o},I.trimStart=function(o,d,y){return(o=il(o))&&(y||d===l)?o.replace(Wl,""):o&&(d=J2(d))?Mi(y=P3(o),J5(y,P3(d))).join(""):o},I.truncate=function(o,R){var y,B=30,A="...",R=(ql(R)&&(y="separator"in R?R.separator:y,B="length"in R?vn(R.length):B,A="omission"in R?J2(R.omission):A),(o=il(o)).length);if((R=Zs(o)?(D=P3(o)).length:R)<=B)return o;if((R=B-_a(A))<1)return A;var D,B=D?Mi(D,0,R).join(""):o.slice(0,R);if(y!==l)if(D&&(R+=B.length-R),Ep(y)){if(o.slice(R).search(y)){var V,K=B;for((y=y.global?y:eu(y.source,il(i3.exec(y))+"g")).lastIndex=0;V=y.exec(K);)var ae=V.index;B=B.slice(0,ae===l?R:ae)}}else o.indexOf(J2(y),R)!=R&&-1<(D=B.lastIndexOf(y))&&(B=B.slice(0,D));return B+A},I.unescape=function(o){return(o=il(o))&&bl.test(o)?o.replace(Ke,jW):o},I.uniqueId=function(o){var d=++BW;return il(o)+d},I.upperCase=JK,I.upperFirst=Sp,I.each=cx,I.eachRight=fx,I.first=sx,wp(I,(Ip={},fr(I,function(o,d){yl.call(I.prototype,d)||(Ip[d]=o)}),Ip),{chain:!1}),I.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),Et(["drop","take"],function(o,d){$n.prototype[o]=function(y){y=y===l?1:Tt(vn(y),0);var A=this.__filtered__&&!d?new $n(this):this.clone();return A.__filtered__?A.__takeCount__=t2(y,A.__takeCount__):A.__views__.push({size:t2(y,p),type:o+(A.__dir__<0?"Right":"")}),A},$n.prototype[o+"Right"]=function(y){return this.reverse()[o](y).reverse()}}),Et(["filter","map","takeWhile"],function(o,d){var y=d+1,A=y==1||y==3;$n.prototype[o]=function(R){var D=this.clone();return D.__iteratees__.push({iteratee:nn(R,3),type:y}),D.__filtered__=D.__filtered__||A,D}}),Et(["head","last"],function(o,d){var y="take"+(d?"Right":"");$n.prototype[o]=function(){return this[y](1).value()[0]}}),Et(["initial","tail"],function(o,d){var y="drop"+(d?"":"Right");$n.prototype[o]=function(){return this.__filtered__?new $n(this):this[y](1)}}),$n.prototype.compact=function(){return this.filter(L2)},$n.prototype.find=function(o){return this.filter(o).head()},$n.prototype.findLast=function(o){return this.reverse().find(o)},$n.prototype.invokeMap=Tn(function(o,d){return typeof o=="function"?new $n(this):this.map(function(y){return V4(y,o,d)})}),$n.prototype.reject=function(o){return this.filter(I6(nn(o)))},$n.prototype.slice=function(o,d){o=vn(o);var y=this;return y.__filtered__&&(0<o||d<0)?new $n(y):(o<0?y=y.takeRight(-o):o&&(y=y.drop(o)),d!==l?(d=vn(d))<0?y.dropRight(-d):y.take(d-o):y)},$n.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$n.prototype.toArray=function(){return this.take(p)},fr($n.prototype,function(o,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),A=/^(?:head|last)$/.test(d),R=I[A?"take"+(d=="last"?"Right":""):d],D=A||/^find/.test(d);R&&(I.prototype[d]=function(){function B(We){return We=R.apply(I,sr([We],ae)),A&&xe?We[0]:We}var V,K=this.__wrapped__,ae=A?[1]:arguments,Se=K instanceof $n,Ee=ae[0],oe=Se||gn(K),xe=(oe&&y&&typeof Ee=="function"&&Ee.length!=1&&(Se=oe=!1),this.__chain__),Ee=!!this.__actions__.length,ye=D&&!xe,Se=Se&&!Ee;return!D&&oe?(K=Se?K:new $n(this),(V=o.apply(K,ae)).__actions__.push({func:w6,args:[B],thisArg:l}),new D3(V,xe)):ye&&Se?o.apply(this,ae):(V=this.thru(B),ye?A?V.value()[0]:V.value():V)})}),Et(["pop","push","shift","sort","splice","unshift"],function(o){var d=n6[o],y=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",A=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var R,D=arguments;return A&&!this.__chain__?(R=this.value(),d.apply(gn(R)?R:[],D)):this[y](function(B){return d.apply(gn(B)?B:[],D)})}}),fr($n.prototype,function(o,d){var y,A=I[d];A&&(y=A.name+"",yl.call(xa,y)||(xa[y]=[]),xa[y].push({name:d,func:A}))}),xa[_6(l,2).name]=[{name:"wrapper",func:l}],$n.prototype.clone=function(){var o=new $n(this.__wrapped__);return o.__actions__=k2(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=k2(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=k2(this.__views__),o},$n.prototype.reverse=function(){var o;return this.__filtered__?((o=new $n(this)).__dir__=-1,o.__filtered__=!0):(o=this.clone()).__dir__*=-1,o},$n.prototype.value=function(){var o=this.__wrapped__.value(),d=this.__dir__,y=gn(o),A=d<0,R=y?o.length:0,D=function(Be,Je,tn){for(var jl=-1,Zl=tn.length;++jl<Zl;){var g Line truncated
`)){let a=u.trim();if(a)if(a.startsWith("#")){if(a.startsWith("#EXT")){let f=ome(a,i);f&&s.push(f)}}else s.push(a)}return s.length!==0&&s[0].name==="EXTM3U"||Le("The EXTM3U tag MUST be the first line."),s}(n,e),t=cme(l,e);return t.source=n,t}var fme=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],pme=["#EXT-X-MEDIA"],_E=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let l of e)if(l.startsWith("#"))if(fme.some(t=>l.startsWith(t)))super.push(l);else{if(this.includes(l)){if(pme.some(t=>l.startsWith(t)))continue;Le(`Redundant item (${l})`)}super.push(l)}else super.push(l);return this.length}};function SE(n,e){let l=1e3;e&&(l=Math.pow(10,e));let t=Math.round(n*l)/l;return e?t.toFixed(e):t}function dme(n){let e=[`DATA-ID="${n.id}"`];return n.language&&e.push(`LANGUAGE="${n.language}"`),n.value?e.push(`VALUE="${n.value}"`):n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function fH(n,e){let l=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",t=[`METHOD=${n.method}`];return n.uri&&t.push(`URI="${n.uri}"`),n.iv&&(n.iv.length!==16&&Le("IV must be a 128-bit unsigned integer"),t.push(`IV=${aH(n.iv)}`)),n.format&&t.push(`KEYFORMAT="${n.format}"`),n.formatVersion&&t.push(`KEYFORMATVERSIONS="${n.formatVersion}"`),`${l}:${t.join(",")}`}function hme(n,e){let l=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",t=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&t.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&t.push(`URI="${e.uri}"`),e.codecs&&t.push(`CODECS="${e.codecs}"`),e.resolution&&t.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&t.push(`FRAME-RATE=${SE(e.frameRate,3)}`),e.hdcpLevel&&t.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){t.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)n.push(Sc(r))}if(e.video.length>0){t.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)n.push(Sc(r))}if(e.subtitles.length>0){t.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)n.push(Sc(r))}if(eme().allowClosedCaptionsNone&&e.closedCaptions.length===0)t.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){t.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)n.push(Sc(r))}if(e.score&&t.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);t.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&t.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&t.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&t.push(`PROGRAM-ID=${e.programId}`),n.push(`${l}:${t.join(",")}`),e.isIFrameOnly||n.push(`${e.uri}`)}function Sc(n){let e=[`TYPE=${n.type}`,`GROUP-ID="${n.groupId}"`,`NAME="${n.name}"`];return n.isDefault!==void 0&&e.push("DEFAULT="+(n.isDefault?"YES":"NO")),n.autoselect!==void 0&&e.push("AUTOSELECT="+(n.autoselect?"YES":"NO")),n.forced!==void 0&&e.push("FORCED="+(n.forced?"YES":"NO")),n.language&&e.push(`LANGUAGE="${n.language}"`),n.assocLanguage&&e.push(`ASSOC-LANGUAGE="${n.assocLanguage}"`),n.instreamId&&e.push(`INSTREAM-ID="${n.instreamId}"`),n.characteristics&&e.push(`CHARACTERISTICS="${n.characteristics}"`),n.channels&&e.push(`CHANNELS="${n.channels}"`),n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function mme(n,e,l,t,r=1,i=null){let s=!1,u="";if(e.discontinuity&&n.push("#EXT-X-DISCONTINUITY"),e.key){let f=fH(e.key);f!==l&&(n.push(f),l=f)}if(e.map){let f=function(c){let p=[`URI="${c.uri}"`];return c.byterange&&p.push(`BYTERANGE="${mE(c.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);f!==t&&(n.push(f),t=f)}if(e.programDateTime&&n.push(`#EXT-X-PROGRAM-DATE-TIME:${hE(e.programDateTime)}`),e.dateRange&&n.push(function(f){let c=[`ID="${f.id}"`];f.start&&c.push(`START-DATE="${hE(f.start)}"`),f.end&&c.push(`END-DATE="${hE(f.end)}"`),f.duration&&c.push(`DURATION=${f.duration}`),f.plannedDuration&&c.push(`PLANNED-DURATION=${f.plannedDuration}`),f.classId&&c.push(`CLASS="${f.classId}"`),f.endOnNext&&c.push("END-ON-NEXT=YES");for(let p of Object.keys(f.attributes))p.startsWith("X-")?typeof f.attributes[p]=="number"?c.push(`${p}=${f.attributes[p]}`):c.push(`${p}="${f.attributes[p]}"`):p.startsWith("SCTE35-")&&c.push(`${p}=${aH(f.attributes[p])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(u=function(f,c){let p="";for(let m of c)if(m.type==="OUT")p="OUT",f.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")p="IN",f.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let h=m.value?`:${m.value}`:"";f.push(`#${m.tagName}${h}`)}return p}(n,e.markers)),e.parts.length>0&&(s=function(f,c){let p=!1;for(let m of c)if(m.hint){let h=[];if(h.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:g,length:_}=m.byterange;h.push(`BYTERANGE-START=${g}`),_&&h.push(`BYTERANGE-LENGTH=${_}`)}f.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),p=!0}else{let h=[];h.push( Line truncated
`)}var dH="hls_cache",Mc=[],ea={},h5={},Zu={},Fc="";function gme(n,e){if(Mc.push(n),ea[n]=e,Mc.length>5){let l=Mc.shift();yme(l)}}function yme(n){delete ea[n],delete Mc[n],new JSFile(dH+"/"+n).delete()}function vme(n,e){if(e.variants)for(let l of e.variants)l.uri.startsWith("http")||(l.uri=xE(n,l.uri));if(e.segments)for(let l of e.segments)l.uri.startsWith("http")||(l.uri=xE(n,l.uri)),l.key&&l.key.uri&&!l.key.uri.startsWith("http")&&(l.key.uri=xE(n,l.key.uri));return e}async function hH(n,e){let l=md5X(n);if(ea[l])return ea[l];let t={},r=n;for(;t=await req(r,{headers:e,redirect:0}),t.headers.location;)r=t.headers.location;if(t.code==200){var i=t.content;let s=vme(r,cH(i));return gme(l,{code:t.code,plist:s,key:l,headers:t.headers}),ea[l]}return{}}async function mH(n,e,l){if(!ea[n])return{};let r=ea[n].plist.segments,i=!Zu[n];if(i){Zu[n]={};for(let c of r){let p=md5X(c.uri+c.mediaSequenceNumber.toString());Zu[n][p]={file:dH+"/"+n+"/"+p,uri:c.uri,key:p,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Zu[n]){let p=Zu[n][c];p.index>=e?p.order=p.index-e:p.order=r.length-e+p.index}i&&_me(n,5,l);let s=r[e],u=md5X(s.uri+s.mediaSequenceNumber.toString()),a=Zu[n][u];if(a.state==1||a.state==-1){let c=new JSFile(a.file);if(await c.exist())return a.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};a.state=-1}if(a.state==-1&&gH(n,a,l),a.state==0){var f=new JSProxyStream;f.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return a.read=!0,new Promise(async function(p,m){let h=new JSFile(a.file+".dl");await h.open("r"),async function g(){let _=await h.size();if(_>c){var S=await h.read(_-c,c);await f.write(S),c=_}if(a.state==1||a.state<0){f.done(),await h.close(),await h.delete(),a.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:f}}}async function gH(n,e,l){if(e.state>=0||!h5[n])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let t=new JSFile(e.file+".dl");await t.open("w");let r=await req(e.uri,{buffer:3,headers:l,stream:t,timeout:[5e3,1e4]});if(r.error||r.code>=300){await t.close(),e.read||await t.delete(),e.state=-1;return}await t.close(),e.read?await t.copy(e.file):await t.move(e.file),e.state=1}async function _me(n,e,l){Fc&&Fc!=n&&delete h5[Fc],Fc=n,h5[n]=!0;for(let t=0;t<e&&h5[n];t++)new Promise(function(r,i){(async function s(){if(!h5[n]){r();return}let u=de.pickBy(Zu[n],function(f){return f.state==-1}),a=de.minBy(Object.values(u),function(f){return f.order});if(!a){r();return}await gH(n,a,l),setTimeout(s,5)})()})}function xE(n,e){var l=n.split("/"),t=e.split("/");l.pop();for(var r=0;r<t.length;r++)t[r]!="."&&(t[r]==".."?l.pop():l.push(t[r]));return l.join("/")}function yH(n){let e=[];return Array.from(n.danmuku).forEach(l=>{let t=Number(l[0]),r=l[4];e.push(`<d p="${t},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var $c=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new A3(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Lr,Referer:this.siteUrl+"/"}}async reconnnect(e,l,t,r,i,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Z3(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,l,t,r,i,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,l,t,r,i,s,u){return u.headers.location!==void 0?r?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${u.headers.location}`),u.headers.location):this.fetch(u.headers.location,l,t,r,i,s):u.content.length>0?(this.reconnectTimes=0,i?{cookie:u.headers["set-cookie"],content:u.content}:u.content):s===1?(this.reconnectTimes=0,u.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(u)}`),await this.reconnnect(e,l,t,r,i,s))}async fetch(e,l,t,r=!1,i=!1,s=0){let u=_c(l),a=e;de.isEmpty(u)||(a=e+"?"+u);let f=new i5(a),c;return c=await req(f.toString(),{method:"get",headers:t,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?await this.getResponse(e,l,t,r,i,s,c):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${f},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),await this.reconnnect(e,l,t,r,i,s))}async getHtml(e=this.siteUrl,l=this.getHeader()){let t=await this.fetch(e,null,l);if(de.isEmpty(t))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return pt(t)}asynLine truncated
`)}var dH="hls_cache",Mc=[],ea={},h5={},Zu={},Fc="";function gme(n,e){if(Mc.push(n),ea[n]=e,Mc.length>5){let l=Mc.shift();yme(l)}}function yme(n){delete ea[n],delete Mc[n],new JSFile(dH+"/"+n).delete()}function vme(n,e){if(e.variants)for(let l of e.variants)l.uri.startsWith("http")||(l.uri=xE(n,l.uri));if(e.segments)for(let l of e.segments)l.uri.startsWith("http")||(l.uri=xE(n,l.uri)),l.key&&l.key.uri&&!l.key.uri.startsWith("http")&&(l.key.uri=xE(n,l.key.uri));return e}async function hH(n,e){let l=md5X(n);if(ea[l])return ea[l];let t={},r=n;for(;t=await req(r,{headers:e,redirect:0}),t.headers.location;)r=t.headers.location;if(t.code==200){var i=t.content;let s=vme(r,cH(i));return gme(l,{code:t.code,plist:s,key:l,headers:t.headers}),ea[l]}return{}}async function mH(n,e,l){if(!ea[n])return{};let r=ea[n].plist.segments,i=!Zu[n];if(i){Zu[n]={};for(let c of r){let p=md5X(c.uri+c.mediaSequenceNumber.toString());Zu[n][p]={file:dH+"/"+n+"/"+p,uri:c.uri,key:p,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Zu[n]){let p=Zu[n][c];p.index>=e?p.order=p.index-e:p.order=r.length-e+p.index}i&&_me(n,5,l);let s=r[e],u=md5X(s.uri+s.mediaSequenceNumber.toString()),a=Zu[n][u];if(a.state==1||a.state==-1){let c=new JSFile(a.file);if(await c.exist())return a.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};a.state=-1}if(a.state==-1&&gH(n,a,l),a.state==0){var f=new JSProxyStream;f.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return a.read=!0,new Promise(async function(p,m){let h=new JSFile(a.file+".dl");await h.open("r"),async function g(){let _=await h.size();if(_>c){var S=await h.read(_-c,c);await f.write(S),c=_}if(a.state==1||a.state<0){f.done(),await h.close(),await h.delete(),a.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:f}}}async function gH(n,e,l){if(e.state>=0||!h5[n])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let t=new JSFile(e.file+".dl");await t.open("w");let r=await req(e.uri,{buffer:3,headers:l,stream:t,timeout:[5e3,1e4]});if(r.error||r.code>=300){await t.close(),e.read||await t.delete(),e.state=-1;return}await t.close(),e.read?await t.copy(e.file):await t.move(e.file),e.state=1}async function _me(n,e,l){Fc&&Fc!=n&&delete h5[Fc],Fc=n,h5[n]=!0;for(let t=0;t<e&&h5[n];t++)new Promise(function(r,i){(async function s(){if(!h5[n]){r();return}let u=de.pickBy(Zu[n],function(f){return f.state==-1}),a=de.minBy(Object.values(u),function(f){return f.order});if(!a){r();return}await gH(n,a,l),setTimeout(s,5)})()})}function xE(n,e){var l=n.split("/"),t=e.split("/");l.pop();for(var r=0;r<t.length;r++)t[r]!="."&&(t[r]==".."?l.pop():l.push(t[r]));return l.join("/")}function yH(n){let e=[];return Array.from(n.danmuku).forEach(l=>{let t=Number(l[0]),r=l[4];e.push(`<d p="${t},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var $c=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new A3(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Lr,Referer:this.siteUrl+"/"}}async reconnnect(e,l,t,r,i,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Z3(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,l,t,r,i,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,l,t,r,i,s,u){return u.headers.location!==void 0?r?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${u.headers.location}`),u.headers.location):this.fetch(u.headers.location,l,t,r,i,s):u.content.length>0?(this.reconnectTimes=0,i?{cookie:u.headers["set-cookie"],content:u.content}:u.content):s===1?(this.reconnectTimes=0,u.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(u)}`),await this.reconnnect(e,l,t,r,i,s))}async fetch(e,l,t,r=!1,i=!1,s=0){let u=_c(l),a=e;de.isEmpty(u)||(a=e+"?"+u);let f=new i5(a),c;return c=await req(f.toString(),{method:"get",headers:t,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?await this.getResponse(e,l,t,r,i,s,c):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${f},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),await this.reconnnect(e,l,t,r,i,s))}async getHtml(e=this.siteUrl,l=this.getHeader()){let t=await this.fetch(e,null,l);if(de.isEmpty(t))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return dt(t)}asynLine truncated
`).forEach(function(s){r=s.indexOf(":"),l=s.substring(0,r).trim().toLowerCase(),t=s.substring(r+1).trim(),!(!l||e[l]&&f_e[l])&&(l==="set-cookie"?e[l]?e[l].push(t):e[l]=[t]:e[l]=e[l]?e[l]+", "+t:t)}),e};var $z=Symbol("internals");function C5(n){return n&&String(n).trim().toLowerCase()}function yf(n){return n===!1||n==null?n:X.isArray(n)?n.map(yf):String(n)}function p_e(n){let e=Object.create(null),l=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=l.exec(n);)e[t[1]]=t[2];return e}var d_e=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Tb(n,e,l,t,r){if(X.isFunction(t))return t.call(this,e,l);if(r&&(e=l),!!X.isString(e)){if(X.isString(t))return e.indexOf(t)!==-1;if(X.isRegExp(t))return t.test(e)}}function h_e(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,l,t)=>l.toUpperCase()+t)}function m_e(n,e){let l=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+l,{value:function(r,i,s){return this[t].call(this,e,r,i,s)},configurable:!0})})}var w4=class{constructor(e){e&&this.set(e)}set(e,l,t){let r=this;function i(u,a,f){let c=C5(a);if(!c)throw new Error("header name must be a non-empty string");let p=X.findKey(r,c);(!p||r[p]===void 0||f===!0||f===void 0&&r[p]!==!1)&&(r[p||a]=yf(u))}let s=(u,a)=>X.forEach(u,(f,c)=>i(f,c,a));return X.isPlainObject(e)||e instanceof this.constructor?s(e,l):X.isString(e)&&(e=e.trim())&&!d_e(e)?s(Mz(e),l):e!=null&&i(l,e,t),this}get(e,l){if(e=C5(e),e){let t=X.findKey(this,e);if(t){let r=this[t];if(!l)return r;if(l===!0)return p_e(r);if(X.isFunction(l))return l.call(this,r,t);if(X.isRegExp(l))return l.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,l){if(e=C5(e),e){let t=X.findKey(this,e);return!!(t&&this[t]!==void 0&&(!l||Tb(this,this[t],t,l)))}return!1}delete(e,l){let t=this,r=!1;function i(s){if(s=C5(s),s){let u=X.findKey(t,s);u&&(!l||Tb(t,t[u],u,l))&&(delete t[u],r=!0)}}return X.isArray(e)?e.forEach(i):i(e),r}clear(e){let l=Object.keys(this),t=l.length,r=!1;for(;t--;){let i=l[t];(!e||Tb(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let l=this,t={};return X.forEach(this,(r,i)=>{let s=X.findKey(t,i);if(s){l[s]=yf(r),delete l[i];return}let u=e?h_e(i):String(i).trim();u!==i&&delete l[i],l[u]=yf(r),t[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let l=Object.create(null);return X.forEach(this,(t,r)=>{t!=null&&t!==!1&&(l[r]=e&&X.isArray(t)?t.join(", "):t)}),l}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,l])=>e+": "+l).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...l){let t=new this(e);return l.forEach(r=>t.set(r)),t}static accessor(e){let t=(this[$z]=this[$z]={accessors:{}}).accessors,r=this.prototype;function i(s){let u=C5(s);t[u]||(m_e(r,s),t[u]=!0)}return X.isArray(e)?e.forEach(i):i(e),this}};w4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(w4.prototype,({value:n},e)=>{let l=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(t){this[l]=t}}});X.freezeMethods(w4);var It=w4;function k5(n,e){let l=this||A4,t=e||l,r=It.from(t.headers),i=t.data;return X.forEach(n,function(u){i=u.call(l,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function P5(n){return!!(n&&n.__CANCEL__)}function jz(n,e,l){Fe.call(this,n??"canceled",Fe.ERR_CANCELED,e,l),this.name="CanceledError"}X.inherits(jz,Fe,{__CANCEL__:!0});var nr=jz;function As(n,e,l){let t=l.config.validateStatus;!l.status||!t||t(l.status)?n(l):e(new Fe("Request failed with status code "+l.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(l.status/100)-4],l.config,l.request,l))}function Sb(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function xb(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function aa(n,e){return n&&!Sb(e)?xb(n,e):e}var aG=St(Bz(),1),oG=St(require("http"),1),cG=St(require("https"),1),fG=St(require("util"),1),pG=St(Wz(),1),Ni=St(require("zlib"),1);var ca="1.6.7";function j5(n){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}var k_e=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Mb(n,e,l){let t=l&&l.Blob||Nt.classes.Blob,r=j5(n);if(e===void 0&&t&&(e=!0),r==="data"){n=r.length?n.slice(r.length+1):n;let i=k_e.exec(n);if(!i)throw new Fe("Invalid URL",Fe.ERR_INVALID_URL);let s=i[1],u=i[2],a=i[3],f=Buffer.from(decodeURIComponent(a),u?"base64":"utf8");if(e){if(!t)throw new Fe("Blob is not supported",Fe.ERR_NOT_SUPPORT);return new t([f],{type:s})}return f}throw new Fe("Unsupported protocol "+r,Fe.ERR_NOT_SUPPORT)}var fa=St(require("stream"),1);var Yz=St(require("stream"),1);function P_e(n,e){let l=0,t=1e3/e,r=null;return function(s,u){let a=Date.now();if(s||a-l>t)return r&&(clearTimeout(r),r=null),l=a,n.apply(null,u);r||(r=setTimeout(()=>(r=null,l=Date.now(),n.apply(null,u)),t-(a-l)))}}var Kz=P_e;function D_e(n,e){n=n||10;let l=new Array(n),t=new Array(n),r=0,i=0,s;return e=e!==void 0?e:1e3,function(a){let f=Date.now(),c=t[i];s||(s=f),l[r]=a,t[r]=f;let p=i,m=0;for(;p!==r;)m+=l[p++],p=p%n;if(r=(r+1)%n,r===i&&(i=(i+1)%n),f-s<e)return;let h=c&&f-c;return h?Math.round(m*1e3/h):void 0}}var vf=D_e;var _f=Symbol("internals"),$b=class extends Yz.default.Transform{constructor(e){e=X.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(u,a)=>!X.isUndefined(a[u])),super({readableHighWaterMark:e.chunkSize});let l=this,t=this[_f]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},r=vf(t.ticksRate*e.samplesCount,t.timeWindow);this.on("newListener",u=>{u==="progress"&&(t.isCaptured||(t.isCaptured=!0))});let i=0;t.updateProgress=Kz(function(){let a=t.length,f=t.bytesSeen,c=f-i;if(!c||l.destroyed)return;let p=r(c);i=f,process.nextTick(()=>{l.emit("progress",{loaded:f,total:a,progress:a?f/a:void 0,bytes:c,rate:p||void 0,estimated:p&&a&&f<=a?(a-f)/p:void 0})})},t.ticksRate);let s=()=>{t.updateProgress(!0)};this.once("end",s),this.once("error",s)}_read(e){let l=this[_f];return l.onReadCallback&&l.onReadCallback(),super._read(e)}_transform(e,l,t){let r=this,i=this[_f],s=i.maxRate,u=this.readableHighWaterMark,a=i.timeWindow,f=1e3/a,c=s/f,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,c*.01):0;function m(g,_){let S=Buffer.byteLength(g);i.bytesSeen+=S,i.bytes+=S,i.isCaptured&&i.updateProgress(),r.push(g)?process.nextTick(_):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(_)}}let h=(g,_)=>{let S=Buffer.byteLength(g),T=null,x=u,v,b=0;if(s){let w=Date.now();(!i.ts||(b=w-i.ts)>=a)&&(i.ts=w,v=c-i.bytes,i.bytes=v<0?-v:0,b=0),v=c-i.bytes}if(s){if(v<=0)return setTimeout(()=>{_(null,g)},a-b);v<x&&(x=v)}x&&S>x&&S-x>p&&(T=g.subarray(x),g=g.subarray(0,x)),m(g,T?()=>{process.nextTick(_,null,T)}:_)};h(e,function g(_,S){if(_)return t(_);S?h(S,g):t(null)})}setLength(e){return this[_f].length=+e,this}},jb=$b;var dG=St(require("events"),1);var Qz=require("util"),Zz=require("stream");var{asyncIterator:Jz}=Symbol,L_e=async function*(n){n.stream?yield*n.stream():n.arrayBuffer?yield await n.arrayBuffer():n[Jz]?yield*n[Jz]():yield n},Ef=L_e;var F_e=X.ALPHABET.ALPHA_DIGIT+"-_",U5=new Qz.TextEncoder,ws=`\r
`,M_e=U5.encode(ws),$_e=2,Ub=class{constructor(e,l){let{escapeName:t}=this.constructor,r=X.isString(l),i=`Content-Disposition: form-data; name="${t(e)}"${!r&&l.name?`; filename="${t(l.name)}"`:""}${ws}`;r?l=U5.encode(String(l).replace(/\r?\n|\r\n?/g,ws)):i+=`Content-Type: ${l.type||"application/octet-stream"}${ws}`,this.headers=U5.encode(i+ws),this.contentLength=r?l.byteLength:l.size,this.size=this.headers.byteLength+this.contentLength+$_e,this.name=e,this.value=l}async*encode(){yield this.headers;let{value:e}=this;X.isTypedArray(e)?yield e:yield*Ef(e),yield M_e}static escapeName(e){return String(e).replace(/[\r\n"]/g,l=>({"\r":"%0D","\n":"%0A",'"':"%22"})[l])}},j_e=(n,e,l)=>{let{tag:t="form-data-boundary",size:r=25,boundary:i=t+"-"+X.generateString(r,F_e)}=l||{};if(!X.isFormData(n))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=U5.encode("--"+i+ws),u=U5.encode("--"+i+"--"+ws+ws),a=u.byteLength,f=Array.from(n.entries()).map(([p,m])=>{let h=new Ub(p,m);return a+=h.size,h});a+=s.byteLength*f.length,a=X.toFiniteNumber(a);let c={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(a)&&(c["Content-Length"]=a),e&&e(c),Zz.Readable.from(async function*(){for(let p of f)yield s,yield*p.encode();yield u}())},eG=j_e;var nG=St(require("stream"),1),Bb=class extends nG.default.Transform{__transform(e,l,t){this.push(e),t()}_transform(e,l,t){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,l)}this.__transform(e,l,t)}},lG=Bb;var U_e=(n,e)=>X.isAsyncFn(n)?function(...l){let t=l.pop();n.apply(this,l).then(r=>{try{e?t(null,...e(r)):t(null,r)}catch(i){t(i)}},t)}:n,tG=U_e;var rG={flush:Ni.default.constants.Z_SYNC_FLUSH,finishFlush:Ni.default.constants.Z_SYNC_FLUSH},B_e={flush:Ni.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ni.default.constants.BROTLI_OPERATION_FLUSH},iG=X.isFunction(Ni.default.createBrotliDecompress),{http:H_e,https:q_e}=pG.default,V_e=/https:?/,sG=Nt.protocols.map(n=>n+":");function z_e(n,e){n.beforeRedirects.proxy&&n.beforeRedirects.proxy(n),n.beforeRedirects.config&&n.beforeRedirects.config(n,e)}function hG(n,e,l){let t=e;if(!t&&t!==!1){let r=(0,aG.getProxyForUrl)(l);r&&(t=new URL(r))}if(t){if(t.username&&(t.auth=(t.username||"")+":"+(t.password||"")),t.auth){(t.auth.username||t.auth.password)&&(t.auth=(t.auth.username||"")+":"+(t.auth.password||""));let i=Buffer.from(t.auth,"utf8").toString("base64");n.headers["Proxy-Authorization"]="Basic "+i}n.headers.host=n.hostname+(n.port?":"+n.port:"");let r=t.hostname||t.host;n.hostname=r,n.host=r,n.port=t.port,n.path=l,t.protocol&&(n.protocol=t.protocol.includes(":")?t.protocol:`${t.protocol}:`)}n.beforeRedirects.proxy=function(i){hG(i,e,i.href)}}var G_e=typeof process<"u"&&X.kindOf(process)==="process",X_e=n=>new Promise((e,l)=>{let t,r,i=(a,f)=>{r||(r=!0,t&&t(a,f))},s=a=>{i(a),e(a)},u=a=>{i(a,!0),l(a)};n(s,u,a=>t=a).catch(u)}),W_e=({address:n,family:e})=>{if(!X.isString(n))throw TypeError("address must be a string");return{address:n,family:e||(n.indexOf(".")<0?6:4)}},uG=(n,e)=>W_e(X.isObject(n)?n:{address:n,family:e}),mG=G_e&&function(e){return X_e(async function(t,r,i){let{data:s,lookup:u,family:a}=e,{responseType:f,responseEncoding:c}=e,p=e.method.toUpperCase(),m,h=!1,g;if(u){let ue=tG(u,ve=>X.isArray(ve)?ve:[ve]);u=(ve,q,re)=>{ue(ve,q,(te,ne,Bl)=>{if(te)return re(te);let Rn=X.isArray(ne)?ne.map(Ge=>uG(Ge)):[uG(ne,Bl)];q.all?re(te,Rn):re(te,Rn[0].address,Rn[0].family)})}}let _=new dG.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),_.removeAllListeners()};i((ue,ve)=>{m=!0,ve&&(h=!0,S())});function T(ue){_.emit("abort",!ue||ue.type?new nr(null,e,g):ue)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(T),e.signal&&(e.signal.aborted?T():e.signal.addEventListener("abort",T)));let x=aa(e.baseURL,e.url),v=new URL(x,"http://localhost"),b=v.protocol||sG[0];if(b==="data:"){let ue;if(p!=="GET")return As(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ue=Mb(e.url,f==="blob",{Blob:e.env&&e.env.Blob})}catch(ve){throw Fe.from(ve,Fe.ERR_BAD_REQUEST,e)}return f==="text"?(ue=ue.toString(c),(!c||c==="utf8")&&(ue=X.stripBOM(ue))):f==="stream"&&(ue=fa.default.Readable.from(ue)),As(t,r,{data:ue,status:200,statusText:"OK",headers:new It,config:e})}if(sG.indexOf(b)===-1)return r(new Fe("Unsupported protocol "+b,Fe.ERR_BAD_REQUEST,e));let w=It.from(e.headers).normalize();w.set("User-Agent","axios/"+ca,!1);let N=e.onDownloadProgress,O=e.onUploadProgress,k=e.maxRate,j,L;if(X.isSpecCompliantForm(s)){let ue=w.getContentType(/boundary=([-_\w\d]{10,70})/i);s=eG(s,ve=>{w.set(ve)},{tag:`axios-${ca}-boundary`,boundary:ue&&ue[1]||void 0})}else if(X.isFormData(s)&&X.isFunction(s.getHeaders)){if(w.set(s.getHeaders()),!w.hasContentLength())try{let ue=await fG.default.promisify(s.getLength).call(s); Line truncated
@@ -398,15 +398,13 @@ function print() { __p += __j.call(arguments, '') }
`+i):t.stack=i}throw t}}_request(e,l){typeof e=="string"?(l=l||{},l.url=e):l=e||{},l=Ii(this.defaults,l);let{transitional:t,paramsSerializer:r,headers:i}=l;t!==void 0&&Sf.assertOptions(t,{silentJSONParsing:Rs.transitional(Rs.boolean),forcedJSONParsing:Rs.transitional(Rs.boolean),clarifyTimeoutError:Rs.transitional(Rs.boolean)},!1),r!=null&&(X.isFunction(r)?l.paramsSerializer={serialize:r}:Sf.assertOptions(r,{encode:Rs.function,serialize:Rs.function},!0)),l.method=(l.method||this.defaults.method||"get").toLowerCase();let s=i&&X.merge(i.common,i[l.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),l.headers=It.concat(s,i);let u=[],a=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(l)===!1||(a=a&&_.synchronous,u.unshift(_.fulfilled,_.rejected))});let f=[];this.interceptors.response.forEach(function(_){f.push(_.fulfilled,_.rejected)});let c,p=0,m;if(!a){let g=[Tf.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,f),m=g.length,c=Promise.resolve(l);p<m;)c=c.then(g[p++],g[p++]);return c}m=u.length;let h=l;for(p=0;p<m;){let g=u[p++],_=u[p++];try{h=g(h)}catch(S){_.call(this,S);break}}try{c=Tf.call(this,h)}catch(g){return Promise.reject(g)}for(p=0,m=f.length;p<m;)c=c.then(f[p++],f[p++]);return c}getUri(e){e=Ii(this.defaults,e);let l=aa(e.baseURL,e.url);return ua(l,e.params,e.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(e){O4.prototype[e]=function(l,t){return this.request(Ii(t||{},{method:e,url:l,data:(t||{}).data}))}});X.forEach(["post","put","patch"],function(e){function l(t){return function(i,s,u){return this.request(Ii(u||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}O4.prototype[e]=l(),O4.prototype[e+"Form"]=l(!0)});var B5=O4;var zb=class n{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let l;this.promise=new Promise(function(i){l=i});let t=this;this.promise.then(r=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](r);t._listeners=null}),this.promise.then=r=>{let i,s=new Promise(u=>{t.subscribe(u),i=u}).then(r);return s.cancel=function(){t.unsubscribe(i)},s},e(function(i,s,u){t.reason||(t.reason=new nr(i,s,u),l(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let l=this._listeners.indexOf(e);l!==-1&&this._listeners.splice(l,1)}static source(){let e;return{token:new n(function(r){e=r}),cancel:e}}},SG=zb;function Gb(n){return function(l){return n.apply(null,l)}}function Xb(n){return X.isObject(n)&&n.isAxiosError===!0}var Wb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wb).forEach(([n,e])=>{Wb[e]=n});var xG=Wb;function AG(n){let e=new B5(n),l=O5(B5.prototype.request,e);return X.extend(l,B5.prototype,e,{allOwnKeys:!0}),X.extend(l,e,null,{allOwnKeys:!0}),l.create=function(r){return AG(Ii(n,r))},l}var vt=AG(A4);vt.Axios=B5;vt.CanceledError=nr;vt.CancelToken=SG;vt.isCancel=P5;vt.VERSION=ca;vt.toFormData=xs;vt.AxiosError=Fe;vt.Cancel=vt.CanceledError;vt.all=function(e){return Promise.all(e)};vt.spread=Gb;vt.isAxiosError=Xb;vt.mergeConfig=Ii;vt.AxiosHeaders=It;vt.formToJSON=n=>gf(X.isHTMLForm(n)?new FormData(n):n);vt.getAdapter=bf.getAdapter;vt.HttpStatusCode=xG;vt.default=vt;var N4=vt;var{Axios:hke,AxiosError:mke,CanceledError:gke,isCancel:yke,CancelToken:vke,VERSION:_ke,all:Eke,Cancel:bke,isAxiosError:Tke,spread:Ske,toFormData:wG,AxiosHeaders:xke,HttpStatusCode:Ake,formToJSON:wke,getAdapter:Rke,mergeConfig:Oke}=N4;var DG=St(require("https"),1),LG=St(require("crypto"),1),FG=St(kG(),1),Jb={};globalThis.dataBase=null;globalThis.local={get:async function(n,e){return await iEe(n,e)},set:asy Line truncated
`},timeout:.1}),await dataBase.push(t,Jb)}globalThis.localLog={set:async function(n,e,l){aEe(n,e,l)}};function uEe(){pa.default.existsSync("log")||pa.default.mkdirSync("log");let n="log/info.log";return pa.default.existsSync(n)?pa.default.readFileSync(n).toString():(pa.default.writeFileSync(n,""),"")}function aEe(n){pa.default.writeFileSync("log/info.log",uEe()+`
`+n)}globalThis.req=oEe;async function oEe(n,e){try{let l=e&&e.data||null,t=e&&e.postType||null,r=e&&e.buffer||0,i=e&&e.timeout||5e3,s=(e&&e.redirect||1)===1,u=e.proxy??!1,a=e?e.headers||{}:{};t==="form"?(a["Content-Type"]="application/x-www-form-urlencoded",l!=null&&(l=PG.default.stringify(l,{encode:!1}))):t==="form-data"&&(a["Content-Type"]="multipart/form-data",l=wG(l));let f=r===1||r===2?"arraybuffer":void 0,c;u?c=FG.default.httpsOverHttp({proxy:{host:"127.0.0.1",port:7890}}):c=DG.default.Agent({rejectUnauthorized:!1});let p=await N4(n,{responseType:f,method:e&&e.method||"get",headers:a,data:l,timeout:i,maxRedirects:s?null:0,httpsAgent:c});l=p.data;let m={};for(let h of p.headers){let g=h[1];m[h[0]]=Array.isArray(g)&&g.length===1?g[0]:g}if(!r)typeof l=="object"&&(l=JSON.stringify(l));else{if(r===1)return{code:p.status,headers:m,content:l};if(r===2)return{code:p.status,headers:m,content:l.toString("base64")};if(r===3){let h=e.stream;return h.onResp&&await h.onResp({code:p.status,headers:m}),h.onData?(l.on("data",async g=>{await h.onData(g)}),l.on("end",async()=>{h.onDone&&await h.onDone()})):h.onDone&&await h.onDone(),"stream..."}}return{code:p.status,headers:m,content:l}}catch(l){let t=l.response;try{return{code:t.status,headers:t.headers,content:JSON.stringify(t.data)}}catch{return{headers:{},content:""}}}}globalThis.md5X=cEe;function cEe(n){return LG.default.createHash("md5").update(Buffer.from(n,"utf8")).digest("hex")}globalThis.js2Proxy=function(n,e,l){let t=Object.keys(l).length===0?" ":encodeURIComponent(JSON.stringify(l));return n.server.address().dynamic+n.server.prefix+"/proxy/"+encodeURIComponent(e)+"/"+t+"/"};var fEe=["DEBUG","INFO","WARNING","ERROR"];var Ns=class{constructor(e,l="DEBUG"){this.app_name=e,this.level=l,this.level_index=fEe.indexOf(l)}format(e,l){let t=80;switch(e){case"INFO":t=t+1;break;case"WARNING":t=t-2;break;default:break}return l.length<t&&((t-l.length)%2===0?l="#".repeat(Math.floor((t-l.length)/2))+l+"#".repeat(Math.floor((t-l.length)/2)):l="#".repeat(Math.floor((t-l.length)/2))+l+"#".repeat(Math.floor((t-l.length)/2)+1)),l}getTime(){let e=new Date;return e.toLocaleDateString().replace(/\//g,"-")+" "+e.toTimeString().substr(0,8)+","+e.getMilliseconds().toString()}formatMessage(e,l,t){return t&&(l=this.format(e,l)),`${this.getTime()} - ${this.app_name} - ${e}: ${l}`}async log(e){console.debug(e),await req("http://127.0.0.1:8099/upload",{data:{log:e+`
`},timeout:.1})}async info(e,l){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,l))}async warning(e,l){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,l))}async error(e,l){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,l))}async debug(e,l){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,l))}};var Pl=class extends kl{constructor(){super(),this.jadeLog=new Ns(this.getAppName(),"DEBUG")}async init(e,l){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{await await req("http://127.0.0.1:8099/clear",{timeout:.1}),this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(t){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+t,!1)}}catch(t){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${t}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return de.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return de.isEmpty(e)?this.filterObj:e}async home(e,l){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await this.jadeLog.debug(`\u9996\u9875\u5185\u5BB9\u4E3A:${this.result.homeVod(this.homeVodList)}`),await this.jadeLog.info("\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5B8C\u6210",!0),this.result.homeVod(this.homeVodList)}catch(e){await this.jadeLog.error(`\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${e}`)}}async category(e,l){let t=e.body.id,r=e.body.page,i=!0,s=e.body.filters;if(this.page=parseInt(r),await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u5206\u7C7B\u9875\u9762,tid = ${t},pg = ${r},extend = ${JSON.stringify(s)}`),t==="\u6700\u8FD1\u66F4\u65B0")return this.page=0,await this.homeVod();try{return this.vodList=[],await this.setCategory(t,r,i,s),await this.jadeLog.debug(`\u5206\u7C7B\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}`),await this.jadeLog.info("\u5206\u7C7B\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}catch(u){await this.jadeLog.error(`\u5206\u7C7B\u9875\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${u}`)}}async detail(e,l){await this.jadeLog.debug(`\u83B7\u53D6\u8BE6\u60C5\u9875\u9762:${JSON.stringify(e.body)}`);let r=(Array.isArray(e.body.id)?e.body.id:[e.body.id])[0];this.vodDetail=new tl,await this.jadeLog.info(`\u6B63\u5728\u83B7\u53D6\u8BE6\u60C5\u9875\u9762,id\u4E3A:${r}`);try{return await this.setDetail(r),await this.jadeLog.debug(`\u8BE6\u60C5\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.detail(this.vodDetail)}`),await this.jadeLog.info("\u8BE6\u60C5\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.vodDetail.vod_id=r,this.result.detail(this.vodDetail)}catch(i){await this.jadeLog.error("\u8BE6\u60C5\u754C\u9762\u83B7\u53D6\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+i)}}async play(e,l){let t=e.body.flag,r=e.body.id,i=[];await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u64AD\u653E\u9875\u9762,flag:${t},id:${r},flags:${i}`,!0);try{let s;if(await this.setPlay(t,r,i),this.playUrl.content!==void 0)return this.playUrl;if(await this.jadeLog.debug("\u4E0D\u9700\u8981\u52A0\u8F7D\u5F39\u5E55",!0),this.result.jx===1&&this.playUrl.indexOf(".m3u8")<0){let u=await e.server.messageT Line truncated
`},timeout:.1})}async info(e,l){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,l))}async warning(e,l){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,l))}async error(e,l){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,l))}async debug(e,l){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,l))}};var Pl=class extends kl{constructor(){super(),this.jadeLog=new Ns(this.getAppName(),"DEBUG")}async init(e,l){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{await await req("http://127.0.0.1:8099/clear",{timeout:.1}),this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(t){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+t,!1)}}catch(t){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${t}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return de.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return de.isEmpty(e)?this.filterObj:e}async home(e,l){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await this.jadeLog.debug(`\u9996\u9875\u5185\u5BB9\u4E3A:${this.result.homeVod(this.homeVodList)}`),await this.jadeLog.info("\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5B8C\u6210",!0),this.result.homeVod(this.homeVodList)}catch(e){await this.jadeLog.error(`\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${e}`)}}async category(e,l){let t=e.body.id,r=e.body.page,i=!0,s=e.body.filters;if(this.page=parseInt(r),await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u5206\u7C7B\u9875\u9762,tid = ${t},pg = ${r},extend = ${JSON.stringify(s)}`),t==="\u6700\u8FD1\u66F4\u65B0")return this.page=0,await this.homeVod();try{return this.vodList=[],await this.setCategory(t,r,i,s),await this.jadeLog.debug(`\u5206\u7C7B\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}`),await this.jadeLog.info("\u5206\u7C7B\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}catch(u){await this.jadeLog.error(`\u5206\u7C7B\u9875\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${u}`)}}async detail(e,l){await this.jadeLog.debug(`\u83B7\u53D6\u8BE6\u60C5\u9875\u9762:${JSON.stringify(e.body)}`);let r=(Array.isArray(e.body.id)?e.body.id:[e.body.id])[0];this.vodDetail=new tl,await this.jadeLog.info(`\u6B63\u5728\u83B7\u53D6\u8BE6\u60C5\u9875\u9762,id\u4E3A:${r}`);try{return await this.setDetail(r),await this.jadeLog.debug(`\u8BE6\u60C5\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.detail(this.vodDetail)}`),await this.jadeLog.info("\u8BE6\u60C5\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.vodDetail.vod_id=r,this.result.detail(this.vodDetail)}catch(i){await this.jadeLog.error("\u8BE6\u60C5\u754C\u9762\u83B7\u53D6\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+i)}}async play(e,l){let t=e.body.flag,r=e.body.id,i=[];await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u64AD\u653E\u9875\u9762,flag:${t},id:${r},flags:${i}`,!0);try{let s;if(await this.setPlay(t,r,i),this.playUrl.content!==void 0)return this.playUrl;if(await this.jadeLog.debug("\u4E0D\u9700\u8981\u52A0\u8F7D\u5F39\u5E55",!0),this.result.jx===1&&this.playUrl.indexOf(".m3u8")<0){let u=await e.server.messageT Line truncated
`,"").replaceAll(" ","");s.value.push({n:m,v:p})}if(s.value.length>0){i.push(s);let c=await this.getHtml(s.value[0].v),p=await this.getSortFilter(c);p.value.length>0&&i.push(p)}else{let c=await this.getSortFilter(f);c.value.length>0&&i.push(c)}}else{let s=e("div.row").slice(1,9),u=e('[class="title-box"]').slice(1,9);for(let c=0;c<u.length;c++){let p={name:e(e(u[c]).find("h2")).text(),key:"type",value:[]};for(let m of e(s[c]).find("a")){let h=m.attribs.href;h.indexOf(this.siteUrl)>-1&&p.value.push({n:e(m).text(),v:h})}i.push(p)}let a=await this.getHtml(t),f=await this.getSortFilter(a);f.value.length>0&&i.push(f)}return i}async setFilterObj(){let e=await this.getHtml(this.siteUrl),l=this.classes.slice(1);for(let t=0;t<l.length;t++){let r=l[t].type_name,i=l[t].type_id,s=await this.getFilter(e,t,i,r);s.length>1&&t<4&&(i=s[0].value[0].v,this.classes[t+1]=this.getTypeDic(r,i)),this.filterObj[i]=s}}async parseVodShortListFromDoc(e){let l=[],t=e("div.video-img-box");for(let r of t){let i=new Bn,s=e(r).find("img").attr("data-src");if(s!==void 0){i.vod_pic=s;let u=e(r).find("a").attr("href");i.vod_id=u.split("/")[4],i.vod_name=u.split("/")[4];let a=e(e(r).find('[class="sub-title"]')).text().split(`
`);a.length>1?i.vod_remarks=a[1].replaceAll(" ","").replaceAll(" ",""):i.vod_remarks="\u7CBE\u9009",!de.isEmpty(i.vod_pic)&&i.vod_remarks!=="[\u9650\u6642\u512A\u60E0]\u53EA\u97001\u5143\u5373\u53EF\u7121\u9650\u4E0B\u8F09"&&l.push(i)}}return l}async parseVodDetailFromDoc(e){let l=new tl,t=e('[class="header-left"]');l.vod_name=e(e(t).find("h4")).text();let r=Ml(/<video poster="(.*?)" id=/,e.html());l.vod_pic=r,l.vod_year=e(e('[class="inactive-color"]')).text();let i=e(e('[class="header-right d-none d-md-block"] > h6')).text().replaceAll(`
`,"").replaceAll("\u25CF",""),s=[],u=Ml(/var hlsUrl = '(.*?)';/,e.html());s.push(i+"$"+u);let a=[];a.push(s.join("#"));let f=["Jable"];return l.vod_play_from=f.join("$$$"),l.vod_play_url=a.join("$$$"),l}async setHomeVod(){let e=await this.getHtml(this.siteUrl);this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let l=await this.getHtml(this.siteUrl+"/videos/"+e+"/");this.vodDetail=await this.parseVodDetailFromDoc(l)}async setCategory(e,l,t,r){let i=r.type??e,s=r.sort??"video_viewed";this.limit=24;let u;this.total=0,this.count=0,e.indexOf("latest-updates")>1?u=`https://jable.tv/latest-updates/?mode=async&function=get_block&block_id=list_videos_latest_videos_list&sort_by=post_date&from=${l}&_=1709730132217`:u=i+`/${l}/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=${s}&_=${new Date().getTime()}`;let a=await this.getHtml(u);this.vodList=await this.parseVodShortListFromDoc(a);let f=a(a('[class="page-item"]').slice(-1)[0]).text();f.indexOf("\u6700\u5F8C")>-1||(parseInt(f)===this.page||de.isEmpty(f))&&(await this.jadeLog.debug("\u5206\u7C7B\u9875\u9762\u5230\u5E95\u4E86"),this.total=this.page,this.count=this.page)}async setSearch(e,l){let t=this.siteUrl+`/search/${e}/`,r=await this.getHtml(t);this.vodList=await this.parseVodShortListFromDocByCategory(r)}},ul=new Qb;var Zb=class extends Pl{constructor(){super()}getName(){return ul.getName()}getAppName(){return ul.getAppName()}getJSName(){return ul.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await ul.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await ul.initCookie(e.server.config.biliCookie),await ul.spiderInit(e),ul.cfgObj.code=0,ul.catOpenStatus=!0,ul.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await ul.setClasses(),this.classes=ul.classes}async setFilterObj(){await ul.setFilterObj(),this.filterObj=ul.filterObj}async setHomeVod(){await ul.setHomeVod(),this.homeVodList=ul.homeVodList}async setCategory(e,l,t,r){await ul.setCategory(e,l,t,r),this.vodList=ul.vodList}async setDetail(e){await ul.setDetail(e),this.vodDetail=ul.vodDetail}async setPlay(e,l,t){await ul.setPlay(e,l,t),this.playUrl=ul.playUrl,this.result=ul.result}async setSearch(e,l,t){await ul.setSearch(e,l,t),this.vodList=ul.vodList,this.result=ul.result}async setProxy(e,l){return await ul.proxy(e,l)}},Is=new Zb;async function MG(n,e){return await Is.init(n,e)}async function $G(n,e){return await Is.home(n,e)}async function pEe(n,e){return await Is.homeVod(n,e)}async function jG(n,e){return await Is.category(n,e)}async function UG(n,e){return await Is.detail(n,e)}async function BG(n,e){return await Is.play(n,e)}async function HG(n,e){return await Is.search(n,e)}async function dEe(n,e){return await Is.proxy(n,e)}var qG={meta:{key:ul.getJSName(),name:ul.getName(),type:ul.getType()},api:async n=>{n.post("/init",MG),n.post("/home",$G),n.post("/category",jG),n.post("/detail",UG),n.post("/play",BG),n.post("/search",HG),n.get("/proxy/:what/:ids/:end",dEe)},spider:{init:MG,home:$G,homeVod:pEe,category:jG,detail:UG,play:BG,search:HG}};var eT=class extends Pl{constructor(){super()}getName(){return"\u2503\u63A8\u9001\u2503"}getAppName(){return"\u63A8\u9001"}getJSName(){return"push"}getType(){return 4}async init(e,l){return await this.jadeLog.debug("\u521D\u59CB\u5316",!0),await Gc(e.server.config),{}}async check(e,l){let t=e.body.clip;return await this.jadeLog.debug(`\u526A\u5207\u677F\u8F93\u5165\u5185\u5BB9\u4E3A:${t}`),t.startsWith("http")?(await this.jadeLog.debug("\u6EE1\u8DB3\u63A8\u9001\u6761\u4EF6",!0),"true"):(await this.jadeLog.debug("\u4E0D\u6EE1\u8DB3\u63A8\u9001\u6761\u4EF6",!0),"false")}async parseVodDetailfromJson(e){let l=new tl;l.vod_pic=Fr+"/resources/push.jpg";let t=bc.exec(e),r=Tc.exec(e);if(t!==null&&t.length>0){let i=await NE([e]);l.vod_play_from=de.keys(i).join("$$$"),l.vod_play_url=de.values(i).join("$$$")}else if(r!==null&&r.length>0){let i=await NE([e]);l.vod_play_from=de.keys(i).join("$$$"),l.vod_play_url=de.values(i).join("$$$")}else l.vod_play_from="\u63A8\u9001",l.vod_play_url="\u63A8\u9001$"+e;return l}async setDetail(e){this.vodDetail=await this.parseVodDetailfromJson(e)}async setPlay(e,l,t){e==="\u63A8\u9001"?this.playUrl=l:(this.playUrl=await XH(e,l,t),this.result.setHeader(WH(e)))}},xf=new eT;async function VG(n,e){return await xf.init(n,e)}async function zG(n,e){return await xf.check(n,e)}async function GG(n,e){return await xf.detail(n,e)}async function XG(n,e){return await xf.play(n,e)}var WG={meta:{key:"push",name:"\u63A8\u9001",type:4},api:async n=>{n.post("/init",VG),n.post("/support",zG),n.post("/detail",GG),n.post("/play",XG)},spider:{init:VG,support:zG,detail:GG,play:XG}};var nT=class extends kl{constructor(){super(),this.siteUrl="https://www.sehuatang.net"}getAppName(){return"\u Line truncated
`,"").replaceAll("\u25CF",""),s=[],u=Ml(/var hlsUrl = '(.*?)';/,e.html());s.push(i+"$"+u);let a=[];a.push(s.join("#"));let f=["Jable"];return l.vod_play_from=f.join("$$$"),l.vod_play_url=a.join("$$$"),l}async setHomeVod(){let e=await this.getHtml(this.siteUrl);this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let l=await this.getHtml(this.siteUrl+"/videos/"+e+"/");this.vodDetail=await this.parseVodDetailFromDoc(l)}async setCategory(e,l,t,r){let i=r.type??e,s=r.sort??"video_viewed";this.limit=24;let u;this.total=0,this.count=0,e.indexOf("latest-updates")>1?u=`https://jable.tv/latest-updates/?mode=async&function=get_block&block_id=list_videos_latest_videos_list&sort_by=post_date&from=${l}&_=1709730132217`:u=i+`/${l}/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=${s}&_=${new Date().getTime()}`;let a=await this.getHtml(u);this.vodList=await this.parseVodShortListFromDoc(a);let f=a(a('[class="page-item"]').slice(-1)[0]).text();f.indexOf("\u6700\u5F8C")>-1||(parseInt(f)===this.page||de.isEmpty(f))&&(await this.jadeLog.debug("\u5206\u7C7B\u9875\u9762\u5230\u5E95\u4E86"),this.total=this.page,this.count=this.page)}async setSearch(e,l){let t=this.siteUrl+`/search/${e}/`,r=await this.getHtml(t);this.vodList=await this.parseVodShortListFromDocByCategory(r)}},ol=new tT;var rT=class extends Pl{constructor(){super()}getName(){return ol.getName()}getAppName(){return ol.getAppName()}getJSName(){return ol.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await ol.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await ol.initCookie(e.server.config.biliCookie),await ol.spiderInit(e),ol.cfgObj.code=0,ol.catOpenStatus=!0,ol.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await ol.setClasses(),this.classes=ol.classes}async setFilterObj(){await ol.setFilterObj(),this.filterObj=ol.filterObj}async setHomeVod(){await ol.setHomeVod(),this.homeVodList=ol.homeVodList}async setCategory(e,l,t,r){await ol.setCategory(e,l,t,r),this.vodList=ol.vodList}async setDetail(e){await ol.setDetail(e),this.vodDetail=ol.vodDetail}async setPlay(e,l,t){await ol.setPlay(e,l,t),this.playUrl=ol.playUrl,this.result=ol.result}async setSearch(e,l,t){await ol.setSearch(e,l,t),this.vodList=ol.vodList,this.result=ol.result}async setProxy(e,l){return await ol.proxy(e,l)}},Ls=new rT;async function QG(n,e){return await Ls.init(n,e)}async function ZG(n,e){return await Ls.home(n,e)}async function _Ee(n,e){return await Ls.homeVod(n,e)}async function eX(n,e){return await Ls.category(n,e)}async function nX(n,e){return await Ls.detail(n,e)}async function lX(n,e){return await Ls.play(n,e)}async function tX(n,e){return await Ls.search(n,e)}async function EEe(n,e){return await Ls.proxy(n,e)}var rX={meta:{key:ol.getJSName(),name:ol.getName(),type:ol.getType()},api:async n=>{n.post("/init",QG),n.post("/home",ZG),n.post("/category",eX),n.post("/detail",nX),n.post("/play",lX),n.post("/search",tX),n.get("/proxy/:what/:ids/:end",EEe)},spider:{init:QG,home:ZG,homeVod:_Ee,category:eX,detail:nX,play:lX,search:tX}};var iT=class extends kl{constructor(){super(),this.siteUrl="https://www.sehuatang.net"}getAppName(){return"\u8272\u82B1\u5802BT"}getName(){return"\u{1F51E}\u2503\u8272\u82B1\u5802BT\u2503\u{1F51E}"}getJSName(){return"sehuatang"}getType(){return 3}async init(e){await super.init(e),this.jsBaseDetail=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",{})}getHeader(){return{"User-Agent":"PostmanRuntime/7.36.1",Host:"www.sehuatang.net",Cookie:"cPNj_2132_saltkey=Q4BKEOEC; cf_clearance=6Gz2tvOXPkkJP2UhLnSsN4s0RrnDUy0jBN0kUvC5FNQ-1706109144-1-AebvwBnAURwWWQhj0QRBrRPku2n8xI73PIeuZVj2ckqY9zjQ7zFzDviX7Gkex1P1bUw9SXHGEYnkBB9nmWe6Nhk=; _safe=vqd37pjm4p5uodq339yzk6b7jdt6oich"}}async parseVodShortListFromDoc(e){let l=[],t=e('[id="portal_block_43_content"]').find("li");for(let r of t){let i=new Bn;i.vod_remarks=e(e(r).find("a")[1]).text(),i.vod_id=e(r).find("a")[2].attribs.href,i.vod_name=e(r).find("a")[2].attribs.title,i.vod_pic=this.jsBaseDetail+Qu(i.vod_id),l.push(i)}return l}async parseVodShortListFromDocByCategory(e){let l=[],t=e(e('[class="bm_c"]')[0]).find("tbody");for(let r of t){let i=e(e(e(r).find("cite")).find("a")[0]).text();if(i!=="admin"&&i!==void 0&&!de.isEmpty(i)){let s=new Bn;s.vod_id=e(r).find("a")[0].attribs.href,s.vod_remarks=e(e(r).find("a")[2]).text(),s.vod_name=e(e(r).find("a")[3]).text(),s.vod_pic=this.jsBaseDetail+Qu(s.vod_id),l.push(s)}}return l}async parseVodDetailFromDoc(e){let l=new tl,t=e('[class="t_f"]')[0],r=e(t).text().replaceAll("\uFF1A",":").replaceAll("\u3010","").replaceAll("\u3011","");return l.vod_pic=e(t).find("img")[0].attribs.file,l.vod_name=Ml(/影片名称(.*?)\n/,r).replaceAll(":","").replaceAll(`
`,""),l.vod_actor=Ml(/出演女优(.*?)\n/,r).replaceAll(":","").replaceAll(`
`,""),l.vod_remarks=Ml(/是否有码(.*?)\n/,r).replaceAll(":","").replaceAll(`
`,""),l.vod_play_from="BT",l.vod_play_url=l.vod_name+"$"+Ml(/磁力链接: (.*)复制代码/,r),l}async setClasses(){let e=await this.getHtml(),l=e('[id="category_1"]').find("tr").slice(0,-1);for(let t of l){let r=e(e(t).find('[class="fl_icn_g"]')).find("a");for(let i of r){let s=i.attribs.href,u=e(i).find("img")[0].attribs.alt;this.classes.push(this.getTypeDic(u,s))}}}async getFilter(e){let l=[],t={key:1,name:"\u7C7B\u578B",value:[]},r=e('[id="thread_types"]').find("a");for(let u of r){let a="";u.children.length>1?a=u.children[0].data+":"+e(u.children[1]).text():a=u.children[0].data,t.value.push({n:a,v:u.attribs.href})}l.push(t);let i={key:1,name:"\u4E3B\u9898",value:[]},s=e('[class="tf"]').find("a");for(let u of s){let a=e(u).text();a!=="\u66F4\u591A"&&a!=="\u663E\u793A\u7F6E\u9876"&&i.value.push({n:e(u).text(),v:u.attribs.href})}return l.push(i),l}async setFilterObj(){for(let e of this.classes){let l=e.type_name,t=e.type_id;if(l!=="\u6700\u8FD1\u66F4\u65B0"){let r=await this.getHtml(this.siteUrl+"/"+t);this.filterObj[t]=await this.getFilter(r)}}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,l,t,r){r[1]!==void 0&&r[1]==="javascript:;"||(e=r[1]??e);let i,s=e.split(".")[0].split("-");s.length>2?(s[2]=l,i=this.siteUrl+"/"+s.join("-")+".html"):i=this.siteUrl+"/"+e+"&page="+l;let u=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(u)}async setDetail(e){let l=await this.getHtml(this.siteUrl+"/"+e);this.vodDetail=await this.parseVodDetailFromDoc(l)}async proxy(e,l){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(l)}`);let t=e[0],r=Mr(e[1]);if(t==="detail"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${r}`);let i=await this.getHtml(this.siteUrl+"/"+r),s=await this.parseVodDetailFromDoc(i);await this.jadeLog.debug(`\u56FE\u7247\u5730\u5740\u4E3A:${s.vod_pic}`);let u;return de.isEmpty(l)?u=await req(s.vod_pic,{buffer:2,headers:{Referer:r,"User-Agent":Lr}}):u=await req(s.vod_pic,{buffer:2,headers:l}),JSON.stringify({code:u.code,buffer:2,content:u.content,headers:u.headers})}return JSON.stringify({code:500,content:""})}},al=new nT;var lT=class extends Pl{constructor(){super()}getName(){return al.getName()}getAppName(){return al.getAppName()}getJSName(){return al.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await al.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await al.initCookie(e.server.config.biliCookie),await al.spiderInit(e),al.cfgObj.code=0,al.catOpenStatus=!0,al.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await al.setClasses(),this.classes=al.classes}async setFilterObj(){await al.setFilterObj(),this.filterObj=al.filterObj}async setHomeVod(){await al.setHomeVod(),this.homeVodList=al.homeVodList}async setCategory(e,l,t,r){await al.setCategory(e,l,t,r),this.vodList=al.vodList}async setDetail(e){await al.setDetail(e),this.vodDetail=al.vodDetail}async setPlay(e,l,t){await al.setPlay(e,l,t),this.playUrl=al.playUrl,this.result=al.result}async setSearch(e,l,t){await al.setSearch(e,l,t),this.vodList=al.vodList,this.result=al.result}async setProxy(e,l){return await al.proxy(e,l)}},Cs=new lT;async function KG(n,e){return await Cs.init(n,e)}async function YG(n,e){return await Cs.home(n,e)}async function hEe(n,e){return await Cs.homeVod(n,e)}async function JG(n,e){return await Cs.category(n,e)}async function QG(n,e){return await Cs.detail(n,e)}async function ZG(n,e){return await Cs.play(n,e)}async function eX(n,e){return await Cs.search(n,e)}async function mEe(n,e){return await Cs.proxy(n,e)}var nX={meta:{key:al.getJSName(),name:al.getName(),type:al.getType()},api:async n=>{n.post("/init",KG),n.post("/home",YG),n.post("/category",JG),n.post("/detail",QG),n.post("/play",ZG),n.post("/search",eX),n.get("/proxy/:what/:ids/:end",mEe)},spider:{init:KG,home:YG,homeVod:hEe,category:JG,detail:QG,play:ZG,search:eX}};function lX(n,{key:e,iv:l}={}){let t="B77A9FF7F323B5404902102257503C2F",r="B77A9FF7F323B5404902102257503C2F";var i=Un.enc.Utf8.parse(n),s=Un.AES.encrypt(i,Un.enc.Utf8.parse(e||t),{iv:Un.enc.Utf8.parse(l||r),mode:Un.mode.CBC,padding:Un.pad.Pkcs7});return Un.enc.Base64.stringify(s.ciphertext)}function gEe(){let n=new Date;return lX(parseInt(n.getTime()/1e3)+n.getTimezoneOffset()*60+-1)}function yEe(n){let l=Un.enc.Utf8.parse("46cc793c53dc451b"),t=Un.AES.decrypt(n,l,{mode:Un.mode.ECB,padding:Un.pad.Pkcs7});return Un.enc.Utf8.stringify(t).toString()}var tT=class extends kl{constructor(){super(),this.siteUrl="https://api.qianyuewenhua.xyz"}async spiderInit(e=null){e!==null?this.jsBase=await js2Proxy(e,"imgBt",this.getHeader()):this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"imgB Line truncated
`),a=e(s).find("a"),f=[{n:"\u5168\u90E8",v:r}],c=t.toString();for(let p of a){let m=e(p).text().replaceAll(`
`,""),h=p.attribs.href;h!==void 0&&f.push({n:m,v:h})}u=u.filter(p=>p!==""),this.filterObj[r].push({key:c,name:u[0],value:f})}let i=e('[id="side-menu"]').find("li");for(let s of i){let u=e(s).find("a")[0].attribs.href;if(u!==void 0&&u.indexOf(this.siteUrl)>-1){let a={type_name:e(s).text(),type_id:u};this.classes.push(a)}}}async setHomeVod(){let e=await this.getHtml(this.siteUrl);this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,l,t,r){r[1]!==void 0&&r[1]!=="1"&&(e=r[1]),await this.jadeLog.info(`tid = ${e}`);let i="";e.indexOf(this.siteUrl)>-1?i=e+l.toString()+".html":i=this.siteUrl,this.limit=36;let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDoc(s)}async setDetail(e){let l=await this.getHtml(e),t=Ml(/video\/(\w+).html/,e);this.vodDetail=await this.parseVodDetailFromDoc(l,t)}async setPlay(e,l,t){this.playUrl=l,this.playHeader={}}async setSearch(e,l){let t=this.siteUrl+"search/"+encodeURIComponent(e),r=await this.getHtml(t);this.vodList=await this.parseVodShortListFromDoc(r)}async proxy(e,l){return super.proxy(e,l)}},ml=new gT;var yT=class extends Pl{constructor(){super()}getName(){return ml.getName()}getAppName(){return ml.getAppName()}getJSName(){return ml.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await ml.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await ml.initCookie(e.server.config.biliCookie),await ml.spiderInit(e),ml.cfgObj.code=0,ml.catOpenStatus=!0,ml.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await ml.setClasses(),this.classes=ml.classes}async setFilterObj(){await ml.setFilterObj(),this.filterObj=ml.filterObj}async setHomeVod(){await ml.setHomeVod(),this.homeVodList=ml.homeVodList}async setCategory(e,l,t,r){await ml.setCategory(e,l,t,r),this.vodList=ml.vodList}async setDetail(e){await ml.setDetail(e),this.vodDetail=ml.vodDetail}async setPlay(e,l,t){await ml.setPlay(e,l,t),this.playUrl=ml.playUrl,this.result=ml.result}async setSearch(e,l,t){await ml.setSearch(e,l,t),this.vodList=ml.vodList,this.result=ml.result}async setProxy(e,l){return await ml.proxy(e,l)}},Bs=new yT;async function GX(n,e){return await Bs.init(n,e)}async function XX(n,e){return await Bs.home(n,e)}async function PEe(n,e){return await Bs.homeVod(n,e)}async function WX(n,e){return await Bs.category(n,e)}async function KX(n,e){return await Bs.detail(n,e)}async function YX(n,e){return await Bs.play(n,e)}async function JX(n,e){return await Bs.search(n,e)}async function DEe(n,e){return await Bs.proxy(n,e)}var QX={meta:{key:ml.getJSName(),name:ml.getName(),type:ml.getType()},api:async n=>{n.post("/init",GX),n.post("/home",XX),n.post("/category",WX),n.post("/detail",KX),n.post("/play",YX),n.post("/search",JX),n.get("/proxy/:what/:ids/:end",DEe)},spider:{init:GX,home:XX,homeVod:PEe,category:WX,detail:KX,play:YX,search:JX}};var ZX=[19970,19972,19973,19974,19983,19986,19991,19999,2e4,20001,20003,20006,20009,20014,20015,20017,20019,20021,20023,20028,20032,20033,20034,20036,20038,20042,20049,20053,20055,20058,20059,20066,20067,20068,20069,20071,20072,20074,20075,20076,20077,20078,20079,20082,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20095,20096,20097,20098,20099,20100,20101,20103,20106,null,20112,20118,20119,20121,20124,20125,20126,20131,20138,20143,20144,20145,20148,20150,20151,20152,20153,20156,20157,20158,20168,20172,20175,20176,20178,20186,20187,20188,20192,20194,20198,20199,20201,20205,20206,20207,20209,20212,20216,20217,20218,20220,20222,20224,20226,20227,20228,20229,20230,20231,20232,20235,20236,20242,20243,20244,20245,20246,20252,20253,20257,20259,20264,20265,20268,20269,20270,20273,20275,20277,20279,20281,20283,20286,20287,20288,20289,20290,20292,20293,20295,20296,20297,20298,20299,20300,20306,20308,20310,20321,20322,20326,20328,20330,20331,20333,20334,20337,20338,20341,20343,20344,20345,20346,20349,20352,20353,20354,20357,20358,20359,20362,20364,20366,20368,20370,20371,20373,20374,20376,20377,20378,20380,20382,20383,20385,20386,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20388,20395,20397,20400,20401,20402,20403,20404,20406,20407,20408,20409,20410,20411,20412,20413,20414,20416,20417,20418,20422,20423,20424,20425,20427,20428,20429,20434,20435,20436,20437,20438,20441,20443,20448,20450,20452,20453,20455,20459,20460,20464,20466,20468,20469,20470,20471,20473,20475,20476,20477,20479,20480,20481,20482,20483,20484,20485,20486,20487,20488,20489,20490,null,20491,20494,20496,20497,20499,20501,20502,20503,20507,20509,20510,20512,20514,20515,20516,20519,20523, Line truncated
`,""),l.vod_play_from="BT",l.vod_play_url=l.vod_name+"$"+Ml(/磁力链接: (.*)复制代码/,r),l}async setClasses(){let e=await this.getHtml(),l=e('[id="category_1"]').find("tr").slice(0,-1);for(let t of l){let r=e(e(t).find('[class="fl_icn_g"]')).find("a");for(let i of r){let s=i.attribs.href,u=e(i).find("img")[0].attribs.alt;this.classes.push(this.getTypeDic(u,s))}}}async getFilter(e){let l=[],t={key:1,name:"\u7C7B\u578B",value:[]},r=e('[id="thread_types"]').find("a");for(let u of r){let a="";u.children.length>1?a=u.children[0].data+":"+e(u.children[1]).text():a=u.children[0].data,t.value.push({n:a,v:u.attribs.href})}l.push(t);let i={key:1,name:"\u4E3B\u9898",value:[]},s=e('[class="tf"]').find("a");for(let u of s){let a=e(u).text();a!=="\u66F4\u591A"&&a!=="\u663E\u793A\u7F6E\u9876"&&i.value.push({n:e(u).text(),v:u.attribs.href})}return l.push(i),l}async setFilterObj(){for(let e of this.classes){let l=e.type_name,t=e.type_id;if(l!=="\u6700\u8FD1\u66F4\u65B0"){let r=await this.getHtml(this.siteUrl+"/"+t);this.filterObj[t]=await this.getFilter(r)}}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,l,t,r){r[1]!==void 0&&r[1]==="javascript:;"||(e=r[1]??e);let i,s=e.split(".")[0].split("-");s.length>2?(s[2]=l,i=this.siteUrl+"/"+s.join("-")+".html"):i=this.siteUrl+"/"+e+"&page="+l;let u=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(u)}async setDetail(e){let l=await this.getHtml(this.siteUrl+"/"+e);this.vodDetail=await this.parseVodDetailFromDoc(l)}async proxy(e,l){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(l)}`);let t=e[0],r=Mr(e[1]);if(t==="detail"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${r}`);let i=await this.getHtml(this.siteUrl+"/"+r),s=await this.parseVodDetailFromDoc(i);await this.jadeLog.debug(`\u56FE\u7247\u5730\u5740\u4E3A:${s.vod_pic}`);let u;return de.isEmpty(l)?u=await req(s.vod_pic,{buffer:2,headers:{Referer:r,"User-Agent":Lr}}):u=await req(s.vod_pic,{buffer:2,headers:l}),JSON.stringify({code:u.code,buffer:2,content:u.content,headers:u.headers})}return JSON.stringify({code:500,content:""})}},cl=new iT;var sT=class extends Pl{constructor(){super()}getName(){return cl.getName()}getAppName(){return cl.getAppName()}getJSName(){return cl.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await cl.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await cl.initCookie(e.server.config.biliCookie),await cl.spiderInit(e),cl.cfgObj.code=0,cl.catOpenStatus=!0,cl.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await cl.setClasses(),this.classes=cl.classes}async setFilterObj(){await cl.setFilterObj(),this.filterObj=cl.filterObj}async setHomeVod(){await cl.setHomeVod(),this.homeVodList=cl.homeVodList}async setCategory(e,l,t,r){await cl.setCategory(e,l,t,r),this.vodList=cl.vodList}async setDetail(e){await cl.setDetail(e),this.vodDetail=cl.vodDetail}async setPlay(e,l,t){await cl.setPlay(e,l,t),this.playUrl=cl.playUrl,this.result=cl.result}async setSearch(e,l,t){await cl.setSearch(e,l,t),this.vodList=cl.vodList,this.result=cl.result}async setProxy(e,l){return await cl.proxy(e,l)}},Fs=new sT;async function iX(n,e){return await Fs.init(n,e)}async function sX(n,e){return await Fs.home(n,e)}async function bEe(n,e){return await Fs.homeVod(n,e)}async function uX(n,e){return await Fs.category(n,e)}async function aX(n,e){return await Fs.detail(n,e)}async function oX(n,e){return await Fs.play(n,e)}async function cX(n,e){return await Fs.search(n,e)}async function TEe(n,e){return await Fs.proxy(n,e)}var fX={meta:{key:cl.getJSName(),name:cl.getName(),type:cl.getType()},api:async n=>{n.post("/init",iX),n.post("/home",sX),n.post("/category",uX),n.post("/detail",aX),n.post("/play",oX),n.post("/search",cX),n.get("/proxy/:what/:ids/:end",TEe)},spider:{init:iX,home:sX,homeVod:bEe,category:uX,detail:aX,play:oX,search:cX}};var uT=class extends Pl{constructor(){super()}getName(){return"\u2503\u63A8\u9001\u2503"}getAppName(){return"\u63A8\u9001"}getJSName(){return"push"}getType(){return 4}async init(e,l){return await this.jadeLog.debug("\u521D\u59CB\u5316",!0),await Gc(e.server.config),{}}async check(e,l){let t=e.body.clip;return await this.jadeLog.debug(`\u526A\u5207\u677F\u8F93\u5165\u5185\u5BB9\u4E3A:${t}`),t.startsWith("http")?(await this.jadeLog.debug("\u6EE1\u8DB3\u63A8\u9001\u6761\u4EF6",!0),"true"):(await this.jadeLog.debug("\u4E0D\u6EE1\u8DB3\u63A8\u9001\u6761\u4EF6",!0),"false")}async parseVodDetailfromJson(e){let l=new tl;l.vod_pic=Fr+"/resources/push.jpg";let t=bc.exec(e),r=Tc.exec(e);if(t!==null&&t.length>0){let i=await NE([e]);l.vod_play_from=de.keys(i).join("$$$"),l.vod_play_url=de.values( Line truncated
`)),e.push(r)}return e}async parseVodShortListFromDocBySearch(n){let e=n('[class="show-list"]').find("li"),l=[];for(let t of e){let r=new Bn;r.vod_id=n(t).find("a")[0].attribs.href;let i=n(t).find("img")[0];r.vod_pic=i.attribs.src,r.vod_name=i.attribs.alt,r.vod_remarks=n(n(t).find('[class="type fn-left"]')).text().replace("\u7C7B\u578B\uFF1A",""),r.vod_remarks!=="\u793E\u5904\u7247"&&r.vod_remarks!=="\u793E\u4FDD\u7247"&&r.vod_remarks!=="\u64B8\u4E1D\u7247"&&r.vod_remarks!=="\u64B8\u4E1D\u52A8\u6F2B"&&l.push(r)}return l}async parseVodDetailFromDoc(n){let e=new tl,l=n('[class="detail-pic fn-left"]').find("img")[0];e.vod_pic=l.attribs.src,e.vod_name=l.attribs.alt;let t=n('[class="info fn-clear"]');for(let f of n(t).find("dl")){let c=n(f).text();c.indexOf("\u4E3B\u6F14")>-1&&(e.vod_actor=c.replaceAll("\u4E3B\u6F14\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u72B6\u6001")>-1&&(e.vod_remarks=c.replaceAll("\u72B6\u6001\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u7C7B\u578B")>-1&&(e.type_name=c.replaceAll("\u7C7B\u578B\uFF1A","").replaceAll(`
@@ -414,7 +412,9 @@ function print() { __p += __j.call(arguments, '') }
`,"")),c.indexOf("\u5BFC\u6F14")>-1&&(e.vod_director=c.replaceAll("\u5BFC\u6F14\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u5E74\u4EFD")>-1&&(e.vod_year=c.replaceAll("\u5E74\u4EFD\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u5267\u60C5")>-1&&(e.vod_content=c.replaceAll("\u5267\u60C5\uFF1A","").replaceAll(`
`,""))}let r={},i=n.html(),s=n('[class="play-list"]'),u=1;for(let f of s){let c=`\u64AD\u653E\u8FDE\u63A5-${u}`,p=[];for(let m of n(f).find("a")){let h=m.attribs.title,g=m.attribs.href;p.push(h+"$"+g)}r[c]=p.join("#"),u=u+1}u=1;let a=n('[class="con4"]');for(let f of a){let c=`\u78C1\u529B\u94FE\u63A5-${u}`,p=[],m=c,h=n(n(f).find("div")).find("a")[0].attribs.href;h!=="javascript:void(0);"&&(p.push(m+"$"+h),r[c]=p.join("#"),u=u+1)}return e.vod_play_url=de.values(r).join("$$$"),e.vod_play_from=de.keys(r).join("$$$"),e}async setHomeVod(){let n=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(n)}async setDetail(n){let e=await this.getHtml(this.siteUrl+n);this.vodDetail=await this.parseVodDetailFromDoc(e)}getExtend(n){if(n.class!==void 0&&n.class!=="\u5168\u90E8")return n.class}async setCategory(n,e,l,t){let r=this.getExtend(t)??n,i;r===n?i=this.siteUrl+r:parseInt(e)===1?i=this.siteUrl+r:i=this.siteUrl+r+`index${e}.html`;let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDoc(s)}async setPlay(flag,id,flags){if(flag.indexOf("\u78C1\u529B")>-1)this.playUrl=id;else{let idSplitList=id.split("-"),flag_id=parseInt(idSplitList[1]),episode=parseInt(idSplitList[2].split(".")[0]),$=await this.getHtml(this.siteUrl+id),playJsUrl=Ml(/<script type="text\/javascript" src="(.*?)">/,$.html()),playJsContent=await this.fetch(this.siteUrl+playJsUrl,null,this.getHeader()),playUrlListStr=Ml(/var VideoListJson=(.*?),urlinfo=/,playJsContent),playDic=eval(playUrlListStr);if(this.playUrl=playDic[flag_id][1][episode].split("$")[1],this.playUrl.indexOf("m3u8")===-1){let n=await this.fetch(this.playUrl,null,this.getHeader());this.playUrl=Ml(/url: '(.*?)'/,n)}}}GBKEncode(n){var e=33088;n+="";for(var l=[],t=63,r=0;r<n.length;r++){var i=n.charCodeAt(r);if(i<128)l.push(i);else{var s=ZX.indexOf(i);~s?(s+=e,l.push(255&s>>8,255&s)):l.push(t)}}return l}encode(n){let e="";for(let l of n){let t=this.GBKEncode(l);for(let r=0;r<t.length;r++)t[r]="%"+("0"+t[r].toString(16)).substr(-2).toUpperCase();e=e+t.join("")}return e}async setSearch(n,e){let l={searchword:this.encode(n)},t=await this.post(this.siteUrl+"/search.asp",l,this.getHeader(),"form",1),r=pt(dE(t,"gb2312"));this.vodList=await this.parseVodShortListFromDocBySearch(r)}},da=new H5;async function LEe(n){await da.init(n)}async function FEe(n){return await da.home(n)}async function MEe(){return await da.homeVod()}async function $Ee(n,e,l,t){return await da.category(n,e,l,t)}async function jEe(n){return await da.detail(n)}async function UEe(n,e,l){return await da.play(n,e,l)}async function BEe(n,e){return await da.search(n,e)}function gDe(){return{init:LEe,home:FEe,homeVod:MEe,category:$Ee,detail:jEe,play:UEe,search:BEe}}var vT=class extends H5{constructor(){super(),this.siteUrl="https://b.aqdyje.com",this.removeKey="\u9A91\u5175\u8425"}getName(){return"\u{1F51E}\u2503\u7231\u60C5\u7535\u5F71\u7F5118+\u2503\u{1F51E}"}getAppName(){return"\u7231\u60C5\u7535\u5F71\u7F5118+"}getJSName(){return"lovemovie18"}getType(){return 3}async parseVodShortListFromDocBySearch(e){let l=e('[class="show-list"]').find("li"),t=[];for(let r of l){let i=new Bn;i.vod_id=e(r).find("a")[0].attribs.href;let s=e(r).find("img")[0];i.vod_pic=s.attribs.src,i.vod_name=s.attribs.alt,i.vod_remarks=e(e(r).find('[class="type fn-left"]')).text().replace("\u7C7B\u578B\uFF1A",""),(i.vod_remarks==="\u793E\u5904\u7247"||i.vod_remarks==="\u793E\u4FDD\u7247"||i.vod_remarks==="\u64B8\u4E1D\u7247"||i.vod_remarks==="\u64B8\u4E1D\u52A8\u6F2B")&&t.push(i)}return t}async getFilter(e){let l=await this.getHtml(this.siteUrl+e),t=[],r={key:"class",name:"\u7C7B\u578B",value:[]};for(let i of l('[class="subnav-tv fn-left"]').find("a")){let s=l(i).text(),u=i.attribs.href;r.value.push(this.getFliterDic(s,u))}return r.value.length>1&&t.push(r),t}async setClasses(){let e=await this.getHtml(),l=e('[class="nav-item drop-down "]');this.classes=[];for(let t of l){let r=e(t).find("a")[0],i=e(r).text(),s=r.attribs.href;i===this.removeKey&&(this.classes.push(this.getTypeDic(i,s)),this.filterObj[s]=await this.getFilter(s))}}async setCategory(e,l,t,r){let i=this.getExtend(r)??e,s;parseInt(l)===1?s=this.siteUrl+i:s=this.siteUrl+i+`index${l}.html`;let u=await this.getHtml(s);this.vodList=await this.parseVodShortListFromDoc(u)}},gl=new vT;var _T=class extends Pl{constructor(){super()}getName(){return gl.getName()}getAppName(){return gl.getAppName()}getJSName(){return gl.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await gl.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await gl.initCookie(e.server.config.biliCookie),await gl.spiderInit(e),gl.cfgObj.code=0,gl.catOpenStatus=!0,gl.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await gl.setClasses(),this.classes=gl.classes}async setFilterObj(){ Line truncated
`,""))}let r={},i=n.html(),s=n('[class="play-list"]'),u=1;for(let f of s){let c=`\u64AD\u653E\u8FDE\u63A5-${u}`,p=[];for(let m of n(f).find("a")){let h=m.attribs.title,g=m.attribs.href;p.push(h+"$"+g)}r[c]=p.join("#"),u=u+1}u=1;let a=n('[class="con4"]');for(let f of a){let c=`\u78C1\u529B\u94FE\u63A5-${u}`,p=[],m=c,h=n(n(f).find("div")).find("a")[0].attribs.href;h!=="javascript:void(0);"&&(p.push(m+"$"+h),r[c]=p.join("#"),u=u+1)}return e.vod_play_url=de.values(r).join("$$$"),e.vod_play_from=de.keys(r).join("$$$"),e}async setHomeVod(){let n=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(n)}async setDetail(n){let e=await this.getHtml(this.siteUrl+n);this.vodDetail=await this.parseVodDetailFromDoc(e)}getExtend(n){if(n.class!==void 0&&n.class!=="\u5168\u90E8")return n.class}async setCategory(n,e,l,t){let r=this.getExtend(t)??n,i;r===n?i=this.siteUrl+r:parseInt(e)===1?i=this.siteUrl+r:i=this.siteUrl+r+`index${e}.html`;let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDoc(s)}async setPlay(flag,id,flags){if(flag.indexOf("\u78C1\u529B")>-1)this.playUrl=id;else{let idSplitList=id.split("-"),flag_id=parseInt(idSplitList[1]),episode=parseInt(idSplitList[2].split(".")[0]),$=await this.getHtml(this.siteUrl+id),playJsUrl=Ml(/<script type="text\/javascript" src="(.*?)">/,$.html()),playJsContent=await this.fetch(this.siteUrl+playJsUrl,null,this.getHeader()),playUrlListStr=Ml(/var VideoListJson=(.*?),urlinfo=/,playJsContent),playDic=eval(playUrlListStr);if(this.playUrl=playDic[flag_id][1][episode].split("$")[1],this.playUrl.indexOf("m3u8")===-1){let n=await this.fetch(this.playUrl,null,this.getHeader());this.playUrl=Ml(/url: '(.*?)'/,n)}}}GBKEncode(n){var e=33088;n+="";for(var l=[],t=63,r=0;r<n.length;r++){var i=n.charCodeAt(r);if(i<128)l.push(i);else{var s=kX.indexOf(i);~s?(s+=e,l.push(255&s>>8,255&s)):l.push(t)}}return l}encode(n){let e="";for(let l of n){let t=this.GBKEncode(l);for(let r=0;r<t.length;r++)t[r]="%"+("0"+t[r].toString(16)).substr(-2).toUpperCase();e=e+t.join("")}return e}async setSearch(n,e){let l={searchword:this.encode(n)},t=await this.post(this.siteUrl+"/search.asp",l,this.getHeader(),"form",1),r=dt(dE(t,"gb2312"));this.vodList=await this.parseVodShortListFromDocBySearch(r)}},da=new H5;async function NEe(n){await da.init(n)}async function IEe(n){return await da.home(n)}async function CEe(){return await da.homeVod()}async function kEe(n,e,l,t){return await da.category(n,e,l,t)}async function PEe(n){return await da.detail(n)}async function DEe(n,e,l){return await da.play(n,e,l)}async function LEe(n,e){return await da.search(n,e)}function GPe(){return{init:NEe,home:IEe,homeVod:CEe,category:kEe,detail:PEe,play:DEe,search:LEe}}var pT=class extends H5{constructor(){super(),this.siteUrl="https://b.aqdyje.com",this.removeKey="\u9A91\u5175\u8425"}getName(){return"\u{1F51E}\u2503\u7231\u60C5\u7535\u5F71\u7F5118+\u2503\u{1F51E}"}getAppName(){return"\u7231\u60C5\u7535\u5F71\u7F5118+"}getJSName(){return"lovemovie18"}getType(){return 3}async parseVodShortListFromDocBySearch(e){let l=e('[class="show-list"]').find("li"),t=[];for(let r of l){let i=new Bn;i.vod_id=e(r).find("a")[0].attribs.href;let s=e(r).find("img")[0];i.vod_pic=s.attribs.src,i.vod_name=s.attribs.alt,i.vod_remarks=e(e(r).find('[class="type fn-left"]')).text().replace("\u7C7B\u578B\uFF1A",""),(i.vod_remarks==="\u793E\u5904\u7247"||i.vod_remarks==="\u793E\u4FDD\u7247"||i.vod_remarks==="\u64B8\u4E1D\u7247"||i.vod_remarks==="\u64B8\u4E1D\u52A8\u6F2B")&&t.push(i)}return t}async getFilter(e){let l=await this.getHtml(this.siteUrl+e),t=[],r={key:"class",name:"\u7C7B\u578B",value:[]};for(let i of l('[class="subnav-tv fn-left"]').find("a")){let s=l(i).text(),u=i.attribs.href;r.value.push(this.getFliterDic(s,u))}return r.value.length>1&&t.push(r),t}async setClasses(){let e=await this.getHtml(),l=e('[class="nav-item drop-down "]');this.classes=[];for(let t of l){let r=e(t).find("a")[0],i=e(r).text(),s=r.attribs.href;i===this.removeKey&&(this.classes.push(this.getTypeDic(i,s)),this.filterObj[s]=await this.getFilter(s))}}async setCategory(e,l,t,r){let i=this.getExtend(r)??e,s;parseInt(l)===1?s=this.siteUrl+i:s=this.siteUrl+i+`index${l}.html`;let u=await this.getHtml(s);this.vodList=await this.parseVodShortListFromDoc(u)}},dl=new pT;var dT=class extends Pl{constructor(){super()}getName(){return dl.getName()}getAppName(){return dl.getAppName()}getJSName(){return dl.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await dl.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await dl.initCookie(e.server.config.biliCookie),await dl.spiderInit(e),dl.cfgObj.code=0,dl.catOpenStatus=!0,dl.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await dl.setClasses(),this.classes=dl.classes}async setFilterObj(){ Line truncated
`),a=e(s).find("a"),f=[{n:"\u5168\u90E8",v:r}],c=t.toString();for(let p of a){let m=e(p).text().replaceAll(`
`,""),h=p.attribs.href;h!==void 0&&f.push({n:m,v:h})}u=u.filter(p=>p!==""),this.filterObj[r].push({key:c,name:u[0],value:f})}let i=e('[id="side-menu"]').find("li");for(let s of i){let u=e(s).find("a")[0].attribs.href;if(u!==void 0&&u.indexOf(this.siteUrl)>-1){let a={type_name:e(s).text(),type_id:u};this.classes.push(a)}}}async setHomeVod(){let e=await this.getHtml(this.siteUrl);this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,l,t,r){r[1]!==void 0&&r[1]!=="1"&&(e=r[1]),await this.jadeLog.info(`tid = ${e}`);let i="";e.indexOf(this.siteUrl)>-1?i=e+l.toString()+".html":i=this.siteUrl,this.limit=36;let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDoc(s)}async setDetail(e){let l=await this.getHtml(e),t=Ml(/video\/(\w+).html/,e);this.vodDetail=await this.parseVodDetailFromDoc(l,t)}async setPlay(e,l,t){this.playUrl=l,this.playHeader={}}async setSearch(e,l){let t=this.siteUrl+"search/"+encodeURIComponent(e),r=await this.getHtml(t);this.vodList=await this.parseVodShortListFromDoc(r)}async proxy(e,l){return super.proxy(e,l)}},hl=new hT;var mT=class extends Pl{constructor(){super()}getName(){return hl.getName()}getAppName(){return hl.getAppName()}getJSName(){return hl.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await hl.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await hl.initCookie(e.server.config.biliCookie),await hl.spiderInit(e),hl.cfgObj.code=0,hl.catOpenStatus=!0,hl.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,l)}async setClasses(){await hl.setClasses(),this.classes=hl.classes}async setFilterObj(){await hl.setFilterObj(),this.filterObj=hl.filterObj}async setHomeVod(){await hl.setHomeVod(),this.homeVodList=hl.homeVodList}async setCategory(e,l,t,r){await hl.setCategory(e,l,t,r),this.vodList=hl.vodList}async setDetail(e){await hl.setDetail(e),this.vodDetail=hl.vodDetail}async setPlay(e,l,t){await hl.setPlay(e,l,t),this.playUrl=hl.playUrl,this.result=hl.result}async setSearch(e,l,t){await hl.setSearch(e,l,t),this.vodList=hl.vodList,this.result=hl.result}async setProxy(e,l){return await hl.proxy(e,l)}},Us=new mT;async function UX(n,e){return await Us.init(n,e)}async function BX(n,e){return await Us.home(n,e)}async function $Ee(n,e){return await Us.homeVod(n,e)}async function HX(n,e){return await Us.category(n,e)}async function qX(n,e){return await Us.detail(n,e)}async function VX(n,e){return await Us.play(n,e)}async function zX(n,e){return await Us.search(n,e)}async function jEe(n,e){return await Us.proxy(n,e)}var GX={meta:{key:hl.getJSName(),name:hl.getName(),type:hl.getType()},api:async n=>{n.post("/init",UX),n.post("/home",BX),n.post("/category",HX),n.post("/detail",qX),n.post("/play",VX),n.post("/search",zX),n.get("/proxy/:what/:ids/:end",jEe)},spider:{init:UX,home:BX,homeVod:$Ee,category:HX,detail:qX,play:VX,search:zX}};var gT=class extends kl{constructor(){super(),this.siteUrl="https://hsck12.shop/"}getName(){return"\u{1F51E}\u2503\u9EC4\u8272\u4ED3\u5E93\u2503\u{1F51E}"}getAppName(){return"\u9EC4\u8272\u4ED3\u5E93"}getJSName(){return"hscangku"}getType(){return 3}async parseVodShortListFromDoc(e){let l=[],t=e('[class="stui-vodlist clearfix"]').find("li");for(let r of t){let i=new Bn,s=e(r).find("a")[0];i.vod_id=s.attribs.href,i.vod_name=s.attribs.title,i.vod_pic=s.attribs["data-original"],l.push(i)}return l}async parseVodDetailFromDoc(e){let l=new tl,t=e(e('[class="stui-pannel__head clearfix"]')[1]).find("h3"),i=e("div.stui-pannel-bd > div").find("video")[0];return l.vod_name=t.text(),l.vod_pic=i.attribs.poster,l.vod_play_from="\u9EC4\u8272\u4ED3\u5E93",l.vod_play_url=e(i).find("source")[0].attribs.src,l}async setClasses(){this.classes=[{type_name:"\u56FD\u4EA7\u89C6\u9891",type_id:"?type=gc"},{type_name:"\u56FD\u4EA7\u65B0\u7247",type_id:"?type=ycgc"},{type_name:"\u65E0\u7801\u4E2D\u6587\u5B57\u5E55",type_id:"?type=wz"},{type_name:"\u6709\u7801\u4E2D\u6587\u5B57\u5E55",type_id:"?type=yz"},{type_name:"\u65E5\u672C\u65E0\u7801",type_id:"?type=rw"}]}async setCategory(e,l,t,r){let i=this.siteUrl+e+"&p="+l.toString(),s=await this.fetch(i,null,this.getHeader());if(this.limit=40,s!==null){let u=dt(s);this.vodList=await this.parseVodShortListFromDoc(u),this.total=parseInt(u('[class="active"]').find("span").text())}}async setDetail(e){let l=this.siteUrl+e,t=await this.fetch(l,null,this.getHeader());if(t!==null){let r=dt(t);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,l,t){this.playUrl=l,this.playHeader={}}},ml=new gT;var yT=class extends Pl{constructor(){super()}getName(){return ml.getName()}getAppName(){return ml.getAppName()}getJSName(){return ml.getJSName()}async init(e,l){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await ml Line truncated
/*! Bundled license information:
uri-js/dist/es5/uri.all.js:
+1 -1
View File
@@ -1 +1 @@
5413385930b3f95e55a36c821e3a1779
ce7057ea0547c6dfc6cd21eabeadd1bc
+36 -36
View File
@@ -78,7 +78,7 @@ caused by: `+MO(l,e)):n},Fle=t=>MO(t,new Set),$O=(t,e,n)=>{if(!u1(t))return"";le
`:""}
${t}
return o
`}});var vN=k((ANe,gN)=>{"use strict";gN.exports=g2e;function g2e(t){let{secret:e,censor:n,compileRestore:l,serialize:r,groupRedact:i,nestedRedact:s,wildcards:a,wcLen:u}=t,o=[{secret:e,censor:n,compileRestore:l}];return r!==!1&&o.push({serialize:r}),u>0&&o.push({groupRedact:i,nestedRedact:s,wildcards:a,wcLen:u}),Object.assign(...o)}});var bN=k((ONe,EN)=>{"use strict";var _N=sN(),v2e=oN(),_2e=pN(),E2e=yN(),{groupRedact:b2e,nestedRedact:w2e}=Oh(),S2e=vN(),T2e=p9(),x2e=_N(),Nh=t=>t;Nh.restore=Nh;var A2e="[REDACTED]";Ch.rx=T2e;Ch.validator=_N;EN.exports=Ch;function Ch(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,l=t.remove;if(l===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let r=l===!0?void 0:"censor"in t?t.censor:A2e,i=typeof r=="function",s=i&&r.length>1;if(e.length===0)return n||Nh;x2e({paths:e,serialize:n,censor:r});let{wildcards:a,wcLen:u,secret:o}=v2e({paths:e,censor:r}),c=E2e({secret:o,wcLen:u}),f="strict"in t?t.strict:!0;return _2e({secret:o,wcLen:u,serialize:n,strict:f,isCensorFct:i,censorFctTakesPath:s},S2e({secret:o,censor:r,compileRestore:c,serialize:n,groupRedact:b2e,nestedRedact:w2e,wildcards:a,wcLen:u}))}});var Jo=k((NNe,wN)=>{"use strict";var O2e=Symbol("pino.setLevel"),N2e=Symbol("pino.getLevel"),C2e=Symbol("pino.levelVal"),I2e=Symbol("pino.levelComp"),R2e=Symbol("pino.useLevelLabels"),k2e=Symbol("pino.useOnlyCustomLevels"),D2e=Symbol("pino.mixin"),P2e=Symbol("pino.lsCache"),L2e=Symbol("pino.chindings"),F2e=Symbol("pino.asJson"),j2e=Symbol("pino.write"),U2e=Symbol("pino.redactFmt"),M2e=Symbol("pino.time"),$2e=Symbol("pino.timeSliceIndex"),B2e=Symbol("pino.stream"),H2e=Symbol("pino.stringify"),V2e=Symbol("pino.stringifySafe"),q2e=Symbol("pino.stringifiers"),z2e=Symbol("pino.end"),G2e=Symbol("pino.formatOpts"),J2e=Symbol("pino.messageKey"),K2e=Symbol("pino.errorKey"),X2e=Symbol("pino.nestedKey"),W2e=Symbol("pino.nestedKeyStr"),Y2e=Symbol("pino.mixinMergeStrategy"),Q2e=Symbol("pino.msgPrefix"),Z2e=Symbol("pino.wildcardFirst"),e3e=Symbol.for("pino.serializers"),t3e=Symbol.for("pino.formatters"),n3e=Symbol.for("pino.hooks"),l3e=Symbol.for("pino.metadata");wN.exports={setLevelSym:O2e,getLevelSym:N2e,levelValSym:C2e,levelCompSym:I2e,useLevelLabelsSym:R2e,mixinSym:D2e,lsCacheSym:P2e,chindingsSym:L2e,asJsonSym:F2e,writeSym:j2e,serializersSym:e3e,redactFmtSym:U2e,timeSym:M2e,timeSliceIndexSym:$2e,streamSym:B2e,stringifySym:H2e,stringifySafeSym:V2e,stringifiersSym:q2e,endSym:z2e,formatOptsSym:G2e,messageKeySym:J2e,errorKeySym:K2e,nestedKeySym:X2e,wildcardFirstSym:Z2e,needsMetadataGsym:l3e,useOnlyCustomLevelsSym:k2e,formattersSym:t3e,hooksSym:n3e,nestedKeyStrSym:W2e,mixinMergeStrategySym:Y2e,msgPrefixSym:Q2e}});var kh=k((CNe,AN)=>{"use strict";var Rh=bN(),{redactFmtSym:r3e,wildcardFirstSym:f9}=Jo(),{rx:Ih,validator:i3e}=Rh,SN=i3e({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),TN="[Redacted]",xN=!1;function s3e(t,e){let{paths:n,censor:l}=a3e(t),r=n.reduce((a,u)=>{Ih.lastIndex=0;let o=Ih.exec(u),c=Ih.exec(u),f=o[1]!==void 0?o[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):o[0];if(f==="*"&&(f=f9),c===null)return a[f]=null,a;if(a[f]===null)return a;let{index:m}=c,d=`${u.substr(m,u.length-1)}`;return a[f]=a[f]||[],f!==f9&&a[f].length===0&&a[f].push(...a[f9]||[]),f===f9&&Object.keys(a).forEach(function(y){a[y]&&a[y].push(d)}),a[f].push(d),a},{}),i={[r3e]:Rh({paths:n,censor:l,serialize:e,strict:xN})},s=(...a)=>e(typeof l=="function"?l(...a):l);return[...Object.keys(r),...Object.getOwnPropertySymbols(r)].reduce((a,u)=>{if(r[u]===null)a[u]=o=>s(o,[u]);else{let o=typeof l=="function"?(c,f)=>l(c,[u,...f]):l;a[u]=Rh({paths:r[u],censor:o,serialize:e,strict:xN})}return a},i)}function a3e(t){if(Array.isArray(t))return t={paths:t,censor:TN},SN(t),t;let{paths:e,censor:n=TN,remove:l}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return l===!0&&(n=void 0),SN({paths:e,censor:n}),{paths:e,censor:n}}AN.exports=s3e});var NN=k((INe,ON)=>{"use strict";var u3e=()=>"",o3e=()=>`,"time":${Date.now()}`,c3e=()=>`,"time":${Math.round(Date.now()/1e3)}`,p3e=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;ON.exports={nullTime:u3e,epochTime:o3e,unixTime:c3e,isoTime:p3e}});var IN=k((RNe,CN)=>{"use strict";function f3e(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}CN.exports=d3e;function d3e(t,e,n){var l=n&&n.stringify||f3e,r=1;if(typeof t=="object"&&t!==null){var i=e.length+r;if(i===1)return t;var s=new Array(i);s[0]=l(t);for(var a=1;a<i;a++)s[a]=l(e[a]);return s.join(" ")}if(typeof t!="string")return t;var u=e.length;if(u===0)return t;for(var o="",c=1-r,f=-1,m=t&&t.length||0,d=0;d<m;){if(t.charCodeAt(d)===37&&d+1<m){switch(f=f>-1?f:0,t.charCodeAt(d+1)){case 100:case 102:if(c>=u||e[c]==null)Line truncated
`}});var vN=k((ANe,gN)=>{"use strict";gN.exports=g2e;function g2e(t){let{secret:e,censor:n,compileRestore:l,serialize:r,groupRedact:i,nestedRedact:s,wildcards:a,wcLen:u}=t,o=[{secret:e,censor:n,compileRestore:l}];return r!==!1&&o.push({serialize:r}),u>0&&o.push({groupRedact:i,nestedRedact:s,wildcards:a,wcLen:u}),Object.assign(...o)}});var bN=k((ONe,EN)=>{"use strict";var _N=sN(),v2e=oN(),_2e=pN(),E2e=yN(),{groupRedact:b2e,nestedRedact:w2e}=Oh(),S2e=vN(),T2e=p9(),x2e=_N(),Nh=t=>t;Nh.restore=Nh;var A2e="[REDACTED]";Ch.rx=T2e;Ch.validator=_N;EN.exports=Ch;function Ch(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,l=t.remove;if(l===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let r=l===!0?void 0:"censor"in t?t.censor:A2e,i=typeof r=="function",s=i&&r.length>1;if(e.length===0)return n||Nh;x2e({paths:e,serialize:n,censor:r});let{wildcards:a,wcLen:u,secret:o}=v2e({paths:e,censor:r}),c=E2e({secret:o,wcLen:u}),f="strict"in t?t.strict:!0;return _2e({secret:o,wcLen:u,serialize:n,strict:f,isCensorFct:i,censorFctTakesPath:s},S2e({secret:o,censor:r,compileRestore:c,serialize:n,groupRedact:b2e,nestedRedact:w2e,wildcards:a,wcLen:u}))}});var Jo=k((NNe,wN)=>{"use strict";var O2e=Symbol("pino.setLevel"),N2e=Symbol("pino.getLevel"),C2e=Symbol("pino.levelVal"),I2e=Symbol("pino.levelComp"),R2e=Symbol("pino.useLevelLabels"),k2e=Symbol("pino.useOnlyCustomLevels"),D2e=Symbol("pino.mixin"),P2e=Symbol("pino.lsCache"),L2e=Symbol("pino.chindings"),F2e=Symbol("pino.asJson"),j2e=Symbol("pino.write"),U2e=Symbol("pino.redactFmt"),M2e=Symbol("pino.time"),$2e=Symbol("pino.timeSliceIndex"),B2e=Symbol("pino.stream"),H2e=Symbol("pino.stringify"),V2e=Symbol("pino.stringifySafe"),q2e=Symbol("pino.stringifiers"),z2e=Symbol("pino.end"),G2e=Symbol("pino.formatOpts"),J2e=Symbol("pino.messageKey"),K2e=Symbol("pino.errorKey"),X2e=Symbol("pino.nestedKey"),W2e=Symbol("pino.nestedKeyStr"),Y2e=Symbol("pino.mixinMergeStrategy"),Q2e=Symbol("pino.msgPrefix"),Z2e=Symbol("pino.wildcardFirst"),e3e=Symbol.for("pino.serializers"),t3e=Symbol.for("pino.formatters"),n3e=Symbol.for("pino.hooks"),l3e=Symbol.for("pino.metadata");wN.exports={setLevelSym:O2e,getLevelSym:N2e,levelValSym:C2e,levelCompSym:I2e,useLevelLabelsSym:R2e,mixinSym:D2e,lsCacheSym:P2e,chindingsSym:L2e,asJsonSym:F2e,writeSym:j2e,serializersSym:e3e,redactFmtSym:U2e,timeSym:M2e,timeSliceIndexSym:$2e,streamSym:B2e,stringifySym:H2e,stringifySafeSym:V2e,stringifiersSym:q2e,endSym:z2e,formatOptsSym:G2e,messageKeySym:J2e,errorKeySym:K2e,nestedKeySym:X2e,wildcardFirstSym:Z2e,needsMetadataGsym:l3e,useOnlyCustomLevelsSym:k2e,formattersSym:t3e,hooksSym:n3e,nestedKeyStrSym:W2e,mixinMergeStrategySym:Y2e,msgPrefixSym:Q2e}});var kh=k((CNe,AN)=>{"use strict";var Rh=bN(),{redactFmtSym:r3e,wildcardFirstSym:f9}=Jo(),{rx:Ih,validator:i3e}=Rh,SN=i3e({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),TN="[Redacted]",xN=!1;function s3e(t,e){let{paths:n,censor:l}=a3e(t),r=n.reduce((a,u)=>{Ih.lastIndex=0;let o=Ih.exec(u),c=Ih.exec(u),f=o[1]!==void 0?o[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):o[0];if(f==="*"&&(f=f9),c===null)return a[f]=null,a;if(a[f]===null)return a;let{index:m}=c,d=`${u.substr(m,u.length-1)}`;return a[f]=a[f]||[],f!==f9&&a[f].length===0&&a[f].push(...a[f9]||[]),f===f9&&Object.keys(a).forEach(function(y){a[y]&&a[y].push(d)}),a[f].push(d),a},{}),i={[r3e]:Rh({paths:n,censor:l,serialize:e,strict:xN})},s=(...a)=>e(typeof l=="function"?l(...a):l);return[...Object.keys(r),...Object.getOwnPropertySymbols(r)].reduce((a,u)=>{if(r[u]===null)a[u]=o=>s(o,[u]);else{let o=typeof l=="function"?(c,f)=>l(c,[u,...f]):l;a[u]=Rh({paths:r[u],censor:o,serialize:e,strict:xN})}return a},i)}function a3e(t){if(Array.isArray(t))return t={paths:t,censor:TN},SN(t),t;let{paths:e,censor:n=TN,remove:l}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return l===!0&&(n=void 0),SN({paths:e,censor:n}),{paths:e,censor:n}}AN.exports=s3e});var NN=k((INe,ON)=>{"use strict";var u3e=()=>"",o3e=()=>`,"time":${Date.now()}`,c3e=()=>`,"time":${Math.round(Date.now()/1e3)}`,p3e=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;ON.exports={nullTime:u3e,epochTime:o3e,unixTime:c3e,isoTime:p3e}});var IN=k((RNe,CN)=>{"use strict";function f3e(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}CN.exports=d3e;function d3e(t,e,n){var l=n&&n.stringify||f3e,r=1;if(typeof t=="object"&&t!==null){var i=e.length+r;if(i===1)return t;var s=new Array(i);s[0]=l(t);for(var a=1;a<i;a++)s[a]=l(e[a]);return s.join(" ")}if(typeof t!="string")return t;var u=e.length;if(u===0)return t;for(var o="",c=1-r,f=-1,m=t&&t.length||0,d=0;d<m;){if(t.charCodeAt(d)===37&&d+1<m){switch(f=f>-1?f:0,t.charCodeAt(d+1)){case 100:case 102:if(c>=u||e[c]==null)Line truncated
${w}`,v=`,
${w}`);let te=Math.min(E.length,s),Q=0;for(;Q<te-1;Q++){let ce=a(String(Q),E,y,_,S,w);g+=ce!==void 0?ce:"null",g+=v}let W=a(String(Q),E,y,_,S,w);if(g+=W!==void 0?W:"null",E.length-1>s){let ce=E.length-s-1;g+=`${v}"... ${gu(ce)} not stringified"`}return S!==""&&(g+=`
${x}`),y.pop(),`[${g}]`}let O=Object.keys(E),N=O.length;if(N===0)return"{}";if(i<y.length+1)return'"[Object]"';let I="",U="";S!==""&&(w+=S,v=`,
@@ -102,10 +102,10 @@ ${w}`),y.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";
`:""},this._extScope=e,this._scope=new _r.Scope({parent:e}),this._nodes=[new xm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let l=this._extScope.value(e,n);return(this._values[l.prefix]||(this._values[l.prefix]=new Set)).add(l),l}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,l,r){let i=this._scope.toName(n);return l!==void 0&&r&&(this._constants[i.str]=l),this._leafNode(new _m(e,i,l)),i}const(e,n,l){return this._def(_r.varKinds.const,e,n,l)}let(e,n,l){return this._def(_r.varKinds.let,e,n,l)}var(e,n,l){return this._def(_r.varKinds.var,e,n,l)}assign(e,n,l){return this._leafNode(new C9(e,n,l))}add(e,n){return this._leafNode(new Em(e,Rt.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Wt.nil&&this._leafNode(new Tm(e)),this}object(...e){let n=["{"];for(let[l,r]of e)n.length>1&&n.push(","),n.push(l),(l!==r||this.opts.es5)&&(n.push(":"),(0,Wt.addCodeArg)(n,r));return n.push("}"),new Wt._Code(n)}if(e,n,l){if(this._blockNode(new Eu(e)),n&&l)this.code(n).else().code(l).endIf();else if(n)this.code(n).endIf();else if(l)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Eu(e))}else(){return this._elseNode(new Qo)}endIf(){return this._endBlockNode(Eu,Qo)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new Am(e),n)}forRange(e,n,l,r,i=this.opts.es5?_r.varKinds.var:_r.varKinds.let){let s=this._scope.toName(e);return this._for(new Om(i,s,n,l),()=>r(s))}forOf(e,n,l,r=_r.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Wt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Wt._)`${s}.length`,a=>{this.var(i,(0,Wt._)`${s}[${a}]`),l(i)})}return this._for(new I9("of",r,i,n),()=>l(i))}forIn(e,n,l,r=this.opts.es5?_r.varKinds.var:_r.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Wt._)`Object.keys(${n})`,l);let i=this._scope.toName(e);return this._for(new I9("in",r,i,n),()=>l(i))}endFor(){return this._endBlockNode(bu)}label(e){return this._leafNode(new bm(e))}break(e){return this._leafNode(new wm(e))}return(e){let n=new v1;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(v1)}try(e,n,l){if(!n&&!l)throw new Error('CodeGen: "try" without "catch" and "finally"');let r=new Nm;if(this._blockNode(r),this.code(e),n){let i=this.name("e");this._currNode=r.catch=new _1(i),n(i)}return l&&(this._currNode=r.finally=new E1,this.code(l)),this._endBlockNode(_1,E1)}throw(e){return this._leafNode(new Sm(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let l=this._nodes.length-n;if(l<0||e!==void 0&&l!==e)throw new Error(`CodeGen: wrong number of nodes: ${l} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Wt.nil,l,r){return this._blockNode(new g1(e,n,l)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(g1)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let l=this._currNode;if(l instanceof e||n&&l instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof Eu))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};Rt.CodeGen=Cm;function wu(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function R9(t,e){return e instanceof Wt._CodeOrName?wu(t,e.names):t}function Zo(t,e,n){if(t instanceof Wt.Name)return l(t);if(!r(t))return t;return new Wt._Code(t._items.reduce((i,s)=>(s instanceof Wt.Name&&(s=l(s)),s instanceof Wt._Code?i.push(...s._items):i.push(s),i),[]));function l(i){let s=n[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function r(i){return i instanceof Wt._Code&&i._items.some(s=>s instanceof Wt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function Zse(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function oI(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Wt._)`!${Im(t)}`}Rt.not=oI;var eae=cI(Rt.operators.AND);function tae(...t){return t.reduce(eae)}Rt.and=tae;var nae=cI(Rt.operators.OR);function lae(...t){return t.reduce(nae)}Rt.or=lae;function cI(t){return(e,n)=>e===Wt.nil?n:n===Wt.nil?e:(0,Wt._)`${Im(e)} ${t} ${Im(n)}`}function Im(t){return t instanceof Wt.Name?t:(0, Line truncated
|| (${s} == "string" && ${r} && ${r} == +${r})`).assign(a,(0,Ot._)`+${r}`);return;case"integer":l.elseIf((0,Ot._)`${s} === "boolean" || ${r} === null
|| (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(a,(0,Ot._)`+${r}`);return;case"boolean":l.elseIf((0,Ot._)`${r} === "false" || ${r} === 0 || ${r} === null`).assign(a,!1).elseIf((0,Ot._)`${r} === "true" || ${r} === 1`).assign(a,!0);return;case"null":l.elseIf((0,Ot._)`${r} === "" || ${r} === 0 || ${r} === false`),l.assign(a,null);return;case"array":l.elseIf((0,Ot._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${r} === null`).assign(a,(0,Ot._)`[${r}]`)}}}function Bae({gen:t,parentData:e,parentDataProperty:n},l){t.if((0,Ot._)`${e} !== undefined`,()=>t.assign((0,Ot._)`${e}[${n}]`,l))}function Fm(t,e,n,l=w1.Correct){let r=l===w1.Correct?Ot.operators.EQ:Ot.operators.NEQ,i;switch(t){case"null":return(0,Ot._)`${e} ${r} null`;case"array":i=(0,Ot._)`Array.isArray(${e})`;break;case"object":i=(0,Ot._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,Ot._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,Ot._)`typeof ${e} ${r} ${t}`}return l===w1.Correct?i:(0,Ot.not)(i);function s(a=Ot.nil){return(0,Ot.and)((0,Ot._)`typeof ${e} == "number"`,a,n?(0,Ot._)`isFinite(${e})`:Ot.nil)}}w2.checkDataType=Fm;function jm(t,e,n,l){if(t.length===1)return Fm(t[0],e,n,l);let r,i=(0,AI.toHash)(t);if(i.array&&i.object){let s=(0,Ot._)`typeof ${e} != "object"`;r=i.null?s:(0,Ot._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else r=Ot.nil;i.number&&delete i.integer;for(let s in i)r=(0,Ot.and)(r,Fm(s,e,n,l));return r}w2.checkDataTypes=jm;var Hae={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Ot._)`{type: ${t}}`:(0,Ot._)`{type: ${e}}`};function Um(t){let e=Vae(t);(0,Fae.reportError)(e,Hae)}w2.reportTypeError=Um;function Vae(t){let{gen:e,data:n,schema:l}=t,r=(0,AI.schemaRefOrVal)(t,l,"type");return{gen:e,keyword:"type",data:n,schema:l.type,schemaCode:r,schemaValue:r,parentSchema:l,params:{},it:t}}});var II=k(P9=>{"use strict";Object.defineProperty(P9,"__esModule",{value:!0});P9.assignDefaults=void 0;var n0=st(),qae=Nt();function zae(t,e){let{properties:n,items:l}=t.schema;if(e==="object"&&n)for(let r in n)CI(t,r,n[r].default);else e==="array"&&Array.isArray(l)&&l.forEach((r,i)=>CI(t,i,r.default))}P9.assignDefaults=zae;function CI(t,e,n){let{gen:l,compositeRule:r,data:i,opts:s}=t;if(n===void 0)return;let a=(0,n0._)`${i}${(0,n0.getProperty)(e)}`;if(r){(0,qae.checkStrictMode)(t,`default is ignored for: ${a}`);return}let u=(0,n0._)`${a} === undefined`;s.useDefaults==="empty"&&(u=(0,n0._)`${u} || ${a} === null || ${a} === ""`),l.if(u,(0,n0._)`${a} = ${(0,n0.stringify)(n)}`)}});var S2=k(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.validateUnion=Kn.validateArray=Kn.usePattern=Kn.callValidateCode=Kn.schemaProperties=Kn.allSchemaProperties=Kn.noPropertyInData=Kn.propertyInData=Kn.isOwnProperty=Kn.hasPropFunc=Kn.reportMissingProp=Kn.checkMissingProp=Kn.checkReportMissingProp=void 0;var ol=st(),Mm=Nt(),Ss=X3(),Gae=Nt();function Jae(t,e){let{gen:n,data:l,it:r}=t;n.if(Bm(n,l,e,r.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ol._)`${e}`},!0),t.error()})}Kn.checkReportMissingProp=Jae;function Kae({gen:t,data:e,it:{opts:n}},l,r){return(0,ol.or)(...l.map(i=>(0,ol.and)(Bm(t,e,i,n.ownProperties),(0,ol._)`${r} = ${i}`)))}Kn.checkMissingProp=Kae;function Xae(t,e){t.setParams({missingProperty:e},!0),t.error()}Kn.reportMissingProp=Xae;function RI(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ol._)`Object.prototype.hasOwnProperty`})}Kn.hasPropFunc=RI;function $m(t,e,n){return(0,ol._)`${RI(t)}.call(${e}, ${n})`}Kn.isOwnProperty=$m;function Wae(t,e,n,l){let r=(0,ol._)`${e}${(0,ol.getProperty)(n)} !== undefined`;return l?(0,ol._)`${r} && ${$m(t,e,n)}`:r}Kn.propertyInData=Wae;function Bm(t,e,n,l){let r=(0,ol._)`${e}${(0,ol.getProperty)(n)} === undefined`;return l?(0,ol.or)(r,(0,ol.not)($m(t,e,n))):r}Kn.noPropertyInData=Bm;function kI(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Kn.allSchemaProperties=kI;function Yae(t,e){return kI(e).filter(n=>!(0,Mm.alwaysValidSchema)(t,e[n]))}Kn.schemaProperties=Yae;function Qae({schemaCode:t,data:e,it:{gen:n,topSchemaRef:l,schemaPath:r,errorPath:i},it:s},a,u,o){let c=o?(0,ol._)`${t}, ${e}, ${l}${r}`:e,f=[[Ss.default.instancePath,(0,ol.strConcat)(Ss.default.instancePath,i)],[Ss.default.parentData,s.parentData],[Ss.default.parentDataProperty,s.parentDataProperty],[Ss.default.rootData,Ss.default.rootData]];s.opts.dynamicRef&&f.push([Ss.default.dynamicAnchors,Ss.default.dynamicAnchors]);let m=(0,ol._)`${c}, ${n.object(...f)}`;return u!==ol.nil?(0,ol._)`${a}.call(${u}, ${m})`:(0,ol._)`${a}(${m})`}Kn.callValidateCode=Qae;var Zae=(0,ol._)`new RegExp`;function eue({gen:t,it:{opts:e}},n){let l=e.unicodeRegExp?"u":"",{regExp:r}=e.code,i=r(n,l);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,ol._)`${r.code==="new RegExp"?Zae:(0,Gae.useFunc)(t,r)}(${n}, ${l})`})}Kn.usePattern=eue;function tue(t){let{gen:e,data:n,keyword:l,it:r}=t,i=e.name("valid");if(r.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let u=e.const("len",(0,ol._)`${n}.length`);e.forRange("i",0,u,o=>{t.subschema({keyword:l,dataProp:o,dataPropType:Mm.Type.Num},i),e.if((0,ol.not)(i),a)})}}Kn.validateArray=tue;function nue(t){let{gen:e,schema:n,keyword:l,it:r}=t;if(! Line truncated
|| ${s} === "boolean" || ${r} === null`).assign(a,(0,Ot._)`[${r}]`)}}}function Bae({gen:t,parentData:e,parentDataProperty:n},l){t.if((0,Ot._)`${e} !== undefined`,()=>t.assign((0,Ot._)`${e}[${n}]`,l))}function Fm(t,e,n,l=w1.Correct){let r=l===w1.Correct?Ot.operators.EQ:Ot.operators.NEQ,i;switch(t){case"null":return(0,Ot._)`${e} ${r} null`;case"array":i=(0,Ot._)`Array.isArray(${e})`;break;case"object":i=(0,Ot._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,Ot._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,Ot._)`typeof ${e} ${r} ${t}`}return l===w1.Correct?i:(0,Ot.not)(i);function s(a=Ot.nil){return(0,Ot.and)((0,Ot._)`typeof ${e} == "number"`,a,n?(0,Ot._)`isFinite(${e})`:Ot.nil)}}w2.checkDataType=Fm;function jm(t,e,n,l){if(t.length===1)return Fm(t[0],e,n,l);let r,i=(0,AI.toHash)(t);if(i.array&&i.object){let s=(0,Ot._)`typeof ${e} != "object"`;r=i.null?s:(0,Ot._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else r=Ot.nil;i.number&&delete i.integer;for(let s in i)r=(0,Ot.and)(r,Fm(s,e,n,l));return r}w2.checkDataTypes=jm;var Hae={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Ot._)`{type: ${t}}`:(0,Ot._)`{type: ${e}}`};function Um(t){let e=Vae(t);(0,Fae.reportError)(e,Hae)}w2.reportTypeError=Um;function Vae(t){let{gen:e,data:n,schema:l}=t,r=(0,AI.schemaRefOrVal)(t,l,"type");return{gen:e,keyword:"type",data:n,schema:l.type,schemaCode:r,schemaValue:r,parentSchema:l,params:{},it:t}}});var II=k(P9=>{"use strict";Object.defineProperty(P9,"__esModule",{value:!0});P9.assignDefaults=void 0;var n0=st(),qae=Nt();function zae(t,e){let{properties:n,items:l}=t.schema;if(e==="object"&&n)for(let r in n)CI(t,r,n[r].default);else e==="array"&&Array.isArray(l)&&l.forEach((r,i)=>CI(t,i,r.default))}P9.assignDefaults=zae;function CI(t,e,n){let{gen:l,compositeRule:r,data:i,opts:s}=t;if(n===void 0)return;let a=(0,n0._)`${i}${(0,n0.getProperty)(e)}`;if(r){(0,qae.checkStrictMode)(t,`default is ignored for: ${a}`);return}let u=(0,n0._)`${a} === undefined`;s.useDefaults==="empty"&&(u=(0,n0._)`${u} || ${a} === null || ${a} === ""`),l.if(u,(0,n0._)`${a} = ${(0,n0.stringify)(n)}`)}});var S2=k(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.validateUnion=Kn.validateArray=Kn.usePattern=Kn.callValidateCode=Kn.schemaProperties=Kn.allSchemaProperties=Kn.noPropertyInData=Kn.propertyInData=Kn.isOwnProperty=Kn.hasPropFunc=Kn.reportMissingProp=Kn.checkMissingProp=Kn.checkReportMissingProp=void 0;var ol=st(),Mm=Nt(),Ss=X3(),Gae=Nt();function Jae(t,e){let{gen:n,data:l,it:r}=t;n.if(Bm(n,l,e,r.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ol._)`${e}`},!0),t.error()})}Kn.checkReportMissingProp=Jae;function Kae({gen:t,data:e,it:{opts:n}},l,r){return(0,ol.or)(...l.map(i=>(0,ol.and)(Bm(t,e,i,n.ownProperties),(0,ol._)`${r} = ${i}`)))}Kn.checkMissingProp=Kae;function Xae(t,e){t.setParams({missingProperty:e},!0),t.error()}Kn.reportMissingProp=Xae;function RI(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ol._)`Object.prototype.hasOwnProperty`})}Kn.hasPropFunc=RI;function $m(t,e,n){return(0,ol._)`${RI(t)}.call(${e}, ${n})`}Kn.isOwnProperty=$m;function Wae(t,e,n,l){let r=(0,ol._)`${e}${(0,ol.getProperty)(n)} !== undefined`;return l?(0,ol._)`${r} && ${$m(t,e,n)}`:r}Kn.propertyInData=Wae;function Bm(t,e,n,l){let r=(0,ol._)`${e}${(0,ol.getProperty)(n)} === undefined`;return l?(0,ol.or)(r,(0,ol.not)($m(t,e,n))):r}Kn.noPropertyInData=Bm;function kI(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Kn.allSchemaProperties=kI;function Yae(t,e){return kI(e).filter(n=>!(0,Mm.alwaysValidSchema)(t,e[n]))}Kn.schemaProperties=Yae;function Qae({schemaCode:t,data:e,it:{gen:n,topSchemaRef:l,schemaPath:r,errorPath:i},it:s},a,u,o){let c=o?(0,ol._)`${t}, ${e}, ${l}${r}`:e,f=[[Ss.default.instancePath,(0,ol.strConcat)(Ss.default.instancePath,i)],[Ss.default.parentData,s.parentData],[Ss.default.parentDataProperty,s.parentDataProperty],[Ss.default.rootData,Ss.default.rootData]];s.opts.dynamicRef&&f.push([Ss.default.dynamicAnchors,Ss.default.dynamicAnchors]);let m=(0,ol._)`${c}, ${n.object(...f)}`;return u!==ol.nil?(0,ol._)`${a}.call(${u}, ${m})`:(0,ol._)`${a}(${m})`}Kn.callValidateCode=Qae;var Zae=(0,ol._)`new RegExp`;function eue({gen:t,it:{opts:e}},n){let l=e.unicodeRegExp?"u":"",{regExp:r}=e.code,i=r(n,l);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,ol._)`${r.code==="new RegExp"?Zae:(0,Gae.useFunc)(t,r)}(${n}, ${l})`})}Kn.usePattern=eue;function tue(t){let{gen:e,data:n,keyword:l,it:r}=t,i=e.name("valid");if(r.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let u=e.const("len",(0,ol._)`${n}.length`);e.forRange("i",0,u,o=>{t.subschema({keyword:l,dataProp:o,dataPropType:Mm.Type.Num},i),e.if((0,ol.not)(i),a)})}}Kn.validateArray=tue;function nue(t){let{gen:e,schema:n,keyword:l,it:r}=t;if(! Line truncated
missingProperty: ${l},
depsCount: ${e},
deps: ${n}}`};var I0e={keyword:"dependencies",type:"object",schemaType:"object",error:Yr.error,code(t){let[e,n]=R0e(t);qR(t,e),zR(t,n)}};function R0e({schema:t}){let e={},n={};for(let l in t){if(l==="__proto__")continue;let r=Array.isArray(t[l])?e:n;r[l]=t[l]}return[e,n]}function qR(t,e=t.schema){let{gen:n,data:l,it:r}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let u=(0,$1.propertyInData)(n,l,s,r.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),r.allErrors?n.if(u,()=>{for(let o of a)(0,$1.checkReportMissingProp)(t,o)}):(n.if((0,Oy._)`${u} && (${(0,$1.checkMissingProp)(t,a,i)})`),(0,$1.reportMissingProp)(t,i),n.else())}}Yr.validatePropertyDeps=qR;function zR(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,C0e.alwaysValidSchema)(i,e[a])||(n.if((0,$1.propertyInData)(n,l,a,i.opts.ownProperties),()=>{let u=t.subschema({keyword:r,schemaProp:a},s);t.mergeValidEvaluated(u,s)},()=>n.var(s,!0)),t.ok(s))}Yr.validateSchemaDeps=zR;Yr.default=I0e});var KR=k(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var JR=st(),k0e=Nt(),D0e={message:"property name must be valid",params:({params:t})=>(0,JR._)`{propertyName: ${t.propertyName}}`},P0e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D0e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,k0e.alwaysValidSchema)(r,n))return;let i=e.name("valid");e.forIn("key",l,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,JR.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Ny.default=P0e});var Iy=k(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var K9=S2(),wr=st(),L0e=X3(),X9=Nt(),F0e={message:"must NOT have additional properties",params:({params:t})=>(0,wr._)`{additionalProperty: ${t.additionalProperty}}`},j0e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:F0e,code(t){let{gen:e,schema:n,parentSchema:l,data:r,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,X9.alwaysValidSchema)(s,n))return;let o=(0,K9.allSchemaProperties)(l.properties),c=(0,K9.allSchemaProperties)(l.patternProperties);f(),t.ok((0,wr._)`${i} === ${L0e.default.errors}`);function f(){e.forIn("key",r,S=>{!o.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(o.length>8){let E=(0,X9.schemaRefOrVal)(s,l.properties,"properties");w=(0,K9.isOwnProperty)(e,E,S)}else o.length?w=(0,wr.or)(...o.map(E=>(0,wr._)`${S} === ${E}`)):w=wr.nil;return c.length&&(w=(0,wr.or)(w,...c.map(E=>(0,wr._)`${(0,K9.usePattern)(t,E)}.test(${S})`))),(0,wr.not)(w)}function d(S){e.code((0,wr._)`delete ${r}[${S}]`)}function y(S){if(u.removeAdditional==="all"||u.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,X9.alwaysValidSchema)(s,n)){let w=e.name("valid");u.removeAdditional==="failing"?(_(S,w,!1),e.if((0,wr.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,wr.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:X9.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};Cy.default=j0e});var YR=k(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var U0e=i0(),XR=S2(),Ry=Nt(),WR=Iy(),M0e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:l,data:r,it:i}=t;i.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&WR.default.code(new U0e.KeywordCxt(i,WR.default,"additionalProperties"));let s=(0,XR.allSchemaProperties)(n);for(let f of s)i.definedProperties.add(f);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ry.mergeEvaluated.props(e,(0,Ry.toHash)(s),i.props));let a=s.filter(f=>!(0,Ry.alwaysValidSchema)(i,n[f]));if(a.length===0)return;let u=e.name("valid");for(let f of a)o(f)?c(f):(e.if((0,XR.propertyInData)(e,r,f,i.opts.ownProperties)),c(f),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function o(f){return i.opts.useDefaults&&!i.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};ky.default=M0e});var tk=k(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var QR=S2(),W9=st(),ZR=Nt(),ek=Nt(),$0e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:l,parentSchema:r,it:i}=t,{opts:s}=i,a=(0,QR.allSchemaProperties)(n),u=a.filter(_=>(0,ZR.alwaysValidSchema)(i,n[_]));if(a.length===0||u.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let o=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc Line truncated
deps: ${n}}`};var I0e={keyword:"dependencies",type:"object",schemaType:"object",error:Yr.error,code(t){let[e,n]=R0e(t);qR(t,e),zR(t,n)}};function R0e({schema:t}){let e={},n={};for(let l in t){if(l==="__proto__")continue;let r=Array.isArray(t[l])?e:n;r[l]=t[l]}return[e,n]}function qR(t,e=t.schema){let{gen:n,data:l,it:r}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let u=(0,$1.propertyInData)(n,l,s,r.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),r.allErrors?n.if(u,()=>{for(let o of a)(0,$1.checkReportMissingProp)(t,o)}):(n.if((0,Oy._)`${u} && (${(0,$1.checkMissingProp)(t,a,i)})`),(0,$1.reportMissingProp)(t,i),n.else())}}Yr.validatePropertyDeps=qR;function zR(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,C0e.alwaysValidSchema)(i,e[a])||(n.if((0,$1.propertyInData)(n,l,a,i.opts.ownProperties),()=>{let u=t.subschema({keyword:r,schemaProp:a},s);t.mergeValidEvaluated(u,s)},()=>n.var(s,!0)),t.ok(s))}Yr.validateSchemaDeps=zR;Yr.default=I0e});var KR=k(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var JR=st(),k0e=Nt(),D0e={message:"property name must be valid",params:({params:t})=>(0,JR._)`{propertyName: ${t.propertyName}}`},P0e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D0e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,k0e.alwaysValidSchema)(r,n))return;let i=e.name("valid");e.forIn("key",l,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,JR.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Ny.default=P0e});var Iy=k(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var K9=S2(),wr=st(),L0e=X3(),X9=Nt(),F0e={message:"must NOT have additional properties",params:({params:t})=>(0,wr._)`{additionalProperty: ${t.additionalProperty}}`},j0e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:F0e,code(t){let{gen:e,schema:n,parentSchema:l,data:r,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,X9.alwaysValidSchema)(s,n))return;let o=(0,K9.allSchemaProperties)(l.properties),c=(0,K9.allSchemaProperties)(l.patternProperties);f(),t.ok((0,wr._)`${i} === ${L0e.default.errors}`);function f(){e.forIn("key",r,S=>{!o.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(o.length>8){let E=(0,X9.schemaRefOrVal)(s,l.properties,"properties");w=(0,K9.isOwnProperty)(e,E,S)}else o.length?w=(0,wr.or)(...o.map(E=>(0,wr._)`${S} === ${E}`)):w=wr.nil;return c.length&&(w=(0,wr.or)(w,...c.map(E=>(0,wr._)`${(0,K9.usePattern)(t,E)}.test(${S})`))),(0,wr.not)(w)}function d(S){e.code((0,wr._)`delete ${r}[${S}]`)}function y(S){if(u.removeAdditional==="all"||u.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,X9.alwaysValidSchema)(s,n)){let w=e.name("valid");u.removeAdditional==="failing"?(_(S,w,!1),e.if((0,wr.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,wr.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:X9.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};Cy.default=j0e});var YR=k(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var U0e=i0(),XR=S2(),Ry=Nt(),WR=Iy(),M0e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:l,data:r,it:i}=t;i.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&WR.default.code(new U0e.KeywordCxt(i,WR.default,"additionalProperties"));let s=(0,XR.allSchemaProperties)(n);for(let f of s)i.definedProperties.add(f);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ry.mergeEvaluated.props(e,(0,Ry.toHash)(s),i.props));let a=s.filter(f=>!(0,Ry.alwaysValidSchema)(i,n[f]));if(a.length===0)return;let u=e.name("valid");for(let f of a)o(f)?c(f):(e.if((0,XR.propertyInData)(e,r,f,i.opts.ownProperties)),c(f),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function o(f){return i.opts.useDefaults&&!i.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};ky.default=M0e});var tk=k(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var QR=S2(),W9=st(),ZR=Nt(),ek=Nt(),$0e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:l,parentSchema:r,it:i}=t,{opts:s}=i,a=(0,QR.allSchemaProperties)(n),u=a.filter(_=>(0,ZR.alwaysValidSchema)(i,n[_]));if(a.length===0||u.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let o=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc Line truncated
`,r+=`const validator = Validator.restoreFromState(validatorState)
`):r+=`const validator = null
`,`
@@ -119,7 +119,7 @@ ${w}`),y.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";
${r}
module.exports = ${t.toString()}(validator, serializer)`}sg.exports=j1e;sg.exports.dependencies={Serializer:dm(),Validator:ig()}});var Wk=k((gIe,Xk)=>{"use strict";var{dependencies:U1e}=ag(),{Serializer:M1e,Validator:yIe}=U1e,$1e={mode:"standalone"},B1e=M1e.restoreFromState($1e),H1e=null;Xk.exports=function(e,n){function l(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let a=!1,u="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(u+=","),u+='"statusCode":',u+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(u+=","),u+='"code":',u+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(u+=","),u+='"error":',u+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(u+=","),u+='"message":',u+=n.asString(s.message)),u+"}"}return l}(H1e,B1e)});var q1=k((vIe,eD)=>{"use strict";var Yk=require("node:http").STATUS_CODES,V1e=ch(),{kReplyHeaders:Iu,kReplyNextErrorHandler:ac,kReplyIsRunningOnErrorHook:q1e,kReplyHasStatusCode:z1e,kRouteContext:Zk}=p2(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:G1e,FST_ERR_FAILED_ERROR_SERIALIZATION:J1e}=L2(),{getSchemaSerializer:K1e}=d1(),ug=Wk(),X1e={func:Y1e,toJSON(){return this.func.name.toString()+"()"}};function W1e(t,e,n){t[q1e]=!1;let l=t[Zk];if(t[ac]===!1){Qk(e,t,function(a,u){try{a.raw.writeHead(a.raw.statusCode,a[Iu])}catch(o){a.log.warn({req:a.request,res:a,err:o},o&&o.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(u)});return}let r=t[ac]||l.errorHandler;t[ac]=Object.getPrototypeOf(r),delete t[Iu]["content-type"],delete t[Iu]["content-length"];let i=r.func;if(!i){t[ac]=!1,Qk(e,t,n);return}let s=i(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?V1e(s,t):t.send(s))}function Y1e(t,e,n){if(Z1e(t,n),!n[z1e]||n.statusCode===200){let l=t.statusCode||t.status;n.code(l>=400?l:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function Qk(t,e,n){let l=e.raw,r=e.statusCode;e[Iu]["content-type"]=e[Iu]["content-type"]??"application/json; charset=utf-8";let i;try{let s=K1e(e[Zk],r,e[Iu]["content-type"]);i=s===!1?ug({error:Yk[r+""],code:t.code,message:t.message,statusCode:r}):s(Object.create(t,{error:{value:Yk[r+""]},message:{value:t.message},statusCode:{value:r}}))}catch(s){e.log.error({err:s,statusCode:l.statusCode},"The serializer for the given status code failed"),e.code(500),i=ug(new J1e(s.message,t.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=ug(new G1e(typeof i))),e[Iu]["content-length"]=""+Buffer.byteLength(i),n(e,i)}function Q1e(t=X1e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function Z1e(t,e){let n=e.raw,l=n.statusCode;l=l>=400?l:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?l=t.status:t.statusCode>=400&&(l=t.statusCode)),n.statusCode=l}eD.exports={buildErrorHandler:Q1e,handleError:W1e}});var dc=k((_Ie,fc)=>{"use strict";var fg=require("node:stream").finished,e5e=require("node:stream").Readable,{kFourOhFourContext:tD,kPublicRouteContext:nD,kReplyErrorHandlerCalled:cD,kReplyHijacked:z1,kReplyStartTime:G1,kReplyEndTime:hg,kReplySerializer:Hi,kReplySerializerDefault:oc,kReplyIsError:cc,kReplyHeaders:il,kReplyTrailers:f2,kReplyHasStatusCode:mg,kReplyIsRunningOnErrorHook:yg,kReplyNextErrorHandler:t5e,kDisableRequestLogging:pD,kSchemaResponse:pc,kReplyCacheSerializeFns:Is,kSchemaController:og,kOptions:n5e,kRouteContext:jt}=p2(),{onSendHookRunner:fD,onResponseHookRunner:l5e,preHandlerHookRunner:r5e,preSerializationHookRunner:i5e}=ys(),lD=hh()[Symbol.for("internals")],s5e=p1(),dg=s5e.now,{handleError:rD}=q1(),{getSchemaSerializer:a5e}=d1(),cg={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:u5e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:o5e,FST_ERR_REP_ALREADY_SENT:dD,FST_ERR_REP_SENT_VALUE:c5e,FST_ERR_SEND_INSIDE_ONERR:p5e,FST_ERR_BAD_STATUS_CODE:f5e,FST_ERR_BAD_TRAILER_NAME:d5e,FST_ERR_BAD_TRAILER_VALUE:h5e,FST_ERR_MISSING_SERIALIZATION_FN:m5e,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:y5e}=L2(),{FSTDEP010:g5e,FSTDEP013:v5e,FSTDEP019:_5e,FSTDEP020:E5e}=Fi(),hD=Object.prototype.toString;function el(t,e,n){this.raw=t,this[Hi]=null,this[cD]=!1,this[cc]=!1,this[yg]=!1,this.request=e,this[il]={},this[f2]=null,this[mg]=!1,this[G1]=void 0,this.log=n}el.props=[];Object.defineProperties(el.prototype,{[jt]:{get(){return this.request[jt]}},context:{get(){return _5e(),this.request[jt]}},elapsedTime:{get(){return this[G1]===void 0?0:(this[hg]||dg())-this[G1]}},server:{get(){return this.request[jt].server}},sent:{enumerable:!0,get(){return(this[z1]||this.raw.writableEnded)===!0},set(t){if(g5e(),t!==!0)throw new c5e;if(this.sent&&this[z1])throw new dD(this.request.url,this.request.method);this[z1]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[nD]:{get(){return this.request[nD]}}});el.prototype.hijack=function(){return this[z1]=!0,this};el.prototype.send=function(t){if(this[yg]===!0)throw new p5e;if(this.sent)return this.log.warn Line truncated
module.exports = ${t.toString()}(validator, serializer)`}sg.exports=j1e;sg.exports.dependencies={Serializer:dm(),Validator:ig()}});var Wk=k((gIe,Xk)=>{"use strict";var{dependencies:U1e}=ag(),{Serializer:M1e,Validator:yIe}=U1e,$1e={mode:"standalone"},B1e=M1e.restoreFromState($1e),H1e=null;Xk.exports=function(e,n){function l(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let a=!1,u="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(u+=","),u+='"statusCode":',u+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(u+=","),u+='"code":',u+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(u+=","),u+='"error":',u+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(u+=","),u+='"message":',u+=n.asString(s.message)),u+"}"}return l}(H1e,B1e)});var q1=k((vIe,eD)=>{"use strict";var Yk=require("node:http").STATUS_CODES,V1e=ch(),{kReplyHeaders:Iu,kReplyNextErrorHandler:ac,kReplyIsRunningOnErrorHook:q1e,kReplyHasStatusCode:z1e,kRouteContext:Zk}=p2(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:G1e,FST_ERR_FAILED_ERROR_SERIALIZATION:J1e}=L2(),{getSchemaSerializer:K1e}=d1(),ug=Wk(),X1e={func:Y1e,toJSON(){return this.func.name.toString()+"()"}};function W1e(t,e,n){t[q1e]=!1;let l=t[Zk];if(t[ac]===!1){Qk(e,t,function(a,u){try{a.raw.writeHead(a.raw.statusCode,a[Iu])}catch(o){a.log.warn({req:a.request,res:a,err:o},o&&o.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(u)});return}let r=t[ac]||l.errorHandler;t[ac]=Object.getPrototypeOf(r),delete t[Iu]["content-type"],delete t[Iu]["content-length"];let i=r.func;if(!i){t[ac]=!1,Qk(e,t,n);return}let s=i(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?V1e(s,t):t.send(s))}function Y1e(t,e,n){if(Z1e(t,n),!n[z1e]||n.statusCode===200){let l=t.statusCode||t.status;n.code(l>=400?l:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function Qk(t,e,n){let l=e.raw,r=e.statusCode;e[Iu]["content-type"]=e[Iu]["content-type"]??"application/json; charset=utf-8";let i;try{let s=K1e(e[Zk],r,e[Iu]["content-type"]);i=s===!1?ug({error:Yk[r+""],code:t.code,message:t.message,statusCode:r}):s(Object.create(t,{error:{value:Yk[r+""]},message:{value:t.message},statusCode:{value:r}}))}catch(s){e.log.error({err:s,statusCode:l.statusCode},"The serializer for the given status code failed"),e.code(500),i=ug(new J1e(s.message,t.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=ug(new G1e(typeof i))),e[Iu]["content-length"]=""+Buffer.byteLength(i),n(e,i)}function Q1e(t=X1e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function Z1e(t,e){let n=e.raw,l=n.statusCode;l=l>=400?l:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?l=t.status:t.statusCode>=400&&(l=t.statusCode)),n.statusCode=l}eD.exports={buildErrorHandler:Q1e,handleError:W1e}});var dc=k((_Ie,fc)=>{"use strict";var fg=require("node:stream").finished,e5e=require("node:stream").Readable,{kFourOhFourContext:tD,kPublicRouteContext:nD,kReplyErrorHandlerCalled:cD,kReplyHijacked:z1,kReplyStartTime:G1,kReplyEndTime:hg,kReplySerializer:Hi,kReplySerializerDefault:oc,kReplyIsError:cc,kReplyHeaders:il,kReplyTrailers:f2,kReplyHasStatusCode:mg,kReplyIsRunningOnErrorHook:yg,kReplyNextErrorHandler:t5e,kDisableRequestLogging:pD,kSchemaResponse:pc,kReplyCacheSerializeFns:Is,kSchemaController:og,kOptions:n5e,kRouteContext:jt}=p2(),{onSendHookRunner:fD,onResponseHookRunner:l5e,preHandlerHookRunner:r5e,preSerializationHookRunner:i5e}=ys(),lD=hh()[Symbol.for("internals")],s5e=p1(),dg=s5e.now,{handleError:rD}=q1(),{getSchemaSerializer:a5e}=d1(),cg={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:u5e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:o5e,FST_ERR_REP_ALREADY_SENT:dD,FST_ERR_REP_SENT_VALUE:c5e,FST_ERR_SEND_INSIDE_ONERR:p5e,FST_ERR_BAD_STATUS_CODE:f5e,FST_ERR_BAD_TRAILER_NAME:d5e,FST_ERR_BAD_TRAILER_VALUE:h5e,FST_ERR_MISSING_SERIALIZATION_FN:m5e,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:y5e}=L2(),{FSTDEP010:g5e,FSTDEP013:v5e,FSTDEP019:_5e,FSTDEP020:E5e}=Fi(),hD=Object.prototype.toString;function el(t,e,n){this.raw=t,this[Hi]=null,this[cD]=!1,this[cc]=!1,this[yg]=!1,this.request=e,this[il]={},this[f2]=null,this[mg]=!1,this[G1]=void 0,this.log=n}el.props=[];Object.defineProperties(el.prototype,{[jt]:{get(){return this.request[jt]}},context:{get(){return _5e(),this.request[jt]}},elapsedTime:{get(){return this[G1]===void 0?0:(this[hg]||dg())-this[G1]}},server:{get(){return this.request[jt].server}},sent:{enumerable:!0,get(){return(this[z1]||this.raw.writableEnded)===!0},set(t){if(g5e(),t!==!0)throw new c5e;if(this.sent&&this[z1])throw new dD(this.request.url,this.request.method);this[z1]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[nD]:{get(){return this.request[nD]}}});el.prototype.hijack=function(){return this[z1]=!0,this};el.prototype.send=function(t){if(this[yg]===!0)throw new p5e;if(this.sent)return this.log.warn Line truncated
${n.functions.join(`
`)}
const main = anonymous0
@@ -324,14 +324,14 @@ ${e}`)}function e7(t,e,n,l){if((t.isLeafNode||l.commonPrefix!==!1)&&(n=n||"(empt
if (candidates === 0) return null;
`)}for(let l in e.strategies)e.strategies[l].mustMatchWhenDerived&&!this.constraints.includes(l)&&n.push(`if (derivedConstraints.${l} !== undefined) return null`);n.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",n.join(`
`))}};OU.exports=a_});var IU=k((gke,CU)=>{"use strict";var _de=NU(),s7={STATIC:0,PARAMETRIC:1,WILDCARD:2},t7=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new _de),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},n7=class extends t7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let l=this.staticChildren[e.charAt(n)];return l===void 0||!l.matchPrefix(e,n)?null:l}getStaticChild(e,n=0){if(e.length===n)return this;let l=this.findStaticMatchingChild(e,n);return l?l.getStaticChild(e,n+l.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let r=1;for(;r<n.prefix.length;r++)if(e.charCodeAt(r)!==n.prefix.charCodeAt(r)){n=n.split(this,r);break}return n.createStaticChild(e.slice(r))}let l=e.charAt(0);return this.staticChildren[l]=new l7(e),this.staticChildren[l]}},l7=class t extends n7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=s7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,l=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===n);return l||null}createParametricChild(e,n,l){let r=this.getParametricChild(e);return r?(r.nodePaths.add(l),r):(r=new r7(e,n,l),this.parametricChildren.push(r),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new i7,this.wildcardChild}split(e,n){let l=this.prefix.slice(0,n),r=this.prefix.slice(n);this.prefix=r,this._compilePrefixMatch();let i=new t(l);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[l.charAt(0)]=i,i}getNextNode(e,n,l,r){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n<this.prefix.length;n++){let l=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i + ${n}) === ${l}`)}this.matchPrefix=new Function("path","i",`return ${e.join(" && ")}`)}},r7=class extends n7{constructor(e,n,l){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=s7.PARAMETRIC,this.nodePaths=new Set([l])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},i7=class extends t7{constructor(){super(),this.kind=s7.WILDCARD}getNextNode(){return null}};CU.exports={StaticNode:l7,ParametricNode:r7,WildcardNode:i7,NODE_TYPES:s7}});var kU=k((vke,RU)=>{"use strict";var Ede=require("assert");function w5(){if(!(this instanceof w5))return new w5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}w5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,l,r]=t.split(".");return n=Number(n)||0,l=Number(l)||0,r=Number(r)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),l>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=l,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),r>=(this.store[`${n}.${l}`]||0)&&(this.maxPatches[`${n}.${l}`]=r,this.store[`${n}.${l}.x`]=e),this.store[`${n}.${l}.${r}`]=e,this};w5.prototype.get=function(t){return this.store[t]};RU.exports={name:"version",mustMatchWhenDerived:!0,storage:w5,validate(t){Ede(typeof t=="string","Version should be a string")}}});var PU=k((_ke,DU)=>{"use strict";var bde=require("assert");function wde(){let t={},e=[];return{get:n=>{let l=t[n];if(l)return l;for(let r of e)if(r.host.test(n))return r.value},set:(n,l)=>{n instanceof RegExp?e.push({host:n,value:l}):t[n]=l}}}DU.exports={name:"host",mustMatchWhenDerived:!1,storage:wde,validate(t){bde(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var FU=k((Eke,LU)=>{"use strict";var Sde=kU(),Tde=PU(),u_=require("assert"),o_=class{constructor(e){if(this.strategies={version:Sde,host:Tde},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(u_(typeof e.name=="string"&&e.name!=="","strategy.name is required."),u_(e.storage&&typeof e.storage=="function Line truncated
`)).bind(this)}};LU.exports=o_});var UU=k((bke,jU)=>{"use strict";var xde=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];jU.exports=xde});var BU=k((wke,$U)=>{"use strict";function MU(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function Ade(t,e){let n=!1,l=!1,r="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let u=t.charCodeAt(s+1),o=t.charCodeAt(s+2);MU(u,o)===null?n=!0:(l=!0,u===50&&o===53&&(n=!0,t=t.slice(0,s+1)+"25"+t.slice(s+1),s+=2),s+=2)}else if(a===63||a===35||a===59&&e){r=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:r,shouldDecodeParam:l}}function Ode(t){let e=t.indexOf("%");if(e===-1)return t;let n="",l=e;for(let r=e;r<t.length;r++)if(t.charCodeAt(r)===37){let i=t.charCodeAt(r+1),s=t.charCodeAt(r+2),a=MU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}$U.exports={safeDecodeURI:Ade,safeDecodeURIComponent:Ode}});var m_=k((Ske,KU)=>{"use strict";var jl=require("assert"),Nde=uU(),a7=vU(),f_=l0(),{prettyPrintTree:Cde}=AU(),{StaticNode:HU,NODE_TYPES:c_}=IU(),Ide=FU(),L0=UU(),p_=Zc(),{safeDecodeURI:Rde,safeDecodeURIComponent:VU}=BU(),qU=/^https?:\/\/.*?\//,$u=/(\/:[^/()]*?)\?(\/?)/;if(!a7(qU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!a7($u))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function vl(t){if(!(this instanceof vl))return new vl(t);t=t||{},this._opts=t,t.defaultRoute?(jl(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(jl(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(jl(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=kde,t.querystringParser?(jl(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Nde.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new Ide(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}vl.prototype.on=function(e,n,l,r,i){typeof l=="function"&&(r!==void 0&&(i=r),r=l,l={}),jl(typeof n=="string","Path should be a string"),jl(n.length>0,"The path could not be empty"),jl(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),jl(typeof r=="function","Handler should be a function");let s=n.match($u);if(s){jl(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let o=n.replace($u,"$1$2"),c=n.replace($u,"$2");this.on(e,o,l,r,i),this.on(e,c,l,r,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=d_(n)),this.ignoreTrailingSlash&&(n=h_(n));let u=Array.isArray(e)?e:[e];for(let o of u)jl(typeof o=="string","Method should be a string"),jl(L0.includes(o),`Method '${o}' is not an http method.`),this._on(o,n,l,r,i,a)};vl.prototype._on=function(e,n,l,r,i){let s={};l.constraints!==void 0&&(jl(typeof l.constraints=="object"&&l.constraints!==null,"Constraints should be an object"),Object.keys(l.constraints).length!==0&&(s=l.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new HU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new HU(""),this.trees[e].staticChildren["/"]=m}let u=this.trees[e],o=u.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==o){let _=a.slice(o,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),u=u.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=JU(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||jl(a7(new RegExp(te)),`The regex '${te}' is not safe!`),S.push(GU(te)),E=F+1}else S.push("(.*?)");let I=E;for(;E<a.length;E++){let F=a.charCodeAt(E);if(F===47)break;if(F===58)if(a.charCodeAt(E+1)===58)E++;else break}let U=a.slice(I,E);if(U& Line truncated
`)).bind(this)}};LU.exports=o_});var UU=k((bke,jU)=>{"use strict";var xde=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];jU.exports=xde});var BU=k((wke,$U)=>{"use strict";function MU(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function Ade(t,e){let n=!1,l=!1,r="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let u=t.charCodeAt(s+1),o=t.charCodeAt(s+2);MU(u,o)===null?n=!0:(l=!0,u===50&&o===53&&(n=!0,t=t.slice(0,s+1)+"25"+t.slice(s+1),s+=2),s+=2)}else if(a===63||a===35||a===59&&e){r=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:r,shouldDecodeParam:l}}function Ode(t){let e=t.indexOf("%");if(e===-1)return t;let n="",l=e;for(let r=e;r<t.length;r++)if(t.charCodeAt(r)===37){let i=t.charCodeAt(r+1),s=t.charCodeAt(r+2),a=MU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}$U.exports={safeDecodeURI:Ade,safeDecodeURIComponent:Ode}});var m_=k((Ske,KU)=>{"use strict";var Ul=require("assert"),Nde=uU(),a7=vU(),f_=l0(),{prettyPrintTree:Cde}=AU(),{StaticNode:HU,NODE_TYPES:c_}=IU(),Ide=FU(),L0=UU(),p_=Zc(),{safeDecodeURI:Rde,safeDecodeURIComponent:VU}=BU(),qU=/^https?:\/\/.*?\//,$u=/(\/:[^/()]*?)\?(\/?)/;if(!a7(qU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!a7($u))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function vl(t){if(!(this instanceof vl))return new vl(t);t=t||{},this._opts=t,t.defaultRoute?(Ul(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(Ul(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(Ul(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=kde,t.querystringParser?(Ul(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Nde.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new Ide(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}vl.prototype.on=function(e,n,l,r,i){typeof l=="function"&&(r!==void 0&&(i=r),r=l,l={}),Ul(typeof n=="string","Path should be a string"),Ul(n.length>0,"The path could not be empty"),Ul(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),Ul(typeof r=="function","Handler should be a function");let s=n.match($u);if(s){Ul(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let o=n.replace($u,"$1$2"),c=n.replace($u,"$2");this.on(e,o,l,r,i),this.on(e,c,l,r,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=d_(n)),this.ignoreTrailingSlash&&(n=h_(n));let u=Array.isArray(e)?e:[e];for(let o of u)Ul(typeof o=="string","Method should be a string"),Ul(L0.includes(o),`Method '${o}' is not an http method.`),this._on(o,n,l,r,i,a)};vl.prototype._on=function(e,n,l,r,i){let s={};l.constraints!==void 0&&(Ul(typeof l.constraints=="object"&&l.constraints!==null,"Constraints should be an object"),Object.keys(l.constraints).length!==0&&(s=l.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new HU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new HU(""),this.trees[e].staticChildren["/"]=m}let u=this.trees[e],o=u.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==o){let _=a.slice(o,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),u=u.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=JU(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||Ul(a7(new RegExp(te)),`The regex '${te}' is not safe!`),S.push(GU(te)),E=F+1}else S.push("(.*?)");let I=E;for(;E<a.length;E++){let F=a.charCodeAt(E);if(F===47)break;if(F===58)if(a.charCodeAt(E+1)===58)E++;else break}let U=a.slice(I,E);if(U& Line truncated
Content-Length: ${Se.length}\r
Content-Type: application/json\r
\r
${Se}`),ve.destroy(re)}function me(re,ve){re.headers["accept-version"]!==void 0&&(re.headers[vme]=re.headers["accept-version"],re.headers["accept-version"]=void 0),d.router.lookup(re,ve)}function P(re,ve,Se){if(a){let dt=s$(F.server,ve),Pe=r$(F,u,ve,dt),Lt=new v7(dt,null,ve,null,Pe,F),bl=new D5(Se,Lt,Pe);return i===!1&&Pe.info({req:Lt},"incoming request"),a(new Ume(re),Lt,bl)}let Ke=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${re}' is not a valid url component","statusCode":400}`;Se.writeHead(400,{"Content-Type":"application/json","Content-Length":Ke.length}),Se.end(Ke)}function G(re,ve,Se){if(re!==!1)return function(dt){if(dt){if(a){let Lt=s$(F.server,ve),bl=r$(F,u,ve,Lt),Ft=new v7(Lt,null,ve,null,bl,F),tn=new D5(Se,Ft,bl);return i===!1&&bl.info({req:Ft},"incoming request"),a(new jme,Ft,tn)}let Pe='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';Se.writeHead(500,{"Content-Type":"application/json","Content-Length":Pe.length}),Se.end(Pe)}}}function V(re,ve){return te('Cannot call "setNotFoundHandler"!'),d.setNotFoundHandler.call(this,re,ve,U,m.routeHandler),this}function q(re){return te('Cannot call "setValidatorCompiler"!'),this[$s].setValidatorCompiler(re),this}function Yn(re){return te('Cannot call "setSchemaErrorFormatter"!'),p$(re),this[M_]=re.bind(this),this}function Tt(re){return te('Cannot call "setSerializerCompiler"!'),this[$s].setSerializerCompiler(re),this}function Ye(re){te('Cannot call "setSchemaController"!');let ve=this[$s],Se=n$.buildSchemaController(ve,Object.assign({},ve.opts,re));return this[$s]=Se,this.getSchema=Se.getSchema.bind(Se),this.getSchemas=Se.getSchemas.bind(Se),this}function ft(re){return te('Cannot call "setReplySerializer"!'),this[t$]=re,this}function qe(re){return te('Cannot call "setErrorHandler"!'),this[g7]=c$(this[g7],re.bind(this)),this}function Ue(re){return te('Cannot call "setChildLoggerFactory"!'),this[B_]=re,this}function $t(re={}){return re.includeMeta=re.includeHooks?re.includeMeta?V_.concat(re.includeMeta):V_:re.includeMeta,m.printRoutes(re)}function vt(re,{rewriteUrl:ve,logger:Se}){let Ke;return function(Pe,Lt){if(Ke===void 0&&(Ke=re.isAsyncConstraint()),ve){Pe.originalUrl=Pe.url;let bl=ve.call(N,Pe);if(typeof bl=="string")Pe.url=bl;else{let Ft=new Kme(Pe.url,typeof bl);Pe.destroy(Ft)}}re.routing(Pe,Lt,G(Ke,Pe,Lt))}}function Et(re){return te('Cannot call "setGenReqId"!'),this[H_]=a$(this[U_].requestIdHeader,re),this}}_7.errorCodes=Hu;function p$(t){if(typeof t!="function")throw new o$(typeof t);if(t.constructor.name==="AsyncFunction")throw new o$("AsyncFunction")}E7.exports=_7;E7.exports.fastify=_7;E7.exports.default=_7});var Jq=k((MPe,Gq)=>{"use strict";Gq.exports=Error});var Xq=k(($Pe,Kq)=>{"use strict";Kq.exports=EvalError});var Yq=k((BPe,Wq)=>{"use strict";Wq.exports=RangeError});var Zq=k((HPe,Qq)=>{"use strict";Qq.exports=ReferenceError});var Pb=k((VPe,ez)=>{"use strict";ez.exports=SyntaxError});var b4=k((qPe,tz)=>{"use strict";tz.exports=TypeError});var lz=k((zPe,nz)=>{"use strict";nz.exports=URIError});var iz=k((GPe,rz)=>{"use strict";rz.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var r=42;e[n]=r;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==r||s.enumerable!==!0)return!1}return!0}});var uz=k((JPe,az)=>{"use strict";var sz=typeof Symbol<"u"&&Symbol,JEe=iz();az.exports=function(){return typeof sz!="function"||typeof Symbol!="function"||typeof sz("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:JEe()}});var cz=k((KPe,oz)=>{"use strict";var Lb={__proto__:null,foo:{}},KEe=Object;oz.exports=function(){return{__proto__:Lb}.foo===Lb.foo&&!(Lb instanceof KEe)}});var dz=k((XPe,fz)=>{"use strict";var XEe="Function.prototype.bind called on incompatible ",WEe=Object.prototype.toString,YEe=Math.max,QEe="[object Function]",pz=function(e,n){for(var l=[],r=0;r<e.length;r+=1)l[r]=e[r];for(var i=0;i<n.length;i+=1)l[i+e.length]=n[i];return l},ZEe=function(e,n){for(var l=[],r=n||0,i=0;r<e.length;r+=1,i+=1)l[i]=e[r];return l},ebe=function(t,e){for(var n="",l=0;l<t.length;l+=1)n+=t[l],l+1<t.length&&(n+=e);return n};fz.exports=function(e){var n=this;if(typeof n!="function"||WEe.apply(n)!==QEe)throw new TypeError(XEe+n);for(var l=ZEe(arguments,1),r,i=function(){if(this instanceof r){var c=n.apply(this,pz(l,arguments));return Object(c)===c?c:this}return n.apply(e, Line truncated
`)>=0)return!1;return!0}function lwe(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=mi.call(Array(t.indent+1)," ");else return null;return{base:n,prev:mi.call(Array(e+1),n)}}function Xb(t,e){if(t.length===0)return"";var n=`
`+e.prev+e.base;return n+mi.call(t,","+n)+`
`+e.prev}function rf(t,e){var n=Kb(t),l=[];if(n){l.length=t.length;for(var r=0;r<t.length;r++)l[r]=na(t,r)?e(t[r],t):""}var i=typeof Vb=="function"?Vb(t):[],s;if(O4){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)na(t,u)&&(n&&String(Number(u))===u&&u<t.length||O4&&s["$"+u]instanceof Symbol||(sG.call(/[^\w$]/,u)?l.push(e(u,t)+": "+e(t[u],t)):l.push(u+": "+e(t[u],t))));if(typeof Vb=="function")for(var o=0;o<i.length;o++)aG.call(t,i[o])&&l.push("["+e(i[o])+"]: "+e(t[i[o]],t));return l}});var yG=k((uLe,mG)=>{"use strict";var hG=po(),N4=zz(),rwe=dG(),iwe=b4(),uf=hG("%WeakMap%",!0),of=hG("%Map%",!0),swe=N4("WeakMap.prototype.get",!0),awe=N4("WeakMap.prototype.set",!0),uwe=N4("WeakMap.prototype.has",!0),owe=N4("Map.prototype.get",!0),cwe=N4("Map.prototype.set",!0),pwe=N4("Map.prototype.has",!0),Zb=function(t,e){for(var n=t,l;(l=n.next)!==null;n=l)if(l.key===e)return n.next=l.next,l.next=t.next,t.next=l,l},fwe=function(t,e){var n=Zb(t,e);return n&&n.value},dwe=function(t,e,n){var l=Zb(t,e);l?l.value=n:t.next={key:e,next:t.next,value:n}},hwe=function(t,e){return!!Zb(t,e)};mG.exports=function(){var e,n,l,r={assert:function(i){if(!r.has(i))throw new iwe("Side channel does not contain "+rwe(i))},get:function(i){if(uf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return swe(e,i)}else if(of){if(n)return owe(n,i)}else if(l)return fwe(l,i)},has:function(i){if(uf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return uwe(e,i)}else if(of){if(n)return pwe(n,i)}else if(l)return hwe(l,i);return!1},set:function(i,s){uf&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new uf),awe(e,i,s)):of?(n||(n=new of),cwe(n,i,s)):(l||(l={key:{},next:null}),dwe(l,i,s))}};return r}});var cf=k((oLe,gG)=>{"use strict";var mwe=String.prototype.replace,ywe=/%20/g,ew={RFC1738:"RFC1738",RFC3986:"RFC3986"};gG.exports={default:ew.RFC3986,formatters:{RFC1738:function(t){return mwe.call(t,ywe,"+")},RFC3986:function(t){return String(t)}},RFC1738:ew.RFC1738,RFC3986:ew.RFC3986}});var lw=k((cLe,_G)=>{"use strict";var gwe=cf(),tw=Object.prototype.hasOwnProperty,fo=Array.isArray,yi=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),vwe=function(e){for(;e.length>1;){var n=e.pop(),l=n.obj[n.prop];if(fo(l)){for(var r=[],i=0;i<l.length;++i)typeof l[i]<"u"&&r.push(l[i]);n.obj[n.prop]=r}}},vG=function(e,n){for(var l=n&&n.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(l[r]=e[r]);return l},_we=function t(e,n,l){if(!n)return e;if(typeof n!="object"){if(fo(e))e.push(n);else if(e&&typeof e=="object")(l&&(l.plainObjects||l.allowPrototypes)||!tw.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var r=e;return fo(e)&&!fo(n)&&(r=vG(e,l)),fo(e)&&fo(n)?(n.forEach(function(i,s){if(tw.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,l):e.push(i)}else e[s]=i}),e):Object.keys(n).reduce(function(i,s){var a=n[s];return tw.call(i,s)?i[s]=t(i[s],a,l):i[s]=a,i},r)},Ewe=function(e,n){return Object.keys(n).reduce(function(l,r){return l[r]=n[r],l},e)},bwe=function(t,e,n){var l=t.replace(/\+/g," ");if(n==="iso-8859-1")return l.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(l)}catch{return l}},nw=1024,wwe=function(e,n,l,r,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),l==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;u+=nw){for(var o=s.length>=nw?s.slice(u,u+nw):s,c=[],f=0;f<o.length;++f){var m=o.charCodeAt(f);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===gwe.RFC1738&&(m===40||m===41)){c[c.length]=o.charAt(f);continue}if(m<128){c[c.length]=yi[m];continue}if(m<2048){c[c.length]=yi[192|m>>6]+yi[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=yi[224|m>>12]+yi[128|m>>6&63]+yi[128|m&63];continue}f+=1,m=65536+((m&1023)<<10|o.charCodeAt(f)&1023),c[c.length]=yi[240|m>>18]+yi[128|m>>12&63]+yi[128|m>>6&63]+yi[128|m&63]}a+=c.join("")}return a},Swe=function(e){for(var n=[{obj:{o:e},prop:"o"}],l=[],r=0;r<n.length;++r)for(var i=n[r],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var o=a[u],c=s[o];typeof c=="object"&&c!==null&&l.indexOf(c)===-1&&(n.push({obj:s,prop:o}),l.push(c))}return vwe(n),e},Twe=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},xwe=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Awe=function(e,n){return[].concat(e,n)},Owe=function(e,n){if(fo(e)){for(var l=[],r=0;r<e.length;r+=1)l.push(n(e[r]));return l}return n(e)};_G.exports={arrayToObject:vG,assign:Ewe,combine:Awe,compact:Swe,decode:bwe,encode:wwe,isBuffer:xwe,isRegExp:Twe,maybeMap:Owe,merge:_we}});var xG=k((pLe,TG)=>{"use strict";var bG=yG(),pf=lw(),k6=cf(),Nwe=Object.prototype.hasOwnProperty,wG={brack Line truncated
`+e.prev}function rf(t,e){var n=Kb(t),l=[];if(n){l.length=t.length;for(var r=0;r<t.length;r++)l[r]=na(t,r)?e(t[r],t):""}var i=typeof Vb=="function"?Vb(t):[],s;if(O4){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)na(t,u)&&(n&&String(Number(u))===u&&u<t.length||O4&&s["$"+u]instanceof Symbol||(sG.call(/[^\w$]/,u)?l.push(e(u,t)+": "+e(t[u],t)):l.push(u+": "+e(t[u],t))));if(typeof Vb=="function")for(var o=0;o<i.length;o++)aG.call(t,i[o])&&l.push("["+e(i[o])+"]: "+e(t[i[o]],t));return l}});var yG=k((uLe,mG)=>{"use strict";var hG=po(),N4=zz(),rwe=dG(),iwe=b4(),uf=hG("%WeakMap%",!0),of=hG("%Map%",!0),swe=N4("WeakMap.prototype.get",!0),awe=N4("WeakMap.prototype.set",!0),uwe=N4("WeakMap.prototype.has",!0),owe=N4("Map.prototype.get",!0),cwe=N4("Map.prototype.set",!0),pwe=N4("Map.prototype.has",!0),Zb=function(t,e){for(var n=t,l;(l=n.next)!==null;n=l)if(l.key===e)return n.next=l.next,l.next=t.next,t.next=l,l},fwe=function(t,e){var n=Zb(t,e);return n&&n.value},dwe=function(t,e,n){var l=Zb(t,e);l?l.value=n:t.next={key:e,next:t.next,value:n}},hwe=function(t,e){return!!Zb(t,e)};mG.exports=function(){var e,n,l,r={assert:function(i){if(!r.has(i))throw new iwe("Side channel does not contain "+rwe(i))},get:function(i){if(uf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return swe(e,i)}else if(of){if(n)return owe(n,i)}else if(l)return fwe(l,i)},has:function(i){if(uf&&i&&(typeof i=="object"||typeof i=="function")){if(e)return uwe(e,i)}else if(of){if(n)return pwe(n,i)}else if(l)return hwe(l,i);return!1},set:function(i,s){uf&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new uf),awe(e,i,s)):of?(n||(n=new of),cwe(n,i,s)):(l||(l={key:{},next:null}),dwe(l,i,s))}};return r}});var cf=k((oLe,gG)=>{"use strict";var mwe=String.prototype.replace,ywe=/%20/g,ew={RFC1738:"RFC1738",RFC3986:"RFC3986"};gG.exports={default:ew.RFC3986,formatters:{RFC1738:function(t){return mwe.call(t,ywe,"+")},RFC3986:function(t){return String(t)}},RFC1738:ew.RFC1738,RFC3986:ew.RFC3986}});var lw=k((cLe,_G)=>{"use strict";var gwe=cf(),tw=Object.prototype.hasOwnProperty,fo=Array.isArray,yi=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),vwe=function(e){for(;e.length>1;){var n=e.pop(),l=n.obj[n.prop];if(fo(l)){for(var r=[],i=0;i<l.length;++i)typeof l[i]<"u"&&r.push(l[i]);n.obj[n.prop]=r}}},vG=function(e,n){for(var l=n&&n.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(l[r]=e[r]);return l},_we=function t(e,n,l){if(!n)return e;if(typeof n!="object"){if(fo(e))e.push(n);else if(e&&typeof e=="object")(l&&(l.plainObjects||l.allowPrototypes)||!tw.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var r=e;return fo(e)&&!fo(n)&&(r=vG(e,l)),fo(e)&&fo(n)?(n.forEach(function(i,s){if(tw.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,l):e.push(i)}else e[s]=i}),e):Object.keys(n).reduce(function(i,s){var a=n[s];return tw.call(i,s)?i[s]=t(i[s],a,l):i[s]=a,i},r)},Ewe=function(e,n){return Object.keys(n).reduce(function(l,r){return l[r]=n[r],l},e)},bwe=function(t,e,n){var l=t.replace(/\+/g," ");if(n==="iso-8859-1")return l.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(l)}catch{return l}},nw=1024,wwe=function(e,n,l,r,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),l==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;u+=nw){for(var o=s.length>=nw?s.slice(u,u+nw):s,c=[],f=0;f<o.length;++f){var m=o.charCodeAt(f);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===gwe.RFC1738&&(m===40||m===41)){c[c.length]=o.charAt(f);continue}if(m<128){c[c.length]=yi[m];continue}if(m<2048){c[c.length]=yi[192|m>>6]+yi[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=yi[224|m>>12]+yi[128|m>>6&63]+yi[128|m&63];continue}f+=1,m=65536+((m&1023)<<10|o.charCodeAt(f)&1023),c[c.length]=yi[240|m>>18]+yi[128|m>>12&63]+yi[128|m>>6&63]+yi[128|m&63]}a+=c.join("")}return a},Swe=function(e){for(var n=[{obj:{o:e},prop:"o"}],l=[],r=0;r<n.length;++r)for(var i=n[r],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var o=a[u],c=s[o];typeof c=="object"&&c!==null&&l.indexOf(c)===-1&&(n.push({obj:s,prop:o}),l.push(c))}return vwe(n),e},Twe=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},xwe=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Awe=function(e,n){return[].concat(e,n)},Owe=function(e,n){if(fo(e)){for(var l=[],r=0;r<e.length;r+=1)l.push(n(e[r]));return l}return n(e)};_G.exports={arrayToObject:vG,assign:Ewe,combine:Awe,compact:Swe,decode:bwe,encode:wwe,isBuffer:xwe,isRegExp:Twe,maybeMap:Owe,merge:_we}});var xG=k((pLe,TG)=>{"use strict";var bG=yG(),pf=lw(),k6=cf(),Nwe=Object.prototype.hasOwnProperty,wG={brack Line truncated
`;an.DEFAULT_CONTENT_TYPE="application/octet-stream";an.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var l=vw.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),EJ.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,n),i=this._multiPartFooter();l(r),l(e),l(i),this._trackLength(r,e,n)};an.prototype._trackLength=function(t,e,n){var l=0;n.knownLength!=null?l+=+n.knownLength:Buffer.isBuffer(e)?l=e.length:typeof e=="string"&&(l=Buffer.byteLength(e)),this._valueLength+=l,this._overheadLength+=Buffer.byteLength(t)+an.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof iTe))&&(n.knownLength||this._valuesToMeasure.push(e))};an.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):rTe.stat(t.path,function(n,l){var r;if(n){e(n);return}r=l.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(n){t.pause(),e(null,+n.headers["content-length"])}),t.resume()):e("Unknown stream")};an.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var l=this._getContentDisposition(e,n),r=this._getContentType(e,n),i="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(l||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&gw(s,n.header);var a;for(var u in s)s.hasOwnProperty(u)&&(a=s[u],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(i+=u+": "+a.join("; ")+an.LINE_BREAK)));return"--"+this.getBoundary()+an.LINE_BREAK+i+an.LINE_BREAK};an.prototype._getContentDisposition=function(t,e){var n,l;return typeof e.filepath=="string"?n=mw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?n=mw.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(n=mw.basename(t.client._httpMessage.path||"")),n&&(l='filename="'+n+'"'),l};an.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t.name&&(n=yw.lookup(t.name)),!n&&t.path&&(n=yw.lookup(t.path)),!n&&t.readable&&t.hasOwnProperty("httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=yw.lookup(e.filepath||e.filename)),!n&&typeof t=="object"&&(n=an.DEFAULT_CONTENT_TYPE),n};an.prototype._multiPartFooter=function(){return function(t){var e=an.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};an.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+an.LINE_BREAK};an.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(n[e.toLowerCase()]=t[e]);return n};an.prototype.setBoundary=function(t){this._boundary=t};an.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};an.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,l=this._streams.length;n<l;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?t=Buffer.concat([t,this._streams[n]]):t=Buffer.concat([t,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(an.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};an.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};an.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};an.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};an.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}sTe.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,l){if(n){t(n);return}l.forEach(function(r){e+=r}),t(null,e)})};an.prototype.submit=function(t,e){var n,l,r={method:"post"};return typeof t=="string"?(t=lTe(t),l=gw({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(l=gw(t,r),l.port||(l.port=l.protocol=="https:"?443:80)),l.headers=this.getHeaders(t.headers),l.protocol=="https:"?n=nTe.request(l):n=tTe.request(l),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&n.setHeader("Content-Length",s),this.pipe(n),e){var a,u=function(o,c){return n.removeListener("error",u),n.removeListener("response",a),e.call(this,o,c)};a=u.bind(this,null),n.on("error",u),n.on("response",a)}}.bind(this)),n};an.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error" Line truncated
`,f.message,f.stack);var m=new Error("tunneling socket could not be established, cause="+f.message);m.code="ECONNRESET",e.request.emit("error",m),l.removeSocket(r)}};us.prototype.removeSocket=function(e){var n=this.sockets.indexOf(e);if(n!==-1){this.sockets.splice(n,1);var l=this.requests.shift();l&&this.createSocket(l,function(r){l.request.onSocket(r)})}};function xK(t,e){var n=this;us.prototype.createSocket.call(n,t,function(l){var r=t.request.getHeader("host"),i=Zw({},n.options,{socket:l,servername:r?r.replace(/:.*$/,""):t.host}),s=rxe.connect(0,i);n.sockets[n.sockets.indexOf(l)]=s,e(s)})}function AK(t,e,n){return typeof t=="string"?{host:t,port:e,localAddress:n}:t}function Zw(t){for(var e=1,n=arguments.length;e<n;++e){var l=arguments[e];if(typeof l=="object")for(var r=Object.keys(l),i=0,s=r.length;i<s;++i){var a=r[i];l[a]!==void 0&&(t[a]=l[a])}}return t}var oa;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?oa=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:oa=function(){};U4.debug=oa});var CK=k((lMe,NK)=>{NK.exports=OK()});var OZ=k(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.removeTrailingChar=Eo.merge=void 0;var TOe=(...t)=>{let e={};return t.forEach(function(n){var l;for(l in n)l in e&&e[l]===null?e[l]=n[l]:l in e&&Array.isArray(e[l])?e[l]=e[l].concat(n[l]):l in e&&typeof e[l]=="object"?e[l]=(0,Eo.merge)(e[l],n[l]):e[l]=n[l]}),e};Eo.merge=TOe;var xOe=(t,e)=>t.length>1&&t.endsWith(e)?t.substring(0,t.length-1):t;Eo.removeTrailingChar=xOe});var M4=k(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.DataError=Wa.DatabaseError=Wa.NestedError=void 0;var Y6=class extends Error{inner;id;constructor(e,n,l){super(e),this.inner=l,this.id=n,this.name=this.constructor.name}toString(){let e=this.name+": "+this.message;return this.inner?e+`:
`+this.inner:e}};Wa.NestedError=Y6;var wT=class extends Y6{};Wa.DatabaseError=wT;var ST=class extends Y6{};Wa.DataError=ST});var NT=k(s3=>{"use strict";Object.defineProperty(s3,"__esModule",{value:!0});s3.getArrayIndicies=s3.validateArrayIndex=s3.validateArrayIndicies=s3.isInt=s3.ArrayInfo=s3.arrayRegex=void 0;var Rf=M4(),AOe=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;s3.arrayRegex=AOe;var TT={},xT=class t{property;index=0;append=!1;indicies=[];constructor(e,n){this.property=e;let l=n[0]??0;if(this.append=l===""||n[n.length-1]==="",this.indicies=n,AT(l))this.index=parseInt(l);else if(!this.append)throw new Rf.DataError("Only numerical values accepted for array index",200)}static processArray(e){if(typeof e>"u")return null;if(TT[e])return TT[e];let l=(0,s3.arrayRegex)().exec(e.trim());if(l!=null){let r=l[1],i="["+l[2].toString()+"]",s=OT(i);return NZ(s),TT[e]=new t(r,s)}return null}getIndex(e,n){if(this.append)return-1;let l=this.index;if(l==-1){let r=n?e:e[this.property];return r.length===0?0:r.length-1}return l}getData(e){if(this.append)throw new Rf.DataError("Can't get data when appending",100);let{index:n,dataForProperty:l}=this.getArrayDataAndIndexFromProperty(e);return l[n]}setData(e,n){if(this.append){let l=e[this.property];this.indicies.forEach(r=>{r!==""&&(r=+r,r===-1&&(r=l.length-1),l=l[+r])}),l.push(n)}else{let{index:l,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);l===-1?r.push(n):r[l]=n}}delete(e){if(this.append)throw new Rf.DataError("Can't delete an appended data",10);let{index:n,dataForProperty:l}=this.getArrayDataAndIndexFromProperty(e);l.splice(n,1)}isValid(e){let{index:n,dataForProperty:l}=this.getArrayDataAndIndexFromProperty(e);return l.hasOwnProperty(n)}getArrayDataAndIndexFromProperty(e){let n=0,l=e instanceof Array?e:e[this.property]??e;if(this.indicies.length>0){n=+this.indicies[this.indicies.length-1];for(let r=0;r<this.indicies.length-1;r++){let i=+this.indicies[r];i===-1&&(i=l.length-1),l=l[i]}n===-1&&(n=l.length-1)}return{index:n,dataForProperty:l}}isMultiDimensional(){return this.indicies.length>1}};s3.ArrayInfo=xT;function AT(t){return!isNaN(t)&&Number(t)==t&&!isNaN(parseInt(t,10))}s3.isInt=AT;function NZ(t){let e=t.filter(n=>n==="");if(e.length>1)throw Error("Only one append index is supported for nested arrays");if(e.length===1&&t[t.length-1]!=="")throw Error("Append index must be at the end of the nested array")}s3.validateArrayIndicies=NZ;function CZ(t){if(t.length!==0&&!AT(t))throw new Rf.DataError("Only numerical values accepted for array index",200)}s3.validateArrayIndex=CZ;function OT(t){if(t.length===0)return[];if(t.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let e=t.substring(1,t.indexOf("]"));CZ(e);let n=e.length+2;return[e,...OT(t.substring(n))]}s3.getArrayIndicies=OT});var kZ=k(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.DBParentData=void 0;var IZ=NT(),RZ=M4(),CT=class{parent;data;db;dataPath;constructor(e,n,l,r){this.parent=r,this.data=e,this.db=n,this.dataPath=l}checkArray(e=!1){let n=IZ.ArrayInfo.processArray(this.parent);if(n&&(!n.append||e)&&!n.isValid(this.data))throw new RZ.DataError("DataPath: /"+this.dataPath+". Can't find index "+n.index+" in array "+n.property,10);return n}getData(){if(this.parent===void 0)return this.data;let e=this.checkArray();return e?e.getData(this.data):this.data[this.parent]}setData(e){if(this.parent===void 0){this.db.resetData(e);return}let n=IZ.ArrayInfo.processArray(this.parent);if(n){if(!this.data.hasOwnProperty(n.property))this.data[n.property]=[];else if(!Array.isArray(this.data[n.property]))throw new RZ.DataError("DataPath: /"+this.dataPath+". "+n.property+" is not an array.",11);n.setData(this.data,e)}else this.data[this.parent]=e}delete(){if(this.parent===void 0){this.db.resetData({});return}let e=this.checkArray(!0);e?e.delete(this.data):delete this.data[this.parent]}};kf.DBParentData=CT});var PZ=k((cze,DZ)=>{DZ.exports=function(){"use strict";function t(){this.readers=0,this.queue=[]}function e(i,s,a){var u;typeof i!="function"?(r.hasOwnProperty(i)||(r[i]=new t),u=r[i]):(a=s,s=i,u=l),a||(a={});var o=null;a.hasOwnProperty("scope")&&(o=a.scope);var c=function(){var d=!1;return function(){d||(d=!0,u.readers--,u.queue.length&&u.queue[0]())}}();if(u.readers<0||u.queue.length){var f=!1;if(u.queue.push(function(){!f&&u.readers>=0&&(f=!0,u.queue.shift(),u.readers++,s.call(o,c),u.queue.length&&u.queue[0]())}),a.hasOwnProperty("timeout")){var m=null;a.hasOwnProperty("timeoutCallback")&&(m=a.timeoutCallback),setTimeout(function(){f||(f=!0,u.queue.shift(),m&&m.call(a.scope))},a.timeout)}}else u.readers++,s.call(a.scope,c)}function n(i,s,a){var u;typeof i!="function"?(r.hasOwnProperty(i)||(r[i]=new t),u=r[i]):(a=s,s=i,u=l),a||(a={});var o=null;a.hasOwnProperty("scope")&&(o=a.scope);var c=function(){var d=!1;return function(){d||(d=!0,u.readers=0,u.queue.length&&u.queue[0]())}}();if(u.readers||u.queue.length){var f=!1;if(u.queue.push(function(){f|| Line truncated
@@ -368,9 +368,9 @@ else {`),this._emit("cb()")),this._emitLine("}")},l.compileIfAsync=function(r,i)
`))},t.random=function(d){return d[Math.floor(Math.random()*d.length)]},t.reject=i(!1),t.rejectattr=function(d,y){return d.filter(function(_){return!_[y]})},t.select=i(!0),t.selectattr=function(d,y){return d.filter(function(_){return!!_[y]})},t.replace=function(d,y,_,S){var w=d;if(y instanceof RegExp)return d.replace(y,_);S===void 0&&(S=-1);var E="";if(typeof y=="number")y=""+y;else if(typeof y!="string")return d;if(typeof(d=typeof d=="number"?""+d:d)!="string"&&!(d instanceof yt.SafeString))return d;if(y==="")return E=_+d.split("").join(_)+_,yt.copySafeness(d,E);var g=d.indexOf(y);if(S===0||g===-1)return d;for(var v=0,x=0;-1<g&&(S===-1||x<S);)E+=d.substring(v,g)+_,v=g+y.length,x++,g=d.indexOf(y,v);return v<d.length&&(E+=d.substring(v)),yt.copySafeness(w,E)},t.reverse=function(d){var y;return(y=Le.isString(d)?r(d):Le.map(d,function(_){return _})).reverse(),Le.isString(d)?yt.copySafeness(d,y.join("")):y},t.round=function(d,y,_){return y=y||0,y=Math.pow(10,y),(_==="ceil"?Math.ceil:_==="floor"?Math.floor:Math.round)(d*y)/y},t.slice=function(d,y,_){for(var S=Math.floor(d.length/y),w=d.length%y,E=[],g=0,v=0;v<y;v++){var x=g+v*S;v<w&&g++,x=d.slice(x,g+(v+1)*S),_&&w<=v&&x.push(_),E.push(x)}return E},t.sum=function(d,y,_){return(_=_===void 0?0:_)+(d=y?Le.map(d,function(S){return S[y]}):d).reduce(function(S,w){return S+w},0)},t.sort=yt.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(E,y,_,S){var w=this,E=Le.map(E,function(v){return v}),g=Le.getAttrGetter(S);return E.sort(function(v,x){if(v=S?g(v):v,x=S?g(x):x,w.env.opts.throwOnUndefined&&S&&(v===void 0||x===void 0))throw new TypeError('sort: attribute "'+S+'" resolved to undefined');return!_&&Le.isString(v)&&Le.isString(x)&&(v=v.toLowerCase(),x=x.toLowerCase()),v<x?y?1:-1:x<v?y?-1:1:0}),E}),t.string=function(d){return yt.copySafeness(d,d)},t.striptags=function(d,S){var _=s((d=e(d,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),S=S?_.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,`
`).replace(/\n\n\n+/g,`
`):_.replace(/\s+/gi," ");return yt.copySafeness(d,S)},t.title=function(d){var y=(d=e(d,"")).split(" ").map(l);return yt.copySafeness(d,y.join(" "))},t.trim=s,t.truncate=function(d,y,_,S){var w=d;return(d=e(d,"")).length<=(y=y||255)?d:(d=_?d.substring(0,y):((_=d.lastIndexOf(" ",y))===-1&&(_=y),d.substring(0,_)),yt.copySafeness(w,d+=S??"..."))},t.upper=function(d){return(d=e(d,"")).toUpperCase()},t.urlencode=function(d){var y=encodeURIComponent;return Le.isString(d)?y(d):(Le.isArray(d)?d:Le._entries(d)).map(function(w){var S=w[0],w=w[1];return y(S)+"="+y(w)}).join("&")};var a=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,u=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(d,y,_){n(y)&&(y=1/0);var S=_===!0?' rel="nofollow"':"";return d.split(/(\s+)/).filter(function(w){return w&&w.length}).map(function(w){var E=w.match(a),g=(E=E?E[1]:w).substr(0,y);return o.test(E)?'<a href="'+E+'"'+S+">"+g+"</a>":c.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":u.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":w}).join("")},t.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},t.float=function(d,y){return n(d=parseFloat(d))?y:d},yt.makeMacro(["value","default","base"],[],function(d,y,_){return _===void 0&&(_=10),n(d=parseInt(d,_))?y:d}));t.int=m,t.d=t.default,t.e=t.escape}),Y7={};function IV(t,e){for(var n=0,l=t.length-1;0<=l;l--){var r=t[l];r==="."?t.splice(l,1):r===".."?(t.splice(l,1),n++):n&&(t.splice(l,1),n--)}if(e)for(;n--;)t.unshift("..");return t}var j_e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,sE=function(t){return j_e.exec(t).slice(1)};function aE(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var l=0<=n?arguments[n]:"/";if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,e=l.charAt(0)==="/")}return(e?"/":"")+IV(ib(t.split("/"),function(r){return!!r}),!e).join("/")||"."}function OB(t){var e=RV(t),n=U_e(t,-1)==="/";return(t=(t=IV(ib(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}function RV(t){return t.charAt(0)==="/"}var n4={extname:function(t){return sE(t)[3]},basename:function(t,e){return t=sE(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){var e=(n=sE(n))[0],n=n[1];return e||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(o){for(var c=0;c<o.length&&o[c]==="";c++);for(var f=o.length-1;0<=f&&o[f]==="";f--);return f<c?[]:o.slice(c,f-c+1)}t=aE(t).substr(1),e=aE(e).substr(1);for(var l=n(t.split("/")),r=n(e.split("/")),i=Math.min(l.length,r.length),s=i,a=0;a<i;a++)if(l[a]!==r[a]){s=a;break}for(var u=[],a=s;a<l.length;a++)u.push("..");return(u=u.concat(r.slice(s))).join("/")},join:function(){return OB(ib(Array.prototype.slice.call(arguments,0),function(t,e){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:RV,normalize:OB,resolve:aE};function ib(t,e){if(t.filter)return t.filter(e);for(var n=[],l=0;l<t.length;l++)e(t[l],l,t)&&n.push(t[l]);return n}var U_e="ab".substr(-1)==="b"?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)};function kV(t,e){return(kV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(t,e)}var sb=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(l=n).prototype=Object.create(e.prototype),kV(l.prototype.constructor=l,e);var l=n.prototype;return l.resolve=function(r,i){return n4.resolve(n4.dirname(r),i)},l.isRelative=function(r){return r.indexOf("./")===0||r.indexOf("../")===0},n}(a4.EmitterObj);function DV(t,e){return(DV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(t,e)}var M_e=function(t){var e,n;function l(r){var i;return(i=t.call(this)||this).precompiled=r||{},i}return n=t,(e=l).prototype=Object.create(n.prototype),DV(e.prototype.constructor=e,n),l.prototype.getSource=function(r){return this.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},l}(sb);function PV(t,e){t.prototype=Object.create(e.prototype),LV(t.prototype.constructor=t,e)}function LV(t,e){return(LV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(t,e)}var $_e=M_e,B_e=function(t){function e(n,l){var r=t.call(this)||this;return typeof l=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),l=l||{},r.pathsToNames={},r.noCache=!!l.noCache,n?(n=Array.isArray(n)?n:[n],r.searchPaths=n.map(n4.normalize)):r.searchPaths=["."],l.watch,r}return PV(e,t),e.prototype.getSource=function(n){for(var l=null,r=this.searchPaths,i=0;i<r.length;i++){var s=n4.resoLine truncated
`):_.replace(/\s+/gi," ");return yt.copySafeness(d,S)},t.title=function(d){var y=(d=e(d,"")).split(" ").map(l);return yt.copySafeness(d,y.join(" "))},t.trim=s,t.truncate=function(d,y,_,S){var w=d;return(d=e(d,"")).length<=(y=y||255)?d:(d=_?d.substring(0,y):((_=d.lastIndexOf(" ",y))===-1&&(_=y),d.substring(0,_)),yt.copySafeness(w,d+=S??"..."))},t.upper=function(d){return(d=e(d,"")).toUpperCase()},t.urlencode=function(d){var y=encodeURIComponent;return Le.isString(d)?y(d):(Le.isArray(d)?d:Le._entries(d)).map(function(w){var S=w[0],w=w[1];return y(S)+"="+y(w)}).join("&")};var a=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,u=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(d,y,_){n(y)&&(y=1/0);var S=_===!0?' rel="nofollow"':"";return d.split(/(\s+)/).filter(function(w){return w&&w.length}).map(function(w){var E=w.match(a),g=(E=E?E[1]:w).substr(0,y);return o.test(E)?'<a href="'+E+'"'+S+">"+g+"</a>":c.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":u.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":w}).join("")},t.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},t.float=function(d,y){return n(d=parseFloat(d))?y:d},yt.makeMacro(["value","default","base"],[],function(d,y,_){return _===void 0&&(_=10),n(d=parseInt(d,_))?y:d}));t.int=m,t.d=t.default,t.e=t.escape}),Y7={};function IV(t,e){for(var n=0,l=t.length-1;0<=l;l--){var r=t[l];r==="."?t.splice(l,1):r===".."?(t.splice(l,1),n++):n&&(t.splice(l,1),n--)}if(e)for(;n--;)t.unshift("..");return t}var j_e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,sE=function(t){return j_e.exec(t).slice(1)};function aE(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var l=0<=n?arguments[n]:"/";if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,e=l.charAt(0)==="/")}return(e?"/":"")+IV(ib(t.split("/"),function(r){return!!r}),!e).join("/")||"."}function OB(t){var e=RV(t),n=U_e(t,-1)==="/";return(t=(t=IV(ib(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}function RV(t){return t.charAt(0)==="/"}var n4={extname:function(t){return sE(t)[3]},basename:function(t,e){return t=sE(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){var e=(n=sE(n))[0],n=n[1];return e||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(o){for(var c=0;c<o.length&&o[c]==="";c++);for(var f=o.length-1;0<=f&&o[f]==="";f--);return f<c?[]:o.slice(c,f-c+1)}t=aE(t).substr(1),e=aE(e).substr(1);for(var l=n(t.split("/")),r=n(e.split("/")),i=Math.min(l.length,r.length),s=i,a=0;a<i;a++)if(l[a]!==r[a]){s=a;break}for(var u=[],a=s;a<l.length;a++)u.push("..");return(u=u.concat(r.slice(s))).join("/")},join:function(){return OB(ib(Array.prototype.slice.call(arguments,0),function(t,e){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:RV,normalize:OB,resolve:aE};function ib(t,e){if(t.filter)return t.filter(e);for(var n=[],l=0;l<t.length;l++)e(t[l],l,t)&&n.push(t[l]);return n}var U_e="ab".substr(-1)==="b"?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)};function kV(t,e){return(kV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(t,e)}var sb=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(l=n).prototype=Object.create(e.prototype),kV(l.prototype.constructor=l,e);var l=n.prototype;return l.resolve=function(r,i){return n4.resolve(n4.dirname(r),i)},l.isRelative=function(r){return r.indexOf("./")===0||r.indexOf("../")===0},n}(a4.EmitterObj);function DV(t,e){return(DV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(t,e)}var M_e=function(t){var e,n;function l(r){var i;return(i=t.call(this)||this).precompiled=r||{},i}return n=t,(e=l).prototype=Object.create(n.prototype),DV(e.prototype.constructor=e,n),l.prototype.getSource=function(r){return this.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},l}(sb);function PV(t,e){t.prototype=Object.create(e.prototype),LV(t.prototype.constructor=t,e)}function LV(t,e){return(LV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(t,e)}var $_e=M_e,B_e=function(t){function e(n,l){var r=t.call(this)||this;return typeof l=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),l=l||{},r.pathsToNames={},r.noCache=!!l.noCache,n?(n=Array.isArray(n)?n:[n],r.searchPaths=n.map(n4.normalize)):r.searchPaths=["."],l.watch,r}return PV(e,t),e.prototype.getSource=function(n){for(var l=null,r=this.searchPaths,i=0;i<r.length;i++){var s=n4.resoLine truncated
/* [wrapped with `+L+`] */
`)):C}(A,function(C,L){return Jl(m,function(z){var K="_."+z[0];L&z[1]&&!cr(C,K)&&C.push(K)}),C.sort()}(function(){var C=A.match(a3);return C?C[1].split(pl):[]}(),b)))}function Yx(p){var h=0,b=0;return function(){var A=ZZ(),C=16-(A-b);if(b=A,0<C){if(800<=++h)return arguments[0]}else h=0;return p.apply(n,arguments)}}function R8(p,h){var b=-1,A=p.length,C=A-1;for(h=h===n?A:h;++b<h;){var L=Qf(b,C),z=p[L];p[L]=p[b],p[b]=z}return p.length=h,p}var Qx=function(){var p=L8(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(dt,function(C,L,z,K){A.push(z?K.replace(v2,"$1"):L||C)}),A},function(b){return h.size===500&&h.clear(),b}),h=p.cache;return p}();function zr(p){var h;return typeof p=="string"||C3(p)?p:(h=p+"")=="0"&&1/p==-1/0?"-0":h}function pu(p){if(p!=null){try{return u8.call(p)}catch{}try{return p+""}catch{}}return""}function Zx(p){var h;return p instanceof Xt?p.clone():((h=new fr(p.__wrapped__,p.__chain__)).__actions__=u3(p.__actions__),h.__index__=p.__index__,h.__values__=p.__values__,h)}function eA(p,h,b){var A=p==null?0:p.length;return A?((b=b==null?0:At(b))<0&&(b=Xl(A+b,0)),Mr(p,ut(h,3),b)):-1}function tA(p,h,b){var A,C=p==null?0:p.length;return C?(A=C-1,b!==n&&(A=At(b),A=b<0?Xl(C+A,0):I2(A,C-1)),Mr(p,ut(h,3),A,!0)):-1}function nA(p){return p!=null&&p.length?E2(p,1):[]}function lA(p){return p&&p.length?p[0]:n}function V3(p){var h=p==null?0:p.length;return h?p[h-1]:n}function rA(p,h){return p&&p.length&&h&&h.length?Yf(p,h):p}$f=It(function(p,h){return kl(p)?W4(p,E2(h,1,kl,!0)):[]}),Hr=It(function(p,h){var b=V3(h);return kl(b)&&(b=n),kl(p)?W4(p,E2(h,1,kl,!0),ut(b,2)):[]}),G4=It(function(p,h){var b=V3(h);return kl(b)&&(b=n),kl(p)?W4(p,E2(h,1,kl,!0),n,b):[]}),Zt=It(function(p){var h=on(p,ld);return h.length&&h[0]===p[0]?Jf(h):[]}),No=It(function(p){var h=V3(p),b=on(p,ld);return h===V3(b)?h=n:b.pop(),b.length&&b[0]===p[0]?Jf(b,ut(h,2)):[]}),Bf=It(function(p){var h=V3(p),b=on(p,ld);return(h=typeof h=="function"?h:n)&&b.pop(),b.length&&b[0]===p[0]?Jf(b,n,h):[]}),R2=It(rA);var hee=Ii(function(p,h){var b=p==null?0:p.length,A=Vf(p,h);return gx(p,on(h,function(C){return Ri(C,b)?+C:C}).sort(Ox)),A});function vd(p){return p==null?p:tee.call(p)}var mee=It(function(p){return fs(E2(p,1,kl,!0))}),yee=It(function(p){var h=V3(p);return kl(h)&&(h=n),fs(E2(p,1,kl,!0),ut(h,2))}),gee=It(function(p){var h=typeof(h=V3(p))=="function"?h:n;return fs(E2(p,1,kl,!0),n,h)});function _d(p){var h;return p&&p.length?(h=0,p=a2(p,function(b){if(kl(b))return h=Xl(b.length,h),!0}),n8(h,function(b){return on(p,$r(b))})):[]}function iA(p,h){return p&&p.length?(p=_d(p),h==null?p:on(p,function(b){return s2(h,n,b)})):[]}var vee=It(function(p,h){return kl(p)?W4(p,h):[]}),_ee=It(function(p){return nd(a2(p,kl))}),Eee=It(function(p){var h=V3(p);return kl(h)&&(h=n),nd(a2(p,kl),ut(h,2))}),bee=It(function(p){var h=typeof(h=V3(p))=="function"?h:n;return nd(a2(p,kl),n,h)}),wee=It(_d),See=It(function(p){var h=typeof(h=1<(h=p.length)?p[h-1]:n)=="function"?(p.pop(),h):n;return iA(p,h)});function sA(p){return(p=R(p)).__chain__=!0,p}function k8(p,h){return h(p)}var Tee=Ii(function(p){function h(L){return Vf(L,p)}var b=p.length,A=b?p[0]:0,C=this.__wrapped__;return!(1<b||this.__actions__.length)&&C instanceof Xt&&Ri(A)?((C=C.slice(A,+A+(b?1:0))).__actions__.push({func:k8,args:[h],thisArg:n}),new fr(C,this.__chain__).thru(function(L){return b&&!L.length&&L.push(n),L})):this.thru(h)}),xee=T8(function(p,h,b){Jn.call(p,b)?++p[b]:Ni(p,b,1)}),Aee=Dx(eA),Oee=Dx(tA);function aA(p,h){return(St(p)?Jl:ps)(p,ut(h,3))}function uA(p,h){return(St(p)?function(b,A){for(var C=b==null?0:b.length;C--&&A(b[C],C,b)!==!1;);return b}:rx)(p,ut(h,3))}var Nee=T8(function(p,h,b){Jn.call(p,b)?p[b].push(h):Ni(p,b,[h])}),Cee=It(function(p,h,b){var A=-1,C=typeof h=="function",L=o3(p)?he(p.length):[];return ps(p,function(z){L[++A]=C?s2(h,z,b):Y4(z,h,b)}),L}),Iee=T8(function(p,h,b){Ni(p,b,h)});function D8(p,h){return(St(p)?on:px)(p,ut(h,3))}var Ree=T8(function(p,h,b){p[b?0:1].push(h)},function(){return[[],[]]}),kee=It(function(p,h){var b;return p==null?[]:(1<(b=h.length)&&X2(p,h[0],h[1])?h=[]:2<b&&X2(h[0],h[1],h[2])&&(h=[h[0]]),mx(p,E2(h,1),[]))}),P8=bd||function(){return ul.Date.now()};function oA(p,h,b){return h=b?n:h,h=p&&h==null?p.length:h,Ci(p,a,n,n,n,n,h)}function cA(p,h){var b;if(typeof h!="function")throw new $3(l);return p=At(p),function(){return 0<--p&&(b=h.apply(this,arguments)),p<=1&&(h=n),b}}var Ed=It(function(p,h,b){var A,C=1;return b.length&&(A=xi(b,Po(Ed)),C|=s),Ci(p,C,h,b,A)}),pA=It(function(p,h,b){var A,C=3;return b.length&&(A=xi(b,Po(pA)),C|=s),Ci(h,C,p,b,A)});function fA(p,h,b){var A,C,L,z,K,le,pe=0,fe=!1,xe=!1,Ee=!0;if(typeof p!="function")throw new $3(l);function _e(Xe){var rt=A,ct=C;return A=C=n,pe=Xe,z=p.apply(ct,rt)}function Te(Xe){var rt=Xe-le;return le===n||h<=rt||rt<0||xe&&L<=Xe-pe}function nt(){var Xe=P8();if(Te(Xe))return Re(Xe);K=n1(nt,function(rt){var ct=h-(rt-le);return xe?I2(ct,L-(rt-pe)):ct}(Xe))}function Re(Xe){return K=n,Ee&&A?_e(Xe):(A=C=n Line truncated
`)):C}(A,function(C,L){return Jl(m,function(z){var K="_."+z[0];L&z[1]&&!cr(C,K)&&C.push(K)}),C.sort()}(function(){var C=A.match(a3);return C?C[1].split(pl):[]}(),b)))}function Yx(p){var h=0,b=0;return function(){var A=ZZ(),C=16-(A-b);if(b=A,0<C){if(800<=++h)return arguments[0]}else h=0;return p.apply(n,arguments)}}function R8(p,h){var b=-1,A=p.length,C=A-1;for(h=h===n?A:h;++b<h;){var L=Qf(b,C),z=p[L];p[L]=p[b],p[b]=z}return p.length=h,p}var Qx=function(){var p=L8(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(dt,function(C,L,z,K){A.push(z?K.replace(v2,"$1"):L||C)}),A},function(b){return h.size===500&&h.clear(),b}),h=p.cache;return p}();function zr(p){var h;return typeof p=="string"||C3(p)?p:(h=p+"")=="0"&&1/p==-1/0?"-0":h}function pu(p){if(p!=null){try{return u8.call(p)}catch{}try{return p+""}catch{}}return""}function Zx(p){var h;return p instanceof Xt?p.clone():((h=new fr(p.__wrapped__,p.__chain__)).__actions__=u3(p.__actions__),h.__index__=p.__index__,h.__values__=p.__values__,h)}function eA(p,h,b){var A=p==null?0:p.length;return A?((b=b==null?0:At(b))<0&&(b=Xl(A+b,0)),Mr(p,ut(h,3),b)):-1}function tA(p,h,b){var A,C=p==null?0:p.length;return C?(A=C-1,b!==n&&(A=At(b),A=b<0?Xl(C+A,0):I2(A,C-1)),Mr(p,ut(h,3),A,!0)):-1}function nA(p){return p!=null&&p.length?E2(p,1):[]}function lA(p){return p&&p.length?p[0]:n}function V3(p){var h=p==null?0:p.length;return h?p[h-1]:n}function rA(p,h){return p&&p.length&&h&&h.length?Yf(p,h):p}$f=It(function(p,h){return Dl(p)?W4(p,E2(h,1,Dl,!0)):[]}),Hr=It(function(p,h){var b=V3(h);return Dl(b)&&(b=n),Dl(p)?W4(p,E2(h,1,Dl,!0),ut(b,2)):[]}),G4=It(function(p,h){var b=V3(h);return Dl(b)&&(b=n),Dl(p)?W4(p,E2(h,1,Dl,!0),n,b):[]}),Zt=It(function(p){var h=on(p,ld);return h.length&&h[0]===p[0]?Jf(h):[]}),No=It(function(p){var h=V3(p),b=on(p,ld);return h===V3(b)?h=n:b.pop(),b.length&&b[0]===p[0]?Jf(b,ut(h,2)):[]}),Bf=It(function(p){var h=V3(p),b=on(p,ld);return(h=typeof h=="function"?h:n)&&b.pop(),b.length&&b[0]===p[0]?Jf(b,n,h):[]}),R2=It(rA);var hee=Ii(function(p,h){var b=p==null?0:p.length,A=Vf(p,h);return gx(p,on(h,function(C){return Ri(C,b)?+C:C}).sort(Ox)),A});function vd(p){return p==null?p:tee.call(p)}var mee=It(function(p){return fs(E2(p,1,Dl,!0))}),yee=It(function(p){var h=V3(p);return Dl(h)&&(h=n),fs(E2(p,1,Dl,!0),ut(h,2))}),gee=It(function(p){var h=typeof(h=V3(p))=="function"?h:n;return fs(E2(p,1,Dl,!0),n,h)});function _d(p){var h;return p&&p.length?(h=0,p=a2(p,function(b){if(Dl(b))return h=Xl(b.length,h),!0}),n8(h,function(b){return on(p,$r(b))})):[]}function iA(p,h){return p&&p.length?(p=_d(p),h==null?p:on(p,function(b){return s2(h,n,b)})):[]}var vee=It(function(p,h){return Dl(p)?W4(p,h):[]}),_ee=It(function(p){return nd(a2(p,Dl))}),Eee=It(function(p){var h=V3(p);return Dl(h)&&(h=n),nd(a2(p,Dl),ut(h,2))}),bee=It(function(p){var h=typeof(h=V3(p))=="function"?h:n;return nd(a2(p,Dl),n,h)}),wee=It(_d),See=It(function(p){var h=typeof(h=1<(h=p.length)?p[h-1]:n)=="function"?(p.pop(),h):n;return iA(p,h)});function sA(p){return(p=R(p)).__chain__=!0,p}function k8(p,h){return h(p)}var Tee=Ii(function(p){function h(L){return Vf(L,p)}var b=p.length,A=b?p[0]:0,C=this.__wrapped__;return!(1<b||this.__actions__.length)&&C instanceof Xt&&Ri(A)?((C=C.slice(A,+A+(b?1:0))).__actions__.push({func:k8,args:[h],thisArg:n}),new fr(C,this.__chain__).thru(function(L){return b&&!L.length&&L.push(n),L})):this.thru(h)}),xee=T8(function(p,h,b){Jn.call(p,b)?++p[b]:Ni(p,b,1)}),Aee=Dx(eA),Oee=Dx(tA);function aA(p,h){return(St(p)?Jl:ps)(p,ut(h,3))}function uA(p,h){return(St(p)?function(b,A){for(var C=b==null?0:b.length;C--&&A(b[C],C,b)!==!1;);return b}:rx)(p,ut(h,3))}var Nee=T8(function(p,h,b){Jn.call(p,b)?p[b].push(h):Ni(p,b,[h])}),Cee=It(function(p,h,b){var A=-1,C=typeof h=="function",L=o3(p)?he(p.length):[];return ps(p,function(z){L[++A]=C?s2(h,z,b):Y4(z,h,b)}),L}),Iee=T8(function(p,h,b){Ni(p,b,h)});function D8(p,h){return(St(p)?on:px)(p,ut(h,3))}var Ree=T8(function(p,h,b){p[b?0:1].push(h)},function(){return[[],[]]}),kee=It(function(p,h){var b;return p==null?[]:(1<(b=h.length)&&X2(p,h[0],h[1])?h=[]:2<b&&X2(h[0],h[1],h[2])&&(h=[h[0]]),mx(p,E2(h,1),[]))}),P8=bd||function(){return ul.Date.now()};function oA(p,h,b){return h=b?n:h,h=p&&h==null?p.length:h,Ci(p,a,n,n,n,n,h)}function cA(p,h){var b;if(typeof h!="function")throw new $3(l);return p=At(p),function(){return 0<--p&&(b=h.apply(this,arguments)),p<=1&&(h=n),b}}var Ed=It(function(p,h,b){var A,C=1;return b.length&&(A=xi(b,Po(Ed)),C|=s),Ci(p,C,h,b,A)}),pA=It(function(p,h,b){var A,C=3;return b.length&&(A=xi(b,Po(pA)),C|=s),Ci(h,C,p,b,A)});function fA(p,h,b){var A,C,L,z,K,le,pe=0,fe=!1,xe=!1,Ee=!0;if(typeof p!="function")throw new $3(l);function _e(Xe){var rt=A,ct=C;return A=C=n,pe=Xe,z=p.apply(ct,rt)}function Te(Xe){var rt=Xe-le;return le===n||h<=rt||rt<0||xe&&L<=Xe-pe}function nt(){var Xe=P8();if(Te(Xe))return Re(Xe);K=n1(nt,function(rt){var ct=h-(rt-le);return xe?I2(ct,L-(rt-pe)):ct}(Xe))}function Re(Xe){return K=n,Ee&&A?_e(Xe):(A=C=n Line truncated
`;if(p.replace(fe,function(Ee,_e,Te,nt,Re,ke){return Te=Te||nt,pe+=p.slice(K,ke).replace(Bl,HT),_e&&(A=!0,pe+=`' +
__e(`+_e+`) +
'`),Re&&(C=!0,pe+=`';
@@ -387,7 +387,7 @@ __p += '`),Te&&(pe+=`' +
function print() { __p += __j.call(arguments, '') }
`:`;
`)+pe+`return __p
}`,(fe=CA(function(){return wt(L,xe+"return "+pe).apply(n,z)})).source=pe,Td(fe))throw fe;return fe},R.times=function(p,h){if((p=At(p))<1||o<p)return[];var b=f,A=I2(p,f);for(h=ut(h),p-=f,A=n8(A,h);++b<p;)h(b);return A},R.toFinite=Di,R.toInteger=At,R.toLength=_A,R.toLower=function(p){return hn(p).toLowerCase()},R.toNumber=z3,R.toSafeInteger=function(p){return p?uu(At(p),-9007199254740991,o):p===0?p:0},R.toString=hn,R.toUpper=function(p){return hn(p).toUpperCase()},R.trim=function(p,h,b){return(p=hn(p))&&(b||h===n)?Ti(p):p&&(h=N3(h))?hs(b=pr(p),l8(b,h=pr(h)),r8(b,h)+1).join(""):p},R.trimEnd=function(p,h,b){return(p=hn(p))&&(b||h===n)?p.slice(0,VT(p)+1):p&&(h=N3(h))?hs(b=pr(p),0,r8(b,pr(h))+1).join(""):p},R.trimStart=function(p,h,b){return(p=hn(p))&&(b||h===n)?p.replace(bl,""):p&&(h=N3(h))?hs(b=pr(p),l8(b,pr(h))).join(""):p},R.truncate=function(p,C){var b,z=30,A="...",C=(ml(C)&&(b="separator"in C?C.separator:b,z="length"in C?At(C.length):z,A="omission"in C?N3(C.omission):A),(p=hn(p)).length);if((C=lu(p)?(L=pr(p)).length:C)<=z)return p;if((C=z-xo(A))<1)return A;var L,z=L?hs(L,0,C).join(""):p.slice(0,C);if(b!==n)if(L&&(C+=z.length-C),xd(b)){if(p.slice(C).search(b)){var K,le=z;for((b=b.global?b:ru(b.source,hn(F3.exec(b))+"g")).lastIndex=0;K=b.exec(le);)var pe=K.index;z=z.slice(0,pe===n?C:pe)}}else p.indexOf(N3(b),C)!=C&&-1<(L=z.lastIndexOf(b))&&(z=z.slice(0,L));return z+A},R.unescape=function(p){return(p=hn(p))&&$t.test(p)?p.replace(qe,zZ):p},R.uniqueId=function(p){var h=++JZ;return hn(p)+h},R.upperCase=lte,R.upperFirst=Nd,R.each=aA,R.eachRight=uA,R.first=lA,Rd(R,(Ld={},Vr(R,function(p,h){Jn.call(R.prototype,h)||(Ld[h]=p)}),Ld),{chain:!1}),R.VERSION="4.17.21",Jl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){R[p].placeholder=R}),Jl(["drop","take"],function(p,h){Xt.prototype[p]=function(b){b=b===n?1:Xl(At(b),0);var A=this.__filtered__&&!h?new Xt(this):this.clone();return A.__filtered__?A.__takeCount__=I2(b,A.__takeCount__):A.__views__.push({size:I2(b,f),type:p+(A.__dir__<0?"Right":"")}),A},Xt.prototype[p+"Right"]=function(b){return this.reverse()[p](b).reverse()}}),Jl(["filter","map","takeWhile"],function(p,h){var b=h+1,A=b==1||b==3;Xt.prototype[p]=function(C){var L=this.clone();return L.__iteratees__.push({iteratee:ut(C,3),type:b}),L.__filtered__=L.__filtered__||A,L}}),Jl(["head","last"],function(p,h){var b="take"+(h?"Right":"");Xt.prototype[p]=function(){return this[b](1).value()[0]}}),Jl(["initial","tail"],function(p,h){var b="drop"+(h?"":"Right");Xt.prototype[p]=function(){return this.__filtered__?new Xt(this):this[b](1)}}),Xt.prototype.compact=function(){return this.filter(p3)},Xt.prototype.find=function(p){return this.filter(p).head()},Xt.prototype.findLast=function(p){return this.reverse().find(p)},Xt.prototype.invokeMap=It(function(p,h){return typeof p=="function"?new Xt(this):this.map(function(b){return Y4(b,p,h)})}),Xt.prototype.reject=function(p){return this.filter(F8(ut(p)))},Xt.prototype.slice=function(p,h){p=At(p);var b=this;return b.__filtered__&&(0<p||h<0)?new Xt(b):(p<0?b=b.takeRight(-p):p&&(b=b.drop(p)),h!==n?(h=At(h))<0?b.dropRight(-h):b.take(h-p):b)},Xt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Xt.prototype.toArray=function(){return this.take(f)},Vr(Xt.prototype,function(p,h){var b=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),C=R[A?"take"+(h=="last"?"Right":""):h],L=A||/^find/.test(h);C&&(R.prototype[h]=function(){function z(nt){return nt=C.apply(R,Ur([nt],pe)),A&&xe?nt[0]:nt}var K,le=this.__wrapped__,pe=A?[1]:arguments,Te=le instanceof Xt,Ee=pe[0],fe=Te||St(le),xe=(fe&&b&&typeof Ee=="function"&&Ee.length!=1&&(Te=fe=!1),this.__chain__),Ee=!!this.__actions__.length,_e=L&&!xe,Te=Te&&!Ee;return!L&&fe?(le=Te?le:new Xt(this),(K=p.apply(le,pe)).__actions__.push({func:k8,args:[z],thisArg:n}),new fr(K,xe)):_e&&Te?p.apply(this,pe):(K=this.thru(z),_e?A?K.value()[0]:K.value():K)})}),Jl(["pop","push","shift","sort","splice","unshift"],function(p){var h=a8[p],b=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",A=/^(?:pop|shift)$/.test(p);R.prototype[p]=function(){var C,L=arguments;return A&&!this.__chain__?(C=this.value(),h.apply(St(C)?C:[],L)):this[b](function(z){return h.apply(St(z)?z:[],L)})}}),Vr(Xt.prototype,function(p,h){var b,A=R[h];A&&(b=A.name+"",Jn.call(Io,b)||(Io[b]=[]),Io[b].push({name:h,func:A}))}),Io[x8(n,2).name]=[{name:"wrapper",func:n}],Xt.prototype.clone=function(){var p=new Xt(this.__wrapped__);return p.__actions__=u3(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=u3(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=u3(this.__views__),p},Xt.prototype.reverse=function(){var p;return this.__filtered__?((p=new Xt(this)).__dir__=-1,p.__filtered__=!0):(p=this.clone()).__dir__*=-1,p},Xt.prototype.value=function(){var p=this.__wrapped__.value(),h=this.__dir__,b=St(p),A=h<0,C=b?p.length:0,L=function(Xe,rt,ct){for(var fl=-1,Al=ct.length;++fl<A Line truncated
}`,(fe=CA(function(){return wt(L,xe+"return "+pe).apply(n,z)})).source=pe,Td(fe))throw fe;return fe},R.times=function(p,h){if((p=At(p))<1||o<p)return[];var b=f,A=I2(p,f);for(h=ut(h),p-=f,A=n8(A,h);++b<p;)h(b);return A},R.toFinite=Di,R.toInteger=At,R.toLength=_A,R.toLower=function(p){return hn(p).toLowerCase()},R.toNumber=z3,R.toSafeInteger=function(p){return p?uu(At(p),-9007199254740991,o):p===0?p:0},R.toString=hn,R.toUpper=function(p){return hn(p).toUpperCase()},R.trim=function(p,h,b){return(p=hn(p))&&(b||h===n)?Ti(p):p&&(h=N3(h))?hs(b=pr(p),l8(b,h=pr(h)),r8(b,h)+1).join(""):p},R.trimEnd=function(p,h,b){return(p=hn(p))&&(b||h===n)?p.slice(0,VT(p)+1):p&&(h=N3(h))?hs(b=pr(p),0,r8(b,pr(h))+1).join(""):p},R.trimStart=function(p,h,b){return(p=hn(p))&&(b||h===n)?p.replace(bl,""):p&&(h=N3(h))?hs(b=pr(p),l8(b,pr(h))).join(""):p},R.truncate=function(p,C){var b,z=30,A="...",C=(ml(C)&&(b="separator"in C?C.separator:b,z="length"in C?At(C.length):z,A="omission"in C?N3(C.omission):A),(p=hn(p)).length);if((C=lu(p)?(L=pr(p)).length:C)<=z)return p;if((C=z-xo(A))<1)return A;var L,z=L?hs(L,0,C).join(""):p.slice(0,C);if(b!==n)if(L&&(C+=z.length-C),xd(b)){if(p.slice(C).search(b)){var K,le=z;for((b=b.global?b:ru(b.source,hn(F3.exec(b))+"g")).lastIndex=0;K=b.exec(le);)var pe=K.index;z=z.slice(0,pe===n?C:pe)}}else p.indexOf(N3(b),C)!=C&&-1<(L=z.lastIndexOf(b))&&(z=z.slice(0,L));return z+A},R.unescape=function(p){return(p=hn(p))&&$t.test(p)?p.replace(qe,zZ):p},R.uniqueId=function(p){var h=++JZ;return hn(p)+h},R.upperCase=lte,R.upperFirst=Nd,R.each=aA,R.eachRight=uA,R.first=lA,Rd(R,(Ld={},Vr(R,function(p,h){Jn.call(R.prototype,h)||(Ld[h]=p)}),Ld),{chain:!1}),R.VERSION="4.17.21",Jl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){R[p].placeholder=R}),Jl(["drop","take"],function(p,h){Xt.prototype[p]=function(b){b=b===n?1:Xl(At(b),0);var A=this.__filtered__&&!h?new Xt(this):this.clone();return A.__filtered__?A.__takeCount__=I2(b,A.__takeCount__):A.__views__.push({size:I2(b,f),type:p+(A.__dir__<0?"Right":"")}),A},Xt.prototype[p+"Right"]=function(b){return this.reverse()[p](b).reverse()}}),Jl(["filter","map","takeWhile"],function(p,h){var b=h+1,A=b==1||b==3;Xt.prototype[p]=function(C){var L=this.clone();return L.__iteratees__.push({iteratee:ut(C,3),type:b}),L.__filtered__=L.__filtered__||A,L}}),Jl(["head","last"],function(p,h){var b="take"+(h?"Right":"");Xt.prototype[p]=function(){return this[b](1).value()[0]}}),Jl(["initial","tail"],function(p,h){var b="drop"+(h?"":"Right");Xt.prototype[p]=function(){return this.__filtered__?new Xt(this):this[b](1)}}),Xt.prototype.compact=function(){return this.filter(p3)},Xt.prototype.find=function(p){return this.filter(p).head()},Xt.prototype.findLast=function(p){return this.reverse().find(p)},Xt.prototype.invokeMap=It(function(p,h){return typeof p=="function"?new Xt(this):this.map(function(b){return Y4(b,p,h)})}),Xt.prototype.reject=function(p){return this.filter(F8(ut(p)))},Xt.prototype.slice=function(p,h){p=At(p);var b=this;return b.__filtered__&&(0<p||h<0)?new Xt(b):(p<0?b=b.takeRight(-p):p&&(b=b.drop(p)),h!==n?(h=At(h))<0?b.dropRight(-h):b.take(h-p):b)},Xt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Xt.prototype.toArray=function(){return this.take(f)},Vr(Xt.prototype,function(p,h){var b=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),C=R[A?"take"+(h=="last"?"Right":""):h],L=A||/^find/.test(h);C&&(R.prototype[h]=function(){function z(nt){return nt=C.apply(R,Ur([nt],pe)),A&&xe?nt[0]:nt}var K,le=this.__wrapped__,pe=A?[1]:arguments,Te=le instanceof Xt,Ee=pe[0],fe=Te||St(le),xe=(fe&&b&&typeof Ee=="function"&&Ee.length!=1&&(Te=fe=!1),this.__chain__),Ee=!!this.__actions__.length,_e=L&&!xe,Te=Te&&!Ee;return!L&&fe?(le=Te?le:new Xt(this),(K=p.apply(le,pe)).__actions__.push({func:k8,args:[z],thisArg:n}),new fr(K,xe)):_e&&Te?p.apply(this,pe):(K=this.thru(z),_e?A?K.value()[0]:K.value():K)})}),Jl(["pop","push","shift","sort","splice","unshift"],function(p){var h=a8[p],b=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",A=/^(?:pop|shift)$/.test(p);R.prototype[p]=function(){var C,L=arguments;return A&&!this.__chain__?(C=this.value(),h.apply(St(C)?C:[],L)):this[b](function(z){return h.apply(St(z)?z:[],L)})}}),Vr(Xt.prototype,function(p,h){var b,A=R[h];A&&(b=A.name+"",Jn.call(Io,b)||(Io[b]=[]),Io[b].push({name:h,func:A}))}),Io[x8(n,2).name]=[{name:"wrapper",func:n}],Xt.prototype.clone=function(){var p=new Xt(this.__wrapped__);return p.__actions__=u3(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=u3(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=u3(this.__views__),p},Xt.prototype.reverse=function(){var p;return this.__filtered__?((p=new Xt(this)).__dir__=-1,p.__filtered__=!0):(p=this.clone()).__dir__*=-1,p},Xt.prototype.value=function(){var p=this.__wrapped__.value(),h=this.__dir__,b=St(p),A=h<0,C=b?p.length:0,L=function(Xe,rt,ct){for(var fl=-1,Al=ct.length;++fl<A Line truncated
`)){let u=a.trim();if(u)if(u.startsWith("#")){if(u.startsWith("#EXT")){let o=mEe(u,i);o&&s.push(o)}}else s.push(u)}return s.length!==0&&s[0].name==="EXTM3U"||Be("The EXTM3U tag MUST be the first line."),s}(t,e),l=yEe(n,e);return l.source=t,l}var gEe=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],vEe=["#EXT-X-MEDIA"],Sb=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(gEe.some(l=>n.startsWith(l)))super.push(n);else{if(this.includes(n)){if(vEe.some(l=>n.startsWith(l)))continue;Be(`Redundant item (${n})`)}super.push(n)}else super.push(n);return this.length}};function Ob(t,e){let n=1e3;e&&(n=Math.pow(10,e));let l=Math.round(t*n)/n;return e?l.toFixed(e):l}function _Ee(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function cq(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",l=[`METHOD=${t.method}`];return t.uri&&l.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&Be("IV must be a 128-bit unsigned integer"),l.push(`IV=${aq(t.iv)}`)),t.format&&l.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&l.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${l.join(",")}`}function EEe(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",l=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&l.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&l.push(`URI="${e.uri}"`),e.codecs&&l.push(`CODECS="${e.codecs}"`),e.resolution&&l.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&l.push(`FRAME-RATE=${Ob(e.frameRate,3)}`),e.hdcpLevel&&l.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){l.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)t.push(Op(r))}if(e.video.length>0){l.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)t.push(Op(r))}if(e.subtitles.length>0){l.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)t.push(Op(r))}if(sEe().allowClosedCaptionsNone&&e.closedCaptions.length===0)l.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){l.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)t.push(Op(r))}if(e.score&&l.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);l.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&l.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&l.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&l.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${l.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function Op(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push("DEFAULT="+(t.isDefault?"YES":"NO")),t.autoselect!==void 0&&e.push("AUTOSELECT="+(t.autoselect?"YES":"NO")),t.forced!==void 0&&e.push("FORCED="+(t.forced?"YES":"NO")),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function bEe(t,e,n,l,r=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let o=cq(e.key);o!==n&&(t.push(o),n=o)}if(e.map){let o=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${_b(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);o!==l&&(t.push(o),l=o)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${vb(e.programDateTime)}`),e.dateRange&&t.push(function(o){let c=[`ID="${o.id}"`];o.start&&c.push(`START-DATE="${vb(o.start)}"`),o.end&&c.push(`END-DATE="${vb(o.end)}"`),o.duration&&c.push(`DURATION=${o.duration}`),o.plannedDuration&&c.push(`PLANNED-DURATION=${o.plannedDuration}`),o.classId&&c.push(`CLASS="${o.classId}"`),o.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(o.attributes))f.startsWith("X-")?typeof o.attributes[f]=="number"?c.push(`${f}=${o.attributes[f]}`):c.push(`${f}="${o.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${aq(o.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(o,c){let f="";for(let m of c)if(m.type==="OUT")f="OUT",o.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")f="IN",o.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let d=m.value?`:${m.value}`:"";o.push(`#${m.tagName}${d}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(o,c){let f=!1;for(let m of c)if(m.hint){let d=[];if(d.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:y,length:_}=m.byterange;d.push(`BYTERANGE-START=${y}`),_&&d.push(`BYTERANGE-LENGTH=${_}`)}o.push(`#EXT-X-PRELOAD-HINT:${d.join(",")}`),f=!0}else{let d=[];d.push( Line truncated
`)}var fq="hls_cache",Bp=[],io={},b6={},ro={},$p="";function wEe(t,e){if(Bp.push(t),io[t]=e,Bp.length>5){let n=Bp.shift();SEe(n)}}function SEe(t){delete io[t],delete Bp[t],new JSFile(fq+"/"+t).delete()}function TEe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Nb(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Nb(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Nb(t,n.key.uri));return e}async function dq(t,e){let n=md5X(t);if(io[n])return io[n];let l={},r=t;for(;l=await req(r,{headers:e,redirect:0}),l.headers.location;)r=l.headers.location;if(l.code==200){var i=l.content;let s=TEe(r,oq(i));return wEe(n,{code:l.code,plist:s,key:n,headers:l.headers}),io[n]}return{}}async function hq(t,e,n){if(!io[t])return{};let r=io[t].plist.segments,i=!ro[t];if(i){ro[t]={};for(let c of r){let f=md5X(c.uri+c.mediaSequenceNumber.toString());ro[t][f]={file:fq+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in ro[t]){let f=ro[t][c];f.index>=e?f.order=f.index-e:f.order=r.length-e+f.index}i&&xEe(t,5,n);let s=r[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),u=ro[t][a];if(u.state==1||u.state==-1){let c=new JSFile(u.file);if(await c.exist())return u.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};u.state=-1}if(u.state==-1&&mq(t,u,n),u.state==0){var o=new JSProxyStream;o.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return u.read=!0,new Promise(async function(f,m){let d=new JSFile(u.file+".dl");await d.open("r"),async function y(){let _=await d.size();if(_>c){var S=await d.read(_-c,c);await o.write(S),c=_}if(u.state==1||u.state<0){o.done(),await d.close(),await d.delete(),u.read=!1,f();return}setTimeout(y,5)}()}),{buffer:3,content:o}}}async function mq(t,e,n){if(e.state>=0||!b6[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let l=new JSFile(e.file+".dl");await l.open("w");let r=await req(e.uri,{buffer:3,headers:n,stream:l,timeout:[5e3,1e4]});if(r.error||r.code>=300){await l.close(),e.read||await l.delete(),e.state=-1;return}await l.close(),e.read?await l.copy(e.file):await l.move(e.file),e.state=1}async function xEe(t,e,n){$p&&$p!=t&&delete b6[$p],$p=t,b6[t]=!0;for(let l=0;l<e&&b6[t];l++)new Promise(function(r,i){(async function s(){if(!b6[t]){r();return}let a=M.pickBy(ro[t],function(o){return o.state==-1}),u=M.minBy(Object.values(a),function(o){return o.order});if(!u){r();return}await mq(t,u,n),setTimeout(s,5)})()})}function Nb(t,e){var n=t.split("/"),l=e.split("/");n.pop();for(var r=0;r<l.length;r++)l[r]!="."&&(l[r]==".."?n.pop():n.push(l[r]));return n.join("/")}function yq(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let l=Number(n[0]),r=n[4];e.push(`<d p="${l},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var Hp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new nr(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":ql,Referer:this.siteUrl+"/"}}async reconnnect(e,n,l,r,i,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Rr(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,n,l,r,i,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,n,l,r,i,s,a){return a.headers.location!==void 0?r?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,l,r,i,s):a.content.length>0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),await this.reconnnect(e,n,l,r,i,s))}async fetch(e,n,l,r=!1,i=!1,s=0){let a=xp(n),u=e;M.isEmpty(a)||(u=e+"?"+a);let o=new f6(u),c;return c=await req(o.toString(),{method:"get",headers:l,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?await this.getResponse(e,n,l,r,i,s,c):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${o},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),await this.reconnnect(e,n,l,r,i,s))}async getHtml(e=this.siteUrl,n=this.getHeader()){let l=await this.fetch(e,null,n);if(M.isEmpty(l))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return et(l)}async paLine truncated
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),l=s.substring(r+1).trim(),!(!n||e[n]&&gTe[n])&&(n==="set-cookie"?e[n]?e[n].push(l):e[n]=[l]:e[n]=e[n]?e[n]+", "+l:l)}),e};var LJ=Symbol("internals");function F6(t){return t&&String(t).trim().toLowerCase()}function Ef(t){return t===!1||t==null?t:Z.isArray(t)?t.map(Ef):String(t)}function vTe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,l;for(;l=n.exec(t);)e[l[1]]=l[2];return e}var _Te=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function xw(t,e,n,l,r){if(Z.isFunction(l))return l.call(this,e,n);if(r&&(e=n),!!Z.isString(e)){if(Z.isString(l))return e.indexOf(l)!==-1;if(Z.isRegExp(l))return l.test(e)}}function ETe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}function bTe(t,e){let n=Z.toCamelCase(" "+e);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+n,{value:function(r,i,s){return this[l].call(this,e,r,i,s)},configurable:!0})})}var P4=class{constructor(e){e&&this.set(e)}set(e,n,l){let r=this;function i(a,u,o){let c=F6(u);if(!c)throw new Error("header name must be a non-empty string");let f=Z.findKey(r,c);(!f||r[f]===void 0||o===!0||o===void 0&&r[f]!==!1)&&(r[f||u]=Ef(a))}let s=(a,u)=>Z.forEach(a,(o,c)=>i(o,c,u));return Z.isPlainObject(e)||e instanceof this.constructor?s(e,n):Z.isString(e)&&(e=e.trim())&&!_Te(e)?s(PJ(e),n):e!=null&&i(n,e,l),this}get(e,n){if(e=F6(e),e){let l=Z.findKey(this,e);if(l){let r=this[l];if(!n)return r;if(n===!0)return vTe(r);if(Z.isFunction(n))return n.call(this,r,l);if(Z.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=F6(e),e){let l=Z.findKey(this,e);return!!(l&&this[l]!==void 0&&(!n||xw(this,this[l],l,n)))}return!1}delete(e,n){let l=this,r=!1;function i(s){if(s=F6(s),s){let a=Z.findKey(l,s);a&&(!n||xw(l,l[a],a,n))&&(delete l[a],r=!0)}}return Z.isArray(e)?e.forEach(i):i(e),r}clear(e){let n=Object.keys(this),l=n.length,r=!1;for(;l--;){let i=n[l];(!e||xw(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let n=this,l={};return Z.forEach(this,(r,i)=>{let s=Z.findKey(l,i);if(s){n[s]=Ef(r),delete n[i];return}let a=e?ETe(i):String(i).trim();a!==i&&delete n[i],n[a]=Ef(r),l[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return Z.forEach(this,(l,r)=>{l!=null&&l!==!1&&(n[r]=e&&Z.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
@@ -398,17 +398,22 @@ function print() { __p += __j.call(arguments, '') }
`+i):l.stack=i}throw l}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=as(this.defaults,n);let{transitional:l,paramsSerializer:r,headers:i}=n;l!==void 0&&Af.assertOptions(l,{silentJSONParsing:ua.transitional(ua.boolean),forcedJSONParsing:ua.transitional(ua.boolean),clarifyTimeoutError:ua.transitional(ua.boolean)},!1),r!=null&&(Z.isFunction(r)?n.paramsSerializer={serialize:r}:Af.assertOptions(r,{encode:ua.function,serialize:ua.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=l2.concat(s,i);let a=[],u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(u=u&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});let o=[];this.interceptors.response.forEach(function(_){o.push(_.fulfilled,_.rejected)});let c,f=0,m;if(!u){let y=[xf.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,o),m=y.length,c=Promise.resolve(n);f<m;)c=c.then(y[f++],y[f++]);return c}m=a.length;let d=n;for(f=0;f<m;){let y=a[f++],_=a[f++];try{d=y(d)}catch(S){_.call(this,S);break}}try{c=xf.call(this,d)}catch(y){return Promise.reject(y)}for(f=0,m=o.length;f<m;)c=c.then(o[f++],o[f++]);return c}getUri(e){e=as(this.defaults,e);let n=mo(e.baseURL,e.url);return ho(n,e.params,e.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(e){F4.prototype[e]=function(n,l){return this.request(as(l||{},{method:e,url:n,data:(l||{}).data}))}});Z.forEach(["post","put","patch"],function(e){function n(l){return function(i,s,a){return this.request(as(a||{},{method:e,headers:l?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}F4.prototype[e]=n(),F4.prototype[e+"Form"]=n(!0)});var G6=F4;var Kw=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});let l=this;this.promise.then(r=>{if(!l._listeners)return;let i=l._listeners.length;for(;i-- >0;)l._listeners[i](r);l._listeners=null}),this.promise.then=r=>{let i,s=new Promise(a=>{l.subscribe(a),i=a}).then(r);return s.cancel=function(){l.unsubscribe(i)},s},e(function(i,s,a){l.reason||(l.reason=new Dr(i,s,a),n(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new t(function(r){e=r}),cancel:e}}},EK=Kw;function Xw(t){return function(n){return t.apply(null,n)}}function Ww(t){return Z.isObject(t)&&t.isAxiosError===!0}var Yw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yw).forEach(([t,e])=>{Yw[e]=t});var bK=Yw;function wK(t){let e=new G6(t),n=D6(G6.prototype.request,e);return Z.extend(n,G6.prototype,e,{allOwnKeys:!0}),Z.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return wK(as(t,r))},n}var zl=wK(D4);zl.Axios=G6;zl.CanceledError=Dr;zl.CancelToken=EK;zl.isCancel=U6;zl.VERSION=go;zl.toFormData=ia;zl.AxiosError=Ve;zl.Cancel=zl.CanceledError;zl.all=function(e){return Promise.all(e)};zl.spread=Xw;zl.isAxiosError=Ww;zl.mergeConfig=as;zl.AxiosHeaders=l2;zl.formToJSON=t=>_f(Z.isHTMLForm(t)?new FormData(t):t);zl.getAdapter=Tf.getAdapter;zl.HttpStatusCode=bK;zl.default=zl;var j4=zl;var{Axios:UUe,AxiosError:MUe,CanceledError:$Ue,isCancel:BUe,CancelToken:HUe,VERSION:VUe,all:qUe,Cancel:zUe,isAxiosError:GUe,spread:JUe,toFormData:SK,AxiosHeaders:KUe,HttpStatusCode:XUe,formToJSON:WUe,getAdapter:YUe,mergeConfig:QUe}=j4;var RK=Wl(require("https"),1),kK=Wl(require("crypto"),1),DK=Wl(CK(),1),eS={};globalThis.dataBase=null;globalThis.local={get:async function(t,e){return await pxe(t,e)},set:asy Line truncated
`},timeout:.1}),await dataBase.push(l,eS)}globalThis.localLog={set:async function(t,e,n){hxe(t,e,n)}};function dxe(){_o.default.existsSync("log")||_o.default.mkdirSync("log");let t="log/info.log";return _o.default.existsSync(t)?_o.default.readFileSync(t).toString():(_o.default.writeFileSync(t,""),"")}function hxe(t){_o.default.writeFileSync("log/info.log",dxe()+`
`+t)}globalThis.req=mxe;async function mxe(t,e){try{let n=e&&e.data||null,l=e&&e.postType||null,r=e&&e.buffer||0,i=e&&e.timeout||5e3,s=(e&&e.redirect||1)===1,a=e.proxy??!1,u=e?e.headers||{}:{};l==="form"?(u["Content-Type"]="application/x-www-form-urlencoded",n!=null&&(n=IK.default.stringify(n,{encode:!1}))):l==="form-data"&&(u["Content-Type"]="multipart/form-data",n=SK(n));let o=r===1||r===2?"arraybuffer":void 0,c;a?c=DK.default.httpsOverHttp({proxy:{host:"127.0.0.1",port:7890}}):c=RK.default.Agent({rejectUnauthorized:!1});let f=await j4(t,{responseType:o,method:e&&e.method||"get",headers:u,data:n,timeout:i,maxRedirects:s?null:0,httpsAgent:c});n=f.data;let m={};for(let d of f.headers){let y=d[1];m[d[0]]=Array.isArray(y)&&y.length===1?y[0]:y}if(!r)typeof n=="object"&&(n=JSON.stringify(n));else{if(r===1)return{code:f.status,headers:m,content:n};if(r===2)return{code:f.status,headers:m,content:n.toString("base64")};if(r===3){let d=e.stream;return d.onResp&&await d.onResp({code:f.status,headers:m}),d.onData?(n.on("data",async y=>{await d.onData(y)}),n.on("end",async()=>{d.onDone&&await d.onDone()})):d.onDone&&await d.onDone(),"stream..."}}return{code:f.status,headers:m,content:n}}catch(n){let l=n.response;try{return{code:l.status,headers:l.headers,content:JSON.stringify(l.data)}}catch{return{headers:{},content:""}}}}globalThis.md5X=yxe;function yxe(t){return kK.default.createHash("md5").update(Buffer.from(t,"utf8")).digest("hex")}globalThis.js2Proxy=function(t,e,n){let l=Object.keys(n).length===0?" ":encodeURIComponent(JSON.stringify(n));return t.server.address().dynamic+t.server.prefix+"/proxy/"+encodeURIComponent(e)+"/"+l+"/"};var gxe=["DEBUG","INFO","WARNING","ERROR"];var ca=class{constructor(e,n="DEBUG"){this.app_name=e,this.level=n,this.level_index=gxe.indexOf(n)}format(e,n){let l=80;switch(e){case"INFO":l=l+1;break;case"WARNING":l=l-2;break;default:break}return n.length<l&&((l-n.length)%2===0?n="#".repeat(Math.floor((l-n.length)/2))+n+"#".repeat(Math.floor((l-n.length)/2)):n="#".repeat(Math.floor((l-n.length)/2))+n+"#".repeat(Math.floor((l-n.length)/2)+1)),n}getTime(){let e=new Date;return e.toLocaleDateString().replace(/\//g,"-")+" "+e.toTimeString().substr(0,8)+","+e.getMilliseconds().toString()}formatMessage(e,n,l){return l&&(n=this.format(e,n)),`${this.getTime()} - ${this.app_name} - ${e}: ${n}`}async log(e){console.debug(e),await req("http://127.0.0.1:8099/upload",{data:{log:e+`
`},timeout:.1})}async info(e,n){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,n))}async warning(e,n){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,n))}async error(e,n){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,n))}async debug(e,n){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,n))}};var De=class extends Fe{constructor(){super(),this.jadeLog=new ca(this.getAppName(),"DEBUG")}async init(e,n){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{await await req("http://127.0.0.1:8099/clear",{timeout:.1}),this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(l){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+l,!1)}}catch(l){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${l}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return M.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return M.isEmpty(e)?this.filterObj:e}async home(e,n){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await this.jadeLog.debug(`\u9996\u9875\u5185\u5BB9\u4E3A:${this.result.homeVod(this.homeVodList)}`),await this.jadeLog.info("\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5B8C\u6210",!0),this.result.homeVod(this.homeVodList)}catch(e){await this.jadeLog.error(`\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${e}`)}}async category(e,n){let l=e.body.id,r=e.body.page,i=!0,s=e.body.filters;if(this.page=parseInt(r),await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u5206\u7C7B\u9875\u9762,tid = ${l},pg = ${r},extend = ${JSON.stringify(s)}`),l==="\u6700\u8FD1\u66F4\u65B0")return this.page=0,await this.homeVod();try{return this.vodList=[],await this.setCategory(l,r,i,s),await this.jadeLog.debug(`\u5206\u7C7B\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}`),await this.jadeLog.info("\u5206\u7C7B\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}catch(a){await this.jadeLog.error(`\u5206\u7C7B\u9875\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${a}`)}}async detail(e,n){await this.jadeLog.debug(`\u83B7\u53D6\u8BE6\u60C5\u9875\u9762:${JSON.stringify(e.body)}`);let r=(Array.isArray(e.body.id)?e.body.id:[e.body.id])[0];this.vodDetail=new He,await this.jadeLog.info(`\u6B63\u5728\u83B7\u53D6\u8BE6\u60C5\u9875\u9762,id\u4E3A:${r}`);try{return await this.setDetail(r),await this.jadeLog.debug(`\u8BE6\u60C5\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.detail(this.vodDetail)}`),await this.jadeLog.info("\u8BE6\u60C5\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.vodDetail.vod_id=r,this.result.detail(this.vodDetail)}catch(i){await this.jadeLog.error("\u8BE6\u60C5\u754C\u9762\u83B7\u53D6\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+i)}}async play(e,n){let l=e.body.flag,r=e.body.id,i=[];await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u64AD\u653E\u9875\u9762,flag:${l},id:${r},flags:${i}`,!0);try{let s;if(await this.setPlay(l,r,i),this.playUrl.content!==void 0)return this.playUrl;if(await this.jadeLog.debug("\u4E0D\u9700\u8981\u52A0\u8F7D\u5F39\u5E55",!0),this.result.jx===1&&this.playUrl.indexOf(".m3u8")<0){let a=await e.server.messageToD Line truncated
`," ").replaceAll(" \u6536\u8D77","");let o=e('[class="module-tab-item tab-item"]'),c=e('[class="scroll-content"]'),f=[],m=[];for(let d=0;d<o.length;d++){let _=o[d].attribs["data-dropdown-value"];if(_.indexOf("\u5938\u514B")===-1){f.push(_);let S=[];for(let w of e(c[d]).find("a")){let E=e(w).text(),g=w.attribs.href;S.push(E+"$"+g)}m.push(S.join("#"))}}return l.vod_play_from=f.join("$$$"),l.vod_play_url=m.join("$$$"),l}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=[e.toString(),"","","","","","","",n.toString(),"","",""],s=[3,11,1,2];r.\u5168\u90E8\u5267\u60C5!==void 0&&r.\u5168\u90E8\u5267\u60C5!=="0"&&(i[s[0]]=r.\u5168\u90E8\u5267\u60C5),r.\u5168\u90E8\u65F6\u95F4!==void 0&&r.\u5168\u90E8\u65F6\u95F4!=="0"&&(i[s[1]]=r.\u5168\u90E8\u65F6\u95F4),r.\u5168\u90E8\u5730\u533A!==void 0&&r.\u5168\u90E8\u5730\u533A!=="0"&&(i[s[2]]=r.\u5168\u90E8\u5730\u533A),r.\u65F6\u95F4\u6392\u5E8F!==void 0&&r.\u65F6\u95F4\u6392\u5E8F!=="0"&&(i[s[3]]=r.\u65F6\u95F4\u6392\u5E8F);let a=this.siteUrl+"/index.php/vodshow/"+i.join("-")+".html",u=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(u)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}uic(e,n){let l=$e.enc.Utf8.parse("2890"+n+"tB959C"),r=$e.enc.Utf8.parse("2F131BE91247866E"),i=$e.AES.decrypt(e,l,{iv:r,mode:$e.mode.CBC,padding:$e.pad.Pkcs7});return $e.enc.Utf8.stringify(i)}async setPlay(e,n,l){let i=(await this.getHtml(this.siteUrl+n))('[id="bfurl"]')[0].attribs.href;if(i.indexOf("http")>-1)this.playUrl=i;else{let s="https://jiexi.xn--1lq90i13mxk5bolhm8k.xn--fiqs8s/player/ec.php?code=ak&if=1&url="+i,u=(await this.getHtml(s)).html(),o=JSON.parse(Oe(/let ConFig = (.*?),box = /,u));this.playUrl=this.uic(o.url,o.config.uid)}}async setSearch(e,n){let l=`http://123.207.150.253/zxapi/public/?service=App.F.Fetch&req_p=${e}&type=6080`,r=await this.fetch(l,null,this.getHeader());this.vodList=await this.parseVodShortListFromJson(JSON.parse(r))}},yn=new tS;var nS=class extends De{constructor(){super()}getName(){return yn.getName()}getAppName(){return yn.getAppName()}getJSName(){return yn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await yn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await yn.initCookie(e.server.config.biliCookie),await yn.spiderInit(e),yn.cfgObj.code=0,yn.catOpenStatus=!0,yn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await yn.setClasses(),this.classes=yn.classes}async setFilterObj(){await yn.setFilterObj(),this.filterObj=yn.filterObj}async setHomeVod(){await yn.setHomeVod(),this.homeVodList=yn.homeVodList}async setCategory(e,n,l,r){await yn.setCategory(e,n,l,r),this.vodList=yn.vodList}async setDetail(e){await yn.setDetail(e),this.vodDetail=yn.vodDetail}async setPlay(e,n,l){await yn.setPlay(e,n,l),this.playUrl=yn.playUrl,this.result=yn.result}async setSearch(e,n,l){await yn.setSearch(e,n,l),this.vodList=yn.vodList,this.result=yn.result}async setProxy(e,n){return await yn.proxy(e,n)}},pa=new nS;async function PK(t,e){return await pa.init(t,e)}async function LK(t,e){return await pa.home(t,e)}async function vxe(t,e){return await pa.homeVod(t,e)}async function FK(t,e){return await pa.category(t,e)}async function jK(t,e){return await pa.detail(t,e)}async function UK(t,e){return await pa.play(t,e)}async function MK(t,e){return await pa.search(t,e)}async function _xe(t,e){return await pa.proxy(t,e)}var $K={meta:{key:yn.getJSName(),name:yn.getName(),type:yn.getType()},api:async t=>{t.post("/init",PK),t.post("/home",LK),t.post("/category",FK),t.post("/detail",jK),t.post("/play",UK),t.post("/search",MK),t.get("/proxy/:what/:ids/:end",_xe)},spider:{init:PK,home:LK,homeVod:vxe,category:FK,detail:jK,play:UK,search:MK}};function Exe(t){return t==="zd"?"\u6700\u5927":t==="yj"?"\u6C38\u4E45":t==="hn"?"\u725B\u725B":t==="gs"?"\u5149\u6CE2":t==="sn"?"\u65B0\u6717":t==="wl"?"\u6DA1\u8F6E":t==="lz"?"\u826F\u5B50":t==="fs"?"F\u901F":t==="ff"?"\u98DE\u98DE":t==="bd"?"\u767E\u5EA6":t==="uk"?"\u9177U":t==="wj"?"\u65E0\u5929":t==="bj"?"\u516B\u6212":t==="tk"?"\u5929\u7A7A":t==="ss"?"\u901F\u901F":t==="kb"?"\u9177\u64AD":t==="sd"?"\u95EA\u7535":t==="xk"?"\u770B\u770B":t==="tp"?"\u6DD8\u6DD8":t==="jy"?"\u7CBE\u82F1":t}var lS=class extends Fe{constructor(){super(),this.siteUrl="http://cqdb6.com"}getName(){return"\u{1F4FA}\u250370\u770B\u770B\u2503\u{1F4FA}"}getAppName(){return"70\u770B\u770B"}getJSName(){return"kankan70"}getType(){return 3}paraseUrlObject(e){let n=e.split(";"),l={},r="",i=0,s=0,a="";for(let c=0;c<n.length;c++){let f=n[c];if(f.indexOf("var lianzaijs")>-1?(r=f.split("=")[0].split(" ")[1],a=r.split("_")[1]):f.indexOf("pl_id=")>-1?(i=f.split("=")[1],l[r]={play_id:i,list:[], Line truncated
`,"").replaceAll("\u5267\u60C5\uFF1A",""),n.vod_pic=e("img.lazy")[0].attribs["data-original"],n}async parseVodShortListFromJson(e){let n=[];for(let l of e){let r=new Ne;r.vod_id=l.url,r.vod_pic=l.thumb,r.vod_remarks=l.time,r.vod_name=l.title,n.push(r)}return n}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n("[class=index-list-l]");for(let r of l){let i=n(n(r).find('[class="h1 clearfix"]')[0]).find("a"),s=i[0].attribs.href,a=n(i[1]).text();M.isEmpty(a)||this.classes.push({type_id:s,type_name:a})}}}async getFilter(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader()),r=[];if(!M.isEmpty(l)){let i=et(l),s=i('[class="sy scon clearfix"]').find("dl"),a=0;for(let u of s){let o=i(i(u).find("dt")).text().replace("\u6309","").replace("\uFF1A",""),c={key:(a+1).toString(),name:o,value:[]},f=i(u).find("a"),m=0;o==="\u5267\u60C5"?m=3:o==="\u5E74\u4EE3"?m=2:o==="\u5730\u533A"&&(m=4);for(let d of f){let y=d.attribs.href.split("/");c.value.push({n:i(d).text(),v:y[m]})}r.push(c),a=a+1}}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter(n))}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=this.siteUrl+e,s=await this.fetch(i,null,this.getHeader());if(!M.isEmpty(s)){let a=e.split("/")[1],u=e.split("/")[2],o=Oe(/var _yu_gda_s="(.*?)";/,s),c={action:a,page:parseInt(n),year:r[2]??"0",area:r[3]??"all",class:r[1]??"0",dect:"",id:u},f=await this.fetch(o,c,this.getHeader());if(f!==null){let m=et(f);this.vodList=await this.parseVodShortListFromDoc(m)}}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r);let s="http://test.gqyy8.com:8077/ne2"+/<script type="text\/javascript" src="http:\/\/test.gqyy8.com:8077\/ne2(.*?)"><\/script>/g.exec(l)[1],a=await this.fetch(s,null,this.getHeader());if(!M.isEmpty(a)){let u=this.paraseUrlObject(a);this.vodDetail.vod_play_url=u.play_url,this.vodDetail.vod_play_from=u.play_format}}}async setSearch(e,n){let l=this.siteUrl+"/search.php",r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i={top:10,q:e},s=Oe(/var my_search='(.*?)';/,r),a=await this.fetch(s,i,this.getHeader());if(!M.isEmpty(a)){let u=JSON.parse(a.replaceAll("\uFEFF",""));this.vodList=await this.parseVodShortListFromJson(u)}}}},gn=new lS;var rS=class extends De{constructor(){super()}getName(){return gn.getName()}getAppName(){return gn.getAppName()}getJSName(){return gn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await gn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await gn.initCookie(e.server.config.biliCookie),await gn.spiderInit(e),gn.cfgObj.code=0,gn.catOpenStatus=!0,gn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await gn.setClasses(),this.classes=gn.classes}async setFilterObj(){await gn.setFilterObj(),this.filterObj=gn.filterObj}async setHomeVod(){await gn.setHomeVod(),this.homeVodList=gn.homeVodList}async setCategory(e,n,l,r){await gn.setCategory(e,n,l,r),this.vodList=gn.vodList}async setDetail(e){await gn.setDetail(e),this.vodDetail=gn.vodDetail}async setPlay(e,n,l){await gn.setPlay(e,n,l),this.playUrl=gn.playUrl,this.result=gn.result}async setSearch(e,n,l){await gn.setSearch(e,n,l),this.vodList=gn.vodList,this.result=gn.result}async setProxy(e,n){return await gn.proxy(e,n)}},fa=new rS;async function BK(t,e){return await fa.init(t,e)}async function HK(t,e){return await fa.home(t,e)}async function bxe(t,e){return await fa.homeVod(t,e)}async function VK(t,e){return await fa.category(t,e)}async function qK(t,e){return await fa.detail(t,e)}async function zK(t,e){return await fa.play(t,e)}async function GK(t,e){return await fa.search(t,e)}async function wxe(t,e){return await fa.proxy(t,e)}var JK={meta:{key:gn.getJSName(),name:gn.getName(),type:gn.getType()},api:async t=>{t.post("/init",BK),t.post("/home",HK),t.post("/category",VK),t.post("/detail",qK),t.post("/play",zK),t.post("/search",GK),t.get("/proxy/:what/:ids/:end",wxe)},spider:{init:BK,home:HK,homeVod:bxe,category:VK,detail:qK,play:zK,search:GK}};var J6=class extends Fe{constructor(){super(),this.siteUrl="http://op.ysdqjs.cn",this.cookie="",this.extendObj={extend:"\u7C7B\u578B",area:"\u5730\u533A",year:"\u5E74\u4EE3"},this.parseMap={}}async request(e,n,l){let r={"User-Agent":ql};M.isEmpty(this.cookie)||(r.Cookie=this.cookie);let i=n==="post"?"form-data":"",s=await req(e,{method:n||"get",headers:r,data:l,postType:i});if(s.code===403){let a=s.data.match(/window\.location\.href ="(.*?)"/)[1];this.cookie=M Line truncated
`,"").replaceAll(" ",""),l.push(s)}return l}async parseVodDetailFromDoc(e){let n=e("#post_content"),l=[],r=[];if(!this.catOpenStatus){let u=0,o="\u78C1\u529B\u7EBF\u8DEF";for(let c of n){let f=e(c).find("table a"),m=[];for(let d of f){let y=d.attribs.href,_=d.children[0].data;y.toLowerCase().startsWith("magnet")&&m.push(_+"$"+y)}m.length>0&&(u++,l.push(o+u),r.push(m.join("#")))}}let i=e(e(".mainleft")).find('[class="widget box row"]');for(let u of i){let o=e(u).find("h3").text(),c=[];if(!M.isEmpty(o)){let f=e(u).find("a");for(let m of f)c.push(m.attribs.title+"$"+m.attribs.href);l.push(o),r.push(c.join("#"))}}let s=e(".context").html(),a=new He;return a.vod_name=e(".article_container > h1").text(),a.vod_pic=e("#post_content img").attr("src"),a.type_name=Oe(/◎类  别 (.*?)<br>/,s),M.isEmpty(a.type_name)&&(a.type_name=e('[rel="category tag"]').text()),a.vod_year=Oe(/◎年  代 (.*?)<br>/,s),M.isEmpty(a.vod_year)&&(a.vod_year=Oe(/首播:(.*?)<br>"/,s)),a.vod_area=Oe(/◎产  地 (.*?)<br>/,s),M.isEmpty(a.vod_year)&&(a.vod_area=Oe(/地区:(.*?)<br>"/,s)),a.vod_remarks=Oe(/◎上映日期 (.*?)<br>/,s),a.vod_actor=this.getActorOrDirector(/◎演  员 (.*?)<\/p>/,s),M.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/◎主  演 (.*?)<\/p>/,s)),M.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/主演:(.*?)<br>/,s)),a.vod_director=this.getActorOrDirector(/◎导  演 (.*?)<br>/,s),M.isEmpty(a.vod_director)&&(a.vod_director=this.getActorOrDirector(/导演:(.*?)<br>/,s)),a.vod_content=this.getDescription(/◎简  介(.*?)<hr>/gi,s),M.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/简介(.*?)<\/p>/gi,s)),M.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/◎简  介(.*?)<br>/gi,s)),a.vod_play_from=l.join("$$$"),a.vod_play_url=r.join("$$$"),a}async parseVodPlayFromDoc(e,n){let l="",r=n.html();switch(e){case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u63D2\u4EF6 \u6781\u901F\u64AD\u653E\uFF09":case"\u64AD\u653E\u5730\u5740\u4E09":l=n(n(".video")).find("iframe")[0].attribs.src+"/index.m3u8";break;case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u9700\u5B89\u88C5\u63D2\u4EF6\uFF09":let i=/url: '(.*?)',/gs.exec(r);i.length>1&&(l=i[1]);break;case"\u64AD\u653E\u5730\u5740\u56DB":let s=/source: "(.*?)",/gs.exec(r);s.length>1&&(l=s[1]);break;default:await this.jadeLog.warning(`\u6682\u4E0D\u652F\u6301\u5F53\u524D\u683C\u5F0F,\u5F53\u524D\u683C\u5F0F\u4E3A:${e}`);break}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n("#menus > li > a");for(let r=0;r<l.length;r++){let i=l[r];if(r<2||r===l.length-1)continue;let s=i.children[0].data,a=i.attribs.href;if(this.classes.push({type_name:s,type_id:a}),s==="\u7535\u89C6\u5267"){let u=[{n:"\u4E0D\u9650",v:""}];for(let o of n(i.next).find("a"))u.push({n:o.children[0].data,v:o.attribs.href.replaceAll(a,"")});this.filterObj[a]=[{key:"cateId",name:"\u7C7B\u578B",value:u}]}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(M.isEmpty(e))await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5931\u8D25",!0);else{let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=r.cateId??"",s=this.siteUrl+e+i;this.page=parseInt(n),this.count=0,this.limit=18,this.total=0,this.page!==1&&(s+="index_"+n+".html");let a=await this.fetch(s,null,this.getHeader());if(!M.isEmpty(a)){let u=et(a),o=u(".pagination > a");if(o.length>0){let c=o.slice(-1)[0].attribs.href,m=/index_(.*?).html/.exec(c);this.count=parseInt(m[1]);let d=u("#post_container .post_hover");this.total=this.page===this.count?(this.page-1)*this.limit+d.length:this.count*this.limit}this.vodList=await this.parseVodShortListFromDoc(u)}}async setSearch(e,n){let l=this.siteUrl+"/e/search/index.php",r={show:"title",tempid:"1",tbname:"article",mid:"1",dopost:"search",keyboard:e},i=await this.post(l,r,this.getHeader());if(!M.isEmpty(i)){let s=et(i);this.vodList=await this.parseVodShortListFromDoc(s)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){if(n.toLowerCase().startsWith("magnet"))this.playUrl=n;else{let r=this.siteUrl+n,i=await this.fetch(r,null,this.getHeader()),s=et(i);this.playUrl=await this.parseVodPlayFromDoc(e,s)}}},_n=new aS;var uS=class extends De{constructor(){super()}getName(){return _n.getName()}getAppName(){return _n.getAppName()}getJSName(){return _n.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await _n.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await _n.initCookie(e.server.config.biliCookie),await _n.spiderInit(e),_n.cfgObj.code=0,_n.catOpenStatus=!0,_n.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",ty Line truncated
`;n.type_name=e(e(e(r).find('[class="post-meta"]')).find("span")[0]).text(),n.vod_pic=e(r).find("img")[0].attribs.src,n.vod_name=Oe(/名称:(.*?)\n/,s),n.vod_actor=Oe(/主演:(.*?)\n/,s),n.vod_director=Oe(/导演:(.*?)\n/,s),n.vod_area=Oe(/地区:(.*?)\n/,s),n.vod_year=Oe(/年份:(.*?)\n/,s),n.vod_remarks=Oe(/更新:(.*?)\n/,s);let a=e('[class="article-related info"]').find("p");n.vod_content=e(a).text();let u=e('[class="article-related download_url"]'),o=[],c=[];for(let f=0;f<u.length;f++){let m=u[f],d=e(e(m).find("h2")).text().replaceAll(n.vod_name,"");o.push(d.replaceAll("\u4E0B\u8F7D","\u64AD\u653E"));let y=[];for(let _ of e(u[f]).find("a")){let S=e(_).text().replaceAll("\u78C1\u529B\u94FE\u4E0B\u8F7D","").replaceAll(".mp4",""),w=_.attribs.href;y.push(S+"$"+w)}c.push(y.join("#"))}return n.vod_play_from=o.join("$$$"),n.vod_play_url=c.join("$$$"),n}async parseVodShortListFromJson(e){let n=[],l=et(e.ajaxtxt),r=l(l("ul")).find("li");for(let i of r){let s=new Ne;s.vod_pic=l(i).find("img")[0].attribs["data-original"],s.vod_name=Oe(/《(.*?)》/,l(i).find("img")[0].attribs.alt),s.vod_id=l(i).find("a")[0].attribs.href,s.vod_remarks="\u8BC4\u5206:"+l(l(i).find('[class="rate badge"]')).text(),n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],l=e(e('[id="list_all"]').find("ul")).find("li");for(let r of l){let i=new Ne;i.vod_id=e(r).find("a")[0].attribs.href,i.vod_name=Oe(/《(.*?)》/,e(e(e(r).find('[class="text_info"]')).find("a")[0]).text()),i.vod_pic=e(r).find("img")[0].attribs["data-original"],i.vod_remarks=e(e(r).find('[class="update_time"]')).text(),n.push(i)}return n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);return this.vodDetail=await this.parseVodDetailFromDoc(n),this.vodDetail}async setCategory(e,n,l,r){let i=this.siteUrl+`/list/${e}-${n}.html`,s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setSearch(e,n){let l=this.siteUrl+"/search/",r={wd:e,p:"1",t:"j/tNgwBS2e8O4x9TuIkYuQ=="},i=await this.post(l,r,this.getSearchHeader()),s=et(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}},En=new oS;var cS=class extends De{constructor(){super()}getName(){return En.getName()}getAppName(){return En.getAppName()}getJSName(){return En.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await En.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await En.initCookie(e.server.config.biliCookie),await En.spiderInit(e),En.cfgObj.code=0,En.catOpenStatus=!0,En.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await En.setClasses(),this.classes=En.classes}async setFilterObj(){await En.setFilterObj(),this.filterObj=En.filterObj}async setHomeVod(){await En.setHomeVod(),this.homeVodList=En.homeVodList}async setCategory(e,n,l,r){await En.setCategory(e,n,l,r),this.vodList=En.vodList}async setDetail(e){await En.setDetail(e),this.vodDetail=En.vodDetail}async setPlay(e,n,l){await En.setPlay(e,n,l),this.playUrl=En.playUrl,this.result=En.result}async setSearch(e,n,l){await En.setSearch(e,n,l),this.vodList=En.vodList,this.result=En.result}async setProxy(e,n){return await En.proxy(e,n)}},ma=new cS;async function dX(t,e){return await ma.init(t,e)}async function hX(t,e){return await ma.home(t,e)}async function Oxe(t,e){return await ma.homeVod(t,e)}async function mX(t,e){return await ma.category(t,e)}async function yX(t,e){return await ma.detail(t,e)}async function gX(t,e){return await ma.play(t,e)}async function vX(t,e){return await ma.search(t,e)}async function Nxe(t,e){return await ma.proxy(t,e)}var _X={meta:{key:En.getJSName(),name:En.getName(),type:En.getType()},api:async t=>{t.post("/init",dX),t.post("/home",hX),t.post("/category",mX),t.post("/detail",yX),t.post("/play",gX),t.post("/search",vX),t.get("/proxy/:what/:ids/:end",Nxe)},spider:{init:dX,home:hX,homeVod:Oxe,category:mX,detail:yX,play:gX,search:vX}};var pS=class extends Fe{constructor(){super(),this.siteUrl="http://api2.rinhome.com"}getName(){return"\u{1F33C}\u2503\u8350\u7247\u2503\u{1F33C}"}getAppName(){return"\u8350\u7247"}getJSName(){return"jianpian"}getType(){return 3}getHeader(){return{"User-Agent":"jianpian-android/360",JPAUTH:"y261ow7kF2dtzlxh1GS9EB8nbTxNmaK/QQIAjctlKiEv",Referer:"www.jianpianapp.com"}}async spiderInit(e=null){e!==null?this.jsBase=await js2Proxy(e,"img",this.getHeader()):this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"img/",this.getHeader())}async init(e){await super.init(e),this.danmuStaus=!0,await this.spiderInit(null)}async parseVodShortListFromJson(e){let n=[];for(let l of e){let r=new Ne;r.vod_id=l.id,l.path!==void 0?r.vod_pic=this.jsBase+r3(l.path):r.vod_pic=this.jsBase+r3(l.thumbnail),r.vod_name=l.title,l Line truncated
`,"").replaceAll(" ","");if(a.indexOf("\u65F6\u95F4")>-1&&a.indexOf("\u6587\u4EF6\u5939")>-1){let u=a.split("\u65F6\u95F4"),o=new Ne;o.vod_name=u[0],o.vod_remarks=u[1].split("\u683C\u5F0F")[0].replaceAll(":","").replaceAll(" ","").replaceAll("\uFEFF","").replaceAll("\xA0",""),o.vod_id=JSON.stringify({name:o.vod_name,remarks:o.vod_remarks,id:i}),l.push(o)}}}return l}async setClasses(){await this.parseClassFromDoc(this.content_html)}async setHomeVod(){let e=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.homeVodList=await this.parseVodShortListFromDoc(e[0])}async setDetail(e){if(e.indexOf("search")>-1){let n=this.siteUrl+"/search",l={k:decodeURIComponent(e.split("search?k=").slice(-1)[0])},r=await this.fetch(n,l,this.getHeader());if(!M.isEmpty(r)){let i=et(r),s=await this.parseVodShortListFromDocBySearch(i);s.length>0?e=s[0].vod_id:e=""}}if(!M.isEmpty(e)){let n=JSON.parse(e);this.vodDetail=await this.parseVodDetailfromJson(n)}}async setCategory(e,n,l,r){let i=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.vodList=await this.parseVodShortListFromDoc(i[parseInt(e)])}async setSearch(e,n){let l=this.siteUrl+"/search",r={k:e},i=await this.fetch(l,r,this.getHeader());if(!M.isEmpty(i)){let s=et(i);this.vodList=await this.parseVodShortListFromDocBySearch(s)}}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}},wn=new dS;var hS=class extends De{constructor(){super()}getName(){return wn.getName()}getAppName(){return wn.getAppName()}getJSName(){return wn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await wn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await wn.initCookie(e.server.config.biliCookie),await wn.spiderInit(e),wn.cfgObj.code=0,wn.catOpenStatus=!0,wn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await wn.setClasses(),this.classes=wn.classes}async setFilterObj(){await wn.setFilterObj(),this.filterObj=wn.filterObj}async setHomeVod(){await wn.setHomeVod(),this.homeVodList=wn.homeVodList}async setCategory(e,n,l,r){await wn.setCategory(e,n,l,r),this.vodList=wn.vodList}async setDetail(e){await wn.setDetail(e),this.vodDetail=wn.vodDetail}async setPlay(e,n,l){await wn.setPlay(e,n,l),this.playUrl=wn.playUrl,this.result=wn.result}async setSearch(e,n,l){await wn.setSearch(e,n,l),this.vodList=wn.vodList,this.result=wn.result}async setProxy(e,n){return await wn.proxy(e,n)}},ga=new hS;async function OX(t,e){return await ga.init(t,e)}async function NX(t,e){return await ga.home(t,e)}async function Rxe(t,e){return await ga.homeVod(t,e)}async function CX(t,e){return await ga.category(t,e)}async function IX(t,e){return await ga.detail(t,e)}async function RX(t,e){return await ga.play(t,e)}async function kX(t,e){return await ga.search(t,e)}async function kxe(t,e){return await ga.proxy(t,e)}var DX={meta:{key:wn.getJSName(),name:wn.getName(),type:wn.getType()},api:async t=>{t.post("/init",OX),t.post("/home",NX),t.post("/category",CX),t.post("/detail",IX),t.post("/play",RX),t.post("/search",kX),t.get("/proxy/:what/:ids/:end",kxe)},spider:{init:OX,home:NX,homeVod:Rxe,category:CX,detail:IX,play:RX,search:kX}};var mS=class extends Fe{constructor(){super(),this.isJustLive=!1,this.dataFrom="",this.customArea="",this.huYaPlayForamtObj={AL:"\u84DD\u51498M",TX:"\u84DD\u51494M",HW:"\u8D85\u6E05",HS:"\u6D41\u7545"},this.livePlayForamtObj={HD:"\u84DD\u51498M",LD:"\u84DD\u51494M",SD:"\u8D85\u6E05",OD:"\u6D41\u7545"}}getName(){return"\u{1F42F}\u2503\u864E\u7259\u76F4\u64AD\u2503\u{1F42F}"}getAppName(){return"\u864E\u7259\u76F4\u64AD"}getJSName(){return"huya"}getType(){return 3}async spiderInit(){this.cfgObj.hasOwnProperty("custom")&&(this.customArea=this.cfgObj.custom),this.cfgObj.hasOwnProperty("from")&&(this.dataFrom=this.cfgObj.from),this.dataFrom!=="justlive"?this.siteUrl="https://www.huya.com":(this.siteUrl="http://live.yj1211.work",this.isJustLive=!0)}async init(e){await super.init(e),await this.spiderInit()}getHeader(){let e=super.getHeader();return e["User-Agent"]=ea,e}async setClasses(){this.classes=[{type_id:"1",type_name:"\u7F51\u6E38"},{type_id:"2",type_name:"\u5355\u673A"},{type_id:"3",type_name:"\u624B\u6E38"},{type_id:"8",type_name:"\u5A31\u4E50"}]}async setFilterObj(){if(this.filterObj={1:[{key:"cateId",name:"\u5206\u7C7B",init:"1",value:[{n:"\u82F1\u96C4\u8054\u76DF",v:"1"},{n:"CS2",v:"862"},{n:"\u7A7F\u8D8A\u706B\u7EBF",v:"4"},{n:"lol\u4E91\u9876\u4E4B\u5F08",v:"5485"},{n:"\u65E0\u754F\u5951\u7EA6",v:"5937"},{n:"CFHD",v:"6079"},{n:"\u9006\u6218",v:"135"},{n:"\u7089\u77F3\u4F20\u8BF4",v:"393"},{n:"DOTA2",v:"7"},{n:"\u5730\u4E0B\u57CE\u4E0E\u52C7\u58EB",v:"2"},{n:"\u9B54\u517D\u4E16\u754C",v:"8"},{n:"\u5766\u514B\u4E16\u754C",v:"802"},{n:"DOTA1",v:"6"},{n:"\u68A6\u4E09\u56FD",v:"489"},{n:"\u9B54\u517D\u4E89\u97 Line truncated
`},timeout:.1})}async info(e,n){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,n))}async warning(e,n){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,n))}async error(e,n){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,n))}async debug(e,n){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,n))}};var De=class extends Fe{constructor(){super(),this.jadeLog=new ca(this.getAppName(),"DEBUG")}async init(e,n){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{await await req("http://127.0.0.1:8099/clear",{timeout:.1}),this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(l){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+l,!1)}}catch(l){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${l}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return M.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return M.isEmpty(e)?this.filterObj:e}async home(e,n){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await this.jadeLog.debug(`\u9996\u9875\u5185\u5BB9\u4E3A:${this.result.homeVod(this.homeVodList)}`),await this.jadeLog.info("\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5B8C\u6210",!0),this.result.homeVod(this.homeVodList)}catch(e){await this.jadeLog.error(`\u9996\u9875\u5185\u5BB9\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${e}`)}}async category(e,n){let l=e.body.id,r=e.body.page,i=!0,s=e.body.filters;if(this.page=parseInt(r),await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u5206\u7C7B\u9875\u9762,tid = ${l},pg = ${r},extend = ${JSON.stringify(s)}`),l==="\u6700\u8FD1\u66F4\u65B0")return this.page=0,await this.homeVod();try{return this.vodList=[],await this.setCategory(l,r,i,s),await this.jadeLog.debug(`\u5206\u7C7B\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}`),await this.jadeLog.info("\u5206\u7C7B\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}catch(a){await this.jadeLog.error(`\u5206\u7C7B\u9875\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${a}`)}}async detail(e,n){await this.jadeLog.debug(`\u83B7\u53D6\u8BE6\u60C5\u9875\u9762:${JSON.stringify(e.body)}`);let r=(Array.isArray(e.body.id)?e.body.id:[e.body.id])[0];this.vodDetail=new He,await this.jadeLog.info(`\u6B63\u5728\u83B7\u53D6\u8BE6\u60C5\u9875\u9762,id\u4E3A:${r}`);try{return await this.setDetail(r),await this.jadeLog.debug(`\u8BE6\u60C5\u9875\u9762\u5185\u5BB9\u4E3A:${this.result.detail(this.vodDetail)}`),await this.jadeLog.info("\u8BE6\u60C5\u9875\u9762\u89E3\u6790\u5B8C\u6210",!0),this.vodDetail.vod_id=r,this.result.detail(this.vodDetail)}catch(i){await this.jadeLog.error("\u8BE6\u60C5\u754C\u9762\u83B7\u53D6\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+i)}}async play(e,n){let l=e.body.flag,r=e.body.id,i=[];await this.jadeLog.info(`\u6B63\u5728\u89E3\u6790\u64AD\u653E\u9875\u9762,flag:${l},id:${r},flags:${i}`,!0);try{let s;if(await this.setPlay(l,r,i),this.playUrl.content!==void 0)return this.playUrl;if(await this.jadeLog.debug("\u4E0D\u9700\u8981\u52A0\u8F7D\u5F39\u5E55",!0),this.result.jx===1&&this.playUrl.indexOf(".m3u8")<0){let a=await e.server.messageToD Line truncated
`),r=[];for(let m of l)M.isEmpty(m.replaceAll(" ","").replaceAll("/",""))||r.push(m.replaceAll(" ","").replaceAll("/",""));n.type_name=r.slice(0,2).join("*");let i=e('[class="video-info-items"]');n.vod_director=e(i[0]).find("a")[0].children[0].data;let s=e(i[1]).find("a"),a=[];for(let m of s)a.push(m.children[0].data);n.vod_actor=a.join(" * "),n.vod_year=r[2],n.vod_remarks=e(e(i[3]).find(".video-info-item")).text(),n.vod_content=e(e(i[5]).find(".video-info-item")).text(),n.vod_area=r[3],n.vod_content=n.vod_content.replace("[\u6536\u8D77\u90E8\u5206]","").replace("[\u5C55\u5F00\u5168\u90E8]","").replaceAll(" ","").replaceAll(`
`,"");let u=e(e('[class="module-tab-content"]')[0]).find("span"),o=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let m of u)c.push(e(m).text());let f=[];for(let m of o){let d=e(e(m).find('[class="sort-item"]')).find("a"),y=[];for(let _ of d){let S=e(_).text(),w=_.attribs.href,E=S+"$"+w;y.push(E)}f.push(y.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=M.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),l=[];for(let r of n){let i=new Ne;i.vod_id=e(r).find(".video-serial")[0].attribs.href,i.vod_name=e(r).find(".video-serial")[0].attribs.title,i.vod_pic=e(r).find(".module-item-pic > img")[0].attribs["data-src"],i.vod_remarks=e(e(r).find(".video-serial")[0]).text(),l.push(i)}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n(n('[class="nav-menu-items"]')[0]).find("li");for(let r of l.slice(0,6)){let i=n(n(r).find("span")).text();if(i!=="\u9996\u9875"){let a={type_id:n(r).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:i};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))e(e(n[r]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?i.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/vodshow/id/${n}.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=et(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,l=""){return e!==void 0&&e!=="0"?l+e:n}async getCateUrl(e,n,l){e=this.getExtend(l[1],e);let r=this.getExtend(l[2],"","/area/"),i=this.getExtend(l[3],"","/lang/"),s=this.getExtend(l[4],"","/year/"),a=this.getExtend(l[5],"","/letter/"),u=this.getExtend(l[6],"","/by/");return this.siteUrl+`/vodshow${u}${r}/id/${e}${i}${a}${s}/page/${n}.html`}async setCategory(e,n,l,r){let i=await this.getCateUrl(e,n,r),s=await this.fetch(i,null,this.getHeader());if(!M.isEmpty(s)){let a=et(s);this.vodList=await this.parseVodShortListFromDoc(a);let u=Oe(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,u.length>0&&(this.total=parseInt(u)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){let r=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!M.isEmpty(r)){let i=Oe(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,r),s=JSON.parse(i);this.playUrl=s.url}}async setSearch(e,n){let l=this.siteUrl+`/vodsearch/wd/${e}.html`,r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},An=new wS;var SS=class extends De{constructor(){super()}getName(){return An.getName()}getAppName(){return An.getAppName()}getJSName(){return An.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await An.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await An.initCookie(e.server.config.biliCookie),await An.spiderInit(e),An.cfgObj.code=0,An.catOpenStatus=!0,An.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await An.setClasses(),this.classes=An.classes}async setFilterObj(){await An.setFilterObj(),this.filterObj=An.filterObj}async setHomeVod(){await An.setHomeVod(),this.homeVodList=An.homeVodList}async setCategory(e,n,l,r){await An.setCategory(e,n,l,r),this.vodList=An.vodList}async setDetail(e){await An.setDetail(e),this.vodDetail=An.vodDetail}async setPlay(e,n,l){await An.setPlay(e,n,l),this.playUrl=An.playUrl,this.result=An.result}async setSearch(e,n,l){await An.setSearch(e,n,l),this.vodList=An.vodList,this.result=An.result}async setProxy(e,n){return await An.proxy(e,n)}},Ta=new SS;async function nW(t,e){return await Ta.init(t,e)}async function lW(t,e){return await Ta.home(t,e)}async function Hxe(t,e){return await Ta.homeVod(t,e)}async function rW(t,e){return await Ta.category(t,e)}async function iW(t,e){r Line truncated
`,"").replaceAll(" ","").replaceAll(" ","")+"end";if(o.indexOf("\u5E74\u4EFD")>-1&&(e.vod_year=Oe(/年份:(.*?)end/,o).replaceAll("/","")),o.indexOf("\u5907\u6CE8")>-1){let c=Oe(/备注:(.*?)end/,o);e.vod_remarks=Oe(/备注:\/(.*?)end/,o)}o.indexOf("\u6807\u7B7E")>-1&&(e.type_name=Oe(/标签:(.*?)end/,o)),o.indexOf("\u5267\u60C5")>-1&&(e.vod_content=Oe(/剧情:(.*?)end/,o))}let r=t('[class="module-tab-item tab-item"]'),i=t('[class="scroll-content"]'),s=[],a=[];for(let u=0;u<r.length;u++){let o=r[u];s.push(o.attribs["data-dropdown-value"]);let c=[];for(let f of t(i[u]).find("a")){let m=t(f).text(),d=f.attribs.href;c.push(m+"$"+d)}a.push(c.join("#"))}return e.vod_play_from=s.join("$$$"),e.vod_play_url=a.join("$$$"),e}async setHomeVod(){let t=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(t)}getExtendValue(t,e){return t[e]===void 0||t[e]==="0"?"":t[e]}async setCategory(t,e,n,l){await this.jadeLog.debug(`extend:${JSON.stringify(l)}`);let r=this.getExtendValue(l,"1"),i=this.getExtendValue(l,"2"),s=this.getExtendValue(l,"3"),a=this.getExtendValue(l,"4"),u=[t.toString(),"",a,r,"",s,"","",e.toString(),"","",i],o=this.siteUrl+"/show/"+u.join("-")+".html",c=await this.getHtml(o);this.vodList=await this.parseVodShortListFromDocByCategory(c)}async setDetail(t){let e=await this.getHtml(this.siteUrl+t);this.vodDetail=await this.parseVodDetailFromDoc(e)}async setSearch(t,e){let n=this.siteUrl+`/search/${t}-------------.html`,l=await this.getHtml(n);this.vodList=await this.parseVodShortListFromDocBySearch(l)}async setPlay(t,e,n){let l=await this.getHtml(this.siteUrl+e),i="https://danmu.yhdmjx.com/m3u8.php?url="+JSON.parse(Oe(/var player_aaaa=(.*?)<\/script>/,l.html())).url,s=await await this.fetch(i,null,this.getHeader()),a=s.match(/"url": getVideoInfo\("(.*?)"\),/)[1],u=s.match(/<script>var bt_token = "(.*?)"/)[1],o=await await this.fetch("https://danmu.yhdmjx.com/js/play.js",null,this.getHeader());o=o.match(/var _token_key=CryptoJS\['enc'\]\['Utf8'\]\[_0x17f1\('67','qETJ'\)\]\((.*?\))/)[1],o=this.decrypt_token_key(o),this.playUrl=await this.getVideoInfo(a,o,u)}decrypt_token_key(toekn_key){var _0xod4="jsjiami.com.v6",_0x175e=[_0xod4,"JMOsw6omwoDCmw==","wp3DkSx5Eg==","HB7CscOJfS3DuUjDv2bDjsOmwr3Cm8KcwoI=","fR/Dqg==","ShRGTcKa","w5Y8VBs=","esKYKQ==","FgIdwrPDnMKOw7k=","HhXCmA==","woNrRsKSwpnDvcKfw4g=","ezBn","w43DkcK5w4MaJiE=","w44Ob8KjwrjCrMKtUA==","HwtswqI=","YsKnwrRawro=","Sm/CpQXCjz4RH8ORSXw=","IsO6w64=","T8OeAQ==","VcK4Hg==","csOmfBJ4","d8OAcA5L","Tn4RL2s=","w7goGizCmw==","w6XDlcOGwpoY","TsK7wpNPwrg=","w7J1CzLCnsO+HA==","w4XDkcK0w5YXPg==","S8KoCcKS","PcKWHcK/Eg==","Z2oMJ3rCiw==","YsKMG8KMwo0=","QsOecgRIwp4=","dFzDkUUxw48Qw7nCmX3CicODCMKnw74IOg==","acO2KU1B","wrAnw6DDrg==","w5MsScKwwoA=","wohZG8KhBg==","b8OieSpZ","w4ZmEsORw6I=","w7jDhxvCh8KY","w7wQa8KFwr0=","IMObw4E3wqU=","JsOjw5Erwrg=","w6MwcsKOwqU=","b8KIwqF0wrs=","XhXDvT52","wrDCmirChSE=","w5t1wpvDuwE=","XA7CtsKeEA==","wonCvVthw78=","U8KPP8KMwq4=","wp7DhCxjGTU=","woPDoBdiEQ==","HjzCrE/Dvg==","SsOQOWHCgg==","w6NdwoXCkMOx","w6shYWQ/","eE/Cgg==","XW/Csj7CmDoA","w680OynCgcK5BA8=","w4PDoMOTwrog","w5R7wqbCpMOPwrMxUcOiM8OuMVLCisKKFsOXAcOWY8O6w5hM","WwjDoht0","PzXCiHHDiA==","QMOFaMKcfQ==","bz9bVsK+","w7Npwp/DsB9ONw==","EcOPBQ3Cig==","woHDnzk=","DsKQLxtd","R8OCJmk=","wp55O8On","bkXCmhTCqg==","w7vDgx3Cg8KU","w6nDo8KdAn8=","O8KwP8KEDw==","wqzCtCHCtCg=","w5nDgmYhw5c=","wp0OZsK+w4A=","wrFxe8KFwp/DvcKew4EbN8K7BMORMx3DuxtOVELChsOEIQ==","BMKWRDc=","IS5dw6nDhQ==","w6geeG8t","SsK/wohywpc=","LBlnw7jDkA==","wodiLsOg","Ig5Ow7/Dlw==","TMOOewRZwoQ=","LjnClV7DvA==","woZsO8KcPQ==","eWvClMKeKQ==","wq1KWsKswr8=","w4p+AGFa","C8O7F8K2CQcKFxxgwo5sfh3DpAFV","w6XDqMKoCw==","w6Z8wqnCpMOe","w6x/CHRhXhV/w7I=","wrvClndGw5Y=","VsKcwo5RwoA=","ZcK2BMKmLQ==","BCcPwofDvQ==","eGEsF20=","eMOcUglq","w4U9XEAMw4/Dm3rCuzpxTg/DvyDDvMONH8OTwpTCtsKbw6k=","VwXDkTxG","CzHCrl3DkQ==","w7PDkVovw4o=","dsONYDdj","w79pwr3Duh4=","w55kwoLCpMOR","w6gbc8KGwpw=","bCnCtMKCCg==","Php5w64=","w7x8wpfDtiQ=","w4TDk2AB","w7lowoHDtgQ=","DB/CsnjDuQ==","woTDl8K3wp4S","wr0Ewq7Dq8Oh","GmHCpGxN","w5/Dm2XDpw==","w5bDpsOCwqoA","YMKowphwwqc=","ahFuVsK9","w57DtEsbw7k=","w6LDo8Kq","UsKzE8KO","w6xlBFl9","WMOgIXbCiw==","DBhjw5fDhQ==","w6pUwoHCnsOs","ZF7CtsKiHg==","wos4w7wCwr0c","JlXCjlpyw5pMw6s=","TcO1N8K4wqE=","SMOzTcKYRw==","w4HDosOzwrUc","wqxdwqE2wrY=","A8OPGQjChw==","wpkxasOxBQ==","wpIZSA==","VsOnEEvChg==","bMOSZy93","c8OwZsKnRQ==","SsK/wpBHwoQ=","ccOsHVFf","w6ZKYMO8w6rDr8OrCHxdwqtdwrDDksOMccKZwobDpQPDgsOrAMKXF8OMPcOySsKuL8KLwq8vwr/DkjbDqsOCbRrCkcOTTFfDlsKkw7PChCM1wqTDisKawpHDt8KCQRY3w6DDgMKVw6M=","w7hYwq3ClsOa","Fic5wqLDiw==","KcKqHCVV","wqvDucKSwrs/","YcOfQcKPSQ==","wpjClmNRw7U=","wpHClSnCizg=","w4PDh8Kw","JsOYGwnCpw==","w5vDksK8w6sl","U8ORCHt+Rw==","woVxO8OSJQ==","b37Chw/Clw==","w6ViBXZlQg==","UwPCucKQCgU=","UMOeZgs=","MTLCtW7Dq2o=","wqAQwr/DqcOi","DiLDtsOOZsKEbsOrGm03EcKEwr/CplQ=","dzPDnRhP","wplgT8KBwow=","XUzCg8KF","K8KTCcKrCQ==","w6ZKJMOw","LxTCmn/DsA==","wooObcKBw6g=","w5djwofDoTQ=","VMOHeAts","Kw96 Line truncated
`);l.vod_name=r[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let i=new Date(n.time);l.vod_remarks=i.toLocaleDateString().replace(/\//g,"-")+" "+i.toTimeString().substr(0,8),l.vod_pic=n.image;let s="";for(let u of r)u.indexOf("\u63CF\u8FF0")>-1&&(l.vod_content=u.replace("\u63CF\u8FF0\uFF1A","").replaceAll(/<\\?[^>]+>/g,"")),u.indexOf("\u6807\u7B7E\uFF1A")>-1&&(l.type_name=u.replace("\u{1F3F7} \u6807\u7B7E\uFF1A","")),u.indexOf("\u94FE\u63A5\uFF1A")>-1&&(s=u.replaceAll(/<\\?[^>]+>/g,"").replace("\u94FE\u63A5\uFF1A",""));let a=await i3([s]);return l.vod_play_from=M.keys(a).join("$$$"),l.vod_play_url=M.values(a).join("$$$"),l}async parseVodShortListFromDocBySearch(e,n){let l=[],r=JSON.parse(e("script[id=__NEXT_DATA__]")[0].children[0].data).buildId,i=this.siteUrl+"_next/data/"+r+"/search.json?keyword="+encodeURIComponent(n)+"&pan=aliyundrive",s=await this.fetch(i,null,this.getSearchHeader());if(M.isEmpty(s))await this.jadeLog.error("\u641C\u7D22\u9875\u9762\u89E3\u6790\u5931\u8D25",!0);else{let a=JSON.parse(s).pageProps.data.data;for(let u of a){let o=new Ne;o.vod_id=JSON.stringify(u);let c=u.content.split(`
`);o.vod_name=c[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let f=new Date(u.time);o.vod_remarks=f.toLocaleDateString().replace(/\//g,"-")+" "+f.toTimeString().substr(0,8),o.vod_pic=u.image,l.push(o)}return l}}async setDetail(e){this.vodDetail=await this.parseVodDetailfromJson(e)}async setSearch(e,n){let l=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodList=await this.parseVodShortListFromDocBySearch(r,e)}}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}},In=new kS;var DS=class extends De{constructor(){super()}getName(){return In.getName()}getAppName(){return In.getAppName()}getJSName(){return In.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await In.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await In.initCookie(e.server.config.biliCookie),await In.spiderInit(e),In.cfgObj.code=0,In.catOpenStatus=!0,In.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await In.setClasses(),this.classes=In.classes}async setFilterObj(){await In.setFilterObj(),this.filterObj=In.filterObj}async setHomeVod(){await In.setHomeVod(),this.homeVodList=In.homeVodList}async setCategory(e,n,l,r){await In.setCategory(e,n,l,r),this.vodList=In.vodList}async setDetail(e){await In.setDetail(e),this.vodDetail=In.vodDetail}async setPlay(e,n,l){await In.setPlay(e,n,l),this.playUrl=In.playUrl,this.result=In.result}async setSearch(e,n,l){await In.setSearch(e,n,l),this.vodList=In.vodList,this.result=In.result}async setProxy(e,n){return await In.proxy(e,n)}},Ca=new DS;async function jW(t,e){return await Ca.init(t,e)}async function UW(t,e){return await Ca.home(t,e)}async function sAe(t,e){return await Ca.homeVod(t,e)}async function MW(t,e){return await Ca.category(t,e)}async function $W(t,e){return await Ca.detail(t,e)}async function BW(t,e){return await Ca.play(t,e)}async function HW(t,e){return await Ca.search(t,e)}async function aAe(t,e){return await Ca.proxy(t,e)}var VW={meta:{key:In.getJSName(),name:In.getName(),type:In.getType()},api:async t=>{t.post("/init",jW),t.post("/home",UW),t.post("/category",MW),t.post("/detail",$W),t.post("/play",BW),t.post("/search",HW),t.get("/proxy/:what/:ids/:end",aAe)},spider:{init:jW,home:UW,homeVod:sAe,category:MW,detail:$W,play:BW,search:HW}};var PS=class extends Fe{constructor(){super(),this.siteUrl="https://www.bilibili.com",this.apiUrl="https://api.bilibili.com",this.cookie="",this.bili_jct="",this.is_login=!1,this.is_vip=!1,this.vod_audio_id={30280:192e3,30232:132e3,30216:64e3},this.vod_codec={12:"HEVC",7:"AVC"},this.play_url_obj={80:"1080P \u9AD8\u6E05",64:"720P \u9AD8\u6E05",32:"420P \u6E05\u6670",16:"360P \u6D41\u7545"}}getHeader(){let e=super.getHeader();return M.isEmpty(this.cookie)||(e.cookie=this.cookie),e}initCookie(e){this.cookie=e,e.includes("bili_jct")&&(this.bili_jct=e.split("bili_jct=")[1].split(";")[0])}async spiderInit(e){this.is_login=await this.checkLogin(),this.is_login?await this.jadeLog.info("\u54D4\u54E9\u54D4\u54E9\u767B\u5F55\u6210\u529F",!0):await this.jadeLog.error("\u54D4\u54E9\u54D4\u54E9\u767B\u5F55\u5931\u8D25",!0),e===null?this.js2Base=await js2Proxy(!0,this.siteType,this.siteKey,"dash/",this.getHeader()):this.js2Base=await js2Proxy(e,"dash",this.getHeader())}async init(e){await super.init(e),await this.initCookie(this.cfgObj.cookie),await this.spiderInit(null),this.danmuStaus=!0}getName(){return"\u{1F3F0}\u2503\u54D4\u54E9\u54D4\u54E9\u2503\u{1F3F0}"}getAppName(){return"\u54D4\u54E9\u54D4\u54E9"}getJSName(){return"bilibili"}getType(){return 3}async setClasses(){let e=await this.getHtml(this.siteUrl),n=e('[class="channel-items__left"]').find("a");for(let l of n)this.classes.push(this.getTypeDic(e(l).text(),e(l).text()));!M.isEmpty(this.bili_jct)&&this.is_login&&this.classes.push(this.getTypeDic("\u5386\u53F2\u8BB0\u5F55","\u5386\u53F2\u8BB0\u5F55"))}async getFilter(e){return[{key:"order",name:"\u6392\u5E8F",value:[{n:"\u7EFC\u5408\u6392\u5E8F",v:"0"},{n:"\u6700\u591A\u70B9\u51FB",v:"click"},{n:"\u6700\u65B0\u53D1\u5E03",v:"pubdate"},{n:"\u6700\u591A\u5F39\u5E55",v:"dm"},{n:"\u6700\u591A\u6536\u85CF",v:"stow"}]},{key:"duration",name:"\u65F6\u957F",value:[{n:"\u5168\u90E8\u65F6\u957F",v:"0"},{n:"60\u5206\u949F\u4EE5\u4E0A",v:"4"},{n:"30~60\u5206\u949F",v:"3"},{n:"10~30\u5206\u949F",v:"2"},{n:"10\u5206\u949F\u4EE5\u4E0B",v:"1"}]}]}async setFilterObj(){for(let e of this.classes){let n=e.type_name;n!=="\u6700\u8FD1\u66F4\u65B0"&&n!=="\u5386\u53F2\u8BB0\u5F55"&&(this.filterObj[n]=await this.getFilter())}}getFullTime(e){let n="";try{let l=e.split(":"),r=parseInt(l[0]),i=parseInt(l[1]);n=r*60+i}catch{n=parseInt(e)}if(isNaN(n))return"\u65E0\u6548\u8F93\u5165";if(n>=3600){let l=Math.floor(n/3600),r=n%3600,i=Math.floor(r/60),s=r%60;return`${l}\u5C0F\u65F6 ${iLine truncated
`,"");let u=e(e('[class="module-tab-content"]')[0]).find("span"),o=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let m of u)c.push(e(m).text());let f=[];for(let m of o){let d=e(e(m).find('[class="sort-item"]')).find("a"),y=[];for(let _ of d){let S=e(_).text(),w=_.attribs.href,E=S+"$"+w;y.push(E)}f.push(y.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=M.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),l=[];for(let r of n){let i=new Ne;i.vod_id=e(r).find(".video-serial")[0].attribs.href,i.vod_name=e(r).find(".video-serial")[0].attribs.title,i.vod_pic=e(r).find(".module-item-pic > img")[0].attribs["data-src"],i.vod_remarks=e(e(r).find(".video-serial")[0]).text(),l.push(i)}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n(n('[class="nav-menu-items"]')[0]).find("li");for(let r of l.slice(0,6)){let i=n(n(r).find("span")).text();if(i!=="\u9996\u9875"){let a={type_id:n(r).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:i};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))e(e(n[r]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?i.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/vodshow/id/${n}.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=et(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,l=""){return e!==void 0&&e!=="0"?l+e:n}async getCateUrl(e,n,l){e=this.getExtend(l[1],e);let r=this.getExtend(l[2],"","/area/"),i=this.getExtend(l[3],"","/lang/"),s=this.getExtend(l[4],"","/year/"),a=this.getExtend(l[5],"","/letter/"),u=this.getExtend(l[6],"","/by/");return this.siteUrl+`/vodshow${u}${r}/id/${e}${i}${a}${s}/page/${n}.html`}async setCategory(e,n,l,r){let i=await this.getCateUrl(e,n,r),s=await this.fetch(i,null,this.getHeader());if(!M.isEmpty(s)){let a=et(s);this.vodList=await this.parseVodShortListFromDoc(a);let u=Oe(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,u.length>0&&(this.total=parseInt(u)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){let r=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!M.isEmpty(r)){let i=Oe(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,r),s=JSON.parse(i);this.playUrl=s.url}}async setSearch(e,n){let l=this.siteUrl+`/vodsearch/wd/${e}.html`,r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},vn=new rS;var iS=class extends De{constructor(){super()}getName(){return vn.getName()}getAppName(){return vn.getAppName()}getJSName(){return vn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await vn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await vn.initCookie(e.server.config.biliCookie),await vn.spiderInit(e),vn.cfgObj.code=0,vn.catOpenStatus=!0,vn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await vn.setClasses(),this.classes=vn.classes}async setFilterObj(){await vn.setFilterObj(),this.filterObj=vn.filterObj}async setHomeVod(){await vn.setHomeVod(),this.homeVodList=vn.homeVodList}async setCategory(e,n,l,r){await vn.setCategory(e,n,l,r),this.vodList=vn.vodList}async setDetail(e){await vn.setDetail(e),this.vodDetail=vn.vodDetail}async setPlay(e,n,l){await vn.setPlay(e,n,l),this.playUrl=vn.playUrl,this.result=vn.result}async setSearch(e,n,l){await vn.setSearch(e,n,l),this.vodList=vn.vodList,this.result=vn.result}async setProxy(e,n){return await vn.proxy(e,n)}},da=new iS;async function KK(t,e){return await da.init(t,e)}async function XK(t,e){return await da.home(t,e)}async function wxe(t,e){return await da.homeVod(t,e)}async function WK(t,e){return await da.category(t,e)}async function YK(t,e){r Line truncated
`,"").replaceAll("\u5267\u60C5\uFF1A",""),n.vod_pic=e("img.lazy")[0].attribs["data-original"],n}async parseVodShortListFromJson(e){let n=[];for(let l of e){let r=new Ne;r.vod_id=l.url,r.vod_pic=l.thumb,r.vod_remarks=l.time,r.vod_name=l.title,n.push(r)}return n}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n("[class=index-list-l]");for(let r of l){let i=n(n(r).find('[class="h1 clearfix"]')[0]).find("a"),s=i[0].attribs.href,a=n(i[1]).text();M.isEmpty(a)||this.classes.push({type_id:s,type_name:a})}}}async getFilter(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader()),r=[];if(!M.isEmpty(l)){let i=et(l),s=i('[class="sy scon clearfix"]').find("dl"),a=0;for(let u of s){let o=i(i(u).find("dt")).text().replace("\u6309","").replace("\uFF1A",""),c={key:(a+1).toString(),name:o,value:[]},f=i(u).find("a"),m=0;o==="\u5267\u60C5"?m=3:o==="\u5E74\u4EE3"?m=2:o==="\u5730\u533A"&&(m=4);for(let d of f){let y=d.attribs.href.split("/");c.value.push({n:i(d).text(),v:y[m]})}r.push(c),a=a+1}}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter(n))}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=this.siteUrl+e,s=await this.fetch(i,null,this.getHeader());if(!M.isEmpty(s)){let a=e.split("/")[1],u=e.split("/")[2],o=Oe(/var _yu_gda_s="(.*?)";/,s),c={action:a,page:parseInt(n),year:r[2]??"0",area:r[3]??"all",class:r[1]??"0",dect:"",id:u},f=await this.fetch(o,c,this.getHeader());if(f!==null){let m=et(f);this.vodList=await this.parseVodShortListFromDoc(m)}}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r);let s="http://test.gqyy8.com:8077/ne2"+/<script type="text\/javascript" src="http:\/\/test.gqyy8.com:8077\/ne2(.*?)"><\/script>/g.exec(l)[1],a=await this.fetch(s,null,this.getHeader());if(!M.isEmpty(a)){let u=this.paraseUrlObject(a);this.vodDetail.vod_play_url=u.play_url,this.vodDetail.vod_play_from=u.play_format}}}async setSearch(e,n){let l=this.siteUrl+"/search.php",r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i={top:10,q:e},s=Oe(/var my_search='(.*?)';/,r),a=await this.fetch(s,i,this.getHeader());if(!M.isEmpty(a)){let u=JSON.parse(a.replaceAll("\uFEFF",""));this.vodList=await this.parseVodShortListFromJson(u)}}}},wn=new dS;var hS=class extends De{constructor(){super()}getName(){return wn.getName()}getAppName(){return wn.getAppName()}getJSName(){return wn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await wn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await wn.initCookie(e.server.config.biliCookie),await wn.spiderInit(e),wn.cfgObj.code=0,wn.catOpenStatus=!0,wn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await wn.setClasses(),this.classes=wn.classes}async setFilterObj(){await wn.setFilterObj(),this.filterObj=wn.filterObj}async setHomeVod(){await wn.setHomeVod(),this.homeVodList=wn.homeVodList}async setCategory(e,n,l,r){await wn.setCategory(e,n,l,r),this.vodList=wn.vodList}async setDetail(e){await wn.setDetail(e),this.vodDetail=wn.vodDetail}async setPlay(e,n,l){await wn.setPlay(e,n,l),this.playUrl=wn.playUrl,this.result=wn.result}async setSearch(e,n,l){await wn.setSearch(e,n,l),this.vodList=wn.vodList,this.result=wn.result}async setProxy(e,n){return await wn.proxy(e,n)}},ga=new hS;async function OX(t,e){return await ga.init(t,e)}async function NX(t,e){return await ga.home(t,e)}async function Rxe(t,e){return await ga.homeVod(t,e)}async function CX(t,e){return await ga.category(t,e)}async function IX(t,e){return await ga.detail(t,e)}async function RX(t,e){return await ga.play(t,e)}async function kX(t,e){return await ga.search(t,e)}async function kxe(t,e){return await ga.proxy(t,e)}var DX={meta:{key:wn.getJSName(),name:wn.getName(),type:wn.getType()},api:async t=>{t.post("/init",OX),t.post("/home",NX),t.post("/category",CX),t.post("/detail",IX),t.post("/play",RX),t.post("/search",kX),t.get("/proxy/:what/:ids/:end",kxe)},spider:{init:OX,home:NX,homeVod:Rxe,category:CX,detail:IX,play:RX,search:kX}};var mS=class extends Fe{constructor(){super(),this.siteUrl="https://www.xb6v.com"}getName(){return"\u{1F9F2}\u2503\u78C1\u529B\u65B06V\u2503\u{1F9F2}"}getAppName(){return"\u78C1\u529B\u65B06V"}getJSName(){return"xb6v"}getType(){return 3}async redirect(e){await this.jadeLog.debug(`\u91CD\u5B9A\u5411\u56DE\u590D\u503C\u4E3A:${e.content}`);let n=/<a HREF=(.*?)>/.exec(e.content);if(n.length>1){let l=this.siteUrl+"/e/search/"+n[1].replaceAll("\\","").replaceAll('"' Line truncated
`,"").replaceAll(" ",""),l.push(s)}return l}async parseVodDetailFromDoc(e){let n=e("#post_content"),l=[],r=[];if(!this.catOpenStatus){let u=0,o="\u78C1\u529B\u7EBF\u8DEF";for(let c of n){let f=e(c).find("table a"),m=[];for(let d of f){let y=d.attribs.href,_=d.children[0].data;y.toLowerCase().startsWith("magnet")&&m.push(_+"$"+y)}m.length>0&&(u++,l.push(o+u),r.push(m.join("#")))}}let i=e(e(".mainleft")).find('[class="widget box row"]');for(let u of i){let o=e(u).find("h3").text(),c=[];if(!M.isEmpty(o)){let f=e(u).find("a");for(let m of f)c.push(m.attribs.title+"$"+m.attribs.href);l.push(o),r.push(c.join("#"))}}let s=e(".context").html(),a=new He;return a.vod_name=e(".article_container > h1").text(),a.vod_pic=e("#post_content img").attr("src"),a.type_name=Oe(/◎类  别 (.*?)<br>/,s),M.isEmpty(a.type_name)&&(a.type_name=e('[rel="category tag"]').text()),a.vod_year=Oe(/◎年  代 (.*?)<br>/,s),M.isEmpty(a.vod_year)&&(a.vod_year=Oe(/首播:(.*?)<br>"/,s)),a.vod_area=Oe(/◎产  地 (.*?)<br>/,s),M.isEmpty(a.vod_year)&&(a.vod_area=Oe(/地区:(.*?)<br>"/,s)),a.vod_remarks=Oe(/◎上映日期 (.*?)<br>/,s),a.vod_actor=this.getActorOrDirector(/◎演  员 (.*?)<\/p>/,s),M.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/◎主  演 (.*?)<\/p>/,s)),M.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/主演:(.*?)<br>/,s)),a.vod_director=this.getActorOrDirector(/◎导  演 (.*?)<br>/,s),M.isEmpty(a.vod_director)&&(a.vod_director=this.getActorOrDirector(/导演:(.*?)<br>/,s)),a.vod_content=this.getDescription(/◎简  介(.*?)<hr>/gi,s),M.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/简介(.*?)<\/p>/gi,s)),M.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/◎简  介(.*?)<br>/gi,s)),a.vod_play_from=l.join("$$$"),a.vod_play_url=r.join("$$$"),a}async parseVodPlayFromDoc(e,n){let l="",r=n.html();switch(e){case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u63D2\u4EF6 \u6781\u901F\u64AD\u653E\uFF09":case"\u64AD\u653E\u5730\u5740\u4E09":l=n(n(".video")).find("iframe")[0].attribs.src+"/index.m3u8";break;case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u9700\u5B89\u88C5\u63D2\u4EF6\uFF09":let i=/url: '(.*?)',/gs.exec(r);i.length>1&&(l=i[1]);break;case"\u64AD\u653E\u5730\u5740\u56DB":let s=/source: "(.*?)",/gs.exec(r);s.length>1&&(l=s[1]);break;default:await this.jadeLog.warning(`\u6682\u4E0D\u652F\u6301\u5F53\u524D\u683C\u5F0F,\u5F53\u524D\u683C\u5F0F\u4E3A:${e}`);break}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n("#menus > li > a");for(let r=0;r<l.length;r++){let i=l[r];if(r<2||r===l.length-1)continue;let s=i.children[0].data,a=i.attribs.href;if(this.classes.push({type_name:s,type_id:a}),s==="\u7535\u89C6\u5267"){let u=[{n:"\u4E0D\u9650",v:""}];for(let o of n(i.next).find("a"))u.push({n:o.children[0].data,v:o.attribs.href.replaceAll(a,"")});this.filterObj[a]=[{key:"cateId",name:"\u7C7B\u578B",value:u}]}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(M.isEmpty(e))await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5931\u8D25",!0);else{let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=r.cateId??"",s=this.siteUrl+e+i;this.page=parseInt(n),this.count=0,this.limit=18,this.total=0,this.page!==1&&(s+="index_"+n+".html");let a=await this.fetch(s,null,this.getHeader());if(!M.isEmpty(a)){let u=et(a),o=u(".pagination > a");if(o.length>0){let c=o.slice(-1)[0].attribs.href,m=/index_(.*?).html/.exec(c);this.count=parseInt(m[1]);let d=u("#post_container .post_hover");this.total=this.page===this.count?(this.page-1)*this.limit+d.length:this.count*this.limit}this.vodList=await this.parseVodShortListFromDoc(u)}}async setSearch(e,n){let l=this.siteUrl+"/e/search/index.php",r={show:"title",tempid:"1",tbname:"article",mid:"1",dopost:"search",keyboard:e},i=await this.post(l,r,this.getHeader());if(!M.isEmpty(i)){let s=et(i);this.vodList=await this.parseVodShortListFromDoc(s)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){if(n.toLowerCase().startsWith("magnet"))this.playUrl=n;else{let r=this.siteUrl+n,i=await this.fetch(r,null,this.getHeader()),s=et(i);this.playUrl=await this.parseVodPlayFromDoc(e,s)}}},Sn=new mS;var yS=class extends De{constructor(){super()}getName(){return Sn.getName()}getAppName(){return Sn.getAppName()}getJSName(){return Sn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Sn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Sn.initCookie(e.server.config.biliCookie),await Sn.spiderInit(e),Sn.cfgObj.code=0,Sn.catOpenStatus=!0,Sn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",ty Line truncated
"type": "{{tid}}",
"p": "{{pg}}",
"area": "{{ext.area|default(0)}}",
"year": "{{ext.year|default(0)}}",
"sort": "{{ext.sort|default(0)}}",
"class": "{{ext.class|default(0)}}"}`,{ext:r,tid:e,pg:n}));console.log(s);let a=await this.request(i,s);this.vodList=await this.parseVodShortListFromJson(a.data.data)}async setDetail(e){let n=await this.request(this.siteUrl+"/api.php/Video/getVideoInfo",{video_id:e});this.vodDetail=await this.parseVodDetailfromJson(n.data.video)}async setPlay(e,n,l){this.result.jx=0;try{if(n.indexOf("youku")>=0||n.indexOf("iqiyi")>=0||n.indexOf("v.qq.com")>=0||n.indexOf("pptv")>=0||n.indexOf("le.com")>=0||n.indexOf("1905.com")>=0||n.indexOf("mgtv")>=0){if(this.parse.length>0)for(let r=0;r<this.parse.length;r++)try{let i=this.parse[r],s=await req(i+n,{headers:{"user-agent":"okhttp/4.1.0"}});await this.jadeLog.debug(`\u89E3\u6790\u8FDE\u63A5\u7ED3\u679C\u4E3A:${JSON.stringify(s)}`);let a=uW(n,JSON.parse(s.content).data);a.url&&(this.playUrl=a.url,this.danmuUrl=await this.danmuSpider.getVideoUrl(n,0),this.result.jx=1)}catch{}}else if(n.indexOf("jqq-")>=0){let r=await this.request(this.siteUrl+"/jqqheader.json",null,null,!0),i=n.split("-"),s=await req("https://api.juquanquanapp.com/app/drama/detail?dramaId="+i[1]+"&episodeSid="+i[2]+"&quality=LD",{headers:r}),a=JSON.parse(s.content);a.data.playInfo.url&&(this.playUrl=a.data.playInfo.url)}else if(n.startsWith("ftp"))this.playUrl=n;else{let r=await this.request(this.siteUrl+"/video.php",{url:n}),i=uW(n,r.data);i.url&&(i.url.indexOf("filename=1.mp4")>-1?this.playUrl=i.url:this.playUrl=await js2Proxy(!0,this.siteType,this.siteKey,"lzm3u8/"+r3(i.url),{}))}}catch(r){await this.jadeLog.error(r)}}async setSearch(e,n){let l=await this.request(this.siteUrl+"/api.php/Search/getSearch",{key:e,type_id:0,p:1});this.vodList=await this.parseVodShortListFromJson(l.data.data)}async proxy(e,n){let l=e[0],r=y2(e[1]);if(l==="lzm3u8"){await this.jadeLog.debug(`\u4F7F\u7528\u4EE3\u7406\u64AD\u653E,\u64AD\u653E\u8FDE\u63A5\u4E3A:${r}`);let i=await req(r,{}),s=i.content,a=await js2Proxy(!1,this.siteType,this.siteKey,"lzm3u8/",{}),u=r.substr(0,r.lastIndexOf("/")+1);return await this.jadeLog.debug(s.length),s=s.replace(/#EXT-X-DISCONTINUITY\r*\n*#EXTINF:6.433333,[\s\S]*?#EXT-X-DISCONTINUITY/,""),await this.jadeLog.debug(s.length),s=s.replace(/(#EXT-X-KEY\S+URI=")(\S+)("\S+)/g,function(o,c,f,m){let d=(f.startsWith("http")?"":u)+f;return c+d+m}),s=s.replace(/(#EXT-X-STREAM-INF:.*\n)(.*)/g,function(o,c,f){let m=(f.startsWith("http")?"":u)+f;return c+a+y2(m)}),s=s.replace(/(#EXTINF:.*\n)(.*)/g,function(o,c,f){let m=(f.startsWith("http")?"":u)+f;return c+m}),JSON.stringify({code:i.code,content:s,headers:i.headers})}return JSON.stringify({code:500,content:""})}},An=new TS;var xS=class extends De{constructor(){super()}getName(){return An.getName()}getAppName(){return An.getAppName()}getJSName(){return An.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await An.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await An.initCookie(e.server.config.biliCookie),await An.spiderInit(e),An.cfgObj.code=0,An.catOpenStatus=!0,An.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await An.setClasses(),this.classes=An.classes}async setFilterObj(){await An.setFilterObj(),this.filterObj=An.filterObj}async setHomeVod(){await An.setHomeVod(),this.homeVodList=An.homeVodList}async setCategory(e,n,l,r){await An.setCategory(e,n,l,r),this.vodList=An.vodList}async setDetail(e){await An.setDetail(e),this.vodDetail=An.vodDetail}async setPlay(e,n,l){await An.setPlay(e,n,l),this.playUrl=An.playUrl,this.result=An.result}async setSearch(e,n,l){await An.setSearch(e,n,l),this.vodList=An.vodList,this.result=An.result}async setProxy(e,n){return await An.proxy(e,n)}},wa=new xS;async function oW(t,e){return await wa.init(t,e)}async function cW(t,e){return await wa.home(t,e)}async function eAe(t,e){return await wa.homeVod(t,e)}async function pW(t,e){return await wa.category(t,e)}async function fW(t,e){return await wa.detail(t,e)}async function dW(t,e){return await wa.play(t,e)}async function hW(t,e){return await wa.search(t,e)}async function tAe(t,e){return await wa.proxy(t,e)}var mW={meta:{key:An.getJSName(),name:An.getName(),type:An.getType()},api:async t=>{t.post("/init",oW),t.post("/home",cW),t.post("/category",pW),t.post("/detail",fW),t.post("/play",dW),t.post("/search",hW),t.get("/proxy/:what/:ids/:end",tAe)},spider:{init:oW,home:cW,homeVod:eAe,category:pW,detail:fW,play:dW,search:hW}};var AS=class extends Fe{constructor(){super(),this.siteUrl="https://www.mp4us.com",this.apiUrl="https://m.mp4us.com",this.dyttReconnectTimes=0}async spiderInit(e=null){e!==null?this.jsBase=await js2Proxy(e,"detail",this.getHeader()):this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",this.getHeader())}async init(e){await super.init(e),await this.spiderInit(null)}getName(){return"\u{1F35A}\u2503Mp4\u7535\u5F71\uLine truncated
`;n.type_name=e(e(e(r).find('[class="post-meta"]')).find("span")[0]).text(),n.vod_pic=e(r).find("img")[0].attribs.src,n.vod_name=Oe(/名称:(.*?)\n/,s),n.vod_actor=Oe(/主演:(.*?)\n/,s),n.vod_director=Oe(/导演:(.*?)\n/,s),n.vod_area=Oe(/地区:(.*?)\n/,s),n.vod_year=Oe(/年份:(.*?)\n/,s),n.vod_remarks=Oe(/更新:(.*?)\n/,s);let a=e('[class="article-related info"]').find("p");n.vod_content=e(a).text();let u=e('[class="article-related download_url"]'),o=[],c=[];for(let f=0;f<u.length;f++){let m=u[f],d=e(e(m).find("h2")).text().replaceAll(n.vod_name,"");o.push(d.replaceAll("\u4E0B\u8F7D","\u64AD\u653E"));let y=[];for(let _ of e(u[f]).find("a")){let S=e(_).text().replaceAll("\u78C1\u529B\u94FE\u4E0B\u8F7D","").replaceAll(".mp4",""),w=_.attribs.href;y.push(S+"$"+w)}c.push(y.join("#"))}return n.vod_play_from=o.join("$$$"),n.vod_play_url=c.join("$$$"),n}async parseVodShortListFromJson(e){let n=[],l=et(e.ajaxtxt),r=l(l("ul")).find("li");for(let i of r){let s=new Ne;s.vod_pic=l(i).find("img")[0].attribs["data-original"],s.vod_name=Oe(/《(.*?)》/,l(i).find("img")[0].attribs.alt),s.vod_id=l(i).find("a")[0].attribs.href,s.vod_remarks="\u8BC4\u5206:"+l(l(i).find('[class="rate badge"]')).text(),n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],l=e(e('[id="list_all"]').find("ul")).find("li");for(let r of l){let i=new Ne;i.vod_id=e(r).find("a")[0].attribs.href,i.vod_name=Oe(/《(.*?)》/,e(e(e(r).find('[class="text_info"]')).find("a")[0]).text()),i.vod_pic=e(r).find("img")[0].attribs["data-original"],i.vod_remarks=e(e(r).find('[class="update_time"]')).text(),n.push(i)}return n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);return this.vodDetail=await this.parseVodDetailFromDoc(n),this.vodDetail}async setCategory(e,n,l,r){let i=this.siteUrl+`/list/${e}-${n}.html`,s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setSearch(e,n){let l=this.siteUrl+"/search/",r={wd:e,p:"1",t:"j/tNgwBS2e8O4x9TuIkYuQ=="},i=await this.post(l,r,this.getSearchHeader()),s=et(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}},On=new AS;var OS=class extends De{constructor(){super()}getName(){return On.getName()}getAppName(){return On.getAppName()}getJSName(){return On.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await On.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await On.initCookie(e.server.config.biliCookie),await On.spiderInit(e),On.cfgObj.code=0,On.catOpenStatus=!0,On.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await On.setClasses(),this.classes=On.classes}async setFilterObj(){await On.setFilterObj(),this.filterObj=On.filterObj}async setHomeVod(){await On.setHomeVod(),this.homeVodList=On.homeVodList}async setCategory(e,n,l,r){await On.setCategory(e,n,l,r),this.vodList=On.vodList}async setDetail(e){await On.setDetail(e),this.vodDetail=On.vodDetail}async setPlay(e,n,l){await On.setPlay(e,n,l),this.playUrl=On.playUrl,this.result=On.result}async setSearch(e,n,l){await On.setSearch(e,n,l),this.vodList=On.vodList,this.result=On.result}async setProxy(e,n){return await On.proxy(e,n)}},Sa=new OS;async function yW(t,e){return await Sa.init(t,e)}async function gW(t,e){return await Sa.home(t,e)}async function nAe(t,e){return await Sa.homeVod(t,e)}async function vW(t,e){return await Sa.category(t,e)}async function _W(t,e){return await Sa.detail(t,e)}async function EW(t,e){return await Sa.play(t,e)}async function bW(t,e){return await Sa.search(t,e)}async function lAe(t,e){return await Sa.proxy(t,e)}var wW={meta:{key:On.getJSName(),name:On.getName(),type:On.getType()},api:async t=>{t.post("/init",yW),t.post("/home",gW),t.post("/category",vW),t.post("/detail",_W),t.post("/play",EW),t.post("/search",bW),t.get("/proxy/:what/:ids/:end",lAe)},spider:{init:yW,home:gW,homeVod:nAe,category:vW,detail:_W,play:EW,search:bW}};var NS=class extends Fe{constructor(){super(),this.siteUrl="https://tv.cctv.com/m/index.shtml",this.apiUrl="https://api.app.cctv.com",this.liveJsonUrl="https://gh.con.sh/https://github.com/jadehh/LiveSpider/blob/main/json/live.json"}getName(){return"\u{1F935}\u200D\u2642\uFE0F\u2503\u4E2D\u592E\u5F71\u89C6\u2503\u{1F935}\u200D\u2642\uFE0F"}getAppName(){return"\u4E2D\u592E\u5F71\u89C6"}getJSName(){return"cntv"}getType(){return 3}async spiderInit(){await super.spiderInit(),this.liveJson=JSON.parse(await this.fetch(this.liveJsonUrl,null,null))}async init(e){await super.init(e),await this.spiderInit()}async getFilterByLive(e){let n=[],l={key:"live",name:"\u76F4\u64AD",value:[]};for(let r of e)r.appBarTitle!=="\u6700\u8FD1\u5E38\u770B"&&l.value.push({n:r.appBarTitle,v:r.pageId});return n.push(l),n}arrayIsi Line truncated
`," ").replaceAll(" \u6536\u8D77","");let o=e('[class="module-tab-item tab-item"]'),c=e('[class="scroll-content"]'),f=[],m=[];for(let d=0;d<o.length;d++){let _=o[d].attribs["data-dropdown-value"];if(_.indexOf("\u5938\u514B")===-1){f.push(_);let S=[];for(let w of e(c[d]).find("a")){let E=e(w).text(),g=w.attribs.href;S.push(E+"$"+g)}m.push(S.join("#"))}}return l.vod_play_from=f.join("$$$"),l.vod_play_url=m.join("$$$"),l}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=[e.toString(),"","","","","","","",n.toString(),"","",""],s=[3,11,1,2];r.\u5168\u90E8\u5267\u60C5!==void 0&&r.\u5168\u90E8\u5267\u60C5!=="0"&&(i[s[0]]=r.\u5168\u90E8\u5267\u60C5),r.\u5168\u90E8\u65F6\u95F4!==void 0&&r.\u5168\u90E8\u65F6\u95F4!=="0"&&(i[s[1]]=r.\u5168\u90E8\u65F6\u95F4),r.\u5168\u90E8\u5730\u533A!==void 0&&r.\u5168\u90E8\u5730\u533A!=="0"&&(i[s[2]]=r.\u5168\u90E8\u5730\u533A),r.\u65F6\u95F4\u6392\u5E8F!==void 0&&r.\u65F6\u95F4\u6392\u5E8F!=="0"&&(i[s[3]]=r.\u65F6\u95F4\u6392\u5E8F);let a=this.siteUrl+"/index.php/vodshow/"+i.join("-")+".html",u=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(u)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}uic(e,n){let l=$e.enc.Utf8.parse("2890"+n+"tB959C"),r=$e.enc.Utf8.parse("2F131BE91247866E"),i=$e.AES.decrypt(e,l,{iv:r,mode:$e.mode.CBC,padding:$e.pad.Pkcs7});return $e.enc.Utf8.stringify(i)}async setPlay(e,n,l){let i=(await this.getHtml(this.siteUrl+n))('[id="bfurl"]')[0].attribs.href;if(i.indexOf("http")>-1)this.playUrl=i;else{let s="https://jiexi.xn--1lq90i13mxk5bolhm8k.xn--fiqs8s/player/ec.php?code=ak&if=1&url="+i,u=(await this.getHtml(s)).html(),o=JSON.parse(Oe(/let ConFig = (.*?),box = /,u));this.playUrl=this.uic(o.url,o.config.uid)}}async setSearch(e,n){let l=`http://123.207.150.253/zxapi/public/?service=App.F.Fetch&req_p=${e}&type=6080`,r=await this.fetch(l,null,this.getHeader());this.vodList=await this.parseVodShortListFromJson(JSON.parse(r))}},In=new kS;var DS=class extends De{constructor(){super()}getName(){return In.getName()}getAppName(){return In.getAppName()}getJSName(){return In.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await In.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await In.initCookie(e.server.config.biliCookie),await In.spiderInit(e),In.cfgObj.code=0,In.catOpenStatus=!0,In.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await In.setClasses(),this.classes=In.classes}async setFilterObj(){await In.setFilterObj(),this.filterObj=In.filterObj}async setHomeVod(){await In.setHomeVod(),this.homeVodList=In.homeVodList}async setCategory(e,n,l,r){await In.setCategory(e,n,l,r),this.vodList=In.vodList}async setDetail(e){await In.setDetail(e),this.vodDetail=In.vodDetail}async setPlay(e,n,l){await In.setPlay(e,n,l),this.playUrl=In.playUrl,this.result=In.result}async setSearch(e,n,l){await In.setSearch(e,n,l),this.vodList=In.vodList,this.result=In.result}async setProxy(e,n){return await In.proxy(e,n)}},Aa=new DS;async function jW(t,e){return await Aa.init(t,e)}async function UW(t,e){return await Aa.home(t,e)}async function uAe(t,e){return await Aa.homeVod(t,e)}async function MW(t,e){return await Aa.category(t,e)}async function $W(t,e){return await Aa.detail(t,e)}async function BW(t,e){return await Aa.play(t,e)}async function HW(t,e){return await Aa.search(t,e)}async function oAe(t,e){return await Aa.proxy(t,e)}var VW={meta:{key:In.getJSName(),name:In.getName(),type:In.getType()},api:async t=>{t.post("/init",jW),t.post("/home",UW),t.post("/category",MW),t.post("/detail",$W),t.post("/play",BW),t.post("/search",HW),t.get("/proxy/:what/:ids/:end",oAe)},spider:{init:jW,home:UW,homeVod:uAe,category:MW,detail:$W,play:BW,search:HW}};var cAe=["4k","4K"],PS=class extends Fe{constructor(){super(),this.siteUrl="https://www.alypw.com"}async init(e){await super.init(e),await B2(this.cfgObj)}getName(){return"\u{1F94F}\u200D\u2503\u963F\u91CC\u4E91\u76D8\u5206\u4EAB\u2503\u{1F94F}\u200D"}getAppName(){return"\u963F\u91CC\u4E91\u76D8\u5206\u4EAB"}getJSName(){return"aliyunpanshare"}getType(){return 3}getRemarks(e,n){if(M.isEmpty(e)){for(let l of cAe)if(n.indexOf(l)>-1)return l}else return e}parseVodName(e){let n=Oe(/\[阿里云盘](.*?) /,e);return e.indexOf("\u5408\u96C6")>-1||(M.isEmpty(n)&&(n=Oe(/\[阿里云盘](.*?)(/,e)),n.indexOf("[")>-1&&(n=n.split("[")[0]),n.indexOf("\u3010")>-1&&(n=n.split("\u3010")[0]),n==="4K")?"":n}async parseVodShortListFromDoc(e){let n=[],l=e(e('[class="hometab"]').find('[class="box"]')).find("li");for(let r of l){let i=e(r).find('[class="imgr"]')[0],s=new Ne;s.vod_id=e(i).find("a")[0].attribs.href;let a=e(i).find("a")[0].attribs.title;s.vod_name=this.parseVodName Line truncated
`;let u=[],o=Oe(lo,a).split(`
`);for(let f of o){let m=f.match(lo);M.isEmpty(m)||u.push(m[1]);let d=f.match(p4);M.isEmpty(d)||u.push(d[1])}let c=await i3([u]);return r.vod_play_from=M.keys(c).join("$$$"),r.vod_play_url=M.values(c).join("$$$"),r.type_name=Oe(/标签(.*?)\n/,a).replaceAll("\uFF1A",""),r.vod_content=Oe(/描述(.*?)\n/,a).replaceAll("\uFF1A",""),r}async setClasses(){let e=await this.getHtml(),n=e("[id^='navbar-category']").find("a"),l=["\u5F71","\u5267","4K","\u89C6","\u97F3","\u6F14","\u52A8\u6F2B"];for(let r of n){let i=e(r).text(),s=r.attribs.href,a=!1;for(let u of l)i.indexOf(u)>-1&&(a=!0);a&&this.classes.push(this.getTypeDic(i,s))}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=e.split(".html")[0]+"_"+n+".html",s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}async setSearch(e,n){let l=this.siteUrl+`/search.php?q=${e}`,r=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(r)}},Rn=new PS;var LS=class extends De{constructor(){super()}getName(){return Rn.getName()}getAppName(){return Rn.getAppName()}getJSName(){return Rn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Rn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Rn.initCookie(e.server.config.biliCookie),await Rn.spiderInit(e),Rn.cfgObj.code=0,Rn.catOpenStatus=!0,Rn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Rn.setClasses(),this.classes=Rn.classes}async setFilterObj(){await Rn.setFilterObj(),this.filterObj=Rn.filterObj}async setHomeVod(){await Rn.setHomeVod(),this.homeVodList=Rn.homeVodList}async setCategory(e,n,l,r){await Rn.setCategory(e,n,l,r),this.vodList=Rn.vodList}async setDetail(e){await Rn.setDetail(e),this.vodDetail=Rn.vodDetail}async setPlay(e,n,l){await Rn.setPlay(e,n,l),this.playUrl=Rn.playUrl,this.result=Rn.result}async setSearch(e,n,l){await Rn.setSearch(e,n,l),this.vodList=Rn.vodList,this.result=Rn.result}async setProxy(e,n){return await Rn.proxy(e,n)}},Oa=new LS;async function qW(t,e){return await Oa.init(t,e)}async function zW(t,e){return await Oa.home(t,e)}async function pAe(t,e){return await Oa.homeVod(t,e)}async function GW(t,e){return await Oa.category(t,e)}async function JW(t,e){return await Oa.detail(t,e)}async function KW(t,e){return await Oa.play(t,e)}async function XW(t,e){return await Oa.search(t,e)}async function fAe(t,e){return await Oa.proxy(t,e)}var WW={meta:{key:Rn.getJSName(),name:Rn.getName(),type:Rn.getType()},api:async t=>{t.post("/init",qW),t.post("/home",zW),t.post("/category",GW),t.post("/detail",JW),t.post("/play",KW),t.post("/search",XW),t.get("/proxy/:what/:ids/:end",fAe)},spider:{init:qW,home:zW,homeVod:pAe,category:GW,detail:JW,play:KW,search:XW}};var dAe="diao.com",Cf=class{constructor(){this.channelMsg="",this.channelStatus=0,this.channelList=[],this.channelFilters={}}fromJsonString(e,n=0){let l=JSON.parse(e);this.channelMsg=l.msg,this.channelStatus=l.status;let r=[];for(let i of l.list){let s=new FS;switch(n){case 0:s.fromJson(i),r.push(s);break;case 1:i.channelName!=="\u5348\u591C\u573A"&&i.channelName!=="\u5348\u591C\u76F4\u64AD"&&(s.fromJson(i),r.push(s));break;case 2:(i.channelName==="\u5348\u591C\u573A"||i.channelName==="\u5348\u591C\u76F4\u64AD")&&(s.fromJson(i),r.push(s));break}}this.channelList=r,this.channelFilters=l.filter}setChannelFilters(e){this.channelFilters=JSON.parse(e)}getValues(e,n,l){let r=[];r.push({n:"\u5168\u90E8",v:"0"});for(let i of e)r.push({n:i[n],v:i[l].toString()});return r}getFilters(){let e={};for(let n of this.channelList){e[n.channelId]=[];let l=this.channelFilters.sortsMap[parseInt(n.channelId)],r=this.getValues(l,"title","id");e[n.channelId].push({key:"1",name:"\u6392\u5E8F",value:r});let i=this.channelFilters.typesMap[parseInt(n.channelId)],s=this.getValues(i,"showTypeName","showTypeId");e[n.channelId].push({key:"2",name:"\u7C7B\u578B",value:s});let a=this.getValues(this.channelFilters.regions,"regionName","regionId");e[n.channelId].push({key:"3",name:"\u5730\u533A",value:a});let u=this.getValues(this.channelFilters.langs,"langName","langId");e[n.channelId].push({key:"4",name:"\u8BED\u8A00",value:u});let o=this.getValues(this.channelFilters.yearRanges,"name","code");e[n.channelId].push({key:"5",name:"\u5E74\u4EFD",value:o})}return e}getChannelFilters(){return this.channelFilters}getChannelMsg(){return this.channelMsg}getChannelStatus(){return this.channelStatus}getChannelList(){return this.channelList}getClassList(){let e=[];for(let n of this.channelList)e.push({type_id:n.channelId,type_name:n.channelName}); Line truncated
`,"").replaceAll(" ","");if(a.indexOf("\u65F6\u95F4")>-1&&a.indexOf("\u6587\u4EF6\u5939")>-1){let u=a.split("\u65F6\u95F4"),o=new Ne;o.vod_name=u[0],o.vod_remarks=u[1].split("\u683C\u5F0F")[0].replaceAll(":","").replaceAll(" ","").replaceAll("\uFEFF","").replaceAll("\xA0",""),o.vod_id=JSON.stringify({name:o.vod_name,remarks:o.vod_remarks,id:i}),l.push(o)}}}return l}async setClasses(){await this.parseClassFromDoc(this.content_html)}async setHomeVod(){let e=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.homeVodList=await this.parseVodShortListFromDoc(e[0])}async setDetail(e){if(e.indexOf("search")>-1){let n=this.siteUrl+"/search",l={k:decodeURIComponent(e.split("search?k=").slice(-1)[0])},r=await this.fetch(n,l,this.getHeader());if(!M.isEmpty(r)){let i=et(r),s=await this.parseVodShortListFromDocBySearch(i);s.length>0?e=s[0].vod_id:e=""}}if(!M.isEmpty(e)){let n=JSON.parse(e);this.vodDetail=await this.parseVodDetailfromJson(n)}}async setCategory(e,n,l,r){let i=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.vodList=await this.parseVodShortListFromDoc(i[parseInt(e)])}async setSearch(e,n){let l=this.siteUrl+"/search",r={k:e},i=await this.fetch(l,r,this.getHeader());if(!M.isEmpty(i)){let s=et(i);this.vodList=await this.parseVodShortListFromDocBySearch(s)}}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}},Pn=new BS;var HS=class extends De{constructor(){super()}getName(){return Pn.getName()}getAppName(){return Pn.getAppName()}getJSName(){return Pn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Pn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Pn.initCookie(e.server.config.biliCookie),await Pn.spiderInit(e),Pn.cfgObj.code=0,Pn.catOpenStatus=!0,Pn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Pn.setClasses(),this.classes=Pn.classes}async setFilterObj(){await Pn.setFilterObj(),this.filterObj=Pn.filterObj}async setHomeVod(){await Pn.setHomeVod(),this.homeVodList=Pn.homeVodList}async setCategory(e,n,l,r){await Pn.setCategory(e,n,l,r),this.vodList=Pn.vodList}async setDetail(e){await Pn.setDetail(e),this.vodDetail=Pn.vodDetail}async setPlay(e,n,l){await Pn.setPlay(e,n,l),this.playUrl=Pn.playUrl,this.result=Pn.result}async setSearch(e,n,l){await Pn.setSearch(e,n,l),this.vodList=Pn.vodList,this.result=Pn.result}async setProxy(e,n){return await Pn.proxy(e,n)}},Da=new HS;async function fY(t,e){return await Da.init(t,e)}async function dY(t,e){return await Da.home(t,e)}async function EAe(t,e){return await Da.homeVod(t,e)}async function hY(t,e){return await Da.category(t,e)}async function mY(t,e){return await Da.detail(t,e)}async function yY(t,e){return await Da.play(t,e)}async function gY(t,e){return await Da.search(t,e)}async function bAe(t,e){return await Da.proxy(t,e)}var vY={meta:{key:Pn.getJSName(),name:Pn.getName(),type:Pn.getType()},api:async t=>{t.post("/init",fY),t.post("/home",dY),t.post("/category",hY),t.post("/detail",mY),t.post("/play",yY),t.post("/search",gY),t.get("/proxy/:what/:ids/:end",bAe)},spider:{init:fY,home:dY,homeVod:EAe,category:hY,detail:mY,play:yY,search:gY}};var VS=class extends Fe{constructor(){super(),this.siteUrl="https://www.cilixiong.com",this.cateObj={"/movie/":"1","/drama/":"2"}}getAppName(){return"\u78C1\u529B\u718A"}getName(){return"\u{1F43B}\u2503\u78C1\u529B\u718A\u2503\u{1F43B}"}getJSName(){return"cilixiong"}getType(){return 3}async setClasses(){let e=await this.getHtml(),n=e('[class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0"]').find("li");for(let l of n){let r=e(l).find("a")[0],i=e(r).text(),s=r.attribs.href;i!=="\u9996\u9875"&&i!=="\u699C\u5355"&&i!=="\u7559\u8A00"&&this.classes.push(this.getTypeDic(i,s))}}async getFilter(e){let n=[],l=e('[class="nav small"]'),r=1;for(let i of l){let s=e(e(i).find("li")[0]).text().replaceAll("\uFF1A",""),a={key:r.toString(),name:s,value:[]};for(let u of e(i).find("li").slice(1)){let o=e(u).find("a")[0],c=o.attribs.href.split("-")[r];a.value.push({n:e(o).text(),v:c})}r=r+1,n.push(a)}return n}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="\u6700\u8FD1\u66F4\u65B0"){let l=await this.getHtml(this.siteUrl+n);this.filterObj[n]=await this.getFilter(l)}}}async parseVodShortListFromDoc(e){let n=[],l=e('[class="col"]');for(let r of l){let i=new Ne;i.vod_id=e(r).find("a")[0].attribs.href,i.vod_pic=Oe(/background-image: url\('(.*?)'\)/,e(r).find('[class="card-img"]')[0].attribs.style),i.vod_name=e(e(r).find("h2")).text();let s=e(e(r).find('[class="rank bg-success p-1"]')).text();i.vod_remarks="\u8BC4\u5206:"+s,s!=="AD"&&n.push(i)}return n}async parseVodShortListFromDocBySearch(e){let n=[],l=e('[class="card card-cover h-100 overflow-hidden text-bg-dark rounded-4 shadow-lg posit Line truncated
<ContentComponent contentType="${f}"/>
<Representation id="${n}" bandwidth="${i}" codecs="${r}" mimeType="${a}" ${m} startWithSAP="${s}">
<BaseURL>${u}</BaseURL>
@@ -421,14 +426,11 @@ function print() { __p += __j.call(arguments, '') }
${n}
${l}
</Period>
</MPD>`}async proxy(e,n){let l=e[0],r=y2(e[1]);if(l==="dash"){let i=r.split("+"),s=i[0],a=i[1],u=i[2],o=this.apiUrl+`/x/player/playurl?avid=${s}&cid=${a}&qn=${u}&fnval=4048&fourk=1`,c="",f="",m=await this.fetch(o,null,n),d=JSON.parse(m),y=d.data.dash,_=y.video,S=y.audio;for(let E=0;E<_.length;E++){let g=_[E];g.id.toString()===u&&(c+=this.getDashMedia(g))}for(let E=0;E<S.length;E++){let g=S[E];for(let v in this.vod_audio_id)g.id.toString()===v&&(f+=this.getDashMedia(g))}let w=this.getDash(d,c,f);return JSON.stringify({code:200,content:w,headers:{"Content-Type":"application/dash+xml"}})}return JSON.stringify({code:500,content:""})}},Rn=new PS;var LS=class extends De{constructor(){super()}getName(){return Rn.getName()}getAppName(){return Rn.getAppName()}getJSName(){return Rn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Rn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Rn.initCookie(e.server.config.biliCookie),await Rn.spiderInit(e),Rn.cfgObj.code=0,Rn.catOpenStatus=!0,Rn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Rn.setClasses(),this.classes=Rn.classes}async setFilterObj(){await Rn.setFilterObj(),this.filterObj=Rn.filterObj}async setHomeVod(){await Rn.setHomeVod(),this.homeVodList=Rn.homeVodList}async setCategory(e,n,l,r){await Rn.setCategory(e,n,l,r),this.vodList=Rn.vodList}async setDetail(e){await Rn.setDetail(e),this.vodDetail=Rn.vodDetail}async setPlay(e,n,l){await Rn.setPlay(e,n,l),this.playUrl=Rn.playUrl,this.result=Rn.result}async setSearch(e,n,l){await Rn.setSearch(e,n,l),this.vodList=Rn.vodList,this.result=Rn.result}async setProxy(e,n){return await Rn.proxy(e,n)}},Ia=new LS;async function qW(t,e){return await Ia.init(t,e)}async function zW(t,e){return await Ia.home(t,e)}async function uAe(t,e){return await Ia.homeVod(t,e)}async function GW(t,e){return await Ia.category(t,e)}async function JW(t,e){return await Ia.detail(t,e)}async function KW(t,e){return await Ia.play(t,e)}async function XW(t,e){return await Ia.search(t,e)}async function oAe(t,e){return await Ia.proxy(t,e)}var WW={meta:{key:Rn.getJSName(),name:Rn.getName(),type:Rn.getType()},api:async t=>{t.post("/init",qW),t.post("/home",zW),t.post("/category",GW),t.post("/detail",JW),t.post("/play",KW),t.post("/search",XW),t.get("/proxy/:what/:ids/:end",oAe)},spider:{init:qW,home:zW,homeVod:uAe,category:GW,detail:JW,play:KW,search:XW}};function cAe(t,e,n,l){let r=$e.enc.Utf8.parse(e||"PBfAUnTdMjNDe6pL"),i=$e.enc.Utf8.parse(n||"sENS6bVbwSfvnXrj"),s;return l?s=$e.AES.encrypt(t,r,{iv:i,mode:$e.mode.CBC,padding:$e.pad.Pkcs7}):s=$e.AES.decrypt(t,r,{iv:i,padding:$e.pad.Pkcs7}).toString($e.enc.Utf8),s}var FS=class extends Fe{constructor(){super(),this.siteUrl="https://www.czys.pro"}async init(t){await super.init(t),await B2(this.cfgObj)}getName(){return"\u{1F3ED}\uFE0F\u2503\u5382\u957F\u76F4\u8FDE\u2503\u{1F3ED}\uFE0F"}getAppName(){return"\u5382\u957F\u76F4\u8FDE"}getJSName(){return"changzhang"}getType(){return 3}async getHtml(t=this.siteUrl,e=this.getHeader()){let l=(await this.fetch(t,null,e,!1,!0)).content;if(!M.isEmpty(l)&&l.indexOf("\u4EBA\u673A\u9A8C\u8BC1")===-1)return et(l);await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0)}getSearchHeader(){return{Cookie:"cf_clearance=otYZbHg1safCIxkCtZfy9DPKbf1Gs_zUskkVDc0MVKM-1707026063-1-ATOpKnTLv9+pv171YE/rzxN/nmvGN9Mucx7vpwp0kW2vZb/cbtz5e2md2/ym7EE+9dT7pPBV+kQOg9vJx2v8cks=;myannoun=1;PHPSESSID=73386nobqugs7r3pb2ljcsp5q4","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/100.0.4896.77 Mobile/15E148 Safari/604.1",Connection:"keep-alive",Host:"www.czzy55.com"}}parseVodShortFromElement(t,e){let n=new Ne,l=t(t(e).find("a")).find("img")[0];return n.vod_name=l.attribs.alt,n.vod_pic=l.attribs["data-original"],n.vod_remarks=t(t(t(e).find("[class='hdinfo']")).find("span")).text(),n.vod_id=t(e).find("a")[0].attribs.href,n}async parseVodShortListFromDoc(t){let e=[],n=t(t('[class="mi_cont"]').find("ul")).find("li");for(let l of n)e.push(this.parseVodShortFromElement(t,l));return e}async parseVodShortListFromDocByCategory(t){let e=[],n=t(t('[class="mi_cont "]').find("ul")).find("li");for(let l of n)e.push(this.parseVodShortFromElement(t,l));return e}async parseVodDetailFromDoc(t){let e=new He,n=t("[class='dyxingq']");e.vod_pic=t(n).find("img")[0].attribs.src,e.vod_name=t(t(n).find("h1")[0]).text(),e.vod_content=t(t(t("[class='yp_context']")).find("p")).text();let l=t(n).find("[class='moviedteail_list']").find("li"),r=t(l).text();for(let f of l){let m=t(f).text();m.indexOf("\u7C7B\u578B")>-1?e.type_name=m.replaceAll("\u7C7B\u578B","").replaceAll("\uFF1A",""):m.indexOf("\u5E74\u4EFD")>-1?e.vod_year=m.replaceAll("\u5E74\u4EFD","").replaceAll("\uFF1A",""):m.indexOf("\u5730\u533A")>-1?e.vod_arLine truncated
`,"").replace(" ","").replace("\u73A9\u5076",""),a={type_id:i,type_name:s};this.classes.push(a)}}}async getFilter(e){let n=e("[class='scroll-content']").slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/index.php/vodshow/${n}--------1---.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=et(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=[e.toString(),"","","","","","","",n.toString(),"","",""],s=this.get_extend_sort_dic(parseInt(e));for(let o of Object.keys(s))r[o]==="0"?i[s[o]]="":i[s[o]]=r[o];let a=this.siteUrl+"/index.php/vodshow/"+i.join("-")+".html",u=await this.fetch(a,null,this.getHeader());if(!M.isEmpty(u)){let o=et(u);this.vodList=await this.parseVodShortListFromDoc(o);let c=Oe(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,u);this.limit=72,c.length>0&&(this.total=parseInt(c)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}async setSearch(e,n){let l=this.siteUrl+"/index.php/vodsearch/-------------.html?wd="+e,r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},kn=new US;var MS=class extends De{constructor(){super()}getName(){return kn.getName()}getAppName(){return kn.getAppName()}getJSName(){return kn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await kn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await kn.initCookie(e.server.config.biliCookie),await kn.spiderInit(e),kn.cfgObj.code=0,kn.catOpenStatus=!0,kn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await kn.setClasses(),this.classes=kn.classes}async setFilterObj(){await kn.setFilterObj(),this.filterObj=kn.filterObj}async setHomeVod(){await kn.setHomeVod(),this.homeVodList=kn.homeVodList}async setCategory(e,n,l,r){await kn.setCategory(e,n,l,r),this.vodList=kn.vodList}async setDetail(e){await kn.setDetail(e),this.vodDetail=kn.vodDetail}async setPlay(e,n,l){await kn.setPlay(e,n,l),this.playUrl=kn.playUrl,this.result=kn.result}async setSearch(e,n,l){await kn.setSearch(e,n,l),this.vodList=kn.vodList,this.result=kn.result}async setProxy(e,n){return await kn.proxy(e,n)}},ka=new MS;async function rY(t,e){return await ka.init(t,e)}async function iY(t,e){return await ka.home(t,e)}async function bAe(t,e){return await ka.homeVod(t,e)}async function sY(t,e){return await ka.category(t,e)}async function aY(t,e){return await ka.detail(t,e)}async function uY(t,e){return await ka.play(t,e)}async function oY(t,e){return await ka.search(t,e)}async function wAe(t,e){return await ka.proxy(t,e)}var cY={meta:{key:kn.getJSName(),name:kn.getName(),type:kn.getType()},api:async t=>{t.post("/init",rY),t.post("/home",iY),t.post("/category",sY),t.post("/detail",aY),t.post("/play",uY),t.post("/search",oY),t.get("/proxy/:what/:ids/:end",wAe)},spider:{init:rY,home:iY,homeVod:bAe,category:sY,detail:aY,play:uY,search:oY}};function SAe(t){return t.replace(/<\/?[^>]+(>|$)/g,"").replace(/&.{1,5};/g,"").replace(/\s{2,}/g," ")}function TAe(t,e){return e.trim().replaceAll(t,"").replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}var $S=class extends Fe{constructor(){super(),this.siteUrl="http://ys.changmengyun.com"}getName(){return"\u{1F383}\u2503\u5357\u74DC\u5F71\u89C6\u2503\u{1F383}"}getAppName(){return"\u5357\u74DC\u5F71\u89C6"}getJSName(){return"nangua"}getType(){return 3}async init(e){await super.init(e),this.danmuStaus=!0}getHeader(){let e=new Date().getTime().toString();return{version_name:"1.0.6",version_code:"6",package_name:"com.app.nanguatv",sign:$e.MD5("c431ea542cee9679#uBFszdEM0oL0JRn@"+e).toString().toLowerCase(),imei:"c431ea542cee9679",timeMillis:e,"User-Agent":"okhttp/4.6.0"}}async setClasses(){let e=JSON.parse(await this.fetch(this.siteUrl+"/api.php/provide/home_nav",null,this.getHeader()));for(let n in e)e[n].name!=="\u7CBE\u9009"&&th Line truncated
`;let u=[],o=Oe(lo,a).split(`
`);for(let f of o){let m=f.match(lo);M.isEmpty(m)||u.push(m[1]);let d=f.match(p4);M.isEmpty(d)||u.push(d[1])}let c=await i3([u]);return r.vod_play_from=M.keys(c).join("$$$"),r.vod_play_url=M.values(c).join("$$$"),r.type_name=Oe(/标签(.*?)\n/,a).replaceAll("\uFF1A",""),r.vod_content=Oe(/描述(.*?)\n/,a).replaceAll("\uFF1A",""),r}async setClasses(){let e=await this.getHtml(),n=e("[id^='navbar-category']").find("a"),l=["\u5F71","\u5267","4K","\u89C6","\u97F3","\u6F14","\u52A8\u6F2B"];for(let r of n){let i=e(r).text(),s=r.attribs.href,a=!1;for(let u of l)i.indexOf(u)>-1&&(a=!0);a&&this.classes.push(this.getTypeDic(i,s))}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=e.split(".html")[0]+"_"+n+".html",s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}async setSearch(e,n){let l=this.siteUrl+`/search.php?q=${e}`,r=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(r)}},Pn=new HS;var VS=class extends De{constructor(){super()}getName(){return Pn.getName()}getAppName(){return Pn.getAppName()}getJSName(){return Pn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Pn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Pn.initCookie(e.server.config.biliCookie),await Pn.spiderInit(e),Pn.cfgObj.code=0,Pn.catOpenStatus=!0,Pn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Pn.setClasses(),this.classes=Pn.classes}async setFilterObj(){await Pn.setFilterObj(),this.filterObj=Pn.filterObj}async setHomeVod(){await Pn.setHomeVod(),this.homeVodList=Pn.homeVodList}async setCategory(e,n,l,r){await Pn.setCategory(e,n,l,r),this.vodList=Pn.vodList}async setDetail(e){await Pn.setDetail(e),this.vodDetail=Pn.vodDetail}async setPlay(e,n,l){await Pn.setPlay(e,n,l),this.playUrl=Pn.playUrl,this.result=Pn.result}async setSearch(e,n,l){await Pn.setSearch(e,n,l),this.vodList=Pn.vodList,this.result=Pn.result}async setProxy(e,n){return await Pn.proxy(e,n)}},Pa=new VS;async function vY(t,e){return await Pa.init(t,e)}async function _Y(t,e){return await Pa.home(t,e)}async function NAe(t,e){return await Pa.homeVod(t,e)}async function EY(t,e){return await Pa.category(t,e)}async function bY(t,e){return await Pa.detail(t,e)}async function wY(t,e){return await Pa.play(t,e)}async function SY(t,e){return await Pa.search(t,e)}async function CAe(t,e){return await Pa.proxy(t,e)}var TY={meta:{key:Pn.getJSName(),name:Pn.getName(),type:Pn.getType()},api:async t=>{t.post("/init",vY),t.post("/home",_Y),t.post("/category",EY),t.post("/detail",bY),t.post("/play",wY),t.post("/search",SY),t.get("/proxy/:what/:ids/:end",CAe)},spider:{init:vY,home:_Y,homeVod:NAe,category:EY,detail:bY,play:wY,search:SY}};var qS=class extends J6{constructor(){super(),this.siteUrl="http://v.rbotv.cn",this.cookie="",this.extendObj={extend:"\u7C7B\u578B",area:"\u5730\u533A",year:"\u5E74\u4EE3"},this.parseMap={}}getName(){return"\u{1F6F6}\u2503\u72EC\u64AD\u5F71\u89C6\u2503\u{1F6F6}"}getAppName(){return"\u72EC\u64AD\u5F71\u89C6"}getJSName(){return"dubo"}getType(){return 3}async init(e){await super.init(e),this.danmuStaus=!1}},Ln=new qS;var zS=class extends De{constructor(){super()}getName(){return Ln.getName()}getAppName(){return Ln.getAppName()}getJSName(){return Ln.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Ln.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Ln.initCookie(e.server.config.biliCookie),await Ln.spiderInit(e),Ln.cfgObj.code=0,Ln.catOpenStatus=!0,Ln.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Ln.setClasses(),this.classes=Ln.classes}async setFilterObj(){await Ln.setFilterObj(),this.filterObj=Ln.filterObj}async setHomeVod(){await Ln.setHomeVod(),this.homeVodList=Ln.homeVodList}async setCategory(e,n,l,r){await Ln.setCategory(e,n,l,r),this.vodList=Ln.vodList}async setDetail(e){await Ln.setDetail(e),this.vodDetail=Ln.vodDetail}async setPlay(e,n,l){await Ln.setPlay(e,n,l),this.playUrl=Ln.playUrl,this.result=Ln.result}async setSearch(e,n,l){await Ln.setSearch(e,n,l),this.vodList=Ln.vodList,this.result=Ln.result}async setProxy(e,n){return await Ln.proxy(e,n)}},La=new zS;async function xY(t,e){return await La.init(t,e)}async function AY(t,e){return await La.home(t,e)}async function IAe(t,e){return await La.homeVod(t,e)}async function OY(t,e){return await La.categor Line truncated
</MPD>`}async proxy(e,n){let l=e[0],r=y2(e[1]);if(l==="dash"){let i=r.split("+"),s=i[0],a=i[1],u=i[2],o=this.apiUrl+`/x/player/playurl?avid=${s}&cid=${a}&qn=${u}&fnval=4048&fourk=1`,c="",f="",m=await this.fetch(o,null,n),d=JSON.parse(m),y=d.data.dash,_=y.video,S=y.audio;for(let E=0;E<_.length;E++){let g=_[E];g.id.toString()===u&&(c+=this.getDashMedia(g))}for(let E=0;E<S.length;E++){let g=S[E];for(let v in this.vod_audio_id)g.id.toString()===v&&(f+=this.getDashMedia(g))}let w=this.getDash(d,c,f);return JSON.stringify({code:200,content:w,headers:{"Content-Type":"application/dash+xml"}})}return JSON.stringify({code:500,content:""})}},Fn=new zS;var GS=class extends De{constructor(){super()}getName(){return Fn.getName()}getAppName(){return Fn.getAppName()}getJSName(){return Fn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Fn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Fn.initCookie(e.server.config.biliCookie),await Fn.spiderInit(e),Fn.cfgObj.code=0,Fn.catOpenStatus=!0,Fn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Fn.setClasses(),this.classes=Fn.classes}async setFilterObj(){await Fn.setFilterObj(),this.filterObj=Fn.filterObj}async setHomeVod(){await Fn.setHomeVod(),this.homeVodList=Fn.homeVodList}async setCategory(e,n,l,r){await Fn.setCategory(e,n,l,r),this.vodList=Fn.vodList}async setDetail(e){await Fn.setDetail(e),this.vodDetail=Fn.vodDetail}async setPlay(e,n,l){await Fn.setPlay(e,n,l),this.playUrl=Fn.playUrl,this.result=Fn.result}async setSearch(e,n,l){await Fn.setSearch(e,n,l),this.vodList=Fn.vodList,this.result=Fn.result}async setProxy(e,n){return await Fn.proxy(e,n)}},La=new GS;async function AY(t,e){return await La.init(t,e)}async function OY(t,e){return await La.home(t,e)}async function TAe(t,e){return await La.homeVod(t,e)}async function NY(t,e){return await La.category(t,e)}async function CY(t,e){return await La.detail(t,e)}async function IY(t,e){return await La.play(t,e)}async function RY(t,e){return await La.search(t,e)}async function xAe(t,e){return await La.proxy(t,e)}var kY={meta:{key:Fn.getJSName(),name:Fn.getName(),type:Fn.getType()},api:async t=>{t.post("/init",AY),t.post("/home",OY),t.post("/category",NY),t.post("/detail",CY),t.post("/play",IY),t.post("/search",RY),t.get("/proxy/:what/:ids/:end",xAe)},spider:{init:AY,home:OY,homeVod:TAe,category:NY,detail:CY,play:IY,search:RY}};var JS=class extends Fe{constructor(){super(),this.siteUrl="https://www.dygangs.org"}getAppName(){return"\u7535\u5F71\u6E2F"}getName(){return"\u{1F3D6}\uFE0F\u2503\u7535\u5F71\u6E2F\u2503\u{1F3D6}\uFE0F"}getJSName(){return"dygangs"}getType(){return 3}async setClasses(){let e=await this.getHtml(),n=e(e('[class="top-nav"]')[0]).find("a");for(let l of n){let r=l.attribs.href.replaceAll(this.siteUrl,""),i=e(l).text();r!=="/"&&this.classes.push(this.getTypeDic(i,r))}}async getFilter(e,n){let l=e('[class="nav-down-2 clearfix"]')[n],r=[];if(l!==void 0){let i="\u6309\u7C7B\u578B",s={key:i,name:i,value:[]};s.name=i,s.value.push({n:"\u5168\u90E8",v:"0"});for(let a of e(l).find("a")){let u=e(a).html(),o=a.attribs.href.split("/").slice(-2)[0];s.value.push({n:u,v:o})}r.push(s)}return r}async setFilterObj(){let e=0;for(let n of this.classes.slice(1,5)){let l=n.type_id;if(l!=="\u6700\u8FD1\u66F4\u65B0"){let r=this.siteUrl+`${l}`,i=await this.getHtml(r);this.filterObj[l]=await this.getFilter(i,e)}e=e+1}}parseVodShortFromElement(e,n){let l=new Ne;return l.vod_id=n.attribs.href,l.vod_name=n.attribs.title,l.vod_pic=e(n).find("img")[0].attribs["data-original"],l.vod_remarks=e(e(n).find("i")[0]).text().replaceAll(" ","").replaceAll(`
`,""),M.isEmpty(l.vod_pic)&&(l.vod_pic=ta+"/resources/dygang.jpg"),l}async parseVodShortListFromDoc(e){let n=[],l=e('[class="index-tj-l"]').find("li");for(let r of l){let i=e(r).find("a")[0],s=this.parseVodShortFromElement(e,i);n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],l=e('[class="index-area clearfix"]').find("li");for(let r of l){let i=e(r).find("a")[0],s=this.parseVodShortFromElement(e,i);n.push(s)}return n}async parseVodDetailFromDoc(e){let n=new He,l=e('[ class="ct mb clearfix"]');n.vod_pic=e(l).find("img")[0].attribs.src,n.vod_name=Oe(/◎片  名 (.*?)<br>/,e(l).html()),n.vod_area=Oe(/◎产  地 (.*?)<br>/,e(l).html()),n.vod_year=Oe(/◎年  代 (.*?)<br>/,e(l).html()),n.type_name=Oe(/◎类  别 (.*?)<br>/,e(l).html()),n.vod_remarks=Oe(/◎集  数 (.*?)<br>/,e(l).html());let r=Oe(/◎主  演 (.*?)<\/p>/s,e(l).html());M.isEmpty(r)&&(r=Oe(/◎演  员 (.*?)<\/p>/s,e(l).html()));let i=[];for(let f of r.split(`
`))i.push(f.replaceAll("\u3000\u3000\u3000\u3000&nbsp; \u3000","").replaceAll("<br>","").replaceAll("\u3000\u3000\u3000\u3000\u3000",""));n.vod_actor=i.join("/"),n.vod_director=Oe(/◎导  演 (.*?)<br>/,e(l).html()),n.vod_content=Oe(/◎简  介<\/p>(.*?)<br>/s,e(l).html()).replaceAll("<p>","").replaceAll(`
`,""),M.isEmpty(n.vod_content)&&(n.vod_content=Oe(/◎简  介<br>(.*?)<\/p>/s,e(l).html()).replaceAll("<p>","").replaceAll(`
`,""));let s=[],a=[],u=e('[class="playfrom tab8 clearfix"]'),o=e('[class="videourl clearfix"]');for(let f=0;f<u.length;f++){let m=u[f],d=e(e(m).find("li")).html();s.push(d.replaceAll('<i class="playerico ico-Azhan"></i> ',""));let y=[];for(let _ of e(o[f]).find("a")){let S=_.attribs.title,w=_.attribs.href;y.push(S+"$"+w)}a.push(y.join("#"))}let c=e(e(l).find("span")[0]).find("span");if(c.length>0){let f=e(c).html();s.push(Oe(/【(.*?)】/,f.replaceAll("\u4E0B\u8F7D\u5730\u5740","\u78C1\u529B\u94FE\u63A5")));let m=[];for(let d of e(e(e(l).find("tbody")).find("tr")).find("a")){let y=e(d).html().replaceAll(".mp4",""),_=d.attribs.href;m.push(y+"$"+_)}a.push(m.join("#"))}return n.vod_play_from=s.join("$$$"),n.vod_play_url=a.join("$$$"),n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=this.siteUrl+e;r.\u6309\u7C7B\u578B!==void 0&&r.\u6309\u7C7B\u578B!=="0"&&(i=i+`${r.\u6309\u7C7B\u578B}/`),parseInt(n)>1&&(i=i+`index_${n}.html`);let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setSearch(e,n){let l=this.siteUrl+"/e/search/index.php",r={keyboard:e,submit:"\u641C \u7D22",show:"title,zhuyan",tempid:"1"},i=await this.post(l,r,this.getHeader()),s=et(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setPlay(e,n,l){if(n.indexOf("http")>-1){let r=await this.getHtml(n),i=Oe(/url: '(.*?)',/,r.html());if(M.isEmpty(i)){let s=r(r('[class="video"]')[0]).find("iframe")[0].attribs.src,a=await this.fetch(s,null,{"User-Agent":ql});if(this.playUrl=Oe(/url: '(.*?)',/,a),M.isEmpty(this.playUrl)){let u=XV(s);this.playUrl=u+Oe(/var main = "(.*?)";/,a)}}else this.playUrl=i}else this.playUrl=n}},jn=new KS;var XS=class extends De{constructor(){super()}getName(){return jn.getName()}getAppName(){return jn.getAppName()}getJSName(){return jn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await jn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await jn.initCookie(e.server.config.biliCookie),await jn.spiderInit(e),jn.cfgObj.code=0,jn.catOpenStatus=!0,jn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await jn.setClasses(),this.classes=jn.classes}async setFilterObj(){await jn.setFilterObj(),this.filterObj=jn.filterObj}async setHomeVod(){await jn.setHomeVod(),this.homeVodList=jn.homeVodList}async setCategory(e,n,l,r){await jn.setCategory(e,n,l,r),this.vodList=jn.vodList}async setDetail(e){await jn.setDetail(e),this.vodDetail=jn.vodDetail}async setPlay(e,n,l){await jn.setPlay(e,n,l),this.playUrl=jn.playUrl,this.result=jn.result}async setSearch(e,n,l){await jn.setSearch(e,n,l),this.vodList=jn.vodList,this.result=jn.result}async setProxy(e,n){return await jn.proxy(e,n)}},ja=new XS;async function MY(t,e){return await ja.init(t,e)}async function $Y(t,e){return await ja.home(t,e)}async function PAe(t,e){return await ja.homeVod(t,e)}async function BY(t,e){return await ja.category(t,e)}async function HY(t,e){return await ja.detail(t,e)}async function VY(t,e){return await ja.play(t,e)}async function qY(t,e){return await ja.search(t,e)}async function LAe(t,e){return await ja.proxy(t,e)}var zY={meta:{key:jn.getJSName(),name:jn.getName(),type:jn.getType()},api:async t=>{t.post("/init",MY),t.post("/home",$Y),t.post("/category",BY),t.post("/detail",HY),t.post("/play",VY),t.post("/search",qY),t.get("/proxy/:what/:ids/:end",LAe)},spider:{init:MY,home:$Y,homeVod:PAe,category:BY,detail:HY,play:VY,search:qY}};var WS=class extends Fe{constructor(){super(),this.siteUrl="https://www.cilixiong.com",this.cateObj={"/movie/":"1","/drama/":"2"}}getAppName(){return"\u78C1\u529B\u718A"}getName(){return"\u{1F43B}\u2503\u78C1\u529B\u718A\u2503\u{1F43B}"}getJSName(){return"cilixiong"}getType(){return 3}async setClasses(){let e=await this.getHtml(),n=e('[class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0"]').find("li");for(let l of n){let r=e(l).find("a")[0],i=e(r).text(),s=r.attribs.href;i!=="\u9996\u9875"&&i!=="\u699C\u5355"&&i!=="\u7559\u8A00"&&this.classes.push(this.getTypeDic(i,s))}}async getFilter(e){let n=[],l=e('[class="nav small"]'),r=1;for(let i of l){let s=e(e(i).find("li")[0]).text().replaceAll("\uFF1A",""),a={key:r.toString(),name:s,value:[]};for(let u of e(i).find("li").slice(1)){let o=e(u).find("a")[0],c=o.attribs.href.split("-")[r];a.value.push({n:e(o).text(),v:c})}r=r+1,n.push(a)}return n}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="\u6700\u8FD1\u66F4\u65B0"){let l=await this.getHtml(this.siteUrl+n);this.filterObj[n]=await this.getFilter(l)}}}async parseVodShortListFromDoc(e){let n=[],l=e('[class="col"]');for(let r of l){let i=new Line truncated
`,""));let s=[],a=[],u=e('[class="playfrom tab8 clearfix"]'),o=e('[class="videourl clearfix"]');for(let f=0;f<u.length;f++){let m=u[f],d=e(e(m).find("li")).html();s.push(d.replaceAll('<i class="playerico ico-Azhan"></i> ',""));let y=[];for(let _ of e(o[f]).find("a")){let S=_.attribs.title,w=_.attribs.href;y.push(S+"$"+w)}a.push(y.join("#"))}let c=e(e(l).find("span")[0]).find("span");if(c.length>0){let f=e(c).html();s.push(Oe(/【(.*?)】/,f.replaceAll("\u4E0B\u8F7D\u5730\u5740","\u78C1\u529B\u94FE\u63A5")));let m=[];for(let d of e(e(e(l).find("tbody")).find("tr")).find("a")){let y=e(d).html().replaceAll(".mp4",""),_=d.attribs.href;m.push(y+"$"+_)}a.push(m.join("#"))}return n.vod_play_from=s.join("$$$"),n.vod_play_url=a.join("$$$"),n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=this.siteUrl+e;r.\u6309\u7C7B\u578B!==void 0&&r.\u6309\u7C7B\u578B!=="0"&&(i=i+`${r.\u6309\u7C7B\u578B}/`),parseInt(n)>1&&(i=i+`index_${n}.html`);let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setSearch(e,n){let l=this.siteUrl+"/e/search/index.php",r={keyboard:e,submit:"\u641C \u7D22",show:"title,zhuyan",tempid:"1"},i=await this.post(l,r,this.getHeader()),s=et(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setPlay(e,n,l){if(n.indexOf("http")>-1){let r=await this.getHtml(n),i=Oe(/url: '(.*?)',/,r.html());if(M.isEmpty(i)){let s=r(r('[class="video"]')[0]).find("iframe")[0].attribs.src,a=await this.fetch(s,null,{"User-Agent":ql});if(this.playUrl=Oe(/url: '(.*?)',/,a),M.isEmpty(this.playUrl)){let u=XV(s);this.playUrl=u+Oe(/var main = "(.*?)";/,a)}}else this.playUrl=i}else this.playUrl=n}},jn=new JS;var KS=class extends De{constructor(){super()}getName(){return jn.getName()}getAppName(){return jn.getAppName()}getJSName(){return jn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await jn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await jn.initCookie(e.server.config.biliCookie),await jn.spiderInit(e),jn.cfgObj.code=0,jn.catOpenStatus=!0,jn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await jn.setClasses(),this.classes=jn.classes}async setFilterObj(){await jn.setFilterObj(),this.filterObj=jn.filterObj}async setHomeVod(){await jn.setHomeVod(),this.homeVodList=jn.homeVodList}async setCategory(e,n,l,r){await jn.setCategory(e,n,l,r),this.vodList=jn.vodList}async setDetail(e){await jn.setDetail(e),this.vodDetail=jn.vodDetail}async setPlay(e,n,l){await jn.setPlay(e,n,l),this.playUrl=jn.playUrl,this.result=jn.result}async setSearch(e,n,l){await jn.setSearch(e,n,l),this.vodList=jn.vodList,this.result=jn.result}async setProxy(e,n){return await jn.proxy(e,n)}},Fa=new KS;async function DY(t,e){return await Fa.init(t,e)}async function PY(t,e){return await Fa.home(t,e)}async function AAe(t,e){return await Fa.homeVod(t,e)}async function LY(t,e){return await Fa.category(t,e)}async function FY(t,e){return await Fa.detail(t,e)}async function jY(t,e){return await Fa.play(t,e)}async function UY(t,e){return await Fa.search(t,e)}async function OAe(t,e){return await Fa.proxy(t,e)}var MY={meta:{key:jn.getJSName(),name:jn.getName(),type:jn.getType()},api:async t=>{t.post("/init",DY),t.post("/home",PY),t.post("/category",LY),t.post("/detail",FY),t.post("/play",jY),t.post("/search",UY),t.get("/proxy/:what/:ids/:end",OAe)},spider:{init:DY,home:PY,homeVod:AAe,category:LY,detail:FY,play:jY,search:UY}};var $Y=[19970,19972,19973,19974,19983,19986,19991,19999,2e4,20001,20003,20006,20009,20014,20015,20017,20019,20021,20023,20028,20032,20033,20034,20036,20038,20042,20049,20053,20055,20058,20059,20066,20067,20068,20069,20071,20072,20074,20075,20076,20077,20078,20079,20082,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20095,20096,20097,20098,20099,20100,20101,20103,20106,null,20112,20118,20119,20121,20124,20125,20126,20131,20138,20143,20144,20145,20148,20150,20151,20152,20153,20156,20157,20158,20168,20172,20175,20176,20178,20186,20187,20188,20192,20194,20198,20199,20201,20205,20206,20207,20209,20212,20216,20217,20218,20220,20222,20224,20226,20227,20228,20229,20230,20231,20232,20235,20236,20242,20243,20244,20245,20246,20252,20253,20257,20259,20264,20265,20268,20269,20270,20273,20275,20277,20279,20281,20283,20286,20287,20288,20289,20290,20292,20293,20295,20296,20297,20298,20299,20300,20306,20308,20310,20321,20322,20326,20328,20330,20331,20333,20334,20337,20338,20341,20343,20344,20345,20346,20349,20352,20353,20354,20357,20358,20359,20362,20364,20366,20368,20370,20371,20373,20374,20376,20377,20378,20380,20382,20383,20385,20386,null,null,null,null,null,null,null,null,null,nul Line truncated
`)),e.push(r)}return e}async parseVodShortListFromDocBySearch(t){let e=t('[class="show-list"]').find("li"),n=[];for(let l of e){let r=new Ne;r.vod_id=t(l).find("a")[0].attribs.href;let i=t(l).find("img")[0];r.vod_pic=i.attribs.src,r.vod_name=i.attribs.alt,r.vod_remarks=t(t(l).find('[class="type fn-left"]')).text().replace("\u7C7B\u578B\uFF1A",""),r.vod_remarks!=="\u793E\u5904\u7247"&&r.vod_remarks!=="\u793E\u4FDD\u7247"&&r.vod_remarks!=="\u64B8\u4E1D\u7247"&&r.vod_remarks!=="\u64B8\u4E1D\u52A8\u6F2B"&&n.push(r)}return n}async parseVodDetailFromDoc(t){let e=new He,n=t('[class="detail-pic fn-left"]').find("img")[0];e.vod_pic=n.attribs.src,e.vod_name=n.attribs.alt;let l=t('[class="info fn-clear"]');for(let o of t(l).find("dl")){let c=t(o).text();c.indexOf("\u4E3B\u6F14")>-1&&(e.vod_actor=c.replaceAll("\u4E3B\u6F14\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u72B6\u6001")>-1&&(e.vod_remarks=c.replaceAll("\u72B6\u6001\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u7C7B\u578B")>-1&&(e.type_name=c.replaceAll("\u7C7B\u578B\uFF1A","").replaceAll(`
@@ -436,19 +438,14 @@ function print() { __p += __j.call(arguments, '') }
`,"")),c.indexOf("\u5BFC\u6F14")>-1&&(e.vod_director=c.replaceAll("\u5BFC\u6F14\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u5E74\u4EFD")>-1&&(e.vod_year=c.replaceAll("\u5E74\u4EFD\uFF1A","").replaceAll(`
`,"")),c.indexOf("\u5267\u60C5")>-1&&(e.vod_content=c.replaceAll("\u5267\u60C5\uFF1A","").replaceAll(`
`,""))}let r={},i=t.html(),s=t('[class="play-list"]'),a=1;for(let o of s){let c=`\u64AD\u653E\u8FDE\u63A5-${a}`,f=[];for(let m of t(o).find("a")){let d=m.attribs.title,y=m.attribs.href;f.push(d+"$"+y)}r[c]=f.join("#"),a=a+1}a=1;let u=t('[class="con4"]');for(let o of u){let c=`\u78C1\u529B\u94FE\u63A5-${a}`,f=[],m=c,d=t(t(o).find("div")).find("a")[0].attribs.href;d!=="javascript:void(0);"&&(f.push(m+"$"+d),r[c]=f.join("#"),a=a+1)}return e.vod_play_url=M.values(r).join("$$$"),e.vod_play_from=M.keys(r).join("$$$"),e}async setHomeVod(){let t=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(t)}async setDetail(t){let e=await this.getHtml(this.siteUrl+t);this.vodDetail=await this.parseVodDetailFromDoc(e)}getExtend(t){if(t.class!==void 0&&t.class!=="\u5168\u90E8")return t.class}async setCategory(t,e,n,l){let r=this.getExtend(l)??t,i;r===t?i=this.siteUrl+r:parseInt(e)===1?i=this.siteUrl+r:i=this.siteUrl+r+`index${e}.html`;let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDoc(s)}async setPlay(flag,id,flags){if(flag.indexOf("\u78C1\u529B")>-1)this.playUrl=id;else{let idSplitList=id.split("-"),flag_id=parseInt(idSplitList[1]),episode=parseInt(idSplitList[2].split(".")[0]),$=await this.getHtml(this.siteUrl+id),playJsUrl=Oe(/<script type="text\/javascript" src="(.*?)">/,$.html()),playJsContent=await this.fetch(this.siteUrl+playJsUrl,null,this.getHeader()),playUrlListStr=Oe(/var VideoListJson=(.*?),urlinfo=/,playJsContent),playDic=eval(playUrlListStr);if(this.playUrl=playDic[flag_id][1][episode].split("$")[1],this.playUrl.indexOf("m3u8")===-1){let t=await this.fetch(this.playUrl,null,this.getHeader());this.playUrl=Oe(/url: '(.*?)'/,t)}}}GBKEncode(t){var e=33088;t+="";for(var n=[],l=63,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i<128)n.push(i);else{var s=ZY.indexOf(i);~s?(s+=e,n.push(255&s>>8,255&s)):n.push(l)}}return n}encode(t){let e="";for(let n of t){let l=this.GBKEncode(n);for(let r=0;r<l.length;r++)l[r]="%"+("0"+l[r].toString(16)).substr(-2).toUpperCase();e=e+l.join("")}return e}async setSearch(t,e){let n={searchword:this.encode(t)},l=await this.post(this.siteUrl+"/search.asp",n,this.getHeader(),"form",1),r=et(yb(l,"gb2312"));this.vodList=await this.parseVodShortListFromDocBySearch(r)}},qt=new QS;async function UAe(t){await qt.init(t)}async function MAe(t){return await qt.home(t)}async function $Ae(){return await qt.homeVod()}async function BAe(t,e,n,l){return await qt.category(t,e,n,l)}async function HAe(t){return await qt.detail(t)}async function VAe(t,e,n){return await qt.play(t,e,n)}async function qAe(t,e){return await qt.search(t,e)}function tVe(){return{init:UAe,home:MAe,homeVod:$Ae,category:BAe,detail:HAe,play:VAe,search:qAe}}var ZS=class extends De{constructor(){super()}getName(){return qt.getName()}getAppName(){return qt.getAppName()}getJSName(){return qt.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await qt.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await qt.initCookie(e.server.config.biliCookie),await qt.spiderInit(e),qt.cfgObj.code=0,qt.catOpenStatus=!0,qt.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await qt.setClasses(),this.classes=qt.classes}async setFilterObj(){await qt.setFilterObj(),this.filterObj=qt.filterObj}async setHomeVod(){await qt.setHomeVod(),this.homeVodList=qt.homeVodList}async setCategory(e,n,l,r){await qt.setCategory(e,n,l,r),this.vodList=qt.vodList}async setDetail(e){await qt.setDetail(e),this.vodDetail=qt.vodDetail}async setPlay(e,n,l){await qt.setPlay(e,n,l),this.playUrl=qt.playUrl,this.result=qt.result}async setSearch(e,n,l){await qt.setSearch(e,n,l),this.vodList=qt.vodList,this.result=qt.result}async setProxy(e,n){return await qt.proxy(e,n)}},Ma=new ZS;async function eQ(t,e){return await Ma.init(t,e)}async function tQ(t,e){return await Ma.home(t,e)}async function zAe(t,e){return await Ma.homeVod(t,e)}async function nQ(t,e){return await Ma.category(t,e)}async function lQ(t,e){return await Ma.detail(t,e)}async function rQ(t,e){return await Ma.play(t,e)}async function iQ(t,e){return await Ma.search(t,e)}async function GAe(t,e){return await Ma.proxy(t,e)}var sQ={meta:{key:qt.getJSName(),name:qt.getName(),type:qt.getType()},api:async t=>{t.post("/init",eQ),t.post("/home",tQ),t.post("/category",nQ),t.post("/detail",lQ),t.post("/play",rQ),t.post("/search",iQ),t.get("/proxy/:what/:ids/:end",GAe)},spider:{init:eQ,home:tQ,homeVod:zAe,category:nQ,detail:lQ,play:rQ,search:iQ}};var eT=class extends Fe{constructor(){super(),this.siteUrl="https://ali.gitcafe.ink"}getName(){return"\u{1F98A}\u2503\u963F\u91CC\u7EB8\u6761\u2503\u{1F98A}"}getAppName(){return"\u963F\u91CC\u7EB8\u6761"}getJSName(){return"gitcafe"}getType(){return 3}async getApiUrl(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(! Line truncated
"type": "{{tid}}",
"p": "{{pg}}",
"area": "{{ext.area|default(0)}}",
"year": "{{ext.year|default(0)}}",
"sort": "{{ext.sort|default(0)}}",
"class": "{{ext.class|default(0)}}"}`,{ext:r,tid:e,pg:n}));console.log(s);let a=await this.request(i,s);this.vodList=await this.parseVodShortListFromJson(a.data.data)}async setDetail(e){let n=await this.request(this.siteUrl+"/api.php/Video/getVideoInfo",{video_id:e});this.vodDetail=await this.parseVodDetailfromJson(n.data.video)}async setPlay(e,n,l){this.result.jx=0;try{if(n.indexOf("youku")>=0||n.indexOf("iqiyi")>=0||n.indexOf("v.qq.com")>=0||n.indexOf("pptv")>=0||n.indexOf("le.com")>=0||n.indexOf("1905.com")>=0||n.indexOf("mgtv")>=0){if(this.parse.length>0)for(let r=0;r<this.parse.length;r++)try{let i=this.parse[r],s=await req(i+n,{headers:{"user-agent":"okhttp/4.1.0"}});await this.jadeLog.debug(`\u89E3\u6790\u8FDE\u63A5\u7ED3\u679C\u4E3A:${JSON.stringify(s)}`);let a=hQ(n,JSON.parse(s.content).data);a.url&&(this.playUrl=a.url,this.danmuUrl=await this.danmuSpider.getVideoUrl(n,0),this.result.jx=1)}catch{}}else if(n.indexOf("jqq-")>=0){let r=await this.request(this.siteUrl+"/jqqheader.json",null,null,!0),i=n.split("-"),s=await req("https://api.juquanquanapp.com/app/drama/detail?dramaId="+i[1]+"&episodeSid="+i[2]+"&quality=LD",{headers:r}),a=JSON.parse(s.content);a.data.playInfo.url&&(this.playUrl=a.data.playInfo.url)}else if(n.startsWith("ftp"))this.playUrl=n;else{let r=await this.request(this.siteUrl+"/video.php",{url:n}),i=hQ(n,r.data);i.url&&(i.url.indexOf("filename=1.mp4")>-1?this.playUrl=i.url:this.playUrl=await js2Proxy(!0,this.siteType,this.siteKey,"lzm3u8/"+r3(i.url),{}))}}catch(r){await this.jadeLog.error(r)}}async setSearch(e,n){let l=await this.request(this.siteUrl+"/api.php/Search/getSearch",{key:e,type_id:0,p:1});this.vodList=await this.parseVodShortListFromJson(l.data.data)}async proxy(e,n){let l=e[0],r=y2(e[1]);if(l==="lzm3u8"){await this.jadeLog.debug(`\u4F7F\u7528\u4EE3\u7406\u64AD\u653E,\u64AD\u653E\u8FDE\u63A5\u4E3A:${r}`);let i=await req(r,{}),s=i.content,a=await js2Proxy(!1,this.siteType,this.siteKey,"lzm3u8/",{}),u=r.substr(0,r.lastIndexOf("/")+1);return await this.jadeLog.debug(s.length),s=s.replace(/#EXT-X-DISCONTINUITY\r*\n*#EXTINF:6.433333,[\s\S]*?#EXT-X-DISCONTINUITY/,""),await this.jadeLog.debug(s.length),s=s.replace(/(#EXT-X-KEY\S+URI=")(\S+)("\S+)/g,function(o,c,f,m){let d=(f.startsWith("http")?"":u)+f;return c+d+m}),s=s.replace(/(#EXT-X-STREAM-INF:.*\n)(.*)/g,function(o,c,f){let m=(f.startsWith("http")?"":u)+f;return c+a+y2(m)}),s=s.replace(/(#EXTINF:.*\n)(.*)/g,function(o,c,f){let m=(f.startsWith("http")?"":u)+f;return c+m}),JSON.stringify({code:i.code,content:s,headers:i.headers})}return JSON.stringify({code:500,content:""})}},$n=new lT;var rT=class extends De{constructor(){super()}getName(){return $n.getName()}getAppName(){return $n.getAppName()}getJSName(){return $n.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await $n.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await $n.initCookie(e.server.config.biliCookie),await $n.spiderInit(e),$n.cfgObj.code=0,$n.catOpenStatus=!0,$n.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await $n.setClasses(),this.classes=$n.classes}async setFilterObj(){await $n.setFilterObj(),this.filterObj=$n.filterObj}async setHomeVod(){await $n.setHomeVod(),this.homeVodList=$n.homeVodList}async setCategory(e,n,l,r){await $n.setCategory(e,n,l,r),this.vodList=$n.vodList}async setDetail(e){await $n.setDetail(e),this.vodDetail=$n.vodDetail}async setPlay(e,n,l){await $n.setPlay(e,n,l),this.playUrl=$n.playUrl,this.result=$n.result}async setSearch(e,n,l){await $n.setSearch(e,n,l),this.vodList=$n.vodList,this.result=$n.result}async setProxy(e,n){return await $n.proxy(e,n)}},Ba=new rT;async function mQ(t,e){return await Ba.init(t,e)}async function yQ(t,e){return await Ba.home(t,e)}async function YAe(t,e){return await Ba.homeVod(t,e)}async function gQ(t,e){return await Ba.category(t,e)}async function vQ(t,e){return await Ba.detail(t,e)}async function _Q(t,e){return await Ba.play(t,e)}async function EQ(t,e){return await Ba.search(t,e)}async function QAe(t,e){return await Ba.proxy(t,e)}var bQ={meta:{key:$n.getJSName(),name:$n.getName(),type:$n.getType()},api:async t=>{t.post("/init",mQ),t.post("/home",yQ),t.post("/category",gQ),t.post("/detail",vQ),t.post("/play",_Q),t.post("/search",EQ),t.get("/proxy/:what/:ids/:end",QAe)},spider:{init:mQ,home:yQ,homeVod:YAe,category:gQ,detail:vQ,play:_Q,search:EQ}};var El=class{constructor(){this.book_id="",this.book_name="",this.book_pic="",this.book_remarks=""}to_dict(){return JSON.stringify(this)}load_dic(e){let n=JSON.parse(e);for(let l in n)this[l]=n[l]}},_i=class extends El{constructor(){super(),this.book_year="",this.book_director="",this.book_content="",this.volumes="",this.urls=""}to_short(){let e=new El;return e.load_dic(this.to_dict()),e.to_dict()}load_dic(e){let n=JSON.parse Line truncated
`,""))}let r={},i=t.html(),s=t('[class="play-list"]'),a=1;for(let o of s){let c=`\u64AD\u653E\u8FDE\u63A5-${a}`,f=[];for(let m of t(o).find("a")){let d=m.attribs.title,y=m.attribs.href;f.push(d+"$"+y)}r[c]=f.join("#"),a=a+1}a=1;let u=t('[class="con4"]');for(let o of u){let c=`\u78C1\u529B\u94FE\u63A5-${a}`,f=[],m=c,d=t(t(o).find("div")).find("a")[0].attribs.href;d!=="javascript:void(0);"&&(f.push(m+"$"+d),r[c]=f.join("#"),a=a+1)}return e.vod_play_url=M.values(r).join("$$$"),e.vod_play_from=M.keys(r).join("$$$"),e}async setHomeVod(){let t=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(t)}async setDetail(t){let e=await this.getHtml(this.siteUrl+t);this.vodDetail=await this.parseVodDetailFromDoc(e)}getExtend(t){if(t.class!==void 0&&t.class!=="\u5168\u90E8")return t.class}async setCategory(t,e,n,l){let r=this.getExtend(l)??t,i;r===t?i=this.siteUrl+r:parseInt(e)===1?i=this.siteUrl+r:i=this.siteUrl+r+`index${e}.html`;let s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDoc(s)}async setPlay(flag,id,flags){if(flag.indexOf("\u78C1\u529B")>-1)this.playUrl=id;else{let idSplitList=id.split("-"),flag_id=parseInt(idSplitList[1]),episode=parseInt(idSplitList[2].split(".")[0]),$=await this.getHtml(this.siteUrl+id),playJsUrl=Oe(/<script type="text\/javascript" src="(.*?)">/,$.html()),playJsContent=await this.fetch(this.siteUrl+playJsUrl,null,this.getHeader()),playUrlListStr=Oe(/var VideoListJson=(.*?),urlinfo=/,playJsContent),playDic=eval(playUrlListStr);if(this.playUrl=playDic[flag_id][1][episode].split("$")[1],this.playUrl.indexOf("m3u8")===-1){let t=await this.fetch(this.playUrl,null,this.getHeader());this.playUrl=Oe(/url: '(.*?)'/,t)}}}GBKEncode(t){var e=33088;t+="";for(var n=[],l=63,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i<128)n.push(i);else{var s=$Y.indexOf(i);~s?(s+=e,n.push(255&s>>8,255&s)):n.push(l)}}return n}encode(t){let e="";for(let n of t){let l=this.GBKEncode(n);for(let r=0;r<l.length;r++)l[r]="%"+("0"+l[r].toString(16)).substr(-2).toUpperCase();e=e+l.join("")}return e}async setSearch(t,e){let n={searchword:this.encode(t)},l=await this.post(this.siteUrl+"/search.asp",n,this.getHeader(),"form",1),r=et(yb(l,"gb2312"));this.vodList=await this.parseVodShortListFromDocBySearch(r)}},qt=new XS;async function NAe(t){await qt.init(t)}async function CAe(t){return await qt.home(t)}async function IAe(){return await qt.homeVod()}async function RAe(t,e,n,l){return await qt.category(t,e,n,l)}async function kAe(t){return await qt.detail(t)}async function DAe(t,e,n){return await qt.play(t,e,n)}async function PAe(t,e){return await qt.search(t,e)}function UHe(){return{init:NAe,home:CAe,homeVod:IAe,category:RAe,detail:kAe,play:DAe,search:PAe}}var WS=class extends De{constructor(){super()}getName(){return qt.getName()}getAppName(){return qt.getAppName()}getJSName(){return qt.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await qt.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await qt.initCookie(e.server.config.biliCookie),await qt.spiderInit(e),qt.cfgObj.code=0,qt.catOpenStatus=!0,qt.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await qt.setClasses(),this.classes=qt.classes}async setFilterObj(){await qt.setFilterObj(),this.filterObj=qt.filterObj}async setHomeVod(){await qt.setHomeVod(),this.homeVodList=qt.homeVodList}async setCategory(e,n,l,r){await qt.setCategory(e,n,l,r),this.vodList=qt.vodList}async setDetail(e){await qt.setDetail(e),this.vodDetail=qt.vodDetail}async setPlay(e,n,l){await qt.setPlay(e,n,l),this.playUrl=qt.playUrl,this.result=qt.result}async setSearch(e,n,l){await qt.setSearch(e,n,l),this.vodList=qt.vodList,this.result=qt.result}async setProxy(e,n){return await qt.proxy(e,n)}},ja=new WS;async function BY(t,e){return await ja.init(t,e)}async function HY(t,e){return await ja.home(t,e)}async function LAe(t,e){return await ja.homeVod(t,e)}async function VY(t,e){return await ja.category(t,e)}async function qY(t,e){return await ja.detail(t,e)}async function zY(t,e){return await ja.play(t,e)}async function GY(t,e){return await ja.search(t,e)}async function FAe(t,e){return await ja.proxy(t,e)}var JY={meta:{key:qt.getJSName(),name:qt.getName(),type:qt.getType()},api:async t=>{t.post("/init",BY),t.post("/home",HY),t.post("/category",VY),t.post("/detail",qY),t.post("/play",zY),t.post("/search",GY),t.get("/proxy/:what/:ids/:end",FAe)},spider:{init:BY,home:HY,homeVod:LAe,category:VY,detail:qY,play:zY,search:GY}};var YS=class extends Fe{constructor(){super(),this.siteUrl="https://www.pansearch.me/"}getName(){return"\u{1F5C2}\uFE0F\u2503\u963F\u91CC\u76D8\u641C\u2503\u{1F5C2}\uFE0F"}getAppName(){return"\u963F\u91CC\u76D8\u641C"}getJSName(){return"pan_search"}getType(){return 3}getSearchHeader(){let e=this.getHeader();return e["x-nextjs-data Line truncated
`);l.vod_name=r[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let i=new Date(n.time);l.vod_remarks=i.toLocaleDateString().replace(/\//g,"-")+" "+i.toTimeString().substr(0,8),l.vod_pic=n.image;let s="";for(let u of r)u.indexOf("\u63CF\u8FF0")>-1&&(l.vod_content=u.replace("\u63CF\u8FF0\uFF1A","").replaceAll(/<\\?[^>]+>/g,"")),u.indexOf("\u6807\u7B7E\uFF1A")>-1&&(l.type_name=u.replace("\u{1F3F7} \u6807\u7B7E\uFF1A","")),u.indexOf("\u94FE\u63A5\uFF1A")>-1&&(s=u.replaceAll(/<\\?[^>]+>/g,"").replace("\u94FE\u63A5\uFF1A",""));let a=await i3([s]);return l.vod_play_from=M.keys(a).join("$$$"),l.vod_play_url=M.values(a).join("$$$"),l}async parseVodShortListFromDocBySearch(e,n){let l=[],r=JSON.parse(e("script[id=__NEXT_DATA__]")[0].children[0].data).buildId,i=this.siteUrl+"_next/data/"+r+"/search.json?keyword="+encodeURIComponent(n)+"&pan=aliyundrive",s=await this.fetch(i,null,this.getSearchHeader());if(M.isEmpty(s))await this.jadeLog.error("\u641C\u7D22\u9875\u9762\u89E3\u6790\u5931\u8D25",!0);else{let a=JSON.parse(s).pageProps.data.data;for(let u of a){let o=new Ne;o.vod_id=JSON.stringify(u);let c=u.content.split(`
`);o.vod_name=c[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let f=new Date(u.time);o.vod_remarks=f.toLocaleDateString().replace(/\//g,"-")+" "+f.toTimeString().substr(0,8),o.vod_pic=u.image,l.push(o)}return l}}async setDetail(e){this.vodDetail=await this.parseVodDetailfromJson(e)}async setSearch(e,n){let l=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodList=await this.parseVodShortListFromDocBySearch(r,e)}}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}},Un=new YS;var QS=class extends De{constructor(){super()}getName(){return Un.getName()}getAppName(){return Un.getAppName()}getJSName(){return Un.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Un.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Un.initCookie(e.server.config.biliCookie),await Un.spiderInit(e),Un.cfgObj.code=0,Un.catOpenStatus=!0,Un.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Un.setClasses(),this.classes=Un.classes}async setFilterObj(){await Un.setFilterObj(),this.filterObj=Un.filterObj}async setHomeVod(){await Un.setHomeVod(),this.homeVodList=Un.homeVodList}async setCategory(e,n,l,r){await Un.setCategory(e,n,l,r),this.vodList=Un.vodList}async setDetail(e){await Un.setDetail(e),this.vodDetail=Un.vodDetail}async setPlay(e,n,l){await Un.setPlay(e,n,l),this.playUrl=Un.playUrl,this.result=Un.result}async setSearch(e,n,l){await Un.setSearch(e,n,l),this.vodList=Un.vodList,this.result=Un.result}async setProxy(e,n){return await Un.proxy(e,n)}},Ua=new QS;async function KY(t,e){return await Ua.init(t,e)}async function XY(t,e){return await Ua.home(t,e)}async function jAe(t,e){return await Ua.homeVod(t,e)}async function WY(t,e){return await Ua.category(t,e)}async function YY(t,e){return await Ua.detail(t,e)}async function QY(t,e){return await Ua.play(t,e)}async function ZY(t,e){return await Ua.search(t,e)}async function UAe(t,e){return await Ua.proxy(t,e)}var eQ={meta:{key:Un.getJSName(),name:Un.getName(),type:Un.getType()},api:async t=>{t.post("/init",KY),t.post("/home",XY),t.post("/category",WY),t.post("/detail",YY),t.post("/play",QY),t.post("/search",ZY),t.get("/proxy/:what/:ids/:end",UAe)},spider:{init:KY,home:XY,homeVod:jAe,category:WY,detail:YY,play:QY,search:ZY}};var ZS=class extends Fe{constructor(){super(),this.siteUrl="https://www.mxdm4.com/"}getName(){return"\u{1F352}\u2503MX\u52A8\u6F2B\u2503\u{1F352}"}getAppName(){return"MX\u52A8\u6F2B"}getJSName(){return"mxanime"}getType(){return 3}async setClasses(){let t=await this.getHtml(),e=t(t('[class="nav-menu-items"]')[0]).find('[class="nav-menu-item "]');for(let n of e){let l=t(n).find("a")[0],r=l.attribs.title,i=l.attribs.href;r!=="\u840C\u56FE"&&this.classes.push(this.getTypeDic(r,Oe(/type\/(.*?).html/,i)))}}async getFilter(t){let e=t('[class="library-box scroll-box"]'),n=[];for(let l=0;l<e.length;l++){let r={key:(l+1).toString(),name:"",value:[]};if(l<e.length-1){r.name=t(t(e[l]).find("a")[0]).text(),r.value.push({n:"\u5168\u90E8",v:"0"});for(let i of t(e[l]).find("a").slice(1))r.value.push({n:t(i).text(),v:t(i).text()});n.push(r)}else r.name=t(t(e[l]).find("a")[0]).text(),r.value=[{n:"\u5168\u90E8",v:"0"},{n:t(t(e[l]).find("a")[1]).text(),v:"hits"},{n:t(t(e[l]).find("a")[2]).text(),v:"score"}],n.push(r)}return n}async setFilterObj(){for(let t of this.classes){let e=t.type_id;if(e!=="\u6700\u8FD1\u66F4\u65B0"){let n=await this.getHtml(this.siteUrl+`/type/${e}.html`);this.filterObj[e]=await this.getFilter(n)}}}parseVodShortFromElement(t,e){let n=new Ne,l=t(t(e).find('[class="module-item-titlebox"]')).find("a")[0];return n.vod_id=l.attribs.href,n.vod_name=l.attribs.title,n.vod_pic=t(t(e).find('[class="module-item-pic"]')).find("img")[0].attribs["data-src"],n.vod_remarks=t(t(e).find('[class="module-item-text"]')).text(),n}async parseVodShortListFromDoc(t){let e=[],n=t('[class="module-list module-lines-list mxone-box"]').find('[class="module-item"]');for(let l of n){let r=await this.parseVodShortFromElement(t,l);e.push(r)}return e}async parseVodShortListFromDocByCategory(t){let e=[],n=t('[class="module-item"]');for(let l of n){let r=await this.parseVodShortFromElement(t,l);e.push(r)}return e}async parseVodShortListFromDocBySearch(t){let e=[],n=t('[class="module-search-item"]');for(let l of n){let r=new Ne,i=t(l).find('[class="video-serial"]')[0];r.vod_id=i.attribs.href,r.vod_name=i.attribs.title,r.vod_pic=t(t(l).find('[class="module-item-pic"]')).find("img")[0].attribs["data-src"];let s=t(t(l).find('[class="video-info-item video-info-actor"]').slice(-1)[0]).find("a"),a=[];for(let u of s){let o=u.children[0].data;a.push(o)}r.vod_remarks=a.join("*"),e.push(r)}return e}async parseVodDetailFromDoc(t){let e=new He,n=t('[class="video-info"]');e.vod_pic=t('[cl Line truncated
`,"").replaceAll(" ","").replaceAll(" ","")+"end";if(o.indexOf("\u5E74\u4EFD")>-1&&(e.vod_year=Oe(/年份:(.*?)end/,o).replaceAll("/","")),o.indexOf("\u5907\u6CE8")>-1){let c=Oe(/备注:(.*?)end/,o);e.vod_remarks=Oe(/备注:\/(.*?)end/,o)}o.indexOf("\u6807\u7B7E")>-1&&(e.type_name=Oe(/标签:(.*?)end/,o)),o.indexOf("\u5267\u60C5")>-1&&(e.vod_content=Oe(/剧情:(.*?)end/,o))}let r=t('[class="module-tab-item tab-item"]'),i=t('[class="scroll-content"]'),s=[],a=[];for(let u=0;u<r.length;u++){let o=r[u];s.push(o.attribs["data-dropdown-value"]);let c=[];for(let f of t(i[u]).find("a")){let m=t(f).text(),d=f.attribs.href;c.push(m+"$"+d)}a.push(c.join("#"))}return e.vod_play_from=s.join("$$$"),e.vod_play_url=a.join("$$$"),e}async setHomeVod(){let t=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(t)}getExtendValue(t,e){return t[e]===void 0||t[e]==="0"?"":t[e]}async setCategory(t,e,n,l){await this.jadeLog.debug(`extend:${JSON.stringify(l)}`);let r=this.getExtendValue(l,"1"),i=this.getExtendValue(l,"2"),s=this.getExtendValue(l,"3"),a=this.getExtendValue(l,"4"),u=[t.toString(),"",a,r,"",s,"","",e.toString(),"","",i],o=this.siteUrl+"/show/"+u.join("-")+".html",c=await this.getHtml(o);this.vodList=await this.parseVodShortListFromDocByCategory(c)}async setDetail(t){let e=await this.getHtml(this.siteUrl+t);this.vodDetail=await this.parseVodDetailFromDoc(e)}async setSearch(t,e){let n=this.siteUrl+`/search/${t}-------------.html`,l=await this.getHtml(n);this.vodList=await this.parseVodShortListFromDocBySearch(l)}async setPlay(t,e,n){let l=await this.getHtml(this.siteUrl+e),i="https://danmu.yhdmjx.com/m3u8.php?url="+JSON.parse(Oe(/var player_aaaa=(.*?)<\/script>/,l.html())).url,s=await await this.fetch(i,null,this.getHeader()),a=s.match(/"url": getVideoInfo\("(.*?)"\),/)[1],u=s.match(/<script>var bt_token = "(.*?)"/)[1],o=await await this.fetch("https://danmu.yhdmjx.com/js/play.js",null,this.getHeader());o=o.match(/var _token_key=CryptoJS\['enc'\]\['Utf8'\]\[_0x17f1\('67','qETJ'\)\]\((.*?\))/)[1],o=this.decrypt_token_key(o),this.playUrl=await this.getVideoInfo(a,o,u)}decrypt_token_key(toekn_key){var _0xod4="jsjiami.com.v6",_0x175e=[_0xod4,"JMOsw6omwoDCmw==","wp3DkSx5Eg==","HB7CscOJfS3DuUjDv2bDjsOmwr3Cm8KcwoI=","fR/Dqg==","ShRGTcKa","w5Y8VBs=","esKYKQ==","FgIdwrPDnMKOw7k=","HhXCmA==","woNrRsKSwpnDvcKfw4g=","ezBn","w43DkcK5w4MaJiE=","w44Ob8KjwrjCrMKtUA==","HwtswqI=","YsKnwrRawro=","Sm/CpQXCjz4RH8ORSXw=","IsO6w64=","T8OeAQ==","VcK4Hg==","csOmfBJ4","d8OAcA5L","Tn4RL2s=","w7goGizCmw==","w6XDlcOGwpoY","TsK7wpNPwrg=","w7J1CzLCnsO+HA==","w4XDkcK0w5YXPg==","S8KoCcKS","PcKWHcK/Eg==","Z2oMJ3rCiw==","YsKMG8KMwo0=","QsOecgRIwp4=","dFzDkUUxw48Qw7nCmX3CicODCMKnw74IOg==","acO2KU1B","wrAnw6DDrg==","w5MsScKwwoA=","wohZG8KhBg==","b8OieSpZ","w4ZmEsORw6I=","w7jDhxvCh8KY","w7wQa8KFwr0=","IMObw4E3wqU=","JsOjw5Erwrg=","w6MwcsKOwqU=","b8KIwqF0wrs=","XhXDvT52","wrDCmirChSE=","w5t1wpvDuwE=","XA7CtsKeEA==","wonCvVthw78=","U8KPP8KMwq4=","wp7DhCxjGTU=","woPDoBdiEQ==","HjzCrE/Dvg==","SsOQOWHCgg==","w6NdwoXCkMOx","w6shYWQ/","eE/Cgg==","XW/Csj7CmDoA","w680OynCgcK5BA8=","w4PDoMOTwrog","w5R7wqbCpMOPwrMxUcOiM8OuMVLCisKKFsOXAcOWY8O6w5hM","WwjDoht0","PzXCiHHDiA==","QMOFaMKcfQ==","bz9bVsK+","w7Npwp/DsB9ONw==","EcOPBQ3Cig==","woHDnzk=","DsKQLxtd","R8OCJmk=","wp55O8On","bkXCmhTCqg==","w7vDgx3Cg8KU","w6nDo8KdAn8=","O8KwP8KEDw==","wqzCtCHCtCg=","w5nDgmYhw5c=","wp0OZsK+w4A=","wrFxe8KFwp/DvcKew4EbN8K7BMORMx3DuxtOVELChsOEIQ==","BMKWRDc=","IS5dw6nDhQ==","w6geeG8t","SsK/wohywpc=","LBlnw7jDkA==","wodiLsOg","Ig5Ow7/Dlw==","TMOOewRZwoQ=","LjnClV7DvA==","woZsO8KcPQ==","eWvClMKeKQ==","wq1KWsKswr8=","w4p+AGFa","C8O7F8K2CQcKFxxgwo5sfh3DpAFV","w6XDqMKoCw==","w6Z8wqnCpMOe","w6x/CHRhXhV/w7I=","wrvClndGw5Y=","VsKcwo5RwoA=","ZcK2BMKmLQ==","BCcPwofDvQ==","eGEsF20=","eMOcUglq","w4U9XEAMw4/Dm3rCuzpxTg/DvyDDvMONH8OTwpTCtsKbw6k=","VwXDkTxG","CzHCrl3DkQ==","w7PDkVovw4o=","dsONYDdj","w79pwr3Duh4=","w55kwoLCpMOR","w6gbc8KGwpw=","bCnCtMKCCg==","Php5w64=","w7x8wpfDtiQ=","w4TDk2AB","w7lowoHDtgQ=","DB/CsnjDuQ==","woTDl8K3wp4S","wr0Ewq7Dq8Oh","GmHCpGxN","w5/Dm2XDpw==","w5bDpsOCwqoA","YMKowphwwqc=","ahFuVsK9","w57DtEsbw7k=","w6LDo8Kq","UsKzE8KO","w6xlBFl9","WMOgIXbCiw==","DBhjw5fDhQ==","w6pUwoHCnsOs","ZF7CtsKiHg==","wos4w7wCwr0c","JlXCjlpyw5pMw6s=","TcO1N8K4wqE=","SMOzTcKYRw==","w4HDosOzwrUc","wqxdwqE2wrY=","A8OPGQjChw==","wpkxasOxBQ==","wpIZSA==","VsOnEEvChg==","bMOSZy93","c8OwZsKnRQ==","SsK/wpBHwoQ=","ccOsHVFf","w6ZKYMO8w6rDr8OrCHxdwqtdwrDDksOMccKZwobDpQPDgsOrAMKXF8OMPcOySsKuL8KLwq8vwr/DkjbDqsOCbRrCkcOTTFfDlsKkw7PChCM1wqTDisKawpHDt8KCQRY3w6DDgMKVw6M=","w7hYwq3ClsOa","Fic5wqLDiw==","KcKqHCVV","wqvDucKSwrs/","YcOfQcKPSQ==","wpjClmNRw7U=","wpHClSnCizg=","w4PDh8Kw","JsOYGwnCpw==","w5vDksK8w6sl","U8ORCHt+Rw==","woVxO8OSJQ==","b37Chw/Clw==","w6ViBXZlQg==","UwPCucKQCgU=","UMOeZgs=","MTLCtW7Dq2o=","wqAQwr/DqcOi","DiLDtsOOZsKEbsOrGm03EcKEwr/CplQ=","dzPDnRhP","wplgT8KBwow=","XUzCg8KF","K8KTCcKrCQ==","w6ZKJMOw","LxTCmn/DsA==","wooObcKBw6g=","w5djwofDoTQ=","VMOHeAts","Kw96 Line truncated
`,"").replace(" ","").replace("\u73A9\u5076",""),a={type_id:i,type_name:s};this.classes.push(a)}}}async getFilter(e){let n=e("[class='scroll-content']").slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/index.php/vodshow/${n}--------1---.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=et(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=[e.toString(),"","","","","","","",n.toString(),"","",""],s=this.get_extend_sort_dic(parseInt(e));for(let o of Object.keys(s))r[o]==="0"?i[s[o]]="":i[s[o]]=r[o];let a=this.siteUrl+"/index.php/vodshow/"+i.join("-")+".html",u=await this.fetch(a,null,this.getHeader());if(!M.isEmpty(u)){let o=et(u);this.vodList=await this.parseVodShortListFromDoc(o);let c=Oe(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,u);this.limit=72,c.length>0&&(this.total=parseInt(c)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){this.playUrl=await S3(e,n,l),this.result.setHeader(sr(e))}async setSearch(e,n){let l=this.siteUrl+"/index.php/vodsearch/-------------.html?wd="+e,r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},Mn=new tT;var nT=class extends De{constructor(){super()}getName(){return Mn.getName()}getAppName(){return Mn.getAppName()}getJSName(){return Mn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Mn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Mn.initCookie(e.server.config.biliCookie),await Mn.spiderInit(e),Mn.cfgObj.code=0,Mn.catOpenStatus=!0,Mn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Mn.setClasses(),this.classes=Mn.classes}async setFilterObj(){await Mn.setFilterObj(),this.filterObj=Mn.filterObj}async setHomeVod(){await Mn.setHomeVod(),this.homeVodList=Mn.homeVodList}async setCategory(e,n,l,r){await Mn.setCategory(e,n,l,r),this.vodList=Mn.vodList}async setDetail(e){await Mn.setDetail(e),this.vodDetail=Mn.vodDetail}async setPlay(e,n,l){await Mn.setPlay(e,n,l),this.playUrl=Mn.playUrl,this.result=Mn.result}async setSearch(e,n,l){await Mn.setSearch(e,n,l),this.vodList=Mn.vodList,this.result=Mn.result}async setProxy(e,n){return await Mn.proxy(e,n)}},$a=new nT;async function uQ(t,e){return await $a.init(t,e)}async function oQ(t,e){return await $a.home(t,e)}async function XAe(t,e){return await $a.homeVod(t,e)}async function cQ(t,e){return await $a.category(t,e)}async function pQ(t,e){return await $a.detail(t,e)}async function fQ(t,e){return await $a.play(t,e)}async function dQ(t,e){return await $a.search(t,e)}async function WAe(t,e){return await $a.proxy(t,e)}var hQ={meta:{key:Mn.getJSName(),name:Mn.getName(),type:Mn.getType()},api:async t=>{t.post("/init",uQ),t.post("/home",oQ),t.post("/category",cQ),t.post("/detail",pQ),t.post("/play",fQ),t.post("/search",dQ),t.get("/proxy/:what/:ids/:end",WAe)},spider:{init:uQ,home:oQ,homeVod:XAe,category:cQ,detail:pQ,play:fQ,search:dQ}};var If=class extends Fe{constructor(){super(),this.siteUrl="http://cj.ffzyapi.com",this.remove18=!1,this.type_id_18=34}async spiderInit(e){e!==null?this.detailProxy=await js2Proxy(e,"detail",this.getHeader()):this.detailProxy=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",this.getHeader())}async init(e){await super.init(e),await this.spiderInit(null)}async parseVodShortListFromJson(e,n=!1){let l=[],r;for(let i of e.list)n?(r=new Ne,r.vod_pic=this.detailProxy+r3(i.vod_id),r.vod_id=i.vod_id,r.vod_name=i.vod_name,r.vod_remarks=i.vod_remarks):r=this.parseVodDetail(i),this.remove18&&i.type_id!==this.type_id_18&&l.push(r),!this.remove18&&i.type_id===this.type_id_18&&l.push(r);return l}parseVodDetail(e){let n=new He;n.vod_id=e.vod_id,n.vod_name=e.vod_name,n.vod_pic=e.vod_pic,n.vod_remarks=e.vod_remarks,n.vod_area=e.vod_area,n.vod_year=e.vod_year,n.vod_actor=e.vod_actor,n.vod_director=e.vod_director;let l=et(e.vod_content);return n. Line truncated
`;for(;;){let s=await this.getHtml(this.siteUrl+n);if(i+=c4(s('[class="content"]').html().trim().replaceAll("<p>"," ").replaceAll("</p>",`
`)),n=s('[id="next_url"]')[0].attribs.href,n.indexOf("_")<0)break}this.playUrl={content:i}}async setSearch(e,n){let l={searchkey:e,searchtype:"all",Submit:""},r=await this.fetch(this.siteUrl+"/search/",l,this.getHeader()),i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let l=e[0],r=y2(e[1]);if(l==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${r}`);let i=await this.getHtml(this.siteUrl+r),s=await this.parseVodDetailFromDoc(i),a;return M.isEmpty(n)?a=await req(s.book_pic,{buffer:2,headers:{Referer:r,"User-Agent":ql}}):a=await req(s.book_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},Bn=new iT;var sT=class extends De{constructor(){super()}getName(){return Bn.getName()}getAppName(){return Bn.getAppName()}getJSName(){return Bn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Bn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Bn.initCookie(e.server.config.biliCookie),await Bn.spiderInit(e),Bn.cfgObj.code=0,Bn.catOpenStatus=!0,Bn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Bn.setClasses(),this.classes=Bn.classes}async setFilterObj(){await Bn.setFilterObj(),this.filterObj=Bn.filterObj}async setHomeVod(){await Bn.setHomeVod(),this.homeVodList=Bn.homeVodList}async setCategory(e,n,l,r){await Bn.setCategory(e,n,l,r),this.vodList=Bn.vodList}async setDetail(e){await Bn.setDetail(e),this.vodDetail=Bn.vodDetail}async setPlay(e,n,l){await Bn.setPlay(e,n,l),this.playUrl=Bn.playUrl,this.result=Bn.result}async setSearch(e,n,l){await Bn.setSearch(e,n,l),this.vodList=Bn.vodList,this.result=Bn.result}async setProxy(e,n){return await Bn.proxy(e,n)}},Ha=new sT;async function wQ(t,e){return await Ha.init(t,e)}async function SQ(t,e){return await Ha.home(t,e)}async function ZAe(t,e){return await Ha.homeVod(t,e)}async function TQ(t,e){return await Ha.category(t,e)}async function xQ(t,e){return await Ha.detail(t,e)}async function AQ(t,e){return await Ha.play(t,e)}async function OQ(t,e){return await Ha.search(t,e)}async function eOe(t,e){return await Ha.proxy(t,e)}var NQ={meta:{key:Bn.getJSName(),name:Bn.getName(),type:Bn.getType()},api:async t=>{t.post("/init",wQ),t.post("/home",SQ),t.post("/category",TQ),t.post("/detail",xQ),t.post("/play",AQ),t.post("/search",OQ),t.get("/proxy/:what/:ids/:end",eOe)},spider:{init:wQ,home:SQ,homeVod:ZAe,category:TQ,detail:xQ,play:AQ,search:OQ}};var aT=class extends Fe{constructor(){super(),this.siteUrl="http://m.dj0898.com"}getName(){return"\u{1F3B5}\u2503\u4E16\u7EAADJ\u97F3\u4E50\u7F51\u2503\u{1F3B5}"}getAppName(){return"\u4E16\u7EAADJ\u97F3\u4E50\u7F51"}getJSName(){return"dj0898_book_open"}getType(){return 10}async parseVodShortListFromDoc(e){let n=[],l=e("ul.djddv_djList > li");for(let r of l){let i=new El,s=e(r).find("a")[1];i.book_id=s.attribs.href,i.book_pic=e(r).find("img:first")[0].attribs.src;let a=e(r).find("strong:first")[0];i.book_name=a.children[0].data,i.book_remarks="\u{1F3B5}"+e(r).find("font")[5].children[0].data||"",n.push(i)}return n}async parseVodShortListFromDocByCategory(e){let n=e("ul.djddv_djList > li"),l=M.map(n,i=>{let s=e(i).find("a")[1],a=e(i).find("img:first")[0],u=e(i).find("strong:first")[0],o=e(i).find("font")[5];return{book_id:s.attribs.href,book_name:u.children[0].data,book_pic:a.attribs.src,book_remarks:"\u{1F3B5}"+o.children[0].data||""}}),r=e("ul.page_link > li > a:contains(\xA0)").length>0;return this.page=r?parseInt(this.page)+1:parseInt(this.page),l}async parseVodShortListFromDocBySearch(e){let n=e("ul.djddv_djList > li");return M.map(n,l=>{let r=e(l).find("a")[1],i=e(l).find("img:first")[0],s=e(l).find("strong:first")[0],a=e(l).find("font:first")[0];return{book_id:r.attribs.href,book_name:s.children[0].data,book_pic:i.attribs.src,book_remarks:"\u{1F3B5}"+a.children[0].data||""}})}async parseVodDetailFromDoc(e){let n={book_id:e,audio:1,type_name:"",book_year:"",book_area:"",book_remarks:"",book_actor:"",book_director:"",book_content:""},l=["\u70B9\u51FB\u64AD\u653E$"+n.book_id];return n.volumes="\u4E16\u7EAADJ\u97F3\u4E50\u7F51",n.urls=l.join("#"),n}async setClasses(){this.classes=[{type_id:1,type_name:"\u{1F3A7}\u4E32\u70E7\u821E\u66F2"},{type_id:2,type_name:"\u{1F3A7}\u5916\u6587\u821E\u66F2"},{type_id:3,type_name:"\u{1F3A7}\u65E9\u573A\u6696\u573A"},{type_id:4,type_name:"\u{1F3A7}\u4E2D\u6587\u821E\u66F2"},{type_id:5,type_name:"\u{1F3A7}\u5176\u4ED6\u821E\u66F2"},{type_id:6,type_name:"\u{1F3A7}\u56FD\u5916\u7535\u97F3"},{type_id:8,type_name:"\u{1F3A7}\u6162\u6B4C\u8FDE\u7248"},{type_id:9,type_name:"\u{1F3A7}\u9152\u5427\ Line truncated
`).trim(),n=i("a.Readpage_down")[0].attribs.href,n.indexOf("_")<0)break}this.playUrl={content:r+`
`}}catch{this.playUrl={content:""}}}async search(e,n){let l=await req(`${this.siteUrl}/user/hm.html?q=${encodeURIComponent(e)}`,{headers:{accept:"application/json","User-Agent":ea,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),i=(M.isArray(l.headers["set-cookie"])?l.headers["set-cookie"].join(";;;"):l.headers["set-cookie"]).split(";;;"),s={};for(let c of i){let f=c.trim(),m=f.indexOf("="),d=f.substr(0,m);s[d]=f.substr(m+1,f.indexOf(";")-m-1)}let a=await req(`${this.siteUrl}/user/search.html?q=${encodeURIComponent(e)}&so=undefined`,{headers:{accept:"application/json","User-Agent":ea,cookie:"hm="+s.hm,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),u=JSON.parse(a.content),o=[];for(let c of u)o.push({book_id:c.url_list,book_name:c.articlename,book_pic:c.url_img,book_remarks:c.author});return{tline:2,list:o}}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let l=e[0],r=y2(e[1]);if(l==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${r}`);let i=await this.getHtml(this.siteUrl+r),s=await this.parseVodDetailFromDoc(i),a;return M.isEmpty(n)?a=await req(s.book_pic,{buffer:2,headers:{Referer:r,"User-Agent":ql}}):a=await req(s.book_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},Vn=new oT;var cT=class extends De{constructor(){super()}getName(){return Vn.getName()}getAppName(){return Vn.getAppName()}getJSName(){return Vn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Vn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Vn.initCookie(e.server.config.biliCookie),await Vn.spiderInit(e),Vn.cfgObj.code=0,Vn.catOpenStatus=!0,Vn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Vn.setClasses(),this.classes=Vn.classes}async setFilterObj(){await Vn.setFilterObj(),this.filterObj=Vn.filterObj}async setHomeVod(){await Vn.setHomeVod(),this.homeVodList=Vn.homeVodList}async setCategory(e,n,l,r){await Vn.setCategory(e,n,l,r),this.vodList=Vn.vodList}async setDetail(e){await Vn.setDetail(e),this.vodDetail=Vn.vodDetail}async setPlay(e,n,l){await Vn.setPlay(e,n,l),this.playUrl=Vn.playUrl,this.result=Vn.result}async setSearch(e,n,l){await Vn.setSearch(e,n,l),this.vodList=Vn.vodList,this.result=Vn.result}async setProxy(e,n){return await Vn.proxy(e,n)}},qa=new cT;async function FQ(t,e){return await qa.init(t,e)}async function jQ(t,e){return await qa.home(t,e)}async function lOe(t,e){return await qa.homeVod(t,e)}async function UQ(t,e){return await qa.category(t,e)}async function MQ(t,e){return await qa.detail(t,e)}async function $Q(t,e){return await qa.play(t,e)}async function BQ(t,e){return await qa.search(t,e)}async function rOe(t,e){return await qa.proxy(t,e)}var HQ={meta:{key:Vn.getJSName(),name:Vn.getName(),type:Vn.getType()},api:async t=>{t.post("/init",FQ),t.post("/home",jQ),t.post("/category",UQ),t.post("/detail",MQ),t.post("/play",$Q),t.post("/search",BQ),t.get("/proxy/:what/:ids/:end",rOe)},spider:{init:FQ,home:jQ,homeVod:lOe,category:UQ,detail:MQ,play:$Q,search:BQ}};function zQ(t){this._parameters={},this._loadParameters(t||{})}zQ.prototype={_loadParameters:function(t){t instanceof Array?this._loadParametersFromArray(t):typeof t=="object"&&this._loadParametersFromObject(t)},_loadParametersFromArray:function(t){var e;for(e=0;e<t.length;e++)this._loadParametersFromObject(t[e])},_loadParametersFromObject:function(t){var e;for(e in t)if(t.hasOwnProperty(e)){var n=this._getStringFromParameter(t[e]);this._loadParameterValue(e,n)}},_loadParameterValue:function(t,e){var n;if(e instanceof Array){for(n=0;n<e.length;n++){var l=this._getStringFromParameter(e[n]);this._addParameter(t,l)}e.length==0&&this._addParameter(t,"")}else this._addParameter(t,e)},_getStringFromParameter:function(t){var e=t||"";try{(typeof t=="number"||typeof t=="boolean")&&(e=t.toString())}catch{}return e},_addParameter:function(t,e){this._parameters[t]||(this._parameters[t]=[]),this._parameters[t].push(e)},get:function(){return this._parameters}};function iOe(t){return t?decodeURIComponent(t):""}function sOe(t){let e=[],n=[];for(let a in t)e.push(K6(a));e.sort();for(let a=0;a<e.length;a++){let u=e[a];var l,r,i=iOe(u),s=t[i];for(s.sort(),l=0;l<s.length;l++)r=K6(s[l]),n.push(u+"="+r)}return n.join("&")}function VQ(t=10){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let l=0;l<t;l++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}function K6(t){return t?encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A"):""}function qQ(t,e,n,l="f3ac5b086f3eab260520d8e3049561e6"){e=e.split("?")[0],e=e.startsWith("http")?e:"https://api.audiomack.com/v Line truncated
`)),n=s('[id="next_url"]')[0].attribs.href,n.indexOf("_")<0)break}this.playUrl={content:i}}async setSearch(e,n){let l={searchkey:e,searchtype:"all",Submit:""},r=await this.fetch(this.siteUrl+"/search/",l,this.getHeader()),i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let l=e[0],r=y2(e[1]);if(l==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${r}`);let i=await this.getHtml(this.siteUrl+r),s=await this.parseVodDetailFromDoc(i),a;return M.isEmpty(n)?a=await req(s.book_pic,{buffer:2,headers:{Referer:r,"User-Agent":ql}}):a=await req(s.book_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},Bn=new iT;var sT=class extends De{constructor(){super()}getName(){return Bn.getName()}getAppName(){return Bn.getAppName()}getJSName(){return Bn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Bn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Bn.initCookie(e.server.config.biliCookie),await Bn.spiderInit(e),Bn.cfgObj.code=0,Bn.catOpenStatus=!0,Bn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Bn.setClasses(),this.classes=Bn.classes}async setFilterObj(){await Bn.setFilterObj(),this.filterObj=Bn.filterObj}async setHomeVod(){await Bn.setHomeVod(),this.homeVodList=Bn.homeVodList}async setCategory(e,n,l,r){await Bn.setCategory(e,n,l,r),this.vodList=Bn.vodList}async setDetail(e){await Bn.setDetail(e),this.vodDetail=Bn.vodDetail}async setPlay(e,n,l){await Bn.setPlay(e,n,l),this.playUrl=Bn.playUrl,this.result=Bn.result}async setSearch(e,n,l){await Bn.setSearch(e,n,l),this.vodList=Bn.vodList,this.result=Bn.result}async setProxy(e,n){return await Bn.proxy(e,n)}},Ha=new sT;async function wQ(t,e){return await Ha.init(t,e)}async function SQ(t,e){return await Ha.home(t,e)}async function ZAe(t,e){return await Ha.homeVod(t,e)}async function TQ(t,e){return await Ha.category(t,e)}async function xQ(t,e){return await Ha.detail(t,e)}async function AQ(t,e){return await Ha.play(t,e)}async function OQ(t,e){return await Ha.search(t,e)}async function eOe(t,e){return await Ha.proxy(t,e)}var NQ={meta:{key:Bn.getJSName(),name:Bn.getName(),type:Bn.getType()},api:async t=>{t.post("/init",wQ),t.post("/home",SQ),t.post("/category",TQ),t.post("/detail",xQ),t.post("/play",AQ),t.post("/search",OQ),t.get("/proxy/:what/:ids/:end",eOe)},spider:{init:wQ,home:SQ,homeVod:ZAe,category:TQ,detail:xQ,play:AQ,search:OQ}};function RQ(t){this._parameters={},this._loadParameters(t||{})}RQ.prototype={_loadParameters:function(t){t instanceof Array?this._loadParametersFromArray(t):typeof t=="object"&&this._loadParametersFromObject(t)},_loadParametersFromArray:function(t){var e;for(e=0;e<t.length;e++)this._loadParametersFromObject(t[e])},_loadParametersFromObject:function(t){var e;for(e in t)if(t.hasOwnProperty(e)){var n=this._getStringFromParameter(t[e]);this._loadParameterValue(e,n)}},_loadParameterValue:function(t,e){var n;if(e instanceof Array){for(n=0;n<e.length;n++){var l=this._getStringFromParameter(e[n]);this._addParameter(t,l)}e.length==0&&this._addParameter(t,"")}else this._addParameter(t,e)},_getStringFromParameter:function(t){var e=t||"";try{(typeof t=="number"||typeof t=="boolean")&&(e=t.toString())}catch{}return e},_addParameter:function(t,e){this._parameters[t]||(this._parameters[t]=[]),this._parameters[t].push(e)},get:function(){return this._parameters}};function tOe(t){return t?decodeURIComponent(t):""}function nOe(t){let e=[],n=[];for(let a in t)e.push(K6(a));e.sort();for(let a=0;a<e.length;a++){let u=e[a];var l,r,i=tOe(u),s=t[i];for(s.sort(),l=0;l<s.length;l++)r=K6(s[l]),n.push(u+"="+r)}return n.join("&")}function CQ(t=10){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let l=0;l<t;l++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}function K6(t){return t?encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A"):""}function IQ(t,e,n,l="f3ac5b086f3eab260520d8e3049561e6"){e=e.split("?")[0],e=e.startsWith("http")?e:"https://api.audiomack.com/v1"+e;let r=new RQ(n).get(),i=t.toUpperCase(),s=nOe(r),a=K6(i)+"&"+K6(e)+"&"+K6(s);return $e.HmacSHA1(a,l+"&").toString($e.enc.Base64)}var aT=class extends Fe{constructor(){super(),this.siteUrl="https://api.audiomack.com/v1"}getName(){return"\u{1F3B5}\u2503\u97F3\u58F0\u2503\u{1F3B5}"}getAppName(){return"\u97F3\u58F0"}getJSName(){return"audiomack"}getType(){return 10}async parseVodShortListFromJson(e){let n=[];for(let l of e.results.playlists){let r=new El;r.book_id=l.id,r.book_pic=l.image,r.book_name=l.title,r.book_remarks=l.description,n.pu Line truncated
`;for(;;){let s=await this.getHtml(this.siteUrl+n);if(i+=c4(s('[class="content"]').html().trim().replaceAll("<p>"," ").replaceAll("</p>",`
`)),n=s('[id="next_url"]')[0].attribs.href,n.indexOf("_")<0)break}this.playUrl={content:i}}async setSearch(e,n){let l={q:encodeURIComponent(e)},r=await this.fetch(this.siteUrl+"/novel/search",l,this.getHeader()),i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i);let s=0}async setPlay(e,n,l){let r=n.split("+");n=r[1];let i=r[0]+`
@@ -456,7 +453,10 @@ function print() { __p += __j.call(arguments, '') }
`,a=(await this.getHtml(this.siteUrl+"/novel/pagea/"+n))('[class="content"]').text().trim().replaceAll("\u7AE0\u8282\u62A5\u9519 \u5206\u4EAB\u7ED9\u670B\u53CB\uFF1A","").replaceAll(" ","").split(`
`),u=[];for(let o of a)M.isEmpty(o.replaceAll(" ",""))||u.push(o.replaceAll(" "," "));i=i+" "+u.join(`
`),this.playUrl={content:i}}},Gn=new gT;var vT=class extends De{constructor(){super()}getName(){return Gn.getName()}getAppName(){return Gn.getAppName()}getJSName(){return Gn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Gn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Gn.initCookie(e.server.config.biliCookie),await Gn.spiderInit(e),Gn.cfgObj.code=0,Gn.catOpenStatus=!0,Gn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Gn.setClasses(),this.classes=Gn.classes}async setFilterObj(){await Gn.setFilterObj(),this.filterObj=Gn.filterObj}async setHomeVod(){await Gn.setHomeVod(),this.homeVodList=Gn.homeVodList}async setCategory(e,n,l,r){await Gn.setCategory(e,n,l,r),this.vodList=Gn.vodList}async setDetail(e){await Gn.setDetail(e),this.vodDetail=Gn.vodDetail}async setPlay(e,n,l){await Gn.setPlay(e,n,l),this.playUrl=Gn.playUrl,this.result=Gn.result}async setSearch(e,n,l){await Gn.setSearch(e,n,l),this.vodList=Gn.vodList,this.result=Gn.result}async setProxy(e,n){return await Gn.proxy(e,n)}},Ka=new vT;async function dZ(t,e){return await Ka.init(t,e)}async function hZ(t,e){return await Ka.home(t,e)}async function bOe(t,e){return await Ka.homeVod(t,e)}async function mZ(t,e){return await Ka.category(t,e)}async function yZ(t,e){return await Ka.detail(t,e)}async function gZ(t,e){return await Ka.play(t,e)}async function vZ(t,e){return await Ka.search(t,e)}async function wOe(t,e){return await Ka.proxy(t,e)}var _Z={meta:{key:Gn.getJSName(),name:Gn.getName(),type:Gn.getType()},api:async t=>{t.post("/init",dZ),t.post("/home",hZ),t.post("/category",mZ),t.post("/detail",yZ),t.post("/play",gZ),t.post("/search",vZ),t.get("/proxy/:what/:ids/:end",wOe)},spider:{init:dZ,home:hZ,homeVod:bOe,category:mZ,detail:yZ,play:gZ,search:vZ}};var ET=new ca("\u7F51\u76D8","DEBUG"),Xa=async function(t,e={}){e.method=="POST"&&e.data&&(e.body=JSON.stringify(e.data),e.headers=Object.assign({"content-type":"application/json"},e.headers));let n=await req(t,e);return n.json=()=>{try{return JSON.parse(n.content)}catch{return{}}},n.text=()=>n.content,n};["get","post"].forEach(t=>{Xa[t]=function(e,n={}){return Xa(e,Object.assign(n,{method:t.toUpperCase()}))}});var W6={},X6={};async function _T(t){let e=t.indexOf("/",1),n=t.substring(1,e),l=t.substring(e);return{drives:await SOe(n),path:l}}async function SOe(t){let{settings:e,api:n,server:l}=W6[t];if(e.v3==null){e.v3=!1;let r=(await Xa.get(l+"/api/public/settings")).content,i=(await Xa.get(l+"/api/public/settings")).json().data;Array.isArray(i)?(e.title=i.find(s=>s.key=="title")?.value,e.v3=!1,e.version=i.find(s=>s.key=="version")?.value,e.enableSearch=i.find(s=>s.key=="enable search")?.value=="true"):(e.title=i.title,e.v3=!0,e.version=i.version,e.enableSearch=!1),n.path=e.v3?"/api/fs/list":"/api/public/path",n.file=e.v3?"/api/fs/get":"/api/public/path",n.search=(e.v3,"/api/public/search"),n.other=e.v3?"/api/fs/other":null}return W6[t]}async function EZ(t,e){return await ET.info(`\u7F51\u76D8\u521D\u59CB\u5316:${JSON.stringify(t.server.config.alist)}`),t.server.config.alist.forEach(n=>W6[n.name]={name:n.name,server:n.server.endsWith("/")?n.server.substring(0,n.server.length-1):n.server,startPage:n.startPage||"/",showAll:n.showAll??!0,params:n.params||{},_path_param:n.params?Object.keys(n.params).sort(function(l,r){return r.length-l.length}):[],settings:{},api:{},getParams(l){let r=this._path_param.find(i=>l.startsWith(i));return Object.assign({},this.params[r],{path:l})},async getPath(l){let r=(await Xa.post(this.server+this.api.path,{data:this.getParams(l)})).json();return this.settings.v3?r.data.content:r.data.files},async getFile(l){let r=(await Xa.post(this.server+this.api.file,{data:this.getParams(l)})).json(),i=this.settings.v3?r.data:r.data.files[0];return this.settings.v3||(i.raw_url=i.url),i},async getOther(l,r){let i=this.getParams(r);return i.method=l,(await Xa.post(this.server+this.api.other,{data:i})).json()},isFolder(l){return l.type==1},isVideo(l){return this.settings.v3?l.type==2||l.type===3:l.type==3},isSubtitle(l){return l.type==1?!1:[".srt",".ass",".scc",".stl",".ttml"].some(i=>l.name.endsWith(i))},getType(l){let r=this.isVideo(l);return this.isFolder(l)?0:r?10:1},getPic(l){return(this.settings.v3?l.thumb:l.thumbnail)||(this.isFolder(l)?"http://img1.3png.com/281e284a670865a71d91515866552b5f172b.png":"")},getSize(l){let r=l.size||0;if(r<=0)return"";let i="";return r>1024*1024*1024*1024?(r/=1024*1024*1024*1024,i="TB"):r>1024*1024*1024?(r/=1024*1024*1024,i="GB"):r>1024*1024?(r/=1024*1024,i="MB"):(r/=1024,i="KB"),r.toFixed(2)+i},getRemark(l){return""}}),{}}async function bZ(t,e){await ET.info(`\u7F51\u76D8\u5730\u5740\u4E3A:${t.body.path},\u9875\u6570\u4E3A:${t.body.page}`);let n=t.body.path,l=t.body.page||1;for(let f in X6)delete X6[f];if(l=l| Line truncated
`),this.playUrl={content:i}}},Vn=new oT;var cT=class extends De{constructor(){super()}getName(){return Vn.getName()}getAppName(){return Vn.getAppName()}getJSName(){return Vn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await Vn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Vn.initCookie(e.server.config.biliCookie),await Vn.spiderInit(e),Vn.cfgObj.code=0,Vn.catOpenStatus=!0,Vn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Vn.setClasses(),this.classes=Vn.classes}async setFilterObj(){await Vn.setFilterObj(),this.filterObj=Vn.filterObj}async setHomeVod(){await Vn.setHomeVod(),this.homeVodList=Vn.homeVodList}async setCategory(e,n,l,r){await Vn.setCategory(e,n,l,r),this.vodList=Vn.vodList}async setDetail(e){await Vn.setDetail(e),this.vodDetail=Vn.vodDetail}async setPlay(e,n,l){await Vn.setPlay(e,n,l),this.playUrl=Vn.playUrl,this.result=Vn.result}async setSearch(e,n,l){await Vn.setSearch(e,n,l),this.vodList=Vn.vodList,this.result=Vn.result}async setProxy(e,n){return await Vn.proxy(e,n)}},qa=new cT;async function MQ(t,e){return await qa.init(t,e)}async function $Q(t,e){return await qa.home(t,e)}async function iOe(t,e){return await qa.homeVod(t,e)}async function BQ(t,e){return await qa.category(t,e)}async function HQ(t,e){return await qa.detail(t,e)}async function VQ(t,e){return await qa.play(t,e)}async function qQ(t,e){return await qa.search(t,e)}async function sOe(t,e){return await qa.proxy(t,e)}var zQ={meta:{key:Vn.getJSName(),name:Vn.getName(),type:Vn.getType()},api:async t=>{t.post("/init",MQ),t.post("/home",$Q),t.post("/category",BQ),t.post("/detail",HQ),t.post("/play",VQ),t.post("/search",qQ),t.get("/proxy/:what/:ids/:end",sOe)},spider:{init:MQ,home:$Q,homeVod:iOe,category:BQ,detail:HQ,play:VQ,search:qQ}};var pT=class extends Fe{constructor(){super(),this.siteUrl="https://m.13bqg.com"}getAppName(){return"\u7B14\u8DA3\u9601"}getJSName(){return"bqg_open"}getType(){return 10}getName(){return"\u{1F4DA}\uFE0E\u2503\u7B14\u8DA3\u9601\u2503\u{1F4DA}\uFE0E"}async spiderInit(e=null){e!==null?this.jsBase=await js2Proxy(e,"img",this.getHeader()):this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"img/",this.getHeader())}async init(e){await super.init(e),await this.spiderInit(null)}async parseVodShortListFromDoc(e){let n=[],l=e('[class="block"]');for(let r of e(l[0]).find("li")){let i=new El,s=e(r).find("span");i.book_remarks=e(s[0]).text(),i.book_name=e(s[1]).text(),i.book_id=e(s[1]).find("a")[0].attribs.href,i.book_pic=this.jsBase+r3(i.book_id),n.push(i)}return n}async parseVodShortListFromDocByCategory(e){let n=[];for(let l of e("div.item")){let r=new El;r.book_id=e(l).find("a:first")[0].attribs.href;let i=e(l).find("img:first")[0];r.book_name=i.attribs.alt,r.book_pic=i.attribs.src,r.book_remarks=e(l).find("span:first")[0].children[0].data.trim(),n.push(r)}return n}async parseVodDetailFromDoc(e,n){let l=new _i;l.book_name=e("[property$=book_name]")[0].attribs.content,l.book_year=e("[property$=update_time]")[0].attribs.content,l.book_director=e("[property$=author]")[0].attribs.content,l.book_content=e("[property$=description]")[0].attribs.content,l.book_pic=e(e('[class="cover"]')).find("img")[0].attribs.src,l.book_id=n;let r={};if(n!==void 0){e=await this.getHtml(this.siteUrl+n+"list.html");let i=[],s=e('dl>dd>a[href*="/html/"]');for(let a of s){let u=e(a).text().trim(),o=a.attribs.href;i.push(u+"$"+o)}r.\u6700\u65B0\u7AE0\u8282=i.slice(-10).join("#"),r.\u76EE\u5F55=i.join("#")}return l.volumes=M.keys(r).join("$$$"),l.urls=M.values(r).join("$$$"),l}async setClasses(){let e=await this.getHtml();for(let n of e('div.nav > ul > li > a[href!="/"]'))this.classes.push({type_id:n.attribs.href.replace(/\//g,""),type_name:n.children[0].data.trim(),tline:2})}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);this.vodDetail=await this.parseVodDetailFromDoc(n,e)}async setCategory(e,n,l,r){let i=await this.getHtml(this.siteUrl+`/${e}/${n}.html`);this.vodList=await this.parseVodShortListFromDocByCategory(i)}async setPlay(e,n,l){try{let r="";for(;;){let i=await this.getHtml(this.siteUrl+n);if(r+=i("#chaptercontent").html().replace(/<br>|请收藏.*?<\/p>/g,`
`).trim(),n=i("a.Readpage_down")[0].attribs.href,n.indexOf("_")<0)break}this.playUrl={content:r+`
`}}catch{this.playUrl={content:""}}}async search(e,n){let l=await req(`${this.siteUrl}/user/hm.html?q=${encodeURIComponent(e)}`,{headers:{accept:"application/json","User-Agent":ea,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),i=(M.isArray(l.headers["set-cookie"])?l.headers["set-cookie"].join(";;;"):l.headers["set-cookie"]).split(";;;"),s={};for(let c of i){let f=c.trim(),m=f.indexOf("="),d=f.substr(0,m);s[d]=f.substr(m+1,f.indexOf(";")-m-1)}let a=await req(`${this.siteUrl}/user/search.html?q=${encodeURIComponent(e)}&so=undefined`,{headers:{accept:"application/json","User-Agent":ea,cookie:"hm="+s.hm,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),u=JSON.parse(a.content),o=[];for(let c of u)o.push({book_id:c.url_list,book_name:c.articlename,book_pic:c.url_img,book_remarks:c.author});return{tline:2,list:o}}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let l=e[0],r=y2(e[1]);if(l==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${r}`);let i=await this.getHtml(this.siteUrl+r),s=await this.parseVodDetailFromDoc(i),a;return M.isEmpty(n)?a=await req(s.book_pic,{buffer:2,headers:{Referer:r,"User-Agent":ql}}):a=await req(s.book_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},qn=new pT;var fT=class extends De{constructor(){super()}getName(){return qn.getName()}getAppName(){return qn.getAppName()}getJSName(){return qn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await qn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await qn.initCookie(e.server.config.biliCookie),await qn.spiderInit(e),qn.cfgObj.code=0,qn.catOpenStatus=!0,qn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await qn.setClasses(),this.classes=qn.classes}async setFilterObj(){await qn.setFilterObj(),this.filterObj=qn.filterObj}async setHomeVod(){await qn.setHomeVod(),this.homeVodList=qn.homeVodList}async setCategory(e,n,l,r){await qn.setCategory(e,n,l,r),this.vodList=qn.vodList}async setDetail(e){await qn.setDetail(e),this.vodDetail=qn.vodDetail}async setPlay(e,n,l){await qn.setPlay(e,n,l),this.playUrl=qn.playUrl,this.result=qn.result}async setSearch(e,n,l){await qn.setSearch(e,n,l),this.vodList=qn.vodList,this.result=qn.result}async setProxy(e,n){return await qn.proxy(e,n)}},za=new fT;async function GQ(t,e){return await za.init(t,e)}async function JQ(t,e){return await za.home(t,e)}async function aOe(t,e){return await za.homeVod(t,e)}async function KQ(t,e){return await za.category(t,e)}async function XQ(t,e){return await za.detail(t,e)}async function WQ(t,e){return await za.play(t,e)}async function YQ(t,e){return await za.search(t,e)}async function uOe(t,e){return await za.proxy(t,e)}var QQ={meta:{key:qn.getJSName(),name:qn.getName(),type:qn.getType()},api:async t=>{t.post("/init",GQ),t.post("/home",JQ),t.post("/category",KQ),t.post("/detail",XQ),t.post("/play",WQ),t.post("/search",YQ),t.get("/proxy/:what/:ids/:end",uOe)},spider:{init:GQ,home:JQ,homeVod:aOe,category:KQ,detail:XQ,play:WQ,search:YQ}};function oOe(t){return t.trim().replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}var dT=class extends Fe{constructor(){super(),this.siteUrl="https://api.bookan.com.cn"}getName(){return"\u{1F3B5}\u2503\u770B\u4E66\u2503\u{1F3B5}"}getAppName(){return"\u770B\u4E66"}getJSName(){return"bookan"}getType(){return 10}async parseVodShortListFromJson(e){let n=[];for(let l of e.list)n.push({book_id:l.id,book_name:l.name,book_pic:l.cover,book_remarks:l.extra.author});return n}async setClasses(){this.classes=[{type_id:"1305",type_name:"\u5C11\u5E74\u8BFB\u7269"},{type_id:"1304",type_name:"\u513F\u7AE5\u6587\u5B66"},{type_id:"1320",type_name:"\u56FD\u5B66\u7ECF\u5178"},{type_id:"1306",type_name:"\u6587\u827A\u5C11\u5E74"},{type_id:"1309",type_name:"\u80B2\u513F\u5FC3\u7ECF"},{type_id:"1310",type_name:"\u5FC3\u7406\u54F2\u5B66"},{type_id:"1307",type_name:"\u9752\u6625\u52B1\u5FD7"},{type_id:"1312",type_name:"\u5386\u53F2\u5C0F\u8BF4"},{type_id:"1303",type_name:"\u6545\u4E8B\u4F1A"},{type_id:"1317",type_name:"\u97F3\u4E50\u620F\u5267"},{type_id:"1319",type_name:"\u76F8\u58F0\u8BC4\u4E66"}]}async setCategory(e,n,l,r){let i=await this.fetch(`${this.siteUrl}/voice/book/list?instance_id=25304&page=${n}&category_id=${e}&num=24`,null,this.getHeader()),s=JSON.parse(i).data;this.vodList=await this.parseVodShortListFromJson(s)}async parseVodDetailfromJson(e){let n={audio:1,type_name:"",book_year:"",book_area:"",book_remarks:"",book_actor:"",book_director:"",book_content:""},l=M.map(e.list,function(r){return oOe(r.title)+"$"+r.file}).join("#");return n.volumes="\u4E66\u5377",n.urls=l,n}async setDetail(e){let Line truncated
/*! Bundled license information:
uri-js/dist/es5/uri.all.js:
+1 -1
View File
@@ -1 +1 @@
da71a187983dfd583dbbeec77a0014c3
487dc24f27bca7a8b8df7a83b28bc85d
+42 -42
View File
@@ -1,39 +1,6 @@
{
"video": {
"sites": [
{
"key": "jable",
"name": "🔞┃Jable┃🔞",
"api": "./js/jable.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "sehuatang",
"name": "🔞┃色花堂BT┃🔞",
"api": "./js/sehuatang.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "hanxiucao",
"name": "🔞┃含羞草┃🔞",
"api": "./js/hanxiucao.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "ciliduo",
"name": "🔞┃磁力多BT┃🔞",
@@ -57,9 +24,20 @@
"type": 3
},
{
"key": "jiujiuliu",
"name": "🔞┃九九六影视┃🔞",
"api": "./js/jiujiuliu.js",
"key": "jable",
"name": "🔞┃Jable┃🔞",
"api": "./js/jable.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "sehuatang",
"name": "🔞┃色花堂BT┃🔞",
"api": "./js/sehuatang.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
@@ -79,9 +57,20 @@
"type": 3
},
{
"key": "hscangku",
"name": "🔞┃黄色仓库┃🔞",
"api": "./js/hscangku.js",
"key": "hanxiucao",
"name": "🔞┃含羞草┃🔞",
"api": "./js/hanxiucao.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "lovemovie18",
"name": "🔞┃爱情电影网18+┃🔞",
"api": "./js/lovemovie18.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
@@ -101,9 +90,20 @@
"type": 3
},
{
"key": "lovemovie18",
"name": "🔞┃爱情电影网18+┃🔞",
"api": "./js/lovemovie18.js",
"key": "hscangku",
"name": "🔞┃黄色仓库┃🔞",
"api": "./js/hscangku.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "jiujiuliu",
"name": "🔞┃九九六影视┃🔞",
"api": "./js/jiujiuliu.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
+42 -42
View File
@@ -1,38 +1,5 @@
{
"sites": [
{
"key": "jable",
"name": "🔞┃Jable┃🔞",
"api": "./js/jable.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "sehuatang",
"name": "🔞┃色花堂BT┃🔞",
"api": "./js/sehuatang.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "hanxiucao",
"name": "🔞┃含羞草┃🔞",
"api": "./js/hanxiucao.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "ciliduo",
"name": "🔞┃磁力多BT┃🔞",
@@ -56,9 +23,20 @@
"type": 3
},
{
"key": "jiujiuliu",
"name": "🔞┃九九六影视┃🔞",
"api": "./js/jiujiuliu.js",
"key": "jable",
"name": "🔞┃Jable┃🔞",
"api": "./js/jable.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "sehuatang",
"name": "🔞┃色花堂BT┃🔞",
"api": "./js/sehuatang.js",
"timeout": 30,
"ext": {
"box": "TVBox"
@@ -78,9 +56,20 @@
"type": 3
},
{
"key": "hscangku",
"name": "🔞┃黄色仓库┃🔞",
"api": "./js/hscangku.js",
"key": "hanxiucao",
"name": "🔞┃含羞草┃🔞",
"api": "./js/hanxiucao.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "lovemovie18",
"name": "🔞┃爱情电影网18+┃🔞",
"api": "./js/lovemovie18.js",
"timeout": 30,
"ext": {
"box": "TVBox"
@@ -100,9 +89,20 @@
"type": 3
},
{
"key": "lovemovie18",
"name": "🔞┃爱情电影网18+┃🔞",
"api": "./js/lovemovie18.js",
"key": "hscangku",
"name": "🔞┃黄色仓库┃🔞",
"api": "./js/hscangku.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "jiujiuliu",
"name": "🔞┃九九六影视┃🔞",
"api": "./js/jiujiuliu.js",
"timeout": 30,
"ext": {
"box": "TVBox"
+15 -10
View File
@@ -1,4 +1,4 @@
import {__jsEvalReturn} from './wogg.js';
import {__jsEvalReturn} from '../js/jianpian.js';
import * as Utils from "../lib/utils.js";
@@ -51,7 +51,7 @@ async function testMusicPlay(vodDetail) {
}
async function test() {
let siteKey = 'wogg';
let siteKey = 'jianpian';
let siteType = 3;
await spider.init({
skey: siteKey, stype: siteType, ext: {
@@ -68,18 +68,23 @@ async function test() {
let classes = JSON.parse(await spider.home(true));
console.debug(JSON.stringify(classes))
// 测试详情
let detail1 = JSON.parse(await spider.detail("/index.php/voddetail/84022.html"))
await testPlay(detail1)
//测试首页列表
let homeVod = JSON.parse(await spider.homeVod())
console.debug(JSON.stringify(homeVod));
// 测试详情
let detail1 = JSON.parse(await spider.detail("562381"))
await testPlay(detail1)
/***
*
* "HD粤语中英双字$ftp://a.gbl.114s.com:20320/9607/潜行-2023_HD粤语中英双字.mp4#HD国语中英双字$ftp://a.gbl.114s.com:20320/8224/潜行-2023_HD国语中英双字.mp4#BD国粤双语中字$ftp://a.gbl.114s.com:20320/1413/潜行-2023_BD国粤双语中字.mp4"
*/
@@ -125,4 +130,4 @@ async function test() {
}
}
export {test};
export {test};
+143
View File
@@ -0,0 +1,143 @@
/*
* @Author: jadehh
* @Date: 2024-06-21 15:47:27
* @LastEditTime: 2024-06-21 16:20:30
* @LastEditors: jadehh
* @Description:
* @FilePath: \TVSpider\js\xgcartoon.js
* @
*/
import * as Utils from "../lib/utils.js";
import {_, load} from "../lib/cat.js";
import {VodDetail, VodShort} from "../lib/vod.js";
import {Spider} from "./spider.js";
class XGCartoonSpider extends Spider {
constructor() {
super();
this.siteUrl = "https://cn.xgcartoon.com/"
this.nextObj = {}
}
getName() {
return `🍉┃西瓜卡通┃🍉`
}
getAppName() {
return "西瓜卡通"
}
getJSName() {
return "xgcartoon"
}
getType() {
return 3
}
async setClasses() {
let $ = await this.getHtml(this.siteUrl)
let navElements = $('[class="index-tab"]').find("a")
for (const navElement of navElements){
let type_name = $(navElement).text()
let type_id = navElement.attribs.href
this.classes.push(this.getTypeDic(type_name,type_id))
}
let x = 0
}
async parseVodShortListFromJson(obj) {
let vod_list = []
for (const data of obj) {
let vodShort = new VodShort()
vodShort.vod_id = data["vodId"]
vodShort.vod_name = data["vodName"]
vodShort.vod_remarks = data["watchingCountDesc"]
vodShort.vod_pic = data["coverImg"]
vod_list.push(vodShort)
}
return vod_list
}
async parseVodDetailfromJson(obj) {
let vodDetail = new VodDetail()
return vodDetail
}
async setHomeVod() {
}
async setCategory(tid, pg, filter, extend) {
}
async setDetail(id) {
}
async setPlay(flag, id, flags) {
}
async setSearch(wd, quick) {
}
}
let spider = new XGCartoonSpider()
async function init(cfg) {
await spider.init(cfg)
}
async function home(filter) {
return await spider.home(filter)
}
async function homeVod() {
return await spider.homeVod()
}
async function category(tid, pg, filter, extend) {
return await spider.category(tid, pg, filter, extend)
}
async function detail(id) {
return await spider.detail(id)
}
async function play(flag, id, flags) {
return await spider.play(flag, id, flags)
}
async function search(wd, quick) {
return await spider.search(wd, quick)
}
async function proxy(segments, headers) {
return await spider.proxy(segments, headers)
}
export function __jsEvalReturn() {
return {
init: init,
home: home,
homeVod: homeVod,
category: category,
detail: detail,
play: play,
search: search,
proxy: proxy
};
}
export {spider}
@@ -8,18 +8,6 @@
*/
function parseXML(json) {
let list = [];
/**
* <d p="{time},{type},{size},{color},{timestamp},{pool},{uid_crc32},{row_id}">
*
* {Text}
* time为弹幕在视频里的时间 -->
* type为弹幕类型 -->
* size为字体大小 -->
* color为十进制的RGB颜色(16进制转10进制) -->
* timestamp为弹幕发送时间戳(unix时间戳) -->
* pool为弹幕池 -->
* uid_crc32为发送者uid的crc32 -->
*/
Array.from(json.danmuku).forEach(x => {
let start = Number(x[0]);
let content = x[4];
+281 -281
View File
@@ -1,28 +1,6 @@
{
"video": {
"sites": [
{
"key": "newvision",
"name": "🐼┃新视觉影院┃🐼",
"api": "./js/newvision.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "kankan70",
"name": "📺┃70看看┃📺",
"api": "./js/kankan70.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "tiantian",
"name": "⛄┃天天影视┃⛄",
@@ -34,63 +12,6 @@
"playerType": 0,
"type": 3
},
{
"key": "xb6v",
"name": "🧲┃磁力新6V┃🧲",
"api": "./js/xb6v.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "mp4movie",
"name": "🍚┃Mp4电影┃🍚",
"api": "./js/mp4movie.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "jianpian",
"name": "🌼┃荐片┃🌼",
"api": "./js/jianpian.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "alipansou",
"name": "😸┃阿里猫狸┃😸",
"api": "./js/alipansou.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "huya",
"name": "🐯┃虎牙直播┃🐯",
"api": "./js/huya.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "star",
"name": "☄️┃星视界┃墙☄️",
@@ -102,18 +23,6 @@
"playerType": 0,
"type": 3
},
{
"key": "nivod",
"name": "👑‍┃泥视频┃墙👑",
"api": "./js/nivod.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"code": 0
},
"playerType": 0,
"type": 3
},
{
"key": "aiyingshi",
"name": "🚀‍┃爱影视┃🚀",
@@ -125,180 +34,6 @@
"playerType": 0,
"type": 3
},
{
"key": "sp360",
"name": "🥎┃360影视┃🥎",
"api": "./js/sp360.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "mxanime",
"name": "🍒┃MX动漫┃🍒",
"api": "./js/mxanime.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "cntv",
"name": "🤵‍♂️┃中央影视┃🤵‍♂️",
"api": "./js/cntv.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "douban",
"name": "🍥┃豆瓣┃🍥",
"api": "./js/douban.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "pan_search",
"name": "🗂️┃阿里盘搜┃🗂️",
"api": "./js/pan_search.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "bilibili",
"name": "🏰┃哔哩哔哩┃🏰",
"api": "./js/bilibili.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"cookie": "buvid3=02675249-8ED3-C418-87F5-59E18316459714816infoc; b_nut=1704421014; _uuid=5D435F74-F574-D9AB-62C1-B9294DE465D913102infoc; buvid_fp=e8c5650c749398e9b5cad3f3ddb5081e; buvid4=007E85D1-52C1-7E6E-07CF-837FFBC9349516677-024010502-J5vTDSZDCw4fNnXRejbSVg%3D%3D; rpdid=|()kYJmulRu0J'u~|RRJl)JR; PVID=1; SESSDATA=3be091d3%2C1720332009%2C699ed%2A11CjAcCdwXG5kY1umhCOpQHOn_WP7L9xFBfWO7KKd4BPweodpR6VyIfeNyPiRmkr5jCqsSVjg0R0dZOVVHRUo3RnhPRTZFc3JPbGdiUjFCdHpiRDhiTkticmdKTjVyS1VhbDdvNjFMSDJlbUJydUlRdjFUNGFBNkJlV2ZTa0N1Q1BEVi1QYTQzTUh3IIEC; bili_jct=b0ee7b5d3f27df893545d811d95506d4; DedeUserID=78014638; DedeUserID__ckMd5=4c8c5d65065e468a; enable_web_push=DISABLE; header_theme_version=CLOSE; home_feed_column=5; CURRENT_BLACKGAP=0; CURRENT_FNVAL=4048; b_lsid=75E916AA_18EA1A8D995; bsource=search_baidu; FEED_LIVE_VERSION=V_HEADER_LIVE_NO_POP; browser_resolution=1507-691; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTIzNjk5MTMsImlhdCI6MTcxMjExMDY1MywicGx0IjotMX0.8zQW_fNTCSBlK_JkHnzu3gDw62wuTK1qgKcbGec3swM; bili_ticket_expires=171236985"
},
"playerType": 0,
"type": 3
},
{
"key": "changzhang",
"name": "🏭️┃厂长直连┃🏭️",
"api": "./js/changzhang.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "wogg",
"name": "💂‍┃阿里玩偶┃💂",
"api": "./js/wogg.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "nangua",
"name": "🎃┃南瓜影视┃🎃",
"api": "./js/nangua.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "aliyunpanshare",
"name": "🥏‍┃阿里云盘分享┃🥏‍",
"api": "./js/aliyunpanshare.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "dubo",
"name": "🛶┃独播影视┃🛶",
"api": "./js/dubo.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "haiwaikan",
"name": "☕┃海外看┃☕墙",
"api": "./js/haiwaikan.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "dygangs",
"name": "🏖️┃电影港┃🏖️",
"api": "./js/dygangs.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "cilixiong",
"name": "🐻┃磁力熊┃🐻",
"api": "./js/cilixiong.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "lovemovie",
"name": "💕┃爱情电影网┃💕",
"api": "./js/lovemovie.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "gitcafe",
"name": "🦊┃阿里纸条┃🦊",
@@ -312,6 +47,85 @@
"playerType": 0,
"type": 3
},
{
"key": "jianpian",
"name": "🌼┃荐片┃🌼",
"api": "./js/jianpian.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "huya",
"name": "🐯┃虎牙直播┃🐯",
"api": "./js/huya.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "kankan70",
"name": "📺┃70看看┃📺",
"api": "./js/kankan70.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "xb6v",
"name": "🧲┃磁力新6V┃🧲",
"api": "./js/xb6v.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "douban",
"name": "🍥┃豆瓣┃🍥",
"api": "./js/douban.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "nangua",
"name": "🎃┃南瓜影视┃🎃",
"api": "./js/nangua.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "changzhang",
"name": "🏭️┃厂长直连┃🏭️",
"api": "./js/changzhang.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "kuaikan",
"name": "🛥︎┃快看视频┃🛥︎",
@@ -322,6 +136,192 @@
},
"playerType": 0,
"type": 3
},
{
"key": "mp4movie",
"name": "🍚┃Mp4电影┃🍚",
"api": "./js/mp4movie.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "cntv",
"name": "🤵‍♂️┃中央影视┃🤵‍♂️",
"api": "./js/cntv.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "dubo",
"name": "🛶┃独播影视┃🛶",
"api": "./js/dubo.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "newvision",
"name": "🐼┃新视觉影院┃🐼",
"api": "./js/newvision.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "aliyunpanshare",
"name": "🥏‍┃阿里云盘分享┃🥏‍",
"api": "./js/aliyunpanshare.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "nivod",
"name": "👑‍┃泥视频┃墙👑",
"api": "./js/nivod.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"code": 0
},
"playerType": 0,
"type": 3
},
{
"key": "sp360",
"name": "🥎┃360影视┃🥎",
"api": "./js/sp360.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "alipansou",
"name": "😸┃阿里猫狸┃😸",
"api": "./js/alipansou.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "cilixiong",
"name": "🐻┃磁力熊┃🐻",
"api": "./js/cilixiong.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "bilibili",
"name": "🏰┃哔哩哔哩┃🏰",
"api": "./js/bilibili.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"cookie": "buvid3=02675249-8ED3-C418-87F5-59E18316459714816infoc; b_nut=1704421014; _uuid=5D435F74-F574-D9AB-62C1-B9294DE465D913102infoc; buvid_fp=e8c5650c749398e9b5cad3f3ddb5081e; buvid4=007E85D1-52C1-7E6E-07CF-837FFBC9349516677-024010502-J5vTDSZDCw4fNnXRejbSVg%3D%3D; rpdid=|()kYJmulRu0J'u~|RRJl)JR; PVID=1; SESSDATA=3be091d3%2C1720332009%2C699ed%2A11CjAcCdwXG5kY1umhCOpQHOn_WP7L9xFBfWO7KKd4BPweodpR6VyIfeNyPiRmkr5jCqsSVjg0R0dZOVVHRUo3RnhPRTZFc3JPbGdiUjFCdHpiRDhiTkticmdKTjVyS1VhbDdvNjFMSDJlbUJydUlRdjFUNGFBNkJlV2ZTa0N1Q1BEVi1QYTQzTUh3IIEC; bili_jct=b0ee7b5d3f27df893545d811d95506d4; DedeUserID=78014638; DedeUserID__ckMd5=4c8c5d65065e468a; enable_web_push=DISABLE; header_theme_version=CLOSE; home_feed_column=5; CURRENT_BLACKGAP=0; CURRENT_FNVAL=4048; b_lsid=75E916AA_18EA1A8D995; bsource=search_baidu; FEED_LIVE_VERSION=V_HEADER_LIVE_NO_POP; browser_resolution=1507-691; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTIzNjk5MTMsImlhdCI6MTcxMjExMDY1MywicGx0IjotMX0.8zQW_fNTCSBlK_JkHnzu3gDw62wuTK1qgKcbGec3swM; bili_ticket_expires=171236985"
},
"playerType": 0,
"type": 3
},
{
"key": "dygangs",
"name": "🏖️┃电影港┃🏖️",
"api": "./js/dygangs.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "lovemovie",
"name": "💕┃爱情电影网┃💕",
"api": "./js/lovemovie.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "pan_search",
"name": "🗂️┃阿里盘搜┃🗂️",
"api": "./js/pan_search.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "mxanime",
"name": "🍒┃MX动漫┃🍒",
"api": "./js/mxanime.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
},
{
"key": "wogg",
"name": "💂‍┃阿里玩偶┃💂",
"api": "./js/wogg.js",
"timeout": 30,
"ext": {
"box": "CatOpen",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "haiwaikan",
"name": "☕┃海外看┃☕墙",
"api": "./js/haiwaikan.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"playerType": 0,
"type": 3
}
]
},
@@ -338,9 +338,19 @@
"type": 10
},
{
"key": "dj0898_book_open",
"name": "🎵┃世纪DJ音乐网┃🎵",
"api": "./js/dj0898_book_open.js",
"key": "audiomack",
"name": "🎵┃音声┃🎵",
"api": "./js/audiomack.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"type": 10
},
{
"key": "ttkan",
"name": "📚︎┃天天看小说┃📚︎",
"api": "./js/ttkan.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
@@ -357,16 +367,6 @@
},
"type": 10
},
{
"key": "audiomack",
"name": "🎵┃音声┃🎵",
"api": "./js/audiomack.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
},
"type": 10
},
{
"key": "bookan",
"name": "🎵┃看书┃🎵",
@@ -378,9 +378,9 @@
"type": 10
},
{
"key": "ttkan",
"name": "📚︎┃天天看小说┃📚︎",
"api": "./js/ttkan.js",
"key": "dj0898_book_open",
"name": "🎵┃世纪DJ音乐网┃🎵",
"api": "./js/dj0898_book_open.js",
"timeout": 30,
"ext": {
"box": "CatOpen"
+265 -265
View File
@@ -1,27 +1,5 @@
{
"sites": [
{
"key": "newvision",
"name": "🐼┃新视觉影院┃🐼",
"api": "./js/newvision.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "kankan70",
"name": "📺┃70看看┃📺",
"api": "./js/kankan70.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "tiantian",
"name": "⛄┃天天影视┃⛄",
@@ -33,63 +11,6 @@
"playerType": 0,
"type": 3
},
{
"key": "xb6v",
"name": "🧲┃磁力新6V┃🧲",
"api": "./js/xb6v.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "mp4movie",
"name": "🍚┃Mp4电影┃🍚",
"api": "./js/mp4movie.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "jianpian",
"name": "🌼┃荐片┃🌼",
"api": "./js/jianpian.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "alipansou",
"name": "😸┃阿里猫狸┃😸",
"api": "./js/alipansou.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "huya",
"name": "🐯┃虎牙直播┃🐯",
"api": "./js/huya.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "star",
"name": "☄️┃星视界┃墙☄️",
@@ -101,18 +22,6 @@
"playerType": 0,
"type": 3
},
{
"key": "nivod",
"name": "👑‍┃泥视频┃墙👑",
"api": "./js/nivod.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"code": 0
},
"playerType": 0,
"type": 3
},
{
"key": "aiyingshi",
"name": "🚀‍┃爱影视┃🚀",
@@ -124,180 +33,6 @@
"playerType": 0,
"type": 3
},
{
"key": "sp360",
"name": "🥎┃360影视┃🥎",
"api": "./js/sp360.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "mxanime",
"name": "🍒┃MX动漫┃🍒",
"api": "./js/mxanime.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "cntv",
"name": "🤵‍♂️┃中央影视┃🤵‍♂️",
"api": "./js/cntv.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "douban",
"name": "🍥┃豆瓣┃🍥",
"api": "./js/douban.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "pan_search",
"name": "🗂️┃阿里盘搜┃🗂️",
"api": "./js/pan_search.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "bilibili",
"name": "🏰┃哔哩哔哩┃🏰",
"api": "./js/bilibili.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"cookie": "buvid3=02675249-8ED3-C418-87F5-59E18316459714816infoc; b_nut=1704421014; _uuid=5D435F74-F574-D9AB-62C1-B9294DE465D913102infoc; buvid_fp=e8c5650c749398e9b5cad3f3ddb5081e; buvid4=007E85D1-52C1-7E6E-07CF-837FFBC9349516677-024010502-J5vTDSZDCw4fNnXRejbSVg%3D%3D; rpdid=|()kYJmulRu0J'u~|RRJl)JR; PVID=1; SESSDATA=3be091d3%2C1720332009%2C699ed%2A11CjAcCdwXG5kY1umhCOpQHOn_WP7L9xFBfWO7KKd4BPweodpR6VyIfeNyPiRmkr5jCqsSVjg0R0dZOVVHRUo3RnhPRTZFc3JPbGdiUjFCdHpiRDhiTkticmdKTjVyS1VhbDdvNjFMSDJlbUJydUlRdjFUNGFBNkJlV2ZTa0N1Q1BEVi1QYTQzTUh3IIEC; bili_jct=b0ee7b5d3f27df893545d811d95506d4; DedeUserID=78014638; DedeUserID__ckMd5=4c8c5d65065e468a; enable_web_push=DISABLE; header_theme_version=CLOSE; home_feed_column=5; CURRENT_BLACKGAP=0; CURRENT_FNVAL=4048; b_lsid=75E916AA_18EA1A8D995; bsource=search_baidu; FEED_LIVE_VERSION=V_HEADER_LIVE_NO_POP; browser_resolution=1507-691; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTIzNjk5MTMsImlhdCI6MTcxMjExMDY1MywicGx0IjotMX0.8zQW_fNTCSBlK_JkHnzu3gDw62wuTK1qgKcbGec3swM; bili_ticket_expires=171236985"
},
"playerType": 0,
"type": 3
},
{
"key": "changzhang",
"name": "🏭️┃厂长直连┃🏭️",
"api": "./js/changzhang.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "wogg",
"name": "💂‍┃阿里玩偶┃💂",
"api": "./js/wogg.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "nangua",
"name": "🎃┃南瓜影视┃🎃",
"api": "./js/nangua.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "aliyunpanshare",
"name": "🥏‍┃阿里云盘分享┃🥏‍",
"api": "./js/aliyunpanshare.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "dubo",
"name": "🛶┃独播影视┃🛶",
"api": "./js/dubo.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "haiwaikan",
"name": "☕┃海外看┃☕墙",
"api": "./js/haiwaikan.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "dygangs",
"name": "🏖️┃电影港┃🏖️",
"api": "./js/dygangs.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "cilixiong",
"name": "🐻┃磁力熊┃🐻",
"api": "./js/cilixiong.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "lovemovie",
"name": "💕┃爱情电影网┃💕",
"api": "./js/lovemovie.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "gitcafe",
"name": "🦊┃阿里纸条┃🦊",
@@ -311,6 +46,85 @@
"playerType": 0,
"type": 3
},
{
"key": "jianpian",
"name": "🌼┃荐片┃🌼",
"api": "./js/jianpian.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "huya",
"name": "🐯┃虎牙直播┃🐯",
"api": "./js/huya.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "kankan70",
"name": "📺┃70看看┃📺",
"api": "./js/kankan70.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "xb6v",
"name": "🧲┃磁力新6V┃🧲",
"api": "./js/xb6v.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "douban",
"name": "🍥┃豆瓣┃🍥",
"api": "./js/douban.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "nangua",
"name": "🎃┃南瓜影视┃🎃",
"api": "./js/nangua.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "changzhang",
"name": "🏭️┃厂长直连┃🏭️",
"api": "./js/changzhang.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "kuaikan",
"name": "🛥︎┃快看视频┃🛥︎",
@@ -321,6 +135,192 @@
},
"playerType": 0,
"type": 3
},
{
"key": "mp4movie",
"name": "🍚┃Mp4电影┃🍚",
"api": "./js/mp4movie.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "cntv",
"name": "🤵‍♂️┃中央影视┃🤵‍♂️",
"api": "./js/cntv.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "dubo",
"name": "🛶┃独播影视┃🛶",
"api": "./js/dubo.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "newvision",
"name": "🐼┃新视觉影院┃🐼",
"api": "./js/newvision.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "aliyunpanshare",
"name": "🥏‍┃阿里云盘分享┃🥏‍",
"api": "./js/aliyunpanshare.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "nivod",
"name": "👑‍┃泥视频┃墙👑",
"api": "./js/nivod.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"code": 0
},
"playerType": 0,
"type": 3
},
{
"key": "sp360",
"name": "🥎┃360影视┃🥎",
"api": "./js/sp360.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "alipansou",
"name": "😸┃阿里猫狸┃😸",
"api": "./js/alipansou.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "cilixiong",
"name": "🐻┃磁力熊┃🐻",
"api": "./js/cilixiong.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "bilibili",
"name": "🏰┃哔哩哔哩┃🏰",
"api": "./js/bilibili.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"cookie": "buvid3=02675249-8ED3-C418-87F5-59E18316459714816infoc; b_nut=1704421014; _uuid=5D435F74-F574-D9AB-62C1-B9294DE465D913102infoc; buvid_fp=e8c5650c749398e9b5cad3f3ddb5081e; buvid4=007E85D1-52C1-7E6E-07CF-837FFBC9349516677-024010502-J5vTDSZDCw4fNnXRejbSVg%3D%3D; rpdid=|()kYJmulRu0J'u~|RRJl)JR; PVID=1; SESSDATA=3be091d3%2C1720332009%2C699ed%2A11CjAcCdwXG5kY1umhCOpQHOn_WP7L9xFBfWO7KKd4BPweodpR6VyIfeNyPiRmkr5jCqsSVjg0R0dZOVVHRUo3RnhPRTZFc3JPbGdiUjFCdHpiRDhiTkticmdKTjVyS1VhbDdvNjFMSDJlbUJydUlRdjFUNGFBNkJlV2ZTa0N1Q1BEVi1QYTQzTUh3IIEC; bili_jct=b0ee7b5d3f27df893545d811d95506d4; DedeUserID=78014638; DedeUserID__ckMd5=4c8c5d65065e468a; enable_web_push=DISABLE; header_theme_version=CLOSE; home_feed_column=5; CURRENT_BLACKGAP=0; CURRENT_FNVAL=4048; b_lsid=75E916AA_18EA1A8D995; bsource=search_baidu; FEED_LIVE_VERSION=V_HEADER_LIVE_NO_POP; browser_resolution=1507-691; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTIzNjk5MTMsImlhdCI6MTcxMjExMDY1MywicGx0IjotMX0.8zQW_fNTCSBlK_JkHnzu3gDw62wuTK1qgKcbGec3swM; bili_ticket_expires=171236985"
},
"playerType": 0,
"type": 3
},
{
"key": "dygangs",
"name": "🏖️┃电影港┃🏖️",
"api": "./js/dygangs.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "lovemovie",
"name": "💕┃爱情电影网┃💕",
"api": "./js/lovemovie.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "pan_search",
"name": "🗂️┃阿里盘搜┃🗂️",
"api": "./js/pan_search.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "mxanime",
"name": "🍒┃MX动漫┃🍒",
"api": "./js/mxanime.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
},
{
"key": "wogg",
"name": "💂‍┃阿里玩偶┃💂",
"api": "./js/wogg.js",
"timeout": 30,
"ext": {
"box": "TVBox",
"aliToken": "26fc6787afff43e78b78992e782502f1",
"quarkCookie": "_UP_A4A_11_=wb965111521e45ffa80410c24a071a54; _UP_D_=pc; tfstk=fXFith4nnRk114LAjWc1TT-OQUXL5hGjqodxDjnVLDoBBchYujR4Drht3GaYxmqYlcPtWc34mknIMcFTB-Y_tuAv6G6_uIcxggIRw_U15jGV2EjCXmnslyoqlSMN9PGjgMEW0dR85uVOAjYmgwcEoqOqgIrqLyoIlq-ZuC738DgqgCJZgH8EuqxZNmAqqSPQTaC3h7bb2rFnSvW87D8jTW0iX0zasIR2zVDi4Poh2svabvzjnSTXixaaFogzbhS-Cry3xVcc9dlz--roR55Jj2wT8znUrEdYrfV3t-kh71znscDo-vYWpf24fSD_IE_78frQF0MNdMg367HmVvxFbyUnbY20XMOqX84UxYFpvQhbA-rqok-G4A9eUc4wG27YtK9jQ2gnVNJioG_mbu_h-wv5CAuIWgQh-K9jQ2gn2wbHFhMZRVIR.; __pus=c81f57897dafcb65d4ecb501bc299199AARcqF72zsatdbsCbiT3qVqsk36caaycoPQW7hz8rbEf+UY7f5aGgH1e90lsONAUwCAW8y27u5A/KXyYqkHCWgjS; __kp=99fa2760-1669-11ef-90cf-8f7a59c3b86e; __kps=AATSt4xuf6r6bqes3LdJvxvy; __ktd=c2e+aLICIvFoeklXXz36VA==; __uid=AATSt4xuf6r6bqes3LdJvxvy; Video-Auth=smob3MOUslklDq2MutANJYZCVo50sLv0GFelx3+cu1nK2fkdL2kvkdpT5yNOhNz0NLTyi5ThWRL47+ztJA4kXQ==; __puus=72f667c533c9a22496f88d2f1bb7ae71AAQ7mrvFw7s9AUPUXvnuGPkcDU3RRTVPdYaYQfsM9Cje2doYXgRZXbImg02EaUaEG+G9ikpo3xubGGdElArOuYvUtJzIXb6yHDnSZbtEUxkwvjfQRNEnDnVwLQ6LL2ORjRaxa9OUfwk/WppWvy6OcDqQtHYkaqB+Poxn5kFs7ZVdAtX7ZQks1czD+g9gAZjsbeBHxHQ1AP5MGc1s3M4RhwZQ"
},
"playerType": 0,
"type": 3
},
{
"key": "haiwaikan",
"name": "☕┃海外看┃☕墙",
"api": "./js/haiwaikan.js",
"timeout": 30,
"ext": {
"box": "TVBox"
},
"playerType": 0,
"type": 3
}
],
"ijk": [