PageSourceSearch

https://nofluffjobs.com/7907.9569484f3d272238.js

js nofluffjobs.com collected 2026-09-24 19:42:32 UTC 347,366 bytes, 1 lines download raw bytes

1(self.webpackChunknfj=self.webpackChunknfj||[]).push([[7907],{17907(we,z,f){"use strict";f.d(z,{CommonScreeningConferenceDiscussComponent:()=>Wm,CommonScreeningConferencePageComponent:()=>rf,CommonScreeningDashboardComponent:()=>pm});var j=f(91413),h=f(47266);function fe(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Z(o){return B.apply(this,arguments)}function B(){return B=function _e(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){fe(i,r,a,s,c,"next",u)}function c(u){fe(i,r,a,s,c,"throw",u)}s(void 0)})}}(function*(o){try{return[null,yield o()]}catch(n){return[n,null]}}),B.apply(this,arguments)}Error,Error;const Yi=Symbol("Let zodToJsonSchema decide on which parser to use"),Jo={name:void 0,$refStrategy:"root",effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",nullableStrategy:"from-target",removeAdditionalStrategy:"passthrough",definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},$n=o=>"_def"in o?o._def:o;var le,o;(o=le||(le={})).assertEqual=a=>{},o.assertIs=function n(a){},o.assertNever=function t(a){throw new Error},o.arrayToEnum=a=>{const i={};for(const s of a)i[s]=s;return i},o.getValidEnumValues=a=>{const i=o.objectKeys(a).filter(c=>"number"!=typeof a[a[c]]),s={};for(const c of i)s[c]=a[c];return o.objectValues(s)},o.objectValues=a=>o.objectKeys(a).map(function(i){return a[i]}),o.objectKeys="function"==typeof Object.keys?a=>Object.keys(a):a=>{const i=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},o.find=(a,i)=>{for(const s of a)if(i(s))return s},o.isInteger="function"==typeof Number.isInteger?a=>Number.isInteger(a):a=>"number"==typeof a&&Number.isFinite(a)&&Math.floor(a)===a,o.joinValues=function r(a,i=" | "){return a.map(s=>"string"==typeof s?`'${s}'`:s).join(i)},o.jsonStringifyReplacer=(a,i)=>"bigint"==typeof i?i.toString():i;const D=le.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Je=o=>{switch(typeof o){case"undefined":return D.undefined;case"string":return D.string;case"number":return Number.isNaN(o)?D.nan:D.number;case"boolean":return D.boolean;case"function":return D.function;case"bigint":return D.bigint;case"symbol":return D.symbol;case"object":return Array.isArray(o)?D.array:null===o?D.null:o.then&&"function"==typeof o.then&&o.catch&&"function"==typeof o.catch?D.promise:typeof Map<"u"&&o instanceof Map?D.map:typeof Set<"u"&&o instanceof Set?D.set:typeof Date<"u"&&o instanceof Date?D.date:D.object;default:return D.unknown}}
1,b=le.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);let Xe=(()=>{class o extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},a={_errors:[]},i=s=>{for(const c of s.issues)if("invalid_union"===c.code)c.unionErrors.map(i);else if("invalid_return_type"===c.code)i(c.returnTypeError);else if("invalid_arguments"===c.code)i(c.argumentsError);else if(0===c.path.length)a._errors.push(r(c));else{let u=a,d=0;for(;d<c.path.length;){const m=c.path[d];d===c.path.length-1?(u[m]=u[m]||{_errors:[]},u[m]._errors.push(r(c))):u[m]=u[m]||{_errors:[]},u=u[m],d++}}};return i(this),a}static assert(t){if(!(t instanceof o))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,le.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(t=r=>r.message){const r={},a=[];for(const i of this.issues)if(i.path.length>0){const s=i.path[0];r[s]=r[s]||[],r[s].push(t(i))}else a.push(t(i));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}return o.create=n=>new o(n),o})();const Ft=(o,n)=>{let t;switch(o.code){case b.invalid_type:t=o.received===D.undefined?"Required":`Expected ${o.expected}, received ${o.received}`;break;case b.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(o.expected,le.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:t=`Unrecognized key(s) in object: ${le.joinValues(o.keys,", ")}`;break;case b.invalid_union:t="Invalid input";break;case b.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${le.joinValues(o.options)}`;break;case b.invalid_enum_value:t=`Invalid enum value. Expected ${le.joinValues(o.options)}, received '${o.received}'`;break;case b.invalid_arguments:t="Invalid function arguments";break;case b.invalid_return_type:t="Invalid function return type";break;case b.invalid_date:t="Invalid date";break;case b.invalid_string:"object"==typeof o.validation?"includes"in o.validation?(t=`Invalid input: must include "${o.validation.includes}"`,"number"==typeof o.validation.position&&(t=`${t} at one or more positions greater than or equal to ${o.validation.position}`)):"startsWith"in o.validation?t=`Invalid input: must start with "${o.validation.startsWith}"`:"endsWith"in o.validation?t=`Invalid input: must end with "${o.validation.endsWith}"`:le.assertNever(o.validation):t="regex"!==o.validation?`Invalid ${o.validation}`:"Invalid";break;case b.too_small:t="array"===o.type?`Array must contain ${o.exact?"exactly":o.inclusive?"at least":"more than"} ${o.minimum} element(s)`:"string"===o.type?`String must contain ${o.exact?"exactly":o.inclusive?"at least":"over"} ${o.minimum} character(s)`:"number"===o.type||"bigint"===o.type?`Number must be ${o.exact?"exactly equal to ":o.inclusive?"greater than or equal to ":"greater than "}${o.minimum}`:"date"===o.type?`Date must be ${o.exact?"exactly equal to ":o.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(o.minimum))}`:"Invalid input";break;case b.too_big:t="array"===o.type?`Array must contain ${o.exact?"exactly":o.inclusive?"at most":"less than"} ${o.maximum} element(s)`:"string"===o.type?`String must contain ${o.exact?"exactly":o.inclusive?"at most":"under"} ${o.maximum} character(s)`:"number"===o.type?`Number must be ${o.exact?"exactly":o.inclusive?"less than or equal to":"less than"} ${o.maximum}`:"bigint"===o.type?`BigInt must be ${o.exact?"exactly":o.inclusive?"less than or equal to":"less than"} ${o.maximum}`:"date"===o.type?`Date must be ${o.exact?"exactly":o.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(o.maximum))}`:"Invalid input";break;case b.custom:t="Invalid input";break;case b.invalid_intersection_types:t="Intersection results could not be merged";break;case b.not_multiple_of:t=`Number must be a multiple of ${o.multipleOf}`;break;case b.not_finite:t="Number must be finite";break;default:t=n.defaultError,le.assertNever(o)}return{message:t}};let Xo=Ft;var G=function(o){return o.errToObj=n=>"string"==typeof n?{message:n}:n||{},o.toString=n=>"string"==typeof n?n:n?.message,o}(G||{});function qo(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function A(o,n){const t=function Un(){return Xo}(),r=(o=>
1{const{data:n,path:t,errorMaps:r,issueData:a}=o,i=[...t,...a.path||[]],s={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let c="";const u=r.filter(d=>!!d).slice().reverse();for(const d of u)c=d(s,{data:n,defaultError:c}).message;return{...a,path:i,message:c}})({issueData:n,data:o.data,path:o.path,errorMaps:[o.common.contextualErrorMap,o.schemaErrorMap,t,t===Ft?void 0:Ft].filter(a=>!!a)});o.common.issues.push(r)}class Ne{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(n,t){const r=[];for(const a of t){if("aborted"===a.status)return J;"dirty"===a.status&&n.dirty(),r.push(a.value)}return{status:n.value,value:r}}static mergeObjectAsync(n,t){return function qi(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){qo(i,r,a,s,c,"next",u)}function c(u){qo(i,r,a,s,c,"throw",u)}s(void 0)})}}(function*(){const r=[];for(const a of t){const i=yield a.key,s=yield a.value;r.push({key:i,value:s})}return Ne.mergeObjectSync(n,r)})()}static mergeObjectSync(n,t){const r={};for(const a of t){const{key:i,value:s}=a;if("aborted"===i.status||"aborted"===s.status)return J;"dirty"===i.status&&n.dirty(),"dirty"===s.status&&n.dirty(),"__proto__"!==i.value&&(typeof s.value<"u"||a.alwaysSet)&&(r[i.value]=s.value)}return{status:n.value,value:r}}}const J=Object.freeze({status:"aborted"}),Lt=o=>({status:"dirty",value:o}),Re=o=>({status:"valid",value:o}),Ko=o=>"aborted"===o.status,Qo=o=>"dirty"===o.status,yt=o=>"valid"===o.status,cn=o=>typeof Promise<"u"&&o instanceof Promise;function er(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function qe(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){er(i,r,a,s,c,"next",u)}function c(u){er(i,r,a,s,c,"throw",u)}s(void 0)})}}class $e{constructor(n,t,r,a){this._cachedPath=[],this.parent=n,this.data=t,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const tr=(o,n)=>{if(yt(n))return{success:!0,data:n.value};if(!o.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Xe(o.common.issues);return this._error=t,this._error}}};function ne(o){if(!o)return{};const{errorMap:n,invalid_type_error:t,required_error:r,description:a}=o;if(n&&(t||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return n?{errorMap:n,description:a}:{errorMap:(s,c)=>{const{message:u}=o;return"invalid_enum_value"===s.code?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??r??c.defaultError}:"invalid_type"!==s.code?{message:c.defaultError}:{message:u??t??c.defaultError}},description:a}}class re{get description(){return this._def.description}_getType(n){return Je(n.data)}_getOrReturnCtx(n,t){return t||{common:n.parent.common,data:n.data,parsedType:Je(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new Ne,ctx:{common:n.parent.common,data:n.data,parsedType:Je(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const t=this._parse(n);if(cn(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(n){const t=this._parse(n);return Promise.resolve(t)}parse(n,t){const r=this.safeParse(n,t);if(r.success)return r.data;throw r.error}safeParse(n,t){const r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Je(n)},a=this._parseSync({data:n,path:r.path,parent:r});return tr(r,a)}"~validate"(n){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Je(n)};if(!this["~standard"].async)try{const r=this._parseSync({data:n,path:[],parent:t});return yt(r)?{value:r.value}:{issues:t.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:t}).then(r=>yt(r)?{value:r.value}:{issues:t.common.issues})}parseAsync(n,t){var r=this;return qe(function*(){const a=yield r.safeParseAsync(n,t);if(a.success)return a.data;throw a.error})()}safeParseAsync(n,t){var r=this;return qe(function*(){const a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:r._def.errorMap,parent:null,data:n,parsedType:Je(n)},i=r._parse({data:n,path:a.path,parent:a}),s=yield cn(i)?i:Promise.resolve(i);return tr(a,s)})()}refine(n,t){const r=a=>"string"==typeof t||typeof t>"u"?{message:t}:"function"==typeof t?t(a):t;return this._refinement((a,i)=>{const s=n(a),c=()=>i.addIssue({code:b.custom,...r(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>!!u||(c(),!1)):!!s||(c(),!1)})}refinement(n,t){return this._refinement((r,a)=>!!n(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1))}_refinement(n){return new Bt({schema:this,typeName:I.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return st.create(this,this._def)}nullable(){return $t.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return un.create(this)}promise(){return Jn.create(this,this._def)}or(n){return sr.create([this,n],this._def)}and(n){return cr.create(this,n,this._def)}transform(n){return new Bt({...ne(this._def),schema:this,typeName:I.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const t="function"==typeof n?n:()=>n;return new mr({...ne(this._def),innerType:this,defaultValue:t,typeName:I.ZodDefault})}brand(){return new hr({typeName:I.ZodBranded,type:this,...ne(this._def)})}catch(n){const t="function"==typeof n?n:()=>n;return new fr({...ne(this._def),innerType:this,catchValue:t,typeName:I.ZodCatch})}describe(n){return new(0,this.constructor)({...this._def,description:n})}pipe(n){return pn.create(this,n)}readonly(){return gr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ki=/^c[^\s-]{8,}
1$/i,Qi=/^[0-9a-z]+$/,es=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ts=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ns=/^[a-z0-9_-]{21}$/i,os=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,rs=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,as=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Wn;const ss=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ls=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,us=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ds=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ps=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nr="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ms=new RegExp(`^${nr}$`);function or(o){let n="[0-5]\\d";return o.precision?n=`${n}\\.\\d{${o.precision}}`:null==o.precision&&(n=`${n}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${n})${o.precision?"+":"?"}`}function fs(o){return new RegExp(`^${or(o)}$`)}function hs(o){let n=`${nr}T${or(o)}`;const t=[];return t.push(o.local?"Z?":"Z"),o.offset&&t.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${t.join("|")})`,new RegExp(`^${n}$`)}function gs(o,n){return!(("v4"!==n&&n||!ss.test(o))&&("v6"!==n&&n||!ls.test(o)))}function _s(o,n){if(!os.test(o))return!1;try{const[t]=o.split(".");if(!t)return!1;const r=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(r));return!("object"!=typeof a||null===a||"typ"in a&&"JWT"!==a?.typ||!a.alg||n&&a.alg!==n)}catch{return!1}}function ws(o,n){return!(("v4"!==n&&n||!cs.test(o))&&("v6"!==n&&n||!us.test(o)))}let rr=(()=>{class o extends re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==D.string){const s=this._getOrReturnCtx(t);return A(s,{code:b.invalid_type,expected:D.string,received:s.parsedType}),J}const a=new Ne;let i;for(const s of this._def.checks)if("min"===s.kind)t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),A(i,{code:b.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if("max"===s.kind)t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),A(i,{code:b.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if("length"===s.kind){const c=t.data.length>s.value,u=t.data.length<s.value;(c||u)&&(i=this._getOrReturnCtx(t,i),c?A(i,{code:b.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&A(i,{code:b.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),a.dirty())}else if("email"===s.kind)as.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"email",code:b.invali
1d_string,message:s.message}),a.dirty());else if("emoji"===s.kind)Wn||(Wn=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Wn.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"emoji",code:b.invalid_string,message:s.message}),a.dirty());else if("uuid"===s.kind)ts.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"uuid",code:b.invalid_string,message:s.message}),a.dirty());else if("nanoid"===s.kind)ns.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"nanoid",code:b.invalid_string,message:s.message}),a.dirty());else if("cuid"===s.kind)Ki.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"cuid",code:b.invalid_string,message:s.message}),a.dirty());else if("cuid2"===s.kind)Qi.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"cuid2",code:b.invalid_string,message:s.message}),a.dirty());else if("ulid"===s.kind)es.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"ulid",code:b.invalid_string,message:s.message}),a.dirty());else if("url"===s.kind)try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),A(i,{validation:"url",code:b.invalid_string,message:s.message}),a.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"regex",code:b.invalid_string,message:s.message}),a.dirty())):"trim"===s.kind?t.data=t.data.trim():"includes"===s.kind?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),A(i,{code:b.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),a.dirty()):"toLowerCase"===s.kind?t.data=t.data.toLowerCase():"toUpperCase"===s.kind?t.data=t.data.toUpperCase():"startsWith"===s.kind?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),A(i,{code:b.invalid_string,validation:{startsWith:s.value},message:s.message}),a.dirty()):"endsWith"===s.kind?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),A(i,{code:b.invalid_string,validation:{endsWith:s.value},message:s.message}),a.dirty()):"datetime"===s.kind?hs(s).test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{code:b.invalid_string,validation:"datetime",message:s.message}),a.dirty()):"date"===s.kind?ms.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{code:b.invalid_string,validation:"date",message:s.message}),a.dirty()):"time"===s.kind?fs(s).test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{code:b.invalid_string,validation:"time",message:s.message}),a.dirty()):"duration"===s.kind?rs.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"duration",code:b.invalid_string,message:s.message}),a.dirty()):"ip"===s.kind?gs(t.data,s.version)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"ip",code:b.invalid_string,message:s.message}),a.dirty()):"jwt"===s.kind?_s(t.data,s.alg)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"jwt",code:b.invalid_string,message:s.message}),a.dirty()):"cidr"===s.kind?ws(t.data,s.version)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"cidr",code:b.invalid_string,message:s.message}),a.dirty()):"base64"===s.kind?ds.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"base64",code:b.invalid_string,message:s.message}),a.dirty()):"base64url"===s.kind?ps.test(t.data)||(i=this._getOrReturnCtx(t,i),A(i,{validation:"base64url",code:b.invalid_string,message:s.message}),a.dirty()):le.assertNever(s);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(i=>t.test(i),{validation:r,code:b.invalid_string,...G.errToObj(a)})}_addCheck(t){return new o({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...G.errToObj(t)})}url(t){return this._addCheck({kind:"url",...G.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...G.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...G.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...G.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...G.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...G.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...G.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...G.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...G.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...G.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...G.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...G.errToObj(t)})}datetime(t){return this._addCheck("string"==typeof t?{kind:"datetime",precision:null,offset:!1,local:!1,message:t}:{kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...G.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return this._addCheck("string"==typeof t?{kind:"time",precision:null,message:t}:{kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...G.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...G.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...G.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...G.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...G.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...G.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...G.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...G.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...G.errToObj(r)})}nonempty(t){return this.min(1,G.errToObj(t))}trim(){return new o({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new o({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new o({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>"datetime"===t.kind)}
1get isDate(){return!!this._def.checks.find(t=>"date"===t.kind)}get isTime(){return!!this._def.checks.find(t=>"time"===t.kind)}get isDuration(){return!!this._def.checks.find(t=>"duration"===t.kind)}get isEmail(){return!!this._def.checks.find(t=>"email"===t.kind)}get isURL(){return!!this._def.checks.find(t=>"url"===t.kind)}get isEmoji(){return!!this._def.checks.find(t=>"emoji"===t.kind)}get isUUID(){return!!this._def.checks.find(t=>"uuid"===t.kind)}get isNANOID(){return!!this._def.checks.find(t=>"nanoid"===t.kind)}get isCUID(){return!!this._def.checks.find(t=>"cuid"===t.kind)}get isCUID2(){return!!this._def.checks.find(t=>"cuid2"===t.kind)}get isULID(){return!!this._def.checks.find(t=>"ulid"===t.kind)}get isIP(){return!!this._def.checks.find(t=>"ip"===t.kind)}get isCIDR(){return!!this._def.checks.find(t=>"cidr"===t.kind)}get isBase64(){return!!this._def.checks.find(t=>"base64"===t.kind)}get isBase64url(){return!!this._def.checks.find(t=>"base64url"===t.kind)}get minLength(){let t=null;for(const r of this._def.checks)"min"===r.kind&&(null===t||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)"max"===r.kind&&(null===t||r.value<t)&&(t=r.value);return t}}return o.create=n=>new o({checks:[],typeName:I.ZodString,coerce:n?.coerce??!1,...ne(n)}),o})();function vs(o,n){const t=(o.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,a=t>r?t:r;return Number.parseInt(o.toFixed(a).replace(".",""))%Number.parseInt(n.toFixed(a).replace(".",""))/10**a}let ys=(()=>{class o extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==D.number){const s=this._getOrReturnCtx(t);return A(s,{code:b.invalid_type,expected:D.number,received:s.parsedType}),J}let a;const i=new Ne;for(const s of this._def.checks)"int"===s.kind?le.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{code:b.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):"min"===s.kind?(s.inclusive?t.data<s.value:t.data<=s.value)&&(a=this._getOrReturnCtx(t,a),A(a,{code:b.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):"max"===s.kind?(s.inclusive?t.data>s.value:t.data>=s.value)&&(a=this._getOrReturnCtx(t,a),A(a,{code:b.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):"multipleOf"===s.kind?0!==vs(t.data,s.value)&&(a=this._getOrReturnCtx(t,a),A(a,{code:b.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):"finite"===s.kind?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{code:b.not_finite,message:s.message}),i.dirty()):le.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,G.toString(r))}gt(t,r){return this.setLimit("min",t,!1,G.toString(r))}lte(t,r){return this.setLimit("max",t,!0,G.toString(r))}lt(t,r){return this.setLimit("max",t,!1,G.toString(r))}setLimit(t,r,a,i){return new o({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:G.toString(i)}]})}_addCheck(t){return new o({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:G.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:G.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:G.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:G.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:G.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)"min"===r.kind&&(null===t||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)"max"===r.kind&&(null===t||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>"int"===t.kind||"multipleOf"===t.kind&&le.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const a of this._def.checks){if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;"min"===a.kind?(null===r||a.value>r)&&(r=a.value):"max"===a.kind&&(null===t||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}
1}return o.create=n=>new o({checks:[],typeName:I.ZodNumber,coerce:n?.coerce||!1,...ne(n)}),o})(),Es=(()=>{class o extends re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==D.boolean){const a=this._getOrReturnCtx(t);return A(a,{code:b.invalid_type,expected:D.boolean,received:a.parsedType}),J}return Re(t.data)}}return o.create=n=>new o({typeName:I.ZodBoolean,coerce:n?.coerce||!1,...ne(n)}),o})(),ar=(()=>{class o extends re{_parse(t){if(this._getType(t)!==D.undefined){const a=this._getOrReturnCtx(t);return A(a,{code:b.invalid_type,expected:D.undefined,received:a.parsedType}),J}return Re(t.data)}}return o.create=n=>new o({typeName:I.ZodUndefined,...ne(n)}),o})(),ir=(()=>{class o extends re{_parse(t){if(this._getType(t)!==D.null){const a=this._getOrReturnCtx(t);return A(a,{code:b.invalid_type,expected:D.null,received:a.parsedType}),J}return Re(t.data)}}return o.create=n=>new o({typeName:I.ZodNull,...ne(n)}),o})(),Hn=(()=>{class o extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return Re(t.data)}}return o.create=n=>new o({typeName:I.ZodAny,...ne(n)}),o})(),Ct=(()=>{class o extends re{_parse(t){const r=this._getOrReturnCtx(t);return A(r,{code:b.invalid_type,expected:D.never,received:r.parsedType}),J}}return o.create=n=>new o({typeName:I.ZodNever,...ne(n)}),o})(),un=(()=>{class o extends re{_parse(t){const{ctx:r,status:a}=this._processInputParams(t),i=this._def;if(r.parsedType!==D.array)return A(r,{code:b.invalid_type,expected:D.array,received:r.parsedType}),J;if(null!==i.exactLength){const c=r.data.length>i.exactLength.value,u=r.data.length<i.exactLength.value;(c||u)&&(A(r,{code:c?b.too_big:b.too_small,minimum:u?i.exactLength.value:void 0,maximum:c?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),a.dirty())}if(null!==i.minLength&&r.data.length<i.minLength.value&&(A(r,{code:b.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),a.dirty()),null!==i.maxLength&&r.data.length>i.maxLength.value&&(A(r,{code:b.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((c,u)=>i.type._parseAsync(new $e(r,c,r.path,u)))).then(c=>Ne.mergeArray(a,c));const s=[...r.data].map((c,u)=>i.type._parseSync(new $e(r,c,r.path,u)));return Ne.mergeArray(a,s)}get element(){return this._def.type}min(t,r){return new o({...this._def,minLength:{value:t,message:G.toString(r)}})}max(t,r){return new o({...this._def,maxLength:{value:t,message:G.toString(r)}})}length(t,r){return new o({...this._def,exactLength:{value:t,message:G.toString(r)}})}nonempty(t){return this.min(1,t)}}return o.create=(n,t)=>new o({type:n,minLength:null,maxLength:null,exactLength:null,typeName:I.ZodArray,...ne(t)}),o})();function Et(o){if(o instanceof Pt){const n={};for(const t in o.shape)n[t]=st.create(Et(o.shape[t]));return new Pt({...o._def,shape:()=>n})}return o instanceof un?new un({...o._def,type:Et(o.element)}):o instanceof st?st.create(Et(o.unwrap())):o instanceof $t?$t.create(Et(o.unwrap())):o instanceof Gt?Gt.create(o.items.map(n=>Et(n))):o}let Pt=(()=>{class o extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),r=le.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==D.object){const m=this._getOrReturnCtx(t);return A(m,{code:b.invalid_type,expected:D.object,received:m.parsedType}),J}const{status:a,ctx:i}=this._processInputParams(t),{shape:s,keys:c}=this._getCached(),u=[];if(!(this._def.catchall instanceof Ct&&"strip"===this._def.unknownKeys))for(const m in i.data)c.includes(m)||u.push(m);const d=[];for(const m of c)d.push({key:{status:"valid",value:m},value:s[m]._parse(new $e(i,i.data[m],i.path,m)),alwaysSet:m in i.data});if(this._def.catchall instanceof Ct){const m=this._def.unknownKeys;if("passthrough"===m)for(const g of u)d.push({key:{status:"valid",value:g}
1,value:{status:"valid",value:i.data[g]}});else if("strict"===m)u.length>0&&(A(i,{code:b.unrecognized_keys,keys:u}),a.dirty());else if("strip"!==m)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const g of u)d.push({key:{status:"valid",value:g},value:m._parse(new $e(i,i.data[g],i.path,g)),alwaysSet:g in i.data})}return i.common.async?Promise.resolve().then(qe(function*(){const m=[];for(const g of d){const x=yield g.key,O=yield g.value;m.push({key:x,value:O,alwaysSet:g.alwaysSet})}return m})).then(m=>Ne.mergeObjectSync(a,m)):Ne.mergeObjectSync(a,d)}get shape(){return this._def.shape()}strict(t){return new o({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(r,a)=>{const i=this._def.errorMap?.(r,a).message??a.defaultError;return"unrecognized_keys"===r.code?{message:G.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new o({...this._def,unknownKeys:"strip"})}passthrough(){return new o({...this._def,unknownKeys:"passthrough"})}extend(t){return new o({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new o({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:I.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new o({...this._def,catchall:t})}pick(t){const r={};for(const a of le.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new o({...this._def,shape:()=>r})}omit(t){const r={};for(const a of le.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new o({...this._def,shape:()=>r})}deepPartial(){return Et(this)}partial(t){const r={};for(const a of le.objectKeys(this.shape)){const i=this.shape[a];r[a]=t&&!t[a]?i:i.optional()}return new o({...this._def,shape:()=>r})}required(t){const r={};for(const a of le.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let s=this.shape[a];for(;s instanceof st;)s=s._def.innerType;r[a]=s}return new o({...this._def,shape:()=>r})}keyof(){return dr(le.objectKeys(this.shape))}}return o.create=(n,t)=>new o({shape:()=>n,unknownKeys:"strip",catchall:Ct.create(),typeName:I.ZodObject,...ne(t)}),o.strictCreate=(n,t)=>new o({shape:()=>n,unknownKeys:"strict",catchall:Ct.create(),typeName:I.ZodObject,...ne(t)}),o.lazycreate=(n,t)=>new o({shape:n,unknownKeys:"strip",catchall:Ct.create(),typeName:I.ZodObject,...ne(t)}),o})(),sr=(()=>{class o extends re{_parse(t){const{ctx:r}=this._processInputParams(t),a=this._def.options;if(r.common.async)return Promise.all(a.map(function(){var s=qe(function*(c){const u={...r,common:{...r.common,issues:[]},parent:null};return{result:yield c._parseAsync({data:r.data,path:r.path,parent:u}),ctx:u}});return function(c){return s.apply(this,arguments)}}())).then(function i(s){for(const u of s)if("valid"===u.result.status)return u.result;for(const u of s)if("dirty"===u.result.status)return r.common.issues.push(...u.ctx.common.issues),u.result;const c=s.map(u=>new Xe(u.ctx.common.issues));return A(r,{code:b.invalid_union,unionErrors:c}),J});{let s;const c=[];for(const d of a){const m={...r,common:{...r.common,issues:[]},parent:null},g=d._parseSync({data:r.data,path:r.path,parent:m});if("valid"===g.status)return g;"dirty"===g.status&&!s&&(s={result:g,ctx:m}),m.common.issues.length&&c.push(m.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const u=c.map(d=>new Xe(d));return A(r,{code:b.invalid_union,unionErrors:u}),J}}get options(){return this._def.options}}return o.create=(n,t)=>new o({options:n,typeName:I.ZodUnion,...ne(t)}),o})();const Ze=o=>o instanceof lr?Ze(o.schema):o instanceof Bt?Ze(o.innerType()):o instanceof ur?[o.value]:o instanceof zn?o.options:o instanceof pr?le.objectValues(o.enum):o instanceof mr?Ze(o._def.innerType):o instanceof ar?[void 0]:o instanceof ir?[null]:o instanceof st?[void 0,...Ze(o.unwrap())]:o instanceof $t?[null,...Ze(o.unwrap())]:o instanceof hr||o instanceof gr?Ze(o.unwrap()):o instanceof fr?Ze(o._def.innerType):[];class Zn extends re{_parse(n){const{ctx:t}=this._processInputParams(n);
1if(t.parsedType!==D.object)return A(t,{code:b.invalid_type,expected:D.object,received:t.parsedType}),J;const r=this.discriminator,i=this.optionsMap.get(t.data[r]);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(A(t,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(n,t,r){const a=new Map;for(const i of t){const s=Ze(i.shape[n]);if(!s.length)throw new Error(`A discriminator value for key \`${n}\` could not be extracted from all schema options`);for(const c of s){if(a.has(c))throw new Error(`Discriminator property ${String(n)} has duplicate value ${String(c)}`);a.set(c,i)}}return new Zn({typeName:I.ZodDiscriminatedUnion,discriminator:n,options:t,optionsMap:a,...ne(r)})}}function Yn(o,n){const t=Je(o),r=Je(n);if(o===n)return{valid:!0,data:o};if(t===D.object&&r===D.object){const a=le.objectKeys(n),i=le.objectKeys(o).filter(c=>-1!==a.indexOf(c)),s={...o,...n};for(const c of i){const u=Yn(o[c],n[c]);if(!u.valid)return{valid:!1};s[c]=u.data}return{valid:!0,data:s}}if(t===D.array&&r===D.array){if(o.length!==n.length)return{valid:!1};const a=[];for(let i=0;i<o.length;i++){const u=Yn(o[i],n[i]);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}return t===D.date&&r===D.date&&+o==+n?{valid:!0,data:o}:{valid:!1}}let cr=(()=>{class o extends re{_parse(t){const{status:r,ctx:a}=this._processInputParams(t),i=(s,c)=>{if(Ko(s)||Ko(c))return J;const u=Yn(s.value,c.value);return u.valid?((Qo(s)||Qo(c))&&r.dirty(),{status:r.value,value:u.data}):(A(a,{code:b.invalid_intersection_types}),J)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([s,c])=>i(s,c)):i(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}return o.create=(n,t,r)=>new o({left:n,right:t,typeName:I.ZodIntersection,...ne(r)}),o})(),Gt=(()=>{class o extends re{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==D.array)return A(a,{code:b.invalid_type,expected:D.array,received:a.parsedType}),J;if(a.data.length<this._def.items.length)return A(a,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&a.data.length>this._def.items.length&&(A(a,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...a.data].map((c,u)=>{const d=this._def.items[u]||this._def.rest;return d?d._parse(new $e(a,c,a.path,u)):null}).filter(c=>!!c);return a.common.async?Promise.all(s).then(c=>Ne.mergeArray(r,c)):Ne.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new o({...this._def,rest:t})}}return o.create=(n,t)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new o({items:n,typeName:I.ZodTuple,rest:null,...ne(t)})},o})();class dn extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:t,ctx:r}=this._processInputParams(n);if(r.parsedType!==D.object)return A(r,{code:b.invalid_type,expected:D.object,received:r.parsedType}),J;const a=[],i=this._def.keyType,s=this._def.valueType;for(const c in r.data)a.push({key:i._parse(new $e(r,c,r.path,c)),value:s._parse(new $e(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?Ne.mergeObjectAsync(t,a):Ne.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(n,t,r){return new dn(t instanceof re?{keyType:n,valueType:t,typeName:I.ZodRecord,...ne(r)}:{keyType:rr.create(),valueType:n,typeName:I.ZodRecord,...ne(t)})}}let lr=(()=>{class o extends re{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}return o.create=(n,t)=>new o({getter:n,typeName:I.ZodLazy,...ne(t)}),o})(),ur=(()=>{class o extends re{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);
1return A(r,{received:r.data,code:b.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:t.data}}get value(){return this._def.value}}return o.create=(n,t)=>new o({value:n,typeName:I.ZodLiteral,...ne(t)}),o})();function dr(o,n){return new zn({values:o,typeName:I.ZodEnum,...ne(n)})}let zn=(()=>{class o extends re{_parse(t){if("string"!=typeof t.data){const r=this._getOrReturnCtx(t);return A(r,{expected:le.joinValues(this._def.values),received:r.parsedType,code:b.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t);return A(r,{received:r.data,code:b.invalid_enum_value,options:this._def.values}),J}return Re(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return o.create(t,{...this._def,...r})}exclude(t,r=this._def){return o.create(this.options.filter(a=>!t.includes(a)),{...this._def,...r})}}return o.create=dr,o})(),pr=(()=>{class o extends re{_parse(t){const r=le.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==D.string&&a.parsedType!==D.number){const i=le.objectValues(r);return A(a,{expected:le.joinValues(i),received:a.parsedType,code:b.invalid_type}),J}if(this._cache||(this._cache=new Set(le.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=le.objectValues(r);return A(a,{received:a.data,code:b.invalid_enum_value,options:i}),J}return Re(t.data)}get enum(){return this._def.values}}return o.create=(n,t)=>new o({values:n,typeName:I.ZodNativeEnum,...ne(t)}),o})(),Jn=(()=>{class o extends re{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==D.promise&&!1===r.common.async)return A(r,{code:b.invalid_type,expected:D.promise,received:r.parsedType}),J;const a=r.parsedType===D.promise?r.data:Promise.resolve(r.data);return Re(a.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}return o.create=(n,t)=>new o({type:n,typeName:I.ZodPromise,...ne(t)}),o})(),Bt=(()=>{class o extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===I.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){var r=this;const{status:a,ctx:i}=this._processInputParams(t),s=this._def.effect||null,c={addIssue:u=>{A(i,u),u.fatal?a.abort():a.dirty()},get path(){return i.path}};if(c.addIssue=c.addIssue.bind(c),"preprocess"===s.type){const u=s.transform(i.data,c);if(i.common.async)return Promise.resolve(u).then(function(){var d=qe(function*(m){if("aborted"===a.value)return J;const g=yield r._def.schema._parseAsync({data:m,path:i.path,parent:i});return"aborted"===g.status?J:"dirty"===g.status||"dirty"===a.value?Lt(g.value):g});return function(m){return d.apply(this,arguments)}}());{if("aborted"===a.value)return J;const d=this._def.schema._parseSync({data:u,path:i.path,parent:i});return"aborted"===d.status?J:"dirty"===d.status||"dirty"===a.value?Lt(d.value):d}}if("refinement"===s.type){const u=d=>{const m=s.refinement(d,c);if(i.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(!1===i.common.async){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===d.status?J:("dirty"===d.status&&a.dirty(),u(d.value),{status:a.value,value:d.value})}return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>"aborted"===d.status?J:("dirty"===d.status&&a.dirty(),u(d.value).then(()=>({status:a.value,value:d.value}))))}if("transform"===s.type){if(!1===i.common.async){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!yt(u))return J;const d=s.transform(u.value,c);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:d}}return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>yt(u)?Promise.resolve(s.transform(u.value,c)).then(d=>({status:a.value,value:d})):J)}le.assertNever(s)}}return o.create=(n,t,r)=>new o({schema:n,typeName:I.ZodEffects,effect:t,...ne(r)}),o.createWithPreprocess=(n,t,r)=>new o({schema:t,effect:{type:"preprocess",transform:n},typeName:I.ZodEffects,...ne(r)}),o})(),st=(()=>{class o extends re{_parse(t){return this._getType(t)===D.undefined?Re(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}return o.create=(n,t)=>new o({innerType:n,typeName:I.ZodOptional,...ne(t)}),o})(),$t=(()=>{class o extends re{_parse(t){return this._getType(t)===D.null?Re(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}return o.create=(n,t)=>new o({innerType:n,typeName:I.ZodNullable,...ne(t)}),o})(),mr=(()=>{class o extends re{_parse(t){const{ctx:r}=this._processInputParams(t);let a=r.data;return r.parsedType===D.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}return o.create=(n,t)=>new o({innerType:n,typeName:I.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ne(t)}),o})(),fr=(()=>{class o extends re{_parse(t){const{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return cn(i)?i.then(s=>
1({status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new Xe(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new Xe(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}return o.create=(n,t)=>new o({innerType:n,typeName:I.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ne(t)}),o})();class hr extends re{_parse(n){const{ctx:t}=this._processInputParams(n);return this._def.type._parse({data:t.data,path:t.path,parent:t})}unwrap(){return this._def.type}}class pn extends re{_parse(n){var t=this;const{status:r,ctx:a}=this._processInputParams(n);if(a.common.async)return function(){var s=qe(function*(){const u=yield t._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===u.status?J:"dirty"===u.status?(r.dirty(),Lt(u.value)):t._def.out._parseAsync({data:u.value,path:a.path,parent:a})});return function c(){return s.apply(this,arguments)}}()();{const i=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===i.status?J:"dirty"===i.status?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:a.path,parent:a})}}static create(n,t){return new pn({in:n,out:t,typeName:I.ZodPipeline})}}let gr=(()=>{class o extends re{_parse(t){const r=this._def.innerType._parse(t),a=i=>(yt(i)&&(i.value=Object.freeze(i.value)),i);return cn(r)?r.then(i=>a(i)):a(r)}unwrap(){return this._def.innerType}}return o.create=(n,t)=>new o({innerType:n,typeName:I.ZodReadonly,...ne(t)}),o})();var I=function(o){return o.ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly",o}(I||{});const p=rr.create,F=ys.create,Ke=Es.create,ie=Hn.create,ue=un.create,v=Pt.create,wr=sr.create,Oe=Zn.create,Ce=dn.create,As=lr.create,y=ur.create,be=zn.create;function vr(o,n,t,r){r?.errorMessages&&t&&(o.errorMessage={...o.errorMessage,[n]:t})}function pe(o,n,t,r,a){o[n]=t,vr(o,n,r,a)}function yr(o,n,t){const r=t??n.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((a,i)=>yr(o,n,a))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Ps(o,n)}}const Ps=(o,n)=>{const t={type:"integer",format:"unix-time"};if("openApi3"===n.target)return t;for(const r of o.checks)switch(r.kind){case"min":pe(t,"minimum",r.value,r.message,n);break;case"max":pe(t,"maximum",r.value,r.message,n)}return t};let Xn;const ct_cuid=/^[cC][^\s-]{8,}$/,ct_cuid2=/^[0-9a-z]+$/,ct_ulid=/^[0-9A-HJKMNP-TV-Z]{26}$/,ct_email=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,ct_emoji=()=>(void 0===Xn&&(Xn=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Xn),ct_base64=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ct_nanoid=/^[a-zA-Z0-9_-]{21}$/;function Cr(o,n){const t={type:"string"};function r(a){return"escape"===n.patternStrategy?Ws(a):a}if(o.checks)for(const a of o.checks)switch(a.kind){case"min":pe(t,"minLength","number"==typeof t.minLength?Math.max(t.minLength,a.value):a.value,a.message,n);break;case"max":pe(t,"maxLength","number"==typeof t.maxLength?Math.min(t.maxLength,a.value):a.value,a.message,n);break;case"email":switch(n.emailStrategy){case"format:email":Le(t,"email",a.message,n);break;case"format:idn-email":Le(t,"idn-email",a.message,n);break;case"pattern:zod":Pe(t,ct_email,a.message,n)}break;case"url":Le(t,"uri",a.message,n);break;case"uuid":Le(t,"uuid",a.message,n);break;case"regex":Pe(t,a.regex,a.message,n);break;case"cuid":Pe(t,ct_cuid,a.message,n);break;case"cuid2":Pe(t,ct_cuid2,a.message,n);break;case"startsWith":Pe(t,RegExp(`^${r(a.value)}`),a.message,n);break;case"endsWith":Pe(t,RegExp(`${r(a.value)}$`),a.message,n);break;case"datetime":Le(t,"date-time",a.message,n);break;case"date":Le(t,"date",a.message,n);break;case"time":Le(t,"time",a.message,n);break;case"duration":Le(t,"duration",a.message,n);break;case"length":pe(t,"minLength","number"==typeof t.minLength?Math.max(t.minLength,a.value):a.value,a.message,n),pe(t,"maxLength","number"==typeof t.maxLength?Math.min(t.maxLength,a.value):a.value,a.message,n);break;case"includes":Pe(t,RegExp(r(a.value)),a.message,n);break;case"ip":"v6"!==a.version&&Le(t,"ipv4",a.message,n),"v4"!==a.version&&Le(t,"ipv6",a.message,n);break;case"emoji":Pe(t,ct_emoji,a.message,n);break;case"ulid":Pe(t,ct_ulid,a.message,n);break;case"base64":switch(n.base64Strategy){case"format:binary":Le(t,"binary",a.message,n);break;case"contentEncoding:base64":pe(t,"contentEncoding","base64",a.message,n);break;case"pattern:zod":Pe(t,ct_base64,a.message,n)}break;case"nanoid":Pe(t,ct_nanoid,a.message,n)}return t}const Ws=o=>Array.from(o).map(n=>/[a-zA-Z0-9]/.test(n)?n:`\\${n}`).join(""),Le=(o,n,t,r)=>{o.format||o.anyOf?.some(a=>a.format)?(o.anyOf||(o.anyOf=[]),o.format&&(o.anyOf.push({format:o.format,...o.errorMessage&&r.errorMessages&&{errorMessage:{format:o.errorMessage.format}}}),delete o.format,o.errorMessage&&(delete o.errorMessage.format,0===Object.keys(o.errorMessage).length&&delete o.errorMessage)),o.anyOf.push({format:n,...t&&r.errorMessages&&{errorMessage:{format:t}}})):pe(o,"format",n,t,r)},Pe=(o,n,t,r)=>{o.pattern||o.allOf?.some(a=>a.pattern)?(o.allOf||(o.allOf=[]),o.pattern&&(o.allOf.push({pattern:o.pattern,...o.errorMessage&&r.errorMessages&&{errorMessage:{pattern:o.errorMessage.pattern}}}),delete o.pattern,o.errorMessage&&(delete o.errorMessage.pattern,0===Object.keys(o.errorMessage).length&&delete o.errorMessage)),o.allOf.push({pattern:Er(n,r),...t&&r.errorMessages&&{errorMessage:{pattern:t}}})):pe(o,"pattern",Er(n,r),t,r)},Er=(o,n)=>{const t="function"==typeof o?o():o;
1if(!n.applyRegexFlags||!t.flags)return t.source;const r_i=t.flags.includes("i"),r_m=t.flags.includes("m"),r_s=t.flags.includes("s"),a=r_i?t.source.toLowerCase():t.source;let i="",s=!1,c=!1,u=!1;for(let d=0;d<a.length;d++)if(s)i+=a[d],s=!1;else{if(r_i)if(c){if(a[d].match(/[a-z]/)){u?(i+=a[d],i+=`${a[d-2]}-${a[d]}`.toUpperCase(),u=!1):"-"===a[d+1]&&a[d+2]?.match(/[a-z]/)?(i+=a[d],u=!0):i+=`${a[d]}${a[d].toUpperCase()}`;continue}}else if(a[d].match(/[a-z]/)){i+=`[${a[d]}${a[d].toUpperCase()}]`;continue}if(r_m){if("^"===a[d]){i+="(^|(?<=[\r\n]))";continue}if("$"===a[d]){i+="($|(?=[\r\n]))";continue}}r_s&&"."===a[d]?i+=c?`${a[d]}\r\n`:`[${a[d]}\r\n]`:(i+=a[d],"\\"===a[d]?s=!0:c&&"]"===a[d]?c=!1:!c&&"["===a[d]&&(c=!0))}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${n.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return i};function xr(o,n){if("openApi3"===n.target&&o.keyType?._def.typeName===I.ZodEnum)return{type:"object",required:o.keyType._def.values,properties:o.keyType._def.values.reduce((r,a)=>({...r,[a]:de(o.valueType._def,{...n,currentPath:[...n.currentPath,"properties",a]})??{}}),{}),additionalProperties:!1};const t={type:"object",additionalProperties:de(o.valueType._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]})??{}};if("openApi3"===n.target)return t;if(o.keyType?._def.typeName===I.ZodString&&o.keyType._def.checks?.length){const r=Object.entries(Cr(o.keyType._def,n)).reduce((a,[i,s])=>"type"===i?a:{...a,[i]:s},{});return{...t,propertyNames:r}}return o.keyType?._def.typeName===I.ZodEnum?{...t,propertyNames:{enum:o.keyType._def.values}}:t}const mn={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},br=(o,n)=>{const t=(o.options instanceof Map?Array.from(o.options.values()):o.options).map((r,a)=>de(r._def,{...n,currentPath:[...n.currentPath,"anyOf",`${a}`]})).filter(r=>!!r&&(!n.strictUnions||"object"==typeof r&&Object.keys(r).length>0));return t.length?{anyOf:t}:void 0};function Ks(o,n){return"strict"===n.removeAdditionalStrategy?"ZodNever"===o.catchall._def.typeName?"strict"!==o.unknownKeys:de(o.catchall._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]})??!0:"ZodNever"===o.catchall._def.typeName?"passthrough"===o.unknownKeys:de(o.catchall._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]})??!0}function de(o,n,t=!1){const r=n.seen.get(o);if(n.override){const s=n.override?.(o,n,r,t);if(s!==Yi)return s}if(r&&!t){const s=cc(r,n);if(void 0!==s)return"$ref"in s&&n.seenRefs.add(s.$ref),s}const a={def:o,path:n.currentPath,jsonSchema:void 0};n.seen.set(o,a);const i=uc(o,o.typeName,n,t);return i&&dc(o,n,i),a.jsonSchema=i,i}const cc=(o,n)=>{switch(n.$refStrategy){case"root":return{$ref:o.path.join("/")};case"extract-to-root":const t=o.path.slice(n.basePath.length+1).join("_");return t!==n.name&&"duplicate-ref"===n.nameStrategy&&(n.definitions[t]=o.def),{$ref:[...n.basePath,n.definitionPath,t].join("/")};case"relative":return{$ref:lc(n.currentPath,o.path)};case"none":case"seen":return o.path.length<n.currentPath.length&&o.path.every((r,a)=>n.currentPath[a]===r)?(console.warn(`Recursive reference detected at ${n.currentPath.join("/")}! Defaulting to any`),{}):"seen"===n.$refStrategy?{}:void 0}},lc=(o,n)=>{let t=0;for(;t<o.length&&t<n.length&&o[t]===n[t];t++);return[(o.length-t).toString(),...n.slice(t)].join("/")},uc=(o,n,t,r)=>{switch(n){case I.ZodString:return Cr(o,t);case I.ZodNumber:return function qs(o,n){const t={type:"number"};if(!o.checks)return t;for(const r of o.checks)switch(r.kind){case"int":t.type="integer",vr(t,"type",r.message,n);break;case"min":"jsonSchema7"===n.target?pe(t,r.inclusive?"minimum":"exclusiveMinimum",r.value,r.message,n):(r.inclusive||(t.exclusiveMinimum=!0),pe(t,"minimum",r.value,r.message,n));break;case"max":"jsonSchema7"===n.target?pe(t,r.inclusive?"maximum":"exclusiveMaximum",r.value,r.message,n):(r.inclusive||(t.exclusiveMaximum=!0),pe(t,"maximum",r.value,r.message,n));break;case"multipleOf":pe(t,"multipleOf",r.value,r.message,n)}return t}(o,t);case I.ZodObject:return function Qs(o,n){const t={type:"object",...Object.entries(o.shape()).reduce((r,[a,i])=>{if(void 0===i||void 0===i._def)return r;const s=[...n.currentPath,"properties",a],c=de(i._def,{...n,currentPath:s,propertyPath:s});if(void 0===c)return r;if(n.openaiStrictMode&&i.isOptional()&&!i.isNullable()&&typeof i._def?.defaultValue>"u")throw new Error(`Zod field at \`${s.join("/")}\` uses \`.optional()\` without \`.nullable()\` which is not supported by the API. See: https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#all-fields-must-be-required`);return{properties:{...r.properties,[a]:c},required:i.isOptional()&&!n.openaiStrictMode?r.required:[...r.required,a]}},{properties:{},required:[]}),additionalProperties:Ks(o,n)};return t.required.length||delete t.required,t}(o,t);case I.ZodBigInt:return function Ms(o,n){const t={type:"integer",format:"int64"};if(!o.checks)return t;for(const r of o.checks)switch(r.kind){case"min":"jsonSchema7"===n.target?pe(t,r.inclusive?"minimum":"exclusiveMinimum",r.value,r.message,n):(r.inclusive||(t.exclusiveMinimum=!0),pe(t,"minimum",r.value,r.message,n));break;case"max":"jsonSchema7"===n.target?pe(t,r.inclusive?"maximum":"exclusiveMaximum",r.value,r.message,n):(r.inclusive||(t.exclusiveMaximum=!0),pe(t,"maximum",r.value,r.message,n));break;case"multipleOf":pe(t,"multipleOf",r.value,r.message,n)}return t}(o,t);case I.ZodBoolean:return{type:"boolean"};case I.ZodDate:return yr(o,t);case I.ZodUndefined:return{not:{}};case I.ZodNull:return function zs(o){return"openApi3"===o.target?{enum:["null"],nullable:!0}:{type:"null"}}(t);case I.ZodArray:return function ks(o,n){const t={type:"array"};return o.type?._def?.typeName!==I.ZodAny&&(t.items=de(o.type._def,{...n,currentPath:[...n.currentPath,"items"]})),o.minLength&&pe(t,"minItems",o.minLength.value,o.minLength.message,n),o.maxLength&&pe(t,"maxItems",o.maxLength.value,o.maxLength.message,n),o.exactLength&&(pe(t,"minItems",o.exactLength.value,o.exactLength.message,n),pe(t,"maxItems",o.exactLength.value,o.exactLength.message,n)),t}(o,t);case I.ZodUnion:case I.ZodDiscriminatedUnion:return function Js(o,n){if("openApi3"===n.target)return br(o,n);const t=o.options instanceof Map?Array.from(o.options.values()):o.options;if(t.every(r=>r._def.typeName in mn&&(!r._def.checks||!r._def.checks.length))){const r=t.reduce((a,i)=>{const s=mn[i._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:r.length>1?r:r[0]}}if(t.every(r=>"ZodLiteral"===r._def.typeName&&!r.description)){const r=t.reduce((a,i)=>{const s=typeof i._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(null===i._def.value)return[...a,"null"];default:return a}},[]);if(r.length===t.length){const a=r.filter((i,s,c)=>c.indexOf(i)===s);return{type:a.length>1?a:a[0],enum:t.reduce((i,s)=>i.includes(s._def.value)?i:[...i,s._def.value],[])}}}else if(t.every(r=>"ZodEnum"===r._def.typeName))return{type:"string",enum:t.reduce((r,a)=>[...r,...a._def.values.filter(i=>!r.includes(i))],[])};return br(o,n)}(o,t);case I.ZodIntersection:return function Us(o,n){const t=[de(o.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),de(o.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter(i=>!!i);let r="jsonSchema2019-09"===n.target?{unevaluatedProperties:!1}:void 0;const a=[];return t.forEach(i=>
1{if((o=>(!("type"in o)||"string"!==o.type)&&"allOf"in o)(i))a.push(...i.allOf),void 0===i.unevaluatedProperties&&(r=void 0);else{let s=i;if("additionalProperties"in i&&!1===i.additionalProperties){const{additionalProperties:c,...u}=i;s=u}else r=void 0;a.push(s)}}),a.length?{allOf:a,...r}:void 0}(o,t);case I.ZodTuple:return function rc(o,n){return o.rest?{type:"array",minItems:o.items.length,items:o.items.map((t,r)=>de(t._def,{...n,currentPath:[...n.currentPath,"items",`${r}`]})).reduce((t,r)=>void 0===r?t:[...t,r],[]),additionalItems:de(o.rest._def,{...n,currentPath:[...n.currentPath,"additionalItems"]})}:{type:"array",minItems:o.items.length,maxItems:o.items.length,items:o.items.map((t,r)=>de(t._def,{...n,currentPath:[...n.currentPath,"items",`${r}`]})).reduce((t,r)=>void 0===r?t:[...t,r],[])}}(o,t);case I.ZodRecord:return xr(o,t);case I.ZodLiteral:return function Vs(o,n){const t=typeof o.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(o.value)?"array":"object"}:"openApi3"===n.target?{type:"bigint"===t?"integer":t,enum:[o.value]}:{type:"bigint"===t?"integer":t,const:o.value}}(o,t);case I.ZodEnum:return function Bs(o){return{type:"string",enum:[...o.values]}}(o);case I.ZodNativeEnum:return function Zs(o){const n=o.values,r=Object.keys(o.values).filter(i=>"number"!=typeof n[n[i]]).map(i=>n[i]),a=Array.from(new Set(r.map(i=>typeof i)));return{type:1===a.length?"string"===a[0]?"string":"number":["string","number"],enum:r}}(o);case I.ZodNullable:return function Xs(o,n){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(o.innerType._def.typeName)&&(!o.innerType._def.checks||!o.innerType._def.checks.length))return"openApi3"===n.target||"property"===n.nullableStrategy?{type:mn[o.innerType._def.typeName],nullable:!0}:{type:[mn[o.innerType._def.typeName],"null"]};if("openApi3"===n.target){const r=de(o.innerType._def,{...n,currentPath:[...n.currentPath]});return r&&"$ref"in r?{allOf:[r],nullable:!0}:r&&{...r,nullable:!0}}const t=de(o.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","0"]});return t&&{anyOf:[t,{type:"null"}]}}(o,t);case I.ZodOptional:return((o,n)=>{if(n.propertyPath&&n.currentPath.slice(0,n.propertyPath.length).toString()===n.propertyPath.toString())return de(o.innerType._def,{...n,currentPath:n.currentPath});const t=de(o.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","1"]});return t?{anyOf:[{not:{}},t]}:{}})(o,t);case I.ZodMap:return function Hs(o,n){return"record"===n.mapStrategy?xr(o,n):{type:"array",maxItems:125,items:{type:"array",items:[de(o.keyType._def,{...n,currentPath:[...n.currentPath,"items","items","0"]})||{},de(o.valueType._def,{...n,currentPath:[...n.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(o,t);case I.ZodSet:return function oc(o,n){const r={type:"array",uniqueItems:!0,items:de(o.valueType._def,{...n,currentPath:[...n.currentPath,"items"]})};return o.minSize&&pe(r,"minItems",o.minSize.value,o.minSize.message,n),o.maxSize&&pe(r,"maxItems",o.maxSize.value,o.maxSize.message,n),r}(o,t);case I.ZodLazy:return de(o.getter()._def,t);case I.ZodPromise:return function nc(o,n){return de(o.type._def,n)}(o,t);case I.ZodNaN:case I.ZodNever:return{not:{}};case I.ZodEffects:return function js(o,n,t){return"input"===n.effectStrategy?de(o.schema._def,n,t):{}}(o,t,r);case I.ZodAny:case I.ZodUnknown:return{};case I.ZodDefault:return function Gs(o,n){return{...de(o.innerType._def,n),default:o.defaultValue()}}(o,t);case I.ZodBranded:return function Fs(o,n){return de(o.type._def,n)}(o,t);case I.ZodReadonly:case I.ZodCatch:return((o,n)=>de(o.innerType._def,n))(o,t);case I.ZodPipeline:return((o,n)=>{if("input"===n.pipeStrategy)return de(o.in._def,n);if("output"===n.pipeStrategy)return de(o.out._def,n);const t=de(o.in._def,{...n,currentPath:[...n.currentPath,"allOf","0"]});return{allOf:[t,de(o.out._def,{...n,currentPath:[...n.currentPath,"allOf",t?"1":"0"]})].filter(a=>void 0!==a)}})(o,t);default:return}},dc=(o,n,t)=>(o.description&&(t.description=o.description,n.markdownDescription&&(t.markdownDescription=o.description)),t);function fn(o,n){return((o,n)=>{const t=(o=>{const n=(o=>"string"==typeof o?{...Jo,basePath:["#"],definitions:{},name:o}:{...Jo,basePath:["#"],definitions:{},...o})(o),t=void 0!==n.name?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,currentPath:t,propertyPath:void 0,seenRefs:new Set,seen:new Map(Object.entries(n.definitions).map(([r,a])=>[$n(a),{def:$n(a),path:[...n.basePath,n.definitionPath,r],jsonSchema:void 0}]))}})(n),r="title"===n?.nameStrategy?void 0:n?.name,a=de(o._def,void 0===r?t:{...t,currentPath:[...t.basePath,t.definitionPath,r]},!1)??{},i=void 0!==n.name&&"title"===n.nameStrategy?n.name:void 0;void 0!==i&&(a.title=i);const s=(()=>
1{if(function Ji(o){if(!o)return!0;for(const n in o)return!1;return!0}(t.definitions))return;const u={},d=new Set;for(let m=0;m<500;m++){const g=Object.entries(t.definitions).filter(([x])=>!d.has(x));if(0===g.length)break;for(const[x,O]of g)u[x]=de($n(O),{...t,currentPath:[...t.basePath,t.definitionPath,x]},!0)??{},d.add(x)}return u})(),c=void 0===r?s?{...a,[t.definitionPath]:s}:a:"duplicate-ref"===t.nameStrategy?{...a,...s||t.seenRefs.size?{[t.definitionPath]:{...s,...t.seenRefs.size?{[r]:a}:void 0}}:void 0}:{$ref:[..."relative"===t.$refStrategy?[]:t.basePath,t.definitionPath,r].join("/"),[t.definitionPath]:{...s,[r]:a}};return"jsonSchema7"===t.target?c.$schema="http://json-schema.org/draft-07/schema#":"jsonSchema2019-09"===t.target&&(c.$schema="https://json-schema.org/draft/2019-09/schema#"),c})(o,{openaiStrictMode:!0,name:n.name,nameStrategy:"duplicate-ref",$refStrategy:"extract-to-root",nullableStrategy:"property"})}class Qe extends Error{state;constructor(n,t){super(n),this.state=t}}class bc extends Qe{}class Nr extends Qe{}class ke extends Qe{}class Ee extends Qe{}class Rr extends Qe{error;constructor(n,t,r){super(n,r),this.error=t}}class Ic extends Qe{error;constructor(n,t,r){super(n,r),this.error=t}}class Ar extends Qe{result;constructor(n,t,r){super(n,r),this.result=t}}class qn extends Qe{result;constructor(n,t,r){super(n,r),this.result=t}}function lt(o){return"object"==typeof o&&null!==o&&"_def"in o&&"object"==typeof o._def&&null!==o._def&&"typeName"in o._def&&"ZodObject"===o._def.typeName}function hn(o){if(0===(o=(o=o.replace(/\s/g,"_")).replace(/[^a-zA-Z0-9]/g,"_")).length)throw new Error("Tool name cannot be empty");return o}function Kn(o,n){if(lt(o)){const r=function xc(o){return function _c(o,{parser:n,callback:t}){const r={...o};return Object.defineProperties(r,{$brand:{value:"auto-parseable-tool",enumerable:!1},$parseRaw:{value:n,enumerable:!1},$callback:{value:t,enumerable:!1}}),r}({type:"function",name:o.name,parameters:fn(o.parameters,{name:o.name}),strict:!0,...o.description?{description:o.description}:void 0},{callback:o.function,parser:n=>o.parameters.parse(JSON.parse(n))})}({name:n,parameters:o,function:()=>{},description:""});return{schema:r.parameters,parser:r.$parseRaw}}if("object"==typeof o&&null!==o)return{schema:o,parser:r=>JSON.parse(r)};throw new Ee("Input type is not a ZodObject or a valid JSON schema")}function Or(o){if("text"===o)return"text";if(lt(o)){const n=function Ec(o,n,t){return function $i(o,n){const t={...o};return Object.defineProperties(t,{$brand:{value:"auto-parseable-response-format",enumerable:!1},$parseRaw:{value:n,enumerable:!1}}),t}({type:"json_schema",...t,name:n,strict:!0,schema:fn(o,{name:n})},r=>o.parse(JSON.parse(r)))}(o,"output");return{type:n.type,name:n.name,strict:n.strict||!1,schema:n.schema}}return o}var gn=f(80282);function eo(o){const n={};return"true"===n[o]||"1"===n[o]}const kr={get disabled(){return!0}},Mr={get dontLogModelData(){return eo("OPENAI_AGENTS_DONT_LOG_MODEL_DATA")},get dontLogToolData(){return eo("OPENAI_AGENTS_DONT_LOG_TOOL_DATA")}},Tc=Mr.dontLogModelData,Nc=Mr.dontLogToolData;function Ut(o="openai-agents"){return{namespace:o,debug:gn(o),error:console.error,warn:console.warn,dontLogModelData:Tc,dontLogToolData:Nc}}const Vt=Ut("openai-agents:core"),W=Vt;function et(o){if(null==o)return String(o);if("string"==typeof o)return o;if("object"==typeof o)try{return JSON.stringify(o)}catch{return"[object with circular references]"}return String(o)}function Dr(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Wt(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Dr(i,r,a,s,c,"next",u)}function c(u){Dr(i,r,a,s,c,"throw",u)}s(void 0)})}}function Rc(o,n){return`An error occurred while running the tool. Please try again. Error: ${n instanceof Error?n.toString():String(n)}`}function _n(o){const n=hn(o.name?o.name:o.execute.name),t=typeof o.errorFunction>"u"?Rc:o.errorFunction;if(!n)throw new Error("Tool name cannot be empty. Either name your function or provide a name in the options.");const r=o.strict??!0;if(!r&&lt(o.parameters))throw new Ee("Strict mode is required for Zod parameters");const{parser:a,schema:i}=Kn(o.parameters,n);function c(){return(c=Wt(function*(x,O,C){const[H,U]=yield Z(()=>a(O));if(null!==H)throw W.debug(W.dontLogToolData?`Invalid JSON input for tool ${n}`:`Invalid JSON input for tool ${n}: ${O}`),new ke("Invalid JSON input for tool");W.debug(W.dontLogToolData?`Invoking tool ${n}`:`Invoking tool ${n} with input ${O}`);const k=yield o.execute(U,x,C),q=et(k);return W.debug(W.dontLogToolData?`Tool ${n} completed`:`Tool ${n} returned: ${q}`),k})).apply(this,arguments)}function d(){return d=Wt(function*(x,O,C){return function s(x,O,C){return c.apply(this,arguments)}(x,O,C).catch(H=>{if(t)return Xt()?.setError({message:"Error running tool (non-fatal)",data:{tool_name:n,error:H.toString()}}),t(x,H);throw H})}),d.apply(this,arguments)}const m="function"==typeof o.needsApproval?o.needsApproval:Wt(function*(){return"boolean"==typeof o.needsApproval&&o.needsApproval}),g="function"==typeof o.isEnabled?function(){var x=Wt(function*(O,C){const H=o.isEnabled;return!!(yield H({runContext:O,agent:C}))});return function(O,C){return x.apply(this,arguments)}}():Wt(function*(){return"boolean"!=typeof o.isEnabled||o.isEnabled});return{type:"function",name:n,description:o.description,parameters:i,strict:r,invoke:function u(x,O,C){return d.apply(this,arguments)},needsApproval:m,isEnabled:g}}function Fr(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function tt(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Fr(i,r,a,s,c,"next",u)}function c(u){Fr(i,r,a,s,c,"throw",u)}s(void 0)})}}v({name:p(),description:p().optional(),inputSchema:v({type:y("object"),properties:Ce(p(),ie()),required:ue(p()),additionalProperties:Ke()})});const wn={};function Mc(o){return oo.apply(this,arguments)}function oo(){return oo=tt(function*({server:o,convertSchemasToStrict:n,runContext:t,agent:r}){return o.cacheToolsList&&wn[o.name]?wn[o.name].map(a=>jr(a,o,n)):Dl(function(){var a=tt(function*(i){const s=yield o.listTools();let c=s;if(t&&r){const d={runContext:t,agent:r,serverName:o.name},m=[];for(const g of s){const x=o.toolFilter;if(x)if("function"==typeof x){if(!(yield x(d,g))){Vt.debug(`MCP Tool (server: ${o.name}, tool: ${g.name}) is blocked by the callable filter.`);continue}}else{const O=x.allowedToolNames??[],C=x.blockedToolNames??[];if(O.length>0||C.length>0){const H=!(O.length>0)||O.includes(g.name),U=C.length>0&&C.includes(g.name);if(!H||U){U?Vt.debug(`MCP Tool (server: ${o.name}, tool: ${g.name}) is blocked by the static filter.`):H||Vt.debug(`MCP Tool (server: ${o.name}, tool: ${g.name}) is not allowed by the static filter.`);continue}}}m.push(g)}c=m}i.spanData.result=c.map(d=>d.name);const u=c.map(d=>jr(d,o,n));return o.cacheToolsList&&(wn[o.name]=c),u});return function(i){return a.apply(this,arguments)}}(),{data:{server:o.name}})}),oo.apply(this,arguments)}function ro(){return ro=tt(function*(o,n,t,r=!1){const a=Array.isArray(o)?{mcpServers:o,runContext:n,agent:t,convertSchemasToStrict:r}:o,{mcpServers:i,convertSchemasToStrict:s=!1,runContext:c,agent:u}=a,d=[],m=new Set;for(const g of i){const x=yield Mc({server:g,convertSchemasToStrict:s,runContext:c,agent:u}),C=[...new Set(x.map(H=>H.name))].filter(H=>m.has(H));if(C.length>0)throw new Ee(`Duplicate tool names found across MCP servers: ${C.join(", ")}`);for(const H of x)m.add(H.name),d.push(H)}return d}),ro.apply(this,arguments)}function jr(o,n,t){function r(c,u){return a.apply(this,arguments)}function a(){return(a=tt(function*(c,u){let d={};"string"==typeof c&&c?d=JSON.parse(c):"object"==typeof c&&null!=c&&(d=c);const m=Xt();m&&(m.spanData.mcp_data={server:n.name});
1const g=yield n.callTool(o.name,d);return 1===g.length?g[0]:g})).apply(this,arguments)}const i={...o.inputSchema,type:o.inputSchema?.type??"object",properties:o.inputSchema?.properties??{},required:o.inputSchema?.required??[],additionalProperties:o.inputSchema?.additionalProperties??!1};if(t||!0===i.additionalProperties)try{const c=function Fc(o){const n={...o,additionalProperties:!1};return n.required||(n.required=[]),n}(i);return _n({name:o.name,description:o.description||"",parameters:c,strict:!0,execute:r})}catch(c){Vt.warn(`Error converting MCP schema to strict mode: ${c}`)}const s={...i,additionalProperties:!0};return _n({name:o.name,description:o.description||"",parameters:s,strict:!1,execute:r})}class vn{#e=new EventTarget;#t=new Map;on(n,t){const r=n;let a=this.#t.get(r);a||(a=new Map,this.#t.set(r,a));let i=a.get(t);i||(i=new Set,a.set(t,i));const s=c=>t(...c.detail??[]);return i.add(s),this.#e.addEventListener(r,s),this}off(n,t){const r=n,a=this.#t.get(r),i=a?.get(t);if(i?.size){for(const s of i)this.#e.removeEventListener(r,s);a?.delete(t),0===a?.size&&this.#t.delete(r)}return this}emit(n,...t){const r=new CustomEvent(n,{detail:t});return this.#e.dispatchEvent(r)}once(n,t){const r=(...a)=>{this.off(n,r),t(...a)};return this.on(n,r),this}}const Br=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){const n=16*Math.random()|0;return("x"===o?n:3&n|8).toString(16)}),Bc=class{constructor(){}pipeTo(n,t){}pipeThrough(n,t){}},$c=globalThis.ReadableStream,Uc=(globalThis,globalThis.TransformStream);class Vc{context=null;constructor(){}run(n,t){return this.context=n,t()}getStore(){return this.context}enterWith(n){this.context=n}}const Zc=new class Hc{constructor(){}setTimeout(n,t){const r=setTimeout(n,t);return r.ref="function"==typeof r.ref?r.ref:()=>r,r.unref="function"==typeof r.unref?r.unref:()=>r,r.hasRef="function"==typeof r.hasRef?r.hasRef:()=>!0,r.refresh="function"==typeof r.refresh?r.refresh:()=>r,r}clearTimeout(n){window.clearTimeout(n)}};class ao{on(n,t){return this.eventEmitter.on(n,t),this.eventEmitter}off(n,t){return this.eventEmitter.off(n,t),this.eventEmitter}emit(n,...t){return this.eventEmitter.emit(n,...t)}once(n,t){return this.eventEmitter.once(n,t),this.eventEmitter}}class Yc extends ao{eventEmitter=new vn}class zc extends ao{eventEmitter=new vn}function yn(o){return!o.startsWith("gpt-5-chat")&&o.startsWith("gpt-5")}function Ur(){return yn(Vr())}function Vr(){return{}.OPENAI_DEFAULT_MODEL?.toLowerCase()??"gpt-4.1"}function Wr(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Cn(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Wr(i,r,a,s,c,"next",u)}function c(u){Wr(i,r,a,s,c,"throw",u)}s(void 0)})}}function Hr(o){return JSON.stringify({assistant:o.name})}class Zr{toolName;toolDescription;inputJsonSchema={type:"object",properties:{},required:[],additionalProperties:!1};strictJsonSchema=!0;onInvokeHandoff;agentName;inputFilter;agent;getHandoffAsFunctionTool(){return{type:"function",name:this.toolName,description:this.toolDescription,parameters:this.inputJsonSchema,strict:this.strictJsonSchema}}isEnabled=Cn(function*(){return!0});constructor(n,t){this.agentName=n.name,this.onInvokeHandoff=t,this.toolName=function qc(o){return`transfer_to_${hn(o.name)}`}(n),this.toolDescription=function Kc(o){return`Handoff to the ${o.name} agent to handle the request. ${o.handoffDescription??""}`}(n),this.agent=n}}function Yr(o,n={}){let t;if(!!n.onHandoff!=!!n.inputType)throw new Ee("You must provide either both `onHandoff` and `inputType` or neither.");function c(){return(c=Cn(function*(d,m){if(t){if(!m)throw Tt({message:`Handoff function expected non empty input but got: ${m}`,data:{details:"input is empty"}}),new ke("Handoff function expected non empty input");try{const g=yield t(m);n.onHandoff&&(yield n.onHandoff(d,g))}catch(g){throw Tt({message:"Invalid JSON provided",data:{}}),W.dontLogToolData||W.error(`Invalid JSON when parsing: ${m}. Error: ${g}`),new ke("Invalid JSON provided")}}else yield n.onHandoff?.(d);return o}
1)).apply(this,arguments)}const u=new Zr(o,function s(d,m){return c.apply(this,arguments)});if("function"==typeof n.isEnabled){const d=n.isEnabled;u.isEnabled=function(){var m=Cn(function*({runContext:g,agent:x}){return!!(yield d({runContext:g,agent:x}))});return function(g){return m.apply(this,arguments)}}()}else"boolean"==typeof n.isEnabled&&(u.isEnabled=Cn(function*(){return n.isEnabled}));if(n.inputType){const d=Kn(n.inputType,u.toolName);u.inputJsonSchema=d.schema,u.strictJsonSchema=!0,t=d.parser}return n.toolNameOverride&&(u.toolName=n.toolNameOverride),n.toolDescriptionOverride&&(u.toolDescription=n.toolDescriptionOverride),n.inputFilter&&(u.inputFilter=n.inputFilter),u}function zr(o){if("message"!==o.type||"assistant"!==o.role)return;const n=o.content[o.content.length-1];return"output_text"===n.type?n.text:void 0}function Jr(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function bt(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Jr(i,r,a,s,c,"next",u)}function c(u){Jr(i,r,a,s,c,"throw",u)}s(void 0)})}}const io=new WeakMap,ol=v({input:p()});let Ht=(()=>{class o extends Yc{static create(t){return new o({...t,handoffs:t.handoffs,outputType:t.outputType,handoffOutputTypeWarningEnabled:!1})}static DEFAULT_MODEL_PLACEHOLDER="";name;instructions;prompt;handoffDescription;handoffs;model;modelSettings;tools;mcpServers;inputGuardrails;outputGuardrails;outputType="text";toolUseBehavior;resetToolChoice;constructor(t){if(super(),"string"!=typeof t.name||""===t.name.trim())throw new Ee("Agent must have a name.");if(this.name=t.name,this.instructions=t.instructions??o.DEFAULT_MODEL_PLACEHOLDER,this.prompt=t.prompt,this.handoffDescription=t.handoffDescription??"",this.handoffs=t.handoffs??[],this.model=t.model??"",this.modelSettings=t.modelSettings??function Xc(o){return yn(o??Vr())?{reasoning:{effort:"low"},text:{verbosity:"low"}}:{}}(),this.tools=t.tools??[],this.mcpServers=t.mcpServers??[],this.inputGuardrails=t.inputGuardrails??[],this.outputGuardrails=t.outputGuardrails??[],t.outputType&&(this.outputType=t.outputType),this.toolUseBehavior=t.toolUseBehavior??"run_llm_again",this.resetToolChoice=t.resetToolChoice??!0,void 0!==t.model&&Ur()&&("string"!=typeof t.model||!yn(t.model))&&void 0===t.modelSettings&&(this.modelSettings={}),(void 0===t.handoffOutputTypeWarningEnabled||t.handoffOutputTypeWarningEnabled)&&this.handoffs&&this.outputType){const r=new Set([JSON.stringify(this.outputType)]);for(const a of this.handoffs)"outputType"in a&&a.outputType?r.add(JSON.stringify(a.outputType)):"agent"in a&&a.agent.outputType&&r.add(JSON.stringify(a.agent.outputType));r.size>1&&W.warn(`[Agent] Warning: Handoff agents have different output types: ${Array.from(r).join(", ")}. You can make it type-safe by using Agent.create({ ... }) method instead.`)}}get outputSchemaName(){if("text"===this.outputType)return"text";if(lt(this.outputType))return"ZodOutput";if("object"==typeof this.outputType)return this.outputType.name;throw new Error(`Unknown output type: ${this.outputType}`)}clone(t){return new o({...this,...t})}asTool(t){var r=this;const{toolName:a,toolDescription:i,customOutputExtractor:s,needsApproval:c,runConfig:u,runOptions:d,isEnabled:m}=t;return _n({name:a??hn(this.name),description:i??"",parameters:ol,strict:!0,needsApproval:c,isEnabled:m,execute:(g=bt(function*(O,C,H){if(!function Sc(o){return"object"==typeof o&&null!==o&&"input"in o&&"string"==typeof o.input}(O))throw new ke("Agent tool called with invalid input");const k=yield new La(u??{}).run(r,O.input,{context:C,...d??{}});"function"!=typeof s&&"object"==typeof r.toolUseBehavior&&null!==r.toolUseBehavior&&"stopAtToolNames"in r.toolUseBehavior&&W.debug(`You're passing the agent (name: ${r.name}) with toolUseBehavior.stopAtToolNames configured as a tool to a different agent; this may not work as you expect. You may want to have a wrapper function tool to consistently return the final output.`);const ge="function"==typeof s?yield s(k):function el(o){return 0===o.output.length?"":zr(o.output[o.output.length-1])||""}(k.rawResponses[k.rawResponses.length-1]);return H?.toolCall&&function tl(o,n){o&&io.set(o,n)}(H.toolCall,k),ge}),function x(O,C,H){return g.apply(this,arguments)})});var g}getSystemPrompt(t){var r=this;return bt(function*(){return"function"==typeof r.instructions?yield r.instructions(t,r):r.instructions})()}getPrompt(t){var r=this;return bt(function*(){return"function"==typeof r.prompt?yield r.prompt(t,r):r.prompt})()}getMcpTools(t){var r=this;return bt(function*(){return r.mcpServers.length>0?function Dc(o,n,t){return ro.apply(this,arguments)}({mcpServers:r.mcpServers,runContext:t,agent:r,convertSchemasToStrict:!1}):[]})()}getAllTools(t){var r=this;return bt(function*(){const a=yield r.getMcpTools(t),i=[];for(const s of r.tools){if("function"===s.type){const c=s.isEnabled;if(!("function"==typeof c?yield c(t,r):"boolean"!=typeof c||c))continue}i.push(s)}return[...a,...i]})()}getEnabledHandoffs(t){var r=this;return bt(function*(){const a=r.handoffs?.map(s=>function Qc(o){return o instanceof Zr?o:Yr(o)}(s))??[],i=[];for(const s of a)(yield s.isEnabled({runContext:t,agent:r}))&&i.push(s);return i})()}processFinalOutput(t){if("text"===this.outputType)return t;if("object"==typeof this.outputType){const r=JSON.parse(t);return lt(this.outputType)?this.outputType.parse(r):r}throw new Error(`Unknown output type: ${this.outputType}`)}toJSON(){return{name:this.name}}}return o}
1)();function Xr(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function qr(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Xr(i,r,a,s,c,"next",u)}function c(u){Xr(i,r,a,s,c,"throw",u)}s(void 0)})}}function Kr({name:o,execute:n}){return{type:"input",name:o,guardrailFunction:n,run:t=>qr(function*(){return{guardrail:{type:"input",name:o},output:yield n(t)}})()}}function so({name:o,execute:n}){return{type:"output",name:o,guardrailFunction:n,run:t=>qr(function*(){return{guardrail:{type:"output",name:o},agent:t.agent,agentOutput:t.agentOutput,output:yield n(t)}})()}}function rl(){throw new Error("No default model provider set. Make sure to set a provider using setDefaultModelProvider before calling getDefaultModelProvider or pass an explicit provider.")}const xe=v({providerData:Ce(p(),ie()).optional()}),ut=xe.extend({id:p().optional()}),al=xe.extend({type:y("refusal"),refusal:p()}),il=xe.extend({type:y("output_text"),text:p()}),Qr=xe.extend({type:y("input_text"),text:p()}),sl=xe.extend({type:y("reasoning_text"),text:p()}),cl=xe.extend({type:y("input_image"),image:p().or(v({id:p()})).describe("Could be a URL, base64 or an object with a file ID.")}),ll=xe.extend({type:y("input_file"),file:p().describe("Either base64 encoded file data or a publicly accessible file URL").or(v({id:p().describe("OpenAI file ID")})).or(v({url:p().describe("Publicly accessible PDF file URL")})).describe("Contents of the file or an object with a file ID.")}),ea=xe.extend({type:y("audio"),audio:p().or(v({id:p()})).describe("Base64 encoded audio data or file id"),format:p().nullable().optional(),transcript:p().nullable().optional()}),ul=xe.extend({type:y("image"),image:p().describe("Base64 encoded image data")}),dl=xe.extend({type:y("text"),text:p()}),pl=xe.extend({type:y("image"),data:p().describe("Base64 encoded image data"),mediaType:p().describe("IANA media type of the image")}),ml=xe.extend({type:y("computer_screenshot"),data:p().describe("Base64 encoded image data or URL")}),fl=Oe("type",[v({type:y("screenshot")}),v({type:y("click"),x:F(),y:F(),button:be(["left","right","wheel","back","forward"])}),v({type:y("double_click"),x:F(),y:F()}),v({type:y("scroll"),x:F(),y:F(),scroll_x:F(),scroll_y:F()}),v({type:y("type"),text:p()}),v({type:y("wait")}),v({type:y("move"),x:F(),y:F()}),v({type:y("keypress"),keys:ue(p())}),v({type:y("drag"),path:ue(v({x:F(),y:F()}))})]),hl=Oe("type",[il,al,ea,ul]),lo=ut.extend({type:y("message").optional()}),En=lo.extend({role:y("assistant"),status:be(["in_progress","completed","incomplete"]),content:ue(hl)}),gl=Oe("type",[Qr,cl,ll,ea]),ta=lo.extend({role:y("user"),content:ue(gl).or(p())}),na=lo.extend({role:y("system"),content:p()}),Zt=(Oe("role",[na,En,ta]),ut.extend({type:y("hosted_tool_call"),name:p().describe("The name of the hosted tool"),arguments:p().describe("The arguments of the hosted tool call").optional(),status:p().optional(),output:p().optional()})),Yt=ut.extend({type:y("function_call"),callId:p().describe("The ID of the tool call"),name:p().describe("The name of the function"),status:be(["in_progress","completed","incomplete"]).optional(),arguments:p()}),uo=ut.extend({type:y("function_call_result"),name:p().describe("The name of the tool"),callId:p().describe("The ID of the tool call"),status:be(["in_progress","completed","incomplete"]),output:Oe("type",[dl,pl])}),po=ut.extend({type:y("computer_call"),callId:p().describe("The ID of the computer call"),status:be(["in_progress","completed","incomplete"]),action:fl}),_l=ut.extend({type:y("computer_call_result"),callId:p().describe("The ID of the computer call"),output:ml}),wl=Oe("type",[po,Yt,Zt]),mo=xe.extend({id:p().optional(),type:y("reasoning"),content:ue(Qr),rawContent:ue(sl).optional()}),oa=ut.extend({type:y("unknown")}),fo=Oe("type",[En,Zt,Yt,po,mo,oa]),vl=wr([ta,En,na,Zt,Yt,po,uo,_l,mo,oa]),yl=v({requests:F().optional(),inputTokens:F(),outputTokens:F(),totalTokens:F(),inputTokensDetails:Ce(p(),F()).optional(),outputTokensDetails:Ce(p(),F()).optional()}),ra=xe.extend({type:y("output_text_delta"),delta:p()}),Cl=xe.extend({type:y("response_started")}),aa=xe.extend({type:y("response_done"),response:xe.extend({id:p(),usage:yl,output:ue(fo)})}),El=xe.extend({type:y("model"),event:ie().describe("The event from the model")});Oe("type",[ra,aa,Cl,El]);class xn{requests;inputTokens;outputTokens;totalTokens;
1inputTokensDetails=[];outputTokensDetails=[];constructor(n){if(typeof n>"u")this.requests=0,this.inputTokens=0,this.outputTokens=0,this.totalTokens=0,this.inputTokensDetails=[],this.outputTokensDetails=[];else{this.requests=n?.requests??1,this.inputTokens=n?.inputTokens??n?.input_tokens??0,this.outputTokens=n?.outputTokens??n?.output_tokens??0,this.totalTokens=n?.totalTokens??n?.total_tokens??0;const t=n?.inputTokensDetails??n?.input_tokens_details;this.inputTokensDetails=t?[t]:[];const r=n?.outputTokensDetails??n?.output_tokens_details;this.outputTokensDetails=r?[r]:[]}}add(n){this.requests+=n.requests,this.inputTokens+=n.inputTokens,this.outputTokens+=n.outputTokens,this.totalTokens+=n.totalTokens,n.inputTokensDetails&&this.inputTokensDetails.push(...n.inputTokensDetails),n.outputTokensDetails&&this.outputTokensDetails.push(...n.outputTokensDetails)}}class It{context;usage;#e;constructor(n={}){this.context=n,this.usage=new xn,this.#e=new Map}_rebuildApprovals(n){this.#e=new Map(Object.entries(n))}isToolApproved(n){const{toolName:t,callId:r}=n,a=this.#e.get(t);if(!0===a?.approved&&!0===a.rejected)return W.warn("Tool is permanently approved and rejected at the same time. Approval takes precedence"),!0;if(!0===a?.approved)return!0;if(!0===a?.rejected)return!1;const i=!!Array.isArray(a?.approved)&&a.approved.includes(r),s=!!Array.isArray(a?.rejected)&&a.rejected.includes(r);return i&&s?(W.warn(`Tool call ${r} is both approved and rejected at the same time. Approval takes precedence`),!0):!!i||!s&&void 0}approveTool(n,{alwaysApprove:t=!1}={}){const r=n.rawItem.name;if(t)return void this.#e.set(r,{approved:!0,rejected:[]});const a=this.#e.get(r)??{approved:[],rejected:[]};Array.isArray(a.approved)&&a.approved.push("callId"in n.rawItem?n.rawItem.callId:n.rawItem.id),this.#e.set(r,a)}rejectTool(n,{alwaysReject:t=!1}={}){const r=n.rawItem.name;if(t)return void this.#e.set(r,{approved:!1,rejected:!0});const a=this.#e.get(r)??{approved:[],rejected:[]};Array.isArray(a.rejected)&&a.rejected.push("callId"in n.rawItem?n.rawItem.callId:n.rawItem.id),this.#e.set(r,a)}toJSON(){return{context:this.context,usage:this.usage,approvals:Object.fromEntries(this.#e.entries())}}}function ia(o){return"function"===o.type?{type:"function",name:o.name,description:o.description,parameters:o.parameters,strict:o.strict}:"computer"===o.type?{type:"computer",name:o.name,environment:o.computer.environment,dimensions:o.computer.dimensions}:{type:"hosted_tool",name:o.name,providerData:o.providerData}}function sa(o){return{toolName:o.toolName,toolDescription:o.toolDescription,inputJsonSchema:o.inputJsonSchema,strictJsonSchema:o.strictJsonSchema}}class dt{type="base_item";rawItem;toJSON(){return{type:this.type,rawItem:this.rawItem}}}class bn extends dt{rawItem;agent;type="message_output_item";constructor(n,t){super(),this.rawItem=n,this.agent=t}toJSON(){return{...super.toJSON(),agent:this.agent.toJSON()}}get content(){let n="";for(const t of this.rawItem.content)"output_text"===t.type&&(n+=t.text);return n}}class pt extends dt{rawItem;agent;type="tool_call_item";constructor(n,t){super(),this.rawItem=n,this.agent=t}toJSON(){return{...super.toJSON(),agent:this.agent.toJSON()}}}class St extends dt{rawItem;agent;output;type="tool_call_output_item";constructor(n,t,r){super(),this.rawItem=n,this.agent=t,this.output=r}toJSON(){return{...super.toJSON(),agent:this.agent.toJSON(),output:et(this.output)}}}class ho extends dt{rawItem;agent;type="reasoning_item";constructor(n,t){super(),this.rawItem=n,this.agent=t}toJSON(){return{...super.toJSON(),agent:this.agent.toJSON()}}}class go extends dt{rawItem;agent;type="handoff_call_item";constructor(n,t){super(),this.rawItem=n,this.agent=t}toJSON(){return{...super.toJSON(),agent:this.agent.toJSON()}}}class _o extends dt{rawItem;sourceAgent;targetAgent;type="handoff_output_item";constructor(n,t,r){super(),this.rawItem=n,this.sourceAgent=t,this.targetAgent=r}toJSON(){return{...super.toJSON(),sourceAgent:this.sourceAgent.toJSON(),targetAgent:this.targetAgent.toJSON()}}}class Me extends dt{rawItem;agent;type="tool_approval_item";constructor(n,t){super(),this.rawItem=n,this.agent=t}toJSON(){return{...super.toJSON(),agent:this.agent.toJSON()}}}function ca(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function la(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){ca(i,r,a,s,c,"next",u)}function c(u){ca(i,r,a,s,c,"throw",u)}s(void 0)})}}function Ge(o){return function(){var n=la(function*(t,...r){return Do(la(function*(){const a=o(...r);An(a);try{return a.start(),yield t(a)}catch(i){throw a.setError({message:i.message,data:i.data}),i}finally{a.end(),qt()}}))});return function(t){return n.apply(this,arguments)}}()}function wo(o,n){return Se().createSpan({...o,data:{type:"agent",name:o?.data?.name??"Agent",...o?.data}},n)}Ge(function xl(o,n){return o={},Se().createSpan({...o,data:{type:"response",...o.data}},n)}),Ge(wo);const ua=Ge(function bl(o,n){return Se().createSpan({...o,data:{type:"function",input:o?.data?.input??"",output:o?.data?.output??"",...o?.data}},n)}),Sl=Ge(function Il(o,n){return Se().createSpan({...o,data:{type:"handoff",...o?.data}},n)});Ge(function Tl(o,n){return Se().createSpan({...o,data:{type:"generation",...o?.data}},n)}),Ge(function Nl(o,n){return Se().createSpan({...o,data:{type:"custom",data:{},...o?.data}},n)});const da=Ge(function Rl(o,n){return Se().createSpan({...o,data:{type:"guardrail",triggered:!1,...o?.data}},n)});Ge(function Al(o,n){return Se().createSpan({...o,data:{type:"transcription",...o.data}},n)}),Ge(function Ol(o,n){return Se().createSpan({...o,data:{type:"speech",...o.data}},n)}),Ge(function kl(o,n){return Se().createSpan({...o,data:{type:"speech_group",...o?.data}},n)});const Dl=Ge(function Ml(o,n){return Se().createSpan({...o,data:{type:"mcp_tools",...o?.data}},n)});class Fl{data;type="raw_model_stream_event";constructor(n){this.data=n}}class Ll{name;item;type="run_item_stream_event";constructor(n,t){this.name=n,this.item=t}}class Pl{agent;type="agent_updated_stream_event";constructor(n){this.agent=n}}function pa(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function je(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){pa(i,r,a,s,c,"next",u)}function c(u){pa(i,r,a,s,c,"throw",u)}s(void 0)})}}function ma(o,n,t,r){const a=[],i=[],s=[],c=[],u=[],d=[],m=new Map(r.map(C=>
1[C.toolName,C])),g=new Map(t.filter(C=>"function"===C.type).map(C=>[C.name,C])),x=t.find(C=>"computer"===C.type),O=new Map(t.filter(C=>"hosted_tool"===C.type&&"mcp"===C.providerData?.type).map(C=>C).map(C=>[C.providerData.server_label,C]));for(const C of o.output){if("message"===C.type)"assistant"===C.role&&a.push(new bn(C,n));else if("hosted_tool_call"===C.type){if(a.push(new pt(C,n)),d.push(C.name),"mcp_approval_request"===C.providerData?.type||"mcp_approval_request"===C.name){const k=C.providerData,q=k.server_label,ge=O.get(q);if(typeof ge>"u"){const ye=`MCP server (${q}) not found in Agent (${n.name})`;throw Tt({message:ye,data:{mcp_server_label:q}}),new ke(ye)}const me=new Me({type:"hosted_tool_call",name:k.name,id:k.id,status:"in_progress",providerData:k},n);u.push({requestItem:me,mcpTool:ge}),ge.providerData.on_approval||a.push(me)}}else if("reasoning"===C.type)a.push(new ho(C,n));else if("computer_call"===C.type){if(a.push(new pt(C,n)),d.push("computer_use"),!x)throw Tt({message:"Model produced computer action without a computer tool.",data:{agent_name:n.name}}),new ke("Model produced computer action without a computer tool.");c.push({toolCall:C,computer:x})}if("function_call"!==C.type)continue;d.push(C.name);const H=m.get(C.name);if(H)a.push(new go(C,n)),i.push({toolCall:C,handoff:H});else{const U=g.get(C.name);if(!U)throw Tt({message:`Tool ${C.name} not found in agent ${n.name}.`,data:{tool_name:C.name,agent_name:n.name}}),new ke(`Tool ${C.name} not found in agent ${n.name}.`);a.push(new pt(C,n)),s.push({toolCall:C,tool:U})}}return{newItems:a,handoffs:i,functions:s,computerActions:c,mcpApprovalRequests:u,toolsUsed:d,hasToolsOrApprovalsToRun:()=>i.length>0||s.length>0||u.length>0||c.length>0}}const Gl=Oe("type",[v({type:y("next_step_handoff"),newAgent:ie()}),v({type:y("next_step_final_output"),output:p()}),v({type:y("next_step_run_again")}),v({type:y("next_step_interruption"),data:Ce(p(),ie())})]);class De{originalInput;modelResponse;preStepItems;newStepItems;nextStep;constructor(n,t,r,a,i){this.originalInput=n,this.modelResponse=t,this.preStepItems=r,this.newStepItems=a,this.nextStep=i}get generatedItems(){return this.preStepItems.concat(this.newStepItems)}}function fa(o,n,t){return o.resetToolChoice&&n.hasUsedTools(o)?{...t,toolChoice:void 0}:t}function ha(o,n,t,r,a,i,s){return vo.apply(this,arguments)}function vo(){return vo=je(function*(o,n,t,r,a,i,s){const c=t.filter(C=>C instanceof Me&&"callId"in C.rawItem&&"function_call"===C.rawItem.type).map(C=>C.rawItem.callId),u=a.functions.filter(C=>c.includes(C.toolCall.callId)),d=yield _a(o,u,i,s),m=d.map(C=>C.runItem),g=a.mcpApprovalRequests.filter(C=>"tool_approval_item"===C.requestItem.type&&"hosted_tool_call"===C.requestItem.rawItem.type&&"mcp_approval_request"===C.requestItem.rawItem.providerData?.type);for(const C of g){const H=C.requestItem.rawItem.id,U=s._context.isToolApproved({toolName:C.requestItem.rawItem.name,callId:H});typeof U<"u"&&m.push(new pt({type:"hosted_tool_call",name:"mcp_approval_response",providerData:{approve:U,approval_request_id:H,reason:void 0}},o))}const x=yield wa(o,d,s),O=t.filter(C=>!(C instanceof Me));return x.isFinalOutput?(i.emit("agent_end",s._context,o,x.finalOutput),o.emit("agent_end",s._context,x.finalOutput),new De(n,r,O,m,{type:"next_step_final_output",output:x.finalOutput})):new De(n,r,O,m,x.isInterrupted?{type:"next_step_interruption",data:{interruptions:x.interruptions}}:{type:"next_step_run_again"})}),vo.apply(this,arguments)}function ga(o,n,t,r,a,i,s){return yo.apply(this,arguments)}function yo(){return yo=je(function*(o,n,t,r,a,i,s){const c=t;let u=a.newItems;const[d,m]=yield Promise.all([_a(o,a.functions,i,s),Bl(o,a.computerActions,i,s._context)]);if(u=u.concat(d.map(U=>U.runItem)),u=u.concat(m),a.mcpApprovalRequests.length>0)for(const U of a.mcpApprovalRequests){const k=U.mcpTool.providerData,q=U.requestItem.rawItem.providerData;if(k.on_approval){const ge=yield k.on_approval(s._context,U.requestItem);u.push(new pt({type:"hosted_tool_call",name:"mcp_approval_response",providerData:{approve:ge.approve,approval_request_id:q.id,reason:ge.reason}},o))}else{u.push(U.requestItem);const ge={type:"hosted_mcp_tool_approval",tool:U.mcpTool,runItem:new Me({type:"hosted_tool_call",name:q.name,id:q.id,arguments:q.arguments,status:"in_progress",providerData:q},o)};d.push(ge)}}if(a.handoffs.length>0)return yield function $l(o,n,t,r,a,i,s,c){return bo.apply(this,arguments)}(o,n,c,u,r,a.handoffs,i,s._context);const g=yield wa(o,d,s);
1if(g.isFinalOutput)return i.emit("agent_end",s._context,o,g.finalOutput),o.emit("agent_end",s._context,g.finalOutput),new De(n,r,c,u,{type:"next_step_final_output",output:g.finalOutput});if(g.isInterrupted)return new De(n,r,c,u,{type:"next_step_interruption",data:{interruptions:g.interruptions}});if((a.functions?.length??0)>0||(a.computerActions?.length??0)>0||(a.mcpApprovalRequests?.length??0)>0||(a.handoffs?.length??0)>0)return new De(n,r,c,u,{type:"next_step_run_again"});const O=u.filter(U=>U instanceof bn),C=O.length>0?zr(O[O.length-1].rawItem):void 0;if(typeof C>"u")return new De(n,r,c,u,{type:"next_step_run_again"});if(!d.some(U=>U.runItem instanceof Me)){if("text"===o.outputType)return new De(n,r,c,u,{type:"next_step_final_output",output:C});if("text"!==o.outputType&&C){const{parser:U}=Kn(o.outputType,"final_output"),[k]=yield Z(()=>U(C));if(k)throw Tt({message:"Invalid output type",data:{error:String(k)}}),new ke("Invalid output type");return new De(n,r,c,u,{type:"next_step_final_output",output:C})}}return new De(n,r,c,u,{type:"next_step_run_again"})}),yo.apply(this,arguments)}function In(o,n){return{type:"function_call_result",name:o.name,callId:o.callId,status:"completed",output:{type:"text",text:et(n)}}}function _a(o,n,t,r){return Co.apply(this,arguments)}function Co(){return Co=je(function*(o,n,t,r){function i(){return i=je(function*(s){let c=s.toolCall.arguments;if(s.tool.parameters&&(c=lt(s.tool.parameters)?s.tool.parameters.parse(c):JSON.parse(c)),yield s.tool.needsApproval(r._context,c,s.toolCall.callId)){const d=r._context.isToolApproved({toolName:s.tool.name,callId:s.toolCall.callId});if(!1===d)return ua(function(){var m=je(function*(g){const x="Tool execution was not approved.";return g.setError({message:x,data:{tool_name:s.tool.name,error:`Tool execution for ${s.toolCall.callId} was manually rejected by user.`}}),g.spanData.output=x,{type:"function_output",tool:s.tool,output:x,runItem:new St(In(s.toolCall,x),o,x)}});return function(g){return m.apply(this,arguments)}}(),{data:{name:s.tool.name}});if(!0!==d)return{type:"function_approval",tool:s.tool,runItem:new Me(s.toolCall,o)}}return ua(function(){var d=je(function*(m){t.config.traceIncludeSensitiveData&&(m.spanData.input=s.toolCall.arguments);try{t.emit("agent_tool_start",r._context,o,s.tool,{toolCall:s.toolCall}),o.emit("agent_tool_start",r._context,s.tool,{toolCall:s.toolCall});const g=yield s.tool.invoke(r._context,s.toolCall.arguments,{toolCall:s.toolCall}),x=et(g);t.emit("agent_tool_end",r._context,o,s.tool,x,{toolCall:s.toolCall}),o.emit("agent_tool_end",r._context,s.tool,x,{toolCall:s.toolCall}),t.config.traceIncludeSensitiveData&&(m.spanData.output=x);const O={type:"function_output",tool:s.tool,output:g,runItem:new St(In(s.toolCall,g),o,g)},C=function nl(o){const n=io.get(o);return n&&io.delete(o),n}(s.toolCall);if(C){O.agentRunResult=C;const H=C.interruptions;H.length>0&&(O.interruptions=H)}return O}catch(g){throw m.setError({message:"Error running tool",data:{tool_name:s.tool.name,error:String(g)}}),g}});return function(m){return d.apply(this,arguments)}}(),{data:{name:s.tool.name}})}),i.apply(this,arguments)}try{return yield Promise.all(n.map(function a(s){return i.apply(this,arguments)}))}catch(s){throw new Ic(`Failed to run function tools: ${s}`,s,r)}}),Co.apply(this,arguments)}function jl(o,n){return Eo.apply(this,arguments)}function Eo(){return Eo=je(function*(o,n){const t=n.action;let r;switch(t.type){case"click":yield o.click(t.x,t.y,t.button);break;case"double_click":yield o.doubleClick(t.x,t.y);break;case"drag":yield o.drag(t.path.map(a=>[a.x,a.y]));break;case"keypress":yield o.keypress(t.keys);break;case"move":yield o.move(t.x,t.y);break;case"screenshot":r=yield o.screenshot();break;case"scroll":yield o.scroll(t.x,t.y,t.scroll_x,t.scroll_y);break;case"type":yield o.type(t.text);break;case"wait":yield o.wait()}if(typeof r<"u"||"function"==typeof o.screenshot&&(r=yield o.screenshot(),typeof r<"u"))return r;throw new Error("Computer does not implement screenshot()")}),Eo.apply(this,arguments)}function Bl(o,n,t,r){return xo.apply(this,arguments)}function xo(){return xo=je(function*(o,n,t,r,a=void 0){const i=a??W,s=[];for(const c of n){const u=c.computer.computer,d=c.toolCall;let m;t.emit("agent_tool_start",r,o,c.computer,{toolCall:d}),"function"==typeof o.emit&&o.emit("agent_tool_start",r,c.computer,{toolCall:d});try{m=yield jl(u,d)}catch(O){i.error("Failed to execute computer action:",O),m=""}t.emit("agent_tool_end",r,o,c.computer,m,{toolCall:d}),"function"==typeof o.emit&&o.emit("agent_tool_end",r,c.computer,m,{toolCall:d});const g=m?`data:image/png;base64,${m}
1`:"";s.push(new St({type:"computer_call_result",callId:d.callId,output:{type:"computer_screenshot",data:g}},o,g))}return s}),xo.apply(this,arguments)}function bo(){return bo=je(function*(o,n,t,r,a,i,s,c){if(r=[...r],0===i.length)return W.warn("Incorrectly called executeHandoffCalls with no handoffs. This should not happen. Moving on."),new De(n,a,t,r,{type:"next_step_run_again"});if(i.length>1){const d="Multiple handoffs detected, ignoring this one.";for(let m=1;m<i.length;m++)r.push(new St(In(i[m].toolCall,d),o,d))}const u=i[0];return Sl(function(){var d=je(function*(m){const g=u.handoff,x=yield g.onInvokeHandoff(c,u.toolCall.arguments);if(m.spanData.to_agent=x.name,i.length>1){const C=i.map(H=>H.handoff.agentName);m.setError({message:"Multiple handoffs requested",data:{requested_agents:C}})}r.push(new _o(In(u.toolCall,Hr(x)),o,x)),s.emit("agent_handoff",c,o,x),o.emit("agent_handoff",c,x);const O=g.inputFilter??s.config.handoffInputFilter;if(O){W.debug("Filtering inputs for handoff"),"function"!=typeof O&&m.setError({message:"Invalid input filter",data:{details:"not callable"}});const H=O({inputHistory:Array.isArray(n)?[...n]:n,preHandoffItems:[...t],newItems:[...r],runContext:c});n=H.inputHistory,t=H.preHandoffItems,r=H.newItems}return new De(n,a,t,r,{type:"next_step_handoff",newAgent:x})});return function(m){return d.apply(this,arguments)}}(),{data:{from_agent:o.name}})}),bo.apply(this,arguments)}const Sn={isFinalOutput:!1,isInterrupted:void 0};function wa(o,n,t){return Io.apply(this,arguments)}function Io(){return Io=je(function*(o,n,t){if(0===n.length)return Sn;const r=[];for(const s of n)if(s.runItem instanceof Me&&r.push(s.runItem),"function_output"===s.type)if(Array.isArray(s.interruptions))r.push(...s.interruptions);else if(s.agentRunResult){const c=s.agentRunResult.interruptions;c.length>0&&r.push(...c)}if(r.length>0)return{isFinalOutput:!1,isInterrupted:!0,interruptions:r};if("run_llm_again"===o.toolUseBehavior)return Sn;const a=n[0];if("stop_on_first_tool"===o.toolUseBehavior)return"function_output"===a?.type?{isFinalOutput:!0,isInterrupted:void 0,finalOutput:et(a.output)}:Sn;const i=o.toolUseBehavior;if("object"==typeof i){const s=n.find(c=>i.stopAtToolNames.includes(c.tool.name));return"function_output"===s?.type?{isFinalOutput:!0,isInterrupted:void 0,finalOutput:et(s.output)}:Sn}if("function"==typeof i)return i(t._context,n);throw new Ee(`Invalid toolUseBehavior: ${i}`,t)}),Io.apply(this,arguments)}function va(o,n){const t=function Ul(o){return o instanceof bn?"message_output_created":o instanceof go?"handoff_requested":o instanceof _o?"handoff_occurred":o instanceof pt?"tool_called":o instanceof St?"tool_output":o instanceof ho?"reasoning_item_created":o instanceof Me?"tool_approval_requested":void 0}(n);t?o._addItem(new Ll(t,n)):W.warn("Unknown item type: ",n)}function Vl(o,n){for(const t of n)va(o,t)}function ya(o,n,t){const r=t?.skipItems;for(const a of n.newStepItems)r?.has(a)||va(o,a)}class Ca{#e=new Map;addToolUse(n,t){this.#e.set(n,t)}hasUsedTools(n){return this.#e.has(n)}toJSON(){return Object.fromEntries(Array.from(this.#e.entries()).map(([n,t])=>[n.name,t]))}}function Ea(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function So(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Ea(i,r,a,s,c,"next",u)}function c(u){Ea(i,r,a,s,c,"throw",u)}s(void 0)})}}const Tn="1.0",Wl=y(Tn),Ue=v({name:p()}),xa=v({object:y("trace.span"),id:p(),trace_id:p(),parent_id:p().nullable(),started_at:p().nullable(),ended_at:p().nullable(),error:v({message:p(),data:Ce(p(),ie()).optional()}).nullable(),span_data:Ce(p(),ie())}).extend({previous_span:As(()=>xa).optional()}),ba=v({requests:F(),inputTokens:F(),outputTokens:F(),totalTokens:F()}),Ia=v({usage:ba,output:ue(fo),responseId:p().optional(),providerData:Ce(p(),ie()).optional()}),Sa=Oe("type",[v({type:y("message_output_item"),rawItem:En,agent:Ue}),v({type:y("tool_call_item"),rawItem:wl.or(Zt),agent:Ue}),v({type:y("tool_call_output_item"),rawItem:uo,agent:Ue,output:p()}),v({type:y("reasoning_item"),rawItem:mo,agent:Ue}),v({type:y("handoff_call_item"),rawItem:Yt,agent:Ue}),v({type:y("handoff_output_item"),rawItem:uo,sourceAgent:Ue,targetAgent:Ue}),v({type:y("tool_approval_item"),rawItem:Yt.or(Zt),agent:Ue})]),Hl=v({object:y("trace"),id:p(),workflow_name:p(),group_id:p().nullable(),metadata:Ce(p(),ie())}),Zl=v({newItems:ue(Sa),toolsUsed:ue(p()),handoffs:ue(v({toolCall:ie(),handoff:ie()})),functions:ue(v({toolCall:ie(),tool:ie()})),computerActions:ue(v({toolCall:ie(),computer:ie()})),mcpApprovalRequests:ue(v({requestItem:v({rawItem:v({type:y("hosted_tool_call"),name:p(),arguments:p().optional(),status:p().optional(),output:p().optional(),providerData:Ce(p(),ie()).nullable().optional()})}),mcpTool:v({type:y("hosted_tool"),name:y("hosted_mcp"),providerData:Ce(p(),ie())})})).optional()}),Ta=v({tripwireTriggered:Ke(),outputInfo:ie()}),Yl=v({guardrail:v({type:y("input"),name:p()}),output:Ta}),zl=v({guardrail:v({type:y("output"),name:p()}),agentOutput:ie(),agent:Ue,output:Ta}),Na=v({$schemaVersion:Wl,currentTurn:F(),currentAgent:Ue,originalInput:p().or(ue(vl)),modelResponses:ue(Ia),context:v({usage:ba,approvals:Ce(p(),v({approved:ue(p()).or(Ke()),rejected:ue(p()).or(Ke())})),context:Ce(p(),ie())}),toolUseTracker:Ce(p(),ue(p())),maxTurns:F(),currentAgentSpan:xa.nullable().optional(),noActiveAgentRun:Ke(),inputGuardrailResults:ue(Yl),outputGuardrailResults:ue(zl),currentStep:Gl.optional(),lastModelResponse:Ia.optional(),generatedItems:ue(Sa),lastProcessedResponse:Zl.optional(),trace:Hl.nullable()});class mt{_currentTurn=0;_currentAgent;_originalInput;_modelResponses;_currentAgentSpan;_context;_toolUseTracker;_generatedItems;_maxTurns;_noActiveAgentRun=!0;_lastTurnResponse;_inputGuardrailResults;_outputGuardrailResults;_currentStep=void 0;_lastProcessedResponse=void 0;_trace=null;constructor(n,t,r,a){this._context=n,this._originalInput=structuredClone(t),this._modelResponses=[],this._currentAgentSpan=void 0,this._currentAgent=r,this._toolUseTracker=new Ca,this._generatedItems=[],this._maxTurns=a,this._inputGuardrailResults=[],this._outputGuardrailResults=[],this._trace=Jt()}get history(){return zt(this._originalInput,this._generatedItems)}getInterruptions(){return"next_step_interruption"!==this._currentStep?.type?[]:this._currentStep.data.interruptions}approve(n,t={alwaysApprove:!1}){this._context.approveTool(n,t)}reject(n,t={alwaysReject:!1}){this._context.rejectTool(n,t)}toJSON(){const n={$schemaVersion:Tn,currentTurn:this._currentTurn,currentAgent:{name:this._currentAgent.name},originalInput:this._originalInput,modelResponses:this._modelResponses.map(r=>({usage:{requests:r.usage.requests,inputTokens:r.usage.inputTokens,outputTokens:r.usage.outputTokens,totalTokens:r.usage.totalTokens},output:r.output,responseId:r.responseId,providerData:r.providerData})),context:this._context.toJSON(),toolUseTracker:this._toolUseTracker.toJSON(),maxTurns:this._maxTurns,currentAgentSpan:this._currentAgentSpan?.toJSON(),noActiveAgentRun:this._noActiveAgentRun,inputGuardrailResults:this._inputGuardrailResults,outputGuardrailResults:this._outputGuardrailResults.map(r=>({...r,agent:r.agent.toJSON()})),currentStep:this._currentStep,lastModelResponse:this._lastTurnResponse,generatedItems:this._generatedItems.map(r=>r.toJSON()),lastProcessedResponse:this._lastProcessedResponse,trace:this._trace?this._trace.toJSON():null},t=Na.safeParse(n);if(!t.success)throw new bc(`Failed to serialize run state. ${t.error.message}`);return t.data}toString(){return JSON.stringify(this.toJSON())}static fromString(n,t){return So(function*(){const[r,a]=yield Z(()=>JSON.parse(t));if(r)throw new Ee(`Failed to parse run state. ${r instanceof Error?r.message:String(r)}`);const i=a.$schemaVersion;if(!i)throw new Ee("Run state is missing schema version");if(i!==Tn)throw new Ee(`Run state schema version ${i} is not supported. Please use version ${Tn}`);const s=Na.parse(JSON.parse(t)),c=function Jl(o){const n=new Map,t=[o];for(;t.length>0;){const r=t.shift();if(!n.has(r.name)){n.set(r.name,r);for(const a of r.handoffs)a instanceof Ht?n.has(a.name)||t.push(a):a.agent&&(n.has(a.agent.name)||t.push(a.agent))}}return n}(n),u=new It(s.context.context);u._rebuildApprovals(s.context.approvals);const d=c.get(s.currentAgent.name);if(!d)throw new Ee(`Agent ${s.currentAgent.name} not found`);const m=new mt(u,"",d,s.maxTurns);
1m._currentTurn=s.currentTurn,m._toolUseTracker=new Ca;for(const[g,x]of Object.entries(s.toolUseTracker))m._toolUseTracker.addToolUse(c.get(g),x);if(s.currentAgentSpan){s.trace||W.warn("Trace is not set, skipping tracing setup");const g=Se().createTrace({traceId:s.trace?.id,name:s.trace?.workflow_name,groupId:s.trace?.group_id??void 0,metadata:s.trace?.metadata});m._currentAgentSpan=Ra(g,s.currentAgentSpan),m._trace=g}return m._noActiveAgentRun=s.noActiveAgentRun,m._inputGuardrailResults=s.inputGuardrailResults,m._outputGuardrailResults=s.outputGuardrailResults.map(g=>({...g,agent:c.get(g.agent.name)})),m._currentStep=s.currentStep,m._originalInput=s.originalInput,m._modelResponses=s.modelResponses.map(Aa),m._lastTurnResponse=s.lastModelResponse?Aa(s.lastModelResponse):void 0,m._generatedItems=s.generatedItems.map(g=>Oa(g,c)),m._lastProcessedResponse=s.lastProcessedResponse?yield function Xl(o,n,t,r){return To.apply(this,arguments)}(c,m._currentAgent,m._context,s.lastProcessedResponse):void 0,"next_step_handoff"===s.currentStep?.type&&(m._currentStep={type:"next_step_handoff",newAgent:c.get(s.currentStep.newAgent.name)}),m})()}}function Ra(o,n){const t=n.span_data,r=n.previous_span?Ra(o,n.previous_span):void 0,a=Se().createSpan({spanId:n.id,traceId:n.trace_id,parentId:n.parent_id??void 0,startedAt:n.started_at??void 0,endedAt:n.ended_at??void 0,data:t},o);return a.previousSpan=r,a}function Aa(o){const n=new xn;return n.requests=o.usage.requests,n.inputTokens=o.usage.inputTokens,n.outputTokens=o.usage.outputTokens,n.totalTokens=o.usage.totalTokens,{usage:n,output:o.output.map(t=>fo.parse(t)),responseId:o.responseId,providerData:o.providerData}}function Oa(o,n){switch(o.type){case"message_output_item":return new bn(o.rawItem,n.get(o.agent.name));case"tool_call_item":return new pt(o.rawItem,n.get(o.agent.name));case"tool_call_output_item":return new St(o.rawItem,n.get(o.agent.name),o.output);case"reasoning_item":return new ho(o.rawItem,n.get(o.agent.name));case"handoff_call_item":return new go(o.rawItem,n.get(o.agent.name));case"handoff_output_item":return new _o(o.rawItem,n.get(o.sourceAgent.name),n.get(o.targetAgent.name));case"tool_approval_item":return new Me(o.rawItem,n.get(o.agent.name))}}function To(){return To=So(function*(o,n,t,r){const a=yield n.getAllTools(t),i=new Map(a.filter(d=>"function"===d.type).map(d=>[d.name,d])),s=new Map(a.filter(d=>"computer"===d.type).map(d=>[d.name,d])),c=new Map(n.handoffs.map(d=>d instanceof Ht?[d.name,Yr(d)]:[d.toolName,d])),u={newItems:r.newItems.map(d=>Oa(d,o)),toolsUsed:r.toolsUsed,handoffs:r.handoffs.map(d=>{if(!c.has(d.handoff.toolName))throw new Ee(`Handoff ${d.handoff.toolName} not found`);return{toolCall:d.toolCall,handoff:c.get(d.handoff.toolName)}}),functions:yield Promise.all(r.functions.map(function(){var d=So(function*(m){if(!i.has(m.tool.name))throw new Ee(`Tool ${m.tool.name} not found`);return{toolCall:m.toolCall,tool:i.get(m.tool.name)}});return function(m){return d.apply(this,arguments)}}())),computerActions:r.computerActions.map(d=>{const m=d.computer.name;if(!s.has(m))throw new Ee(`Computer tool ${m} not found`);return{toolCall:d.toolCall,computer:s.get(m)}}),mcpApprovalRequests:(r.mcpApprovalRequests??[]).map(d=>({requestItem:new Me(d.requestItem.rawItem,n),mcpTool:d.mcpTool}))};return{...u,hasToolsOrApprovalsToRun:()=>u.handoffs.length>0||u.functions.length>0||u.mcpApprovalRequests.length>0||u.computerActions.length>0}}),To.apply(this,arguments)}function ka(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Ae(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){ka(i,r,a,s,c,"next",u)}function c(u){ka(i,r,a,s,c,"throw",u)}s(void 0)})}}function ql(o){var n,t,r,a=2;for(typeof Symbol<"u"&&(t=Symbol.asyncIterator,r=Symbol.iterator);a--;){if(t&&null!=(n=o[t]))return n.call(o);if(r&&null!=(n=o[r]))return new Nn(n.call(o));t="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Nn(o){function n(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var r=t.done;return Promise.resolve(t.value).then(function(a){return{value:a,done:r}})}return(Nn=function(t){this.s=t,this.n=t.next}).prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):n(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):n(r.apply(this.s,arguments))}},new Nn(o)}function Da(o,n){return!o&&(!!n||"enabled_without_data")}function No(o){return"string"==typeof o?[{type:"message",role:"user",content:o}]:[...o]}class Fa{conversationId;previousResponseId;sentInitialInput=!1;sentItems=new WeakSet;serverItems=new WeakSet;constructor({conversationId:n,previousResponseId:t}){this.conversationId=n??void 0,this.previousResponseId=t??void 0}primeFromState({originalInput:n,generatedItems:t,modelResponses:r}){if(this.sentInitialInput)return;for(const i of No(n))i&&"object"==typeof i&&this.sentItems.add(i);this.sentInitialInput=!0;const a=r[r.length-1];for(const i of r)for(const s of i.output)s&&"object"==typeof s&&this.serverItems.add(s);!this.conversationId&&a?.responseId&&(this.previousResponseId=a.responseId);for(const i of t){const s=i.rawItem;!s||"object"!=typeof s||this.serverItems.has(s)&&this.sentItems.add(s)}}trackServerItems(n){if(n){for(const t of n.output)t&&"object"==typeof t&&this.serverItems.add(t);!this.conversationId&&void 0!==this.previousResponseId&&n.responseId&&(this.previousResponseId=n.responseId)}}prepareInput(n,t){const r=[];if(!this.sentInitialInput){const a=No(n);for(const i of a)r.push(i),i&&"object"==typeof i&&this.sentItems.add(i);this.sentInitialInput=!0}for(const a of t){if("tool_approval_item"===a.type)continue;const i=a.rawItem;!i||"object"!=typeof i||this.sentItems.has(i)||this.serverItems.has(i)||(r.push(i),this.sentItems.add(i))}return r}}function zt(o,n){const t=n.filter(r=>"tool_approval_item"!==r.type).map(r=>r.rawItem);return[...No(o),...t]}class La extends zc{config;inputGuardrailDefs;outputGuardrailDefs;constructor(n={}){super(),this.config={modelProvider:n.modelProvider??rl(),model:n.model,modelSettings:n.modelSettings,handoffInputFilter:n.handoffInputFilter,inputGuardrails:n.inputGuardrails,outputGuardrails:n.outputGuardrails,tracingDisabled:n.tracingDisabled??!1,traceIncludeSensitiveData:n.traceIncludeSensitiveData??!0,workflowName:n.workflowName??"Agent workflow",traceId:n.traceId,groupId:n.groupId,traceMetadata:n.traceMetadata},this.inputGuardrailDefs=(n.inputGuardrails??[]).map(Kr),this.outputGuardrailDefs=(n.outputGuardrails??[]).map(so)}#e(n,t,r){var a=this;return Ae(function*(){return Do(Ae(function*(){const i=t instanceof mt,s=i?t:new mt(r.context instanceof It?r.context:new It(r.context),t,n,r.maxTurns??10),c=r.conversationId||r.previousResponseId?new Fa({conversationId:r.conversationId,previousResponseId:r.previousResponseId}):void 0;c&&i&&c.primeFromState({originalInput:s._originalInput,generatedItems:s._generatedItems,modelResponses:s._modelResponses});try{for(;;){const u=void 0!==s._currentAgent.model&&""!==s._currentAgent.model||void 0!==a.config.model&&""!==a.config.model;let d=Pa(s._currentAgent.model,a.config.model);if("string"==typeof d&&(d=yield a.config.modelProvider.getModel(d)),s._currentStep=s._currentStep??{type:"next_step_run_again"},"next_step_interruption"===s._currentStep.type){if(W.debug("Continuing from interruption"),!s._lastTurnResponse||!s._lastProcessedResponse)throw new Ee("No model response found in previous state",s);const m=yield ha(s._currentAgent,s._originalInput,s._generatedItems,s._lastTurnResponse,s._lastProcessedResponse,a,s);if(s._toolUseTracker.addToolUse(s._currentAgent,s._lastProcessedResponse.toolsUsed),s._originalInput=m.originalInput,s._generatedItems=m.generatedItems,s._currentStep=m.nextStep,"next_step_interruption"===m.nextStep.type)return new Ao(s);continue}if("next_step_run_again"===s._currentStep.type){const m=yield s._currentAgent.getEnabledHandoffs(s._context);if(!s._currentAgentSpan){const ye=m.map(sn=>sn.agentName);s._currentAgentSpan=wo({data:{name:s._currentAgent.name,handoffs:ye,output_type:s._currentAgent.outputSc
1hemaName}}),s._currentAgentSpan.start(),An(s._currentAgentSpan)}const g=yield s._currentAgent.getAllTools(s._context),x=g.map(ye=>ia(ye)),O=m.map(ye=>sa(ye));if(s._currentAgentSpan&&(s._currentAgentSpan.spanData.tools=g.map(ye=>ye.name)),s._currentTurn++,s._currentTurn>s._maxTurns)throw s._currentAgentSpan?.setError({message:"Max turns exceeded",data:{max_turns:s._maxTurns}}),new Nr(`Max turns (${s._maxTurns}) exceeded`,s);W.debug(`Running agent ${s._currentAgent.name} (turn ${s._currentTurn})`),1===s._currentTurn&&(yield a.#t(s));const C=c?c.prepareInput(s._originalInput,s._generatedItems):zt(s._originalInput,s._generatedItems);s._noActiveAgentRun&&(s._currentAgent.emit("agent_start",s._context,s._currentAgent),a.emit("agent_start",s._context,s._currentAgent));let H={...a.config.modelSettings,...s._currentAgent.modelSettings};H=Ga(u,s._currentAgent.modelSettings,d,H),H=fa(s._currentAgent,s._toolUseTracker,H);const k=c?.previousResponseId??r.previousResponseId,q=c?.conversationId??r.conversationId;s._lastTurnResponse=yield d.getResponse({systemInstructions:yield s._currentAgent.getSystemPrompt(s._context),prompt:yield s._currentAgent.getPrompt(s._context),...u?{overridePromptModel:!0}:{},input:C,previousResponseId:k,conversationId:q,modelSettings:H,tools:x,outputType:Or(s._currentAgent.outputType),handoffs:O,tracing:Da(a.config.tracingDisabled,a.config.traceIncludeSensitiveData),signal:r.signal}),s._modelResponses.push(s._lastTurnResponse),s._context.usage.add(s._lastTurnResponse.usage),s._noActiveAgentRun=!1,c?.trackServerItems(s._lastTurnResponse);const ge=ma(s._lastTurnResponse,s._currentAgent,g,m);s._lastProcessedResponse=ge;const me=yield ga(s._currentAgent,s._originalInput,s._generatedItems,s._lastTurnResponse,s._lastProcessedResponse,a,s);s._toolUseTracker.addToolUse(s._currentAgent,s._lastProcessedResponse.toolsUsed),s._originalInput=me.originalInput,s._generatedItems=me.generatedItems,s._currentStep=me.nextStep}if(s._currentStep&&"next_step_final_output"===s._currentStep.type)return yield a.#o(s,s._currentStep.output),a.emit("agent_end",s._context,s._currentAgent,s._currentStep.output),s._currentAgent.emit("agent_end",s._context,s._currentStep.output),new Ao(s);if(s._currentStep&&"next_step_handoff"===s._currentStep.type)s._currentAgent=s._currentStep.newAgent,s._currentAgentSpan&&(s._currentAgentSpan.end(),qt(),s._currentAgentSpan=void 0),s._noActiveAgentRun=!0,s._currentStep={type:"next_step_run_again"};else{if(s._currentStep&&"next_step_interruption"===s._currentStep.type)return new Ao(s);W.debug("Running next loop")}}}catch(u){throw s._currentAgentSpan&&s._currentAgentSpan.setError({message:"Error in agent run",data:{error:String(u)}}),u}finally{s._currentAgentSpan&&("next_step_interruption"!==s._currentStep?.type&&s._currentAgentSpan.end(),qt())}}))})()}#t(n){var t=this;return Ae(function*(){const r=t.inputGuardrailDefs.concat(n._currentAgent.inputGuardrails.map(Kr));if(r.length>0){const a={agent:n._currentAgent,input:n._originalInput,context:n._context};try{const i=yield Promise.all(r.map(function(){var s=Ae(function*(c){return da(function(){var u=Ae(function*(d){const m=yield c.run(a);return d.spanData.triggered=m.output.tripwireTriggered,m});return function(d){return u.apply(this,arguments)}}(),{data:{name:c.name}},n._currentAgentSpan)});return function(c){return s.apply(this,arguments)}}()));for(const s of i)if(s.output.tripwireTriggered)throw n._currentAgentSpan&&n._currentAgentSpan.setError({message:"Guardrail tripwire triggered",data:{guardrail:s.guardrail.name}}),new Ar(`Input guardrail triggered: ${JSON.stringify(s.output.outputInfo)}`,s,n)}catch(i){throw i instanceof Ar?i:(n._currentTurn--,new Rr(`Input guardrail failed to complete: ${i}`,i,n))}}})()}#o(n,t){var r=this;return Ae(function*(){const a=r.outputGuardrailDefs.concat(n._currentAgent.outputGuardrails.map(so));if(a.length>0){const i=n._currentAgent.processFinalOutput(t),s={agent:n._currentAgent,agentOutput:i,context:n._context,details:{modelResponse:n._lastTurnResponse}};try{const c=yield Promise.all(a.map(function(){var u=Ae(function*(d){return da(function(){var m=Ae(function*(g){const x=yield d.run(s);return g.spanData.triggered=x.output.tripwireTriggered,x});return function(g){return m.apply(this,arguments)}}(),{data:{name:d.name}},n._currentAgentSpan)});return function(d){return u.apply(this,arguments)}}()));for(const u of c)if(u.output.tripwireTriggered)throw n._currentAgentSpan&&n._currentAgentSpan.setError({message:"Guardrail tripwire triggered",data:{guardrail:u.guardrail.name}}),new qn(`Output guardrail triggered: ${JSON.stringify(u.output.outputInfo)}`,u,n)}catch(c){throw c instanceof qn?c:new Rr(`Output guardrail failed to complete: ${c}`,c,n)}}})()}#n(n,t,r){var a=this;return Ae(function*(){const i=t.conversationId||t.previousResponseId?new Fa({conversationId:t.conversationId,previousResponseId:t.previousResponseId}):void 0;i&&r&&i.primeFromState({originalInput:n.state._originalInput,generatedItems:n.state._generatedItems,modelResponses:n.state._modelResponses});try{for(;;){const g=n.state._currentAgent,x=yield g.getEnabledHandoffs(n.state._context),O=yield g.getAllTools(n.state._context),C=O.map(U=>ia(U)),H=x.map(U=>sa(U));if(n.state._currentStep=n.state._currentStep??{type:"next_step_run_again"},"next_step_interruption"===n.state._currentStep.type){if(W.debug("Continuing from interruption"),!n.state._lastTurnResponse||!n.state._lastProcessedResponse)throw new Ee("No model response found in previous state",n.state);const U=yield ha(n.state._currentAgent,n.state._originalInput,n.state._generatedItems,n.state._lastTurnResponse,n.state._lastProcessedResponse,a,n.state);if(ya(n,U),n.state._toolUseTracker.addToolUse(n.state._currentAgent,n.state._lastProcessedResponse.toolsUsed),n.state._originalInput=U.originalInput,n.state._generatedItems=U.generatedItems,n.state._currentStep=U.nextStep,"next_step_interruption"===U.nextStep.type)return;continue}if("next_step_run_again"===n.state._currentStep.type){if(!n.state._currentAgentSpan){const wt=x.map(vt=>vt.agentName);n.state._currentAgentSpan=wo({data:{name:g.name,handoffs:wt,tools:O.map(vt=>
1vt.name),output_type:g.outputSchemaName}}),n.state._currentAgentSpan.start(),An(n.state._currentAgentSpan)}if(n.state._currentTurn++,n.state._currentTurn>n.state._maxTurns)throw n.state._currentAgentSpan?.setError({message:"Max turns exceeded",data:{max_turns:n.state._maxTurns}}),new Nr(`Max turns (${n.state._maxTurns}) exceeded`,n.state);W.debug(`Running agent ${g.name} (turn ${n.state._currentTurn})`);const U=void 0!==g.model&&""!==g.model||void 0!==a.config.model&&""!==a.config.model;let k=Pa(g.model,a.config.model);"string"==typeof k&&(k=yield a.config.modelProvider.getModel(k)),1===n.state._currentTurn&&(yield a.#t(n.state));let q={...a.config.modelSettings,...g.modelSettings};q=Ga(U,g.modelSettings,k,q),q=fa(g,n.state._toolUseTracker,q);const me=i?i.prepareInput(n.input,n.newItems):zt(n.input,n.newItems);let ye;n.state._noActiveAgentRun&&(g.emit("agent_start",n.state._context,g),a.emit("agent_start",n.state._context,g));const sn=i?.previousResponseId??t.previousResponseId,af=i?.conversationId??t.conversationId;var u,s=!1,c=!1;try{for(var m,d=ql(k.getStreamedResponse({systemInstructions:yield g.getSystemPrompt(n.state._context),prompt:yield g.getPrompt(n.state._context),...U?{overridePromptModel:!0}:{},input:me,previousResponseId:sn,conversationId:af,modelSettings:q,tools:C,handoffs:H,outputType:Or(g.outputType),tracing:Da(a.config.tracingDisabled,a.config.traceIncludeSensitiveData),signal:t.signal}));s=!(m=yield d.next()).done;s=!1){const wt=m.value;if("response_done"===wt.type){const vt=aa.parse(wt);ye={usage:new xn(vt.response.usage),output:vt.response.output,responseId:vt.response.id}}if(n.cancelled)return;n._addItem(new Fl(wt))}}catch(wt){c=!0,u=wt}finally{try{s&&null!=d.return&&(yield d.return())}finally{if(c)throw u}}if(n.state._noActiveAgentRun=!1,!ye)throw new ke("Model did not produce a final response!",n.state);n.state._lastTurnResponse=ye,i?.trackServerItems(ye),n.state._modelResponses.push(n.state._lastTurnResponse);const Pn=ma(n.state._lastTurnResponse,g,O,x);n.state._lastProcessedResponse=Pn;const Bi=new Set(Pn.newItems);Bi.size>0&&Vl(n,Pn.newItems);const Gn=yield ga(g,n.state._originalInput,n.state._generatedItems,n.state._lastTurnResponse,n.state._lastProcessedResponse,a,n.state);ya(n,Gn,{skipItems:Bi}),n.state._toolUseTracker.addToolUse(g,Pn.toolsUsed),n.state._originalInput=Gn.originalInput,n.state._generatedItems=Gn.generatedItems,n.state._currentStep=Gn.nextStep}if("next_step_final_output"===n.state._currentStep.type)return yield a.#o(n.state,n.state._currentStep.output),a.emit("agent_end",n.state._context,g,n.state._currentStep.output),void g.emit("agent_end",n.state._context,n.state._currentStep.output);if("next_step_interruption"===n.state._currentStep.type)return;"next_step_handoff"===n.state._currentStep.type?(n.state._currentAgent=n.state._currentStep?.newAgent,n.state._currentAgentSpan&&(n.state._currentAgentSpan.end(),qt()),n.state._currentAgentSpan=void 0,n._addItem(new Pl(n.state._currentAgent)),n.state._noActiveAgentRun=!0,n.state._currentStep={type:"next_step_run_again"}):W.debug("Running next loop")}}catch(g){throw n.state._currentAgentSpan&&n.state._currentAgentSpan.setError({message:"Error in agent run",data:{error:String(g)}}),g}finally{n.state._currentAgentSpan&&("next_step_interruption"!==n.state._currentStep?.type&&n.state._currentAgentSpan.end(),qt())}})()}#i(n,t,r){var a=this;return Ae(function*(){return r=r??{},Do(Ae(function*(){const i=t instanceof mt,s=i?t:new mt(r.context instanceof It?r.context:new It(r.context),t,n,r.maxTurns??10),c=new Ba({signal:r.signal,state:s});c.maxTurns=r.maxTurns??s._maxTurns;const u=a.#n(c,r,i).then(()=>{c._done()},d=>{c._raiseError(d)});return c._setStreamLoopPromise(u),c}))})()}run(n,t,r={stream:!1,context:void 0}){var a=this;return t instanceof mt&&t._trace?function Ql(o,n){return ko.apply(this,arguments)}(t._trace,Ae(function*(){return t._currentAgentSpan&&An(t._currentAgentSpan),r?.stream?a.#i(n,t,r):a.#e(n,t,r)})):function eu(o){return Mo.apply(this,arguments)}(Ae(function*(){return r?.stream?a.#i(n,t,r):a.#e(n,t,r)}),{traceId:this.config.traceId,name:this.config.workflowName,groupId:this.config.groupId,metadata:this.config.traceMetadata})}}let Ua;function Pa(o,n){return"string"==typeof o&&o!==Ht.DEFAULT_MODEL_PLACEHOLDER||o?o:n??o??Ht.DEFAULT_MODEL_PLACEHOLDER}function Ga(o,n,t,r){if(Ur()&&o&&("string"!=typeof t||!yn(t))&&(n.providerData?.reasoning||n.providerData?.text?.verbosity||n.providerData?.reasoning_effort)){const a={...r};return delete a.providerData?.reasoning,delete a.providerData?.text?.verbosity,delete a.providerData?.reasoning_effort,a.reasoning&&(delete a.reasoning.effort,delete a.reasoning.summary),a.text&&delete a.text.verbosity,a}return r}class ja{state;constructor(n){this.state=n}get history(){return zt(this.input,this.newItems)}get output(){return zt([],this.newItems)}get input(){return this.state._originalInput}get newItems(){return this.state._generatedItems}get rawResponses(){return this.state._modelResponses}get lastResponseId(){const n=this.rawResponses;return n&&n.length>0?n[n.length-1].responseId:void 0}get lastAgent(){return this.state._currentAgent}get inputGuardrailResults(){return this.state._inputGuardrailResults}get outputGuardrailResults(){return this.state._outputGuardrailResults}get interruptions(){return"next_step_interruption"===this.state._currentStep?.type?this.state._currentStep.data.interruptions:[]}get finalOutput(){if("next_step_final_output"===this.state._currentStep?.type)return this.state._currentAgent.process
1FinalOutput(this.state._currentStep.output);W.warn("Accessed finalOutput before agent run is completed.")}}class Ao extends ja{constructor(n){super(n)}}class Ba extends ja{get currentAgent(){return this.lastAgent}currentTurn=0;maxTurns;#e=null;#t;#o;#n;#i;#a;#s;#r=!1;#c;constructor(n={}){if(super(n.state),this.#t=n.signal,this.#n=new $c({start:t=>{this.#o=t},cancel:()=>{this.#r=!0}}),this.#i=new Promise((t,r)=>{this.#a=t,this.#s=r}),this.#t){const t=()=>{if(this.#r)return;this.#r=!0;const r=this.#o;if(this.#o=void 0,this.#n.locked){if(r)try{r.close()}catch(a){W.debug(`Failed to close readable stream on abort: ${a}`)}}else this.#n.cancel(this.#t?.reason).catch(a=>{W.debug(`Failed to cancel readable stream on abort: ${a}`)});this.#a?.()};this.#t.aborted?t():this.#t.addEventListener("abort",t,{once:!0})}}_addItem(n){this.cancelled||this.#o?.enqueue(n)}_done(){!this.cancelled&&this.#o&&(this.#o.close(),this.#o=void 0,this.#a?.())}_raiseError(n){!this.cancelled&&this.#o&&(this.#o.error(n),this.#o=void 0),this.#e=n,this.#s?.(n),this.#i.catch(t=>{W.debug(`Resulted in an error: ${t}`)})}get cancelled(){return this.#r}toStream(){return this.#n}get completed(){return this.#i}get error(){return this.#e}toTextStream(n={}){const t=this.#n.pipeThrough(new Uc({transform(r,a){if("raw_model_stream_event"===r.type&&"output_text_delta"===r.data.type){const i=ra.parse(r.data);a.enqueue(i.delta)}}}));return n.compatibleWithNodeStreams?Bc.fromWeb(t):t}[Symbol.asyncIterator](){return this.#n[Symbol.asyncIterator]()}_setStreamLoopPromise(n){this.#c=n}_getStreamLoopPromise(){return this.#c}}function $a(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Oo(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){$a(i,r,a,s,c,"next",u)}function c(u){$a(i,r,a,s,c,"throw",u)}s(void 0)})}}function Ve(){return Ua??=new Vc,Ua}function Jt(){const o=Ve().getStore();return o?.trace?o.trace:null}function Xt(){const o=Ve().getStore();return o?.span?o.span:null}function Va(o){return Oo(function*(){const n=Jt();if(!n)throw new Error("No trace found");yield n.start();const t=yield o(n);if(t instanceof Ba){const r=t._getStreamLoopPromise();if(r)return r.finally(()=>n.end()),t}return yield n.end(),t})}function ko(){return ko=Oo(function*(o,n,t={}){const r="string"==typeof o?Se().createTrace({...t,name:o}):o;return Ve().run({trace:r},Va(n))}),ko.apply(this,arguments)}function Mo(){return Mo=Oo(function*(o,n={}){if(Jt())return yield o();const r=Se().createTrace(n);return Ve().run({trace:r},Va(o))}),Mo.apply(this,arguments)}function An(o){const n=Ve().getStore();if(!n)throw new Error("No existing trace found");n.span&&(n.span.previousSpan=n.previousSpan,n.previousSpan=n.span),n.span=o,Ve().enterWith(n)}function qt(){const o=Ve().getStore();o&&(o.span=o.previousSpan,o.previousSpan=o.previousSpan?.previousSpan,Ve().enterWith(o))}function Tt(o){const n=Xt();n&&n.setError(o)}function Do(o){const n=Ve().getStore();if(!n)throw new Error("No existing trace found");const t=function tu(o){return{trace:o.trace?.clone(),span:o.span?.clone(),previousSpan:o.previousSpan?.clone()}}(n);return Ve().run(t,o)}function Wa(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Ie(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Wa(i,r,a,s,c,"next",u)}function c(u){Wa(i,r,a,s,c,"throw",u)}s(void 0)})}}class nu{export(n){return Ie(function*(){if(kr.disabled)W.debug("Tracing is disabled. Skipping export");else for(const t of n)"trace"===t.type?console.log(`[Exporter] Export trace traceId=${t.traceId} name=${t.name}${t.groupId?` groupId=${t.groupId}`:""}`):console.log(`[Exporter] Export span: ${JSON.stringify(t)}`)})()}}class ou{#e;#t;#o;#n;#i;#a=[];#s;#r=null;#c=!1;#d=null;constructor(n,{maxQueueSize:t=1e3,maxBatchSize:r=100,scheduleDelay:a=5e3,exportTriggerRatio:i=.8}={}){this.#e=t,this.#t=r,this.#o=a,this.#n=t*i,this.#i=n,this.#s=Zc,W.debug("Automatic trace export loop is not supported in this environment. You need to manually call `getGlobalTraceProvider().forceFlush()` to export traces.")}start(){this.#d=new AbortController,this.#p()}#l(n){var t=this;return Ie(function*(){t.#a.length+1>t.#e?W.error("Dropping trace because buffer is full"):(t.#a.push(n),t.#a.length>t.#n&&(yield t.#u()))})()}#p(){var n=this;this.#r=this.#s.setTimeout(Ie(function*(){yield n.#u(),n.#p()}),this.#o),"function"==typeof this.#r.unref&&this.#r.unref()}#u(){var n=this;return Ie(function*(t=!1){if(0!==n.#a.length)if(W.debug(`Exporting batches. Force: ${t}. Buffer size: ${n.#a.length}`),t||n.#a.length<n.#t){const r=[...n.#a];n.#a=[],n.#c=!0,yield n.#i.export(r),n.#c=!1}else if(n.#a.length>0){const r=n.#a.splice(0,n.#t);n.#c=!0,yield n.#i.export(r),n.#c=!1}}).apply(this,arguments)}onTraceStart(n){var t=this;return Ie(function*(){yield t.#l(n)})()}onTraceEnd(n){return Ie(function*(){})()}onSpanStart(n){return Ie(function*(){})()}onSpanEnd(n){var t=this;return Ie(function*(){yield t.#l(n)})()}shutdown(n){var t=this;return Ie(function*(){for(n&&t.#s.setTimeout(()=>{t.#d?.abort()},n),W.debug("Shutting down gracefully");t.#a.length>0;){if(W.debug(`Waiting for buffer to empty. Items left: ${t.#a.length}`),t.#c||(yield t.#u(!0)),t.#d?.signal.aborted){W.debug("Timeout reached, force flushing"),yield t.#u(!0);break}yield new Promise(r=>t.#s.setTimeout(r,500))}W.debug("Buffer empty. Exiting"),t.#s&&t.#r&&t.#s.clearTimeout(t.#r)})()}forceFlush(){var n=this;return Ie(function*(){n.#a.length>0&&(yield n.#u(!0))})()}}class ru{#e=[];start(){for(const n of this.#e)n.start&&n.start()}addTraceProcessor(n){this.#e.push(n)}setProcessors(n){W.debug("Shutting down old processors");for(const t of this.#e)t.shutdown();this.#e=n}onTraceStart(n){var t=this;return Ie(function*(){for(const r of t.#e)yield r.onTraceStart(n)})()}onTraceEnd(n){var t=this;return Ie(function*(){for(const r of t.#e)yield r.onTraceEnd(n)})()}onSpanStart(n){var t=this;return Ie(function*(){for(const r of t.#e)yield r.onSpanStart(n)})()}onSpanEnd(n){var t=this;return Ie(function*(){for(const r of t.#e)yield r.onSpanEnd(n)})()}shutdown(n){var t=this;return Ie(function*(){for(const r of t.#e)yield r.shutdown(n)})()}forceFlush(){var n=this;return Ie(function*(){for(const t of n.#e)yield t.forceFlush()})()}}let Go,Fo=null,Lo=null;function Ha(){return Lo||(Lo=new ou(function au(){return Fo||(Fo=new nu),Fo}())),Lo}function Za(){return(new Date).toISOString()}function Ya(){return`trace_${Br().replace(/-/g,"")}`}function cu(o){return Object.fromEntries(Object.entries(o).filter(([n])=>!n.startsWith("_")))}class Kt{type="trace.span";#e;#t;#o;#n;#i;#a;#s;#r;#c;constructor(n,t){this.#t=n.traceId,this.#o=n.spanId??function su(){return`span_${Br().replace(/-/g,"").slice(0,24)}`}(),this.#e=n.data,this.#i=t,this.#n=n.parentId??null,this.#r=n.error??null,this.#a=n.startedAt??null,this.#s=n.endedAt??null}get traceId(){return this.#t}get spanData(){return this.#e}get spanId(){return this.#o}get parentId(){return this.#n}get previousSpan(){return this.#c}set previousSpan(n){this.#c=n}start(){this.#a?W.warn("Span already started"):(this.#a=Za(),this.#i.onSpanStart(this))}end(){this.#s?W.debug("Span already finished",this.spanData):(this.#s=Za(),this.#i.onSpanEnd(this))}setError(n){this.#r=n}get error(){return this.#r}get startedAt(){return this.#a}get endedAt(){return this.#s}clone(){const n=new Kt({traceId:this.traceId,spanId:this.spanId,parentId:this.parentId??void 0,data:this.spanData,startedAt:this.#a??void 0,endedAt:this.#s??void 0,error:this.#r??void 0},this.#i);return n.previousSpan=this.previousSpan?.clone(),n}toJSON(){return{object:this.type,id:this.spanId,trace_id:this.traceId,parent_id:this.parentId,started_at:this.startedAt,ended_at:this.endedAt,span_data:cu(this.spanData),error:this.error}}}class nt extends Kt{constructor(n,t){super({traceId:"no-op",spanId:"no-op",data:n},t)}start(){}end(){}setError(){}toJSON(){return null}}function za(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function On(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){za(i,r,a,s,c,"next",u)}function c(u){za(i,r,a,s,c,"throw",u)}s(void 0)})}}class Qt{type="trace";traceId;name;groupId=null;metadata;#e;#t;constructor(n,t){this.traceId=n.traceId??Ya(),this.name=n.name??"Agent workflow",this.groupId=n.groupId??null,this.metadata=n.metadata??{},this.#e=t??Ha(),this.#t=n.started??!1}start(){var n=this;return On(function*(){n.#t||(n.#t=!0,yield n.#e.onTraceStart(n))})()}end(){var n=this;return On(function*(){n.#t&&(n.#t=!1,yield n.#e.onTraceEnd(n))})()}clone(){return new Qt({traceId:this.traceId,name:this.name,groupId:this.groupId??void 0,metadata:this.metadata,started:this.#t})}toJSON(){return{object:this.type,id:this.traceId,workflow_name:this.name,group_id:this.groupId,metadata:this.metadata}}}class Po extends Qt{constructor(){super({})}start(){return On(function*(){})()}end(){return On(function*(){})()}toJSON(){return null}}function Ja(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Nt(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Ja(i,r,a,s,c,"next",u)}function c(u){Ja(i,r,a,s,c,"throw",u)}s(void 0)})}}class lu{#e;#t;constructor(){this.#e=new ru,this.#t=kr.disabled,this.#o()}registerProcessor(n){this.#e.addTraceProcessor(n)}setProcessors(n){this.#e.setProcessors(n)}getCurrentTrace(){return Jt()}getCurrentSpan(){return Xt()}setDisabled(n){this.#t=n}
1startExportLoop(){this.#e.start()}createTrace(n){if(this.#t)return W.debug("Tracing is disabled, Not creating trace %o",n),new Po;const t=n.traceId??Ya(),r=n.name??"Agent workflow";return W.debug("Creating trace %s with name %s",t,r),new Qt({...n,name:r,traceId:t},this.#e)}createSpan(n,t){if(this.#t||n.disabled)return W.debug("Tracing is disabled, Not creating span %o",n),new nt(n.data,this.#e);let r,a;if(t){if(t instanceof Qt){if(t instanceof Po)return W.debug("Parent trace is no-op, returning NoopSpan"),new nt(n.data,this.#e);a=t.traceId}else if(t instanceof Kt){if(t instanceof nt)return W.debug("Parent span is no-op, returning NoopSpan"),new nt(n.data,this.#e);r=t.spanId,a=t.traceId}}else{const i=Jt(),s=Xt();if(!i)return W.error("No active trace. Make sure to start a trace with `withTrace()` first. Returning NoopSpan."),new nt(n.data,this.#e);if(s instanceof nt||i instanceof Po)return W.debug(`Parent ${s} or ${i} is no-op, returning NoopSpan`),new nt(n.data,this.#e);a=i.traceId,s?(W.debug("Using parent span %s",s.spanId),r=s.spanId):W.debug("No parent span, using current trace %s",i.traceId)}return a?(W.debug(`Creating span ${JSON.stringify(n.data)} with id ${n.spanId??a}`),new Kt({...n,traceId:a,parentId:r},this.#e)):(W.error("No traceId found. Make sure to start a trace with `withTrace()` first. Returning NoopSpan."),new nt(n.data,this.#e))}shutdown(n){var t=this;return Nt(function*(){try{W.debug("Shutting down tracing provider"),yield t.#e.shutdown(n)}catch(r){W.error("Error shutting down tracing provider %o",r)}})()}#o(){var n=this;if(typeof process<"u"&&"function"==typeof process.on){const t=function(){var r=Nt(function*(){const i=setTimeout(()=>{console.warn("Cleanup timeout, forcing exit"),process.exit(1)},5e3);try{yield n.shutdown()}finally{clearTimeout(i)}});return function a(){return r.apply(this,arguments)}}();process.on("beforeExit",t),process.on("SIGINT",Nt(function*(){yield t(),Xa("SIGINT")||process.exit(130)})),process.on("SIGTERM",Nt(function*(){yield t(),Xa("SIGTERM")||process.exit(0)})),process.on("unhandledRejection",function(){var r=Nt(function*(a,i){W.error("Unhandled rejection",a,i),yield t(),function uu(o){return process.listeners(o).length>1}("unhandledRejection")||process.exit(1)});return function(a,i){return r.apply(this,arguments)}}())}}forceFlush(){var n=this;return Nt(function*(){yield n.#e.forceFlush()})()}}function Xa(o){return process.listeners(o).length>1}function Se(){return Go||(Go=new lu),Go}function Ka(o){const n=String.fromCharCode(...new Uint8Array(o));return btoa(n)}function ei(o){return"system"===o.role?o:"assistant"===o.role?{...o,content:o.content.map(n=>"output_audio"===n.type?{...n,audio:null}:n)}:"user"===o.role?{...o,content:o.content.map(n=>"input_audio"===n.type?{...n,audio:null}:n)}:o}function ti(o,n,t){if("conversation.item.input_audio_transcription.completed"===n.type)return o.map(i=>{if(i.itemId===n.item_id&&"message"===i.type&&"role"in i&&"user"===i.role){const s=i.content.map(c=>"input_audio"===c.type?{...c,transcript:n.transcript}:c);return{...i,content:s,status:"completed"}}return i});const r=t||"message"!==n.type?n:ei(n),a=o.findIndex(i=>i.itemId===n.itemId);if(-1!==a)return o.map((i,s)=>s===a?r:t||"message"!==i.type?i:ei(i));if(n.previousItemId){const i=o.findIndex(s=>s.itemId===n.previousItemId);return-1!==i?[...o.slice(0,i+1),r,...o.slice(i+1)]:[...o,r]}return[...o,r]}!function du(o){Se().registerProcessor(o)}(Ha());const ni={"User-Agent":"Agents/JavaScript 0.1.11","X-OpenAI-Agents-SDK":"openai-agents-sdk.0.1.11"};function hu(o,n){const{name:t,arguments:r,...a}=n;return new Me({type:"hosted_tool_call",name:t,arguments:JSON.stringify(r),status:"in_progress",providerData:{...a}},o)}function oi(o){const{name:n,arguments:t,providerData:r}=o.rawItem,{itemId:a,serverLabel:i,...s}=r??{};if(!a||!i)throw new Error("Invalid approval item for Realtime MCP approval request");return{type:"mcp_approval_request",itemId:a,serverLabel:i,...s,name:n,arguments:t?JSON.parse(t):{},approved:null}}class gu extends Ht{voice;constructor(n){super(n),this.voice=n.voice}}function ri(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function vu({policyHint:o,...n}){const t=so(n),r=o??t.name;return{...t,policyHint:r,run:(a=function _u(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){ri(i,r,a,s,c,"next",u)}function c(u){ri(i,r,a,s,c,"throw",u)}s(void 0)})}}(function*(s){const c=yield t.run(s);return{...c,guardrail:{...c.guardrail,policyHint:r}}}),function i(s){return a.apply(this,arguments)})};var a}function ft(o,n){return o in n&&typeof n[o]<"u"}
1function kn(o){if(!o)return;if("object"==typeof o)return o;const n=String(o);return"pcm16"===n?{type:"audio/pcm",rate:24e3}:"g711_ulaw"===n?{type:"audio/pcmu"}:"g711_alaw"===n?{type:"audio/pcma"}:{type:"audio/pcm",rate:24e3}}v({itemId:p()});const ai=Oe("role",[v({itemId:p(),previousItemId:p().nullable().optional(),type:y("message"),role:y("system"),content:ue(v({type:y("input_text"),text:p()}))}),v({itemId:p(),previousItemId:p().nullable().optional(),type:y("message"),role:y("user"),status:be(["in_progress","completed"]),content:ue(v({type:y("input_text"),text:p()}).or(v({type:y("input_audio"),audio:p().nullable().optional(),transcript:p().nullable()})))}),v({itemId:p(),previousItemId:p().nullable().optional(),type:y("message"),role:y("assistant"),status:be(["in_progress","completed","incomplete"]),content:ue(v({type:y("output_text"),text:p()}).or(v({type:y("output_audio"),audio:p().nullable().optional(),transcript:p().nullable().optional()})))})]),ii=v({itemId:p(),previousItemId:p().nullable().optional(),type:y("function_call"),status:be(["in_progress","completed","incomplete"]),arguments:p(),name:p(),output:p().nullable()}),si=v({itemId:p(),previousItemId:p().nullable().optional(),type:be(["mcp_call","mcp_tool_call"]),status:be(["in_progress","completed","incomplete"]),arguments:p(),name:p(),output:p().nullable()}),xu=v({itemId:p(),type:y("mcp_approval_request"),serverLabel:p(),name:p(),arguments:Ce(p(),ie()),approved:Ke().optional().nullable()}),Fe=Ut("openai-agents:realtime"),ci=v({id:p().optional().nullable(),conversation_id:p().optional().nullable(),max_output_tokens:F().or(y("inf")).optional().nullable(),metadata:Ce(p(),ie()).optional().nullable(),output_modalities:ue(p()).optional().nullable(),object:y("realtime.response").optional().nullable(),output:ue(ie()).optional().nullable(),audio:v({output:v({format:ie().optional().nullable(),voice:p().optional().nullable()}).optional().nullable()}).optional().nullable(),status:be(["completed","incomplete","failed","cancelled","in_progress"]).optional().nullable(),status_details:Ce(p(),ie()).optional().nullable(),usage:v({input_tokens:F().optional(),input_token_details:Ce(p(),ie()).optional().nullable(),output_tokens:F().optional(),output_token_details:Ce(p(),ie()).optional().nullable()}).optional().nullable()}),bu=v({id:p().optional(),audio:p().nullable().optional(),text:p().nullable().optional(),transcript:p().nullable().optional(),type:wr([y("input_text"),y("input_audio"),y("item_reference"),y("output_text"),y("output_audio")])}),Rt=v({id:p().optional(),arguments:p().optional(),call_id:p().optional(),content:ue(bu).optional(),name:p().optional(),output:p().nullable().optional(),role:be(["user","assistant","system"]).optional(),status:be(["completed","incomplete","in_progress"]).optional(),type:be(["message","function_call","function_call_output","mcp_list_tools","mcp_tool_call","mcp_call","mcp_approval_request","mcp_approval_response"]).optional(),approval_request_id:p().nullable().optional(),approve:Ke().nullable().optional(),reason:p().nullable().optional(),server_label:p().optional(),error:ie().nullable().optional(),tools:ue(v({name:p(),description:p(),input_schema:Ce(ie()).optional()}).passthrough()).optional()}).passthrough(),Iu=v({type:y("conversation.created"),event_id:p(),conversation:v({id:p().optional(),object:y("realtime.conversation").optional()})}),Su=v({type:y("conversation.item.added"),event_id:p(),item:Rt,previous_item_id:p().nullable().optional()}),Tu=v({type:y("conversation.item.done"),event_id:p(),item:Rt,previous_item_id:p().nullable().optional()}),Nu=v({type:y("conversation.item.deleted"),event_id:p(),item_id:p()}),Ru=v({type:y("conversation.item.input_audio_transcription.completed"),event_id:p(),item_id:p(),content_index:F(),transcript:p(),logprobs:ue(ie()).nullable().optional()}),Au=v({type:y("conversation.item.input_audio_transcription.delta"),event_id:p(),item_id:p(),content_index:F().optional(),delta:p().optional(),logprobs:ue(ie()).nullable().optional()}),Ou=v({type:y("conversation.item.input_audio_transcription.failed"),event_id:p(),item_id:p(),content_index:F(),error:v({code:p().optional(),message:p().optional(),param:p().optional(),type:p().optional()})}),ku=v({type:y("conversation.item.retrieved"),event_id:p(),item:Rt}),Mu=v({type:y("conversation.item.truncated"),event_id:p(),item_id:p(),audio_end_ms:F(),content_index:F()}),Du=v({type:y("conversation.item.create"),item:Rt,event_id:p().optional(),previous_item_id:p().nullable().optional()}),Fu=v({type:y("conversation.item.delete"),item_id:p(),event_id:p().optional()}),Lu=v({type:y("conversation.item.retrieve"),item_id:p(),event_id:p().optional()}),Pu=v({type:y("conversation.item.truncate"),item_id:p(),audio_end_ms:F(),content_index:F(),event_id:p().optional()}),Gu=v({type:y("error"),event_id:p().optional(),error:ie().optional()}),ju=v({type:y("input_audio_buffer.cleared"),event_id:p()}),Bu=v({type:y("input_audio_buffer.append"),audio:p(),event_id:p().optional()}),$u=v({type:y("input_audio_buffer.clear"),event_id:p().optional()}),Uu=v({type:y("input_audio_buffer.commit"),event_id:p().optional()}),Vu=v({type:y("input_audio_buffer.committed"),event_id:p(),item_id:p(),previous_item_id:p().nullable().optional()}),Wu=v({type:y("input_audio_buffer.speech_started"),event_id:p(),item_id:p(),audio_start_ms:F()}),Hu=v({type:y("input_audio_buffer.speech_stopped"),event_id:p(),item_id:p(),audio_end_ms:F()}),Zu=v({type:y("output_audio_buffer.started"),event_id:p()}).passthrough(),Yu=v({type:y("output_audio_buffer.stopped"),event_id:p()}).passthrough(),zu=v({type:y("output_audio_buffer.cleared"),event_id:p()}),Ju=v({type:y("rate_limits.updated"),event_id:p(),rate_limits:ue(v({limit:F().optional(),name:be(["requests","tokens"]).optional(),remaining:F().optional(),reset_seconds:F().optional()}))}),Xu=v({type:y("response.output_audio.delta"),event_id:p(),item_id:p(),content_index:F(),delta:p(),output_index:F(),response_id:p()}),qu=v({type:y("response.output_audio.done"),event_id:p(),item_id:p(),content_index:F(),output_index:F(),response_id:p()}),Ku=v({type:y("response.output_audio_transcript.delta"),event_id:p(),item_id:p(),content_index:F(),delta:p(),output_index:F(),response_id:p()}),Qu=v({type:y("response.output_audio_transcript.done"),event_id:p(),item_id:p(),content_index:F(),transcript:p(),output_index:F(),response_id:p()}),ed=v({type:y("response.content_part.added"),event_id:p(),item_id:p(),content_index:F(),output_index:F(),response_id:p(),part:v({audio:p().optional(),text:p().optional(),transcript:p().optional(),type:be(["text","audio"]).optional()})}),td=v({type:y("response.content_part.done"),event_id:p(),item_id:p(),content_index:F(),output_index:F(),response_id:p(),part:v({audio:p().optional(),text:p().optional(),transcript:p().optional(),type:be(["text","audio"]).optional()})}),nd=v({type:y("response.created"),event_id:p(),response:ci}),li=v({type:y("response.done"),event_id:p(),response:ci}),od=v({type:y("response.function_call_arguments.delta"),event_id:p(),item_id:p(),call_id:p(),delta:p(),output_index:F(),response_id:p()}),rd=v({type:y("response.function_call_arguments.done"),event_id:p(),item_id:p(),call_id:p(),arguments:p(),output_index:F(),response_id:p()}),ad=v({type:y("response.output_item.added"),event_id:p(),item:Rt,output_index:F(),response_id:p()}),id=v({type:y("response.output_item.done"),event_id:p(),item:Rt,output_index:F(),response_id:p()}),sd=v({type:y("response.output_text.delta"),event_id:p(),item_id:p(),content_index:F(),delta:p(),output_index:F(),response_id:p()}),cd=v({type:y("response.output_text.done"),event_id:p(),item_id:p(),content_index:F(),text:p(),output_index:F(),response_id:p()}),ld=v({type:y("session.created"),event_id:p(),session:ie()}),ud=v({type:y("session.updated"),event_id:p(),session:ie()}),dd=v({type:y("response.cancel"),event_id:p().optional(),response_id:p().optional()}),pd=v({type:y("response.create"),event_id:p().optional(),response:ie().optional()}),md=v({type:y("session.update"),event_id:p().optional(),session:ie()}),fd=v({type:y("mcp_list_tools.in_progress"),event_id:p().optional(),item_id:p().optional()}),hd=v({type:y("mcp_list_tools.completed"),event_id:p().optional(),item_id:p().optional()}),gd=v({type:y("response.mcp_call_arguments.delta"),event_id:p(),response_id:p(),item_id:p(),output_index:F(),delta:p(),obfuscation:p()}),_d=v({type:y("response.mcp_call_arguments.done"),event_id:p(),response_id:p(),item_id:p(),output_index:F(),arguments:p()}),wd=v({type:y("response.mcp_call.in_progress"),event_id:p(),output_index:F(),item_id:p()}),vd=v({type:y("response.mcp_call.completed"),event_id:p(),output_index:F(),item_id:p()}),yd=v({type:y("mcp_list_tools.failed"),event_id:p().optional(),item_id:p().optional()}),Cd=v({type:p(),event_id:p().optional().nullable()}).passthrough(),Ed=Oe("type",[Iu,Su,Tu,Nu,Ru,Au,Ou,ku,Mu,Gu,ju,Vu,Wu,Hu,Zu,Yu,zu,Ju,Xu,qu,Ku,Qu,ed,td,nd,li,od,rd,ad,id,sd,cd,ld,ud,fd,hd,yd,gd,_d,wd,vd]);function Bo(o){const n=JSON.parse(o.data.toString()),t=Ed.safeParse(n);if(!t.success){const r=Cd.safeParse(n);return r.success?{data:r.data,isGeneric:!0}:{data:null,isGeneric:!0}}return{data:t.data,isGeneric:!1}}function ui(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}Oe("type",[Du,Fu,Lu,Pu,Bu,$u,Uu,dd,pd,md]);const We={outputModalities:["audio"],audio:{input:{format:{type:"audio/pcm",rate:24e3},transcription:{model:"gpt-4o-mini-transcribe"},turnDetection:{type:"semantic_vad"},noiseReduction:null},output:{format:{type:"audio/pcm",rate:24e3},speed:1}}};class Mn extends ao{#e;#t;#o=null;#n=null;eventEmitter=new vn;constructor(n={}){super(),this.#e=n.model??"gpt-realtime",this.#t=n.apiKey}get currentModel(){return this.#e}set currentModel(n){this.#e=n}get _rawSessionConfig(){return this.#n??null}_getApiKey(n){var t=this;return function xd(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){ui(i,r,a,s,c,"next",u)}function c(u){ui(i,r,a,s,c,"throw",u)}s(void 0)})}}(function*(){const r=n.apiKey??t.#t;return"function"==typeof r?yield r():r})()}_onMessage(n){const{data:t,isGeneric:r}=Bo(n);
1if(null!==t&&(this.emit("*",t),!r)){if("error"===t.type?this.emit("error",{type:"error",error:t}):this.emit(t.type,t),"response.created"===t.type)return void this.emit("turn_started",{type:"response_started",providerData:{...t}});if("session.updated"===t.type&&(this.#n=t.session),"response.done"===t.type){const a=li.safeParse(t);if(!a.success)return void Fe.error("Error parsing response done event",a.error);const i=a.data.response.usage?.input_tokens??0,s=a.data.response.usage?.output_tokens??0,c=i+s,u=new xn({inputTokens:i,inputTokensDetails:a.data.response.usage?.input_token_details??{},outputTokens:s,outputTokensDetails:a.data.response.usage?.output_token_details??{},totalTokens:c});return this.emit("usage_update",u),void this.emit("turn_done",{type:"response_done",response:{id:a.data.response.id??"",output:a.data.response.output??[],usage:{inputTokens:i,inputTokensDetails:a.data.response.usage?.input_token_details??{},outputTokens:s,outputTokensDetails:a.data.response.usage?.output_token_details??{},totalTokens:c}}})}if("response.output_audio.done"===t.type)return void this.emit("audio_done");if("conversation.item.deleted"===t.type)return void this.emit("item_deleted",{itemId:t.item_id});if("conversation.item.input_audio_transcription.completed"===t.type||"conversation.item.truncated"===t.type)return void this.sendEvent({type:"conversation.item.retrieve",item_id:t.item_id});if("conversation.item.input_audio_transcription.delta"===t.type||"response.output_text.delta"===t.type||"response.output_audio_transcript.delta"===t.type||"response.function_call_arguments.delta"===t.type)return void("response.output_audio_transcript.delta"===t.type&&this.emit("audio_transcript_delta",{type:"transcript_delta",delta:t.delta,itemId:t.item_id,responseId:t.response_id}));if("conversation.item.added"===t.type||"conversation.item.done"===t.type||"conversation.item.retrieved"===t.type){if("mcp_list_tools"===t.item.type&&"conversation.item.done"===t.type){const a=t.item.server_label??"",i=t.item.tools??[];try{this.emit("mcp_tools_listed",{serverLabel:a,tools:i})}catch(s){Fe.error("Error emitting mcp_tools_listed",s,t.item)}return}if("message"===t.item.type){const i=ai.parse({itemId:t.item.id,previousItemId:"conversation.item.added"===t.type||"conversation.item.done"===t.type?t.previous_item_id:null,type:t.item.type,role:t.item.role,content:t.item.content,status:t.item.status});return void this.emit("item_update",i)}if("mcp_approval_request"===t.item.type&&"conversation.item.done"===t.type){const a=t.item,i=xu.parse({itemId:a.id,type:a.type,serverLabel:a.server_label,name:a.name,arguments:JSON.parse(a.arguments||"{}"),approved:a.approved});return this.emit("item_update",i),void this.emit("mcp_approval_request",i)}if("mcp_tool_call"===t.item.type||"mcp_call"===t.item.type){const i=si.parse({itemId:t.item.id,type:t.item.type,status:"conversation.item.done"===t.type?"completed":"in_progress",arguments:t.item.arguments,name:t.item.name,output:t.item.output});return this.emit("item_update",i),void("conversation.item.done"===t.type&&this.emit("mcp_tool_call_completed",i))}}if("response.mcp_call.in_progress"===t.type)return void this.sendEvent({type:"conversation.item.retrieve",item_id:t.item_id});if("mcp_list_tools.in_progress"===t.type)return void(t.item_id&&this.sendEvent({type:"conversation.item.retrieve",item_id:t.item_id}));if("response.output_item.done"===t.type||"response.output_item.added"===t.type){const a=t.item;if("function_call"===a.type&&"completed"===a.status){const i=ii.parse({itemId:a.id,type:a.type,status:"in_progress",arguments:a.arguments,name:a.name,output:null});return this.emit("item_update",i),void this.emit("function_call",{id:a.id,type:"function_call",callId:a.call_id??"",arguments:a.arguments??"",name:a.name??""})}if("mcp_tool_call"===a.type||"mcp_call"===a.type){const i=si.parse({itemId:a.id,type:a.type,status:"response.output_item.done"===t.type?"completed":"in_progress",arguments:a.arguments,name:a.name,output:a.output});return void this.emit("item_update",i)}if("message"===a.type){const i=ai.parse({itemId:t.item.id,type:t.item.type,role:t.item.role,content:t.item.content,status:"response.output_item.done"===t.type?a.status??"completed":a.status??"in_progress"});
1return void this.emit("item_update",i)}}}}_onError(n){this.emit("error",{type:"error",error:n})}_onOpen(){this.emit("connected")}_onClose(){this.emit("disconnected")}sendMessage(n,t,{triggerResponse:r=!0}={}){const a="string"==typeof n?[{type:"input_text",text:n}]:n.content.map(i=>"input_image"===i.type?{type:"input_image",image_url:i.image,...i.providerData??{}}:i);this.sendEvent({type:"conversation.item.create",item:{type:"message",role:"user",content:a},...t}),r&&this.sendEvent({type:"response.create"})}addImage(n,{triggerResponse:t=!0}={}){this.sendMessage({type:"message",role:"user",content:[{type:"input_image",image:n}]},{},{triggerResponse:t})}_getMergedSessionConfig(n){const t=function Eu(o){if(!function Cu(o){return ft("modalities",o)||ft("inputAudioFormat",o)||ft("outputAudioFormat",o)||ft("inputAudioTranscription",o)||ft("turnDetection",o)||ft("inputAudioNoiseReduction",o)||ft("speed",o)}(o)){const n=o.audio?.input?{format:kn(o.audio.input.format),noiseReduction:o.audio.input.noiseReduction??null,transcription:o.audio.input.transcription,turnDetection:o.audio.input.turnDetection}:void 0,t=o.audio?.output?.voice??o.voice,r=o.audio?.output||typeof t<"u"?{format:kn(o.audio?.output?.format),voice:t,speed:o.audio?.output?.speed}:void 0;return{model:o.model,instructions:o.instructions,toolChoice:o.toolChoice,tools:o.tools,tracing:o.tracing,providerData:o.providerData,prompt:o.prompt,outputModalities:o.outputModalities,audio:n||r?{input:n,output:r}:void 0}}return{model:o.model,instructions:o.instructions,toolChoice:o.toolChoice,tools:o.tools,tracing:o.tracing,providerData:o.providerData,prompt:o.prompt,outputModalities:o.modalities,audio:{input:{format:kn(o.inputAudioFormat),noiseReduction:o.inputAudioNoiseReduction??null,transcription:o.inputAudioTranscription,turnDetection:o.turnDetection},output:{format:kn(o.outputAudioFormat),voice:o.voice,speed:o.speed}}}}(n),r={type:"realtime",instructions:t.instructions,model:t.model??this.#e,output_modalities:t.outputModalities??We.outputModalities,audio:{input:{format:t.audio?.input?.format??We.audio?.input?.format,noise_reduction:t.audio?.input?.noiseReduction??We.audio?.input?.noiseReduction,transcription:t.audio?.input?.transcription??We.audio?.input?.transcription,turn_detection:Mn.buildTurnDetectionConfig(t.audio?.input?.turnDetection)??We.audio?.input?.turnDetection},output:{format:t.audio?.output?.format??We.audio?.output?.format,voice:t.audio?.output?.voice??We.audio?.output?.voice,speed:t.audio?.output?.speed??We.audio?.output?.speed}},tool_choice:t.toolChoice??We.toolChoice,...t.providerData??{}};return t.prompt&&(r.prompt={id:t.prompt.promptId,version:t.prompt.version,variables:t.prompt.variables}),t.tools&&t.tools.length>0&&(r.tools=t.tools.map(a=>({...a,strict:void 0}))),r}static buildTurnDetectionConfig(n){if(typeof n>"u")return;const{type:t,createResponse:r,create_response:a,eagerness:i,interruptResponse:s,interrupt_response:c,prefixPaddingMs:u,prefix_padding_ms:d,silenceDurationMs:m,silence_duration_ms:g,threshold:x,idleTimeoutMs:O,idle_timeout_ms:C,...H}=n,U={type:t,create_response:r||a,eagerness:i,interrupt_response:s||c,prefix_padding_ms:u||d,silence_duration_ms:m||g,idle_timeout_ms:O||C,threshold:x,...H};return Object.keys(U).forEach(k=>{void 0===U[k]&&delete U[k]}),Object.keys(U).length>0?U:void 0}set _tracingConfig(n){this.#o=n}_updateTracingConfig(n){if(typeof this.#o>"u"&&(this.#o=null),"auto"!==n){if(null===this.#o||"string"==typeof this.#o||"string"==typeof n)return null===n?(Fe.debug("Disabling tracing for this session. It cannot be turned on for this session from this point on."),void this.sendEvent({type:"session.update",session:{type:"realtime",tracing:null}})):void(null!==this.#o&&"string"!=typeof this.#o?n?.group_id===this.#o?.group_id&&n?.metadata===this.#o?.metadata&&n?.workflow_name===this.#o?.workflow_name?this.sendEvent({type:"session.update",session:{type:"realtime",tracing:n}}):Fe.warn("Mismatch in tracing config. Ignoring the new tracing config. This likely happens when you already set a tracing config on session creation. Current tracing config: %s, new tracing config: %s",JSON.stringify(this.#o),JSON.stringify(n)):this.sendEvent({type:"session.update",session:{type:"realtime",tracing:n}}));Fe.warn("Tracing config is already set, skipping setting it again. This likely happens when you already set a tracing config on session creation.")}else this.sendEvent({type:"session.update",session:{type:"realtime",tracing:"auto"}})}updateSessionConfig(n){const t=this._getMergedSessionConfig(n);this.sendEvent({type:"session.update",session:t})}sendFunctionCallOutput(n,t,r=!0){this.sendEvent({type:"conversation.item.create",item:{type:"function_call_output",output:t,call_id:n.callId}});try{const a=ii.parse({itemId:n.id,previousItemId:n.previousItemId,type:"function_call",status:"completed",arguments:n.arguments,name:n.name,output:t});
1this.emit("item_update",a)}catch(a){Fe.error("Error parsing tool call item",a,n)}r&&this.sendEvent({type:"response.create"})}sendAudio(n,{commit:t=!1}={}){this.sendEvent({type:"input_audio_buffer.append",audio:Ka(n)}),t&&this.sendEvent({type:"input_audio_buffer.commit"})}resetHistory(n,t){const{removals:r,additions:a,updates:i}=function pu(o,n){return{removals:o.filter(i=>!n.some(s=>s.itemId===i.itemId)),additions:n.filter(i=>!o.some(s=>s.itemId===i.itemId)),updates:n.filter(i=>o.some(s=>s.itemId===i.itemId&&JSON.stringify(s)!==JSON.stringify(i)))}}(n,t),s=new Set(r.map(u=>u.itemId));for(const u of i)s.add(u.itemId);if(s.size>0)for(const u of s)this.sendEvent({type:"conversation.item.delete",item_id:u});const c=[...a,...i];for(const u of c)if("message"===u.type){const d={type:"message",role:u.role,content:u.content,id:u.itemId};"system"!==u.role&&u.status&&(d.status=u.status),this.sendEvent({type:"conversation.item.create",item:d})}else"function_call"===u.type&&Fe.warn("Function calls cannot be manually added or updated at the moment. Ignoring.")}sendMcpResponse(n,t){this.sendEvent({type:"conversation.item.create",previous_item_id:n.itemId,item:{type:"mcp_approval_response",approval_request_id:n.itemId,approve:t}})}}function di(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function pi(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){di(i,r,a,s,c,"next",u)}function c(u){di(i,r,a,s,c,"throw",u)}s(void 0)})}}class mi extends Mn{options;#e;#t={status:"disconnected",peerConnection:void 0,dataChannel:void 0,callId:void 0};#o;#n=!1;#i=!1;constructor(n={}){if(typeof RTCPeerConnection>"u")throw new Error("WebRTC is not supported in this environment");super(n),this.options=n,this.#e=n.baseUrl??"https://api.openai.com/v1/realtime/calls",this.#o=n.useInsecureApiKey??!1}get callId(){return this.#t.callId}get status(){return this.#t.status}get connectionState(){return this.#t}get muted(){return this.#i}connect(n){var t=this;return pi(function*(){if("connected"===t.#t.status)return;"connecting"===t.#t.status&&Fe.warn("Realtime connection already in progress. Please await original promise"),t.currentModel=n.model??t.currentModel;const a=n.url??t.#e,i=yield t._getApiKey(n),s="string"==typeof i&&i.startsWith("ek_");if(!t.#o&&!s)throw new Ee("Using the WebRTC connection in a browser environment requires an ephemeral client key. If you need to use a regular API key, use the WebSocket transport or set the `useInsecureApiKey` option to true.");return new Promise(function(){var c=pi(function*(u,d){try{const m={...n.initialSessionConfig||{},model:t.currentModel},g=new URL(a);let x=new RTCPeerConnection;const O=x.createDataChannel("oai-events");let C;t.#t={status:"connecting",peerConnection:x,dataChannel:O,callId:C},t.emit("connection_change",t.#t.status),O.addEventListener("open",()=>{t.#t={status:"connected",peerConnection:x,dataChannel:O,callId:C},t.updateSessionConfig(m),t.emit("connection_change",t.#t.status),t._onOpen(),u()}),O.addEventListener("error",me=>{t.close(),t._onError(me),d(me)}),O.addEventListener("message",me=>{t._onMessage(me);const{data:ye,isGeneric:sn}=Bo(me);!ye||sn||("response.created"===ye.type?t.#n=!0:"response.done"===ye.type&&(t.#n=!1),"session.created"===ye.type&&(t._tracingConfig=ye.session.tracing,t._updateTracingConfig(m.tracing??"auto")))});const H=t.options.audioElement??document.createElement("audio");H.autoplay=!0,x.ontrack=me=>{H.srcObject=me.streams[0]};const U=t.options.mediaStream??(yield navigator.mediaDevices.getUserMedia({audio:!0}));x.addTrack(U.getAudioTracks()[0]),t.options.changePeerConnection&&(x=yield t.options.changePeerConnection(x),t.#t={...t.#t,peerConnection:x});const k=yield x.createOffer();if(yield x.setLocalDescription(k),!k.sdp)throw new Error("Failed to create offer");const q=yield fetch(g,{method:"POST",body:k.sdp,headers:{"Content-Type":"application/sdp",Authorization:`Bearer ${i}`,"X-OpenAI-Agents-SDK":ni["X-OpenAI-Agents-SDK"]}});C=q.headers?.get("Location")?.split("/").pop(),t.#t={...t.#t,callId:C};const ge={type:"answer",sdp:yield q.text()};yield x.setRemoteDescription(ge)}catch(m){t.close(),t._onError(m),d(m)}});return function(u,d){return c.apply(this,arguments)}}())})()}sendEvent(n){if(!this.#t.dataChannel||"open"!==this.#t.dataChannel.readyState)throw new Error("WebRTC data channel is not connected. Make sure you call `connect()` before sending events.");this.#t.dataChannel.send(JSON.stringify(n))}mute(n){this.#i=n,this.#t.peerConnection&&this.#t.peerConnection.getSenders().forEac
1h(r=>{r.track&&(r.track.enabled=!n)})}close(){if(this.#t.dataChannel&&this.#t.dataChannel.close(),this.#t.peerConnection){const n=this.#t.peerConnection;n.getSenders().forEach(t=>{t.track?.stop()}),n.close()}"disconnected"!==this.#t.status&&(this.#t={status:"disconnected",peerConnection:void 0,dataChannel:void 0,callId:void 0},this.emit("connection_change",this.#t.status),this._onClose())}interrupt(){this.#n&&(this.sendEvent({type:"response.cancel"}),this.#n=!1),this.sendEvent({type:"output_audio_buffer.clear"})}}const Id=globalThis.WebSocket;function fi(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function hi(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){fi(i,r,a,s,c,"next",u)}function c(u){fi(i,r,a,s,c,"throw",u)}s(void 0)})}}class Td extends Mn{#e;#t;#o={status:"disconnected",websocket:void 0};#n;#i;#a;_firstAudioTimestamp;_audioLengthMs=0;#s=!1;#r;#c;constructor(n={}){super(n),this.#t=n.url,this.#n=n.useInsecureApiKey??!1,this.#r=n.createWebSocket,this.#c=n.skipOpenEventListeners??!1}getCommonRequestHeaders(){return ni}get status(){return this.#o.status}get connectionState(){return this.#o}get muted(){return null}get currentItemId(){return this.#i}_onAudio(n){this.emit("audio",n)}#d(n,t,r){var a=this;return hi(function*(){if(a.#o.websocket)return void n();if(!a.#e)throw new Ee("API key is not set. Please call `connect()` with an API key first.");if(!a.#e.startsWith("ek_")&&!a.#n)throw new Ee("Using the WebSocket connection in a browser environment requires an ephemeral client key. If you have to use a regular API key, set the `useInsecureApiKey` option to true.");let i=null;if(a.#r)i=yield a.#r({url:a.#t,apiKey:a.#e});else{const c=["realtime","openai-insecure-api-key."+a.#e,"openai-agents-sdk.0.1.11"];i=new Id(a.#t,c)}a.#o={status:"connecting",websocket:i},a.emit("connection_change",a.#o.status);const s=()=>{a.#o={status:"connected",websocket:i},a.emit("connection_change",a.#o.status),a._onOpen(),n()};!0===a.#c?s():i.addEventListener("open",s),i.addEventListener("error",c=>{a._onError(c),a.#o={status:"disconnected",websocket:void 0},a.emit("connection_change",a.#o.status),t(c)}),i.addEventListener("message",c=>{a._onMessage(c);const{data:u,isGeneric:d}=Bo(c);if(u&&!d)if("response.output_audio.delta"===u.type){a.#a=u.content_index,a.#i=u.item_id,void 0===a._firstAudioTimestamp&&(a._firstAudioTimestamp=Date.now(),a._audioLengthMs=0);const m=function qa(o){const n=atob(o),t=n.length,r=new Uint8Array(t);for(let a=0;a<t;a++)r[a]=n.charCodeAt(a);return r.buffer}(u.delta),g=a._rawSessionConfig?.audio?.output?.format;if(g&&"object"==typeof g){const O=g.type;a._audioLengthMs+="audio/pcmu"===O||"audio/pcma"===O?m.byteLength/8:"audio/pcm"===O?m.byteLength/2/(g.rate??24e3)*1e3:m.byteLength/24/2}else"string"==typeof g&&g.startsWith("g711_")?a._audioLengthMs+=m.byteLength/8:a._audioLengthMs+=m.byteLength/24/2;a._onAudio({type:"audio",data:m,responseId:u.response_id})}else"input_audio_buffer.speech_started"===u.type?a.interrupt(!a._rawSessionConfig?.audio?.input?.turn_detection?.interrupt_response):"response.created"===u.type?a.#s=!0:"response.done"===u.type?a.#s=!1:"session.created"===u.type&&(a._tracingConfig=u.session.tracing,a._updateTracingConfig(r.tracing??"auto"))}),i.addEventListener("close",()=>{a.#o={status:"disconnected",websocket:void 0},a.emit("connection_change",a.#o.status),a._onClose()})})()}connect(n){var t=this;return hi(function*(){t.currentModel=n.model??t.currentModel,t.#e=yield t._getApiKey(n);const a=n.url??t.#t??`wss://api.openai.com/v1/realtime?model=${t.currentModel}`;t.#t=a;const i={...n.initialSessionConfig||{},model:t.currentModel};yield new Promise((s,c)=>{t.#d(s,c,i).catch(c)}),yield t.updateSessionConfig(i)})()}sendEvent(n){if(!this.#o.websocket)throw new Error("WebSocket is not connected. Make sure you call `connect()` before sending events.");this.#o.websocket.send(JSON.stringify(n))}close(){this.#o.websocket?.close(),this.#i=void 0,this._firstAudioTimestamp=void 0,this._audioLengthMs=0,this.#a=void 0}mute(n){throw new Error("Mute is not supported for the WebSocket transport. You have to mute the audio input yourself.")}sendAudio(n,t={}){"connected"===this.#o.status&&super.sendAudio(n,t)}_cancelResponse(){this.#s&&(this.sendEvent({type:"response.cancel"}),this.#s=!1)}_interrupt(n,t=!0){if(n<0)return;t&&this._cancelResponse();const a=Math.max(0,Math.floor(Math.min(n,this._audioLengthMs??Number.POSITIVE_INFINITY)));
1this.emit("audio_interrupted"),this.sendEvent({type:"conversation.item.truncate",item_id:this.#i,content_index:this.#a,audio_end_ms:a})}interrupt(n=!0){if(!this.#i||"number"!=typeof this._firstAudioTimestamp)return;const t=Date.now()-this._firstAudioTimestamp;t>=0&&this._interrupt(t,n),this.#i=void 0,this._firstAudioTimestamp=void 0,this._audioLengthMs=0,this.#a=void 0}}const gi=Symbol("backgroundResult");function Ad(o){return"function"===o.type||"hosted_tool"===o.type&&"hosted_mcp"===o.name}function Od(o){if("function"===o.type)return o;if("hosted_tool"===o.type&&"hosted_mcp"===o.name)return{type:"mcp",server_label:o.providerData.server_label,server_url:o.providerData.server_url&&o.providerData.server_url.length>0?o.providerData.server_url:void 0,headers:o.providerData.headers,allowed_tools:o.providerData.allowed_tools,require_approval:o.providerData.require_approval};throw new Ee(`Invalid tool type: ${o}`)}function _i(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Be(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){_i(i,r,a,s,c,"next",u)}function c(u){_i(i,r,a,s,c,"throw",u)}s(void 0)})}}class Md extends vn{initialAgent;options;#e;#t;#o;#n;#i=[];#a;#s={};#r=[];#c;#d={};#l=!1;#p=new Map;#u=[];#g=function kd(){return JSON.parse(JSON.stringify(We))}();#_=!0;constructor(n,t={}){super(),this.initialAgent=n,this.options=t,typeof t.transport>"u"&&function mu(){return!(typeof window>"u")&&typeof window.RTCPeerConnection<"u"}()||"webrtc"===t.transport?this.#e=new mi:this.#e="websocket"===t.transport||typeof t.transport>"u"?new Td:t.transport,this.#t=n,this.#n=new It({...t.context??{},history:this.#r}),this.#i=(t.outputGuardrails??[]).map(vu),this.#a=function wu(o){return{debounceTextLength:o.debounceTextLength??100}}(t.outputGuardrailSettings??{}),this.#c=t.historyStoreAudio??!1,this.#_=t.automaticallyTriggerResponseForMcpToolCalls??!0}get transport(){return this.#e}get currentAgent(){return this.#t}get usage(){return this.#n.usage}get context(){return this.#n}get muted(){return this.#e.muted}get history(){return this.#r}get availableMcpTools(){return this.#u}#m(n){var t=this;return Be(function*(){t.#t=n;const r=yield t.#t.getEnabledHandoffs(t.#n),a=r.map(u=>u.getHandoffAsFunctionTool()),i=(yield t.#t.getAllTools(t.#n)).filter(Ad).map(Od),s=typeof t.#t.tools<"u"||typeof t.#t.mcpServers<"u";t.#o=s||r.length>0?[...i,...a]:void 0,t.#v()})()}#f(){var n=this;return Be(function*(t={}){const r=yield n.#t.getSystemPrompt(n.#n),a=n.options.tracingDisabled?null:n.options.workflowName?{workflow_name:n.options.workflowName}:"auto";null!==a&&"auto"!==a?(n.options.groupId&&(a.group_id=n.options.groupId),n.options.traceMetadata&&(a.metadata=n.options.traceMetadata)):(n.options.groupId||n.options.traceMetadata)&&Fe.warn("In order to set traceMetadata or a groupId you need to specify a workflowName.");const s={...{...n.#g??{},...n.options.config??{},...t??{}},instructions:r,voice:n.#t.voice,model:n.options.model,tools:n.#o,tracing:a,prompt:"function"==typeof n.#t.prompt?yield n.#t.prompt(n.#n,n.#t):n.#t.prompt};return n.#g=s,s}).apply(this,arguments)}updateAgent(n){var t=this;return Be(function*(){return t.#t.emit("agent_handoff",t.#n,n),t.emit("agent_handoff",t.#n,t.#t,n),yield t.#m(n),yield t.#e.updateSessionConfig(yield t.#f()),n})()}#y(n,t){var r=this;return Be(function*(){const a=yield t.onInvokeHandoff(r.#n,n.arguments);r.#t.emit("agent_handoff",r.#n,a),r.emit("agent_handoff",r.#n,r.#t,a),yield r.#m(a),yield r.#e.updateSessionConfig(yield r.#f());const i=Hr(a);return r.#e.sendFunctionCallOutput(n,i,!0),a})()}#h(n,t){var r=this;return Be(function*(){r.#n.context.history=JSON.parse(JSON.stringify(r.#r));let a=n.arguments;if(t.parameters&&(a=lt(t.parameters)?t.parameters.parse(a):JSON.parse(a)),yield t.needsApproval(r.#n,a,n.callId)){const u=r.context.isToolApproved({toolName:t.name,callId:n.callId});if(!1===u){r.emit("agent_tool_start",r.#n,r.#t,t,{toolCall:n}),r.#t.emit("agent_tool_start",r.#n,t,{toolCall:n});const d="Tool execution was not approved.";return r.#e.sendFunctionCallOutput(n,d,!0),r.emit("agent_tool_end",r.#n,r.#t,t,d,{toolCall:n}),void r.#t.emit("agent_tool_end",r.#n,t,d,{toolCall:n})}if(typeof u>"u")return void r.emit("tool_approval_requested",r.#n,r.#t,{type:"function_approval",tool:t,approvalItem:new Me(n,r.#t)})}r.emit("agent_tool_start",r.#n,r.#t,t,{toolCall:n}),r.#t.emit("agent_tool_start",r.#n,t,{toolCall:n}),r.#n.context.history=JSON.parse(JSON.stringify(r.#r));const s=yield t.invoke(r.#n,n.arguments,{toolCall:n});let c;!function Rd(o){return"object"==typeof o&&null!==o&&gi in o}(s)?(c=et(s),r.#e.sendFunctionCallOutput(n,c,!0)):(c=et(s.content),r.#e.sendFunctionCallOutput(n,c,!1)),r.emit("agent_tool_end",r.#n,r.#t,t,c,{toolCall:n}),r.#t.emit("agent_tool_end",r.#n,t,c,{toolCall:n})})()}#C(n){var t=this;return Be(function*(){const r=yield t.#t.getEnabledHandoffs(t.#n),a=new Map(r.map(u=>[u.toolName,u])),i=yield t.#t.getAllTools(t.#n),s=new Map(i.map(u=>[u.name,u])),c=a.get(n.name);if(c)yield t.#y(n,c);else{const u=s.get(n.name);if(!u||"function"!==u.type)throw new ke(`Tool ${n.name} not found`);yield t.#h(n,u)}})()}#w(n,t,r){var a=this;return Be(function*(){if(0===a.#i.length)return;const i={agent:a.#t,agentOutput:n,context:a.#n},c=(yield Promise.all(a.#i.map(u=>u.run(i)))).find(u=>u.output.tripwireTriggered);if(c){if(a.#d[t])return;a.#d[t]=!0;const u=new qn(`Output guardrail triggered: ${JSON.stringify(c.output.outputInfo)}`,c);a.emit("guardrail_tripped",a.#n,a.#t,u,{itemId:r}),a.interrupt();const d=function yu(o){return`\n\u26a0\ufe0f Your last answer was blocked. \nFailed Guardrail Reason: ${o.guardrail.policyHint}
1. \nFailure Details: ${JSON.stringify(o.output.outputInfo??{})}. \nPlease respond again following policy. Apologize for not being able to answer the question (while avoiding the specific reason) and divert discussion back to an approved topic immediately and not invite more discussion.\n`.trim()}(c);return void a.sendMessage(d)}})()}#E(){var n=this;this.#e.on("*",a=>{if(this.emit("transport_event",a),"conversation.item.input_audio_transcription.completed"===a.type)try{this.#r=ti(this.#r,a,this.#c),this.#n.context.history=this.#r,this.emit("history_updated",this.#r)}catch(i){this.emit("error",{type:"error",error:i})}}),this.#e.on("mcp_tools_listed",({serverLabel:a,tools:i})=>{try{this.#p.set(a,i??[]),this.#v()}catch(s){this.emit("error",{type:"error",error:s})}}),this.#e.on("audio",a=>{this.#l||(this.#l=!0,this.emit("audio_start",this.#n,this.#t)),this.emit("audio",a)}),this.#e.on("turn_started",()=>{this.#l=!1,this.emit("agent_start",this.#n,this.#t),this.#t.emit("agent_start",this.#n,this.#t)}),this.#e.on("turn_done",a=>{const i=a.response.output[a.response.output.length-1],s=function Qa(o){if(typeof o>"u"||null===o||"object"!=typeof o||!("type"in o)||"string"!=typeof o.type||!o.type||"message"!==o.type||!("content"in o)||!Array.isArray(o.content)||o.content.length<1)return;const n=o.content[o.content.length-1];if("type"in n&&"string"==typeof n.type){if("output_text"===n.type)return"string"==typeof n.text?n.text:void 0;if("output_audio"===n.type)return"string"==typeof n.transcript?n.transcript:void 0}}(i)??"",c=i?.id??"";this.emit("agent_end",this.#n,this.#t,s),this.#t.emit("agent_end",this.#n,s),this.#w(s,a.response.id,c)}),this.#e.on("audio_done",()=>{this.#l&&(this.#l=!1),this.emit("audio_stopped",this.#n,this.#t)});let r,t=0;this.#e.on("audio_transcript_delta",a=>{try{const s=a.itemId,c=a.responseId;r!==s&&(r=s,t=0);const d=(this.#s[s]??"")+a.delta;if(this.#s[s]=d,this.#a.debounceTextLength<0)return;const m=Math.floor(d.length/this.#a.debounceTextLength);m>t&&(t=m,this.#w(d,c,s))}catch(i){this.emit("error",{type:"error",error:i})}}),this.#e.on("item_update",a=>{try{const i=!this.#r.some(s=>s.itemId===a.itemId);if(this.#r=ti(this.#r,a,this.#c),this.#n.context.history=this.#r,i){const s=this.#r.find(c=>c.itemId===a.itemId);s&&this.emit("history_added",s)}this.emit("history_updated",this.#r)}catch(i){this.emit("error",{type:"error",error:i})}}),this.#e.on("item_deleted",a=>{try{this.#r=this.#r.filter(i=>i.itemId!==a.itemId),this.#n.context.history=this.#r,this.emit("history_updated",this.#r)}catch(i){this.emit("error",{type:"error",error:i})}}),this.#e.on("function_call",function(){var a=Be(function*(i){try{yield n.#C(i)}catch(s){Fe.error("Error handling function call",s),n.emit("error",{type:"error",error:s})}});return function(i){return a.apply(this,arguments)}}()),this.#e.on("usage_update",a=>{this.#n.usage.add(a)}),this.#e.on("audio_interrupted",()=>{this.#l&&(this.#l=!1),this.emit("audio_interrupted",this.#n,this.#t)}),this.#e.on("error",a=>{this.emit("error",a)}),this.#e.on("mcp_tool_call_completed",a=>{this.emit("mcp_tool_call_completed",this.#n,this.#t,a),this.#_&&this.#e.sendEvent({type:"response.create"})}),this.#e.on("mcp_approval_request",a=>{this.emit("tool_approval_requested",this.#n,this.#t,{type:"mcp_approval_request",approvalItem:hu(this.#t,a)})})}#v(){const n=this.#o?.filter(c=>"mcp"===c.type),t=c=>{const u=c.allowed_tools;if(u){if(Array.isArray(u))return u;if(u&&Array.isArray(u.tool_names))return u.tool_names}},r=new Map;for(const c of n){const u=this.#p.get(c.server_label)??[],d=t(c);for(const m of u)d&&!d.includes(m.name)||r.has(m.name)||r.set(m.name,m)}const a=Array.from(r.values()),i=this.#u;(i.length!==a.length||JSON.stringify(i.map(c=>c.name).sort())!==JSON.stringify(a.map(c=>c.name).sort()))&&(this.#u=a,this.emit("mcp_tools_changed",this.#u))}connect(n){var t=this;return Be(function*(){yield t.#m(t.initialAgent),t.#E(),yield t.#e.connect({apiKey:n.apiKey??t.options.apiKey,model:t.options.model,url:n.url,initialSessionConfig:yield t.#f(t.options.config)}),t.#r=[],t.emit("history_updated",t.#r)})()}updateHistory(n){let t;t="function"==typeof n?n(this.#r):n,this.#e.resetHistory(this.#r,t)}sendMessage(n,t={}){this.#e.sendMessage(n,t)}addImage(n,{triggerResponse:t=!0}={}){this.#e.addImage(n,{triggerResponse:t})}mute(n){this.#e.mute(n)}close(){this.#d={},this.#e.close()}sendAudio(n,t={}){this.#e.sendAudio(n,t)}interrupt(){this.#e.interrupt()}approve(n){var t=this;return Be(function*(r,a={alwaysApprove:!1}){t.#n.approveTool(r,a);const i=t.#t.tools.find(s=>s.name===r.rawItem.name);
1if(i&&"function"===i.type&&"function_call"===r.rawItem.type)yield t.#h(r.rawItem,i);else{if("hosted_tool_call"!==r.rawItem.type)throw new ke(`Tool ${r.rawItem.name} not found`);{a.alwaysApprove&&Fe.warn("Always approving MCP tools is not supported. Use the allowed tools configuration instead.");const s=oi(r);t.#e.sendMcpResponse(s,!0)}}}).apply(this,arguments)}reject(n){var t=this;return Be(function*(r,a={alwaysReject:!1}){t.#n.rejectTool(r,a);const i=t.#t.tools.find(s=>s.name===r.rawItem.name);if(i&&"function"===i.type&&"function_call"===r.rawItem.type)yield t.#h(r.rawItem,i);else{if("hosted_tool_call"!==r.rawItem.type)throw new ke(`Tool ${r.rawItem.name} not found`);{a.alwaysReject&&Fe.warn("Always rejecting MCP tools is not supported. Use the allowed tools configuration instead.");const s=oi(r);t.#e.sendMcpResponse(s,!1)}}}).apply(this,arguments)}}var Dd=f(80197),ot=f(64523);function wi(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}let Ld=(()=>{var o;class n{constructor(){this.recordedChunks=[],this.http=(0,h.WQX)(j.Qq)}startRecording(r){var a=this;return function Fd(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){wi(i,r,a,s,c,"next",u)}function c(u){wi(i,r,a,s,c,"throw",u)}s(void 0)})}}(function*(){a.recordedChunks=[];const i=r.captureStream();let s;try{s=yield navigator.mediaDevices.getUserMedia({audio:!0})}catch{s=new MediaStream}a.audioContext=new AudioContext;const c=a.audioContext.createMediaStreamDestination();try{a.audioContext.createMediaStreamSource(i).connect(c)}catch(u){console.error("Failed to connect remote stream:",u)}try{a.audioContext.createMediaStreamSource(s).connect(c)}catch(u){console.error("Failed to connect mic stream:",u)}a.mediaRecorder=new MediaRecorder(c.stream,{mimeType:"audio/webm"}),a.mediaRecorder.ondataavailable=u=>{u.data.size>0&&a.recordedChunks.push(u.data)},a.mediaRecorder.start()})()}stopAndUpload(r,a){return new Promise(i=>{this.mediaRecorder&&"recording"===this.mediaRecorder.state?(this.mediaRecorder.onstop=()=>{const s=new Blob(this.recordedChunks,{type:"audio/webm"}),c=new FormData;c.append("audio",s,"recording.webm"),c.append("ephemeralKey",a),this.http.post(`/api/recruitment/screening/v2/calls/${r}/audio`,c).subscribe({next:()=>i(),error:u=>{console.error("Audio upload failed:",u),i()}}),this.audioContext?.close()},this.mediaRecorder.stop()):i()})}reset(){this.mediaRecorder=void 0,this.audioContext=void 0,this.recordedChunks=[]}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275prov=h.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return o(),n})();function vi(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function yi(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){vi(i,r,a,s,c,"next",u)}function c(u){vi(i,r,a,s,c,"throw",u)}s(void 0)})}}var Dn=function(o){return o.AGENT="AGENT",o.HUMAN="HUMAN",o}(Dn||{});let $o=(()=>{var o;class n{constructor(){this.loading=(0,h.vPA)(!1),this.aiTalking=(0,h.vPA)(!1),this.endConversation=(0,h.vPA)(!1),this.pttReady=(0,h.vPA)(!1),this.pttActive=(0,h.vPA)(!1),this.firstGreetingCompleted=!1,this.pendingVadEnable=!1,this.callEndedPending=!1,this.pttMode=!1,this.itemOrderMap=new Map,this.http=(0,h.WQX)(j.Qq),this.audioRecorder=(0,h.WQX)(Ld),this.measurement=(0,h.WQX)(Dd.F),this.eventBatch=[],this.BATCH_INTERVAL_MS=300,this.END_CALL_TIMEOUT_MS=1500,this.GOODBYE_TIMEOUT_MS=2e3,this.GOODBYE_MESSAGES={[ot.sb.plPL]:"Powiedz dok\u0142adnie: Dzi\u0119kuj\u0119 za rozmow\u0119.",[ot.sb.enGB]:"Say exactly: Thank you for the conversation.",[ot.sb.huHU]:"Mondd pontosan: K\xf6sz\xf6n\xf6m a besz\xe9lget\xe9st."}}start(r,a,i,s){var c=this;return yi(function*(u,d,m,g,x=!1,O){c.callId=m,c.currentEphemeralKey=d,c.audioElement=u,c.currentLang=g,c.pttMode=x,c.participant=O;const C=_n({name:"end_call",description:"Ends call",strict:!0,parameters:{type:"object",properties:{reason:{type:"string"}},required:["reason"],additionalProperties:!1},execute:(k=yi(function*(ge){const{reason:me}=ge;return console.log("end_call triggered:",{reason:me,callId:c.callId}),c.sendDebugEvent("end_call",{reason:me}),c.measurement.screeningConversationEndedByAi(c.buildEventCtx(me)),c.pendingEndCallReason=me,function Nd(o){return{[gi]:!0,content:o}}("[CALL_ENDED_DO_NOT_RESPOND]")}),function q(ge){return k.apply(this,arguments)})}),H=new mi({audioElement:u}),U=new gu({name:"Alicja",tools:[C],voice:"marin"});var k;c.session=new Md(U,{model:"gpt-realtime",transport:H,config:{inputAudioTranscription:{language:g.slice(0,2),model:"gpt-4o-transcribe"}}}),yield c.session.connect({apiKey:d}),c.measurement.screeningConversationStarted(c.buildEventCtx()),c.pttMode&&c.session.mute(!0),c.startBatching();try{yield c.audioRecorder.startRecording(u)}catch(k){console.error("Failed to start audio recording:",k)}c.session.on("transport_event",k=>{if(c.sendDebugEvent(k.type,k),"session.created"===k.type&&(c.session.transport.sendEvent({type:"session.update",session:{type:"realtime",tracing:"auto",truncation:"disabled",audio:{input:{turn_detection:null},output:{voice:"marin"}}}}),c.session.transport.sendEvent({type:"response.create"}),c.loading.set(!1)),"response.done"===k.type&&"completed"===k.response?.status&&!c.firstGreetingCompleted&&(c.firstGreetingCompleted=!0,console.log("First greeting completed, waiting for audio to stop before enabling VAD/PTT"),c.pendingVadEnable=!0,c.aiTalking()||(c.pendingVadEnable=!1,c.pttMode?c.pttReady.set(!0):c.enableVad())),"output_audio_buffer.started"===k.type&&(c.aiTalking.set(!0),c.callEndedPending&&c.endCallTimeout&&(clearTimeout(c.endCallTimeout),c.endCallTimeout=void 0)),"output_audio_buffer.cleared"===k.type&&c.aiTalking.set(!1),"output_audio_buffer.stopped"===k.type&&(c.aiTalking.set(!1),c.pendingVadEnable&&(c.pendingVadEnable=!1,c.pttMode?c.pttReady.set(!0):c.enableVad()),c.callEndedPending&&c.endCallReason&&c.endCallEphemeralKey&&c.finishCallAfterEndCall()),"conversation.item.added"===k.type){const q=k.item,ge=k.previous_item_id??null;if(q?.id){const me=c.itemOrderMap.get(q.id);if(c.itemOrderMap.has(q.id)&&me!==ge)throw new Error(`itemOrderMap conflict: item ${q.id} already has previousItemId=${me}, but received different value: ${ge}`);c.itemOrderMap.set(q.id,ge)}}if("conversation.item.input_audio_transcription.completed"===k.type&&k.transcript){const q=k.item_id;c.submitTranscription(Dn.HUMAN,k.transcript,d,q,q?c.itemOrderMap.get(q):void 0)}if("response.output_audio_transcript.done"===k.type&&k.transcript){const q=k.item_id;c.submitTranscription(Dn.AGENT,k.transcript,d,q,q?c.itemOrderMap.get(q):void 0)}if("conversation.item.done"===k.type){const q=k.item;"function_call_output"===q?.type&&"[CALL_ENDED_DO_NOT_RESPOND]"===q?.output&&(console.log("call_ended_cleanup",{reason:c.pendingEndCallReason}),c.sendDebugEvent("call_ended_cleanup",{reason:c.pendingEndCallReason}),c.session.transport.sendEvent({type:"session.update",session:{type:"realtime",audio:{input:{turn_detection:null}}}}),c.pttMode&&(c.pttReady.set(!1),c.pttActive()&&(c.session.mute(!0),c.pttActive.set(!1))),c.session.transport.sendEvent({type:"input_audio_buffer.clear"}),c.pendingEndCallReason&&(c.callEndedPending=!0,c.endCallReason=c.pendingEndCallReason,c.endCallEphemeralKey=d,c.pendingEndCallReason=void 0,c.aiTalking()||(c.endCallTimeout=setTimeout(()=>{c.callEndedPending&&(console.log("end_call timeout - forcing goodbye"),c.sendDebugEvent("end_call_timeout",{}),c.forceGoodbye())},c.END_CALL_TIMEOUT_MS))))}})}).apply(this,arguments)}stop(){this.session?.close(),this.session=void 0,this.stopBatching(),this.endCallTimeout&&(clearTimeout(this.endCallTimeout),this.endCallTimeout=void 0),this.callId=void 0,this.currentEphemeralKey=void 0,this.currentLang=void 0,this.participant=void 0,this.audioElement=void 0,this.endConversation.set(!1),this.firstGreetingCompleted=!1,this.pendingVadEnable=!1,this.pendingEndCallReason=void 0,this.callEndedPending=!1,this.endCallReason=void 0,this.endCallEphemeralKey=void 0,this.itemOrderMap.clear(),this.audioRecorder.reset(),this.aiTalking.set(!1),this.pttReady.set(!1),this.pttActive.set(!1),this.pttMode=!1}endCallByUser(){this.callId&&this.currentEphemeralKey?(this.measurement.screeningConversationEndedByUser(this.buildEventCtx()),this.session?.close(),this.session=void 0,this.stopBatching(),this.finishCall("User ended",this.currentEphemeralKey,()=>{this.stop(),this.endConversation.set(!0)})):this.stop()}startTalking(){!this.session||!this.pttReady()||this.pttActive()||(this.aiTalking()&&this.session.interrupt(),this.session.transport.sendEvent({type:"input_audio_buffer.clear"}),this.session.mute(!1),this.pttActive.set(!0))}stopTalking(){!this.session||!this.pttActive()||(this.session.mute(!0),this.pttActive.set(!1),this.session.transport.sendEvent({type:"input_audio_buffer.commit"}),this.session.transport.sendEvent({type:"response.create"}))}enableVad(){console.log("Enabling VAD"),this.session.transport.sendEvent({type:"input_audio_buffer.clear"}),setTimeout(()=>{this.session.transport.sendEvent({type:"session.update",session:{type:"realtime",audio:{input:{turn_detection:{type:"server_vad",threshold:.9,prefix_padding_ms:300,silence_duration_ms:500,create_response:!0}}}}})},100)}forceGoodbye(){const r=this.currentLang,a=this.GOODBYE_MESSAGES[r]??this.GOODBYE_MESSAGES[ot.sb.enGB];console.log("Forcing goodbye message",{lang:r}),this.sendDebugEvent("force_goodbye",{lang:r}),this.session.transport.sendEvent({type:"response.create",response:{instructions:a}}),this.endCallTimeout=setTimeout(()=>{this.callEndedPending&&(console.log("Goodbye timeout - finishing c
1all"),this.sendDebugEvent("goodbye_timeout",{}),this.finishCallAfterEndCall())},this.GOODBYE_TIMEOUT_MS)}finishCallAfterEndCall(){this.endCallTimeout&&(clearTimeout(this.endCallTimeout),this.endCallTimeout=void 0),this.callEndedPending=!1;const r=this.endCallReason,a=this.endCallEphemeralKey;this.endCallReason=void 0,this.endCallEphemeralKey=void 0,r&&a&&this.finishCall(r,a,()=>{this.stop(),this.endConversation.set(!0)})}finishCall(r,a,i){const s=this.callId;this.http.post(`/api/recruitment/screening/v2/calls/${s}/finish`,{reason:r,ephemeralKey:a},{}).subscribe({next:()=>{s?this.audioRecorder.stopAndUpload(s,a).catch(c=>{console.error("Failed to upload audio recording:",c)}).finally(()=>{this.audioRecorder.reset(),i?.()}):i?.()},error:()=>{i?.()}})}buildEventCtx(r){return{callId:this.callId,language:this.currentLang,mode:this.pttMode?"ptt":"vad",reason:r,candidateName:this.participant?.candidateName,companyName:this.participant?.companyName,offerTitle:this.participant?.offerTitle}}submitTranscription(r,a,i,s,c){this.callId&&this.http.put(`/api/recruitment/screening/v2/calls/${this.callId}/answer`,{ephemeralKey:i,speaker:r,answer:a,itemId:s,previousItemId:c}).subscribe()}startBatching(){this.batchInterval&&clearInterval(this.batchInterval),this.batchInterval=setInterval(()=>{this.flushBatch()},this.BATCH_INTERVAL_MS)}stopBatching(){this.batchInterval&&(clearInterval(this.batchInterval),this.batchInterval=void 0),this.flushBatch()}flushBatch(){if(0===this.eventBatch.length||!this.callId||!this.currentEphemeralKey)return;const r=this.eventBatch;this.eventBatch=[],this.http.post(`/api/recruitment/screening/v2/calls/${this.callId}/debug-events`,{events:r,ephemeralKey:this.currentEphemeralKey}).subscribe({error:a=>console.warn("Failed to send debug events batch:",a)})}sendDebugEvent(r,a){let i=a;if("session.created"===r||"session.updated"===r){const s=a;s?.session?.instructions&&(i={...s,session:{...s.session,instructions:"[REDACTED]"}})}this.eventBatch.push({type:r,data:i,timestamp:(new Date).toISOString()})}getCallConfig(r,a){return this.http.get(`/api/recruitment/screening/v2/applications/${r}/brief`,{params:{securityToken:a}})}getCandidateData(r,a){return this.http.get(`/api/recruitment/screening/v2/applications/${r}/brief/data`,{params:{securityToken:a}})}getScreeningCall(r){return this.http.get(`/api/recruitment/screening/v2/calls/${r}`)}getCallsSummary(r){return this.http.get(`/api/recruitment/screening/v2/applications/${r}/calls`)}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275prov=h.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return o(),n})();var Ye=f(49769),en=f(89079),X=f(89417),rt=f(75351),ve=f(68018),at=f(72234),Pd=f(40605),tn=f(88141),At=f(25558),nn=f(99437),Gd=f(7673),jd=f(77048),Ci=f(5964),on=f(34440),Bd=f(15215),Te=f(65157),Ei=f(49894),$d=f(99952),xi=f(19031),Ud=f(24233),ze=f(42822),ht=f(816),Vd=f(76349),Wd=f(91190),Hd=f(59723),e=f(35547);function Zd(o,n){if(1&o&&(e.qex(0),e.j41(1,"header",9)(2,"h2",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",11),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",9),e.nrm(9,"common-star-rate",12),e.nI1(10,"translate"),e.qAN(),e.k0s(),e.bVm()),2&o){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,5,"SCREENING.CONFERENCE.SURVEY.STEP_1_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(7,7,"SCREENING.CONFERENCE.SURVEY.STEP_1_HINT")," "),e.R7$(3),e.Y8G("label",e.bMT(10,9,"SCREENING.CONFERENCE.SURVEY.Q1_LABEL"))("showValueText",!1)("formControlName",t.controls.question1),e.QXe()}}function Yd(o,n){if(1&o&&(e.qex(0),e.j41(1,"header",9)(2,"h2",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",11),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",9),e.nrm(9,"common-star-rate",12),e.nI1(10,"translate"),e.qAN(),e.k0s(),e.j41(11,"div",13),e.nrm(12,"common-star-rate",12),e.nI1(13,"translate"),e.qAN(),e.k0s(),e.nrm(14,"common-textarea",14),e.nI1(15,"translate"),e.bVm()),2&o){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,12,"SCREENING.CONFERENCE.SURVEY.STEP_2_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(7,14,"SCREENING.CONFERENCE.SURVEY.STEP_2_HINT")," "),e.R7$(3),e.Y8G("label",e.bMT(10,16,"SCREENING.CONFERENCE.SURVEY.Q2_LABEL"))("showValueText",!1)("formControlName",t.controls.question2),e.QXe(),e.R7$(3),e.Y8G("label",e.bMT(13,18,"SCREENING.CONFERENCE.SURVEY.Q3_LABEL"))("showValueText",!1)("formControlName",t.controls.question3),e.QXe(),e.R7$(2),e.Y8G("allowClearText",!0)("maxChars",1500)("placeholder",e.bMT(15,20,"SCREENING.CONFERENCE.SURVEY.MESSAGE_PLACEHOLDER"))("control",t.currentQuestion.get(t.controls.message))}}function zd(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){h.eBV(t);const a=e.XpG(2);return h.Njj(a.back())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.SURVEY.BACK_BTN")," "))}function Jd(o,n){if(1&o){const t=e.RV6();e.j41(0,"common-material-modal",3)(1,"form",4,0),e.bIt("ngSubmit",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.next())}),e.DNE(3,Zd,11,11,"ng-container",5)(4,Yd,16,22,"ng-container",5),e.k0s(),e.j41(5,"footer",6),e.DNE(6,zd,3,3,"button",7),e.j41(7,"button",8),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()}if(2&o){const t=e.sdS(2),r=e.XpG();e.Y8G("closeFn",r.closeFn)("config",r.modalSettings),e.R7$(),e.Y8G("formGroup",r.currentQuestion),e.R7$(2),e.Y8G("ngIf",0===r.stepIndex),e.R7$(),e.Y8G("ngIf",1===r.stepIndex),e.R7$(2),e.Y8G("ngIf",r.stepIndex>0),e.R7$(),e.Y8G("disabled",t.invalid),e.R7$(),e.SpI(" ",e.bMT(9,8,r.isLastStep?"SCREENING.CONFERENCE.SURVEY.SUBMIT_BTN":"SCREENING.CONFERENCE.SURVEY.NEXT_BTN")," ")}}function Xd(o,n){if(1&o){const t=e.RV6();e.j41(0,"common-material-modal",16)(1,"div",17)(2,"div",18),e.nrm(3,"inline-icon",19),e.j41(4,"p",20),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"div",21),e.nI1(8,"translate"),e.j41(9,"div",22)(10,"div",23)(11,"button",24),e.bIt("click",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.closeFn())}),e.EFF(12),e.nI1(13,"translate"),e.k0s()()()()()()}if(2&o){const t=e.XpG();e.Y8G("closeFn",t.closeFn),e.R7$(5),e.SpI(" ",e.bMT(6,4,"SCREENING.CONFERENCE.SURVEY.THANK_YOU")," "),e.R7$(2),e.Y8G("innerHTML",e.bMT(8,6,"SCREENING.CONFERENCE.SURVEY.THANK_YOU_MESSAGE"),e.npT),e.R7$(5),e.SpI(" ",e.bMT(13,8,"SCREENING.CONFERENCE.SURVEY.CLOSE_BTN")," ")}}const rn={question1:"ConferenceSurvey_overall",question2:"ConferenceSurvey_naturalness",question3:"ConferenceSurvey_intent",message:"ConferenceSurvey_surprise"};let qd=(()=>{var o;class n extends Wd.A{constructor(){super(...arguments),this.controls=rn,this.ratedCookie=new xi.W6(Ii,this.cookieSv),this.closeFn=()=>{this.dialogRef.close()}}get modalConfig(){return{closeDataCy:"conference survey close"}}saveCookie(){}get cookieName(){return""}get isLastStep(){return this.stepIndex===this.questions.controls.length-1}onFormComplete(){this.sent=!0}getQuestionsControls(){return this.fb.array([this.fb.group({[rn.question1]:this.fb.control(null,[X.k0.required])}),this.fb.group({[rn.question2]:this.fb.control(null,[X.k0.required]),[rn.question3]:this.fb.control(null,[X.k0.required]),[rn.message]:this.fb.control(null,[X.k0.maxLength(1500)])})])}onStepFinish(r){this.ratedCookie.write({rated:!0}),this.injector.get(Hd.Z).screening.conferenceSurvey(r)}static#e=o=()=>(this.\u0275fac=(()=>{let r;return function(i){return(r||(r=e.xGo(n)))(i||n)}})(),this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-survey-modal"]],features:[e.Vt3],decls:2,vars:2,consts:[["ngForm","ngForm"],["class","tw-relative tw-bg-white",3,"closeFn","config",4,"ngIf"],["class","tw-bg-white tw-relative",3,"closeFn",4,"ngIf"],[1,"tw-relative","tw-bg-white",3,"closeFn","config"],["id","conference-survey-form","modalBody","",1,"tw-px-5","tw-pt-0","desktop:tw-pb-7.5","tw-pb-28",3,"ngSubmit","formGroup"],[4,"ngIf"],["modalFooter","",1,"tw-border-t","tw-fixed","tw-bg-white","tw-left-0","tw-bottom-0","tw-w-full","desktop:tw-static","tw-border-t-gray-ddd","tw-p-5","tw-flex","tw-justify-end"],["class","tw-btn tw-btn-secondary-outline tw-btn-lg tw-mr-2","type","button",3,"click",4,"ngIf"],["type","submit","form","conference-survey-form",1,"tw-btn","tw-btn-primary","tw-btn-lg",3,"disabled"],[1,"tw-mb-6"],[1,"tw-font-semibold","tw-text-2xl","tw-mb-2"],[1,"tw-italic","tw-text-gray-60","tw-text-xs","tw-mb-0"],[3,"label","showValueText","formControlName"],[1,"tw-mb-2"],["label","SCREENING.CONFERENCE.SURVEY.MESSAGE_LABEL",3,"allowClearText","maxChars","placeholder","control"],["type","button",1,"tw-btn","tw-btn-secondary-outline","tw-btn-lg","tw-mr-2",3,"click"],[1,"tw-bg-white","tw-relative",3,"closeFn"],["modalBody","",1,"tw-text-center"],[1,"tw-p-5"],["commonIcon","success_circle",1,"tw-mt-2",2,"--width","90px","--height","90px"],[1,"tw-text-teal","!tw-text-[28px]","tw-mt-4","tw-font-bold"],[1,"!tw-text-[14px]",3,"innerHTML"],[1,"tw-flex","tw-flex-col","tw-items-center","!tw-text-[14px]","tw-mt-4"],[1,"desktop:tw-w-[300px]","tw-mx-auto"],["type","button",1,"tw-btn","tw-btn-primary","tw-btn-lg","tw-w-full",3,"click"]],template:function(a,i){1&a&&e.DNE(0,Jd,10,10,"common-material-modal",1)(1,Xd,14,10,"common-material-modal",2),2&a&&(e.Y8G("ngIf",!i.showEndScreen),e.R7$(),e.Y8G("ngIf",i.showEndScreen))},dependencies:[Ye.bT,on.K,X.X1,X.qT,X.BC,X.cb,X.j4,X.JD,ze.W,ht.I,Ud.i,Vd.A,ve.h,ve.D9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   common-textarea[_ngcontent-%COMP%]  .textarea-label{font-size:14px}"]}))}return o(),n})();var bi;function Kd(o,n){1&o&&(e.rj2(0,"p",0),e.EFF(1),e.nI1(2,"translate"),e.eux()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.SURVEY.THANKS_FOR_RATE")," "))}function Qd(o,n){if(1&o){const t=e.RV6();e.rj2(0,"button",2),e.VwU("click",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.openSurvey())}),e.EFF(1),e.nI1(2,"translate"),e.eux()}2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.SURVEY.RATE")," "))}const Ii="CONFERENCE_SURVEY_RATED";let Uo=(class Zo{constructor(){this.rated=new h.bkB,this.dialog=(0,h.WQX)(rt.MatDialog),this.cdr=(0,h.WQX)(Te.gRc),this.cookieSv=(0,h.WQX)($d.O1),this.ratedCookie=new xi.W6(Ii,this.cookieSv),this.finishedSurvey=!!this.ratedCookie.read()}openSurvey(){this.dialog.open(qd,{panelClass:["default-modal","modal
1-lg"],data:{additional:{}}}).afterClosed().pipe((0,tn.M)(()=>{this.finishedSurvey=!!this.ratedCookie.read(),this.finishedSurvey&&this.rated.emit(),this.cdr.detectChanges()}),(0,Ei.s)(this)).subscribe()}static#e=bi=()=>(this.\u0275fac=function(t){return new(t||Zo)},this.\u0275cmp=e.VBU({type:Zo,selectors:[["common-screening-conference-survey-wrapper"]],outputs:{rated:"rated"},decls:2,vars:1,consts:[[1,"tw-text-ink","tw-text-sm","tw-mb-0"],["type","button",1,"tw-btn","tw-text-tastyBlue","tw-text-sm"],["type","button",1,"tw-btn","tw-text-tastyBlue","tw-text-sm",3,"click"]],template:function(t,r){1&t&&e.nVh(0,Kd,3,3,"p",0)(1,Qd,3,3,"button",1),2&t&&e.vxM(r.finishedSurvey?0:1)},dependencies:[Ye.MD,ve.h,ve.D9],styles:["[_nghost-%COMP%]{display:block}"]}),this)},bi());function Si(o,n,t,r,a,i,s){try{var c=o[i](s),u=c.value}catch(d){return void t(d)}c.done?n(u):Promise.resolve(u).then(r,a)}function Ti(o){return function(){var n=this,t=arguments;return new Promise(function(r,a){var i=o.apply(n,t);function s(u){Si(i,r,a,s,c,"next",u)}function c(u){Si(i,r,a,s,c,"throw",u)}s(void 0)})}}Uo=(0,Bd.Cg)([(0,Ei.d)()],Uo);const ep=()=>({hideHeader:!0}),Ni=o=>({"tw-border-b-tastyBlue tw-text-tastyBlue":o}),tp=(o,n)=>({"tw-flex tw-justify-start":o,"tw-flex tw-justify-end":n}),np=(o,n)=>({"tw-bg-tastyBlue-10 tw-text-tastyBlue":o,"tw-bg-teal-10 tw-text-teal":n});function op(o,n){1&o&&(e.j41(0,"aside",4),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.AI_RECORDING_NOTICE")," "))}function rp(o,n){if(1&o&&(e.j41(0,"div",5)(1,"p",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",13)(5,"audio",14),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"a",15),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()),2&o){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,6,"SCREENING.AUDIO_RECORDING")," "),e.R7$(3),e.Y8G("src",t.audioUrl()),e.R7$(),e.SpI(" ",e.bMT(7,8,"SCREENING.AUDIO_NOT_SUPPORTED")," "),e.R7$(2),e.Y8G("href",t.audioUrl(),e.B4B)("download","rozmowa-"+t.callData()?.id+".wav"),e.R7$(),e.SpI(" ",e.bMT(10,10,"SCREENING.DOWNLOAD_AUDIO")," ")}}function ap(o,n){1&o&&e.nrm(0,"ngx-skeleton-loader",9)}function ip(o,n){if(1&o&&(e.j41(0,"header",18)(1,"p",20),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.k0s()()),2&o){const t=e.XpG(3);e.R7$(2),e.SpI(" ",e.bMT(3,2,"SCREENING.SUMMARY")," "),e.R7$(3),e.SpI(" ",t.callData()?.summary?.conversationSummary," ")}}function sp(o,n){if(1&o&&(e.j41(0,"li",24)(1,"p",25),e.EFF(2),e.k0s(),e.j41(3,"p",26),e.EFF(4),e.k0s()()),2&o){const t=n.$implicit;e.R7$(2),e.SpI(" ",t?.question," "),e.R7$(2),e.SpI(" ",t?.answer," ")}}function cp(o,n){if(1&o&&(e.j41(0,"div",19)(1,"p",20),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ul",22),e.DNE(5,sp,5,2,"li",23),e.k0s()()),2&o){const t=e.XpG(3);e.R7$(2),e.SpI(" ",e.bMT(3,2,"SCREENING.ADDITIONAL_QUESTIONS")," "),e.R7$(3),e.Y8G("ngForOf",t.callData()?.summary?.questions)}}function lp(o,n){if(1&o&&(e.j41(0,"article")(1,"div",17),e.nVh(2,ip,6,4,"header",18),e.nVh(3,cp,6,4,"div",19),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.vxM(t.callData()?.summary?.conversationSummary?2:-1),e.R7$(),e.vxM(t.callData()?.summary?.questions?3:-1)}}function up(o,n){if(1&o&&(e.j41(0,"div",28)(1,"div",29)(2,"p",30),e.EFF(3),e.k0s(),e.j41(4,"p",31),e.EFF(5),e.k0s()()()),2&o){const t=e.XpG().$implicit,r=e.XpG(3);e.Y8G("ngClass",e.l_i(4,tp,t.speaker===r.SPEAKER.AGENT,t.speaker===r.SPEAKER.HUMAN)),e.R7$(),e.Y8G("ngClass",e.l_i(7,np,t.speaker===r.SPEAKER.AGENT,t.speaker===r.SPEAKER.HUMAN)),e.R7$(2),e.SpI(" ",t.speaker," "),e.R7$(2),e.SpI(" ",t.text," ")}}function dp(o,n){if(1&o&&(e.j41(0,"div"),e.nVh(1,up,6,10,"div",28),e.k0s()),2&o){const t=n.$implicit;e.R7$(),e.vxM(t.text?1:-1)}}function pp(o,n){if(1&o&&(e.j41(0,"article",16),e.DNE(1,dp,2,1,"div",27),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.callData()?.conversation)}}function mp(o,n){if(1&o&&e.nVh(0,lp,4,2,"article")(1,pp,2,1,"article",16),2&o){const t=e.XpG();e.vxM(t.activeTab()===t.TABS.DETAILS?0:t.activeTab()===t.TABS.TRANSCRIPT?1:-1)}}function fp(o,n){1&o&&e.nrm(0,"common-screening-conference-survey-wrapper")}const Ri={TRANSCRIPT:"TRANSCRIPT",DETAILS:"DETAILS"};let hp=(()=>{var o;class n{constructor(r,a){this.modalRef=r,this.data=a,this.TABS=Ri,this.http=(0,h.WQX)(j.Qq),this.destroyRef=(0,h.WQX)(h.abz),this.screeningConfigSv=(0,h.WQX)($o),this.translate=(0,h.WQX)(ve.c$),this.loading=(0,h.vPA)(!0),this.activeTab=(0,h.vPA)(Ri.DETAILS),this.callData=(0,h.vPA)(null),this.audioUrl=(0,h.vPA)(null),this.SPEAKER=Dn}ngOnInit(){this.loading.set(!0),this.data.callData&&(this.callData.set(this.data.callData),this.loading.set(!1),this.loadAudioIfAvailable(this.data.callData)),this.data.callId&&(this.interval$=(0,Pd.Y)(4e3).pipe((0,tn.M)(()=>this.loading.set(!0)),(0,At.n)(()=>this.screeningConfigSv.getScreeningCall(this.data.callId).pipe((0,nn.W)(()=>(0,Gd.of)(null)))),(0,jd.v)(r=>!r?.summary,!0),(0,Ci.p)(r=>null!==r),(0,tn.M)(r=>{r.summary&&(this.callData.set(r),this.loading.set(!1),this.loadAudioIfAvailable(r))})).subscribe())}ngOnDestroy(){this.interval$&&this.interval$.unsubscribe(),this.audioUrl()&&URL.revokeObjectURL(this.audioUrl())}loadAudioIfAvailable(r){var s,a=this;r.hasAudio&&!this.audioUrl()&&this.http.get(`/api/recruitment/screening/v2/calls/${r.id||this.data.callId}/audio`,{responseType:"blob"}).pipe((0,en.pQ)(this.destroyRef)).subscribe({next:(s=Ti(function*(u){try{const d=yield a.convertToWav(u);a.audioUrl.set(URL.createObjectURL(d))}catch(d){console.error("Failed to convert audio to WAV, using original:",d),a.audioUrl.set(URL.createObjectURL(u))}}),function c(u){return s.apply(this,arguments)}),error:s=>{console.error("Failed to load audio:",s)}})}convertToWav(r){var a=this;return Ti(function*(){const i=new AudioContext,s=yield r.arrayBuffer(),c=yield i.decodeAudioData(s),u=a.audioBufferToWav(c);return yield i.close(),new Blob([u],{type:"audio/wav"})})()}audioBufferToWav(r){const a=r.numberOfChannels,i=r.sampleRate,d=2*a,m=r.length*d,x=44+m,O=new ArrayBuffer(x),C=new DataView(O);this.writeString(C,0,"RIFF"),C.setUint32(4,x-8,!0),this.writeString(C,8,"WAVE"),this.writeString(C,12,"fmt "),C.setUint32(16,16,!0),C.setUint16(20,1,!0),C.setUint16(22,a,!0),C.setUint32(24,i,!0),C.setUint32(28,i*d,!0),C.setUint16(32,d,!0),C.setUint16(34,16,!0),this.writeString(C,36,"data"),C.setUint32(40,m,!0);const H=[];for(let k=0;k<a;k++)H.push(r.getChannelData(k));let U=44;for(let k=0;k<r.length;k++)for(let q=0;q<a;q++){const ge=Math.max(-1,Math.min(1,H[q][k]));C.setInt16(U,ge<0?32768*ge:32767*ge,!0),U+=2}return O}writeString(r,a,i){for(let s=0;s<i.length;
1s++)r.setUint8(a+s,i.charCodeAt(s))}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)(e.rXU(rt.MatDialogRef),e.rXU(rt.MAT_DIALOG_DATA))},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-result-modal"]],decls:23,vars:24,consts:[[1,"tw-relative",3,"config"],["modalBody",""],[1,"tw-px-4","tw-flex","tw-justify-between","tw-items-center","tw-py-3","tw-border-b","tw-border-gray-ddd"],[1,"tw-mb-0","tw-text-xl","tw-text-ink","tw-font-bold"],["role","note",1,"tw-text-xs","tw-mx-4","tw-mt-3","tw-leading-5","tw-text-gray-60","tw-bg-tastyBlue-5","tw-border","tw-border-tastyBlue/20","tw-rounded-md","tw-p-3"],[1,"tw-px-4","tw-py-3","tw-border-b","tw-border-gray-ddd","tw-bg-gray-f9f9f9"],[1,"tw-bg-gray-f9f9f9","tw-px-4","tw-py-3"],[1,"tw-flex","tw-gap-2","tw-mb-4"],[1,"tw-px-3","tw-py-2","tw-text-sm","tw-cursor-pointer","tw-font-medium","tw-border-b-2","tw-border-transparent",3,"click","ngClass"],["count","8","appearance","line",1,"tw-w-full"],[1,"tw-p-4","tw-flex","tw-gap-x-3","tw-items-center","tw-justify-between","tw-bg-white","tw-sticky","tw-bottom-0","tw-left-0","tw-z-10","tw-border-t","tw-border-gray-ddd"],["type","button",1,"tw-btn","tw-btn-secondary-outline","tw-btn-sm",3,"click"],[1,"tw-text-ink","tw-font-bold","tw-text-sm","tw-mb-2"],[1,"tw-flex","tw-items-center","tw-gap-3"],["controls","",1,"tw-flex-1","tw-h-10",3,"src"],[1,"tw-btn","tw-btn-secondary-outline","tw-btn-sm","tw-whitespace-nowrap",3,"href","download"],[1,"tw-space-y-4","tw-rounded-md"],[1,"tw-flex","tw-flex-col","tw-w-full"],[1,"tw-mb-4","tw-py-4","tw-border-b","tw-border-b-gray-ddd"],[1,""],[1,"tw-text-ink","tw-font-bold","tw-text-sm","tw-mb-1"],[1,"tw-text-sm","tw-text-ink"],[1,"tw-list-decimal","tw-ml-6"],["class","tw-my-2",4,"ngFor","ngForOf"],[1,"tw-my-2"],[1,"tw-text-sm","tw-text-gray-60","tw-font-bold","tw-mb-1"],[1,"tw-text-sm","tw-ml-4","tw-text-gray-60"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"tw-max-w-md","tw-px-4","tw-py-2","tw-rounded-lg","tw-shadow-sm",3,"ngClass"],[1,"tw-text-sm","tw-font-semibold","tw-mb-1"],[1,"tw-text-sm","tw-mb-0"]],template:function(a,i){1&a&&(e.j41(0,"common-material-modal",0)(1,"div",1)(2,"header",2)(3,"h2",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.nVh(6,op,3,3,"aside",4),e.nVh(7,rp,11,12,"div",5),e.j41(8,"div",6)(9,"div",7)(10,"button",8),e.bIt("click",function(){return i.activeTab.set(i.TABS.DETAILS)}),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"button",8),e.bIt("click",function(){return i.activeTab.set(i.TABS.TRANSCRIPT)}),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nVh(16,ap,1,0,"ngx-skeleton-loader",9)(17,mp,2,1),e.k0s(),e.j41(18,"footer",10),e.nVh(19,fp,1,0,"common-screening-conference-survey-wrapper"),e.j41(20,"button",11),e.bIt("click",function(){return i.modalRef.close()}),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()),2&a&&(e.Y8G("config",e.lJ4(19,ep)),e.R7$(4),e.SpI(" ",e.bMT(5,11,"SCREENING.SUMMARY"),": "),e.R7$(2),e.vxM(i.data.showRecordingNotice?6:-1),e.R7$(),e.vxM(i.audioUrl()?7:-1),e.R7$(3),e.Y8G("ngClass",e.eq3(20,Ni,i.activeTab()===i.TABS.DETAILS)),e.R7$(),e.SpI(" ",e.bMT(12,13,"SCREENING.TAB_DETAILS")," "),e.R7$(2),e.Y8G("ngClass",e.eq3(22,Ni,i.activeTab()===i.TABS.TRANSCRIPT)),e.R7$(),e.SpI(" ",e.bMT(15,15,"SCREENING.TAB_TRANSCRIPT")," "),e.R7$(2),e.vxM(i.loading()?16:17),e.R7$(3),e.vxM(i.data.showSurvey?19:-1),e.R7$(2),e.SpI(" ",e.bMT(22,17,"GLOBAL.CLOSE")," "))},dependencies:[on.K,X.YN,at.Yq,at.Zm,Ye.Sq,Ye.YU,Uo,ve.D9],encapsulation:2}))}return o(),n})();f(8083),f(94620);var gt=f(9300),he=f(17723),_t=f(28776);let wp=(()=>{var o;class n{constructor(){this.isSpeaking=(0,Te.hFB)(!1)}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conversation-equalizer"]],inputs:{isSpeaking:[1,"isSpeaking"]},decls:11,vars:2,consts:[["id","bars"],[1,"bar"]],template:function(a,i){1&a&&(e.rj2(0,"div",0),e.Hgh(1,"div",1)(2,"div",1)(3,"div",1)(4,"div",1)(5,"div",1)(6,"div",1)(7,"div",1)(8,"div",1)(9,"div",1)(10,"div",1),e.eux()),2&a&&e.AVh("speaking",i.isSpeaking())},styles:["[_nghost-%COMP%]   #bars[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%]   #bars[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{background:#1271ed;height:3px;width:6px;margin:0 4px;border-radius:5px;animation:_ngcontent-%COMP%_sound 0ms linear infinite alternate;animation-play-state:paused}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{animation-play-state:running}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(1){animation-duration:474ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(2){animation-duration:433ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(3){animation-duration:407ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(4){animation-duration:458ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(5){animation-duration:.4s}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(6){animation-duration:427ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(7){animation-duration:441ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(8){animation-duration:419ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(9){animation-duration:487ms}[_nghost-%COMP%]   #bars.speaking[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]:nth-child(10){animation-duration:442ms}@keyframes _ngcontent-%COMP%_sound{0%{opacity:.35;height:3px}to{opacity:1;height:70px}}"]}))}return o(),n})();const vp=["player"],yp=()=>({hideHeader:!0,disableClose:!0});function Cp(o,n){1&o&&e.nrm(0,"ngx-skeleton-loader",3)}function Ep(o,n){if(1&o&&(e.j41(0,"h2",8),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"common-screening-conversation-equalizer",9)),2&o){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,2,"SCREENING.AI_NAME")," "),e.R7$(2),e.Y8G("isSpeaking",t.screeningConversationSv.aiTalking())}}function xp(o,n){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.SpI(" ",e.bMT(1,1,"SCREENING.RELEASE_TO_SEND")," ")}function bp(o,n){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.SpI(" ",e.bMT(1,1,"SCREENING.HOLD_TO_TALK")," ")}function Ip(o,n){if(1&o){const t=e.RV6();e.j41(0,"button",10),e.bIt("pointerdown",function(a){h.eBV(t);const i=e.XpG();return h.Njj(i.onPttPress(a))})("pointerup",function(a){h.eBV(t);const i=e.XpG();return h.Njj(i.onPttRelease(a))})("pointercancel",function(a){h.eBV(t);const i=e.XpG();return h.Njj(i.onPttRelease(a))})("pointerleave",function(a){h.eBV(t);const i=e.XpG();return h.Njj(i.onPttRelease(a))}),e.nrm(1,"inline-icon",11),e.nVh(2,xp,2,3)(3,bp,2,3),e.k0s()}if(2&o){const t=e.XpG();e.AVh("tw-btn-primary",t.screeningConversationSv.pttActive())("tw-btn-secondary-outline",!t.screeningConversationSv.pttActive()),e.Y8G("disabled",!t.screeningConversationSv.pttReady()),e.R7$(2),e.vxM(t.screeningConversationSv.pttActive()?2:3)}}let Ai=(()=>{var o;class n{constructor(r,a){this.modalRef=r,this.data=a,this.loading=(0,h.vPA)(!1),this.screeningConversationSv
1=(0,h.WQX)($o),(0,gt.r)([he.mdIconsMicOutline]),(0,h.QZP)(()=>{this.screeningConversationSv.endConversation()&&this.closeConversationAndModal(!0)})}onPttPress(r){r.preventDefault(),this.screeningConversationSv.startTalking()}onPttRelease(r){r.preventDefault(),this.screeningConversationSv.stopTalking()}onKeyDown(r){!this.data.ptt||"Space"!==r.code||r.repeat||this.isTypingTarget(r.target)||(r.preventDefault(),this.screeningConversationSv.startTalking())}onKeyUp(r){!this.data.ptt||"Space"!==r.code||this.isTypingTarget(r.target)||(r.preventDefault(),this.screeningConversationSv.stopTalking())}isTypingTarget(r){if(!(r instanceof HTMLElement))return!1;const a=r.tagName;return"INPUT"===a||"TEXTAREA"===a||"SELECT"===a||r.isContentEditable}ngAfterViewInit(){this.startConversation()}ngOnDestroy(){this.screeningConversationSv.stop()}closeConversationAndModal(r){r?(this.modalRef.close(r),this.screeningConversationSv.stop()):this.screeningConversationSv.endCallByUser()}startConversation(){this.loading.set(!0),this.screeningConversationSv.start(this.player.nativeElement,this.data.ephemeralKey,this.data.callId,this.data.lang,this.data.ptt??!1,this.data.participant).finally(()=>this.loading.set(!1))}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)(e.rXU(rt.MatDialogRef),e.rXU(rt.MAT_DIALOG_DATA))},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conversation-modal"]],viewQuery:function(a,i){if(1&a&&e.GBs(vp,5),2&a){let s;e.mGM(s=e.lsd())&&(i.player=s.first)}},hostBindings:function(a,i){1&a&&e.bIt("keydown",function(c){return i.onKeyDown(c)},e.EBC)("keyup",function(c){return i.onKeyUp(c)},e.EBC)},decls:11,vars:7,consts:[["player",""],[1,"tw-relative",3,"closeDialog","config"],["modalBody","",1,"tw-pt-10","tw-pb-5","tw-px-4","tw-min-w-[350px]","desktop:tw-min-w-[500px]"],["count","5"],["modalFooter","",1,"tw-p-4","tw-flex","tw-flex-col","tw-gap-3","tw-border-t","tw-border-gray-eee"],["type","button",1,"tw-btn","tw-w-full","tw-btn-sm","tw-flex","tw-items-center","tw-justify-center","tw-gap-2",3,"tw-btn-primary","tw-btn-secondary-outline","disabled"],["type","button",1,"tw-btn","tw-w-full","tw-btn-sm","tw-btn-error",3,"click"],["autoplay",""],[1,"tw-text-tastyBlue","tw-text-center","tw-text-xl","tw-mb-4","tw-font-bold"],[1,"tw-min-h-[100px]","tw-w-full","tw-flex","tw-justify-center","tw-items-center",3,"isSpeaking"],["type","button",1,"tw-btn","tw-w-full","tw-btn-sm","tw-flex","tw-items-center","tw-justify-center","tw-gap-2",3,"pointerdown","pointerup","pointercancel","pointerleave","disabled"],["matIcon","mic_outline",2,"--width","16px","--height","16px"]],template:function(a,i){1&a&&(e.j41(0,"common-material-modal",1),e.bIt("closeDialog",function(){return i.closeConversationAndModal()}),e.j41(1,"div",2),e.nVh(2,Cp,1,0,"ngx-skeleton-loader",3)(3,Ep,4,4),e.k0s(),e.j41(4,"footer",4),e.nVh(5,Ip,4,6,"button",5),e.j41(6,"button",6),e.bIt("click",function(){return i.closeConversationAndModal()}),e.EFF(7),e.nI1(8,"translate"),e.k0s()()(),e.nrm(9,"audio",7,0)),2&a&&(e.Y8G("config",e.lJ4(6,yp)),e.R7$(2),e.vxM(i.loading()?2:3),e.R7$(3),e.vxM(i.data.ptt?5:-1),e.R7$(2),e.SpI(" ",e.bMT(8,4,"SCREENING.END_CALL")," "))},dependencies:[on.K,wp,at.Yq,at.Zm,ze.W,_t.w,ve.D9],encapsulation:2}))}return o(),n})();var Vo=f(59882),Xp=f(84572),an=f(983),qp=f(18810),Oi=f(20149),Ot=f(58588);const Kp={name:"call_cancel",data:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 64 64"><rect width="64" height="64" rx="12" fill="#f8d7da"/><path d="M20 16h8l4 8-6 6c2 4.5 5.5 8.5 10 10l6-6 8 4v8c0 1.1-.9 2-2 2-18.1 0-32-13.9-32-30 0-1.1.9-2 2-2z" fill="#721c24"/><circle cx="48" cy="16" r="10" fill="#f5c6cb" stroke="#721c24" stroke-width="2"/><path stroke="#721c24" stroke-width="3" d="m42 10 12 12M54 10 42 22"/></svg>'};var Wo=f(54011),ki=f(47007);const Qp=o=>({date:o}),em=(o,n)=>({title:o,company:n}),tm=o=>({number:o});function nm(o,n){1&o&&e.nrm(0,"ngx-skeleton-loader",3)}function om(o,n){if(1&o&&(e.j41(0,"div",4)(1,"span",6),e.nrm(2,"inline-icon",7),e.k0s(),e.j41(3,"p",8),e.EFF(4),e.nI1(5,"date"),e.nI1(6,"translate"),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.SpI(" ",e.i5U(6,4,"SCREENING.DEADLINE_PASSED",e.eq3(7,Qp,e.i5U(5,1,t.candidateData()?.deadline,"dd.MM.yyyy")))," ")}}function rm(o,n){1&o&&(e.j41(0,"div",4),e.nrm(1,"inline-icon",9),e.j41(2,"p",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"p",11),e.nI1(6,"translate"),e.k0s()),2&o&&(e.R7$(3),e.SpI(" ",e.bMT(4,2,"SCREENING.MAX_CALLS_INFO")," "),e.R7$(2),e.Y8G("innerHTML",e.bMT(6,4,"SCREENING.SUPPORT_ERROR"),e.npT))}function am(o,n){if(1&o&&(e.j41(0,"p",17),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"date"),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Lme(" ",e.bMT(2,2,"SCREENING.CANDIDATE_DEADLINE_INFO")," ",e.i5U(3,4,t.candidateData().deadline,"dd.MM.yyyy")," ")}}function im(o,n){if(1&o&&e.nrm(0,"common-field-errors",25),2&o){const t=e.XpG(3);e.Y8G("showIcon",!1)("errors",t.form.controls.agree.errors)}}function sm(o,n){if(1&o&&(e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"p",15),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"strong",16),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nVh(10,am,4,7,"p",17),e.nrm(11,"div",18),e.nI1(12,"translate"),e.j41(13,"div",19),e.nrm(14,"nfj-checkbox",20),e.qAN(),e.j41(15,"common-blurred-text")(16,"p",21),e.EFF(17),e.nI1(18,"translate"),e.j41(19,"span",22),e.EFF(20,"*"),e.k0s()()()(),e.DNE(21,im,1,2,"common-field-errors",23),e.j41(22,"button",24),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.nrm(25,"p",11),e.nI1(26,"translate"),e.k0s()),2&o){e.XpG();const t=e.sdS(1),r=e.XpG();e.R7$(),e.Lme(" ",e.bMT(2,10,"SCREENING.HELLO")," ",r.candidateData()?.candidateName,", "),e.R7$(4),e.SpI(" ",e.bMT(6,12,"SCREENING.APPLIED_FOR")," "),e.R7$(3),e.SpI(" ",e.i5U(9,14,"SCREENING.JOB_OFFER_IN_COMPANY",e.l_i(25,em,r.candidateData()?.offerTitle||"",r.candidateData()?.companyName||""))," "),e.R7$(2),e.vxM(r.candidateData()?.deadline&&!r.candidateData()?.deadlinePassed?10:-1),e.R7$(),e.Y8G("innerHTML",e.bMT(12,17,"SCREENING.ASSIST_AI_INFO"),e.npT),e.R7$(3),e.QXe(),e.R7$(3),e.SpI(" ",e.bMT(18,19,"SCREENING.CONVERSATION_AGREE")," "),e.R7$(4),e.Y8G("ngIf",t.submitted),e.R7$(2),e.SpI(" ",e.bMT(24,21,"SCREENING.BEGIN_CALL")," "),e.R7$(2),e.Y8G("innerHTML",e.bMT(26,23,"SCREENING.SUPPORT_INFO"),e.npT)}}function cm(o,n){if(1&o){const t=e.RV6();e.j41(0,"h2",26),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14),e.nrm(4,"div",27),e.nI1(5,"translate"),e.j41(6,"div",28)(7,"button",29),e.bIt("click",function(){h.eBV(t);const a=e.XpG(2);return h.Njj(a.conversationFailure())}),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"button",30),e.bIt("click",function(){h.eBV(t);const a=e.XpG(2);return h.Njj(a.conversationSuccess())}),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.nrm(13,"p",31),e.nI1(14,"translate"),e.k0s()}2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,5,"SCREENING.THANKS_FOR_CONVERSATION")," "),e.R7$(3),e.Y8G("innerHTML",e.bMT(5,7,"SCREENING.CONVERSATION_GOOD_OR_BAD"),e.npT),e.R7$(4),e.SpI(" ",e.bMT(9,9,"SCREENING.NO_ERROR_HANDLE")," "),e.R7$(3),e.SpI(" ",e.bMT(12,11,"GLOBAL.YES")," "),e.R7$(2),e.Y8G("innerHTML",e.bMT(14,13,"SCREENING.SUPPORT_ERROR"),e.npT))}function lm(o,n){1&o&&(e.j41(0,"h2",26),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14),e.nrm(4,"div",32),e.nI1(5,"translate"),e.nrm(6,"p",31),e.nI1(7,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,3,"SCREENING.THANKS_FOR_CONVERSATION")," "),e.R7$(3),e.Y8G("innerHTML",e.bMT(5,5,"SCREENING.CONVERSATION_SAVED_AND_SEND_RECRUITER"),e.npT),e.R7$(2),e.Y8G("innerHTML",e.bMT(7,7,"SCREENING.SUPPORT_ERROR"),e.npT))}function um(o,n){if(1&o&&(e.j41(0,"h2",26),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14),e.nrm(4,"div",27),e.nI1(5,"translate"),e.j41(6,"button",24),e.EFF(7),e.nI1(8,"translate"),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"p",31),e.nI1(11,"translate"),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,5,"SCREENING.THANKS_FOR_CONVERSATION")," "),e.R7$(3),e.Y8G("innerHTML",e.bMT(5,7,"SCREENING.SCREENING_CONVERSATION_PROBLEM_INFO"),e.npT),e.R7$(3),e.Lme(" ",e.bMT(8,9,"SCREENING.REPEAT_CALL")," (",e.i5U(9,11,"SCREENING.ATTEMPTS_LEFT",e.eq3(16,tm,t.maxCalls-t.callsCount())),") "),e.R7$(3),e.Y8G("innerHTML",e.bMT(11,14,"SCREENING.SUPPORT_ERROR"),e.npT)}}function dm(o,n){if(1&o){const t=e.RV6();e.j41(0,"form",12,0),e.bIt("ngSubmit",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.openConversation())}),e.nVh(2,sm,27,28),e.nVh(3,cm,15,15),e.nVh(4,lm,8,9),e.nVh(5,um,12,18),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("formGroup",t.form),e.R7$(2),e.vxM(t.step()===t.SCREENING_STEPS.BEGIN?2:-1),e.R7$(),e.vxM(t.step()===t.SCREENING_STEPS.ASK?3:-1),e.R7$(),e.vxM(t.step()===t.SCREENING_STEPS.SUCCESS?4:-1),e.R7$(),e.vxM(t.step()===t.SCREENING_STEPS.REPEAT?5:-1)}}var it=function(o){return o.BEGIN="BEGIN",o.ASK="ASK",o.REPEAT="REPEAT",o.SUCCESS="SUCCESS",o.DEADLINE_PASSED="DEADLINE_PASSED",o}(it||{});let pm=(()=>{var o;class n{constructor(){this.fb=(0,h.WQX)(X.ok),this.screeningConfigSv=(0,h.WQX)($o),this.dialog=(0,h.WQX)(rt.MatDialog),this.route=(0,h.WQX)(Vo.nX),this.maxCalls=3,this.form=this.fb.group({agree:this.fb.control(!1,X.k0.requiredTrue)}),this.step=(0,h.vPA)(it.BEGIN),this.candidateData=(0,h.vPA)(null),this.loading=(0,h.vPA)(!1),this.callsCount=(0,h.vPA)(0),this.applicationId=(0,h.vPA)(""),this.securityToken=(0,h.vPA)(""),this.SCREENING_STEPS=it,(0,gt.r)([he.mdIconsEventBusy]),(0,Ot.N)([Kp])}ngOnInit(){this.loading.set(!0),(0,Xp.z)([this.route.paramMap,this.route.queryParamMap]).pipe((0,At.n)(([r,a])=>{const i=r.get("applicationId"),s=a.get("securityToken");return this.applicationId.set(i),this.securityToken.set(s),i&&s?this.screeningConfigSv.getCandidateData(i,s):(this.loading.set(!1),an.w)})).subscribe(r=>{r&&(this.candidateData.set(r),r.deadlinePassed&&this.step.set(it.DEADLINE_PASSED)),this.loading.set(!1)})}conversationFailure(){this.step.set(it.REPEAT)}conversationSuccess(){this.step.set(it.SUCCESS)}openConversation(){if(!this.form.valid)return;const r=this.candidateData();this.screeningConfigSv.getCallConfig(this.applicationId(),this.securityToken()).pipe((0,nn.W)(a=>410===a.status?(this.step.set(it.DEADLINE_PASSED),an.w):(this.callsCount.set(3),(0,qp.$)(()=>a))),(0,At.n)(a=>this.dialog.open(Ai,{panelClass:["default-modal"],disableClose:!0,data:{callId:a?.callId,ephemeralKey:a?.ephemeralKey,lang:r?.language,participant:r??void 0}}).afterClosed()),(0,tn.M)(()=>{this.step.set(it.ASK),this.callsCount.update(a=>a+1)})).subscribe()}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-dashboard"]],decls:6,vars:1,consts:[["ngForm","ngForm"],[1,"tw-container","tw-mx-auto","tw-px-5","tw-py-10"],[1,"tw-flex","tw-items-center","tw-flex-col","tw-mx-auto","tw-w-full","desktop:tw-w-[600px]"],["count","5",1,"tw-block","tw-w-full"],[1,"tw-flex","tw-flex-col","tw-items-center"],[3,"formGroup"],[1,"tw-flex","tw-items-center","tw-justify-center","tw-w-16","tw-h-16","tw-rounded-xl","tw-bg-red-100"],["matIcon","event_busy",1,"tw-text-ink",2,"--width","46px","--height","46px"],[1,"tw-text-base","tw-font-bold","tw-text-ink","tw-text-center","tw-mt-4","tw-mb-0"],["commonIcon","call_cancel",2,"width","64px","height","64px"],[1,"block","tw-text-base","tw-font-bold","tw-text-ink","tw-text-center","tw-mt-4","tw-mb-0"],[1,"tw-text-sm","tw-text-gray-30","tw-text-center","tw-mt-4","tw-mb-0",3,"innerHTML"],[3,"ngSubmit","formGroup"],[1,"tw-text-3xl","tw-font-bold","tw-text-center","tw-mb-0"],[1,"tw-my-4","tw-flex","tw-flex-col"],[1,"block","tw-text-sm","tw-text-ink","tw-text-center","tw-mb-2"],[1,"block","tw-text-base","tw-font-bold","tw-rounded-lg","tw-text-ink","tw-text-center","tw-mb-0","tw-px-5","tw-py-3","tw-border","t
1w-border-gray-eee"],[1,"tw-text-sm","tw-text-gray-60","tw-text-center","tw-mt-2","tw-mb-0"],[1,"tw-block","tw-text-sm","tw-leading-6","tw-font-medium","tw-text-ink","tw-my-6",3,"innerHTML"],[1,"tw-flex","tw-items-start"],["formControlName","agree"],[1,"tw-text-sm","tw-text-gray-60"],[1,"tw-text-red"],[3,"showIcon","errors",4,"ngIf"],["type","submit",1,"tw-btn","tw-w-full","tw-btn-lg","tw-btn-primary","tw-mx-auto","tw-mt-6"],[3,"showIcon","errors"],[1,"tw-text-3xl","tw-font-bold","tw-text-center"],[1,"tw-block","tw-text-lg","tw-text-center","tw-font-medium","tw-text-ink","tw-mb-6",3,"innerHTML"],[1,"tw-grid","tw-grid-cols-2","tw-gap-4"],[1,"tw-btn","tw-btn-sm","tw-btn-secondary-outline",3,"click"],[1,"tw-btn","tw-btn-sm","tw-btn-primary",3,"click"],[1,"tw-text-sm","tw-text-gray-30","tw-text-center","tw-mt-6","tw-mb-0",3,"innerHTML"],[1,"tw-block","tw-text-lg","tw-text-center","tw-font-medium","tw-text-ink",3,"innerHTML"]],template:function(a,i){1&a&&(e.j41(0,"section",1)(1,"header",2),e.nVh(2,nm,1,0,"ngx-skeleton-loader",3)(3,om,7,9,"div",4)(4,rm,7,6,"div",4)(5,dm,6,5,"form",5),e.k0s()()),2&a&&(e.R7$(2),e.vxM(i.loading()?2:i.step()===i.SCREENING_STEPS.DEADLINE_PASSED?3:i.callsCount()===i.maxCalls?4:5))},dependencies:[at.Yq,at.Zm,Oi.P,Wo.$,X.X1,X.qT,X.BC,X.cb,X.j4,X.JD,ki.D,Ye.bT,ze.W,_t.w,ht.I,ve.D9,Ye.vh],encapsulation:2}))}return o(),n})(),Mi=(()=>{var o;class n{static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-auth-disclaimer"]],decls:9,vars:10,consts:[[3,"heightLimit"],[1,"tw-m-0","tw-text-xs","tw-leading-4","tw-text-gray-60"],["href","https://nofluffjobs.com/static/No_Fluff_Jobs_Privacy_Policy.pdf?nocache","target","_blank",1,"tw-text-tastyBlue","hover:tw-no-underline"]],template:function(a,i){1&a&&(e.j41(0,"common-blurred-text",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"a",2),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.EFF(7),e.nI1(8,"translate"),e.k0s()()),2&a&&(e.Y8G("heightLimit",50),e.R7$(2),e.SpI(" ",e.bMT(3,4,"COMMON_AUTH.AGREEMENTS.AGREEMENTS_CONTENT_FIRST")," "),e.R7$(3),e.SpI(" ",e.bMT(6,6,"COMMON_AUTH.AGREEMENTS.AGREEMENTS_PRIVACY_POLICY")," "),e.R7$(2),e.SpI(" ",e.bMT(8,8,"COMMON_AUTH.AGREEMENTS.AGREEMENTS_CONTENT_SECOND")," "))},dependencies:[ve.h,Wo.$,ve.D9],encapsulation:2}))}return o(),n})();var Fn=f(35507);let Di=(()=>{var o;class n{static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-wave-animation"]],decls:7,vars:0,consts:[["viewBox","0 0 1600 760","preserveAspectRatio","xMidYMid slice","aria-hidden","true"],["d","M0 390 Q200 380 400 385 T800 390 T1200 385 T1600 390"],["d","M0 385 Q200 370 400 375 T800 350 T1200 375 T1600 385"],["d","M0 380 Q160 340 360 350 T720 280 T1080 350 T1440 340 T1600 380"],["d","M0 380 Q160 420 360 410 T720 480 T1080 410 T1440 420 T1600 380"],["d","M0 375 Q200 390 400 385 T800 410 T1200 385 T1600 375"],["d","M0 370 Q200 380 400 375 T800 370 T1200 375 T1600 370"]],template:function(a,i){1&a&&(h.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6),e.eux())},styles:["[_nghost-%COMP%]{display:block;position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}svg[_ngcontent-%COMP%]{width:100%;height:100%;display:block}path[_ngcontent-%COMP%]{fill:none;stroke:currentColor;stroke-linecap:round;vector-effect:non-scaling-stroke;transform-origin:center;animation:_ngcontent-%COMP%_wave-shift 14s ease-in-out infinite}path[_ngcontent-%COMP%]:nth-child(1){opacity:.28;stroke-width:.6;animation-duration:16s;animation-delay:-2s}path[_ngcontent-%COMP%]:nth-child(2){opacity:.4;stroke-width:.8;animation-duration:12s;animation-delay:-5s}path[_ngcontent-%COMP%]:nth-child(3){opacity:.92;stroke-width:1.8;animation-duration:10s;animation-delay:0s}path[_ngcontent-%COMP%]:nth-child(4){opacity:.92;stroke-width:1.8;animation-duration:11s;animation-delay:-4s}path[_ngcontent-%COMP%]:nth-child(5){opacity:.4;stroke-width:.8;animation-duration:13s;animation-delay:-7s}path[_ngcontent-%COMP%]:nth-child(6){opacity:.28;stroke-width:.6;animation-duration:15s;animation-delay:-6s}@keyframes _ngcontent-%COMP%_wave-shift{0%,to{transform:scaleY(1) translateY(0) translate(0)}20%{transform:scaleY(1.8) translateY(-14px) translate(8px)}40%{transform:scaleY(.7) translateY(10px) translate(-6px)}60%{transform:scaleY(2.1) translateY(-18px) translate(4px)}80%{transform:scaleY(.85) translateY(6px) translate(-10px)}}"]}))}return o(),n})();var Ln=f(55565),Fi=f(16976),mm=f(60177),kt=f(32271),Li=f(72510),fm=f(70980),Pi=f(96354);const hm={name:"spinner_arc",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="3" stroke-opacity=".25"/><path d="M22 12a10 10 0 0 1-10 10" stroke="currentColor" stroke-width="3" stroke-linecap="round"/></svg>'};var gm=f(73957),_m=f(65619),wm=f(4861),Ho=f(95674);let vm=(()=>{var o;class n{constructor(){this.http=(0,h.WQX)(j.Qq)}getDemoOffers(){return this.http.get("/api/recruitment/screening/v2/demo")}getDataFromOfferLink(r,a,i){return this.http.post("/api/recruitment/screening/v2/demo",{language:r,company:a,offerUrl:i})}copyDemoOffer(r,a){return this.http.post(`/api/recruitment/screening/v2/demo/${r}/copy`,{companyName:a})}getScreeningConferenceConfig(r,a,i){return this.http.get(`/api/recruitment/screening/v2/demo/${r}/brief`,{params:{name:a,email:i}})}getTestCallConfig(r,a){return this.http.get(`/api/recruitment/screening/v2/offers/${r}/brief`,{params:{type:a}})}getScreeningConfig(r){return this.http.get(`/api/recruitment/screening/${r}/config`)}saveScreeningConfig(r,a,i){return i===Ho.Fz.recruitmentProject?this.http.put(`/api/secure/panel/recruitment-project/${a}
1/screening`,r):this.http.post(`/api/recruitment/screening/${a}/config`,r)}setScreeningEnabled(r,a,i=!0){return a===Ho.Fz.recruitmentProject?this.http.patch(`/api/secure/panel/recruitment-project/${r}/screening/enable`,{}):this.http.post(`/api/recruitment/screening/${r}/enabled`,{enabled:i})}setScreeningDisabled(r,a){return a===Ho.Fz.recruitmentProject?this.http.patch(`/api/secure/panel/recruitment-project/${r}/screening/disable`,{}):this.http.post(`/api/recruitment/screening/${r}/enabled`,{enabled:!1})}getScreeningEnabled(r){return this.http.get(`/api/recruitment/screening/${r}/enabled`)}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275prov=h.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return o(),n})();const ym={name:"info_outline",data:'<svg viewBox="0 0 76 76" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.25 26.75h7.5v-7.5h-7.5v7.5ZM38 68C21.462 68 8 54.538 8 38S21.462 8 38 8s30 13.462 30 30-13.462 30-30 30ZM38 .5a37.5 37.5 0 1 0 0 75 37.5 37.5 0 0 0 0-75Zm-3.75 56.25h7.5v-22.5h-7.5v22.5Z" fill="#1271ED"/></svg>'};let Cm=(()=>{var o;class n{constructor(){this.document=(0,h.WQX)(h.qQL),this.offerUrl=`${this.document.location.origin}/panel/ai-screener-test#offer`,(0,Ot.N)([ym])}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-survey-modal"]],decls:21,vars:20,consts:[[1,"tw-relative","tw-bg-white"],["modalBody","",1,"tw-relative","tw-p-5"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-text-center","tw-gap-4"],["commonIcon","info_outline",1,"tw-mb-0","tw-block","icon",2,"--width","75px","--height","75px"],[1,"tw-text-xl","tw-font-semibold","tw-text-ink"],[1,"tw-mb-0","tw-max-w-md","tw-text-sm","tw-text-gray-60"],[1,"tw-mb-0","tw-max-w-md","tw-text-sm","tw-font-medium","tw-text-ink"],[1,"tw-flex","tw-w-full","tw-max-w-xs","tw-flex-col","tw-gap-2"],["rel","noopener noreferrer",1,"tw-btn","tw-btn-primary","tw-btn-sm",3,"href"],[1,"tw-btn","tw-btn-secondary-outline","tw-btn-sm",3,"href"]],template:function(a,i){1&a&&(e.j41(0,"common-material-modal",0)(1,"div",1)(2,"div",2),e.nrm(3,"inline-icon",3),e.j41(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",5),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"p",6),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",7)(14,"a",8),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"a",9),e.nI1(18,"translate"),e.EFF(19),e.nI1(20,"translate"),e.k0s()()()()()),2&a&&(e.R7$(5),e.SpI(" ",e.bMT(6,8,"SCREENING.CONFERENCE.INFORMATION.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(9,10,"SCREENING.CONFERENCE.INFORMATION.DESC")," "),e.R7$(3),e.SpI(" ",e.bMT(12,12,"SCREENING.CONFERENCE.INFORMATION.COMPARE_PROMPT")," "),e.R7$(3),e.Y8G("href",i.offerUrl,e.B4B),e.R7$(),e.SpI(" ",e.bMT(16,14,"SCREENING.CONFERENCE.INFORMATION.COMPARE_CTA")," "),e.R7$(2),e.Y8G("href",e.VkB("mailto:",e.bMT(18,16,"SCREENING.CONFERENCE.INFORMATION.LINK")),e.B4B),e.R7$(2),e.SpI(" ",e.bMT(20,18,"SCREENING.CONFERENCE.INFORMATION.CONTACT_CTA")," "))},dependencies:[on.K,ht.I,ze.W,ve.D9],encapsulation:2}))}return o(),n})();const Em=()=>({height:"56px","border-radius":"0.5rem","margin-bottom":"0"}),xm=(o,n)=>n.id;function bm(o,n){if(1&o&&(e.j41(0,"div",0),e.nrm(1,"inline-icon",24),e.j41(2,"p",25),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&o){const t=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,1,t.LOADING_MESSAGES[t.loadingStep()])," ")}}function Im(o,n){if(1&o&&(e.j41(0,"ng-option",5)(1,"div",26),e.nrm(2,"img",27),e.nI1(3,"slice"),e.nI1(4,"uppercase"),e.EFF(5),e.nI1(6,"slice"),e.nI1(7,"uppercase"),e.nI1(8,"translate"),e.k0s()()),2&o){const t=n.$implicit;e.Y8G("value",t),e.R7$(2),e.Y8G("src","https://s3.eu-central-1.amazonaws.com/static.nofluffjobs.com/nfj/assets/images/flags-countries/"+e.bMT(4,7,e.brH(3,3,t,0,2))+".svg",e.B4B),e.R7$(3),e.SpI(" ",e.bMT(8,15,e.bMT(7,13,"LANG."+e.brH(6,9,t,0,2)))," ")}}function Sm(o,n){if(1&o&&(e.j41(0,"fieldset",6)(1,"legend",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",28)(5,"label",29),e.nrm(6,"input",30),e.qAN(),e.j41(7,"span",31)(8,"span",32),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"span",33),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"label",29),e.nrm(15,"input",34),e.qAN(),e.j41(16,"span",31)(17,"span",32),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"span",33),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()),2&o){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,17,"SCREENING.CONFERENCE.CONVERSATION_MODE")," "),e.R7$(3),e.AVh("tw-border-tastyBlue","ptt"===t.form.controls.mode.value)("!tw-bg-tastyBlue-5","ptt"===t.form.controls.mode.value)("tw-border-gray-ddd","ptt"!==t.form.controls.mode.value),e.R7$(),e.QXe(),e.R7$(3),e.SpI(" ",e.bMT(10,19,"SCREENING.CONFERENCE.MODE_PTT")," "),e.R7$(3),e.SpI(" ",e.bMT(13,21,"SCREENING.CONFERENCE.MODE_PTT_HINT")," "),e.R7$(2),e.AVh("tw-border-tastyBlue","continuous"===t.form.controls.mode.value)("!tw-bg-tastyBlue-5","continuous"===t.form.controls.mode.value)("tw-border-gray-ddd","continuous"!==t.form.controls.mode.value),e.R7$(),e.QXe(),e.R7$(3),e.SpI(" ",e.bMT(19,23,"SCREENING.CONFERENCE.MODE_CONTINUOUS")," "),e.R7$(3),e.SpI(" ",e.bMT(22,25,"SCREENING.CONFERENCE.MODE_CONTINUOUS_HINT")," ")}}function Tm(o,n){1&o&&e.nrm(0,"ngx-skeleton-loader",10),2&o&&e.Y8G("theme",e.lJ4(1,Em))}function Nm(o,n){1&o&&(e.j41(0,"p",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.OFFERS_EMPTY")," "))}function Rm(o,n){if(1&o&&(e.j41(0,"label",35),e.nrm(1,"input",36),e.qAN(),e.j41(2,"span",32),e.EFF(3),e.k0s()()),2&o){const t=n.$implicit,r=e.XpG();e.AVh("tw-border-tastyBlue",r.form.controls.selectedOfferId.value===t.id)("!tw-bg-tastyBlue-5",r.form.controls.selectedOfferId.value===t.id)("tw-border-gray-ddd",r.form.controls.selectedOfferId.value!==t.id),e.R7$(),e.Y8G("value",t.id),e.QXe(),e.R7$(2),e.SpI(" ",t.title," ")}}function Am(o,n){1&o&&(e.j41(0,"p",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.SELECT_OFFER_REQUIRED")," "))}
1function Om(o,n){1&o&&(e.nrm(0,"div",23),e.nI1(1,"translate")),2&o&&e.Y8G("innerHTML",e.bMT(1,1,"SCREENING.CONFERENCE.TALK_AI_INFO"),e.npT)}let km=(()=>{var o;class n{constructor(){this.companyName=Te.hFB.required(),this.name=Te.hFB.required(),this.email=Te.hFB.required(),this.showAdditionalInfo=(0,Te.hFB)(!0),this.hideConversationMode=(0,Te.hFB)(!1,{transform:Te.L39}),this.onlyNofluffjobsCustomLinks=(0,Te.hFB)(!1,{transform:Te.L39}),this.back=(0,Te.CGW)(),this.fb=(0,h.WQX)(X.ok),this.dialog=(0,h.WQX)(rt.MatDialog),this.screeningConfigSv=(0,h.WQX)(vm),this.messages=(0,h.WQX)(wm.G),this.translate=(0,h.WQX)(ve.c$),this.platformId=(0,h.WQX)(h.Agw),this.destroyRef=(0,h.WQX)(h.abz),this.submitted=(0,h.vPA)(!1),this.loading=(0,h.vPA)(!1),this.offersLoading=(0,h.vPA)(!0),this.loadingStep=(0,h.vPA)(0),this.LOADING_MESSAGES=["SCREENING.CONFERENCE.LOADING_STEP_OFFER","SCREENING.CONFERENCE.LOADING_STEP_QUESTIONS","SCREENING.CONFERENCE.LOADING_STEP_CONNECT"],this.loadingTimer=null,this.allOffers=(0,h.vPA)([]),this.availableLanguages=[ot.sb.enGB,ot.sb.huHU,ot.sb.plPL],this.form=this.fb.group({selectedOfferId:this.fb.control(null,{validators:[X.k0.required]}),offerUrl:this.fb.control("",{nonNullable:!0}),lang:this.fb.control(ot.sb.enGB,{validators:[X.k0.required],nonNullable:!0}),mode:this.fb.control("continuous",{validators:[X.k0.required],nonNullable:!0})}),this.currentLang=(0,en.ot)(this.form.controls.lang.valueChanges,{initialValue:this.form.controls.lang.value}),this.offers=(0,kt.EW)(()=>this.allOffers().filter(r=>r.lang===this.currentLang())),this.offerUrlConfig=(0,kt.EW)(()=>({label:this.onlyNofluffjobsCustomLinks()?"SCREENING.CONFERENCE.FIELD_OFFER_URL_NFJ":"SCREENING.CONFERENCE.FIELD_OFFER_URL",inputType:Ln.b.Text,required:!0,errorsMsg:{wrongNofluffjobsUrl:"SCREENING.CONFERENCE.OFFER_URL_NOT_NFJ"}})),this.submitBtnConfig={type:"submit",text:"SCREENING.CONFERENCE.START_CONVERSATION",loadingText:"SCREENING.CONFERENCE.LOADING_CONVERSATION",classes:"tw-btn tw-btn-primary tw-btn-sm"},this.ActionBtnStatus=gm.f,(0,gt.r)([he.mdIconsVerified]),(0,Ot.N)([hm]),this.form.controls.selectedOfferId.valueChanges.pipe((0,en.pQ)()).subscribe(r=>{const a=this.form.controls.offerUrl;if("custom"===r){const i=[X.k0.required,Fn.B.urlValidator];this.onlyNofluffjobsCustomLinks()&&i.push(Fn.B.nofluffjobsUrlValidator),a.setValidators(i)}else a.clearValidators(),a.setValue("",{emitEvent:!1});a.updateValueAndValidity({emitEvent:!1})}),this.form.controls.lang.valueChanges.pipe((0,en.pQ)()).subscribe(()=>{"custom"!==this.form.controls.selectedOfferId.value&&this.form.controls.selectedOfferId.setValue(null)}),this.destroyRef.onDestroy(()=>this.clearLoadingTimer())}startLoadingOverlay(){this.loadingStep.set(0),this.clearLoadingTimer(),this.loadingTimer=setInterval(()=>{this.loadingStep.update(r=>Math.min(r+1,this.LOADING_MESSAGES.length-1))},2e3)}clearLoadingTimer(){this.loadingTimer&&(clearInterval(this.loadingTimer),this.loadingTimer=null)}ngOnInit(){(0,mm.UE)(this.platformId)&&this.screeningConfigSv.getDemoOffers().pipe((0,fm.j)(()=>this.offersLoading.set(!1)),(0,en.pQ)(this.destroyRef)).subscribe(r=>this.allOffers.set(r))}selectCustom(){this.form.controls.selectedOfferId.setValue("custom")}submit(){this.submitted.set(!0),this.form.invalid||this.loading()?this.form.markAllAsTouched():this.openConversation()}openConversation(){const{selectedOfferId:r,offerUrl:a,lang:i,mode:s}=this.form.getRawValue(),c=this.companyName(),u=this.name(),d=this.email();this.loading.set(!0),this.startLoadingOverlay(),("custom"===r?this.screeningConfigSv.getDataFromOfferLink(i,c,a).pipe((0,Pi.T)(g=>g.id),(0,nn.W)(()=>(this.messages.addMessage({message:this.translate.instant("SCREENING.CONFERENCE.ERROR_FETCH_FROM_LINK"),type:"error"}),this.loading.set(!1),this.clearLoadingTimer(),an.w))):this.screeningConfigSv.copyDemoOffer(r,c).pipe((0,Pi.T)(g=>g.id),(0,nn.W)(()=>(this.messages.addMessage({message:this.translate.instant("SCREENING.CONFERENCE.ERROR_COPY_DEMO_OFFER"),type:"error"}),this.loading.set(!1),this.clearLoadingTimer(),an.w)))).pipe((0,At.n)(g=>this.screeningConfigSv.getScreeningConferenceConfig(g,u,d)),(0,At.n)(g=>this.runScreeningFlow(g,i,s,{candidateName:u,companyName:c,language:i})),(0,nn.W)(()=>(this.loading.set(!1),this.clearLoadingTimer(),an.w))).subscribe()}runScreeningFlow(r,a,i,s){const c=this.dialog.open(Ai,{panelClass:["default-modal","!tw-h-auto","tw-py-10","desktop:tw-py-0"],disableClose:!0,data:{callId:r?.callId,ephemeralKey:r?.ephemeralKey,lang:a,ptt:"ptt"===i,participant:s}});return this.loading.set(!1),this.clearLoadingTimer(),c.afterClosed().pipe((0,Ci.p)(u=>u),(0,At.n)(()=>this.openResultModal(r?.callId).afterClosed()),(0,tn.M)(()=>this.openContactModal(r?.callId)))}openResultModal(r){return this.dialog.open(hp,{panelClass:["default-modal","modal
1-xl"],data:{callId:r,showSurvey:!0,showRecordingNotice:!0}})}openContactModal(r){return this.dialog.open(Cm,{panelClass:["default-modal"],data:{callId:r}})}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-config"]],inputs:{companyName:[1,"companyName"],name:[1,"name"],email:[1,"email"],showAdditionalInfo:[1,"showAdditionalInfo"],hideConversationMode:[1,"hideConversationMode"],onlyNofluffjobsCustomLinks:[1,"onlyNofluffjobsCustomLinks"]},outputs:{back:"back"},decls:34,vars:31,consts:[["role","status","aria-live","polite",1,"tw-fixed","tw-inset-0","tw-z-50","tw-bg-white/90","tw-backdrop-blur-sm","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-gap-5","tw-px-6"],["novalidate","",3,"ngSubmit","formGroup"],[3,"keydown.enter"],[1,"tw-mb-6","tw-text-gray-60","tw-text-sm","tw-block"],["formControlName","lang","appearance","outline",3,"clearable","searchable"],[3,"value"],[1,"tw-mb-6","tw-p-0","tw-border-0"],[1,"tw-p-0","tw-border-0"],[1,"tw-text-gray-60","tw-text-sm","tw-mb-2","tw-p-0"],["role","radiogroup",1,"tw-grid","tw-grid-cols-12","tw-gap-3"],["count","4",1,"tw-col-span-12",3,"theme"],[1,"tw-text-sm","tw-text-gray-60","tw-mb-0","tw-col-span-12"],[1,"tw-flex","tw-items-center","tw-col-span-6","tw-gap-3","tw-p-4","tw-bg-white","tw-border-2","tw-rounded-lg","tw-cursor-pointer","tw-transition-colors",3,"tw-border-tastyBlue","!tw-bg-tastyBlue-5","tw-border-gray-ddd"],[1,"tw-flex","tw-col-span-12","tw-items-start","tw-gap-3","tw-p-4","tw-bg-white","tw-border-2","tw-rounded-lg","tw-cursor-pointer","tw-transition-colors"],["type","radio","formControlName","selectedOfferId",1,"tw-w-4","tw-h-4","tw-mt-1","tw-accent-tastyBlue","tw-shrink-0",3,"value"],[1,"tw-flex","tw-flex-col","tw-flex-1"],[1,"tw-text-sm","tw-text-ink","tw-font-medium","tw-mb-5"],["formControlName","offerUrl",1,"floating-label",3,"focusin","click","config","submitted"],[1,"tw-text-xs","tw-text-red","tw-mt-2","tw-mb-0"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-gap-2","tw-mt-6"],[1,"tw-inline-flex","tw-items-center","tw-gap-1.5","tw-text-xs","tw-text-gray-60"],["matIcon","verified",2,"--width","15px","--height","15px"],[3,"config","status"],[1,"tw-block","tw-text-xs","tw-leading-6","tw-font-medium","tw-text-gray-60","tw-mt-5","[&_ul:last-child]:tw-mb-0",3,"innerHTML"],["commonIcon","spinner_arc",1,"tw-animate-spin","tw-text-tastyBlue",2,"--width","56px","--height","56px"],[1,"tw-text-base","tw-text-ink","tw-font-medium","tw-text-center","tw-max-w-md","tw-m-0"],[1,"tw-flex","tw-items-center"],["alt","flag",1,"tw-w-[20px]","tw-mr-2",3,"src"],[1,"tw-grid","tw-grid-cols-2","tw-gap-3"],[1,"tw-flex","tw-items-start","tw-gap-3","tw-p-3","tw-bg-white","tw-border-2","tw-rounded-lg","tw-cursor-pointer","tw-transition-colors"],["type","radio","formControlName","mode","value","ptt",1,"tw-w-4","tw-h-4","tw-mt-0.5","tw-accent-tastyBlue","tw-shrink-0"],[1,"tw-flex","tw-flex-col"],[1,"tw-text-sm","tw-text-ink","tw-font-medium"],[1,"tw-text-xs","tw-text-gray-60"],["type","radio","formControlName","mode","value","continuous",1,"tw-w-4","tw-h-4","tw-mt-0.5","tw-accent-tastyBlue","tw-shrink-0"],[1,"tw-flex","tw-items-center","tw-col-span-6","tw-gap-3","tw-p-4","tw-bg-white","tw-border-2","tw-rounded-lg","tw-cursor-pointer","tw-transition-colors"],["type","radio","formControlName","selectedOfferId",1,"tw-w-4","tw-h-4","tw-accent-tastyBlue",3,"value"]],template:function(a,i){1&a&&(e.nVh(0,bm,5,3,"div",0),e.j41(1,"form",1),e.bIt("ngSubmit",function(){return i.submit()}),e.j41(2,"div",2),e.bIt("keydown.enter",function(){return i.submit()}),e.j41(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.j41(6,"ng-select",4),e.Z7z(7,Im,9,17,"ng-option",5,e.fX1),e.k0s(),e.qAN(),e.k0s(),e.nVh(9,Sm,23,27,"fieldset",6),e.j41(10,"fieldset",7)(11,"legend",8),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",9),e.nVh(15,Tm,1,2,"ngx-skeleton-loader",10)(16,Nm,3,3,"p",11),e.Z7z(17,Rm,4,8,"label",12,xm),e.j41(19,"label",13),e.nrm(20,"input",14),e.qAN(),e.j41(21,"div",15)(22,"span",16),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"common-text-field",17),e.bIt("focusin",function(){return i.selectCustom()})("click",function(c){return c.stopPropagation()}),e.k0s(),e.qAN(),e.k0s()()(),e.nVh(26,Am,3,3,"p",18),e.k0s(),e.j41(27,"footer",19)(28,"span",20),e.nrm(29,"inline-icon",21),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"common-action-btn",22),e.k0s(),e.nVh(33,Om,2,3,"div",23),e.k0s()()),2&a&&(e.vxM(i.loading()?0:-1),e.R7$(),e.Y8G("formGroup",i.form),e.R7$(3),e.SpI(" ",e.bMT(5,23,"SCREENING.CONFERENCE.CONVERSATION_LANGUAGE")," "),e.R7$(2),e.Y8G("clearable",!1)("searchable",!1),e.QXe(),e.R7$(),e.Dyx(i.availableLanguages),e.R7$(2),e.vxM(i.hideConversationMode()?-1:9),e.R7$(3),e.SpI(" ",e.bMT(13,25,"SCREENING.CONFERENCE.CHOOSE_OFFER")," "),e.R7$(3),e.vxM(i.offersLoading()?15:0===i.offers().length?16:-1),e.R7$(2),e.Dyx(i.offers()),e.R7$(2),e.AVh("tw-border-tastyBlue","custom"===i.form.controls.selectedOfferId.value)("!tw-bg-tastyBlue-5","custom"===i.form.controls.selectedOfferId.value)("tw-border-gray-ddd","custom"!==i.form.controls.selectedOfferId.value),e.R7$(),e.Y8G("value","custom"),e.QXe(),e.R7$(3),e.SpI(" ",e.bMT(24,27,"SCREENING.CONFERENCE.CUSTOM_OFFER")," "),e.R7$(2),e.Y8G("config",i.offerUrlConfig())("submitted",i.submitted()),e.QXe(),e.R7$(),e.vxM(i.submitted()&&i.form.controls.selectedOfferId.errors?.required?26:-1),e.R7$(4),e.SpI(" ",e.bMT(31,29,"SCREENING.CONFERENCE.GDPR")," "),e.R7$(2),e.Y8G("config",i.submitBtnConfig)("status",i.loading()?i.ActionBtnStatus.Loading:i.ActionBtnStatus.Idle),e.R7$(),e.vxM(i.showAdditionalInfo()?33:-1))},dependencies:[X.X1,X.qT,X.me,X.Fm,X.BC,X.cb,X.j4,X.JD,Fi.f,_m.ActionBtnComponent,Li.vr,Li.xt,at.Yq,at.Zm,ze.W,_t.w,ht.I,Ye.P9,Ye.Pc,ve.D9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   common-text-field[_ngcontent-%COMP%]  .form-group{margin-bottom:0!important}"]}))}return o(),n})();function Mm(o,n){if(1&o&&e.Hgh(0,"span",5),2&o){const t=e.XpG().$implicit,r=e.XpG();e.AVh("tw-bg-tastyBlue",r.step()>t)("tw-bg-gray-ddd",r.step()<=t)}}function Dm(o,n){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.SpI(" ",e.bMT(1,1,"SCREENING.CONFERENCE.STEP_1_LABEL")," ")}function Fm(o,n){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.SpI(" ",e.bMT(1,1,"SCREENING.CONFERENCE.STEP_2_LABEL")," ")}function Lm(o,n){if(1&o&&(e.rj2(0,"li",1),e.nVh(1,Mm,1,4,"span",2),e.rj2(2,"div",3),e.EFF(3),e.eux(),e.rj2(4,"span",4),e.nV
1h(5,Dm,2,3)(6,Fm,2,3),e.eux()()),2&o){let t;const r=n.$implicit,a=n.$index,i=n.$count,s=e.XpG();e.R7$(),e.vxM(a!==i-1?1:-1),e.R7$(),e.AVh("tw-bg-tastyBlue",s.step()>=r)("tw-text-white",s.step()>=r)("tw-border-tastyBlue",s.step()>=r)("tw-bg-white",s.step()<r)("tw-text-gray-60",s.step()<r)("tw-border-gray-ddd",s.step()<r),e.R7$(),e.SpI(" ",r," "),e.R7$(),e.AVh("tw-font-semibold",s.step()===r)("tw-text-ink",s.step()===r),e.R7$(),e.vxM(1===(t=r)?5:2===t?6:-1)}}let Pm=(()=>{var o;class n{constructor(){this.step=Te.hFB.required(),this.steps=[1,2]}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-steps"]],inputs:{step:[1,"step"]},decls:4,vars:3,consts:[[1,"tw-flex","tw-items-center","tw-justify-between","tw-bg-gray-f9f9f9","tw-py-5","tw-mb-0"],[1,"tw-flex-1","tw-flex","tw-flex-col","tw-items-center","tw-relative"],["aria-hidden","true",1,"tw-absolute","tw-top-4.5","tw-left-1/2","tw-w-full","tw-h-px","tw-transition-colors",3,"tw-bg-tastyBlue","tw-bg-gray-ddd"],[1,"tw-relative","tw-w-9","tw-h-9","tw-rounded-full","tw-flex","tw-items-center","tw-justify-center","tw-text-sm","tw-font-semibold","tw-border-2","tw-transition-colors"],[1,"tw-mt-2","tw-text-xs","tw-text-gray-60"],["aria-hidden","true",1,"tw-absolute","tw-top-4.5","tw-left-1/2","tw-w-full","tw-h-px","tw-transition-colors"]],template:function(a,i){1&a&&(e.rj2(0,"ol",0),e.nI1(1,"translate"),e.Z7z(2,Lm,7,19,"li",1,e.fX1),e.eux()),2&a&&(e.BMQ("aria-label",e.bMT(1,1,"SCREENING.CONFERENCE.PROGRESS_LABEL")),e.R7$(2),e.Dyx(i.steps))},dependencies:[ve.D9],styles:["[_nghost-%COMP%]{display:block}"]}))}return o(),n})(),Gi=(()=>{var o;class n{constructor(){this._prefill=(0,h.vPA)(null)}set(r){this._prefill.set(r)}consume(){const r=this._prefill();return this._prefill.set(null),r}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275prov=h.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return o(),n})(),Gm=(()=>{var o;class n{constructor(){this.translate=(0,h.WQX)(ve.c$),this.endpoint="https://mail-link.nofluffjobs.com/s/%5Brecruitech%5D+-+list"}subscribe(r){const a=new FormData;a.append("email",r.email),a.append("vars[name]",r.name),a.append("vars[companyName]",r.companyName),a.append("vars[agree]",(new Date).toISOString()),r.marketingAgree&&(a.append("vars[marketing]",this.translate.instant("SCREENING.CONFERENCE.AGREE_MARKETING")),a.append("vars[marketingDate]",(new Date).toISOString())),fetch(this.endpoint,{method:"POST",mode:"no-cors",body:a,keepalive:!0}).catch(()=>{})}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275prov=h.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return o(),n})();function jm(o,n){if(1&o&&e.nrm(0,"common-field-errors",19),2&o){const t=e.XpG(2);e.Y8G("showIcon",!1)("errors",t.form.controls.agreeDemo.errors)}}function Bm(o,n){if(1&o&&e.nrm(0,"common-field-errors",19),2&o){const t=e.XpG(2);e.Y8G("showIcon",!1)("errors",t.form.controls.agreeMarketing.errors)}}function $m(o,n){1&o&&(e.j41(0,"aside",16),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SCREENING.CONFERENCE.AI_DEMO_NOTICE")," "))}function Um(o,n){if(1&o){const t=e.RV6();e.j41(0,"form",4),e.bIt("ngSubmit",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.submitStep1())}),e.nrm(1,"common-text-field",5),e.qAN(),e.nrm(2,"common-text-field",6),e.qAN(),e.nrm(3,"common-text-field",7),e.qAN(),e.j41(4,"div",8)(5,"div")(6,"nfj-checkbox",9)(7,"common-blurred-text",10)(8,"p",11),e.nrm(9,"span",12),e.nI1(10,"translate"),e.j41(11,"span",13),e.EFF(12,"*"),e.k0s()()()(),e.qAN(),e.DNE(13,jm,1,2,"common-field-errors",14),e.k0s(),e.j41(14,"div")(15,"nfj-checkbox",15)(16,"common-blurred-text",10)(17,"p",11),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.qAN(),e.DNE(20,Bm,1,2,"common-field-errors",14),e.k0s()(),e.nVh(21,$m,3,3,"aside",16),e.j41(22,"footer",17)(23,"button",18),e.EFF(24),e.nI1(25,"translate"),e.k0s()()()}if(2&o){const t=e.XpG();e.Y8G("formGroup",t.form),e.R7$(),e.Y8G("config",t.companyNameConfig)("submitted",t.submitted()),e.QXe(),e.R7$(),e.Y8G("config",t.nameConfig)("submitted",t.submitted()),e.QXe(),e.R7$(),e.Y8G("config",t.emailConfig)("submitted",t.submitted()),e.QXe(),e.R7$(3),e.QXe(),e.R7$(3),e.Y8G("innerHTML",e.bMT(10,13,"SCREENING.CONFERENCE.AGREE_DEMO"),e.npT),e.R7$(4),e.Y8G("ngIf",t.submitted()),e.R7$(2),e.QXe(),e.R7$(3),e.SpI(" ",e.bMT(19,15,"SCREENING.CONFERENCE.AGREE_MARKETING")," "),e.R7$(2),e.Y8G("ngIf",t.submitted()),e.R7$(),e.vxM(t.showAiDemoNotice()?21:-1),e.R7$(3),e.SpI(" ",e.bMT(25,17,"SCREENING.CONFERENCE.NEXT")," ")}}function Vm(o,n){if(1&o){const t=e.RV6();e.j41(0,"common-screening-conference-config",20),e.bIt("back",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.goBack())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("companyName",t.form.controls.companyName.value)("name",t.form.controls.name.value)("email",t.form.controls.email.value)}}let ji=(()=>{var o;class n{constructor(){this.redirectAfterStep1=(0,Te.hFB)(!1),this.showAiDemoNotice=(0,Te.hFB)(!0),this.fb=(0,h.WQX)(X.ok),this.conferenceSv=(0,h.WQX)(Gi),this.sailthru=(0,h.WQX)(Gm),this.router=(0,h.WQX)(Vo.Ix),this.currentStep=(0,h.vPA)(1),this.submitted=(0,h.vPA)(!1),this.form=this.fb.group({companyName:this.fb.control("",{validators:[X.k0.required,X.k0.minLength(2),X.k0.maxLength(120)],nonNullable:!0}),name:this.fb.control("",{validators:[X.k0.required,X.k0.minLength(2),X.k0.maxLength(80)],nonNullable:!0}),email:this.fb.control("",{validators:[X.k0.required,Fn.B.emailValidator],nonNullable:!0}),agreeDemo:this.fb.control(!1,X.k0.requiredTrue),agreeMarketing:this.fb.control(!1)}),this.STEP_1_FIELDS=["companyName","name","email","agreeDemo","agreeMarketing"],this.companyNameConfig={label:"SCREENING.CONFERENCE.FIELD_COMPANY_NAME",inputType:Ln.b.Text,required:!0},this.nameConfig={label:"SCREENING.CONFERENCE.FIELD_NAME",inputType:Ln.b.Text,required:!0},this.emailConfig={label:"SCREENING.CONFERENCE.FIELD_EMAIL",inputType:Ln.b.Email,required:!0};const r=this.conferenceSv.consume();r&&(this.form.patchValue({companyName:r.companyName,name:r.name,email:r.email,agreeDemo:!0}),this.currentStep.set(2))}submitStep1(){if(this.submitted.set(!0),this.STEP_1_FIELDS.some(u=>this.form.controls[u].invalid))return void this.STEP_1_FIELDS.forEach(u=>this.form.controls[u].markAsTouched());const{companyName:a,name:i,email:s,agreeMarketing:c}=this.form.getRawValue();if(this.sailthru.subscribe({email:s,name:i,companyName:a,marketingAgree:!!c}),this.redirectAfterStep1())return this.conferenceSv.set({companyName:a,name:i,email:s}),void this.router.navigateByUrl("/ai-screener-demo");this.currentStep.set(2),this.submitted.set(!1)}goBack(){const r=this.currentStep();r>1&&(this.currentStep.set(r-1),this.submitted.set(!1))}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-form"]],inputs:{redirectAfterStep1:[1,"redirectAfterStep1"],showAiDemoNotice:[1,"showAiDemoNotice"]},decls:4,vars:2,consts:[[3,"step"],[1,"tw-bg-white","tw-border","t
1w-border-gray-eee","tw-p-5"],["novalidate","",3,"formGroup"],[3,"companyName","name","email"],["novalidate","",3,"ngSubmit","formGroup"],["formControlName","companyName",1,"floating-label","tw-mb-5",3,"config","submitted"],["formControlName","name",1,"floating-label","tw-mb-5",3,"config","submitted"],["formControlName","email",1,"floating-label","tw-mb-5",3,"config","submitted"],[1,"tw-flex","tw-flex-col","tw-gap-3"],["formControlName","agreeDemo",1,"tw-text-ink"],["iconPosition","right"],[1,"tw-text-xs","tw-text-gray-60","tw-m-0"],[3,"innerHTML"],[1,"tw-text-red"],[3,"showIcon","errors",4,"ngIf"],["formControlName","agreeMarketing",1,"tw-text-ink"],["role","note",1,"tw-text-xs","tw-mt-5","tw-leading-5","tw-text-gray-60","tw-bg-tastyBlue-5","tw-border","tw-border-tastyBlue/20","tw-rounded-md","tw-p-3"],[1,"tw-flex","tw-items-center","tw-justify-end","tw-gap-2","tw-mt-4"],["type","submit",1,"tw-btn","tw-btn-primary","tw-btn-sm"],[3,"showIcon","errors"],[3,"back","companyName","name","email"]],template:function(a,i){1&a&&(e.nrm(0,"common-screening-conference-steps",0),e.j41(1,"article",1),e.nVh(2,Um,26,19,"form",2)(3,Vm,1,3,"common-screening-conference-config",3),e.k0s()),2&a&&(e.Y8G("step",i.currentStep()),e.R7$(2),e.vxM(1===i.currentStep()?2:3))},dependencies:[X.X1,X.qT,X.BC,X.cb,X.j4,X.JD,Fi.f,Wo.$,Oi.P,ki.D,Ye.bT,Pm,km,ve.D9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   common-text-field[_ngcontent-%COMP%]  .tw-form-group{margin-bottom:0!important}"]}))}return o(),n})(),Wm=(()=>{var o;class n{constructor(){const r=(0,h.WQX)(Vo.nX).snapshot.queryParamMap,a=r.get("companyName")?.trim(),i=r.get("name")?.trim(),s=r.get("email")?.trim().replace(/\s+/g,"+");!a||!i||!s||Fn.B.emailValidator(new X.MJ(s))||(0,h.WQX)(Gi).set({companyName:a,name:i,email:s})}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-discuss"]],decls:13,vars:6,consts:[[1,"tw-flex","tw-relative","tw-overflow-hidden","tw-items-center","tw-justify-center","tw-py-16","tw-px-4","tw-text-white","tw-bg-[linear-gradient(120deg,#4a8fff_0%,#6680ff_28%,#8b7cff_52%,#a98ec8_78%,#6fa0ff_100%)]"],["aria-hidden","true",1,"tw-absolute","tw-inset-0","tw-pointer-events-none","tw-mix-blend-screen","tw-bg-[radial-gradient(70%_50%_at_18%_25%,rgba(120,170,255,0.45)_0%,transparent_60%),radial-gradient(50%_40%_at_80%_80%,rgba(180,130,255,0.4)_0%,transparent_60%)]"],[1,"tw-relative","tw-z-10","tw-w-full","tw-max-w-xl","tw-bg-white","tw-rounded-t-lg"],[1,"tw-px-5","tw-pt-5","tw-text-center","tw-bg-gray-f9f9f9"],[1,"tw-text-xl","tw-font-bold","tw-text-ink","tw-mb-2"],[1,"tw-text-sm","tw-text-gray-60","tw-mb-0"],[1,"tw-p-5","tw-block","tw-rounded-b-lg"]],template:function(a,i){1&a&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"common-screening-wave-animation"),e.j41(3,"div",2)(4,"header",3)(5,"h1",4),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",5),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"common-screening-conference-form")(12,"common-auth-disclaimer",6),e.k0s()()),2&a&&(e.R7$(6),e.SpI(" ",e.bMT(7,2,"SCREENING.CONFERENCE.LANDING.HERO.FORM_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(10,4,"SCREENING.CONFERENCE.LANDING.HERO.FORM_SUBTITLE")," "))},dependencies:[Di,ji,Mi,ve.D9],styles:["[_nghost-%COMP%]{background:#f9f9f9;display:block}[_nghost-%COMP%]   common-text-field[_ngcontent-%COMP%]  .tw-form-group{margin-bottom:0!important}"]}))}return o(),n})();const Hm={name:"screening_bot",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 6h-3.17l.92-1.25a1 1 0 0 0-1.6-1.2L14.39 6H9.61L7.85 3.55a1 1 0 0 0-1.6 1.2L7.17 6H4a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm-7 13h-2v-6h2v6z"/></svg>'},Zm={name:"screening_doc_check",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-3 15-4-4 1.41-1.41L11 14.17l4.59-4.59L17 11l-6 6z"/></svg>'},Ym={name:"screening_screen_star",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M14.06 9.94 12 9l2.06-.94L15 6l.94 2.06L18 9l-2.06.94L15 12l-.94-2.06zM4 14l.94-2.06L7 11l-2.06-.94L4 8l-.94 2.06L1 11l2.06.94L4 14zm4.5-5 1.06-2.44L12 5.5 9.56 4.44 8.5 2 7.44 4.44 5 5.5l2.44 1.06L8.5 9zm-4 11.5L9 16l3 3 7-7 4 4V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16h.5l1-.5z"/></svg>'},zm={name:"screening_sparkles",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m7.5 5.6 1.4-1.4L4.7 0 3.3 1.4l4.2 4.2zm9 0 4.2-4.2L19.3 0l-4.2 4.2 1.4 1.4zM12 8l-1 2-2 1 2 1 1 2 1-2 2-1-2-1-1-2zm-6 6.5L4.5 13 3 14.5 4.5 16 6 14.5zM20 13l-1.5 1.5L20 16l1.5-1.5L20 13z"/></svg>'},Jm={name:"screening_audio_folder",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2zm4 7h4l-5 5-3-3-4 4v-6h4l3 3 1-1v-2z"/></svg>'};let Xm=(()=>{var o;class n{constructor(){(0,gt.r)([he.mdIconsLocalPostOffice,he.mdIconsMicOutline,he.mdIconsPhone]),(0,Ot.N)([Jm])}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-landing-how"]],decls:61,vars:45,consts:[["id","how",1,"tw-py-16","desktop:tw-py-20","tw-bg-white","tw-border-b","tw-border-gray-eee"],[1,"tw-container","tw-mx-auto","tw-px-5"],[1,"tw-mb-12"],[1,"tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-tastyBlue","tw-mb-3"],[1,"tw-text-3xl","desktop:tw-text-4xl","tw-font-bold","tw-tracking-tight","tw-text-ink","tw-text-balance","tw-max-w-3xl"],[1,"tw-mt-3","tw-text-lg","tw-text-gray-60","tw-max-w-2xl"],[1,"tw-gri
1d","tw-grid-cols-1","md:tw-grid-cols-2","desktop:tw-grid-cols-4","tw-gap-6"],[1,"tw-bg-white","tw-border","tw-border-gray-eee","tw-p-7","tw-flex","tw-flex-col","tw-gap-3.5"],[1,"tw-text-13","tw-font-bold","tw-tracking-wider","tw-text-tastyBlue"],[1,"tw-w-12","tw-h-12","tw-bg-tastyBlue-10","tw-text-tastyBlue-dark","tw-inline-flex","tw-items-center","tw-justify-center"],["commonIcon","screening_audio_folder",2,"--width","24px","--height","24px"],[1,"tw-text-xl","tw-font-bold","tw-text-ink","tw-m-0"],[1,"tw-text-15","tw-leading-relaxed","tw-text-gray-60","tw-m-0"],["matIcon","phone",2,"--width","24px","--height","24px"],["matIcon","mic_outline",2,"--width","24px","--height","24px"],["matIcon","local_post_office",2,"--width","24px","--height","24px"]],template:function(a,i){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"h2",4),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"p",5),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",6)(13,"div",7)(14,"div",8),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",9),e.nrm(18,"inline-icon",10),e.k0s(),e.j41(19,"h4",11),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"p",12),e.EFF(23),e.nI1(24,"translate"),e.k0s()(),e.j41(25,"div",7)(26,"div",8),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"div",9),e.nrm(30,"inline-icon",13),e.k0s(),e.j41(31,"h4",11),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"p",12),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",7)(38,"div",8),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"div",9),e.nrm(42,"inline-icon",14),e.k0s(),e.j41(43,"h4",11),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.j41(46,"p",12),e.EFF(47),e.nI1(48,"translate"),e.k0s()(),e.j41(49,"div",7)(50,"div",8),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"div",9),e.nrm(54,"inline-icon",15),e.k0s(),e.j41(55,"h4",11),e.EFF(56),e.nI1(57,"translate"),e.k0s(),e.j41(58,"p",12),e.EFF(59),e.nI1(60,"translate"),e.k0s()()()()()),2&a&&(e.R7$(4),e.SpI(" ",e.bMT(5,15,"SCREENING.CONFERENCE.LANDING.HOW.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(8,17,"SCREENING.CONFERENCE.LANDING.HOW.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(11,19,"SCREENING.CONFERENCE.LANDING.HOW.SUBTITLE")," "),e.R7$(5),e.SpI(" ",e.bMT(16,21,"SCREENING.CONFERENCE.LANDING.HOW.STEP_1_LABEL")," "),e.R7$(5),e.SpI(" ",e.bMT(21,23,"SCREENING.CONFERENCE.LANDING.HOW.STEP_1_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(24,25,"SCREENING.CONFERENCE.LANDING.HOW.STEP_1_DESC")," "),e.R7$(4),e.SpI(" ",e.bMT(28,27,"SCREENING.CONFERENCE.LANDING.HOW.STEP_2_LABEL")," "),e.R7$(5),e.SpI(" ",e.bMT(33,29,"SCREENING.CONFERENCE.LANDING.HOW.STEP_2_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(36,31,"SCREENING.CONFERENCE.LANDING.HOW.STEP_2_DESC")," "),e.R7$(4),e.SpI(" ",e.bMT(40,33,"SCREENING.CONFERENCE.LANDING.HOW.STEP_3_LABEL")," "),e.R7$(5),e.SpI(" ",e.bMT(45,35,"SCREENING.CONFERENCE.LANDING.HOW.STEP_3_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(48,37,"SCREENING.CONFERENCE.LANDING.HOW.STEP_3_DESC")," "),e.R7$(4),e.SpI(" ",e.bMT(52,39,"SCREENING.CONFERENCE.LANDING.HOW.STEP_4_LABEL")," "),e.R7$(5),e.SpI(" ",e.bMT(57,41,"
1SCREENING.CONFERENCE.LANDING.HOW.STEP_4_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(60,43,"SCREENING.CONFERENCE.LANDING.HOW.STEP_4_DESC")," "))},dependencies:[ze.W,_t.w,ht.I,ve.D9],styles:["[_nghost-%COMP%]{display:block}"]}))}return o(),n})();function qm(o,n){1&o&&(e.j41(0,"div",6)(1,"div",7)(2,"span",8),e.nrm(3,"img",9),e.j41(4,"span",10),e.nrm(5,"inline-icon",11),e.k0s()(),e.j41(6,"div")(7,"div",12),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"div",13),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"div",14)(14,"a",15)(15,"span",16),e.nrm(16,"inline-icon",17),e.k0s(),e.j41(17,"span",18),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"span",19),e.EFF(21,"+48 504 062 747"),e.k0s(),e.nrm(22,"inline-icon",20),e.k0s(),e.j41(23,"a",21)(24,"span",16),e.nrm(25,"inline-icon",22),e.k0s(),e.j41(26,"span",18),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"span",23),e.EFF(30,"[email protected]"),e.k0s(),e.nrm(31,"inline-icon",20),e.k0s()()()),2&o&&(e.R7$(8),e.SpI(" ",e.bMT(9,4,"SCREENING.CONFERENCE.LANDING.SALES.PL_REGION")," "),e.R7$(3),e.SpI(" ",e.bMT(12,6,"SCREENING.CONFERENCE.LANDING.SALES.PL_HEADING")," "),e.R7$(7),e.JRh(e.bMT(19,8,"SCREENING.CONFERENCE.LANDING.SALES.CALL_LABEL")),e.R7$(9),e.JRh(e.bMT(28,10,"SCREENING.CONFERENCE.LANDING.SALES.EMAIL_LABEL")))}function Km(o,n){1&o&&(e.j41(0,"div",6)(1,"div",7)(2,"span",8),e.nrm(3,"img",24),e.k0s(),e.j41(4,"div")(5,"div",12),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",13),e.EFF(9),e.nI1(10,"translate"),e.k0s()()(),e.j41(11,"div",14)(12,"a",25)(13,"span",16),e.nrm(14,"inline-icon",17),e.k0s(),e.j41(15,"span",18),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"span",19),e.EFF(19,"+36 30 155 0341"),e.k0s(),e.nrm(20,"inline-icon",20),e.k0s(),e.j41(21,"a",26)(22,"span",16),e.nrm(23,"inline-icon",22),e.k0s(),e.j41(24,"span",18),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"span",23),e.EFF(28,"[email protected]"),e.k0s(),e.nrm(29,"inline-icon",20),e.k0s()()()),2&o&&(e.R7$(6),e.SpI(" ",e.bMT(7,4,"SCREENING.CONFERENCE.LANDING.SALES.HU_REGION")," "),e.R7$(3),e.SpI(" ",e.bMT(10,6,"SCREENING.CONFERENCE.LANDING.SALES.HU_HEADING")," "),e.R7$(7),e.JRh(e.bMT(17,8,"SCREENING.CONFERENCE.LANDING.SALES.CALL_LABEL")),e.R7$(9),e.JRh(e.bMT(26,10,"SCREENING.CONFERENCE.LANDING.SALES.EMAIL_LABEL")))}let Qm=(()=>{var o;class n{constructor(){this.region=(0,Te.hFB)(),this.isHu=(0,kt.EW)(()=>(this.region()??"").toLowerCase().startsWith("hu")),this.showHu=(0,kt.EW)(()=>!this.region()||this.isHu()),this.showPl=(0,kt.EW)(()=>!this.region()||!this.isHu()),(0,gt.r)([he.mdIconsArrowOutward,he.mdIconsLanguage,he.mdIconsLocalPostOffice,he.mdIconsPhone])}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-landing-sales"]],inputs:{region:[1,"region"]},decls:15,vars:11,consts:[["id","sales",1,"tw-py-16","desktop:tw-py-20","tw-bg-gray-f9f9f9","tw-border-b","tw-border-gray-eee"],[1,"tw-container","tw-mx-auto","tw-px-5"],[1,"tw-grid","tw-grid-cols-1","desktop:tw-grid-cols-2","tw-gap-6","desktop:tw-gap-8"],[1,"tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-tastyBlue","tw-mb-3"],[1,"tw-text-3xl","desktop:tw-text-4xl","tw-font-bold","tw-tracking-tight","tw-text-ink","tw-max-w-3xl","tw-text-balance"],[1,"tw-mt-3","tw-text-lg","tw-text-gray-60","tw-max-w-2xl"],[1,"tw-bg-white","tw-border","tw-border-gray-eee","tw-p-8","tw-pb-6","tw-flex","tw-flex-col","tw-gap-6"],[1,"tw-flex","tw-gap-5","tw-items-start"],["aria-hidden","true",1,"tw-inline-flex","tw-flex-shrink-0"],["src","https://s3.eu-central-1.amazonaws.com/static.nofluffjobs.com/nfj/assets/images/flags-countries/PL.svg","alt","",1,"tw-w-14","tw-h-14","tw-bg-gray-f9f9f9","tw-border","tw-border-gray-eee","tw-object-cover"],[1,"tw-w-14","tw-h-14","tw-bg-gray-f9f9f9","tw-border","tw-border-gray-eee","tw-inline-flex","tw-items-center","tw-justify-center","tw-text-2xl","-tw-ml-2.5"],["matIcon","language",1,"tw-text-gray-60",2,"--width","24px","--height","24px"],[1,"tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-tastyBlue","tw-mb-1.5"],[1,"tw-text-lg","tw-font-semibold","tw-text-ink","tw-leading-snug","tw-max-w-xs"],[1,"tw-flex","tw-flex-col","tw-border-t","tw-border-gray-eee"],["href","tel:+48504062747",1,"tw-gri
1d","tw-grid-cols-[40px_1fr_20px]","desktop:tw-grid-cols-[40px_60px_1fr_20px]","tw-items-center","tw-gap-4","tw-py-4","tw-border-b","tw-border-gray-eee","tw-text-ink","hover:tw-bg-gray-f9f9f9","tw-transition-colors"],[1,"tw-w-10","tw-h-10","tw-bg-tastyBlue-10","tw-text-tastyBlue-dark","tw-inline-flex","tw-items-center","tw-justify-center"],["matIcon","phone",2,"--width","20px","--height","20px"],[1,"tw-hidden","desktop:tw-inline","tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-wider","tw-text-gray-60"],[1,"tw-font-semibold","tw-text-lg","tw-tabular-nums","tw-min-w-0","tw-truncate"],["matIcon","arrow_outward",1,"tw-text-gray-30",2,"--width","20px","--height","20px"],["href","mailto:[email protected]",1,"tw-grid","tw-grid-cols-[40px_1fr_20px]","desktop:tw-grid-cols-[40px_60px_1fr_20px]","tw-items-center","tw-gap-4","tw-py-4","tw-text-ink","hover:tw-bg-gray-f9f9f9","tw-transition-colors"],["matIcon","local_post_office",2,"--width","20px","--height","20px"],[1,"tw-font-semibold","tw-text-lg","tw-min-w-0","tw-truncate"],["src","https://s3.eu-central-1.amazonaws.com/static.nofluffjobs.com/nfj/assets/images/flags-countries/HU.svg","alt","",1,"tw-w-14","tw-h-14","tw-bg-gray-f9f9f9","tw-border","tw-border-gray-eee","tw-object-cover"],["href","tel:+36301550341",1,"tw-grid","tw-grid-cols-[40px_1fr_20px]","desktop:tw-grid-cols-[40px_60px_1fr_20px]","tw-items-center","tw-gap-4","tw-py-4","tw-border-b","tw-border-gray-eee","tw-text-ink","hover:tw-bg-gray-f9f9f9","tw-transition-colors"],["href","mailto:[email protected]",1,"tw-grid","tw-grid-cols-[40px_1fr_20px]","desktop:tw-grid-cols-[40px_60px_1fr_20px]","tw-items-center","tw-gap-4","tw-py-4","tw-text-ink","hover:tw-bg-gray-f9f9f9","tw-transition-colors"]],template:function(a,i){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"aside")(4,"div",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"h2",4),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"p",5),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.nVh(13,qm,32,12,"div",6),e.nVh(14,Km,30,12,"div",6),e.k0s()()()),2&a&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"SCREENING.CONFERENCE.LANDING.SALES.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"SCREENING.CONFERENCE.LANDING.SALES.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"SCREENING.CONFERENCE.LANDING.SALES.DESCRIPTION")," "),e.R7$(2),e.vxM(i.showPl()?13:-1),e.R7$(),e.vxM(i.showHu()?14:-1))},dependencies:[ze.W,_t.w,ve.D9],styles:["[_nghost-%COMP%]{display:block}"]}))}return o(),n})();const ef={name:"screening_equalizer",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12h2v3H2zm4-4h2v11H6zm4-4h2v19h-2zm4 2h2v15h-2zm4 4h2v7h-2zm4 2h2v3h-2z"/></svg>'};let tf=(()=>{var o;class n{constructor(){this.videoUrl="https://static.nofluffjobs.com/videos/AI+Screener+dla+rekruter%C3%B3w+(z+napisami).mp4",this.modalConfig={hideHeader:!0,hideFooter:!0}}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-landing-movie-modal"]],decls:3,vars:2,consts:[["name","screening-landing-movie-modal",1,"tw-block","tw-bg-black",3,"config"],["modalBody","",1,"tw-flex","tw-items-center","tw-justify-center","tw-bg-black"],["controls","","autoplay","","playsinline","","controlsList","nodownload",1,"tw-block","tw-mx-auto","tw-w-full","tw-h-auto","tw-max-h-[80vh]","tw-object-contain",3,"src"]],template:function(a,i){1&a&&(e.j41(0,"common-material-modal",0)(1,"div",1),e.nrm(2,"video",2),e.k0s()()),2&a&&(e.Y8G("config",i.modalConfig),e.R7$(2),e.Y8G("src",i.videoUrl,e.B4B))},dependencies:[on.K],styles:["[_nghost-%COMP%]{display:block}"]}))}return o(),n})();function nf(o,n){if(1&o){const t=e.RV6();e.j41(0,"div",18)(1,"button",19),e.bIt("click",function(){h.eBV(t);const a=e.XpG();return h.Njj(a.openMovieModal())}),e.nrm(2,"inline-icon",20),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&o&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"SCREENING.CONFERENCE.LANDING.WHY.VIDEO_CTA")," "))}let of=(()=>{var o;class n{constructor(){this.dialog=(0,h.WQX)(rt.MatDialog),this.region=(0,Te.hFB)(),this.isPl=(0,kt.EW)(()=>(this.region()??"").toLowerCase().startsWith("pl")),(0,gt.r)([he.mdIconsDarkMode,he.mdIconsForumOutline,he.mdIconsPlayArrow,he.mdIconsTranslate]),(0,Ot.N)([ef])}openMovieModal(){this.dialog.open(tf,{panelClass:["default-modal"],autoFocus:!1})}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-landing-why"]],inputs:{region:[1,"region"]},decls:59,vars:43,consts:[["id","why",1,"tw-py-16","desktop:tw-py-20","tw-bg-white","tw-border-b","tw-border-gray-eee"],[1,"tw-container","tw-mx-auto","tw-px-5"],[1,"tw-mb-12"],[1,"tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-tastyBlue","tw-mb-3"],[1,"tw-text-3xl","desktop:tw-text-4xl","tw-font-bold","tw-tracking-tight","tw-text-ink","tw-max-w-3xl","tw-text-balance"],[1,"tw-border","t
1w-border-gray-eee","tw-bg-white","tw-grid","tw-grid-cols-1","md:tw-grid-cols-2","desktop:tw-grid-cols-4"],[1,"tw-p-8","tw-relative","tw-flex","tw-flex-col","tw-gap-4","tw-border-b","md:tw-border-r","tw-border-gray-eee","desktop:tw-border-b-0","last:tw-border-r-0"],[1,"tw-absolute","tw-top-2","tw-right-2","tw-text-[10px]","tw-font-semibold","tw-tracking-widest","tw-uppercase","tw-text-gray-60"],[1,"eyebrow-mark","tw-w-14","tw-h-14","tw-inline-flex","tw-items-center","tw-justify-center","tw-text-white"],["commonIcon","screening_equalizer",2,"--width","28px","--height","28px"],[1,"tw-text-xl","tw-font-bold","tw-text-ink","tw-m-0"],[1,"tw-text-15","tw-leading-relaxed","tw-text-gray-60","tw-m-0"],[1,"tw-p-8","tw-relative","tw-flex","tw-flex-col","tw-gap-4","tw-border-b","md:tw-border-r","tw-border-gray-eee","desktop:tw-border-b-0"],[1,"tw-w-14","tw-h-14","tw-inline-flex","tw-items-center","tw-justify-center","tw-border","tw-border-gray-eee","tw-text-ink"],["matIcon","dark_mode",2,"--width","28px","--height","28px"],["matIcon","forum_outline",2,"--width","28px","--height","28px"],[1,"tw-p-8","tw-relative","tw-flex","tw-flex-col","tw-gap-4"],["matIcon","translate",2,"--width","28px","--height","28px"],[1,"tw-mt-8","tw-flex","tw-justify-center"],["type","button","data-cy","screening-landing-why-video",1,"tw-btn","tw-btn-primary","tw-btn-sm","tw-inline-flex","tw-items-center","tw-gap-2",3,"click"],["matIcon","play_arrow",2,"--width","20px","--height","20px"]],template:function(a,i){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"h2",4),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",5)(10,"div",6)(11,"span",7),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",8),e.nrm(15,"inline-icon",9),e.k0s(),e.j41(16,"h4",10),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"p",11),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"div",12)(23,"span",7),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"div",13),e.nrm(27,"inline-icon",14),e.k0s(),e.j41(28,"h4",10),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"p",11),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"div",12)(35,"span",7),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.j41(38,"div",13),e.nrm(39,"inline-icon",15),e.k0s(),e.j41(40,"h4",10),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.j41(43,"p",11),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"div",16)(47,"span",7),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"div",13),e.nrm(51,"inline-icon",17),e.k0s(),e.j41(52,"h4",10),e.EFF(53),e.nI1(54,"translate"),e.k0s(),e.j41(55,"p",11),e.EFF(56),e.nI1(57,"translate"),e.k0s()()(),e.nVh(58,nf,5,3,"div",18),e.k0s()()),2&a&&(e.R7$(4),e.SpI(" ",e.bMT(5,15,"SCREENING.CONFERENCE.LANDING.WHY.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(8,17,"SCREENING.CONFERENCE.LANDING.WHY.TITLE")," "),e.R7$(5),e.JRh(e.bMT(13,19,"SCREENING.CONFERENCE.LANDING.WHY.CARD_1_TAG")),e.R7$(5),e.SpI(" ",e.bMT(18,21,"SCREENING.CONFERENCE.LANDING.WHY.CARD_1_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(21,23,"SCREENING.CONFERENCE.LANDING.WHY.CARD_1_DESC")," "),e.R7$(4),e.JRh(e.bMT(25,25,"SCREENING.CONFERENCE.LANDING.WHY.CARD_2_TAG")),e.R7$(5),e.SpI(" ",e.bMT(30,27,"SCREENING.CONFERENCE.LANDING.WHY.CARD_2_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(33,29,"SCREENING.CONFERENCE.LANDING.WHY.CARD_2_DESC")," "),e.R7$(4),e.JRh(e.bMT(37,31,"SCREENING.CONFERENCE.LANDING.WHY.CARD_3_TAG")),e.R7$(5),e.SpI(" ",e.bMT(42,33,"SCREENING.CONFERENCE.LANDING.WHY.CARD_3_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(45,35,"SCREENING.CONFERENCE.LANDING.WHY.CARD_3_DESC")," "),e.R7$(4),e.JRh(e.bMT(49,37,"SCREENING.CONFERENCE.LANDING.WHY.CARD_4_TAG")),e.R7$(5),e.SpI(" ",e.bMT(54,39,"SCREENING.CONFERENCE.LANDING.WHY.CARD_4_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(57,41,"
1SCREENING.CONFERENCE.LANDING.WHY.CARD_4_DESC")," "),e.R7$(2),e.vxM(i.isPl()?58:-1))},dependencies:[ze.W,_t.w,ht.I,ve.D9],styles:["[_nghost-%COMP%]{display:block;--%NS%grad-spring: linear-gradient( 110deg, #5b9bff 0%, #8b7cff 32%, #b89bff 58%, #a6c1ff 82%, #b6d4ff 100% )}.eyebrow-mark[_ngcontent-%COMP%]{background:var(--%NS%grad-spring)}"]}))}return o(),n})(),rf=(()=>{var o;class n{constructor(){(0,gt.r)([he.mdIconsAccessTime,he.mdIconsAdd,he.mdIconsArrowForward,he.mdIconsArrowOutward,he.mdIconsAssessment,he.mdIconsCode,he.mdIconsFolder,he.mdIconsHeadset,he.mdIconsList,he.mdIconsLocationOn,he.mdIconsMicOutline,he.mdIconsSecurity,he.mdIconsVerifiedUser]),(0,Ot.N)([Hm,Zm,Ym,zm])}static#e=o=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=e.VBU({type:n,selectors:[["common-screening-conference-page"]],decls:335,vars:220,consts:[[1,"hero","tw-relative","tw-overflow-hidden","tw-text-white","desktop:tw-min-h-screen","tw-flex","tw-items-center","tw-min-h-auto","tw-py-16","desktop:tw-py-20"],["aria-hidden","true",1,"tw-absolute","tw-inset-0","tw-pointer-events-none","tw-mix-blend-screen","tw-bg-[radial-gradient(70%_50%_at_18%_25%,rgba(120,170,255,0.45)_0%,transparent_60%),radial-gradient(50%_40%_at_80%_80%,rgba(180,130,255,0.4)_0%,transparent_60%)]"],[1,"tw-relative","tw-z-10","tw-container","tw-mx-auto","tw-px-5","desktop:tw-mb-[100px]","tw-mb-[50px]"],[1,"tw-grid","tw-grid-cols-12","desktop:tw-grid-cols-12","desktop:tw-gap-x-16","tw-items-center"],[1,"desktop:tw-col-span-6","tw-col-span-12","tw-h-full"],[1,"tw-font-bold","tw-text-4xl","desktop:tw-text-4xl","tw-leading-[1.05]","tw-tracking-tight","tw-mb-5","tw-text-white","tw-text-balance"],[1,"tw-text-lg","desktop:tw-text-xl","tw-leading-snug","tw-mb-4","tw-text-white","tw-max-w-xl"],[1,"tw-text-base","tw-leading-relaxed","tw-mb-7","tw-text-white/80"],[1,"tw-flex","tw-flex-wrap","tw-gap-3","tw-text-sm","tw-font-medium","tw-text-white"],[1,"tw-inline-flex","tw-items-center","tw-gap-2","tw-px-3","tw-py-1.5","tw-bg-white/10","tw-border","tw-border-white/20","tw-rounded-full","tw-backdrop-blur-sm"],["matIcon","mic_outline",2,"--width","16px","--height","16px"],["matIcon","verified_user",2,"--width","16px","--height","16px"],["commonIcon","screening_bot",2,"--width","16px","--height","16px"],["role","note",1,"tw-text-xs","desktop:tw-block","tw-hidden","tw-mt-5","tw-leading-5","tw-text-gray-60","tw-bg-white","tw-border","tw-border-tastyBlue/20","tw-rounded-md","tw-p-3"],[1,"desktop:tw-col-span-6","tw-col-span-12","desktop:tw-mt-0","tw-mt-7"],[1,"tw-px-5","tw-pt-12","tw-text-center","tw-rounded-t-lg","tw-bg-gray-f9f9f9"],[1,"tw-text-xl","tw-font-bold","tw-text-ink","tw-mb-2"],[1,"tw-text-sm","tw-text-gray-60","tw-mb-0"],[1,"tw-w-full","tw-d-block",3,"showAiDemoNotice","redirectAfterStep1"],[1,"tw-p-5","tw-block","tw-bg-white","tw-rounded-b-lg"],["role","note",1,"tw-text-xs","desktop:tw-hidden","tw-block","tw-mt-5","tw-leading-5","tw-text-gray-60","tw-bg-white","tw-border","tw-border-tastyBlue/20","tw-rounded-md","tw-p-3"],["id","ecosystem",1,"tw-py-16","desktop:tw-py-20","tw-bg-white","tw-border-b","tw-border-gray-eee"],[1,"tw-container","tw-mx-auto","tw-px-5"],[1,"tw-mb-8"],[1,"tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-tastyBlue","tw-mb-3"],[1,"tw-text-3xl","desktop:tw-text-4xl","tw-font-bold","tw-tracking-tight","tw-text-ink","tw-max-w-3xl","tw-text-balance"],[1,"tw-flex","tw-flex-col","desktop:tw-flex-row","desktop:tw-items-end","desktop:tw-justify-between","tw-gap-6","tw-mb-8"],[1,"tw-text-lg","tw-text-gray-60","tw-max-w-2xl","tw-m-0"],["href","https://nofluffjobs.com/employers",1,"tw-inline-flex","tw-items-center","tw-gap-2","tw-text-tastyBlue","tw-font-semibold","tw-text-sm","tw-border-b-2","tw-border-tastyBlue","tw-pb-0.5"],["matIcon","arrow_forward",2,"--width","16px","--height","16px"],[1,"tw-border","tw-border-gray-eee","tw-grid","tw-grid-cols-1","md:tw-grid-cols-2","desktop:tw-grid-cols-4"],[1,"tw-bg-ink","tw-text-white","tw-p-7","tw-flex","tw-flex-col","tw-gap-3","tw-relative","tw-min-h-[200px]","tw-border-b","md:tw-border-r","tw-border-gray-eee","desktop:tw-border-b-0"],[1,"tw-absolute","tw-top-5","tw-right-5","tw-text-[10px]","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-white","tw-bg-white/10","tw-px-2","tw-py-1"],[1,"eyebrow-mark","tw-w-10","tw-h-10","tw-inline-flex","tw-items-center","tw-justify-center","tw-text-white"],["matIcon","mic_outline",2,"--width","20px","--height","20px"],[1,"tw-text-base","tw-font-bold","tw-m-0"],[1,"tw-text-13","tw-leading-relaxed","tw-text-white/70","tw-m-0"],[1,"tw-bg-white","tw-p-7","tw-flex","tw-flex-col","tw-gap-3","tw-min-h-[200px]","tw-border-b","md:tw-border-r","tw-border-gray-eee","desktop:tw-border-b-0"],[1,"tw-w-10","tw-h-10","tw-inline-flex","tw-items-center","tw-justify-center","tw-border","t
1w-border-gray-eee","tw-text-ink"],["matIcon","folder",2,"--width","20px","--height","20px"],[1,"tw-text-base","tw-font-bold","tw-text-ink","tw-m-0"],[1,"tw-text-13","tw-leading-relaxed","tw-text-gray-60","tw-m-0"],["matIcon","list",2,"--width","20px","--height","20px"],[1,"tw-bg-white","tw-p-7","tw-flex","tw-flex-col","tw-gap-3","tw-min-h-[200px]","tw-border-b","tw-border-gray-eee","desktop:tw-border-b-0"],["commonIcon","screening_doc_check",2,"--width","20px","--height","20px"],["commonIcon","screening_sparkles",2,"--width","20px","--height","20px"],["matIcon","assessment",2,"--width","20px","--height","20px"],["matIcon","headset",2,"--width","20px","--height","20px"],[1,"tw-bg-white","tw-p-7","tw-flex","tw-flex-col","tw-gap-3","tw-min-h-[200px]"],["matIcon","security",2,"--width","20px","--height","20px"],["id","jobboard",1,"tw-py-16","desktop:tw-py-20","tw-bg-white","tw-border-b","tw-border-gray-eee"],[1,"tw-mb-12"],[1,"tw-mt-3","tw-text-lg","tw-text-gray-60","tw-max-w-2xl"],[1,"tw-flex","tw-flex-col","tw-gap-7","tw-max-w-3xl"],[1,"tw-grid","tw-grid-cols-[56px_1fr]","tw-gap-5","tw-items-start"],[1,"tw-w-14","tw-h-14","tw-bg-tastyBlue-10","tw-text-tastyBlue-dark","tw-border","tw-border-gray-eee","tw-inline-flex","tw-items-center","tw-justify-center"],["commonIcon","screening_screen_star",2,"--width","24px","--height","24px"],[1,"tw-text-lg","tw-font-bold","tw-text-ink","tw-mt-1","tw-mb-1.5"],[1,"tw-text-15","tw-leading-relaxed","tw-text-gray-60","tw-m-0"],["matIcon","code",2,"--width","24px","--height","24px"],[1,"tw-text-lg","tw-font-bold","tw-text-ink","tw-mt-1","tw-mb-1.5","tw-flex","tw-items-center","tw-gap-2.5","tw-flex-wrap"],[1,"tw-inline-flex","tw-items-center","tw-px-2","tw-py-0.5","tw-bg-juicyOrange-10","tw-text-juicyOrange-dark","tw-text-[11px]","tw-font-semibold","tw-uppercase","tw-tracking-wider"],[1,"tw-text-15","tw-leading-relaxed","tw-text-gray-60","tw-m-0","tw-max-w-lg"],["matIcon","location_on",2,"--width","24px","--height","24px"],[1,"tw-flex","tw-flex-wrap","tw-items-center","tw-gap-5","tw-pt-7","tw-mt-3","tw-border-t","tw-border-gray-eee"],["href","https://nofluffjobs.com","target","_blank","rel","noopener",1,"tw-inline-flex","tw-items-center","tw-gap-2.5","tw-bg-tastyBlue","hover:tw-bg-tastyBlue-dark","tw-text-white","tw-px-5","tw-py-3.5","tw-font-semibold","tw-text-sm","tw-transition-colors"],[1,"tw-text-13","tw-text-gray-60"],[1,"tw-py-16","desktop:tw-py-20","tw-bg-ink","tw-text-white"],[1,"tw-text-xs","tw-font-semibold","tw-uppercase","tw-tracking-widest","tw-text-white/60","tw-mb-3"],[1,"tw-text-3xl","desktop:tw-text-4xl","tw-font-bold","tw-tracking-tight","tw-text-white","tw-max-w-3xl","tw-text-balance"],[1,"tw-mt-3","tw-text-lg","tw-text-white/70","tw-max-w-2xl"],[1,"tw-grid","tw-grid-cols-1","desktop:tw-grid-cols-3","tw-border-y","tw-border-white/20"],[1,"desktop:tw-p-12","tw-flex","tw-flex-col","tw-gap-2","tw-border-b","desktop:tw-border-b-0","desktop:tw-border-r","tw-border-white/20"],[1,"stat-num","tw-text-6xl","desktop:tw-text-7xl","tw-text-white"],[1,"tw-text-15","tw-text-white/70","tw-max-w-[220px]"],[1,"desktop:tw-p-12","tw-flex","tw-flex-col","tw-gap-2"],[1,"stat-num","tw-text-6xl","desktop:tw-text-7xl"],[1,"gradient-accent"],[1,"tw-flex","tw-flex-col","tw-items-start","desktop:tw-flex-row","desktop:tw-items-center","tw-justify-between","tw-gap-5","tw-pt-12","tw-flex-wrap"],["href","https://nofluffjobs.com/employers","target","_blank","rel","noopener",1,"tw-inline-flex","tw-items-center","tw-gap-3","tw-bg-white","hover:tw-bg-gray-eee","tw-text-ink","tw-px-6","tw-py-4","tw-font-bold","tw-text-15","tw-tracking-wider","tw-border","tw-border-white","tw-transition-colors"],[1,"tw-inline-flex","tw-items-center","tw-justify-center","tw-w-7","tw-h-7","tw-bg-ink","tw-text-white"],["matIcon","arrow_outward",2,"--width","16px","--height","16px"],[1,"tw-text-13","tw-text-white/50","tw-tracking-wider"],[1,"tw-py-20","tw-bg-white","tw-border-b","tw-border-gray-eee","tw-relative","tw-overflow-hidden"],[1,"gradient-soft-overlay","tw-absolute","tw-inset-0","tw-pointer-events-none"],[1,"tw-relative","tw-container","tw-grid","tw-grid-cols-12","desktop:tw-gap-10","tw-gap-0","tw-mx-auto","tw-px-5"],[1,"desktop:tw-col-span-6","tw-col-span-12","desktop:tw-mb-0","tw-mb-5"],[1,"tw-text-4xl","desktop:tw-text-5xl","t
1w-font-bold","tw-tracking-tight","tw-text-ink","tw-mb-4","tw-text-balance"],[1,"tw-text-lg","tw-text-gray-60","tw-mb-7","tw-max-w-lg"],[1,"tw-flex","tw-flex-wrap","tw-gap-3","tw-text-sm","tw-font-medium","tw-text-ink"],[1,"tw-inline-flex","tw-items-center","tw-gap-2","tw-text-tastyBlue"],["matIcon","access_time",2,"--width","16px","--height","16px"],[1,"tw-text-gray-30"],[1,"desktop:tw-col-span-6","tw-col-span-12","tw-w-full"],[1,"tw-block","tw-w-full",3,"showAiDemoNotice","redirectAfterStep1"],["id","faq",1,"tw-py-16","desktop:tw-py-20","tw-bg-white"],[1,"tw-grid","tw-grid-cols-1","desktop:tw-grid-cols-[1fr_2fr]","tw-gap-16"],[1,"tw-text-3xl","desktop:tw-text-4xl","tw-font-bold","tw-tracking-tight","tw-text-ink","tw-text-balance"],[1,"tw-mt-3","tw-text-lg","tw-text-gray-60"],[1,"tw-flex","tw-flex-col","tw-border-t","tw-border-gray-eee"],["open","",1,"faq-item","tw-group","tw-border-b","tw-border-gray-eee","tw-py-6","tw-cursor-pointer"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-gap-6","tw-font-semibold","tw-text-lg","tw-text-ink"],["matIcon","add",1,"faq-toggle","tw-text-tastyBlue","tw-transition-transform",2,"--width","24px","--height","24px"],[1,"tw-text-15","tw-leading-relaxed","tw-text-gray-60","tw-max-w-2xl","tw-pt-3.5"],[1,"faq-item","tw-group","tw-border-b","tw-border-gray-eee","tw-py-6","tw-cursor-pointer"],["href","mailto:[email protected]",1,"tw-text-tastyBlue","tw-underline"]],template:function(a,i){1&a&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"common-screening-wave-animation"),e.j41(3,"div",2)(4,"div",3)(5,"article",4)(6,"h1",5),e.EFF(7),e.nI1(8,"translate"),e.nrm(9,"br"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",6),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"p",7),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"div",8)(19,"span",9),e.nrm(20,"inline-icon",10),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"span",9),e.nrm(24,"inline-icon",11),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"span",9),e.nrm(28,"inline-icon",12),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"aside",13),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"div",14)(35,"header",15)(36,"h1",16),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.j41(39,"p",17),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.nrm(42,"common-screening-conference-form",18)(43,"common-auth-disclaimer",19),e.j41(44,"aside",20),e.EFF(45),e.nI1(46,"translate"),e.k0s()()()()(),e.nrm(47,"common-screening-landing-how")(48,"common-screening-landing-why"),e.j41(49,"section",21)(50,"div",22)(51,"div",23)(52,"div",24),e.EFF(53),e.nI1(54,"translate"),e.k0s(),e.j41(55,"h2",25),e.EFF(56),e.nI1(57,"translate"),e.k0s()(),e.j41(58,"div",26)(59,"p",27),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.j41(62,"a",28),e.EFF(63),e.nI1(64,"translate"),e.nrm(65,"inline-icon",29),e.k0s()(),e.j41(66,"div",30)(67,"div",31)(68,"span",32),e.EFF(69),e.nI1(70,"translate"),e.k0s(),e.j41(71,"div",33),e.nrm(72,"inline-icon",34),e.k0s(),e.j41(73,"h5",35),e.EFF(74),e.nI1(75,"translate"),e.k0s(),e.j41(76,"p",36),e.EFF(77),e.nI1(78,"translate"),e.k0s()(),e.j41(79,"div",37)(80,"div",38),e.nrm(81,"inline-icon",39),e.k0s(),e.j41(82,"h5",40),e.EFF(83),e.nI1(84,"translate"),e.k0s(),e.j41(85,"p",41),e.EFF(86),e.nI1(87,"translate"),e.k0s()(),e.j41(88,"div",37)(89,"div",38),e.nrm(90,"inline-icon",42),e.k0s(),e.j41(91,"h5",40),e.EFF(92),e.nI1(93,"translate"),e.k0s(),e.j41(94,"p",41),e.EFF(95),e.nI1(96,"translate"),e.k0s()(),e.j41(97,"div",43)(98,"div",38),e.nrm(99,"inline-icon",44),e.k0s(),e.j41(100,"h5",40),e.EFF(101),e.nI1(102,"translate"),e.k0s(),e.j41(103,"p",41),e.EFF(104),e.nI1(105,"translate"),e.k0s()(),e.j41(106,"div",37)(107,"div",38),e.nrm(108,"inline-icon",45),e.k0s(),e.j41(109,"h5",40),e.EFF(110),e.nI1(111,"translate"),e.k0s(),e.j41(112,"p",41),e.EFF(113),e.nI1(114,"translate"),e.k0s()(),e.j41(115,"div",37)(116,"div",38),e.nrm(117,"inline-icon",46),e.k0s(),e.j41(118,"h5",40),e.EFF(119),e.nI1(120,"translate"),e.k0s(),e.j41(121,"p",41),e.EFF(122),e.nI1(123,"translate"),e.k0s()(),e.j41(124,"div",37)(125,"div",38),e.nrm(126,"inline-icon",47),e.k0s(),e.j41(127,"h5",40),e.EFF(128),e.nI1(129,"translate"),e.k0s(),e.j41(130,"p",41),e.EFF(131),e.nI1(132,"translate"),e.k0s()(),e.j41(133,"div",48)(134,"div",38),e.nrm(135,"inline-icon",49),e.k0s(),e.j41(136,"h5",40),e.EFF(137),e.nI1(138,"translate"),e.k0s(),e.j41(139,"p",41),e.EFF(140),e.nI1(141,"translate"),e.k0s()()()()(),e.j41(142,"section",50)(143,"div",22)(144,"div",51)(145,"div",24),e.EFF(146),e.nI1(147,"translate"),e.k0s(),e.j41(148,"h2",25),e.EFF(149),e.nI1(150,"translate"),e.k0s(),e.j41(151,"p",52),e.EFF(152),e.nI1(153,"translate"),e.k0s()(),e.j41(154,"div",53)(155,"div",54)(156,"div",55),e.nrm(157,"inline-icon",56),e.k0s(),e.j41(158,"div")(159,"h4",57),e.EFF(160),e.nI1(161,"translate"),e.k0s(),e.j41(162,"p",58),e.EFF(163),e.nI1(164,"translate"),e.k0s()()(),e.j41(165,"div",54)(166,"div",55),e.nrm(167,"inline-icon",59),e.k0s(),e.j41(168,"div")(169,"h4",60),e.EFF(170),e.nI1(171,"translate"),e.j41(172,"span",61),e.EFF(173),e.nI1(174,"translate"),e.k0s()(),e.j41(175,"p",62),e.EFF(176),e.nI1(177,"translate"),e.k0s()()(),e.j41(178,"div",54)(179,"div",55),e.nrm(180,"inline-icon",63),e.k0s(),e.j41(181,"div")(182,"h4",57),e.EFF(183),e.nI1(184,"translate"),e.k0s(),e.j41(185,"p",62),e.EFF(186),e.nI1(187,"translate"),e.k0s()()(),e.j41(188,"div",64)(189,"a",65)(190,"span"),e.EFF(191),e.nI1(192,"translate"),e.k0s(),e.nrm(193,"inline-icon",29),e.k0s(),e.j41(194,"span",66),e.EFF(195),e.nI1(196,"translate"),e.k0s()()()()(),e.j41(197,"section",67)(198,"div",22)(199,"div",51)(200,"div",68),e.EFF(201),e.nI1(202,"translate"),e.k0s(),e.j41(203,"h2",69),e.EFF(204),e.nI1(205,"translate"),e.k0s(),e.j41(206,"p",70),e.EFF(207),e.nI1(208,"translate"),e.k0s()(),e.j41(209,"div",71)(210,"div",72)(211,"div",73),e.EFF(212," 10+ "),e.k0s(),e.j41(213,"div",74),e.
1EFF(214),e.nI1(215,"translate"),e.k0s()(),e.j41(216,"div",72)(217,"div",73),e.EFF(218," 500+ "),e.k0s(),e.j41(219,"div",74),e.EFF(220),e.nI1(221,"translate"),e.k0s()(),e.j41(222,"div",75)(223,"div",76)(224,"span",77),e.EFF(225,"3.4M"),e.k0s()(),e.j41(226,"div",74),e.EFF(227),e.nI1(228,"translate"),e.k0s()()(),e.j41(229,"div",78)(230,"a",79)(231,"span"),e.EFF(232),e.nI1(233,"translate"),e.k0s(),e.j41(234,"span",80),e.nrm(235,"inline-icon",81),e.k0s()(),e.j41(236,"span",82),e.EFF(237,"nofluffjobs.com/employers"),e.k0s()()()(),e.nrm(238,"common-screening-landing-sales"),e.j41(239,"section",83),e.nrm(240,"div",84),e.j41(241,"div",85)(242,"article",86)(243,"div",24),e.EFF(244),e.nI1(245,"translate"),e.k0s(),e.j41(246,"h2",87),e.EFF(247),e.nI1(248,"translate"),e.k0s(),e.j41(249,"p",88),e.EFF(250),e.nI1(251,"translate"),e.k0s(),e.j41(252,"div",89)(253,"span",90),e.nrm(254,"inline-icon",91),e.EFF(255),e.nI1(256,"translate"),e.k0s(),e.j41(257,"span",92),e.EFF(258,"\xb7"),e.k0s(),e.j41(259,"span",90),e.nrm(260,"inline-icon",10),e.EFF(261),e.nI1(262,"translate"),e.k0s()(),e.j41(263,"aside",13),e.EFF(264),e.nI1(265,"translate"),e.k0s()(),e.j41(266,"div",93),e.nrm(267,"common-screening-conference-form",94)(268,"common-auth-disclaimer",19),e.j41(269,"aside",20),e.EFF(270),e.nI1(271,"translate"),e.k0s()()()(),e.j41(272,"section",95)(273,"div",22)(274,"div",96)(275,"div")(276,"div",24),e.EFF(277),e.nI1(278,"translate"),e.k0s(),e.j41(279,"h2",97),e.EFF(280),e.nI1(281,"translate"),e.k0s(),e.j41(282,"p",98),e.EFF(283),e.nI1(284,"translate"),e.k0s()(),e.j41(285,"div",99)(286,"details",100)(287,"summary",101)(288,"span"),e.EFF(289),e.nI1(290,"translate"),e.k0s(),e.nrm(291,"inline-icon",102),e.k0s(),e.j41(292,"p",103),e.EFF(293),e.nI1(294,"translate"),e.k0s()(),e.j41(295,"details",104)(296,"summary",101)(297,"span"),e.EFF(298),e.nI1(299,"translate"),e.k0s(),e.nrm(300,"inline-icon",102),e.k0s(),e.j41(301,"p",103),e.EFF(302),e.nI1(303,"translate"),e.k0s()(),e.j41(304,"details",104)(305,"summary",101)(306,"span"),e.EFF(307),e.nI1(308,"translate"),e.k0s(),e.nrm(309,"inline-icon",102),e.k0s(),e.j41(310,"p",103),e.EFF(311),e.nI1(312,"translate"),e.k0s()(),e.j41(313,"details",104)(314,"summary",101)(315,"span"),e.EFF(316),e.nI1(317,"translate"),e.k0s(),e.nrm(318,"inline-icon",102),e.k0s(),e.j41(319,"p",103),e.EFF(320),e.nI1(321,"translate"),e.k0s()(),e.j41(322,"details",104)(323,"summary",101)(324,"span"),e.EFF(325),e.nI1(326,"translate"),e.k0s(),e.nrm(327,"inline-icon",102),e.k0s(),e.j41(328,"p",103),e.EFF(329),e.nI1(330,"translate"),e.j41(331,"a",105),e.EFF(332,"[email protected]"),e.k0s(),e.EFF(333),e.nI1(334,"translate"),e.k0s()()()()()()),2&a&&(e.R7$(7),e.SpI(" ",e.bMT(8,76,"SCREENING.CONFERENCE.LANDING.HERO.TITLE_LINE_1")," "),e.R7$(3),e.SpI(" ",e.bMT(11,78,"SCREENING.CONFERENCE.LANDING.HERO.TITLE_LINE_2")," "),e.R7$(3),e.SpI(" ",e.bMT(14,80,"SCREENING.CONFERENCE.LANDING.HERO.LEAD")," "),e.R7$(3),e.SpI(" ",e.bMT(17,82,"SCREENING.CONFERENCE.LANDING.HERO.DESCRIPTION")," "),e.R7$(5),e.SpI(" ",e.bMT(22,84,"SCREENING.CONFERENCE.LANDING.HERO.TAG_VOICE")," "),e.R7$(4),e.SpI(" ",e.bMT(26,86,"SCREENING.CONFERENCE.LANDING.HERO.TAG_GDPR")," "),e.R7$(4),e.SpI(" ",e.bMT(30,88,"SCREENING.CONFERENCE.LANDING.HERO.TAG_SUMMARY")," "),e.R7$(3),e.SpI(" ",e.bMT(33,90,"SCREENING.CONFERENCE.AI_DEMO_NOTICE")," "),e.R7$(5),e.SpI(" ",e.bMT(38,92,"SCREENING.CONFERENCE.LANDING.HERO.FORM_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(41,94,"SCREENING.CONFERENCE.LANDING.HERO.FORM_SUBTITLE")," "),e.R7$(2),e.Y8G("showAiDemoNotice",!1)("redirectAfterStep1",!0),e.R7$(3),e.SpI(" ",e.bMT(46,96,"SCREENING.CONFERENCE.AI_DEMO_NOTICE")," "),e.R7$(8),e.SpI(" ",e.bMT(54,98,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(57,100,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.TITLE")," "),e.R7$(4),e.SpI(" ",e.bMT(61,102,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.DESCRIPTION")," "),e.R7$(3),e.SpI(" ",e.bMT(64,104,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.LEARN_MORE")," "),e.R7$(6),e.JRh(e.bMT(70,106,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ALICE_BADGE")),e.R7$(5),e.SpI(" ",e.bMT(75,108,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ALICE_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(78,110,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ALICE_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(84,112,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.BOARD_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(87,114,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.BOARD_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(93,116,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ATS_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(96,118,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ATS_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(102,120,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.CV_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(105,122,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.CV_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(111,124,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ASSISTANT_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(114,126,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.ASSISTANT_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(120,128,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.INSIGHTS_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(123,130,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.INSIGHTS_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(129,132,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.SUPPORT_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(132,134,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.SUPPORT_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(138,136,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.EB_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(141,138,"SCREENING.CONFERENCE.LANDING.ECOSYSTEM.EB_DESC")," "),e.R7$(6),e.SpI(" ",e.bMT(147,140,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(150,142,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(153,144,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.DESCRIPTION")," "),e.R7$(8),e.SpI(" ",e.bMT(161,146,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_1_TIT
1LE")," "),e.R7$(3),e.SpI(" ",e.bMT(164,148,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_1_DESC")," "),e.R7$(7),e.SpI(" ",e.bMT(171,150,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_2_TITLE")," "),e.R7$(3),e.JRh(e.bMT(174,152,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_2_NEW_BADGE")),e.R7$(3),e.SpI(" ",e.bMT(177,154,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_2_DESC")," "),e.R7$(7),e.SpI(" ",e.bMT(184,156,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_3_TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(187,158,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.FEATURE_3_DESC")," "),e.R7$(5),e.JRh(e.bMT(192,160,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.CTA")),e.R7$(4),e.JRh(e.bMT(196,162,"SCREENING.CONFERENCE.LANDING.JOB_BOARD.CTA_NOTE")),e.R7$(6),e.SpI(" ",e.bMT(202,164,"SCREENING.CONFERENCE.LANDING.STATS.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(205,166,"SCREENING.CONFERENCE.LANDING.STATS.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(208,168,"SCREENING.CONFERENCE.LANDING.STATS.DESCRIPTION")," "),e.R7$(7),e.SpI(" ",e.bMT(215,170,"SCREENING.CONFERENCE.LANDING.STATS.STAT_1_LABEL")," "),e.R7$(6),e.SpI(" ",e.bMT(221,172,"SCREENING.CONFERENCE.LANDING.STATS.STAT_2_LABEL")," "),e.R7$(7),e.SpI(" ",e.bMT(228,174,"SCREENING.CONFERENCE.LANDING.STATS.STAT_3_LABEL")," "),e.R7$(5),e.JRh(e.bMT(233,176,"SCREENING.CONFERENCE.LANDING.STATS.CTA")),e.R7$(12),e.SpI(" ",e.bMT(245,178,"SCREENING.CONFERENCE.LANDING.FINAL_CTA.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(248,180,"SCREENING.CONFERENCE.LANDING.FINAL_CTA.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(251,182,"SCREENING.CONFERENCE.LANDING.FINAL_CTA.DESCRIPTION")," "),e.R7$(5),e.SpI(" ",e.bMT(256,184,"SCREENING.CONFERENCE.LANDING.FINAL_CTA.TAG_TIME")," "),e.R7$(6),e.SpI(" ",e.bMT(262,186,"SCREENING.CONFERENCE.LANDING.FINAL_CTA.TAG_MIC")," "),e.R7$(3),e.SpI(" ",e.bMT(265,188,"SCREENING.CONFERENCE.AI_DEMO_NOTICE")," "),e.R7$(3),e.Y8G("showAiDemoNotice",!1)("redirectAfterStep1",!0),e.R7$(3),e.SpI(" ",e.bMT(271,190,"SCREENING.CONFERENCE.AI_DEMO_NOTICE")," "),e.R7$(7),e.SpI(" ",e.bMT(278,192,"SCREENING.CONFERENCE.LANDING.FAQ.EYEBROW")," "),e.R7$(3),e.SpI(" ",e.bMT(281,194,"SCREENING.CONFERENCE.LANDING.FAQ.TITLE")," "),e.R7$(3),e.SpI(" ",e.bMT(284,196,"SCREENING.CONFERENCE.LANDING.FAQ.DESCRIPTION")," "),e.R7$(6),e.JRh(e.bMT(290,198,"SCREENING.CONFERENCE.LANDING.FAQ.Q1")),e.R7$(4),e.SpI(" ",e.bMT(294,200,"SCREENING.CONFERENCE.LANDING.FAQ.A1")," "),e.R7$(5),e.JRh(e.bMT(299,202,"SCREENING.CONFERENCE.LANDING.FAQ.Q2")),e.R7$(4),e.SpI(" ",e.bMT(303,204,"SCREENING.CONFERENCE.LANDING.FAQ.A2")," "),e.R7$(5),e.JRh(e.bMT(308,206,"SCREENING.CONFERENCE.LANDING.FAQ.Q3")),e.R7$(4),e.SpI(" ",e.bMT(312,208,"SCREENING.CONFERENCE.LANDING.FAQ.A3")," "),e.R7$(5),e.JRh(e.bMT(317,210,"SCREENING.CONFERENCE.LANDING.FAQ.Q4")),e.R7$(4),e.SpI(" ",e.bMT(321,212,"SCREENING.CONFERENCE.LANDING.FAQ.A4")," "),e.R7$(5),e.JRh(e.bMT(326,214,"SCREENING.CONFERENCE.LANDING.FAQ.Q5")),e.R7$(4),e.SpI(" ",e.bMT(330,216,"SCREENING.CONFERENCE.LANDING.FAQ.A5_BEFORE")," "),e.R7$(4),e.SpI(" ",e.bMT(334,218,"SCREENING.CONFERENCE.LANDING.FAQ.A5_AFTER")," "))},dependencies:[Di,ji,Xm,of,Qm,Mi,ze.W,_t.w,ht.I,ve.D9],styles:['[_nghost-%COMP%]{display:block;--%NS%grad-spring: linear-gradient( 110deg, #5b9bff 0%, #8b7cff 32%, #b89bff 58%, #a6c1ff 82%, #b6d4ff 100% );--%NS%grad-spring-hero: linear-gradient( 120deg, #4a8fff 0%, #6680ff 28%, #8b7cff 52%, #a98ec8 78%, #6fa0ff 100% );--%NS%grad-spring-soft: linear-gradient( 120deg, rgba(91, 155, 255, .1) 0%, rgba(139, 124, 255, .1) 35%, rgba(184, 155, 255, .1) 60%, rgba(166, 193, 255, .1) 100% )}.hero[_ngcontent-%COMP%]{background:var(--%NS%grad-spring-hero)}.banner-pulse[_ngcontent-%COMP%]{background:var(--%NS%grad-spring)}.gradient-accent[_ngcontent-%COMP%]{background:var(--%NS%grad-spring);-webkit-background-clip:text;background-clip:text;color:transparent}.eyebrow-mark[_ngcontent-%COMP%]{background:var(--%NS%grad-spring)}.gradient-soft-overlay[_ngcontent-%COMP%]{background:var(--%NS%grad-spring-soft)}.cta-gradient[_ngcontent-%COMP%]{background:linear-gradient(95deg,#1271ed,#5b9bff 65%,#8b7cff)}.stat-num[_ngcontent-%COMP%]{font-weight:300;letter-spacing:-.04em;line-height:1}
1.live-dot[_ngcontent-%COMP%]:before{content:"";width:8px;height:8px;border-radius:50%;background:#1271ed;display:inline-block;animation:_ngcontent-%COMP%_live-pulse 1.6s ease-in-out infinite}@keyframes _ngcontent-%COMP%_live-pulse{0%,to{box-shadow:0 0 #1271ed80}50%{box-shadow:0 0 0 8px #1271ed00}}.faq-item[open][_ngcontent-%COMP%]   .faq-toggle[_ngcontent-%COMP%]{transform:rotate(45deg)}.faq-item[_ngcontent-%COMP%]   summary[_ngcontent-%COMP%]{list-style:none}.faq-item[_ngcontent-%COMP%]   summary[_ngcontent-%COMP%]::-webkit-details-marker{display:none}']}))}return o(),n})()},94620(we,z,f){"use strict";f.d(z,{h0:()=>P,yr:()=>ae});var j=f(49769),h=f(7673),R=f(35547),T=f(8083);const fe=["*"];function _e(L,V){1&L&&(R.qex(0),R.SdG(1),R.bVm())}let Z=(()=>{var L;class V{constructor(ee){this.submittedDirective=ee,this.classes="tw-text-xs tw-text-red",this.submitted$=this.submittedDirective?this.submittedDirective.submitted$:(0,h.of)(!0)}static#e=L=()=>(this.\u0275fac=function(Q){return new(Q||V)(R.rXU(T.RV,8))},this.\u0275cmp=R.VBU({type:V,selectors:[["nfj-error"]],hostVars:2,hostBindings:function(Q,te){2&Q&&R.HbH(te.classes)},ngContentSelectors:fe,decls:2,vars:3,consts:[[4,"ngIf"]],template:function(Q,te){1&Q&&(R.NAR(),R.DNE(0,_e,2,0,"ng-container",0),R.nI1(1,"async")),2&Q&&R.Y8G("ngIf",R.bMT(1,1,te.submitted$))},dependencies:[j.bT,j.Jj],styles:["[_nghost-%COMP%]{display:block}"]}))}return L(),V})();var B=f(57786),E=f(23294),_=f(99172),oe=f(96354),N=f(33453),w=f(68018);const $={required:"GLOBAL.FIELD_REQUIRED",email:"GLOBAL.INVALID_EMAIL",phone:"GLOBAL.INFO_INVALID",e164:"GLOBAL.E164_INVALID",externalLinks:"GLOBAL.EXTERNAL_LINKS",badEmails:"GLOBAL.BAD_EMAILS",semicolonInEmails:"GLOBAL.SEMICOLON_IN_EMAILS",notValidLink:"COMPANY.VIDEO_URL_NOT_VALID",notValidDataLink:"GLOBAL.WRONG_URL",notValidVat:"COMPANY.VAT_NOT_VALID",notValidUrl:"GLOBAL.NOT_VALID_URL",signInFailed:"GLOBAL.SIGN_IN_FAILED",somethingFailed:"GLOBAL.SOMETHING_FAILED",strongPassword:"GLOBAL.STRONG_PASSWORD",max:"GLOBAL.MAX",min:"GLOBAL.MIN",maxlength:"GLOBAL.N_MAX_CHARACTERS",minlength:"GLOBAL.N_MIN_CHARACTERS",notValidVideoLink:"COMPANY.VIDEO_URL_NOT_VALID",passwordsNotMatch:"GLOBAL.PASSWORDS_NOT_MATCH",mismatchedPasswords:"GLOBAL.PASSWORDS_NOT_MATCH",passwordMinCharacters:"GLOBAL.PASSWORD_MIN_CHARACTERS",wrongGithubUrl:"GLOBAL.WRONG_GITHUB_URL",url:"GLOBAL.WRONG_URL",minArrayLength:"GLOBAL.MIN_ARRAY_LENGTH",numberWithDot:"GLOBAL.NUMBER_WITH_DOT_ONLY",passwordSpecialCharacter:"GLOBAL.PASSWORD_SPECIAL_CHARACTER",passwordCapitalCharacter:"GLOBAL.PASSWORD_CAPITAL_CHARACTER",
1inputMonthInvalid:"GLOBAL.INPUT_MONTH_INVALID",inputMonthRangeInvalid:"GLOBAL.INPUT_MONTH_RANGE_INVALID",inputMonthMinInvalid:"GLOBAL.INPUT_MONTH_MIN_INVALID",inputMonthMaxInvalid:"GLOBAL.INPUT_MONTH_MAX_INVALID",invoiceId:"INVOICE_PATTERN_INVALID",matDatepickerParse:"GLOBAL.MAT_INVALID_DATE",matDatepickerMin:"GLOBAL.MAT_INVALID_DATE",matDatepickerMax:"GLOBAL.MAT_INVALID_DATE",duplicated:"GLOBAL.DUPLICATED",wrongDomain:"GLOBAL.WRONG_DOMAIN",lineBreaksExceeded:"GLOBAL.LINE_BREAKS_EXCEEDED",invoiceReplacedBy:"GLOBAL.INVOICE_REPLACED_BY",maxValue:"GLOBAL.MAX_VALUE",greaterThan:"GLOBAL.GREATER_THAN",NAN:"GLOBAL.NAN",invalidMinWage:"GLOBAL.MIN_WAGE"};let S=(()=>{var L;class V{constructor(ee){this.translate=ee}transform(ee,Q,te){const Mt=(0,N.A)(te,$)[ee]??ee;return this.translate.get(Mt,{value:Q})}static#e=L=()=>(this.\u0275fac=function(Q){return new(Q||V)(R.rXU(w.c$,16))},this.\u0275pipe=R.EJ8({name:"getError",type:V,pure:!0}))}return L(),V})();function M(L,V){if(1&L&&(R.qex(0),R.j41(1,"nfj-error"),R.EFF(2),R.nI1(3,"getError"),R.nI1(4,"async"),R.k0s(),R.bVm()),2&L){const ce=V.$implicit,ee=R.XpG();R.R7$(2),R.SpI(" ",R.bMT(4,5,R.brH(3,1,ce.key,ce.value,ee.overrideList))," ")}}let P=(()=>{var L;class V{constructor(ee){this.formFieldComponent=ee,this.errors$=(0,h.of)(null)}get formControl(){return this.control||this.formFieldComponent?.control}ngAfterContentInit(){this.formControl.valueChanges&&this.formControl.statusChanges&&(this.errors$=(0,B.h)(this.formControl.valueChanges,this.formControl.statusChanges.pipe((0,E.F)())).pipe((0,_.Z)(null),(0,E.F)(),(0,oe.T)(()=>this.formControl.errors)))}static#e=L=()=>(this.\u0275fac=function(Q){return new(Q||V)(R.rXU(T.KS,9))},this.\u0275cmp=R.VBU({type:V,selectors:[["nfj-errors"]],inputs:{overrideList:"overrideList",control:"control"},decls:4,vars:9,consts:[[4,"ngFor","ngForOf"]],template:function(Q,te){1&Q&&(R.DNE(0,M,5,7,"ng-container",0),R.nI1(1,"async"),R.nI1(2,"keyvalue"),R.nI1(3,"slice")),2&Q&&R.Y8G("ngForOf",R.brH(3,5,R.bMT(2,3,R.bMT(1,1,te.errors$)),0,1))},dependencies:[j.Sq,Z,j.Jj,j.P9,j.lG,S],styles:["[_nghost-%COMP%]{display:block}"]}))}return L(),V})();var Y=f(89417);let se=(()=>{var L;class V{get control(){return this.formControlName?.control??this.formControlDirective.control}constructor(ee,Q){this.formControlName=ee,this.formControlDirective=Q}ngOnChanges(ee){this.control&&this.changesMethod(ee)}static#e=L=()=>(this.\u0275fac=function(Q){return new(Q||V)(R.rXU(Y.JD,8),R.rXU(Y.l_,8))},this.\u0275dir=R.FsC({type:V,features:[R.OA$]}))}return L(),V})(),ae=(()=>{var L;class V extends se{constructor(){super(...arguments),this.isDisabled=!1}changesMethod(ee){ee.isDisabled&&(ee.isDisabled.currentValue?this.control.disable():this.control.enable())}static#e=L=()=>(this.\u0275fac=(()=>{let ee;return function(te){return(ee||(ee=R.xGo(V)))(te||V)}})(),this.\u0275dir=R.FsC({type:V,selectors:[["","nfjIsDisabled",""],["","isDisabled",""]],inputs:{isDisabled:"isDisabled"},features:[R.Vt3]}))}return L(),V})()},24233(we,z,f){"use strict";f.d(z,{i:()=>$});var j=f(49769),h=f(68018),R=f(17723),T=f(42822),fe=f(28776),_e=f(9300),Z=f(88652),B=f(10293),E=f(47266),_=f(35547);function oe(S,M){if(1&S&&_.nrm(0,"p",5),2&S){const P=_.XpG();_.Y8G("innerHTML",P.label,_.npT)}}function N(S,M){if(1&S){const P=_.RV6();_.j41(0,"inline-icon",6),_.bIt("click",function(){const se=E.eBV(P).$implicit,ae=_.XpG();return E.Njj(ae.setActiveRate(se.value,!0))}),_.k0s()}if(2&S){const P=M.$implicit,Y=_.XpG();_.AVh("star--active",Y.control.value&&Y.control.value>=P.value)}}function w(S,M){if(1&S&&(_.j41(0,"p",7),_.EFF(1),_.nI1(2,"translate"),_.k0s()),2&S){const P=_.XpG();_.R7$(),_.SpI(" ",_.bMT(2,1,P.valueText)," ")}}let $=(()=>{var S;class M extends B.c{constructor(){super(),this.config=[{value:1,valueText:"STAR_RATING.1"},{value:2,valueText:"STAR_RATING.2"},{value:3,valueText:"STAR_RATING.3"},{value:4,valueText:"STAR_RATING.4"},{value:5,valueText:"STAR_RATING.5"}],this.showValueText=!0,this.disabled=!1,(0,_e.r)([R.mdIconsStarRate])}writeValue(Y){this.setActiveRate(Y,!1)}registerOnTouched(Y){}setDisabledState(Y){this.disabled=Y}setActiveRate(Y,se=!1){this.control.setValue(Y,{emitEvent:!1}),this.valueText=this.config.find(ae=>
1ae.value===Y)?.valueText,se&&this.propagateChange(this.control.value)}static#e=S=()=>(this.\u0275fac=function(se){return new(se||M)},this.\u0275cmp=_.VBU({type:M,selectors:[["common-star-rate"]],inputs:{label:"label",config:"config",showValueText:"showValueText"},features:[_.Jv_([(0,Z.Ml)(M)]),_.Vt3],decls:5,vars:3,consts:[[1,"md:tw-flex","tw-items-center","tw-w-full"],["class","label",3,"innerHTML",4,"ngIf"],[1,"stars"],["class","star","matIcon","star_rate",3,"star--active","click",4,"ngFor","ngForOf"],["class","tw-hidden md:tw-block value-text tw-mb-0",4,"ngIf"],[1,"label",3,"innerHTML"],["matIcon","star_rate",1,"star",3,"click"],[1,"tw-hidden","md:tw-block","value-text","tw-mb-0"]],template:function(se,ae){1&se&&(_.j41(0,"div",0),_.DNE(1,oe,1,1,"p",1),_.j41(2,"div",2),_.DNE(3,N,1,2,"inline-icon",3),_.k0s(),_.DNE(4,w,3,3,"p",4),_.k0s()),2&se&&(_.R7$(),_.Y8G("ngIf",ae.label),_.R7$(2),_.Y8G("ngForOf",ae.config),_.R7$(),_.Y8G("ngIf",ae.showValueText&&ae.valueText))},dependencies:[j.bT,j.Sq,T.W,fe.w,h.h,h.D9],styles:["[_nghost-%COMP%]{box-shadow:0 0 15px #0000001a;padding:16px;display:block}@media(min-width:768px){[_nghost-%COMP%]{padding:16px 17px}}.star[_ngcontent-%COMP%]{cursor:pointer;color:#bababa}.star--active[_ngcontent-%COMP%]{color:#1271ed}@media(min-width:768px){.stars[_ngcontent-%COMP%]{line-height:1;margin:0 18px;flex:0 0 auto}}.label[_ngcontent-%COMP%]{margin-bottom:14px;font-size:14px}@media(min-width:768px){.label[_ngcontent-%COMP%]{max-width:39%;flex:0 0 39%;text-align:right;margin-bottom:0}}.value-text[_ngcontent-%COMP%]{flex-grow:1;color:#1271ed;font-size:14px}"]}))}return S(),M})()},53498(we,z,f){"use strict";f.d(z,["H",0,{name:"success_circle",data:'<svg viewBox="0 0 90 90" fill="none" xmlns="http://www.w3.org/2000/svg"><circle opacity=".08" cx="45" cy="45" r="45" fill="#19A59A"/><circle opacity=".2" cx="45" cy="45" r="35" fill="#19A59A"/><circle cx="45" cy="45" r="25" fill="#19A59A"/><path d="m56.25 38.75-15 15-6.875-6.875 1.763-1.763 5.112 5.1 13.237-13.225 1.763 1.763Z" fill="#fff"/></svg>'}])},65619(we,z,f){"use strict";f.d(z,{ActionBtnComponent:()=>R.ActionBtnComponent});var j=f(38444);f.o(j,"ActionBtnComponent")&&f.d(z,{ActionBtnComponent:function(){return j.ActionBtnComponent}});var R=f(33681);f.d(z,["DissmissModalReasons",0,{closed_with_action:"closed_with_action",close_no_action:"close_no_action"}])},73957(we,z,f){"use strict";f.d(z,{f:()=>j});var j=function(h){return h[h.Idle=0]="Idle",h[h.Loading=1]="Loading",h[h.Success=2]="Success",h[h.Error=3]="Error",h}(j||{})},33681(we,z,f){"use strict";f.d(z,{ActionBtnComponent:()=>$});var j=f(49769),h=f(68018),R=f(58588),T=f(87785),fe=f(7854),_e=f(42822),Z=f(816),B=f(73957),E=f(35547);function _(S,M){if(1&S&&(E.qex(0),E.EFF(1),E.nI1(2,"translate"),E.bVm()),2&S){const P=E.XpG();E.R7$(),E.SpI(" ",E.bMT(2,1,P.config?.text||"GLOBAL.SAVE")," ")}}function oe(S,M){if(1&S&&(E.qex(0),E.nrm(1,"inline-icon",3),E.EFF(2),E.nI1(3,"translate"),E.bVm()),2&S){const P=E.XpG();E.R7$(2),E.SpI(" ",E.bMT(3,1,P.config?.savedText||"GLOBAL.SAVED")," ")}}function N(S,M){1&S&&(E.qex(0),E.nrm(1,"inline-icon",4),E.EFF(2),E.nI1(3,"translate"),E.bVm()),2&S&&(E.R7$(2),E.SpI(" ",E.bMT(3,1,"GLOBAL.ERROR")," "))}function w(S,M){if(1&S&&(E.qex(0),E.nrm(1,"span",5),E.EFF(2),E.nI1(3,"translate"),E.bVm()),2&S){const P=E.XpG();E.R7$(2),E.SpI(" ",E.bMT(3,1,P.config?.loadingText||"GLOBAL.LOADING")," ")}}let $=(()=>{var S;class M{constructor(){this.ActionBtnStatus=B.f,(0,R.N)([T.Z,fe.k])}static#e=S=()=>(this.\u0275fac=function(se){return new(se||M)},this.\u0275cmp=E.VBU({type:M,selectors:[["common-action-btn"]],inputs:{config:"config",status:"status",disabled:"disabled"},decls:6,vars:12,consts:[[3,"disabled"],[3,"ngSwitch"],[4,"ngSwitchCase"],["commonIcon","tick",1,"tw-mr-2"],["commonIcon","close",1,"tw-mr-2"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","tw-mr-2"]],template:function(se,ae){1&se&&(E.j41(0,"button",0),E.qex(1,1),E.DNE(2,_,3,3,"ng-container",2)(3,oe,4,3,"ng-container",2)(4,N,4,3,"ng-container",2)(5,w,4,3,"ng-container",2),E.bVm(),E.k0s()),2&se&&(E.HbH(E.VkB("tw-inline-flex tw-items-center ",ae.config?.classes)),E.Y8G("disabled",ae.ActionBtnStatus.Idle!==ae.status||ae.disabled),E.BMQ("form",ae.config?.form)("id",ae.config?.gtmId)("type",ae.config?.type||"button"),E.R7$(),E.Y8G("ngSwitch",ae.status),E.R7$(),E.Y8G("ngSwitchCase",ae.ActionBtnStatus.Idle),E.R7$(),E.Y8G("ngSwitchCase",ae.ActionBtnStatus.Success),E.R7$(),E.Y8G("ngSwitchCase",ae.ActionBtnStatus.Error),E.R7$(),E.Y8G("ngSwitchCase",ae.ActionBtnStatus.Loading))},dependencies:[j.ux,j.e1,_e.W,Z.I,h.h,h.D9],styles:["[_nghost-%COMP%]{display:inline-block}.btn[_ngcontent-%COMP%]:disabled{opacity:.9}"]}))}return S(),M})()},54011(we,z,f){"use strict";f.d(z,{$:()=>N});var j=f(65157),h=f(47266),R=f(32271),T=f(17723),fe=f(42822),_e=f(28776),Z=f(9300),B=f(35547);const E=["el"],_=["*"];function oe(w,$){if(1&w){const S=B.RV6();B.j41(0,"div",4),B.bIt("click",function(P){return h.eBV(S),P.preventDefault(),h.Njj(P.stopPropagation())}),B.j41(1,"inline-icon",5),B.bIt("click",function(P){return h.eBV(S),B.XpG().toggle(),P.preventDefault(),h.Njj(P.stopPropagation())}),B.k0s()()}if(2&w){const S=B.XpG();B.AVh("tw-flex","bottom"===S.iconPosition())("tw-justify-center","bottom"===S.iconPosition())("tw-flex-shrink-0","right"===S.iconPosition()),B.R7$(),B.AVh("rotate180",S.open())}}let N=(()=>{var w;class ${constructor(){this.destroyRef=(0,h.WQX)(h.abz),this.heightLimit=(0,j.hFB)(36),this.iconPosition=(0,j.hFB)("bottom"),this.element=(0,j.ebz)("el"),this.scrollHeight=(0,h.vPA)(0),this.hasOverflow=(0,R.EW)(()=>this.scrollHeight()>this.heightLimit()),this.open=(0,R.uu)(()=>!this.hasOverflow()),(0,Z.r)([T.mdIconsArrowDropDown])}
1ngAfterViewInit(){const M=this.element()?.nativeElement;if(!M)return;this.scrollHeight.set(M.scrollHeight);const P=new ResizeObserver(()=>{this.scrollHeight.set(M.scrollHeight)});P.observe(M),this.destroyRef.onDestroy(()=>P.disconnect())}toggle(){this.open.update(M=>!M)}static#e=w=()=>(this.\u0275fac=function(P){return new(P||$)},this.\u0275cmp=B.VBU({type:$,selectors:[["common-blurred-text"]],viewQuery:function(P,Y){1&P&&B.wEZ(Y.element,E,5),2&P&&B.NyB()},inputs:{heightLimit:[1,"heightLimit"],iconPosition:[1,"iconPosition"]},ngContentSelectors:_,decls:5,vars:9,consts:[["el",""],[1,"tw-flex"],[1,"tw-relative","tw-text-xs","tw-text-gray-60","tw-flex-1"],["role","button",3,"tw-flex","tw-justify-center","tw-flex-shrink-0"],["role","button",3,"click"],["matIcon","arrow_drop_down",1,"tw-text-gray-60","cursor-pointer",2,"--width","20px","--height","20px",3,"click"]],template:function(P,Y){1&P&&(B.NAR(),B.j41(0,"div",1)(1,"div",2,0),B.SdG(3),B.k0s(),B.nVh(4,oe,2,8,"div",3),B.k0s()),2&P&&(B.AVh("tw-flex-col","bottom"===Y.iconPosition())("tw-items-start","right"===Y.iconPosition()),B.R7$(),B.xc7("max-height",Y.open()?"none":Y.heightLimit()+"px"),B.AVh("blur",!Y.open()&&Y.hasOverflow()),B.R7$(3),B.vxM(Y.hasOverflow()?4:-1))},dependencies:[fe.W,_e.w],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .blur[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%]   .blur[_ngcontent-%COMP%]:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:100%;pointer-events:none;background:linear-gradient(#fff0,#fff3,#fff)}']}))}return w(),$})()},38444(){},55565(we,z,f){"use strict";f.d(z,{b:()=>j});var j=function(h){return h.Password="password",h.Text="text",h.Email="email",h}(j||{})},76349(we,z,f){"use strict";f.d(z,{A:()=>ae});var j=f(15215),h=f(49769),R=f(47266),T=f(89417),fe=f(49894),_e=f(68018),Z=f(10498),B=f(23294),E=f(96697),_=f(88141),oe=f(47007),N=f(65157),w=f(35547);const $=["textAreaElement"];function S(L,V){1&L&&(w.j41(0,"span",9),w.EFF(1,"*"),w.k0s())}function M(L,V){if(1&L&&(w.j41(0,"span",7),w.EFF(1),w.nI1(2,"translate"),w.DNE(3,S,2,0,"span",8),w.k0s()),2&L){const ce=w.XpG();w.R7$(),w.SpI(" ",w.bMT(2,2,ce.label)," "),w.R7$(2),w.Y8G("ngIf",ce.required)}}function P(L,V){if(1&L&&(w.j41(0,"span",10)(1,"span",11),w.EFF(2),w.k0s()()),2&L){const ce=w.XpG();w.AVh("hint-bottom",ce.hintBottom),w.R7$(2),w.Lme(" ",ce.control.value?.length||0," / ",ce.maxChars," ")}}function Y(L,V){if(1&L){const ce=w.RV6();w.j41(0,"div",12)(1,"button",13),w.bIt("click",function(){R.eBV(ce);const Q=w.XpG();return R.Njj(Q.clearText())}),w.EFF(2),w.nI1(3,"translate"),w.k0s()()}2&L&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"GLOBAL.CLEAR_TEXT")," "))}function se(L,V){if(1&L&&(w.j41(0,"div",14),w.nrm(1,"common-field-errors",15),w.k0s()),2&L){const ce=w.XpG();w.R7$(),w.Y8G("errorText",ce.errorText)("errors",ce.control.errors)}}let ae=(()=>{var L;let V=(class Yo{constructor(ee){this.cdr=ee,this.focused=!1,this.placeholder="",this.allowClearText=!1,this.blurred=new R.bkB}ngOnInit(){this.control.valueChanges.pipe((0,E.s)(1),(0,fe.s)(this)).subscribe(()=>{this.cdr.detectChanges()}),this.control.statusChanges.pipe((0,B.F)(),(0,_.M)(()=>this.cdr.detectChanges()),(0,fe.s)(this)).subscribe(),this.maxChars&&this.control.valueChanges.pipe((0,fe.s)(this)).subscribe(ee=>{if(ee?.length>this.maxChars)this.control.setErrors({...this.control.errors,max:this.maxChars});else if(this.control.hasError("max")){let Q=this.control.errors;Q=Q&&Object.keys(Q).length?(0,Z.A)(Q,"max"):null,this.control.setErrors(Q)}})}selectText(){this.textAreaElement.nativeElement.focus(),this.textAreaElement.nativeElement.select()}clearText(){this.control.patchValue("")}focus(){this.textAreaElement.nativeElement.focus()}static#e=L=()=>(this.\u0275fac=function(Q){return new(Q||Yo)(w.rXU(N.gRc))},this.\u0275cmp=w.VBU({type:Yo,selectors:[["common-textarea"]],viewQuery:function(Q,te){if(1&Q&&w.GBs($,5),2&Q){let He;w.mGM(He=w.lsd())&&(te.textAreaElement=He.first)}},inputs:{showErrors:"showErrors",autofocus:"autofocus",errorText:"errorText",label:"label",control:"control",placeholder:"placeholder",rows:"rows",maxRows:"maxRows",cy:"cy",formGroupClass:"formGroupClass",maxChars:"maxChars",hintBottom:"hintBottom",attrName:"attrName",allowClearText:"allowClearText",required:"required"},outputs:{blurred:"blurred"},decls:8,vars:15,consts:[["textAreaElement",""],[1,"tw-form-group","tw-relative",3,"ngClass"],["class","textarea-label",4,"ngIf"],["class","max-char-info",3,"hint-bottom",4,"ngIf"],[1,"tw-form-control",3,"focus","blur","rows","formControl","placeholder"],["class","textarea-panel tw-w-full tw-block tw-py-1 tw-flex tw-justify-end",4,"ngIf"],["class","errors-container",4,"ngIf"],[1,"textarea-label"],["class","star",4,"ngIf"],[1,"star"],[1,"max-char-info"],[1,"tw-block","tw-text-right"],[1,"textarea-panel","tw-w-full","tw-block","tw-py-1","tw-flex","tw-justify-end"],["type","button",1,"btn-clear","tw-text-tastyBlue","tw-no-underline","tw-font-semibold","tw-bg-transparent","tw-text-[11px]","tw-border-0",3,"click"],[1,"errors-container"],[3,"errorText","errors"]],template:function(Q,te){if(1&Q){const He=w.RV6();w.j41(0,"div",1),w.DNE(1,M,4,4,"span",2)(2,P,3,4,"span",3),w.j41(3,"div")(4,"textarea",4,0),w.bIt("focus",function(){return te.focused=!0})("blur",function(Dt){return R.eBV(He),te.focused=!1,R.Njj(te.blurred.emit(Dt))}),w.k0s(),w.qAN(),w.DNE(6,Y,4,3,"div",5),w.k0s(),w.DNE(7,se,2,2,"div",6),w.k0s()}2&Q&&(w.AVh("errors",te.showErrors||te.control.invalid&&(te.control.dirty||te.control.touched)),w.Y8G("ngClass",te.formGroupClass),w.R7$(),w.Y8G("ngIf",te.label),w.R7$(),w.Y8G("ngIf",te.maxChars),w.R7$(2),w.Y8G("rows",te.rows||4)("formControl",te.control)("placeholder",te.placeholder),w.BMQ("autofocus",te.autofocus)("data-cy",te.cy)("id",te.cy)("maxLength",te.maxChars)("name",te.attrName),w.QXe(),w.R7$(2),w.Y8G("ngIf",te.control.value&&te.allowClearText),w.R7$(),w.Y8G("ngIf",te.showErrors))},dependencies:[h.YU,h.bT,T.X1,T.me,T.BC,T.l_,oe.D,_e.h,_e.D9],styles:[".tw-form-group[_ngcontent-%COMP%]{position:relative}.tw-form-group.focused[_ngcontent-%COMP%]{box-shadow:0 0 0 .2rem #01c2e940}.tw-form-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus{box-shadow:none}.tw-form-group.floating-label[_ngcontent-%COMP%]{border:1px solid red}.tw-form-group[_ngcontent-%COMP%]   .tw-form-control[_ngcontent-%COMP%]{padding-bottom:25px;border-width:2px!important}.tw-form-group[_ngcontent-%COMP%]   .errors-container[_ngcontent-%COMP%]{display:none;justify-content:flex-end}.tw-form-group.errors[_ngcontent-%COMP%]{margin-bottom:12px}.tw-form-group.errors[_ngcontent-%COMP%]   .textarea-panel[_ngcontent-%COMP%]{border-color:#f45958}.tw-form-group.errors[_ngcontent-%COMP%]   .errors-container[_ngcontent-%COMP%]{display:flex}
1.tw-form-group[_ngcontent-%COMP%]     .invalid-label{border-radius:0;font-size:12px;text-align:left;word-break:break-word;color:#f45958;background-color:#fdeeee;border:none;padding:2.5px 5px;margin-top:5px;margin-bottom:0;display:inline-block}.tw-form-group[_ngcontent-%COMP%]     .invalid-label>span.icon{position:absolute;right:10px;top:-30px;background-color:#f45958;width:20px;height:20px;display:flex;justify-content:center;align-items:center;border-radius:50%;color:#fff!important;font-weight:600}.tw-form-group[_ngcontent-%COMP%]   .valid-indicator[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:5px;background-color:#09a59a;width:20px;height:20px;display:flex;justify-content:center;align-items:center;border-radius:50%;color:#fff!important;font-weight:600}.tw-form-group[_ngcontent-%COMP%]   .valid-indicator[_ngcontent-%COMP%]     svg{fill:#fff;width:12px;height:12px}.tw-form-group[_ngcontent-%COMP%]   .max-char-info[_ngcontent-%COMP%]{position:absolute;opacity:.5;color:#888;font-size:12px;right:0}.tw-form-group[_ngcontent-%COMP%]   .max-char-info[_ngcontent-%COMP%]:not(.hint-bottom){top:-35px}.tw-form-group[_ngcontent-%COMP%]   .max-char-info.hint-bottom[_ngcontent-%COMP%]{top:100%}.floating-label[_nghost-%COMP%]   .max-char-info[_ngcontent-%COMP%]:not(.hint-bottom){top:-15px}.star[_ngcontent-%COMP%]{color:#f45958}"]}),this)},L());return V=(0,j.Cg)([(0,fe.d)()],V),V})()},34440(we,z,f){"use strict";f.d(z,{K:()=>ae});var j=f(49769),h=f(47266),R=f(68018),T=f(17723),fe=f(42822),_e=f(28776),Z=f(9300),B=f(47642),E=f(45341),_=f(35547),oe=f(75351);const N=[[["","modalBody",""]],"*",[["","modalFooter",""]]],w=["[modalBody]","*","[modalFooter]"];function $(L,V){if(1&L&&(_.nrm(0,"common-circle-info",10),_.nI1(1,"translate")),2&L){const ce=_.XpG(3);_.Y8G("popover",_.bMT(1,1,ce.config.titleTooltip))}}function S(L,V){if(1&L&&(_.j41(0,"h2",7),_.nrm(1,"span",8),_.nI1(2,"translate"),_.DNE(3,$,2,3,"common-circle-info",9),_.k0s()),2&L){const ce=_.XpG(2);_.R7$(),_.Y8G("innerHTML",_.bMT(2,2,ce.config.title),_.npT),_.R7$(2),_.Y8G("ngIf",ce.config.titleTooltip)}}function M(L,V){if(1&L&&(_.nrm(0,"p",11),_.nI1(1,"translate")),2&L){const ce=_.XpG(2);_.Y8G("innerHTML",_.bMT(1,1,ce.config.subTitle),_.npT)}}function P(L,V){if(1&L&&(_.j41(0,"div",4),_.SdG(1,1),_.DNE(2,S,4,4,"h2",5)(3,M,2,3,"p",6),_.k0s()),2&L){const ce=_.XpG();_.Y8G("ngClass",ce.config?.headerClass),_.R7$(2),_.Y8G("ngIf",ce.config?.title),_.R7$(),_.Y8G("ngIf",ce.config?.subTitle)}}function Y(L,V){if(1&L){const ce=_.RV6();_.j41(0,"button",12),_.bIt("click",function(){h.eBV(ce);const Q=_.XpG();return h.Njj(Q.close())}),_.nrm(1,"inline-icon",13),_.k0s()}if(2&L){const ce=_.XpG();_.BMQ("data-cy",ce.config?.closeDataCy||ce.name+"-btn-close")}}function se(L,V){1&L&&(_.j41(0,"div",14),_.SdG(1,2),_.k0s())}let ae=(()=>{var L;class V{constructor(ee){this.dialog=ee,this.closeDialog=new h.bkB,this.name="unknown-modal",(0,Z.r)([T.mdIconsClose])}close(){this.closeDialog.emit(),this.closeFn?this.closeFn():this.dialog.close()}static#e=L=()=>(this.\u0275fac=function(Q){return new(Q||V)(_.rXU(oe.MatDialogRef))},this.\u0275cmp=_.VBU({type:V,selectors:[["common-material-modal"]],inputs:{closeFn:"closeFn",config:"config",name:"name"},outputs:{closeDialog:"closeDialog"},ngContentSelectors:w,decls:5,vars:3,consts:[["class","dialog-header tw-flex-col",3,"ngClass",4,"ngIf"],["class","close","type","button","aria-label","Close",3,"click",4,"ngIf"],[1,"dialog-body"],["class","dialog-footer",4,"ngIf"],[1,"dialog-header","tw-flex-col",3,"ngClass"],["class","dialog-title",4,"ngIf"],["class","tw-mb-0",3,"innerHTML",4,"ngIf"],[1,"dialog-title"],[3,"innerHTML"],[3,"popover",4,"ngIf"],[3,"popover"],[1,"tw-mb-0",3,"innerHTML"],["type","button","aria-label","Close",1,"close",3,"click"],["matIcon","close"],[1,"dialog-footer"]],template:function(Q,te){1&Q&&(_.NAR(N),_.DNE(0,P,4,3,"div",0)(1,Y,2,1,"button",1),_.j41(2,"div",2),_.SdG(3),_.k0s(),_.DNE(4,se,2,0,"div",3)),2&Q&&(_.Y8G("ngIf",!te.config?.hideHeader),_.R7$(),_.Y8G("ngIf",!te.config?.disableClose),_.R7$(3),_.Y8G("ngIf",!te.config||!te.config.hideFooter))},dependencies:[j.bT,j.YU,E.U,B.H,fe.W,_e.w,R.h,R.D9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .dialog-header.hide-btn-close[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#757575}[_nghost-%COMP%]   button.close[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;margin:0;z-index:1;outline:none}@media(max-width:992px){.modal-mobile-footer[_nghost-%COMP%], .modal
1-mobile-footer   [_nghost-%COMP%]{max-height:100%;height:100%;display:flex;flex-direction:column}.modal-mobile-footer[_nghost-%COMP%]   .dialog-body[_ngcontent-%COMP%], .modal-mobile-footer   [_nghost-%COMP%]   .dialog-body[_ngcontent-%COMP%]{overflow:auto;flex-grow:1}.modal-mobile-footer[_nghost-%COMP%]   .dialog-footer[_ngcontent-%COMP%]     [modalFooter], .modal-mobile-footer   [_nghost-%COMP%]   .dialog-footer[_ngcontent-%COMP%]     [modalFooter]{display:flex;justify-content:space-between}.modal-mobile-footer[_nghost-%COMP%]   .dialog-footer[_ngcontent-%COMP%]     [modalFooter] button, .modal-mobile-footer   [_nghost-%COMP%]   .dialog-footer[_ngcontent-%COMP%]     [modalFooter] button{flex-grow:1;max-width:none!important;line-height:1;height:50px}}"]}))}return L(),V})()},91190(we,z,f){"use strict";f.d(z,{A:()=>_});var j=f(75351),h=f(61079),R=f(58588),T=f(53498),fe=f(87785),_e=f(47266),Z=f(35547),B=f(89417),E=f(99952);let _=(()=>{var oe;class N{constructor($,S,M,P,Y,se){this.dialogRef=$,this.fb=S,this.data=M,this.injector=P,this.cookieSv=Y,this.matDialog=se,this.sent=!1,this.modalSettings={headerClass:"!tw-pt-6 !tw-px-6 !tw-pb-2",...this.modalConfig},this.showEndScreen=!1,(0,R.N)([T.H,fe.Z]),this.questions=this.getQuestionsControls(),this.surveyData=this.readCookie(),this.stepIndex=this.surveyData.currentStepIndex}get modalConfig(){return{}}get currentQuestion(){return this.questions?.at(this.stepIndex)}next(){this.onStepFinish(this.questions.at(this.stepIndex).value,this.stepIndex),this.stepIndex<this.questions.controls.length-1?(this.stepIndex++,this.saveCookie()):this.onStepsCompleted()}onStepsCompleted(){this.showEndScreen=!0,this.finish()}back(){this.stepIndex>0?this.stepIndex--:this.dialogRef.close(this.sent)}close(){this.dialogRef.close(this.sent)}finish(){const $=this.data?.mergeStepsAnswers?this.questions.value.reduce((S,M)=>Object.assign(S,M),{}):this.questions.value;this.onFormComplete($),this.cookieSv.remove(this.cookieName)}saveCookie(){this.cookieSv.put(this.cookieName,JSON.stringify({currentStepIndex:this.stepIndex}),{expires:(0,h.A)(new Date,30)})}readCookie(){return JSON.parse(this.cookieSv.get(this.cookieName)||null)||{currentStepIndex:0}}static#e=oe=()=>(this.matDialogConfig={panelClass:["default-modal","modal-survey","modal-mobile-footer"],disableClose:!0,data:{mergeStepsAnswers:!0}},this.\u0275fac=function(S){return new(S||N)(Z.rXU(j.MatDialogRef),Z.rXU(B.ok),Z.rXU(j.MAT_DIALOG_DATA),Z.rXU(_e.zZn),Z.rXU(E.O1),Z.rXU(j.MatDialog))},this.\u0275dir=Z.FsC({type:N}))}return oe(),N})()},10293(we,z,f){"use strict";f.d(z,{c:()=>R});var j=f(89417),h=f(88652);class R extends h.nv{constructor(){super(...arguments),this.control=new j.MJ}}},80282(we,z,f){z.formatArgs=function h(Z){if(Z[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Z[0]+(this.useColors?"%c ":" ")+"+"+we.exports.humanize(this.diff),!this.useColors)return;const B="color: "+this.color;Z.splice(1,0,B,"color: inherit");let E=0,_=0;Z[0].replace(/%[a-zA-Z%]/g,oe=>{"%%"!==oe&&(E++,"%c"===oe&&(_=E))}),Z.splice(_,0,B)},z.save=function R(Z){try{Z?z.storage.setItem("debug",Z):z.storage.removeItem("debug")}catch{}},z.load=function T(){let Z;try{Z=z.storage.getItem("debug")||z.storage.getItem("DEBUG")}catch{}return!Z&&typeof process<"u"&&"env"in process&&(Z=process.env.DEBUG),Z},z.useColors=function j(){if(typeof window<"u"&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let Z;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(Z=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(Z[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},z.storage=function fe(){try{return localStorage}catch{}}(),z.destroy=(()=>{let Z=!1;return()=>{Z||(Z=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),z.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],z.log=console.debug||console.log||(()=>{}),we.exports=f(50741)(z);const{formatters:_e}=we.exports;_e.j=function(Z){try{return JSON.stringify(Z)}catch(B){return"[UnexpectedJSONParseError]: "+B.message}}},50741(we,z,f){we.exports=function j(h){function T(N){let w,S,M,$=null;function P(...Y){if(!P.enabled)return;const se=P,ae=Number(new Date);se.diff=ae-(w||ae),se.prev=w,se.curr=ae,w=ae,Y[0]=T.coerce(Y[0]),"string"!=typeof Y[0]&&Y.unshift("%O");let V=0;Y[0]=Y[0].replace(/%([a-zA-Z%])/g,(ee,Q)=>{if("%%"===ee)return"%";V++;const te=T.formatters[Q];return"function"==typeof te&&(ee=te.call(se,Y[V]),Y.splice(V,1),V--),ee}),T.formatArgs.call(se,Y),(se.log||T.log).apply(se,Y)}return P.namespace=N,P.useColors=T.useColors(),P.color=T.selectColor(N),P.extend=fe,P.destroy=T.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==$?$:(S!==T.namespaces&&(S=T.namespaces,M=T.enabled(N)),M),set:Y=>{$=Y}}),"function"==typeof T.init&&T.init(P),P}function fe(N,w){const $=T(this.namespace+(typeof w>"u"?":":w)+N);return $.log=this.log,$}function Z(N,w){let $=0,S=0,M=-1,P=0;for(;$<N.length;)if(S<w.length&&(w[S]===N[$]||"*"===w[S]))"*"===w[S]?(M=S,P=$,S++):($++,S++);else{if(-1===M)return!1;S=M+1,P++,$=P}for(;S<w.length&&"*"===w[S];)S++;return S===w.length}return T.debug=T,T.default=T,T.coerce=function _(N){return N instanceof Error?N.stack||N.message:N},T.disable=function B(){const N=[...T.names,...T.skips.map(w=>"-"+w)].join(",");return T.enable(""),N},T.enable=function _e(N){T.save(N),T.namespaces=N,T.names=[],T.skips=[];const w=("string"==typeof N?N:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const $ of w)"-"===$[0]?T.skips.push($.slice(1)):T.names.push($)},T.enabled=function E(N){for(const w of T.skips)if(Z(N,w))return!1;for(const w of T.names)if(Z(N,w))return!0;return!1},T.humanize=f(63244),T.destroy=function oe(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(h).forEach(N=>{T[N]=h[N]}),T.names=[],T.skips=[],T.formatters={},T.selectColor=function R(N){let w=0;for(let $=0;$<N.length;$++)w=(w<<5)-w+N.charCodeAt($),w|=0;return T.colors[Math.abs(w)%T.colors.length]},T.enable(T.load()),T}},63244(we){var z=1e3,f=60*z,j=60*f,h=24*j,R=7*h;function B(E,_,oe,N){var w=_>=1.5*oe;return Math.round(E/oe)+" "+N+(w?"s":"")}we.exports=function(E,_){_=_||{};var oe=typeof E;if("string"===oe&&E.length>0)return function fe(E){if(!((E=String(E)).length>100)){var _=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(E);if(_){var oe=parseFloat(_[1]);switch((_[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*oe;case"weeks":case"week":case"w":return oe*R;case"days":case"day":case"d":return oe*h;case"hours":case"hour":case"hrs":case"hr":case"h":return oe*j;case"minutes":case"minute":case"mins":case"min":case"m":return oe*f;case"seconds":case"second":case"secs":case"sec":case"s":return oe*z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return oe;default:return}}}}(E);if("number"===oe&&isFinite(E))return _.long?function Z(E){var _=Math.abs(E);return _>=h?B(E,_,h,"day"):_>=j?B(E,_,j,"hour"):_>=f?B(E,_,f,"minute"):_>=z?B(E,_,z,"second"):E+" ms"}(E):function _e(E){var _=Math.abs(E);return _>=h?Math.round(E/h)+"d":_>=j?Math.round(E/j)+"h":_>=f?Math.round(E/f)+"m":_>=z?Math.round(E/z)+"s":E+"ms"}(E);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(E))}},72234(we,z,f){"use strict";f.d(z,{Yq:()=>oe,Zm:()=>_});var j=f(47266),h=f(35547),R=f(65157),T=f(49769);const fe=["*"],_e=(N,w,$,S,M)=>({"custom-content":N,circle:w,progress:$,"progress-dark":S,pulse:M});function Z(N,w){1&N&&h.SdG(0)}
1function B(N,w){if(1&N&&(h.j41(0,"div",0),h.nVh(1,Z,1,0),h.k0s()),2&N){const $=h.XpG();h.Y8G("ngClass",h.s1E(5,_e,"custom-content"===$.appearance,"circle"===$.appearance,"progress"===$.animation,"progress-dark"===$.animation,"pulse"===$.animation))("ngStyle",$.theme),h.BMQ("aria-label",$.ariaLabel)("aria-valuetext",$.loadingText),h.R7$(),h.vxM("custom-content"===$.appearance?1:-1)}}const E=new j.nKC("ngx-skeleton-loader.config");let _=(()=>{var N;class w{constructor(S){this.config=S;const{appearance:M="line",animation:P="progress",theme:Y=null,loadingText:se="Loading...",count:ae=1,ariaLabel:L="loading"}=S||{};this.appearance=M,this.animation=P,this.theme=Y,this.loadingText=se,this.count=ae,this.items=[],this.ariaLabel=L}ngOnInit(){this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||((0,R.naY)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\"."),this.count=1),"custom-content"===this.appearance&&(0,R.naY)()&&1!==this.count&&(console.error('`NgxSkeletonLoaderComponent` enforces elements with "custom-content" appearance as DOM nodes. Forcing "count" to "1".'),this.count=1),this.items.length=this.count;const S=["progress","progress-dark","pulse","false"];-1===S.indexOf(String(this.animation))&&((0,R.naY)()&&console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${S.join(", ")}. Forcing default to "progress".`),this.animation="progress"),-1===["circle","line","custom-content",""].indexOf(String(this.appearance))&&((0,R.naY)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or custom-content or empty string. Forcing default to \"''\"."),this.appearance="");const{theme:M}=this.config||{};M&&M.extendsFromRoot&&null!==this.theme&&(this.theme={...this.config.theme,...this.theme})}ngOnChanges(S){["count","animation","appearance"].find(M=>S[M]&&(S[M].isFirstChange()||S[M].previousValue===S[M].currentValue))||this.validateInputValues()}static#e=N=()=>(this.\u0275fac=function(M){return new(M||w)(h.rXU(E,8))},this.\u0275cmp=h.VBU({type:w,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},standalone:!1,features:[h.OA$],ngContentSelectors:fe,decls:2,vars:0,consts:[["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","-1",1,"skeleton-loader",3,"ngClass","ngStyle"]],template:function(M,P){1&M&&(h.NAR(),h.Z7z(0,B,2,11,"div",0,h.fX1)),2&M&&h.Dyx(P.items)},dependencies:[T.YU,T.B3],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translateZ(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff0,#fff9,#fff0)}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}.skeleton-loader.custom-content[_ngcontent-%COMP%]{height:100%;background:none}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]:before{animation:none}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%]{background-image:none}}@media screen and (min-device-width: 1200px){.skeleton-loader[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:wait}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}']}))}return N(),w})(),oe=(()=>{var N;class w{static forRoot(S){return{ngModule:w,providers:[{provide:E,useValue:S}]}}static#e=N=()=>(this.\u0275fac=function(M){return new(M||w)},this.\u0275mod=h.$C({type:w}),this.\u0275inj=j.G2t({imports:[T.MD]}))}return N(),w})()}}]);

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.