SukkaW d354c5e988
Some checks are pending
Build / Build (push) Waiting to run
Build / Diff output (push) Blocked by required conditions
Build / Deploy to Cloudflare Pages (push) Blocked by required conditions
Build / Deploy to GitHub and GitLab (push) Blocked by required conditions
Chore: maintainance
2025-02-07 17:52:36 +08:00

34 lines
1.3 KiB
JavaScript

'use strict';Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});const ip=require('../../../_virtual/ip.cjs'),clash=require('../writing-strategy/clash.cjs'),singbox=require('../writing-strategy/singbox.cjs'),surge=require('../writing-strategy/surge.cjs'),base=require('./base.cjs');var hasRequiredIp;
function requireIp () {
if (hasRequiredIp) return ip.__exports;
hasRequiredIp = 1;
(function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "IPListOutput", {
enumerable: true,
get: function() {
return IPListOutput;
}
});
const _clash = /*@__PURE__*/ clash.__require();
const _singbox = /*@__PURE__*/ singbox.__require();
const _surge = /*@__PURE__*/ surge.__require();
const _base = /*@__PURE__*/ base.__require();
class IPListOutput extends _base.FileOutput {
clashUseRule;
strategies;
constructor(span, id, clashUseRule = true){
super(span, id), this.clashUseRule = clashUseRule;
this.strategies = [
new _surge.SurgeRuleSet('ip'),
this.clashUseRule ? new _clash.ClashClassicRuleSet('ip') : new _clash.ClashIPSet(),
new _singbox.SingboxSource('ip')
];
}
}
} (ip.__exports));
return ip.__exports;
}exports.__require=requireIp;