PageSourceSearch

https://hix.ai/cdn/_next/static/chunks/3dzudl_5f4zpv.js?dpl=caeb3f7576cede78962678e87458b3b879430978

js hix.ai collected 2026-10-01 11:32:32 UTC 31,351 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,144674,e=>{"use strict";var t=e.i(274466),r=e.i(659638),n=e.i(704824),a=e.i(163507),o=function(){return a.default?document.visibilityState:"visible"};e.s(["useDocumentVisibility",0,function(){var e=(0,t.__read)((0,r.useState)(o),2),a=e[0],i=e[1];return(0,n.default)("visibilitychange",function(){i(o())},{target:function(){return document}}),a}],144674)},458931,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,a){var o,i=function(e,r,n){void 0===n&&(n={});var a,o,i,s,l=new Date(e);return(void 0===(a=n)&&(a={}),(s=t[i=r+"|"+(o=a.timeZoneName||"short")])||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[i]=s),s).formatToParts(l)},s=function(t,r){for(var n=i(t,r),o=[],s=0;s<n.length;s+=1){var l=n[s],c=l.type,u=l.value,d=e[c];d>=0&&(o[d]=parseInt(u,10))}var _=o[3],g=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===_?0:_)+":"+o[4]+":"+o[5]+":000",p=+t;return(a.utc(g).valueOf()-(p-=p%1e3))/6e4},l=n.prototype;l.tz=function(e,t){void 0===e&&(e=o);var r,n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),l=Math.round((i-new Date(s))/1e3/60),c=-(15*Math.round(i.getTimezoneOffset()/15))-l;if(Number(c)){if(r=a(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=r.utcOffset();r=r.add(n-u,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||a.tz.guess(),r=i(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,e,t).tz(this.$x.$timezone,!0)},a.tz=function(e,t,r){var n=r&&t,i=r||t||o,l=s(+a(),i);if("string"!=typeof e)return a(e).tz(i);var c=function(e,t,r){var n=e-60*t*1e3,a=s(n,r);if(t===a)return[n,t];var o=s(n-=60*(a-t)*1e3,r);return a===o?[n,a]:[e-60*Math.min(a,o)*1e3,Math.max(a,o)]}(a.utc(e,n).valueOf(),l,i),u=c[0],d=c[1],_=a(u).utcOffset(d);return _.$x.$timezone=i,_},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(e){o=e}}}()},576346,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,a,o){var i=a.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},i.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=i.utcOffset;i.utcOffset=function(n,a){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var a=(""+n[0]).match(r)||["-",0,0],o=a[0],i=60*a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(n)))return this;var i=16>=Math.abs(n)?60*n:n;if(0===i)return this.utc(a);var s=this.clone();if(a)return s.$offset=i,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l,s};var u=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var _=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return _.call(this,e,t,r);var n=this.local(),a=o(e).local();return _.call(n,a,t,r)}}}()},475575,e=>{"use strict";var t=e.i(397202),r=e.i(754769),n=e.i(484530),a=e.i(713224);e.s(["middleware",0,function(e){var t=(0,r.sizeof)(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}},"prefixer",0,function(e,o,i,s){if(e.length>-1&&!e.return)switch(e.type){case t.DECLARATION:e.return=function e(n,a,o){switch((0,r.hash)(n,a)){case 5103:return t.WEBKIT+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return t.WEBKIT+n+n;case 4855:return t.WEBKIT+n.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+n;case 4789:return t.MOZ+n+n;
1case 5349:case 4246:case 4810:case 6968:case 2756:return t.WEBKIT+n+t.MOZ+n+t.MS+n+n;case 5936:switch((0,r.charat)(n,a+11)){case 114:return t.WEBKIT+n+t.MS+(0,r.replace)(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return t.WEBKIT+n+t.MS+(0,r.replace)(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return t.WEBKIT+n+t.MS+(0,r.replace)(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return t.WEBKIT+n+t.MS+n+n;case 6165:return t.WEBKIT+n+t.MS+"flex-"+n+n;case 5187:return t.WEBKIT+n+(0,r.replace)(n,/(\w+).+(:[^]+)/,t.WEBKIT+"box-$1$2"+t.MS+"flex-$1$2")+n;case 5443:return t.WEBKIT+n+t.MS+"flex-item-"+(0,r.replace)(n,/flex-|-self/g,"")+((0,r.match)(n,/flex-|baseline/)?"":t.MS+"grid-row-"+(0,r.replace)(n,/flex-|-self/g,""))+n;case 4675:return t.WEBKIT+n+t.MS+"flex-line-pack"+(0,r.replace)(n,/align-content|flex-|-self/g,"")+n;case 5548:return t.WEBKIT+n+t.MS+(0,r.replace)(n,"shrink","negative")+n;case 5292:return t.WEBKIT+n+t.MS+(0,r.replace)(n,"basis","preferred-size")+n;case 6060:return t.WEBKIT+"box-"+(0,r.replace)(n,"-grow","")+t.WEBKIT+n+t.MS+(0,r.replace)(n,"grow","positive")+n;case 4554:return t.WEBKIT+(0,r.replace)(n,/([^-])(transform)/g,"$1"+t.WEBKIT+"$2")+n;case 6187:return(0,r.replace)((0,r.replace)((0,r.replace)(n,/(zoom-|grab)/,t.WEBKIT+"$1"),/(image-set)/,t.WEBKIT+"$1"),n,"")+n;case 5495:case 3959:return(0,r.replace)(n,/(image-set\([^]*)/,t.WEBKIT+"$1$`$1");case 4968:return(0,r.replace)((0,r.replace)(n,/(.+:)(flex-)?(.*)/,t.WEBKIT+"box-pack:$3"+t.MS+"flex-pack:$3"),/space-between/,"justify")+t.WEBKIT+n+n;case 4200:if(!(0,r.match)(n,/flex-|baseline/))return t.MS+"grid-column-align"+(0,r.substr)(n,a)+n;break;case 2592:case 3360:return t.MS+(0,r.replace)(n,"template-","")+n;case 4384:case 3616:if(o&&o.some(function(e,t){return a=t,(0,r.match)(e.props,/grid-\w+-end/)}))return~(0,r.indexof)(n+(o=o[a].value),"span",0)?n:t.MS+(0,r.replace)(n,"-start","")+n+t.MS+"grid-row-span:"+(~(0,r.indexof)(o,"span",0)?(0,r.match)(o,/\d+/):(0,r.match)(o,/\d+/)-(0,r.match)(n,/\d+/))+";";return t.MS+(0,r.replace)(n,"-start","")+n;case 4896:case 4128:return o&&o.some(function(e){return(0,r.match)(e.props,/grid-\w+-start/)})?n:t.MS+(0,r.replace)((0,r.replace)(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return(0,r.replace)(n,/(.+)-inline(.+)/,t.WEBKIT+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,r.strlen)(n)-1-a>6)switch((0,r.charat)(n,a+1)){case 109:if(45!==(0,r.charat)(n,a+4))break;case 102:return(0,r.replace)(n,/(.+:)(.+)-([^]+)/,"$1"+t.WEBKIT+"$2-$3$1"+t.MOZ+(108==(0,r.charat)(n,a+3)?"$3":"$2-$3"))+n;case 115:return~(0,r.indexof)(n,"stretch",0)?e((0,r.replace)(n,"stretch","fill-available"),a,o)+n:n}break;case 5152:case 5920:return(0,r.replace)(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,a,o,i,s,l){return t.MS+r+":"+a+l+(o?t.MS+r+"-span:"+(i?s:s-a)+l:"")+n});case 4949:if(121===(0,r.charat)(n,a+6))return(0,r.replace)(n,":",":"+t.WEBKIT)+n;break;case 6444:switch((0,r.charat)(n,45===(0,r.charat)(n,14)?18:11)){case 120:return(0,r.replace)(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+t.WEBKIT+(45===(0,r.charat)(n,14)?"inline-":"")+"box$3$1"+t.WEBKIT+"$2$3$1"+t.MS+"$2box$3")+n;case 100:return(0,r.replace)(n,":",":"+t.MS)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return(0,r.replace)(n,"scroll-","scroll-snap-")+n}return n}(e.value,e.length,i);return;case t.KEYFRAMES:return(0,a.serialize)([(0,n.copy)(e,{value:(0,r.replace)(e.value,"@","@"+t.WEBKIT)})],s);case t.RULESET:if(e.length)return(0,r.combine)(i=e.props,function(a){switch((0,r.match)(a,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":(0,n.lift)((0,n.copy)(e,{props:[(0,r.replace)(a,/:(read-\w+)/,":"+t.MOZ+"$1")]})),(0,n.lift)((0,n.copy)(e,{props:[a]})),(0,r.assign)(e,{props:(0,r.filter)(i,s)});break;case"::placeholder":(0,n.lift)((0,n.copy)(e,{props:[(0,r.replace)(a,/:(plac\w+)/,":"+t.WEBKIT+"input-$1")]})),(0,n.lift)((0,n.copy)(e,{props:[(0,r.replace)(a,/:(plac\w+)/,":"+t.MOZ+"$1")]})),(0,n.lift)((0,n.copy)(e,{props:[(0,r.replace)(a,/:(plac\w+)/,t.MS+"input-$1")]})),(0,n.lift)((0,n.copy)(e,{props:[a]}
1)),(0,r.assign)(e,{props:(0,r.filter)(i,s)})}return""})}}],475575)},9879,250677,66090,107701,408224,935140,861470,361151,e=>{"use strict";e.s(["selectLocalInterruptResolutionForToolCall",0,function(e,t){return Object.values(e.localInterruptResolutionsById).find(e=>e.toolCallId===t||e.interruptId===t)}],9879),e.i(21514);var t=e.i(605282);e.s(["useIsCurrentMessageInLastTurn",0,function(){return(0,t.useAguiMessageItemContext)(e=>e.turnMeta?.isLatestTurn===!0)}],250677),e.i(697036);var r=e.i(779828),n=e.i(200827),a=e.i(110258),o=e.i(729888);function i(e){let t=e.agentStoreApi.getState().runId;e.runtimeActions.requestPostRunLoadingRelease(t||void 0)}e.s(["clearPostRunLoadingReleaseRequest",0,function(e){e.clearPostRunLoadingReleaseRequest()},"requestPostRunLoadingRelease",0,i],66090);var s=e.i(781025);e.i(17335);var l=e.i(508861),c=e.i(16865),u=e.i(166101),d=e.i(659638);let _=(0,d.createContext)(null);function g(){return(0,d.useContext)(_)}e.s(["ChatFormRuntimeProvider",0,function({children:e}){let t,r=(0,d.useRef)(null);return null===r.current&&(t=new Map,r.current={getForm(e){let r=t.get(e);return r?.[r.length-1]?.form},registerForm(e,r){let n={form:r,id:Symbol(e)},a=t.get(e)??[];return t.set(e,[...a,n]),()=>{let r=t.get(e);if(!r)return;let a=r.filter(e=>e.id!==n.id);a.length>0?t.set(e,a):t.delete(e)}}}),(0,u.jsx)(_.Provider,{value:r.current,children:e})},"useOptionalChatFormRuntime",0,g,"useRegisterChatForm",0,function(e,t){let r=g();(0,d.useEffect)(()=>{if(r)return r.registerForm(e,t)},[t,e,r])}],107701);var p=e.i(838954);async function f(e){let t=e.getState();if(null!=t.writeTarget){if(!t.isConnectorAppsFetched){try{await t.refetchConnectorApps()}catch{}t=e.getState()}if(null!=t.writeTarget&&t.isConnectorAppsFetched)return(0,p.getConnectedConnectorAppIds)(t.connectorApps)}}e.i(38813);var m=e.i(759359);e.i(243046);var h=e.i(939189),v=e.i(881598),I=e.i(452234),S=e.i(162709);e.i(874967);var T=e.i(11460);let A={output_format:v.EWriterOutputFormat.HTML,text_length:v.EWriterTextLength.AUTO};function b(e){var t,r;if(!(0,T.isObjectRecord)(e))return{};let n={};return t=e.output_format,Object.values(v.EWriterOutputFormat).includes(t)&&(n.output_format=e.output_format),r=e.text_length,Object.values(v.EWriterTextLength).includes(r)&&(n.text_length=e.text_length),n}e.s(["DEFAULT_WRITER_FORM_VALUES",0,A,"extractWriterFormValueOverrides",0,b,"resolveWriterFormValues",0,function(e){for(let t of e){let e=b(t);if(void 0!==e.output_format||void 0!==e.text_length)return{...A,...e}}return A}],408224);let C={[v.EWriterOutputFormat.HTML]:h.EWriterFormat.HTML,[v.EWriterOutputFormat.MARKDOWN]:h.EWriterFormat.MARKDOWN},E={[v.EWriterTextLength.AUTO]:h.EWriterLength.AUTO,[v.EWriterTextLength.NORMAL]:h.EWriterLength.NORMAL,[v.EWriterTextLength.LONG]:h.EWriterLength.LONG};function y(e){let{activeConnectors:t,entryProfile:r,selectedSkills:n,thinking:a}=e,o={};return void 0!==t&&(o.activeConnectors=t),void 0!==n&&(o.selectedSkills=n),r&&(o.entryProfile=r),void 0!==a&&(o.thinking=a),Object.keys(o).length>0?o:void 0}function M(e,t){let r,n=e.getState();if(!n.threadId)throw Error("ChatAgui resume requires an active chat session");return{threadId:n.threadId,effectiveRunId:n.pendingInterruptRunId??n.runId,pendingInterruptThreadId:n.pendingInterruptThreadId,pendingInterruptIdentity:(r=n.pendingInterrupts.find(e=>e.id===t||e.toolCallId===t))?JSON.stringify([r.id,r.toolCallId??null]):null,pendingInterruptSet:JSON.stringify(n.pendingInterrupts.map(e=>JSON.stringify([e.id,e.toolCallId??null])).sort())}}function w(e,t,r){let n=M(e,t);if(n.threadId!==r.threadId||n.effectiveRunId!==r.effectiveRunId||n.pendingInterruptThreadId!==r.pendingInterruptThreadId||n.pendingInterruptIdentity!==r.pendingInterruptIdentity||n.pendingInterruptSet!==r.pendingInterruptSet)throw Error("ChatAgui resume was cancelled because the pending run changed")}function O(){let{resumeWithToolResult:e}=(0,s.useAgentActions)(),t=(0,r.useAgentStoreApi)(),n=(0,l.useChatContainerContextStore)(),o=g(),i=(0,m.useOptionalConnectorAppsStoreApi)(),u=(0,d.useRef)(i);return u.current=i,(0,a.useMemoizedFn)(async(r,a,s)=>{if(!t.getState().pendingInterrupts.some(e=>e.id===r||e.toolCallId===r))return;if(!n||!o||!i)throw Error("ChatAgui resume requires interactive chat, form, and connector runtimes");let l=M(t,r),d=await f(i);if(u.current!==i)throw Error("ChatAgui resume was cancelled because the connector scope changed");w(t,r,l);let _=o.getForm(c.HIX_CHAT_FORM_MEDIA_KEYS.NORMAL);if(!_)throw Error("ChatAgui resume requires the active chat form");let{generalAgentEntryProfile:g}=n.getState(),p=y({entryProfile:g,activeConnectors:d,thinking:!0===_.getFieldValue("thinking")});w(t,r,l),await e(r,a,{...s,forwardedProps:p})})}e.s(["buildGeneralAgentRunContextOptions",0,y,"buildGeneralAgentSendOptions",0,function(e){let{activeConnectors:t,extraData:r,imageConfig:n,selectedSkills:a}=e,o=r&&"object"==typeof r&&!Array.isArray(r)?r:void 0,i=y({activeConnectors:t,entryProfile:o?.entryProfile,selectedSkills:a,thinking:o?.thinking})??{};if(void 0===o)return void 0!==n&&(i.imageConfig=n),Object.keys(i).length>0?i:void 0;if(void 0!==n&&(i.imageConfig=n),void 0!==o.timezone&&(i.timezone=o.timezone),(0,S.isSkillFunctionValue)(o.entryProfile)&&void 0!==o.workScene&&(i.workScene=o.workScene),o.entryProfile===h.EGeneralSubType.WRITER){let{output_format:e,text_length:t}=b(o);void 0!==e&&(i.writerFormat=C[e]),void 0!==t&&(i.writerLength=E[t])}return o.entryProfile===h.EGeneralSubType.SLIDES&&(i.slidesAspectRatio=(0,I.resolveSlidesAspectRatio)("slidesAspectRatio"in o?o.slidesAspectRatio:void 0),"slidesMode"in o&&(0,I.isSlidesMode)(o.slidesMode)?(i.slidesFormat=h.ESlidesFormat.IMAGE,i.slidesImageModel=h.ESlidesImageModel.GPT_IMAGE_2_5):i.slidesFormat=h.ESlidesFormat.HTML),Object.keys(i).length>0?i:void 0}],935140),e.s(["useChatAguiResumeWithToolResult",0,O],861470),e.s(["useExternalToolResultSubmitter",0,function(){let[e,t]=(0,d.useState)(!1),s=(0,r.useAgentStoreApi)(),l=(0,n.useAguiRuntimeActions)(),c=(0,o.useChatStore)(e=>e.updateState),u=O();return{loading:e,submitExternalToolResult:(0,a.useMemoizedFn)(async(e,r,n)=>{t(!0),c("isChatLoading",!0);try{await u(e,JSON.stringify(r),n)}finally{i({agentStoreApi:s,runtimeActions:l}),t(!1)}})}}],361151)},690384,e=>{"use strict";var t=e.i(85982);e.s(["default",0,function(e){if(!e.startsWith("http")&&(0,t.getFilterLocale)(e))return"en"}])},838954,e=>{"use strict";function t(e){return e?.kind==="connected"}e.s(["getConnectedConnectorAppIds",0,function(e){return e.filter(e=>t(e.connection)).map(e=>e.id)},"isConnectedConnectorConnection",0,t])},38813,112341,553219,759359,e=>{"use strict";var t=e.i(166101),r=e.i(793995),n=e.i(826253),a=e.i(110258),o=e.i(659638),i=e.i(274
1191),s=e.i(82164),l=e.i(584526);e.i(3246);var c=e.i(870116),u=e.i(616405),d=e.i(2115);let _={gmail:{send_email:"/gmail/send_email",create_draft:"/gmail/create_draft",update_draft:"/gmail/update_draft",send_draft:"/gmail/send_draft",forward_emails:"/gmail/forward_emails",create_label:"/gmail/create_label",apply_labels_to_emails:"/gmail/apply_labels_to_emails",batch_modify_email:"/gmail/batch_modify_email",bulk_label_matching_emails:"/gmail/bulk_label_matching_emails",archive_emails:"/gmail/archive_emails",delete_emails:"/gmail/delete_emails",delete_draft:"/gmail/delete_draft"},google_calendar:{create_event:"/google_calendar/create_event",update_event:"/google_calendar/update_event",delete_events:"/google_calendar/delete_events",respond_event:"/google_calendar/respond_event"},google_drive:{create_file:"/google_drive/create_file",create_folder:"/google_drive/create_folder",copy_file:"/google_drive/copy_file",move_or_rename_item:"/google_drive/move_or_rename_item",trash_files:"/google_drive/trash_files",import_document:"/google_drive/import_document",import_presentation:"/google_drive/import_presentation",import_spreadsheet:"/google_drive/import_spreadsheet",create_presentation_from_template:"/google_drive/create_presentation_from_template",duplicate_sheet_in_new_spreadsheet:"/google_drive/duplicate_sheet_in_new_spreadsheet",batch_update_document:"/google_drive/batch_update_document",batch_update_presentation:"/google_drive/batch_update_presentation",batch_update_spreadsheet:"/google_drive/batch_update_spreadsheet",create_permission:"/google_drive/create_permission",update_permission:"/google_drive/update_permission",delete_permission:"/google_drive/delete_permission",resolve_access_proposal:"/google_drive/resolve_access_proposal"}},g=(0,d.merge)({},{gmail:{search_emails:"/gmail/search_emails",search_email_ids:"/gmail/search_email_ids",batch_read_email:"/gmail/batch_read_email",read_email_thread:"/gmail/read_email_thread",read_attachment:"/gmail/read_attachment",list_attachments:"/gmail/list_attachments",list_labels:"/gmail/list_labels",list_drafts:"/gmail/list_drafts"},google_calendar:{search_events:"/google_calendar/search_events",read_event:"/google_calendar/read_event",get_colors:"/google_calendar/get_colors",list_calendars:"/google_calendar/list_calendars"},google_drive:{fetch:"/google_drive/fetch",search:"/google_drive/search",get_file_metadata:"/google_drive/get_file_metadata",list_folder:"/google_drive/list_folder",list_drives:"/google_drive/list_drives",recent_documents:"/google_drive/recent_documents",list_file_permissions:"/google_drive/list_file_permissions",list_access_proposals:"/google_drive/list_access_proposals",get_profile:"/google_drive/get_profile",get_document:"/google_drive/get_document",get_document_text:"/google_drive/get_document_text",get_document_paragraph_range:"/google_drive/get_document_paragraph_range",find_document_text_range:"/google_drive/find_document_text_range",get_document_tables:"/google_drive/get_document_tables",get_document_comments:"/google_drive/get_document_comments",get_presentation:"/google_drive/get_presentation",get_presentation_text:"/google_drive/get_presentation_text",get_presentation_outline:"/google_drive/get_presentation_outline",get_presentation_tables:"/google_drive/get_presentation_tables",get_presentation_comments:"/google_drive/get_presentation_comments",get_slide:"/google_drive/get_slide",get_slide_thumbnail:"/google_drive/get_slide_thumbnail",get_spreadsheet_metadata:"/google_drive/get_spreadsheet_metadata",get_spreadsheet_range:"/google_drive/get_spreadsheet_range",get_spreadsheet_cells:"/google_drive/get_spreadsheet_cells",get_spreadsheet_comments:"/google_drive/get_spreadsheet_comments",search_spreadsheet_rows:"/google_drive/search_spreadsheet_rows",export_file:"/google_drive/export_file"}},_),p={outlook_mail:{send_message:"/outlook_mail/send_message",create_draft:"/outlook_mail/create_draft",update_draft:"/outlook_mail/update_draft",add_draft_attachments:"/outlook_mail/add_draft_attachments",delete_draft_attachments:"/outlook_mail/delete_draft_attachments",send_draft:"/outlook_mail/send_draft",forward_messages:"/outlook_mail/forward_messages",move_messages:"/outlook_mail/move_messages",archive_messages:"/outlook_mail/archive_messages",delete_messages:"/outlook_mail/delete_messages",delete_drafts:"/outlook_mail/delete_drafts",modify_categories:"/outlook_mail/modify_categories",create_category:"/outlook_mail/create_c
1ategory"},outlook_calendar:{create_event:"/outlook_calendar/create_event",add_event_attachments:"/outlook_calendar/add_event_attachments",delete_event_attachments:"/outlook_calendar/delete_event_attachments",update_event:"/outlook_calendar/update_event",delete_events:"/outlook_calendar/delete_events",cancel_event:"/outlook_calendar/cancel_event",respond_event:"/outlook_calendar/respond_event"},onedrive:{create_file:"/onedrive/create_file",create_folder:"/onedrive/create_folder",copy_file:"/onedrive/copy_file",move_or_rename_item:"/onedrive/move_or_rename_item",delete_files:"/onedrive/delete_files",create_share_link:"/onedrive/create_share_link",invite_access:"/onedrive/invite_access",remove_permission:"/onedrive/remove_permission"}},f=(0,d.merge)({},{outlook_mail:{search_messages:"/outlook_mail/search_messages",list_folders:"/outlook_mail/list_folders",get_message:"/outlook_mail/get_message",get_conversation:"/outlook_mail/get_conversation",list_attachments:"/outlook_mail/list_attachments",read_attachment:"/outlook_mail/read_attachment",list_drafts:"/outlook_mail/list_drafts",list_categories:"/outlook_mail/list_categories"},outlook_calendar:{list_calendars:"/outlook_calendar/list_calendars",list_events:"/outlook_calendar/list_events",get_event:"/outlook_calendar/get_event",list_event_attachments:"/outlook_calendar/list_event_attachments"},onedrive:{get_file_metadata:"/onedrive/get_file_metadata",list_children:"/onedrive/list_children",list_file_versions:"/onedrive/list_file_versions",get_file_permissions:"/onedrive/get_file_permissions",read_file_content:"/onedrive/read_file_content",download_file_content:"/onedrive/download_file_content",download_file_version:"/onedrive/download_file_version",search_files:"/onedrive/search_files"}},p),m={...g,...f},h={..._,...p};e.s(["GENERAL_AGENT_CONNECTOR_HITL_TOOL_PATHS_BY_APP",0,h,"GENERAL_AGENT_CONNECTOR_TOOL_PATHS_BY_APP",0,m],112341);let v={gmail:{label:"Gmail",Icon:({className:e=""})=>(0,t.jsx)(c.IconItem,{className:u.tw`i-cus--hix2-logo-gmail-circle ${e}`}),Description:()=>(0,t.jsx)(l.Trans,{id:"PPTasd"})},google_calendar:{label:"Google Calendar",Icon:({className:e=""})=>(0,t.jsx)(c.IconItem,{className:u.tw`i-cus--hix2-logo-google-calendar ${e}`}),Description:()=>(0,t.jsx)(l.Trans,{id:"vLn2fo"})},google_drive:{label:"Google Drive",Icon:({className:e=""})=>(0,t.jsx)(c.IconItem,{className:u.tw`i-cus--hix2-logo-google-drive-circle ${e}`}),Description:()=>(0,t.jsx)(l.Trans,{id:"1_b0HU"})},outlook_mail:{label:"Outlook Mail",Icon:({className:e=""})=>(0,t.jsx)(c.IconItem,{className:u.tw`i-cus--hix2-logo-outlook-mail ${e}`}),Description:()=>(0,t.jsx)(l.Trans,{id:"3iHoWE"})},outlook_calendar:{label:"Outlook Calendar",Icon:({className:e=""})=>(0,t.jsx)(c.IconItem,{className:u.tw`i-cus--hix2-logo-outlook-calendar ${e}`}),Description:()=>(0,t.jsx)(l.Trans,{id:"Me8T_C"})},onedrive:{label:"OneDrive",Icon:({className:e=""})=>(0,t.jsx)(c.IconItem,{className:u.tw`i-cus--hix2-logo-onedrive ${e}`}),Description:()=>(0,t.jsx)(l.Trans,{id:"Sq87PB"})}},I=Object.entries(v).map(([e,t])=>({appId:e,item:t}));e.s(["CONNECTOR_ITEMS",0,I,"CONNECTOR_ITEM_MAP",0,v],553219);var S=e.i(186488),T=e.i(622983),A=e.i(926041);async function b(){}function C(){}let E=(0,o.createContext)(null);function y(e,t=!0,r=null){return(0,S.createStore)()(n=>({closeConnectorManagement:()=>n({isConnectorManagementOpen:!1}),connectorApps:[],disconnectConnector:C,disconnectingAppId:null,isConnectorAppsFetched:!1,isConnectorManagementOpen:!1,isQueryEnabled:t,openConnectorManagement:()=>n({isConnectorManagementOpen:!0}),projectId:e,refetchConnectorApps:b,setConnectorEnabled:C,settingEnabledAppId:null,userId:r,writeTarget:null}))}let M=y(null);function w(e){return e}e.s(["ConnectorAppsStoreContext",0,E,"createConnectorAppsStore",0,y,"noopConnectorApps",0,C,"noopConnectorAppsAsync",0,b,"useConnectorAppsStore",0,function(e){let t=(0,o.useContext)(E);if(!t)throw Error("useConnectorAppsStore must be used within a ChatAguiConnectorAppsProvider");return(0,A.useStoreWithEqualityFn)(t,e??w,T.shallow)},"useOptionalConnectorAppsStore",0,function(){let e=(0,o.useContext)(E),t=(0,A.useStoreWithEqualityFn)(e??M,w,T.shallow);return e?t:void 0},"useOptionalConnectorAppsStoreApi",0,function(){return(0,o.useContext)(E)}],759359);var O=e.i(718451),x=e.i(854655);function $({children:e,projectId:l,queryEnabled:c=!0,writeTarget:u}){let{isSignIn:d,userId:_}=(0,i.useAuthState)(),g=d&&_?_:null,p=null!==g&&c,f=l??null,m=null!==u,h=void 0===u?l:u?.projectId,I=(0,o.useRef)(null);null===I.current&&(I.current={connectorAppsStore:y(f,c,g),refetchInFlightByRequestKe
1y:new Map});let{connectorAppsStore:S,refetchInFlightByRequestKey:T}=I.current,A=(0,o.useRef)(null),M=(0,o.useRef)(null),{data:w,isFetchedAfterMount:k,isSuccess:j,refetch:W}=O.api.connectors.listApps.useQuery({userId:g??"",...f?{projectId:f}:{}},{enabled:p,refetchOnMount:"always",trpc:{context:{errorMessage:!1}},refetchOnWindowFocus:!0}),R=(0,a.useMemoizedFn)(async()=>{if(!g||!c)return;let e=JSON.stringify([g,f]),t=T.get(e);if(t)return void await t;let r=W().then(e=>{let t=S.getState();e.isSuccess&&void 0!==e.data&&t.userId===g&&t.isQueryEnabled&&t.projectId===f&&S.setState({connectorApps:e.data,isConnectorAppsFetched:!0})});T.set(e,r);try{await r}finally{T.get(e)===r&&T.delete(e)}}),{mutateAsync:F}=O.api.connectors.disconnect.useMutation(),{mutateAsync:L}=O.api.connectors.setEnabled.useMutation(),D=(0,a.useMemoizedFn)(async(e,t)=>{let r=S.getState();null!=r.writeTarget&&r.userId===e&&r.projectId===(t??null)&&r.writeTarget.projectId===t&&await r.refetchConnectorApps()}),P=(0,a.useMemoizedFn)(({appId:e,linkId:t})=>{let n=S.getState(),a=n.userId,o=n.writeTarget;if(null==a||null==o)return;let i=v[e].label,l=Symbol("disconnect-connector");A.current=l,S.setState({disconnectingAppId:e}),(async()=>{try{let e=await F({linkId:t,...o.projectId?{projectId:o.projectId}:{}});if(await D(a,o.projectId),A.current!==l||S.getState().userId!==a||"revoked"!==e.status)return;let n=await (0,x.getAntdMessageApi)();A.current===l&&S.getState().userId===a&&n.success(r.i18n._({id:"ugIeWb",values:{appLabel:i}}))}catch(e){if(A.current===l&&S.getState().userId===a){let t=await (0,x.getAntdMessageApi)();A.current===l&&S.getState().userId===a&&t.error((0,s.getErrorMessage)(e))}}finally{A.current===l&&(A.current=null,S.setState({disconnectingAppId:null}))}})()}),B=(0,a.useMemoizedFn)(({appId:e,enabled:t,linkId:n})=>{let a=S.getState(),o=a.userId,i=a.writeTarget;if(null==o||null==i)return;let l=v[e].label,c=Symbol("set-connector-enabled");M.current=c,S.setState({settingEnabledAppId:e}),(async()=>{try{let e=await L({enabled:t,linkId:n,...i.projectId?{projectId:i.projectId}:{}});if(await D(o,i.projectId),M.current!==c||S.getState().userId!==o||"enabled"!==e.status&&"disabled"!==e.status)return;let a=await (0,x.getAntdMessageApi)();M.current===c&&S.getState().userId===o&&a.success("enabled"===e.status?r.i18n._({id:"y162WD",values:{appLabel:l}}):r.i18n._({id:"saPY7o",values:{appLabel:l}}))}catch(e){if(M.current===c&&S.getState().userId===o){let t=await (0,x.getAntdMessageApi)();M.current===c&&S.getState().userId===o&&t.error((0,s.getErrorMessage)(e))}}finally{M.current===c&&(M.current=null,S.setState({settingEnabledAppId:null}))}})()}),N=(0,a.useMemoizedFn)(()=>{null!=S.getState().writeTarget&&S.setState({isConnectorManagementOpen:!0})});return(0,n.useIsomorphicLayoutEffect)(()=>{let e={},t=S.getState(),r=t.projectId!==f,n=t.userId!==g,a=r||n;t.isQueryEnabled!==c&&(e.isQueryEnabled=c),n&&(e.userId=g),r&&(e.projectId=f),a&&(e.disconnectingAppId=null,e.isConnectorManagementOpen=!1,e.settingEnabledAppId=null,e.connectorApps=[],e.isConnectorAppsFetched=!1);let o=p&&k&&j&&void 0!==w,i=!a&&t.isConnectorAppsFetched;p?o&&(e.connectorApps=w,e.isConnectorAppsFetched=!0,i=!0):(e.connectorApps=[],e.isConnectorAppsFetched=!1,i=!1);let s=m?{projectId:h}:null,l=i&&null!=s&&(s.projectId??null)===f?s:null,u=t.writeTarget?.projectId,d=l?.projectId;(null==t.writeTarget!=(null==l)||u!==d)&&(A.current=null,M.current=null,e.disconnectingAppId=null,e.settingEnabledAppId=null,e.writeTarget=l),null==l&&(e.isConnectorManagementOpen=!1),Object.keys(e).length>0&&S.setState(e)},[S,g,w,k,p,j,f,c,h,m]),(0,n.useIsomorphicLayoutEffect)(()=>(S.setState({disconnectConnector:P,openConnectorManagement:N,refetchConnectorApps:R,setConnectorEnabled:B}),()=>{S.setState({disconnectConnector:C,openConnectorManagement:C,refetchConnectorApps:b,setConnectorEnabled:C})}),[S,P,N,R,B]),(0,t.jsx)(E.Provider,{value:S,children:e})}e.s(["AccountConnectorAppsProvider",0,function({children:e}){return(0,t.jsx)($,{children:e})},"ChatAguiConnectorAppsProvider",0,function({children:e,projectId:r,queryEnabled:n=!0,writeTarget:a}){let i=(0,o.useContext)(E);return i?.getState().projectId===(r??null)&&i.getState().isQueryEnabled===n?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)($,{projectId:r,queryEnabled:n,writeTarget:a,children:e})}],38813)},902667,e=>{"use strict";var t=e.i(811169),r=e.i(82164),n=e.i(554690);e.s(["bytesToMegabytes",0,function(e){return e/1024/1024},"getProjectTrackErrorMsg",0,function(e){return(0,r.getErrorMessage)(e)},"getProjectTrackFileType",0,function(e){let t=(0,n.getStandardFileType)(e);return"application/pdf"===t?"pdf":t.startsWith("image/")?"image":t.startsWith("audio/")?"audio":t.startsWith("video/")?"video":"doc"},"joinProjectTrackItemNames",0,function(e){return e.length>0?e.join(","):void 0},"trackCreateProject",0,function(e){t.trackEmitter.emit("track-event",{name:"create_project",...e})},"trackProject",0,function(e){t.trackEmitter.emit("track-event",{name:"project",...e})}])},540018,e=>{"use strict";var t=e.i(166101),r=e.i(659638),n=e.i(584526),a=e.i(421773),o=e.i(184885),i=e.i(187674),s=e.i(281541);e.s(["useUpgradePlanAction",0,function(){let{user:e}=(0,i.useAccountContext)(),{isSignIn:l}=e,{plan:c,appName:u}
1=(0,s.useSubProductInfo)(),{upgradePlan:d,incrementalPackage:_}=(0,o.useAppUIModal)(),{canBuyAdvancedCreditsPackage:g,hasActivePlan:p}=c;return{handleUpgradePlan:(0,r.useCallback)(()=>{l&&g?_.show({appName:u}):d.show({appName:u,location:"Header"})},[u,g,_,l,d]),buttonText:(0,r.useMemo)(()=>{if((0,a.getBlackFridayModalTime)().validateIsActive()){let e=g?a.BLACK_FRIDAY_DISCOUNT:a.BLACK_FRIDAY_DISCOUNT_PROMOTION;return(0,t.jsx)(n.Trans,{id:"VvDO-j",values:{discount:e}})}return p?(0,t.jsx)(n.Trans,{id:"pbYyV6"}):(0,t.jsx)(n.Trans,{id:"kwkhPe"})},[g,p])}}])},82164,e=>{"use strict";e.s(["getErrorMessage",0,function(e){return function(e){if("object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message)return e;try{return Error(JSON.stringify(e))}catch{return Error(String(e))}}(e).message}])}]);

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.