%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/next/dist/compiled/mini-css-extract-plugin/
Upload File :
Create Path :
Current File : /var/www/html/node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js

(()=>{"use strict";var e={224:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUndoPath=getUndoPath;t.stringifyRequest=stringifyRequest;t.trueFn=trueFn;var n=_interopRequireDefault(i(188));var o=_interopRequireDefault(i(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function trueFn(){return true}function findModuleById(e,t){const{modules:i,chunkGraph:n}=e;for(const e of i){const i=typeof n!=="undefined"?n.getModuleId(e):e.id;if(i===t){return e}}return null}function evalModuleCode(e,t,i){const o=new n.default(i,e);o.paths=n.default._nodeModulePaths(e.context);o.filename=i;o._compile(t,i);return o.exports}function compareIds(e,t){if(typeof e!==typeof t){return typeof e<typeof t?-1:1}if(e<t){return-1}if(e>t){return 1}return 0}function compareModulesByIdentifier(e,t){return compareIds(e.identifier(),t.identifier())}const r="css/mini-extract";t.MODULE_TYPE=r;const s="__mini_css_extract_plugin_public_path_auto__";t.AUTO_PUBLIC_PATH=s;const a="webpack:///mini-css-extract-plugin/";t.ABSOLUTE_PUBLIC_PATH=a;const u="__mini_css_extract_plugin_single_dot_path_segment__";t.SINGLE_DOT_PATH_SEGMENT=u;function isAbsolutePath(e){return o.default.posix.isAbsolute(e)||o.default.win32.isAbsolute(e)}const l=/^\.\.?[/\\]/;function isRelativePath(e){return l.test(e)}function stringifyRequest(e,t){if(typeof e.utils!=="undefined"&&typeof e.utils.contextify==="function"){return JSON.stringify(e.utils.contextify(e.context,t))}const i=t.split("!");const{context:n}=e;return JSON.stringify(i.map((e=>{const t=e.match(/^(.*?)(\?.*)/);const i=t?t[2]:"";let r=t?t[1]:e;if(isAbsolutePath(r)&&n){r=o.default.relative(n,r);if(isAbsolutePath(r)){return r+i}if(isRelativePath(r)===false){r=`./${r}`}}return r.replace(/\\/g,"/")+i})).join("!"))}function getUndoPath(e,t,i){let n=-1;let o="";t=t.replace(/[\\/]$/,"");for(const i of e.split(/[/\\]+/)){if(i===".."){if(n>-1){n--}else{const e=t.lastIndexOf("/");const i=t.lastIndexOf("\\");const n=e<0?i:i<0?e:Math.max(e,i);if(n<0){return`${t}/`}o=`${t.slice(n+1)}/${o}`;t=t.slice(0,n)}}else if(i!=="."){n++}}return n>0?`${"../".repeat(n)}${o}`:i?`./${o}`:o}},717:e=>{e.exports=require("./index.js")},188:e=>{e.exports=require("module")},17:e=>{e.exports=require("path")},217:e=>{e.exports=JSON.parse('{"title":"Mini CSS Extract Plugin Loader options","type":"object","additionalProperties":false,"properties":{"publicPath":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"Specifies a custom public path for the external resources like images, files, etc inside CSS.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath"},"emit":{"type":"boolean","description":"If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#emit"},"esModule":{"type":"boolean","description":"Generates JS modules that use the ES modules syntax.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"},"layer":{"type":"string"}}}')}};var t={};function __nccwpck_require__(i){var n=t[i];if(n!==undefined){return n.exports}var o=t[i]={exports:{}};var r=true;try{e[i](o,o.exports,__nccwpck_require__);r=false}finally{if(r)delete t[i]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i={};(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:true});e["default"]=_default;e.pitch=pitch;var t=_interopRequireDefault(__nccwpck_require__(17));var n=__nccwpck_require__(224);var o=_interopRequireDefault(__nccwpck_require__(217));var r=_interopRequireWildcard(__nccwpck_require__(717));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var i=new WeakMap;return(_getRequireWildcardCache=function(e){return e?i:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var i=_getRequireWildcardCache(t);if(i&&i.has(e)){return i.get(e)}var n={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)){var s=o?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(n,r,s)}else{n[r]=e[r]}}}n.default=e;if(i){i.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function hotLoader(e,i){const o=i.locals?"":"module.hot.accept(undefined, cssReload);";return`${e}\n    if(module.hot) {\n      // ${Date.now()}\n      var cssReload = require(${(0,n.stringifyRequest)(i.context,t.default.join(__dirname,"hmr/hotModuleReplacement.js"))})(module.id, ${JSON.stringify({...i.options,locals:!!i.locals})});\n      module.hot.dispose(cssReload);\n      ${o}\n    }\n  `}function pitch(e){const t=this.getOptions(o.default);const i=this.async();const s=this[r.pluginSymbol];if(!s){i(new Error("You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started"));return}const{webpack:a}=this._compiler;const handleExports=(e,o,s,u)=>{let l;let c;const p=typeof t.esModule!=="undefined"?t.esModule:true;const addDependencies=e=>{if(!Array.isArray(e)&&e!=null){throw new Error(`Exported value was not extracted as an array: ${JSON.stringify(e)}`)}const i=new Map;const n=typeof t.emit!=="undefined"?t.emit:true;let o;for(const t of e){if(!t.identifier||!n){continue}const e=i.get(t.identifier)||0;const s=r.default.getCssDependency(a);this._module.addDependency(o=new s(t,t.context,e));i.set(t.identifier,e+1)}if(o&&s){o.assets=s;o.assetsInfo=u}};try{const t=e.__esModule?e.default:e;c=e.__esModule&&(!e.default||!("locals"in e.default));if(c){Object.keys(e).forEach((t=>{if(t!=="default"){if(!l){l={}}l[t]=e[t]}}))}else{l=t&&t.locals}let i;if(!Array.isArray(t)){i=[[null,t]]}else{i=t.map((([e,t,i,r,s,a])=>{let u=e;let l;if(o){const t=(0,n.findModuleById)(o,e);u=t.identifier();({context:l}=t)}else{l=this.rootContext}return{identifier:u,context:l,content:Buffer.from(t),media:i,supports:s,layer:a,sourceMap:r?Buffer.from(JSON.stringify(r)):undefined}}))}addDependencies(i)}catch(e){return i(e)}const d=l?c?Object.keys(l).map((e=>`\nexport var ${e} = ${JSON.stringify(l[e])};`)).join(""):`\n${p?"export default":"module.exports ="} ${JSON.stringify(l)};`:p?`\nexport {};`:"";let f=`// extracted by ${r.pluginName}`;f+=this.hot?hotLoader(d,{context:this.context,options:t,locals:l}):d;return i(null,f)};let{publicPath:u}=this._compilation.outputOptions;if(typeof t.publicPath==="string"){u=t.publicPath}else if(typeof t.publicPath==="function"){u=t.publicPath(this.resourcePath,this.rootContext)}if(u==="auto"){u=n.AUTO_PUBLIC_PATH}if(typeof s.experimentalUseImportModule==="undefined"&&typeof this.importModule==="function"||s.experimentalUseImportModule){if(!this.importModule){i(new Error("You are using 'experimentalUseImportModule' but 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2."));return}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(u);const r=o?u:`${n.ABSOLUTE_PUBLIC_PATH}${u.replace(/\./g,n.SINGLE_DOT_PATH_SEGMENT)}`;this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${e}`,{layer:t.layer,publicPath:r},((e,t)=>{if(e){i(e);return}handleExports(t)}));return}const l=this.loaders.slice(this.loaderIndex+1);this.addDependency(this.resourcePath);const c="*";const p={filename:c,publicPath:u};const d=this._compilation.createChildCompiler(`${r.pluginName} ${e}`,p);d.options.module={...d.options.module};d.options.module.parser={...d.options.module.parser};d.options.module.parser.javascript={...d.options.module.parser.javascript,url:"relative"};const{NodeTemplatePlugin:f}=a.node;const{NodeTargetPlugin:_}=a.node;new f(p).apply(d);(new _).apply(d);const{EntryOptionPlugin:h}=a;const{library:{EnableLibraryPlugin:m}}=a;new m("commonjs2").apply(d);h.applyEntryOption(d,this.context,{child:{library:{type:"commonjs2"},import:[`!!${e}`]}});const{LimitChunkCountPlugin:y}=a.optimize;new y({maxChunks:1}).apply(d);const{NormalModule:g}=a;d.hooks.thisCompilation.tap(`${r.pluginName} loader`,(t=>{const i=g.getCompilationHooks(t).loader;i.tap(`${r.pluginName} loader`,((t,i)=>{if(i.request===e){i.loaders=l.map((e=>({loader:e.path,options:e.options,ident:e.ident})))}}))}));let b;d.hooks.compilation.tap(r.pluginName,(e=>{e.hooks.processAssets.tap(r.pluginName,(()=>{b=e.assets[c]&&e.assets[c].source();e.chunks.forEach((t=>{t.files.forEach((t=>{e.deleteAsset(t)}))}))}))}));d.runAsChild(((t,o,r)=>{if(t){return i(t)}if(r.errors.length>0){return i(r.errors[0])}const s=Object.create(null);const a=new Map;for(const e of r.getAssets()){s[e.name]=e.source;a.set(e.name,e.info)}r.fileDependencies.forEach((e=>{this.addDependency(e)}),this);r.contextDependencies.forEach((e=>{this.addContextDependency(e)}),this);if(!b){return i(new Error("Didn't get a result from child compiler"))}let u;try{u=(0,n.evalModuleCode)(this,b,e)}catch(e){return i(e)}return handleExports(u,r,s,a)}))}function _default(e){console.log(e)}})();module.exports=i})();

Zerion Mini Shell 1.0