"use strict";(()=>{var e={};e.id=991,e.ids=[991],e.modules={58097:e=>{e.exports=require("@sentry/nextjs")},20145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9375:(e,t)=>{Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},24168:(e,t,n)=>{let r;n.r(t),n.d(t,{config:()=>_,default:()=>P,routeModule:()=>A});var o={};n.r(o),n.d(o,{config:()=>f,default:()=>c});var a=n(2374),i=n(53764),s=n(9375);n(21132);var u=n(58097),d=Object.freeze({__proto__:null,default:async function(e,t){if(!e.headers["x-echo-url"])return t.status(404).send("No URL provided");try{let n=await fetch(`${e.headers["x-echo-url"]}?action=discover`,{headers:{"Content-Type":"application/json"}}),r=await n.json();if(!n.ok)return t.status(n.status||500).json(r);t.json(r.workflows)}catch(e){t.status(e.status||500).send(e.message||"Error occurred")}}});"default"in d&&"function"==typeof d.default?r=d.default:"function"==typeof d&&(r=d);let l=d.config||{},f={...l,api:{...l.api,externalResolver:!0}},p=r;p&&(p=u.wrapApiHandlerWithSentry(p,"/api/workflows"));let c=p,P=(0,s.l)(o,"default"),_=(0,s.l)(o,"config"),A=new a.PagesAPIRouteModule({definition:{kind:i.x.PAGES_API,page:"/api/workflows",pathname:"/api/workflows",bundlePath:"",filename:""},userland:o})},21132:(e,t,n)=>{var r=n(58097),o="undefined"!=typeof global?global:"undefined"!=typeof self?self:{};o.__sentryRewritesTunnelPath__="/monitoring",o.SENTRY_RELEASE={id:"lOFvnGj-jr86LYVTnaqKX"},o.__sentryBasePath=void 0,o.__rewriteFramesDistDir__=".next",r.init({dsn:"https://bfbf663082d3a9a5d38009fae912bd83@o1161119.ingest.us.sentry.io/4506894602076160",enabled:!0,tracesSampleRate:1,environment:"production",debug:!1})},53764:(e,t)=>{var n;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return n}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(n||(n={}))},2374:(e,t,n)=>{e.exports=n(20145)}};var t=require("../../webpack-api-runtime.js");t.C(e);var n=t(t.s=24168);module.exports=n})();