{"version":3,"sources":["webpack:///./node_modules/lib-font/src/opentype/tables/simple/other/DSIG.js"],"names":["DSIG","constructor","dict","dataview","p","super","this","version","uint32","numSignatures","uint16","flags","signatureRecords","Array","map","_","SignatureRecord","getData","signatureID","record","parser","currentPosition","tableStart","offset","SignatureBlockFormat1","format","length","Offset32","signatureLength","signature","readBytes"],"mappings":"2FAAA,uDAOA,MAAMA,UAAa,IACjBC,YAAYC,EAAMC,GAChB,MACEC,EADaC,MAAMH,EAAMC,GACdC,EACbE,KAAKC,QAAUH,EAAEI,OACjBF,KAAKG,cAAgBL,EAAEM,OACvBJ,KAAKK,MAAQP,EAAEM,OACfJ,KAAKM,iBAAmB,IAAI,IAAIC,MAAMP,KAAKG,gBAAgBK,KAAIC,GAAK,IAAIC,EAAgBZ,IAC1F,CACAa,QAAQC,GACN,MAAMC,EAASb,KAAKM,iBAAiBM,GAErC,OADAZ,KAAKc,OAAOC,gBAAkBf,KAAKgB,WAAaH,EAAOI,OAChD,IAAIC,EAAsBlB,KAAKc,OACxC,EAEF,MAAMJ,EACJf,YAAYG,GACVE,KAAKmB,OAASrB,EAAEI,OAChBF,KAAKoB,OAAStB,EAAEI,OAChBF,KAAKiB,OAASnB,EAAEuB,QAClB,EAGF,MAAMH,EAIJvB,YAAYG,GACVA,EAAEM,OACFN,EAAEM,OACFJ,KAAKsB,gBAAkBxB,EAAEI,OACzBF,KAAKuB,UAAYzB,EAAE0B,UAAUxB,KAAKsB,gBACpC,E","file":"js/27-1f60200abfae32aa9b43.chunk.js","sourcesContent":["import { SimpleTable } from \"../../simple-table.js\";\n\n/**\n * The OpenType `DSIG` table.\n *\n * See https://docs.microsoft.com/en-us/typography/opentype/spec/DSIG\n */\nclass DSIG extends SimpleTable {\n constructor(dict, dataview) {\n const _super = super(dict, dataview),\n p = _super.p;\n this.version = p.uint32;\n this.numSignatures = p.uint16;\n this.flags = p.uint16;\n this.signatureRecords = [...new Array(this.numSignatures)].map(_ => new SignatureRecord(p));\n }\n getData(signatureID) {\n const record = this.signatureRecords[signatureID];\n this.parser.currentPosition = this.tableStart + record.offset;\n return new SignatureBlockFormat1(this.parser);\n }\n}\nclass SignatureRecord {\n constructor(p) {\n this.format = p.uint32;\n this.length = p.uint32;\n this.offset = p.Offset32; // from the beginning of the DSIG table\n }\n}\n\nclass SignatureBlockFormat1 {\n // \"Signature blocks may have various formats; currently one format is defined.\"\n // There is so much optimism here. There might be more formats! We should reserve\n // _multiple_ uint16! We have BIG PLANS! ...some time before 2002!\n constructor(p) {\n p.uint16;\n p.uint16;\n this.signatureLength = p.uint32;\n this.signature = p.readBytes(this.signatureLength); // this is a PKCS#7 packet, and you get to deadl with that yourself.\n }\n}\n\nexport { DSIG };"],"sourceRoot":""}