"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(){var e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r=e(t),i=0;i<r.length;i++)"default"!==r[i]&&__createBinding(n,t,r[i]);return __setModuleDefault(n,t),n}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.runWcc=runWcc,exports.testWcc=testWcc;const common_1=require("../../../../../utils/web/common"),wasmSpliter="_split_<><><>_split_";let ModuleWcc=null,wxmlCompileFunc=null;async function runWcc(e){if(!ModuleWcc){const e=await Promise.resolve().then(()=>__importStar(require("./wcc.wasm"))),t=await Promise.resolve().then(()=>__importStar(require("./wcc")));ModuleWcc=await t.default({wasmBinary:e.default})}wxmlCompileFunc||(wxmlCompileFunc=ModuleWcc.wxml_compile);const{files:t,configSplit:n,configContent:r,isCut:i,genfuncName:o,hasWxs:c=!0,isPlugin:l,lazyloadConfig:u,replaceContent:a={}}=e,s=t.map(e=>a[e]),m=wxmlCompileFunc(wasmSpliter,t.join(wasmSpliter),s.join(wasmSpliter),t.length,o,0,1,c?1:0,0,l?1:0,0,0,i?1:0,u?1:0,0,u,r,n);return(0,common_1.splitQuoteFromWASM)(m)}async function testWcc(){}