1 line
5.1 KiB
Plaintext
1 line
5.1 KiB
Plaintext
{"version":3,"sources":["../../src/server/post-process.ts"],"names":["OPTIMIZED_FONT_PROVIDERS","nonNullable","middlewareRegistry","registerPostProcessor","name","middleware","condition","push","processHTML","html","data","options","parse","require","root","document","callMiddleWare","inspectData","inspect","mutate","i","length","FontOptimizerMiddleware","originalDom","getFontDefinition","fontDefinitions","querySelectorAll","filter","tag","getAttribute","hasAttribute","some","url","dataHref","startsWith","forEach","element","nonce","markup","result","preconnectUrls","Set","fontDef","fallBackLinkTag","indexOf","fontContent","replace","nonceStr","dataAttr","includes","escapedUrl","fontRegex","RegExp","provider","find","p","add","preconnect","preconnectTag","postProcessHTML","pathname","content","renderOpts","inAmpMode","hybridAmp","postProcessors","process","env","NEXT_RUNTIME","optimizeAmp","default","ampOptimizerConfig","ampSkipValidation","ampValidator","optimizeFonts","fontManifest","getFontDefinitionFromManifest","optimizeCss","Critters","cssOptimizer","ssrMode","reduceInlineStyles","path","distDir","publicPath","assetPrefix","preload","fonts","postProcessor","__NEXT_OPTIMIZE_FONTS"],"mappings":"AAGA,SAASA,wBAAwB,QAAQ,0BAAyB;AAClE,SAASC,WAAW,QAAQ,sBAAqB;AAwBjD,MAAMC,qBAAiD,EAAE;AAEzD,SAASC,sBACPC,IAAY,EACZC,UAAiC,EACjCC,SAAoD;IAEpDJ,mBAAmBK,IAAI,CAAC;QAAEH;QAAMC;QAAYC,WAAWA,aAAa;IAAK;AAC3E;AAEA,eAAeE,YACbC,IAAY,EACZC,IAAmB,EACnBC,OAA2B;IAE3B,+DAA+D;IAC/D,IAAI,CAACT,kBAAkB,CAAC,EAAE,EAAE;QAC1B,OAAOO;IACT;IAEA,MAAM,EAAEG,KAAK,EAAE,GACbC,QAAQ;IACV,MAAMC,OAAoBF,MAAMH;IAChC,IAAIM,WAAWN;IAEf,8DAA8D;IAC9D,eAAeO,eAAeX,UAAiC;QAC7D,yBAAyB;QACzB,MAAMY,cAAcZ,WAAWa,OAAO,CA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