@powerhousedao/connect 5.0.0-staging.22 → 5.0.0-staging.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{atlas-import.BgATR-r7.js → atlas-import.DV9NGIcV.js} +2 -2
- package/dist/assets/{atlas-import.BgATR-r7.js.map → atlas-import.DV9NGIcV.js.map} +1 -1
- package/dist/assets/{ccip.jl18lENV.js → ccip.BYxx80kf.js} +2 -2
- package/dist/assets/{ccip.jl18lENV.js.map → ccip.BYxx80kf.js.map} +1 -1
- package/dist/assets/{content.DvmXmlAV.js → content.DS8bCjW3.js} +2 -2
- package/dist/assets/{content.DvmXmlAV.js.map → content.DS8bCjW3.js.map} +1 -1
- package/dist/assets/{creators.DxnBvZmB.js → creators.CjFm02Wg.js} +2 -2
- package/dist/assets/{creators.DxnBvZmB.js.map → creators.CjFm02Wg.js.map} +1 -1
- package/dist/assets/{drive-icon.BkTTXAVC.js → drive-icon.BEe60eO5.js} +2 -2
- package/dist/assets/{drive-icon.BkTTXAVC.js.map → drive-icon.BEe60eO5.js.map} +1 -1
- package/dist/assets/{index.gzsoMXLp.js → index.6RVr5bn1.js} +2 -2
- package/dist/assets/{index.gzsoMXLp.js.map → index.6RVr5bn1.js.map} +1 -1
- package/dist/assets/{index.HEXeD-Ya.js → index.Bt-6AiBl.js} +2 -2
- package/dist/assets/{index.HEXeD-Ya.js.map → index.Bt-6AiBl.js.map} +1 -1
- package/dist/assets/{index.huU8PUzV.js → index.CSVNwIam.js} +2 -2
- package/dist/assets/{index.huU8PUzV.js.map → index.CSVNwIam.js.map} +1 -1
- package/dist/assets/{index.D0MzbN42.js → index.DHgLJqcJ.js} +2 -2
- package/dist/assets/{index.D0MzbN42.js.map → index.DHgLJqcJ.js.map} +1 -1
- package/dist/assets/{index.m18NImLB.js → index.DnJYbUXB.js} +2 -2
- package/dist/assets/{index.m18NImLB.js.map → index.DnJYbUXB.js.map} +1 -1
- package/dist/assets/{index.BxyhGJau.js → index.J5BySxKV.js} +2 -2
- package/dist/assets/{index.BxyhGJau.js.map → index.J5BySxKV.js.map} +1 -1
- package/dist/assets/{index.r8UiWE99.js → index.OK3T5arx.js} +2 -2
- package/dist/assets/{index.r8UiWE99.js.map → index.OK3T5arx.js.map} +1 -1
- package/dist/assets/{main.CrANKVyU.js → main.D9OoNJWh.js} +7 -7
- package/dist/assets/{main.CrANKVyU.js.map → main.D9OoNJWh.js.map} +1 -1
- package/dist/assets/{nodefs.BoXHuKHB.js → nodefs.D4Jzt58G.js} +2 -2
- package/dist/assets/{nodefs.BoXHuKHB.js.map → nodefs.D4Jzt58G.js.map} +1 -1
- package/dist/assets/{opfs-ahp.hLLeu4rw.js → opfs-ahp.DuAFuh-M.js} +2 -2
- package/dist/assets/{opfs-ahp.hLLeu4rw.js.map → opfs-ahp.DuAFuh-M.js.map} +1 -1
- package/dist/assets/{root.BB4-uWle.js → root.DytsescB.js} +2 -2
- package/dist/assets/{root.BB4-uWle.js.map → root.DytsescB.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +9 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var v=Object.defineProperty;var _=(o,e,t)=>e in o?v(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var f=(o,e,t)=>_(o,typeof e!="symbol"?e+"":e,t);import{k as O,A as i,D as I}from"./main.
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
var v=Object.defineProperty;var _=(o,e,t)=>e in o?v(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var f=(o,e,t)=>_(o,typeof e!="symbol"?e+"":e,t);import{k as O,A as i,D as I}from"./main.D9OoNJWh.js";import"react/jsx-runtime";import"react-dom/client";import"react";import"react-dom";class w{constructor(e,t=O(["processor","document-analytics"])){f(this,"analyticsStore");f(this,"logger");this.analyticsStore=e,this.logger=t}async onStrands(e){if(e.length!==0)for(const t of e){if(t.operations.length===0)continue;const E=t.operations[0],u=i.fromString(`ph/doc/${t.driveId}/${t.documentId}/${t.branch}/${t.scope}`);E.index===0&&await this.clearSource(u);const{driveId:s,documentId:g,branch:m,scope:a}=t,l=s===g?"DRIVE":"NODE",d=50;for(let r=0;r<t.operations.length;r+=d){const n=t.operations.slice(r,r+d),c=[];for(const p of n){const D=p.index,h={source:u,metric:"DocumentOperations",start:I.fromISO(p.timestampUtcMs),value:1,dimensions:{drive:i.fromString(`ph/doc/drive/${s}/${m}/${a}/${D}`),operation:i.fromString(`ph/doc/operation/${p.action.type}/${p.index}`),target:i.fromString(`ph/doc/target/${s}/${l}/${g}`)}};for(c.push(h);c.length>=d;){const y=c.splice(0,d);await this.analyticsStore.addSeriesValues(y)}}c.length>0&&await this.analyticsStore.addSeriesValues(c)}}}async onDisconnect(){}async clearSource(e){try{await this.analyticsStore.clearSeriesBySource(e,!0)}catch(t){this.logger.error("Failed to clear source",t)}}}const $=["ADD_FILE","ADD_FOLDER"],T=["COPY_NODE"],C=["UPDATE_FILE","UPDATE_NODE"],A=["MOVE_NODE"],N=["DELETE_NODE"],V=[...$,...T,...C,...A,...N];class b{constructor(e,t=O(["processor","drive-analytics"])){f(this,"analyticsStore");f(this,"logger");this.analyticsStore=e,this.logger=t}async onStrands(e){if(e.length!==0)for(const t of e){if(t.operations.length===0)continue;const E=t.operations[0],u=i.fromString(`ph/drive/${t.documentId}/${t.branch}/${t.scope}`);E.index===0&&await this.clearSource(u);const{documentId:s,branch:g,scope:m}=t,a=50;for(let l=0;l<t.operations.length;l+=a){const d=t.operations.slice(l,l+a),r=[];for(const n of d){const c=n.index,p=this.getActionType(n.action.type),D=V.includes(n.action.type)?"NODE":"DRIVE";let h=s;if(D==="NODE"){const S=n.action.input;h=S.id||S.targetId||S.srcFolder||s}const y={source:u,metric:"DriveOperations",start:I.fromISO(n.timestampUtcMs),value:1,dimensions:{drive:i.fromString(`ph/drive/${s}/${g}/${m}/${c}`),operation:i.fromString(`ph/drive/operation/${n.action.type}/${n.index}`),target:i.fromString(`ph/drive/target/${D}/${h}`),actionType:i.fromString(`ph/drive/actionType/${p}/${h}`)}};for(r.push(y);r.length>=a;){const S=r.splice(0,a);await this.analyticsStore.addSeriesValues(S)}}r.length>0&&await this.analyticsStore.addSeriesValues(r)}}}async onDisconnect(){}getActionType(e){return $.includes(e)?"CREATED":T.includes(e)?"DUPLICATED":N.includes(e)?"REMOVED":A.includes(e)?"MOVED":"UPDATED"}async clearSource(e){try{await this.analyticsStore.clearSeriesBySource(e,!0)}catch(t){this.logger.error("Failed to clear source",t)}}}const R=o=>e=>[{processor:new b(o.analyticsStore),filter:{branch:["main"],documentId:["*"],scope:["*"],documentType:["powerhouse/document-drive"]}},{processor:new w(o.analyticsStore),filter:{branch:["main"],documentId:["*"],scope:["*"],documentType:["*"]}}];export{w as DocumentAnalyticsProcessor,b as DriveAnalyticsProcessor,R as processorFactory};
|
|
2
|
+
//# sourceMappingURL=index.J5BySxKV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.BxyhGJau.js","sources":["../../../../packages/common/dist/drive-analytics/processor/document-processor.js","../../../../packages/common/dist/drive-analytics/processor/drive-processor.js","../../../../packages/common/dist/drive-analytics/processor/index.js"],"sourcesContent":["import { AnalyticsPath, DateTime, } from \"@powerhousedao/reactor-browser/analytics\";\nimport { childLogger } from \"document-drive\";\nexport class DocumentAnalyticsProcessor {\n analyticsStore;\n logger;\n constructor(analyticsStore, logger = childLogger([\"processor\", \"document-analytics\"])) {\n this.analyticsStore = analyticsStore;\n this.logger = logger;\n //\n }\n async onStrands(strands) {\n if (strands.length === 0) {\n return;\n }\n for (const strand of strands) {\n // skip empty strands\n if (strand.operations.length === 0) {\n continue;\n }\n const firstOp = strand.operations[0];\n const source = AnalyticsPath.fromString(`ph/doc/${strand.driveId}/${strand.documentId}/${strand.branch}/${strand.scope}`);\n if (firstOp.index === 0) {\n await this.clearSource(source);\n }\n const { driveId, documentId, branch, scope } = strand;\n const target = driveId === documentId ? \"DRIVE\" : \"NODE\";\n const CHUNK_SIZE = 50;\n for (let i = 0; i < strand.operations.length; i += CHUNK_SIZE) {\n const chunk = strand.operations.slice(i, i + CHUNK_SIZE);\n const buffer = [];\n for (const operation of chunk) {\n const revision = operation.index;\n const seriesInput = {\n source,\n metric: \"DocumentOperations\",\n start: DateTime.fromISO(operation.timestampUtcMs),\n value: 1,\n dimensions: {\n drive: AnalyticsPath.fromString(`ph/doc/drive/${driveId}/${branch}/${scope}/${revision}`),\n operation: AnalyticsPath.fromString(`ph/doc/operation/${operation.action.type}/${operation.index}`),\n target: AnalyticsPath.fromString(`ph/doc/target/${driveId}/${target}/${documentId}`),\n },\n };\n buffer.push(seriesInput);\n while (buffer.length >= CHUNK_SIZE) {\n const batch = buffer.splice(0, CHUNK_SIZE);\n await this.analyticsStore.addSeriesValues(batch);\n }\n }\n if (buffer.length > 0) {\n await this.analyticsStore.addSeriesValues(buffer);\n }\n }\n }\n }\n async onDisconnect() { }\n async clearSource(source) {\n try {\n await this.analyticsStore.clearSeriesBySource(source, true);\n }\n catch (e) {\n this.logger.error(\"Failed to clear source\", e);\n }\n }\n}\n//# sourceMappingURL=document-processor.js.map","import { AnalyticsPath, DateTime, } from \"@powerhousedao/reactor-browser/analytics\";\nimport { childLogger } from \"document-drive\";\nconst CREATE_NODE_ACTIONS = [\"ADD_FILE\", \"ADD_FOLDER\"];\nconst DUPLICATE_NODE_ACTIONS = [\"COPY_NODE\"];\nconst UPDATE_NODE_ACTIONS = [\"UPDATE_FILE\", \"UPDATE_NODE\"];\nconst MOVE_NODE_ACTIONS = [\"MOVE_NODE\"];\nconst REMOVE_NODE_ACTIONS = [\"DELETE_NODE\"];\nconst NODE_ACTIONS = [\n ...CREATE_NODE_ACTIONS,\n ...DUPLICATE_NODE_ACTIONS,\n ...UPDATE_NODE_ACTIONS,\n ...MOVE_NODE_ACTIONS,\n ...REMOVE_NODE_ACTIONS,\n];\nexport class DriveAnalyticsProcessor {\n analyticsStore;\n logger;\n constructor(analyticsStore, logger = childLogger([\"processor\", \"drive-analytics\"])) {\n this.analyticsStore = analyticsStore;\n this.logger = logger;\n //\n }\n async onStrands(strands) {\n if (strands.length === 0) {\n return;\n }\n for (const strand of strands) {\n // skip empty strands\n if (strand.operations.length === 0) {\n continue;\n }\n const firstOp = strand.operations[0];\n const source = AnalyticsPath.fromString(`ph/drive/${strand.documentId}/${strand.branch}/${strand.scope}`);\n if (firstOp.index === 0) {\n await this.clearSource(source);\n }\n const { documentId: driveId, branch, scope } = strand;\n const CHUNK_SIZE = 50;\n for (let i = 0; i < strand.operations.length; i += CHUNK_SIZE) {\n const chunk = strand.operations.slice(i, i + CHUNK_SIZE);\n const buffer = [];\n for (const operation of chunk) {\n const revision = operation.index;\n const actionType = this.getActionType(operation.action.type);\n const target = NODE_ACTIONS.includes(operation.action.type)\n ? \"NODE\"\n : \"DRIVE\";\n let targetId = driveId;\n if (target === \"NODE\") {\n const operationInput = operation.action.input;\n targetId =\n operationInput.id ||\n operationInput.targetId ||\n operationInput.srcFolder ||\n driveId;\n }\n const seriesInput = {\n source,\n metric: \"DriveOperations\",\n start: DateTime.fromISO(operation.timestampUtcMs),\n value: 1,\n dimensions: {\n drive: AnalyticsPath.fromString(`ph/drive/${driveId}/${branch}/${scope}/${revision}`),\n operation: AnalyticsPath.fromString(`ph/drive/operation/${operation.action.type}/${operation.index}`),\n target: AnalyticsPath.fromString(`ph/drive/target/${target}/${targetId}`),\n actionType: AnalyticsPath.fromString(`ph/drive/actionType/${actionType}/${targetId}`),\n },\n };\n buffer.push(seriesInput);\n while (buffer.length >= CHUNK_SIZE) {\n const batch = buffer.splice(0, CHUNK_SIZE);\n await this.analyticsStore.addSeriesValues(batch);\n }\n }\n if (buffer.length > 0) {\n await this.analyticsStore.addSeriesValues(buffer);\n }\n }\n }\n }\n async onDisconnect() { }\n getActionType(action) {\n if (CREATE_NODE_ACTIONS.includes(action)) {\n return \"CREATED\";\n }\n if (DUPLICATE_NODE_ACTIONS.includes(action)) {\n return \"DUPLICATED\";\n }\n if (REMOVE_NODE_ACTIONS.includes(action)) {\n return \"REMOVED\";\n }\n if (MOVE_NODE_ACTIONS.includes(action)) {\n return \"MOVED\";\n }\n return \"UPDATED\";\n }\n async clearSource(source) {\n try {\n await this.analyticsStore.clearSeriesBySource(source, true);\n }\n catch (e) {\n this.logger.error(\"Failed to clear source\", e);\n }\n }\n}\n//# sourceMappingURL=drive-processor.js.map","import { DocumentAnalyticsProcessor } from \"./document-processor.js\";\nimport { DriveAnalyticsProcessor } from \"./drive-processor.js\";\nexport const processorFactory = (module) => (driveHeader) => {\n return [\n {\n processor: new DriveAnalyticsProcessor(module.analyticsStore),\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n scope: [\"*\"],\n documentType: [\"powerhouse/document-drive\"],\n },\n },\n {\n processor: new DocumentAnalyticsProcessor(module.analyticsStore),\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n scope: [\"*\"],\n documentType: [\"*\"],\n },\n },\n ];\n};\nexport * from \"./document-processor.js\";\nexport * from \"./drive-processor.js\";\n//# sourceMappingURL=index.js.map"],"names":["DocumentAnalyticsProcessor","analyticsStore","logger","childLogger","__publicField","strands","strand","firstOp","source","AnalyticsPath","driveId","documentId","branch","scope","target","CHUNK_SIZE","i","chunk","buffer","operation","revision","seriesInput","DateTime","batch","e","CREATE_NODE_ACTIONS","DUPLICATE_NODE_ACTIONS","UPDATE_NODE_ACTIONS","MOVE_NODE_ACTIONS","REMOVE_NODE_ACTIONS","NODE_ACTIONS","DriveAnalyticsProcessor","actionType","targetId","operationInput","action","processorFactory","module","driveHeader"],"mappings":"4SAEO,MAAMA,CAA2B,CAGpC,YAAYC,EAAgBC,EAASC,EAAY,CAAC,YAAa,oBAAoB,CAAC,EAAG,CAFvFC,EAAA,uBACAA,EAAA,eAEI,KAAK,eAAiBH,EACtB,KAAK,OAASC,CAElB,CACA,MAAM,UAAUG,EAAS,CACrB,GAAIA,E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AAY,CAAC,GAAG,EAChB,MAAO,CAAC,GAAG,EACX,aAAc,CAAC,2BAA2B,CAC1D,CACA,EACQ,CACI,UAAW,IAAIrC,EAA2BqC,EAAO,cAAc,EAC/D,OAAQ,CACJ,OAAQ,CAAC,MAAM,EACf,WAAY,CAAC,GAAG,EAChB,MAAO,CAAC,GAAG,EACX,aAAc,CAAC,GAAG,CAClC,CACA,CACA"}
|
|
1
|
+
{"version":3,"file":"index.J5BySxKV.js","sources":["../../../../packages/common/dist/drive-analytics/processor/document-processor.js","../../../../packages/common/dist/drive-analytics/processor/drive-processor.js","../../../../packages/common/dist/drive-analytics/processor/index.js"],"sourcesContent":["import { AnalyticsPath, DateTime, } from \"@powerhousedao/reactor-browser/analytics\";\nimport { childLogger } from \"document-drive\";\nexport class DocumentAnalyticsProcessor {\n analyticsStore;\n logger;\n constructor(analyticsStore, logger = childLogger([\"processor\", \"document-analytics\"])) {\n this.analyticsStore = analyticsStore;\n this.logger = logger;\n //\n }\n async onStrands(strands) {\n if (strands.length === 0) {\n return;\n }\n for (const strand of strands) {\n // skip empty strands\n if (strand.operations.length === 0) {\n continue;\n }\n const firstOp = strand.operations[0];\n const source = AnalyticsPath.fromString(`ph/doc/${strand.driveId}/${strand.documentId}/${strand.branch}/${strand.scope}`);\n if (firstOp.index === 0) {\n await this.clearSource(source);\n }\n const { driveId, documentId, branch, scope } = strand;\n const target = driveId === documentId ? \"DRIVE\" : \"NODE\";\n const CHUNK_SIZE = 50;\n for (let i = 0; i < strand.operations.length; i += CHUNK_SIZE) {\n const chunk = strand.operations.slice(i, i + CHUNK_SIZE);\n const buffer = [];\n for (const operation of chunk) {\n const revision = operation.index;\n const seriesInput = {\n source,\n metric: \"DocumentOperations\",\n start: DateTime.fromISO(operation.timestampUtcMs),\n value: 1,\n dimensions: {\n drive: AnalyticsPath.fromString(`ph/doc/drive/${driveId}/${branch}/${scope}/${revision}`),\n operation: AnalyticsPath.fromString(`ph/doc/operation/${operation.action.type}/${operation.index}`),\n target: AnalyticsPath.fromString(`ph/doc/target/${driveId}/${target}/${documentId}`),\n },\n };\n buffer.push(seriesInput);\n while (buffer.length >= CHUNK_SIZE) {\n const batch = buffer.splice(0, CHUNK_SIZE);\n await this.analyticsStore.addSeriesValues(batch);\n }\n }\n if (buffer.length > 0) {\n await this.analyticsStore.addSeriesValues(buffer);\n }\n }\n }\n }\n async onDisconnect() { }\n async clearSource(source) {\n try {\n await this.analyticsStore.clearSeriesBySource(source, true);\n }\n catch (e) {\n this.logger.error(\"Failed to clear source\", e);\n }\n }\n}\n//# sourceMappingURL=document-processor.js.map","import { AnalyticsPath, DateTime, } from \"@powerhousedao/reactor-browser/analytics\";\nimport { childLogger } from \"document-drive\";\nconst CREATE_NODE_ACTIONS = [\"ADD_FILE\", \"ADD_FOLDER\"];\nconst DUPLICATE_NODE_ACTIONS = [\"COPY_NODE\"];\nconst UPDATE_NODE_ACTIONS = [\"UPDATE_FILE\", \"UPDATE_NODE\"];\nconst MOVE_NODE_ACTIONS = [\"MOVE_NODE\"];\nconst REMOVE_NODE_ACTIONS = [\"DELETE_NODE\"];\nconst NODE_ACTIONS = [\n ...CREATE_NODE_ACTIONS,\n ...DUPLICATE_NODE_ACTIONS,\n ...UPDATE_NODE_ACTIONS,\n ...MOVE_NODE_ACTIONS,\n ...REMOVE_NODE_ACTIONS,\n];\nexport class DriveAnalyticsProcessor {\n analyticsStore;\n logger;\n constructor(analyticsStore, logger = childLogger([\"processor\", \"drive-analytics\"])) {\n this.analyticsStore = analyticsStore;\n this.logger = logger;\n //\n }\n async onStrands(strands) {\n if (strands.length === 0) {\n return;\n }\n for (const strand of strands) {\n // skip empty strands\n if (strand.operations.length === 0) {\n continue;\n }\n const firstOp = strand.operations[0];\n const source = AnalyticsPath.fromString(`ph/drive/${strand.documentId}/${strand.branch}/${strand.scope}`);\n if (firstOp.index === 0) {\n await this.clearSource(source);\n }\n const { documentId: driveId, branch, scope } = strand;\n const CHUNK_SIZE = 50;\n for (let i = 0; i < strand.operations.length; i += CHUNK_SIZE) {\n const chunk = strand.operations.slice(i, i + CHUNK_SIZE);\n const buffer = [];\n for (const operation of chunk) {\n const revision = operation.index;\n const actionType = this.getActionType(operation.action.type);\n const target = NODE_ACTIONS.includes(operation.action.type)\n ? \"NODE\"\n : \"DRIVE\";\n let targetId = driveId;\n if (target === \"NODE\") {\n const operationInput = operation.action.input;\n targetId =\n operationInput.id ||\n operationInput.targetId ||\n operationInput.srcFolder ||\n driveId;\n }\n const seriesInput = {\n source,\n metric: \"DriveOperations\",\n start: DateTime.fromISO(operation.timestampUtcMs),\n value: 1,\n dimensions: {\n drive: AnalyticsPath.fromString(`ph/drive/${driveId}/${branch}/${scope}/${revision}`),\n operation: AnalyticsPath.fromString(`ph/drive/operation/${operation.action.type}/${operation.index}`),\n target: AnalyticsPath.fromString(`ph/drive/target/${target}/${targetId}`),\n actionType: AnalyticsPath.fromString(`ph/drive/actionType/${actionType}/${targetId}`),\n },\n };\n buffer.push(seriesInput);\n while (buffer.length >= CHUNK_SIZE) {\n const batch = buffer.splice(0, CHUNK_SIZE);\n await this.analyticsStore.addSeriesValues(batch);\n }\n }\n if (buffer.length > 0) {\n await this.analyticsStore.addSeriesValues(buffer);\n }\n }\n }\n }\n async onDisconnect() { }\n getActionType(action) {\n if (CREATE_NODE_ACTIONS.includes(action)) {\n return \"CREATED\";\n }\n if (DUPLICATE_NODE_ACTIONS.includes(action)) {\n return \"DUPLICATED\";\n }\n if (REMOVE_NODE_ACTIONS.includes(action)) {\n return \"REMOVED\";\n }\n if (MOVE_NODE_ACTIONS.includes(action)) {\n return \"MOVED\";\n }\n return \"UPDATED\";\n }\n async clearSource(source) {\n try {\n await this.analyticsStore.clearSeriesBySource(source, true);\n }\n catch (e) {\n this.logger.error(\"Failed to clear source\", e);\n }\n }\n}\n//# sourceMappingURL=drive-processor.js.map","import { DocumentAnalyticsProcessor } from \"./document-processor.js\";\nimport { DriveAnalyticsProcessor } from \"./drive-processor.js\";\nexport const processorFactory = (module) => (driveHeader) => {\n return [\n {\n processor: new DriveAnalyticsProcessor(module.analyticsStore),\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n scope: [\"*\"],\n documentType: [\"powerhouse/document-drive\"],\n },\n },\n {\n processor: new DocumentAnalyticsProcessor(module.analyticsStore),\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n scope: [\"*\"],\n documentType: [\"*\"],\n },\n },\n ];\n};\nexport * from \"./document-processor.js\";\nexport * from \"./drive-processor.js\";\n//# sourceMappingURL=index.js.map"],"names":["DocumentAnalyticsProcessor","analyticsStore","logger","childLogger","__publicField","strands","strand","firstOp","source","AnalyticsPath","driveId","documentId","branch","scope","target","CHUNK_SIZE","i","chunk","buffer","operation","revision","seriesInput","DateTime","batch","e","CREATE_NODE_ACTIONS","DUPLICATE_NODE_ACTIONS","UPDATE_NODE_ACTIONS","MOVE_NODE_ACTIONS","REMOVE_NODE_ACTIONS","NODE_ACTIONS","DriveAnalyticsProcessor","actionType","targetId","operationInput","action","processorFactory","module","driveHeader"],"mappings":"4SAEO,MAAMA,CAA2B,CAGpC,YAAYC,EAAgBC,EAASC,EAAY,CAAC,YAAa,oBAAoB,CAAC,EAAG,CAFvFC,EAAA,uBACAA,EAAA,eAEI,KAAK,eAAiBH,EACtB,KAAK,OAASC,CAElB,CACA,MAAM,UAAUG,EAAS,CACrB,GAAIA,EAAQ,SAAW,EAGvB,UAAWC,KAAUD,EAAS,CAE1B,GAAIC,EAAO,WAAW,SAAW,EAC7B,SAEJ,MAAMC,EAAUD,EAAO,WAAW,CAAC,EAC7BE,EAASC,EAAc,WAAW,UAAUH,EAAO,OAAO,IAAIA,EAAO,UAAU,IAAIA,EAAO,MAAM,IAAIA,EAAO,KAAK,EAAE,EACpHC,EAAQ,QAAU,GAClB,MAAM,KAAK,YAAYC,CAAM,EAEjC,KAAM,CAAE,QAAAE,EAAS,WAAAC,EAAY,OAAAC,EAAQ,MAAAC,CAAK,EAAKP,EACzCQ,EAASJ,IAA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 as ot,b$ as Pt,c0 as ha,c1 as Mt,c2 as Ii,c3 as Ls,c4 as $t,c5 as Ps,c6 as Ie,c7 as _r,c8 as Ll,c9 as Pl,ca as we,cb as k,cc as ma,cd as A,ce,cf as $l,cg as $s,ch as yr,ci as Yt,cj as hn,ck as Fl,cl as dt,cm as q,cn as at,co as Bl,cp as Hl,cq as Zn,cr as Sr,cs as ga,ct as Ul,cu as Wl,cv as zl,cw as jl,cx as ql,cy as wi,cz as Fs,cA as ki,cB as Bs,cC as Hs,cD as _a,cE as Qn,cF as Ri,cG as Ue,cH as Vt,cI as Us,cJ as ae,cK as ct,cL as ya,cM as Sa,cN as ba,cO as os,cP as Ea,cQ as va,cR as Gl,cS as as,cT as Ft,cU as bn,cV as Ws,cW as Ci,cX as Yl,cY as Ot,cZ as zs,c_ as Vl,c$ as Kl,d0 as Xl,d1 as qe,d2 as er,d3 as br,d4 as Ta,d5 as Jl,d6 as xi,d7 as Ai,d8 as Zl,d9 as cs,da as Ql,db as ed,dc as Mi,dd as td}from"./main.
|
|
1
|
+
import{bP as Nl,bQ as pn,bR as Dl,bS as Lt,bT as Ds,bU as m,bV as je,bW as W,bX as pa,bY as ie,bZ as Ti,b_ as ot,b$ as Pt,c0 as ha,c1 as Mt,c2 as Ii,c3 as Ls,c4 as $t,c5 as Ps,c6 as Ie,c7 as _r,c8 as Ll,c9 as Pl,ca as we,cb as k,cc as ma,cd as A,ce,cf as $l,cg as $s,ch as yr,ci as Yt,cj as hn,ck as Fl,cl as dt,cm as q,cn as at,co as Bl,cp as Hl,cq as Zn,cr as Sr,cs as ga,ct as Ul,cu as Wl,cv as zl,cw as jl,cx as ql,cy as wi,cz as Fs,cA as ki,cB as Bs,cC as Hs,cD as _a,cE as Qn,cF as Ri,cG as Ue,cH as Vt,cI as Us,cJ as ae,cK as ct,cL as ya,cM as Sa,cN as ba,cO as os,cP as Ea,cQ as va,cR as Gl,cS as as,cT as Ft,cU as bn,cV as Ws,cW as Ci,cX as Yl,cY as Ot,cZ as zs,c_ as Vl,c$ as Kl,d0 as Xl,d1 as qe,d2 as er,d3 as br,d4 as Ta,d5 as Jl,d6 as xi,d7 as Ai,d8 as Zl,d9 as cs,da as Ql,db as ed,dc as Mi,dd as td}from"./main.D9OoNJWh.js";import{de as Hv,df as Uv,dg as Wv,dh as zv,di as jv,dj as qv,dk as Gv,dl as Yv,dm as Vv,dn as Kv,dp as Xv,dq as Jv,dr as Zv,ds as Qv,dt as eT,du as tT,dv as nT}from"./main.D9OoNJWh.js";import*as ge from"react";import"react/jsx-runtime";import"react-dom/client";import"react-dom";var jr={exports:{}},U={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -365,4 +365,4 @@ ${t==="system"?`
|
|
|
365
365
|
`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>oE(u,o,r,t)))}),e}function oE(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Ql(t,e,r),e}function Sn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function aE(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Sn(n);return s=>r.then(i=>s(i.transaction(t,"readwrite").objectStore(t)))}function pl(e){return Sn(e.getAllKeys())}function cE(e,t,n){return e(r=>pl(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),Sn(r.transaction)}))}function uE(e){return e(t=>pl(t).then(n=>{if(n.length!==0)return Sn(t.get(n[0])).then(r=>(t.delete(n[0]),Sn(t.transaction).then(()=>r)))}))}function lE(e){let t;function n(){return t==null&&(t=aE(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async r=>{try{const s=await La(r,e.textEncoder);await cE(n(),s,e.maxQueueSize||30)}catch{}},pop:async()=>{try{const r=await uE(n());if(r)return Ud(r,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch{}}}}function dE(e){return t=>e({...t,createStore:lE})}function bv(e){return dE(Yf(e))}const oa=1e6,Jn=String(0),fE="main";let hl="",ml="",gl="",Ms=I.navigator&&I.navigator.userAgent||"",_l="";const pE=I.navigator&&I.navigator.language||I.navigator&&I.navigator.languages&&I.navigator.languages[0]||"";function hE(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const aa=I.navigator&&I.navigator.userAgentData;hE(aa)&&aa.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(hl=e.platform||"",gl=e.architecture||"",_l=e.model||"",ml=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Ms=`${t.brand} ${t.version}`}}).catch(e=>{});function mE(e){return!("thread_metadata"in e)}function gE(e){return mE(e)?SE(e):e}function _E(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&$&&m.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function yE(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=_E(r),i=gE(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Date.now()),a=typeof r.timestamp=="number"?r.timestamp*1e3:Date.now();return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||ed,runtime:{name:"javascript",version:I.navigator.userAgent},os:{name:hl,version:ml,build_number:Ms},device:{locale:pE,model:_l,manufacturer:Ms,architecture:gl,is_emulator:!1},debug_meta:{images:vE(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||Pt(),trace_id:s,active_thread_id:Jn,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function yl(e){return e.op==="pageload"}function SE(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Jn]:{name:fE}}};if(!e.samples.length)return r;const s=e.samples[0].timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:ae||0,o=i-(ae||i);for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((c.timestamp+o-s)*oa).toFixed(0),stack_id:t,thread_id:Jn};continue}let u=e.stacks[c.stackId];const l=[];for(;u;){l.push(u.frameId);const f=e.frames[u.frameId];r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:f.name,abs_path:typeof f.resourceId=="number"?e.resources[f.resourceId]:void 0,lineno:f.line,colno:f.column}),u=u.parentId===void 0?void 0:e.stacks[u.parentId]}const d={elapsed_since_start_ns:((c.timestamp+o-s)*oa).toFixed(0),stack_id:n,thread_id:Jn};r.stacks[n]=l,r.samples[a]=d,n++}return r}function bE(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function EE(e){const t=[];return Bt(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++){const i=n[s];i&&i.contexts&&i.contexts.profile&&i.contexts.profile.profile_id&&t.push(n[s])}}),t}const ca=new WeakMap;function vE(e){const t=W._sentryDebugIds;if(!t)return[];const n=A(),r=n&&n.getOptions(),s=r&&r.stackParser;if(!s)return[];let i;const o=ca.get(s);o?i=o:(i=new Map,ca.set(s,i));const a=Object.keys(t).reduce((u,l)=>{let d;const f=i.get(l);f?d=f:(d=s(l),i.set(l,d));for(let p=d.length-1;p>=0;p--){const h=d[p],_=h&&h.filename;if(h&&_){u[_]=t[l];break}}return u},{}),c=[];for(const u of e)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]});return c}function TE(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?($&&m.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?($&&m.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function IE(e){return e.samples.length<2?($&&m.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:($&&m.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Sl=!1;const bl=3e4;function wE(e){return typeof e=="function"}function kE(){const e=I.Profiler;if(!wE(e)){$&&m.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(bl/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{$&&(m.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),m.log("[Profiling] Disabling profiling for current user session.")),Sl=!0}}function Os(e){if(Sl)return $&&m.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return $&&m.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=A(),n=t&&t.getOptions();if(!n)return $&&m.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return TE(r)?r?(r===!0?!0:Math.random()<r)?!0:($&&m.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):($&&m.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):($&&m.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function RE(e,t,n,r){return IE(n)?yE(e,t,n,r):null}const et=new Map;function CE(){return et.size}function xE(e){const t=et.get(e);return t&&et.delete(e),t}function AE(e,t){if(et.set(e,t),et.size>30){const n=et.keys().next().value;et.delete(n)}}function Ev(e){return e?Os(e)?Ns(e):e:($&&m.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function Ns(e){let t;yl(e)&&(t=at()*1e3);const n=kE();if(!n)return e;$&&m.log(`[Profiling] started profiling transaction: ${q(e).description}`);const r=Pt();async function s(){return!e||!n?null:n.stop().then(c=>(i&&(I.clearTimeout(i),i=void 0),$&&m.log(`[Profiling] stopped profiling of transaction: ${q(e).description}`),c?(AE(r,c),null):($&&m.log(`[Profiling] profiler returned null profile for: ${q(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(c=>($&&m.log("[Profiling] error while stopping profiler:",c),null))}let i=I.setTimeout(()=>{$&&m.log("[Profiling] max profile duration elapsed, stopping profiling for:",q(e).description),s()},bl);const o=e.end.bind(e);function a(){return e?(s().then(()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),o()},()=>{o()}),e):o()}return e.end=a,e}const El="BrowserProfiling",ME=(()=>({name:El,setupOnce(){},setup(e){const n=ce().getTransaction();if(n&&yl(n)&&Os(n)&&Ns(n),typeof e.on!="function"){m.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}e.on("startTransaction",r=>{Os(r)&&Ns(r)}),e.on("beforeEnvelope",r=>{if(!CE())return;const s=EE(r);if(!s.length)return;const i=[];for(const o of s){const a=o&&o.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){$&&m.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!c){$&&m.log("[Profiling] cannot find profile for a transaction without a profile context");continue}a&&a.profile&&delete a.profile;const l=xE(c);if(!l){$&&m.log(`[Profiling] Could not retrieve profile for transaction: ${c}`);continue}const d=RE(c,u,l,o);d&&i.push(d)}bE(r,i)})}})),OE=ME,vv=Q(El,OE);let vl={};I.Sentry&&I.Sentry.Integrations&&(vl=I.Sentry.Integrations);const Tv={...vl,...Lp,...cg};function Iv(e){const t={...e};cc(t,"react"),og(t)}const Tl="ui.react.render",NE="ui.react.update",Il="ui.react.mount",ua="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",DE="unknown";class wl extends ge.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=nt({name:`<${n}>`,onlyIfParent:!0,op:Il,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(s=>t[s]!==this.props.updateProps[s]);if(r.length>0){const s=at();this._updateSpan=Mi(this._mountSpan,()=>nt({name:`<${this.props.name}>`,onlyIfParent:!0,op:NE,origin:"auto.ui.react.profiler",startTimestamp:s,attributes:{"ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=at(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const s=q(this._mountSpan).timestamp;Mi(this._mountSpan,()=>{const i=nt({onlyIfParent:!0,name:`<${n}>`,op:Tl,origin:"auto.ui.react.profiler",startTimestamp:s,attributes:{"ui.component_name":n}});i&&i.end(t)})}}render(){return this.props.children}}wl.__initStatic();function wv(e,t){const n=t&&t.name||e.displayName||e.name||DE,r=s=>ge.createElement(wl,{...t,name:n,updateProps:s,__self:this,__source:{fileName:ua,lineNumber:159}},ge.createElement(e,{...s,__self:this,__source:{fileName:ua,lineNumber:160}}));return r.displayName=`profiler(${n})`,Er(r,e),r}function kv(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=ge.useState(()=>{if(!(t&&t.disabled))return nt({name:`<${e}>`,onlyIfParent:!0,op:Il,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":e}})});ge.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=q(n).timestamp,s=at(),i=nt({name:`<${e}>`,onlyIfParent:!0,op:Tl,origin:"auto.ui.react.profiler",startTimestamp:r,attributes:{"ui.component_name":e}});i&&i.end(s)}}),[])}const mi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,la="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function LE(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const PE="unknown",da={componentStack:null,error:null,eventId:null};function $E(e,t){const n=new WeakMap;function r(s,i){if(!n.has(s)){if(s.cause)return n.set(s,!0),r(s.cause,i);s.cause=i}}r(e,t)}class gi extends ge.Component{constructor(t){super(t),gi.prototype.__init.call(this),this.state=da,this._openFallbackReportDialog=!0;const n=A();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&_o({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:s,showDialog:i,dialogOptions:o}=this.props;dt(a=>{if(LE(ge.version)&&Ot(t)){const u=new Error(t.message);u.name=`React ErrorBoundary ${t.name}`,u.stack=n,$E(t,u)}r&&r(a,t,n);const c=bn(t,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});s&&s(t,n,c),i&&(this._lastEventId=c,this._openFallbackReportDialog&&_o({...o,eventId:c})),this.setState({error:t,componentStack:n,eventId:c})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&s(t,n,r)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(da)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let s;return typeof t=="function"?s=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):s=t,ge.isValidElement(s)?s:(t&&mi&&m.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function Rv(e,t){const n=e.displayName||e.name||PE,r=s=>ge.createElement(gi,{...t,__self:this,__source:{fileName:la,lineNumber:240}},ge.createElement(e,{...s,__self:this,__source:{fileName:la,lineNumber:241}}));return r.displayName=`errorBoundary(${n})`,Er(r,e),r}const FE="redux.action",BE="info",HE={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function Cv(e){const t={...HE,...e};return n=>(r,s)=>(t.attachReduxState&&td().addEventProcessor((o,a)=>{try{o.type===void 0&&o.contexts.state.state.type==="redux"&&(a.attachments=[...a.attachments||[],{filename:"redux_state.json",data:JSON.stringify(o.contexts.state.state.value)}])}catch{}return o}),n((o,a)=>{const c=r(o,a),u=ce(),l=t.actionTransformer(a);typeof l<"u"&&l!==null&&u.addBreadcrumb({category:FE,data:l,type:BE});const d=t.stateTransformer(c);if(typeof d<"u"&&d!==null){const p=A(),h=p&&p.getOptions(),_=h&&h.normalizeDepth||3,b={state:{type:"redux",value:d}};ot(b,"__sentry_override_normalization_depth__",3+_),u.setContext("state",b)}else u.setContext("state",null);const{configureScopeWithState:f}=t;return typeof f=="function"&&f(u,c),c},s))}function xv(e){const t=xr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:s,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a);const c=d=>{kn(a,d)},u=d=>{Rn(a,d)},l=UE(n,r,s);l(c,i,!1),l(u,!1,o)}}}function UE(e,t,n){return(r,s=!0,i=!0)=>{let o,a;s&&I&&I.location&&fa(t,I.location,n,(c,u="url")=>{a=c,o=r({name:a,attributes:{[ve]:"pageload",[me]:"auto.pageload.react.reactrouter_v3",[te]:u}})}),i&&e.listen&&e.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&(o&&o.end(),fa(t,c,n,(u,l="url")=>{a=u;const d={[ve]:"navigation",[me]:"auto.navigation.react.reactrouter_v3",[te]:l};o=r({name:a,attributes:d})}))})}}function fa(e,t,n,r){let s=t.pathname;n({location:t,routes:e},(i,o,a)=>{if(i||!a)return r(s);const c=WE(a.routes||[]);return c.length===0||c==="/*"?r(s):(s=c,r(s,"route"))})}function WE(e){if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(r=>!!r.path);let n=-1;for(let r=t.length-1;r>=0;r--){const s=t[r];if(s.path&&s.path.startsWith("/")){n=r;break}}return t.slice(n).filter(({path:r})=>!!r).map(({path:r})=>r).join("")}const zE="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx";let At;function Av(e){const t=xr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a);const c=d=>{kn(a,d)},u=d=>{Rn(a,d)},l=jE(n,r,s);l(c,i,!1),l(u,!1,o)}}}function Mv(e){const t=xr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s}=e;return{...t,afterAllSetup(i){t.afterAllSetup(i);const o=u=>{kn(i,u)},a=u=>{Rn(i,u)},c=qE(n,r,s);c(o,e.instrumentPageLoad,!1),c(a,!1,e.instrumentNavigation)}}}function jE(e,t,n){return kl(e,"reactrouter_v4",t,n)}function qE(e,t,n){return kl(e,"reactrouter_v5",t,n)}function kl(e,t,n=[],r){function s(){if(e&&e.location)return e.location.pathname;if(I&&I.location)return I.location.pathname}function i(o){if(n.length===0||!r)return[o,"url"];const a=Rl(n,o,r);for(let c=0;c<a.length;c++)if(a[c].match.isExact)return[a[c].match.path,"route"];return[o,"url"]}return(o,a=!0,c=!0)=>{const u=s();if(a&&u){const[l,d]=i(u);At=o({name:l,attributes:{[ve]:"pageload",[me]:`auto.pageload.react.${t}`,[te]:d}})}c&&e.listen&&e.listen((l,d)=>{if(d&&(d==="PUSH"||d==="POP")){At&&At.end();const[f,p]=i(l.pathname);At=o({name:f,attributes:{[ve]:"navigation",[me]:`auto.navigation.react.${t}`,[te]:p}})}})}}function Rl(e,t,n,r=[]){return e.some(s=>{const i=s.path?n(t,s):r.length?r[r.length-1].match:GE(t);return i&&(r.push({route:s,match:i}),s.routes&&Rl(s.routes,t,n,r)),!!i}),r}function GE(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function Ov(e){const t=e.displayName||e.name,n=r=>{if(r&&r.computedMatch&&r.computedMatch.isExact){const s=r.computedMatch.path,i=YE();i&&(i.updateName(s),i.setAttribute(te,"route"))}return ge.createElement(e,{...r,__self:this,__source:{fileName:zE,lineNumber:279}})};return n.displayName=`sentryRoute(${t})`,Er(n,e),n}function YE(){if(At)return At;const e=Xt(),t=e?Zn(e):void 0;if(!t)return;const n=q(t).op;return n==="navigation"||n==="pageload"?t:void 0}const Cl="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let Dt,rt,st,it,fn,lt,Gt,Fr,Ze=!1;function Nv(e){const t=xr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:s,createRoutesFromChildren:i,matchRoutes:o,stripBasename:a,instrumentPageLoad:c=!0,instrumentNavigation:u=!0}=e;return{...t,afterAllSetup(l){t.afterAllSetup(l);const d=p=>{Rn(l,p)},f=I&&I.location&&I.location.pathname;c&&f&&kn(l,{name:f,attributes:{[te]:"url",[ve]:"pageload",[me]:"auto.pageload.react.reactrouter_v6"}}),rt=n,st=r,it=s,lt=o,fn=i,Ze=a||!1,Gt=d,Fr=u}}}function Dv(e,t,n,r,s,i){return(o,a=!0,c=!0)=>{const u=I&&I.location&&I.location.pathname;a&&u&&(Dt=o({name:u,attributes:{[te]:"url",[ve]:"pageload",[me]:"auto.pageload.react.reactrouter_v6"}})),rt=e,st=t,it=n,lt=s,fn=r,Ze=i||!1,Gt=o,Fr=c}}function is(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function xl(e,t,n,r=""){if(!e||e.length===0)return[Ze?is(t.pathname,r):t.pathname,"url"];let s="";if(n)for(let i=0;i<n.length;i++){const o=n[i],a=o.route;if(a){if(a.index)return[Ze?is(o.pathname,r):o.pathname,"route"];const c=a.path;if(c){const u=c[0]==="/"||s[s.length-1]==="/"?c:`/${c}`;if(s+=u,r+o.pathname===t.pathname)return zi(s)!==zi(o.pathname)&&s.slice(-2)!=="/*"?[(Ze?"":r)+u,"route"]:[(Ze?"":r)+s,"route"]}}}return[Ze?is(t.pathname,r):t.pathname,"url"]}function _i(e,t,n,r,s){const i=Array.isArray(r)?r:lt(n,t,s);if(e&&i){const[o,a]=xl(n,t,i,s);e.updateName(o),e.setAttribute(te,a)}}function yi(e,t,n,r,s){const i=Array.isArray(r)?r:lt(t,e,s);if(Fr&&(n==="PUSH"||n==="POP")&&i){Dt&&Dt.end();const[o,a]=xl(t,e,i,s);Dt=Gt({name:o,attributes:{[te]:a,[ve]:"navigation",[me]:"auto.navigation.react.reactrouter_v6"}})}}function Lv(e){if(!rt||!st||!it||!fn||!lt||!Gt)return mi&&m.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
|
|
366
366
|
useEffect: ${rt}. useLocation: ${st}. useNavigationType: ${it}.
|
|
367
367
|
createRoutesFromChildren: ${fn}. matchRoutes: ${lt}. customStartTransaction: ${Gt}.`),e;let t=!0;const n=r=>{const s=st(),i=it();return rt(()=>{const o=fn(r.children);t?(_i(Si(),s,o),t=!1):yi(s,o,i)},[s,i]),ge.createElement(e,{...r,__self:this,__source:{fileName:Cl,lineNumber:329}})};return Er(n,e),n}function Pv(e){if(!rt||!st||!it||!lt||!Gt)return mi&&m.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let t=!0;const n=r=>{const{routes:s,locationArg:i}=r,o=e(s,i),a=st(),c=it(),u=typeof i=="string"||i&&i.pathname?i:a;return rt(()=>{const l=typeof u=="string"?{pathname:u}:u;t?(_i(Si(),l,s),t=!1):yi(l,s,c)},[c,u]),o};return(r,s)=>ge.createElement(n,{routes:r,locationArg:s,__self:this,__source:{fileName:Cl,lineNumber:386}})}function $v(e){return function(t,n){const r=e(t,n),s=n&&n.basename,i=Si();return r.state.historyAction==="POP"&&i&&_i(i,r.state.location,t,void 0,s),r.subscribe(o=>{const a=o.location;Fr&&(o.historyAction==="PUSH"||o.historyAction==="POP")&&yi(a,t,o.historyAction,void 0,s)}),r}}function Si(){if(Dt)return Dt;const e=Xt(),t=e?Zn(e):void 0;if(!t)return;const n=q(t).op;return n==="navigation"||n==="pageload"?t:void 0}export{km as Breadcrumbs,Jh as BrowserClient,vv as BrowserProfilingIntegration,uv as BrowserTracing,Lm as Dedupe,gi as ErrorBoundary,$r as Feedback,Ep as FunctionToString,Hm as GlobalHandlers,Ym as HttpContext,Hv as Hub,lp as InboundFilters,Tv as Integrations,Jm as LinkedErrors,av as ModuleMetadata,wl as Profiler,Lr as Replay,yv as ReplayCanvas,Ri as SDK_VERSION,ve as SEMANTIC_ATTRIBUTE_SENTRY_OP,me as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,It as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,te as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Uv as Scope,eg as TryCatch,I as WINDOW,qe as addBreadcrumb,Df as addEventProcessor,ql as addGlobalEventProcessor,sv as addIntegration,Ka as addTracingExtensions,Hc as breadcrumbsIntegration,eu as browserApiErrorsIntegration,OE as browserProfilingIntegration,xr as browserTracingIntegration,Ib as captureConsoleIntegration,br as captureEvent,bn as captureException,cs as captureMessage,Ai as captureSession,mv as captureUserFeedback,dm as chromeStackLineParser,Wv as close,zv as configureScope,sE as contextLinesIntegration,rv as continueTrace,Cv as createReduxEnhancer,ic as createTransport,Kh as createUserFeedbackEnvelope,Rb as debugIntegration,xb as dedupeIntegration,sg as defaultIntegrations,or as defaultRequestInstrumentationOptions,Tm as defaultStackLineParsers,Im as defaultStackParser,jv as endSession,qh as eventFromException,Gh as eventFromMessage,$c as exceptionFromError,Db as extraErrorDataIntegration,ZE as extractTraceparentData,Sv as feedbackIntegration,qv as flush,fv as forceLoad,hc as functionToStringIntegration,mm as geckoStackLineParser,Xt as getActiveSpan,Ne as getActiveTransaction,A as getClient,we as getCurrentHub,ce as getCurrentScope,ig as getDefaultIntegrations,Gv as getHubFromCarrier,_v as getReplay,Ha as getSpanStatusFromHttpCode,Gc as globalHandlersIntegration,qb as httpClientIntegration,Xc as httpContextIntegration,fc as inboundFiltersIntegration,Iv as init,Dc as instrumentOutgoingRequests,Yv as isInitialized,Vv as lastEventId,Zc as linkedErrorsIntegration,bv as makeBrowserOfflineTransport,em as makeFetchTransport,Kv as makeMain,iv as makeMultiplexedTransport,nm as makeXHRTransport,cv as metrics,op as moduleMetadataIntegration,pv as onLoad,Ev as onProfilingStartRouteTransaction,lv as opera10StackLineParser,dv as opera11StackLineParser,ov as parameterize,xv as reactRouterV3BrowserTracingIntegration,UE as reactRouterV3Instrumentation,Av as reactRouterV4BrowserTracingIntegration,jE as reactRouterV4Instrumentation,Mv as reactRouterV5BrowserTracingIntegration,qE as reactRouterV5Instrumentation,Nv as reactRouterV6BrowserTracingIntegration,Dv as reactRouterV6Instrumentation,qS as replayCanvasIntegration,gv as replayIntegration,Bb as reportingObserverIntegration,Ub as rewriteFramesIntegration,ob as sendFeedback,zb as sessionTimingIntegration,Zl as setContext,Wf as setCurrentClient,Xv as setExtra,Jv as setExtras,qs as setHttpStatus,cf as setMeasurement,Zv as setTag,Qv as setTags,eT as setUser,_o as showReportDialog,QE as spanStatusfromHttpCode,Rn as startBrowserTracingNavigationSpan,kn as startBrowserTracingPageLoadSpan,nt as startInactiveSpan,xi as startSession,tv as startSpan,nv as startSpanManual,tT as startTransaction,ev as trace,kv as useProfiler,ym as winjsStackLineParser,Mi as withActiveSpan,Rv as withErrorBoundary,nT as withIsolationScope,wv as withProfiler,dt as withScope,Lv as withSentryReactRouterV6Routing,Ov as withSentryRouting,hv as wrap,$v as wrapCreateBrowserRouter,Pv as wrapUseRoutes};
|
|
368
|
-
//# sourceMappingURL=index.
|
|
368
|
+
//# sourceMappingURL=index.OK3T5arx.js.map
|