PageSourceSearch

https://app.withfulcrum.com/_next/static/chunks/2d9w3h3irxjhg.js

js withfulcrum.com collected 2026-10-05 01:48:22 UTC 419,961 bytes, 15 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66104,636235,e=>{"use strict";let t;function i(e){return e[0]??{}}class n extends Error{constructor(...e){super(...e),this.name="AbortError"}}function r(e){let t;return()=>{if(t)return t.result;let i=e();return t={result:i},i}}function a(){return globalThis["__@orpc/[email protected]/otel/config__"]}function o(e,t={},i){let n=a()?.tracer;return n?.startSpan(e,t,i)}function s(e,t,i={}){if(!e)return;let n=function(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return"code"in e&&("string"==typeof e.code||"number"==typeof e.code)&&(t.code=e.code),t}return{message:String(e)}}(t);e.recordException(n),i.signal?.aborted&&i.signal.reason===t||e.setStatus({code:2,message:n.message})}async function l({name:e,context:t,...i},n){let r=a()?.tracer;if(!r)return n();let o=async e=>{try{return await n(e)}catch(t){throw s(e,t,i),t}finally{e.end()}};return t?r.startActiveSpan(e,i,t,o):r.startActiveSpan(e,i,o)}async function c(e,t){let i=a();if(!e||!i)return t();let n=i.trace.setSpan(i.context.active(),e);return i.context.with(n,t)}class d{openIds=new Set;queues=new Map;waiters=new Map;get length(){return this.openIds.size}get waiterIds(){return Array.from(this.waiters.keys())}hasBufferedItems(e){return!!this.queues.get(e)?.length}open(e){this.openIds.add(e)}isOpen(e){return this.openIds.has(e)}push(e,t){this.assertOpen(e);let i=this.waiters.get(e);if(i?.length)i.shift()[0](t),0===i.length&&this.waiters.delete(e);else{let i=this.queues.get(e);i?i.push(t):this.queues.set(e,[t])}}async pull(e){this.assertOpen(e);let t=this.queues.get(e);if(t?.length){let i=t.shift();return 0===t.length&&this.queues.delete(e),i}return new Promise((t,i)=>{let n=this.waiters.get(e),r=[t,i];n?n.push(r):this.waiters.set(e,[r])})}close({id:e,reason:t}={}){if(void 0===e){this.waiters.forEach((e,i)=>{let r=t??new n(`[AsyncIdQueue] Queue[${i}] was closed or aborted while waiting for pulling.`);e.forEach(([,e])=>e(r))}),this.waiters.clear(),this.openIds.clear(),this.queues.clear();return}let i=t??new n(`[AsyncIdQueue] Queue[${e}] was closed or aborted while waiting for pulling.`);this.waiters.get(e)?.forEach(([,e])=>e(i)),this.waiters.delete(e),this.openIds.delete(e),this.queues.delete(e)}assertOpen(e){if(!this.isOpen(e))throw Error(`[AsyncIdQueue] Cannot access queue[${e}
1] because it is not open or aborted.`)}}let u=Symbol.for("asyncDispose"),m=Symbol.asyncDispose??u;class p{#e=!1;#t=!1;#i;#n;constructor(e,t){this.#i=t,this.#n=function(e){let t=Promise.resolve();return(...i)=>t=t.catch(()=>{}).then(()=>e(...i))}(async()=>{if(this.#e)return{done:!0,value:void 0};try{let t=await e();return t.done&&(this.#e=!0),t}catch(e){throw this.#e=!0,e}finally{this.#e&&!this.#t&&(this.#t=!0,await this.#i("next"))}})}next(){return this.#n()}async return(e){return this.#e=!0,this.#t||(this.#t=!0,await this.#i("return")),{done:!0,value:e}}async throw(e){throw this.#e=!0,this.#t||(this.#t=!0,await this.#i("throw")),e}async [m](){this.#e=!0,this.#t||(this.#t=!0,await this.#i("dispose"))}[Symbol.asyncIterator](){return this}}function E(e){return I(e)?Object.getPrototypeOf(e)?.constructor:null}function g(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function I(e){return!!e&&("object"==typeof e||"function"==typeof e)}let b=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;e.s(["AbortError",0,n,"AsyncIteratorClass",0,p,"ORPC_NAME",0,"orpc","asyncIteratorWithSpan",0,function({name:e,...t},i){let n;return new p(async()=>{n??=o(e);try{let e=await c(n,()=>i.next());return n?.addEvent(e.done?"completed":"yielded"),e}catch(e){throw s(n,e,t),e}},async e=>{try{"next"!==e&&await c(n,()=>i.return?.())}catch(e){throw s(n,e,t),e}finally{n?.end()}})},"get",0,function(e,t){let i=e;for(let e of t){if(!I(i))return;i=i[e]}return i},"getConstructor",0,E,"getGlobalOtelConfig",0,a,"intercept",0,function(e,t,i){let n=(t,r)=>{let a=e[r];return a?a({...t,next:(e=t)=>n(e,r+1)}):i(t)};return n(t,0)},"isAsyncIteratorObject",0,function(e){return!!e&&"object"==typeof e&&"next"in e&&"function"==typeof e.next&&Symbol.asyncIterator in e&&"function"==typeof e[Symbol.asyncIterator]},"isObject",0,g,"isPropertyKey",0,function(e){let t=typeof e;return"string"===t||"number"===t||"symbol"===t},"isTypescriptObject",0,I,"once",0,r,"parseEmptyableJSON",0,function(e){if(e)return JSON.parse(e)},"preventNativeAwait",0,function e(t){return new Proxy(t,{get(t,i,n){let r=Reflect.get(t,i,n);return"then"!==i||"function"!=typeof r?r:new Proxy(r,{apply(i,n,r){if(2!==r.length||r.some(e=>{var t;return!("function"==typeof(t=e)&&b.test(t.toString()))}))return Reflect.apply(i,n,r);let a=!0;r[0].call(n,e(new Proxy(t,{get:(e,t,i)=>{if(a&&"then"===t){a=!1;return}return Reflect.get(e,t,i)}})))}})}})},"replicateAsyncIterator",0,function(e,t){let i=new d,n=Array.from({length:t},(e,t)=>t.toString()),a=!1,o=r(async()=>{try{for(;;){let t=await e.next();if(n.forEach(e=>{i.isOpen(e)&&i.push(e,{next:t})}),t.done)break}}catch(e){n.forEach(t=>{i.isOpen(t)&&i.push(t,{error:e})})}finally{a=!0}});return n.map(t=>(i.open(t),new p(async()=>{o();let e=await i.pull(t);if(e.next)return e.next;throw e.error},async n=>{i.close({id:t}),"next"===n||i.length||a||(a=!0,await e?.return?.())})))},"resolveMaybeOptionalOptions",0,i,"runInSpanContext",0,c,"runWithSpan",0,l,"setSpanError",0,s,"startSpan",0,o,"stringifyJSON",0,function(e){return JSON.stringify(e)},"toArray",0,function(e){return Array.isArray(e)?e:null==e?[]:[e]},"tryDecodeURIComponent",0,function(e){try{return decodeURIComponent(e)}catch{return e}},"value",0,function(e,...t){return"function"==typeof e?e(...t):e}],636235);let _=new Set(["bind","valueOf","toString","toJSON"]),z={BAD_REQUEST:{status:400,message:"Bad Request"},UNAUTHORIZED:{status:401,message:"Unauthorized"},FORBIDDEN:{status:403,message:"Forbidden"},NOT_FOUND:{status:404,message:"Not Found"},METHOD_NOT_SUPPORTED:{status:405,message:"Method Not Supported"},NOT_ACCEPTABLE:{status:406,message:"Not Acceptable"},TIMEOUT:{status:408,message:"Request Timeout"},CONFLICT:{status:409,message:"Conflict"},PRECONDITION_FAILED:{status:412,message:"Precondition Failed"},PAYLOAD_TOO_LARGE:{status:413,message:"Payload Too Large"},UNSUPPORTED_MEDIA_TYPE:{status:415,message:"Unsupported Media Type"},UNPROCESSABLE_CONTENT:{status:422,message:"Unprocessable Content"},TOO_MANY_REQUESTS:{status:429,message:"Too Many Requests"},CLIENT_CLOSED_REQUEST:{status:499,message:"Client Closed Request"},INTERNAL_SERVER_ERROR:{status:500,message:"Internal Server Error"}
1,NOT_IMPLEMENTED:{status:501,message:"Not Implemented"},BAD_GATEWAY:{status:502,message:"Bad Gateway"},SERVICE_UNAVAILABLE:{status:503,message:"Service Unavailable"},GATEWAY_TIMEOUT:{status:504,message:"Gateway Timeout"}};function h(e,t){return t??z[e]?.status??500}class A extends Error{defined;code;status;data;static{const e=Symbol.for("__@orpc/[email protected]/error/ORPC_ERROR_CONSTRUCTORS__");globalThis[e]??=new WeakSet,(t=globalThis[e]).add(A)}constructor(e,...t){const n=i(t);if(void 0!==n.status&&!O(n.status))throw Error("[ORPCError] Invalid error status code.");super(function(e,t){return t||z[e]?.message||e}(e,n.message),n),this.code=e,this.status=h(e,n.status),this.defined=n.defined??!1,this.data=n.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(t.has(this)){let i=E(e);if(i&&t.has(i))return!0}return super[Symbol.hasInstance](e)}}function O(e){return e<200||e>=400}e.s(["C",0,z,"R",0,_,"c",0,A,"d",0,O,"e",0,function(e){if(!g(e))return!1;let t=["defined","code","status","message","data"];return!Object.keys(e).some(e=>!t.includes(e))&&"defined"in e&&"boolean"==typeof e.defined&&"code"in e&&"string"==typeof e.code&&"status"in e&&"number"==typeof e.status&&O(e.status)&&"message"in e&&"string"==typeof e.message},"f",0,h,"g",0,function(e,t={}){return new A(e.code,{...t,...e})},"i",0,function(e){return e instanceof A&&e.defined},"t",0,function(e){return e instanceof A?e:new A("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})}],66104)},723043,e=>{"use strict";var t=e.i(66104);e.s(["ORPCError",()=>t.c])},251263,e=>{"use strict";var t=e.i(66104);e.s(["fallbackORPCErrorStatus",()=>t.f])},437326,312811,411584,652968,76045,536229,810642,754801,349139,839056,720634,706886,865943,643763,805565,998314,602073,69624,500244,251953,595099,113676,516909,131811,888177,630175,58439,722609,244011,72299,997435,832978,972057,572031,245428,247390,751145,984624,564044,708408,984370,922545,e=>{"use strict";e.i(251263);var t,i,n,r,a,o,s,l,c,d,u,m,p,E,g,I,b,_,z,h,A,O,f,T,y,N,C,S,R,L,D,P,v,U,w,B,F,j,M,k,x,G,Y,W,V,H,q,K,Q,$,X,J,Z,ee,et,ei,en,er,ea,eo,es,el,ec,ed,eu,em,ep=e.i(723043),eE=e.i(66104),eE=eE;class eg extends Error{issues;data;constructor(e){super(e.message,e),this.issues=e.issues,this.data=e.data}}class eI{"~orpc";constructor(e){if(e.route?.successStatus&&(0,eE.d)(e.route.successStatus))throw Error("[ContractProcedure] Invalid successStatus.");if(Object.values(e.errorMap).some(e=>e&&e.status&&!(0,eE.d)(e.status)))throw Error("[ContractProcedure] Invalid error status code.");this["~orpc"]=e}}function eb(e){return e instanceof eI||("object"==typeof e||"function"==typeof e)&&null!==e&&"~orpc"in e&&"object"==typeof e["~orpc"]&&null!==e["~orpc"]&&"errorMap"in e["~orpc"]&&"route"in e["~orpc"]&&"meta"in e["~orpc"]}var e_=e.i(636235);class ez extends TypeError{}class eh extends TypeError{}class eA extends Error{data;constructor(e){super(e?.message??"An error event was received",e),this.data=e?.data}}let eO=/\r\n|\r(?!\n)|\n/,ef=/(?:\r\n|\r(?!\n)|\n){2}/,eT=/(?:\r\n|\r(?!\n)|\n){2}/g;class ey{constructor(e={}){this.options=e}pending=[];tail="";discardLeadingLF=!1;feed(e){if(""===e||this.discardLeadingLF&&(this.discardLeadingLF=!1,10===e.charCodeAt(0))&&""===(e=e.slice(1)))return;let t=this.tail+e;if(!ef.test(t)){this.pending.push(e),this.tail=t.slice(-3);return}this.pending.push(e);let i=1===this.pending.length?e:this.pending.join(""),n=i.length-t.length,r=[],a=0;for(let e of t.matchAll(eT))r.push(i.slice(a,n+e.index)),a=n+e.index+e[0].length;let o=i.slice(a);for(let t of(this.pending.length=0,this.tail=o.slice(-3),""===o?this.discardLeadingLF=13===e.charCodeAt(e.length-1):this.pending.push(o),r)){let e=function(e){let t={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let i of e.split(eO)){if(""===i)continue;let e=i.indexOf(":"),n=-1===e?"":i.slice(32===i.charCodeAt(e+1)?e+2:e+1);if(0===e){t.comments.push(n);continue}switch(-1===e?i:i.slice(0,e)){case"data":t.data=void 0===t.data?n:`${t.data}
2${n}`;break;case"event":t.event=n;break;case"id":t.id=n;break;case"retry":{let e=Number.parseInt(n,10);e>=0&&e.toString()===n&&(t.retry=e)}}}return t}(t);this.options.onEvent&&this.options.onEvent(e)}}end(){if(0!==this.pending.length)throw new eh("Event Iterator ended before complete")}}class eN extends TransformStream{constructor(){let e;super({start(t){e=new ey({onEvent:e=>{t.enqueue(e)}})},transform(t){e.feed(t)},flush(){e.end()}})}}let eC=/\r\n|[\n\r]/,eS=/\r\n|[\n\r]/g;function eR(e){return eC.test(e)}function eL(e){if(eR(e))throw new ez("Event's id must not contain a carriage return or newline character")}function eD(e){if(!Number.isInteger(e)||e<0)throw new ez("Event's retry must be a integer and >= 0")}function eP(e){if(eR(e))throw new ez("Event's comment must not contain a carriage return or newline character")}function ev(e){let t="";if(t+=function(e){let t="";for(let i of e??[])eP(i),t+=`: ${i}
3`;return t}(e.comments),void 0!==e.event){var i;if(eR(e.event))throw new ez("Event's event must not contain a carriage return or newline character");t+=`event: ${e.event}
4`}return void 0!==e.retry&&(eD(e.retry),t+=`retry: ${e.retry}
5`),void 0!==e.id&&(eL(e.id),t+=`id: ${e.id}
6`),t+=void 0===(i=e.data)?"":`data: ${i.replace(eS,"\ndata: ")}
7`,t+="\n"}let eU=Symbol("ORPC_EVENT_SOURCE_META");function ew(e,t){if(void 0===t.id&&void 0===t.retry&&!t.comments?.length)return e;if(void 0!==t.id&&eL(t.id),void 0!==t.retry&&eD(t.retry),void 0!==t.comments)for(let e of t.comments)eP(e);return new Proxy(e,{get:(e,i,n)=>i===eU?t:Reflect.get(e,i,n)})}function eB(e){return(0,e_.isTypescriptObject)(e)?Reflect.get(e,eU):void 0}function eF(e,t="inline"){let i=e.replace(/[^\x20-\x7E]/g,"_").replace(/"/g,'\\"'),n=encodeURIComponent(e).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>
7String.fromCharCode(Number.parseInt(t,16)));return`${t}; filename="${i}"; filename*=utf-8''${n}`}function ej(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&"string"==typeof t[2])return(0,e_.tryDecodeURIComponent)(t[2]);let i=e.match(/filename="((?:\\"|[^"])*)"/i);if(i&&"string"==typeof i[1])return i[1].replace(/\\"/g,'"')}function eM(e,t){let i={...e};for(let e in t)Array.isArray(t[e])?i[e]=[...(0,e_.toArray)(i[e]),...t[e]]:void 0!==t[e]&&(Array.isArray(i[e])?i[e]=[...i[e],t[e]]:void 0!==i[e]?i[e]=[i[e],t[e]]:i[e]=t[e]);return i}e_.AsyncIteratorClass,e.s(["ErrorEvent",0,eA,"EventDecoderStream",0,eN,"encodeEventMessage",0,ev,"generateContentDisposition",0,eF,"getEventMeta",0,eB,"getFilenameFromContentDisposition",0,ej,"mergeStandardHeaders",0,eM,"withEventMeta",0,ew],312811);var ek=eE;function ex(e,t={}){return e.forEach((e,i)=>{Array.isArray(t[i])?t[i].push(e):void 0!==t[i]?t[i]=[t[i],e]:t[i]=e}),t}function eG(e,t){let i=async e=>{let i=await t.error(e);if(i!==e){let t=eB(e);t&&(0,e_.isTypescriptObject)(i)&&(i=ew(i,t))}return i};return new e_.AsyncIteratorClass(async()=>{let{done:n,value:r}=await (async()=>{try{return await e.next()}catch(e){throw await i(e)}})(),a=await t.value(r,n);if(a!==r){let e=eB(r);e&&(0,e_.isTypescriptObject)(a)&&(a=ew(a,e))}return{done:n,value:a}},async()=>{try{await e.return?.()}catch(e){throw await i(e)}})}e.s(["toFetchRequest",0,function(e,t={}){let i=function(e,t=new Headers){for(let[i,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(i,e);else void 0!==n&&t.append(i,n);return t}(e.headers),n=function(e,t,i={}){if(e instanceof ReadableStream)return e;let n=t.get("content-disposition");if(t.delete("content-type"),t.delete("content-disposition"),void 0!==e)return e instanceof Blob?(t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",n??eF(e instanceof File?e.name:"blob")),e):e instanceof FormData||e instanceof URLSearchParams?e:(0,e_.isAsyncIteratorObject)(e)?(t.set("content-type","text/event-stream"),function(e,t={}){let i,n,r=t.eventIteratorKeepAliveEnabled??!0,a=t.eventIteratorKeepAliveInterval??5e3,o=t.eventIteratorKeepAliveComment??"",s=t.eventIteratorInitialCommentEnabled??!0,l=t.eventIteratorInitialComment??"",c=!1;return new ReadableStream({start(e){n=(0,e_.startSpan)("stream_event_iterator"),s&&e.enqueue(ev({comments:[l]}))},async pull(t){try{r&&(i=setInterval(()=>{t.enqueue(ev({comments:[o]})),n?.addEvent("keepalive")},a));let s=await (0,e_.runInSpanContext)(n,()=>e.next());if(clearInterval(i),c)return;let l=eB(s.value);if(!s.done||void 0!==s.value||void 0!==l){let e=s.done?"done":"message";t.enqueue(ev({...l,event:e,data:(0,e_.stringifyJSON)(s.value)})),n?.addEvent(e)}s.done&&(t.close(),n?.end())}catch(e){if(clearInterval(i),c)return;e instanceof eA?(t.enqueue(ev({...eB(e),event:"error",data:(0,e_.stringifyJSON)(e.data)})),n?.addEvent("error"),t.close()):((0,e_.setSpanError)(n,e),t.error(e)),n?.end()}},async cancel(){try{c=!0,clearInterval(i),n?.addEvent("cancelled"),await (0,e_.runInSpanContext)(n,()=>e.return?.())}catch(e){throw(0,e_.setSpanError)(n,e),e}finally{n?.end()}}}).pipeThrough(new TextEncoderStream)}(e,i)):(t.set("content-type","application/json"),(0,e_.stringifyJSON)(e))}(e.body,i,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:i,body:n})},"toStandardHeaders",0,ex,"toStandardLazyResponse",0,function(e,t={}){return{body:(0,e_.once)(()=>(function(e,t={}){return(0,e_.runWithSpan)({name:"parse_standard_body",signal:t.signal},async()=>{let i=e.headers.get("content-disposition");if("string"==typeof i){let t=ej(i)??"blob",n=await e.blob();return new File([n],t,{type:n.type})}let n=e.headers.get("content-type");if(!n||n.startsWith("application/json")){let t=await e.text();return(0,e_.parseEmptyableJSON)(t)}if(n.startsWith("multipart/form-data"))return await e.formData();if(n.startsWith("application/x-www-form-urlencoded"))return new URLSearchParams(await e.text());if(n.startsWith("text/event-stream"))return function(e,t={}){let i,n=e?.pipeThrough(new TextDecoderStream).pipeThrough(new eN),r=n?.getReader(),a=!1;return new e_.AsyncIteratorClass(async()=>{i??=(0,e_.startSpan)("consume_event_iterator_stream");try{for(;;){if(void 0===r)return{done:!0,value:void 0};let{done:e,value:t}=await (0,e_.runInSpanContext)(i,()=>r.read());if(e){if(a)throw new e_.AbortError("Stream was cancelled");return{done:!0,value:void 0}}switch(t.event){case"message":{let e=(0,e_.parseEmptyableJSON)(t.data);return(0,e_.isTypescriptObject)(e)&&(e=ew(e,t)),i?.addEvent("message"),{done:!1,value:e}}case"error":{let e=new eA({data:(0,e_.parseEmptyableJSON)(t.data)});throw e=ew(e,t),i?.addEvent("error"),e}case"done":{let e=(0,e_.parseEmptyableJSON)(t.data);return(0,e_.isTypescriptObject)(e)&&(e=ew(e,t)),i?.addEvent("done"),{done:!0,value:e}}default:i?.addEvent("maybe_keepalive")}}}catch(e){throw e instanceof eA||(0,e_.setSpanError)(i,e,t),e}},async e=>{try{"next"!==e&&(a=!0,i?.addEvent("cancelled")),await (0,e_.runInSpanContext)(i,()=>r?.cancel())}catch(e){throw(0,e_.setSpanError)(i,e,t),e}finally{i?.end()}})}(e.body,t);if(n.startsWith("text/plain"))return await e.text();let r=await e.blob();return new File([r],"blob",{type:r.type})})})(e,t)),status:e.status,get headers(){let t=ex(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:!0}),t},set headers(value){Object.defineProperty(this,"headers",{value,writable:!0})}}}],411584);class eY{plugins;constructor(e=[]){this.plugins=[...e].sort((e,t)=>
7(e.order??0)-(t.order??0))}init(e){for(let t of this.plugins)t.init?.(e)}}class eW{constructor(e,t,i={}){this.codec=e,this.sender=t,new eY(i.plugins).init(i),this.interceptors=(0,e_.toArray)(i.interceptors),this.clientInterceptors=(0,e_.toArray)(i.clientInterceptors)}interceptors;clientInterceptors;call(e,t,i){return(0,e_.runWithSpan)({name:`${e_.ORPC_NAME}.${e.join("/")}`,signal:i.signal},n=>(n?.setAttribute("rpc.system",e_.ORPC_NAME),n?.setAttribute("rpc.method",e.join(".")),(0,e_.isAsyncIteratorObject)(t)&&(t=(0,e_.asyncIteratorWithSpan)({name:"consume_event_iterator_input",signal:i.signal},t)),(0,e_.intercept)(this.interceptors,{...i,path:e,input:t},async({path:e,input:t,...i})=>{let r,a=(0,e_.getGlobalOtelConfig)(),o=a?.trace.getActiveSpan()??n;o&&a&&(r=a?.trace.setSpan(a.context.active(),o));let s=await (0,e_.runWithSpan)({name:"encode_request",context:r},()=>this.codec.encode(e,t,i)),l=await (0,e_.intercept)(this.clientInterceptors,{...i,input:t,path:e,request:s},({input:e,path:t,request:i,...n})=>(0,e_.runWithSpan)({name:"send_request",signal:n.signal,context:r},()=>this.sender.call(i,n,t,e))),c=await (0,e_.runWithSpan)({name:"decode_response",context:r},()=>this.codec.decode(l,i,e,t));return(0,e_.isAsyncIteratorObject)(c)?(0,e_.asyncIteratorWithSpan)({name:"consume_event_iterator_output",signal:i.signal},c):c})))}}class eV{customSerializers;constructor(e={}){if(this.customSerializers=e.customJsonSerializers??[],this.customSerializers.length!==new Set(this.customSerializers.map(e=>e.type)).size)throw Error("Custom serializer type must be unique.")}serialize(e,t=[],i=[],n=[],r=[]){for(let a of this.customSerializers)if(a.condition(e)){let o=this.serialize(a.serialize(e),t,i,n,r);return i.push([a.type,...t]),o}if(e instanceof Blob)return n.push(t),r.push(e),[e,i,n,r];if("bigint"==typeof e)return i.push([0,...t]),[e.toString(),i,n,r];if(e instanceof Date)return(i.push([1,...t]),Number.isNaN(e.getTime()))?[null,i,n,r]:[e.toISOString(),i,n,r];if(Number.isNaN(e))return i.push([2,...t]),[null,i,n,r];if(e instanceof URL)return i.push([4,...t]),[e.toString(),i,n,r];if(e instanceof RegExp)return i.push([5,...t]),[e.toString(),i,n,r];if(e instanceof Set){let a=this.serialize(Array.from(e),t,i,n,r);return i.push([6,...t]),a}if(e instanceof Map){let a=this.serialize(Array.from(e.entries()),t,i,n,r);return i.push([7,...t]),a}if(Array.isArray(e))return[e.map((e,a)=>void 0===e?(i.push([3,...t,a]),null):this.serialize(e,[...t,a],i,n,r)[0]),i,n,r];if((0,e_.isObject)(e)){let a={};for(let o in e)("toJSON"!==o||"function"!=typeof e[o])&&(a[o]=this.serialize(e[o],[...t,o],i,n,r)[0]);return[a,i,n,r]}return[e,i,n,r]}deserialize(e,t,i,n){let r={data:e};for(let e of(i&&n&&i.forEach((e,t)=>{let i=r,a="data";e.forEach(e=>{if(!Object.hasOwn(i=i[a],a=e))throw Error(`Security error: accessing non-existent path during deserialization. Path segment: ${a}`)}),i[a]=n(t)}),t)){let t=e[0],i=r,n="data";for(let t=1;t<e.length;t++)if(!Object.hasOwn(i=i[n],n=e[t]))throw Error(`Security error: accessing non-existent path during deserialization. Path segment: ${n}`);for(let e of this.customSerializers)if(e.type===t){i[n]=e.deserialize(i[n]);break}switch(t){case 0:i[n]=BigInt(i[n]);break;case 1:i[n]=new Date(i[n]??"Invalid Date");break;case 2:i[n]=NaN;break;case 3:i[n]=void 0;break;case 4:i[n]=new URL(i[n]);break;case 5:{let[,e,t]=i[n].match(/^\/(.*)\/([a-z]*)$/);i[n]=new RegExp(e,t);break}case 6:i[n]=new Set(i[n]);break;case 7:i[n]=new Map(i[n])}}return r.data}}function eH(e){return`/${e.map(encodeURIComponent).join("/")}`}class eq{constructor(e,t){this.serializer=e,this.baseUrl=t.url,this.maxUrlLength=t.maxUrlLength??2083,this.fallbackMethod=t.fallbackMethod??"POST",this.expectedMethod=t.method??this.fallbackMethod,this.headers=t.headers??{}}baseUrl;maxUrlLength;fallbackMethod;expectedMethod;headers;async encode(e,t,i){var n;let r="function"==typeof(n=await (0,e_.value)(this.headers,i,e,t)).forEach?ex(n):n;void 0!==i.lastEventId&&(r=eM(r,{"last-event-id":i.lastEventId}));let a=await (0,e_.value)(this.expectedMethod,i,e,t),o=new URL(await (0,e_.value)(this.baseUrl,i,e,t));o.pathname=`${o.pathname.replace(/\/$/,"")}${eH(e)}`;let s=this.serializer.serialize(t);if("GET"===a&&!(s instanceof FormData)&&!(0,e_.isAsyncIteratorObject)(s)){let n=await (0,e_.value)(this.maxUrlLength,i,e,t),l=new URL(o);if(l.searchParams.append("data",(0,e_.stringifyJSON)(s)),l.toString().length<=n)return{body:void 0,method:a,headers:r,url:l,signal:i.signal}}return{url:o,method:"GET"===a?this.fallbackMethod:a,headers:r,body:s,signal:i.signal}}async decode(e){let t=!(0,ek.d)(e.status),i=await (async()=>{let t=!1;try{let i=await e.body();return t=!0,this.serializer.deserialize(i)}catch(e){if(!t)throw Error("Cannot parse response body, please check the response body and content-type.",{cause:e});throw Error("Invalid RPC response format.",{cause:e})}})();if(!t){var n;if((0,ek.e)(i))throw(0,ek.g)(i);throw new ek.c((n=e.status,Object.entries(ek.C).find(([,e])=>e.status===n)?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"),{status:e.status,data:{...e,body:i}})}return i}}
7class eK{constructor(e){this.jsonSerializer=e}serialize(e){return(0,e_.isAsyncIteratorObject)(e)?eG(e,{value:async e=>this.#r(e,!1),error:async e=>new eA({data:this.#r((0,ek.t)(e).toJSON(),!1),cause:e})}):this.#r(e,!0)}#r(e,t){let[i,n,r,a]=this.jsonSerializer.serialize(e),o=0===n.length?void 0:n;if(!t||0===a.length)return{json:i,meta:o};let s=new FormData;return s.set("data",(0,e_.stringifyJSON)({json:i,meta:o,maps:r})),a.forEach((e,t)=>{s.set(t.toString(),e)}),s}deserialize(e){return(0,e_.isAsyncIteratorObject)(e)?eG(e,{value:async e=>this.#a(e),error:async e=>{if(!(e instanceof eA))return e;let t=this.#a(e.data);return(0,ek.e)(t)?(0,ek.g)(t,{cause:e}):new eA({data:t,cause:e})}}):this.#a(e)}#a(e){if(void 0===e)return;if(!(e instanceof FormData))return this.jsonSerializer.deserialize(e.json,e.meta??[]);let t=JSON.parse(e.get("data"));return this.jsonSerializer.deserialize(t.json,t.meta??[],t.maps,t=>e.get(t.toString()))}}e.s(["C",0,eY,"c",0,class extends eW{constructor(e,t){super(new eq(new eK(new eV(t)),t),e,t)}},"t",0,eH],652968);let eQ=new class e extends eI{constructor(e){super(e),this["~orpc"].prefix=e.prefix,this["~orpc"].tags=e.tags}$meta(t){return new e({...this["~orpc"],meta:t})}$route(t){return new e({...this["~orpc"],route:t})}$input(t){return new e({...this["~orpc"],inputSchema:t})}errors(t){var i;return new e({...this["~orpc"],errorMap:(i=this["~orpc"].errorMap,{...i,...t})})}meta(t){var i;return new e({...this["~orpc"],meta:(i=this["~orpc"].meta,{...i,...t})})}route(t){var i;return new e({...this["~orpc"],route:(i=this["~orpc"].route,{...i,...t})})}input(t){return new e({...this["~orpc"],inputSchema:t})}output(t){return new e({...this["~orpc"],outputSchema:t})}prefix(t){var i;return new e({...this["~orpc"],prefix:(i=this["~orpc"].prefix,i?`${i}${t}`:t)})}tag(...t){var i;return new e({...this["~orpc"],tags:(i=this["~orpc"].tags,i?[...i,...t]:t)})}router(e){return function e(t,i){if(eb(t)){var n,r,a,o,s,l,c;let e;return new eI({...t["~orpc"],errorMap:(n=i.errorMap,r=t["~orpc"].errorMap,{...n,...r}),route:(a=t["~orpc"].route,e=a,i.prefix&&(o=e,s=i.prefix,e=o.path?{...o,path:`${s}${o.path}`}:o),i.tags?.length&&(l=e,c=i.tags,e={...l,tags:[...c,...l.tags??[]]}),e)})}if("object"!=typeof t||null===t)return t;let d={};for(let n in t)d[n]=e(t[n],i);return d}(e,this["~orpc"])}}({errorMap:{},route:{},meta:{}}),e$="POST",eX=Symbol("ORPC_EVENT_ITERATOR_DETAILS");function eJ(e,t){return{"~standard":{[eX]:{yields:e,returns:t},vendor:"orpc",version:1,validate:i=>(0,e_.isAsyncIteratorObject)(i)?{value:eG(i,{async value(i,n){let r=n?t:e;if(!r)return i;let a=await r["~standard"].validate(i);if(a.issues)throw new ep.ORPCError("EVENT_ITERATOR_VALIDATION_FAILED",{message:"Event iterator validation failed",cause:new eg({issues:a.issues,message:"Event iterator validation failed",data:i})});return a.value},error:async e=>e})}:{issues:[{message:"Expect event iterator",path:[]}]}}}}e.s(["eventIterator",0,eJ,"inferRPCMethodFromContractRouter",0,function(e){return(t,i)=>{var n;let r=(0,e_.get)(e,i);if(!eb(r))throw Error(`[inferRPCMethodFromContractRouter] No valid procedure found at path "${i.join(".")}". This may happen when the contract router is not properly configured.`);let a=void 0===(n=r["~orpc"].route.method)?e$:n;return"HEAD"===a?"GET":a}},"oc",0,eQ],76045);let eZ={BAD_REQUEST:{},UNAUTHORIZED:{},FORBIDDEN:{},NOT_FOUND:{},CONFLICT:{},SERVICE_UNAVAILABLE:{}};var e0=e.i(817422);let e1=e0.z.object({year:e0.z.number().int().min(1e3).max(9999),month:e0.z.number().int().min(1).max(12),day:e0.z.number().int().min(1).max(31)}).refine(({year:e,month:t,day:i})=>{let n=new Date(Date.UTC(e,t-1,i));return n.getUTCFullYear()===e&&n.getUTCMonth()===t-1&&n.getUTCDate()===i},{message:"Invalid calendar date."}),e2=e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable(),country:e0.z.string().nullable()}),e5=["GENERAL_LIABILITY","BUSINESS_AUTO","UMBRELLA_LIABILITY","EXCESS_LIABILITY","WORKERS_COMPENSATION"],e3=["RAILROAD_PROTECTIVE_LIABILITY","AVIATION_LIABILITY","WATERCRAFT_MARINE_LIABILITY","GARAGE_LIABILITY","SEXUAL_ABUSE_AND_MOLESTATION","ABUSE_OR_MOLESTATION","LIQUOR_LIABILITY","HOST_LIQUOR_LIABILITY","SPECIAL_EVENTS_LIABILITY","EMPLOYEE_BENEFITS_LIABILITY","EMPLOYMENT_PRACTICES_LIABILITY","CYBER_LIABILITY","NETWORK_SECURITY_AND_PRIVACY_LIABILITY","MEDIA_LIABILITY","ASSAULT_AND_BATTERY","COMMUNICABLE_DISEASE_LIABILITY","POLLUTION_LIABILITY","CONTRACTORS_POLLUTION_LIABILITY","PROFESSIONAL_LIABILITY","ERRORS_AND_OMISSIONS","TECHNOLOGY_EO","HIRED_AND_NON_OWNED_AUTO_LIABILITY","PRODUCTS_RECALL_EXPENSE","TENANT_DISCRIMINATION_LIABILITY","VOLUNTEER_WORKERS_COVERAGE","DIRECTORS_AND_OFFICERS_LIABILITY","FIDUCIARY_LIABILITY","CRIME","EMPLOYEE_DISHONESTY"],e4=[...e3,"UMBRELLA_LIABILITY","EXCESS_LIABILITY"],e9="EMPLOYERS_LIABILITY_STOP_GAP",e6=["WORKERS_COMPENSATION",e9];e.s(["ACORD25_EMPLOYERS_LIABILITY_OTHER_COVERAGE_TYPES",0,e6,"ACORD25_KNOWN_OTHER_COVERAGE_TYPES",0,e3,"ACORD25_STANDARD_COVERAGE_TYPES",0,e5,"ACORD25_STOP_GAP_COVERAGE_TYPE",0,e9,"ACORD25_TEMPLATE_OTHER_COVERAGE_TYPES",0,e4,"isAcord25EmployersLiabilityOtherCoverageType",0,function(e){return e6.includes(e)}],536229);let e8=e0.z.string().trim().min(1).optional(),e7=e0.z.union([e0.z.number(),e0.z.literal("INCLUDED")]).nullable(),te=e0.z.object({description:e0.z.string().trim().min(1),amount:e0.z.number()}),tt=e0.z.object({additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean(),incidentClaim:e0.z.enum
7(["CLAIMS_MADE","OCCURRENCE"]),genAggLimitApplies:e0.z.object({policy:e0.z.boolean(),project:e0.z.boolean(),location:e0.z.boolean(),otherDescription:e8}),otherCoverage1:e0.z.boolean().optional(),otherCoverage1Description:e8,otherCoverage2:e0.z.boolean().optional(),otherCoverage2Description:e8,eachOccurrence:e0.z.number().nullable(),damageToRentedPremises:e0.z.number().nullable(),medExp:e7,personalAdvInjury:e7,generalAggregate:e0.z.number().nullable(),productsCompOpAgg:e7,otherLimit:te.optional()}),ti=e0.z.object({policyId:e0.z.string(),values:tt}),tn=e0.z.object({additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean(),symbols:e0.z.array(e0.z.enum(["ANY_AUTO","OWNED_AUTOS","SCHEDULED_AUTOS","HIRED_AUTOS","NON_OWNED_AUTOS"])),otherCoverage1Description:e8,otherCoverage2Description:e8,combinedSingleLimit:e0.z.number().nullable(),bodilyInjuryPerPerson:e0.z.number().nullable(),bodilyInjuryPerAccident:e0.z.number().nullable(),propertyDamagePerAccident:e0.z.number().nullable(),otherLimit:te.optional()}),tr=e0.z.object({policyId:e0.z.string(),values:tn}),ta=e0.z.object({kind:e0.z.enum(["DEDUCTIBLE","RETENTION"]),limit:e0.z.number()}),to=e0.z.object({additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean(),coverageType:e0.z.enum(["UMBRELLA","EXCESS"]),incidentClaim:e0.z.enum(["CLAIMS_MADE","OCCURRENCE"]),deductibleRetention:ta.nullable(),eachOccurrence:e0.z.number().nullable(),aggregate:e0.z.number().nullable(),otherLimit:te.optional()}),ts=e0.z.object({policyId:e0.z.string(),values:to}),tl=ts.extend({values:to.extend({coverageType:e0.z.literal("UMBRELLA")})}),tc=ts.extend({values:to.extend({coverageType:e0.z.literal("EXCESS")})}),td=e0.z.object({waiverOfSubrogation:e0.z.boolean(),perStatute:e0.z.boolean(),other:e0.z.discriminatedUnion("selected",[e0.z.object({selected:e0.z.literal(!1)}),e0.z.object({selected:e0.z.literal(!0),description:e0.z.string().trim()})]),membersExcluded:e0.z.boolean().nullable(),elEachAccident:e0.z.number().nullable(),elDiseaseEachEmployee:e0.z.number().nullable(),elDiseasePolicyLimit:e0.z.number().nullable()}),tu=e0.z.object({policyId:e0.z.string(),values:td}),tm=e0.z.enum(e4),tp=e0.z.preprocess(e=>{if("string"!=typeof e)return e;let t=e.trim();return t.length>0?t:null},e0.z.string().min(1).nullable().optional()),tE=e0.z.object({eachOccurEachClaim:e0.z.object({kind:e0.z.enum(["CLAIM","OCCURRENCE"]),limit:e0.z.number()}).nullable(),aggregate:e0.z.number().nullable(),deductibleRetention:ta.nullable()}),tg=e0.z.object({elEachAccident:e0.z.number().nullable(),elDiseaseEachEmployee:e0.z.number().nullable(),elDiseasePolicyLimit:e0.z.number().nullable()}),tI=e0.z.object({policyId:e0.z.string().trim().min(1),coverageType:tm,customLabel:tp,additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean(),values:tE}),tb=e0.z.object({policyId:e0.z.string().trim().min(1),coverageType:e0.z.literal("CUSTOM"),customLabel:e0.z.string().trim().min(1),additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean(),values:tE}),t_=e0.z.object({policyId:e0.z.string().trim().min(1),coverageType:e0.z.enum(e6),customLabel:tp,additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean(),otherCoverageSpecificValues:tg}),tz=e0.z.discriminatedUnion("coverageType",[tI,tb,t_]),th={additionalInsured:!0,waiverOfSubrogation:!0},tA=e0.z.discriminatedUnion("coverageType",[tI.omit(th),tb.omit(th),t_.omit(th)]),tO=e0.z.enum(["FULCRUM","APPLIED_EPIC","AMS360","NO_AMS","IMAGERIGHT"]),tf=e0.z.string().trim().regex(/^[1-9]\d*$/,{message:"Epic account ID must be a positive integer"}),tT=e0.z.object({query:e0.z.string().trim().min(1),limit:e0.z.coerce.number().int().positive().max(20)}),ty=e0.z.object({insuredAccountId:e0.z.string(),name:e0.z.string(),amsType:tO,amsId:e0.z.string(),amsLookupCode:e0.z.string().nullable(),secondaryLabel:e0.z.string().nullable()}),tN=e0.z.object({accounts:e0.z.array(ty)}),tC=e0.z.object({cursor:e0.z.string().trim().min(1).optional(),limit:e0.z.coerce.number().int().positive().max(100).default(50),query:e0.z.string().trim().optional()}),tS=e0.z.object({accounts:e0.z.array(e0.z.object({insuredAccountId:e0.z.string(),name:e0.z.string(),amsType:tO,amsId:e0.z.string(),amsLookupCode:e0.z.string().nullable(),lastActivityAt:e0.z.string().datetime().nullable()})),nextCursor:e0.z.string().nullable(),hasMore:e0.z.boolean()}),tR=e0.z.object({accounts:e0.z.array(e0.z.object({amsId:e0.z.string(),name:e0.z.string(),amsType:tO,amsLookupCode:e0.z.string()}))}),tL=e0.z.object({page:e0.z.coerce.number().int().min(0).default(0)}),tD=e0.z.object({accounts:e0.z.array(e0.z.object({amsId:e0.z.string(),name:e0.z.string(),amsType:tO,amsLookupCode:e0.z.string()})),hasMore:e0.z.boolean()}),tP=e0.z.object({accountId:e0.z.string().trim().min(1)}),tv=e0.z.object({company:e0.z.object({id:e0.z.string(),name:e0.z.string(),organizationId:e0.z.string()})}),tU=e0.z.object({accountId:e0.z.string().trim().min(1)}),tw=e0.z.object({year:e0.z.number().int(),month:e0.z.number().int(),day:e0.z.number().int()}),tB=e0.z.object({id:e0.z.string(),number:e0.z.string(),effectiveDate:tw,expirationDate:tw,carrier:e0.z.object({id:e0.z.string(),source:e0.z.enum
7(["MANUAL","APPLIED_EPIC"]),name:e0.z.string(),naicCode:e0.z.string().nullable(),nameOverride:e0.z.string().nullable(),naicCodeOverride:e0.z.string().nullable(),effectiveName:e0.z.string(),effectiveNaicCode:e0.z.string().nullable()}).nullable(),coverageNames:e0.z.array(e0.z.string())}),tF=e0.z.object({policies:e0.z.array(tB.extend({policyDocumentUrl:e0.z.string().url().nullable()}))}),tj=e0.z.object({query:e0.z.string().trim().min(1)}),tM=e0.z.object({truncated:e0.z.boolean(),files:e0.z.array(e0.z.object({fileId:e0.z.string(),description:e0.z.string(),fileNumberPart1:e0.z.string().min(1),fileNumberPart2:e0.z.string().optional(),fileNumberPart3:e0.z.string().optional(),drawerId:e0.z.number(),drawerName:e0.z.string(),fileTypeId:e0.z.number(),fileTypeName:e0.z.string(),locationName:e0.z.string().optional()}))}),tk=e0.z.object({amsType:e0.z.literal("APPLIED_EPIC"),amsId:tf}),tx=e0.z.object({insuredAccountId:e0.z.string()}),tG=e0.z.object({amsId:e0.z.string().trim().min(1),description:e0.z.string(),fileNumberPart1:e0.z.string(),fileNumberPart2:e0.z.string().optional(),fileNumberPart3:e0.z.string().optional(),drawerId:e0.z.number(),drawerName:e0.z.string(),fileTypeId:e0.z.number(),fileTypeName:e0.z.string(),locationName:e0.z.string().optional()}),tY=e0.z.object({name:e0.z.string().trim().min(1).max(500)}),tW=e0.z.object({insuredAccountId:e0.z.string(),name:e0.z.string()}),tV=e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable()}),tH=e0.z.object({id:e0.z.string(),displayName:e0.z.string(),name:e0.z.string(),address:tV}),tq=e0.z.object({accountId:e0.z.string().trim().min(1)}),tK=e0.z.object({namedInsureds:e0.z.array(tH)}),tQ=e0.z.string().trim().min(1).nullable(),t$=e0.z.object({street1:e0.z.string().trim().min(1),street2:tQ.optional(),city:e0.z.string().trim().min(1),state:e0.z.string().trim().min(1),zip:e0.z.string().trim().min(1)}),tX=e0.z.object({accountId:e0.z.string().trim().min(1),displayName:e0.z.string().trim().min(1,"Display name is required."),address:t$}),tJ=e0.z.object({street1:tQ.optional(),street2:tQ.optional(),city:tQ.optional(),state:tQ.optional(),zip:tQ.optional()}).refine(e=>Object.keys(e).length>0,{message:"At least one address field is required."}),tZ=e0.z.object({accountId:e0.z.string().trim().min(1),namedInsuredId:e0.z.string().trim().min(1),displayName:e0.z.string().trim().min(1,"Display name is required.").optional(),address:tJ.optional()}).refine(({displayName:e,address:t})=>void 0!==e||void 0!==t,{message:"At least one change is required."}),t0=e0.z.object({accountId:e0.z.string().trim().min(1),policyIds:e0.z.array(e0.z.string().trim().min(1))}),t1=e0.z.enum(["AI_GENERIC","AI_ONGOING_OPS","AI_COMPLETED_OPS","AI_LEASED_PREMISES","AI_LEASED_EQUIPMENT","AI_MORTGAGEE","AI_VENDORS","AI_ARCHITECTS_ENGINEERS","AI_HIRED_AUTO","AI_LOSS_PAYEE","PNC","WOS","PER_PROJECT_AGG","PER_LOCATION_AGG","RESIDENTIAL_DEVELOPMENTS_EXCLUSION","EXTERIOR_WORK_HEIGHT_EXCLUSION","DEDUCTIBLE_LIABILITY","CROSS_LIABILITY_EXCLUSION","NOC_30","WRAP_UP_EXCLUSION","LOSS_PAYEE","OTHER_EXCLUSIONS"]),t2=t1.enum,t5=e0.z.enum(["BLANKET","SCHEDULED"]),t3=t5.enum,t4=e0.z.enum(["GENERAL_LIABILITY","BUSINESS_AUTO","UMBRELLA_LIABILITY","EXCESS_LIABILITY","WORKERS_COMPENSATION","RAILROAD_PROTECTIVE_LIABILITY","AVIATION_LIABILITY","WATERCRAFT_MARINE_LIABILITY","GARAGE_LIABILITY","SEXUAL_ABUSE_AND_MOLESTATION","ABUSE_OR_MOLESTATION","LIQUOR_LIABILITY","HOST_LIQUOR_LIABILITY","SPECIAL_EVENTS_LIABILITY","EMPLOYEE_BENEFITS_LIABILITY","EMPLOYMENT_PRACTICES_LIABILITY","CYBER_LIABILITY","NETWORK_SECURITY_AND_PRIVACY_LIABILITY","MEDIA_LIABILITY","ASSAULT_AND_BATTERY","COMMUNICABLE_DISEASE_LIABILITY","POLLUTION_LIABILITY","CONTRACTORS_POLLUTION_LIABILITY","PROFESSIONAL_LIABILITY","ERRORS_AND_OMISSIONS","TECHNOLOGY_EO","HIRED_AND_NON_OWNED_AUTO_LIABILITY","PRODUCTS_RECALL_EXPENSE","TENANT_DISCRIMINATION_LIABILITY","VOLUNTEER_WORKERS_COVERAGE","DIRECTORS_AND_OFFICERS_LIABILITY","FIDUCIARY_LIABILITY","CRIME","EMPLOYEE_DISHONESTY","EMPLOYERS_LIABILITY_STOP_GAP"]),t9=t4.enum,t6=e0.z.object({lineOfCoverage:t4}).strict(),t8=e0.z.object({id:e0.z.string(),name:e0.z.string(),locations:e0.z.array(e0.z.string())}),t7=e0.z.object({id:e0.z.string(),formNumber:e0.z.string(),formName:e0.z.string(),stampPol
7icyNumber:e0.z.boolean(),applicability:t5,endorsementTypes:e0.z.array(t1),scheduledParties:e0.z.array(t8),linesOfCoverage:e0.z.array(t6)}),ie=t7.extend({policyId:e0.z.string(),pdfUrl:e0.z.string().url(),holderCount:e0.z.number().int().nonnegative()}),it=e0.z.object({endorsements:e0.z.array(ie)}),ii=e0.z.object({name:e0.z.string().trim().min(1),locations:e0.z.array(e0.z.string())}),ir=e0.z.object({formName:e0.z.string().trim().min(1),formNumber:e0.z.string().trim().min(1),applicability:t5,endorsementTypes:e0.z.array(t1).min(1).refine(e=>new Set(e).size===e.length,{message:"Endorsement types must be unique."}),linesOfCoverage:e0.z.array(t4).min(1).refine(e=>new Set(e).size===e.length,{message:"Lines of coverage must be unique."})}),ia=e0.z.object({accountId:e0.z.string().trim().min(1),policyId:e0.z.string().trim().min(1),managedDocumentId:e0.z.string().trim().min(1),...ir.shape,scheduledParties:e0.z.array(ii)}).superRefine(({applicability:e,scheduledParties:t},i)=>{"BLANKET"===e&&t.length>0&&i.addIssue({code:"custom",message:"Blanket endorsements cannot have scheduled parties.",path:["scheduledParties"]}),"SCHEDULED"===e&&0===t.length&&i.addIssue({code:"custom",message:"Scheduled endorsements require at least one scheduled party.",path:["scheduledParties"]})}),io=e0.z.object({endorsementId:e0.z.string()}),is=e0.z.object({name:e0.z.string().trim().min(1),locations:e0.z.array(e0.z.string())}),il=is.extend({id:e0.z.string().trim().min(1)}),ic=e0.z.object({create:e0.z.array(is),update:e0.z.array(il),delete:e0.z.array(e0.z.string().trim().min(1))}).superRefine(({update:e,delete:t},i)=>{let n=e.map(({id:e})=>e);n.find((e,t)=>n.indexOf(e)!==t)&&i.addIssue({code:"custom",message:"Scheduled party update IDs must be unique.",path:["update"]}),t.find((e,i)=>t.indexOf(e)!==i)&&i.addIssue({code:"custom",message:"Scheduled party delete IDs must be unique.",path:["delete"]});let r=new Set(n);t.some(e=>r.has(e))&&i.addIssue({code:"custom",message:"A scheduled party cannot be updated and deleted in the same request.",path:["delete"]})}),id=e0.z.object({accountId:e0.z.string().trim().min(1),endorsementId:e0.z.string().trim().min(1)}),iu=e0.z.union([id.extend({...ir.shape,scheduledPartyChanges:ic,stampPolicyNumber:e0.z.boolean().optional()}),id.extend({stampPolicyNumber:e0.z.boolean()}).strict()]),im=e0.z.object({endorsement:t7}),ip=e0.z.object({accountId:e0.z.string().trim().min(1),endorsementId:e0.z.string().trim().min(1)}),iE=e0.z.void(),ig=e0.z.object({kind:e0.z.enum(["DEDUCTIBLE","RETENTION"]).optional(),limit:e0.z.number().optional()}).nullable(),iI=e0.z.union([e0.z.number(),e0.z.literal("INCLUDED")]).nullable().optional(),ib=e0.z.object({incidentClaim:e0.z.enum(["CLAIMS_MADE","OCCURRENCE","OTHER"]).optional(),genAggLimitApplies:e0.z.object({policy:e0.z.boolean().optional(),project:e0.z.boolean().optional(),location:e0.z.boolean().optional()}).optional(),eachOccurrence:e0.z.number().nullable().optional(),generalAggregate:e0.z.number().nullable().optional(),productsCompOpAgg:iI,personalAdvInjury:iI,medExp:iI,damageToRentedPremises:e0.z.number().nullable().optional(),deductibleRetention:ig.optional()}),i_=e0.z.object({symbols:e0.z.array(e0.z.enum(["ANY_AUTO","OWNED_AUTOS","SCHEDULED_AUTOS","HIRED_AUTOS","NON_OWNED_AUTOS"])).optional(),combinedSingleLimit:e0.z.number().nullable().optional(),bodilyInjuryPerPerson:e0.z.number().nullable().optional(),bodilyInjuryPerAccident:e0.z.number().nullable().optional(),propertyDamagePerAccident:e0.z.number().nullable().optional()}),iz=e0.z.object({incidentClaim:e0.z.enum(["CLAIMS_MADE","OCCURRENCE","OTHER"]).optional(),eachOccurrence:e0.z.number().nullable().optional(),aggregate:e0.z.number().nullable().optional(),deductibleRetention:ig.optional()}),ih=e0.z.object({perStatute:e0.z.boolean().optional(),membersExcluded:e0.z.boolean().optional(),elEachAccident:e0.z.number().nullable().optional(),elDiseaseEachEmployee:e0.z.number().nullable().optional(),elDiseasePolicyLimit:e0.z.number().nullable().optional()}),iA=e0.z.object({lineOfCoverage:e0.z.enum(e3),deleted:e0.z.literal(!0).optional(),eachOccurEachClaim:e0.z.object({kind:e0.z.enum
7(["CLAIM","OCCURRENCE"]).optional(),limit:e0.z.number().optional()}).nullable().optional(),aggregate:e0.z.number().nullable().optional(),deductibleOrRetention:ig.optional()}),iO=e0.z.object({lineOfCoverage:e0.z.literal(e9),deleted:e0.z.literal(!0).optional(),elEachAccident:e0.z.number().nullable().optional(),elDiseaseEachEmployee:e0.z.number().nullable().optional(),elDiseasePolicyLimit:e0.z.number().nullable().optional()}),iT=e0.z.discriminatedUnion("lineOfCoverage",[iA,iO]),iy=e0.z.object({GL:ib.nullable().optional(),BA:i_.nullable().optional(),UMB:iz.nullable().optional(),XS:iz.nullable().optional(),WC:ih.nullable().optional(),OTHER:e0.z.array(iT).optional()}),iN=e0.z.object({accountId:e0.z.string().trim().min(1),policyId:e0.z.string().trim().min(1)}),iC=e0.z.object({generalLiability:ti.nullable(),autoLiability:tr.nullable(),umbrellaLiability:tl.nullable(),excessLiability:tc.nullable(),workersCompensation:tu.nullable(),otherCoverages:e0.z.array(tz)}),iS=e0.z.object({policy:tB,coverage:iC}),iR=e0.z.object({accountId:e0.z.string().trim().min(1)}),iL="INCLUDED",iD=e0.z.object({label:e0.z.string().nullable(),limits:e0.z.array(e0.z.object({label:e0.z.string(),value:e0.z.union([e0.z.number(),e0.z.literal(iL)]).nullable(),verified:e0.z.boolean()}))}),iP=e0.z.object({coverageType:e0.z.string(),label:e0.z.string(),customLabel:e0.z.string().nullable(),groups:e0.z.array(iD),manuallyAdded:e0.z.boolean()}),iv=e0.z.object({id:e0.z.string(),displayName:e0.z.string(),name:e0.z.string(),address:e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable()})}),iU=e0.z.object({id:e0.z.string(),policyDocumentUrl:e0.z.string().url().nullable(),policyNumber:e0.z.string(),effectiveDate:e0.z.string().datetime(),expirationDate:e0.z.string().datetime(),linesOfCoverage:e0.z.array(e0.z.string()),carrier:e0.z.string(),coverageSections:e0.z.array(iP),namedInsureds:e0.z.array(iv),sparseCoverage:iy.nullable(),deletedCoverageTypes:e0.z.array(e0.z.string())}),iw=e0.z.object({policies:e0.z.array(iU)}),iB=e0.z.object({accountId:e0.z.string().trim().min(1),policyId:e0.z.string().trim().min(1),sparseCoverage:iy}),iF=e0.z.object({policyId:e0.z.string(),sparseCoverage:iy,coverageSections:e0.z.array(iP),deletedCoverageTypes:e0.z.array(e0.z.string())}),ij=e0.z.enum(["DRAFT","FINALIZED","SUPERSEDED"]),iM=ij.enum,ik=e0.z.object({accountId:e0.z.string().trim().min(1),offset:e0.z.coerce.number().int().nonnegative().optional(),query:e0.z.preprocess(e=>{if("string"!=typeof e)return;let t=e.trim();return t.length>0?t:void 0},e0.z.string().optional())}),ix=e0.z.object({id:e0.z.string(),status:ij,isRevision:e0.z.boolean(),createdAt:e0.z.string().datetime(),finalizedAt:e0.z.string().datetime().nullable(),holderName:e0.z.string(),holderAddress:e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable()}),descriptionOfOperations:e0.z.string().nullable()}),iG=e0.z.object({certificates:e0.z.array(ix),hasMore:e0.z.boolean()}),iY=e0.z.object({accountId:e0.z.string().trim().min(1),expirationDateAfter:tw.optional()}),iW=e0.z.object({id:e0.z.string(),name:e0.z.string(),type:e0.z.literal("ACORD_25"),primaryNamedInsuredName:e0.z.string(),expirationDate:tw,holderCounts:e0.z.object({assigned:e0.z.number().int().nonnegative(),needsIssuance:e0.z.number().int().nonnegative(),eligibleForRenewal:e0.z.number().int().nonnegative()})}),iV=e0.z.object({templates:e0.z.array(iW)}),iH=e0.z.object({accountId:e0.z.string().trim().min(1),pageSize:e0.z.coerce.number().int().transform(e=>Math.min(100,Math.max(1,e))).default(50),pageToken:e0.z.string().trim().min(1).optional(),query:e0.z.preprocess(e=>{if("string"!=typeof e)return;let t=e.trim();return t.length>0?t:void 0},e0.z.string().optional()),renewal:e0.z.enum(["all","to-renew","not-renewing"]).optional()}),iq=e0.z.object({holderId:e0.z.string(),renewal:e0.z.boolean(),name:e0.z.string(),street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable(),country:e0.z.string().nullable(),projectDescription:e0.z.string().nullable(),additionalInsured:e0.z.array(e0.z.string()),deliveryEmails:e0.z.array(e0.z.string()),additionalNamedInsured:e0.z.array(e0.z.string()),namedInsured:e0.z.string().nullable(),primaryNamedInsuredId:e0.z.string().nullable(),additionalNamedInsuredIds:e0.z.array(e0.z.string()),templateId:e0.z.string().nullable()}),iK=e0.z.object({holders:e0.z.array(iq),nextPageToken:e0.z.string().nullable()}),iQ=e0.z.object({accountId:e0.z.string().trim().min(1)}),i$=e0.z.object({fileName:e0.z.string().min(1),contentBase64:e0.z.string().min(1),holderCount:e0.z.number().int().nonnegative()}
7),iX=e0.z.enum(["PROCESSING","FAILED","READY_FOR_REVIEW","CONFIRMED","CANCELLED"]),iJ=e0.z.object({accountId:e0.z.string().trim().min(1),importId:e0.z.string().trim().min(1)}),iZ=e0.z.object({createdCount:e0.z.number().int().nonnegative(),updatedCount:e0.z.number().int().nonnegative()}),i0=e0.z.object({id:e0.z.string(),accountId:e0.z.string(),template:e0.z.object({id:e0.z.string(),name:e0.z.string()}),fileName:e0.z.string(),status:iX,attemptNumber:e0.z.number().int().positive(),progress:e0.z.object({totalRows:e0.z.number().int().nonnegative(),pendingRows:e0.z.number().int().nonnegative(),succeededRows:e0.z.number().int().nonnegative(),failedRows:e0.z.number().int().nonnegative()}),processingDeadlineAt:e0.z.string().datetime().nullable(),failureMessage:e0.z.string().nullable(),completion:iZ.nullable(),createdAt:e0.z.string().datetime(),updatedAt:e0.z.string().datetime()}),i1=iJ.pick({accountId:!0}),i2=e0.z.object({import:i0.nullable()}),i5=e0.z.object({id:e0.z.string(),sourceRowNumber:e0.z.number().int().positive(),anticipatedOutcome:e0.z.enum(["CREATE","UPDATE"]),proposed:e0.z.object({name:e0.z.string().min(1),address:e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable(),country:e0.z.string().nullable()}),renewal:e0.z.boolean(),namedInsured:e0.z.string().nullable(),additionalNamedInsureds:e0.z.array(e0.z.string()),additionalInsureds:e0.z.array(e0.z.string()),jobDescription:e0.z.string().nullable(),deliveryEmails:e0.z.array(e0.z.string()),endorsementRequirements:e0.z.array(e0.z.object({lineOfCoverage:t4,endorsementType:t1,scheduledRequired:e0.z.boolean()}))})}),i3=e0.z.object({accountId:e0.z.string(),importId:e0.z.string(),anticipatedCreateCount:e0.z.number().int().nonnegative(),anticipatedUpdateCount:e0.z.number().int().nonnegative(),rows:e0.z.array(i5)}),i4=e0.z.object({accountId:e0.z.string().trim().min(1),fileName:e0.z.string().trim().min(1),contentBase64:e0.z.string().min(1).max(4*Math.ceil(5242880/3))}),i9=i4.extend({templateId:e0.z.string().trim().min(1)}),i6=e0.z.object({import:i0}),i8=e0.z.object({importId:e0.z.string().min(1)}),i7=e0.z.object({rowNumber:e0.z.number().int().positive(),column:e0.z.string(),code:e0.z.enum(["MISSING_NAME","INVALID_EMAIL","INVALID_BOOLEAN"])}),ne=e0.z.object({anticipatedCreateCount:e0.z.number().int().nonnegative(),anticipatedUpdateCount:e0.z.number().int().nonnegative()}),nt=e0.z.discriminatedUnion("code",[e0.z.object({code:e0.z.literal("NO_VALID_ROWS")}),e0.z.object({code:e0.z.literal("UNSUPPORTED_FILE_FORMAT")}),e0.z.object({code:e0.z.literal("FILE_TOO_LARGE"),maxFileBytes:e0.z.number().int().positive()}),e0.z.object({code:e0.z.literal("UNREADABLE_WORKBOOK")}),e0.z.object({code:e0.z.literal("NO_WORKSHEETS")}),e0.z.object({code:e0.z.literal("MISSING_REQUIRED_COLUMNS"),columns:e0.z.array(e0.z.string()).min(1)}),e0.z.object({code:e0.z.literal("DUPLICATE_HEADERS"),columns:e0.z.array(e0.z.string()).min(1)}),e0.z.object({code:e0.z.literal("DUPLICATE_IMPORT_KEYS"),conflicts:e0.z.array(e0.z.object({key:e0.z.string(),rowNumbers:e0.z.array(e0.z.number().int().positive()).min(2)})).min(1)}),e0.z.object({code:e0.z.literal("INVALID_ROWS"),rowIssues:e0.z.array(i7).min(1)})]),ni=e0.z.object({issues:e0.z.array(nt).min(1)}),nn=e0.z.object({accountId:e0.z.string().trim().min(1),templateId:e0.z.string().trim().min(1),fileName:e0.z.string().trim().min(1),contentBase64:e0.z.string().min(1)}),nr=e0.z.object({conflicts:e0.z.array(e0.z.object({key:e0.z.string(),rowNumbers:e0.z.array(e0.z.number().int().positive())}))}),na=e0.z.object({created:e0.z.number().int().nonnegative(),updated:e0.z.number().int().nonnegative(),skippedInvalid:e0.z.number().int().nonnegative()}),no=e0.z.object({employeeId:e0.z.string(),name:e0.z.string(),email:e0.z.string(),roleLabel:e0.z.string()}),ns=e0.z.object({accountId:e0.z.string().trim().min(1)}),nl=e0.z.object({recipients:e0.z.array(no)}),nc=e0.z.object({accountId:e0.z.string().trim().min(1)}),nd=e0.z.object({emails:e0.z.array(e0.z.string().email())}),nu=e0.z.object({agencyName:e0.z.string().nullable(),address:e2.nullable(),contactName:e0.z.string().nullable(),contactPhone:e0.z.string().nullable(),contactFax:e0.z.string().nullable(),contactEmail:e0.z.string().nullable()}),nm=e0.z.object({employeeId:e0.z.string(),name:e0.z.string(),email:e0.z.string(),role:e0.z.enum
7(["ACCOUNT_MANAGER","ASSISTANT_ACCOUNT_MANAGER","PRODUCER","OTHER"])}),np=e0.z.object({id:e0.z.string(),label:e0.z.string(),sourceEmployeeId:e0.z.string().nullable(),agencyName:e0.z.string(),address:e2.nullable(),contactName:e0.z.string().nullable(),contactPhone:e0.z.string().nullable(),contactFax:e0.z.string().nullable(),contactEmail:e0.z.string().nullable()}),nE=e0.z.discriminatedUnion("type",[e0.z.object({type:e0.z.literal("default")}),e0.z.object({type:e0.z.literal("preset"),presetId:e0.z.string()})]),ng=e0.z.object({accountId:e0.z.string().trim().min(1)}),nI=e0.z.object({employees:e0.z.array(nm),presets:e0.z.array(np),selection:nE,resolved:nu,pipelineDefaultEmployeeId:e0.z.string().nullable()}),nb=e0.z.discriminatedUnion("type",[e0.z.object({type:e0.z.literal("default")}),e0.z.object({type:e0.z.literal("employee"),employeeId:e0.z.string().trim().min(1)}),e0.z.object({type:e0.z.literal("preset"),presetId:e0.z.string().trim().min(1)})]),n_=e0.z.object({accountId:e0.z.string().trim().min(1),selection:nb}),nz=e0.z.object({accountId:e0.z.string().trim().min(1),label:e0.z.string().trim().min(1),agencyName:e0.z.string().trim().min(1),address:e2.nullable(),contactName:e0.z.string().nullable(),contactPhone:e0.z.string().nullable(),contactFax:e0.z.string().nullable(),contactEmail:e0.z.string().nullable()}),nh=nz.extend({presetId:e0.z.string().trim().min(1)}),nA=e0.z.union([e0.z.object({coverageType:e0.z.literal("CUSTOM"),customLabel:e0.z.string().trim().min(1)}),e0.z.object({coverageType:e0.z.string().trim().min(1)}).refine(e=>"CUSTOM"!==e.coverageType,{message:"CUSTOM coverage requires a customLabel",path:["customLabel"]})]),nO=e0.z.object({acord25MandatoryLinesOfCoverage:e0.z.array(nA),showMinimumLimitRequested:e0.z.boolean(),applyWrapUpOcipExclusion:e0.z.boolean()}),nf=e0.z.object({accountId:e0.z.string().trim().min(1),policyId:e0.z.string().trim().min(1)}),nT=nO.extend({accountId:e0.z.string().trim().min(1),policyId:e0.z.string().trim().min(1)});e.s(["ACCOUNTS_LIST_MIN_QUERY_LENGTH",0,2,"AccountEndorsementSchema",0,t7,"AmsTypeSchema",0,tO,"CancelHolderImportInputSchema",0,iJ,"CancelHolderImportOutputSchema",0,i0,"CertificateStatus",0,iM,"CertificateStatusSchema",0,ij,"ConfirmHolderImportInputSchema",0,iJ,"ConfirmHolderImportOutputSchema",0,iZ,"CreateAccountEndorsementInputSchema",0,ia,"CreateAccountEndorsementOutputSchema",0,io,"CreateAccountNamedInsuredInputSchema",0,tX,"CreateAccountNamedInsuredOutputSchema",0,tH,"CreateAccountProducerContactPresetInputSchema",0,nz,"CreateAccountProducerContactPresetOutputSchema",0,nI,"CreateHolderImportInputSchema",0,i9,"CreateHolderImportOutputSchema",0,i0,"CreateManualAccountInputSchema",0,tY,"CreateManualAccountOutputSchema",0,tW,"DeleteAccountEndorsementInputSchema",0,ip,"DeleteAccountEndorsementOutputSchema",0,iE,"EndorsementApplicability",0,t3,"EndorsementApplicabilitySchema",0,t5,"EndorsementCoverageType",0,t9,"EndorsementCoverageTypeSchema",0,t4,"EndorsementType",0,t2,"EndorsementTypeSchema",0,t1,"EpicAssociatedAccountsOutputSchema",0,tR,"ExportAccountHoldersInputSchema",0,iQ,"ExportAccountHoldersOutputSchema",0,i$,"GetAccountCertificateIssuanceGuideRuleInputSchema",0,nf,"GetAccountCertificateIssuanceGuideRuleOutputSchema",0,nO,"GetAccountCertificatePolicyAcord25InputSchema",0,iN,"GetAccountCertificatePolicyAcord25OutputSchema",0,iS,"GetAccountOwningCompanyInputSchema",0,tP,"GetAccountOwningCompanyOutputSchema",0,tv,"GetAccountProducerContactInputSchema",0,ng,"GetAccountProducerContactOutputSchema",0,nI,"GetActiveHolderImportInputSchema",0,i1,"GetActiveHolderImportOutputSchema",0,i2,"GetHolderImportInputSchema",0,iJ,"GetHolderImportOutputSchema",0,i0,"HOLDER_IMPORT_MAX_FILE_BYTES",0,5242880,"HolderImportActiveConflictSchema",0,i8,"HolderImportLifecycleConflictSchema",0,i6,"HolderImportWorkbookValidationErrorSchema",0,ni,"INCLUDED_LIMIT",0,iL,"ImportAccountHoldersConflictsSchema",0,nr,"ImportAccountHoldersInputSchema",0,nn,"ImportAccountHoldersOutputSchema",0,na,"ImportImageRightAccountInputSchema",0,tG,"ImportInsuredAccountInputSchema",0,tk,"ImportInsuredAccountOutputSchema",0,tx,"ListAccountCertificatePoliciesInputSchema",0,iR,"ListAccountCertificatePoliciesOutputSchema",0,iw,"ListAccountCertificateTemplatesInputSchema",0,iY,"ListAccountCertificateTemplatesOutputSchema",0,iV,"ListAccountCertificatesInputSchema",0,ik,"ListAccountCertificatesOutputSchema",0,iG,"ListAccountEndorsementsInputSchema",0,t0,"ListAccountEndorsementsOutputSchema",0,it,"ListAccountHoldersInputSchema",0,iH,"ListAccountHoldersOutputSchema",0,iK,"ListAccountNamedInsuredsInputSchema",0,tq,"ListAccountNamedInsuredsOutputSchema",0,tK,"ListAccountPolicyOptionsInputSchema",0,tU,"ListAccountPolicyOptionsOutputSchema",0,tF,"ListAccountPrimaryContactEmailsInputSchema",0,nc,"ListAccountPrimaryContactEmailsOutputSchema",0,nd,"ListAccountServicingRecipientsInputSchema",0,ns,"ListAccountServicingRecipientsOutputSchema",0,nl,"ListAccountsInputSchema",0,tC,"ListAccountsOutputSchema",0,tS,"ListEpicDirectoryAccountsInputSchema",0,tL,"ListEpicDirectoryAccountsOutputSchema",0,tD,"ListHolderImportRowsInputSchema",0,iJ,"ListHolderImportRowsOutputSchema",0,i3,"PreviewHolderImportInputSchema",0,i4,"PreviewHolderImportOutputSchema",0,ne,"RetryHolderImportInputSchema",0,iJ,"RetryHolderImportOutputSchema",0,i0,"SearchAccountsInputSchema",0,tT,"SearchAccountsOutputSchema",0,tN,"SearchImageRightFilesInputSchema",0,tj,"SearchImageRightFilesOutputSchema",0,tM,"SetAccountProducerContactInputSchema",0,n_,"SetAccountProducerContactOutputSchema",0,nI,"UpdateAccountEndorsementInputSchema",0,iu,"UpdateAccountEndorsementOutputSchema",0,im,"UpdateAccountNamedInsuredInputSchema",0,tZ,"UpdateAccountNamedInsuredOutputSchema",0,tH,"UpdateAccountProducerContactPresetInputSchema",0,nh,"UpdateAccountProducerContactPresetOutputSchema",0,nI,"UpsertAccountCertificateIssuanceGuideRuleInputSchema",0,nT,"UpsertAccountCertificateIssuanceGuideRuleOutputSchema",0,nO,"UpsertAccountCertificatePolicySparseCoverageInputSchema",0,iB,"UpsertAccountCertificatePolicySparseCoverageOutputSchema",0,iF],810642);let ny=eQ.prefix("/accounts").router({getAccountOwningCompany:eQ.route({method:"GET",path:"/{accountId}/owning-company"}).input(tP).output(tv).errors({NOT_FOUND:eZ.NOT_FOUND}),getAccountCertificatePolicyAcord25:eQ.route({method:"GET",path:"/{accountId}/certificate-policies/{policyId}/acord25"}).input(iN).output(iS).errors({NOT_FOUND:eZ.NOT_FOUND}),listAccountCertificatePolicies:eQ.route({method:"GET",path:"/{accountId}/certificate-policies"}).input(iR).output(iw),upsertAccountCertificatePolicySparseCoverage:eQ.route({method:"PUT",path:"/{accountId}/certificate-policies/{policyId}/sparse-coverage"}).input(iB).output(iF).errors({BAD_REQUEST:eZ.BAD_REQUEST,FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND}),getAccountCertificateIssuanceGuideRule:eQ.route({method:"GET",path:"/{accountId}/certificate-policies/{policyId}/issuance-guide-rule"}).input(nf).output(nO).errors({BAD_REQUEST:eZ.BAD_REQUEST,FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND}),upsertAccountCertificateIssuanceGuideRule:eQ.route({method:"PUT",path:"/{accountId}/certificate-policies/{policyId}/issuance-guide-rule"}).input(nT).output(nO).errors({BAD_REQUEST:eZ.BAD_REQUEST,FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND}),listAccountCertificates:eQ.route({method:"GET",path:"/{accountId}/certificates"}).input(ik).output(iG),listAccountCertificateTemplates:eQ.route({method:"GET",path:"/{accountId}/certificates/templates"}).input(iY).output(iV),listAccountHolders:eQ.route({method:"GET",path:"/{accountId}/holders"}).input(iH).output(iK).errors({BAD_REQUEST:eZ.BAD_REQUEST}),exportAccountHolders:eQ.route({method:"GET",path:"/{accountId}/holders:export"}).input(iQ).output(i$).errors({NOT_FOUND:eZ.NOT_FOUND}),createHolderImport:eQ.route({method:"POST",path:"/{accountId}/holder-imports",successStatus:201}).input(i9).output(i0).errors({WORKBOOK_VALIDATION_FAILED:{status:422,data:ni},ACTIVE_IMPORT_EXISTS:{status:409,data:i8},NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),getActiveHolderImport:eQ.route({method:"GET",path:"/{accountId}/holder-imports/active"}).input(i1).output(i2).errors({NOT_FOUND:eZ.NOT_FOUND}),getHolderImport:eQ.route({method:"GET",path:"/{accountId}/holder-imports/{importId}"}).input(iJ).output(i0).errors({NOT_FOUND:eZ.NOT_FOUND}),listHolderImportRows:eQ.route({method:"GET",path:"/{accountId}/holder-imports/{importId}/rows"}).input(iJ).output(i3).errors({HOLDER_IMPORT_LIFECYCLE_CONFLICT:{status:409,data:i6},NOT_FOUND:eZ.NOT_FOUND}),retryHolderImport:eQ.route({method:"POST",path:"/{accountId}/holder-imports/{importId}:retry"}).input(iJ).output(i0).errors({HOLDER_IMPORT_LIFECYCLE_CONFLICT:{status:409,data:i6},NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),cancelHolderImport:eQ.route({method:"POST",path:"/{accountId}/holder-imports/{importId}:cancel"}).input(iJ).output(i0).errors({HOLDER_IMPORT_LIFECYCLE_CONFLICT:{status:409,data:i6},NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),confirmHolderImport:eQ.route({method:"POST",path:"/{accountId}/holder-imports/{importId}:confirm"}).input(iJ).output(iZ).errors({HOLDER_IMPORT_LIFECYCLE_CONFLICT:{status:409,data:i6},NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),previewHolderImport:eQ.route({method:"POST",path:"/{accountId}/holder-imports:preview"}).input(i4).output(ne).errors({WORKBOOK_VALIDATION_FAILED:{status:422,data:ni},NOT_FOUND:eZ.NOT_FOUND}),importAccountHolders:eQ.route({method:"POST",path:"/{accountId}/holders:import"}).input(nn).output(na).errors({DUPLICATE_IMPORT_KEYS:{status:400,data:nr},BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),listAccountServicingRecipients:eQ.route({method:"GET",path:"/{accountId}/servicing-recipients"}).input(ns).output(nl),listAccountPrimaryContactEmails:eQ.route({method:"GET",path:"/{accountId}/primary-contact-emails"}).input(nc).output(nd),getAccountProducerContact:eQ.route({method:"GET",path:"/{accountId}/producer-contact"}).input(ng).output(nI).errors({NOT_FOUND:eZ.NOT_FOUND}),setAccountProducerContact:eQ.route({method:"PUT",path:"/{accountId}/producer-contact"}).input(n_).output(nI).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),createAccountProducerContactPreset:eQ.route({method:"POST",path:"/{accountId}/producer-contact/presets"}).input(nz).output(nI).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),updateAccountProducerContactPreset:eQ.route({method:"PUT",path:"/{accountId}/producer-contact/presets/{presetId}"}).input(nh).output(nI).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),listAccountNamedInsureds:eQ.route({method:"GET",path:"/{accountId}/named-insureds"}).input(tq).output(tK),createAccountNamedInsured:eQ.route({method:"POST",path:"/{accountId}/named-insureds"}).input(tX).output(tH).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),updateAccountNamedInsured:eQ.route({method:"PATCH",path:"/{accountId}/named-insureds/{namedInsuredId}"}).input(tZ).output(tH).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),listAccountEndorsements:eQ.route({method:"GET",path:"/{accountId}/endorsements"}).input(t0).output(it).errors({BAD_REQUEST:eZ.BAD_REQUEST}),createAccountEndorsement:eQ.route({method:"POST",path:"/{accountId}/endorsements"}).input(ia).output(io).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),updateAccountEndorsement:eQ.route({method:"PATCH",path:"/{accountId}/endorsements/{endorsementId}"}).input(iu).output(im).errors({NOT_FOUND:eZ.NOT_FOUND}),deleteAccountEndorsement:eQ.route({method:"DELETE",path:"/{accountId}/endorsements/{endorsementId}",successStatus:204}).input(ip).output(iE).errors({NOT_FOUND:eZ.NOT_FOUND}),searchAccounts:eQ.route({method:"GET",path:"/search"}).input(tT).output(tN),listAccounts:eQ.route({method:"GET",path:"/list"}).input(tC).output(tS).errors({BAD_REQUEST:eZ.BAD_REQUEST}),listEpicAssociatedAccounts:eQ.route({method:"GET",path:"/epic-associated"}).output(tR),listEpicDirectoryAccounts:eQ.route({method:"GET",path:"/epic-directory"}).input(tL).output(tD),listAccountPolicyOptions:eQ.route({method:"GET",path:"/{accountId}/policy-options"}).input(tU).output(tF).errors({NOT_FOUND:eZ.NOT_FOUND}),searchImageRightFiles:eQ.route({method:"GET",path:"/imageright/search-files"}).input(tj).output(tM),importInsuredAccount:eQ.route({method:"POST",path:"/import"}).input(tk).output(tx).errors({BAD_REQUEST:eZ.BAD_REQUEST,FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),importImageRightAccount:eQ.route({method:"POST",path:"/imageright/import"}).input(tG).output(tx).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),createManualAccount:eQ.route({method:"POST",path:"/manual"}).input(tY).output(tW).errors({BAD_REQUEST:eZ.BAD_REQUEST,CONFLICT:eZ.CONFLICT,FORBIDDEN:eZ.FORBIDDEN})});(t=U||(U={})).CURRENT="current",t.RENEWAL="renewal",t.NEGOTIATED="negotiated",t.ALTERNATIVE="alternative",(i=w||(w={})).SUMMARY="summary",i.RATES="rates",i.CENSUS="census",i.OTHER="other";let nN=new Set([w.SUMMARY,w.RATES]);function nC({roles:e,contents:t}){return t.length>0&&(e.length>0||!t.some(e=>nN.has(e)))}let nS=e=>e0.z.array(e).refine(e=>new Set(e).size===e.length,{message:"Each value may appear only once per source."}),nR=e0.z.object({version:e0.z.literal(1),documents:e0.z.array(e0.z.object({managedDocumentId:e0.z.string().trim().min(1),roles:nS(e0.z.enum
7(U)),contents:nS(e0.z.enum(w))}).refine(nC,{message:"Choose a content, and a role for summary or rates."}))}).superRefine(({documents:e},t)=>{let i=new Set;e.forEach(({managedDocumentId:e},n)=>{i.has(e)&&t.addIssue({code:"custom",path:["documents",n,"managedDocumentId"],message:"Each source may be declared only once per turn."}),i.add(e)})});e0.z.object({turnId:e0.z.string().min(1),submittedAt:e0.z.string().datetime(),manifest:nR}),e.s(["BenefitSourceContent",0,w,"BenefitSourceRole",0,U,"BenefitsSourceManifestSchema",0,nR,"isCompleteBenefitSource",0,nC],754801);let nL=/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[\uDC00-\uDFFF]/g;function nD(e){return`Applied Epic accepts at most ${e} characters.`}e.s(["ACTIVITY_DESCRIPTION_CHARACTER_LIMIT",0,125,"ACTIVITY_TASK_DESCRIPTION_CHARACTER_LIMIT",0,70,"ATTACHMENT_DESCRIPTION_CHARACTER_LIMIT",0,125,"POLICY_DESCRIPTION_CHARACTER_LIMIT",0,125,"POLICY_NUMBER_CHARACTER_LIMIT",0,25,"describeCharacterLimit",0,nD,"truncateToCodeUnits",0,function(e,t){let i=e.length<=t?e:e.slice(0,t),n=i.charCodeAt(i.length-1);return(n>=55296&&n<=56319?i.slice(0,-1):i).replace(nL,e=>2===e.length?e:"�")}],349139);let nP=e0.z.object({valueType:e0.z.enum(["string","number"]),decimalPlaces:e0.z.number().int().nonnegative().nullable(),allowNegative:e0.z.boolean(),allowGrouping:e0.z.boolean().default(!1),maximum:e0.z.string().regex(/^\d+$/).optional(),maxLength:e0.z.number().int().positive().optional()}),nv=e0.z.registry(),nU="Enter a nonnegative dollar amount.";function nw(e,t){let i,n=nP.parse(e);if("number"===n.valueType){let e=e0.z.number();n.allowNegative||(e=e.nonnegative(nU)),0===n.decimalPlaces?e=e.int():null!==n.decimalPlaces&&(e=e.multipleOf(10**-n.decimalPlaces)),void 0!==n.maximum&&(e=e.max(Number(n.maximum))),i=e}else{let e=n.allowGrouping?"(?:\\d{1,3}(?:,\\d{3})+|\\d+)":"\\d+",r=0===n.decimalPlaces?"":null===n.decimalPlaces?"(?:\\.\\d+)?":`(?:\\.\\d{1,${n.decimalPlaces}})?`,a=RegExp(`^${n.allowNegative?"-?":""}${e}${r}$`),o=e0.z.string().regex(a,{error:e=>t||("string"==typeof e.input&&!n.allowNegative&&e.input.startsWith("-")?nU:null!==n.decimalPlaces&&n.decimalPlaces>0?`The amount can have at most ${n.decimalPlaces} decimal places.`:"Enter a valid dollar amount.")});if(void 0!==n.maximum){let e=BigInt(n.maximum);o=o.refine(t=>{if(!a.test(t))return!1;if(t.startsWith("-"))return!0;let[i,n]=t.replaceAll(",","").split(".");return BigInt(i)<e||BigInt(i)===e&&!/[1-9]/.test(null!=n?n:"")},`Epic holds nothing above ${n.maximum}.`)}void 0!==n.maxLength&&(o=o.max(n.maxLength,nD(n.maxLength))),i=o}let r=t?i.describe(t):i;return nv.add(r,{format:n}),r}function nB(e){let t=/^(-?\$?|\$-?)((?:\d{1,3}(?:,\d{3})+|\d+)(?:\.\d+)?|\.\d+)$/.exec(e.trim());if(t)return(t[1].includes("-")?"-":"")+t[2].replaceAll(",","").replace(/^\./,"0.").replace(/^0+(?=\d)/,"")}e.s(["EpicPolicyMoneyFormatSchema",0,nP,"createEpicMoneySchema",0,nw,"normalizeEpicMoneyInput",0,function(e,t){let i=nB(e);if(void 0===i)return{error:"Enter a dollar amount, like $1,000."};let[n,r]=i.split(".");if(0===t.decimalPlaces){let e=n.startsWith("-"),t=BigInt(e?n.slice(1):n)+BigInt(r&&r[0]>="5"?1:0);i=`${e?"-":""}${t}`}let a=nw({...t,valueType:"string"}).safeParse(i);if(!a.success)return{error:a.error.issues[0].message};if("string"===t.valueType)return{value:a.data};let o=Number(i);if(!Number.isFinite(o))return{error:"This amount is too large for this field."};if(0===o&&/[1-9]/.test(i))return{error:"This amount is too small for this field."};let s=nw(t).safeParse(o);return s.success?{value:s.data}:{error:s.error.issues[0].message}},"parseEpicMoney",0,nB],839056);let nF=e0.z.enum(["PDF","WORD","EXCEL","POWERPOINT","EMAIL","IMAGE","TIFF","ARCHIVE","TEXT","UNKNOWN"]),nj=nF.enum;nj.PDF,nj.WORD,nj.EXCEL;let nM=e0.z.enum(["CONTENT_TYPE_METADATA","EXTENSION_METADATA","BYTE_VERIFICATION"]);nM.enum;let nk=e0.z.enum(["HIGH","MEDIUM","LOW"]);nk.enum;let nx=e0.z.enum(["OTHER","POLICY","QUOTE","BINDER","ENDORSEMENT","SCHEDULE","LOSS_RUN","CERTIFICATE","PROPOSAL","POLICY_CHECK_REPORT","LOSS_RUN_REPORT","CHAT_OUTPUT"]),nG=nx.enum,nY=e0.z.enum(["USER_UPLOAD","AMS_SYNC","WORKFLOW_OUTPUT"]),nW=nY.enum,nV=e0.z.object({}).strict(),nH=e0.z.object({id:e0.z.string(),fileName:e0.z.string(),source:nY,category:nx.nullable(),sourceCreatedAt:e0.z.coerce.date(),lastUsedOrCreatedAt:e0.z.coerce.date(),byteSize:e0.z.number(),sourceEpicAttachmentId:e0.z.string().nullable(),ocrVersion:e0.z.number().nullable(),policyNumber:e0.z.string().nullable()}),nq=e0.z.object({id:e0.z.string(),attachmentIDFromEpic:e0.z.number(),accountIDFromEpic:e0.z.number(),attachedDate:e0.z.coerce.date(),fileName:e0.z.string().nullable(),extension:e0.z.string().nullable(),byteSize:e0.z.number().nullable(),description:e0.z.string(),folder:e0.z.string(),triageCategory:nx.nullable(),managedDocumentIds:e0.z.array(e0.z.string()),activityDescriptions:e0.z.array(e0.z.string())}),nK=e0.z.object({managedDocuments:e0.z.array(nH)}),nQ=e0.z.string().trim().regex(/^[1-9]\d*$/,{message:"Epic account ID must be a positive integer"}).refine(e=>Number.isSafeInteger(Number(e)),{message:"Epic account ID is too large"}),n$=e0.z.object({epicAccountId:nQ}),nX=e0.z.object({insuredAccountId:e0.z.string(),managedDocuments:e0.z.array(nH),epicAttachments:e0.z.array(nq),sync:e0.z.discriminatedUnion("ok",[e0.z.object({ok:e0.z.literal(!0),created:e0.z.number(),updated:e0.z.number(),total:e0.z.number()}),e0.z.object({ok:e0.z.literal(!1)})])}),nJ=e0.z.object({epicAccountId:nQ,workflowId:e0.z.string().trim().min(1).optional(),policyNumber:e0.z.string().trim().min(1).optional()}),nZ=e0.z.object({accountId:nQ,policyId:e0.z.string(),policyNumber:e0.z.string(),description:e0.z.string(),effectiveDate:e0.z.string(),expirationDate:e0.z.string(),checkableLines:e0.z.array(e0.z.string()),unsupportedLine
7s:e0.z.array(e0.z.string()),unmappedLineTypes:e0.z.array(e0.z.string()),supportKnown:e0.z.boolean()}),n0=e0.z.object({policies:e0.z.array(nZ)}),n1=e0.z.string().trim().regex(/^[1-9]\d*$/,{message:"ImageRight file ID must be a positive integer"}).refine(e=>Number.isSafeInteger(Number(e)),{message:"ImageRight file ID is too large"}),n2=e0.z.object({imageRightFileId:n1}),n5=e0.z.object({imageRightPageId:e0.z.number(),imageRightDocumentId:e0.z.number(),pagenumber:e0.z.number(),description:e0.z.string(),extension:e0.z.string().nullable(),alreadyPulled:e0.z.boolean(),managedDocumentId:e0.z.string().nullable(),contentType:e0.z.number().nullable().optional(),imageType:e0.z.number().nullable().optional(),version:e0.z.number().nullable().optional(),formatFamily:nF.nullable().optional(),canonicalExtension:e0.z.string().nullable().optional(),classificationSource:nM.nullable().optional(),classificationConfidence:nk.nullable().optional(),hasMetadataConflict:e0.z.boolean().nullable().optional(),requiresDownloadVerification:e0.z.boolean().nullable().optional()}),n3=e0.z.object({mergeGroupKey:e0.z.string().min(1),description:e0.z.string(),minPagenumber:e0.z.number(),maxPagenumber:e0.z.number(),count:e0.z.number(),pages:e0.z.array(n5),alreadyPulled:e0.z.boolean(),managedDocumentId:e0.z.string().nullable()}),n4=e0.z.object({documentId:e0.z.number(),description:e0.z.string(),documentDate:e0.z.coerce.date().nullable(),documentName:e0.z.string().nullable(),documentTypeDescription:e0.z.string().nullable(),pageCount:e0.z.number(),folderId:e0.z.number().nullable(),folderName:e0.z.string().nullable()}),n9=e0.z.object({imageRightFolderId:e0.z.number(),parentImageRightFolderId:e0.z.number().nullable(),description:e0.z.string().nullable(),folderTypeName:e0.z.string().nullable(),folderTypeDescription:e0.z.string().nullable(),folderTypeId:e0.z.number().int().nullable(),repeatableFolderSortAscending:e0.z.boolean()}),n6=e0.z.object({rootChildFolderTypeIds:e0.z.array(e0.z.number().int()),childFolderTypeIdsByFolderTypeId:e0.z.array(e0.z.object({folderTypeId:e0.z.number().int(),childFolderTypeIds:e0.z.array(e0.z.number().int())}))}),n8=e0.z.object({insuredAccountId:e0.z.string(),managedDocuments:e0.z.array(nH),imageRightDocuments:e0.z.array(n4),folders:e0.z.array(n9),folderTypeOrder:n6}),n7=e0.z.object({imageRightFileId:n1,imageRightDocumentId:e0.z.number().int().positive()}),re=e0.z.object({pages:e0.z.array(n5),mergedGroups:e0.z.array(n3)}),rt=e0.z.object({insuredAccountId:e0.z.string().min(1)}),ri=e0.z.object({managedDocuments:e0.z.array(nH)}),rn=e0.z.enum(["managedDocument","epicAttachment","imageRightPage"]),rr=e0.z.object({documentType:rn,documentId:e0.z.string().min(1)}),ra=e0.z.object({name:e0.z.string().nullable(),address:e0.z.string().nullable()}),ro=e0.z.object({fileName:e0.z.string(),contentType:e0.z.string().nullable(),byteSize:e0.z.number().int().nonnegative(),managedDocumentId:e0.z.string().nullable(),managedDocumentFileName:e0.z.string().nullable()}),rs=e0.z.object({from:ra.nullable(),to:e0.z.array(ra),cc:e0.z.array(ra),subject:e0.z.string().nullable(),date:e0.z.string().nullable(),bodyHtml:e0.z.string(),bodyText:e0.z.string(),hasRemoteContent:e0.z.boolean(),attachments:e0.z.array(ro)}),rl=e0.z.discriminatedUnion("kind",[e0.z.object({kind:e0.z.literal("url"),url:e0.z.string().url(),fileName:e0.z.string(),contentType:e0.z.literal("application/pdf")}),e0.z.object({kind:e0.z.literal("base64"),contentBase64:e0.z.string().min(1),fileName:e0.z.string(),contentType:e0.z.literal("application/pdf")}),e0.z.object({kind:e0.z.literal("email"),fileName:e0.z.string(),email:rs})]),rc=e0.z.object({epicAttachmentId:e0.z.string().min(1)}),rd=e0.z.object({policyNumber:e0.z.string().nullable()});e0.z.object({insuredAccountId:e0.z.string().optional()});let ru=e0.z.object({managedDocumentId:e0.z.string(),fileName:e0.z.string(),byteSize:e0.z.number(),duplicateOf:e0.z.string().optional()});e0.z.object({files:e0.z.array(ru)}),e.s(["CITATION_HASH_ATTRIBUTE",0,"data-citation-hash","DocumentCategory",0,nG,"DocumentSource",0,nW,"EmailPreviewDataSchema",0,rs,"EpicSyncAndListAccountDocumentsInputSchema",0,n$,"EpicSyncAndListAccountDocumentsOutputSchema",0,nX,"ExtractPolicyNumberInputSchema",0,rc,"ExtractPolicyNumberOutputSchema",0,rd,"ImageRightListDocumentPagesInputSchema",0,n7,"ImageRightListDocumentPagesOutputSchema",0,re,"ImageRightSyncAndListAccountDocumentsInputSchema",0,n2,"ImageRightSyncAndListAccountDocumentsOutputSchema",0,n8,"ListAccountManagedDocumentsInputSchema",0,rt,"ListAccountManagedDocumentsOutputSchema",0,ri,"ListEpicPol
7iciesInputSchema",0,nJ,"ListEpicPoliciesOutputSchema",0,n0,"ListUserUploadedDocumentsInputSchema",0,nV,"ListUserUploadedDocumentsOutputSchema",0,nK,"PreviewDocumentInputSchema",0,rr,"PreviewDocumentOutputSchema",0,rl],720634);let rm=["EE","ES","E1","EC","EC1","EC2","FAM"],rp=e0.z.enum(rm),rE=["EE","ES","EC","FAM"],rg={EE:"Employee",ES:"Employee + Spouse",E1:"Employee + One Dependent",EC:"Employee + Child(ren)",EC1:"Employee + One Child",EC2:"Employee + Two or More Children",FAM:"Employee + Family"};function rI(e){return rm.reduce((t,i)=>(t[i]=e,t),{})}function rb(e){var t;return null!=(t=null==e?void 0:e.enrollmentTiers)?t:rE}e.s(["BENEFIT_TIERS",0,rm,"BENEFIT_TIER_LABELS",0,rg,"TierSchema",0,rp,"benefitTierRows",0,function(e){let t=new Set;for(let i of e.length?e:[{}])for(let e of rb(i))t.add(e);return rm.filter(e=>t.has(e)).map(e=>({key:e,label:rg[e]}))},"benefitTierShape",0,rI,"benefitTiers",0,rb],706886);let r_=["MEDICAL","DENTAL","VISION","LIFE","STD","LTD"],rz=e0.z.enum(r_),rh=e0.z.enum(["QUOTE","SBC","PLAN_SUMMARY","CENSUS","USER","DERIVED","BLANK"]),rA=e0.z.discriminatedUnion("documentType",[e0.z.object({documentType:e0.z.literal("PDF"),documentId:e0.z.string(),page:e0.z.number().optional(),hash:e0.z.string().optional()}),e0.z.object({documentType:e0.z.literal("EXCEL"),documentId:e0.z.string(),sheet:e0.z.string().optional(),row:e0.z.number().optional(),column:e0.z.string().optional()})]),rO=e0.z.object({value:e0.z.string(),normalized:e0.z.number().optional(),provenance:rh,citation:rA.optional()}),rf=rO.extend({original:rO.optional()}),rT=e0.z.object({id:e0.z.string().min(1),label:e0.z.string().trim().min(1),value:rf}),ry=e0.z.discriminatedUnion("structure",[e0.z.object({structure:e0.z.literal("TIER_BASED"),tiers:e0.z.object(rI(rf)).partial().strict()}),e0.z.object({structure:e0.z.literal("AGE_BANDED"),bands:e0.z.array(e0.z.object({age:e0.z.number(),rate:rf.optional()}))}),e0.z.object({structure:e0.z.literal("VOLUME_BASED"),rate:rf,unit:e0.z.enum(["PER_1000_BENEFIT","PER_10_WEEKLY_BENEFIT","PER_100_MONTHLY_PAYROLL"]),period:e0.z.enum(["MONTHLY","ANNUAL"])})]),rN='Categorical: emit "Embedded" or "Aggregate" only (map "non-embedded" / "true family" -> "Aggregate"; "individual within a family applies" -> "Embedded"). Omit `normalized`.',rC='Member coinsurance share as a percent: if the source says the plan/carrier pays 80%, the value is "20%" and `normalized` is the member share 20 (not 80) so it matches `value`.',rS=e0.z.object({plan_year_basis:rf.describe('When deductibles and out-of-pocket maximums reset: every January 1 (calendar year) or on the plan\'s renewal date (plan year). Categorical: emit "Calendar Year" or "Plan Year" only. Omit `normalized`.'),hra_individual_funding:rf.describe("Annual amount the employer puts into a Health Reimbursement Arrangement (HRA) for employee-only coverage. An HRA is employer-funded and reimburses the member's deductible and other cost sharing."),hra_family_funding:rf.describe("Annual employer HRA contribution for coverage that includes dependents."),INW_individual_deductible:rf.describe("In-network amount one person pays each year for covered services before the plan starts sharing costs."),INW_family_deductible:rf.describe("In-network deductible for family coverage: the yearly total the covered family pays before the plan shares costs for every member."),INW_family_deductible_treatment:rf.describe(`How the in-network family deductible is met. Embedded: each person also has the individual deductible and the plan pays for that person once they meet it. Aggregate (non-embedded): the full family deductible must be met, by one or more members, before the plan pays for anyone. ${rN}`),INW_coinsurance:rf.describe(`Member's percentage share of the allowed amount for in-network covered services after the deductible. ${rC}`),INW_individual_oop:rf.describe("In-network out-of-pocket maximum for one person: the most they pay in a year in deductibles, copays and coinsurance before the plan pays 100% of covered services. Premiums never count."),INW_family_oop:rf.describe("In-network out-of-pocket maximum for family coverage: the most the covered family pays in a year in cost sharing before the plan pays 100% of covered services."),INW_family_oop_cap:rf,INW_family_oop_treatment:rf.describe(`How the in-network family out-of-pocket maximum is met. Embedded: each person stops paying once they reach the individual maximum. Aggregate (non-embedded): members' cost sharing pools toward the single family maximum. ${rN}`),OON_individual_deductible:rf.describe("Out-of-network deductible for one person: the yearly amount paid for care from providers that do not contract with the plan before the plan shares costs."),OON_family_deductible:rf.describe("Out-of-network deductible for family coverage."),OON_coinsurance:rf.describe(`Member's percentage share of the allowed amount for out-of-network covered services after the deductible. Usually higher than 
7in-network coinsurance. ${rC}`),OON_individual_oop:rf.describe("Out-of-network out-of-pocket maximum for one person. Balance-billed charges above the allowed amount do not count toward it."),OON_family_oop:rf.describe("Out-of-network out-of-pocket maximum for family coverage."),preventive_care:rf.describe("Member cost for routine preventive services: check-ups, screenings and immunizations."),primary_care:rf.describe("Member cost for an office visit with a primary care physician."),specialist:rf.describe("Member cost for an office visit with a specialist, a provider focused on a specific area of medicine."),specialist_referral_required:rf.describe('Whether the plan covers a specialist visit only after a referral from a primary care physician. Categorical: emit "Required" or "Not Required" only. Omit `normalized`.'),virtual_visit:rf.describe("Member cost for a telehealth visit with a provider by phone or video."),urgent_care:rf.describe("Member cost at an urgent care center, for conditions that need prompt care but not an emergency room."),emergency_room:rf.describe("Member cost for emergency room care of an emergency medical condition."),laboratory:rf.describe("Member cost for diagnostic lab tests such as blood work."),radiology:rf.describe("Member cost for standard diagnostic imaging such as X-rays and ultrasounds."),complex_imaging:rf.describe("Member cost for advanced imaging: CT scans, PET scans and MRIs. These often need prior authorization."),outpatient_surgery:rf.describe("Member cost for the facility fee of surgery without an overnight stay, e.g. at an ambulatory surgery center or hospital outpatient department."),physician_fee:rf.describe("Member cost for physician or surgeon professional fees, billed separately from the facility fee."),inpatient_hospitalization:rf.describe("Member cost for a hospital stay that requires admission as an inpatient, usually overnight."),rx:e0.z.array(rT).describe("Source-backed pharmacy rows, including distinct tiers, channels, deductible and out-of-pocket limits. Each row has a unique stable id and a concise label; never infer a drug category from a tier number.")}).partial(),rR='CARRIER responsibility (plan-paid) percentage — dental convention: "100/80/50" means the CARRIER/plan pays this share. value like "80%", `normalized` the carrier-paid number (80). NEVER invert to the member share (this is the OPPOSITE of the medical coinsurance fields, which record member share).',rL='Emit "None" or "<N> Months" as stated. Omit `normalized` for "None".',rD=e0.z.object({deductible_single:rf,deductible_family:rf,preventive_deductible_waived:rf,late_entrant_period:rf.describe("Special waiting period for late entrants. Keep separate from ordinary service waiting periods."),annual_maximum:rf,maximum_rollover:rf,coinsurance_preventative:rf.describe(rR),coinsurance_basic:rf.describe(rR),coinsurance_major:rf.describe(rR),coinsurance_endodontic:rf.describe(rR),coinsurance_peri
7odontal:rf.describe(rR),coinsurance_ortho:rf.describe(rR),ortho_lifetime_maximum:rf,endo_classification:rf.describe('Categorical: emit "Basic" or "Major" only (the class endodontics falls under). Omit `normalized`.'),perio_classification:rf.describe('Categorical: emit "Basic" or "Major" only (the class periodontics falls under). Omit `normalized`.'),oral_surgery_classification:rf.describe('Categorical: emit "Basic" or "Major" only (the class oral surgery falls under). Omit `normalized`.'),oon_reimbursement:rf.describe('Categorical reimbursement basis: emit as stated, e.g. "UCR", "MAC", "90th percentile UCR". Omit `normalized`.'),oon_coinsurance_preventative:rf.describe(rR),oon_coinsurance_basic:rf.describe(rR),oon_coinsurance_major:rf.describe(rR),oon_coinsurance_endodontic:rf.describe(rR),oon_coinsurance_periodontal:rf.describe(rR),oon_coinsurance_ortho:rf.describe(rR),waiting_period_preventative:rf.describe(rL),waiting_period_basic:rf.describe(rL),waiting_period_major:rf.describe(rL),waiting_period_ortho:rf.describe(rL),participation_requirement:rf,rate_guarantee:rf}).partial(),rP=e0.z.object({frequency:rf.describe('Exam/Lens/Frames frequency in months as "E/L/F", e.g. "12/12/24". Omit `normalized`.'),copay_exam:rf,copay_materials:rf,lenses:rf,contact_lens_exam:rf.describe("Contact lens fitting or evaluation charge. Not the allowance to buy contact lenses."),frames_allowance:rf.describe('In-network allowance dollar amount, e.g. "$130".'),contacts_allowance:rf.describe('In-network allowance dollar amount, e.g. "$130".'),oon_exam_reimbursement:rf.describe('Out-of-network reimbursement as written, e.g. "Up to $30".'),oon_materials_reimbursement:rf.describe('Out-of-network reimbursement as written, e.g. "Up to $25".'),oon_frames_reimbursement:rf.describe('Out-of-network reimbursement as written, e.g. "Up to $65".'),oon_contacts_reimbursement:rf.describe('Out-of-network reimbursement as written, e.g. "Up to $90".'),participation_requirement:rf,rate_guarantee:rf}).partial(),rv=e0.z.object({benefit:rf,earnings_definition:rf,add_benefit:rf,disability_definition:rf,portability_conversion:rf,waiver_of_premium:rf,life_rate:rf.describe("Original Life component rate with unit and period when Life and AD&D are combined for pricing."),add_rate:rf.describe("Original AD&D component rate with unit and period. Do not count it twice when rates already contains the combined charge."),employee_rate_schedule:rf.describe("Employee age-dependent insured-volume rates: keep the age ranges, amounts, unit and period together. This is source detail, not supported automatic age-volume pricing."),spouse_rate_schedule:rf.describe("Spouse age-dependent insured-volume rates, age basis, unit and period. Do not substitute employee rates."),child_rate:rf.describe("Dependent child rate with amount, unit, period and who is covered."),maximum_benefit:rf,guaranteed_issue:rf,waiting_period:rf,elimination_period:rf,benefit_duration:rf,age_reduction:rf,exclusions:rf,participation_requirement:rf,rate_guarantee:rf}).partial(),rU=e0.z.object({employer:rf.optional(),groupNumber:rf.optional(),effectiveDate:rf.optional().describe("Effective date of this plan or offering version. Do not apply a renewal heading's date to a Current column. Omit when unknown."),period:rf.optional().describe("Coverage period of this plan or offering version. Keep Current and renewal periods separate; a proposal date does not establish the Current period."),version:rf.optional(),option:rf.optional()}),rw=e0.z.object({key:e0.z.string().min(1),label:e0.z.string().min(1),value:rf}),rB=e0.z.enum(["CURRENT","RENEWAL","NEGOTIATED","ALTERNATIVE"]),rF=e0.z.enum(["ai","user"]),rj=e0.z.object({value:e0.z.string(),normalized:e0.z.number().int().nonnegative(),provenance:rh,citation:rA.optional(),author:rF.default("ai")}),rM=rj.extend({original:rj.optional()}),rk=e0.z.object({count:rM.extend({normalized:e0.z.number().nonnegative()}),measure:e0.z.enum(["SUBSCRIBERS","MEMBERS"]),basis:e0.z.enum(["CURRENT_DOCUMENT","CURRENT_ENROLLMENT_SHEET","BROKER_INSTRUCTION","QUOTE_ASSUMPTION"]),reason:e0.z.string().optional()}).superRefine(function(e,t){"QUOTE_ASSUMPTION"===e.basis||Number.isInteger(e.count.normalized)||t.addIssue({code:"custom",path:["count","normalized"],message:"Actual people counts must be integers"})}
7),rx=e0.z.object({amount:rf,unit:e0.z.enum(["PEPM","PMPM","MONTHLY","ANNUAL"]),treatment:e0.z.enum(["ADDITIONAL","INCLUDED","CONDITIONAL"]).describe("ADDITIONAL: count this component once in its applicable cost measure, even when a printed total already includes it. INCLUDED: a fee detail already counted in another represented amount; identify that amount in condition. CONDITIONAL: applicability is unresolved, so withhold the affected cost measure. Core premiums, administration, expected claims and aggregate attachment must not use INCLUDED."),quotedPopulation:rk.optional(),population:rk.optional().describe("Actual Current subgroup charged by this PEPM or PMPM component, such as 62 HSA participants out of 567 enrolled employees. Omit when the rate applies to the whole Current population. Keep the subgroup count and rate separate; do not replace them with a fixed total. This is not the quoted population. State which people are charged in reason and cite their count."),condition:rf.optional()}),rG=rx.extend({original:rx.optional()}),rY=e0.z.object({arrangement:e0.z.enum(["SELF_FUNDED","LEVEL_FUNDED"]),administrator:rf.optional(),network:rf.optional(),stopLossInsurer:rf.optional(),carrierRating:rf.optional(),specificRetention:rf.optional(),specificContract:rf.optional(),specificCoverages:rf.optional().describe("Coverage reimbursed by specific stop-loss, such as Medical and Rx. This is not the employee medical benefit design."),specificMaximum:rf.optional(),aggregateContract:rf.optional(),aggregateCoverages:rf.optional().describe("Coverage reimbursed by aggregate stop-loss. Read it separately from specific coverage; do not assume they match."),aggregateCorridor:rf.optional(),aggregateMaximum:rf.optional().describe("Insurer's aggregate reimbursement limit. Not the employer's aggregate claims attachment or minimum attachment."),contractBasis:rf.optional().describe("Legacy combined contract description. New extraction uses specificContract and aggregateContract."),runInLimit:rf.optional(),individualRetentions:rf.optional().describe("Material individual stop-loss deductible exceptions (lasers), as stated. Keep identifying detail limited to what the comparison needs."),rateGuarantee:rf.optional(),quoteDeadline:rf.optional(),aggregateElection:e0.z.enum(["ELECTED","NOT_ELECTED","UNKNOWN"]),aggregateMinimumAnnual:rf.optional(),specificPremium:rG.optional().describe("Specific stop-loss premium component, counted once using ADDITIONAL when applicable."),aggregatePremium:rG.optional().describe("Aggregate stop-loss premium component, separate from the aggregate claims attachment. Count once using ADDITIONAL when elected."),administration:rG.optional().describe("Administration amount counted once using ADDITIONAL. If this is a net total, fees already inside it must use INCLUDED."),expectedClaims:rG.optional().describe("Expected claims component, counted once using ADDITIONAL in expected cost. Do not also add the aggregate attachment to expected cost."),aggregateAttachment:rG.optional().describe("Aggregate claims attachment component, counted once using ADDITIONAL in maximum cost. It is not a premium or a reimbursement limit."),deposits:rG.optional().describe("Sourced cash or imprest deposit. Preserve it separately; it is not automatically a recurring expense."),fees:e0.z.array(e0.z.object({name:e0.z.string(),cost:rG})).optional(),qualifications:e0.z.array(rf).optional()}),rW=e0.z.object(rI(rM)).partial().strict(),rV=e0.z.object({EE:e0.z.number().min(0).max(1),ES:e0.z.number().min(0).max(1),EC:e0.z.number().min(0).max(1),FAM:e0.z.number().min(0).max(1),E1:e0.z.number().min(0).max(1).optional(),EC1:e0.z.number().min(0).max(1).optional(),EC2:e0.z.number().min(0).max(1).optional()}).strict(),rH=e0.z.object({pairsWith:e0.z.string(),citation:rA.optional()}),rq=e0.z.object({carrier:e0.z.string(),name:e0.z.string(),planType:e0.z.string(),network:e0.z.string(),planNumber:e0.z.string().optional(),statedPairing:rH.optional(),enrollmentTiers:e0.z.array(rp).min(1).max(rm.length).optional().describe("The distinct coverage elections printed for this plan, including elections with unknown counts or rates. Two-tier: EE/FAM; three-tier: EE/E1/FAM; four-tier: EE/ES/EC/FAM; five-tier: EE/ES/EC1/EC2/FAM. Follow actual source labels, not the tier count. E1 is one dependent of either kind, EC is an unsplit child(ren) group, EC1 is one child, EC2 is two or more children. Omitted on legacy plans means EE/ES/EC/FAM. Never infer a spouse/child 
7split from a combined group."),rates:ry.optional(),contribution:rV.optional(),source:rU.optional(),conditions:e0.z.array(rf).optional(),additionalAttributes:e0.z.array(rw).optional().describe("Legacy saved attributes. New extraction and plan edits use the named design and funding fields.")}),rK=rq.extend({coverageLine:e0.z.literal("MEDICAL"),design:rS}),rQ=rq.extend({coverageLine:e0.z.literal("DENTAL"),design:rD}),r$=rq.extend({coverageLine:e0.z.literal("VISION"),design:rP}),rX=rq.extend({coverageLine:e0.z.literal("LIFE"),design:rv}),rJ=rq.extend({coverageLine:e0.z.literal("STD"),design:rv}),rZ=rq.extend({coverageLine:e0.z.literal("LTD"),design:rv});e0.z.discriminatedUnion("coverageLine",[rK,rQ,r$,rX,rJ,rZ]);let r0=e0.z.discriminatedUnion("coverageLine",[rK.extend({id:e0.z.string(),design:rS.passthrough()}),rQ.extend({id:e0.z.string()}),r$.extend({id:e0.z.string()}),rX.extend({id:e0.z.string()}),rJ.extend({id:e0.z.string()}),rZ.extend({id:e0.z.string()})]),r1=e0.z.discriminatedUnion("coverageLine",[rK.omit({additionalAttributes:!0}).extend({id:e0.z.string(),design:rS.strict()}).strict(),rQ.omit({additionalAttributes:!0}).extend({id:e0.z.string(),design:rD.strict()}).strict(),r$.omit({additionalAttributes:!0}).extend({id:e0.z.string(),design:rP.strict()}).strict(),rX.omit({additionalAttributes:!0}).extend({id:e0.z.string(),design:rv.strict()}).strict(),rJ.omit({additionalAttributes:!0}).extend({id:e0.z.string(),design:rv.strict()}).strict(),rZ.omit({additionalAttributes:!0}).extend({id:e0.z.string(),design:rv.strict()}).strict()]),r2=e0.z.object({id:e0.z.string(),name:e0.z.string(),displayOrder:e0.z.number(),coverageLine:rz,packageIds:e0.z.array(e0.z.string()),baselinePackageId:e0.z.string().optional()}),r5=e0.z.object({id:e0.z.string(),name:e0.z.string(),role:rB,coverageLine:rz,planIds:e0.z.array(e0.z.string()),currentPackageId:e0.z.string().optional(),recommended:e0.z.boolean().optional(),reason:e0.z.string().optional(),source:rU.optional(),conditions:e0.z.array(rf).optional(),status:e0.z.enum(["QUOTED","MODELED","UNRESOLVED","DECLINED"]).optional().describe("MODELED changes the population or assumptions used to price an offering; it does not confirm missing plan pairing, availability or rate applicability. Use UNRESOLVED when those remain unconfirmed. Conditions are displayed source notes and do not block totals; put unresolved pricing defects in issues or mark the affected funding cost CONDITIONAL."),population:rk.optional(),funding:rY.optional(),issues:e0.z.array(e0.z.string()).optional().describe("Unresolved rate applicability, availability or plan pairing that prevents pricing. Every entry blocks this offering's totals; Current issues also block its alternatives. Missing numeric rates, counts and exposure are checked from their fields; do not duplicate them here. Put enrollment discrepancies and other source notes in to
7p-level issues, conditions or reason.")}),r3=e0.z.enum(["STATED","IDENTITY","SIMILARITY"]),r4=e0.z.object({kind:r3,citation:rA.optional()}),r9=e0.z.enum(["EXTRACTED","ASSIGNED","CORRECTED","SPLIT","TRANSFERRED"]),r6=e0.z.object({id:e0.z.string(),packageId:e0.z.string(),planId:e0.z.string(),tiers:rW,ageBands:e0.z.array(e0.z.object({age:e0.z.number(),count:rM})).optional(),ageDerived:e0.z.boolean().default(!1),originId:e0.z.string().optional(),evidence:r4.optional(),operation:r9.default("EXTRACTED"),author:rF.default("ai"),reason:e0.z.string().optional(),exposure:e0.z.object({amount:rf,unit:e0.z.enum(["BENEFIT","WEEKLY_BENEFIT","MONTHLY_PAYROLL"])}).optional()}),r8=e0.z.object({schemaVersion:e0.z.literal(2),insuredName:e0.z.string().optional().describe('Employer (plan sponsor) named on the renewal, quote or census, normalized for display: Title Case, single spaces, no trailing punctuation, legal suffixes kept (e.g. "Acme Manufacturing LLC", not "ACME MANUFACTURING LLC."). Omit when the sources name no employer or name different ones.'),issues:e0.z.array(e0.z.string()).optional().describe("Non-pricing case notes, source limitations, exclusions and confirmed reconciliations. These notes are shown to the user without blocking totals."),plans:e0.z.array(r0),scenarios:e0.z.array(r2),packages:e0.z.array(r5),packagePlanEnrollments:e0.z.array(r6)}).superRefine(function(e,t){let i=new Map(e.plans.map(e=>[e.id,e])),n=new Map(e.packages.map(e=>[e.id,e]));e.packages.forEach((e,n)=>{var r;for(let a of e.planIds){let o=i.get(a);o&&o.coverageLine===e.coverageLine||t.addIssue({code:"custom",path:["packages",n,"planIds"],message:`Unknown or different-line plan "${a}" (${null!=(r=null==o?void 0:o.coverageLine)?r:"unknown"}) in package "${e.id}" (${e.coverageLine})`})}new Set(e.planIds).size!==e.planIds.length&&t.addIssue({code:"custom",path:["packages",n,"planIds"],message:"Duplicate plan membership"})}),e.scenarios.forEach((e,i)=>{for(let r of e.packageIds){let a=n.get(r);a&&a.coverageLine===e.coverageLine||t.addIssue({code:"custom",path:["scenarios",i,"packageIds"],message:`Unknown or different-line package "${r}"`})}new Set(e.packageIds).size!==e.packageIds.length&&t.addIssue({code:"custom",path:["scenarios",i,"packageIds"],message:"Duplicate offering membership"}),e.baselinePackageId&&!e.packageIds.includes(e.baselinePackageId)&&t.addIssue({code:"custom",path:["scenarios",i,"baselinePackageId"],message:"Benchmark must be displayed in this scenario"})})}).superRefine(function(e,t){for(let i of["plans","packages","scenarios","packagePlanEnrollments"]){let n=new Set;e[i].forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:"custom",path:[i,r,"id"],message:`duplicate ${"plans"===i?"plan":"packages"===i?"package":"scenarios"===i?"scenario":"packagePlanEnrollment"} id "${e.id}"`}),n.add(e.id)})}e.plans.forEach((e,i)=>{var n;let r=new Set,a=e.design;null==(n=null==a?void 0:a.rx)||n.forEach((e,n)=>{r.has(e.id)&&t.addIssue({code:"custom",path:["plans",i,"design","rx",n,"id"],message:`Duplicate pharmacy row id "${e.id}"`}),r.add(e.id)})})}).superRefine(function(e,t){let i=new Map(e.packages.map(e=>[e.id,e])),n=new Map(e.packagePlanEnrollments.map(e=>[e.id,e])),r=new Set(e.plans.map(e=>e.id));e.plans.forEach((e,i)=>{let n=e.enrollmentTiers;n&&(new Set(n).size!==n.length&&t.addIssue({code:"custom",path:["plans",i,"enrollmentTiers"],message:"Coverage tiers must be distinct"}),(n.includes("EC")&&(n.includes("EC1")||n.includes("EC2"))||n.includes("E1")&&(n.includes("ES")||n.includes("EC")||n.includes("EC1")))&&t.addIssue({code:"custom",path:["plans",i,"enrollmentTiers"],message:"Combined and separate coverage tiers overlap; preserve the source's distinct elections"}))}),e.packages.forEach((e,n)=>{if(void 0!==e.currentPackageId){let r=i.get(e.currentPackageId);r&&"CURRENT"===r.role&&r.coverageLine===e.coverageLine||t.addIssue({code:"custom",path:["packages",n,"currentPackageId"],message:"Population source must name a Current offering of the same coverage line"})}}),e.packagePlanEnrollments.forEach((e,a)=>{var o,s;let l=i.get(e.packageId);if(l||t.addIssue({code:"custom",path:["packagePlanEnrollments",a,"packageId"],message:`enrollment ${e.id} references unknown package "${e.packageId}"`}),r.has(e.planId)||t.addIssue({code:"custom",path:["packagePlanEnrollments",a,"planId"],message:`enrollment ${e.id} references unknown plan "${e.planId}"`}),l&&!l.planIds.includes(e.planId)&&t.addIssue({code:"custom",path:["packagePlanEnrollments",a,"planId"],message:`Enrollment "${e.id}" is not a member of package "${e.packageId}"`}),void 0!==e.originId){let r=n.get(e.originId),o=r&&i.get(r.packageId);(!r||(null==o?void 0:o.role)!=="CURRENT"||o.coverageLine!==(null==l?void 0:l.coverageLine)||(null==l?void 0:l.role)==="CURRENT"||(null==l?void 0:l.currentPackageId)&&l.currentPackageId!==o.id)&&t.addIssue({code:"custom",path:["packagePlanEnrollments",a,"originId"],message:"Allocation must reference a group in the offering's Current population"})}e.ageDerived&&e.ageBands&&e.tiers.EE&&e.ageBands.reduce((e,t)=>
7e+t.count.normalized,0)!==e.tiers.EE.normalized&&t.addIssue({code:"custom",path:["packagePlanEnrollments",a,"ageBands"],message:`enrollment ${e.id} age bands total ${e.ageBands.reduce((e,t)=>e+t.count.normalized,0)} but tiers.EE is ${e.tiers.EE.normalized}`});let c=null==(o=e.evidence)?void 0:o.kind;"STATED"!==c&&"IDENTITY"!==c||(null==(s=e.evidence)?void 0:s.citation)||t.addIssue({code:"custom",path:["packagePlanEnrollments",a,"evidence"],message:`enrollment ${e.id} claims ${c} evidence without a citation`})})});function r7(e){return e&&"BLANK"!==e.provenance&&void 0!==e.normalized?e.normalized:null}e0.z.object({instructions:e0.z.string().max(12e3).optional()}),e0.z.object({plans:e0.z.array(e0.z.object({id:e0.z.string(),observationIds:e0.z.array(e0.z.string()),fields:e0.z.record(e0.z.string(),e0.z.string()).optional()})),excludedObservationIds:e0.z.array(e0.z.string()).optional(),issues:e0.z.array(e0.z.string()).optional()}),e.s(["AncillaryDesignSchema",0,rv,"AuthorSchema",0,rF,"BenefitComparisonContentSchema",0,r8,"BenefitPlanInputSchema",0,r1,"BenefitSourceSchema",0,rU,"COVERAGE_LINES",0,r_,"CellSchema",0,rf,"ContributionSchema",0,rV,"CoverageLineSchema",0,rz,"DentalDesignSchema",0,rD,"EnrollmentOperationSchema",0,r9,"MedicalDesignSchema",0,rS,"PackagePlanEnrollmentSchema",0,r6,"PackageRoleSchema",0,rB,"PackageSchema",0,r5,"PlanBaseSchema",0,rq,"ProvenanceSchema",0,rh,"ScenarioSchema",0,r2,"StatedPairingSchema",0,rH,"StoredPlanSchema",0,r0,"VisionDesignSchema",0,rP,"aggregateBenefitEnrollments",0,function(e){if(0===e.length)return;if(1===e.length)return e[0];let t={};for(let i of rm){let n=e.map(e=>r7(e.tiers[i]));if(n.some(e=>null===e))continue;let r=n.reduce((e,t)=>e+t,0);t[i]={value:String(r),normalized:r,provenance:"DERIVED",author:"ai"}}return{...e[0],id:`aggregate:${e[0].packageId}:${e[0].planId}`,originId:void 0,evidence:void 0,tiers:t,exposure:void 0}},"enrollmentMatchesPlan",0,function(e,t){let i=rb(e);return rm.every(e=>i.includes(e)||void 0===t[e]||0===r7(t[e]))},"sameEnrollmentTiers",0,function(e,t){let i=rb(e),n=rb(t);return i.length===n.length&&i.every(e=>n.includes(e))},"usableCellValue",0,r7],865943);let ae={MATCHED:"matched",DIFFERENCE:"difference",EXPLAINED:"explained",UNVERIFIED:"unverified"},at={BOTH:"both",BILL_ONLY:"bill_only",EXPECTED_ONLY:"expected_only",UNRESOLVED:"unresolved"},ai=e0.z.number().int().min(Number.MIN_SAFE_INTEGER).max(Number.MAX_SAFE_INTEGER),an=e0.z.string().regex(/\S/,"Must contain text"),ar=e0.z.strictObject({id:an,label:an,plan:an.nullable().optional(),presence:e0.z.enum(at).optional(),billedCents:ai.nullable(),expectedCents:ai.nullable(),status:e0.z.enum(ae),explanation:an,details:e0.z.array(e0.z.strictObject({field:an,bill:e0.z.string().nullable(),enrollment:e0.z.string().nullable()}))}).superRefine((e,t)=>{if(e.presence===at.UNRESOLVED&&e.status!==ae.UNVERIFIED&&t.addIssue({code:"custom",path:["status"],message:"Unresolved record availability requires unverified status"}),e.status===ae.UNVERIFIED)return;if(null===e.billedCents||null===e.expectedCents)return void t.addIssue({code:"custom",path:["status"],message:"Known billed and expected amounts are required unless the row is unverified"});let i=e.billedCents-e.expectedCents;Number.isSafeInteger(i)||t.addIssue({code:"custom",message:"Difference exceeds safe integer cents"}),e.status===ae.MATCHED&&0!==i&&t.addIssue({code:"custom",path:["status"],message:"Matched amounts must be equal"}),e.status===ae.DIFFERENCE&&0===i&&t.addIssue({code:"custom",path:["status"],message:"A difference requires unequal amounts"})}),aa=e0.z.strictObject({title:an,notes:e0.z.string(),rows:e0.z.array(ar)}).superRefine((e,t)=>{let i=new Set;e.rows.forEach((e,n)=>{i.has(e.id)&&t.addIssue({code:"custom",path:["rows",n,"id"],message:"Row IDs must be unique"}),i.add(e.id)});try{ac(e)}catch(e){t.addIssue({code:"custom",path:["rows"],message:e instanceof Error?e.message:"Invalid monetary totals"})}});function ao(e){if(!Number.isSafeInteger(e))throw RangeError("Amount exceeds safe integer cents");return e}function as(e){return e.status===ae.UNVERIFIED||null===e.billedCents||null===e.expectedCents?null:ao(ao(e.billedCents)-ao(e.expectedCents))}function al(e,t){return null===t?e:ao((null===e?0:e)+ao(t))}function ac(e){let t={[ae.MATCHED]:0,[ae.DIFFERENCE]:0,[ae.EXPLAINED]:0,[ae.UNVERIFIED]:0},i=null,n=null,r=null,a=null;for(let o of e.rows){t[o.status]+=1,i=al(i,o.billedCents),n=al(n,o.expectedCents);let e=as(o);o.status===ae.EXPLAINED?a=al(a,e):o.status!==ae.UNVERIFIED&&(r=al(r,e))}return{rowCount:e.rows.length,counts:t,knownBilledCents:i,knownExpectedCents:n,confirmedDifferenceCents:r,explainedDifferenceCents:a,unverifiedCount:t[ae.UNVERIFIED]}}function ad(e){let t=/^[\s\u0000-\u001f]*[=+@-]/.test(e)?`'${e}`:e;return`"${t.replace(/"/g,'""')}"`}function au(e){if(null===e)return"";ao(e);let t=Math.abs(e);return`${e<0?"-":""}${Math.floor(t/100)}.${String(t%100).padStart(2,"0")}`}e.s(["BillReconciliationContentSchema",0,aa,"BillReconciliationPresence",0,at,"BillReconciliationStatus",0,ae,"billReconciliationCsv",0,function(e){return[["Report title","Report notes","Row ID","Employee / benefit","Status","Billed (USD)","Expected (USD)","Difference (USD)","Explanation","Side-by-side details","Plan","Record availability"].map(ad).join(","),...e.rows.map(t=>{var i,n;return[ad(e.title),ad(e.notes),ad(t.id),ad(t.label),ad(t.status),au(t.billedCents),au(t.expectedCents),au(as(t)),ad(t.explanation),ad(t.details.map(e=>{var t,i;return`${e.field}: Bill = ${null!=(t=e.bill)?t:"Not verified"}; Enrollment = ${null!=(i=e.enrollment)?i:"Not verified"}`}).join("\n")),ad(null!=(i=t.plan)?i:""),ad(null!=(n=t.presence)?n:"")].join(",")})].join("\r\n")},"getBillReconciliationDifference",0,as,"summarizeBillReconciliation",0,ac],643763);let am=e0.z.object({...rS.shape,...rD.shape,...rP.shape,...rv.shape,rx:rS.shape.rx.describe("Pharmacy rows to add or update by stable id. Rows omitted from the patch remain unchanged.")}).partial().strict();Object.keys(rS.shape),Object.keys(rD.shape),Object.keys(rP.shape),Object.keys(rv.shape),Object.keys(rv.shape),Object.keys(rv.shape);let ap=e0.z.object(rI(rf.nullable())).partial().strict(),aE=e0.z.discriminatedUnion("structure",[e0.z.object({structure:e0.z.literal("TIER_BASED"),tiers:ap}),e0.z.object({structure:e0.z.literal("AGE_BANDED"),bands:e0.z.array(e0.z.object({age:e0.z.number(),rate:rf.optional()}))}),e0.z.object({structure:e0.z.literal("VOLUME_BASED"),rate:rf,unit:e0.z.enum
7(["PER_1000_BENEFIT","PER_10_WEEKLY_BENEFIT","PER_100_MONTHLY_PAYROLL"]),period:e0.z.enum(["MONTHLY","ANNUAL"])})]),ag=e0.z.object({source:rU.optional(),conditions:e0.z.array(rf).optional(),carrier:e0.z.string().optional(),name:e0.z.string().optional(),planType:e0.z.string().optional(),network:e0.z.string().optional(),planNumber:e0.z.string().optional(),statedPairing:rH.nullable().optional(),enrollmentTiers:rq.shape.enrollmentTiers,rates:aE.nullable().optional(),design:am.optional(),contribution:rV.partial().optional()}).strict(),aI=e0.z.object({name:e0.z.string().optional(),displayOrder:e0.z.number().optional(),packageIds:e0.z.array(e0.z.string()).optional(),baselinePackageId:e0.z.string().nullable().optional()}),ab=e0.z.discriminatedUnion("kind",[e0.z.object({kind:e0.z.literal("addPlan"),plan:r1}),e0.z.object({kind:e0.z.literal("updatePlan"),planId:e0.z.string(),patch:ag}),e0.z.object({kind:e0.z.literal("removePlan"),planId:e0.z.string()}),e0.z.object({kind:e0.z.literal("addScenario"),scenario:r2}),e0.z.object({kind:e0.z.literal("updateScenario"),scenarioId:e0.z.string(),patch:aI}),e0.z.object({kind:e0.z.literal("removeScenario"),scenarioId:e0.z.string()}),e0.z.object({kind:e0.z.literal("addPackage"),package:r5}),e0.z.object({kind:e0.z.literal("updatePackage"),packageId:e0.z.string(),planIds:e0.z.array(e0.z.string())}),e0.z.object({kind:e0.z.literal("updatePackageDetails"),packageId:e0.z.string(),patch:r5.omit({id:!0,coverageLine:!0,planIds:!0}).partial()}),e0.z.object({kind:e0.z.literal("removePackage"),packageId:e0.z.string()}),e0.z.object({kind:e0.z.literal("setPackageEnrollments"),packageId:e0.z.string(),enrollments:e0.z.array(r6.omit({packageId:!0}))}),e0.z.object({kind:e0.z.literal("correctEnrollment"),enrollmentId:e0.z.string(),tier:rp,count:e0.z.number().int().nonnegative().nullable()}),e0.z.object({kind:e0.z.literal("assignEnrollment"),packageId:e0.z.string(),planId:e0.z.string(),originId:e0.z.string()}),e0.z.object({kind:e0.z.literal("transferEnrollment"),enrollmentId:e0.z.string(),planId:e0.z.string()}),e0.z.object({kind:e0.z.literal("removeEnrollment"),enrollmentId:e0.z.string()})]),a_=e0.z.object({kind:e0.z.enum(["addPlan","updatePlan","removePlan","addScenario","updateScenario","removeScenario","addPackage","updatePackage","correctEnrollment","assignEnrollment","transferEnrollment","removeEnrollment","updatePackageDetails","removePackage","setPackageEnrollments"]),packagePatch:r5.omit({id:!0,coverageLine:!0,planIds:!0}).partial().optional(),enrollments:e0.z.array(r6.omit({packageId:!0})).optional(),plan:r1.optional(),planId:e0.z.string().optional(),planPatch:ag.optional(),scenario:r2.optional(),scenarioId:e0.z.string().optional(),scenarioPatch:aI.optional(),package:r5.optional(),packageId:e0.z.string().optional(),planIds:e0.z.array(e0.z.string()).optional(),enrollmentId:e0.z.string().optional(),tier:rp.optional(),count:e0.z.number().int().nonnegative().nullable().optional(),originId:e0.z.string().optional()});e0.z.object({expectedUpdatedAt:e0.z.string().describe("The updatedAt value from the last get_comparison result."),operations:e0.z.array(a_).min(1)}),(n=B||(B={})).IN_PROCESS="in_process",n.READY_FOR_USER_REVIEW="ready_for_user_review",n.CONFIRMED_BY_USER="confirmed_by_user";let az=e0.z.union([e0.z.string(),e0.z.number(),e0.z.boolean(),e0.z.null()]),ah=e0.z.object({kind:e0.z.literal("document"),docId:e0.z.string().describe("Run-scoped short id, e.g. d1"),hash:e0.z.string().optional().describe("PDF OCR span hash. Omit for file-level cites (xlsx, email).")}),aA=e0.z.object({kind:e0.z.literal("web"),url:e0.z.string().describe("http(s) URL"),title:e0.z.string().optional().describe("Page title shown in the source popover")});e0.z.discriminatedUnion("kind",[ah,aA]);let aO='REQUIRED. One or two short sentences a reviewing AM can read instead of opening this source. Name the place inside it: form section or schedule, workbook tab and row, endorsement title, or webpage heading. Examples: "Found in the vehicle schedule on the auto declarations, unit 3." / "Found in the Named Insured box on ACORD 125 page 1." / "Found in the About page, Company Overview." / "Found in endorsement CG 20 10 Additional Insured." / "Found in the Locations tab of the SOV, building 1." Do not repeat the claimed value. Do not use file paths, docIds, hashes, or OCR markers. Do not write only the filename or URL — the UI already shows that. If this source had no value, say where you looked ("Not listed on the Auto Schedule").',af=e0.z.discriminatedUnion("kind",[ah.extend({value:az.describe("Value this source claimed for the field"),foundIn:e0.z.string().describe(aO)}),aA.extend({value:az.describe("Value this source claimed for the field"),foundIn:e0.z.string().describe(aO)}
7)]),aT=e0.z.object({kind:e0.z.enum(["missing","conflict","invalid"]).describe("missing: required value unknown, value must be null. conflict: sources disagree — still pick a primary value. invalid: value fails a check (VIN, FEIN, date)."),message:e0.z.string().describe("Plain-language explanation shown under the value.")}),ay=e0.z.object({id:e0.z.string().describe("Stable unique id for this field"),label:e0.z.string(),value:az,preview:e0.z.boolean().optional().describe("List-item rows only. If true, this value is shown in muted text next to the row label when collapsed (e.g. make, year, street address). Omit unless true — do not emit preview: false."),sources:e0.z.array(af).optional().describe('REQUIRED on every field, including when value is null. Ordered by input/upload order (uploaded documents first, then web). Each entry is a claimed value plus where it came from. Document: {kind:"document", docId, hash?, value, foundIn}. Web: {kind:"web", url, title?, value, foundIn}. foundIn is REQUIRED: 1–2 short sentences naming the place inside the source (schedule, form section, workbook tab, endorsement, webpage heading) so a reviewer does not have to open it. Set field.value to sources[0].value. Do not invent docIds or URLs. Do not omit this array.'),issue:aT.optional().describe('Set only when this field has a problem. Omit on clean fields — do not emit issue: null. Do not create a separate "Issues to verify" section; flag the field instead.')}),aN=e0.z.object({id:e0.z.string().describe("Stable unique id for this row"),label:e0.z.string().optional().describe("Optional row title, e.g. VIN or driver name"),fields:e0.z.array(ay).describe("Same fields, same order, on every row in this schedule. Use the downstream output's column order. Keep missing values as null — do not omit the field.")}),aC=function e(t){return e0.z.object({id:e0.z.string().describe("Stable unique id for this section"),title:e0.z.string(),sections:t>0?e0.z.array(e(t-1)).optional().describe("Child sections. If present and non-empty, this section is a parent: omit fields and listItems. Parents are grouping labels only and never carry data."):e0.z.array(e0.z.never()).optional(),fields:e0.z.array(ay).optional().describe("Leaf chips only. Include only when this section has no nested sections. A parent must omit fields."),listItems:e0.z.array(aN).optional().describe("Leaf schedule rows only. Include only when this section has no nested sections. A parent must omit listItems.")}).superRefine((e,t)=>{var i,n,r,a,o,s;let l=(null!=(a=null==(i=e.sections)?void 0:i.length)?a:0)>0,c=(null!=(o=null==(n=e.fields)?void 0:n.length)?o:0)>0,d=(null!=(s=null==(r=e.listItems)?void 0:r.length)?s:0)>0;l&&(c||d)&&t.addIssue({code:"custom",message:"Parent sections cannot have fields or listItems. If a section contains other sections, omit fields and listItems and put all data on leaf sections.",path:c?["fields"]:["listItems"]})})}(8);function aS(e,t){if(!e||"object"!=typeof e)return e;let i={...e};return void 0===i.value&&(i.value=null!=t?t:null),"string"!=typeof i.foundIn&&(i.foundIn=""),i}function aR(e){var t;if(!e||"object"!=typeof e)return e;let i={...e},n=null!=(t=i.value)?t:null;return!Array.isArray(i.sources)&&Array.isArray(i.citations)?i.sources=i.citations.map(e=>aS(e,n)):Array.isArray(i.sources)&&(i.sources=i.sources.map(e=>aS(e,n))),delete i.citations,i}function aL(e){return Array.isArray(e)?e.map(aR):e}function aD(e){return Array.isArray(e)?e.map(e=>{if(!e||"object"!=typeof e)return e;let t={...e};return Array.isArray(t.fields)&&(t.fields=aL(t.fields)),t}):e}function aP(e,t){if(!e||"object"!=typeof e)return e;let i={...e};return i.sections=function e(t,i){return Array.isArray(t)?t.map(t=>{if(!t||"object"!=typeof t)return t;let n={...t};Array.isArray(n.sections)&&(n.sections=e(n.sections,i));let r=Array.isArray(n.items)?n.items:[],a=Array.isArray(n.fields)?[...n.fields]:[],o=Array.isArray(n.listItems)?[...n.listItems]:Array.isArray(n.list_items)?[...n.list_items]:[];for(let e of r){if(!e||"object"!=typeof e)continue;let t={...e};delete t.kind,Array.isArray(t.fields)?o.push(t):a.push(t)}a.length>0&&(n.fields=aL(a)),o.length>0&&(n.listItems=aD(o)),delete n.items,delete n.list_items,Array.isArray(n.fields)&&(n.fields=aL(n.fields)),Array.isArray(n.listItems)&&(n.listItems=aD(n.listItems));let s=Array.isArray(n.sections)?n.sections.length:0;return i&&s>0&&(delete n.fields,delete n.listItems,delete n.items),n}):t}(i.sections,t),i}let av=e0.z.preprocess(e=>aP(e,!1),e0.z.object({title:e0.z.string().describe("Title shown on the artifact tab"),status:e0.z.enum
7(B).optional(),revision:e0.z.number().int().nonnegative().optional(),sections:e0.z.array(aC).describe("Section tree. Only leaf sections (no nested sections) may have fields or listItems. Parent sections are labels only and must omit both."),confirmedAt:e0.z.string().optional().describe("Server-set ISO timestamp when the user confirms the review. NEVER emit this field.")}));function aU(e,t){let i={...e,value:t};return delete i.issue,i}e.s(["INFORMATION_REVIEW_CONFIRMED_MESSAGE",0,"Confirmed information","InformationReviewArtifactContentSchema",0,av,"InformationReviewStatus",0,B,"ReviewFieldValueSchema",0,az,"applyReviewFieldValue",0,function(e,t,i){return{...e,sections:function e(t,i,n){return t.map(t=>{var r,a,o,s,l,c,d,u;return(null!=(a=null==(r=t.sections)?void 0:r.length)?a:0)>0?{...t,sections:e(null!=(o=t.sections)?o:[],i,n)}:t.id!==i.sectionId?t:i.listItemId?{...t,listItems:(s=t.listItems,l=i.listItemId,c=i.fieldId,s?s.map(e=>e.id===l?{...e,fields:e.fields.map(e=>e.id===c?aU(e,n):e)}:e):s)}:{...t,fields:(d=t.fields,u=i.fieldId,d?d.map(e=>e.id===u?aU(e,n):e):d)}})}(e.sections,t,i)}},"asInformationReviewContent",0,function(e){let t=av.safeParse(aP(e,!0));return t.success?t.data:null},"findReviewField",0,function(e,t){var i,n,r;let a=function e(t,i){var n,r,a;for(let o of t){if((null!=(r=null==(n=o.sections)?void 0:n.length)?r:0)>0){let t=e(null!=(a=o.sections)?a:[],i);if(t)return t;continue}if(o.id===i)return o}return null}(e.sections,t.sectionId);if(!a)return null;let o=t.listItemId?null==(n=null==(i=a.listItems)?void 0:i.find(e=>e.id===t.listItemId))?void 0:n.fields:a.fields;return null!=(r=null==o?void 0:o.find(e=>e.id===t.fieldId))?r:null},"getInformationReviewStatus",0,function(e){var t;return e.confirmedAt?B.CONFIRMED_BY_USER:null!=(t=e.status)?t:B.READY_FOR_USER_REVIEW}],805565);let aw=e0.z.object({packageId:e0.z.string(),planId:e0.z.string(),annualPremium:e0.z.number().nullable(),deltaVsIncumbent:e0.z.number().nullable(),pctVsIncumbent:e0.z.number().nullable()}),aB=e0.z.object({employer:e0.z.number().nullable(),employee:e0.z.number().nullable()}),aF=e0.z.object({currentAnnualSpend:e0.z.number().nullable(),renewalAnnualSpend:e0.z.number().nullable(),renewalDeltaVsCurrent:e0.z.number().nullable(),renewalPctVsCurrent:e0.z.number().nullable(),bestCaseAnnualSpend:e0.z.number().nullable(),totalPotentialDelta:e0.z.number().nullable(),currentSplit:aB,renewalSplit:aB,bestCaseSplit:aB}),aj=e0.z.object({premium:e0.z.number().nullable(),fixedExpense:e0.z.number().nullable(),expectedCost:e0.z.number().nullable(),maximumCost:e0.z.number().nullable()}),aM=e0.z.enum(["OFFERING_BLOCKED","GROUP_UNPRICED","PLAN_UNASSIGNED","POPULATION_UNKNOWN","ENROLLMENT_SHORT"]),ak=e0.z.object({annualPremium:e0.z.number().nullable(),pricedLives:e0.z.number(),enrolledLives:e0.z.number().nullable(),expectedLives:e0.z.number().nullable(),complete:e0.z.boolean(),gaps:e0.z.array(aM)}),ax=e0.z.object({baselinePackageId:e0.z.string().optional(),measures:aj,deltas:aj,percentages:aj,ready:e0.z.boolean(),issues:e0.z.array(e0.z.string()),premiumSummary:ak.optional()}),aG=e0.z.object({annualSpend:e0.z.number().nullable(),deltaVsCurrent:e0.z.number().nullable(),pctVsCurrent:e0.z.number().nullable(),totalLives:e0.z.number().nullable(),driftVsCurrent:e0.z.number().nullable(),unplacedGroupIds:e0.z.array(e0.z.string()),ready:e0.z.boolean(),issues:e0.z.array(e0.z.string()),measures:aj,premiumSummary:ak.optional()}),aY=r8.safeExtend({deltasByScenario:e0.z.record(e0.z.string(),e0.z.array(aw)),recommendedByIncumbent:e0.z.record(e0.z.string(),e0.z.array(e0.z.string())),summary:aF,summaryByScenario:e0.z.record(e0.z.string(),aF),summaryByPackage:e0.z.record(e0.z.string(),aG),summaryByScenarioPackage:e0.z.record(e0.z.string(),e0.z.record(e0.z.string(),ax))});e0.z.object({pkg:r5,plan:r0,binding:r6.optional(),bindings:e0.z.array(r6)}),e0.z.object({planIds:e0.z.array(e0.z.string()).optional()}),e.s(["BenefitComparisonViewSchema",0,aY,"BenefitPremiumGapSchema",0,aM],998314),(r=F||(F={})).SELECTION="selection",r.WORKFLOW_ROUTE="workflow_route",r.ACCOUNT_LINK="account_link",r.ASK="ask";let aW=e0.z.object({id:e0.z.string(),primary:e0.z.string(),secondary:e0.z.string().optional(),badges:e0.z.array(e0.z.string()).optional()}),aV=e0.z.object({title:e0.z.string(),prompt:e0.z.string().optional(),mode:e0.z.enum
7(["single","multi"]).default("single"),options:e0.z.array(aW),confirmLabel:e0.z.string().optional()}),aH=e0.z.object({selectedIds:e0.z.array(e0.z.string()).optional(),redirect:e0.z.string().optional()}),aq=e0.z.object({epicAccountId:e0.z.string().min(1),name:e0.z.string().min(1),lookupCode:e0.z.string().min(1),location:e0.z.string().optional()}),aK=e0.z.object({insuredAccountId:e0.z.string().min(1),name:e0.z.string().min(1),lookupCode:e0.z.string().optional(),location:e0.z.string().optional()}),aQ=e0.z.union([aK,aq]),a$=e0.z.object({query:e0.z.string(),candidates:e0.z.array(aQ)}),aX=e0.z.object({insuredAccountId:e0.z.string().optional(),dismissed:e0.z.literal(!0).optional(),redirect:e0.z.string().optional()});(a=j||(j={})).AGENT="agent",a.STRUCTURED="structured",a.PROPOSALS="proposals",a.LOSS_RUNS="lossRuns";let aJ=e0.z.object({workflowId:e0.z.string().min(1),slug:e0.z.string().min(1),title:e0.z.string().min(1),description:e0.z.string().optional(),targetKind:e0.z.enum(j).optional(),isPolicyCheck:e0.z.boolean().optional()}),aZ=e0.z.object({choice:e0.z.enum(["continue","dedicated"]).default("continue"),redirect:e0.z.string().optional()}),a0=e0.z.object({id:e0.z.string().min(1),label:e0.z.string().min(1)}),a1=e0.z.object({title:e0.z.string().min(1),prompt:e0.z.string().optional(),options:e0.z.array(a0).min(2).max(4)}),a2=e0.z.object({optionId:e0.z.string().optional(),redirect:e0.z.string().optional()}),a5=e0.z.discriminatedUnion("kind",[e0.z.object({kind:e0.z.literal(F.SELECTION),request:aV}),e0.z.object({kind:e0.z.literal(F.WORKFLOW_ROUTE),request:aJ}),e0.z.object({kind:e0.z.literal(F.ACCOUNT_LINK),request:a$}),e0.z.object({kind:e0.z.literal(F.ASK),request:a1})]),a3=e0.z.object({choice:e0.z.literal("continue")});e.s(["InteractionKind",0,F,"WorkflowRouteTargetKind",0,j,"accountLinkCandidateKey",0,function(e){return"insuredAccountId"in e?`db:${e.insuredAccountId}`:`epic:${e.epicAccountId}`},"asAccountLinkRequest",0,function(e){let t=a$.safeParse(e);return t.success?t.data:null},"asAskRequest",0,function(e){let t=a1.safeParse(e);return t.success?t.data:null},"asInteractionInterrupt",0,function(e){let t=a5.safeParse(e);return t.success?t.data:null},"asSelectionRequest",0,function(e){let t=aV.safeParse(e);return t.success?t.data:null},"asWorkflowRouteRequest",0,function(e){let t=aJ.safeParse(e);return t.success?t.data:null},"buildWorkflowStartMessage",0,function(e){return`Run the ${e.trim()} workflow.`},"describeInteractionAnswer",0,function(e,t){var i,n,r;switch(e.kind){case F.SELECTION:{let i,{redirect:n,selectedIds:r}=(i=aH.safeParse(t)).success?i.data:{};if(null==n?void 0:n.trim())return n.trim();let a=new Set(null!=r?r:[]),o=e.request.options.filter(e=>a.has(e.id)).map(e=>e.primary);return o.length>0?o.join(", "):null}case F.ACCOUNT_LINK:{let i,{dismissed:r,insuredAccountId:a,redirect:o}=(i=aX.safeParse(t)).success?i.data:{};if(r)return null;if(!a)return(null==o?void 0:o.trim())||null;let s=e.request.candidates.find(e=>"insuredAccountId"in e&&e.insuredAccountId===a);return null!=(n=null==s?void 0:s.name)?n:null}case F.WORKFLOW_ROUTE:{let e,{choice:i,redirect:n}=(e=aZ.safeParse(t)).success?e.data:{choice:"continue"};if("dedicated"===i)return null;if(null==n?void 0:n.trim())return n.trim();return a3.safeParse(t).success?"Continue here":null}case F.ASK:{let n,{optionId:a,redirect:o}=(n=a2.safeParse(t)).success?n.data:{};if(null==o?void 0:o.trim())return o.trim();return null!=(r=null==(i=e.request.options.find(e=>e.id===a))?void 0:i.label)?r:null}}}],602073),(o=M||(M={})).SUCCESS_BACKGROUND="success_background",o.SUCCESS_FOREGROUND="success_foreground",o.DESTRUCTIVE_BACKGROUND="destructive_background",o.DESTRUCTIVE_FOREGROUND="destructive_foreground";let a4={best:{background:M.SUCCESS_BACKGROUND,color:M.SUCCESS_FOREGROUND},met:{background:M.SUCCESS_BACKGROUND,color:M.SUCCESS_FOREGROUND},gap:{background:M.DESTRUCTIVE_BACKGROUND,color:M.DESTRUCTIVE_FOREGROUND},tie:{background:M.SUCCESS_BACKGROUND,color:M.SUCCESS_FOREGROUND}},a9=e0.z.object({color:e0.z.enum(M).optional(),background:e0.z.enum(M).optional(),bold:e0.z.boolean().optional(),italic:e0.z.boolean().optional(),underline:e0.z.boolean().optional()}),a6=e0.z.object({header:e0.z.string(),values:e0.z.record(e0.z.string(),a9)}),a8=e0.z.object({tableCellFormatting:e0.z.array(a6).optional()});function a7(e){return e.trim().toLowerCase()}e.s(["AgentArtifactPresentationSchema",0,a8,"CELL_FLAG_RE",0,/\s*\[flag:(best|met|gap|tie)\]/gi,"CELL_FLAG_STYLE",0,a4,"TableCellColorToken",0,M,"resolveTableCellStyle",0,function(e,t,i){let n=a7(e),r=a7(t);for(let e of i){if(a7(e.header)!==n)continue;let t=Object.entries(e.values).find(([e])=>a7(e)===r);if(t)return t[1]}return null}],69624);let oe=/(?![\u{A9}\u{AE}\u{2122}])\p{Extended_Pictographic}|\p{Emoji_Modifier}|\p{Regional_Indicator}|\u{FE0F}|\u{200D}|\u{20E3}/u,ot="Add a name",oi=e0.z.string().trim().min(1,ot).max(200,"Workflow names can be at most 200 characters").refine(e=>!oe.test(e),"Workflow names can't contain emoji");e.s(["WorkflowNameSchema",0,oi,"getWorkflowNameError",0,function(e){var t,i;let n=oi.safeParse(e);return n.success?null:null!=(i=null==(t=n.error.issues[0])?void 0:t.message)?i:ot}],500244);let on={CREATE_MARKDOWN:"create_markdown",WRITE_MARKDOWN:"write_markdown",GENERATE_REVIEW_ARTIFACT:"generate_review_artifact",READ_REVIEW_ARTIFACT:"read_review_artifact",WRITE_POLICY_CHECK_CLASSIFY:"write_policy_check_classify",POLICY_CHECK_NORMALIZE_EPIC:"policy_check_normalize_epic",EDIT_MARKDOWN_SECTION:"edit_markdown_section",EDIT_REPORT_SECTION:"edit_report_section",WRITE_WORKFLOW_SYSTEM_PROMPT:"write_workflow_system_prompt",OUTLOOK_EMAIL:"outlook_email",GENERATE_BENEFITS:"generate_benefits",CREATE_LOSS_RUNS:"create_loss_runs",EDIT_ARTIFACT:"edit_artifact",ENRICH_COPE_LO
7CATIONS:"enrich_cope_locations",GET_COMPARISON:"get_comparison",BILL_RECONCILIATION:"bill_reconciliation",FILL_TEMPLATE:"fill_template",FILL_TEMPLATE_V2:"fill_template_v2",MERGE_PDFS:"merge_pdfs",MARK_TODO_DONE:"mark_todo_done",WEB_SEARCH:"web_search",WEB_RESEARCH:"web_research",BASIC_INFO:"basic_info",SEARCH_ACORD_FORMS:"search_acord_forms",PREPARE_ACORD_FORM:"prepare_acord_form",OUTLOOK_SEARCH:"outlook_search",OUTLOOK_READ_MESSAGE:"outlook_read_message",OUTLOOK_READ_CONVERSATION:"outlook_read_conversation",WORKFLOW_SEARCH:"workflow_search",SWITCH_WORKFLOW_CONFIDENT:"switch_workflow_confident",ASK_USER:"ask_user",GET_ACCOUNT:"get_account",GET_EPIC_ACCOUNT_FOR_EMAIL:"get_epic_account_for_email",LINK_ACCOUNT:"link_account",LINK_ACCOUNT_CONFIDENT:"link_account_confident",LIST_POLICIES:"list_policies",SELECT_POLICIES:"select_policies",GET_POLICY_DETAILS:"get_policy_details",GET_POLICY_TRANSACTIONS:"get_policy_transactions",LIST_ACTIVITIES:"list_activities",GET_ACTIVITY_DETAILS:"get_activity_details",LIST_ATTACHMENTS:"list_attachments",GET_ATTACHMENT:"get_attachment",GET_UPDATE_CAPABILITY:"get_update_capability",EPIC_LOOKUP:"epic_lookup",LIST_ATTACHMENT_FOLDERS:"list_attachment_folders",GET_ACCOUNT_DETAILS:"get_account_details",LIST_CLAIMS:"list_claims",GET_CLAIM_DETAILS:"get_claim_details",CREATE_ACTIVITY:"create_activity",UPDATE_ACTIVITY:"update_activity",PUSH_ATTACHMENT:"push_attachment",EPIC_POLICY_CREATE:"epic_policy_create",EPIC_POLICY_CREATE_DISMISS:"epic_policy_create__dismiss",EPIC_POLICY_CREATE_REVISE:"epic_policy_create__revise",EPIC_POLICY_EDIT_OPEN:"epic_policy_edit__open",EPIC_POLICY_EDIT_PROPERTY_ITEM_INSERT:"epic_policy_edit__property_item_insert",EPIC_POLICY_EDIT_PROPERTY_ITEM_UPDATE:"epic_policy_edit__property_item_update",EPIC_POLICY_EDIT_PROPERTY_ITEM_DELETE:"epic_policy_edit__property_item_delete",EPIC_POLICY_EDIT_PROPERTY_PREMISE_INSERT:"epic_policy_edit__property_premise_insert",EPIC_POLICY_EDIT_PROPERTY_PREMISE_UPDATE:"epic_policy_edit__property_premise_update",EPIC_POLICY_EDIT_BUILDING_INSERT:"epic_policy_edit__building_insert",EPIC_POLICY_EDIT_BUILDING_UPDATE:"epic_policy_edit__building_update",EPIC_POLICY_EDIT_BUILDING_DELETE:"epic_policy_edit__building_delete",EPIC_POLICY_EDIT_APPLICANT_UPDATE:"epic_policy_edit__applicant_update",EPIC_POLICY_EDIT_PREMISE_INSERT:"epic_policy_edit__premise_insert",EPIC_POLICY_EDIT_PREMISE_UPDATE:"epic_policy_edit__premise_update",EPIC_POLICY_EDIT_PREMISE_DELETE:"epic_policy_edit__premise_delete",EPIC_POLICY_EDIT_NAMED_INSURED_INSERT:"epic_policy_edit__named_insured_insert",EPIC_POLICY_EDIT_NAMED_INSURED_UPDATE:"epic_policy_edit__named_insured_update",EPIC_POLICY_EDIT_NAMED_INSURED_DELETE:"epic_policy_edit__named_insured_delete",EPIC_POLICY_EDIT_DRIVER_INSERT:"epic_policy_edit__driver_insert",EPIC_POLICY_EDIT_DRIVER_UPDATE:"epic_policy_edit__driver_update",EPIC_POLICY_EDIT_DRIVER_DELETE:"epic_policy_edit__driver_delete",EPIC_POLICY_EDIT_VEHICLE_INSERT:"epic_policy_edit__vehicle_insert",EPIC_POLICY_EDIT_VEHICLE_UPDATE:"epic_policy_edit__vehicle_update",EPIC_POLICY_EDIT_VEHICLE_DELETE:"epic_policy_edit__vehicle_delete",EPIC_POLICY_EDIT_GL_ADDED_COVERAGE_INSERT:"epic_policy_edit__gl_added_coverage_insert",EPIC_POLICY_EDIT_GL_ADDED_COVERAGE_UPDATE:"epic_policy_edit__gl_added_coverage_update",EPIC_POLICY_EDIT_GL_ADDED_COVERAGE_DELETE:"epic_policy_edit__gl_added_coverage_delete",EPIC_POLICY_EDIT_GL_COVERAGE_UPDATE:"epic_policy_edit__gl_coverage_update",EPIC_POLICY_EDIT_GL_COVERAGE_SETTINGS_UPDATE:"epic_policy_edit__gl_coverage_settings_update",EPIC_POLICY_EDIT_GL_HAZARD_INSERT:"epic_policy_edit__gl_hazard_insert",EPIC_POLICY_EDIT_GL_HAZARD_UPDATE:"epic_policy_edit__gl_hazard_update",EPIC_POLICY_EDIT_GL_HAZARD_DELETE:"epic_policy_edit__gl_hazard_delete",EPIC_POLICY_EDIT_GL_UNDERWRITING_ANSWER_UPDATE:"epic_policy_edit__gl_underwriting_answer_update",EPIC_POLICY_EDIT_GL_REMARK_INSERT:"epic_policy_edit__gl_remark_insert",EPIC_POLICY_EDIT_GL_REMARK_UPDATE:"epic_policy_edit__gl_remark_update",EPIC_POLICY_EDIT_GL_REMARK_DELETE:"epic_policy_edit__gl_remark_delete",EPIC_POLICY_EDIT_GL_ADDITIONAL_INTEREST_INSERT:"epic_policy_edit__gl_additional_interest_insert",EPIC_POLICY_EDIT_GL_ADDITIONAL_INTEREST_UPDATE:"epic_policy_edit__gl_additional_interest_update",EPIC_POLICY_EDIT_GL_ADDITIONAL_INTEREST_DELETE:"epic_policy_edit__gl_additional_interest_delete",EPIC_POLICY_EDIT_WC_COVERAGE_
7UPDATE:"epic_policy_edit__wc_coverage_update",EPIC_POLICY_EDIT_WC_LOCATION_INSERT:"epic_policy_edit__wc_location_insert",EPIC_POLICY_EDIT_WC_LOCATION_UPDATE:"epic_policy_edit__wc_location_update",EPIC_POLICY_EDIT_WC_CLASS_CODE_INSERT:"epic_policy_edit__wc_class_code_insert",EPIC_POLICY_EDIT_WC_CLASS_CODE_UPDATE:"epic_policy_edit__wc_class_code_update",EPIC_POLICY_EDIT_WC_CLASS_CODE_DELETE:"epic_policy_edit__wc_class_code_delete",EPIC_POLICY_EDIT_WC_INDIVIDUAL_INSERT:"epic_policy_edit__wc_individual_insert",EPIC_POLICY_EDIT_WC_INDIVIDUAL_UPDATE:"epic_policy_edit__wc_individual_update",EPIC_POLICY_EDIT_WC_INDIVIDUAL_DELETE:"epic_policy_edit__wc_individual_delete",EPIC_POLICY_EDIT_WC_APPLICANT_UPDATE:"epic_policy_edit__wc_applicant_update",EPIC_POLICY_EDIT_WC_NAMED_INSURED_INSERT:"epic_policy_edit__wc_named_insured_insert",EPIC_POLICY_EDIT_WC_NAMED_INSURED_UPDATE:"epic_policy_edit__wc_named_insured_update",EPIC_POLICY_EDIT_WC_NAMED_INSURED_DELETE:"epic_policy_edit__wc_named_insured_delete",EPIC_POLICY_EDIT_WC_ADDED_COVERAGE_INSERT:"epic_policy_edit__wc_added_coverage_insert",EPIC_POLICY_EDIT_WC_ADDED_COVERAGE_UPDATE:"epic_policy_edit__wc_added_coverage_update",EPIC_POLICY_EDIT_WC_ADDED_COVERAGE_DELETE:"epic_policy_edit__wc_added_coverage_delete",EPIC_POLICY_EDIT_WC_FORM_INSERT:"epic_policy_edit__wc_form_insert",EPIC_POLICY_EDIT_WC_FORM_UPDATE:"epic_policy_edit__wc_form_update",EPIC_POLICY_EDIT_WC_FORM_DELETE:"epic_policy_edit__wc_form_delete",EPIC_POLICY_EDIT_PROPERTY_FORM_INSERT:"epic_policy_edit__property_form_insert",EPIC_POLICY_EDIT_PROPERTY_FORM_UPDATE:"epic_policy_edit__property_form_update",EPIC_POLICY_EDIT_PROPERTY_FORM_DELETE:"epic_policy_edit__property_form_delete",EPIC_POLICY_EDIT_GL_FORM_INSERT:"epic_policy_edit__gl_form_insert",EPIC_POLICY_EDIT_GL_FORM_UPDATE:"epic_policy_edit__gl_form_update",EPIC_POLICY_EDIT_GL_FORM_DELETE:"epic_policy_edit__gl_form_delete",EPIC_POLICY_EDIT_AUTO_FORM_INSERT:"epic_policy_edit__auto_form_insert",EPIC_POLICY_EDIT_AUTO_FORM_UPDATE:"epic_policy_edit__auto_form_update",EPIC_POLICY_EDIT_AUTO_FORM_DELETE:"epic_policy_edit__auto_form_delete",EPIC_POLICY_EDIT_BOP_FORM_INSERT:"epic_policy_edit__bop_form_insert",EPIC_POLICY_EDIT_BOP_FORM_UPDATE:"epic_policy_edit__bop_form_update",EPIC_POLICY_EDIT_BOP_FORM_DELETE:"epic_policy_edit__bop_form_delete",EPIC_POLICY_EDIT_UMBRELLA_FORM_INSERT:"epic_policy_edit__umbrella_form_insert",EPIC_POLICY_EDIT_UMBRELLA_FORM_UPDATE:"epic_policy_edit__umbrella_form_update",EPIC_POLICY_EDIT_UMBRELLA_FORM_DELETE:"epic_policy_edit__umbrella_form_delete",EPIC_POLICY_EDIT_APPLICATION_FORM_INSERT:"epic_policy_edit__application_form_insert",EPIC_POLICY_EDIT_APPLICATION_FORM_UPDATE:"epic_policy_edit__application_form_update",EPIC_POLICY_EDIT_APPLICATION_FORM_DELETE:"epic_policy_edit__application_form_delete",EPIC_POLICY_EDIT_WC_EXPERIENCE_MODIFIER_INSERT:"epic_policy_edit__wc_experience_modifier_insert",EPIC_POLICY_EDIT_WC_EXPERIENCE_MODIFIER_UPDATE:"epic_policy_edit__wc_experience_modifier_update",EPIC_POLICY_EDIT_WC_REMARK_INSERT:"epic_policy_edit__wc_remark_insert",EPIC_POLICY_EDIT_WC_REMARK_UPDATE:"epic_policy_edit__wc_remark_update",EPIC_POLICY_EDIT_WC_REMARK_DELETE:"epic_policy_edit__wc_remark_delete",EPIC_POLICY_EDIT_WC_FL_ADDED_COVERAGE_INSERT:"epic_policy_edit__wc_fl_added_coverage_insert",EPIC_POLICY_EDIT_WC_FL_ADDED_COVERAGE_UPDATE:"epic_policy_edit__wc_fl_added_coverage_update",EPIC_POLICY_EDIT_WC_FL_ADDED_COVERAGE_DELETE:"epic_policy_edit__wc_fl_added_coverage_delete",EPIC_POLICY_EDIT_WC_FL_INDIVIDUAL_INSERT:"epic_policy_edit__wc_fl_individual_insert",EPIC_POLICY_EDIT_WC_FL_INDIVIDUAL_UPDATE:"epic_policy_edit__wc_fl_individual_update",EPIC_POLICY_EDIT_WC_FL_INDIVIDUAL_DELETE:"epic_policy_edit__wc_fl_individual_delete",EPIC_POLICY_EDIT_WC_FL_LOCATION_SETTINGS_UPDATE:"epic_policy_edit__wc_fl_location_settings_update",EPIC_POLICY_EDIT_WC_FL_PREMIUM_UPDATE:"epic_policy_edit__wc_fl_premium_update",EPIC_POLICY_EDIT_WC_FL_COVERAGE_UPDATE:"epic_policy_edit__wc_fl_coverage_update",EPIC_POLICY_EDIT_WC_FL_LOCATION_INSERT:"epic_policy_edit__wc_fl_location_insert",EPIC_POLICY_EDIT_WC_FL_LOCATION_UPDATE:"epic_policy_edit__wc_fl_location_update",EPIC_POLICY_EDIT_WC_FL_CLASS_CODE_INSERT:"epic_policy_edit__wc_fl_class_code_insert",EPIC_POLICY_EDIT_WC_FL_CLASS_CODE_UPDATE:"epic_policy_edit__wc_fl_class_code_update",EPIC_POLICY_EDIT_WC_FL_CLASS_CODE_DELETE:"epic_policy_edit__wc_fl_class_code_delete",EPIC_POLICY_EDIT_WC_FL_APPLICANT_UPDATE:"epic_policy_edit__wc_fl_applicant_update",EPIC_POLICY_EDIT_WC_FL_NAMED_INSURED_INSERT:"epic_policy_edit__wc_fl_named_insured_insert",EPIC_POLICY_EDIT_WC_FL_NAMED_INSURED_UPDATE:"epic_policy_edit__wc_fl_named_insured_update",EPIC_POLICY_EDIT_WC_FL_NAMED_INSURED_DELET
7E:"epic_policy_edit__wc_fl_named_insured_delete",EPIC_POLICY_EDIT_AUTO_COVERAGE_UPDATE:"epic_policy_edit__auto_coverage_update",EPIC_POLICY_EDIT_AUTO_ADDED_COVERAGE_INSERT:"epic_policy_edit__auto_added_coverage_insert",EPIC_POLICY_EDIT_AUTO_ADDED_COVERAGE_UPDATE:"epic_policy_edit__auto_added_coverage_update",EPIC_POLICY_EDIT_AUTO_ADDED_COVERAGE_DELETE:"epic_policy_edit__auto_added_coverage_delete",EPIC_POLICY_EDIT_PROPERTY_ADDED_COVERAGE_INSERT:"epic_policy_edit__property_added_coverage_insert",EPIC_POLICY_EDIT_PROPERTY_ADDED_COVERAGE_UPDATE:"epic_policy_edit__property_added_coverage_update",EPIC_POLICY_EDIT_PROPERTY_ADDED_COVERAGE_DELETE:"epic_policy_edit__property_added_coverage_delete",EPIC_POLICY_EDIT_PROPERTY_REMARK_INSERT:"epic_policy_edit__property_remark_insert",EPIC_POLICY_EDIT_PROPERTY_REMARK_UPDATE:"epic_policy_edit__property_remark_update",EPIC_POLICY_EDIT_PROPERTY_REMARK_DELETE:"epic_policy_edit__property_remark_delete",EPIC_POLICY_EDIT_PROPERTY_ADDITIONAL_INTEREST_INSERT:"epic_policy_edit__property_additional_interest_insert",EPIC_POLICY_EDIT_PROPERTY_ADDITIONAL_INTEREST_UPDATE:"epic_policy_edit__property_additional_interest_update",EPIC_POLICY_EDIT_PROPERTY_ADDITIONAL_INTEREST_DELETE:"epic_policy_edit__property_additional_interest_delete",EPIC_POLICY_EDIT_AUTO_REMARK_INSERT:"epic_policy_edit__auto_remark_insert",EPIC_POLICY_EDIT_AUTO_REMARK_UPDATE:"epic_policy_edit__auto_remark_update",EPIC_POLICY_EDIT_AUTO_REMARK_DELETE:"epic_policy_edit__auto_remark_delete",EPIC_POLICY_EDIT_AUTO_ADDITIONAL_INTEREST_INSERT:"epic_policy_edit__auto_additional_interest_insert",EPIC_POLICY_EDIT_AUTO_ADDITIONAL_INTEREST_UPDATE:"epic_policy_edit__auto_additional_interest_update",EPIC_POLICY_EDIT_AUTO_ADDITIONAL_INTEREST_DELETE:"epic_policy_edit__auto_additional_interest_delete",EPIC_POLICY_EDIT_UMBRELLA_UNDERLYING_UPDATE:"epic_policy_edit__umbrella_underlying_update",EPIC_POLICY_EDIT_UMBRELLA_COVERAGE_UPDATE:"epic_policy_edit__umbrella_coverage_update",EPIC_POLICY_EDIT_UMBRELLA_EMPLOYEE_BENEFITS_UPDATE:"epic_policy_edit__umbrella_employee_benefits_update",EPIC_POLICY_EDIT_UMBRELLA_POLICY_INFORMATION_UPDATE:"epic_policy_edit__umbrella_policy_information_update",EPIC_POLICY_EDIT_UMBRELLA_ADDED_COVERAGE_INSERT:"epic_policy_edit__umbrella_added_coverage_insert",EPIC_POLICY_EDIT_UMBRELLA_ADDED_COVERAGE_UPDATE:"epic_policy_edit__umbrella_added_coverage_update",EPIC_POLICY_EDIT_UMBRELLA_ADDED_COVERAGE_DELETE:"epic_policy_edit__umbrella_added_coverage_delete",EPIC_POLICY_EDIT_UMBRELLA_REMARK_INSERT:"epic_policy_edit__umbrella_remark_insert",EPIC_POLICY_EDIT_UMBRELLA_REMARK_UPDATE:"epic_policy_edit__umbrella_remark_update",EPIC_POLICY_EDIT_UMBRELLA_REMARK_DELETE:"epic_policy_edit__umbrella_remark_delete",EPIC_POLICY_EDIT_UMBRELLA_ADDITIONAL_INTEREST_INSERT:"epic_policy_edit__umbrella_additional_interest_insert",EPIC_POLICY_EDIT_UMBRELLA_ADDITIONAL_INTEREST_UPDATE:"epic_policy_edit__umbrella_additional_interest_update",EPIC_POLICY_EDIT_UMBRELLA_ADDITIONAL_INTEREST_DELETE:"epic_policy_edit__umbrella_additional_interest_delete",EPIC_POLICY_EDIT_BOP_LIABILITY_COVERAGE_UPDATE:"epic_policy_edit__bop_liability_coverage_update",EPIC_POLICY_EDIT_BOP_PROPERTY_COVERAGE_UPDATE:"epic_policy_edit__bop_property_coverage_update",EPIC_POLICY_EDIT_BOP_LIABILITY_ADDED_COVERAGE_INSERT:"epic_policy_edit__bop_liability_added_coverage_insert",EPIC_POLICY_EDIT_BOP_LIABILITY_ADDED_COVERAGE_UPDATE:"epic_policy_edit__bop_liability_added_coverage_update",EPIC_POLICY_EDIT_BOP_LIABILITY_ADDED_COVERAGE_DELETE:"epic_policy_edit__bop_liability_added_coverage_delete",EPIC_POLICY_EDIT_BOP_OTHER_ADDED_COVERAGE_INSERT:"epic_policy_edit__bop_other_added_coverage_insert",EPIC_POLICY_EDIT_BOP_OTHER_ADDED_COVERAGE_UPDATE:"epic_policy_edit__bop_other_added_coverage_update",EPIC_POLICY_EDIT_BOP_OTHER_ADDED_COVERAGE_DELETE:"epic_policy_edit__bop_other_added_coverage_delete",EPIC_POLICY_EDIT_BOP_PREMISE_COVERAGE_INSERT:"epic_policy_edit__bop_premise_coverage_insert",EPIC_POLICY_EDIT_BOP_PREMISE_COVERAGE_UPDATE:"epic_policy_edit__bop_premise_coverage_update",EPIC_POLICY_EDIT_BOP_REMARK_INSERT:"epic_policy_edit__bop_remark_insert",EPIC_POLICY_EDIT_BOP_REMARK_UPDATE:"epic_policy_edit__bop_remark_update",EPIC_POLICY_EDIT_BOP_REMARK_DELETE:"epic_policy_edit__bop_remark_delete",EPIC_POLICY_EDIT_BOP_ADDITIONAL_INTEREST_INSERT:"epic_policy_edit__bop_additional_interest_insert",EPIC_POLICY_EDIT_BOP_ADDITIONAL_INTEREST_UPDATE:"epic_policy_edit__bop_additional_interest_update",EPIC_POLICY_EDIT_BOP_ADDITIONAL_INTEREST_DELETE:"epic_policy_edit__bop_additional_interest_delete",EPIC_POLICY_EDIT_POLICY_PREMIUM_UPDATE:"epic_policy_edit__policy_premium_update",EPIC_POLICY_EDIT_LINE_PREMIUM_UPDATE:"epic_policy_edit__line_premium_update",EPIC_POLICY_EDIT_FLAG_UNSUPPORTED:"epic_policy_edit__flag_unsupported",EPIC_POLICY_EDIT_SEARCH:"epic_policy_edit__search",
7EPIC_POLICY_EDIT_STATUS:"epic_policy_edit__status",EPIC_POLICY_EDIT_DECLINE:"epic_policy_edit__decline",EPIC_POLICY_EDIT_DISMISS:"epic_policy_edit__dismiss"},or=e0.z.enum(on),oa=e0.z.enum(["run","tool","artifact","action"]),oo=e0.z.enum(["user_review","artifact_action"]),os=e0.z.enum(["email_sent"]),ol=e0.z.enum(["pending","done"]),oc=e0.z.object({id:e0.z.string(),label:e0.z.string(),type:oo,action:os.optional(),status:ol.default("pending"),completedAt:e0.z.string().optional()});oc.omit({status:!0,completedAt:!0}),(s=k||(k={})).P_AND_C="P_AND_C",s.BENEFITS="BENEFITS",s.APPLICATION="APPLICATION",(l=x||(x={})).ADAPTIVE="adaptive",l.DISABLED="disabled",l.HIGH="high",l.ULTRA="ultra",(c=G||(G={})).DEFAULT="default",c.FAST="fast",(d=Y||(Y={})).ACCOUNT_POLICY_LOOKUP="account_policy_lookup",d.AUDIT_COMPARISON="audit_comparison",d.BASIC_CHAT="basic_chat",d.BENEFITS_BILL_RECONCILIATION="benefits_bill_reconciliation",d.BENEFITS_BROKER_OF_RECORD_LETTER="benefits_broker_of_record_letter",d.BENEFITS_CHAT="benefits_chat",d.BENEFITS_COST_COMPARISON="benefits_cost_comparison",d.BENEFITS_PLAN_COMPARISON="benefits_plan_comparison",d.BROKER_OF_RECORD_LETTER="broker_of_record_letter",d.CHALLENGE_CLAIMS_DENIAL="challenge_claims_denial",d.CLAIMS_REPORTING_REQUIREMENTS="claims_reporting_requirements",d.CONTRACT_REVIEW="contract_review",d.COVERAGE_COMPARISON="coverage_comparison",d.COVERAGE_GAP_ANALYSIS="coverage_gap_analysis",d.EMAIL_CHAT="email_chat",d.EXCLUSIONS_RESTRICTIONS_REVIEW="exclusions_restrictions_review",d.EXPOSURE_COMPARISON="exposure_comparison",d.EXPOSURE_WORKBOOK_GENERATION_2="exposure_workbook_generation_2",d.INSURANCE_AUDIT_FINDINGS_SUMMARY="insurance_audit_findings_summary",d.LOCKTON_AUDIT_ANALYSIS="lockton_audit_analysis",d.LOSS_RUN_ANALYSIS="loss_run_analysis",d.MARKETING_RESULTS_SUMMARY="marketing_results_summary",d.POLICY_CHECKING="policy_checking",d.PROGRAM_SCHEMATIC="program_schematic",d.SUBMISSION_INTAKE="submission_intake",d.SUMMARY_OF_INSURANCE="summary_of_insurance",d.TEMPLATE_FILL="template_fill",d.TOWER_ANALYSIS="tower_analysis",d.WORKERS_COMP_RATING_AUDIT="workers_comp_rating_audit";let od=e0.z.enum(["USER_DEFINED","FULCRUM_DEFINED","BASIC_CHAT"]),ou=e0.z.enum(["DRAFT","REVIEW","LIVE"]),om=e0.z.enum(["MARKDOWN","EMAIL","EXCEL","PDF","WORD","BENEFITS_COST_COMPARISON","BENEFITS_BILL_RECONCILIATION","EPIC_ACTIVITY","LOSS_RUN_WORKSPACE","EPIC_ATTACHMENT","EPIC_POLICY_UPDATE","EPIC_POLICY_CREATE","POLICY_CHECK_RECONCILIATION","INFORMATION_REVIEW"]);e0.z.object({title:e0.z.string(),markdown:e0.z.string()});let op=e0.z.object({managedDocumentId:e0.z.string().optional(),artifactKey:e0.z.string().optional(),runAttachmentId:e0.z.string().optional(),fileName:e0.z.string(),source:e0.z.enum(["agent","user"]).default("user")}),oE=e0.z.object({status:e0.z.enum(["draft","sending","sent","failed"]).default("draft"),sentAt:e0.z.string().optional(),messageId:e0.z.string().optional(),error:e0.z.string().optional(),emlRunAttachmentId:e0.z.string().optional()}),og=e0.z.object({subject:e0.z.string(),to:e0.z.array(e0.z.string()),cc:e0.z.array(e0.z.string()).default([]),html:e0.z.string(),sentHtml:e0.z.string().optional(),attachments:e0.z.array(op).default([]),dismissedDocumentIds:e0.z.array(e0.z.string()).default([]),send:oE.default({status:"draft"})}),oI=e0.z.object({label:e0.z.string(),value:e0.z.string()}),ob=e0.z.object({status:e0.z.enum(["proposed","writing","written","failed","dismissed"]).default("proposed"),writtenAt:e0.z.string().optional(),activityId:e0.z.string().optional(),policyId:e0.z.string().optional(),createdLines:e0.z.array(e0.z.object({lineTypeCode:e0.z.string(),hasCommissions:e0.z.boolean(),lineID:e0.z.number().optional()})).optional(),error:e0.z.string().optional(),warnings:e0.z.array(e0.z.string()).optional()}),o_=e0.z.enum(["Employee","WorkGroup"]),oz=e0.z.object({code:e0.z.string(),name:e0.z.string().nullable().optional(),ownerType:o_.optional()}),oh=e0.z.enum(["AGENT_OUTPUT","USER_UPLOAD","AMS_SYNC"]),oA={ARTIFACT:"ARTIFACT",REPORT:"REPORT",SENT_EMAIL:"SENT_EMAIL",MANAGED_DOCUMENT:"MANAGED_DOCUMENT",RUN_ATTACHMENT:"RUN_ATTACHMENT"}
7,oO=e0.z.enum([oA.ARTIFACT,oA.REPORT,oA.SENT_EMAIL,oA.MANAGED_DOCUMENT,oA.RUN_ATTACHMENT]),of={APPLIED_EPIC:"APPLIED_EPIC",IMAGE_RIGHT:"IMAGE_RIGHT"},oT=e0.z.enum([of.APPLIED_EPIC,of.IMAGE_RIGHT]),oy=e0.z.object({documentId:e0.z.string(),fileName:e0.z.string(),description:e0.z.string(),comments:e0.z.string().optional(),amsSource:oT.optional(),sourceKind:oO.optional()}),oN=e0.z.preprocess(e=>e&&"object"==typeof e&&"message"in e?e.message:e,e0.z.string()),oC=e0.z.object({policyId:e0.z.string().nullable().default(null),activityCode:e0.z.string().default(""),description:e0.z.string().default(""),owner:oz.nullable().default(null),closed:e0.z.boolean().default(!1),followUpStartAt:e0.z.string().nullable().default(null),followUpEndAt:e0.z.string().nullable().default(null),note:e0.z.string().default(""),tasks:e0.z.array(e0.z.object({description:e0.z.string(),owner:oz.nullable()})).default([]),documents:e0.z.array(oy).default([]),folderPath:e0.z.array(e0.z.string()).default([])}),oS=e0.z.object({description:e0.z.string().optional(),accountName:e0.z.string().optional(),epicAccountId:e0.z.string().optional()}),oR=e0.z.object({operation:e0.z.enum(["create","update"]),activityId:e0.z.string().optional(),title:e0.z.string(),summary:e0.z.array(oI),note:e0.z.string().optional(),tasks:e0.z.array(e0.z.object({description:e0.z.string(),owner:e0.z.string(),ownerName:e0.z.string().optional()})).default([]),changes:e0.z.array(e0.z.string()).default([]),attachments:e0.z.array(e0.z.object({fileName:e0.z.string(),description:e0.z.string(),comments:e0.z.string().optional(),documentId:e0.z.string().optional()})).default([]),intent:e0.z.record(e0.z.string(),e0.z.unknown()),form:oC.optional(),resolved:oS.optional(),draft:oC.optional(),validation:e0.z.array(oN).default([]),write:ob.default({status:"proposed"})}),oL={INSERT:"INSERT",UPDATE:"UPDATE",DELETE:"DELETE"},oD=e0.z.enum(oL),oP={AGENT_EDITING:"agent_editing",INCOMPLETE:"incomplete",READY:"ready"},ov=e0.z.enum(oP),oU={BUSINESS_AUTO:"BusinessAuto",BUSINESS_OWNERS:"BusinessOwners",COMMERCIAL_APPLICATION:"CommercialApplication",COMMERCIAL_UMBRELLA:"CommercialUmbrella",GENERAL_LIABILITY:"GeneralLiability",POLICY:"Policy",PROPERTY:"Property",WORKERS_COMPENSATION:"WorkersCompensation"},ow=e0.z.enum(oU),oB={ADDITIONAL_COVERAGE:"AdditionalCoverage",ADDITIONAL_INTEREST:"AdditionalInterest",APPLICANT:"Applicant",BUILDING:"Building",CLASS_CODE:"ClassCode",COVERAGE:"Coverage",DRIVER:"Driver",EXPERIENCE_MODIFIER:"ExperienceModifier",FL_APPLICANT:"FLApplicant",FL_CLASS_CODE:"FLClassCode",FL_COVERAGES:"FLCoverages",FL_PREMIUM_CALCULATION:"FLPremiumCalculation",FL_ADDITIONAL_COVERAGE:"FLAdditionalCoverage",FL_INDIVIDUAL:"FLIndividual",FL_LOCATION:"FLLocation",FL_LOCATION_SETTINGS:"FLLocationSettings",FL_NAMED_INSURED:"FLNamedInsured",FORM_AND_ENDORSEMENT:"FormAndEndorsement",HAZARD:"Hazard",INDIVIDUAL:"Individual",LINE:"Line",LIABILITY_ADDITIONAL_COVERAGE:"LiabilityAdditionalCoverage",LIABILITY_COVERAGE:"LiabilityCoverage",LOCATION:"Location",OTHER_ADDITIONAL_COVERAGE:"OtherAdditionalCoverage",OTHER_NAMED_INSURED:"OtherNamedInsured",POLICY:"Policy",POLICY_INFORMATION:"PolicyInformation",PREMISE:"Premise",PREMISE_COVERAGE:"PremiseCoverage",PROPERTY_COVERAGE:"PropertyCoverage",REMARK:"Remark",SUBJECT_OF_INSURANCE:"SubjectOfInsurance",UNDERLYING_INSURANCE:"UnderlyingInsurance",UNDERWRITING_ANSWER:"UnderwritingAnswer",VEHICLE:"Vehicle",VEHICLE_COVERAGE:"VehicleCoverage"},oF=e0.z.enum(oB),oj=e0.z.object({operationId:e0.z.string(),api:ow,entity:oF,operation:oD,policyId:e0.z.string(),lineId:e0.z.string().optional(),identity:e0.z.record(e0.z.string(),e0.z.union([e0.z.string(),e0.z.number()])),before:e0.z.unknown().optional(),after:e0.z.unknown().optional()}),oM=e0.z.object({diffId:e0.z.string(),operationId:e0.z.string(),policyId:e0.z.string(),lineId:e0.z.string().optional(),api:ow,entity:oF,operation:oD,identity:e0.z.record(e0.z.string(),e0.z.union([e0.z.string(),e0.z.number()])).default({}),path:e0.z.array(e0.z.string()).default([]),before:e0.z.unknown().optional(),after:e0.z.unknown().optional(),proposedValue:e0.z.unknown().optional(),reviewerAction:e0.z.enum
7(["edited","skipped"]).optional(),skippedBy:e0.z.enum(["agent","user"]).optional(),smartFixApplied:e0.z.boolean().optional(),reviewerEditable:e0.z.boolean().optional(),reviewerSkippableOnInsert:e0.z.boolean().optional(),reviewerChoices:e0.z.array(e0.z.string()).optional(),reviewerLabel:e0.z.string().optional(),reviewerValueType:e0.z.enum(["string","number","boolean"]).optional(),reviewerLookupTable:e0.z.string().optional(),reviewerMoneyFormat:nP.optional().catch(void 0),reviewerCalendarDate:e0.z.literal(!0).optional()}),ok=e0.z.object({operationId:e0.z.string(),status:e0.z.enum(["applied","failed","skipped"]),completedAt:e0.z.string(),epicId:e0.z.string().optional(),operationHash:e0.z.string().optional(),error:e0.z.string().optional(),notStored:e0.z.array(e0.z.string()).optional(),unconfirmed:e0.z.literal(!0).optional()}),ox=e0.z.object({policyId:e0.z.string(),status:e0.z.enum(["applied","partial","failed","skipped"]),endorsementOpened:e0.z.boolean(),endorsementIssued:e0.z.boolean(),startedAt:e0.z.string(),completedAt:e0.z.string(),operations:e0.z.array(ok),error:e0.z.string().optional()}),oG=e0.z.object({status:e0.z.enum(["AVAILABLE","UNAVAILABLE","FAILED"]),entityCount:e0.z.number().int().nonnegative().optional(),message:e0.z.string().optional(),notApplicable:e0.z.literal(!0).optional()}),oY={POLICY:"policy",MARKETING_SUBMISSION:"marketing_submission"},oW=e0.z.enum(oY),oV=e0.z.object({captureIssues:e0.z.array(e0.z.object({policyId:e0.z.string(),lineId:e0.z.string(),section:e0.z.string(),ownerKind:oW,reason:e0.z.string(),capturedAt:e0.z.string(),operation:e0.z.string().optional(),selector:e0.z.string().optional(),faultCode:e0.z.string().optional()})).optional(),commercialApplication:oG,lineById:e0.z.record(e0.z.string(),oG.extend({lineTypeCode:e0.z.string(),lineTypeDescription:e0.z.string().nullish(),resource:e0.z.enum(["property","businessAuto","businessOwners","generalLiability","workersCompensation","commercialUmbrella"]).optional()}))}),oH=e0.z.enum(["draft","confirmed","executing","partially_completed","applied","failed","no_changes","dismissed"]),oq={KEEP_OPEN:"keep_open",CLOSE:"close"},oK=e0.z.enum(oq),oQ=e0.z.object({serviceSummaryAction:oK}),o$=e0.z.object({schemaVersion:e0.z.number().int().positive(),artifactId:e0.z.string(),title:e0.z.string().min(1).optional(),revision:e0.z.number().int().nonnegative(),status:oH,dismissedFrom:oH.optional(),completionAction:e0.z.enum(["finish","dismiss","refresh"]).optional(),refreshedFrom:e0.z.array(e0.z.string()).optional(),completionDecision:oQ.optional(),readiness:ov,policies:e0.z.record(e0.z.string(),e0.z.object({organizationId:e0.z.string(),accountId:e0.z.string(),policyId:e0.z.string(),policyNumber:e0.z.string().optional(),policyName:e0.z.string().optional(),insuredName:e0.z.string().optional(),policyTypeCode:e0.z.string().optional(),isIssued:e0.z.boolean().optional(),effectiveDate:e0.z.string().optional(),expirationDate:e0.z.string().optional(),insert:oW.optional()})),snapshotAvailability:e0.z.record(e0.z.string(),oV).optional(),unsupportedLineFlags:e0.z.array(e0.z.object({policyId:e0.z.string(),lineId:e0.z.string(),requested:e0.z.string().min(1)})).optional(),original:e0.z.record(e0.z.string(),e0.z.unknown()),proposed:e0.z.record(e0.z.string(),e0.z.unknown()),draft:e0.z.record(e0.z.string(),e0.z.unknown()).optional(),effectiveOperations:e0.z.array(oj),declinedOperationIds:e0.z.array(e0.z.string()).optional(),declinedOperationSources:e0.z.record(e0.z.string(),e0.z.enum(["agent","user"])).optional(),smartFixedDiffIds:e0.z.array(e0.z.string()).optional(),reviewerEditedDiffIds:e0.z.array(e0.z.string()).optional(),reviewDiffs:e0.z.array(oM),proposalCalls:e0.z.array(e0.z.object({toolName:e0.z.string(),toolCallId:e0.z.string(),policyId:e0.z.string(),acceptedAt:e0.z.string(),artifactRevision:e0.z.number().int().nonnegative()})),confirmedHash:e0.z.string().optional(),confirmedAt:e0.z.string().optional(),executionStartedAt:e0.z.string().optional(),executionLeaseExpiresAt:e0.z.string().optional(),executionReceipts:e0.z.array(ox),executionError:e0.z.string().optional(),executionOutcomeUnknown:e0.z.boolean().optional(),executionCheckpoint:e0.z.object({receipts:e0.z.array(ox),inFlightOperationIds:e0.z.array(e0.z.string())}).optional(),openedEndorsements:e0.z.record(e0.z.string(),e0.z.object({marker:e0.z.string(),openedAt:e0.z.string(),lines:e0.z.record(e0.z.string(),e0.z.object({serviceSummaryId:e0.z.string().optional(),serviceSummaryVersion:e0.z.string().optional(),enteredByName:e0.z.string().optional()}))})).optional(),endorsementReleases:e0.z.record(e0.z.string(),e0.z.object({outcome:e0.z.enum
7(["closed","kept","unknown"]),reason:e0.z.string().optional(),discardedOperationIds:e0.z.array(e0.z.string()).optional()})).optional()}),oX=e0.z.object({type:e0.z.enum(["ACCOUNT","POLICY","ACTIVITY","LINE","NEW_ACTIVITY"]),id:e0.z.number().optional(),label:e0.z.string()}),oJ=e0.z.object({target:e0.z.object({type:e0.z.enum(["ACCOUNT","POLICY","ACTIVITY","LINE","NEW_ACTIVITY"]),id:e0.z.number().optional()}),newActivity:oC.nullable().default(null),documents:e0.z.array(oy).default([]),folderPath:e0.z.array(e0.z.string()).default([])}),oZ=e0.z.object({title:e0.z.string(),documents:e0.z.array(e0.z.object({fileName:e0.z.string(),description:e0.z.string(),comments:e0.z.string().optional(),documentId:e0.z.string().optional()})).default([]),folderPath:e0.z.array(e0.z.string()).default([]),target:oX,targetCandidates:e0.z.array(oX).default([]),intent:e0.z.record(e0.z.string(),e0.z.unknown()),form:oJ.optional(),draft:oJ.optional(),resolved:e0.z.object({owner:oz.optional()}).optional(),validation:e0.z.array(oN).default([]),write:ob.default({status:"proposed"})}),o0=e0.z.iso.date("Expected a real date as YYYY-MM-DD."),o1=e0.z.union([o0,e0.z.literal("")]),o2=e0.z.object({producerCode:e0.z.string(),productionCredit:e0.z.string(),commissionPercent:e0.z.string(),shareRevenueAgencyCode:e0.z.string().optional(),shareRevenueBranchCode:e0.z.string().optional(),shareRevenueDepartmentCode:e0.z.string().optional(),shareRevenueProfitCenterCode:e0.z.string().optional()}),o5={AGENCY:"AgencyBilled",DIRECT:"DirectBilled"},o3=e0.z.enum(o5),o4=e0.z.preprocess(function(e){if(!e||"object"!=typeof e||"producers"in e)return e;let{producerCode:t,shareRevenueAgencyCode:i,shareRevenueBranchCode:n,shareRevenueDepartmentCode:r,shareRevenueProfitCenterCode:a,...o}=e;return{...o,producers:[{producerCode:null!=t?t:"",productionCredit:"100",commissionPercent:"100",...Object.fromEntries(Object.entries({shareRevenueAgencyCode:i,shareRevenueBranchCode:n,shareRevenueDepartmentCode:r,shareRevenueProfitCenterCode:a}).filter(([,e])=>void 0!==e))}]}},e0.z.object({lineTypeCode:e0.z.string(),statusCode:e0.z.string(),profitCenterCode:e0.z.string(),issuingLocationCode:e0.z.string(),issuingCompanyCode:e0.z.string().optional(),premiumPayableTypeCode:e0.z.string().optional(),premiumPayableCode:e0.z.string().optional(),agencyCommissionPercent:e0.z.string().optional(),billingMode:e0.z.union([o3,e0.z.literal("")]).optional(),producers:e0.z.array(o2)})),o9=e0.z.object({description:e0.z.string(),effectiveDate:o1,expirationDate:o1,policyTypeCode:e0.z.string(),agencyCode:e0.z.string(),branchCode:e0.z.string(),departmentCode:e0.z.string(),lines:e0.z.array(o4),policyNumber:e0.z.string().optional(),estimatedPremium:e0.z.string().optional(),estimatedCommission:e0.z.string().optional(),source:e0.z.string().optional()}),o6=e0.z.object({policy:e0.z.array(e0.z.enum(["policyNumber","estimatedPremium","estimatedCommission","source"])).default([]),line:e0.z.array(e0.z.enum(["issuingCompanyCode","premiumPayableTypeCode","premiumPayableCode","agencyCommissionPercent","billingMode"])).default([])}),o8=e0.z.object({title:e0.z.string(),accountName:e0.z.string().optional(),copiedFrom:e0.z.object({policyId:e0.z.string(),label:e0.z.string()}).optional(),lineDetails:e0.z.array(e0.z.object({lineTypeName:e0.z.string().optional(),supportsUpdates:e0.z.boolean().optional()})).optional(),insert:oW.optional(),required:o6.optional(),form:o9,draft:o9.optional(),proposed:o9.optional(),agentRevision:e0.z.number().int().nonnegative().optional(),validation:e0.z.array(oN).default([]),write:ob.default({status:"proposed"})}),o7=e0.z.preprocess(function(e){if(!e||"object"!=typeof e)return e;let t=e=>{if(!e||"object"!=typeof e||"lines"in e)return e;let{lineTypeCode:t,statusCode:i,profitCenterCode:n,issuingLocationCode:r,issuingCompanyLookupCode:a,...o}=e;return{...o,lines:[{lineTypeCode:null!=t?t:"",statusCode:null!=i?i:"",profitCenterCode:null!=n?n:"",issuingLocationCode:null!=r?r:""}]}};return{...e,form:t(e.form),...void 0===e.draft?{}:{draft:t(e.draft)},...void 0===e.lineDetails&&(void 0!==e.lineTypeName||void 0!==e.lineSupportsUpdates)?{lineDetails:[{lineTypeName:e.lineTypeName,supportsUpdates:e.lineSupportsUpdates}]}:{}}}
7,o8),se=e0.z.object({page:e0.z.number().int().positive(),left:e0.z.number(),top:e0.z.number(),width:e0.z.number(),height:e0.z.number(),fieldName:e0.z.string(),value:e0.z.string()});e0.z.object({fileName:e0.z.string(),s3Key:e0.z.string(),sha256:e0.z.string().optional(),byteSize:e0.z.number().int().optional(),fillRegions:e0.z.array(se).optional()}),e0.z.object({workspaceId:e0.z.string()}),e0.z.never();let st=e0.z.object({managedDocumentId:e0.z.string(),fileName:e0.z.string()}),si=e0.z.object({insuredAccountId:e0.z.string(),epicAccountId:e0.z.string().optional(),amsType:tO.optional(),amsId:e0.z.string().optional(),name:e0.z.string().optional(),amsLookupCode:e0.z.string().optional(),linkedOnTurnId:e0.z.string().optional()}),sn=e0.z.object({policyId:e0.z.string(),policyNumber:e0.z.string(),description:e0.z.string().optional(),effectiveDate:e0.z.string().optional(),expirationDate:e0.z.string().optional(),carrierName:e0.z.string().optional()}),sr=sn.extend({policyId:e0.z.string().max(128),policyNumber:e0.z.string().max(64),description:e0.z.string().max(512).optional(),effectiveDate:e0.z.string().max(64).optional(),expirationDate:e0.z.string().max(64).optional(),carrierName:e0.z.string().max(256).optional()}),sa=e0.z.record(e0.z.string(),e0.z.array(e0.z.string())),so=e0.z.enum(["chat","workspace"]),ss=e0.z.object({selectionId:e0.z.string(),artifactId:e0.z.string(),artifactKey:e0.z.string(),startOffset:e0.z.number().int().nonnegative(),endOffset:e0.z.number().int().nonnegative(),sourceBlockMarkdown:e0.z.string()}),sl=e0.z.object({benefitsSourceManifest:nR.optional().catch(void 0),id:e0.z.string(),surface:so,text:e0.z.string(),attachments:e0.z.array(st).default([]),managedDocumentIds:e0.z.array(e0.z.string()).default([]),account:si.optional(),epicAcords:e0.z.array(sn).optional(),selections:e0.z.array(ss).default([]),submittedAt:e0.z.string()}),sc=e0.z.object({artifactId:e0.z.string(),key:e0.z.string(),artifactType:om,label:e0.z.string()}),sd=e0.z.object({id:e0.z.string(),name:e0.z.string(),args:e0.z.string().optional(),result:e0.z.string().optional(),artifact:sc.optional()}),su={COMMENTARY:"commentary",FINAL_ANSWER:"final_answer"},sm=e0.z.enum([su.COMMENTARY,su.FINAL_ANSWER]),sp={EPIC:"epic",EXCEL:"excel",FILE_PEN:"file-pen",FILES:"files",GLOBE:"globe",INFO:"info",MAIL:"mail",PDF:"pdf",PENCIL:"pencil",SCAN_TEXT:"scan-text",SEARCH:"search",TERMINAL:"terminal",WORD:"word"},sE=e0.z.enum([sp.EPIC,sp.EXCEL,sp.FILE_PEN,sp.FILES,sp.GLOBE,sp.INFO,sp.MAIL,sp.PDF,sp.PENCIL,sp.SCAN_TEXT,sp.SEARCH,sp.TERMINAL,sp.WORD]),sg=e0.z.object({id:e0.z.string(),summary:e0.z.string(),sequence:e0.z.number()}),sI=e0.z.object({role:e0.z.enum(["user","assistant"]),content:e0.z.string(),phase:sm.optional(),activitySummary:e0.z.string().optional(),activityEntries:e0.z.array(sg).optional(),turnId:e0.z.string().optional(),interactionAnswer:e0.z.literal(!0).optional(),attachments:e0.z.array(st).optional(),toolCallIds:e0.z.array(e0.z.string()).optional(),toolCalls:e0.z.array(sd).optional()}),sb=e0.z.object({benefitsSourceManifest:nR.optional(),workflowId:e0.z.string(),runId:e0.z.string().optional(),messages:e0.z.array(sI),turnId:e0.z.string().optional(),surface:so.optional(),managedDocumentIds:e0.z.array(e0.z.string()).optional(),account:e0.z.object({insuredAccountId:e0.z.string()}).optional(),epicAcords:e0.z.array(sr).max(40).optional(),isTestRun:e0.z.boolean().optional()}),s_=e0.z.object({sourceRunId:e0.z.string().min(1),interactionId:e0.z.string().min(1),targetWorkflowId:e0.z.string().min(1),runId:e0.z.string().min(1),turnId:e0.z.string().min(1)}),sz=e0.z.object({sourceRunId:e0.z.string().min(1),interactionId:e0.z.string().min(1),targetWorkflowId:e0.z.string().min(1)}),sh=e0.z.object({deleted:e0.z.boolean()}),sA=e0.z.object({workflowId:e0.z.string(),runId:e0.z.string(),interactionId:e0.z.string(),resume:e0.z.unknown()}),sO=e0.z.object({workflowId:e0.z.string(),runId:e0.z.string()}),sf=e0.z.object({runId:e0.z.string()}),sT=e0.z.object({cancelled:e0.z.boolean(),userTurnPersisted:e0.z.boolean()}),sy=e0.z.enum(["PENDING","RUNNING","USER_REVIEW","COMPLETED","FAILED"]),sN=e0.z.object({id:e0.z.string(),agentWorkflowId:e0.z.string(),createdById:e0.z.string(),createdByEmail
7:e0.z.string().nullable().default(null),createdByName:e0.z.string().nullable().default(null),title:e0.z.string().nullable(),status:sy,unread:e0.z.boolean().default(!1),unreadAt:e0.z.string().datetime().nullable().default(null),managedDocumentIds:e0.z.array(e0.z.string()),activeTurn:sl.nullable(),account:si.nullable().default(null),epicAcords:e0.z.array(sn).default([]),epicAcordReferences:sa.default({}),todos:e0.z.array(oc).default([]),createdAt:e0.z.string(),updatedAt:e0.z.string(),isTestRun:e0.z.boolean().optional()}),sC=e0.z.enum(["in_progress","needs_review","failed","done"]);(u=W||(W={})).EXPORT_CHAT_TRANSCRIPT="export_chat_transcript",u.RENAME_CHAT="rename_chat",u.PIN_CHAT="pin_chat",u.DELETE_CHAT="delete_chat";let sS=e0.z.object({id:e0.z.string(),title:e0.z.string(),state:sC,unread:e0.z.boolean().default(!1),createdAt:e0.z.string(),href:e0.z.string().nullable(),errorMessage:e0.z.string().nullable(),availableActions:e0.z.array(e0.z.enum(W)).default([]),pinned:e0.z.boolean().default(!1),pinnedAt:e0.z.string().datetime().nullable().default(null),isTestRun:e0.z.boolean().optional()}),sR=e0.z.object({accountId:e0.z.string().optional()}),sL=e0.z.object({items:e0.z.array(sS),scope:e0.z.enum(["own","all"])}),sD=e0.z.object({runId:e0.z.string()}),sP=e0.z.object({runId:e0.z.string(),unreadAt:e0.z.string().datetime()}),sv=e0.z.object({read:e0.z.boolean()}),sU=e0.z.enum(["up","down"]),sw=e0.z.number().int().min(1).max(5),sB=e0.z.object({extraction:sw.optional(),excel:sw.optional(),word:sw.optional()}),sF=e0.z.object({rating:sU,comment:e0.z.string().max(4e3).optional(),scores:sB.optional(),employeeId:e0.z.string(),createdAt:e0.z.string().datetime(),updatedAt:e0.z.string().datetime().optional()}),sj=e0.z.record(e0.z.string(),sF),sM=e0.z.object({label:e0.z.string().trim().min(1).max(80),icon:sE.nullable()}),sk=e0.z.object({turnId:e0.z.string().min(1),chips:e0.z.array(sM).min(1).max(3)}),sx=e0.z.object({runId:e0.z.string(),turnId:e0.z.string().min(1),rating:sU,scores:sB.optional(),comment:e0.z.string().max(4e3).optional()}),sG=e0.z.object({turnId:e0.z.string(),feedback:sF}),sY=e0.z.object({runId:e0.z.string()}),sW=e0.z.object({artifactId:e0.z.string(),key:e0.z.string(),artifactType:om,content:e0.z.unknown(),producedByToolCallId:e0.z.string().nullable().optional()}),sV=e0.z.object({interactionId:e0.z.string(),kind:e0.z.enum(F),request:e0.z.unknown()}),sH=e0.z.object({supportsEpicAcords:e0.z.boolean().optional(),id:e0.z.string(),type:od,status:ou,config:e0.z.record(e0.z.string(),e0.z.unknown()).nullable(),createdAt:e0.z.string(),domain:e0.z.enum(k),artifactPresentation:a8.optional()}),sq=e0.z.object({docId:e0.z.string(),fileName:e0.z.string(),managedDocumentId:e0.z.string()}),sK=e0.z.object({session:sN,workflow:sH.optional(),messages:e0.z.array(sI),artifacts:e0.z.array(sW),pendingInteraction:sV.nullable(),emailBodyCss:e0.z.string().optional(),messageFeedback:sj.default({}),suggestedNextSteps:sk.nullable().default(null),citationDocuments:e0.z.array(sq).default([]),debugTenant:e0.z.object({organizationName:e0.z.string(),organizationId:e0.z.string(),startedByEmail:e0.z.string().nullable(),impersonatedByEmail:e0.z.string().nullable()}).nullable().default(null)}),sQ=e0.z.object({brandName:e0.z.string(),logoUrl:e0.z.string().nullable(),iconUrl:e0.z.string().nullable()}),s$=e0.z.object({agentWorkflows:e0.z.array(sH),branding:sQ.nullable()}),sX=e0.z.object({workflowId:e0.z.string(),name:e0.z.string(),customer:e0.z.string(),createdBy:e0.z.string(),createdAt:e0.z.string(),runCount:e0.z.number().int().nonnegative()}),sJ=e0.z.object({rows:e0.z.array(sX)}),sZ=e0.z.object({prebuiltAgentId:e0.z.enum(Y),name:e0.z.string(),description:e0.z.string(),domain:e0.z.enum(k),workflowId:e0.z.string().nullable(),driftedConfigKeys:e0.z.array(e0.z.string()),isHiddenByFeatureFlag:e0.z.boolean(),featured:e0.z.boolean()}),s0=e0.z.object({workflowId:e0.z.string(),name:e0.z.string()}),s1=e0.z.object({entries:e0.z.array(sZ),unrecognizedWorkflows:e0.z.array(s0)}),s2=e0.z.object({prebuiltAgentId:e0.z.enum(Y)}),s5=e0.z.object({prebuiltAgentId:e0.z.enum(Y)}),s3=e0.z.object({entry:sZ});(m=V||(V={})).AGENT="agent",m.STRUCTURED="structured",m.PROPOSALS="proposals",m.LOSS_RUNS="lossRuns",(p=H||(H={}
7)).P_AND_C="p_and_c",p.BENEFITS="benefits";let s4=e0.z.object({title:e0.z.string(),description:e0.z.string(),createdBy:e0.z.string(),logoUrl:e0.z.string().nullable()}),s9=e0.z.discriminatedUnion("kind",[e0.z.object({kind:e0.z.literal(V.AGENT),...s4.shape,workflowId:e0.z.string(),slug:e0.z.string(),isCustom:e0.z.boolean(),featured:e0.z.boolean(),status:ou.optional(),createdAt:e0.z.string().optional()}),e0.z.object({kind:e0.z.literal(V.STRUCTURED),...s4.shape,workflowId:e0.z.string(),isPolicyCheck:e0.z.boolean(),startPath:e0.z.string().optional(),createdAt:e0.z.string().optional()}),e0.z.object({kind:e0.z.literal(V.PROPOSALS),...s4.shape}),e0.z.object({kind:e0.z.literal(V.LOSS_RUNS),...s4.shape})]),s6=e0.z.object({workflowId:e0.z.string(),slug:e0.z.string(),supportsEpicAcords:e0.z.boolean().optional()}),s8=e0.z.object({domain:e0.z.enum(k).optional(),includeUnpublished:e0.z.boolean().optional()}),s7=e0.z.object({branding:sQ.nullable(),composer:s6.nullable(),sections:e0.z.array(e0.z.object({group:e0.z.enum(H),entries:e0.z.array(s9)})),suggestedEntryKeys:e0.z.array(e0.z.string()),favoriteEntryKeys:e0.z.array(e0.z.string()).default([])}),le=e0.z.object({workflowIds:e0.z.array(e0.z.string())}),lt=e0.z.object({workflowId:e0.z.string().min(1),isFavorite:e0.z.boolean()}),li=e0.z.object({workflowId:e0.z.string(),isFavorite:e0.z.boolean()}),ln=e0.z.object({fileName:e0.z.string().min(1),s3Key:e0.z.string().min(1),sha256:e0.z.string().optional(),byteSize:e0.z.number().int().nonnegative().optional()}),lr=e0.z.object({name:oi,description:e0.z.string().default(""),userInputInstructions:e0.z.string().default(""),requireAtLeastOneDocument:e0.z.boolean().default(!0),systemPrompt:e0.z.string().trim().min(1),isFeatured:e0.z.boolean().default(!1),assets:e0.z.array(ln).default([]),teamIds:e0.z.array(e0.z.string().min(1)).default([])}),la=lr.extend({workflowId:e0.z.string().min(1),status:ou.optional(),newDraft:e0.z.boolean().optional(),systemPrompt:e0.z.string()}),lo=e0.z.object({workflowId:e0.z.string().min(1)}),ls=e0.z.object({workflowId:e0.z.string().min(1)}),ll=e0.z.object({workflowId:e0.z.string(),name:e0.z.string(),description:e0.z.string(),userInputInstructions:e0.z.string(),requireAtLeastOneDocument:e0.z.boolean(),systemPrompt:e0.z.string(),isFeatured:e0.z.boolean(),isCustom:e0.z.boolean(),status:ou,hasPublishedVersion:e0.z.boolean(),slug:e0.z.string(),assets:e0.z.array(ln),teamIds:e0.z.array(e0.z.string()).default([])}),lc=e0.z.object({id:e0.z.string(),name:e0.z.string()}),ld=e0.z.object({teams:e0.z.array(lc)}),lu=e0.z.object({workflowId:e0.z.string(),description:e0.z.string()}),lm=e0.z.object({runId:e0.z.string(),key:e0.z.string(),to:e0.z.array(e0.z.string()).min(1,"At least one recipient is required to send.").describe("Recipient email addresses for the To field."),cc:e0.z.array(e0.z.string()).default([]),subject:e0.z.string(),html:e0.z.string(),attachmentManagedDocumentIds:e0.z.array(e0.z.string()).default([]),attachmentArtifactKeys:e0.z.array(e0.z.string()).default([]),attachmentRunAttachmentIds:e0.z.array(e0.z.string()).default([])}),lp=e0.z.object({artifactId:e0.z.string(),content:og,todos:e0.z.array(oc).default([])}),lE=e0.z.object({runId:e0.z.string(),key:e0.z.string()}),lg=e0.z.object({artifactId:e0.z.string(),content:oR}),lI=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1)}),lb=e0.z.object({artifactId:e0.z.string(),content:o$,updatedAt:e0.z.string()}),l_=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1),expectedRevision:e0.z.number().int().nonnegative(),serviceSummaryAction:oK}),lz=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1),expectedRevision:e0.z.number().int().nonnegative()}),lh=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1),expectedRevision:e0.z.number().int().nonnegative(),operationId:e0.z.string().min(1),inEpic:e0.z.boolean(),epicNumber:e0.z.string().trim().min(1).optional()}),lA=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1),operationId:e0.z.string().min(1)}),lO=e0.z.object({matches:e0.z.array(e0.z.string()),decidedByPush:e0.z.boolean(),checkAfter:e0.z.string().datetime().optional()}),lf=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1)}),lT=e0.z.object({artifactId:e0.z.string(),content:o$,updatedAt:e0.z.string()}),ly=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1),diffId:e0.z.string().min(1)}),lN=e0.z.object({table:e0.z.string(),options:e0.z.array(e0.z.object({code:e0.z.string(),description:e0.z.string().optional()}))}),lC=e0.z.object({runId:e0.z.string(),key:e0.z.string().min(1),expectedRevision:e0.z.number().int().nonnegative(),draft:e0.z.record(e0.z.string(),e0.z.unknown()),declinedOperationIds:e0.z.array(e0.z.string()).optional(),reviewerEditedDiffIds:e0.z.array(e0.z.string()).optional()}),lS=e0.z.object({artifactId:e0.z.string(),content:o$,updatedAt:e0.z.string()}),lR=e0.z.object({runId:e0.z.string(),key:e0.z.string(),target:e0.z.object({type:e0.z.enum
7(["ACCOUNT","POLICY","ACTIVITY","LINE","NEW_ACTIVITY"]),id:e0.z.number().optional()})}),lL=e0.z.object({artifactId:e0.z.string(),content:oZ}),lD=e0.z.object({runId:e0.z.string(),key:e0.z.string(),draft:oC}),lP=e0.z.object({artifactId:e0.z.string(),content:oR,updatedAt:e0.z.string().datetime()}),lv=e0.z.object({runId:e0.z.string(),key:e0.z.string(),draft:oJ}),lU=e0.z.object({artifactId:e0.z.string(),content:oZ,updatedAt:e0.z.string().datetime()}),lw=e0.z.object({runId:e0.z.string(),key:e0.z.string(),agentRevision:e0.z.number().int().nonnegative().optional()}),lB=e0.z.object({artifactId:e0.z.string(),content:o7}),lF=e0.z.object({runId:e0.z.string(),key:e0.z.string(),draft:o9,agentRevision:e0.z.number().int().nonnegative().optional()}),lj=e0.z.object({artifactId:e0.z.string(),content:o7,updatedAt:e0.z.string().datetime()}),lM=e0.z.object({runId:e0.z.string()}),lk=lM.extend({agencyCode:e0.z.string().min(1)}),lx=e0.z.object({agencyCode:e0.z.string().min(1),branchCode:e0.z.string().min(1),departmentCode:e0.z.string().min(1),profitCenterCode:e0.z.string().min(1)}),lG=e0.z.object({producerCode:e0.z.string().min(1)}),lY=lG.extend({agencyCode:e0.z.string().min(1)}),lW=lY.extend({branchCode:e0.z.string().min(1)}),lV=lW.extend({departmentCode:e0.z.string().min(1)}),lH=e0.z.object({codes:e0.z.array(e0.z.object({code:e0.z.string(),description:e0.z.string()}))}),lq=e0.z.object({documents:e0.z.array(e0.z.object({documentId:e0.z.string(),sourceKind:oO,artifactKey:e0.z.string().optional(),fileName:e0.z.string(),label:e0.z.string(),origin:oh,amsSource:oT.optional(),notFilableReason:e0.z.string().optional()}))}),lK=e0.z.object({runId:e0.z.string(),key:e0.z.string(),to:e0.z.array(e0.z.string()),cc:e0.z.array(e0.z.string()).default([]),subject:e0.z.string(),html:e0.z.string(),attachments:e0.z.array(op).default([]),dismissedDocumentIds:e0.z.array(e0.z.string()).default([])}),lQ=e0.z.object({artifactId:e0.z.string(),content:og}),l$=e0.z.object({runId:e0.z.string(),sectionId:e0.z.string().min(1),listItemId:e0.z.string().min(1).optional(),fieldId:e0.z.string().min(1),value:az}),lX=e0.z.object({fieldId:e0.z.string(),label:e0.z.string(),value:az,updatedAt:e0.z.string()}),lJ=e0.z.object({runId:e0.z.string()}),lZ=e0.z.object({confirmedAt:e0.z.string()}),l0=e0.z.object({runId:e0.z.string(),todoId:e0.z.string(),status:ol}),l1=e0.z.object({todos:e0.z.array(oc)}),l2=e0.z.object({runId:e0.z.string(),key:e0.z.string()}),l5=e0.z.object({url:e0.z.string(),fileName:e0.z.string()}),l3=e0.z.object({runId:e0.z.string(),runAttachmentId:e0.z.string()}),l4={agentRunId:e0.z.string(),agentWorkflowId:e0.z.string(),traceId:e0.z.string()},l9=e0.z.discriminatedUnion("type",[e0.z.object({type:e0.z.literal("run.started"),...l4}),e0.z.object({type:e0.z.literal("message.delta"),...l4,delta:e0.z.string()}),e0.z.object({type:e0.z.literal("message.phase"),...l4,phase:sm}),e0.z.object({type:e0.z.literal("activity.summary"),...l4,summary:e0.z.string(),entryId:e0.z.string().optional(),toolCallId:e0.z.string().optional()}),e0.z.object({type:e0.z.literal("message.boundary"),...l4}),e0.z.object({type:e0.z.literal("tool.started"),...l4,toolId:or,toolCallId:e0.z.string(),input:e0.z.unknown().optional()}),e0.z.object({type:e0.z.literal("tool.completed"),...l4,toolId:or,toolCallId:e0.z.string(),output:e0.z.unknown().optional(),artifact:sc.optional()}),e0.z.object({type:e0.z.literal("toolcall"),...l4,toolId:e0.z.string(),message:e0.z.string(),toolCallId:e0.z.string().optional()}),e0.z.object({type:e0.z.literal("progress.updated"),...l4,scope:oa,message:e0.z.string(),toolId:or.optional(),toolCallId:e0.z.string().optional(),artifactKey:e0.z.string().optional(),actionId:e0.z.string().optional()}),e0.z.object({type:e0.z.literal("artifact.delta"),...l4,key:e0.z.string(),artifactType:om,seq:e0.z.number().int(),delta:e0.z.string(),title:e0.z.string().optional()}),e0.z.object({type:e0.z.literal("artifact.updated"),...l4,artifactId:e0.z.string(),key:e0.z.string(),artifactType:om,content:e0.z.unknown(),updatedAt:e0.z.string().datetime().optional(),producedByToolCallId:e0.z.string().nullable().optional()}),e0.z.object({type:e0.z.literal("interaction.requested"),...l4,interactionId:e0.z.string(),kind:e0.z.enum
7(F),request:e0.z.unknown()}),e0.z.object({type:e0.z.literal("account.bound"),...l4,account:si,turnId:e0.z.string()}),e0.z.object({type:e0.z.literal("todo.updated"),...l4,todos:e0.z.array(oc)}),e0.z.object({type:e0.z.literal("run.completed"),...l4,reply:e0.z.string(),unreadAt:e0.z.string().datetime()}),e0.z.object({type:e0.z.literal("suggested_next_steps"),...l4,turnId:e0.z.string(),chips:e0.z.array(sM)}),e0.z.object({type:e0.z.literal("run.cancelled"),...l4}),e0.z.object({type:e0.z.literal("run.failed"),...l4,error:e0.z.string()})]),l6=e0.z.object({runId:e0.z.string()}),l8=e0.z.object({runId:e0.z.string(),comparison:aY,clientName:e0.z.string().optional(),updatedAt:e0.z.string().nullable()}),l7=e0.z.object({runId:e0.z.string(),operations:e0.z.array(ab).min(1),expectedUpdatedAt:e0.z.string()}),ce=e0.z.object({runId:e0.z.string()}),ct=e0.z.object({signedUrl:e0.z.string(),objectPath:e0.z.string(),expiresAt:e0.z.string()}),ci=e0.z.object({runId:e0.z.string(),key:e0.z.string().optional()}),cn=e0.z.object({signedUrl:e0.z.string(),fileName:e0.z.string(),expiresAt:e0.z.string()}),cr=e0.z.object({runId:e0.z.string()}),ca=e0.z.object({signedUrl:e0.z.string(),fileName:e0.z.string(),expiresAt:e0.z.string()}),co=e0.z.object({runId:e0.z.string()}),cs=e0.z.object({runId:e0.z.string().min(1),title:e0.z.string().trim().min(1).max(80)}),cl=e0.z.object({title:e0.z.string()}),cc=e0.z.object({runId:e0.z.string().min(1),pinned:e0.z.boolean()}),cd=e0.z.object({pinned:e0.z.boolean(),pinnedAt:e0.z.string().datetime().nullable()}),cu=e0.z.object({runId:e0.z.string().min(1)}),cm=e0.z.object({deleted:e0.z.literal(!0)}),cp=e0.z.object({signedUrl:e0.z.string(),fileName:e0.z.string(),expiresAt:e0.z.string()}),cE=e0.z.object({runId:e0.z.string(),includeNarrative:e0.z.boolean().optional()}),cg=e0.z.object({signedUrl:e0.z.string(),fileName:e0.z.string(),expiresAt:e0.z.string()}),cI=e0.z.object({runId:e0.z.string().min(1)}),cb=e0.z.object({runId:e0.z.string(),includeNarrative:e0.z.boolean().optional()}),c_=e0.z.object({signedUrl:e0.z.string(),fileName:e0.z.string(),expiresAt:e0.z.string()}),cz=e0.z.object({runId:e0.z.string(),managedDocumentId:e0.z.string(),hash:e0.z.string().optional()}),ch=e0.z.object({signedUrl:e0.z.string(),fileName:e0.z.string(),boundingBox:e0.z.object({pageNumber:e0.z.number(),x:e0.z.number(),y:e0.z.number(),width:e0.z.number(),height:e0.z.number(),pageWidth:e0.z.number().optional(),pageHeight:e0.z.number().optional()}).nullable()}),cA=e0.z.object({runId:e0.z.string(),managedDocumentId:e0.z.string()}),cO=e0.z.object({fileName:e0.z.string(),email:rs}),cf=e0.z.object({runId:e0.z.string(),docId:e0.z.string(),hash:e0.z.string().optional()}),cT=ch.extend({managedDocumentId:e0.z.string()});e.s(["AgentActivityIcon",0,sp,"AgentArtifactTypeSchema",0,om,"AgentDomain",0,k,"AgentMessagePhase",0,su,"AgentRunEventSchema",0,l9,"AgentRunLookupInputSchema",0,lM,"AgentToolId",0,on,"AgentWorkflowRunStatusSchema",0,sy,"AgentWorkflowStatusSchema",0,ou,"AmsSource",0,of,"AnswerEpicPolicyUnconfirmedInsertInputSchema",0,lh,"AttachStreamInputSchema",0,sY,"BenefitComparisonOutputSchema",0,l8,"CancelRunInputSchema",0,sf,"CancelRunOutputSchema",0,sT,"ChatHomeEntryKind",0,V,"ChatInputSchema",0,sb,"CommitEpicActivityArtifactInputSchema",0,lE,"CommitEpicActivityArtifactOutputSchema",0,lg,"CommitEpicAttachmentArtifactInputSchema",0,lR,"CommitEpicAttachmentArtifactOutputSchema",0,lL,"CommitEpicPolicyCreateArtifactInputSchema",0,lw,"CommitEpicPolicyCreateArtifactOutputSchema",0,lB,"CommitEpicPolicyUpdateArtifactInputSchema",0,lI,"CommitEpicPolicyUpdateArtifactOutputSchema",0,lb,"ConfirmInformationReviewInputSchema",0,lJ,"ConfirmInformationReviewOutputSchema",0,lZ,"CreateUserDefinedWorkflowInputSchema",0,lr,"DeleteChatInputSchema",0,cu,"DeleteChatOutputSchema",0,cm,"DeleteUserDefinedWorkflowInputSchema",0,lo,"DocumentSourceOutputSchema",0,cT,"EPIC_ACORD_MAX_POLICIES",0,40,"EditBenefitComparisonInputSchema",0,l7,"EmailArtifactContentSchema",0,og,"EpicActivityArtifactContentSchema",0,oR,"EpicAttachmentArtifactContentSchema",0,oZ,"EpicBillingMode",0,o5,"EpicCodeListOutputSchema",0,lH,"EpicIsoDateSchema",0,o0,"EpicPolicyApi",0,oU,"EpicPolicyCreateArtifactContentSchema",0,o7,"EpicPolicyCreateInsert",0,oY,"EpicPolicyEntity",0,oB,"EpicPolicyOperationKind",0,oL,"EpicPolicyServiceSummaryAction",0,oq,"EpicPolicyUpdateArtifactContentSchema",0,o$,"EpicPolicyUpdateReadiness",0,oP,"ExportBillReconciliationXlsxInputSchema",0,cI,"ExportBillReconciliationXlsxOutputSchema",0,cg,"ExportChatTranscriptInputSchema",0,co,"ExportChatTranscriptOutputSchema",0,cp,"ExportReportDocxInputSchema",0,ci,"ExportReportDocxOutputSchema",0,cn,"ExportReportPdfInputSchema",0,cr,"ExportReportPdfOutputSchema",0,ca,"ExportReportXlsxInputSchema",0,cE,"ExportReportXlsxOutputSchema",0,cg,"ExportReportZipInputSchema",0,cb,"ExportReportZipOutputSchema",0,c_,"FindEpicPolicyUnconfirmedInsertInputSchema",0,lA,"FindEpicPolicyUnconfirmedInsertOutputSchema",0,lO,"FinishEpicPolicyUpdateArtifactInputSchema",0,l_,"GetArtifactDownloadUrlInputSchema",0,l2,"GetArtifactDownloadUrlOutputSchema",0,l5,"GetBenefitComparisonInputSchema",0,l6,"GetBenefitSourceIn
7putSchema",0,cz,"GetBenefitSourceOutputSchema",0,ch,"GetChatHomeInputSchema",0,s8,"GetChatHomeOutputSchema",0,s7,"GetEmailSourceInputSchema",0,cA,"GetEmailSourceOutputSchema",0,cO,"GetEpicPolicyFieldLookupInputSchema",0,ly,"GetEpicPolicyFieldLookupOutputSchema",0,lN,"GetEpicPolicyUpdateArtifactInputSchema",0,lf,"GetEpicPolicyUpdateArtifactOutputSchema",0,lT,"GetMarkdownCitationSourceInputSchema",0,cf,"GetRunAttachmentDownloadUrlInputSchema",0,l3,"GetRunAttachmentDownloadUrlOutputSchema",0,l5,"GetSessionInputSchema",0,sD,"GetSessionOutputSchema",0,sK,"GetUserDefinedWorkflowInputSchema",0,ls,"HandoffToWorkflowInputSchema",0,s_,"HistoryItemAction",0,W,"ListEpicClientBranchesInputSchema",0,lk,"ListEpicProducersInputSchema",0,lx,"ListEpicShareRevenueAgenciesInputSchema",0,lG,"ListEpicShareRevenueBranchesInputSchema",0,lY,"ListEpicShareRevenueDepartmentsInputSchema",0,lW,"ListEpicShareRevenueProfitCentersInputSchema",0,lV,"ListFavoriteWorkflowsOutputSchema",0,le,"ListHistoryInputSchema",0,sR,"ListHistoryOutputSchema",0,sL,"ListPrebuiltAgentsOutputSchema",0,s1,"ListRunDocumentsOutputSchema",0,lq,"ListTeamsOutputSchema",0,ld,"ListWorkflowLeaderboardOutputSchema",0,sJ,"ListWorkflowsOutputSchema",0,s$,"MarkRunReadInputSchema",0,sP,"MarkRunReadOutputSchema",0,sv,"PrebuiltAgentMutationOutputSchema",0,s3,"PrebuiltAgentWorkflowId",0,Y,"ProvisionPrebuiltAgentInputSchema",0,s2,"RENAME_CHAT_TITLE_MAX_CHARS",0,80,"RefreshBenefitExcelInputSchema",0,ce,"RefreshBenefitExcelOutputSchema",0,ct,"RefreshEpicPolicyUpdateArtifactInputSchema",0,lz,"RenameChatInputSchema",0,cs,"RenameChatOutputSchema",0,cl,"ResetPrebuiltAgentConfigInputSchema",0,s5,"ResumeInputSchema",0,sA,"RetireWorkflowRouteSourceIn
7putSchema",0,sz,"RetireWorkflowRouteSourceOutputSchema",0,sh,"RetryRunInputSchema",0,sO,"RunDocumentKind",0,oA,"RunTodoActionSchema",0,os,"RunTodoStatusSchema",0,ol,"SendEmailArtifactInputSchema",0,lm,"SendEmailArtifactOutputSchema",0,lp,"SetChatPinnedInputSchema",0,cc,"SetChatPinnedOutputSchema",0,cd,"SetWorkflowFavoriteInputSchema",0,lt,"SetWorkflowFavoriteOutputSchema",0,li,"SubmitMessageFeedbackInputSchema",0,sx,"SubmitMessageFeedbackOutputSchema",0,sG,"UpdateEmailArtifactDraftInputSchema",0,lK,"UpdateEmailArtifactDraftOutputSchema",0,lQ,"UpdateEpicActivityArtifactDraftInputSchema",0,lD,"UpdateEpicActivityArtifactDraftOutputSchema",0,lP,"UpdateEpicAttachmentArtifactDraftInputSchema",0,lv,"UpdateEpicAttachmentArtifactDraftOutputSchema",0,lU,"UpdateEpicPolicyCreateArtifactDraftInputSchema",0,lF,"UpdateEpicPolicyCreateArtifactDraftOutputSchema",0,lj,"UpdateEpicPolicyDraftInputSchema",0,lC,"UpdateEpicPolicyDraftOutputSchema",0,lS,"UpdateInformationReviewFieldInputSchema",0,l$,"UpdateInformationReviewFieldOutputSchema",0,lX,"UpdateRunTodoInputSchema",0,l0,"UpdateRunTodoOutputSchema",0,l1,"UpdateUserDefinedWorkflowInputSchema",0,la,"UserDefinedWorkflowDetailSchema",0,ll,"UserDefinedWorkflowFieldsSchema",0,lr,"UserDefinedWorkflowMutationOutputSchema",0,lu,"asEpicActivityContent",0,function(e){let t=oR.safeParse(e);return t.success?t.data:null},"asEpicAttachmentContent",0,function(e){let t=oZ.safeParse(e);return t.success?t.data:null},"asEpicPolicyCreateContent",0,function(e){let t=o7.safeParse(e);return t.success?t.data:null},"asEpicPolicyUpdateContent",0,function(e){let t=o$.safeParse(e);return t.success?t.data:null},"startsUserTurn",0,function(e){return"user"===e.role&&!e.interactionAnswer}],251953);let cy={EAOCC:"Each Occurrence",EBLIA:"Employee Benefits",FIRDM:"Damage to Rented Premises",GENAG:"General Aggregate",LIQUOR:"Liquor Liability",OTHER:"Other",MEDEX:"Medical expense (any one person)",PIADV:"Personal and Advertising Injury",PRDCO:"Products and Completed Operations Aggregate"},cN={ABLDP:"Additional Building Property",ACVGP:"Additional Covered Property",APNC:"Additional Property Not Covered",APNS:"Agricultural Products and Storage",AIRCV:"Air Conditioners",AOPX:"AOP Excluding Theft (Old Plan)",ASBBX:"Asbestos Building Exclusion",BAILE:"Bailees",BASIC:"Basic",BASI:"Basic Group I - Detail",BASII:"Basic Group II - Detail",BOILR:"Boilers",BNL:"Brands and Labels",BRD:"Broad",BRDDT:"Broad - Detail",BBLDG:"Broadened Building Glass",BRCLP:"Builders Risk - Collapse During Construction",BRSCE:"Builders Risk - Excluded Subcontractors",BRSCC:"Builders Risk - Include Subcontractors Coverage",BIBRK:"Builders Risk (BUSIN & BUSEE)",BRRF:"Builders Risk Reporting Form",BLDG:"Building",BLDOI:"Building Ordinance - Increased Period of Restoration",BOLAW:"Building Ordinance or Law",NOTRL:"Building Ordinance or Law",UTLBP:"Building/Property Utility Services",BIBRR:"Business Income - Builders Risk Rental Only",BIMPI:"Business Income - Maximum Period of Indemnity",BIPA:"Business Income - Premium Adjustment",BIPUC:"Business Income - Property Under Construction",BIAOP:"Business Income All Ordinary Payroll",BIUTC:"Business Income Utility Services Time Element Communication Coverage",BIUTP:"Business Income Utility Services Time Element Power Coverage",BIUTW:"Business Income Utility Services Time Element Water Coverage",BUSIN:"Business Income with Extra Expense",BUSER:"Business Income with Extra Expense and Rental Value",BUSRN:"Business Income with Rental Value without Extra Expense",BUSEE:"Business Income without Extra Expense",BPPOF:"Business Personal Property Off Premises",CTTX1:"City Tax",CTTX2:"City Tax 2",CTTX3:"City Tax 3",CTTX4:"City Tax 4",BOLCC:"Combined Building Ordinance or Law and Increased Cost of Construction",BOLDC:"Combined Demolition Cost and Increased Cost of Construction",COMP:"Comprehensive",CFIB:"Condo Fixtures and Improvement",CNPOL:"Contamination and Pollution Removal",BPP:"Contents (Personal Property)",CBGLS:"Crack or Broken Glass",DMYEP:"Damage to your Electronic Products",DEBRL:"Debris Removal",DRMVB:"Debris Removal Building",DRMVC:"Debris Removal Contents",DSNW:"Distilled Wines and Spirits",
7EQ:"Earthquake",ERKSP:"Earthquake - Sprinkler",EQINC:"Earthquake Inception",EQSL:"Earthquake Sprinkler Leakage",BIEMR:"Electronic Media & Records (BUSIN & BUSEE)",EQPBK:"Equipment Breakdown",EXCNT:"Expense Constant",EC:"Extended Coverage",EGLAS:"Extended Glass",BIEPI:"Extended Period of Indemnity (BUSIN & BUSEE)",XXDP:"Extra Expense from Dependent Properties",UTLEE:"Extra Expense Utility Services",FIRE:"Fire",FIRLR:"Fire, Lightning and Removal (Old Plan)",FL:"Flood",FLOP:"Flood (Old Plan)",GLASS:"Glass",GLSVB:"Glass - Vacant Building",GLAST:"Glass, Tenants",GRPRP:"Grain Properties",GRUPS:"Green Upgrades",GRUPE:"Green Upgrades Extended Period of Restoration",GRUPR:"Green Upgrades Related Expenses",GRP1:"Group 1 Perils",GRP2:"Group 2 Perils",INFL:"Inflation Guard",LSDPR:"Leased Property",MOLD:"Limited Coverage for Fungus, Wet or Dry Rot, and Bacteria",LERQK:"Limited Earthquake Coverage",LWD:"Limited Water Damage",MINES:"Mine Subsidence",MINPR:"Mining Properties",BIMLI:"Monthly Limit of Indemnity (BUSIN & BUSEE)",OPOT:"Off Premise Overhead Transmission",OPPF:"Off Premise Power Failure",OPSTE:"Off Premise Service - Time Element",OFF:"Off Premises",OPP:"Office Personal Property (Old Plan)",OP:"Optional Other Perils (Old Plan)",BOLEQ:"Ordinance or Law Coverage Earthquake",BIOPE:"Ordinary Payroll Exclusion & Limitation (BUSIN  & BUSEE)",OTST:"Other Structures",OUTPR:"Outdoor Property",OWNRS:"Owners Extra Coverage",PDNM:"Patterns, Dies and Molds",PS:"Peak Season (Old Plan)",PERES:"Period of Restoration",PPOFF:"Personal Property Off Premises 6PUR",PF:"Power Failure (Old Plan)",PHNR:"Power, Heat and Refrigeration",POTS:"Property Other than Stock",POPPF:"Public Off Premise Power Failure",RPTFM:"Reporting Form",BISLM:"Seasonal Leases - Monthly Limitation on Loss  Report (BUSIN & BUSEE)",SCOTH:"Separation of Coverage - Other Property",SDB:"Sewer or Drain Backup",SIGN:"Sign",SINK:"Sinkhole Collapse",SPC:"Special Including Theft",SPCDT:"Special Including Theft - Detail",SPCEX:"Special Excluding Theft",SPXDT:"Special Excluding Theft - Detail",SPLG:"Spoilage",SPLGB:"Spoilage Additional Contamination",SPLGA:"Spoilage Breakdown",SPOIL:"Spoilage of Perishable Stock",SPLGC:"Spoilage Power Outage",SL:"Sprinkler Leakage (Old Plan)",STD:"Standard",STSR1:"State Surcharge 1",STSR2:"State Surcharge 2",STSR3:"State Surcharge 3",STSR4:"State Surcharge 4",STOCK:"Stock",TRELP:"Temporary Relocation of Property",TIB:"Tenants Improvements and Betterments",TENTL:"Tenants Liability",THEFT:"Theft",THEFI:"Theft Coverage Increase",TRENP:"Theft Damage to Rented Property",TOTAL:"Total Coverage",TRSUP:"Travel Supplies Endorsement (BOP Only)",TSP:"Trees, Shrubs and Plants",TAFED:"Tuition and Fees - Other Ed Services",TFST:"Tuition and Fees - Students",TFBI:"Tuition and Fees (BUSIN & BUSEE)",UTLDB:"Utility Services - Direct Damage (Building)",UTLDP:"Utility Services - Direct Damage (Property)",UTLTE:"Utility Services - Time Element",UTBPC:"Utility Services Building Property Damage Communication",UTBPP:"Utility Services Building Property Damage Power",UTBPW:"Utility Services Building Property Damage Water",UTPPC:"Utility Services Property - Property Damage Communications",UTPPP:"Utility Services Property - Property Damage Power",UTPPW:"Utility Services Property - Property Damage Water",UTEEC:"Utility Services Time Element Extra Expense Communications",UTEEP:"Utility Services Time Element Extra Expense Power",UTEEW:"Utility Services Time Element Extra Expense Water",VAC:"Vacancy",VACOP:"Vacancy or Unoccupancy (Old Plan)",AIVDR:"Vendor's Form",VOLAC:"Volcanic Action (Old Plan)",WDE:"Water Damage Extension",WINDX:"Wind Exclusion",WNDST:"Windstorm",WNDSS:"Windstorm Storm Shutter/Protective Devices Credit"},cC={...cN,B:"Building",BLNKT:"Blanket",EQBK:"Equipment Breakdown",EQOP:"Equipment",FLOOD:"Flood",LEAKG:"Leakage",PP:"Contents (Personal Property)",S:"Stock",STK:"Stock",TRANS:"Transit"},cS={CUMBR:"Commercial Umbrella"},cR="EBLIA",cL={...cS,[cR]:"Employee Benefits Liability"},cD=["limit1","limit2","limit3"];function cP(e,t,i={}){let n=Object.keys(i).length>0,r=Object.keys(e).sort().map(t=>{var n;let r=null!=(n=i[t])?n:{},a=cD.filter(e=>void 0!==r[e]).map(e=>`${e} is ${r[e]}`).join(", ");return a?`${t} (${e[t]}): ${a}`:`${t} (${e[t]})`}).join("; ");return`Epic coverage code, naming a row the capture already read. Each code's own name${n?", and what its limit columns mean where that is known":""}: ${r}. `+t}cP(cy,"Epic's grid draws one limit box per row, titled by the code itself, so the limit a code names belongs in `limit1`. A code can carry further limits the panel draws no box for, and Epic keeps them, so use another column only where a meaning is named above or the capture read a figure back in it. Where every limit on the row is blank and nothing above names a column, the row cannot tell its columns apart — leave them and say so rather than choosing one.",{EBLIA:{limit2:"the aggregate"}}),cP(cS,"Epic titles the second and third limit boxes from the description beside them — `limit2` by `description1`, `limit3` by `description2` — so set that description whenever you write the box, and leave a box whose description names a different limit.",{CUMBR:{limit1:"each occurrence",limit2:"the limit named by description1",limit3:"the limit named by description2"}});let cv={CSL:"Liability CSL",BI:"Liability BI",PD:"Liability PD",PIP:"No fault",APIP:"Additional no-fault",EPIP:"Extended no-fault",MEDPM:"Medical payments",UMCSL:"Uninsured motorist CSL",UMISP:"Uninsured motorist BI",UMPD:"Uninsured motorist PD",UNCSL:"Underinsured motorist CSL",UNDSP:"Underinsured motorist BI",UNDPD:"Underinsured motorist PD",TL:"Towing and labor",COMP:"Comprehensive/OTC",PERIL:"Specified cause of loss",PFIRE:"Specified cause of loss by fire",PFRTH:"Specified cause of loss by fire and theft",PTHWD:"Specified cause of loss by fire, theft, and windstorm",LSPER:"Limited specified perils",COLL:"Collision",RREIM:"Rental reimbursement","70VAL":"Valuation type",HRDBD:"Hired or borrowed liability",NOWND:"Non-owned liability",CWAIV:"Waiver of collision deductible",HPD1:"Hired physical damage, first state row",HPD2:"Hired physical damage, second state row",HPD3:"Hired physical damage, third state row",HPD4:"Hired physical damage, fourth state row"},cU={description:"States",numberOf1:"Number of days",numberOf2:"Number of vehicles"},cw={CSL:{limit1:"Ea Accident"},BI:{limit1:"Ea Person",limit2:"Ea Accident"},PD:{limit1:"Ea Accident"},MEDPM:{limit1:"Ea Person"},UMCSL:{limit1:"Ea Accident"},UMISP:{limit1:"Ea Person",limit2:"Ea Accident"},UMPD:{limit1:"Ea Accident"},UNDSP:{limit1:"Ea Person",limit2:"Ea Accident"},TL:{limit1:"Ea Accident"},...{HRDBD:{yesNo1:"Covered",description:"States",yesNo2:"If any basis",numValue1:"Cost of hire",premium:"Full premium"},NOWND:{yesNo1:"Covered",description:"States",numberOf1:"Number of employees",numberOf2:"Number of volunteers",numberOf3:"Number of partners",optionCode1:"Employees covered",optionCode2:"Volunteers covered",optionCode3:"Partners covered",premium:"Full premium"},CWAIV:{yesNo1:"Waiver of deductible"},HPD1:{...cU,optionCode1:"Coverage is (all hired physical damage)",premium:"Full premium (all hired physical damage)"},HPD2:cU,HPD3:cU,HPD4:cU}},cB={CSL:{limit1:"Ea Accident",applies:"Applies (Liability group: CSL/BI/PD)"},BI:{limit1:"Ea Person",limit2:"Ea Accident",applies:"Applies (Liability group: CSL/BI/PD)"},PD:{limit1:"Ea Accident",applies:"Applies (Liability group: CSL/BI/PD)"},PIP:{limit1:"Ea Person",limit2:"Ea Accident"},APIP:{limit1:"Ea Accident"},MEDPM:{limit1:"Ea Person"},UMCSL:{limit1:"Ea Accident",applies:"Applies (Uninsured motorist: UMCSL/UMISP/UMPD)"},UMISP:{limit1:"Ea Person",limit2:"Ea Accident",applies:"Applies (Uninsured motorist: UMCSL/UMISP/UMPD)"},UMPD:{limit1:"Ea Accident",applies:"Applies (Uninsured motorist: UMCSL/UMISP/UMPD)"},UNCSL:{limit1:"Ea Accident",applies:"Applies (Underinsured motorist: UNCSL/UNDSP/UNDPD)"},UNDSP:{limit1:"Ea Person",limit2:"Ea Accident",applies:"Applies (Underinsured motorist: UNCSL/UNDSP/UNDPD)"},UNDPD:{limit1:"Ea Accident",applies:"Applies (Underinsured motorist: UNCSL/UNDSP/UNDPD)"},TL:{limit1:"Ea Person"},"70VAL":{limit1:"Valuation amount (Ea Accident)",miscellaneousOptionCode1:"Valuation type",applies:"Applies (SDK only; no page checkbox)"},COMP:{miscellaneousOptionCode2:"Full glass"}};Object.entries(cB).map(([e,t])=>`${e}: ${Object.entries(t).filter(([t])=>"70VAL"!==e||"applies"!==t).map(([e,t])=>`${e} = ${t}`).join(", ")}`).join("; ");let cF=["yesNo1","yesNo2","numValue1","numberOf1","numberOf2","numberOf3"],cj=Object.entries(Object.fromEntries(Object.entries(cw).map(([e,t])=>[e,cF.filter(e=>void 0!==t[e])]).filter(([,e])=>e.length>0))).map(([e,t])=>{var i;let n=null!=(i=cw[e])?i:{},r=[...void 0===n.description?[]:[`description is ${n.description}`],...t.map(e=>`${e} is ${n[e]}`)].join(", ");return`${e}: ${r}`}).join("; ");function cM(e){return e.schemaVersion<30}cP(cv,`Use the main-page amount captions above. The detail dialog also exposes Limit 1 and Limit 2; when no insurance meaning is named, use those only if the source names the exact Epic field. Do not infer a generic slot's meaning from its number. Limit 3 and Deductible 2 are not on the verified form and may be silently ignored. \`HRDBD\`, \`NOWND\`, \`CWAIV\` and the four \`HPD\` rows carry no limit or deductible of their own. Epic holds their value as a checkbox, a state or a count instead, and the box a slot is differs per row: ${cj}. Coverage buttons open detail dialogs: limit1/limit2 are Limit 1/2 unless named above, deductible1 is Deductible, deductibleType is Deductible type, optionCode1/2/3 are Option code 1/2/3, miscellaneousOptionCode1/2 are Misc option code 1/2, and benefitCode1/2/3 are Benefit code 1/2/3. These generic codes have no universal insurance meaning; use an explicitly supplied Epic code, never infer one. premium is Premium. Write \`yesNo1\` and \`yesNo2\` as \`Y\`, \`N\`, or empty for None, and a \`numberOf\` slot as a whole number up to 9000. NOWND optionCode1/2/3 select Employees/Volunteers/Partners with E/V/P respectively; empty clears a group checkbox. CWAIV.yesNo1 is Waiver of deductible. HPD1.optionCode1 is the section-wide Coverage is election: P=Primary, SC=Secondary, empty=None; HPD1.premium is its shared Full Premium. HPD2/3/4 have only States, Number of days (0–999) and Number of vehicles. Covered-auto checkboxes are shared within Liability (CSL/BI/PD) and Uninsured motorist (UMCSL/UMISP/UMPD). Apply the same symbols to each captured row carrying that section’s limits; changing CSL alone can leave the shared checkbox blank when BI/PD also have limits. A hired or non-owned auto liability limit never goes on HRDBD or NOWND: Epic holds it as the liability row that carries symbols 8 or 9. Write it there only where the source states one limit for that whole row, and keep a limit stated only for those autos in a remark.`,{CSL:{limit1:"the combined single limit"},BI:{limit1:"each person",limit2:"each accident"},PD:{limit1:"each accident"},MEDPM:{limit1:"each person"},UMCSL:{limit1:"each accident"},UMISP:{limit1:"each person",limit2:"each accident"},UMPD:{limit1:"each accident"},UNDSP:{limit1:"each person",limit2:"each accident"},TL:{limit1:"each accident"}}
7),e.s(["BUSINESS_AUTO_ADDITIONAL_COVERAGE_FIELD_LABELS",0,{limit1:"Limit 1",limit2:"Limit 2",deductibleType:"Deductible type",coveredAutoSymbol1:"Covered auto types — slot 1",coveredAutoSymbol2:"Covered auto types — slot 2",coveredAutoSymbol3:"Covered auto types — slot 3",optionCode1:"Option code 1",optionCode2:"Option code 2",optionCode3:"Option code 3",benefitCode1:"Benefit code 1",benefitCode2:"Benefit code 2",benefitCode3:"Benefit code 3",miscellaneousOptionCode1:"Misc option code 1",miscellaneousOptionCode2:"Misc option code 2",formatCode:"Format code",numericValue:"Numeric value"},"BUSINESS_AUTO_COVERAGE_DETAIL_FIELD_LABELS",0,{limit1:"Limit 1 (coverage details)",limit2:"Limit 2 (coverage details)",deductible1:"Deductible",deductibleType:"Deductible type",optionCode1:"Option code 1 (coverage details)",optionCode2:"Option code 2 (coverage details)",optionCode3:"Option code 3 (coverage details)",miscellaneousOptionCode1:"Misc option code 1 (coverage details)",miscellaneousOptionCode2:"Misc option code 2 (coverage details)",benefitCode1:"Benefit code 1 (coverage details)",benefitCode2:"Benefit code 2 (coverage details)",benefitCode3:"Benefit code 3 (coverage details)",symbols:"Covered auto types",otherSymbol1:"Other covered auto type"},"BUSINESS_AUTO_COVERAGE_FIELD_CHOICES",0,{HRDBD:{yesNo1:{"":"None",Y:"Yes",N:"No"},yesNo2:{"":"Not set",Y:"Checked",N:"Unchecked (N)"}},NOWND:{yesNo1:{"":"None",Y:"Yes",N:"No"},optionCode1:{"":"Not selected",E:"Employees"},optionCode2:{"":"Not selected",V:"Volunteers"},optionCode3:{"":"Not selected",P:"Partners"}},CWAIV:{yesNo1:{"":"Not set",Y:"Checked",N:"Unchecked (N)"}},HPD1:{optionCode1:{"":"None",P:"Primary",SC:"Secondary"}}},"BUSINESS_AUTO_COVERAGE_FIELD_LABELS",0,cw,"BUSINESS_AUTO_COVERAGE_NAMES",0,cv,"BUSINESS_AUTO_DRIVER_FIELD_LABELS",0,{driverNumber:"Driver #",companyDriverNumber:"Co driver #",name:"Name",licenseNumber:"Drivers license #",state:"State licensed",dateOfBirth:"Date of birth",hireDate:"Date hired",yearLicensed:"Year licensed",yearsExperience:"Years experience",driverTypeCode:"Driver type",genderCode:"Gender",maritalStatusCode:"Marital status",otherCar:"Drive other car (DOC)",vehicleNumber:"Use vehicle #",vehicleClientKey:"Use vehicle (new)",address:"Address"},"BUSINESS_AUTO_VEHICLE_CHECKBOX_GROUPS",0,[{label:"Liability",codes:["CSL","BI","PD"]},{label:"Uninsured motorist",codes:["UMCSL","UMISP","UMPD"]},{label:"Underinsured motorist",codes:["UNCSL","UNDSP","UNDPD"]}],"BUSINESS_AUTO_VEHICLE_COVERAGE_FIELD_CHOICES",0,{"70VAL":{miscellaneousOptionCode1:{"":"None",A:"Actual Cash Value",G:"Agreed Amount",S:"Stated Amount"}},COMP:{miscellaneousOptionCode2:{"":"No",FG:"Yes"}}},"BUSINESS_AUTO_VEHICLE_COVERAGE_FIELD_LABELS",0,cB,"BUSINESS_AUTO_VEHICLE_FIELD_LABELS",0,{vin:"Vehicle › VIN",year:"Vehicle › Year",make:"Vehicle › Make",model:"Vehicle › Model",plateNumber:"Vehicle › Plate #",garagingAddress:"Vehicle › Garaging address",costNew:"Rating › Cost new",radiusInMiles:"Rating › Radius (miles)",vehicleClass:"Rating › Class",useCode:"Rating › Use",grossVehicleWeight:"Rating › GVW/GCW (lbs)",seatingCapacity:"Rating › Seating capacity",companyVehicleNumber:"Vehicle › Company vehicle #",insuredId:"Vehicle › Insured ID",bodyTypeCode:"Vehicle › Body type",bodyTypeIfOther:"Vehicle › Body, if “Other”",defaultAccountAddressForGaragingAddress:"Vehicle › Default account address",vehicleTypeCode:"Rating › Vehicle type",symbolAgeGroupCode:"Rating › Symbol/age group",compOTCSymbolCode:"Rating › Comp OTC sym",collisionSymbolCode:"Rating › Coll sym",licensedStateCode:"Rating › Licensed state",territoryCode:"Rating › Territory",specialIndustryClass:"Rating › Special industry class",farthestTerminalCode:"Rating › Farthest terminal",specialUseCode:"Rating › Special use",daysDrivenPerWeek:"Rating › Days driven per week",datePurchased:"Rating › Date purchased",purchasedCode:"Rating › Purchased",leasedCode:"Rating › Leased",includedInFleetYesNoCode:"Rating › Included in fleet",rateClassCode:"Rating › Rate class code",factorLiability:"Rating › Factor › Liability",factorSecondary:"Rating › Factor › Secondary",factorPhysicalDamage:"Rating › Factor › Physical damage"},"BUSINESS_OWNERS_COVERAGE_FIELD_LABELS",0,{description2:"Description 2",appliesTo1:"Limit 1 applies to",appliesTo2:"Limit 2 applies to",appliesTo3:"Limit 3 applies to",limit3:"Limit 3",deductible2:"Deductible 2",deductible3:"Deductible 3",deductibleType2:"Deductible 2 type",deductibleType3:"Deductible 3 type",optionCode1:"Included / Options 1",optionCode2:"Options 2",coverageTypeOf:"Type of coverage",formatCode:"Format code",formNumber:"Form number",formDate:"Form date",numericValue:"Numeric value",coinsurancePercentage:"Coinsurance (%)",description:"Description",limit1:"Limit 1",limit2:"Limit 2",deductible:"Deductible 1",deductibleType:"Deductible 1 type",premium:"Full term premium",yesNo:"Yes/No (coverage detail)",numberOfMonths:"Number of",retroactiveDate:"Retroactive date",territory:"Territory"},"BUSINESS_OWNERS_GARAGEKEEPERS_BASIS_LABELS",0,{LGLLI:"Legal Liability",DIREB:"Direct Excess Basis",DIRPB:"Direct Primary Basis"},"BUSINESS_OWNERS_LIABILITY_COVERAGE_NAMES",0,{AHIPD:"Hired auto - Property damage",AHIPH:"Hired auto - Physical damage",DOCON:"Directors and officers",EAOCC:"Each occurrence",EBLIA:"Employee benef
7its liability",EEMPD:"Extended employee dishonesty",ELVIN:"Elevator inspection fee",EPLI:"Employment practices liability",GCOLL:"Garage - Collision",GCOMP:"Garage - Comprehensive",GENAG:"General aggregate",GKLL1:"Garagekeepers legal liability 1",GKLL2:"Garagekeepers legal liability 2",GKLL3:"Garagekeepers legal liability 3",HRDBB:"Hired auto - Bodily injury and property damage",LIQUR:"Liquor liability",MEDEX:"Medical expense (any one person)",MEDPM:"Medical payments",MEMVL:"Mobile equipment subject to motor vehicle laws",NOWND:"Non-owned auto",PIADV:"Personal and advertising injury",PRDCO:"Products and completed operations aggregate",TENTL:"Damage to premises rented by you"},"BUSINESS_OWNERS_LIABILITY_FIELD_LABELS",0,{GKLL1:{numberOfMonths:"Location number",optionCode2:"Garagekeepers legal/direct"},GKLL2:{numberOfMonths:"Location number"},GKLL3:{numberOfMonths:"Location number"},LIQUR:{description:"Other limit label"}},"BUSINESS_OWNERS_LIABILITY_LIMIT_COLUMN_MEANINGS",0,{AHIPD:{limit1:"each accident"},AHIPH:{limit1:"each accident"},DOCON:{limit1:"each claim"},EAOCC:{limit1:"each occurrence"},EBLIA:{limit1:"each employee",limit2:"the aggregate"},EEMPD:{limit1:"each occurrence"},ELVIN:{limit1:"the inspection fee"},EPLI:{limit1:"each claim"},GENAG:{limit1:"the general aggregate"},HRDBB:{limit1:"each accident"},LIQUR:{limit1:"the aggregate",limit2:"each person",limit3:"the other limit"},MEDEX:{limit1:"any one person"},MEDPM:{limit1:"any one person"},NOWND:{limit1:"each accident"},PIADV:{limit1:"each person or organization"},PRDCO:{limit1:"the aggregate"},TENTL:{limit1:"any one premises"}},"BUSINESS_OWNERS_POOL_FIELDS",0,{approvedFence:{number:1,label:"Approved fence"},limitedAccess:{number:2,label:"Limited access"},divingBoard:{number:3,label:"Diving board"},slide:{number:4,label:"Slide"},aboveGround:{number:5,label:"Above ground"},inGround:{number:6,label:"In-ground"},lifeGuard:{number:7,label:"Life guard"}},"BUSINESS_OWNERS_PREMISE_COVERAGE_NAMES",0,{ACCTS:"Accounts receivable",ACLOC:"Newly acquired building",ADDPS:"Peak season - Additional",ANIML:"Animal coverage",BAILL:"Bailees liability",BIDP:"Business income from dependent property",BLDCC:"Building ordinance increased construction cost",BLDDC:"Building ordinance demolition cost",BLDG:"Flood - Building",BOLAW:"Building ordinance or law",BOLDC:"Combined demolition cost and increased construction cost",BPP:"Flood - Contents",BSBB:"Equipment breakdown - Basic",BSBR:"Equipment breakdown - Broad",BSBS:"Equipment breakdown - Spoilage",BUSIN:"Business income with extra expense",COLSA:"Condo unit owner's loss assessment",COMRP:"Condo unit owner's misc real property",CONEQ:"Contractor's equipment",DEBRL:"Debris removal",EDPEE:"EDP - Extra expense",EDPEQ:"EDP - Equipment",EDPLE:"Leased/rented equipment",EDPMD:"EDP - Data/media",EE:"Extra expense",EMPDH:"Employee dishonesty",EQ:"Earthquake",ERISA:"Welfare and pension plan (ERISA)",FINEA:"Fine arts",FORGA:"Forgery or alteration",HAILX:"Hail exclusion",INSTL:"Installation",LBI:"Business income",MINE:"Mine subsidence",MNSOF:"Money and securities - outside",MNSON:"Money and securities - inside",MOLD:"Fungi/bacteria/mold",NEWPP:"Newly acquired personal property",NTRIA:"Terrorism - Foreign",OUTPR:"Outdoor property",PAPER:"Valuable papers",PS:"Peak season - Regular",SIGN:"Sign",THFTB:"Builders risk - Theft of building materials",TIB:"Property BPP - improvements and betterments / RC / ACV",TRANS:"Transit",TRIA:"Terrorism - Domestic",WINDX:"Wind exclusion",WTRPR:"Builders risk - Collapse due to hydro-static pressure"},"BUSINESS_OWNERS_PREMISE_TAB_LABELS",0,{constructionFire:{label:"Construction / Fire",fields:{basementFinishedYesNoCode:"Basement finished",basementPresentYesNoCode:"Basement present",blanketRateYesNoCode:"Blanket rate",classCode:"Class code",constructionCode:"Construction code",constructionIfOther:"Construction if other",distanceToFireStationInMiles:"Distance to fire station (miles)",distanceToHydrantInFeet:"Distance to hydrant (feet)",fireDistrictCode:"Fire district code",fireDistrictName:"Fire district name",numberOfStories:"Number of stories",percentageSprinklerProtected:"Sprinkler protected (%)",primaryPremises:"Primary premises",protectionClass:"Protection class",rateGroup:"Rate group",rateNumber:"Rate number",rateTerritory:"Rate territory",totalPayroll:"Total payroll",
7yearBuilt:"Year built"}},exposureOccupancies:{label:"Exposure / Occupancies",fields:{description:"Other occupancies",frontDistance:"Front distance (feet)",frontExposure:"Front exposure",leftDistance:"Left distance (feet)",leftExposure:"Left exposure",rearDistance:"Rear distance (feet)",rearExposure:"Rear exposure",rightDistance:"Right distance (feet)",rightExposure:"Right exposure"}},improvements:{label:"Improvements",fields:{buildingCodeGrade:"Building code grade",buildingCodeInspectedYesNoCode:"Building code inspected",heatingYear:"Heating year",plumbingYear:"Plumbing year",roofingYear:"Roofing year",roofTypeCode:"Roof type code",roofTypeIfOther:"Roof type if other",taxCode:"Tax code",windClassCode:"Wind class code",windClassIfOther:"Wind class if other",wiringYear:"Wiring year"}},glass:{label:"Glass",fields:{aboveGroundFloorGlassAreaInSquareFeet:"Above ground floor glass area in square feet",aboveGroundFloorGlassDeductible:"Above ground floor glass deductible",aboveGroundFloorGlassInteriorGlass:"Above ground floor glass interior glass",aboveGroundFloorGlassLengthInLinearFeet:"Above ground floor glass length in linear feet",aboveGroundFloorGlassNumberOfPlates:"Above ground floor glass number of plates",aboveGroundFloorGlassTenantsExterior:"Above ground floor glass tenants exterior",aboveGroundFloorGlassType:"Above ground floor glass type",aboveGroundFloorGlassValue:"Above ground floor glass value",groundFloorGlassAreaInSquareFeet:"Ground floor glass area in square feet",groundFloorGlassDeductible:"Ground floor glass deductible",groundFloorGlassInteriorGlass:"Ground floor glass interior glass",groundFloorGlassLengthInLinearFeet:"Ground floor glass length in linear feet",groundFloorGlassNumberOfPlates:"Ground floor glass number of plates",groundFloorGlassTenantsExterior:"Ground floor glass tenants exterior",groundFloorGlassType:"Ground floor glass type",groundFloorGlassValue:"Ground floor glass value"}},crime:{label:"Crime",fields:{alarmDescriptionCode:"Alarm description code",alarmTypeCode:"Alarm type code",alarmTypeIfOther:"Alarm type if other",certificateNumber:"Certificate number",class:"Safe / vault class",deadboltCylinderDoorLocksCode:"Deadbolt cylinder door locks code",expirationDate:"Alarm certificate expiration date",frequencyOfDepositsCode:"Frequency of deposits code",grade:"Alarm grade",labelCode:"Safe / vault label code",maximumCashOnPremises:"Maximum cash on premises",maximumCashWithMessenger:"Maximum cash with messenger",moneyOnPremisesOvernight:"Money on premises overnight",otherProtection:"Other protection",premisesAlarmCode:"Premises alarm code",safeDoorConstruction:"Safe door construction",safeVaultCode:"Safe vault code",safeVaultReceptacleManufacturerName:"Safe vault receptacle manufacturer name"}},apartmentsAndCondominiums:{label:"Apartments / Condominiums",fields:{coverageAppliesToCode:"Coverage applies to code",numberOfFireDivisions:"Number of fire divisions",numberOfUnitsOwnerOccupied:"Number of units owner occupied",numberOfUnitsPerFireDivision:"Number of units per fire division",smokeDetectorsCode:"Smoke detectors code"}}},"COMMERCIAL_UMBRELLA_COVERAGE_CODE",0,"CUMBR","COMMERCIAL_UMBRELLA_COVERAGE_NAMES",0,cL,"COMMERCIAL_UMBRELLA_DEFENSE_LABELS",0,{FI:"Included",FE:"Excluded"},"COMMERCIAL_UMBRELLA_FIELD_LABELS",0,{carrier:"Carrier",policyNumber:"Policy number",policyTypeCode:"Policy type",effectiveDate:"Effective date",expirationDate:"Expiration date",plusMinusRatingMod:"Rating modifier",biEachAccidentLimit:"Bodily injury — each accident limit",biEachAccidentAnnualRenewalPremium:"Bodily injury — each accident annual renewal premium",biEachPersonLimit:"Bodily injury — each person limit",biEachPersonAnnualRenewalPremium:"Bodily injury — each person annual renewal premium",cslEachAccidentLimit:"Combined single limit — each accident",cslEachAccidentAnnualRenewalPremium:"Combined single limit — annual renewal premium",pdEachAccidentLimit:"Property damage — each accident limit",pdEachAccidentAnnualRenewalPremium:"Property damage — annual renewal premium",eachAccidentLimit:"Each accident limit",eachAccidentAnnualRenewalPremium:"Annual renewal premium",diseaseEachEmployeeLimit:"Disease — each employee limit",diseasePolicyLimit:"Disease — policy limit",typeCode:"Occurrence / claims made",eachOccurrenceLimit:"Each occurrence limit",generalAggregateLimit:"General aggregate limit",prodAndCompOpsAggrLimit:"Products / completed operations aggregate limit",personalAndAdvInjuryLimit:"Personal / advertising injury limit",damageToRentedPremisesLimit:"Damage to rented premises limit",medicalExpenseLimit:"Medical expense limit",premOpsAnnualRenewalPremium:"Premises / operations annual renewal premium",productsAnnualRenewalPremium:"Products annual renewal premium",otherAnnualRenewalPremium:"Other annual renewal premium",otherDescription:"Other liability description",otherLimit:"Other liability limit",expiringPolicyNumber:"Expiring policy number",uninsuredMotoristCoverage:"Uninsured motorist limit",underinsuredMotoristCoverage:"Underinsured motorist limit",umbrellaExcessOption:"Umbrella / excess",voluntaryClaimsMadeOccurrenceOption:"Voluntary / claims made / occurrence",newRenewalOption:"New / renew
7al",eachEmployeeLimit:"Each employee limit",aggregateLimit:"Aggregate limit",retainedLimit:"Retained limit",retroactiveDate:"Retroactive date",benefitProgramName:"Benefit program name",description2:"Description 2 (coverage details)",date2:"Date 2 (coverage details)",description:"Description",limit1:"Limit 1",limit2:"Limit 2",limit3:"Limit 3",deductible:"Deductible",deductibleType:"Deductible type",premium:"Premium",optionCode1:"Option code (coverage details)",date:"Date (coverage details)",formatCode:"Format code",numericValue:"Numeric value"},"COMMERCIAL_UMBRELLA_GRID_FIELD_LABELS",0,{description1:"Second limit description",description2:"Third limit description",limit1:"Each occurrence limit",limit2:"Second limit (see description)",limit3:"Third limit (see description)",deductible:"Retained limit",deductibleType:"Retained limit type",optionCode1:"First dollar defense",premium:"Premium",date1:"Current retroactive date",date2:"Proposed retroactive date"},"GENERAL_LIABILITY_COVERAGE_NAMES",0,cy,"PROPERTY_COVERAGE_CODE_NAMES",0,cN,"PROPERTY_SUBJECT_OF_INSURANCE_NAMES",0,cC,"UMBRELLA_EMPLOYEE_BENEFITS_COVERAGE_CODE",0,cR],595099);let ck="MKTG - ";function cx(e){var t,i;let n=(null==(t=null==e?void 0:e.policyNumber)?void 0:t.trim())||(null==(i=null==e?void 0:e.policyName)?void 0:i.trim());if(n)return(null==e?void 0:e.insert)!==oY.MARKETING_SUBMISSION||n.startsWith(ck)?n:`${ck}${n}`}let cG={valueType:"string",decimalPlaces:2,allowNegative:!1,allowGrouping:!1};function cY(e){let t=e.trim();if(!/^\d{1,3}(\.\d{1,4})?$/.test(t))return;let i=Number(t);return i<=100?i:void 0}nw(cG);let cW={[`${oU.GENERAL_LIABILITY}:${oB.HAZARD}`]:{noun:"Hazard",field:"hazardNumber"},[`${oU.BUSINESS_AUTO}:${oB.VEHICLE}`]:{noun:"Vehicle",field:"vehicleNumber"},[`${oU.BUSINESS_AUTO}:${oB.DRIVER}`]:{noun:"Driver",field:"driverNumber"},[`${oU.PROPERTY}:${oB.SUBJECT_OF_INSURANCE}`]:{noun:"Subject",field:"subjectNumber"}};function cV(e){let t=new Map;for(let i of e.executionReceipts)for(let e of i.operations)t.set(e.operationId,{outcome:e.status,...e.error?{reason:e.error}:{},...e.epicId?{epicId:e.epicId}:{},...e.unconfirmed?{unconfirmed:!0}:{}});return t}function cH(e){return`Updating ${e.replace(/^updat(e|ing)\s+/i,"")}`}function cq(e){var t,i;let n=cx(e);if(n)return n;let r=null==(t=e.policyTypeCode)?void 0:t.trim(),a=null==(i=e.policyId)?void 0:i.trim();return r&&a?`${r} - ${a}`:a}function cK(e){if("string"==typeof e)try{let t=JSON.parse(e);return t&&"object"==typeof t?t:{}}catch(e){return{}}return e&&"object"==typeof e?e:{}}function cQ(e,t){for(let i of t){let t=e[i];if("string"==typeof t&&t.trim().length>0)return t.trim()}return null}function c$(e){let t=e.split("/").filter(Boolean);return t.length>0?t[t.length-1]:e}function cX(e,t){let i=null==t?void 0:t.trim();return i?`${e} (${i})`:e}e.s(["EPIC_ASSIGNED_RECORD_NUMBERS",0,cW,"EPIC_PERCENT_ISSUE",0,"Enter a percentage from 0 to 100, with at most 4 decimal places.","EPIC_POLICY_CREATE_CONFIRMED_MESSAGE",0,"Confirming shell creation. Now let’s update the ACORD Application","EPIC_POLICY_CREATE_MONEY_FORMAT",0,cG,"EPIC_REPEATED_PRODUCER_ISSUE",0,"Name each producer once.","epicPolicyCreateCreditIssue",0,function(e){let t=e.map(e=>cY(e.productionCredit));if(t.some(e=>void 0===e))return;let i=t.reduce((e,t)=>e+Math.round(1e4*t),0);if(1e6!==i)return`Production credit must total 100%. It totals ${i/1e4}%.`},"epicPolicyCreateLinesHeld",0,function(e,t){if(!t.policyId)return e.map(()=>void 0);let i=e=>e.producers.every(e=>e.producerCode.trim());if(!t.createdLines)return e.map(e=>({hasCommissions:i(e)}));let n=[...t.createdLines];return e.map(e=>{let t=n.findIndex(t=>t.lineTypeCode===e.lineTypeCode);if(!(t<0))return{hasCommissions:n.splice(t,1)[0].hasCommissions&&i(e)}})},"epicPolicyUpdateCompletionMessage",0,function(e,t){let i=e.serviceSummaryAction===oq.KEEP_OPEN?"keep service summary row open":"close service summary row";return`Close out policy update and ${i}${t?", and then create an activity for the unfinished updates":""}.`},"epicProposalPastEditing",0,function(e){return"writing"===e.status||"written"===e.status||"dismissed"===e.status}
7,"formatEpicPolicyIdentifier",0,cx,"formatEpicPolicyUpdateTitle",0,function(e){var t;let i=null==(t=e.title)?void 0:t.trim(),n=Object.values(e.policies);if(i&&!n.some(e=>!!cx(e)))return cH(i);if(1===n.length){let e=cq(n[0]);if(e)return`Updating ${e}`}else if(n.length>1){let e=n.map(e=>cq(e)).filter(e=>!!e);return e.length>0?`Updating ${e.join(", ")}`:`Epic policy updates (${n.length})`}return i?cH(i):"Epic policy update"},"getEpicPolicyUpdateFollowUp",0,function(e){var t,i,n,r;let a=new Set(null!=(i=e.declinedOperationIds)?i:[]),o=new Map(e.executionReceipts.flatMap(e=>e.operations.map(e=>[e.operationId,e]))),s=[...new Map(e.reviewDiffs.filter(e=>"skipped"!==e.reviewerAction).map(e=>[e.operationId,e])).values()].flatMap(t=>{var i,n;if(a.has(t.operationId))return[];let r=o.get(t.operationId);if((null==r?void 0:r.status)==="applied"&&!r.error&&!(null==(i=r.notStored)?void 0:i.length))return[];let s=e.reviewDiffs.filter(e=>e.operationId===t.operationId&&"skipped"!==e.reviewerAction);return 0===s.length?[]:[{operationId:t.operationId,policyId:t.policyId,lineId:t.lineId,entity:t.entity,operation:t.operation,identity:t.identity,outcome:null!=(n=null==r?void 0:r.status)?n:"pending",reason:null==r?void 0:r.error,notStored:null==r?void 0:r.notStored,changes:s.filter(e=>{var t;return(null==r?void 0:r.status)!=="applied"||!!r.error||null==(t=r.notStored)||!t.length||function(e,t){var i;if(t.includes(e.path.join(".")))return!0;if("BusinessOwners"!==e.api)return!1;let n=[...e.path],r=n.length-1;return!(r<0)&&(n[r]=null!=(i=({deductible:"deductible1",deductibleType:"deductibleType1",numberOfMonths:"numberOf",retroactiveDate:"retroDate",coinsurancePercentage:"percentageOfCoinsurance",options:"options1",valuation:"options1"})[n[r]])?i:n[r],"additionalCoverages"===n[0]?n.shift():"otherAdditionalCoverages"===n[0]&&n.splice(0,2,`other:${n[1]}`),t.includes(n.join(".")))}(e,r.notStored)}).map(({path:e,before:t,after:i})=>({path:e,before:t,after:i}))}]}),l=null!=(n=e.unsupportedLineFlags)?n:[],c=(null==(t=e.completionDecision)?void 0:t.serviceSummaryAction)===oq.CLOSE?Object.entries(null!=(r=e.endorsementReleases)?r:{}).filter(([,e])=>"closed"!==e.outcome).map(([e,t])=>({policyId:e,...t})):[];return{needsActivity:s.length>0||l.length>0||c.length>0,operations:s,unsupportedLines:l,rowsNeedingClosure:c}},"isEpicPolicyUpdateOutdated",0,cM,"isOutdatedEpicPolicyUpdateDone",0,function(e){var t,i,n,r;if(!cM(e)||"applied"!==e.status&&"no_changes"!==e.status||Object.keys(null!=(n=e.openedEndorsements)?n:{}).length>0||e.executionOutcomeUnknown||(null==(t=e.unsupportedLineFlags)?void 0:t.length))return!1;let a=cV(e),o=new Map;for(let t of e.executionReceipts)for(let e of t.operations)o.set(e.operationId,!!(null==(i=e.notStored)?void 0:i.length));let s=new Set(null!=(r=e.declinedOperationIds)?r:[]);return e.reviewDiffs.every(e=>{if("skipped"===e.reviewerAction||s.has(e.operationId))return!0;let t=a.get(e.operationId);return(null==t?void 0:t.outcome)==="applied"&&!t.reason&&!o.get(e.operationId)})},"parseEpicPercent",0,cY,"repeatedEpicProducers",0,function(e){let t=new Set;return e.flatMap(({producerCode:e},i)=>{let n=e.trim();return n?t.has(n)?[i]:(t.add(n),[]):[]})},"resolveEpicPolicyOperationOutcomes",0,cV],113676),e.s(["buildAgentToolCallMessage",0,function(e,t,i){var n,r,a,o;if(!e)return null;let s=cK(t),l=cK(i),c=cQ(s,["file_path","filePath","path","file"]),d=null!=(o=null!=(a=null!=(r=null!=(n=function(e,t){switch(e){case"web_search":{let e="string"==typeof t.query?t.query.trim():"";return e?`Searching the web for "${e}"`:"Searching the web"}case on.BASIC_INFO:return"Loading your agency info";case on.WEB_RESEARCH:{let e="string"==typeof t.query?t.query.trim():"";return e?`Researching the web for "${e}"`:"Researching the web"}case on.SEARCH_ACORD_FORMS:{let e=cQ(t,["formNumber","query","lineOfBusiness"]);return e?`Searching ACORD forms for "${e}"`:"Searching ACORD forms"}case on.PREPARE_ACORD_FORM:{let e="string"==typeof t.templateId?t.templateId.trim():"";return e?`Preparing ACORD form ${e}`:"Preparing ACORD form template"}case on.WORKFLOW_SEARCH:{let e="string"==typeof t.query?t.query.trim():"";if("offer"===t.action)return"Suggesting a dedicated workflow";return e?`Searching workflows for "${e}"`:"Checking for a dedicated workflow"}case on.SWITCH_WORKFLOW_CONFIDENT:return"Switching to a dedicated workflow";case on.ASK_USER:return"Asking you a question";
7case on.ENRICH_COPE_LOCATIONS:return 1===(Array.isArray(t.locations)?t.locations.length:0)?"Enriching 1 property location":"Enriching property locations"}return null}(e,s))?n:function(e){switch(e){case"create_markdown":case"write_markdown":case on.EDIT_MARKDOWN_SECTION:case on.EDIT_REPORT_SECTION:return"Writing markdown";case on.WRITE_POLICY_CHECK_CLASSIFY:return"Classifying documents for policy check";case on.POLICY_CHECK_NORMALIZE_EPIC:return"Loading the Epic policy";case on.GENERATE_REVIEW_ARTIFACT:return"Writing the information review artifact";case on.READ_REVIEW_ARTIFACT:return"Reading the information review";case on.WRITE_WORKFLOW_SYSTEM_PROMPT:return"Updating the workflow prompt"}return null}(e))?r:function(e,t){switch(e){case on.OUTLOOK_EMAIL:return"Drafting email";case on.OUTLOOK_SEARCH:{let e="string"==typeof t.query?t.query.trim():"";return e?`Searching Outlook for "${e}"`:"Searching Outlook"}case on.OUTLOOK_READ_MESSAGE:{let e=Array.isArray(t.ids)?t.ids:[];return 1===e.length?"Reading 1 email":`Reading ${e.length} emails`}case on.OUTLOOK_READ_CONVERSATION:return"Reading email thread"}return null}(e,s))?a:function(e,t,i,n){switch(e){case on.GET_ACCOUNT:if(n){let e=cQ(t,["query"]);return e?`Searching accounts for "${e}"`:"Searching accounts"}if("number"==typeof i.count){if(0===i.count)return"No matching accounts";return 1===i.count?"Found 1 account":`Found ${i.count} accounts`}break;case on.LINK_ACCOUNT:{let e,t;if(n)return"Confirming the account";let r=(t=cQ(e=cK(i.account),["name"]))?cX(t,cQ(e,["lookupCode"])):null;if(r)return i.alreadyLinked?`Already linked to ${r}`:`Linked to ${r}`;if(!1===i.linked||!0===i.dismissed)return"No account linked";break}case on.CREATE_ACTIVITY:{let e=cQ(t,["activityCode"]);return e?`Drafting ${e} activity for Epic`:"Drafting activity for Epic"}case on.UPDATE_ACTIVITY:{let e=t.activityId,i="number"==typeof e?String(e):cQ(t,["activityId"]);return i?`Drafting a change to Epic activity ${i}`:"Drafting a change to an Epic activity"}case on.PUSH_ATTACHMENT:{let e=Array.isArray(t.attachments)?t.attachments.length:0;if(e>1)return`Drafting ${e} documents for Epic`;return"Drafting a document for Epic"}case on.LIST_ATTACHMENT_FOLDERS:{let e=Array.isArray(t.path)?t.path.filter(e=>"string"==typeof e):[];return e.length>0?`Reading Epic folders under ${e.join(" / ")}`:"Reading Epic attachment folders"}}return null}(e,s,l,void 0===i))?o:function(e,t,i,n){var r,a,o;switch(e){case on.FILL_TEMPLATE:{let e="string"==typeof t.templateFileName?t.templateFileName.trim():"";return e?`Filling template ${e}`:"Filling template"}case on.FILL_TEMPLATE_V2:{let e=null!=(r=cQ(i,["fileName"]))?r:cQ(t,["outputFileName","templateFileName"]),n=null!=(a=cQ(i,["operation"]))?a:cQ(t,["operation"]);if("extract"===n)return"Extracting information";let o="edit"===n?"Editing":"Filling";return e?`${o} template ${e}`:`${o} template`}case on.MERGE_PDFS:{let e=null!=(o=cQ(i,["fileName"]))?o:cQ(t,["outputFileName"]);return e?`Assembling ${e}`:"Assembling PDF package"}case"read_file":return n?`Reading file ${c$(n)}`:"Reading file";case"write_file":return n?`Writing file ${c$(n)}`:"Writing file";case"edit_file":return n?`Editing file ${c$(n)}`:"Editing file";case"delete":return n?`Deleting ${c$(n)}`:"Deleting file";case"ls":return"Listing files";case"glob":{let e=cQ(t,["pattern"]);return e?`Finding files matching "${e}"`:"Finding files"}case"grep":{let e=cQ(t,["pattern"]);return e?`Searching files for "${e}"`:"Searching files"}case"execute":return"Running a command";case"eval":return"Working through the documents"}return null}(e,s,l,c);if(null!==d)return d;let u=e.replace(/_/g," ").trim();return u?u.charAt(0).toUpperCase()+u.slice(1):"Working"},"formatInsuredAccountLabel",0,cX],516909);let cJ=e0.z.string().regex(/^\d+-\d+$/),cZ=e0.z.discriminatedUnion("kind",[e0.z.object({kind:e0.z.literal("turn")}),e0.z.object({kind:e0.z.literal("resume"),interactionId:e0.z.string(),answer:e0.z.unknown()}),e0.z.object({kind:e0.z.literal("retry")})]),c0=e0.z.object({version:e0.z.literal(1),runId:e0.z.string(),firstEventId:cJ,recordedAt:e0.z.string().datetime(),opening:cZ,events:e0.z.array(e0.z.object({id:cJ,event:l9})).min(1),session:sK}
7),c1=e0.z.enum(["confirmInformationReview","sendEmailArtifact","commitEpicActivityArtifact","commitEpicAttachmentArtifact","commitEpicPolicyCreateArtifact","commitEpicPolicyUpdateArtifact"]),c2=e0.z.object({version:e0.z.literal(1),runId:e0.z.string(),attemptId:e0.z.string(),method:c1,artifactKey:e0.z.string().nullable(),firstEventId:cJ,startedAt:e0.z.string().datetime(),durationMs:e0.z.number().int().nonnegative().finite()}),c5=e0.z.object({runId:e0.z.string(),segments:e0.z.array(c0).min(1),actionTimings:e0.z.array(c2).optional()});e.s(["DemoRecordingSchema",0,c5,"DemoTimedActionSchema",0,c1],131811),(E=q||(q={})).CLASSIC="classic",E.BESIDE="beside",E.REPLACE="replace";let c3=e0.z.object({policyCheckingExperience:e0.z.enum(q)});e.s(["GetDevWorkflowsOutputSchema",0,c3,"PolicyCheckingExperience",0,q],888177),(g=K||(K={})).GENERATE_ONLY="GENERATE_ONLY",g.SINGLE_CYCLE="SINGLE_CYCLE",g.AUTOMATIC="AUTOMATIC",(I=Q||(Q={})).CREATE="CREATE",I.EDIT="EDIT",(b=$||($={})).SETUP="SETUP",b.READY="READY",(_=X||(X={})).ACCEPTED="ACCEPTED",_.RUNNING="RUNNING",_.AWAITING_INPUT="AWAITING_INPUT",_.FINALIZING="FINALIZING",_.SUCCEEDED="SUCCEEDED",_.NO_CHANGE="NO_CHANGE",_.FAILED="FAILED",_.CANCELLED="CANCELLED",(z=J||(J={})).INPUT="INPUT",z.OUTPUT="OUTPUT";let c4=e0.z.string().uuid(),c9=e0.z.string().datetime(),c6=e0.z.string().trim().min(1),c8=e0.z.string().regex(/^[a-f0-9]{64}$/),c7=e0.z.array(c4).refine(e=>new Set(e).size===e.length,{message:"Duplicate identifiers are not allowed"}),de=e0.z.object({name:oi,description:e0.z.string().trim().default(""),userInputInstructions:e0.z.string().default(""),initialPrompt:e0.z.string().optional(),requireAtLeastOneDocument:e0.z.boolean().optional(),isFeatured:e0.z.boolean().optional(),teamIds:e0.z.array(e0.z.string().min(1)).optional()}).strict(),dt=de.extend({name:c6.max(200)}),di={workflowId:c4,requestId:c4,setup:de,selectedCaseIds:c7,mode:e0.z.nativeEnum(K).default(K.SINGLE_CYCLE)},dn=e0.z.object({...di,expectedRequestSequence:e0.z.number().int().nonnegative()}).strict(),dr=e0.z.object({...di,promptUploadIds:c7.optional(),cases:e0.z.array(e0.z.object({caseId:c4,name:c6,examples:e0.z.array(e0.z.object({exampleId:c4,uploadId:c4,exampleType:e0.z.nativeEnum(J)}).strict())}).strict())}).strict().superRefine((e,t)=>{let i=e.cases.map(e=>e.caseId),n=e.cases.reduce((e,t)=>e.concat(t.examples.map(e=>e.exampleId)),[]);(new Set(i).size!==i.length||new Set(n).size!==n.length)&&t.addIssue({code:e0.z.ZodIssueCode.custom,message:"Duplicate case/example IDs"}),e.selectedCaseIds.some(e=>!i.includes(e))&&t.addIssue({code:e0.z.ZodIssueCode.custom,message:"Selected case is unavailable"})}),da=e0.z.object({workflowId:c4,requestId:c4}).strict(),ds=e0.z.object({workflowId:c4,requestId:c4,setup:de.extend({initialPrompt:c6}),promptUploadIds:c7.optional(),cases:dr.shape.cases,isDraft:e0.z.boolean()}).strict().superRefine((e,t)=>{let i=e.cases.map(e=>e.caseId),n=e.cases.flatMap(e=>e.examples.map(e=>e.exampleId));(new Set(i).size!==i.length||new Set(n).size!==n.length)&&t.addIssue({code:e0.z.ZodIssueCode.custom,message:"Duplicate case/example IDs"})}),dl=e0.z.object({workflowId:c4}).strict(),dc=e0.z.object({artifactId:c4,contentHash:c8,sheet:c6,range:c6}).strict(),dd=e0.z.object({id:c4,caseId:c4,exampleType:e0.z.nativeEnum(J),fileName:c6,contentHash:c8,managedDocumentId:c4}).strict(),du=e0.z.object({id:c4,name:c6,examples:e0.z.array(dd)}).strict(),dm=e0.z.object({id:c4,builderRunId:c4,runId:c4,reviewedVersionId:c4,body:c6,anchor:dc.nullable(),createdById:c4,createdByName:c6,updatedById:c4,updatedAt:c9,submittedRequestId:c4.nullable(),submittedAt:c9.nullable()}).strict().refine(e=>null===e.submittedRequestId==(null===e.submittedAt),{message:"Submission request and timestamp must be set together",path:["submittedAt"]}),dp=e0.z.object({interactionId:c6,prompt:c6}).strict(),dE=e0.z.object({path:c6,quote:c6}).strict(),dg=e0.z.object({caseId:c4,runId:c4,runEvidenceHash:e0.z.string().regex(/^[a-f0-9]{64}$/),scope:c6,referenceIssues:e0.z.array(c6),checks:e0.z.array(e0.z.object({criterion:e0.z.nativeEnum({SOURCE_FIDELITY:"SOURCE_FIDELITY",COMPLETENESS:"COMPLETENESS",REFERENCE_ALIGNMENT:"REFERENCE_ALIGNMENT",PRESENTATION:"PRESENTATION"}),status:e0.z.nativeEnum({PASS:"PASS",FAIL:"FAIL",UNCERTAIN:"UNCERTAIN"}),reason:c6,citations:e0.z.array(dE)}).strict())}
7).strict(),dI=e0.z.object({requestId:c4,versionId:c4,evaluatedAt:e0.z.string().datetime(),decision:e0.z.nativeEnum({PASS:"PASS",REVISE:"REVISE",NEEDS_REVIEW:"NEEDS_REVIEW"}),score:e0.z.number().min(0).max(1),cases:e0.z.array(dg),evidence:e0.z.array(e0.z.object({path:c6,sha256:e0.z.string().regex(/^[a-f0-9]{64}$/)}).strict())}).strict(),db=e0.z.object({id:c4,requestSequence:e0.z.number().int().nonnegative(),activeRequest:e0.z.object({id:c4,attempt:e0.z.number().int().positive(),kind:e0.z.nativeEnum(Q),status:e0.z.nativeEnum(X),mode:e0.z.nativeEnum(K),cycle:e0.z.number().int().min(1).max(3),resultVersionId:c4.nullable(),summary:e0.z.string().nullable(),question:dp.nullable(),automaticLoopActive:e0.z.boolean(),evaluations:e0.z.array(dI).optional()}).strict().nullable()}).strict(),d_=e0.z.object({workflowId:c4,latestVersionId:c4.nullable(),session:db.nullable(),tests:e0.z.array(e0.z.object({runId:c4,status:sy}).strict())}).strict(),dz=e0.z.object({prebuilt:e0.z.object({id:e0.z.nativeEnum(Y),name:e0.z.string(),systemPrompt:e0.z.string()}).strict().nullable(),workflowId:c4,session:db.nullable(),cases:e0.z.array(du),feedback:e0.z.array(dm),tests:e0.z.array(e0.z.object({runId:c4,caseId:c4,batchId:c4,ver
7sionId:c4,versionSavedAt:e0.z.string().datetime(),createdAt:e0.z.string().datetime(),status:sy}).strict())}).strict(),dh=e0.z.discriminatedUnion("phase",[dz.extend({phase:e0.z.literal($.READY),latestVersionId:c4,latestVersionSavedAt:c9,creation:e0.z.null()}).strict(),dz.extend({phase:e0.z.literal($.SETUP),latestVersionId:e0.z.null(),latestVersionSavedAt:e0.z.null(),creation:e0.z.object({settings:dt,promptFiles:e0.z.array(e0.z.object({managedDocumentId:c4,fileName:c6}).strict()).optional()}).strict()}).strict()]),dA=dl.extend({caseId:c4,name:c6}).strict(),dO=dl.extend({caseId:c4}).strict(),df=dl.extend({exampleId:c4,exampleType:e0.z.nativeEnum(J)}).strict(),dT=dl.extend({caseId:c4,exampleId:c4,uploadId:c4,exampleType:e0.z.nativeEnum(J)}).strict(),dy=dl.extend({exampleId:c4}).strict(),dN=dl.extend({feedbackId:c4,runId:c4,body:c6,anchor:dc.nullable()}).strict(),dC=dl.extend({feedbackId:c4,body:c6}).strict(),dS=dl.extend({feedbackId:c4}).strict(),dR=lr.extend({systemPrompt:e0.z.string().trim()}).extend({versionId:c4}).strict(),dL=dl.extend({editorDraft:dR.optional(),requestId:c4,expectedRequestSequence:e0.z.number().int().nonnegative(),feedbackIds:c7.refine(e=>e.length>0,"Select feedback to submit"),excludedCaseIds:c7,mode:e0.z.nativeEnum(K).default(K.SINGLE_CYCLE),acknowledgedLatestVersionId:c4}).strict(),dD=dl.extend({editorDraft:dR.optional(),batchId:c4,ver
7sionId:c4,caseIds:c7.refine(e=>e.length>0,"Select at least one case")}).strict(),dP=dl.extend({sourceRunId:c4,runId:c4}).strict(),dv=dl.extend({builderRunId:c4,requestId:c4,expectedAttempt:e0.z.number().int().positive()}).strict(),dU=dl.extend({builderRunId:c4,requestId:c4,interactionId:c6,responseId:c4,answer:c6}).strict(),dw=dl.extend({builderRunId:c4,requestId:c4}).strict(),dB=dl.extend({requestId:c4,sourceVersionId:c4}).strict(),dF=e0.z.object({requestId:c4}).strict(),dj=e0.z.object({id:c4}).strict(),dM=e0.z.object({batchId:c4,runIds:c7}).strict();e.s(["AnswerWorkflowBuilderQuestionSchema",0,dU,"CancelWorkflowBuilderRequestSchema",0,dw,"CreateAndGenerateWorkflowSchema",0,dr,"CreateWorkflowBuilderCaseSchema",0,dA,"EditWorkflowBuilderFeedbackSchema",0,dC,"GenerateInitialWorkflowSchema",0,dn,"RegisterWorkflowBuilderExampleSchema",0,dT,"RemoveWorkflowBuilderCaseSchema",0,dO,"RemoveWorkflowBuilderExampleSchema",0,dy,"RemoveWorkflowBuilderFeedbackSchema",0,dS,"RenameWorkflowBuilderCaseSchema",0,dA,"RestoreWorkflowBuilderVersionSchema",0,dB,"RetryWorkflowBuilderRequestSchema",0,dv,"RetryWorkflowBuilderTestSchema",0,dP,"SaveInitialWorkflowSchema",0,ds,"StageWorkflowBuilderFeedbackSchema",0,dN,"StartWorkflowBuilderTestsSchema",0,dD,"SubmitWorkflowBuilderFeedbackSchema",0,dL,"UpdateWorkflowBuilderExampleTypeSchema",0,df,"WorkflowBuilderAcceptedSchema",0,dF,"WorkflowBuilderActivitySchema",0,d_,"WorkflowBuilderCreationAcceptedSchema",0,da,"WorkflowBuilderExampleType",0,J,"WorkflowBuilderMode",0,K,"WorkflowBuilderMutationSchema",0,dj,"WorkflowBuilderPhase",0,$,"WorkflowBuilderRequestKind",0,Q,"WorkflowBuilderRequestStatus",0,X,"WorkflowBuilderScopeSchema",0,dl,"WorkflowBuilderTestsStartedSchema",0,dM,"WorkflowBuilderWorkspaceSchema",0,dh],630175);let dk=eQ.errors(eZ),dx={saveInitialWorkflow:dk.input(ds).output(da),getUploadReadiness:dk.input(e0.z.object({uploadIds:e0.z.array(e0.z.string().uuid()).max(100)}).strict()).output(e0.z.array(e0.z.object({uploadId:e0.z.string().uuid(),ready:e0.z.boolean()}))),createAndGenerateWorkflow:dk.input(dr).output(da),generateInitialWorkflow:dk.input(dn).output(dF),retryTest:dk.input(dP).output(dj),retryRequest:dk.input(dv).output(dF),getActivity:dk.input(dl).output(d_),getWorkspace:dk.input(dl).output(dh),createCase:dk.input(dA).output(dj),renameCase:dk.input(dA).output(dj),updateExampleType:dk.input(df).output(dj),removeCase:dk.input(dO).output(dj),registerExample:dk.input(dT).output(dj),removeExample:dk.input(dy).output(dj),stageFeedback:dk.input(dN).output(dj),editFeedback:dk.input(dC).output(dj),removeFeedback:dk.input(dS).output(dj),submitFeedback:dk.input(dL).output(dF),startTests:dk.input(dD).output(dM),answerQuestion:dk.input(dU).output(dF),cancelRequest:dk.input(dw).output(dF),restoreVersion:dk.input(dB).output(dj)},dG=e0.z.object({runId:e0.z.string()}),dY=e0.z.object({runId:e0.z.string(),report:e0.z.custom().nullable()});e.s(["GetLossRunReportInputSchema",0,dG,"GetLossRunReportOutputSchema",0,dY,"LOSS_RUN_CLAIM_DATE_FIELDS",0,[{id:"dateOfLoss",label:"Date of Loss",kind:"date"},{id:"reportedDate",label:"Reported",kind:"date"},{id:"closeDate",label:"Closed",kind:"date"}],"LOSS_RUN_CLAIM_FINANCIAL_FIELDS",0,{wc:[{id:"medicalPaid",label:"Medical Paid",kind:"money"},{id:"medicalReserve",label:"Medical Reserve",kind:"money"},{id:"indemnityPaid",label:"Indemnity Paid",kind:"money"},{id:"indemnityReserve",label:"Indemnity Reserve",kind:"money"},{id:"expensePaid",label:"Expense Paid",kind:"money"},{id:"expenseReserve",label:"Expense Reserve",kind:"money"},{id:"paidTotal",label:"Total Paid",kind:"money"},{id:"reserveTotal",label:"Total Reserve",kind:"money"},{id:"recoveries",label:"Recoveries/Subrogation",kind:"money"},{id:"deductible",label:"Deductible",kind:"money"},{id:"incurred",label:"Total Incurred",kind:"money"},{id:"totalPaid",label:"Total Paid (as printed)",kind:"money"},{id:"totalReserve",label:"Total Reserve (as printed)",kind:"money"},{id:"incurredComputed",label:"Incurred (computed)",kind:"money"}],"non-wc":[{id:"lossPaid",label:"Loss Paid",kind:"money"},{id:"lossReserve",label:"Loss Reserve",kind:"money"},{id:"expensePaid",label:"Expense Paid",kind:"money"},{id:"expenseReserve",label:"Expense Reserve",kind:"money"},{id:"paidTotal",label:"Total Paid",kind:"money"},{id:"reserveTotal",label:"Total Reserve",kind:"money"},{id:"recoveries",label:"Recoveries/Subrogation",kind:"money"},{id:"deductible",label:"Deductible",kind:"money"},{id:"incurred",label:"Total Incurred",kind:"money"},{id:"expenseIncludedInIncurred",label:"Expense in printed incurred?",kind:"flag"},{id:"totalPaid",label:"Total Paid (as printed)",kind:"money"},{id:"totalReserve",label:"Total Reserve (as printed)",kind:"money"},{id:"incurredComputed",label:"Incurred (computed)",kind:"money"}]},"LOSS_RUN_CLAIM_IDENTITY_FIELDS",0,[{id:"claimNumber",label:"Claim #",kind:"text"},{id:"policyNumber",label:"Policy #",kind:"text"},{id:"status",label:"Status",kind:"text"},{id:"claimants",label:"Claimant(s)",kind:"text"},{id:"state",label:"State",kind:"text"},{id:"location",label:"Location",kind:"text"}],"LOSS_RUN_MONEY_EPSILON",0,.5,"isLossRunLayerGroupKey",0,function(e){return e.startsWith("LAYER:")},"isLossRunOpenStatus",0,function(e){return"OPEN"===e||"REOPENED"===e},"isLossRunZeroIncurred",0,function(e){return null===e||.5>=Math.abs(e)},"lossRunFamilyForGroup",0,function(e){return"WORKERS COMPENSATION"===e?"wc":"non-wc"},"lossRunPolicyPremium",0,function(e){var t,i;if(!0===e.isPackagePolicy)return null;let n=e=>null!==e&&e>0?e:null;return null!=(i=null!=(t=n(e.premiumBilled))?t:n(e.premiumEstimated))?i:n(e.premiumAnnualized)},"sumLossRunMoney",0,function(...e){let t=null;for(let i of e)null!==i&&(t=(null!=t?t:0)+i);return t}],58439);let dW={status:404,message:"Agent workflow not found"},dV={status:404,message:"Agent session not found"},dH={status:400,message:"A message or attachment is required"},dq={status:404,message:"No email artifact found for this session"},dK={status:404,message:"Artifact not found"},dQ={status:404,message:"No proposed Epic activity write found for this session"},d$={status:404,message:"No proposed Epic filing found for this session"},dX={status:502,message:"Applied Epic rejected the change"},dJ={status:403,message:"You do not have permission to perform this action"},dZ={status:404,message:"Prebuilt agent not found"},d0=eQ.errors({UNAUTHORIZED:{message:"Unauthorized access"}}).router({builder:dx,getChatHome:eQ.input(s8).output(s7),getDevWorkflows:eQ.output(c3),listWorkflows:eQ.output(s$),listWorkflowLeaderboard:eQ.output(sJ).errors({FORBIDDEN:dJ}),listFavoriteWorkflows:eQ.output(le),setWorkflowFavorite:eQ.input(lt).output(li).errors({AGENT_WORKFLOW_NOT_FOUND:dW}),createUserDefinedWorkflow:eQ.input(lr).output(lu).errors({FORBIDDEN:dJ}),updateUserDefinedWorkflow:eQ.input(la).output(lu).errors({AGENT_WORKFLOW_NOT_FOUND:dW,FORBIDDEN:dJ,BAD_REQUEST:dH}),deleteUserDefinedWorkflow:eQ.input(lo).output(lu).errors({AGENT_WORKFLOW_NOT_FOUND:dW,FORBIDDEN:dJ}),getUserDefinedWorkflow:eQ.input(ls).output(ll).errors({AGENT_WORKFLOW_NOT_FOUND:dW,FORBIDDEN:dJ}),listTeams:eQ.output(ld),listPrebuiltAgents:eQ.output(s1).errors({FORBIDDEN:dJ}),provisionPrebuiltAgent:eQ.input(s2).output(s3).errors({FORBIDDEN:dJ,PREBUILT_AGENT_NOT_FOUND:dZ}
7),resetPrebuiltAgentConfig:eQ.input(s5).output(s3).errors({FORBIDDEN:dJ,PREBUILT_AGENT_NOT_FOUND:dZ,AGENT_WORKFLOW_NOT_FOUND:dW}),chat:eQ.input(sb).output(eJ(l9)).errors({AGENT_WORKFLOW_NOT_FOUND:dW,AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH,FORBIDDEN:dJ}),handoffToWorkflow:eQ.input(s_).output(eJ(l9)).errors({AGENT_WORKFLOW_NOT_FOUND:dW,AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH,FORBIDDEN:dJ}),retireWorkflowRouteSource:eQ.input(sz).output(sh).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH,FORBIDDEN:dJ}),resumeRun:eQ.input(sA).output(eJ(l9)).errors({AGENT_WORKFLOW_NOT_FOUND:dW,AGENT_SESSION_NOT_FOUND:dV,FORBIDDEN:dJ}),retryRun:eQ.input(sO).output(eJ(l9)).errors({AGENT_WORKFLOW_NOT_FOUND:dW,AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH,FORBIDDEN:dJ}),cancelRun:eQ.input(sf).output(sT).errors({AGENT_SESSION_NOT_FOUND:dV}),attachStream:eQ.input(sY).output(eJ(l9)).errors({AGENT_SESSION_NOT_FOUND:dV}),listHistory:eQ.input(sR).output(sL),getDemoRecording:eQ.input(sD).output(c5).errors({AGENT_SESSION_NOT_FOUND:dV}),getSession:eQ.input(sD).output(sK).errors({AGENT_SESSION_NOT_FOUND:dV}),markRunRead:eQ.input(sP).output(sv).errors({AGENT_SESSION_NOT_FOUND:dV}),submitMessageFeedback:eQ.input(sx).output(sG).errors({AGENT_SESSION_NOT_FOUND:dV}),sendEmailArtifact:eQ.input(lm).output(lp).errors({AGENT_SESSION_NOT_FOUND:dV,EMAIL_ARTIFACT_NOT_FOUND:dq,OUTLOOK_NOT_CONNECTED:{status:409,message:"Outlook is not connected for this user"},SEND_FAILED:{status:502,message:"Failed to send the email"}}),commitEpicActivityArtifact:eQ.input(lE).output(lg).errors({AGENT_SESSION_NOT_FOUND:dV,EPIC_ACTIVITY_ARTIFACT_NOT_FOUND:dQ,EPIC_WRITE_FAILED:dX}),commitEpicAttachmentArtifact:eQ.input(lR).output(lL).errors({AGENT_SESSION_NOT_FOUND:dV,EPIC_ATTACHMENT_ARTIFACT_NOT_FOUND:d$,EPIC_WRITE_FAILED:dX}),commitEpicPolicyCreateArtifact:eQ.input(lw).output(lB).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,EPIC_WRITE_FAILED:dX,BAD_REQUEST:dH}),updateEpicPolicyCreateArtifactDraft:eQ.input(lF).output(lj).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),commitEpicPolicyUpdateArtifact:eQ.input(lI).output(lb).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,EPIC_WRITE_FAILED:dX,BAD_REQUEST:dH}),finishEpicPolicyUpdateArtifact:eQ.input(l_).output(lT).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),refreshEpicPolicyUpdateArtifact:eQ.input(lz).output(lT).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),answerEpicPolicyUnconfirmedInsert:eQ.input(lh).output(lT).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),findEpicPolicyUnconfirmedInsert:eQ.input(lA).output(lO).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),getEpicPolicyUpdateArtifact:eQ.input(lf).output(lT).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),getEpicPolicyFieldLookup:eQ.input(ly).output(lN).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),updateEpicPolicyDraft:eQ.input(lC).output(lS).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH,EPIC_POLICY_DRAFT_INVALID:{status:400,message:"The policy update draft holds a value Applied Epic cannot take"}}),updateEpicActivityArtifactDraft:eQ.input(lD).output(lP).errors({AGENT_SESSION_NOT_FOUND:dV,EPIC_ACTIVITY_ARTIFACT_NOT_FOUND:dQ,BAD_REQUEST:dH}),updateEpicAttachmentArtifactDraft:eQ.input(lv).output(lU).errors({AGENT_SESSION_NOT_FOUND:dV,EPIC_ATTACHMENT_ARTIFACT_NOT_FOUND:d$,BAD_REQUEST:dH}),listEpicClientAgencies:eQ.input(lM).output(lH).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),listEpicClientIssuingLocations:eQ.input(lM).output(lH).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),listEpicClientBranches:eQ.input(lk).output(lH).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),listEpicProducers:eQ.input(lx).output(lH).errors({BAD_REQUEST:dH}),listEpicShareRevenueAgencies:eQ.input(lG).output(lH).errors({BAD_REQUEST:dH}),listEpicShareRevenueBranches:eQ.input(lY).output(lH).errors({BAD_REQUEST:dH}),listEpicShareRevenueDepartments:eQ.input(lW).output(lH).errors({BAD_REQUEST:dH}),listEpicShareRevenueProfitCenters:eQ.input(lV).output(lH).errors({BAD_REQUEST:dH}
7),listRunDocuments:eQ.input(lM).output(lq).errors({AGENT_SESSION_NOT_FOUND:dV}),updateEmailArtifactDraft:eQ.input(lK).output(lQ).errors({AGENT_SESSION_NOT_FOUND:dV,EMAIL_ARTIFACT_NOT_FOUND:dq,BAD_REQUEST:dH}),updateInformationReviewField:eQ.input(l$).output(lX).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),confirmInformationReview:eQ.input(lJ).output(lZ).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK,BAD_REQUEST:dH}),getArtifactDownloadUrl:eQ.input(l2).output(l5).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),getRunAttachmentDownloadUrl:eQ.input(l3).output(l5).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),getBenefitComparison:eQ.input(l6).output(l8).errors({AGENT_SESSION_NOT_FOUND:dV}),editBenefitComparison:eQ.input(l7).output(l8).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH,CONFLICT:eZ.CONFLICT}),getLossRunReport:eQ.input(dG).output(dY).errors({AGENT_SESSION_NOT_FOUND:dV}),refreshBenefitExcel:eQ.input(ce).output(ct).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),exportReportDocx:eQ.input(ci).output(cn).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),exportReportPdf:eQ.input(cr).output(ca).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),exportChatTranscript:eQ.input(co).output(cp).errors({AGENT_SESSION_NOT_FOUND:dV,EMPTY_TRANSCRIPT:{status:409,message:"This session has no messages to export yet"}}),renameChat:eQ.input(cs).output(cl).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),setChatPinned:eQ.input(cc).output(cd).errors({AGENT_SESSION_NOT_FOUND:dV}),deleteChat:eQ.input(cu).output(cm).errors({AGENT_SESSION_NOT_FOUND:dV}),exportReportXlsx:eQ.input(cE).output(cg).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),exportBillReconciliationXlsx:eQ.input(cI).output(cg).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),exportReportZip:eQ.input(cb).output(c_).errors({AGENT_SESSION_NOT_FOUND:dV,ARTIFACT_NOT_FOUND:dK}),getBenefitSource:eQ.input(cz).output(ch).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),getEmailSource:eQ.input(cA).output(cO).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH,SERVICE_UNAVAILABLE:{status:503,message:"The document could not be read right now"}}),getMarkdownCitationSource:eQ.input(cf).output(cT).errors({AGENT_SESSION_NOT_FOUND:dV,BAD_REQUEST:dH}),updateRunTodo:eQ.input(l0).output(l1).errors({AGENT_SESSION_NOT_FOUND:dV})});e.s(["agentsContract",0,d0],722609);let d1="rx-row:";function d2(e){return e.trim().toLowerCase().replace(/\s+/g," ")}e.s(["BENEFIT_RX_FIELD_PREFIX",0,"rx:","BENEFIT_RX_ROW_PREFIX",0,d1,"normalizeBenefitRxLabel",0,d2],244011);let d5=[{title:"Coverage",rows:[{key:"benefit",label:"Benefit"},{key:"earnings_definition",label:"Covered Earnings",optional:!0},{key:"add_benefit",label:"AD&D Benefit",optional:!0},{key:"disability_definition",label:"Disability Definition",optional:!0},{key:"maximum_benefit",label:"Maximum Benefit"},{key:"guaranteed_issue",label:"Guaranteed Issue"},{key:"waiting_period",label:"Waiting Period"},{key:"elimination_period",label:"Elimination Period"},{key:"benefit_duration",label:"Benefit Duration"},{key:"age_reduction",label:"Age Reduction"},{key:"portability_conversion",label:"Portability / Conversion",optional:!0},{key:"waiver_of_premium",label:"Waiver of Premium",optional:!0},{key:"exclusions",label:"Exclusions"},{key:"participation_requirement",label:"Participation Requirement"},{key:"rate_guarantee",label:"Rate Guarantee"}]},{title:"Quoted Rate Details",rows:[{key:"life_rate",label:"Life Component Rate",optional:!0},{key:"add_rate",label:"AD&D Component Rate",optional:!0},{key:"employee_rate_schedule",label:"Employee Rate Schedule",optional:!0},{key:"spouse_rate_schedule",label:"Spouse Rate Schedule",optional:!0},{key:"child_rate",label:"Child Rate",optional:!0}]}],d3={MEDICAL:[{title:"In-Network Benefits",rows:[{key:"INW_coinsurance",label:"Co-Insurance (Patient Responsibility)"},{key:"INW_individual_deductible",label:"Individual Deductible"},{key:"INW_family_deductible",label:"Family Deductible"},{key:"INW_individual_oop",label:"Individual Out of Pocket Maximum"},{key:"INW_family_oop",label:"Family Out of Pocket Maximum"},{key:"primary_care",label:"Primary Care"},{key:"specialist",label:"Specialist"},{key:"preventive_care",label:"Preventive Care"},{key:"emergency_room",label:"Emergency Room"},{key:"urgent_care",label:"Urgent Care"}
7,{key:"inpatient_hospitalization",label:"In-Patient Hospitalization"},{key:"plan_year_basis",label:"Plan Year Basis",optional:!0},{key:"hra_individual_funding",pairedKey:"hra_family_funding",label:"Employer HRA Funding (Individual / Family)",optional:!0},{key:"INW_family_deductible_treatment",label:"Family Deductible Treatment",optional:!0},{key:"INW_family_oop_cap",label:"Family Out of Pocket Cap",optional:!0},{key:"INW_family_oop_treatment",label:"Family Out of Pocket Maximum Treatment",optional:!0}]},{title:"Out of Network (OON)",rows:[{key:"OON_individual_deductible",pairedKey:"OON_family_deductible",label:"Deductible (Individual / Family)"},{key:"OON_coinsurance",label:"Co-Insurance (Patient Responsibility)"},{key:"OON_individual_oop",pairedKey:"OON_family_oop",label:"Out of Pocket Maximum (Individual / Family)"}]},{title:"Prescriptions",rows:[]}],DENTAL:[{title:"Plan Design",rows:[{key:"deductible_single",label:"Deductible: Single"},{key:"deductible_family",label:"Deductible: Family"},{key:"preventive_deductible_waived",label:"Preventive Deductible Waived",optional:!0},{key:"annual_maximum",label:"Annual Maximum"},{key:"maximum_rollover",label:"Maximum Rollover"},{key:"ortho_lifetime_maximum",label:"Ortho Lifetime Maximum"}]},{title:"Network Coinsurance (Carrier Responsibility)",rows:[{key:"coinsurance_preventative",label:"Preventative"},{key:"coinsurance_basic",label:"Basic"},{key:"coinsurance_major",label:"Major"},{key:"coinsurance_endodontic",label:"Endodontic Treatment"}
7,{key:"coinsurance_periodontal",label:"Periodontal Treatment"},{key:"coinsurance_ortho",label:"Orthodontia"}]},{title:"Coverage Classification",rows:[{key:"endo_classification",label:"Endodontics"},{key:"perio_classification",label:"Periodontics"},{key:"oral_surgery_classification",label:"Oral Surgery"}]},{title:"Out-of-Network",rows:[{key:"oon_reimbursement",label:"Out-of-Network Reimbursement"}]},{title:"Out-of-Network Coinsurance (Carrier Responsibility)",rows:[{key:"oon_coinsurance_preventative",label:"Preventative"},{key:"oon_coinsurance_basic",label:"Basic"},{key:"oon_coinsurance_major",label:"Major"},{key:"oon_coinsurance_endodontic",label:"Endodontic Treatment"},{key:"oon_coinsurance_periodontal",label:"Periodontal Treatment"},{key:"oon_coinsurance_ortho",label:"Orthodontia"}]},{title:"Provisions",rows:[{key:"waiting_period_preventative",label:"Waiting Period: Preventative"},{key:"waiting_period_basic",label:"Waiting Period: Basic"},{key:"waiting_period_major",label:"Waiting Period: Major"},{key:"waiting_period_ortho",label:"Waiting Period: Ortho"},{key:"late_entrant_period",label:"Late Entrant Waiting Period",optional:!0},{key:"participation_requirement",label:"Participation Requirement"},{key:"rate_guarantee",label:"Rate Guarantee"}]}],VISION:[{title:"In-Network",rows:[{key:"frequency",label:"Frequency: Exam / Lens / Frames"},{key:"copay_exam",label:"Copay: Exam"},{key:"copay_materials",label:"Copay: Materials"},{key:"lenses",label:"Lenses",optional:!0},{key:"frames_allowance",label:"Frames Allowance"},{key:"contacts_allowance",label:"Contacts Allowance"},{key:"contact_lens_exam",label:"Contact Lens Fitting / Evaluation",optional:!0}]},{title:"Out-of-Network",rows:[{key:"oon_exam_reimbursement",label:"Exam Reimbursement"},{key:"oon_materials_reimbursement",label:"Materials Reimbursement"},{key:"oon_frames_reimbursement",label:"Frames Reimbursement"},{key:"oon_contacts_reimbursement",label:"Contacts Reimbursement"}]},{title:"Provisions",rows:[{key:"participation_requirement",label:"Participation Requirement"},{key:"rate_guarantee",label:"Rate Guarantee"}]}],LIFE:d5,STD:d5,LTD:d5};function d4(e,t){var i,n;return t.startsWith("rx:")?e.coverageLine===rz.enum.MEDICAL?null==(n=null==(i=e.design.rx)?void 0:i.find(e=>e.id===t.slice(3)))?void 0:n.value:void 0:"rx"!==t?e.design[t]:void 0}e.s(["BENEFIT_RATES_SECTION_TITLE_BY_LINE",0,{MEDICAL:"Medical / Rx Gross Costs",DENTAL:"Dental Gross Costs",VISION:"Vision Gross Costs",LIFE:"Life Gross Costs",STD:"Short-Term Disability Gross Costs",LTD:"Long-Term Disability Gross Costs"},"BENEFIT_SECTION_ORDER",0,["COVERAGE","ENROLLMENT","RATES","PREMIUM"],"BENEFIT_VOLUME_UNITS",0,{PER_1000_BENEFIT:"Per $1,000 of insured benefit",PER_10_WEEKLY_BENEFIT:"Per $10 of weekly benefit",PER_100_MONTHLY_PAYROLL:"Per $100 of monthly payroll"},"COVERAGE_LINE_LABELS",0,{MEDICAL:"Medical",DENTAL:"Dental",VISION:"Vision",LIFE:"Life / AD&D",STD:"Short-term disability",LTD:"Long-term disability"},"getBenefitDesignCell",0,d4,"getBenefitDesignSections",0,function(e,t=[],i=!1){let n=e=>t.some(t=>[e.key,e.pairedKey].some(i=>{var n,r;let a=i?d4(t,null!=(r=null==(n=e.planKeys)?void 0:n[t.id])?r:i):void 0;return a&&a.provenance!==rh.enum.BLANK&&""!==a.value.trim()}));return d3[e].map(i=>({...i,rows:e===rz.enum.MEDICAL&&"Prescriptions"===i.title?function(e){var t,i,n;let r=new Set(e.filter(e=>e.coverageLine===rz.enum.MEDICAL).map(e=>e.carrier.trim().toLowerCase())),a=1!==r.size||r.has(""),o=new Map;for(let r of new Map(e.map(e=>[e.id,e])).values())if(r.coverageLine===rz.enum.MEDICAL)for(let e of null!=(n=r.design.rx)?n:[]){let n=d2(e.label),s=/\btier\s*\d+\b/.test(n)?r.carrier.trim()||r.id:"",l=JSON.stringify([s.toLowerCase(),n]),c=`${d1}${encodeURIComponent(l)}`;(null==(i=null==(t=o.get(c))?void 0:t.planKeys)?void 0:i[r.id])&&(c+=`:${encodeURIComponent(e.id)}`);let d=o.get(c);d||(d={key:c,label:s&&a?`${s} — ${e.label}`:e.label,rxLabel:e.label,...s?{rxCarrier:s}:{},optional:!0,planKeys:Object.create(null)},o.set(c,d)),d.planKeys[r.id]=`rx:${e.id}`}return[...o.values()].filter(t=>e.some(e=>{var i;let n=null==(i=t.planKeys)?void 0:i[e.id],r=n?d4(e,n):void 0;return r&&r.provenance!==rh.enum.BLANK&&r.value.trim()}))}(t):i.rows.filter(e=>!e.optional||n(e))})).filter(e=>e.rows.length>0&&(!i||e.rows.some(n)))}],72299);let d9="<selection",d6="</selection>
7",d8=e0.z.enum(["source","rendered"]),d7=e0.z.uuid(),ue=e0.z.string().regex(/^sel_[0-9A-Za-z]+$/),ut=e0.z.number().int().nonnegative(),ui=e0.z.object({artifact:om,artifactId:d7,excerptForm:d8,title:e0.z.string(),heading:e0.z.string().optional(),highlight:e0.z.string().optional(),excerpt:e0.z.string(),selectionId:ue.optional(),startOffset:ut.optional(),endOffset:ut.optional()}).superRefine((e,t)=>{"source"===e.excerptForm&&void 0===e.highlight&&t.addIssue({code:"custom",message:'excerpt_form="source" requires a highlight',path:["highlight"]}),"rendered"===e.excerptForm&&void 0!==e.highlight&&t.addIssue({code:"custom",message:'excerpt_form="rendered" must omit highlight',path:["highlight"]}),void 0===e.startOffset!=(void 0===e.endOffset)&&t.addIssue({code:"custom",message:"start_offset and end_offset must both be set or both omitted",path:["endOffset"]}),void 0!==e.startOffset&&void 0!==e.endOffset&&e.endOffset<e.startOffset&&t.addIssue({code:"custom",message:"end_offset must be >= start_offset",path:["endOffset"]})}),un=new Set(["artifact","artifact_id","excerpt_form","selection_id","start_offset","end_offset"]);function ur(e){return e.split("&").join("&amp;").split("<").join("&lt;")}function ua(e,t){return`<${e}>${ur(t)}</${e}>`}function uo(e){var t,i;let n=ui.parse(e),r=` artifact="${n.artifact}" artifact_id="${n.artifactId}" excerpt_form="${n.excerptForm}"`;void 0!==n.selectionId&&(r+=` selection_id="${n.selectionId}"`),void 0!==n.startOffset&&(r+=` start_offset="${n.startOffset}"`),void 0!==n.endOffset&&(r+=` end_offset="${n.endOffset}"`);let a=[ua("title",n.title)];return void 0!==n.heading&&a.push(ua("heading",n.heading)),void 0!==n.highlight&&a.push(ua("highlight",n.highlight)),a.push((i=(t=n.excerpt).length<=12e3?t:`${t.slice(0,12e3)}
8
9[Selection truncated]`,`<excerpt>
10${ur(i)}
11</excerpt>`)),`${d9}${r}>
12${a.join("\n")}
13${d6}`}function us(e){if(void 0===e||0===e.length)return;for(let t=0;t<e.length;t+=1){let i=e.charCodeAt(t);if(i<48||i>57)return}let t=Number(e),i=ut.safeParse(t);return i.success?i.data:void 0}e.s(["MAX_SELECTION_EXCERPT_CHARS",0,12e3,"formatSelectionMessage",0,function(e){if(0===e.quotes.length)return e.query;let t=e.quotes.map(uo).join("\n");return`${t}
14
15${e.query}`},"parseSelectionMessage",0,function(e){if(!e.startsWith(d9))return{quotes:[],query:e};let t=[],i=0;for(;e.startsWith(d9,i);){let n=function(e,t){if(!e.startsWith(d9,t))return null;let i=e.indexOf(">",t);if(i<0)return null;let n=e.slice(t+d9.length,i);if(n.length>0&&" "!==n[0])return null;let r=function(e){let t={},i=0;for(;i<e.length;){for(;i<e.length&&" "===e[i];)i+=1;if(i>=e.length)break;let n=i;for(;i<e.length&&"="!==e[i]&&" "!==e[i];)i+=1;let r=e.slice(n,i);if(!r||"="!==e[i]||'"'!==e[i+1])return null;let a=i+=2;for(;i<e.length&&'"'!==e[i];)i+=1;if(i>=e.length||Object.prototype.hasOwnProperty.call(t,r))return null;t[r]=e.slice(a,i),i+=1}return t}(n);if(!r)return null;for(let e of Object.keys(r))if(!un.has(e))return null;let a=us(r.start_offset),o=us(r.end_offset);if(void 0!==r.start_offset&&void 0===a||void 0!==r.end_offset&&void 0===o)return null;let s=e.indexOf(d6,i+1);if(s<0)return null;let l=e.slice(i+1,s);if(!l.startsWith("\n")||!l.endsWith("\n"))return null;let c=function(e){let t={},i=0;for(;i<e.length;){for(;i<e.length&&("\n"===e[i]||" "===e[i]);)i+=1;if(i>=e.length)break;if("<"!==e[i])return null;let n=e.indexOf(">",i);if(n<0)return null;let r=e.slice(i+1,n);if("title"!==r&&"heading"!==r&&"highlight"!==r&&"excerpt"!==r||void 0!==t[r])return null;let a=n+1,o=`</${r}>`,s=e.indexOf(o,a);if(s<0)return null;let l=e.slice(a,s);if("excerpt"===r){if(!l.startsWith("\n")||!l.endsWith("\n"))return null;l=l.slice(1,-1)}t[r]=l.split("&lt;").join("<").split("&amp;").join("&"),i=s+o.length}return t}(l);if(!c||void 0===c.title||void 0===c.excerpt)return null;let d=ui.safeParse({artifact:r.artifact,artifactId:r.artifact_id,excerptForm:r.excerpt_form,title:c.title,excerpt:c.excerpt,...void 0!==c.heading?{heading:c.heading}:{},...void 0!==c.highlight?{highlight:c.highlight}:{},...void 0!==r.selection_id?{selectionId:r.selection_id}:{},...void 0!==a?{startOffset:a}:{},...void 0!==o?{endOffset:o}:{}});return d.success?{quote:d.data,next:s+d6.length}:null}(e,i);if(!n)return{quotes:[],query:e};t.push(n.quote),"\n"===e[i=n.next]&&e.startsWith(d9,i+1)&&(i+=1)}return e.startsWith("\n\n",i)?{quotes:t,query:e.slice(i+2)}:{quotes:[],query:e}}],997435);let ul=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function uc({slug:e,runId:t,workflowId:i}){let n=`/agent/${encodeURIComponent(e.replaceAll("_","-"))}`,r=t?`${n}/${encodeURIComponent(t)}`:n;return i&&e!==Y.POLICY_CHECKING?`${r}?workflowId=${encodeURIComponent(i)}`:r}e.s(["fromAgentWorkflowPathSegment",0,function(e){return e.replaceAll("-","_")},"getAgentWorkflowPath",0,uc,"getPolicyCheckingTilePath",0,function(e){let t=uc({slug:Y.POLICY_CHECKING});return e?`${t}/${encodeURIComponent(e)}`:t},"parsePolicyCheckingSegment",0,function(e){return e&&ul.test(e)?{runI
15d:e}:{tileSlug:null!=e?e:null}}],832978),(h=Z||(Z={})).Currency="Currency",h.Number="Number",h.Link="Link",h.Email="Email";let ud={Documents:Z.Number,"New Docs":Z.Number,"Number of Chats":Z.Number,"Items checked":Z.Number,"Issues found":Z.Number,"Carrier changes":Z.Number,"EPIC updates":Z.Number,Premium:Z.Currency,Output:Z.Link,Email:Z.Email,"Account Manager":Z.Email,CSM:Z.Email};e.s(["ColumnFormat",0,Z,"EXPORT_COLUMNS_FORMATS",0,ud],972057);let uu=e0.z.enum(["IN_PROGRESS","COMPLETED","CANCELED"]),um=e0.z.enum(["HOLDER_REVIEW","ENDORSEMENT_MAPPING","DRAFT_GENERATION","DRAFT_REVIEW","FINALIZATION","DELIVERY"]),up=e0.z.object({id:e0.z.string(),name:e0.z.string()}),uE=e0.z.object({id:e0.z.string(),targetTemplate:up,sourceTemplate:up.nullable(),includedHolderCount:e0.z.number().int().nonnegative(),status:uu,step:um,createdAt:e0.z.string().datetime()}),ug=e0.z.object({insuredAccountId:e0.z.string().trim().min(1),pageSize:e0.z.coerce.number().int().nonnegative().transform(e=>0===e?25:Math.min(e,100)).default(25),pageToken:e0.z.string().min(1).optional()}),uI=e0.z.object({batches:e0.z.array(uE),nextPageToken:e0.z.string().min(1).nullable()}),ub=e0.z.object({id:e0.z.string(),name:e0.z.string(),projectDescription:e0.z.string().nullable(),address:e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable(),country:e0.z.string().nullable()}),renewal:e0.z.boolean(),selected:e0.z.boolean()}),u_=e0.z.object({batchId:e0.z.string().trim().min(1),pageSize:e0.z.coerce.number().int().nonnegative().transform(e=>0===e?200:Math.min(e,200)).default(200),pageToken:e0.z.string().min(1).optional()}),uz=e0.z.object({holders:e0.z.array(ub),nextPageToken:e0.z.string().min(1).nullable()}),uh=e0.z.object({id:e0.z.string(),holder:e0.z.object({id:e0.z.string(),name:e0.z.string(),projectDescription:e0.z.string().nullable(),recipientEmails:e0.z.array(e0.z.string())}),descriptionOfOperations:e0.z.string(),endorsements:e0.z.array(e0.z.object({id:e0.z.string(),linesOfCoverage:e0.z.array(t4),selectedEndorsementTypes:e0.z.array(t1)})),pendingEndorsements:e0.z.array(e0.z.object({id:e0.z.string(),lineOfCoverage:t4,endorsementType:t1}))}),uA=e0.z.object({batchId:e0.z.string().trim().min(1),pageSize:e0.z.coerce.number().int().nonnegative().transform(e=>0===e?100:Math.min(e,200)).default(100),pageToken:e0.z.string().min(1).optional()}),uO=e0.z.object({certificates:e0.z.array(uh),nextPageToken:e0.z.string().min(1).nullable()}),uf=e0.z.discriminatedUnion("status",[e0.z.object({sendId:e0.z.string(),attemptedAt:e0.z.string().datetime(),status:e0.z.literal("SENDING")}),e0.z.object({sendId:e0.z.string(),attemptedAt:e0.z.string().datetime(),status:e0.z.literal("SENT"),sentAt:e0.z.string().datetime()}),e0.z.object({sendId:e0.z.string(),attemptedAt:e0.z.string().datetime(),status:e0.z.literal("FAILED"),failureMessage:e0.z.string().trim().min(1)}),e0.z.object({sendId:e0.z.string(),attemptedAt:e0.z.string().datetime(),status:e0.z.literal("UNCONFIRMED")})]),uT=e0.z.object({key:e0.z.string().min(1),email:e0.z.string().email(),selection:e0.z.discriminatedUnion("eligible",[e0.z.object({eligible:e0.z.literal(!0),defaultSelected:e0.z.boolean()}),e0.z.object({eligible:e0.z.literal(!1),reason:e0.z.literal("SENDING")})]),latestAttempt:uf.nullable()}),uy=e0.z.object({id:e0.z.string(),name:e0.z.string(),certificateId:e0.z.string(),deliveryEmails:e0.z.array(e0.z.string().email()),recipients:e0.z.array(uT)}),uN=e0.z.object({batchId:e0.z.string().trim().min(1)}),uC=e0.z.object({holders:e0.z.array(uy),activeSend:e0.z.object({id:e0.z.string(),createdAt:e0.z.string().datetime(),processingDeadlineAt:e0.z.string().datetime()}).nullable()}),uS=e0.z.object({total:e0.z.number().int().nonnegative(),pending:e0.z.number().int().nonnegative(),sent:e0.z.number().int().nonnegative(),failed:e0.z.number().int().nonnegative(),unconfirmed:e0.z.number().int().nonnegative()}),uR=e0.z.object({sendId:e0.z.string(),createdAt:e0.z.string().datetime(),processingDeadlineAt:e0.z.string().datetime(),counts:uS}),uL=e0.z.discriminatedUnion("status",[e0.z.object({status:e0.z.literal("NO_HISTORY")}),uR.extend({status:e0.z.literal("ACTIVE"),completedAt:e0.z.null()}),uR.extend({status:e0.z.literal("FINISHED"),completedAt:e0.z.string().datetime().nullable()})]),uD=e0.z.object({batchId:e0.z.string().trim().min(1)}),uP=e0.z.object({summary:uL}),uv=e0.z.object({batchId:e0.z.string().trim().min(1),idempotencyKey:e0.z.string().uuid(),recipients:e0.z.array(e0.z.object({holderId:e0.z.string().trim().min(1),emails:e0.z.array(e0.z.string().trim().email()
15).min(1)})).min(1),subject:e0.z.string().trim().min(1),message:e0.z.string().trim().min(1)}),uU=e0.z.object({sendId:e0.z.string().min(1)}),uw=e0.z.object({id:e0.z.string(),batchId:e0.z.string(),holderId:e0.z.string(),sourceCertificateId:e0.z.string().nullable(),generatedCertificateId:e0.z.string().nullable(),createdAt:e0.z.string().datetime(),updatedAt:e0.z.string().datetime()}),uB=e0.z.object({batchId:e0.z.string().trim().min(1),holderId:e0.z.string().trim().min(1)}),uF=e0.z.object({holder:uw}),uj=e0.z.object({success:e0.z.literal(!0)}),uM=e0.z.object({batchId:e0.z.string().trim().min(1)}),uk=e0.z.object({batchId:e0.z.string().trim().min(1)}),ux=e0.z.enum(["UNRESOLVED","SELECTED","PENDING","OMITTED"]),uG=e0.z.enum(["SUGGESTED","MANUAL"]),uY=e0.z.discriminatedUnion("applicability",[e0.z.object({lineOfCoverage:t4,endorsementType:t1,applicability:e0.z.literal(t5.enum.BLANKET),scheduledPartyName:e0.z.null()}),e0.z.object({lineOfCoverage:t4,endorsementType:t1,applicability:e0.z.literal(t5.enum.SCHEDULED),scheduledPartyName:e0.z.string().min(1)})]),uW=e0.z.object({id:e0.z.string(),policyNumber:e0.z.string(),carrierName:e0.z.string().nullable()}),uV=t7.extend({pdfUrl:e0.z.string().url()}),uH=uV.extend({holderCount:e0.z.number().int().positive()}),uq=e0.z.discriminatedUnion("decision",[e0.z.object({decision:e0.z.literal(ux.enum.UNRESOLVED),selectedDocument:e0.z.null(),suggestion:uV.nullable()}),e0.z.object({decision:e0.z.literal(ux.enum.SELECTED),selectedDocument:uV,suggestion:e0.z.null()}),e0.z.object({decision:e0.z.literal(ux.enum.PENDING),selectedDocument:e0.z.null(),suggestion:e0.z.null()}),e0.z.object({decision:e0.z.literal(ux.enum.OMITTED),selectedDocument:e0.z.null(),suggestion:e0.z.null()})]),uK=e0.z.object({id:e0.z.string(),requirement:uY,targetPolicy:uW,previousDocuments:e0.z.array(uH),affectedHolders:e0.z.array(e0.z.object({id:e0.z.string(),name:e0.z.string()}))}).and(uq),uQ=e0.z.object({batchId:e0.z.string().trim().min(1)}),u$=e0.z.object({mappings:e0.z.array(uK),progress:e0.z.object({total:e0.z.number().int().nonnegative(),resolved:e0.z.number().int().nonnegative()})}),uX={batchId:e0.z.string().trim().min(1),mappingId:e0.z.string().trim().min(1)},uJ=e0.z.discriminatedUnion("decision",[e0.z.object({...uX,decision:e0.z.literal(ux.enum.SELECTED),endorsementId:e0.z.string().trim().min(1),selectionSource:uG}).strict(),e0.z.object({...uX,decision:e0.z.literal(ux.enum.PENDING)}).strict(),e0.z.object({...uX,decision:e0.z.literal(ux.enum.OMITTED)}).strict(),e0.z.object({...uX,decision:e0.z.literal(ux.enum.UNRESOLVED)}).strict()]),uZ=e0.z.discriminatedUnion("decision",[e0.z.object({id:e0.z.string(),decision:e0.z.literal(ux.enum.SELECTED),endorsementId:e0.z.string(),selectionSource:uG}),e0.z.object({id:e0.z.string(),decision:e0.z.enum([ux.enum.UNRESOLVED,ux.enum.PENDING,ux.enum.OMITTED]),endorsementId:e0.z.null(),selectionSource:e0.z.null()})]),u0=e0.z.object({mapping:uZ}),u1=e0.z.object({insuredAccountId:e0.z.string().trim().min(1)}),u2=e0.z.object({batch:e0.z.object({id:e0.z.string(),step:um,targetTemplateName:e0.z.string()}).nullable()}),u5=e0.z.discriminatedUnion("status",[e0.z.object({status:e0.z.literal("RUNNING"),startedAt:e0.z.string().datetime(),error:e0.z.null()}),e0.z.object({status:e0.z.literal("FAILED"),startedAt:e0.z.string().datetime(),error:e0.z.string().trim().min(1)})]),u3=e0.z.object({id:e0.z.string(),insuredAccountId:e0.z.string(),sourceTemplate:up.nullable(),targetTemplate:up,status:uu,step:um,execution:u5.nullable(),createdAt:e0.z.string().datetime(),updatedAt:e0.z.string().datetime(),completedAt:e0.z.string().datetime().nullable()}),u4=e0.z.object({batchId:e0.z.string().trim().min(1)}),u9=e0.z.object({batch:u3}),u6=e0.z.object({batchId:e0.z.string().trim().min(1)}),u8=e0.z.object({fileName:e0.z.string().min(1),downloadUrl:e0.z.string().url()}),u7=e0.z.object({batchId:e0.z.string().trim().min(1)}),me=e0.z.object({batchId:e0.z.string().trim().min(1),issuedDate:e1}),mt=e0.z.object({batchId:e0.z.string().trim().min(1)}),mi=e0.z.object({insuredAccountId:e0.z.string().trim().min(1),targetTemplateId:e0.z.string().trim().min(1),sourceTemplateId:e0.z.string().trim().min(1).optional()}),mn=e0.z.object({batchId:e0.z.string().min(1)}
15),mr=e0.z.enum(["RUNNING","FAILED"]),ma=e0.z.object({batchId:e0.z.string().trim().min(1)}),mo=e0.z.object({eligible:e0.z.boolean(),syncStatus:mr.nullable(),defaults:e0.z.object({activityName:e0.z.string(),certificatesFileName:e0.z.string(),holderListFileName:e0.z.string(),certificateCount:e0.z.number().int().nonnegative()}),activity:e0.z.object({id:e0.z.string(),epic:e0.z.object({description:e0.z.string(),closed:e0.z.boolean(),enteredAt:e0.z.string().datetime().nullable(),filesAttached:e0.z.boolean()}).nullable()}).nullable()}),ms=e0.z.object({batchId:e0.z.string().trim().min(1),activityName:e0.z.string().trim().min(1).max(120),note:e0.z.string().trim().min(1),attachFiles:e0.z.boolean(),closeActivity:e0.z.boolean()}),ml=e0.z.object({batchId:e0.z.string().trim().min(1),closeActivity:e0.z.boolean()}),mc=e0.z.void();e.s(["ActiveCertificateBatchExistsErrorDataSchema",0,mn,"AddCertificateBatchHolderInputSchema",0,uB,"AddCertificateBatchHolderOutputSchema",0,uF,"AttachCertificateBatchEpicActivityFilesInputSchema",0,ml,"CERTIFICATE_BATCH_EPIC_ACTIVITY_NAME_MAX_LENGTH",0,120,"CancelCertificateBatchInputSchema",0,u7,"CancelCertificateBatchOutputSchema",0,u9,"CertificateBatchEpicActivitySyncStatusSchema",0,mr,"CompleteCertificateBatchInputSchema",0,mt,"CompleteCertificateBatchOutputSchema",0,u9,"ConfirmCertificateBatchEndorsementMappingsInputSchema",0,uk,"ConfirmCertificateBatchEndorsementMappingsOutputSchema",0,u9,"ConfirmCertificateBatchHoldersInputSchema",0,uM,"ConfirmCertificateBatchHoldersOutputSchema",0,u9,"CreateCertificateBatchEpicActivityInputSchema",0,ms,"CreateCertificateBatchInputSchema",0,mi,"CreateCertificateBatchOutputSchema",0,u9,"FinalizeCertificateBatchInputSchema",0,me,"FinalizeCertificateBatchOutputSchema",0,u9,"GetActiveCertificateBatchInputSchema",0,u1,"GetActiveCertificateBatchOutputSchema",0,u2,"GetCertificateBatchDownloadInputSchema",0,u6,"GetCertificateBatchDownloadOutputSchema",0,u8,"GetCertificateBatchEmailSummaryInputSchema",0,uD,"GetCertificateBatchEmailSummaryOutputSchema",0,uP,"GetCertificateBatchEpicActivityInputSchema",0,ma,"GetCertificateBatchEpicActivityOutputSchema",0,mo,"GetCertificateBatchInputSchema",0,u4,"GetCertificateBatchOutputSchema",0,u9,"ListCertificateBatchCertificatesInputSchema",0,uA,"ListCertificateBatchCertificatesOutputSchema",0,uO,"ListCertificateBatchEmailRecipientsInputSchema",0,uN,"ListCertificateBatchEmailRecipientsOutputSchema",0,uC,"ListCertificateBatchRequirementMappingsInputSchema",0,uQ,"ListCertificateBatchRequirementMappingsOutputSchema",0,u$,"ListCertificateBatchReviewHoldersInputSchema",0,u_,"ListCertificateBatchReviewHoldersOutputSchema",0,uz,"ListCertificateBatchesInputSchema",0,ug,"ListCertificateBatchesOutputSchema",0,uI,"RemoveCertificateBatchHolderInputSchema",0,uB,"RemoveCertificateBatchHolderOutputSchema",0,uj,"SendCertificateBatchEmailsInputSchema",0,uv,"SendCertificateBatchEmailsOutputSchema",0,uU,"StartCertificateBatchEpicActivityOutputSchema",0,mc,"UpdateCertificateBatchRequirementMappingInputSchema",0,uJ,"UpdateCertificateBatchRequirementMappingOutputSchema",0,u0],572031);let md=eQ.router({getActive:eQ.route({method:"GET",path:"/certificate-batches:getActive"}).input(u1).output(u2).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),get:eQ.route({method:"GET",path:"/certificate-batches/{batchId}"}).input(u4).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),getDownload:eQ.route({method:"GET",path:"/certificate-batches/{batchId}:download"}).input(u6).output(u8).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),listReviewHolders:eQ.route({method:"GET",path:"/certificate-batches/{batchId}/review-holders"}).input(u_).output(uz).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),listCertificates:eQ.route({method:"GET",path:"/certificate-batches/{batchId}/certificates",description:"List certificate summaries for an accessible batch at DRAFT_REVIEW."}).input(uA).output(uO).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),listEmailRecipients:eQ.route({method:"GET",path:"/certificate-batches/{batchId}/email-recipients"}).input(uN).output(uC).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),getEmailSummary:eQ.route({method:"GET",path:"/certificate-batches/{batchId}/email-summary"}).input(uD).output(uP).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}
15),sendEmails:eQ.route({method:"POST",path:"/certificate-batches/{batchId}:send-emails"}).input(uv).output(uU).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,BATCH_NOT_SENDABLE:{status:409},EMAIL_CONNECTION_REQUIRED:{status:409},ACTIVE_EMAIL_SEND_EXISTS:{status:409},IDEMPOTENCY_KEY_REUSED:{status:409},SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),getEpicActivity:eQ.route({method:"GET",path:"/certificate-batches/{batchId}/epic-activity"}).input(ma).output(mo).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),createEpicActivity:eQ.route({method:"POST",path:"/certificate-batches/{batchId}/epic-activity"}).input(ms).output(mc).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT,EPIC_EMPLOYEE_NOT_MATCHED:{status:422},SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),attachEpicActivityFiles:eQ.route({method:"POST",path:"/certificate-batches/{batchId}/epic-activity:attachFiles"}).input(ml).output(mc).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),listRequirementMappings:eQ.route({method:"GET",path:"/certificate-batches/{batchId}/requirement-mappings"}).input(uQ).output(u$).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),updateRequirementMapping:eQ.route({method:"PATCH",path:"/certificate-batches/{batchId}/requirement-mappings/{mappingId}"}).input(uJ).output(u0).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),addHolder:eQ.route({method:"PUT",path:"/certificate-batches/{batchId}/holders/{holderId}"}).input(uB).output(uF).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),removeHolder:eQ.route({method:"DELETE",path:"/certificate-batches/{batchId}/holders/{holderId}"}).input(uB).output(uj).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),confirmHolders:eQ.route({method:"POST",path:"/certificate-batches/{batchId}:confirmHolders"}).input(uM).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),confirmEndorsementMappings:eQ.route({method:"POST",path:"/certificate-batches/{batchId}:confirmEndorsementMappings"}).input(uk).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),finalize:eQ.route({method:"POST",path:"/certificate-batches/{batchId}:finalize"}).input(me).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),complete:eQ.route({method:"POST",path:"/certificate-batches/{batchId}:complete"}).input(mt).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),cancel:eQ.route({method:"POST",path:"/certificate-batches/{batchId}:cancel"}).input(u7).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),create:eQ.route({method:"POST",path:"/certificate-batches"}).input(mi).output(u9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,ACTIVE_BATCH_EXISTS:{status:409,message:"An active certificate batch already exists for this account",data:mn}}),list:eQ.route({method:"GET",path:"/certificate-batches"}).input(ug).output(uI).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND})}),mu=e0.z.string().trim().min(1),mm=e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable(),country:e0.z.string().nullable()}),mp=e0.z.object({id:e0.z.string(),name:e0.z.string(),address:mm,projectDescription:e0.z.string().nullable(),renewal:e0.z.boolean(),deliveryEmails:e0.z.array(e0.z.string().email()),additionalInsured:e0.z.array(e0.z.string()),primaryNamedInsuredId:e0.z.string().nullable(),additionalNamedInsuredIds:e0.z.array(e0.z.string()),templateId:e0.z.string().nullable()}),mE=e0.z.object({certificateHolderId:e0.z.string().trim().min(1),name:e0.z.string().trim().min(1,"Name is required.").optional(),address:mm.partial().optional(),projectDescription:e0.z.string().trim().nullable().optional(),renewal:e0.z.boolean().optional(),deliveryEmails:e0.z.array(e0.z.string().trim().email("Email must be a valid address.")).optional(),additionalInsured:e0.z.array(e0.z.string()).optional(),primaryNamedInsuredId:mu.nullable().optional(),additionalNamedInsuredIds:e0.z.array(mu).optional(),templateId:mu.nullable().optional()}).refine(e=>void 0===e.primaryNamedInsuredId==(void 0===e.additionalNamedInsuredIds),{message:"primaryNamedInsuredId and additionalNamedInsuredIds must be sent together."}),mg=e0.z.object({certificateHolderId:e0.z.string().trim().min(1)}),mI=e0.z.object({success:e0.z.literal(!0)}),mb=eQ.prefix("/certificate-holders").router({updateCertificateHolder:eQ.route({method:"PATCH",path:"/{certificateHolderId}"}).input(mE).output(mp).errors({NOT_FOUND:eZ.NOT_FOUND}),deleteCertificateHolder:eQ.route({method:"DELETE",path:"/{certificateHolderId}"}).input(mg).output(mI).errors({NOT_FOUND:eZ.NOT_FOUND})}),m_=e0.z.object({certificateId:e0.z.string().trim().min(1)}),mz=e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable()}),mh=e0.z.object({name:e0.z.string().nullable(),address:mz}),mA=e0.z.object({id:e0.z.string(),displayName:e0.z.string(),name:e0.z.string(),address:mz,isPrimary:e0.z.boolean()}),mO=mh.extend({id:e0.z.string(),name:e0.z.string(),deliveryEmails:e0.z.array(e0.z.string().email()
15),projectDescription:e0.z.string().nullable(),descriptionOfOperationsInstructions:e0.z.string().nullable()}),mf=e0.z.object({name:e0.z.string().nullable(),phone:e0.z.string().nullable(),fax:e0.z.string().nullable(),email:e0.z.string().nullable()}),mT=e0.z.object({name:e0.z.string().trim().min(1,"Name is required."),phone:e0.z.string().trim().nullable(),fax:e0.z.string().trim().nullable(),email:e0.z.string().trim().min(1,"Email is required.").email("Email must be a valid address.")}),my=e0.z.object({name:e0.z.string().trim().min(1,"Name is required."),address:e0.z.object({street1:e0.z.string().trim().nullable(),street2:e0.z.string().trim().nullable(),city:e0.z.string().trim().nullable(),state:e0.z.string().trim().nullable(),zip:e0.z.string().trim().nullable()})}),mN=e0.z.object({selectedIds:e0.z.array(e0.z.string().trim().min(1)).min(1),primaryId:e0.z.string().trim().min(1)}).refine(({selectedIds:e,primaryId:t})=>e.includes(t),{message:"Primary named insured must be selected.",path:["primaryId"]}),mC=e0.z.object({year:e0.z.number().int(),month:e0.z.number().int(),day:e0.z.number().int()}),mS=e0.z.object({year:e0.z.number().int().min(1e3).max(9999),month:e0.z.number().int().min(1).max(12),day:e0.z.number().int().min(1).max(31)}).refine(({year:e,month:t,day:i})=>{let n=new Date(Date.UTC(e,t-1,i));return n.getUTCFullYear()===e&&n.getUTCMonth()===t-1&&n.getUTCDate()===i},{message:"Invalid date."}),mR=e0.z.object({id:e0.z.string(),number:e0.z.string(),effectiveDate:mC,expirationDate:mC}),mL=e0.z.object({id:e0.z.string(),source:e0.z.enum(["MANUAL","APPLIED_EPIC"]),name:e0.z.string(),naicCode:e0.z.string().nullable(),nameOverride:e0.z.string().nullable(),naicCodeOverride:e0.z.string().nullable(),policies:e0.z.array(mR)});
15e0.z.enum([...e5,...e3]),e0.z.enum([...e4,...e6,"CUSTOM"]);let mD=e0.z.object({id:e0.z.string(),templateOtherCoverageId:e0.z.string().nullable().optional(),policyId:e0.z.string(),customLabel:e0.z.string().nullable(),displayName:e0.z.string(),additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean()}),mP=mD.extend({coverageType:e0.z.enum([...e4,"CUSTOM"]),values:tE}),mv=mD.extend({coverageType:e0.z.enum(e6),otherCoverageSpecificValues:tg}),mU=e0.z.discriminatedUnion("coverageType",[mP,mv]),mw=e0.z.object({id:e0.z.string(),name:e0.z.string(),number:e0.z.string(),policyNumber:e0.z.string(),stampPolicyNumber:e0.z.boolean(),pdfUrl:e0.z.string().url(),endorsementTypes:e0.z.array(t1),selectedEndorsementTypes:e0.z.array(t1)}),mB=e0.z.object({id:e0.z.string(),policyId:e0.z.string(),policyNumber:e0.z.string(),lineOfCoverage:t4,endorsementType:t1}),mF=e0.z.discriminatedUnion("applicability",[mB.extend({applicability:e0.z.literal(t5.enum.BLANKET),scheduledPartyName:e0.z.null()}),mB.extend({applicability:e0.z.literal(t5.enum.SCHEDULED),scheduledPartyName:e0.z.string().trim().min(1)})]),mj=e0.z.object({displayText:e0.z.string()}),mM=e0.z.object({hasInboundEmail:e0.z.boolean(),namedInsureds:e0.z.array(e0.z.object({name:e0.z.string()})),holder:e0.z.object({name:e0.z.string()}).nullable(),project:e0.z.object({name:e0.z.string()}).nullable(),coverageLines:e0.z.array(mj)}),mk=e0.z.object({certificateId:e0.z.string(),status:ij}),mx=e0.z.object({id:e0.z.string(),name:e0.z.string()}),mG=e0.z.object({generalLiability:ti.nullable(),autoLiability:tr.nullable(),excessUmbrellaLiability:ts.nullable(),workersCompensation:tu.nullable()}),mY=e0.z.object({certificateId:e0.z.string(),templateId:e0.z.string().nullable(),intakeId:e0.z.string(),previousCertificate:mk.nullable(),nextCertificate:mk.nullable(),issuedDate:mC.nullable(),descriptionOfOperations:e0.z.string(),additionalInsureds:e0.z.array(e0.z.string()),account:mx,producer:mh,namedInsureds:e0.z.array(mA),holder:mO,contact:mf,insurers:e0.z.array(mL).max(6),standardCoverage:mG,otherCoverage:e0.z.array(mU).max(3),endorsements:e0.z.array(mw),pendingEndorsements:e0.z.array(mF),request:mM.nullable()}),mW=mY.extend({status:e0.z.literal("DRAFT"),pdf:e0.z.object({kind:e0.z.literal("DRAFT"),templateUrl:e0.z.string().url(),signatureUrl:e0.z.string().url()}),tempDiscrepancies:e0.z.object({lines:e0.z.array(e0.z.string().trim().min(1))}).nullable()}),mV=mY.extend({status:e0.z.literal("FINALIZED"),pdf:e0.z.object({kind:e0.z.literal("FINALIZED"),url:e0.z.string().url()})}),mH=mY.extend({status:e0.z.literal("SUPERSEDED"),pdf:e0.z.object({kind:e0.z.literal("FINALIZED"),url:e0.z.string().url()})}),mq=e0.z.discriminatedUnion("status",[mW,mV,mH]),mK=e0.z.union([e0.z.object({certificateId:e0.z.string(),status:e0.z.literal("DRAFT"),templateId:e0.z.null(),account:mx,holder:e0.z.object({name:e0.z.string()})}),mW.extend({templateId:e0.z.string()}),mV,mH]),mQ=e0.z.object({certificateId:e0.z.string().trim().min(1)}),m$=e0.z.object({name:e0.z.string().nullable(),address:e0.z.string().nullable()}),mX=e0.z.object({fileName:e0.z.string(),contentType:e0.z.string().nullable(),byteSize:e0.z.number().int().nonnegative(),url:e0.z.string().url().nullable()}),mJ=e0.z.object({from:m$.nullable(),to:e0.z.array(m$),cc:e0.z.array(m$),subject:e0.z.string().nullable(),date:e0.z.string().nullable(),bodyHtml:e0.z.string(),bodyText:e0.z.string(),hasRemoteContent:e0.z.boolean(),attachments:e0.z.array(mX)}),mZ=e0.z.discriminatedUnion("status",[e0.z.object({status:e0.z.literal("AVAILABLE"),email:mJ}),e0.z.object({status:e0.z.literal("UNAVAILABLE")})]),m0=e0.z.object({certificateId:e0.z.string().trim().min(1)}),m1=e0.z.object({certificateId:e0.z.string()}),m2=e0.z.object({certificateId:e0.z.string().trim().min(1)}),m5=e0.z.object({certificateId:e0.z.string()}),m3=e0.z.object({certificateId:e0.z.string().trim().min(1),issuedDate:e1}),m4=e0.z.object({certificateId:e0.z.string().trim().min(1)}),m9=e0.z.object({fileName:e0.z.string().min(1),downloadUrl:e0.z.string().url()}),m6=e0.z.enum(["NOT_REQUESTED","ACCEPTED","QUEUE_FAILED"]),m8=e0.z.object({certificateId:e0.z.string().trim().min(1)}),m7=e0.z.object({epicFinalizationDispatchStatus:m6}),pe=e0.z.object({certificateId:e0.z.string().trim().min(1),to:e0.z.array(e0.z.string().trim().email()
15).min(1),cc:e0.z.array(e0.z.string().trim().email()).optional(),subject:e0.z.string().trim().min(1),message:e0.z.string().trim().min(1),finalizeEpicActivity:e0.z.boolean(),saveRecipientEmails:e0.z.boolean()}),pt=e0.z.object({to:e0.z.array(e0.z.string().email()).min(1),sentFrom:e0.z.string().email(),epicFinalizationDispatchStatus:m6}),pi=e0.z.object({certificateId:e0.z.string().trim().min(1),endorsementId:e0.z.string().trim().min(1)}),pn=e0.z.object({certificateId:e0.z.string().trim().min(1),endorsementId:e0.z.string().trim().min(1)}),pr=e0.z.object({certificateId:e0.z.string().trim().min(1),policyId:e0.z.string().trim().min(1),lineOfCoverage:t4,endorsementType:t1}),pa=e0.z.discriminatedUnion("applicability",[pr.extend({applicability:e0.z.literal(t5.enum.BLANKET),scheduledPartyName:e0.z.null().optional()}),pr.extend({applicability:e0.z.literal(t5.enum.SCHEDULED),scheduledPartyName:e0.z.string().trim().min(1)})]),po=e0.z.object({certificateId:e0.z.string().trim().min(1),pendingEndorsementId:e0.z.string().trim().min(1)}),ps=e0.z.object({certificateId:e0.z.string().min(1),templateId:e0.z.string().min(1)}),pl=e0.z.object({additionalInsured:e0.z.boolean().optional(),waiverOfSubrogation:e0.z.boolean().optional()}).strict(),pc=e0.z.object({certificateId:e0.z.string().trim().min(1),additionalInsureds:e0.z.array(e0.z.string().trim().min(1).max(200)).optional(),standardCoverageFlags:e0.z.object({generalLiability:pl.optional(),autoLiability:pl.optional(),excessUmbrellaLiability:pl.optional(),workersCompensation:e0.z.object({waiverOfSubrogation:e0.z.boolean().optional()}).strict().optional()}).strict().optional()}).strict(),pd=e0.z.object({certificateId:e0.z.string().trim().min(1),endorsementIds:e0.z.array(e0.z.string().trim().min(1))}),pu=e0.z.object({certificateId:e0.z.string().trim().min(1),endorsements:e0.z.array(e0.z.object({id:e0.z.string().trim().min(1),selectedEndorsementTypes:e0.z.array(t1).min(1)})).min(1)}).superRefine(({endorsements:e},t)=>{let i=e.map(({id:e})=>e);new Set(i).size!==i.length&&t.addIssue({code:"custom",message:"Endorsement IDs must be unique.",path:["endorsements"]}),e.forEach((e,i)=>{new Set(e.selectedEndorsementTypes).size!==e.selectedEndorsementTypes.length&&t.addIssue({code:"custom",message:"Selected endorsement types must be unique.",path:["endorsements",i,"selectedEndorsementTypes"]})})}),pm=e0.z.object({certificateId:e0.z.string().trim().min(1),templateOtherCoverageId:e0.z.string().trim().min(1),additionalInsured:e0.z.boolean(),waiverOfSubrogation:e0.z.boolean()}),pp=e0.z.object({certificateId:e0.z.string().trim().min(1),descriptionOfOperationsInstructions:e0.z.string().nullable()}),pE=e0.z.object({certificateId:e0.z.string(),descriptionOfOperations:e0.z.string()}),pg=e0.z.object({certificateId:e0.z.string().trim().min(1),descriptionOfOperations:e0.z.string(),descriptionOfOperationsInstructions:e0.z.string().nullable().optional()}),pI=e0.z.object({certificateId:e0.z.string(),descriptionOfOperations:e0.z.string(),descriptionOfOperationsInstructions:e0.z.string().nullable()}),pb={additionalInsured:!0,waiverOfSubrogation:!0},p_=e0.z.object({generalLiability:ti.extend({values:ti.shape.values.omit(pb)}).nullable(),autoLiability:tr.extend({values:tr.shape.values.omit(pb)}).nullable(),excessUmbrellaLiability:ts.extend({values:ts.shape.values.omit(pb)}).nullable(),workersCompensation:tu.extend({values:tu.shape.values.omit({waiverOfSubrogation:!0})}).nullable()}),pz=e0.z.object({insuredAccountId:e0.z.string().trim().min(1),sourceTemplateId:e0.z.string().trim().min(1)}),ph=e0.z.object({name:e0.z.string().optional(),expirationDate:mS.optional(),producer:mh,contact:mf,namedInsureds:mN,standardCoverage:p_,otherCoverage:e0.z.array(tA).max(3)}),pA=e0.z.object({templateId:e0.z.string().trim().min(1)}),pO=e0.z.object({templateId:e0.z.string(),assignedHolderCount:e0.z.number().int().nonnegative(),name:e0.z.string(),type:e0.z.literal("ACORD_25"),expirationDate:mC,account:mx,producer:mh,contact:mf,namedInsureds:e0.z.array(mA),insurers:e0.z.array(mL).max(6),standardCoverage:mG,otherCoverage:e0.z.array(mU).max(3)}),pf=e0.z.object({name:e0.z.string().trim().min(1,"Name is required."),expirationDate:mS,producer:my,contact:mT,namedInsureds:mN,standardCoverage:mG}),pT=pf.extend({accountId:e0.z.string().trim().min(1),otherCoverage:e0.z.array(tz).max(3)}),py=e0.z.object({id:e0.z.string().trim().min(1).optional()}).and(tz),pN=pf.extend({templateId:e0.z.string().trim().min(1),otherCoverage:e0.z.array(py).max(3)}).superRefine(({otherCoverage:e},t)=>{let i=e.reduce((e,{id:t})=>(void 0!==t&&e.push(t),e),[]);new Set(i).size!==i.length&&t.addIssue({code:"custom",message:"Other Coverage IDs must be unique.",path:["otherCoverage"]})}),pC=e0.z.object({templateId:e0.z.string().trim().min(1)}),pS=e0.z.object({templateId:e0.z.string().trim().min(1)}),pR=e0.z.object({templateId:e0.z.string()}),pL=e0.z.object({accountId:e0.z.string().min(1),importId:e0.z.string().min(1)}),pD=eQ.prefix("/certificate-templates").router({suggestRenewal:eQ.route({method:"GET",path:"/acord25/{sourceTemplateId}:suggestRenewal"}).input(pz).output(ph).errors({NOT_FOUND:eZ.NOT_FOUND}),createAcord25CertificateTemplate:eQ.route({method:"POST",path:"/acord25"}).input(pT).output(pO).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),getAcord25CertificateTemplate:eQ.route({method:"GET",path:"/acord25/{templateId}"}).input(pA).output(pO).errors({NOT_FOUND:eZ.NOT_FOUND}),updateAcord25CertificateTemplate:eQ.route({method:"PATCH",path:"/acord25/{templateId}"}).input(pN).output(pO).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),duplicateAcord25CertificateTemplate:eQ.route({method:"POST",path:"/acord25/{templateId}:duplicate"}).input(pC).output(pO).errors({NOT_FOUND:eZ.NOT_FOUND}),deleteAcord25CertificateTemplate:eQ.route({method:"DELETE",path:"/acord25/{templateId}"}).input(pS).output(pR).errors({HOLDER_IMPORT_BLOCKS_TEMPLATE_DELETION:{status:409,data:pL},NOT_FOUND:eZ.NOT_FOUND})}),pP=e0.z.object({certificateId:e0.z.string().trim().min(1)}),pv=e0.z.object({certificateId:e0.z.string(),snapshot:e0.z.object({version:e0.z.literal(1),type:e0.z.literal("ACORD_25")}).passthrough()}),pU=e0.z.object({pageSize:e0.z.coerce.number().int().transform(e=>Math.min(100,Math.max(1,e))).default(50),pageToken:e0.z.string().trim().min(1).optional(),accountQuery:e0.z.string().trim().min(3).optional(),receivedAtGte:e0.z.string().datetime().optional(),receivedAtLt:e0.z.string().datetime().optional()}),pw=e0.z.object({id:e0.z.string(),type:e0.z.literal("ACORD_25"),status:ij}
15),pB=e0.z.object({id:e0.z.string(),holderName:e0.z.string()}),pF=e0.z.discriminatedUnion("status",[pB.extend({status:e0.z.literal("SUCCESS"),certificate:pw}),pB.extend({status:e0.z.literal("FAILURE"),certificate:e0.z.null()}),pB.extend({status:e0.z.literal("DELETED"),certificate:e0.z.null()})]),pj=e0.z.enum(["SUCCESS","PARTIAL_FAILURE","FAILURE"]),pM=e0.z.object({id:e0.z.string(),receivedAt:e0.z.string().datetime(),resendEmailId:e0.z.string(),senderEmail:e0.z.string().email().nullable(),company:e0.z.object({id:e0.z.string(),name:e0.z.string()}),insuredAccount:e0.z.object({id:e0.z.string(),name:e0.z.string(),amsLookupCode:e0.z.string().nullable()}).nullable(),status:pj,certificateRequests:e0.z.array(pF)}),pk=e0.z.object({intakes:e0.z.array(pM),nextPageToken:e0.z.string().nullable()}),px=e0.z.object({certificateId:e0.z.string().trim().min(1)}),pG=e0.z.object({company:e0.z.object({id:e0.z.string(),name:e0.z.string(),organizationId:e0.z.string()})}),pY=eQ.prefix("/certificates").router({getCertificateOwningCompany:eQ.route({method:"GET",path:"/{certificateId}/owning-company"}).input(px).output(pG).errors({NOT_FOUND:eZ.NOT_FOUND}),listAdminMidTermIntakes:eQ.route({method:"GET",path:"/admin/mid-term-intakes"}).input(pU).output(pk).errors({BAD_REQUEST:eZ.BAD_REQUEST}),getAdminAcord25InitialGeneration:eQ.route({method:"GET",path:"/admin/acord25/{certificateId}/initial-generation"}).input(pP).output(pv).errors({NOT_FOUND:eZ.NOT_FOUND}),getAcord25Certificate:eQ.route({method:"GET",path:"/acord25/{certificateId}"}).input(m_).output(mK).errors({NOT_FOUND:eZ.NOT_FOUND}),getAcord25CertificateRequestEmail:eQ.route({method:"GET",path:"/acord25/{certificateId}/request-email"}).input(mQ).output(mZ).errors({NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),deleteAcord25Certificate:eQ.route({method:"DELETE",path:"/acord25/{certificateId}"}).input(m0).output(m1).errors({NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),finalizeAcord25Certificate:eQ.route({method:"POST",path:"/acord25/{certificateId}:finalize"}).input(m3).output(mq).errors({NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),startAcord25CertificateRevision:eQ.route({method:"POST",path:"/acord25/{certificateId}:revise"}).input(m2).output(m5).errors({NOT_FOUND:eZ.NOT_FOUND,CONFLICT:eZ.CONFLICT}),getAcord25CertificateDownload:eQ.route({method:"GET",path:"/acord25/{certificateId}:download"}).input(m4).output(m9).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),finalizeAcord25CertificateEpicActivity:eQ.route({method:"POST",path:"/acord25/{certificateId}:finalize-epic-activity"}).input(m8).output(m7).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),sendAcord25CertificateEmail:eQ.route({method:"POST",path:"/acord25/{certificateId}:send-email"}).input(pe).output(pt).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),attachAcord25CertificateEndorsement:eQ.route({method:"POST",path:"/acord25/{certificateId}/endorsements"}).input(pi).output(mq).errors({NOT_FOUND:eZ.NOT_FOUND}),deleteAcord25CertificateEndorsement:eQ.route({method:"DELETE",path:"/acord25/{certificateId}/endorsements/{endorsementId}"}).input(pn).output(mq).errors({NOT_FOUND:eZ.NOT_FOUND}),createAcord25CertificatePendingEndorsement:eQ.route({method:"POST",path:"/acord25/{certificateId}/pending-endorsements"}).input(pa).output(mq).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),deleteAcord25CertificatePendingEndorsement:eQ.route({method:"DELETE",path:"/acord25/{certificateId}/pending-endorsements/{pendingEndorsementId}"}).input(po).output(mq).errors({NOT_FOUND:eZ.NOT_FOUND}),applyAcord25CertificateTemplate:eQ.route({method:"POST",path:"/acord25/{certificateId}:applyTemplate"}).input(ps).output(mq).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),updateAcord25Certificate:eQ.route({method:"PATCH",path:"/acord25/{certificateId}"}).input(pc).output(mq).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),orderAcord25CertificateEndorsements:eQ.route({method:"PUT",path:"/acord25/{certificateId}/endorsements:order"}).input(pd).output(mq).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),batchUpdateAcord25CertificateEndorsementTypes:eQ.route({method:"PATCH",path:"/acord25/{certificateId}/endorsements"}).input(pu).output(mq).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),updateAcord25OtherCoverageFlags:eQ.route({method:"PATCH",path:"/acord25/{certificateId}
15/other-coverage-flags"}).input(pm).output(mq).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),generateAcord25DescriptionOfOperations:eQ.route({method:"POST",path:"/acord25/{certificateId}:generate-description-of-operations"}).input(pp).output(pE).errors({NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),saveAcord25DescriptionOfOperations:eQ.route({method:"PATCH",path:"/acord25/{certificateId}/description-of-operations"}).input(pg).output(pI).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND})}),pW=e0.z.object({id:e0.z.string(),source:e0.z.enum(["MANUAL","APPLIED_EPIC"]),name:e0.z.string(),naicCode:e0.z.string().nullable(),nameOverride:e0.z.string().nullable(),naicCodeOverride:e0.z.string().nullable()}),pV=e0.z.object({companyCarrierId:e0.z.string().trim().min(1),nameOverride:e0.z.string().trim().min(1,"Name is required.").max(60,"Name must be 60 characters or fewer.").nullable().optional(),naicCodeOverride:e0.z.string().trim().min(1,"NAIC code is required.").max(12,"NAIC code must be 12 characters or fewer.").nullable().optional()}).refine(({nameOverride:e,naicCodeOverride:t})=>void 0!==e||void 0!==t,{message:"At least one override is required."}),pH=e0.z.object({updates:e0.z.array(pV).min(1).refine(e=>new Set(e.map(({companyCarrierId:e})=>e)).size===e.length,{message:"Company carrier IDs must be unique."})}),pq=e0.z.object({companyCarriers:e0.z.array(pW)}),pK=eQ.prefix("/company-carriers").router({batchUpdateCompanyCarrierOverrides:eQ.route({method:"PATCH",path:"/overrides"}).input(pH).output(pq).errors({NOT_FOUND:eZ.NOT_FOUND})}),pQ="#1f2937",p$="#f3f4f6",pX="#ffffff",pJ="#f9fafb",pZ="#e5e7eb",p0="#64748b",p1="#e7e9ed",p2="#0f172a",p5=["Calibri","Arial","Georgia","Cambria","Times New Roman","Verdana","Garamond"],p3=e0.z.enum(p5).catch("Calibri"),p4=e=>e0.z.string().regex(/^#[0-9a-fA-F]{6}$/).catch(e),p9=e0.z.object({sizePt:e0.z.number().positive().catch(12),bold:e0.z.boolean().catch(!1),italic:e0.z.boolean().catch(!1),underline:e0.z.boolean().catch(!1),color:p4(pQ),align:e0.z.enum(["left","center","right"]).catch("left")}),p6=["brandName","addressName","addressStreet","addressCity","contactWebsite","contactPhone","contactEmail","pageNumber","pageCount","date"],p8=e0.z.discriminatedUnion("type",[e0.z.object({type:e0.z.literal("text"),value:e0.z.string()}),e0.z.object({type:e0.z.literal("variable"),name:e0.z.enum(p6)}),e0.z.object({type:e0.z.literal("break")})]),p7=e0.z.array(p8).catch([]),Ee=e0.z.object({version:e0.z.literal(1).catch(1),fontFamily:p3,headings:e0.z.object({h1:p9,h2:p9,h3:p9,h4:p9}),paragraph:p9,table:e0.z.object({header:e0.z.object({background:p4(p$),text:p9}),cells:e0.z.object({background:p4(pX),text:p9,alternateRowBackground:p4(pJ)}),section:e0.z.object({background:p4(p1)}).catch({background:p1}),border:p4(pZ)}),lists:e0.z.object({bulletColor:p4(pQ),text:p9}),footer:e0.z.object({left:p7,center:p7,right:p7,style:p9,rule:e0.z.boolean().catch(!0),ruleColor:e0.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().catch(null),background:e0.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().catch(null)}),identity:e0.z.object({brandName:e0.z.string().catch("Company"),logoUrl:e0.z.string().nullable().optional(),address:e0.z.object({name:e0.z.string().nullable().optional(),street:e0.z.string().nullable().optional(),city:e0.z.string().nullable().optional()}).catch({}).optional(),contact:e0.z.object({website:e0.z.string().nullable().optional(),phone:e0.z.string().nullable().optional(),email:e0.z.string().nullable().optional()}).catch({}).optional()}),cover:e0.z.object({show:e0.z.boolean().catch(!0),showPreparedBy:e0.z.boolean().catch(!0),showDate:e0.z.boolean().catch(!0)}).catch({show:!0,showPreparedBy:!0,showDate:!0}),deprecated:e0.z.object({tertiary:e0.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),iconUrl:e0.z.string().nullable().catch(null).optional(),addressLines:e0.z.array(e0.z.string()).length(3).nullable().catch(null).optional(),contactLines:e0.z.array(e0.z.string()).length(3).nullable().catch(null).optional()}).catch({}
15).optional(),documentAccent:p4(p0),coverBackground:p4(p2),coverAccent:p4(p0)}),Et=e=>!!e&&"object"==typeof e&&!Array.isArray(e),Ei=e0.z.preprocess(e=>{var t,i;if(!Et(e))return e;let n={...e};void 0===n.documentAccent&&void 0!==n.accent&&(n.documentAccent=n.accent),void 0===n.coverBackground&&"string"==typeof n.documentAccent&&(n.coverBackground=n.documentAccent);let r=null==(t=n.table)?void 0:t.border;void 0===n.coverAccent&&"string"==typeof r&&(n.coverAccent=r);let a=null==(i=n.identity)?void 0:i.iconUrl;if("string"==typeof a){let e=Et(n.deprecated)?n.deprecated:{};void 0===e.iconUrl&&(n.deprecated={...e,iconUrl:a})}return n},Ee),En=(e,t)=>({sizePt:e,bold:!0,italic:!1,underline:!1,color:t,align:"left"}),Er=(e,t)=>({sizePt:e,bold:!1,italic:!1,underline:!1,color:t,align:"left"}),Ea={version:1,fontFamily:"Calibri",headings:{h1:En(18,pQ),h2:En(14.5,pQ),h3:En(12.5,pQ),h4:En(11,"#4b5563")},paragraph:Er(11,pQ),table:{header:{background:p$,text:En(10.5,pQ)},cells:{background:pX,text:Er(10.5,pQ),alternateRowBackground:pJ},section:{background:p1},border:pZ},lists:{bulletColor:pQ,text:Er(11,pQ)},footer:{left:[{type:"variable",name:"brandName"}],center:[],right:[{type:"variable",name:"pageNumber"}],style:{sizePt:9,bold:!1,italic:!1,underline:!1,color:"#6b7280",align:"center"},rule:!0,ruleColor:null,background:null},identity:{brandName:"Company",logoUrl:null},cover:{show:!0,showPreparedBy:!0,showDate:!0},documentAccent:p0,coverBackground:p2,coverAccent:p0};e.s(["BRAND_FONTS",0,p5,"DocumentBrandThemeSchema",0,Ei,"FOOTER_FIELD_VARIABLES",0,["pageNumber","pageCount","date"],"FOOTER_VARIABLES",0,p6,"buildDefaultTheme",0,function(e){return{...Ea,identity:{brandName:e,logoUrl:null}}}],245428);let Eo=e0.z.enum(["team","company","default"]),Es=e0.z.object({}).optional(),El=e0.z.object({theme:Ei,source:Eo}),Ec=e0.z.object({teamId:e0.z.string(),teamName:e0.z.string(),hasBrand:e0.z.boolean(),theme:Ei}),Ed=e0.z.object({companyBrand:El,teamBrands:e0.z.array(Ec)}),Eu=e0.z.object({teamId:e0.z.string().trim().min(1).nullable().optional(),theme:Ei}),Em=e0.z.object({theme:Ei,source:Eo}),Ep=e0.z.object({teamId:e0.z.string().trim().min(1)}),EE=e0.z.object({success:e0.z.literal(!0)}),Eg=e0.z.object({teamId:e0.z.string().trim().min(1).nullable().optional()}),EI=e0.z.object({theme:Ei.nullable(),source:Eo.nullable()}),Eb=e0.z.enum(["document","spreadsheet"]),E_=e0.z.object({kind:Eb,theme:Ei}),Ez=e0.z.object({fileBase64:e0.z.string(),mimeType:e0.z.string(),fileName:e0.z.string()}),Eh=eQ.prefix("/document-brand").router({list:eQ.route({method:"GET",path:"/"}).input(Es).output(Ed).errors({FORBIDDEN:eZ.FORBIDDEN}),upsert:eQ.route({method:"PUT",path:"/"}).input(Eu).output(Em).errors({FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND}),delete:eQ.route({method:"DELETE",path:"/"}).input(Ep).output(EE).errors({FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND}),preview:eQ.route({method:"POST",path:"/preview"}).input(E_).output(Ez).errors({FORBIDDEN:eZ.FORBIDDEN}),fromV1:eQ.route({method:"POST",path:"/from-v1"}).input(Eg).output(EI).errors({FORBIDDEN:eZ.FORBIDDEN,NOT_FOUND:eZ.NOT_FOUND})}),EA=eQ.prefix("/document-picker").router({listUserUploadedDocuments:eQ.route({method:"GET",path:"/user-uploaded-documents"}).input(nV).output(nK),listAccountManagedDocuments:eQ.route({method:"GET",path:"/account-documents"}).input(rt).output(ri).errors({NOT_FOUND:eZ.NOT_FOUND}),epicSyncAndListAccountDocuments:eQ.route({method:"POST",path:"/epic/account-documents/sync-and-list"}).input(n$).output(nX).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),listEpicPolicies:eQ.route({method:"POST",path:"/epic/policies"}).input(nJ).output(n0).errors({BAD_REQUEST:eZ.BAD_REQUEST,FORBIDDEN:eZ.FORBIDDEN}),imageRightSyncAndListAccountDocuments:eQ.route({method:"POST",path:"/imageright/account-documents/sync-and-list"}).input(n2).output(n8).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),imageRightListDocumentPages:eQ.route({method:"POST",path:"/imageright/account-documents/document-pages"}).input(n7).output(re).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE}),extractPolicyNumber:eQ.route({method:"POST",path:"/epic/extract-policy-number"}).input(rc).output(rd).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND}),previewDocument:eQ.route({method:"POST",path:"/preview"}).input(rr).output(rl).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,SERVICE_UNAVAILABLE:eZ.SERVICE_UNAVAILABLE})}),EO=e0.z.object({provider:e0.z.literal("OUTLOOK"),senderEmail:e0.z.string().email()}),Ef=e0.z.discriminatedUnion("status",[EO.extend({status:e0.z.literal("CONNECTED")}),e0.z.object({status:e0.z.literal("NOT_CONNECTED")}),EO.extend({status:e0.z.literal("REAUTH_REQUIRED")}
15)]),ET=e0.z.discriminatedUnion("status",[e0.z.object({status:e0.z.literal("NOT_CONFIGURED")}),e0.z.object({status:e0.z.literal("CONFIGURED"),textHtml:e0.z.string(),imageUrl:e0.z.string().url().nullable()})]),Ey=eQ.prefix("/email").router({getConnection:eQ.route({method:"GET",path:"/connection"}).output(Ef),getSignaturePreview:eQ.route({method:"GET",path:"/signature-preview"}).output(ET)}),EN=["BUSINESS AUTO","COMMERCIAL PROPERTY","WORKERS COMPENSATION","GENERAL LIABILITY","EMPLOYMENT PRACTICES LIABILITY","DIRECTORS AND OFFICERS","CYBER","INLAND MARINE","UMBRELLA","EXCESS","FOREIGN PACKAGE","COMMERCIAL POLLUTION LIABILITY","LIQUOR LIABILITY","CRIME","FIDELITY","BUSINESS OWNERS POLICY","PROFESSIONAL LIABILITY","FIDUCIARY LIABILITY","OCEAN CARGO"],EC=new Set(EN),ES="OTHER";function ER(e){let[t,i,...n]=EN.map(e);if(void 0===t||void 0===i)throw Error("KNOWN_LINES_OF_COVERAGE must contain at least two entries");return[t,i,...n]}function EL(e,t){return t===e.lineOfCoverage?e:{...e,lineOfCoverage:t}}function ED(e){if("object"!=typeof e||null===e||Array.isArray(e))return null;let t=e.lineOfCoverage;return"string"==typeof t?t:null}function EP(e,t){let i=function(e){let t=ED(e);if(null===t)return e;let i=t.trim(),n=i.toUpperCase().replace(/\s+/g," ");return EL(e,EC.has(n)?n:i)}(t);if(i===t)return t;if(e.safeParse(i).success)return i;let n=ED(t);return null===n?t:EL(t,n.trim())}let Ev=e0.z.string().min(1).refine(e=>{let t;return 0!==(t=e.trim()).length&&t.toUpperCase()!==ES&&!EC.has(t)},{message:`Must be carrier freeform LoC, not a known grouping or reserved ${ES}`}).describe("The line's real name as freeform text when it maps to no known grouping (rule 3 of the LINE OF COVERAGE RULES). Never OTHER."),EU=e0.z.enum(EN).describe("Known insurance line-of-business groupings (space-separated). Prefer the closest match when the carrier label maps clearly. BUSINESS AUTO covers Commercial Automobile / Commercial Auto / Business Automobile / Auto Liability. WORKERS COMPENSATION covers Workers' Comp / Worker's Compensation / Workers' Compensation / Work Comp / WC / WCOM / Workers Compensation and Employers Liability — apostrophe and singular/plural spelling variants are ALL this grouping, never freeform. EMPLOYMENT PRACTICES LIABILITY covers EPL / EPLI. DIRECTORS AND OFFICERS covers traditional D&O and nonprofit / NPT / Not For Profit D&O. COMMERCIAL POLLUTION LIABILITY covers Pollution / Environmental / CPL / Contractors Pollution. LIQUOR LIABILITY covers Liquor / Liquor Legal Liability / LIQ-prefixed lines. CRIME covers Commercial Crime. FIDELITY covers Fidelity / Fidelity Bond / FID. BUSINESS OWNERS POLICY covers BOP / Businessowners / Business Owners Package / Businessowners Package — 'Package' wording variants of a BOP are this grouping (but see the package fan-out rule: a BOP's coverage PARTS still split into their own lines when the document itemizes them). PROFESSIONAL LIABILITY covers Professional / E&O / Errors and Omissions / PL / PLO / PLC / malpractice — NOT D&O. FIDUCIARY LIABILITY covers Fiduciary (ERISA / benefit-plan) — distinct from FIDELITY. OCEAN CARGO covers Ocean Cargo / Marine Cargo / Ocean Marine / Shipper's Interest / Freight Forwarding Liability — NOT INLAND MARINE (separate line). UMBRELLA and EXCESS are LAYER positions — see the LAYER RULES in the LINE OF COVERAGE RULES block of your instructions: layer wording (excess/umbrella/XS) is never assigned to the underlying line. Assignment — which value to write, when Epic context applies, when freeform wording is allowed, and when UNSPECIFIED is permitted — follows the LINE OF COVERAGE RULES block in your instructions, exactly."),Ew=e0.z.enum(["OPEN","CLOSED","REOPENED","UNKNOWN"]).describe("Claim lifecycle status. CLOSED if closeDate is set; OPEN if still active; REOPENED if previously closed; UNKNOWN if unclear."),EB=e0.z.enum(["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]).describe("Weekday of the injury or accident, when shown on the claim."),EF=e0.z.enum(["FALL_SLIP_TRIP","STRAIN_OVEREXERTION","STRUCK_BY","STRIKING_AGAINST","CAUGHT_IN_BETWEEN","CUT_PUNCTURE_SCRAPE","BURN_SCALD","MOTOR_VEHICLE","REPETITIVE_MOTION","EXPOSURE_INHALATION_ABSORPTION","ASSAULT_VIOLENCE","OTHER"]).describe("How the WC injury happened (cause of injury)."),Ej=e0.z.enum
15(["HEAD","EYE","NECK","SHOULDER","ARM_ELBOW","WRIST_HAND_FINGERS","BACK","TRUNK","HIP","KNEE","LEG_ANKLE_FOOT","MULTIPLE_BODY_PARTS","OTHER"]).describe("Primary body part injured. TRUNK = chest/abdomen/pelvis; MULTIPLE_BODY_PARTS when several parts drive cost."),EM=e0.z.enum(["STRAIN","SPRAIN","FRACTURE","CONTUSION","LACERATION","PUNCTURE","BURN","DISLOCATION","HERNIA","CONCUSSION_HEAD_INJURY","OCCUPATIONAL_DISEASE_CUMULATIVE","MULTIPLE_INJURIES","OTHER"]).describe("Type of WC injury (nature). OCCUPATIONAL_DISEASE_CUMULATIVE covers cumulative conditions such as carpal tunnel or hearing loss."),Ek=e0.z.enum(["BODILY_INJURY","PROPERTY_DAMAGE","MEDICAL_PAYMENTS","PREMISES_OPS","PRODUCTS_COMPLETED_OPS","PERSONAL_ADV_INJURY","OTHER"]).describe("GL coverage part applied to this line (BI, PD, med pay, premises/ops, products, P&AI)."),Ex=e0.z.enum(["SLIP_TRIP_FALL","STRUCK_BY_FALLING_OBJECT","PROPERTY_DAMAGE_BY_OPERATIONS","PRODUCT_OR_WORK_DEFECT","ASSAULT","ANIMAL_BITE","FOOD_ILLNESS_CONTAMINATION","PERSONAL_INJURY_OFFENSE","OTHER"]).describe("GL loss cause. PRODUCT_OR_WORK_DEFECT includes products and faulty work; PERSONAL_INJURY_OFFENSE includes libel, slander, false arrest."),EG=e0.z.enum(["BUILDING","BPP","BUSINESS_INCOME","EDP","STOCK","TENANT_IMPROVEMENTS","EQUIPMENT_BREAKDOWN","OTHER"]).describe("Property coverage part. BPP = business personal property (contents); BUSINESS_INCOME includes extra expense."),EY=e0.z.enum(["FIRE","WIND","HAIL","WATER","FLOOD","EARTHQUAKE","THEFT","VANDALISM","VEHICLE_IMPACT","COLLAPSE_STRUCTURAL","OTHER"]).describe("Property peril. FIRE includes smoke/lightning; WATER is non-flood leakage; FLOOD is rising water — keep separate."),EW=e0.z.enum(["COLLISION","COMPREHENSIVE","BODILY_INJURY","PROPERTY_DAMAGE","MEDICAL_PAYMENTS","UM_UIM","OTHER"]).describe("Auto coverage part (collision, comprehensive, BI, PD, med pay, UM/UIM)."),EV=e0.z.enum(["REAR_END","BACKING","SIDESWIPE_LANE_CHANGE","INTERSECTION_TURNING","FIXED_OBJECT","HIT_WHILE_PARKED","PEDESTRIAN_CYCLIST","ANIMAL","THEFT_VANDALISM","WEATHER_FALLING_OBJECT","OTHER"]).describe("Auto accident cause. WEATHER_FALLING_OBJECT includes trees, debris, hail, and glass breakage."),EH=e0.z.string().nullish(),Eq=e0.z.boolean().nullish();e0.z.strictObject({occurrenceId:EH,causeOfInjury:EF.nullish(),bodyPartOfLoss:Ej.nullish(),litigation:Eq,occupation:EH,classcode:EH,dayOfWeek:EB.nullish(),natureOfInjury:EM.nullish(),coverage:e0.z.union([Ek,EG,EW]).nullish(),coverageRaw:EH,causeOfLoss:e0.z.union([Ex,EY]).nullish(),causeOfLossRaw:EH,cause:EV.nullish(),causeRaw:EH,vin:EH,driverName:EH,underlyingLine:EH}),e0.z.array(e0.z.discriminatedUnion("kind",[e0.z.strictObject({kind:e0.z.literal("pdf"),managedDocumentId:e0.z.string(),pageNumber:e0.z.int().positive(),hash:e0.z.string()}),e0.z.strictObject({kind:e0.z.literal("excel"),managedDocumentId:e0.z.string(),sheetName:e0.z.string(),rowNumber:e0.z.int().positive()})]));let EK=e0.z.strictObject({kind:e0.z.literal("pdf"),sourceSlug:e0.z.string().describe("The slug assigned to this source document in your task instructions, copied exactly. Never a file path, file name, or id."),pageNumber:e0.z.int().positive().describe("1-based page of the source document this record was read from."),hash:e0.z.string().describe("The OCR citation token printed nearest this record in the text you read, copied verbatim WITHOUT the brackets or prefix: from `[ID:a1b2c3]` emit `a1b2c3`. It resolves to a bounding box so the user can see where the record came from — so copy the token beside the record's own row, not the one at the top of the page. Never invent, shorten, or compute one.")}),EQ=e0.z.strictObject({kind:e0.z.literal("excel"),sourceSlug:e0.z.string().describe("The slug assigned to this source document in your task instructions, copied exactly. Never a file path, file name, or id."),sheetName:e0.z.string().describe("Worksheet name, as printed in the workbook."),rowNumber:e0.z.int().positive().describe("1-based row of the worksheet holding this record.")}),E$=e0.z.discriminatedUnion("kind",[EK,EQ]).describe("One source locator. `pdf` carries page + OCR citation token; `excel` carries sheet + row. There are no other kinds."),EX=e0.z.array(E$).describe("Every place this record was read from — at least one. A worker extracting a single document emits exactly one entry; the reconciler appends an entry per additional document when it merges duplicates. Omit only when no source locator can be determined; TypeScript warns rather than failing the document when this is missing or empty."),EJ=e0.z.string().nullish(),EZ=e0.z.number().nullish(),E0=e0.z.boolean().nullish(),E1={claimants:e0.z.array(e0.z.string()).nullish().describe("Injured persons or claimant entities. Null if not printed."),description:EJ.describe("printed narrative of the loss, plus printed context no more specific field can hold (a carrier skill may direct overflow here). Write whenever possible; only leave null if nothing printed."),dateOfLoss:EJ.describe("Accident or occurrence date (ISO YYYY-MM-DD). Must fall in the policy term when dates exist."),reportedDate:EJ.describe("Date the claim was first reported to the insurer (ISO YYYY-MM-DD)."),closeDate:EJ.describe("Date the claim closed — no further indemnity/medical expected (ISO YYYY-MM-DD). Null if open."),status:Ew.nullish().describe("OPEN, CLOSED, REOPENED, or UNKNOWN"),state:EJ.describe("Jurisdiction / state of loss."),location:EJ.describe("Loss location name, address, or location code.")},E2={lossPaid:EZ.describe("Loss dollars paid to date for this coverage row (a printed combined paid that is not broken out also lands here — non-WC has no combined slot). When the carrier breaks paid amounts down by coverage (e.g. BI/PD), emit one line item per coverage — never combine amounts, except the collapses that the consumption rules mandate (same-row and totals-beat-splits: several per-coverage paid cells on ONE printed row sum into that row's lossPaid)."),lossReserve:EZ.describe("Outstanding loss reserve — estimated future loss payments for this coverage. Null if not printed."),expensePaid:EZ.describe("Allocated claim expense paid (ALAE
15) for this coverage. Null if not printed."),expenseReserve:EZ.describe("Outstanding expense reserve — estimated future ALAE for this coverage. Null if not printed."),totalIncurred:EZ.describe("Net incurred for this coverage as of valuation. Null if not printed — do not compute."),expenseIncludedInIncurred:E0.describe("True/false ONLY from printed evidence naming the incurred's scope (a column title or footnote such as 'Incurred + ALAE' or 'ALAE not included'). Never inferred from arithmetic or from expense merely printing in its own column. Null if nothing printed states it."),recoveries:EZ.describe("Recoveries reducing the loss (subrogation, salvage, reimbursements). ALWAYS a positive magnitude — carriers often print recoveries as negative credits (e.g. -9,999); record the absolute value. Null if not printed."),deductible:EZ.describe("Deductible amount applied to this claim. ALWAYS a positive magnitude, even when the document prints it as a negative credit. Null if not printed.")},E5={indemnityPaid:EZ.describe("Indemnity paid to date — lost wages and other indemnity benefits. Null if not printed."),medicalPaid:EZ.describe("Medical paid to date — treatment and related medical costs. Null if not printed."),lossPaid:EZ.describe("Paid loss (medical + indemnity combined) only when the carrier prints a single paid-loss column that EXCLUDES a separately printed expense column. Never a combined that includes expense — that is totalPaid. Null if not printed."),totalPaid:EZ.describe("Combined paid amount only when indemnity/medical/loss paid are not itemized AND no separate expense column prints beside it (a paid figure beside its own expense column is lossPaid). Record as printed — whether it includes expense is carrier-dependent. Null if not printed."),expensePaid:EZ.describe("Allocated claim expense paid (ALAE) on this WC line item. Null if not printed."),indemnityReserve:EZ.describe("Outstanding indemnity reserve — estimated future wage/disability payments. Null if not printed."),totalReserve:EZ.describe("Combined outstanding reserve only when indemnity/medical reserves are not itemized AND no separate expense-reserve column prints beside it. totalReserve means the all-in reserve INCLUDING expense: a loss-side combined reserve printed beside its own expense-reserve column belongs in indemnityReserve (or the printed composition's component), never here — mis-slotting it makes the engine discard the expense reserve. Null if not printed."),medicalReserve:EZ.describe("Outstanding medical reserve — estimated future medical payments. Null if not printed."),expenseReserve:EZ.describe("Outstanding expense (ALAE) reserve on this WC line item. Null if not printed."),recoveries:EZ.describe("Third-party or fund recoveries reducing net WC incurred. ALWAYS a positive magnitude — record the absolute value even when printed as a negative credit. Null if not printed."),deductible:EZ.describe("Deductible amount applied to this claim (large-deductible WC programs). ALWAYS a positive magnitude, even when the document prints it as a negative credit. Null if not printed."),totalIncurred:EZ.describe("Net incurred as of valuation. Null if not printed — the engine derives it; never compute.")},E3=E0.describe("True if the claim is litigated (in suit, attorney representation, or legal/suit status indicated). Null if not printed."),E4={causeOfInjury:EF.nullish().describe("Cause of injury — what produced the WC injury. When no dedicated column prints, classify from the claim's printed description when it plainly states the cause; null when ambiguous."),bodyPartOfLoss:Ej.nullish().describe("Part of body — primary body part driving claim cost. When no dedicated column prints, classify from the claim's printed description when it plainly names the body part; null when ambiguous."),litigation:E3,occupation:EJ.describe("injured job title or occupation at injury. May be taken from the printed description when it plainly states the job title."),classcode:EJ.describe("WC classification code for the worker's exposure class."),dayOfWeek:EB.nullish().describe("Weekday the injury occurred."),natureOfInjury:EM.nullish().describe("Nature of injury — medical type of harm (sprain, fracture, etc.). When no dedicated column prints, classify from the claim's printed description when it plainly states it; null when ambiguous.")},E9={coverage:Ek.nullish().describe("GL coverage grant for this line item."),coverageRaw:EJ.describe("Carrier's printed GL coverage label."),causeOfLoss:Ex.nullish().describe("How the GL loss occurred. When no dedicated column prints, classify from the claim's printed description when it plainly states the cause; null when ambiguous."),litigation:E3},E6={coverage:EG.nullish().describe("Property coverage grant for this line item."),coverageRaw:EJ.describe("Carrier's printed property coverage label."),causeOfLoss:EY.nullish().describe("Property peril / cause of loss. When no dedicated column prints, classify from the claim's printed description when it plainly states the peril; null when ambiguous."),causeOfLossRaw:EJ.describe("Carrier's printed cause-of-loss wording, if any."),litigation:E3},E8={coverage:EW.nullish().describe("Auto coverage grant for this line item."),coverageRaw:EJ.describe("Carrier's printed auto coverage label for this row (e.g. 'AUTO PHYSICAL DAMAGE', 'AUTO LIABILITY') — keep the exact wording; the coverage enum records the normalized grant."),cause:EV.nullish().describe("How the auto accident occurred. When no dedicated column prints, classify from the claim's printed description when it plainly states the accident cause; null when ambiguous."),causeRaw:EJ.describe("Carrier's printed accident-cause wording, if any."),vin:EJ.describe("Vehicle identification number."),driverName:EJ.describe("Driver involved in the loss."),litigation:E3},E7=e0.z.strictObject({...E1,...E4,...E5}),ge=e0.z.strictObject({...E1,...E9,...E2}),gt=e0.z.strictObject({...E1,...E6,...E2}),gi=e0.z.strictObject({...E1,...E8,...E2}),gn=e0.z.strictObject({...E1,coverageRaw:EJ.describe("Carrier's printed cyber / management-liability coverage text."),litigation:E3,...E2}),gr=e0.z.strictObject({...E1,underlyingLine:EJ.describe("Underlying policy line this umbrella/excess claim sits over."),litigation:E3,...E2}),ga=e0.z.strictObject({...E1,litigation:E3,...E2}),go=e0.z.strictObject({...E1,...E2,litigation:E3}),gs={claimNumber:EJ.describe("Carrier claim number — unique claim ID; may be blank on some reports."),occurrenceId:EJ.describe("The carrier's printed occurrence / event number when one exists — the identifier shared by every claim arising from one loss event. Copy it verbatim; never synthesize one. Null when the document prints none."),provenance:EX.nullish().describe("Every place this claim was read from — at least one when known. Omit or leave empty only when no source locator can be determined.")},gl={"WORKERS COMPENSATION":E7,"GENERAL LIABILITY":ge,"COMMERCIAL PROPERTY":gt,"BUSINESS AUTO":gi,CYBER:gn,UMBRELLA:gr,"EMPLOYMENT PRACTICES LIABILITY":ga,"DIRECTORS AND OFFICERS":ga,"INLAND MARINE":ga,EXCESS:ga,"FOREIGN PACKAGE":ga,"COMMERCIAL POLLUTION LIABILITY":ga,"LIQUOR LIABILITY":ga,CRIME:ga,FIDELITY:ga,"BUSINESS OWNERS POLICY":ga,"PROFESSIONAL LIABILITY":ga,"FIDUCIARY LIABILITY":ga,"OCEAN CARGO":ga},gc=e0.z.discriminatedUnion("lineOfCoverage",ER(e=>{var t;return t=gl[e],e0.z.strictObject({...gs,lineOfCoverage:e0.z.literal(e).describe("Claim line of business; selects the line-item field set."),lineItems:e0.z.array(t).nullish().describe("Per-coverage financial and detail rows belonging to this claim.")})})),gd=e0.z.strictObject({...gs,lineOfCoverage:Ev,lineItems:e0.z.array(go).nullish().describe("Per-coverage financial and detail rows belonging to this claim.")}),gu=e0.z.union([gc,gd]),gm=e0.z.preprocess(e=>EP(gu,e),gu),gp=e0.z.string().nullish(),gE=e0.z.number().nullish(),gg={indemnityPaid:gE.describe("WC indemnity paid to date — wage replacement / disability benefits. Null if not printed."),indemnityReserve:gE.describe("Outstanding WC indemnity reserve. Null if not printed."),medicalPaid:gE.describe("WC medical paid to date — treatment and related medical costs. Null if not printed."),lossPaid:gE.describe("Paid loss (medical + indemnity comb
15ined) only when the carrier prints a single paid-loss total that EXCLUDES a separately printed expense total. Never a combined that includes expense — that is totalPaid. Null if not printed."),totalPaid:gE.describe("Combined paid total only when indemnity/medical/loss paid are not broken out AND no separate expense total prints beside it (a paid total beside its own expense total is lossPaid). Record as printed — whether it includes expense is carrier-dependent. Null if not printed."),expensePaid:gE.describe("expense paid to date. Null if not printed."),totalReserve:gE.describe("Combined outstanding reserve only when indemnity/medical reserves are not itemized AND no separate expense-reserve total prints beside it — totalReserve means the all-in reserve INCLUDING expense; a loss-side combined beside its own expense-reserve total belongs in indemnityReserve (or the printed composition's component), never here. Null if not printed."),medicalReserve:gE.describe("Outstanding WC medical reserve. Null if not printed."),expenseReserve:gE.describe("expense reserve to date. Null if not printed."),recoveries:gE.describe("Recoveries reducing net incurred — subrogation, salvage, reimbursements. ALWAYS a positive magnitude, even when printed as a negative credit. Null if not printed."),totalIncurred:gE.describe("Total incurred to date as printed. Null if not printed — the engine derives it; never compute."),claimCount:gE.describe("The claim count the carrier PRINTS for this policy term (summary bands, 'Claims' columns). Printed value only — never your own count of extracted claims. Null if not printed.")},gI={lossPaid:gE.describe("Non-WC loss paid to date for the policy term. A printed COMBINED paid total that is not broken out also lands here (non-WC has no combined slot) — but never sum loss and expense yourself when both print. Null if not printed."),expensePaid:gE.describe("Non-WC claim expense paid (ALAE). Null if not printed."),totalIncurred:gE.describe("Non-WC total incurred as of valuation. Null if not printed — do not compute."),lossReserve:gE.describe("Outstanding non-WC loss reserve. A printed COMBINED reserve total that is not broken out also lands here — but never sum loss and expense yourself when both print. Null if not printed."),expenseReserve:gE.describe("Outstanding non-WC expense reserve. Null if not printed."),recoveries:gE.describe("Recoveries reducing net incurred — subrogation, salvage, reimbursements. ALWAYS a positive magnitude, even when printed as a negative credit. Null if not printed."),claimCount:gE.describe("The claim count the carrier PRINTS for this policy term (summary bands, 'Claims' columns). Printed value only — never your own count of extracted claims. Null if not printed.")},gb=e0.z.strictObject(gg).describe("Printed WC policy-level financial totals. Null if none are printed."),g_=e0.z.strictObject(gI).describe("Printed non-WC policy-level financial totals. Null if none are printed."),gz={policyNumber:gp.describe("Unique policy identifier as printed; preserve formatting."),carrier:gp.describe("Insurer or reporting carrier for this policy term. Often appears only in the page header, letterhead, or logo/masthead — not beside each policy row. Copy that branding onto every policy when the row itself omits a carrier name."),policyYear:gp.describe("Policy year label when calendar start/end dates are absent. Leave null if either date is present."),policyStartDate:gp.describe("Policy effective date — coverage start (ISO YYYY-MM-DD)."),policyEndDate:gp.describe("Policy expiration date — coverage end (ISO YYYY-MM-DD)."),provenance:EX.nullish().describe("Every place this policy was read from — at least one when known. Omit or leave empty only when no source locator can be determined."),claims:e0.z.array(gm).nullish().describe("Claims on this policy. Empty when the policy has no losses.")},gh="Printed policy-level financial totals for this line. Shape follows lineOfCoverage (WC vs generic). Null when none are printed.",gA={"WORKERS COMPENSATION":gb,"GENERAL LIABILITY":g_,"COMMERCIAL PROPERTY":g_,"BUSINESS AUTO":g_,CYBER:g_,UMBRELLA:g_,"EMPLOYMENT PRACTICES LIABILITY":g_,"DIRECTORS AND OFFICERS":g_,"INLAND MARINE":g_,EXCESS:g_,"FOREIGN PACKAGE":g_,"COMMERCIAL POLLUTION LIABILITY":g_,"LIQUOR LIABILITY":g_,CRIME:g_,FIDELITY:g_,"BUSINESS OWNERS POLICY":g_,"PROFESSIONAL LIABILITY":g_,"FIDUCIARY LIABILITY":g_,"OCEAN CARGO":g_},gO=e0.z.discriminatedUnion("lineOfCoverage",ER(e=>{var t;return t=gA[e],e0.z.strictObject({...gz,lineOfCoverage:e0.z.literal(e).describe("Single line of business for this policy term. Package policies are split into one object per policy number × term × line of coverage. Selects the policyTotals field set."),policyTotals:t.nullish().describe(gh)})})),gf=e0.z.strictObject({...gz,lineOfCoverage:Ev,policyTotals:g_.nullish().describe(gh)}),gT=e0.z.union([gO,gf]),gy=e0.z.preprocess(e=>EP(gT,e),gT),gN=e0.z.number().nullish(),gC=e0.z.strictObject({claimCount:gN.describe("Grand-total claim count the document prints. Null if not printed."),paid:gN.describe("Grand-total paid the document prints. Null if not printed."),reserve:gN.describe("Grand-total outstanding reserve the document prints. Null if not printed."),recoveries:gN.describe("Grand-total recoveries the document prints, as a positive magnitude. Null if not printed."),incurred:gN.describe("Grand-total incurred the document prints. Null if not printed.")}).describe("Printed document-level grand totals. Copy from an explicit grand-total row only; null when the document prints none — never sum anything yourself."),gS=e0.z.strictObject({insured:e0.z.string().nullish().describe("Named insured on the loss run. Prefer the fullest printed name."),valuationDate:e0.z.string().nullish().describe("Date losses are valued as of (ISO YYYY-MM-DD). Also printed as report run date, as-of date, or valuation date. Distinct from the document print/generation timestamp."),documentTotals:gC.nullish(),policies:e0.z.array(gy).nullish().describe("Policy terms on the report. One object per policy number × term × line of coverage. Split package policies into separate entr
15ies.")}).transform(e=>{var t,i,n,r;return{insured:null!=(t=e.insured)?t:null,valuationDate:null!=(i=e.valuationDate)?i:null,documentTotals:null!=(n=e.documentTotals)?n:null,policies:null!=(r=e.policies)?r:[]}}),gR=e0.z.string().nullish(),gL={policyNumber:gR.describe("Unique policy identifier as printed; preserve formatting."),carrier:gR.describe("Insurer or reporting carrier for this policy term. Often appears only in the page header, letterhead, or logo/masthead — not beside each policy row. Copy that branding onto every policy when the row itself omits a carrier name."),policyYear:gR.describe("Policy year label when calendar start/end dates are absent. Leave null if either date is present."),policyStartDate:gR.describe("Policy effective date — coverage start (ISO YYYY-MM-DD)."),policyEndDate:gR.describe("Policy expiration date — coverage end (ISO YYYY-MM-DD)."),provenance:EX.nullish().describe("Every place this policy was read from — at least one when known. Omit or leave empty only when no source locator can be determined."),claims:e0.z.array(gm).nullish().describe("Claims on this policy. Empty when the policy has no losses.")},gD=e0.z.strictObject({layer:e0.z.number().int().min(1).nullish().describe('Ordinal layer position ("1st Layer" → 1). Null when Epic names no position.'),underlyingLine:e0.z.string().nullish().describe('What the layer sits over, when named ("General Liability", "Property", "Directors and Officers"). Null when not stated.')}),gP=e0.z.strictObject({...gL,lineOfCoverage:e0.z.union([EU,Ev]).describe("Assigned per the LINE OF COVERAGE RULES: the enum value for every known line (even when learned from Epic), one consistent freeform wording for a real line the enum lacks, UNSPECIFIED only as the last resort."),policyTotals:e0.z.union([gb,g_]).nullish().describe("Printed policy-level financial totals for this line. Null when none are printed."),epicPolicyId:e0.z.string().nullish().describe("The matched Epic policy's id, copied VERBATIM from epic-policies.json. Null when no Epic policy matches."),epicLineId:e0.z.string().nullish().describe("The matched Epic line's id, copied VERBATIM from epic-policies.json. Null when no Epic line matches."),excessLayer:gD.nullish().describe("UMBRELLA / EXCESS policies only: layer detail from the matched Epic policy's description. Null elsewhere."),epicMatchSuspect:e0.z.boolean().nullish().describe("True when the line could not be confidently matched to Epic."),epicMatchNote:e0.z.string().nullish().describe("Human-readable note about Epic matching uncertainty.")}),gv=e0.z.preprocess(e=>EP(gP,e),gP);e0.z.strictObject({insured:e0.z.string().nullish().describe("Named insured on the loss run. Prefer the fullest printed name."),valuationDate:e0.z.string().nullish().describe("Date losses are valued as of (ISO YYYY-MM-DD). Also printed as report run date, as-of date, or valuation date. Distinct from the document print/generation timestamp."),documentTotals:gC.nullish(),policies:e0.z.array(gv).nullish().describe("Policy terms on the report matched to Epic. One object per policy number × term × line of coverage."),unassignedPolicies:e0.z.array(gv).nullish().describe("Policy terms with no matching Epic policy after reconciliation. They are still real, fully reported policies — their lineOfCoverage follows the LINE OF COVERAGE RULES like any other (the document's line, not UNSPECIFIED); only the Epic link is absent.")}).transform(e=>{var t,i,n,r,a;return{insured:null!=(t=e.insured)?t:null,valuationDate:null!=(i=e.valuationDate)?i:null,documentTotals:null!=(n=e.documentTotals)?n:null,policies:null!=(r=e.policies)?r:[],unassignedPolicies:null!=(a=e.unassignedPolicies)?a:[]}});let gU=e0.z.array(e0.z.string().trim().min(1).max(600)).min(1).max(4),gw=e0.z.object({lineOfCoverage:e0.z.string().trim().min(1).max(120),text:gU});e0.z.object({summary:gU,lines:e0.z.array(gw).max(40).default([])});let gB=e0.z.strictObject({action:e0.z.enum(["merged_policy","merged_claim","dropped_duplicate","anomaly"]),basis:e0.z.string(),sourceSlugs:e0.z.array(e0.z.string())});e0.z.strictObject({extraction:gS,ledger:e0.z.array(gB)}),e0.z.strictObject({attachPolicy:e0.z.boolean()});let gF="epicLinePremium_",gj={ESTIMATED:"estimatedPremium",ANNUALIZED:"annualizedPremium",BILLED:"billedPremium"},gM=e0.z.object({kind:e0.z.literal("epicLinePremium"),policyId:e0.z.string().min(1),lineId:e0.z.string().min(1),lineTypeCode:e0.z.string(),lineTypeDescription:e0.z.string(),premiumSource:e0.z.enum
15([gj.ESTIMATED,gj.ANNUALIZED,gj.BILLED]).nullable()});function gk(e){if(!e||"object"!=typeof e||!("fieldKey"in e))return null;let t=gM.safeParse(e.fieldKey);return t.success?t.data:null}e.s(["EPIC_LINE_PREMIUM_SOURCE",0,gj,"getEpicLinePremiumFieldName",0,function(e){return`${gF}${encodeURIComponent(e)}`},"getEpicLinePremiumIdentity",0,gk,"isEpicLinePremiumField",0,function(e){var t;return(null!=(t=e.split(";").pop())?t:"").startsWith(gF)}],247390);let gx=e0.z.enum(["WORKERS_COMPENSATION","CYBER","GENERAL_LIABILITY","COMMERCIAL_PROPERTY","BUSINESS_AUTO","PROFESSIONAL_LIABILITY","BUSINESS_OWNERS_POLICY","EXCESS_LIABILITY","UMBRELLA_LIABILITY","COMMERCIAL_POLLUTION_LIABILITY","CONTRACTORS_POLLUTION_LIABILITY","EDUCATORS_LEGAL_LIABILITY","GENERAL_LIABILITY_AND_HNOA","INLAND_MARINE","BUILDERS_RISK","CONTRACTORS_EQUIPMENT","VOLUNTEER_AND_ACCIDENT","CYBER_TECH","COMMON","LIQUOR_LIABILITY","ABUSE_AND_MOLESTATION","ACCIDENTAL_DEATH_AND_DISMEMBERMENT","SEXUAL_ABUSE","TRUCKERS","TRANSPORTATION","PRODUCT_RECALL","INVENTORY_INSURANCE","GENERAL_LIABILITY_PACKAGE","COMMERCIAL_PROPERTY_PACKAGE","MANAGEMENT_LIABILITY_PACKAGE","MANAGEMENT_LINES","DIRECTORS_AND_OFFICERS","EMPLOYMENT_PRACTICES_LIABILITY","FIDUCIARY_LIABILITY","KIDNAP_AND_RANSOM","ENERGY","INTERNATIONAL_BUSINESS_AUTO","CRIME","ACCOUNTS_RECEIVABLE","MEDIA_COVERAGE","OTHER","OTHER_LINE","EARTHQUAKE","FLOOD","MOTOR_TRUCK_CARGO","FORMS_AND_ENDORSEMENTS","TERRORISM","EQUIPMENT_BREAKDOWN","PROPERTY_SINGLE_LOCATION","PROPERTY_MULTI_LOCATION","BUSINESS_OWNERS_SINGLE_LOCATION_POLICY","BUSINESS_OWNERS_MULTI_LOCATION_POLICY","GARAGE_AND_DEALERS","WINDSTORM_COVERAGE","COMMERCIAL_PROPERTY_SOV","BUSINESS_AUTO_VEHICLE_SCHEDULE","BUSINESS_AUTO_DRIVER_SCHEDULE","GENERAL_LIABILITY_HAZARD_SCHEDULE","CONTRACTORS_EQUIPMENT_SCHEDULE","WORKERS_COMPENSATION_OPERATIONS_SCHEDULE","GARAGE_AND_DEALERS_VEHICLE_SCHEDULE","GARAGE_AND_DEALERS_DRIVER_SCHEDULE","GARAGE_AND_DEALERS_LOCATION_SCHEDULE","MOTOR_TRUCK_CARGO_TARGET_COMMODITIES_SCHEDULE","MOTOR_TRUCK_CARGO_VEHICLE_SCHEDULE","MOTOR_TRUCK_CARGO_DRIVER_SCHEDULE","MOTOR_TRUCK_CARGO_TERMINAL_SCHEDULE","NAMED_INSURED_SCHEDULE","PACKAGE_DETAILS","COVERAGE_HIGHLIGHTS","ELECTRONIC_DATA_PROCESSING","SURETY_REPORT","FARM_PROPERTY","FARM_EQUIPMENT","FARM_LIABILITY","ACCIDENT_AND_HEALTH","AVIATION","CLINICAL_TRIALS","CONTROL_OF_WELL","CROP","EMPLOYEE_BENEFITS_LIABILITY","INTERNATIONAL_PACKAGE","LEGAL_EXPENSE","LIVESTOCK_MORTALITY","OCEAN_MARINE","RAILROAD_PROTECTIVE","SPECIAL_EVENT","TENANT_DISCRIMINATION","WAREHOUSE_LEGAL_LIABILITY","WORKPLACE_VIOLENCE","WATERCRAFT","HOMEOWNERS","PERSONAL_AUTO","PERSONAL_UMBRELLA","DWELLING_FIRE","MOBILE_HOME"]),gG=gx.enum;e.s(["INSURANCE_POLICY_CLASSES",0,gG,"InsurancePolicyClassSchema",0,gx],751145),e.s(["getSingleLineFormInsertTarget",0,function(e,t,i){var n,r,a,o,s;if(t.toUpperCase().replaceAll(" ","_")!==gG.MANAGEMENT_LINES||(null==i?void 0:i.value)!==null||null!=i.amsId||i.lineTypeCode||(null==(n=i.amsFieldMetadata)?void 0:n.lineId)!=null||(null==(r=i.amsFieldMetadata)?void 0:r.lineCode)!=null||(null==(a=i.amsFieldMetadata)?void 0:a.applicationSection)!=null||(null==(o=i.amsFieldMetadata)?void 0:o.readOnly)===!0||(null==e?void 0:e.isPackagePolicy)!==!1||(null==(s=e.lineWriteback)?void 0:s.length)!==1)return;let l=e.lineWriteback[0];return l.lineId&&l.coverageType&&!l.readOnly?l:void 0},"isEpicReadOnlySource",0,function(e,t){var i,n,r,a;let o=t.amsFieldMetadata&&"object"==typeof t.amsFieldMetadata?t.amsFieldMetadata:void 0;if(!(null==e?void 0:e.length))return!1;let s=gk(o),l=null!=(n=null!=(i=null==s?void 0:s.lineId)?i:null==o?void 0:o.lineId)?n:t.lineId,c=null!=(r=null==s?void 0:s.lineTypeCode)?r:t.lineTypeCode,d=null!=(a=null==o?void 0:o.lineCode)?a:t.coverageType;if(null!=l){let t=e.filter(e=>e.lineId===String(l));if(t.length)return t.some(e=>e.readOnly)}if("string"==typeof c&&c){let t=e.filter(e=>e.lineTypeCode===c);if(t.length)return t.some(e=>e.readOnly)}return"string"==typeof d&&e.some(e=>e.coverageType===d.toUpperCase().replaceAll(" ","_")&&e.readOnly)}],984624);let gY=e0.z.object({street1:e0.z.string().nullable(),street2:e0.z.string().nullable(),city:e0.z.string().nullable(),state:e0.z.string().nullable(),zip:e0.z.string().nullable(),country:e0.z.string().nullable()}),gW=e0.z.iso.date(),gV=e0.z.union([e0.z.number(),e0.z.literal("INCLUDED")]).nullable();(A=ee||(ee={})).CLAIMS_MADE="CLAIMS_MADE",A.OCCURRENCE="OCCURRENCE",A.OTHER="OTHER";
15let gH=e0.z.enum([ee.CLAIMS_MADE,ee.OCCURRENCE]).nullable();(O=et||(et={})).DEDUCTIBLE="DEDUCTIBLE",O.RETENTION="RETENTION";let gq=e0.z.object({kind:e0.z.enum(et),limit:e0.z.number()});(f=ei||(ei={})).ADDITIONAL_INSURED="ADDITIONAL_INSURED",f.ADDITIONAL_INTEREST="ADDITIONAL_INTEREST",f.CERTIFICATE_HOLDER="CERTIFICATE_HOLDER",f.CO_OWNER="CO_OWNER",f.LENDERS_LOSS_PAYABLE="LENDERS_LOSS_PAYABLE",f.LESSOR="LESSOR",f.LIENHOLDER="LIENHOLDER",f.LOSS_PAYEE="LOSS_PAYEE",f.MORTGAGEE="MORTGAGEE",f.NOTICE_RECIPIENT="NOTICE_RECIPIENT",f.OWNER="OWNER",f.TRUSTEE="TRUSTEE",f.WAIVER_OF_SUBROGATION="WAIVER_OF_SUBROGATION",f.OTHER="OTHER";let gK=e0.z.object({name:e0.z.string(),interestTypes:e0.z.array(e0.z.enum(ei)).min(1).refine(e=>new Set(e).size===e.length&&e.every((t,i)=>0===i||e[i-1]<t),{message:"interestTypes must be unique and sorted alphabetically"}).describe("At least one role, unique and sorted alphabetically. Blanket status belongs to the granting form, not this party."),interestTypeOther:e0.z.string().nullable().describe("Required when interestTypes includes OTHER; must be null otherwise."),address:gY.nullable(),locationNumber:e0.z.number().nullable(),buildingNumber:e0.z.number().nullable()}).refine(e=>{var t;return e.interestTypes.includes(ei.OTHER)?!!(null==(t=e.interestTypeOther)?void 0:t.trim()):null===e.interestTypeOther},{message:"interestTypeOther is required exactly when interestTypes includes OTHER",path:["interestTypeOther"]}).refine(e=>null===e.buildingNumber||null!==e.locationNumber,{message:"buildingNumber requires locationNumber",path:["buildingNumber"]});(T=en||(en={})).WORKERS_COMPENSATION="WORKERS_COMPENSATION",T.CYBER="CYBER",T.GENERAL_LIABILITY="GENERAL_LIABILITY",T.COMMERCIAL_PROPERTY="COMMERCIAL_PROPERTY",T.BUSINESS_AUTO="BUSINESS_AUTO",T.PROFESSIONAL_LIABILITY="PROFESSIONAL_LIABILITY",T.BUSINESS_OWNERS_POLICY="BUSINESS_OWNERS_POLICY",T.EXCESS_LIABILITY="EXCESS_LIABILITY",T.UMBRELLA_LIABILITY="UMBRELLA_LIABILITY",T.COMMERCIAL_POLLUTION_LIABILITY="COMMERCIAL_POLLUTION_LIABILITY",T.GARAGE_AND_DEALERS="GARAGE_AND_DEALERS",T.GENERAL_LIABILITY_AND_HNOA="GENERAL_LIABILITY_AND_HNOA",T.BUILDERS_RISK="BUILDERS_RISK",T.CONTRACTORS_EQUIPMENT="CONTRACTORS_EQUIPMENT",T.INLAND_MARINE="INLAND_MARINE",T.EQUIPMENT_BREAKDOWN="EQUIPMENT_BREAKDOWN",T.PRODUCT_RECALL="PRODUCT_RECALL",T.MANAGEMENT_LINES="MANAGEMENT_LINES",T.DIRECTORS_AND_OFFICERS="DIRECTORS_AND_OFFICERS",T.FIDUCIARY_LIABILITY="FIDUCIARY_LIABILITY",T.EMPLOYMENT_PRACTICES_LIABILITY="EMPLOYMENT_PRACTICES_LIABILITY",T.KIDNAP_AND_RANSOM="KIDNAP_AND_RANSOM",T.CRIME="CRIME",T.OTHER="OTHER",T.EARTHQUAKE="EARTHQUAKE",T.FLOOD="FLOOD",T.MOTOR_TRUCK_CARGO="MOTOR_TRUCK_CARGO",T.OCEAN_MARINE="OCEAN_MARINE",T.INTERNATIONAL_PACKAGE="INTERNATIONAL_PACKAGE",T.LEGAL_EXPENSE="LEGAL_EXPENSE",T.RAILROAD_PROTECTIVE="RAILROAD_PROTECTIVE",T.SPECIAL_EVENT="SPECIAL_EVENT",T.TENANT_DISCRIMINATION="TENANT_DISCRIMINATION",T.WAREHOUSE_LEGAL_LIABILITY="WAREHOUSE_LEGAL_LIABILITY",T.WORKPLACE_VIOLENCE="WORKPLACE_VIOLENCE",T.TERRORISM="TERRORISM",T.WINDSTORM_COVERAGE="WINDSTORM_COVERAGE",T.COMMON="COMMON",T.LIQUOR_LIABILITY="LIQUOR_LIABILITY",T.ABUSE_AND_MOLESTATION="ABUSE_AND_MOLESTATION",T.SEXUAL_ABUSE="SEXUAL_ABUSE",T.TRUCKERS="TRUCKERS",T.TRANSPORTATION="TRANSPORTATION",T.FARM_PROPERTY="FARM_PROPERTY",T.FARM_EQUIPMENT="FARM_EQUIPMENT",T.FARM_LIABILITY="FARM_LIABILITY",T.LIVESTOCK_MORTALITY="LIVESTOCK_MORTALITY",T.ACCIDENTAL_DEATH_AND_DISMEMBERMENT="ACCIDENTAL_DEATH_AND_DISMEMBERMENT",T.ACCIDENT_AND_HEALTH="ACCIDENT_AND_HEALTH",T.AVIATION="AVIATION",T.CLINICAL_TRIALS="CLINICAL_TRIALS",T.CONTROL_OF_WELL="CONTROL_OF_WELL",T.CROP="CROP",T.EDUCATORS_LEGAL_LIABILITY="EDUCATORS_LEGAL_LIABILITY",T.EMPLOYEE_BENEFITS_LIABILITY="EMPLOYEE_BENEFITS_LIABILITY",T.GLASS_AND_SIGN="GLASS_AND_SIGN",T.ACCOUNTS_RECEIVABLE="ACCOUNTS_RECEIVABLE",T.WATERCRAFT="WATERCRAFT",T.HOMEOWNERS="HOMEOWNERS",T.PERSONAL_AUTO="PERSONAL_AUTO",T.PERSONAL_UMBRELLA="PERSONAL_UMBRELLA",T.DWELLING_FIRE="DWELLING_FIRE",T.MOBILE_HOME="MOBILE_HOME",T.COLLECTIONS="COLLECTIONS",T.PERSONAL_EXCESS="PERSONAL_EXCESS",T.PRIMARY_FLOOD="PRIMARY_FLOOD",T.EXCESS_FLOOD="EXCESS_FLOOD",T.ELECTRONIC_DATA_PROCESSING="ELECTRONIC_DATA_PROCESSING",T.SURETY_REPORT="SURETY_REPORT",(y=er||(er={}
15)).AI_GENERIC="AI_GENERIC",y.AI_ONGOING_OPS="AI_ONGOING_OPS",y.AI_COMPLETED_OPS="AI_COMPLETED_OPS",y.AI_LEASED_PREMISES="AI_LEASED_PREMISES",y.AI_LEASED_EQUIPMENT="AI_LEASED_EQUIPMENT",y.AI_MORTGAGEE="AI_MORTGAGEE",y.AI_VENDORS="AI_VENDORS",y.AI_ARCHITECTS_ENGINEERS="AI_ARCHITECTS_ENGINEERS",y.AI_HIRED_AUTO="AI_HIRED_AUTO",y.AI_LOSS_PAYEE="AI_LOSS_PAYEE",y.PNC="PNC",y.WOS="WOS",y.PER_PROJECT_AGG="PER_PROJECT_AGG",y.PER_LOCATION_AGG="PER_LOCATION_AGG",y.RESIDENTIAL_DEVELOPMENTS_EXCLUSION="RESIDENTIAL_DEVELOPMENTS_EXCLUSION",y.EXTERIOR_WORK_HEIGHT_EXCLUSION="EXTERIOR_WORK_HEIGHT_EXCLUSION",y.DEDUCTIBLE_LIABILITY="DEDUCTIBLE_LIABILITY",y.CROSS_LIABILITY_EXCLUSION="CROSS_LIABILITY_EXCLUSION",y.NOC_30="NOC_30",y.WRAP_UP_EXCLUSION="WRAP_UP_EXCLUSION",y.LOSS_PAYEE="LOSS_PAYEE",y.OTHER_EXCLUSIONS="OTHER_EXCLUSIONS";let gQ=e0.z.object({name:e0.z.string(),incidentClaim:gH,limit:e0.z.number().nullable(),aggregate:e0.z.number().nullable(),deductibleRetention:gq.nullable(),retroactiveDate:gW.nullable(),premium:e0.z.number().nullable()}).refine(e=>e.incidentClaim===ee.CLAIMS_MADE||null===e.retroactiveDate,{message:"retroactiveDate is only meaningful for claims-made coverage",path:["retroactiveDate"]}),g$=e0.z.object({occupancy:e0.z.string().nullable().describe("Building use or occupancy."),construction:e0.z.string().nullable().describe("Building construction type."),yearBuilt:e0.z.number().nullable().describe("Year the building was constructed."),totalAreaSqft:e0.z.number().nullable().describe("Total building area in square feet."),numberOfStories:e0.z.number().nullable().describe("Number of building stories."),roofType:e0.z.string().nullable().describe("Roof c
15onstruction or covering type."),roofUpdateYear:e0.z.number().nullable().describe("Year the roof was last updated."),protectionClass:e0.z.string().nullable().describe("Fire protection classification."),distanceToFireStation:e0.z.object({value:e0.z.number(),unit:e0.z.string()}).nullable().describe("Distance to the fire station, with stated units."),distanceToHydrant:e0.z.object({value:e0.z.number(),unit:e0.z.string()}).nullable().describe("Distance to the fire hydrant, with stated units."),sprinklerPercentage:e0.z.number().nullable().describe("Percent protected; 100 means fully sprinklered."),fireProtection:e0.z.string().nullable().describe("Fire protection systems as described."),burglarAlarm:e0.z.string().nullable().describe("Burglar alarm system as described."),fireProtectionCentralStation:e0.z.boolean().nullable().describe("Whether fire protection is connected to a central station."),burglarAlarmCentralStation:e0.z.boolean().nullable().describe("Whether the burglar alarm is connected to a central station.")}),gX=e0.z.object({id:e0.z.string(),locationNumber:e0.z.number(),buildingNumber:e0.z.number().nullable(),address:gY,description:e0.z.string().nullable(),buildingDetails:g$.nullable().describe("Optional building characteristics shared across lines. Coverage terms stay on the subject.")});(N=ea||(ea={})).BLANKET="BLANKET",N.SCHEDULED="SCHEDULED";let gJ=e0.z.object({formNumber:e0.z.string().nullable(),name:e0.z.string(),editionDate:e0.z.string().nullable(),appliesToCoverageTypes:e0.z.array(e0.z.enum(en)),applicability:e0.z.enum(ea).nullable(),endorsementTypes:e0.z.array(e0.z.enum(er)),content:e0.z.string().nullable()}),gZ=e0.z.object({coverageType:e0.z.enum(en),description:e0.z.string().nullable(),premium:e0.z.number().nullable(),namedInsuredIds:e0.z.array(e0.z.string())});(C=eo||(eo={})).POLICY="POLICY",C.PROJECT="PROJECT",C.LOCATION="LOCATION",C.OTHER="OTHER",(S=es||(es={})).PER_OCCURRENCE="PER_OCCURRENCE",S.PER_CLAIM="PER_CLAIM";let g0=e0.z.object({limit:e0.z.number(),description:e0.z.string().optional()}),g1=e0.z.object({kind:e0.z.enum(et),basis:e0.z.enum(es).optional(),bodilyInjury:e0.z.number().nullable(),propertyDamage:e0.z.number().nullable(),other:g0.nullable()}),g2=e0.z.object({incidentClaim:e0.z.enum(ee),claimsMadeRetroactiveDate:gW.nullable(),generalAggregateLimitApplies:e0.z.array(e0.z.enum(eo)),generalAggregateLimitAppliesOther:e0.z.string().nullable(),eachOccurrence:gV,damageToRentedPremises:gV,medicalExpense:gV,personalAndAdvertisingInjury:gV,generalAggregate:gV,productsCompletedOperationsAggregate:gV,deductibleRetention:g1.nullable()}).refine(e=>e.generalAggregateLimitApplies.includes(eo.OTHER)===(null!==e.generalAggregateLimitAppliesOther),{message:"generalAggregateLimitAppliesOther is required exactly when generalAggregateLimitApplies includes OTHER",path:["generalAggregateLimitAppliesOther"]}).refine(e=>e.incidentClaim===ee.CLAIMS_MADE||null===e.claimsMadeRetroactiveDate,{message:"claimsMadeRetroactiveDate is only meaningful for claims-made coverage",path:["claimsMadeRetroactiveDate"]}).describe("CGL: Coverages A, B, and C share one trigger and general aggregate. Empty generalAggregateLimitApplies means POLICY; multiple bases are allowed. OTHER requires generalAggregateLimitAppliesOther. Limits are numbers, INCLUDED, or null. Null does not establish exclusion; exclusion evidence stays on policy forms."),g5=e0.z.object({eachEmployee:gV,aggregate:gV,deductibleRetention:gq.nullable(),retroactiveDate:gW.nullable()}),g3=e0.z.object({incidentClaim:gH,eachCommonCause:gV,aggregate:gV,deductibleRetention:gq.nullable(),retroactiveDate:gW.nullable()}).refine(e=>e.incidentClaim===ee.CLAIMS_MADE||null===e.retroactiveDate,{message:"retroactiveDate is only meaningful for claims-made coverage",path:["retroactiveDate"]}),g4=e0.z.object({eachAccident:e0.z.number().nullable(),hired:e0.z.number().nullable(),nonOwned:e0.z.number().nullable()}).describe("Hired and non-owned liability written on GL. Fill the combined eachAccident or separate hired and nonOwned limits as printed.");(R=el||(el={})).SALES="SALES",R.RECEIPTS="RECEIPTS",R.PAYROLL="PAYROLL",R.AREA="AREA",R.COST="COST",R.ADMISSIONS="ADMISSIONS",R.UNITS="UNITS",R.FRONTAGE="FRONTAGE",R.OTHER="OTHER",(L=ec||(ec={})).IF_ANY="IF_ANY",L.FLAT="FLAT",L.AT_AUDIT="AT_AUDIT";let g9=e0.z.object({locationNumber:e0.z.number().nullable(),buildingNumber:e0.z.number().nullable(),classCode:e0.z.string().nullable(),classification:e0.z.string().nullable(),premiumBasis:e0.z.enum
15(el),premiumBasisOther:e0.z.string().nullable(),exposure:e0.z.union([e0.z.number(),e0.z.enum(ec)]).nullable(),ratePremOps:gV,rateProdOps:gV,premiumPremOps:e0.z.number().nullable(),premiumProdOps:e0.z.number().nullable()}).refine(e=>e.premiumBasis===el.OTHER==(null!==e.premiumBasisOther),{message:"premiumBasisOther is required exactly when premiumBasis is OTHER",path:["premiumBasisOther"]}).refine(e=>null===e.buildingNumber||null!==e.locationNumber,{message:"buildingNumber requires locationNumber",path:["buildingNumber"]}).describe("GL hazard schedule. Read premiumBasis from the printed basis, never infer from classification. RECEIPTS differs from SALES. OTHER requires premiumBasisOther. Null location is allowed for composite, flat-charge, or off-premises rows. Premiums are stored, not calculated from rates."),g6=gZ.extend({coverageType:e0.z.literal(en.GENERAL_LIABILITY),cgl:g2,ebl:g5.nullable(),liquor:g3.nullable(),hnoa:g4.nullable(),additionalCoverages:e0.z.array(gQ),hazards:e0.z.array(g9),additionalInterests:e0.z.array(gK)}).describe("General Liability: cgl is the main grant. ebl, liquor, and hnoa are separate nullable grants. Additional coverages are extensions riding on CGL; standalone policies remain separate lines. Locations and forms are shared at policy level. Hazards are rated class rows.");(D=ed||(ed={}
15)).BUILDING="BUILDING",D.BUSINESS_PERSONAL_PROPERTY="BUSINESS_PERSONAL_PROPERTY",D.STOCK="STOCK",D.TENANT_IMPROVEMENTS_AND_BETTERMENTS="TENANT_IMPROVEMENTS_AND_BETTERMENTS",D.LEASEHOLD_INTEREST="LEASEHOLD_INTEREST",D.APPURTENANT_STRUCTURES="APPURTENANT_STRUCTURES",D.HOUSEHOLD_PERSONAL_PROPERTY="HOUSEHOLD_PERSONAL_PROPERTY",D.PROPERTY_OF_OTHERS="PROPERTY_OF_OTHERS",D.SCHEDULED_ITEM="SCHEDULED_ITEM",D.BUSINESS_INCOME="BUSINESS_INCOME",D.RENTAL_VALUE="RENTAL_VALUE",D.EXTRA_EXPENSE="EXTRA_EXPENSE",D.BUSINESS_INCOME_AND_EXTRA_EXPENSE="BUSINESS_INCOME_AND_EXTRA_EXPENSE",D.LOSS_OF_USE="LOSS_OF_USE",D.ELECTRONIC_DATA_PROCESSING="ELECTRONIC_DATA_PROCESSING",D.OUTDOOR_SIGNS="OUTDOOR_SIGNS",D.FENCE="FENCE",D.GAZEBO="GAZEBO",D.INVENTORY_OR_APPRAISALS="INVENTORY_OR_APPRAISALS",D.ORDINANCE_OR_LAW_A="ORDINANCE_OR_LAW_A",D.ORDINANCE_OR_LAW_B="ORDINANCE_OR_LAW_B",D.ORDINANCE_OR_LAW_C="ORDINANCE_OR_LAW_C",D.ORDINANCE_OR_LAW_B_AND_C="ORDINANCE_OR_LAW_B_AND_C",D.ORDINANCE_OR_LAW_UNSPECIFIED="ORDINANCE_OR_LAW_UNSPECIFIED",D.EQUIPMENT_BREAKDOWN="EQUIPMENT_BREAKDOWN",D.EARTHQUAKE="EARTHQUAKE",D.FLOOD="FLOOD",D.SEWER_BACKUP="SEWER_BACKUP",D.OTHER="OTHER";let g8=e0.z.object({causeOfLoss:e0.z.string().nullable().describe("Stated coverage or cause, e.g. Special, All Other Perils, Wind/Hail, or Named Storm. Null when unstated."),deductible:e0.z.string().nullable().describe("Complete deductible wording for this entry, including amount, percentage, basis, minimum, maximum, or waiting period. Null when unstated."),coinsurance:e0.z.string().nullable().describe('Complete coinsurance wording for this cause, e.g. "80%", "Waived", or "Not applicable". Null means unstated and inherits applicable blanket coinsurance; an explicit subject value overrides it.')}),g7=e0.z.object({locationNumber:e0.z.number().nullable().describe("→ policy location. Adapter resolves Epic’s premise reference."),buildingNumber:e0.z.number().nullable().describe("→ building at that location. Requires locationNumber."),subjectType:e0.z.enum(ed).describe("Enum; select a subject type from the values below. The Epic adapter maps it to the appropriate subject code. For OTHER, use subjectTypeOther."),subjectTypeOther:e0.z.string().nullable().describe("Subject wording when subjectType is OTHER. Must be null for every other subjectType."),limit:e0.z.string().nullable().describe("Stated subject limit, preserving full wording. For a blanket member, a separately stated subject restriction; the blanket limit remains shared. Null when unstated."),reportedValue:e0.z.string().nullable().describe("Stated reported value of this subject, preserving full wording. Separate from its limit and any shared blanket limit. Null when unstated; never inherited from a blanket."),blanketNumber:e0.z.number().nullable().describe("→ blanketLimits.blanketNumber on this Property line, when linked to a blanket."),valuation:e0.z.string().nullable().describe('Stated valuation wording, e.g. "Replacement Cost", "Actual Cash Value", or "Agreed Amount and Replacement Cost". Null when unstated.'),condition:e0.z.string().nullable().describe("Subject-specific conditions and exceptions. Null when no condition is stated."),inflationGuard:e0.z.string().nullable().describe('Complete inflation-guard wording, e.g. "4% annually". Null when unstated; inherits applicable blanket terms.'),causesOfLoss:e0.z.array(g8).describe("Subject-specific causes and terms. Empty means no subject-specific entries; applicable blanket entries still apply.")}).refine(e=>null===e.buildingNumber||null!==e.locationNumber,{message:"buildingNumber requires locationNumber",path:["buildingNumber"]}).refine(e=>{var t;return e.subjectType===ed.OTHER?!!(null==(t=e.subjectTypeOther)?void 0:t.trim()):null===e.subjectTypeOther},{message:"subjectTypeOther is required for OTHER and must be null otherwise",path:["subjectTypeOther"]}),Ie=e0.z.object({blanketNumber:e0.z.number().describe("Blanket identifier, unique within the Property line. Referenced by subjects."),name:e0.z.string().nullable().describe('Stated blanket name, e.g. "Blanket Building and Contents". Null when unstated.'),limit:e0.z.string().nullable().describe("Stated shared limit, stored once for the blanket; preserve the complete limit wording. Null when unstated."),valuation:e0.z.string().nullable().describe('Shared valuation wording, e.g. "Replacement Cost". Null when unstated.'),inflationGuard:e0.z.string().nullable().describe('Complete shared inflation-guard wording, e.g. "4% annually". Null when unstated.'),causesOfLoss:e0.z.array(g8).describe("Shared causes, deductibles, and coinsurance. Empty means no shared entries captured."),condition:e0.z.string().nullable().describe("Shared conditions, limit applicability, and exceptions. Null when no condition is stated.")}),It=e0.z.object({coverageName:e0.z.string().describe('Coverage or extension name, e.g. "Accounts Receivable" or "Ordinance or Law Coverage B".'),limit:e0.z.string().nullable().describe('Complete stated limit wording, including amounts, percentages, time limits, or "Included". Null when unstated.'),retention:e0.z.string().nullable().describe("Complete deductible, retention, or waiting-period wording. Null when unstated."),condition:e0.z.string().nullable().describe('Applicability, requirements, restrictions, and exceptions. Preserve locations, buildings, and limit sharing, e.g. "Separate limit at each covered location" or "Shared across locations 1 and 3 per occurrence". Null when unstated.')}),Ii=gK.safeExtend({description:e0.z.string().nullable().describe("Loan details, rank, and applicability.")}),In=gZ.extend({coverageType:e0.z.literal(en.COMMERCIAL_PROPERTY),subjects:e0.z.array(g7),blanketLimits:e0.z.array(Ie),additionalCoverages:e0.z.array(It),additionalInterests:e0.z.array(Ii)}).superRefine((e,t)=>
15{let i=new Set;e.blanketLimits.forEach((e,n)=>{i.has(e.blanketNumber)&&t.addIssue({code:"custom",path:["blanketLimits",n,"blanketNumber"],message:"blanketNumber must be unique within the line"}),i.add(e.blanketNumber)}),e.subjects.forEach((e,n)=>{null===e.blanketNumber||i.has(e.blanketNumber)||t.addIssue({code:"custom",path:["subjects",n,"blanketNumber"],message:"blanketNumber must reference a blanket on this line"})})}).describe("Property: subjects reference policy locations by locationNumber and buildingNumber. Building characteristics live in policy.locations.buildingDetails. Unstated subject terms inherit applicable blanket terms; explicit subject exceptions take precedence. Match causes by meaning, never array position, and do not guess unnamed causes. A blanket limit stays shared and is never copied to subject limits. reportedValue is separate and never inherited. Missing location numbers do not imply blanket membership. Follow the source's subject or extension placement without duplicating coverage.");(P=eu||(eu={})).LIABILITY="LIABILITY",P.MEDICAL_PAYMENTS="MEDICAL_PAYMENTS",P.PERSONAL_INJURY_PROTECTION="PERSONAL_INJURY_PROTECTION",P.ADDITIONAL_PERSONAL_INJURY_PROTECTION="ADDITIONAL_PERSONAL_INJURY_PROTECTION",P.UNINSURED_MOTORIST="UNINSURED_MOTORIST",P.UNDERINSURED_MOTORIST="UNDERINSURED_MOTORIST",P.UNINSURED_AND_UNDERINSURED_MOTORIST="UNINSURED_AND_UNDERINSURED_MOTORIST",P.COMPREHENSIVE="COMPREHENSIVE",P.COLLISION="COLLISION",P.SPECIFIED_CAUSES_OF_LOSS="SPECIFIED_CAUSES_OF_LOSS",P.TOWING_AND_LABOR="TOWING_AND_LABOR",P.HIRED_AUTO_PHYSICAL_DAMAGE="HIRED_AUTO_PHYSICAL_DAMAGE",P.OTHER="OTHER";let Ir=e0.z.object({combinedSingleLimit:e0.z.string().nullable().describe("Combined bodily-injury and property-damage limit. Null when only split limits are stated."),bodilyInjuryPerPerson:e0.z.string().nullable().describe("Bodily-injury limit for one person."),bodilyInjuryPerAccident:e0.z.string().nullable().describe("Bodily-injury limit for one accident."),propertyDamagePerAccident:e0.z.string().nullable().describe("Property-damage limit for one accident."),symbols:e0.z.array(e0.z.string()).describe("Printed covered-auto codes. Empty when unstated."),deductible:e0.z.string().nullable().describe("Complete deductible wording, including separate injury and property amounts."),condition:e0.z.string().nullable().describe("Every other stated liability term, as worded, e.g. hired and non-owned auto details, state variations, separately stated limits, limit sharing, and exclusions.")}),Ia=e0.z.object({limit:e0.z.string().nullable().describe('Complete stated limit or "Included". Preserve split amounts, labels, and application basis.'),symbols:e0.z.array(e0.z.string()).describe("Printed covered-auto codes. Preserve custom codes; describe their meaning in condition. Empty when unstated."),deductible:e0.z.string().nullable().describe("Complete deductible wording, including percentages, minimums, and application basis."),condition:e0.z.string().nullable().describe("Applicable states, limits shared with another coverage, exclusions, and other qualifications.")}),Io=e0.z.object({limit:e0.z.string().nullable().describe("Stated physical-damage limit, including any cap or stated amount."),symbols:e0.z.array(e0.z.string()).describe("Printed covered-auto codes. Empty when unstated."),deductible:e0.z.string().nullable().describe("Complete deductible wording. For hired autos, retain separately labeled comprehensive, collision, and specified-causes amounts."),valuation:e0.z.string().nullable().describe('Stated valuation, e.g. "Actual Cash Value", "Stated Amount", or "Replacement Cost".'),condition:e0.z.string().nullable().describe("Applicability, state variations, limit sharing, and other qualifications.")}),Is=e0.z.object({coverageType:e0.z.enum(eu).describe("Type of coverage; select from the enum below."),coverageTypeOther:e0.z.string().nullable().describe("Required for OTHER; null for every other coverageType."),symbols:e0.z.array(e0.z.string()).describe('Covered-auto designation codes as printed, e.g. ["2", "7"]. Keep custom codes; describe their meaning in condition. Empty when unstated.'),state:e0.z.string().nullable().describe("State whose coverage terms this row records, when specified. Null when unstated; preserve other geographic restrictions in condition."),limit:e0.z.string().nullable().describe('Other stated limit wording or inclusion status, e.g. "$5,000 per person", "Actual cash value", or "Included". Use the dedicated fields for c
15ombined and split liability amounts.'),combinedSingleLimit:e0.z.string().nullable().describe("Combined bodily-injury and property-damage limit, when stated. Keep separate from split limits; do not duplicate in limit."),bodilyInjuryPerPerson:e0.z.string().nullable().describe("Stated bodily-injury limit for one person. Null when unstated."),bodilyInjuryPerAccident:e0.z.string().nullable().describe("Stated bodily-injury limit for one accident. Null when unstated."),propertyDamagePerAccident:e0.z.string().nullable().describe("Stated property-damage limit for one accident. Null when unstated."),deductible:e0.z.string().nullable().describe("Complete deductible wording, including separate injury and property amounts, percentages, minimums, or application basis."),valuation:e0.z.string().nullable().describe('Stated physical-damage valuation, e.g. "Actual Cash Value", "Stated Amount", or "Replacement Cost".'),condition:e0.z.string().nullable().describe("Applicability, exclusions, limits shared with another coverage, and other exceptions. Null when unstated.")}).refine(e=>{var t;return e.coverageType===eu.OTHER?!!(null==(t=e.coverageTypeOther)?void 0:t.trim()):null===e.coverageTypeOther},{message:"coverageTypeOther is required for OTHER and must be null otherwise",path:["coverageTypeOther"]}),Il=e0.z.object({vehicleNumber:e0.z.string().nullable().describe("Scheduled vehicle number. Unique within the line when present; do not invent when unstated."),vin:e0.z.string().nullable().describe("Vehicle identification number as stated. Used to match vehicles across sources; null when absent."),year:e0.z.number().nullable().describe("Model year."),make:e0.z.string().nullable().describe("Manufacturer."),model:e0.z.string().nullable().describe("Vehicle model."),plateNumber:e0.z.string().nullable().describe("Registration plate number."),garagingAddress:gY.nullable().describe("Where the vehicle is principally kept. Uses the shared Address type; PC reads its city and ZIP."),classCode:e0.z.string().nullable().describe("Insurance classification code. Preserve leading zeros."),radiusInMiles:e0.z.number().nullable().describe("Stated operating radius in miles."),costNew:e0.z.string().nullable().describe("Original cost new. Keep an insured stated amount in the applicable coverage limit instead. Null when unstated."),premium:e0.z.number().nullable().describe("Total premium stated for this vehicle."),coverages:e0.z.array(Is).describe("Vehicle-specific coverage terms, including comprehensive and collision deductibles."),condition:e0.z.string().nullable().describe("Vehicle use, ownership, valuation qualifications, or other schedule details not captured above.")}),Ic=e0.z.object({driverNumber:e0.z.string().nullable().describe("Scheduled driver number. Unique within the line when present; null when unstated."),name:e0.z.string().describe("Driver’s full name."),dateOfBirth:gW.nullable().describe("ISO date when stated. PC projects this to its display format."),licenseNumber:e0.z.string().nullable().describe("Driver’s license number."),licenseState:e0.z.string().nullable().describe("State or province that issued the license."),status:e0.z.string().nullable().describe("Stated driver status, e.g. Included, Excluded, Deferred, Unrated, or Unlicensed. Null when unstated."),hireDate:gW.nullable().describe("ISO hire date when stated."),yearLicensed:e0.z.number().nullable().describe("Year first licensed, when stated."),yearsExperience:e0.z.number().nullable().describe("Stated years of driving experience."),vehicleNumber:e0.z.string().nullable().describe("→ vehicles.vehicleNumber when assigned to one scheduled vehicle. Other assignments go in condition."),condition:e0.z.string().nullable().describe("Driver restrictions, assignments, and other qualifications. Null when unstated.")}),Id=e0.z.object({coverageName:e0.z.string().describe('Extension name, e.g. "Rental Reimbursement", "Trailer Interchange", or "Auto Loan Gap".'),limit:e0.z.string().nullable().describe('Complete stated limit wording, including daily and total caps, percentages, or "Included".'),retention:e0.z.string().nullable().describe("Complete deductible, retention, or waiting-period wording."),symbols:e0.z.array(e0.z.string()).describe("Covered-auto 
15symbols stated for this extension. Empty when unstated."),condition:e0.z.string().nullable().describe("Applicable states, vehicles, people, coverage basis, shared limits, and other restrictions. Include any stated vehicle numbers or descriptions here. Null when unstated.")}),Iu=e0.z.object({name:e0.z.string().describe("Named person or organization."),interestTypes:gK.shape.interestTypes.describe("Roles using the existing GL enum, e.g. LOSS_PAYEE, LESSOR, LIENHOLDER, or ADDITIONAL_INSURED. At least one; sorted alphabetically."),interestTypeOther:e0.z.string().nullable().describe("Required when interestTypes includes OTHER; otherwise null."),address:gY.nullable().describe("The party’s own address."),vehicleNumber:e0.z.string().nullable().describe("→ vehicles.vehicleNumber when the interest applies to one scheduled vehicle."),description:e0.z.string().nullable().describe("Loan or lease details, other vehicle applicability, and interest conditions. Null when unstated.")}).refine(e=>{var t;return e.interestTypes.includes(ei.OTHER)?!!(null==(t=e.interestTypeOther)?void 0:t.trim()):null===e.interestTypeOther},{message:"interestTypeOther is required exactly when interestTypes includes OTHER",path:["interestTypeOther"]}),Im=gZ.extend({coverageType:e0.z.literal(en.BUSINESS_AUTO),liability:Ir.nullable().describe("Liability limits, covered-auto symbols, and deductible."),medicalPayments:Ia.nullable().describe("Auto medical payments."),personalInjuryProtection:Ia.nullable().describe("Personal injury protection."),additionalPersonalInjuryProtection:Ia.nullable().describe("Additional personal injury protection."),uninsuredMotorist:Ia.nullable().describe("Separately stated uninsured motorist coverage."),underinsuredMotorist:Ia.nullable().describe("Separately stated underinsured motorist coverage."),uninsuredAndUnderinsuredMotorist:Ia.nullable().describe("Combined coverage, only when the source states it together."),comprehensive:Io.nullable().describe("Shared comprehensive terms; vehicle terms may override."),collision:Io.nullable().describe("Shared collision terms; vehicle terms may override."),specifiedCausesOfLoss:Io.nullable().describe("Shared specified-causes-of-loss terms."),towingAndLabor:Ia.nullable().describe("Standard towing and labor."),hiredAutoPhysicalDamage:Io.nullable().describe("Hired-auto physical-damage terms."),condition:e0.z.string().nullable().describe("Terms applying across coverages. Coverage-specific terms stay in that coverage’s condition."),vehicles:e0.z.array(Il),drivers:e0.z.array(Ic),additionalCoverages:e0.z.array(Id),additionalInterests:e0.z.array(Iu)}).superRefine((e,t)=>{let i=new Set;e.vehicles.forEach((e,n)=>{null!==e.vehicleNumber&&(i.has(e.vehicleNumber)&&t.addIssue({code:"custom",path:["vehicles",n,"vehicleNumber"],message:"vehicleNumber must be unique within the line"}),i.add(e.vehicleNumber))});let n=new Set;for(let r of(e.drivers.forEach((e,i)=>{null!==e.driverNumber&&(n.has(e.driverNumber)&&t.addIssue({code:"custom",path:["drivers",i,"driverNumber"],message:"driverNumber must be unique within the line"}),n.add(e.driverNumber))}),["drivers","additionalInterests"]))e[r].forEach((e,n)=>{null===e.vehicleNumber||i.has(e.vehicleNumber)||t.addIssue({code:"custom",path:[r,n,"vehicleNumber"],message:"vehicleNumber must reference a vehicle on this line"})})}).describe("Business Auto: named coverage objects are siblings; no line-level coverages list. Null means unstated, not excluded. Keep combined and split liability amounts separate. Use combined UM and UIM only for terms stated together, without duplicating them in separate objects. Preserve state variations in condition. Hired and non-owned liability use liability.symbols, with their other stated terms in liability.condition; do not invent additional limits. Vehicle terms override only explicitly stated applicable shared terms. Empty vehicle coverages do not imply uninsured. Additional coverage vehicle applicability goes in condition; additional interests reference vehicleNumber. Policy forms hold endorsement evidence."),Ip=e0.z.object({statesCovered:e0.z.array(e0.z.string()).describe("States explicitly covered under Item 3A / Part One. Empty when unstated."),otherStatesInsurance:e0.z.string().nullable().describe('Exact Item 3C / Part Three Other States Insurance provision, including "None" and exclusions. Do not substitute designated states from another end
15orsement.'),perStatute:e0.z.boolean().nullable().describe("Whether the source expressly states statutory workers compensation benefits. Do not infer true from the line type; null means unstated."),condition:e0.z.string().nullable().describe("Other stated workers compensation terms, exclusions, state-specific variations, and medical or indemnity deductibles. These are separate from the employers liability deductible.")}),IE=e0.z.object({eachAccident:e0.z.string().nullable().describe("Bodily injury by accident, each accident limit, preserving stated wording."),diseaseEachEmployee:e0.z.string().nullable().describe("Bodily injury by disease, each employee limit. PC bodilyInjuryByDiseaseEachDisease means each employee, not each disease."),diseasePolicyLimit:e0.z.string().nullable().describe("Bodily injury by disease, policy limit, separate from the each-employee limit."),deductible:e0.z.string().nullable().describe("Complete employers liability deductible wording, including amount and basis. Do not copy state medical or indemnity deductibles or terms from other lines."),condition:e0.z.string().nullable().describe("Other stated employers liability terms, exclusions, separately stated premium, coinsurance, and state-specific qualifications.")}),Ig=e0.z.object({state:e0.z.string().nullable().describe("State of this classification row. Null when unstated."),locationNumber:e0.z.number().nullable().describe("Reference to policy.locations[].locationNumber. Null for a locationless state summary; do not invent location 0. Addresses stay on policy.locations, without duplicating payroll by building."),classCode:e0.z.string().nullable().describe("Complete printed WC class code, preserving leading zeros and numeric suffixes: 5183-2 and 5183-3 are distinct."),classification:e0.z.string().nullable().describe("Printed classification or duties description. PC scheduleOfOperations.description."),payroll:e0.z.string().nullable().describe('Estimated annual payroll or remuneration for this row, including qualified wording such as "If any". Never substitute historical remuneration.'),baseRate:e0.z.string().nullable().describe("Printed manual/base rate and its basis. A lone rate column maps here unless explicitly labeled net/final/modified."),netRate:e0.z.string().nullable().describe("Net/final/modified rate only when explicitly stated. Never calculate it from payroll, premium, or experience modification; do not substitute it for Epic's base rate."),premium:e0.z.number().nullable().describe("Stated premium for this classification row, not calculated from payroll and rate. Retain its stated manual, estimated annual, net or final basis and qualifications in condition."),fullTimeEmployees:e0.z.number().int().nonnegative().nullable().describe("Explicit full-time employee count for this row. Null when unstated."),partTimeEmployees:e0.z.number().int().nonnegative().nullable().describe("Explicit part-time employee count for this row. Null when unstated."),numberOfEmployees:e0.z.number().int().nonnegative().nullable().describe("Separately stated total employee count, including Florida's single employee-count field. Do not derive it from full-time and part-time counts."),actualRemunerationPast12Months:e0.z.string().nullable().describe("Stated actual remuneration for the past 12 months. Separate from estimated annual payroll, including on Florida schedules."),condition:e0.z.string().nullable().describe("Other stated row qualifications, rating basis, scope, or distinguishing details.")}).describe("WC schedule of operations: true class-code/classification/remuneration rows only. State + location + class code starts matching but is not guaranteed unique; preserve repeated substantive rows and missing identity. Exclude rating adjustments, modifiers, waiver charges, taxes, discounts, and totals from this schedule.");(v=em||(em={})).INCLUDED="INCLUDED",v.EXCLUDED="EXCLUDED";let II=e0.z.object({name:e0.z.string().describe("Stated name of the owner, officer, partner, member, or individual."),status:e0.z.enum(em).nullable().describe("Explicit inclusion or exclusion from WC coverage. Epic NotSelected is unknown, not excluded. Preserve an excluded individual on the schedule."),state:e0.z.string().nullable().describe("State to which this individual's coverage election a
15pplies, when stated."),locationNumber:e0.z.number().nullable().describe("Reference to the applicable policy location, when explicitly stated."),title:e0.z.string().nullable().describe("Stated title or relationship; do not infer coverage status."),duties:e0.z.string().nullable().describe("Stated duties of this individual."),classCode:e0.z.string().nullable().describe("Printed WC class code for this individual, preserving zeros and suffixes."),remuneration:e0.z.string().nullable().describe("Remuneration stated for this individual; do not add it to payroll again."),ownershipPercentage:e0.z.number().min(0).max(100).nullable().describe("Stated percentage ownership, from 0 to 100. Null when unstated."),condition:e0.z.string().nullable().describe("Other stated election terms, state variations, and scope for this individual.")}),Ib=e0.z.object({state:e0.z.string().nullable().describe("State explicitly associated with the modifier. Null when a multistate source does not resolve its scope; do not guess a state."),modifier:e0.z.number().nonnegative().nullable().describe("Explicit experience/merit modification factor. 1.00 is substantive. Do not calculate from premiums, credits, or rates, and do not use as a net rate."),condition:e0.z.string().nullable().describe("Stated applicability or qualifications, including unresolved duplicate state rows.")}),I_=e0.z.object({coverageName:e0.z.string().describe("Printed coverage or extension name, preserving state qualifiers and named alternate employers. An alternate-employer extension does not establish named-insured status."),state:e0.z.string().nullable().describe("Stated state scope; null when not specified."),locationNumber:e0.z.number().nullable().describe("Reference to a specifically covered policy location. Resolve state before a location-scoped Epic write; never broaden unresolved scope to the whole line."),limit:e0.z.string().nullable().describe("Complete stated limit or inclusion/exclusion wording, preserving multiple labeled amounts and bases. Option-only extensions remain present with a null limit."),retention:e0.z.string().nullable().describe("Complete deductible or retention wording, retaining amount, mechanism, and basis. Do not infer deductible versus self-insured retention from an unlabeled number."),premium:e0.z.number().nullable().describe("Premium stated for this extension only. Null when not separately stated."),condition:e0.z.string().nullable().describe("Full applicability and other terms, including designated employers, states, locations, conditions, and exclusions. Preserve shared limits once.")}),Iz=gZ.extend({coverageType:e0.z.literal(en.WORKERS_COMPENSATION),workersCompensation:Ip.nullable().describe("Workers compensation grant and territorial scope. Null when no grant facts were captured, not evidence of exclusion."),employersLiability:IE.nullable().describe("Separate employers liability grant. Null when no grant facts were captured; preserve explicit exclusions in its terms."),hazards:e0.z.array(Ig),individuals:e0.z.array(II),experienceModifiers:e0.z.array(Ib),additionalCoverages:e0.z.array(I_).describe("WC extensions such as USL&H, voluntary/foreign voluntary, stop gap, alternate employer, waiver, and carrier enhancements. Forms remain on policy.forms; do not duplicate form-only evidence as a separate coverage without coverage-extension semantics.")}).describe("Workers Compensation: preserve Part One, Other States Insurance, and employers liability as distinct terms. Hazards, individuals, modifiers, and extensions retain their own scope and repeated rows. FEIN and named insureds live on the account; locations and forms on the policy. Named-insured overlays use namedInsuredIds. Preserve explicit zero, Included, Excluded, and qualifications; null never means zero or permission to clear Epic. Do not compute total payroll or invent unstated rates or coverage."),Ih={incidentClaim:e0.z.enum(ee).nullable().describe("Stated occurrence or claims-made trigger, independent of follow-form status. OTHER preserves a different trigger, such as Voluntary, with incidentClaimOther. Null when unstated."),incidentClaimOther:e0.z.string().nullable().describe("Required wording for an OTHER trigger; null for every other incidentClaim.")};function IA(e){var t;return e.incidentClaim===ee.OTHER?!!(null==(t=e.incidentClaimOther)?void 0:t.trim()):null===e.incidentClaimOther}let IO={message:"incidentClaimOther is required for OTHER and must be null otherwise",path:["incidentClaimOther"]},If={eachOccurrence:e0.z.string().nullable().describe("This layer's own per-occurrence or per-claim limit, retaining the stated basis."),aggregate:e0.z.string().nullable().describe("This layer's own aggregate, with its stated basis."),productsCompletedOperationsAggregate:e0.z.string().nullable().describe("This layer's products/completed operations aggregate or explicit inclusion wording."),personalAndAdvertisingInjury:e0.z.string().nullable().describe("This layer's personal/advertising injury limit, retaining its stated basis.")},IT=e0.z.object({...If,...Ih,retention:e0.z.string().nullable().describe("Complete retained-limit or self-insured-retention wording, including basis and applicability. Preserve explicit zero. Never substitute an underlying policy limit or attachment threshold."),deductible:e0.z.string().nullable().describe("Separately stated ordinary deductible and basis; distinct from retention."),coverageBasis:e0.z.string().nullable().describe("Follow Form, Self-Contained, Modified Follow Form, or other stated wording and exceptions. This is not the occurrence/claims-made trigger and does not establish every underlying term."),defenseCosts:e0.z.string().nullable().describe("Whether defense costs erode the limit or are in addition to it, retaining any conditions. Independent of first-dollar defense."),firstDollarDefense:e0.z.boolean().nullable().describe("Explicit first-dollar defense election. True means included, false excluded; null means unknown. It does not state whether defense costs erode limits."),retroactiveDate:gW.nullable().describe("Current stated claims-made retroactive date. Never substitute a proposed retroactive date or policy effective date. Preserve partial dates in condition."),condition:e0.z.string().nullable().describe("Layer restrictions, exclusions, limit sharing, and qualifications. Preserve any explicitly stated attachment threshold here, separate from retention; never calculate it from underlying limits.")}).refine(IA,IO),Iy=e0.z.object({eachEmployee:e0.z.string().nullable().describe("Own employee-benefits limit for each employee. Preserve a different stated basis in condition; do not relabel a per-claim limit as per employee."),aggregate:e0.z.string().nullable().describe("Own employee-benefits aggregate."),retainedLimit:e0.z.string().nullable().describe("Own employee-benefits retained limit and basis."),deductible:e0.z.string().nullable().describe("Separately stated employee-benefits deductible; do not replace retainedLimit."),benefitProgramName:e0.z.string().nullable().describe("Stated employee benef
15it program name."),retroactiveDate:gW.nullable().describe("Own employee-benefits retroactive date, not an underlying policy's start date."),premium:e0.z.number().nullable().describe("Premium separately stated for this grant."),condition:e0.z.string().nullable().describe("Own employee-benefits qualifications and restrictions.")}),IN=e0.z.object({limit:e0.z.string().nullable().describe("The layer's own stated motorist limit or inclusion wording."),condition:e0.z.string().nullable().describe("Motorist applicability, rejection or waiver wording, and other restrictions.")}),IC=e0.z.object({coverageName:e0.z.string().nullable().describe("Printed underlying coverage or grant name. Required for coverageType OTHER. Employers liability is a grant under WORKERS_COMPENSATION, not statutory workers compensation benefits."),policyNumber:e0.z.string().nullable().describe("Underlying policy number exactly as printed, if known."),carrierName:e0.z.string().nullable().describe("Underlying carrier as printed, if known."),writingCompanyName:e0.z.string().nullable().describe("Underlying legal underwriting company when separately stated."),effectiveDate:gW.nullable().describe("Underlying policy's stated complete start date."),expirationDate:gW.nullable().describe("Underlying policy's stated complete end date."),policyTermDescription:e0.z.string().nullable().describe("Partial dates or other policy-term wording that cannot be represented as complete dates."),condition:e0.z.string().nullable().describe("Underlying schedule scope and qualifications, including whether amounts are required minimums or observed limits, partial identity, and state/insured/location restrictions. Do not assume parent-policy location numbers identify the underlying policy's locations.")}),IS=IC.extend({coverageType:e0.z.literal(en.GENERAL_LIABILITY),...Ih,limits:e0.z.strictObject({eachOccurrence:e0.z.string().nullable(),generalAggregate:e0.z.string().nullable(),productsCompletedOperationsAggregate:e0.z.string().nullable(),personalAndAdvertisingInjury:e0.z.string().nullable(),damageToRentedPremises:e0.z.string().nullable(),medicalExpense:e0.z.string().nullable()})}).refine(IA,IO),IR=IC.extend({coverageType:e0.z.literal(en.BUSINESS_AUTO),limits:e0.z.strictObject({combinedSingleLimit:e0.z.string().nullable().describe("Combined BI/PD limit; never copy it into split bodily-injury or property-damage fields."),bodilyInjuryPerPerson:e0.z.string().nullable().describe("Explicit split BI limit per person."),bodilyInjuryPerAccident:e0.z.string().nullable().describe("Explicit split BI limit per accident."),propertyDamagePerAccident:e0.z.string().nullable().describe("Explicit split PD limit per accident.")})}),IL=IC.extend({coverageType:e0.z.literal(en.WORKERS_COMPENSATION),limits:e0.z.strictObject({eachAccident:e0.z.string().nullable(),diseaseEachEmployee:e0.z.string().nullable(),diseasePolicyLimit:e0.z.string().nullable()}).describe("Underlying employers liability limits, not statutory workers compensation benefits.")}),ID=IC.extend({coverageType:e0.z.literal(en.EMPLOYEE_BENEFITS_LIABILITY),limits:e0.z.strictObject({eachEmployee:e0.z.string().nullable().describe("Underlying each-employee limit. Do not relabel a per-claim limit; retain another stated basis in condition."),aggregate:e0.z.string().nullable(),retainedLimit:e0.z.string().nullable()}).describe("An underlying employee-benefits policy, separate from the parent layer's own ebl grant.")}),IP=IC.extend({coverageType:e0.z.enum([en.UMBRELLA_LIABILITY,en.EXCESS_LIABILITY]),limits:e0.z.strictObject(If).describe("Limits of this scheduled underlying layer, never the parent umbrella/excess line.")}),Iv=[en.GENERAL_LIABILITY,en.BUSINESS_AUTO,en.WORKERS_COMPENSATION,en.EMPLOYEE_BENEFITS_LIABILITY,en.UMBRELLA_LIABILITY,en.EXCESS_LIABILITY],IU=IC.extend({coverageType:e0.z.enum(Object.values(en).filter(e=>!Iv.some(t=>t===e))),limits:e0.z.strictObject({namedLimits:e0.z.array(e0.z.object({name:e0.z.string().describe("Printed limit label or basis, preserving the covered grant."),limit:e0.z.string().nullable().describe("Complete stated limit or inclusion wording."),condition:e0.z.string().nullable().describe("Limit-specific scope and qualifications.")})).describe("Every separately named underlying limit; not restricted to Epic's two Other slots.")})}).refine(e=>{var t;
15return e.coverageType!==en.OTHER||!!(null==(t=e.coverageName)?void 0:t.trim())},{message:"coverageName is required for OTHER underlying insurance",path:["coverageName"]}),Iw=e0.z.discriminatedUnion("coverageType",[IS,IR,IL,ID,IP,IU]).describe("Partial underlying-policy snapshot with coverage-specific limits. Retain identity-only rows with null scalar fields inside the limits object, or namedLimits: [] for an unstated named-limit schedule. Match coverage, policy number, carrier and term; never merge different policies or copy the layer's limits here. Preserve complete limit wording, including required versus observed basis, in limits/condition. No account-policy ID is required."),IB=e0.z.object({coverageName:e0.z.string().describe("Printed extension or endorsement coverage name."),limit:e0.z.string().nullable().describe("Complete per-event limit or inclusion/exclusion wording; retain labels for multiple amounts."),aggregate:e0.z.string().nullable().describe("This extension's own stated aggregate and basis."),retention:e0.z.string().nullable().describe("Complete deductible or retention wording, preserving the mechanism, basis and conditions."),...Ih,retroactiveDate:gW.nullable().describe("This coverage's own stated current retroactive date."),premium:e0.z.number().nullable().describe("Premium separately stated for this coverage."),condition:e0.z.string().nullable().describe("Coverage scope, exclusions, shared limits and qualifications; never infer from the main grant.")}).refine(IA,IO),IF=gK.safeExtend({description:e0.z.string().nullable().describe("Exact party scope and conditions. Underlying AI/waiver rights alone do not establish rights on this layer.")}),Ij={liability:IT,ebl:Iy.nullable().describe("The layer's own employee-benefits grant when evidenced, separate from underlyingInsurance. Null when no own grant is captured."),uninsuredMotorist:IN.nullable().describe("The layer's own uninsured-motorist grant, when evidenced."),underinsuredMotorist:IN.nullable().describe("The layer's own underinsured-motorist grant, when evidenced."),underlyingInsurance:e0.z.array(Iw).describe("All policies/grants scheduled beneath this layer, including specialty coverage and additional layers. Unbounded by Epic's five slots; do not collapse matching coverage names across different policies/terms."),additionalCoverages:e0.z.array(IB).describe("Line extensions such as crisis management, drop down, worldwide, pollution buy-back and TRIA. Follow-form status belongs in liability.coverageBasis; a distinct purchased extension remains its own row."),additionalInterests:e0.z.array(IF)},IM=gZ.extend({coverageType:e0.z.literal(en.UMBRELLA_LIABILITY),...Ij}).describe("Umbrella Liability: the main liability and optional grants belong to this layer; underlyingInsurance records separate scheduled policies. Forms and locations stay at policy level. Preserve wording, explicit zero/false, exclusions and unknowns without inferring coverage or copying shared limits."),Ik=gZ.extend({coverageType:e0.z.literal(en.EXCESS_LIABILITY),...Ij}).describe("Excess Liability: retain this policy/layer separately from umbrella or other excess layers. The main liability and optional grants are its own; underlyingInsurance records separate scheduled policies. Forms and locations stay at policy level. Never infer an underlying term from follow-form wording alone."),Ix=e0.z.object({totalScheduledLimit:e0.z.string().nullable().describe("Printed total scheduled limit, preserving its full wording. Store the stated amount even when the referenced equipment report is absent; never calculate it from a partial schedule. A separately stated catastrophe limit belongs in additionalCoverages with its scope."),deductible:e0.z.string().nullable().describe("Complete shared deductible wording, including amount, percentage, basis, minimum or maximum. Null when unstated; an explicit item exception takes precedence."),coinsurance:e0.z.string().nullable().describe('Shared coinsurance wording, e.g. "80%", "Waived", or "Not applicable". Null means unstated, not waived.'),valuation:e0.z.string().nullable().describe('Stated shared valuation, e.g. "Actual Cash Value" or "Replacement Cost". Null when unknown; never default to Actual Cash Value because a limit or deductible is present.'),coverageBasis:e0.z.string().nullable().describe("Stated scheduled or blanket coverage basis. Do not infer blanket membership or independent per-item limits from the total amount."),causeOfLoss:e0.z.string().nullable().describe("Complete stated peril wording, such as All Risks or Named Perils Including Theft. Preserve peril
15-specific qualifications in condition."),condition:e0.z.string().nullable().describe("Shared applicability, exclusions, limit sharing and peril-specific exceptions. Null when unstated.")}),IG=e0.z.object({itemNumber:e0.z.string().min(1).nullable().describe("Printed schedule item number. Preserve leading zeros and repeated numbers across locations or schedule sections; do not invent a number when absent. Match physical equipment using serial and source context, not number alone."),serialNumber:e0.z.string().nullable().describe("Equipment serial as stated. A real serial is the strongest cross-source identity; PENDS and TBD are placeholders, not unique physical identifiers."),description:e0.z.string().nullable().describe("Equipment description as printed; null when only separate make/model fields exist."),manufacturer:e0.z.string().nullable().describe("Stated manufacturer or make, including when explicitly identified in the equipment description."),model:e0.z.string().nullable().describe("Stated model, including when explicitly identified in the equipment description."),type:e0.z.string().nullable().describe("Stated equipment category, e.g. Backhoe or Generator."),modelYear:e0.z.number().int().nullable().describe("Stated model year; null when unknown."),limitOfInsurance:e0.z.string().nullable().describe("Complete stated insured amount for this item. Separate from acquisition cost, premium and the shared total; never copy the total scheduled or category limit here. A reported or inventory value under a blanket is not an independent item limit: retain that labeled value in condition unless the source establishes an item limit."),deductible:e0.z.string().nullable().describe("Complete item-specific deductible, including percentages and basis. Null when unstated; retain applicable shared terms without copying them here."),coinsurance:e0.z.string().nullable().describe("Item-specific coinsurance wording, including Waived. Null when unstated."),valuation:e0.z.string().nullable().describe("Item-specific valuation wording. Null when unstated; never infer a method."),owned:e0.z.boolean().nullable().describe("Whether the insured owns this equipment when explicitly stated. Unknown is null."),purchaseCondition:e0.z.string().nullable().describe("Stated New or Used condition at purchase, separate from insurance conditions."),datePurchased:gW.nullable().describe("Complete purchase date when stated. Preserve a partial date in condition; do not invent a day."),capacity:e0.z.string().nullable().describe("Stated equipment capacity, preserving units."),condition:e0.z.string().nullable().describe("Item-specific applicability, locations, ownership qualifications and other exceptions. Preserve unsupported structured terms here rather than dropping them.")}),IY=e0.z.object({description:e0.z.string().min(1).describe("Printed unscheduled or blanket equipment category. Keep named inclusion markers even when no amount is stated; rented from and rented to others are different categories."),amountOfInsurance:e0.z.string().nullable().describe("Complete category aggregate limit or inclusion wording; not a per-item limit."),maximumItem:e0.z.string().nullable().describe("Stated per-item cap within this category. Null when no separate cap is stated."),coinsurance:e0.z.string().nullable().describe("Category-specific coinsurance wording."),deductible:e0.z.string().nullable().describe("Complete category-specific deductible wording; null when unstated."),valuation:e0.z.string().nullable().describe("Category-specific valuation wording."),condition:e0.z.string().nullable().describe("Category applicability, shared-limit relationships, inclusion markers and exceptions. Null when unstated.")}),IW=e0.z.object({coverageName:e0.z.string().min(1).describe("Stated extension or sublimit name, e.g. Rental Reimbursement or Debris Removal."),limit:e0.z.string().nullable().describe('Complete limit wording, including amounts, percentages, time limits, "Included" or "Excluded". Null when unstated.'),retention:e0.z.string().nullable().describe("Complete deductible, retention or waiting-period wording; null when unstated."),premium:e0.z.number().nullable().describe("Separately stated extension premium. Never interpret this amount as a limit."),condition:e0.z.string().nullable().describe("Applicability, equipment, locations, shared limits and exceptions. Distinguish rented or borrowed from others from equipment rented or loaned to others. A combined grant keeps one shared limit.")}),IV=gK.safeExtend({equipmentItemNumber:e0.z.string().min(1).nullable().describe("→ scheduledEquipment.itemNumber only when explicitly applicable to exactly one captured item with that number. Null for repeated or unmatched numbers; preserve serial, location, schedule section and multiple equipment applicability in description without creating insured items."),description:e0.z.string().nullable().describe("Loan, lease, lender rank, equipment applicability and other interest conditions.")}),IH=[g6,In,Im,Iz,IM,Ik,gZ.extend({coverageType:e0.z.literal(en.CONTRACTORS_EQUIPMENT),coverage:Ix.describe("Shared coverage terms for this line."),scheduledEquipment:e0.z.array(IG).describe("Individually scheduled equipment. An absent referenced report yields no invented rows. Equipment named solely in an interest endorsement is not an insured item without coverage evidence."),unscheduledEquipment:e0.z.array(IY).describe("Unscheduled or blanket equipment categories and their separate per-item caps."),additionalCoverages:e0.z.array(IW).describe("Extensions and sublimits. Do not duplicate a category already represented in unscheduledEquipment merely because another source places it in an extensions table."),additionalInterests:e0.z.array(IV)}).superRefine((e,t)=>
15{let i=new Map;e.scheduledEquipment.forEach(e=>{var t;null!==e.itemNumber&&i.set(e.itemNumber,(null!=(t=i.get(e.itemNumber))?t:0)+1)}),e.additionalInterests.forEach((e,n)=>{null!==e.equipmentItemNumber&&1!==i.get(e.equipmentItemNumber)&&t.addIssue({code:"custom",path:["additionalInterests",n,"equipmentItemNumber"],message:"equipmentItemNumber must reference exactly one scheduled item on this line"})})}).describe("Contractors Equipment: keep shared, item and category limits distinct. Explicit item or category exceptions override applicable shared terms; missing values do not imply zero, exclusion or coverage eligibility. Preserve wording and unknown valuation or ownership. Keep a coverage fact once even when sources place it in different schedule or extension tables. Do not infer equipment identity from schedule number alone. Policy forms hold endorsement evidence; named interests never create insured equipment. This line is separate from general Inland Marine, Farm Equipment and Equipment Breakdown.")],Iq=new Set(IH.map(e=>e.shape.coverageType.value)),IK=e0.z.object({coverageName:e0.z.string().describe("Printed insuring agreement, coverage part, extension or sublimit."),limit:e0.z.string().nullable().describe("Per-claim or per-occurrence limit as printed, or Included / Not covered. Keep labels when several amounts print."),aggregate:e0.z.string().nullable().describe("This row's own aggregate, or that it shares the line's aggregate."),retention:e0.z.string().nullable().describe("Deductible, retention or waiting period as printed, with its basis."),incidentClaim:e0.z.enum(ee).nullable().describe("Stated trigger. OTHER keeps the wording in condition. Null when unstated."),retroactiveDate:e0.z.string().nullable().describe("Retroactive or prior-acts date as printed: 2019-07-01, Full Prior Acts, Inception."),premium:e0.z.number().nullable().describe("Premium stated for this row."),condition:e0.z.string().nullable().describe("Scope, exclusions and qualifications as printed; never inferred from another row.")}),IQ=gZ.extend({coverageType:e0.z.enum(Object.values(en).filter(e=>!Iq.has(e))),description:e0.z.string().nullable().describe("Printed line or coverage-part name. Required when coverageType is OTHER."),coverages:e0.z.array(IK).describe("One row per insuring agreement, coverage part, extension or sublimit, in printed order. Cyber: breach response, network security and privacy liability, regulatory and PCI, media, extortion, data recovery, business interruption, social engineering and funds transfer fraud, tech E&O. D&O: Side A, B and C, investigation costs. EPL: third-party, wage and hour, workplace violence. Fiduciary: HIPAA and other penalties, voluntary compliance. Crime: employee theft, forgery or alteration, inside and outside premises, computer and funds transfer fraud, social engineering, ERISA fidelity. Kidnap and ransom: ransom, in transit, crisis response. Inland marine, cargo and ocean marine: each class, item, location, mode or conveyance; war and SR&CC."),terms:e0.z.array(e0.z.object({name:e0.z.string().describe("Printed label."),value:e0.z.string().nullable().describe("Complete stated amount or wording."),condition:e0.z.string().nullable().describe("Applicability and qualifications.")})).describe("Line-level terms that belong to no single row: policy or shared aggregate, retention, pending and prior litigation date, extended reporting period, defense inside or outside limits, hammer clause, coinsurance, territory, valuation, subjectivities."),schedules:e0.z.array(e0.z.object({name:e0.z.string().describe("Printed schedule title."),columns:e0.z.array(e0.z.string()).min(1).describe("Source column headers in printed order."),rows:e0.z.array(e0.z.array(e0.z.string().nullable())).describe("Every source row, one cell per column, null when blank.")}).refine(e=>e.rows.every(t=>t.length===e.columns.length),{message:"Each row needs one cell per column.",path:["rows"]})).describe("Each repeating schedule for this line, every row, in the source's own columns: subsidiaries, insured persons, benefit plans, crime locations or employee classes, scheduled equipment, cargo commodities and values, conveyances or vessels, vendors."),additionalInterests:e0.z.array(gK.safeExtend({description:e0.z.string().nullable().describe("The interest's scope as printed.")}))}).refine(e=>{var t;
15return e.coverageType!==en.OTHER||!!(null==(t=e.description)?void 0:t.trim())},{message:"description is required for OTHER",path:["description"]}).describe("Any line without its own reference. Use the typed line for a part that has one. Each part with its own coverageType is its own line: D&O, EPL, fiduciary and crime in one package are four lines. A limit or retention shared by several parts is one terms row on the first part, naming the parts that share it; never copy it to each part. Null means unstated, never excluded."),I$=e0.z.discriminatedUnion("coverageType",[...IH,IQ]),IX=e0.z.object({policyNumber:e0.z.string(),effectiveDate:gW,expirationDate:gW,carrierName:e0.z.string(),writingCompanyName:e0.z.string().nullable(),companyCarrierId:e0.z.string().nullable(),premium:e0.z.number().nullable(),taxesAndFees:e0.z.number().nullable(),firstNamedInsuredId:e0.z.string(),namedInsuredIds:e0.z.array(e0.z.string()),locations:e0.z.array(gX),forms:e0.z.array(gJ),lines:e0.z.array(I$)}),IJ=e0.z.object({id:e0.z.string(),name:e0.z.string(),displayName:e0.z.string().nullable(),fein:e0.z.string().nullable(),mailingAddress:gY.nullable()});e0.z.object({namedInsureds:e0.z.array(IJ),policies:e0.z.array(IX)}),Im.extend({liabilityLimitAsPrinted:e0.z.string().nullable().describe('The single liability amount Epic reports, as printed: the combined single limit, or on a split-limit policy only the bodily-injury each-person amount, e.g. "$1,000,000" or "$500,000". Never join the split amounts; the per-accident and property-damage amounts are not compared. UCS keeps these apart (liability.combinedSingleLimit vs the three split leaves), while Epic reports one liability limit (CSL, or BI each-person when written split). Null when unstated.'),umUimAsPrinted:e0.z.object({limit:e0.z.string().nullable().describe("Complete printed UM/UIM limit."),symbols:e0.z.array(e0.z.string()).describe("Printed covered-auto codes. Empty when unstated.")}).nullable().describe("The one UM/UIM limit and symbol set the policy prints, whichever of the uninsured, underinsured, or combined rows states it. UCS keeps those rows apart (uninsuredMotorist / underinsuredMotorist / uninsuredAndUnderinsuredMotorist); PC compares the printed value, and Epic folds UMCSL/UMISP/UMPD/UNCSL/UNDSP/UNDPD into one. Null when unstated."),hiredAutoLiabilityStatus:e0.z.string().nullable().describe('"Included" when the policy prints hired-auto liability, either as its own coverage line or through liability symbol 1 or 8. UCS encodes this only as liability.symbols plus free-text liability.condition, with no status leaf. Null when absent.'),nonOwnedAutoLiabilityStatus:e0.z.string().nullable().describe('"Included" when the policy prints non-owned-auto liability, either as its own coverage line or through liability symbol 1 or 9. UCS encodes this only as liability.symbols plus free-text liability.condition, with no status leaf. Null when absent.'),waiverOfCollisionDeductible:e0.z.string().nullable().describe('"Included" when any vehicle or endorsement (e.g. CA 03 05) waives the collision deductible. UCS has no leaf for it; collision.condition is free text. Null when absent.')});eu.COLLISION,eu.COMPREHENSIVE;let IZ="excel",I0=["policy","expiring","quote","binder","proposal","application",IZ],I1=e0.z.enum(I0),I2=["epic","ams360","imageright"],I5=e0.z.enum(I2),I3=e0.z.strictObject({kind:I1,documentId:e0.z.uuid(),name:e0.z.string().min(1)}),I4=e0.z.strictObject({kind:I5}),I9=e0.z.union([I3,I4]),I6=/^source([1-9]\d*)$/,I8=new Set(I0),I7=new Set(I2);function be(e){return I8.has(e.kind)}function bt(e){return I7.has(e.kind)}let bi=e0.z.record(e0.z.string(),I9).superRefine((e,t)=>{for(let i of function(e){let t=[],i=Object.keys(e);for(let e of i)I6.test(e)||t.push(`Invalid source key "${e}". Keys must be source1, source2, …`);if(t.length>0)return t;for(let n=1;n<=i.length;n+=1){let r=`source${n}`;if(!(r in e)){t.push(`Source keys must be contiguous source1…source${i.length}. Missing ${r}.`);break}}let n=e.source1;n&&be(n)&&n.kind!==IZ||t.push("source1 must be document-backed and not excel."),Object.values(e).filter(bt).length>1&&t.push("At most one AMS source is allowed.");let r=Object.values(e).filter(be).map(e=>e.documentId);return new Set(r).size!==r.length&&t.push("Document UUIDs must be unique."),t}(e))t.addIssue({code:e0.z.ZodIssueCode.custom,message:i})}
15),bn=e0.z.enum(["NO_DOCUMENT_BASELINE","AMBIGUOUS_BASELINE","MULTIPLE_AMS","UNCLASSIFIABLE_DOCUMENT","NO_LINES"]),br=e0.z.strictObject({status:e0.z.literal("ok"),sources:bi,lines:e0.z.array(gx).min(1)}),ba=e0.z.strictObject({status:e0.z.literal("failed"),codes:e0.z.array(bn).min(1)});e0.z.discriminatedUnion("status",[br,ba]);let bo="COMPLETE",bs=e0.z.object({enabled:e0.z.boolean().default(!1),text:e0.z.string().trim().max(40).refine(e=>!/[\r\n\t\v\f\u0085\u2028\u2029]/u.test(e),"Use a single line of text").default(bo)}).refine(e=>!e.enabled||e.text.length>0,{message:"Enter a prefix when enabled",path:["text"]});e.s(["DEFAULT_EPIC_COMPLETION_PREFIX",0,bo,"EPIC_COMPLETION_PREFIX_MAX_LENGTH",0,40,"EpicCompletionPrefixSchema",0,bs,"resolveEpicCompletionPrefix",0,function(e,t){var i,n;let r=bs.safeParse(null!=(n=null!=(i=t.epicCompletionPrefix)?i:e.epicCompletionPrefix)?n:{});return r.success?r.data:{enabled:!1,text:bo}}],564044);let bl=e0.z.object({insuredAccountId:e0.z.string().min(1),epicAttachmentIds:e0.z.array(e0.z.string().min(1)).min(1)}),bc=e0.z.object({results:e0.z.array(e0.z.object({epicAttachmentId:e0.z.string(),managedDocumentId:e0.z.string(),status:e0.z.enum(["completed","already_promoted"])}))}),bd=e0.z.discriminatedUnion("type",[e0.z.object({type:e0.z.literal("page"),imageRightDocumentId:e0.z.number(),imageRightPageId:e0.z.number()}),e0.z.object({type:e0.z.literal("mergedGroup"),imageRightDocumentId:e0.z.number(),mergeGroupKey:e0.z.string().min(1),imageRightPageIds:e0.z.array(e0.z.number()).min(1)})]),bu=e0.z.object({insuredAccountId:e0.z.string().min(1),selections:e0.z.array(bd).min(1)}),bm=e0.z.object({imageRightDocumentId:e0.z.number(),imageRightPageId:e0.z.number().nullable(),mergeGroupKey:e0.z.string().nullable(),managedDocumentId:e0.z.string(),status:e0.z.enum(["completed","already_promoted"])}),bp=e0.z.enum(["unsupported_format","verification_inconclusive","conversion_failed","missing_page","incomplete_merged_group"]),bE=e0.z.object({imageRightDocumentId:e0.z.number(),imageRightPageId:e0.z.number().nullable(),mergeGroupKey:e0.z.string().nullable(),managedDocumentId:e0.z.null(),status:bp,reasonCode:e0.z.string().optional(),detectedFormatFamily:nF.nullable().optional(),metadataConflictResolved:e0.z.boolean().optional()}),bg=e0.z.union([bm,bE]),bI=e0.z.object({results:e0.z.array(bg)}),bb=e0.z.union([e0.z.number(),e0.z.string()]).nullable(),b_=e0.z.object({id:e0.z.number(),name:e0.z.string().nullable(),flowProgName:e0.z.string().nullable(),status:bb,effectivePermissions:bb}),bz=e0.z.object({id:e0.z.number(),name:e0.z.string().nullable(),flowId:e0.z.number().nullable(),typeGuid:e0.z.string().nullable(),progName:e0.z.string().nullable(),status:bb,effectivePermissions:bb,debug:e0.z.boolean(),isStart:e0.z.boolean(),isValidation:e0.z.boolean()}),bh=e0.z.object({id:e0.z.number(),externalId:e0.z.string().nullable(),name:e0.z.string(),friendlyName:e0.z.string(),type:e0.z.number(),enabled:e0.z.boolean(),description:e0.z.string().nullable()}),bA=e0.z.union([e0.z.string(),e0.z.number(),e0.z.boolean(),bh]).nullable(),bO=e0.z.object({value:bA,description:e0.z.string().nullable(),tag:e0.z.string().nullable()}),bf=e0.z.object({controlType:bb,minValue:e0.z.number().nullable(),maxValue:e0.z.number().nullable(),mask:e0.z.string().nullable(),length:e0.z.number().nullable(),choices:e0.z.array(bO).nullable(),validators:e0.z.array(e0.z.unknown()).nullable(),readonly:e0.z.boolean(),allowNew:e0.z.boolean(),nameVisible:e0.z.boolean(),descrVisible:e0.z.boolean(),separator:e0.z.string().nullable(),order:e0.z.number().nullable(),flags:e0.z.number().nullable(),shouldSort:e0.z.boolean(),isDefaultChoices:e0.z.boolean()}),bT=e0.z.object({id:e0.z.number(),type:bb,displayName:e0.z.string().nullable(),name:e0.z.string().nullable(),description:e0.z.string().nullable(),mandatory:e0.z.boolean(),defaultValue:bA,hasDefaultValue:e0.z.boolean(),disabled:e0.z.boolean(),visibility:e0.z.boolean(),requirementsRule:bb,validationRule:bf.nullable()}),by=e0.z.object({insuredAccountId:e0.z.string().min(1)}),bN=e0.z.object({workflows:e0.z.array(b_)}),bC=e0.z.object({insuredAccountId:e0.z.string().min(1),flowId:e0.z.coerce.number().int()}),bS=e0.z.object({steps:e0.z.array(bz)}),bR=e0.z.object({insuredAccountId:e0.z.string().min(1),stepId:e0.z.coerce.number().int()}),bL=e0.z.object({assignees:e0.z.array(bh)}),bD=e0.z.object({insuredAccountId:e0.z.string().min(1),stepId:e0.z.coerce.number().int()}),bP=e0.z.object({attributes:e0.z.array(bT)}),bv=e0.z.object({id:e0.z.number().int(),name:e0.z.string()}),bU=e0.z.object({insuredAccountId:e0.z.string().min(1),fileTypeId:e0.z.coerce.number().int().optional()}),bw=e0.z.object({types:e0.z.array(bv)}
15),bB=e0.z.enum(["file","folder","document"]),bF=bB.enum,bj=e0.z.object({insuredAccountId:e0.z.string().min(1),target:e0.z.object({level:bB,objectId:e0.z.number().int().positive()}),workflowId:e0.z.number().int(),stepId:e0.z.number().int(),assignee:e0.z.object({id:e0.z.number().int(),kind:e0.z.enum(["user","group","role"]).default("user")}).optional(),baseFields:e0.z.object({description:e0.z.string().optional(),note:e0.z.string().optional(),priority:e0.z.number().int().optional(),availableDate:e0.z.string().datetime({offset:!0}),deadline:e0.z.string().datetime({offset:!0}).optional(),pageNumber:e0.z.number().int().optional()}),attributes:e0.z.array(e0.z.object({id:e0.z.number().int(),value:e0.z.unknown()})).default([])}),bM=e0.z.object({taskId:e0.z.number().int().nullable(),objectId:e0.z.number().int(),level:bB,objectClass:e0.z.number().int().nullable(),assignedTo:e0.z.number().int().nullable()}),bk=e0.z.enum([bF.file,bF.folder]),bx=e0.z.object({target:e0.z.object({level:bk,objectId:e0.z.number().int().positive()}),workflowId:e0.z.number().int(),stepId:e0.z.number().int(),assignee:e0.z.object({id:e0.z.number().int(),kind:e0.z.enum(["user","group","role"]).default("user")}).optional(),baseFields:e0.z.object({description:e0.z.string().optional(),note:e0.z.string().optional(),priority:e0.z.number().int().optional(),availableDate:e0.z.string().datetime({offset:!0}),deadline:e0.z.string().datetime({offset:!0}).optional(),pageNumber:e0.z.number().int().optional()}),attributes:e0.z.array(e0.z.object({id:e0.z.number().int(),value:e0.z.unknown()})).optional(),documentTypeId:e0.z.number().int().positive(),documentDescription:e0.z.string().optional()}),bG=e0.z.array(e0.z.string().min(1)),bY=e0.z.object({clientTriggerId:e0.z.string().min(1),insuredAccountId:e0.z.string().min(1).optional(),managedDocumentIds:bG}),bW=e0.z.object({policyId:e0.z.string(),policyNumber:e0.z.string(),description:e0.z.string(),effectiveDate:e0.z.string(),expirationDate:e0.z.string(),carrierName:e0.z.string().optional()}),bV=e0.z.enum(["started","already_started"]);function bH(e,t){return(i,n)=>{new Set(i.managedDocumentIds).size+new Set(i.selectedPolicies.map(e=>e.policyId)).size>=e||n.addIssue({code:e0.z.ZodIssueCode.custom,path:["managedDocumentIds"],message:t})}}let bq=bY.extend({managedDocumentIds:bG.min(1)}),bK=e0.z.object({workspaceId:e0.z.string(),status:bV}),bQ=bY.extend({selectedPolicies:e0.z.array(bW).default([]),coverageStandardId:e0.z.string().min(1).optional()}).superRefine(bH(2,"Select at least two sources to run this workflow")),b$=e0.z.object({sessionId:e0.z.string(),status:bV}),bX=bY.extend({selectedPolicies:e0.z.array(bW).default([]),coverageStandardId:e0.z.string().min(1)}).superRefine(bH(1,"Select at least one document or Epic policy.")),bJ=bY.extend({selectedPolicies:e0.z.array(bW).default([])}).superRefine(bH(1,"Select at least one document or Epic policy.")),bZ=bY.extend({selectedPolicies:e0.z.array(bW).default([])}).superRefine(bH(1,"Select at least one document or Epic policy.")),b0=bY.extend({selectedPolicies:e0.z.array(bW).default([])}).superRefine(bH(2,"Select at least two sources to run this workflow")),b1=bY.extend({selectedPolicies:e0.z.array(bW).default([])}).superRefine(bH(1,"Select at least one document or Epic policy.")),b2=e0.z.array(e0.z.object({name:e0.z.string(),accountName:e0.z.string().optional(),accountRole:e0.z.string().optional(),email:e0.z.string().optional(),phone:e0.z.string().optional(),title:e0.z.string().optional()})),b5=e0.z.object({activityId:e0.z.string().optional(),accountId:e0.z.string(),agencyCode:e0.z.string(),branchCode:e0.z.string(),whoOwnerCode:e0.z.string(),activityCode:e0.z.string().optional()}),b3=e0.z.enum(["PROPERTY_SOV","VEHICLES","DRIVERS","EQUIPMENT","GL_HAZARDS","WC_EXPOSURES"]),b4=b3.enum,b9=e0.z.enum(["SUPPLEMENTAL","EXPIRING"]),b6=e0.z.object({epicAccountId:e0.z.string().min(1),epicPolicyId:e0.z.string().min(1),tiedManagedDocumentId:e0.z.string().min(1),treatment:b9.default("SUPPLEMENTAL"),elements:e0.z.object({schedules:e0.z.array(b3).default([]),additionalCoverages:e0.z.boolean().default(!1),namedInsureds:e0.z.boolean().default(!1)}).default({schedules:[],additionalCoverages:!1,namedInsureds:!1})}),b8=bY.extend({managedDocumentIds:bG.min(1),proposalTemplateId:e0.z.string().min(1),includeFormsAndEndorsements:e0.z.boolean().default(!1),epicAccountId:e0.z.string().optional(),epicAccountName:e0.z.string().optional(),epicLookupCode:e0.z.string().optional(),dynamicAccountManagerSummary:b2.optional(),createActivityData:b5.optional(),branchAddress:e0.z.string().optional(),userInstructions:e0.z.string().max(4e3).optional(),epicAcordSelections:e0.z.array(b6).default([]),imageRightTaskConfig:bx.optional()}).superRefine((e,t)=>
15{let i=new Set(e.managedDocumentIds);e.epicAcordSelections.forEach((e,n)=>{i.has(e.tiedManagedDocumentId)||t.addIssue({code:e0.z.ZodIssueCode.custom,path:["epicAcordSelections",n,"tiedManagedDocumentId"],message:"An Epic ACORD must be tied to one of the selected documents."})})}),b7=e0.z.object({proposalRunId:e0.z.string()}),_e=e0.z.enum(["INSURANCE_POLICY","INSURANCE_QUOTES","INSURANCE_BINDERS","INSURANCE_PROPOSAL","INSURANCE_ACORD","INSURANCE_EXCEL_SCHEDULE"]),_t=_e.enum,_i=bY.extend({workflowId:e0.z.string().min(1),managedDocumentIds:bG.min(1),primaryDocumentId:e0.z.string().min(1),documentTypes:e0.z.record(e0.z.string(),_e),epicAcord:bW.optional(),linesOfCoverage:e0.z.array(e0.z.string().min(1)).min(1),createActivityData:b5.optional(),imageRightTaskConfig:bx.optional()}).superRefine((e,t)=>{let i=new Set(e.managedDocumentIds);for(let n of(i.has(e.primaryDocumentId)||t.addIssue({code:e0.z.ZodIssueCode.custom,path:["primaryDocumentId"],message:"The primary policy must be one of the selected documents."}),(i.has(e.primaryDocumentId)?i.size-1:i.size)<1&&!e.epicAcord&&t.addIssue({code:e0.z.ZodIssueCode.custom,path:["managedDocumentIds"],message:"Select at least one additional document or an Epic policy to check against."}),i))n!==e.primaryDocumentId&&(e.documentTypes[n]||t.addIssue({code:e0.z.ZodIssueCode.custom,path:["documentTypes",n],message:"Select a document type for each additional document."}))}),_n=e0.z.object({workflowId:e0.z.string(),runId:e0.z.string(),status:bV}),_r=e0.z.object({workflowId:e0.z.string().min(1)}),_a=e0.z.object({workflowId:e0.z.string()}),_o=bY.extend({insuredAccountId:e0.z.string().min(1),managedDocumentIds:bG.min(1),epicAcords:e0.z.array(bW).max(1).default([]),policyCheckTileId:e0.z.string().min(1)}),_s=e0.z.object({id:e0.z.string().min(1),name:e0.z.string().min(1),slug:e0.z.string().min(1)}),_l=_s.extend({path:e0.z.string()}),_c=e0.z.union([e0.z.object({tileSlug:e0.z.string().min(1).nullable()}),e0.z.object({tileId:e0.z.string().min(1)})]),_d=e0.z.discriminatedUnion("status",[e0.z.object({status:e0.z.literal("tile"),tile:_s,path:e0.z.string()}),e0.z.object({status:e0.z.literal("choose"),tiles:e0.z.array(_l)}),e0.z.object({status:e0.z.literal("none")})]),_u=e0.z.object({runId:e0.z.string().min(1),slug:e0.z.literal(Y.POLICY_CHECKING),workflowId:e0.z.string().min(1)});e.s(["CreateImageRightTaskInputSchema",0,bj,"CreateImageRightTaskOutputSchema",0,bM,"EpicScheduleElement",0,b4,"GetImageRightDocumentTypesInputSchema",0,bU,"GetImageRightDocumentTypesOutputSchema",0,bw,"GetImageRightStepAssigneesInputSchema",0,bR,"GetImageRightStepAssigneesOutputSchema",0,bL,"GetImageRightStepAttributesInputSchema",0,bD,"GetImageRightStepAttributesOutputSchema",0,bP,"GetImageRightStepsInputSchema",0,bC,"GetImageRightStepsOutputSchema",0,bS,"GetImageRightWorkflowsInputSchema",0,by,"GetImageRightWorkflowsOutputSchema",0,bN,"GetPolicyCheckWorkflowInputSchema",0,_r,"GetPolicyCheckWorkflowOutputSchema",0,_a,"ImageRightTaskTargetLevel",0,bF,"PROPOSAL_USER_INSTRUCTIONS_MAX_LENGTH",0,4e3,"PolicyCheckDocumentType",0,_t,"PromoteEpicDocumentsInputSchema",0,bl,"PromoteEpicDocumentsOutputSchema",0,bc,"PromoteImageRightDocumentsInputSchema",0,bu,"PromoteImageRightDocumentsOutputSchema",0,bI,"ResolvePolicyCheckingTileInputSchema",0,_c,"ResolvePolicyCheckingTileOutputSchema",0,_d,"TriggerContractReviewInputSchema",0,bJ,"TriggerContractReviewOutputSchema",0,b$,"TriggerCoverageComparisonInputSchema",0,bQ,"TriggerCoverageComparisonOutputSchema",0,b$,"TriggerCoverageGapAnalysisInputSchema",0,bX,"TriggerCoverageGapAnalysisOutputSchema",0,b$,"TriggerExposureComparisonInputSchema",0,b0,"TriggerExposureComparisonOutputSchema",0,b$,"TriggerExposureGenerationInputSchema",0,b1,"TriggerExposureGenerationOutputSchema",0,b$,"TriggerLossRunsInputSchema",0,bq,"TriggerLossRunsOutputSchema",0,bK,"TriggerPolicyCheckInputSchema",0,_i,"TriggerPolicyCheckOutputSchema",0,_n,"TriggerPolicyCheckingAgentInputSchema",0,_o,"TriggerPolicyCheckingAgentOutputSchema",0,_u,"TriggerProposalGenerationInputSchema",0,b8,"TriggerProposalGenerationOutputSchema",0,b7,"TriggerSummaryOfInsuranceInputSchema",0,bZ,"TriggerSummaryOfInsuranceOutputSchema",0,b$],708408);let _m={FORBIDDEN:eZ.FORBIDDEN,BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND},_p={BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,FORBIDDEN:eZ.FORBIDDEN},_E=eQ.prefix("/mds-workflow-trigger").router({promoteEpicDocuments:eQ.route({method:"POST",path:"/epic/promote"}).input(bl).output(bc).errors(_m),promoteImageRightDocuments:eQ.route({method:"POST",path:"/imageright/promote"}).input(bu).output(bI).errors(_m),getImageRightWorkflows:eQ.route({method:"GET",path:"/imageright/workflows"}).input(by).output(bN).errors(_p),getImageRightSteps:eQ.route({method:"GET",path:"/imageright/steps"}).input(bC).output(bS).errors(_p),getImageRightStepAssignees:eQ.route({method:"GET",path:"/imageright/step-assignees"}).input(bR).output(bL).errors(_p),getImageRightStepAttributes:eQ.route({method:"GET",path:"/imageright/step-attributes"}).input(bD).output(bP).errors(_p),getImageRightDocumentTypes:eQ.route({method:"GET",path:"/imageright/document-types"}).input(bU).output(bw).errors(_p),createImageRightTask:eQ.route({method:"POST",path:"/imageright/tasks"}).input(bj).output(bM).errors(_p),triggerLossRuns:eQ.route({method:"POST",path:"/loss-runs"}).input(bq).output(bK).errors(_m),triggerCoverageComparison:eQ.route({method:"POST",path:"/coverage-comparison"}).input(bQ).output(b$).errors(_m),triggerCoverageGapAnalysis:eQ.route({method:"POST",path:"/coverage-gap-analysis"}
15).input(bX).output(b$).errors(_m),triggerContractReview:eQ.route({method:"POST",path:"/contract-review"}).input(bJ).output(b$).errors(_m),triggerSummaryOfInsurance:eQ.route({method:"POST",path:"/summary-of-insurance"}).input(bZ).output(b$).errors(_m),triggerExposureComparison:eQ.route({method:"POST",path:"/exposure-comparison"}).input(b0).output(b$).errors(_m),triggerExposureGeneration:eQ.route({method:"POST",path:"/exposure-generation"}).input(b1).output(b$).errors(_m),triggerProposalGeneration:eQ.route({method:"POST",path:"/proposal-generation"}).input(b8).output(b7).errors(_m),triggerPolicyCheck:eQ.route({method:"POST",path:"/policy-check"}).input(_i).output(_n).errors(_m),resolvePolicyCheckingTile:eQ.route({method:"POST",path:"/policy-checking-agent/tile"}).input(_c).output(_d).errors({FORBIDDEN:eZ.FORBIDDEN}),triggerPolicyCheckingAgent:eQ.route({method:"POST",path:"/policy-checking-agent"}).input(_o).output(_u).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND,FORBIDDEN:eZ.FORBIDDEN}),getPolicyCheckWorkflow:eQ.route({method:"GET",path:"/policy-check/workflow"}).input(_r).output(_a).errors({BAD_REQUEST:eZ.BAD_REQUEST,NOT_FOUND:eZ.NOT_FOUND})}),_g=[_t.INSURANCE_POLICY,_t.INSURANCE_QUOTES,_t.INSURANCE_BINDERS,_t.INSURANCE_PROPOSAL,_t.INSURANCE_ACORD],_I=new Set(_g);function _b(e,t){if(0===t.length)return e;let i=new Set(t),n=!1,r=e.map(e=>!e.documentType||e.documentType===_t.INSURANCE_EXCEL_SCHEDULE||i.has(e.documentType)?e:(n=!0,{...e,documentType:""}));return n?r:e}e.s(["resolvePolicyCheckDocumentTypeOptions",0,function(e,t=_g){for(let t of e){let e=function(e){if(!e||"object"!=typeof e||!("options"in e))return null;let t=e.options;if(!Array.isArray(t))return null;let i=[],n=new Set;for(let e of t)"string"!=typeof e||!_I.has(e)||n.has(e)||(n.add(e),i.push(e));return i.length>0?i:null}(t);if(e)return e}return[...t]},"withoutUnofferedPolicyCheckDocumentType",0,function(e,t){var i;return e&&null!=(i=_b([e],t)[0])?i:e},"withoutUnofferedPolicyCheckDocumentTypes",0,_b],984370);let __={UNAUTHORIZED:eZ.UNAUTHORIZED,FORBIDDEN:eZ.FORBIDDEN},_z=eQ.errors(__).router({accounts:ny,certificateBatches:md,certificateHolders:mb,certificateTemplates:pD,certificates:pY,companyCarriers:pK,documentBrand:Eh,documentPicker:EA,email:Ey,mdsWorkflowTrigger:_E});e.s(["appContract",0,_z],922545),e.s([],437326)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.