PageSourceSearch

https://go-proxy-bingai.karaika.workers.dev/web/js/bing/chat/lib.js

js go-proxy-bingai.karaika.workers.dev collected 2026-10-03 05:51:31 UTC 208,841 bytes, 3,422 lines download raw bytes

1/* eslint-disable */
2var Lib; (function(n) {
3  var t; (function(n) {
4    function t(n) {
5      return n && n.classList
6    }
7    function i(n, i) {
8      t(n) && n.classList.add(i)
9    }
10    function r(n, i) {
11      t(n) && n.classList.remove(i)
12    }
13    function u(n, i) {
14      t(n) && n.classList.toggle(i)
15    }
16    function f(n, i) {
17      return t(n) && n.classList.contains(i)
18    }
19    function e(n, t) {
20      return n.getElementsByClassName ? n.getElementsByClassName(t) : null
21    }
22    function o(n) {
23      return n instanceof SVGElement ? n.getAttribute("class") : n.className
24    }
25    n.add = i;
26    n.remove = r;
27    n.toggle = u;
28    n.contains = f;
29    n.getElementByClassName = e;
30    n.getClassAttribute = o
31  })(t = n.CssClass || (n.CssClass = {}))
32})(Lib || (Lib = {}));
33
34function getBrowserWidth () {
35  var t = _d.documentElement
36    , n = Math.round(_w.innerWidth || t.clientWidth);
37  return n < 100 && (n = 1496),
38    n;
39}
40function getBrowserHeight () {
41  var t = _d.documentElement
42    , n = Math.round(_w.innerHeight || t.clientHeight);
43  return n < 100 && (n = 796),
44    n;
45}
46function getBrowserScrollWidth () {
47  var n = Math.round(_d.body.clientWidth);
48  return n < 100 && (n = 1496),
49    n;
50}
51function getBrowserScrollHeight () {
52  var n = Math.round(_d.body.clientHeight);
53  return n < 100 && (n = 796),
54    n;
55}
56window.ClientObserver = {
57  getBrowserWidth: getBrowserWidth,
58  getBrowserHeight: getBrowserHeight,
59  getBrowserScrollWidth: getBrowserScrollWidth,
60  getBrowserScrollHeight: getBrowserScrollHeight,
61};
62
63var __awaiter = this && this.__awaiter ||
64function(n, t, i, r) {
65  function u(n) {
66    return n instanceof i ? n: new i(function(t) {
67      t(n)
68    })
69  }
70  return new(i || (i = Promise))(function(i, f) {
71    function o(n) {
72      try {
73        e(r.next(n))
74      } catch(t) {
75        f(t)
76      }
77    }
78    function s(n) {
79      try {
80        e(r["throw"](n))
81      } catch(t) {
82        f(t)
83      }
84    }
85    function e(n) {
86      n.done ? i(n.value) : u(n.value).then(o, s)
87    }
88    e((r = r.apply(n, t || [])).next())
89  })
90},
91__generator = this && this.__generator ||
92function(n, t) {
93  function o(n) {
94    return function(t) {
95      return s([n, t])
96    }
97  }
98  function s(o) {
99    if (e) throw new TypeError("Generator is already executing.");
100    while (f && (f = 0, o[0] && (r = 0)), r) try {
101      if (e = 1, u && (i = o[0] & 2 ? u["return"] : o[0] ? u["throw"] || ((i = u["return"]) && i.call(u), 0) : u.next) && !(i = i.call(u, o[1])).done) return i; (u = 0, i) && (o = [o[0] & 2, i.value]);
102      switch (o[0]) {
103      case 0:
104      case 1:
105        i = o;
106        break;
107      case 4:
108        return r.label++,
109        {
110          value: o[1],
111          done: !1
112        };
113      case 5:
114        r.label++;
115        u = o[1];
116        o = [0];
117        continue;
118      case 7:
119        o = r.ops.pop();
120        r.trys.pop();
121        continue;
122      default:
123        if (! (i = r.trys, i = i.length > 0 && i[i.length - 1]) && (o[0] === 6 || o[0] === 2)) {
124          r = 0;
125          continue
126        }
127        if (o[0] === 3 && (!i || o[1] > i[0] && o[1] < i[3])) {
128          r.label = o[1];
129          break
130        }
131        if (o[0] === 6 && r.label < i[1]) {
132          r.label = i[1];
133          i = o;
134          break
135        }
136        if (i && r.label < i[2]) {
137          r.label = i[2];
138          r.ops.push(o);
139          break
140        }
141        i[2] && r.ops.pop();
142        r.trys.pop();
143        continue
144      }
145      o = t.call(n, r)
146    } catch(s) {
147      o = [6, s];
148      u = 0
149    } finally {
150      e = i = 0
151    }
152    if (o[0] & 5) throw o[1];
153    return {
154      value: o[0] ? o[1] : void 0,
155      done: !0
156    }
157  }
158  var r = {
159    label: 0,
160    sent: function() {
161      if (i[0] & 1) throw i[1];
162      return i[1]
163    },
164    trys: [],
165    ops: []
166  },
167  e,
168  u,
169  i,
170  f;
171  return f = {
172    next: o(0),
173    "throw": o(1),
174    "return": o(2)
175  },
176  typeof Symbol == "function" && (f[Symbol.iterator] = function() {
177    return this
178  }),
179  f
180},
181FreeSydneyHelper; (function(n) {
182  function t() {
183    var n = _w._sydConvTranslation;
184    return [{
185      category: "chat",
186      text: n.customGptWelcomeTilesQuestionDescription,
187      title: " ",
188      size: "medium"
189    },
190    {
191      category: "write",
192      text: n.customGptWelcomeTilesListDescription,
193      title: " ",
194      size: "medium"
195    },
196    {
197      category: "laugh",
198      text: n.customGptWelcomeTilesSummarizeDescription,
199      title: " ",
200      size: "medium"
201    }]
202  }
203  function i() {
204    var t, i, r, u, f, e, n = _w._sydConvTranslation,
205    s = SydFSCHelper.getConfigOrDefault((t = _w._sydConvConfig) === null || t === void 0 ? void 0 : t.freeSydneyCopilotIconUrl, ""),
206    h = SydFSCHelper.getConfigOrDefault((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.freeSydneyDesignerIconUrl, ""),
207    c = SydFSCHelper.getConfigOrDefault((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableDesignerGPT, !1),
208    l = SydFSCHelper.getConfigOrDefault((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableShopperGpt, !1),
209    a = SydFSCHelper.getConfigOrDefault((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.freeSydneyShopperIconUrl, ""),
210    v = SydFSCHelper.getConfigOrDefault((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.shopperGptOptionSet, ""),
211    o = [{
212      id: "copilot",
213      type: "Copilot",
214      name: "Copilot",
215      displayName: "Copilot",
216      icon: s,
217      avatarImageUrl: s,
218      description: n.freeSydneyPersonaCopilotDescription,
219      extraOptionsSets: [],
220      supportedTones: ["Balanced", "Creative", "Precise"],
221      defaultTone: "Balanced",
222      showThreads: !0,
223      welcomeHeader: n.freeSydneyPersonaCopilotWelcomeUpsellTitle,
224      welcomeTiles: [{
225        category: "write",
226        text: n.freeSydneyWelcomeTilesWriteDescription2,
227        title: n.freeSydneyWelcomeTilesWriteTitle,
228        size: "medium"
229      },
230      {
231        category: "compare",
232        text: n.freeSydneyWelcomeTilesCompareDescription,
233        title: n.freeSydneyWelcomeTilesCompareTitle,
234        size: "medium"
235      },
236      {
237        category: "organize",
238        text: n.freeSydneyWelcomeTilesOrganizeDescription,
239        title: n.freeSydneyWelcomeTilesOrganizeTitle,
240        size: "medium"
241      }]
242    },
243    ];
244    return c && o.push({
245      id: "designer",
246      type: "Designer",
247      name: "Designer",
248      displayName: "Designer",
249      icon: h,
250      avatarImageUrl: "/th?id=OEP.F7FA78B209D179D3288C323EA76AFB46&pid=BEmail",
251      description: n.freeSydneyPersonaDesignerDescription,
252      extraOptionsSets: ["ai_persona_designer_gpt", "flux_websearch_v14"],
253      supportedTones: ["Creative"],
254      defaultTone: "Creative",
255      showThreads: !1,
256      welcomeHeader: n.freeSydneyPersonaDesignerWelcomeUpsellTitle,
257      welcomeTiles: [{
258        size: "small",
259        text: n.freeSydneyPersonaDesignerPromptOne,
260        imageUrl: "/designer/designer-gpt-welcome-tiles/8.jpeg",
261        hideText: !0,
262        hideTitle: !0,
263        overlayOnHover: !0
264      },
265      {
266        size: "small",
267        text: n.freeSydneyPersonaDesignerPromptTwo,
268        imageUrl: "/designer/designer-gpt-welcome-tiles/7.jpeg",
269        hideText: !0,
270        hideTitle: !0,
271        overlayOnHover: !0
272      },
273      {
274        size: "small",
275        text: n.freeSydneyPersonaDesignerPromptThree,
276        imageUrl: "/designer/designer-gpt-welcome-tiles/9.jpeg",
277        hideText: !0,
278        hideTitle: !0,
279        overlayOnHover: !0
280      },
281      ]
282    }),
283    l && o.push({
284      id: "shopping",
285      type: "shopping",
286      name: "Personal shopper",
287      displayName: "Personal shopper",
288      icon: a,
289      avatarImageUrl: "/th?id=OSS.BTF4F05379EDB48FF123263FE0A294EA2D14CF63EA7DE7F7764446DBB09A738ECA&pid=Bemail",
290      description: n.freeSydneyPersonaShopperDescription,
291      extraOptionsSets: [v],
292      supportedTones: ["Creative"],
293      defaultTone: "Creative",
294      showThreads: !1,
295      welcomeHeader: n.freeSydneyPersonaShopperWelcomeUpsellTitle,
296      welcomeTiles: [{
297        size: "small",
298        text: n.freeSydneyPersonaShopperPromptOne,
299        imageUrl: "https://go-proxy-bingai.karaika.workers.dev/th/th?id=OSS.BTD01519DD0912953AEF2F4FCCF08E3614A1272F04342346CE9548898DE3016436&w=1024&h=1024&c=1",
300        hideText: !0,
301        hideTitle: !0,
302        overlayOnHover: !0
303      },
304      {
305        size: "small",
306        text: n.freeSydneyPersonaShopperPromptTwo,
307        imageUrl: "https://go-proxy-bingai.karaika.workers.dev/th/th?id=OSS.BTBE78601880390CE49F74F3EB367892394DBB263B17A0C9FDCFE1FC665D52061E&w=1024&h=1024&c=1",
308        hideText: !0,
309        hideTitle: !0,
310        overlayOnHover: !0
311      },
312      {
313        size: "small",
314        text: n.freeSydneyPersonaShopperPromptThree,
315        imageUrl: "https://go-proxy-bingai.karaika.workers.dev/th/th?id=OSS.BTF69D4FB61505A4A8880BDE0A2F83274E3553C223E362FEDFEBF830F6DF6B6349&w=1024&h=1024&c=1",
316        hideText: !0,
317        hideTitle: !0,
318        overlayOnHover: !0
319      },
320      ]
321    }),
322    {
323      freeSydneyPersonaModels: o
324    }
325  }
326  function r() {
327    var n;
328    return __awaiter(this, void 0, void 0,
329    function() {
330      var i, r, t, f;
331      return __generator(this,
332      function(e) {
333        switch (e.label) {
334        case 0:
335          return e.trys.push([0, 2, , 3]),
336          i = new URL("turing/api/1p-gpt-list", window.location.origin),
337          [4, SydFSCHelper.createRequest(i.href, "", "GET")];
338        case 1:
339          return (r = e.sent(), t = JSON.parse(r.response), t === null || t === void 0 ? void 0 : t.gptList) ? [2, ((n = t === null || t === void 0 ? void 0 : t.gptList) === null || n === void 0 ? void 0 : n.map(function(n) {
340            return u(n)
341          })) || []] : [3, 3];
342        case 2:
343          return f = e.sent(),
344          SydFSCHelper.SydLog("SystemEvent", "Get1pGptsFromApiError", "FreeSydneyHelper", {}),
345          [2, []];
346        case 3:
347          return [2]
348        }
349      })
350    })
351  }
352  function u(n) {
353    var t, i;
354    return ! n || !n.gptId || !n.type || !n.name ? {}: {
355      id: n.gptId,
356      type: n.type,
357      name: n.name,
358      displayName: n.displayName,
359      icon: (t = n.icon) !== null && t !== void 0 ? t: "",
360      description: n.description,
361      authorName: n.authorName,
362      extraOptionsSets: (i = n.extraOptionsSets) !== null && i !== void 0 ? i: [],
363      supportedTones: n.supportedTones,
364      defaultTone: n.defaultTone,
365      showThreads: !1,
366      welcomeHeader: "",
367      welcomeTiles: [],
368      accessLevel: n.accessLevel,
369      capabilities: n.capabilities
370    }
371  }
372  n.getDefaultCustomWelcomeTiles = t;
373  n.getFreeSydneyPersonasData = i;
374  n.get1pGptsFromApi = r;
375  sj_evt.fire("FreeSydneyHelperLoaded")
376})(FreeSydneyHelper || (FreeSydneyHelper = {}));
377
378var __assign = this && this.__assign ||
379function() {
380  return __assign = Object.assign ||
381  function(n) {
382    for (var t, r, i = 1,
383    u = arguments.length; i < u; i++) {
384      t = arguments[i];
385      for (r in t) Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r])
386    }
387    return n
388  },
389  __assign.apply(this, arguments)
390},
391__awaiter = this && this.__awaiter ||
392function(n, t, i, r) {
393  function u(n) {
394    return n instanceof i ? n: new i(function(t) {
395      t(n)
396    })
397  }
398  return new(i || (i = Promise))(function(i, f) {
399    function o(n) {
400      try {
401        e(r.next(n))
402      } catch(t) {
403        f(t)
404      }
405    }
406    function s(n) {
407      try {
408        e(r["throw"](n))
409      } catch(t) {
410        f(t)
411      }
412    }
413    function e(n) {
414      n.done ? i(n.value) : u(n.value).then(o, s)
415    }
416    e((r = r.apply(n, t || [])).next())
417  })
418},
419__generator = this && this.__generator ||
420function(n, t) {
421  function o(n) {
422    return function(t) {
423      return s([n, t])
424    }
425  }
426  function s(o) {
427    if (e) throw new TypeError("Generator is already executing.");
428    while (f && (f = 0, o[0] && (r = 0)), r) try {
429      if (e = 1, u && (i = o[0] & 2 ? u["return"] : o[0] ? u["throw"] || ((i = u["return"]) && i.call(u), 0) : u.next) && !(i = i.call(u, o[1])).done) return i; (u = 0, i) && (o = [o[0] & 2, i.value]);
430      switch (o[0]) {
431      case 0:
432      case 1:
433        i = o;
434        break;
435      case 4:
436        return r.label++,
437        {
438          value: o[1],
439          done: !1
440        };
441      case 5:
442        r.label++;
443        u = o[1];
444        o = [0];
445        continue;
446      case 7:
447        o = r.ops.pop();
448        r.trys.pop();
449        continue;
450      default:
451        if (! (i = r.trys, i = i.length > 0 && i[i.length - 1]) && (o[0] === 6 || o[0] === 2)) {
452          r = 0;
453          continue
454        }
455        if (o[0] === 3 && (!i || o[1] > i[0] && o[1] < i[3])) {
456          r.label = o[1];
457          break
458        }
459        if (o[0] === 6 && r.label < i[1]) {
460          r.label = i[1];
461          i = o;
462          break
463        }
464        if (i && r.label < i[2]) {
465          r.label = i[2];
466          r.ops.push(o);
467          break
468        }
469        i[2] && r.ops.pop();
470        r.trys.pop();
471        continue
472      }
473      o = t.call(n, r)
474    } catch(s) {
475      o = [6, s];
476      u = 0
477    } finally {
478      e = i = 0
479    }
480    if (o[0] & 5) throw o[1];
481    return {
482      value: o[0] ? o[1] : void 0,
483      done: !0
484    }
485  }
486  var r = {
487    label: 0,
488    sent: function() {
489      if (i[0] & 1) throw i[1];
490      return i[1]
491    },
492    trys: [],
493    ops: []
494  },
495  e,
496  u,
497  i,
498  f;
499  return f = {
500    next: o(0),
501    "throw": o(1),
502    "return": o(2)
503  },
504  typeof Symbol == "function" && (f[Symbol.iterator] = function() {
505    return this
506  }),
507  f
508},
509__spreadArray = this && this.__spreadArray ||
510function(n, t, i) {
511  if (i || arguments.length === 2) for (var r = 0,
512  f = t.length,
513  u; r < f; r++) ! u && r in t || (u || (u = Array.prototype.slice.call(t, 0, r)), u[r] = t[r]);
514  return n.concat(u || Array.prototype.slice.call(t))
515},
516SydFSCHelper; (function(n) {
517  function ie(u) {
518    var hb = this,
519    ti, ii, ri, fi, ei, hi, ci, yi, pi, bi, ki, di, gi, ir, fr, er, e, rb, o, dr, d, tt, ht, ct, s, gr, nu, g, at, tu, iu, ru, wt, uu, fu, yt, bt, cu, rt, kt, ub, lu, gt, ob, l, ut, ft, ni, sb, b;
520    u === void 0 && (u = null);
521    e = _w._sydConvConfig;
522    n.isConfigSet = !0;
523    var au = t(e === null || e === void 0 ? void 0 : e.country, !1),
524    vu = t(e === null || e === void 0 ? void 0 : e.countryConfidence, !1),
525    yu = t(e === null || e === void 0 ? void 0 : e.state, !1),
526    pu = t(e === null || e === void 0 ? void 0 : e.city, !1),
527    wu = t(e === null || e === void 0 ? void 0 : e.cityConfidence, !1),
528    bu = t(e === null || e === void 0 ? void 0 : e.zip, !1),
529    ku = t(e === null || e === void 0 ? void 0 : e.timezoneoffset, !1),
530    cb = t(e === null || e === void 0 ? void 0 : e.enableTimezoneOffsetFromJS, !1),
531    du = t(e === null || e === void 0 ? void 0 : e.dma, !1),
532    gu = t(e === null || e === void 0 ? void 0 : e.lat, !1),
533    nf = t(e === null || e === void 0 ? void 0 : e.long, !1),
534    lb = t(e === null || e === void 0 ? void 0 : e.userIpAddress, ""),
535    ab = t(e === null || e === void 0 ? void 0 : e.overrideSydOptions, !1),
536    tf = t(e === null || e === void 0 ? void 0 : e.sydOptionSets, !1),
537    rf = t(e === null || e === void 0 ? void 0 : e.voiceSrOptions, ""),
538    uf = t(e === null || e === void 0 ? void 0 : e.sydUrlPart, !1),
539    hr = t(e === null || e === void 0 ? void 0 : e.isSydCorpnet, !1),
540    vb = t(e === null || e === void 0 ? void 0 : e.enableSydOverlay, !1),
541    yb = t(e === null || e === void 0 ? void 0 : e.isVisualParityRun, !1),
542    k = t(e === null || e === void 0 ? void 0 : e.isMSAAuthenticated, !1),
543    ff = t(e === null || e === void 0 ? void 0 : e.isAADAuthenticated, !1),
544    pb = t(e === null || e === void 0 ? void 0 : e.userMailId, ""),
545    wb = t(e === null || e === void 0 ? void 0 : e.username, ""),
546    ef = t(e === null || e === void 0 ? void 0 : e.sydBaseUrl, !1),
547    et = t(e === null || e === void 0 ? void 0 : e.isCompliantSydneyEndpointEnabled, !1),
548    cr = t(e === null || e === void 0 ? void 0 : e.isBingChatForEnterprise, !1),
549    bb = t(e === null || e === void 0 ? void 0 : e.isBingChatForSchools, !1);
550    w = bb || cr;
551    vt = w && t(e === null || e === void 0 ? void 0 : e.bfbCookieChatConsented, !1);
552    var sf = t(e === null || e === void 0 ? void 0 : e.sydIDs, ""),
553    vf = t(e === null || e === void 0 ? void 0 : e.traceId, ""),
554    kb = t(_w._sydConvTranslation, {}),
555    db = t(e === null || e === void 0 ? void 0 : e.enableSydMic, !1),
556    lr = t(e === null || e === void 0 ? void 0 : e.enableSydShare, !1),
557    gb = t(e === null || e === void 0 ? void 0 : e.enableAnswerBridgeShare, !1),
558    nk = t(e === null || e === void 0 ? void 0 : e.enableMessageShareableSignalV2, !1),
559    tk = t(e === null || e === void 0 ? void 0 : e.addDv3Opt, !1),
560    ik = t(e === null || e === void 0 ? void 0 : e.addGenContentv3Opt, !1),
561    rk = t(e === null || e === void 0 ? void 0 : e.enable161Feats, !0),
562    uk = t(e === null || e === void 0 ? void 0 : e.enableAnsCardSuffix, !1),
563    fk = t(e === null || e === void 0 ? void 0 : e.enableLikeSaveToBingPage, !1),
564    ek = t(e === null || e === void 0 ? void 0 : e.isAdultUser, !0),
565    ok = t(e === null || e === void 0 ? void 0 : e.isMissingDob, !1),
566    sk = t(e === null || e === void 0 ? void 0 : e.removeDSAT, !0),
567    yf = t(e === null || e === void 0 ? void 0 : e.enableErrorTelemetry, !1),
568    pf = t(e === null || e === void 0 ? void 0 : e.enableSpeechContinuousErrorHandling, !1),
569    wf = t(e === null || e === void 0 ? void 0 : e.enableSpeechChatDataAfterPhrase, !1),
570    vr = t(e === null || e === void 0 ? void 0 : e.enableSpeechEarconOnInput, !1),
571    bf = t(e === null || e === void 0 ? void 0 : e.enableTTSOnSuggestionAfterVoice, !1),
572    hk = t(e === null || e === void 0 ? void 0 : e.enableTTSNeverSetting, !1),
573    ck = t(e === null || e === void 0 ? void 0 : e.enableCustomizedTtsOptions, !1),
574    lk = t(e === null || e === void 0 ? void 0 : e.enableCustomizedTtsVoiceNameOptions, !1),
575    kf = t(e === null || e === void 0 ? void 0 : e.enableSimpleVoiceInput, !1),
576    df = t(e === null || e === void 0 ? void 0 : e.enableSpeechDictationMode, !1),
577    gf = t(e === null || e === void 0 ? void 0 : e.enableAudioPreloadLimit, !1),
578    ne = t(e === null || e === void 0 ? void 0 : e.enableSpeechFateTTSStop, !1),
579    te = t(e === null || e === void 0 ? void 0 : e.enableSpeechGetUserMedia, !1),
580    ak = t(e === null || e === void 0 ? void 0 : e.enableSydCLOC, !1),
581    vk = t(e === null || e === void 0 ? void 0 : e.enableCdxFeats, !1),
582    ie = t(e === null || e === void 0 ? void 0 : e.cdxFeats, ""),
583    yk = t(e === null || e === void 0 ? void 0 : e.disableSecureUpdateConversation, !1),
584    pk = t(e === null || e === void 0 ? void 0 : e.disableSecureSendFeedback, !1),
585    wk = t(e === null || e === void 0 ? void 0 : e.enableFdbkFinalized, !1),
586    bk = t(e === null || e === void 0 ? void 0 : e.enableSemSerpShare, !1),
587    kk = t(e === null || e === void 0 ? void 0 : e.enableCreatorShare, !1),
588    dk = t(e === null || e === void 0 ? void 0 : e.enableShareModalDialog, !1),
589    fe = t(e === null || e === void 0 ? void 0 : e.enableSydImageCreate, !1),
590    ee = t(e === null || e === void 0 ? void 0 : e.enableSunoMusicCreate, !1),
591    oe = t(e === null || e === void 0 ? void 0 : e.enableSunoMusicInst, !1),
592    gk = t(e === null || e === void 0 ? void 0 : e.enableSunoMusicRelativeBaseUrl, !1),
593    nd = t(e === null || e === void 0 ? void 0 : e.enableSecureConnect, !0),
594    se = t(e === null || e === void 0 ? void 0 : e.enableInstanceAffinity, !1),
595    ye = t(e === null || e === void 0 ? void 0 : e.enableGetMessagesHub, !1),
596    td = t(e === null || e === void 0 ? void 0 : e.enableShortOpt, !1),
597    id = t(e === null || e === void 0 ? void 0 : e.enablePuidOvr, !1),
598    pe = t(e === null || e === void 0 ? void 0 : e.enablePerfTrk, !1),
599    rd = t(e === null || e === void 0 ? void 0 : e.enableEmbeddedPerf, !1),
600    we = t(e === null || e === void 0 ? void 0 : e.enableSinglePerfEventPerMessage, !1),
601    ud = t(e === null || e === void 0 ? void 0 : e.enableE2EPerf, !1),
602    fd = t(e === null || e === void 0 ? void 0 : e.enableCCPPerf, !1),
603    de = t(e === null || e === void 0 ? void 0 : e.enableFixScrollBackSerpAccidentally, !1),
604    eo = t(e === null || e === void 0 ? void 0 : e.enableNeatListening, !1),
605    oo = t(e === null || e === void 0 ? void 0 : e.enableUnauthRedir, 
605!1),
606    ho = t(e === null || e === void 0 ? void 0 : e.enableNewChatIconInActionBar, !1),
607    co = t(e === null || e === void 0 ? void 0 : e.enableActionBarV2, !1),
608    yr = t(e === null || e === void 0 ? void 0 : e.speechSurface, ""),
609    lo = t(e === null || e === void 0 ? void 0 : e.enableSpeechDictationBridgeMode, !1),
610    pr = t(e === null || e === void 0 ? void 0 : e.enableSpeculativeMode, !1),
611    ed = t(e === null || e === void 0 ? void 0 : e.enableTranslateForBotMessage, !1),
612    yo = t(e === null || e === void 0 ? void 0 : e.enableReadAloudMessage, !1),
613    po = t(e === null || e === void 0 ? void 0 : e.enableReadAloudOptions, !1),
614    wo = t(e === null || e === void 0 ? void 0 : e.enableSpeechTouchStart, !1),
615    bo = t(e === null || e === void 0 ? void 0 : e.enableReadAloudOnDeepLeoOnly, !1),
616    ko = t(e === null || e === void 0 ? void 0 : e.enableReadAloudFixV1, !1),
617    od = t(e === null || e === void 0 ? void 0 : e.bypassMicPermissionsQuery, !1),
618    go = t(e === null || e === void 0 ? void 0 : e.enableSpeechLanguageSetting, !1),
619    ns = t(e === null || e === void 0 ? void 0 : e.enableSpeechAutoDetectLanguage, !1),
620    sd = t(e === null || e === void 0 ? void 0 : e.enableWhisperSR, !1),
621    is = t(e === null || e === void 0 ? void 0 : e.enableSpeechLogNoiseReduction, !1),
622    hd = t(e === null || e === void 0 ? void 0 : e.enableAutoReopenMic, !1),
623    rs = t(e === null || e === void 0 ? void 0 : e.enableAutoReopenMicTTSStopped, !1),
624    us = t(e === null || e === void 0 ? void 0 : e.enableAccentedIconsOnMobileABV2, !1),
625    fs = t(e === null || e === void 0 ? void 0 : e.enableAltVoiceQuerySubmissionOnMobileABV2, !1),
626    es = t((ti = _w._sydConvConfig) === null || ti === void 0 ? void 0 : ti.enableMockMicListeningState, !1),
627    os = t((ii = _w._sydConvConfig) === null || ii === void 0 ? void 0 : ii.enableMockMicBlockedState, !1),
628    ss = t((ri = _w._sydConvConfig) === null || ri === void 0 ? void 0 : ri.enableRecogFailedLogNoiseReduction, !1),
629    hs = t((fi = _w._sydConvConfig) === null || fi === void 0 ? void 0 : fi.enableSpeculativeModeJSErrorChecks, !1),
630    cs = t((ei = _w._sydConvConfig) === null || ei === void 0 ? void 0 : ei.enableMicRestIconWhenListening, !1),
631    cd = t((hi = _w._sydConvConfig) === null || hi === void 0 ? void 0 : hi.enableAutoDetectLanguageNotification, !1),
632    ls = t((ci = _w._sydConvConfig) === null || ci === void 0 ? void 0 : ci.enableAutoDetectLanguageNotificationTest, !1),
633    ld = t((yi = _w._sydConvConfig) === null || yi === void 0 ? void 0 : yi.enableReopenMicNotification, !1),
634    ad = t((pi = _w._sydConvConfig) === null || pi === void 0 ? void 0 : pi.enableReopenMicNotificationTest, !1),
635    as = t((bi = _w._sydConvConfig) === null || bi === void 0 ? void 0 : bi.enableEarlyLogSpeechStateChanged, !1),
636    vs = t((ki = _w._sydConvConfig) === null || ki === void 0 ? void 0 : ki.enableUniversalInput, !1),
637    ys = t(e === null || e === void 0 ? void 0 : e.enableSpeechErrorHandling, !1),
638    ps = t(e === null || e === void 0 ? void 0 : e.enableSpeechAriaLabel, !1),
639    vd = t(e === null || e === void 0 ? void 0 : e.enableSpeechReopenMic, !1),
640    ws = t(e === null || e === void 0 ? void 0 : e.enableSpeechTTSLatencyLogging, !1),
641    bs = t(e === null || e === void 0 ? void 0 : e.enableSpeechInputWhileRequestIsPending, !1),
642    ks = t(e === null || e === void 0 ? void 0 : e.enableSpeechIconDarkTheme, !1),
643    yd = t(e === null || e === void 0 ? void 0 : e.enableNewTopicAutoExpand, !1),
644    pd = t(e === null || e === void 0 ? void 0 : e.enableMaxTurnsPerConversation, !1),
645    wd = t(e === null || e === void 0 ? void 0 : e.enableAmberTurnPerConversation, !1),
646    bd = t(e === null || e === void 0 ? void 0 : e.enableDynamicMaxMessageLength, !1),
647    ds = t(e === null || e === void 0 ? void 0 : e.maxMessageLength, c),
648    kd = t(e === null || e === void 0 ? void 0 : e.maxMessageLengthBalanced, c),
649    dd = t(e === null || e === void 0 ? void 0 : e.maxMessageLengthCreative, c),
650    gd = t(e === null || e === void 0 ? void 0 : e.maxMessageLengthPrecise, c),
651    ng = t(e === null || e === void 0 ? void 0 : e.maxMessageLengthBalancedPro, c),
652    tg = t(e === null || e === void 0 ? void 0 : e.maxMessageLengthCreativePro, c),
653    ig = t(e === null || e === void 0 ? void 0 : e.maxMessageLengthPrecisePro, c),
654    rg = t(e === null || e === void 0 ? void 0 : e.isAccountLinkedWithActiveAAD, !1),
655    ug = t(e === null || e === void 0 ? void 0 : e.enableThreadsAADMSASwitch, !1),
656    gs = t(e === null || e === void 0 ? void 0 : e.enableTelemetryPrivacy, !1),
657    fg = t(e === null || e === void 0 ? void 0 : e.enableSydSafeSearch, !1),
658    eg = t(e === null || e === void 0 ? void 0 : e.enableFeedbackClientSideScreenshot, !1),
659    og = t(e === null || e === void 0 ? void 0 : e.enablePrivacyConsent, !0),
660    sg = t(e === null || e === void 0 ? void 0 : e.syntheticStreamSpeed, ui),
661    hg = t(e === null || e === void 0 ? void 0 : e.disableShareWithNoMargin, !1),
662    cg = t(e === null || e === void 0 ? void 0 : e.enableMobileShareAnchorBottom, !1),
663    lg = t(e === null || e === void 0 ? void 0 : e.enableCreativeLandingPage, !1),
664    ag = t(e === null || e === void 0 ? void 0 : e.enableServerLogMerging, !1),
665    nh = t(e === null || e === void 0 ? void 0 : e.enableOneClickCopy, !1),
666    th = t(e === null || e === void 0 ? void 0 : e.enableReorderCopiedTextReferences, !1),
667    uh = t(e === null || e === void 0 ? void 0 : e.enableCodeCopy, !1),
668    fh = t(e === null || e === void 0 ? void 0 : e.enableCodeBar, !1),
669    eh = t(e === null || e === void 0 ? void 0 : e.enableCodeBarV2, !1),
670    oh = t(e === null || e === void 0 ? void 0 : e.enableUserMessageCopy, !1),
671    sh = t(e === null || e === void 0 ? void 0 : e.enableRichTextPaste, !1),
672    hh = t(e === null || e === void 0 ? void 0 : e.enablePasteMarkdownTable, !1),
673    ch = t(e === null || e === void 0 ? void 0 : e.enablePasteMath, !1),
674    vg = t(e === null || e === void 0 ? void 0 : e.enableMobileOneClickShare, !1),
675    yg = t(e === null || e === void 0 ? void 0 : e.enableMobileOneClickShareV2, !1),
676    pg = t(e === null || e === void 0 ? void 0 : e.enableFeedbackInstrumentation, !1),
677    wg = t(e === null || e === void 0 ? void 0 : e.enableSuggEndFix, !1),
678    bg = t(e === null || e === void 0 ? void 0 : e.enableAutoRecoverFromInvalidSession, !1),
679    kg = t(e === null || e === void 0 ? void 0 : e.enableAutoRecoverFromInvalidSessionForFirstTurn, !1),
680    dg = t(e === null || e === void 0 ? void 0 : e.enableActionBarIMEFix, !1),
681    gg = t(e === null || e === void 0 ? void 0 : e.enableGhostTrailingSpaceByLanguage, !1),
682    lh = t(e === null || e === void 0 ? void 0 : e.enableInlineFeedback, !1),
683    ah = t(e === null || e === void 0 ? void 0 : e.enableInlineFeedbackV2, !1),
684    vh = t(e === null || e === void 0 ? void 0 : e.enableInlineFeedbackV21, !1),
685    yh = t(e === null || e === void 0 ? void 0 : e.enableFeedbackCollectMoreInfo, !1),
686    ph = t(e === null || e === void 0 ? void 0 : e.enableSerpFeedback, !1),
687    wh = t(e === null || e === void 0 ? void 0 : e.enableMessageSave, !1),
688    bh = t(e === null || e === void 0 ? void 0 : e.enableMoreOnBotMessageActionsBar, !1),
689    kh = t(e === null || e === void 0 ? void 0 : e.enableMessageExport, !1),
690    dh = t(e === null || e === void 0 ? void 0 : e.enableMessageExportWithPlainText, !1),
691    gh = t(e === null || e === void 0 ? void 0 : e.enableHandoffAPI, !1),
692    nc = t(e === null || e === void 0 ? void 0 : e.enableSearchOnBingForBotMessage, !1),
693    tc = t(e === null || e === void 0 ? void 0 : e.enableSearchOnBingInLinkHoverCard, !1),
694    ic = t(e === null || e === void 0 ? void 0 : e.enableMessageExportOnlineWord, !1),
695    nn = t(e === null || e === void 0 ? void 0 : e.enableMessageExportWord, !1),
696    rc = t(e === null || e === void 0 ? void 0 : e.enableMessageExportOnlineExcel, !1),
697    uc = t(e === null || e === void 0 ? void 0 : e.enableMessageExportLocalExcel, !1),
698    fc = t(e === null || e === void 0 ? void 0 : e.enableTableBarFlatActions, !1),
699    tn = t(e === null || e === void 0 ? void 0 : e.enableThreadExportLocalWord, !1),
700    ec = t(e === null || e === void 0 ? void 0 : e.enableThreadExportOnlineWord, !1),
701    oc = t(e === null || e === void 0 ? void 0 : e.enableMessageExportV2, !1),
702    sc = t(e === null || e === void 0 ? void 0 : e.enableBotMessageActionsBar, !1),
703    hc = t(e === null || e === void 0 ? void 0 : e.enableShorterToastDuration, !1),
704    cc = t(e === null || e === void 0 ? void 0 : e.enableDirectlyOpenExportOnlineLink, !1),
705    lc = t(e === null || e === void 0 ? void 0 : e.enableLoginHintForSSO, !1),
706    kht = t(e === null || e === void 0 ? void 0 : e.enableLimitToMsaOnlineExport, !1),
707    dht = t(e === null || e === void 0 ? void 0 : e.enableLimitToAadOnlineExport, !1),
708    ac = t(e === null || e === void 0 ? void 0 : e.enableTonePreview, !1),
709    vc = t(e === null || e === void 0 ? void 0 : e.enableMSAuth1stPartyApp, !1),
710    yc = t(e === null || e === void 0 ? void 0 : e.enableAdsRedirectLinkForTextMessage, !1),
711    pc = t(e === null || e === void 0 ? void 0 : e.enableCopyHtml, !1),
712    wc = t(e === null || e === void 0 ? void 0 : e.enableCopyHtmlWithHighlightedCode, !1),
713    bc = t(e === null || e === void 0 ? void 0 : e.enableExportPdfWithAnswerScreenshot, !1),
714    kc = t(e === null || e === void 0 ? void 0 : e.enableExportDocxWithAnswerScreenshot, !1),
715    dc = t(e === null || e === void 0 ? void 0 : e.enableLibrariesSplitImport, !1),
716    gc = t(e === null || e === void 0 ? void 0 : e.enableFlatActionBar, !1),
717    nl = t(e === null || e === void 0 ? void 0 : e.codexMUIDUser, !1),
718    tl = t(e === null || e === void 0 ? void 0 : e.enableChatIconClickable, !1),
719    il = t(e === null || e === void 0 ? void 0 : e.enableChatQueryClickable, !1),
720    rl = t(e === null || e === void 0 ? void 0 : e.enableChatQueryClickableV2, !1),
721    ul = t(e === null || e === void 0 ? void 0 : e.enableChatQueryClickableV3, !1),
722    fl = t(e === null || e === void 0 ? void 0 : e.enableChatQueryClickableV4, !1),
723    el = t(e === null || e === void 0 ? void 0 : e.enableShareQuestionWithResponse, !1),
724    ol = t(e === null || e === void 0 ? void 0 : e.enableDynamicShareTitle, !1),
725    sl = t(e === null || e === void 0 ? void 0 : e.enableShareQuestionTitlePrefix, !1),
726    hl = t(e === null || e === void 0 ? void 0 : e.enableShareInlineAdsIframe, 
726!1),
727    cl = t(e === null || e === void 0 ? void 0 : e.enableSharePreview, !1),
728    ll = t(e === null || e === void 0 ? void 0 : e.enableShareToMyBing, !1),
729    al = t(e === null || e === void 0 ? void 0 : e.enableSharedHoverCitations, !1),
730    vl = t(e === null || e === void 0 ? void 0 : e.enableShowShareButtonWithSecurityCheck, !1),
731    yl = t(e === null || e === void 0 ? void 0 : e.enableScreenshotIgnoreOnCibSerp, !1),
732    pl = t(e === null || e === void 0 ? void 0 : e.enableStandaloneUtility, !1),
733    wl = t(e === null || e === void 0 ? void 0 : e.enableCPPRRUpsell, !1),
734    bl = t(e === null || e === void 0 ? void 0 : e.enableWelcomeCopilotProButton, !1),
735    kl = t(e === null || e === void 0 ? void 0 : e.enableCopilotProOverlay, !1),
736    dl = t(e === null || e === void 0 ? void 0 : e.enableCopilotProSpectrumTemplate, !1);
737    n.enableCreatorSendQueryWhenShowConvQuery = t(e === null || e === void 0 ? void 0 : e.enableCreatorSendQueryWhenShowConvQuery, !0);
738    n.padding2TMobile = t(e === null || e === void 0 ? void 0 : e.padding2TMobile, !0);
739    wi = t(e === null || e === void 0 ? void 0 : e.enableSetConvQueryFlag, !1);
740    y = t((di = _w._sydConvTranslation) === null || di === void 0 ? void 0 : di.pageTitleText, "");
741    it = document.title || "";
742    p = w ? lf: oi;
743    n.enableConvModeSwitchAjax = t(e === null || e === void 0 ? void 0 : e.enableConvModeSwitchAjax, !1);
744    n.enableBingChatPath = t(e === null || e === void 0 ? void 0 : e.enableBingChatPath, !1);
745    var ght = t(e === null || e === void 0 ? void 0 : e.enableCodexWin, !1),
746    nct = t(e === null || e === void 0 ? void 0 : e.enableCodexWinBotMessage, !1),
747    tct = t(e === null || e === void 0 ? void 0 : e.codexWinCurrentTurn, 0),
748    rn = t(e === null || e === void 0 ? void 0 : e.enableGetChats, !1),
749    un = t(e === null || e === void 0 ? void 0 : e.enableDelayGetChats, !1),
750    gl = t(e === null || e === void 0 ? void 0 : e.enableNewTables, !1),
751    fn = t(e === null || e === void 0 ? void 0 : e.codexTableVersion, 1),
752    na = t(e === null || e === void 0 ? void 0 : e.enableBufferMessage, !1),
753    ta = t(e === null || e === void 0 ? void 0 : e.enableBufferLoadingDots, !1),
754    ia = t(e === null || e === void 0 ? void 0 : e.enableServerMetaText, !1),
755    ra = t(e === null || e === void 0 ? void 0 : e.enableCodeInterpreterPreviewCode, !1),
756    wr = t(e === null || e === void 0 ? void 0 : e.enableGptForMobileBrowser, !1),
757    ua = t(e === null || e === void 0 ? void 0 : e.enable3PGptForMobileBrowser, !1),
758    fa = t(e === null || e === void 0 ? void 0 : e.enableGPTCreatorItemContextMenu, !1),
759    en = t(e === null || e === void 0 ? void 0 : e.enableGPTCreator, !1),
760    on = t(e === null || e === void 0 ? void 0 : e.enableGptWelcomeInitLoad, !1),
761    sn = t(e === null || e === void 0 ? void 0 : e.enableGptBuilderAction, !1),
762    hn = t(e === null || e === void 0 ? void 0 : e.isGptCreator, !1),
763    ea = t(e === null || e === void 0 ? void 0 : e.gptCreatorCopilotCreatorPath, !1),
764    oa = t(e === null || e === void 0 ? void 0 : e.gptCreatorBingPreviewPath, !1),
765    sa = t(e === null || e === void 0 ? void 0 : e.gptCreatorSharePath, !1),
766    ha = t(e === null || e === void 0 ? void 0 : e.enableMock3PGpts, !1),
767    ca = t(e === null || e === void 0 ? void 0 : e.enableGPTCreatorCreateGptPreview, !1),
768    cn = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorPreviewAutoSave, !1),
769    ln = t(e === null || e === void 0 ? void 0 : e.enableCopilotGptsPolicyLink, !1),
770    la = t(e === null || e === void 0 ? void 0 : e.disableSuggestionsInCustomGpt, !1),
771    aa = t(e === null || e === void 0 ? void 0 : e.enableThreadsForAllGpts, !1),
772    va = t(e === null || e === void 0 ? void 0 : e.enableOptimizedStreaming, !1),
773    an = t(e === null || e === void 0 ? void 0 : e.enableExportDocxWithFormat, !1),
774    vn = t(e === null || e === void 0 ? void 0 : e.enableExportDocxWithTableFormat, !1),
775    yn = t(e === null || e === void 0 ? void 0 : e.enableDisposeOrphanedHosts, !1),
776    pn = t(e === null || e === void 0 ? void 0 : e.enablePreserveTextFormat, !1),
777    wn = t(e === null || e === void 0 ? void 0 : e.enableHoverCardOnLearnMorePills, !1),
778    bn = t(e === null || e === void 0 ? void 0 : e.enableWowCDSSurvey, !1),
779    ya = t(e === null || e === void 0 ? void 0 : e.enableSydBeacon, !1),
780    kn = t(e === null || e === void 0 ? void 0 : e.enableShareOnHostMessage, !1),
781    dn = t(e === null || e === void 0 ? void 0 : e.disablePassBotGreetingInContext, !1),
782    pa = t(e === null || e === void 0 ? void 0 : e.enableThreadContextMenu, !1),
783    gn = t(e === null || e === void 0 ? void 0 : e.enableCloudflareCaptcha, !1),
784    ntt = t(e === null || e === void 0 ? void 0 : e.enableInvisibleCaptchaChallenge, !1),
785    ttt = t(e === null || e === void 0 ? void 0 : e.enableResizeObserverWithAnimationFrame, !1),
786    itt = t(e === null || e === void 0 ? void 0 : e.enableKnowledgeCardImage, !1),
787    wa = t(e === null || e === void 0 ? void 0 : e.enableStartPromotion, !1),
788    rtt = t(e === null || e === void 0 ? void 0 : e.enableCopyButtonInstrumented, !1),
789    ba = t(e === null || e === void 0 ? void 0 : e.enableThreads, !1),
790    utt = t(e === null || e === void 0 ? void 0 : e.enableThreadSync, !1),
791    ftt = t(e === null || e === void 0 ? void 0 : e.enableMobileKnowledgeCardOverlay, !1),
792    ett = t(e === null || e === void 0 ? void 0 : e.enableCibOverlayForKnowledgeCard, !1),
793    ott = t(e === null || e === void 0 ? void 0 : e.enableKCAdaptiveCardUpdate, !1),
794    stt = t(e === null || e === void 0 ? void 0 : e.enableKCInChatClickThroughRequery, !1),
795    htt = t(e === null || e === void 0 ? void 0 : e.enablePluginsByTone, !1),
796    ict = t(e === null || e === void 0 ? void 0 : e.flux3PPluginList, ""),
797    ka = t(e === null || e === void 0 ? void 0 : e.disableWelcomeScreen, !1),
798    ctt = t(e === null || e === void 0 ? void 0 : e.enableWelcomeScreenV2, !1),
799    ltt = t(e === null || e === void 0 ? void 0 : e.enableWelcomeScreenV3, !1),
800    att = t(e === null || e === void 0 ? void 0 : e.enableChatFRE, !1),
801    da = t(e === null || e === void 0 ? void 0 : e.disableZIRMSStart, !1),
802    ga = t(e === null || e === void 0 ? void 0 : e.enableWebPageContextMessages, !1),
803    vtt = t(e === null || e === void 0 ? void 0 : e.enableCodexPluginb, !1),
804    ytt = t(e === null || e === void 0 ? void 0 : e.enableNewAutoSuggestEndPoint, !1),
805    ptt = t(e === null || e === void 0 ? void 0 : e.enable2TQueryConfigsOnSerpLoad, !1),
806    rct = t(e === null || e === void 0 ? void 0 : e.enable2TQueryConfigClientObserverCheck, !1),
807    wtt = t(e === null || e === void 0 ? void 0 : e.enableSydStaticAdsLink, !1),
808    btt = t(e === null || e === void 0 ? void 0 : e.isMobileHost, !1),
809    ktt = t(e === null || e === void 0 ? void 0 : e.enableRenderCardRequestIMSearchParams, !1),
810    nv = t(e === null || e === void 0 ? void 0 : e.enableMessagePrivacy, !1),
811    tv = t(e === null || e === void 0 ? void 0 : e.enableCloseShareOnClickOutside, !1),
812    dtt = t(e === null || e === void 0 ? void 0 : e.enableTypingIndicatorForSerpSlotCreator, !1),
813    gtt = t(e === null || e === void 0 ? void 0 : e.enableOnProcessingStartEvent, !1),
814    nit = t(e === null || e === void 0 ? void 0 : e.enableOnProcessingCompleteEvent, !1),
815    iv = t(e === null || e === void 0 ? void 0 : e.enableUpdateProfile, !1),
816    tit = t(e === null || e === void 0 ? void 0 : e.enableTypewriter, !1),
817    rv = t(e === null || e === void 0 ? void 0 : e.sydRequestSource, ""),
818    iit = t(e === null || e === void 0 ? void 0 : e.enableConfirmPromptSingleDeleteThread, !1),
819    rit = !t(e === null || e === void 0 ? void 0 : e.disableTooltip, !1),
820    uit = t(e === null || e === void 0 ? void 0 : e.enableNewlineTooltip, !1),
821    fit = t(e === null || e === void 0 ? void 0 : e.enableDeferredImageCreatorCard, !1),
822    eit = t(e === null || e === void 0 ? void 0 : e.enableSaharaStream, !1),
823    oit = t(e === null || e === void 0 ? void 0 : e.enableFaviconsV2, !1),
824    sit = t(e === null || e === void 0 ? void 0 : e.enableFaviconsAutoRefresh, !1),
825    hit = t(e === null || e === void 0 ? void 0 : e.enableCachedContentFixForIsStartOfSession, !1),
826    cit = t(e === null || e === void 0 ? void 0 : e.enableUserIpAddress, !1),
827    lit = t(e === null || e === void 0 ? void 0 : e.enableLooseMessageDensity, !1),
828    ait = t(e === null || e === void 0 ? void 0 : e.enablePassSydedgForMobile, !1),
829    uv = t(e === null || e === void 0 ? void 0 : e.enableSuggestionItemEnterAnimation, !1),
830    fv = t(e === null || e === void 0 ? void 0 : e.enableKatexScroll, !1),
831    vit = t(e === null || e === void 0 ? void 0 : e.enableLinkPreviewCarou
831sel, !1),
832    yit = t(e === null || e === void 0 ? void 0 : e.useFakeDataForLinkPreviewCarousel, !1),
833    ev = t(e === null || e === void 0 ? void 0 : e.enablePageHeaderOverlapClamping, !1),
834    pit = t(e === null || e === void 0 ? void 0 : e.enableThreadShowPlugins, !1),
835    wit = t(e === null || e === void 0 ? void 0 : e.enableUpdateUserMessageId, !1),
836    bit = t(e === null || e === void 0 ? void 0 : e.enableUserMessageIdConsistency, !1),
837    kit = t(e === null || e === void 0 ? void 0 : e.enablePluginPanelFre, !1),
838    dit = t(e === null || e === void 0 ? void 0 : e.enablePersistentInputText, !1),
839    ov = t(e === null || e === void 0 ? void 0 : e.enableEmptyThreadTime, !1),
840    git = t(e === null || e === void 0 ? void 0 : e.enableRenderIframeCardRequest, !1),
841    sv = t(e === null || e === void 0 ? void 0 : e.enableBackendExportService, !1),
842    nrt = t(e === null || e === void 0 ? void 0 : e.enableFastChatLoadAnimation, !1),
843    trt = t(e === null || e === void 0 ? void 0 : e.enableShareInThreadsHeader, !0),
844    uct = t(e === null || e === void 0 ? void 0 : e.enableExternalSpeechIconAnimation, !1),
845    irt = t(e === null || e === void 0 ? void 0 : e.enableNewConversationActivate, !1),
846    hv = t(e === null || e === void 0 ? void 0 : e.enableInPrivateUserMode, !1),
847    rrt = t(e === null || e === void 0 ? void 0 : e.enableMobileFirstClickShare, !1),
848    urt = t(e === null || e === void 0 ? void 0 : e.enableMessageTypeCheck, !1),
849    cv = t(e === null || e === void 0 ? void 0 : e.enableSydneyGetMessagesHub, !1),
850    frt = t(e === null || e === void 0 ? void 0 : e.enableInlinePersonalizationConsent, !1),
851    ert = t(e === null || e === void 0 ? void 0 : e.enableInlinePersonalizationConsentCopilotLogo, !1),
852    ort = t(e === null || e === void 0 ? void 0 : e.enableInlinePersonalizationConsentCallback, !1),
853    srt = t(e === null || e === void 0 ? void 0 : e.personalizationInlineConsentTurn, hu),
854    lv = t(e === null || e === void 0 ? void 0 : e.enableEduStarterMessage, !1),
855    hrt = t(e === null || e === void 0 ? void 0 : e.enableEduStarterMessageAnimation, !1),
856    crt = t(e === null || e === void 0 ? void 0 : e.enablePhonePlugin, !1),
857    lrt = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginDogfoodEnvironment, !1),
858    art = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginBetaEnvironment, !1),
859    vrt = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginProductionEnvironment, !1),
860    yrt = t(e === null || e === void 0 ? void 0 : e.disablePhonePluginInPreciseTone, !1),
861    prt = t(e === null || e === void 0 ? void 0 : e.disablePhonePluginInBalancedTone, !1),
862    wrt = t(e === null || e === void 0 ? void 0 : e.disablePhonePluginInCreativeTone, !1),
863    brt = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginInPreciseTone, !1),
864    krt = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginInBalancedTone, !1),
865    drt = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginInCreativeTone, !1),
866    grt = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginCatalogId, !1),
867    nut = t(e === null || e === void 0 ? void 0 : e.enableUseStoreAsSourceForPhonePlugin, !1),
868    tut = t(e === null || e === void 0 ? void 0 : e.enablePhonePluginCatalog, !1),
869    iut = t(e === null || e === void 0 ? void 0 : e.enableAndroidCopilotV2, !1),
870    rut = t(e === null || e === void 0 ? void 0 : e.enableDonationPlugin, !1),
871    uut = t(e === null || e === void 0 ? void 0 : e.enableDonationPluginDogfood, !1),
872    fut = t(e === null || e === void 0 ? void 0 : e.enableDonationPluginProd, !1),
873    eut = t(e === null || e === void 0 ? void 0 : e.enableM365consumerPlugin, !1),
874    out = t(e === null || e === void 0 ? void 0 : e.enableM365ConsumerPluginOneDrive, !1),
875    sut = t(e === null || e === void 0 ? void 0 : e.enableM365ConsumerPluginHighPosition, !1),
876    hut = t(e === null || e === void 0 ? void 0 : e.enableAdaptiveCardMessage, !1),
877    av = t(e === null || e === void 0 ? void 0 : e.enableVersionedApiCalls, !1),
878    vv = t(e === null || e === void 0 ? void 0 : e.enableJWTFTRFix, !1),
879    cut = t(e === null || e === void 0 ? void 0 : e.enablePaywallTelemetryFix, !1),
880    lut = t(e === null || e === void 0 ? void 0 : e.enableNoBingSearchResponseBackgroun
880d, !1),
881    aut = t(e === null || e === void 0 ? void 0 : e.enableNoSearchPluginMetaMessage, !1),
882    yv = t(e === null || e === void 0 ? void 0 : e.enableOpenEdgeNotification, !1),
883    pv = t(e === null || e === void 0 ? void 0 : e.enableSuppressSigninMessage, !1),
884    vut = t(e === null || e === void 0 ? void 0 : e.enableRereadMetaAcc, !1),
885    yut = t(e === null || e === void 0 ? void 0 : e.enableKeyboardNav, !1),
886    wv = t(e === null || e === void 0 ? void 0 : e.enableExportPdfWithRichFormat, !1),
887    bv = t(e === null || e === void 0 ? void 0 : e.enableAttributionImages, !1),
888    kv = t(e === null || e === void 0 ? void 0 : e.enableAttributionImagesWhenAdsPresent, !1),
889    dv = t(e === null || e === void 0 ? void 0 : e.enableAttributionImagesCarousel, !1),
890    gv = t(e === null || e === void 0 ? void 0 : e.enableAttributionImagesClickthrough, !1),
891    ny = t(e === null || e === void 0 ? void 0 : e.enableThreadsConsent, !1),
892    put = t(e === null || e === void 0 ? void 0 : e.enableMutedThreadsConsent, !1),
893    ty = t(e === null || e === void 0 ? void 0 : e.enableDeleteSingleConversationMemory, !1),
894    wut = t(e === null || e === void 0 ? void 0 : e.enableNoScrollDownOnInit, !1),
895    but = t(e === null || e === void 0 ? void 0 : e.enableFormCodeBingUrl, !1),
896    kut = t(e === null || e === void 0 ? void 0 : e.enableRelativeSignInUrl, !1),
897    dut = t(e === null || e === void 0 ? void 0 : e.enableThreadsTopRightButton, !1),
898    gut = t(e === null || e === void 0 ? void 0 : e.enablePluginsTopRightButton, !1),
899    iy = t(e === null || e === void 0 ? void 0 : e.enableOneDs, !1),
900    nft = t(e === null || e === void 0 ? void 0 : e.enableBceMuidConsent, !1),
901    tft = t(e === null || e === void 0 ? void 0 : e.enableBfbCookieConsent, !1),
902    ry = t(e === null || e === void 0 ? void 0 : e.enableThreadContextMenuV2, !1),
903    uy = t(e === null || e === void 0 ? void 0 : e.enableSearchBoxAutoFocus, !1),
904    fy = t(e === null || e === void 0 ? void 0 : e.enableUserMessageRewriteInsteadOfCopy, !1),
905    ey = t(e === null || e === void 0 ? void 0 : e.enableUserMessageRewriteAndCopy, !1),
906    oy = t(e === null || e === void 0 ? void 0 : e.enableSendFeedback, !1),
907    sy = t(e === null || e === void 0 ? void 0 : e.enableSearchUserMessageOnBing, !1),
908    hy = t(e === null || e === void 0 ? void 0 : e.enableEditLastUserMessage, !1),
909    cy = t(e === null || e === void 0 ? void 0 : e.enableHideLastUserMessageInEdit, !1),
910    ly = t(e === null || e === void 0 ? void 0 : e.enablePrivateThreadDefaultTitle, !1),
911    ay = t(e === null || e === void 0 ? void 0 : e.enablePromptHandling, !1),
912    ift = t(e === null || e === void 0 ? void 0 : e.enableU18Scenario, !1),
913    a = t(e === null || e === void 0 ? void 0 : e.isCCP, !1),
914    rft = t(e === null || e === void 0 ? void 0 : e.enablePluginDevTools, !1),
915    uft = t(e === null || e === void 0 ? void 0 : e.enablePluginCSRF, !1),
916    vy = t(e === null || e === void 0 ? void 0 : e.enableModeAndSlotValidationForAds, !1),
917    fft = t(e === null || e === void 0 ? void 0 : e.enableLogNoChatVariant, !1),
918    eft = t(e === null || e === void 0 ? void 0 : e.enableVersionPrompt, !1),
919    oft = t(e === null || e === void 0 ? void 0 : e.enableAttributionsV2, !1),
920    sft = t(e === null || e === void 0 ? void 0 : e.enableLearnMoreCards, !1),
921    hft = t(e === null || e === void 0 ? void 0 : e.enableSentByDescriptor, !1),
922    yy = t(e === null || e === void 0 ? void 0 : e.enableInlineComponents, !1),
923    py = t(e === null || e === void 0 ? void 0 : e.enableSuggestionChipDisplayText, !1),
924    cft = t(e === null || e === void 0 ? void 0 : e.enableLinkPreviewFailureTelemetry, !1),
925    lft = t(e === null || e === void 0 ? void 0 : e.enableLinkPreviewAppIdV2, !1),
926    br = t(e === null || e === void 0 ? void 0 : e.enableWpFluxTwoTAnswerCard, !1),
927    wy = t(e === null || e === void 0 ? void 0 : e.disableWpFluxTwoTAnswerCardFallback, !1),
928    aft = t(e === null || e === void 0 ? void 0 : e.enableBICRelativeBaseUrl, !1);
929    v = t(e === null || e === void 0 ? void 0 : e.isCopilotChat, !1);
930    var vft = t(e === null || e === void 0 ? void 0 : e.enableCitationsOnSentences, !1),
931    by = t(e === null || e === void 0 ? void 0 : e.enableWelcomeItemEnterAnimation, !1),
932    ky = t(e === null || e === void 0 ? void 0 : e.enableToneSelectorAsDropdown, !1),
933    dy = t(e === null || e === void 0 ? void 0 : e.enableSidePanelPositionInlineStart, !1),
934    gy = t(e === null || e === void 0 ? void 0 : e.enableSidePanelAsPer
934sistent, !1),
935    np = t(e === null || e === void 0 ? void 0 : e.enableSidePanelVisibilityTrigger, !1),
936    tp = t(e === null || e === void 0 ? void 0 : e.enableSidePanelCustomScrollbar, !1),
937    ip = t(e === null || e === void 0 ? void 0 : e.enableConversationCustomScrollbar, !1),
938    rp = t(e === null || e === void 0 ? void 0 : e.enableConversationAlignmentTop, !1),
939    up = t(e === null || e === void 0 ? void 0 : e.enableSimpleCopilotWelcomeScreen, !1),
940    fp = t(e === null || e === void 0 ? void 0 : e.enableThreadsHoverDescriptor, !1),
941    yft = t(e === null || e === void 0 ? void 0 : e.enableAnswerCards, !0),
942    ep = t(e === null || e === void 0 ? void 0 : e.enableMessagesWithInternalLoadAnimation, !1),
943    op = t(e === null || e === void 0 ? void 0 : e.enableHideRAISuggestionIcon, !1),
944    sp = t(e === null || e === void 0 ? void 0 : e.enableMuidDisabledSuggestionBar, !1),
945    hp = t(e === null || e === void 0 ? void 0 : e.enableHideSuggestionOnErrors, !1),
946    cp = t(e === null || e === void 0 ? void 0 : e.enableConversationToActionBarFocusOrder, !1),
947    fct = t(e === null || e === void 0 ? void 0 : e.enableBopCustomGreeting, !1),
948    pft = t(e === null || e === void 0 ? void 0 : e.enableCopilotFullScreenUX, !1),
949    lp = t(e === null || e === void 0 ? void 0 : e.enableBufferClearOnReset, !1),
950    ap = t(e === null || e === void 0 ? void 0 : e.enableCancelPendingRequestOnNewMessage, !1),
951    wft = t(e === null || e === void 0 ? void 0 : e.enablePluginChatModeOnly, !1),
952    vp = t(e === null || e === void 0 ? void 0 : e.enableThreadsArrowNav, !1),
953    yp = t(e === null || e === void 0 ? void 0 : e.disableTitlePreviewLabel, !1),
954    pp = t(e === null || e === void 0 ? void 0 : e.disableTurnCount, !1),
955    wp = t(e === null || e === void 0 ? void 0 : e.enableMultiDomainBIC, !1),
956    bp = t(e === null || e === void 0 ? void 0 : e.allowedBICDomains, ""),
957    bft = t(e === null || e === void 0 ? void 0 : e.enableDeferGetConversation, !1),
958    kft = t(e === null || e === void 0 ? void 0 : e.enableBingProxyApiForSingleDeleteInThreads, !1);
959    nr = n.getConfigOrDefault((gi = _w._sydConvConfig) === null || gi === void 0 ? void 0 : gi.extraNotebookOptionsSets, "");
960    var dft = t(e === null || e === void 0 ? void 0 : e.enableSilentUpdateConversationFail, !1),
961    kp = t(e === null || e === void 0 ? void 0 : e.enableGraphicArtJsonResponse, !1),
962    gft = t(e === null || e === void 0 ? void 0 : e.enableInlineTwoTAnswer, !1),
963    dp = t(e === null || e === void 0 ? void 0 : e.enableFreeSydney, !1),
964    net = t(e === null || e === void 0 ? void 0 : e.enable1P3PGPTsGreeting, !1),
965    gp = t(e === null || e === void 0 ? void 0 : e.enableFreeSydneyV2Style, !1),
966    nw = t(e === null || e === void 0 ? void 0 : e.enableCustomGptPreview, !1),
967    tw = t(e === null || e === void 0 ? void 0 : e.enableShortShareUrl, !1),
968    tet = t(e === null || e === void 0 ? void 0 : e.defaultMaxPersonaCount, 6),
969    ot = t(e === null || e === void 0 ? void 0 : e.isBingUserSignedIn, !1),
970    st = t(e === null || e === void 0 ? void 0 : e.enableFlux3P, !1),
971    iet = t(e === null || e === void 0 ? void 0 : e.f3pMsaAccountOnly, !1),
972    ect = t(e === null || e === void 0 ? void 0 : e.isUnderside, !1),
973    ret = t(e === null || e === void 0 ? void 0 : e.enableF3pNoSearchBgFix, !1),
974    uet = t(e === null || e === void 0 ? void 0 : e.enablePluginCopilot, !1),
975    fet = t(e === null || e === void 0 ? void 0 : e.enableSearchPluginOnTop, !1),
976    iw = t(e === null || e === void 0 ? void 0 : e.enablePluginDiscovery, !1),
977    rw = t(e === null || e === void 0 ? void 0 : e.enablePluginCatalog, !1),
978    uw = t(e === null || e === void 0 ? void 0 : e.enableInstService, !1),
979    eet = t(e === null || e === void 0 ? void 0 : e.enablePluginRevocation, !1),
980    oet = t(e === null || e === void 0 ? void 0 : e.enableSearchPlugins, !1),
981    fw = t(e === null || e === void 0 ? void 0 : e.sydneyFeedbackVertical, ""),
982    set = t(e === null || e === void 0 ? void 0 : e.enableUndersideTopRightButtonBugFix, !1),
983    het = t(e === null || e === void 0 ? void 0 : e.enableDefaultGptsOnMobile, !1),
984    ew = t(e === null || e === void 0 ? void 0 : e.enableEnterToCreateNewLine, !1),
985    cet = t(e === null || e === void 0 ? void 0 : e.enableUpdateLocationButton, !1),
986    aet = t(e === null || e === void 0 ? void 0 : e.enableLocationMetaMessage, !1),
987    ow = t(e === null || e === void 0 ? void 0 : e.enableTextMessageDelayedFinalization, !1),
988    sw = t(e === null || e === void 0 ? void 0 : e.enableNewTopicButtonFeature, !1),
989    vet = t(e === null || e === void 0 ? void 0 : e.enableFullScreenIframe, 
989!1),
990    yet = t(e === null || e === void 0 ? void 0 : e.enableDelayedMsgHandlerDisposal, !1),
991    hw = t(e === null || e === void 0 ? void 0 : e.enableChangeSidePanelVisibility, !1),
992    pet = t(e === null || e === void 0 ? void 0 : e.enableMuidRobustnessFix, !1),
993    wet = t(e === null || e === void 0 ? void 0 : e.enableHideTypingIndicatorOnError, !1),
994    bet = t(e === null || e === void 0 ? void 0 : e.enableLearnmoreAsHeader, !1),
995    ket = t(e === null || e === void 0 ? void 0 : e.enableRaiButtonTooltip, !1),
996    det = t(e === null || e === void 0 ? void 0 : e.enableResetFocusLossFix, !1),
997    get = t(e === null || e === void 0 ? void 0 : e.disableTurnCountLocalAccount, !1),
998    not = t(e === null || e === void 0 ? void 0 : e.isTurnCountLocalAccountDisabled, !1),
999    cw = t(e === null || e === void 0 ? void 0 : e.enableWindowsCopilot, !1),
1000    lw = t(e === null || e === void 0 ? void 0 : e.codexHoverCardDelayTimerDuration, 500),
1001    tot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocks, !1),
1002    iot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksRAIButton, !1),
1003    rot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksStrokes, !1),
1004    uot = t(e === null || e === void 0 ? void 0 : e.enableGoldiLocksBackgroundLight, !1),
1005    fot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksLineHeight, !1),
1006    eot = t(e === null || e === void 0 ? void 0 : e.enableCitationSuperscriptFix, !1),
1007    oot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksMetaMessage, !1),
1008    sot = t(e === null || e === void 0 ? void 0 : e.enableTopAlignConversation, !1),
1009    hot = t(e === null || e === void 0 ? void 0 : e.enableHideZeroTurn, !1),
1010    cot = t(e === null || e === void 0 ? void 0 : e.enableMessageGroupHeader, !1),
1011    lot = t(e === null || e === void 0 ? void 0 : e.enableFullWidthMessages, !1),
1012    aot = t(e === null || e === void 0 ? void 0 : e.enableInlineStreamingIndicator, !1),
1013    vot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksAttributionPills, !1),
1014    yot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksMessageActions, !1),
1015    pot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksTurnCounter, !1),
1016    wot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksStrokes2T, !1),
1017    bot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksCitations, !1),
1018    kot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksWiderActionBar, !1),
1019    dot = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksExportDropdown, !1),
1020    got = t(e === null || e === void 0 ? void 0 : e.enableDefaultBalancedtone, !1),
1021    nst = t(e === null || e === void 0 ? void 0 : e.enableEmptyToneDebugLogs, !1),
1022    tst = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksInlineFeedback, !1),
1023    ist = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksUserMsgActionBar, !1),
1024    rst = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksContextual, !1),
1025    oct = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksSydneyAction, !1),
1026    ust = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksPersistentMetas, !1),
1027    fst = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksInlinePersistentMetas, !1),
1028    est = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksBackgroundGpt, !1),
1029    ost = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksIdentity, !1),
1030    sst = t(e === null || e === void 0 ? void 0 : e.enableAdaptiveCardImageForCodeInterpreter, !1),
1031    hst = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksCopilotGreetingFix, !1),
1032    cst = t(e === null || e === void 0 ? void 0 : e.enableCodePreviewInFooter, !1),
1033    lst = t(e === null || e === void 0 ? void 0 : e.enableRegisterContextAsync, !1),
1034    ast = t(e === null || e === void 0 ? void 0 : e.enableStreamingInBackground, !1),
1035    vst = t(e === null || e === void 0 ? void 0 : e.enableBGStreamInChat, !1),
1036    yst = t(e === null || e === void 0 ? void 0 : e.enablePrefetchConversationToken, !1),
1037    pst = t(e === null || e === void 0 ? void 0 : e.enableConnectionProvider, !1),
1038    wst = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorCreatePanel, !1),
1039    bst = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanel, !1),
1040    kst = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelKnowledges, !1),
1041    aw = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelcapabilities, !1),
1042    dst = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelImageGenerator, !1),
1043    gst = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelCodeInterpreter, !1),
1044    nht = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelIconUpload, !1),
1045    tht = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelIconGenerated, !1),
1046    iht = t(e === null || e === void 0 ? void 0 : e.enableGptCreatorConfigurePanelIconExternalStorage, !1),
1047    rht = t(e === null || e === void 0 ? void 0 : e.userAnID, ""),
1048    uht = t(e === null || e === void 0 ? void 0 : e.enableFaqBcc, !0),
1049    fht = t(e === null || e === void 0 ? void 0 : e.enableFaqBce, !0),
1050    vw = t(e === null || e === void 0 ? void 0 : e.faqBccBceUrl, su),
1051    eht = t(e === null || e === void 0 ? void 0 : e.enableAttributionsV2MoreButton, !1),
1052    oht = t(e === null || e === void 0 ? void 0 : e.enable2TScrollToBottom, !1),
1053    yw = t(e === null || e === void 0 ? void 0 : e.enableThumbsDownToSearchOnBing, !1),
1054    pw = t(e === null || e === void 0 ? void 0 : e.enableThreadContextMenuA11yBugFix, !1),
1055    ww = t(e === null || e === void 0 ? void 0 : e.enableSRA11yFix, !1),
1056    bw = t(e === null || e === void 0 ? void 0 : e.enableStopStreamingSignal, !1),
1057    sht = t(e === null || e === void 0 ? void 0 : e.enableStartOfSessionFix, !1),
1058    hht = t(e === null || e === void 0 ? void 0 : e.enableGhostedAutoSuggest, !0),
1059    kw = t(e === null || e === void 0 ? void 0 : e.codexCanvas, ""),
1060    dw = t(e === null || e === void 0 ? void 0 : e.enableMetaFlowTasksMessage, !1),
1061    cht = t(e === null || e === void 0 ? void 0 : e.enableHostedContentToneSignal, !1),
1062    lht = t(e === null || e === void 0 ? void 0 : e.enableHostedContentPartnerSignal, !1),
1063    aht = t(e === null || e === void 0 ? void 0 : e.enableThreadZiFix, !1),
1064    vht = t(e === null || e === void 0 ? void 0 : e.enableDeleteAllThreads, !1),
1065    gw = t(e === null || e === void 0 ? void 0 : e.enableInternalSearchQueryReadout, !1),
1066    nb = t(e === null || e === void 0 ? void 0 : e.enableFixReponseReadout, !1),
1067    tb = t(e === null || e === void 0 ? void 0 : e.enableInlineButtonAdaptiveCardUpdate, !1),
1068    yht = t(e === null || e === void 0 ? void 0 : e.pluginDevToolsDfpSessionId, "");
1069    rr();
1070    iet && st && !k && (st = !1);
1071    a && i(r.System, "isCCP", "Codex");
1072    rv && (CIB.config.sydney.request.source = rv);
1073    var ib = t(e === null || e === void 0 ? void 0 : e.enableFixOnReplaceAllJSError, !1),
1074    kr = t(e === null || e === void 0 ? void 0 : e.enableNotebookMode, !1),
1075    pht = t(e === null || e === void 0 ? void 0 : e.enableNotebookMsaConsent, !1),
1076    wht = t(e === null || e === void 0 ? void 0 : e.isMsaMock, !1);
1077    if (kr && (CIB.config.features.enableNotebookMode = kr, pt = (ir = CIB.config.sydney.request.optionsSets) === null || ir === void 0 ? void 0 : ir.slice(0), tr = nr.split(","), CIB.config.features.enableRecoverConvNotebook = t(e === null || e === void 0 ? void 0 : e.enableRecoverConvNotebook, !1), CIB.config.features.enableShiftEnterNotebook = t(e === null || e === void 0 ? void 0 : e.enableShiftEnterNotebook, !1), CIB.config.features.enableAltNotebookIcons = t(e === null || e === void 0 ? void 0 : e.enableAltNotebookIcons, !1), CIB.config.features.enableGoldilocksNotebook = t(e === null || e === void 0 ? void 0 : e.enableGoldilocksNotebook, !1), CIB.config.features.enableNotebookVerticalLayout = t(e === null || e === void 0 ? void 0 : e.enableNotebookVerticalLayout, !1), CIB.config.features.enableNotebookVerticalResizer = t(e === null || e === void 0 ? void 0 : e.enableNotebookVerticalResizer, !1), CIB.config.features.enableNotebookMaxWidth = t(e === null || e === void 0 ? void 0 : e.enableNotebookMaxWidth, !1), CIB.config.features.enableNotebookPrefilledQuery = t(e === null || e === void 0 ? void 0 : e.enableNotebookPrefilledQuery, !1)), hv && (CIB.config.features.enableInPrivateUserMode = hv), lr && CIB.config.share && (CIB.config.share.customizedShareOutImageThumbnailId = t(e === null || e === void 0 ? void 0 : e.customizedShareOutImageThumbnailId, "")), v && lr && (CIB.config.share.baseUrl = window.location.origin), pft && (CIB.config.mobile.isFullScreenEnabled = !0, CIB.config.features.enableThreadsPreview = !1, CIB.config.mobile.isHeaderBackButtonEnabled = !1, CIB.config.features.enableThreadsHistoryIcon = !0), wut && (CIB.config.features.enableNoScrollDownOnInit = !0), but && (CIB.config.features.enableFormCodeBingUrl = !0), kut && (CIB.config.bing.signIn.baseUrl = window.location.origin), sj_evt.bind("showSydFSC", ur), bn && (CIB.config.features.enableWowCDSSurvey = !0), lit && (CIB.config.messaging.messageDensity = "loose"), ait && (((fr = CIB.config.contentCreator) === null || fr === void 0 ? void 0 : fr.query) != null && (CIB.config.contentCreator.query.frame = "sydedg"), ((er = CIB.config.sunoMusicCreator) === null || er === void 0 ? void 0 : er.query) != null && (CIB.config.sunoMusicCreator.query.frame = "sydedg")), uv && (CIB.config.features.enableSuggestionItemEnterAnimation = uv), fv && (CIB.config.features.enableKatexScroll = fv), aft && (CIB.config.contentCreator.baseUrl = window.location.origin), wp && bp && CIB.config.contentCreator && (CIB.config.contentCreator.allowedDomains = bp.split(",")), CIB.config.features.enableMultiDomainBIC = wp, CIB.config.features.enableDeferGetConversation = bft, lw !== 500 && (CIB.config.messaging.hoverCardDelayTimerDuration = lw), gw && (CIB.config.features.enableInternalSearchQueryReadout = gw), nb && (CIB.config.features.enableFixReponseReadout = nb), CIB.config.features.enableRereadMetaAcc = vut, CIB.config.features.enableKeyboardNav = yut, CIB.config.features.enableSentByDescriptor = hft, CIB.config.features.enableMessageTypeCheck = urt, CIB.config.features.enableVersionPrompt = eft, CIB.config.features.enableAttributionsV2 = oft, CIB.config.features.enableLearnMoreCards = sft, CIB.config.features.enableInlineTwoTAnswer = gft, CIB.config.features.enableMuidRobustnessFix = pet, CIB.config.features.enableHideTypingIndicatorOnError = wet, CIB.config.features.enableLearnmoreAsHeader = bet, CIB.config.features.enableRaiButtonTooltip = ket, CIB.config.features.enableResetFocusLossFix = det, gk && CIB.config.sunoMusicCreator && (CIB.config.sunoMusicCreator.baseUrl = window.location.origin), rb = _ge("cib-design-tokens"), rb || CIB.activateDesignTokens(), o = {},
1078    au && (o.country = au), yu && (o.state = yu), pu && (o.city = pu), bu && (o.zipcode = bu), cb || et ? o.timezoneoffset = -((new Date).getTimezoneOffset() / 60) : ku && (o.timezoneoffset = parseFloat(ku)), du && (o.dma = du), gu && (o.latitude = parseFloat(gu)), nf && (o.longitude = parseFloat(nf)), vu && (o.countryConfidence = vu), wu && (o.cityConfidence = wu), et ? (dr = Intl.DateTimeFormat().resolvedOptions().timeZone, dr && (o.timezone = dr), CIB.config.sydney.message.locationInfo = o) : u && typeof u.locations != "undefined" && typeof u.locations.locationsList != "undefined" ? typeof SydneyFSCLocationHelper != "undefined" && typeof SydneyFSCLocationHelper.writeToLocationHints != "undefined" && SydneyFSCLocationHelper.writeToLocationHints(u) : u && typeof u.cookLoc != "undefined" ? (d = [], u.cookLoc.userLoc && (tt = dt(u.co
1078okLoc.userLoc, !1), tt.RegionType = 1, tt.SourceType = 2, tt.FDConfidence = 1, d.push(tt)), u.cookLoc.deviceLoc && (ht = dt(u.cookLoc.deviceLoc, !1), ht.RegionType = 2, ht.SourceType = 5, d.push(ht)), ak && u.cookLoc.coarseLoc && (ct = dt(u.cookLoc.coarseLoc, !1), ct.RegionType = 2, ct.SourceType = 11, d.push(ct)), s = o, s.Center = {
1079      Latitude: s.latitude,
1080      Longitude: s.longitude
1081    },
1082    delete s.latitude, delete s.longitude, s.RegionType = 2, s.SourceType = 1, d.push(s), CIB.config.sydney.message.locationHints = d) : CIB.config.sydney.message.locationinfo = o, cit && (CIB.config.sydney.message.userIpAddress = lb), CIB.config.sydney.message.timestamp = ts(), or(kb), av && (CIB.config.features.enableVersionedApiCalls = av), vv && (CIB.config.features.enableJWTFTRFix = vv), vp && (CIB.config.features.enableThreadsArrowNav = vp), rn && (CIB.config.features.enableGetChats = !0), un && (CIB.config.features.enableDelayGetChats = !0), utt && (CIB.config.features.enableThreadSync = !0), tit && (CIB.config.features.enableTypewriterEffectForThreadName = !0), eit && (CIB.config.features.enableSaharaSyntheticStreaming = !0), oit && (CIB.config.features.enableFaviconV2 = !0), sit && (CIB.config.features.enableFaviconAutoRefresh = !0), hit && (CIB.config.features.enableCachedContentFixForIsStartOfSession = !0), dft && (CIB.config.features.enableSilentUpdateConversationFail = !0), het && (CIB.config.features.enableDefaultGptsOnMobile = !0), CIB.config.features.enableEmptyToneDebugLogs = nst, CIB.config.features.enableDefaultBalancedtone = got, CIB.config.features.enableBingProxyApiForSingleDeleteInThreads = kft, ba && st && (CIB.config.features.enableFlux3P = !0, typeof CIB.config.plugin == "undefined" && (CIB.config.plugin = {}), fet && (CIB.config.plugin.searchPluginPositon = 0), uet && (CIB.config.features.enablePluginCopilot = !0, CIB.config.plugin.baseUrl = window.location.origin), CIB.config.features.enablePluginDiscovery = iw, wft && (CIB.config.features.enablePluginOptionSetsConversationModeOnly = !0), lut && (CIB.config.features.enableNoBingSearchResponseBackground = !0), aut && (CIB.config.features.enableNoSearchPluginMetaMessage = !0), pit && (CIB.config.features.enableThreadShowPlugins = !0), kit && (CIB.config.features.enablePluginPanelFre = !0), vit && (CIB.config.features.enableLinkPreviewCarousel = !0), cft && (CIB.config.features.enableLinkPreviewFailureTelemetry = !0), lft && (CIB.config.features.enableLinkPreviewAppIdV2 = !0), htt && (CIB.config.features.enablePluginsByTone = !0), vtt && (CIB.config.features.enableOpenTableBookBlueLink = !0), ret && (CIB.config.features.enableNoBingSearchResponseBackgroundWithOptionsSets = !0), set && (CIB.config.features.enableUndersideTopRightButtonBugFix = !0), rft && (CIB.config.features.enablePluginDevTools = !0, CIB.config.features.enablePluginRequestsBugFix = !0), uft && (CIB.config.features.enablePluginCSRF = !0, b = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get("_SS", "SID"), b && (CIB.config.plugin.csrfSid = b)), CIB.config.features.enablePluginCatalog = rw, (rw || iw) && f(CIB.config.sydney.request.optionsSets, "fluxv1p"), CIB.config.plugin.dfpSessionId = yht), uht && (CIB.config.features.enableFaqBcc = !0, CIB.config.links.faqBccBceUrl = vw), fht && (CIB.config.features.enableFaqBce = !0, CIB.config.links.faqBccBceUrl = vw), frt && (CIB.config.features.enableInlinePersonalizationConsent = !0, CIB.config.messaging.personalizationInlineConsentTurn = srt, CIB.config.features.enableInlinePersonalizationConsentCopilotLogo = ert, CIB.config.features.enableInlinePersonalizationConsentCallback = ort), iit && (CIB.config.features.enableConfirmPromptForDeleteSingleThread = !0), fit && (CIB.config.features.enableDeferredImageCreatorCard = !0), ktt && (CIB.config.features.enableRenderCardRequestIMSearchParams = !0), yit && (CIB.config.features.useFakeDataForLinkPreviewCarousel = !0), wit && (CIB.config.features.enableUpdateUserMessageId = !0), bit && (CIB.config.features.enableUserMessageIdConsistency = !0), git && (CIB.config.features.enableRenderIframeCardRequest = !0), lv && (CIB.config.features.enableFreEducationalStarter = !0), hrt && (CIB.config.features.enableFreEducationalStarterAnimation = !0), crt && (CIB.config.features.enablePhonePlugin = !0), vrt && (CIB.config.features.enablePhonePluginProductionEnvironment = !0), art && (CIB.config.features.enablePhonePluginBetaEnvironment = !0), lrt && (CIB.config.features.enablePhonePluginDogfoodEnvironment = !0), yrt && (CIB.config.features.disablePhonePluginInPreciseTone = !0), prt && (CIB.config.features.disablePhonePluginInBalancedTone = !0), wrt && (CIB.config.features.disablePhonePluginInCreativeTone = !0), brt && (CIB.config.features.enablePhonePluginInPreciseTone = !0), krt && (CIB.config.features.enablePhonePluginInBalancedTone = !0), drt && (CIB.config.features.enablePhonePluginInCreativeTone = !0), grt && (CIB.config.features.enablePhonePluginCatalogId = !0), nut && (CIB.config.features.enableUseStoreAsSourceForPhonePlugin = !0), tut && (CIB.config.features.enablePhonePluginCatalog = !0), iut && (CIB.config.features.enableMobileCopilotV2 = !0), rut && (CIB.config.features.enableDonationPlugin = !0), uut && (CIB.config.features.enableDonationPluginDogfood = !0), fut && (CIB.config.features.enableDonationPluginProd = !0), CIB.config.features.enableM365ConsumerPluginUX = !0, CIB.config.features.enableM365ConsumerPluginHighPosition = sut, eut && (CIB.config.features.enableM365consumerPlugin = !0, ae()), out && (CIB.config.features.enableM365ConsumerPluginOneDrive = !0, ve()), hut && (CIB.config.features.enableAdaptiveCardMessage = !0), vet && (CIB.config.features.enableFullScreenIframe = !0), yet && (CIB.config.features.enableDelayedMsgHandlerDisposal = !0), gr = new URLSearchParams(_w.location.search), nu = gr.get(ou.toLowerCase()), (rf != "" || hr && nu) && (g = CIB.config.speech.srOptions ? CIB.config.speech.srOptions: [], g = h(g, rf), hr && (g = h(g, nu)), CIB.config.speech.srOptions = g), vr && (CIB.config.speech.srOptions || (CIB.config.speech.srOptions = []), CIB.config.speech.srOptions.push("earcon")), yr && (CIB.config.speech.query.surface = yr, CIB.config.speech.surface = yr), ns && (at = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get(n.userCook, li), at && at != "1" ? at == "0" && (CIB.config.speech.query.autodetect = "0") : (CIB.config.speech.query.autodetect = "1", CIB.config.features.enableSpeechAutoDetectLanguage = ns, CIB.config.speech.srOptions || (CIB.config.speech.srOptions = []), CIB.config.speech.srOptions.push("cdxdlid"), CIB.config.speech.srOptions.push("autotts"), (ls || cd) && (tu = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get(n.userCook, ai), (ls || !tu || tu !== "1") && (CIB.config.features.enableSpeechAutoDetectLanguageEvent = !0, nt = !0, CIB.config.speech.shouldShowAutoDetectSettingNotification = function() {
1083      i(r.System, "ShouldShowVoiceAutoDetectNotification", "Voice", {
1084        isShown: nt ? "1": "0"
1085      });
1086      var t = nt;
1087      return t && sj_cook.set(n.userCook, ai, "1", !0, "/", null),
1088      nt = !1,
1089      t
1090    },
1091    CIB.config.speech.onAutoDetectSettingUpdated = function(t) {
1092      var u = t ? "1": "0";
1093      i(r.System, "VoiceAutoDetectSettingUpdated", "Voice", {
1094        isEnabled: u
1095      });
1096      sj_cook.set(n.userCook, li, u, !0, "/", null)
1097    })))), (hd || vd) && (iu = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get(n.userCook, vi), iu && iu != "1" ? CIB.config.features.enableAutoReopenMic = !1 : (CIB.config.features.enableAutoReopenMic = !0, re(ld, ad))), sd && (CIB.config.speech.srOptions || (CIB.config.speech.srOptions = []), CIB.config.speech.srOptions.push("cdxwhisr")), k && (CIB.config.features.supressSigninMessage = !0, CIB.config.features.enableAgeRestriction = !0, CIB.config.sydney.isMissingDob = ok, CIB.config.sydney.isAdultUser = ek), sk && (ru = CIB.config.sydney.request.optionsSets.indexOf("enable_debug_commands"), ru >= 0 && CIB.config.sydney.request.optionsSets.splice(ru, 1)), tk && f(CIB.config.sydney.request.optionsSets, "dv3sugg"), ik && f(CIB.config.sydney.request.optionsSets, "gencontentv3"), td && f(CIB.config.sydney.request.optionsSets, "prodshortv4"), ab && tf != "" && (CIB.config.sydney.request.optionsSets = h([], tf)), vk) {
1098      if (ie) for (yt = ie.split(","), wt = 0, uu = yt; wt < uu.length; wt++) rt = uu[wt],
1099      CIB.config.features[rt] = !0;
1100      if (fu = gr.get(eu.toLowerCase()), hr && fu) for (yt = fu.split(","), bt = 0, cu = yt; bt < cu.length; bt++) rt = cu[bt],
1101      rt.indexOf(":") >= 0 && (kt = rt.split(":"), kt.length == 2 && (CIB.config.features[kt[0]] = kt[1]))
1102    }
1103    if (sf && (ub = sf.split(","), CIB.config.sydney.request.sliceIds = ub), CIB.config.bing.isVisualParityRun = yb, CIB.config.bing.isMSAAuthenticated = k, CIB.config.bing.userMailId = pb, CIB.config.bing.username = wb, ef && (CIB.config.sydney.baseUrl = ef), uf != "" && (CIB.config.sydney.pathBase = uf), hk && (lu = sj_cook.get(n.userCook, si), lu && lu == "0" && (CIB.config.features.enableTTSOnVoiceInput = !1)), ck) {
1104      CIB.config.features.enableCustomizedTtsOptions = !0;
1105      var bht = sj_cook.get(n.userCook, hf),
1106      fb = parseInt(bht),
1107      eb = sj_cook.get(n.userCook, cf);
1108      fb && (CIB.config.speech.ttsOptions = __assign(__assign({},
1109      CIB.config.speech.ttsOptions), {
1110        speed: fb
1111      }));
1112      eb && lk && (CIB.config.speech.ttsOptions = __assign(__assign({},
1113      CIB.config.speech.ttsOptions), {
1114        voiceName: eb
1115      }))
1116    }
1117    if (pf && (CIB.config.features.enableSpeechContinuousErrorHandling = pf), wf && (CIB.config.features.enableSpeechChatDataAfterPhrase = wf), vr && (CIB.config.features.enableSpeechEarconOnInput = vr), bf && (CIB.config.features.enableTTSOnSuggestionAfterVoice = bf), kf && (CIB.config.features.enableSimpleVoiceInput = kf), df && (CIB.config.features.enableSpeechDictationMode = df), gf && (CIB.config.features.enableAudioPreloadLimit = gf), ne && (CIB.config.features.enableSpeechFateTTSStop = ne), te && (CIB.config.features.enableSpeechGetUserMedia = te), ys && (CIB.config.features.enableSpeechErrorHandling = ys), ws && (CIB.config.features.enableSpeechTTSLatencyLogging = ws), bs && (CIB.config.features.enableSpeechInputWhileRequestIsPending = bs), ks && (CIB.config.features.enableSpeechIconDarkTheme = ks), ps && (CIB.config.features.enableSpeechAriaLabel = ps), de && (CIB.config.features.enableFixScrollBackSerpAccidentally = de), eo && (CIB.config.features.enableNeatListening = eo), be(), tl && (CIB.config.features.enableChatIconClickable = tl), il && (CIB.config.features.enableChatQueryClickable = il), rl && (CIB.config.features.enableChatQueryClickableV2 = rl), ul && (CIB.config.features.enableChatQueryClickableV3 = ul), fl && (CIB.config.features.enableChatQueryClickableV4 = fl), el && (CIB.config.features.enableShareQuestionWithResponse = el), ol && (CIB.config.features.enableDynamicShareTitle = ol), sl && (CIB.config.features.enableShareQuestionTitlePrefix = sl), hl && (CIB.config.features.enableShareInlineAdsIframe = hl), cl && (CIB.config.features.enableSharePreview = cl), ll && (CIB.config.features.enableShareToMyBing = ll), al && (CIB.config.features.enableSharedHoverCitations = al), yl && (CIB.config.features.enableScreenshotIgnoreOnCibSerp = yl), pl && (CIB.config.features.enableStandaloneUtility = pl), wl && (CIB.config.features.enableSidePanelBelowThreadSlot = wl), bl && (CIB.config.features.enableWelcomeCopilotProButton = bl, kl && (CIB.config.features.enableCopilotProOverlay = kl)), dl && (CIB.config.features.enableCopilotProSpectrumTemplate = dl), CIB.config.speech.animationProvider = function() {
1118      var n = location.origin + "/CodexAnimations/animations.json";
1119      return hb.getJsonData(n)
1120    },
1121    vb && (CIB.config.features.enableMetaMessages = !1, CIB.config.features.enableLearnMore = !1, CIB.config.features.enableCitations = !1, CIB.config.features.enableWelcomeScreen = !1, CIB.config.features.enableShare = !1, CIB.config.features.enableStopButton = !1, CIB.config.features.enableAnswerCards = !1, CIB.config.features.enableAds = !1), vf && (CIB.config.sydney.request.traceId = vf), CIB.config.features.enableSpeechInput = db, CIB.config.features.enableShare = lr, CIB.config.features.enableAnswerBridgeShare = gb, CIB.config.features.enableMessageShareableSignalV2 = nk, rk && (CIB.config.features.enableErrorStateNotification = !0, CIB.config.features.enableErrorStateToastNotificationResetButton = !0, CIB.config.features.enableGhostedAutoSuggest = hht, CIB.config.features.enableHoverCardAttributionFavicons = !0), bg && (CIB.config.features.enableAutoRecoverFromInvalidSession = !0), kg && (CIB.config.features.enableAutoRecoverFromInvalidSessionForFirstTurn = !0), dg && (CIB.config.features.enableActionBarIMEFix = !0), gg && (CIB.config.features.enableGhostTrailingSpaceByLanguage = !0), yf && (CIB.config.features.enableErrorInstrumentaton = yf), fe && (CIB.config.features.enableSydImageCreate = fe), ee && (CIB.config.features.enableSunoMusicCreate = ee), oe && (CIB.config.features.enableSunoMusicInst = oe), yy && (CIB.config.features.enableInlineComponents = yy), le(), ke(a), ce(), uk && (CIB.config.features.enableAnsCardSfx = !0), fk && (CIB.config.features.enableLikeSaveToBingPage = !0), eg && (CIB.config.features.enableFeedbackClientSideScreenshot = !0), og && (nl || cr && (tft || nft) ? he() : kr && pht && (k || wht) && (CIB.config.features.enablePrivacyConsentFormNonMuid = !0, sr())), yn && (CIB.config.features.enableDisposeOrphanedHosts = !0), pn && (CIB.config.features.enablePreserveTextFormat = !0), wn && (CIB.config.features.enableHoverCardOnLearnMorePills = !0), gn && (CIB.config.features.enableCloudflareCaptcha = !0), ntt && (CIB.config.features.enableInvisibleCaptchaChallenge = !0), ttt && (CIB.config.features.enableResizeObserverWithAnimationFrame = !0), an && (CIB.config.features.enableExportDocxWithFormat = !0), vn && (CIB.config.features.enableExportDocxWithTableFormat = !0), cut && (CIB.config.features.enablePaywallTelemetryFix = !0), CIB.config.features.enableSecureUpdate
1121Conversation = !yk, CIB.config.features.enableSecureSendFeedback = !pk, CIB.config.features.enableShareSemSerp = bk, CIB.config.features.enableShareCreator = kk, CIB.config.features.enableFeedbackOnFinalized = wk, CIB.config.features.enableShareWithNoMargin = !hg, CIB.config.features.enableMobileShareAnchorBottom = cg, CIB.config.features.enableCreativeLandingPage = lg, CIB.config.features.enableServerLogMerging = ag, CIB.config.features.enableMobileOneClickShare = vg, CIB.config.features.enableMobileOneClickShareV2 = yg, CIB.config.features.enableFeedbackInstrumentation = pg, CIB.config.features.enableCopyButtonInstrumented = rtt, CIB.config.features.enableShareModalDialog = dk, CIB.config.features.enableShareOnHostMessage = kn, CIB.config.features.enablePassBotGreetingInContext = !dn, CIB.config.features.enableMobileKnowledgeCardOverlay = ftt, CIB.config.features.enableCibOverlayForKnowledgeCard = ett, CIB.config.features.enableKCAdaptiveCardUpdate = ott, CIB.config.features.enableKCInChatClickThroughRequery = stt, CIB.config.features.enableNewAutoSuggestEndPoint = ytt, CIB.config.features.enableNewTopicTooltip = rit, CIB.config.features.enableNewlineTooltip = uit, CIB.config.features.enableTypingIndicatorForSerpSlotCreator = dtt, CIB.config.features.enableOnProcessingStartEvent = gtt, CIB.config.features.enableOnProcessingCompleteEvent = nit, bd ? (CIB.config.features.enableDynamicMaxMessageLength = !0, CIB.config.messaging.maxMessageLength = ds, CIB.config.messaging.maxMessageLengthBalanced = a ? ng: kd, CIB.config.messaging.maxMessageLengthCreative = a ? tg: dd, CIB.config.messaging.maxMessageLengthPrecise = a ? ig: gd) : CIB.config.messaging.maxMessageLength = ds, CIB.config.features.enableThreadsAadMsaSwitch = ug, CIB.config.messaging.isAccountLinkedAadUser = rg, CIB.config.features.enableFastChatLoadAnimation = nrt, CIB.config.features.enableShareInThreadsHeader = trt, CIB.config.features.enableNewConversationActivate = irt, CIB.config.features.enableMobileFirstClickShare = rrt, ba && (CIB.config.features.enableThreadsTopRightButton = dut, st && (CIB.config.features.enableThreadsTopRightButton || gut) && (CIB.config.features.enableThreadsTopRightButton = !0, CIB.config.features.enablePluginsTopRightButton = !0)), CIB.config.features.enablePluginRevocation = eet, CIB.config.features.enableSearchPlugins = oet, (ctt || ltt || att) && (CIB.config.features.enableWelcomeScreen = ka, CIB.config.features.enableWelcomeScreenItem = !ka), da && (CIB.config.features.disableZIRMSStart = da), lv && SydWelcomeScreen.isEduStarterEnabled() && (CIB.config.features.enableWelcomeScreen = !0, CIB.config.features.enableWelcomeScreenItem = !0), itt && (CIB.config.features.enableKnowledgeCardImage = !0, CIB.config.features.enableImagesInTextMessages = !0, ih()), CIB.config.features.secureConversation = nd, se && (CIB.config.features.enableAffinityInstance = se, f(CIB.config.sydney.request.optionsSets, "machine_affinity"), f(CIB.config.sydney.request.optionsSets, "streamf")), ye && (CIB.config.features.enableGetMessagesHub = ye), yd && (CIB.config.features.enableNewTopicAutoExpand = !0), wd && (CIB.config.features.enableAmberTurnPerConversation = !0, CIB.config.messaging.amberTurnPerConversation = t(e === null || e === void 0 ? void 0 : e.amberTurnPerConversation, 0)), pd && (CIB.config.features.enableMaxTurnsPerConversation = !0, CIB.config.features.enableMaxTurnsFromBackend = t(e === null || e === void 0 ? void 0 : e.enableMaxTurnsFromBackend, !1), CIB.config.messaging.maxTurnsPerConversation = nl ? t(e === null || e === void 0 ? void 0 : e.maxTurnsPerConversationMuidUser, lt) : t(e === null || e === void 0 ? void 0 : e.maxTurnsPerConversation, lt)), id && (CIB.config.sydney.request.Participant = {
1122      Id: "1"
1123    }), pe && (CIB.config.features.enablePerfTracker = pe), rd && (CIB.config.features.enableEmbeddedPerf = !0), we && (CIB.config.features.enableSinglePerfEventPerMessage = we), ud && (CIB.config.features.enableE2EPerf = !0), (fd || a) && (CIB.config.features.enableCCPPerf = !0), oo && (CIB.config.features.enableRedirectToLoginUrl = oo), ho && (CIB.config.features.enableNewChatIconInActionBar = ho), co && (CIB.config.features.enableActionBarV2 = co), lo && (CIB.config.features.enableSpeechDictationBridgeMode = lo), pr && (CIB.config.features.enableSpeculativeMode = pr), 
1123CIB.config.features.enableTranslateForBotMessage = ed, yo && (CIB.config.features.enableReadAloudMessage = yo), po && (CIB.config.features.enableReadAloudOptions = po, gt = parseInt(sj_cook.get(n.userCook, si)), gt >= 0 && gt <= 2 && (CIB.config.speech.ttsOptions = __assign(__assign({},
1124    CIB.config.speech.ttsOptions), {
1125      readAloud: gt
1126    }))), bo && (CIB.config.features.enableReadAloudOnDeepLeoOnly = bo), ko && (CIB.config.features.enableReadAloudFixV1 = ko), go && (CIB.config.features.enableSpeechLanguageSetting = go, ob = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get(n.userCook, af), ar(ob)), is && (CIB.config.features.enableSpeechLogNoiseReduction = is), wo && (CIB.config.features.enableSpeechTouchStart = wo), rs && (CIB.config.features.enableAutoReopenMicTTSStopped = rs), us && (CIB.config.features.enableAccentedIconsOnMobileABV2 = us), fs && (CIB.config.features.enableAltVoiceQuerySubmissionOnMobileABV2 = fs), es && (CIB.config.features.enableMockMicListeningState = es), os && (CIB.config.features.enableMockMicBlockedState = os), ss && (CIB.config.features.enableRecogFailedLogNoiseReduction = ss), hs && (CIB.config.features.enableSpeculativeModeJSErrorChecks = hs), cs && (CIB.config.features.enableMicRestIconWhenListening = cs), as && (CIB.config.features.enableEarlyLogSpeechStateChanged = as), vs && (CIB.config.features.enableUniversalInput = vs), od && (CIB.config.speech.micPermissionProvider = function() {
1127      return {}
1128    }), fg && (CIB.config.features.enableSafeSearchSetting = !0, so()), CIB.config.messaging.messageBufferWorkerStreamDelayMS = sg, wg && (CIB.config.suggestions.baseUrl = location.origin), nh && (CIB.config.features.enableOneClickCopy = nh), th && (CIB.config.features.enableReorderCopiedTextReferences = th), uh && (CIB.config.features.enableCodeCopy = uh), fh && (CIB.config.features.enableCodeBar = fh), eh && (CIB.config.features.enableCodeBarV2 = eh), oh && (CIB.config.features.enableUserMessageCopy = oh), sh && (CIB.config.features.enableRichTextPaste = sh), hh && (CIB.config.features.enablePasteMarkdownTable = hh), ch && (CIB.config.features.enablePasteMath = ch), lh && (CIB.config.features.enableInlineFeedback = lh), ah && (CIB.config.features.enableInlineFeedbackV2 = ah), vh && (CIB.config.features.enableInlineFeedbackV21 = vh), yh && (CIB.config.features.enableFeedbackCollectMoreInfo = yh), ph && (CIB.config.features.enableSerpFeedback = ph), wh && (CIB.config.features.enableMessageSave = wh), bh && (CIB.config.features.enableMoreOnBotMessageActionsBar = bh), kh && (CIB.config.features.enableMessageExport = kh), dh && (CIB.config.features.enableMessageExportWithPlainText = dh), gh && (CIB.config.features.enableHandoffAPI = gh), nc && (CIB.config.features.enableSearchOnBingForBotMessage = nc), tc && (CIB.config.features.enableSearchOnBingInLinkHoverCard = tc), ic && (CIB.config.features.enableMessageExportOnlineWord = ic), rc && (CIB.config.features.enableMessageExportOnlineExcel = rc), ac && (CIB.config.features.enableTonePreview = ac), yp && (CIB.config.features.disableTitlePreviewLabel = yp), pp && (CIB.config.features.disableTurnCount = pp), CIB.config.features.enableMessageExportWord = nn, CIB.config.features.enableThreadExportLocalWord = tn, uc && (CIB.config.features.enableMessageExportLocalExcel = uc), fc && (CIB.config.features.enableTableBarFlatActions = fc), ec && (CIB.config.features.enableThreadExportOnlineWord = ec), oc && (CIB.config.features.enableMessageExportV2 = oc), sc && (CIB.config.features.enableBotMessageActionsBar = sc), hc && (CIB.config.features.enableShorterToastDuration = hc), cc && (CIB.config.features.enableDirectlyOpenExportOnlineLink = cc), lc && (CIB.config.features.enableLoginHintForSSO = lc), vc && (CIB.config.features.enableMSAuth1stPartyApp = vc), yc && (CIB.config.features.enableAdsRedirectLinkForTextMessage = yc), pc && (CIB.config.features.enableCopyHtml = pc), wc && (CIB.config.features.enableCopyHtmlWithHighlightedCode = wc), bc && (CIB.config.features.enableExportPdfWithAnswerScreenshot = bc), kc && (CIB.config.features.enableExportDocxWithAnswerScreenshot = kc), dc && (CIB.config.features.enableLibrariesSplitImport = dc), gc && (CIB.config.features.enableFlatActionBar = gc), ya && (CIB.config.features.enableSydBeacon = ya), wa && (CIB.config.features.enableStartPromotion = wa), pa && (CIB.config.features.enableThreadContextMenu = pa), gl && (CIB.config.features.enableNewTables = gl, CIB.config.messaging.tableVersion = fn), na && (CIB.config.features.enableBufferMessage = na), ta && (CIB.config.features.enableBufferLoadingDots = ta), ra && (CIB.config.features.enableCodeInterpreterPreviewCode = ra), wr && (CIB.config.features.enableGptForMobileBrowser = wr, CIB.config.features.enableGPTForMobileBrowser = wr), ua && (CIB.config.features.enable3PGptForMobileBrowser = ua), ia && (CIB.config.features.enableServerMetaText = ia), fa && (CIB.config.features.enableGPTCreatorItemContextMenu = fa), ha && (CIB.config.features.enableMock3PGpts = ha), ca && (CIB.config.features.enableGPTCreatorCreateGptPreview = ca), on && (CIB.config.features.enableGptWelcomeInitLoad = !0), sn && (CIB.config.features.enableGptBuilderAction = !0), dp && en && a && ot && (CIB.config.features.enableGPTCreator = !0, CIB.config.features.enableExtraExtensionParams = !0, hn && (CIB.config.features.enableThreads = !1, CIB.config.features.enableGptCreatorCreatePanel = wst, CIB.config.features.enableGptCreatorConfigurePanel = bst, CIB.config.features.enableGptCreatorConfigurePanelKnowledges = kst, CIB.config.features.enableGptCreatorConfigurePanelcapabilities = aw, CIB.config.features.enableIconUpload = nht, CIB.config.features.enableIconGenerated = tht, CIB.config.features.enableIconExternalStorage = iht, CIB.config.features.enableCopilotGptsPolicyLink = ln, CIB.config.features.enableGptCreatorPreviewAutoSave = cn, aw && (CIB.config.features.enableGptCreatorConfigurePanelImageGenerator = dst, CIB.config.features.enableGptCreatorConfigurePanelCodeInterpreter = gst))), CIB.config.gptCreator && (l = window.location.origin, ut = l.includes("bing.com"), CIB.config.gptCreator.gptCreatorCreatorUrl = l + ea, CIB.config.gptCreator.creatorUrl = l + ea, CIB.config.gptCreator.gptCreatorPreviewUrl = l + (ut ? oa: ""), CIB.config.gptCreator.previewUrl = l + (ut ? oa: ""), CIB.config.gptCreator.gptCreatorShareUrl = l + (ut ? sa: ""), CIB.config.gptCreator.shareUrl = l + (ut ? sa: ""), CIB.config.gptCreator.imageCreateAppID = "3A94CC512C67BC6591C1F88594FBDB53481B8505", CIB.config.gptCreator.userAnID = rht), nv && (CIB.config.features.enableMessagePrivacy = nv), tv && (CIB.config.features.enableCloseShareOnClickOutside = tv), vl && (CIB.config.features.enableShowShareButtonWithSecurityCheck = vl), va && (CIB.config.features.enableOptimizedStreaming = va), cv && (CIB.config.features.enableSydneyGetMessagesHub = cv), iv && (CIB.config.features.enableUpdateProfile = iv), pv && (CIB.config.features.enableSuppressSigninMessage = pv), yv && (CIB.config.features.enableOpenEdgeNotification = yv), CIB.config.features.enableCitationsOnSentences = vft, CIB.config.features.enableGoldilocks = tot, CIB.config.features.enableGoldilocksRAIButton = iot, CIB.config.features.enableGoldilocksStrokes = rot, CIB.config.features.enableGoldiLocksBackgroun
1128dLight = uot, CIB.config.features.enableGoldilocksLineHeight = fot, CIB.config.features.enableGoldilocksMetaMessage = oot, CIB.config.features.enableTopAlignConversation = sot, CIB.config.features.enableHideZeroTurn = hot, CIB.config.features.enableMessageGroupHeader = cot, CIB.config.features.enableFullWidthMessages = lot, CIB.config.features.enableInlineStreamingIndicator = aot, CIB.config.features.enableGoldilocksAttributionPills = vot, CIB.config.features.enableGoldilocksMessageActions = yot, CIB.config.features.enableGoldilocksTurnCounter = pot, CIB.config.features.enableGoldilocksStrokes2T = wot, CIB.config.features.enableAttributionsV2MoreButton = eht, CIB.config.features.enable2TScrollToBottom = oht, CIB.config.features.enableGoldilocksCitations = bot, CIB.config.features.enableGoldilocksWiderActionBar = kot, CIB.config.features.enableGoldilocksExportDropdown = dot, CIB.config.features.enableGoldilocksInlineFeedback = tst, CIB.config.features.enableUserMsgActionBar = ist, CIB.config.features.enableGoldilocksContextual = rst, CIB.config.features.enableGoldilocksPersistentMetas = ust, CIB.config.features.enableGoldilocksInlinePersistentMetas = fst, CIB.config.features.enableGoldilocksBackgroundGpt = est, CIB.config.features.enableGoldilocksIdentity = ost, CIB.config.features.enableAdaptiveCardImageForCodeInterpreter = sst, CIB.config.features.enableGoldilocksCopilotGreetingFix = hst, CIB.config.features.enableThreadZiFix = aht, CIB.config.features.enableDeleteAllThreads = vht, CIB.config.features.enableCodePreviewInFooter = cst, CIB.config.features.enableRegisterContextAsync = lst, vst) CIB.onModeChanged(function(n) {
1129      switch (n) {
1130      case "off-stage":
1131        CIB.config.features.enableStreamingInBackground = !1;
1132        break;
1133      default:
1134        CIB.config.features.enableStreamingInBackground = !0
1135      }
1136    });
1137    else CIB.config.features.enableStreamingInBackground = ast;
1138    if (CIB.config.features.enableCitationSuperscriptFix = eot, CIB.config.features.enablePrefetchConversationToken = yst, CIB.config.features.enableConnectionProvider = pst, CIB.config.features.enableAnswerCards = yft, fp && (CIB.config.features.enableThreadsHoverDescriptor = fp), ep && (CIB.config.features.enableMessagesWithInternalLoadAnimation = ep), op && (CIB.config.features.enableHideRAISuggestionIcon = op), sp && (CIB.config.features.enableMuidDisabledSuggestionBar = sp), hp && (CIB.config.features.enableHideSuggestionOnErrors = hp), cp && (CIB.config.features.enableConversationToActionBarFocusOrder = cp), by && (CIB.config.features.enableWelcomeItemEnterAnimation = by), ky && (CIB.config.features.enableToneSelectorAsDropdown = ky), dy && (CIB.config.features.enableSidePanelPositionInlineStart = dy), gy && (CIB.config.features.enableSidePanelAsPer
1138sistent = gy), np && (CIB.config.features.enableSidePanelVisibilityTrigger = np), tp && (CIB.config.features.enableSidePanelCustomScrollbar = tp), ip && (CIB.config.features.enableConversationCustomScrollbar = ip), rp && (CIB.config.features.enableConversationAlignmentTop = rp), up && (CIB.config.features.enableSimpleCopilotWelcomeScreen = up), wv && (CIB.config.features.enableExportPdfWithRichFormat = wv), bv && (CIB.config.features.enableAttributionImages = bv), kv && (CIB.config.features.enableAttributionImagesWhenAdsPresent = kv), dv && (CIB.config.features.enableAttributionImagesCarousel = dv), gv && (CIB.config.features.enableAttributionImagesClickthrough = gv), ry && (CIB.config.features.enableThreadContextMenuV2 = ry), uy && (CIB.config.features.enableSearchBoxAutoFocus = uy), fy && (CIB.config.features.enableUserMessageRewriteInsteadOfCopy = fy), ey && (CIB.config.features.enableUserMessageRewriteAndCopy = ey), oy && (CIB.config.features.enableSendFeedback = oy), sy && (CIB.config.features.enableSearchUserMessageOnBing = sy), hy && (CIB.config.features.enableEditLastUserMessage = hy), cy && (CIB.config.features.enableHideLastUserMessageInEdit = cy), ib && (CIB.config.features.enableFixOnReplaceAllJSError = ib), lp && (CIB.config.features.enableBufferClearOnReset = lp), ap && (CIB.config.features.enableCancelPendingRequestOnNewMessage = ap), kp && (CIB.config.features.enableGraphicArtJsonResponse = kp), uw && (CIB.config.features.enableInstService = uw), fw !== "" && (CIB.config.bing.feedbackVertical = fw), bw && (CIB.config.features.enableStopStreamingSignal = bw), dw && (CIB.config.features.enableTasksMessage = dw), tb && (CIB.config.features.enableInlineButtonAdaptiveCardUpdate = tb), CIB.config.features.enableStartOfSessionFix = sht, CIB.config.features.partnerId = kw, CIB.config.windchime.partnerId = kw, CIB.config.features.enableHostedContentToneSignal = cht, CIB.config.features.enableHostedContentPartnerSignal = lht, no(), to(), io(), sv && (CIB.config.features.enableBackendExportService = sv), ge(), ga && (CIB.config.features.enableContextMessage = ga), ft = t(e === null || e === void 0 ? void 0 : e.codexOptionsSetsList, null), ft && ft.length > 0) for (ni = 0; ni < ft.length; ni++) f(CIB.config.sydney.request.optionsSets, ft[ni].value);
1139    ro();
1140    ptt && rh(btt, wtt);
1141    gs && (CIB.config.features.enableTelemetryPrivacy = gs);
1142    br && (CIB.config.features.enableWpFluxTwoTAnswerCard = br, CIB.config.features.enableWpFluxTwoTAnswerCardFallback = br, wy && (CIB.config.features.enableWpFluxTwoTAnswerCardFallback = !1, CIB.config.features.disableWpFluxTwoTAnswerCardFallback = wy), f(CIB.config.sydney.request.optionsSets, "fluxv1"), f(CIB.config.sydney.request.optionsSets, "fluxmatch"));
1143    et && typeof MsbSydneyHelper != "undefined" ? MsbSydneyHelper.initCompliantSydneyConfigs() : cr && typeof BceSydneyHelper != "undefined" && (BceSydneyHelper.initBingChatForEnterpriseSydneyConfigs(), v && typeof MsbSydneyHelper != "undefined" && MsbSydneyHelper.addTenantLogoToHeader());
1144    et || (fo(), uo());
1145    ev && (CIB.config.features.enablePageHeaderOverlapClamping = ev);
1146    dit && (CIB.config.features.enablePersistentInputText = !0);
1147    ov && (CIB.config.features.enableEmptyThreadTime = ov);
1148    ny && (CIB.config.features.enableThreadsConsent = ny, CIB.config.features.enableMutedThreadsConsent = put);
1149    ty && (sb = t(e === null || e === void 0 ? void 0 : e.threadsAutoSaveOptionset, "autosave"), CIB.config.features.enableDeleteSingleConversationMemory = ty, CIB.config.sydney.request.conversationHistoryOptionsSets = [sb, "savemem", "uprofupd", "uprofgen"], pr && !!CIB.config.sydney.request.conversationHistoryOptionsSets && CIB.config.sydney.request.conversationHistoryOptionsSets.push("enable_message_signature"));
1150    iy && (CIB.config.features.enable1DSTelemetry = iy);
1151    ly && (CIB.config.features.enablePrivateThreadDefaultTitle = ly);
1152    ay && (CIB.config.features.enablePromptHandling = ay);
1153    ift && f(CIB.config.sydney.request.optionsSets, "u18scenario");
1154    vy && (CIB.config.features.enableModeAndSlotValidationForAds = vy);
1155    py && (CIB.config.features.enableSuggestionChipDisplayText = py);
1156    ao();
1157    ue();
1158    fft && vo();
1159    dp && (CIB.config.features.enableFreeSydney = !0, CIB.config.gptCreator && (CIB.config.gptCreator.maxSidePanelPersonasCount = tet), tw && (CIB.config.features.enableShortShareUrl = tw), nw && ot && (CIB.config.features.enableCustomGptPreview = nw, CIB.config.features.enableExtraExtensionParams = !0), net && (CIB.config.features.enableCustomGptSpecialGreeting = !0), la && (CIB.config.features.disableSuggestionsInCustomGpt = la), aa && (CIB.config.features.enableThreadsForAllGpts = aa));
1160    gp && (CIB.config.features.enableFreeSydneyV2Style = gp);
1161    ew && (CIB.config.features.enableEnterToCreateNewLine = ew);
1162    CIB.config.features.enableUpdateLocationButton = cet;
1163    CIB.config.features.enableLocationMetaMessage = aet;
1164    ow && (CIB.config.features.enableTextMessageDelayedFinalization = ow);
1165    sw && (CIB.config.features.enableNewTopicButtonFeature = sw);
1166    yw && (CIB.config.features.enableThumbsDownToSearchOnBing = yw);
1167    hw && (CIB.config.features.enableChangeSidePanelVisibility = hw);
1168    pw && (CIB.config.features.enableThreadContextMenuA11yBugFix = pw);
1169    ww && (CIB.config.features.enableStopRespondingFocus = ww);
1170    CIB.config.features.disableTurnCountLocalAccount = !1; ! get || ot || !cw || k || ff || (b = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get("CUID", "CUID"), b && (CIB.config.features.disableTurnCountLocalAccount = !0));
1171    CIB.config.features.enableHiddenTurnCountLocalAccount = !1; ! not || ot || !cw || k || ff || (b = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get("CUID", "CUID"), b && (CIB.config.features.enableHiddenTurnCountLocalAccount = !0))
1172  }
1173  function re(t, u) {
1174    if (t || u) {
1175      var f = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get(n.userCook, yi); (u || !f || f !== "1") && (tt = !0, CIB.config.speech.shouldReopenMicNotification = function() {
1176        i(r.System, "ShouldShowReopenMicNotification ", "Voice", {
1177          isShown: tt ? "1": "0"
1178        });
1179        var t = tt;
1180        return t && sj_cook.set(n.userCook, yi, "1", !0, "/", null),
1181        tt = !1,
1182        t
1183      },
1184      CIB.config.speech.onReopenMicSettingUpdated = function(t) {
1185        var u = t ? "1": "0";
1186        i(r.System, "VoiceReopenSettingUpdated", "Voice", {
1187          isEnabled: u
1188        });
1189        sj_cook.set(n.userCook, vi, u, !0, "/", null)
1190      })
1191    }
1192  }
1193  function ue() {
1194    if (CIB.onResetConversation) CIB.onResetConversation(function() {
1195      i(r.System, "ResetConversationTriggered", "ChatMode", "1")
1196    })
1197  }
1198  function rr() {
1199    var r = this,
1200    i, u = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableSydTestCache, !1);
1201    u && "SydneyTestHelper" in _w && (SydneyTestHelper.setTestConfigs(), sj_evt.bind("CHAT_MOCKED",
1202    function(t) {
1203      var i = t && t.length > 1 ? t[1] : null;
1204      i && (n.processCachedResponseUsingCIB = function() {
1205        return __awaiter(r, void 0, void 0,
1206        function() {
1207          return __generator(this,
1208          function(n) {
1209            switch (n.label) {
1210            case 0:
1211              return SydneyTestHelper.shouldWaitForAnswerScript() ? [4, SydneyTestHelper.getAnswerScriptDefer().p] : [3, 2];
1212            case 1:
1213              n.sent();
1214              n.label = 2;
1215            case 2:
1216              return CIB.processCachedResponse(i),
1217              [2]
1218            }
1219          })
1220        })
1221      })
1222    },
1223    !0))
1224  }
1225  function ur() {
1226    var i, r, u, f = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableCodexWin, !1),
1227    e = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.codexWinCurrentTurn, 0),
1228    o = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableCodexWinBotMessage, !1);
1229    f && (sj_cook.set(n.userCook, ef, String(e + 1), !0, "/", null), o && (n.shouldForceSendBotGreeting = !0));
1230    sj_evt.unbind("showSydFSC", ur)
1231  }
1232  function fe() {
1233    var n, i = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableDM, !1);
1234    i && CIB.changeColorScheme && CIB.changeColorScheme(1)
1235  }
1236  function fr() {
1237    var n = Math.round(_d.documentElement.clientWidth || _w.innerWidth);
1238    return n < 100 && (n = 360),
1239    n
1240  }
1241  function er() {
1242    var n = Math.round(_d.documentElement.clientHeight || _w.innerHeight);
1243    return n < 100 && (n = 636),
1244    n
1245  }
1246  function ee() {
1247    var n, u, f, e, o;
1248    return __awaiter(this, void 0, void 0,
1249    function() {
1250      var a, l, c, s, h, v;
1251      return __generator(this,
1252      function(y) {
1253        switch (y.label) {
1254        case 0:
1255          if (a = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableSydneyFSCTranslationSrc, !1), !a) return [3, 7];
1256          l = (u = _G.Lang) !== null && u !== void 0 ? u: "en";
1257          c = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableSydneyFSCTranslationView, !1);
1258          s = null;
1259          h = {
1260            lang: l,
1261            locationOrigin: (e = _d === null || _d === void 0 ? void 0 : _d.location) === null || e === void 0 ? void 0 : e.origin,
1262            locationPath: (o = _d === null || _d === void 0 ? void 0 : _d.location) === null || o === void 0 ? void 0 : o.pathname
1263          };
1264          y.label = 1;
1265        case 1:
1266          return (y.trys.push([1, 6, , 7]), !c) ? [3, 3] : [4, se(l)];
1267        case 2:
1268          return s = y.sent(),
1269          [3, 5];
1270        case 3:
1271          return [4, oe(l)];
1272        case 4:
1273          s = y.sent();
1274          y.label = 5;
1275        case 5:
1276          return s ? (or(s), h.numberStrings = s ? Object.keys(s).length: 0, i(r.System, "SydneyTranslationAjaxLoaded", c ? "TranslationView": "TranslationJSON", h)) : i("CI.Error", "SydneyTranslationAjaxFailed", c ? "TranslationViewEmpty": "TranslationJSONEmpty", h),
1277          [3, 7];
1278        case 6:
1279          return v = y.sent(),
1280          h.exception = v,
1281          i("CI.Error", "SydneyTranslationAjaxFailed", c ? "TranslationViewError": "TranslationJSONError", h),
1282          [3, 7];
1283        case 7:
1284          return [2]
1285        }
1286      })
1287    })
1288  }
1289  function oe(n) {
1290    return __awaiter(this, void 0, void 0,
1291    function() {
1292      var i, t, r;
1293      return __generator(this,
1294      function(u) {
1295        switch (u.label) {
1296        case 0:
1297          return i = new URL("turing/convtranslation/".concat(n, ".json"), window.location.origin),
1298          [4, ct(i.href, "", "GET")];
1299        case 1:
1300          return (t = u.sent(), t === null || t === void 0 ? void 0 : t.response) ? (r = JSON.parse(t.response), _w._sydConvTranslation = __assign(__assign({},
1301          _w._sydConvTranslation), r), [2, _w._sydConvTranslation]) : [2]
1302        }
1303      })
1304    })
1305  }
1306  function se(n) {
1307    return __awaiter(this, void 0, void 0,
1308    function() {
1309      var r, t, i;
1310      return __generator(this,
1311      function(u) {
1312        switch (u.label) {
1313        case 0:
1314          return r = new URL("turing/convtranslationview/".concat(n), window.location.origin),
1315          [4, ct(r.href, "", "GET")];
1316        case 1:
1317          return (t = u.sent(), i = t === null || t === void 0 ? void 0 : t.response, i) ? (sj_appHTML(_d.body, i), _w.rms && _w.rms.start(), [2, _w._sydConvTranslation]) : [2]
1318        }
1319      })
1320    })
1321  }
1322  function or(n) {
1323    for (var r, t = 0,
1324    i = Object.keys(n); t < i.length; t++) r = i[t],
1325    CIB.config.strings[r] = n[r]
1326  }
1327  function he() {
1328    CIB.config.features.enableMUIDUserMode = !0;
1329    CIB.config.features.enableSignInUpsellforMuidUser = !0;
1330    sr()
1331  }
1332  function sr() {
1333    var n, i, r, u, f, e = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableBfbCookieConsent, !1),
1334    o = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableCodexMuidConsentTop, !1),
1335    s = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableCodexMuidConsentExplicit, !1),
1336    h = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableCodexMuidConsentImplicit, !1),
1337    c = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableCodexMuidConsentModal, !1),
1338    l = o || s || h || c;
1339    l && (CIB.config.features.enableCodexMuidConsentTop = o, CIB.config.features.enableCodexMuidConsentInlineExplicit = s, CIB.config.features.enableCodexMuidConsentInlineImplicit = h, CIB.config.features.enableCodexMuidConsentModal = c, CIB.config.sydney.muidUserConsentGiven = e && vt || cr(), CIB.onConsentGiven && CIB.onConsentGiven(function() {
1340      lo();
1341      e && BceSydneyHelper.updateBfbConsent()
1342    }))
1343  }
1344  function hr() {
1345    var n, i, r, u, e;
1346    return __awaiter(this, void 0, void 0,
1347    function() {
1348      var o, c, v, y, p, l, s, h, w, b = this;
1349      return __generator(this,
1350      function(k) {
1351        switch (k.label) {
1352        case 0:
1353          if (gi) return [2];
1354          if (gi = !0, o = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableThreadsConsent, !1), c = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.threadsAutoSaveOptionset, "autosave"), v = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableFetchUserConsent, !1), y = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableThreadsConsentOnlyAutosave, !1), p = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableInlinePersonalizationConsentCallback, !1), CIB.config.features.enableThreadsConsent = o, CIB.config.features.enableThreadsConsentOnlyAutosave = !!y, o && CIB.onAutosaveConsentChanged) CIB.onAutosaveConsentChanged(function(n) {
1355            switch (n) {
1356            case "Allowed":
1357              f(CIB.config.sydney.request.optionsSets, c);
1358              break;
1359            default:
1360              a(CIB.config.sydney.request.optionsSets, c)
1361            }
1362          });
1363          return (o && v && CIB.fetchConsent) ? [4, CIB.fetchConsent()] : [3, 2];
1364        case 1:
1365          return k.sent(),
1366          [3, 8];
1367        case 2:
1368          if (! (o && CIB.getConsent && CIB.updateConsent)) return [3, 8];
1369          k.label = 3;
1370        case 3:
1371          return k.trys.push([3, 7, , 8]),
1372          [4, CIB.getConsent()];
1373        case 4:
1374          return (l = k.sent(), s = l.consentSettings.autoSave, h = l.consentSettings.personalization, !(s && h && (s !== "Allowed" || h !== "Allowed"))) ? [3, 6] : [4, CIB.updateConsent(s, h)];
1375        case 5:
1376          k.sent();
1377          k.label = 6;
1378        case 6:
1379          return [3, 8];
1380        case 7:
1381          return w = k.sent(),
1382          [3, 8];
1383        case 8:
1384          if (p && CIB.onPersonalizationMessageRendered && CIB.fetchConsent) CIB.onPersonalizationMessageRendered(function() {
1385            return __awaiter(b, void 0, void 0,
1386            function() {
1387              return __generator(this,
1388              function(n) {
1389                switch (n.label) {
1390                case 0:
1391                  return [4, CIB.fetchConsent()];
1392                case 1:
1393                  return n.sent(),
1394                  [2]
1395                }
1396              })
1397            })
1398          });
1399          return [2]
1400        }
1401      })
1402    })
1403  }
1404  function ce() {
1405    var i, n = _w._sydConvConfig,
1406    r = t(n === null || n === void 0 ? void 0 : n.enableMultimediaSearch, !1);
1407    if (r && ((i = CIB.config.multimediaSearch) === null || i === void 0 ? void 0 : i.query
1407)) {
1408      var o = t(n === null || n === void 0 ? void 0 : n.isMobileHost, !1),
1409      u = t(n === null || n === void 0 ? void 0 : n.multimediaSearchFormCode, ""),
1410      f = t(n === null || n === void 0 ? void 0 : n.multimediaSearchEnableMediaCanvas, !0),
1411      s = t(n === null || n === void 0 ? void 0 : n.multimediaSearchMaxImageCount, 3),
1412      c = t(n === null || n === void 0 ? void 0 : n.multimediaSearchEnableCachedImages, !1),
1413      e = t(n === null || n === void 0 ? void 0 : n.multimediaSearchOptionsSets, "");
1414      e && (CIB.config.sydney.request.optionsSets = h(CIB.config.sydney.request.optionsSets, e));
1415      CIB.config.features.enableMultimediaSearch = r;
1416      CIB.config.multimediaSearch.maxImageCount = s;
1417      CIB.config.multimediaSearch.enableMediaCanvas = f;
1418      CIB.config.multimediaSearch.enableCachedImages = c;
1419      f && o && (CIB.config.multimediaSearch.query.view = "detailV2", CIB.config.multimediaSearch.query.idpbck = "1");
1420      u && (CIB.config.multimediaSearch.query.form = u)
1421    }
1422  }
1423  function le() {
1424    var n, i, r, u, f, e, o, s, h, c, l, a, v, y, p, w, b, k, d, g = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableVisualSearch, !1);
1425    if (g) {
1426      var tt = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.removeCameraInputForVisualSearch, !1),
1427      it = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.dVSOC, !1),
1428      rt = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.aimgut, !1),
1429      nt = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.visualSearchSubscriptionId, ""),
1430      ut = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.vsbtnicon, ""),
1431      ft = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.vsbtniconfill, ""),
1432      et = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.eifpiab, !1),
1433      ot = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.emwc, !1),
1434      st = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.eufte, !1),
1435      ht = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.ecambar, !1),
1436      ct = t((a = _w._sydConvConfig) === null || a === void 0 ? void 0 : a.eaddimgbar, !1),
1437      lt = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.eaddimgicon, !1),
1438      at = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.evsfre, !1),
1439      vt = t((p = _w._sydConvConfig) === null || p === void 0 ? void 0 : p.ekrbu, !1),
1440      yt = t((w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.evsptnr, !1),
1441      pt = t((b = _w._sydConvConfig) === null || b === void 0 ? void 0 : b.evsdirurl, !1),
1442      wt = t((k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.eimgsmkcard, !1),
1443      bt = t((d = _w._sydConvConfig) === null || d === void 0 ? void 0 : d.efhof, !1);
1444      tt && (CIB.config.features.enableCameraInputForVisualSearch = !1);
1445      it && (CIB.config.features.enableVisualSearchOrientationCheck = !1);
1446      vt && (CIB.config.visualSearch.baseUrl = window.location.origin);
1447      CIB.config.features.enableVisualSearch = g;
1448      CIB.config.features.enableImageFilePasteInActionBar = et;
1449      CIB.config.features.enableUnsupportedFileTypeError = st;
1450      CIB.config.features.enableVisualSearchFRE = at;
1451      CIB.config.features.enablePartnerVisualSearchUpload = yt;
1452      CIB.config.features.enableImageKnowledgeAnswerCards = wt;
1453      CIB.config.features.enableFlyoutHeaderOverlapFix = bt;
1454      CIB.config.visualSearch.allowImageOnlyUserTurn = rt;
1455      CIB.config.visualSearch.enableMobileWebCamera = ot;
1456      CIB.config.visualSearch.enableCameraInActionBar = ht;
1457      CIB.config.visualSearch.enableAttachImageInActionBar = ct;
1458      CIB.config.visualSearch.sendPartnerImageUrlDirectlyToBot = pt;
1459      CIB.config.visualSearch.useImageAddIcon = lt;
1460      CIB.config.visualSearch.includeCredentialInXHRRequest = !0;
1461      CIB.config.visualSearch.flyoutButtonIcon = ut;
1462      CIB.config.visualSearch.flyoutButtonFillIcon = ft; ! nt || (CIB.config.visualSearch.subscriptionId = nt);
1463      ye();
1464      pe();
1465      we()
1466    }
1467  }
1468  function ae() {
1469    var n, i, r;
1470    CIB.config.m365consumer.pluginAuth.getClientId = function() {
1471      var n;
1472      return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginClientId, "ef47e344-4bff-4e28-87da-6551a21ffbe0")
1473    };
1474    CIB.config.m365consumer.pluginAuth.getAuthority = function() {
1475      var n;
1476      return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginAuthority, "https://login.windows-ppe.net/consumers")
1477    };
1478    CIB.config.m365consumer.pluginAuth.scope = [t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginAuthScope, "openid")];
1479    CIB.config.m365consumer.getOptionsSet = function() {
1480      var n;
1481      return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginOptionsSet, "flux_m365consumer_dogfood")
1482    };
1483    CIB.config.m365consumer.pluginId = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.m365ConsumerOutlookPluginId, "d03ca482-c3c8-4b7c-ace3-b52857208916");
1484    CIB.config.features.enableM365ConsumerPluginSydneyId = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableM365ConsumerPluginSydneyId, !1)
1485  }
1486  function ve() {
1487    var n, i;
1488    CIB.config.m365ConsumerOneDrive.pluginAuth.getClientId = function() {
1489      var n;
1490      return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginClientId, "ef47e344-4bff-4e28-87da-6551a21ffbe0")
1491    };
1492    CIB.config.m365ConsumerOneDrive.pluginAuth.getAuthority = function() {
1493      var n;
1494      return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginAuthority, "https://login.windows-ppe.net/consumers")
1495    };
1496    CIB.config.m365ConsumerOneDrive.pluginAuth.scope = [t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginAuthScope, "openid")];
1497    CIB.config.m365ConsumerOneDrive.getOptionsSet = function() {
1498      var n;
1499      return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.m365ConsumerPluginOneDriveOptionsSet, "flux_onedrive_dogfood")
1500    };
1501    CIB.config.m365ConsumerOneDrive.pluginId = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.m365ConsumerOneDrivePluginId, "1e1a2734-7a88-4c1c-be1d-a79907b177c0")
1502  }
1503  function ye() {
1504    var i, n = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.visualSearchRestrictedTonesList, null); (n === null || n === void 0 ? void 0 : n.length) > 0 && CIB.config.visualSearch && (CIB.config.visualSearch.restrictedTones = [], n.forEac
1504h(function(n) {
1505      CIB.config.visualSearch.restrictedTones.push(n.value)
1506    }))
1507  }
1508  function pe() {
1509    var i, n = CIB.config.visualSearch,
1510    t; ((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.evssid) && n && (t = sj_cook === null || sj_cook === void 0 ? void 0 : sj_cook.get("_SS", "SID"), t && (n.query ? n.query.SID = t: n.query = {
1511      SID: t
1512    }))
1513  }
1514  function we() {
1515    var n, i, r, f = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.evscamprd, !1),
1516    u = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.vscamprdname, "");
1517    f && u && ((r = _w.SydneyCameraProviderFactory) === null || r === void 0 ? void 0 : r.create(u))
1518  }
1519  function be() {
1520    var n, i, r, u, f, e, o, s, h, c, l, a, v, y, p, w, b, k, d, g, nt = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableFixCodeXAsBug, !1),
1521    tt = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableStableAutosuggestion, !1),
1522    it = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableEndpointInASTelemetry, !1),
1523    rt = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableAutosuggestMetrics, !1),
1524    ut = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableCvidInAutosuggestAPI, !1),
1525    ft = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableASBackspaceFix, !1),
1526    et = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableGhostingSuggestTelemetry, !1),
1527    ot = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableResetASProperties, !1),
1528    st = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableKSPQPropertiesTracking, !1),
1529    ht = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.enableAutoSuggestPerfMetrics, !1),
1530    ct = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.enableAutoSuggestPerfMetricP50, !1),
1531    lt = t((a = _w._sydConvConfig) === null || a === void 0 ? void 0 : a.enableAutoSuggestPerfMetricP90, !1),
1532    at = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableAutoSuggestPerfMetricAvgLatency, !1),
1533    vt = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableAutoSuggestPerfMetricQFT, !1),
1534    yt = t((p = _w._sydConvConfig) === null || p === void 0 ? void 0 : p.enableReduceDebouncingAutosuggest, !1),
1535    pt = t((w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.enableCachingAutosuggest, !1),
1536    wt = t((b = _w._sydConvConfig) === null || b === void 0 ? void 0 : b.enableAcceptSuggestionOnRightArrow, !1),
1537    bt = t((k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.enableShowAutosuggestButton, !1),
1538    kt = t((d = _w._sydConvConfig) === null || d === void 0 ? void 0 : d.enableASCookieCheckToDisableGhosting, !1),
1539    dt = t((g = _w._sydConvConfig) === null || g === void 0 ? void 0 : g.maxCacheLength, pf);
1540    CIB.config.features.enableFixCodeXAsBug = nt;
1541    CIB.config.features.enableStableAutosuggestion = tt;
1542    CIB.config.features.enableEndpointInASTelemetry = it;
1543    CIB.config.features.enableAutosuggestMetrics = rt;
1544    CIB.config.features.enableCvidInAutosuggestAPI = ut;
1545    CIB.config.features.enableASBackspaceFix = ft;
1546    CIB.config.features.enableGhostingSuggestTelemetry = et;
1547    CIB.config.features.enableResetASProperties = ot;
1548    CIB.config.features.enableKSPQPropertiesTracking = st;
1549    CIB.config.features.enableReduceDebouncingAutosuggest = yt;
1550    CIB.config.features.enableCachingAutosuggest = pt;
1551    CIB.config.features.enableAcceptSuggestionOnRightArrow = wt;
1552    CIB.config.features.enableShowAutosuggestButton = bt;
1553    CIB.config.features.enableASCookieCheckToDisableGhosting = kt;
1554    CIB.config.suggestions.maxCacheLength = dt;
1555    CIB.config.features.enableAutoSuggestPerfMetrics = ht;
1556    CIB.config.features.enableAutoSuggestPerfMetricP50 = ct;
1557    CIB.config.features.enableAutoSuggestPerfMetricP90 = lt;
1558    CIB.config.features.enableAutoSuggestPerfMetricAvgLatency = at;
1559    CIB.config.features.enableAutoSuggestPerfMetricQFT = vt
1560  }
1561  function ke(n) {
1562    var u, f, e, o, s, h, c, l, a, v, y, p, w, b, k, d, g, nt, tt, it, rt, ut, ft, et, ot, ct = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableFileUpload, !1),
1563    lt = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableFileUploadPrivacyMessage, !1),
1564    at = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableMobileFileUpload, !1),
1565    vt = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableFileUploadWebPageUrlInput, !1),
1566    yt = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableFileUploadContextInThreads, !1),
1567    pt = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableTextFilePasteInActionBar, !1),
1568    wt = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.enableFileUploadLongContext, !1),
1569    bt = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.enableFileUploadForAllModes, !1),
1570    kt = t((a = _w._sydConvConfig) === null || a === void 0 ? void 0 : a.enableFileUploadDirect, !1),
1571    dt = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableFileUploadPdfSupport, !1),
1572    gt = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableFileUploadOfficeFilesSupport, !1),
1573    ni = t((p = _w._sydConvConfig) === null || p === void 0 ? void 0 : p.enableFileUploadAudioSupport, !1),
1574    ti = t((w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.enableFileUploadPDFSupportByKED, !1),
1575    ii = t((b = _w._sydConvConfig) === null || b === void 0 ? void 0 : b.enableFileUploadAnyTypeSupp
1575ort, !1),
1576    ri = t((k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.enableFileUploadAuthorization, !1),
1577    ui = t((d = _w._sydConvConfig) === null || d === void 0 ? void 0 : d.fileSizeLimitation, cu),
1578    fi = t((g = _w._sydConvConfig) === null || g === void 0 ? void 0 : g.audioFileSizeLimitation, lu),
1579    st = t((nt = _w._sydConvConfig) === null || nt === void 0 ? void 0 : nt.fileUploadMaxSizePro, au),
1580    ei = t((tt = _w._sydConvConfig) === null || tt === void 0 ? void 0 : tt.fileUploadFileNameLengthLimitation, vu),
1581    oi = t((it = _w._sydConvConfig) === null || it === void 0 ? void 0 : it.fileMaxCountForGptCreator, yu),
1582    si = t((rt = _w._sydConvConfig) === null || rt === void 0 ? void 0 : rt.fileMaxCountForChat, pu),
1583    hi = t((ut = _w._sydConvConfig) === null || ut === void 0 ? void 0 : ut.enableFileUploadNewUploadFileAPI, !1),
1584    ci = t((ft = _w._sydConvConfig) === null || ft === void 0 ? void 0 : ft.disableFileUploadOptionSets, !1),
1585    li = t((et = _w._sydConvConfig) === null || et === void 0 ? void 0 : et.enableSydFileUploadPartnerUpload, !1),
1586    ht = t((ot = _w._sydConvConfig) === null || ot === void 0 ? void 0 : ot.enableSydFileUploadMaxSizeTiers, !1),
1587    i,
1588    r;
1589    ct && (CIB.config.features.enableFileUpload = !0, at && (CIB.config.features.enableMobileFileUpload = !0));
1590    lt && (CIB.config.features.enableFileUploadPrivacyMessage = !0);
1591    vt && (CIB.config.features.enableFileUploadWebPageUrlInput = !0);
1592    yt && (CIB.config.features.enableFileUploadContextInThreads = !0);
1593    pt && (CIB.config.features.enableTextFilePasteInActionBar = !0);
1594    wt && (CIB.config.features.enableFileUploadLongContext = !0);
1595    bt && (CIB.config.features.enableFileUploadForAllModes = !0);
1596    kt && (CIB.config.features.enableFileUploadDirect = !0);
1597    dt && (CIB.config.features.enableFileUploadPdfSupport = !0);
1598    gt && (CIB.config.features.enableFileUploadOfficeFilesSupport = !0, typeof CIB.config.features.enableFileUploadDocxSupport != "undefined" && (CIB.config.features.enableFileUploadDocxSupport = !0));
1599    ni && (CIB.config.features.enableFileUploadAudioSupport = !0);
1600    ti && (CIB.config.features.enableFileUploadPDFSupportByKED = !0);
1601    ii && (CIB.config.features.enableFileUploadAnyTypeSupport = !0);
1602    ri && (CIB.config.features.enableFileUploadAuthorization = !0);
1603    hi && (CIB.config.features.enableSydneyUploadFileAPI = !0);
1604    li && (CIB.config.features.enablePartnerFileUpload = !0);
1605    ci && CIB.config.fileUpload && (CIB.config.fileUpload.extraOptionsSet = [], CIB.config.fileUpload.extraOptionsSetV2 = []);
1606    CIB.config.fileUpload && (i = ht && n ? st: ui, r = ht && n ? st: fi, CIB.config.fileUpload.audioFileSizeLimitation = r, CIB.config.fileUpload.fileSizeLimitationLongContext = i, CIB.config.fileUpload.fileSizeLimitation = i, CIB.config.fileUpload.fileSizeLimitationForChat = i, CIB.config.fileUpload.audioFileSizeLimitationForChat = r, CIB.config.fileUpload.fileSizeLimitationForGptCreator = i, CIB.config.fileUpload.audioFileSizeLimitationForGptCreator = r, CIB.config.fileUpload.fileNameLengthLimitation = ei, CIB.config.fileUpload.fileMaxCountForGptCreator = oi, CIB.config.fileUpload.fileMaxCountForChat = si, de())
1607  }
1608  function de() {
1609    var r, u, n = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.azureAIDocumentAnalysisFileExtensions, wu),
1610    i = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.audioFileExtensions, bu); (n === null || n === void 0 ? void 0 : n.length) > 0 && CIB.config.features.enableFileUploadOfficeFilesSupport && (CIB.config.fileUpload.azureAIDocumentAnalysisFileExtensions = [], n.forEach(function(n) {
1611      CIB.config.fileUpload.azureAIDocumentAnalysisFileExtensions.push(n.value)
1612    })); (i === null || i === void 0 ? void 0 : i.length) > 0 && CIB.config.features.enableFileUploadAudioSupport && (CIB.config.fileUpload.audioFileExtensions = [], i.forEach(function(n) {
1613      CIB.config.fileUpload.audioFileExtensions.push(n.value)
1614    }))
1615  }
1616  function ge() {
1617    var e, o, s, h, c, l, a, v, y, p, w, b, k, d, g, nt, tt, rt = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableShareWholeThreadMockUp, !1),
1618    ut = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableThreadSh
1618areLandingPage, !1),
1619    ft = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableShareConversation, !1),
1620    et = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableShareThreadWithNoCache, !1),
1621    ot = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.enableWholeThreadPerformanceFix, !1),
1622    st = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.enableShareCurrentThreadMessagesfromAPI, !1),
1623    ht = t((a = _w._sydConvConfig) === null || a === void 0 ? void 0 : a.enableThreadShareWithoutRenderCardRequest, !1),
1624    ct = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableGetConversationAPIWithSNRProxy, !1),
1625    lt = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableGetSharedMessagesAPIWithSNRProxy, !1),
1626    at = t((p = _w._sydConvConfig) === null || p === void 0 ? void 0 : p.enableBICHistory, !1),
1627    vt = t((w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.enable2TScreenshot, !1),
1628    yt = t((b = _w._sydConvConfig) === null || b === void 0 ? void 0 : b.enable2TScreenshotSnR, !1),
1629    it = t((k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.enableThreads, !1),
1630    bt = t((d = _w._sydConvConfig) === null || d === void 0 ? void 0 : d.enableThreadsCF, !1),
1631    pt = t((g = _w._sydConvConfig) === null || g === void 0 ? void 0 : g.enableThreadsCopilotMobileUpsell, !1),
1632    n,
1633    u,
1634    wt;
1635    if (rt && (CIB.config.features.enableShareWholeThreadMockUp = rt), ut && (CIB.config.features.enableThreadShareLandingPage = ut), ft && (CIB.config.features.enableShareConversation = ft), et && (CIB.config.features.enableShareThreadWithNoCache = et), ot && (CIB.config.features.enableWholeThreadPerformanceFix = ot), st && (CIB.config.features.enableShareCurrentThreadMessagesfromAPI = st), ht && (CIB.config.features.enableThreadShareWithoutRenderCardRequest = ht), ct && (CIB.config.features.enableGetConversationAPIWithSNRProxy = ct), lt && (CIB.config.features.enableGetSharedMessagesAPIWithSNRProxy = lt), at && (CIB.config.features.enableBICHistory = at), vt && (CIB.config.features.enableAnswerScreenshot = vt), yt && (CIB.config.features.enableAnswerScreenshotSnR = yt), pt && (CIB.config.features.enableThreadsCopilotMobileUpsell = pt), it) {
1636      if (CIB.config.features.enableThreads = it, n = t((nt = _w._sydThreads) === null || nt === void 0 ? void 0 : nt.threads, null), n && n.length > 0) for (u = 0; u < n.length; u++) CIB.addThread(n[u]);
1637      wt = t((tt = _w._sydConvConfig) === null || tt === void 0 ? void 0 : tt.threadsAutoSaveOptionset, "autosave");
1638      f(CIB.config.sydney.request.optionsSets, wt)
1639    } (it || bt) && i(r.System, "THREADS", "1", "1");
1640    CIB.config.sydney.request.scenario !== "SERP" && hr()
1641  }
1642  function no() {
1643    var n, i, r, u = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableTypingIndicatorAnimation, !1),
1644    f = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableTypingIndicatorDemoteStyle, !1),
1645    e = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.typingIndicatorAnimationDuration, tf);
1646    u && (CIB.config.features.enableTypingIndicatorAnimation = !0, CIB.config.messaging.typingIndicatorAnimationDuration = e);
1647    f && (CIB.config.features.enableTypingIndicatorDemoteStyle = !0)
1648  }
1649  function to() {
1650    var n, i, r, u, f, e, o, s, h, c, l, v = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableAdSlugsDesktop, !1),
1651    y = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableAdSlugsMobile, !1),
1652    p = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableSearchQueryForInlineAds, !1),
1653    w = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableDevFormOverrideForAds, !1),
1654    b = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableFixForInlineAdsSQ, !1),
1655    a = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.codexPartnerScenario, ""),
1656    k = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableRenderChatAdsOnSerp, !1),
1657    d = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableInlineAdsProcessingV2, !1),
1658    g = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableInlineAdsContainer, !1),
1659    nt = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.disableHoverAdsClickout, !1),
1660    tt = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.enableUniqueSlotId, !1);
1661    v && (CIB.config.features.enableAdSlugsDesktop = !0);
1662    y && (CIB.config.features.enableAdSlugsMobile = !0);
1663    p && (CIB.config.features.enableSearchQueryForInlineAds = !0);
1664    w && (CIB.config.features.enableDevFormOverrideForAds = !0);
1665    b && (CIB.config.features.enableFixForInlineAdsSQ = !0);
1666    a !== "" && (CIB.config.sydney.request.scenario = a);
1667    k && (CIB.config.features.enableSlottedContentForAds = !0, CIB.config.features.enableSlottedContentForInlineAds = !0);
1668    d && (CIB.config.features.enableInlineAdsProcessingV2 = !0);
1669    g && (CIB.config.features.enableInlineAdsContainer = !0);
1670    nt && (CIB.config.features.enableApplyLinkToHoverAds = !1);
1671    CIB.config.features.enableInlineAdsDynamicWidth = !0;
1672    tt && (CIB.config.features.enableUniqueSlotId = !0)
1673  }
1674  function io() {
1675    var n = _w._sydConvConfig,
1676    u = t(n === null || n === void 0 ? void 0 : n.enableShopgptWebcomponents, !1),
1677    r,
1678    i;
1679    u && (CIB.config.features.enableInlineComponents = !0, CIB.config.features.enableDynamicWebcomponent = !0);
1680    r = t(n === null || n === void 0 ? void 0 : n.enableShopgptShoppingSkills, !1);
1681    r && (i = t(n === null || n === void 0 ? void 0 : n.shopgptShoppingSkillsOptionset, ""), i && f(CIB.config.sydney.request.optionsSets, i))
1682  }
1683  function ro() {
1684    var n, i, r, u, f, e, o, s = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableSydneySapphireUpsellMessageActions, !1),
1685    h = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableSydneySapphireUpsellEndOfChat, !1),
1686    c = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableSydneySapphireUpsellVisualSearch, !1),
1687    l = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.sydneySapphireUpsellTreatment, 0),
1688    a = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.isAccountLinkedWithActiveAAD, !1),
1689    v = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.sydneyContinueOnPhoneShortenQRCodeUrl, "https://bingapp.microsoft.com/bing?style=newbing"),
1690    y = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.sydSapphireUpsellVisualSearchQRCodeUrl, "https://bingapp.microsoft.com/bing?adjust=13uz7blz_13evwnmy");
1691    s && !a && (CIB.config.features.enableSydSapphireUpsellOnMessageActions = s, CIB.config.mobileUpsell.sydSapphireUpsellTreatment = l, CIB.config.mobileUpsell.qrCodeBaseUrl = v);
1692    h && (CIB.config.features.enableSydSapphireUpsellOnEndOfChat = h, CIB.config.mobileUpsell.sydSapphireUpsellTreatment = l);
1693    c && (CIB.config.features.enableSydSapphireUpsellVisualSearch = c, CIB.config.mobileUpsell.qrCodeVisualSearchUrl = y)
1694  }
1695  function uo() {
1696    var i, r, u, f, e, o, s, l = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.sydOptionSets, !1),
1697    a = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.isSydCorpnet, !1),
1698    v = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.noInitOpts, !1),
1699    y = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.extraSappOptions, ""),
1700    p = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.extraEdgeOptions, ""),
1701    w = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.extraBceOptions, ""),
1702    k = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.removeDeepleo, !1),
1703    d = new URLSearchParams(_w.location.search.toLowerCase()),
1704    b = d.get(fu.toLowerCase()),
1705    n,
1706    c; (v || l != "" || a && b || y || p || w) && (n = v ? [] : CIB.config.sydney.request.optionsSets, n = h(n, l), a && (n = h(n, b)), n = h(n, y), n = h(n, p), n = h(n, w), k && (c = n.indexOf("deepleo"), c >= 0 && n.splice(c, 1)), CIB.config.sydney.request.optionsSets = n)
1707  }
1708  function fo() {
1709    var h, c, l, v, y, p, w, b, k, d, g, nt, tt, it, rt, ut, ft, et, ot, st, ht, ct, gt = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.toneDefault, ((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.isCCP) ? n.CREATIVE_TONE: n.BALANCED_TONE),
1710    ni = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.userPriorityLevel, 999),
1711    ti = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableUserPriorityLevel, !1),
1712    pt = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableTonePerf, !1),
1713    dt,
1714    yt;
1715    s = t((p = _w._sydConvConfig) === null || p === void 0 ? void 0 : p.enableNoToneOpt, !1); ((w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.shareLoadingUI) && (CIB.config.features.enableShareLoadingUI = !0);
1716    var i = !ti || ni > 0,
1717    lt = i ? t((b = _w._sydConvConfig) === null || b === void 0 ? void 0 : b.balTone, "") : "harmonyv3",
1718    at = t((k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.crtTone, ""),
1719    vt = t((d = _w._sydConvConfig) === null || d === void 0 ? void 0 : d.prcTone, ""),
1720    wt = t((g = _w._sydConvConfig) === null || g === void 0 ? void 0 : g.sydBalOpts, ""),
1721    bt = t((nt = _w._sydConvConfig) === null || nt === void 0 ? void 0 : nt.sydCrtOpts, ""),
1722    kt = t((tt = _w._sydConvConfig) === null || tt === void 0 ? void 0 : tt.sydPrcOpts, ""),
1723    r = i ? t((it = _w._sydConvConfig) === null || it === void 0 ? void 0 : it.sydBalExtraOpts, "") : "",
1724    f = i ? t((rt = _w._sydConvConfig) === null || rt === void 0 ? void 0 : rt.sydCrtExtraOpts, "") : "",
1725    o = i ? t((ut = _w._sydConvConfig) === null || ut === void 0 ? void 0 : ut.sydPrcExtraOpts, "") : "";
1726    wt && (r += (r !== "" ? ",": "") + wt);
1727    bt && (f += (f !== "" ? ",": "") + bt);
1728    kt && (o += (o !== "" ? ",": "") + kt);
1729    r && (e.Balanced = r.split(","));
1730    f && (e.Creative = f.split(","));
1731    o && (e.Precise = o.split(","));
1732    dt = t((ft = _w._sydConvConfig) === null || ft === void 0 ? void 0 : ft.enableCleanUpBicOpts, !1);
1733    dt && (a(e.Balanced, "saharagenconv5"), a(e.Creative, "gencontentv3"), a(e.Precise, "gencontentv3")); (lt || s && lt == "") && (u[n.BALANCED_TONE] = lt); (at || s && at == "") && (u[n.CREATIVE_TONE] = at); (vt || s && vt == "") && (u[n.PRECISE_TONE] = vt);
1734    pt && (CIB.config.features.enableTonePerf = pt);
1735    CIB.config.features.enableGPT4TurboSwitch = t((et = _w._sydConvConfig) === null || et === void 0 ? void 0 : et.enableGPT4TurboSwitch, !1);
1736    CIB.config.features.enableResponseToneSelector = !0;
1737    CIB.config.features.enablePersistentResponseToneSelector = t((ot = _w._sydConvConfig) === null || ot === void 0 ? void 0 : ot.enablePersistentToneSelector, !1);
1738    CIB.config.features.enableResponseToneObjects = (ht = (st = _w._sydConvConfig) === null || st === void 0 ? void 0 : st.enableSuppressTones) !== null && ht !== void 0 ? ht: !1;
1739    CIB.config.features.enableResponseToneColorThemes = !0;
1740    yt = Object.keys(u); ((ct = _w._sydConvConfig) === null || ct === void 0 ? void 0 : ct.enableSuppressTones) ? CIB.config.sydney.responseTones = yt.map(function(n) {
1741      var t, i, r = (i = (t = _w._sydConvConfig) === null || t === void 0 ? void 0 : t["suppressKnob".concat(n)]) !== null && i !== void 0 ? i: 0;
1742      return {
1743        tone: n,
1744        disabled: r
1745      }
1746    }) : CIB.config.sydney.responseToneOptions = yt;
1747    yo(gt);
1748    wo()
1749  }
1750  function wt(i) {
1751    var u, f, e, o, s, h, r, c; (t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableSyntheticStreamSpeedBasedOnTone, !1) && (r = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.syntheticStreamSpeed, ui), i === n.BALANCED_TONE && (CIB.config.messaging.messageBufferWorkerStreamDelayMS = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.syntheticStreamSpeedForBalancedTone, r)), i === n.CREATIVE_TONE && (CIB.config.messaging.messageBufferWorkerStreamDelayMS = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.syntheticStreamSpeedForCreativeTone, r)), i === n.PRECISE_TONE && (CIB.config.messaging.messageBufferWorkerStreamDelayMS = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.syntheticStreamSpeedForPreciseTone, r))), c = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableStreamSyntheticTextResponses, !1), c) && (CIB.config.messaging.streamSyntheticTextResponses = eo(i))
1752  }
1753  function eo(i) {
1754    var r, f, e, o = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableStreamSyntheticTextResponsesForBalancedTone, !1),
1755    h = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableStreamSyntheticTextResponsesForCreativeTone, !1),
1756    c = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableStreamSyntheticTextResponsesForPreciseTone, !1);
1757    return o && (i === n.BALANCED_TONE && u[n.BALANCED_TONE] === "galileo" || s && u[n.BALANCED_TONE] === "") || h && (i === n.CREATIVE_TONE && u[n.CREATIVE_TONE] === "h3imaginative" || s && u[n.CREATIVE_TONE] === "") || c && (i === n.PRECISE_TONE && u[n.PRECISE_TONE] === "h3precise" || s && u[n.PRECISE_TONE] === "")
1758  }
1759  function oo(n) {
1760    if (!n) return ut.Demote;
1761    for (var t in ut) if (t.toLowerCase().trim() === n.toLowerCase().trim()) return ut[t];
1762    return ut.Demote
1763  }
1764  function so() {
1765    var t = sj_cook.get(n.userCook, sf),
1766    i = oo(t);
1767    CIB.config.sydney.bingFirstPageAdultFilter = i
1768  }
1769  function ho(n) {
1770    ir = n
1771  }
1772  function co() {
1773    return ir
1774  }
1775  function cr() {
1776    var i, r = sj_cook.get(n.userCook, p),
1777    e;
1778    if (w) {
1779      var o = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.bceTermsOfUseVersion, 1),
1780      u = sj_cook.get(hi, p),
1781      s = !!r || !!u,
1782      f = s ? Number(r) || Number(u) || 1 : 0;
1783      return !! f && f >= o
1784    }
1785    return e = sj_cook.get(g, g),
1786    r === e
1787  }
1788  function lo() {
1789    var u, f, e, o, s, h, c, l, a, k = sj_cook.get(g, g),
1790    d = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.bceTermsOfUseVersion, 1),
1791    y = w ? d.toString() : k,
1792    v,
1793    b;
1794    sj_cook.set(n.userCook, p, y, !0, "/", null);
1795    sj_cook.set(hi, p, y, !0, "/", null);
1796    i(r.System, "MuidConsentProvided", "MuidUser", {
1797      IsConsent: "1"
1798    });
1799    CIB.config.sydney.muidUserConsentGiven = !0;
1800    CIB.config.features.enableSuggestionBarInUnexpandedChatAnswer && (v = (o = (e = (f = _d.querySelector(".b_ans #b_sydTigerCont")) === null || f === void 0 ? void 0 : f.querySelector("cib-serp")) === null || e === void 0 ? void 0 : e.shadowRoot) === null || o === void 0 ? void 0 : o.querySelector("cib-see-more-container"), b = (a = (l = (c = (h = (s = _d.querySelector(".b_ans #b_sydTigerCont")) === null || s === void 0 ? void 0 : s.querySelector("cib-serp")) === null || h === void 0 ? void 0 : h.shadowRoot) === null || c === void 0 ? void 0 : c.querySelector("cib-conversation")) === null || l === void 0 ? void 0 : l.shadowRoot) === null || a === void 0 ? void 0 : a.querySelector("cib-suggestion-bar"), v && b && v.setAttribute("has-suggestions", "true"))
1801  }
1802  function ao() {
1803    if (typeof CIB.version != "undefined" && CIB.version && CIB.version.version && typeof sj_cook != "undefined" && sj_cook) {
1804      var t = CIB.version.version,
1805      u = sj_cook.get(n.userCook, ci);
1806      u && u === t || (sj_cook.set(n.userCook, ci, t, !0, "/", null), i(r.System, "CIB", "CIBInfo", {
1807        version: t
1808      }))
1809    }
1810  }
1811  function vo() {
1812    var n, u = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.DedicatedIpType, "unknown"); ["nochat", "nochatstrict"].indexOf(u) > -1 && i(r.System, "NoChatVariant", "NoChatVariantInfo", {
1813      DedicatedIpType: u
1814    })
1815  }
1816  function bt() {
1817    var i, r = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableToneCookExpiry, !1),
1818    u = r ? n.toneCook: n.userCook;
1819    return sj_cook.get(u, n.toneCrumb)
1820  }
1821  function yo(e) {
1822    var s, h, c, a, v, y, b = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableToneCookExpiry, !1),
1823    p = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableBalancedSerp, !1),
1824    g = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.enableAlwaysCreativeSerp, !1),
1825    nt = t((a = _w._sydConvConfig) === null || a === void 0 ? void 0 : a.enableAlwaysBalancedSerp, !1),
1826    tt = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableSuperOptionsSets, !1),
1827    it = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableBalancedSerpLog, !1),
1828    o = bt(),
1829    w,
1830    k;
1831    if (it && o != n.BALANCED_TONE && i(r.System, "BalSerpOverride", "Tone", {
1832      tone: o
1833    }), lr(o), bo()) {
1834      w = ft(fi).toLowerCase().trim();
1835      CIB.responseTone = rt[w];
1836      kt(CIB.responseTone, !1, b);
1837      i(r.System, "SET_TONE_FROM_URL", w, {});
1838      i(r.System, d, "Tone", {
1839        tone: CIB.responseTone
1840      });
1841      return
1842    }
1843    g ? (o = n.CREATIVE_TONE, CIB.responseTone = o) : nt ? (o = n.BALANCED_TONE, CIB.responseTone = o) : !p && o != null && u.hasOwnProperty(o) ? (CIB.responseTone = o, i(r.System, d, "Tone", {
1844      tone: o
1845    })) : (b && (k = sj_cook.get(n.userCook, n.hasSetToneCrumb), k == "1" && (sj_cook.set(n.userCook, n.hasSetToneCrumb, "0", !0, "/", null), i(r.System, "ResetTone", "Tone", {}))), CIB.responseTone = e, o = e, i(r.System, "DefaultTone", "Tone", {
1846      tone: o
1847    }));
1848    tt && f(CIB.config.sydney.request.optionsSets, rf);
1849    yt = CIB.config.sydney.request.optionsSets.length; ! p && u.hasOwnProperty(o) ? (f(CIB.config.sydney.request.optionsSets, u[o]), CIB.config.sydney.request.optionsSets = et(CIB.config.sydney.request.optionsSets, o), l = o, wt(l)) : p && u.hasOwnProperty(n.BALANCED_TONE) && (f(CIB.config.sydney.request.optionsSets, u[n.BALANCED_TONE]), CIB.config.sydney.request.optionsSets = et(CIB.config.sydney.request.optionsSets, n.BALANCED_TONE), l = n.BALANCED_TONE, wt(n.BALANCED_TONE))
1850  }
1851  function po(n) {
1852    var u, f = n && n.length > 1 ? n[1] : null,
1853    e = f ? f.toLowerCase().trim() : "",
1854    o,
1855    s;
1856    f && rt.hasOwnProperty(e) && (o = n && n.length > 2 ? n[2] : !1, s = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableToneCookExpiry, !1), CIB.responseTone = rt[e], kt(CIB.responseTone, o, s), i(r.System, d, "Tone", {
1857      tone: CIB.responseTone
1858    }))
1859  }
1860  function wo() {
1861    var n, u, f;
1862    sj_evt.bind(ff, po, !0);
1863    var e = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableToneCookExpiry, !1),
1864    o = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.isCompliantSydneyEndpointEnabled, !1),
1865    s = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableToneChangedLogs, !1);
1866    if (!o && CIB.onResponseToneChanged) CIB.onResponseToneChanged(function(n) {
1867      kt(n, !0, e)
1868    });
1869    if (s) CIB.onResponseToneChanged(function(n) {
1870      i(r.System, "ToneChanged", "Tone", {
1871        newTone: n
1872      })
1873    })
1874  }
1875  function ft(n) {
1876    var i = _w.location.search,
1877    r = new URLSearchParams(i),
1878    t = r.get(n);
1879    return t ? t: ""
1880  }
1881  function bo() {
1882    var n, r = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableSetToneFromUrl, !1),
1883    i;
1884    return r ? (i = ft(fi), i && rt.hasOwnProperty(i.toLowerCase().trim())) : !1
1885  }
1886  function kt(t, i, r) {
1887    var c = [u[t]].concat(e[t]).toString(),
1888    h,
1889    o;
1890    t !== bt() && yr("ChangedTone", "Tone", {
1891      newTone: t
1892    });
1893    i && (r ? (h = go(), sj_cook.set(n.toneCook, n.toneCrumb, t, !0, "/", h), sj_cook.set(n.toneCook, n.toneOptsCrumb, c, !0, "/", h), sj_cook.set(n.userCook, n.hasSetToneCrumb, "1", !0, "/", null)) : (sj_cook.set(n.userCook, n.toneCrumb, t, !0, "/", null), sj_cook.set(n.userCook, n.toneOptsCrumb, c, !0, "/", null)));
1894    u.hasOwnProperty(t) && (o = vr(CIB.config.sydney.request.optionsSets, Ob
1894ject.keys(u)), o !== -1 ? s && u[t] === "" ? (yt = o, CIB.config.sydney.request.optionsSets.splice(o, 1)) : CIB.config.sydney.request.optionsSets[o] = u[t] : s ? f(CIB.config.sydney.request.optionsSets, u[t], yt) : f(CIB.config.sydney.request.optionsSets, u[t]), CIB.config.sydney.request.optionsSets = et(CIB.config.sydney.request.optionsSets, t, l), lr(CIB.responseTone), l = t, wt(l))
1895  }
1896  function lr(i) {
1897    var r, u, e = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableThreadsConsent, !1),
1898    o = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.isBingUserSignedIn, !1);
1899    e && o && i !== n.BALANCED_TONE ? (f(CIB.config.sydney.request.optionsSets, "enable_user_consent"), f(CIB.config.sydney.request.optionsSets, "fluxmemcst")) : (a(CIB.config.sydney.request.optionsSets, "enable_user_consent"), a(CIB.config.sydney.request.optionsSets, "fluxmemcst"))
1900  }
1901  function ko() {
1902    var u, f, e, o = n.getConfigOrDefault((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableBalancedSerp, !1),
1903    t,
1904    i,
1905    s;
1906    o && !di && (di = !0, o && (t = n.getCookieTone(), t != null && t != n.BALANCED_TONE && (i = CIB.manager.conversation._lastMessage, s = (e = (f = CIB === null || CIB === void 0 ? void 0 : CIB.config) === null || f === void 0 ? void 0 : f.greeting) === null || e === void 0 ? void 0 : e.shouldSendBotGreeting, CIB.config.greeting.shouldSendBotGreeting = !1, n.shouldResetBotGreeting = !1, CIB.responseTone = t, n.lastQuery = "", i && i.text && CIB.registerContext([{
1907      author: "bot",
1908      source: "serpBalResp",
1909      text: i.text
1910    }]), n.shouldResetBotGreeting = !0, CIB.config.greeting.shouldSendBotGreeting = s, n.SydLog(r.System, "SetCookToneAfterSERP", "Tone", {
1911      tone: t
1912    }
1912))))
1913  }
1914  function ar(n) {
1915    var i, r = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.isCompliantSydneyEndpointEnabled, !1);
1916    n && !r && (CIB.config.speech.language = n, f(CIB.config.sydney.request.optionsSets, "cdxslang"))
1917  }
1918  function go() {
1919    var n = new Date;
1920    return n.setDate(n.getDate() + (n.getHours() < 2 ? 1 : 2)),
1921    n.setHours(2),
1922    n.setMinutes(0),
1923    n.setSeconds(0),
1924    n.setMilliseconds(0),
1925    (n.getTime() - (new Date).getTime()) / 6e4
1926  }
1927  function et(n, t, i) {
1928    return i === void 0 && (i = ""),
1929    i != "" && e.hasOwnProperty(i) && (n = ns(n, e[i])),
1930    t != "" && e.hasOwnProperty(t) && e[t].forEach(function(t) {
1931      f(n, t)
1932    }),
1933    n
1934  }
1935  function f(n, t, i) {
1936    i === void 0 && (i = -1);
1937    t && n.indexOf(t) < 0 && (i < 0 ? n.push(t) : n.splice(i, 0, t))
1938  }
1939  function a(n, t) {
1940    var i = n.indexOf(t);
1941    i >= 0 && n.splice(i, 1)
1942  }
1943  function ns(n, t) {
1944    return t.forEach(function(t) {
1945      var i = n.indexOf(t);
1946      i >= 0 && n.splice(i, 1)
1947    }),
1948    n
1949  }
1950  function vr(n, t) {
1951    for (var f, r, i = 0; i < t.length; i++) if (f = t[i], r = n.indexOf(u[f]), r >= 0) return r;
1952    return - 1
1953  }
1954  function dt(n, t) {
1955    var i = {};
1956    return t ? n.locType && (i.LocationType = n.locType) : n.accuracy && (i.Accuracy = n.accuracy),
1957    n.state && (i.State = decodeURI(n.state)),
1958    n.city && (i.City = decodeURI(n.city)),
1959    n.lat && n.long && (i.Center = {
1960      Latitude: parseFloat(n.lat),
1961      Longitude: parseFloat(n.long)
1962    }),
1963    n.source && (i.LocationSource = n.source),
1964    n.altitude && (i.Altitude = n.altitude),
1965    n.altitudeAcc && (i.AltitudeAccuracy = n.altitudeAcc),
1966    n.displayName && (i.DisplayName = n.displayName),
1967    n.name && (i.Name = n.name),
1968    n.heading && (i.Heading = n.heading),
1969    n.isValidLocation && (i.IsValidLocation = n.isValidLocation),
1970    n.range && (i.Radius = n.range),
1971    n.speed && (i.Speed = n.speed),
1972    n.ts && (i.Timestamp = n.ts),
1973    n.ets && (i.ExpiryTimestamp = n.ets),
1974    i
1975  }
1976  function ts() {
1977    var t = (new Date).getTimezoneOffset(),
1978    r = Math.floor(Math.abs(t / 60)),
1979    u = Math.abs(t % 60),
1980    i;
1981    t < 0 ? i = "+" + o(r) + ":" + o(u) : t > 0 ? i = "-" + o(r) + ":" + o(u) : t == 0 && (i = "Z");
1982    var n = new Date,
1983    f = n.getDate(),
1984    e = n.getMonth() + 1,
1985    s = n.getFullYear(),
1986    h = n.getHours(),
1987    c = n.getMinutes(),
1988    l = n.getSeconds();
1989    return o(s) + "-" + o(e) + "-" + o(f) + "T" + o(h) + ":" + o(c) + ":" + o(l) + i
1990  }
1991  function o(n) {
1992    return n < 10 ? "0" + n: n
1993  }
1994  function h(n, t) {
1995    if (t) {
1996      var i = t.split(",");
1997      return n.concat(i)
1998    }
1999    return n
2000  }
2001  function t(n, t) {
2002    return typeof n != "undefined" ? n: t
2003  }
2004  function is(n) {
2005    var t = __spreadArray([], CIB.config.sydney.request.optionsSets, !0),
2006    i;
2007    return u.hasOwnProperty(n) && (i = vr(t, Object.keys(u)), i !== -1 && (t[i] = u[n]), t = et(t, n, l)),
2008    t
2009  }
2010  function rs() {
2011    var t, r = n.getConfigOrDefault((t = _w._sydConvConfig) === null || t === void 0 ? void 0 : t.enableChatPageCookieBannerFix, !1),
2012    i;
2013    return r ? (i = _ge("bnp_cookie_banner"), i && _w && _w.getComputedStyle(i).display !== "none") : !1
2014  }
2015  function i(n, i, u, f) {
2016    var h, c, l, a, v, y, o, s, e, p, w, k, d, g, b;
2017    f === void 0 && (f = null);
2018    e = [];
2019    p = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.isCompliantSydneyEndpointEnabled, !1);
2020    p && e.push("IsBizChat", p.toString());
2021    w = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.isBingChatForEnterprise, !1);
2022    w && e.push("IsBCE", w.toString());
2023    k = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.isBingChatForFaculty, !1);
2024    d = t((a = _w._sydConvConfig) === null || a === void 0 ? void 0 : a.isBingChatForStudents, !1);
2025    k && e.push("IsBCSFaculty", "true");
2026    d && e.push("IsBCSStudent", "true");
2027    g = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableTelemetryPrivacy, !1);
2028    g && (f = us(f));
2029    b = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableCompliantLogger, !1);
2030    f == null ? (Log.Log.apply(Log, __spreadArray([n, "Codex", i, !1, "Namespace", u], e, !1)), typeof MsbSydneyHelper != "undefined" && b && n === r.Interaction && ((o = MsbSydneyHelper.compliantLog) === null || o === void 0 ? void 0 : o.call.apply(o, __spreadArray([MsbSydneyHelper, n, i], e, !1)))) : (Log.Log.apply(Log, __spreadArray([n, "Codex", i, !1, "Namespace", u, "CustomData", JSON.stringify(f)], e, !1)), typeof MsbSydneyHelper != "undefined" && b && n === r.Interaction && ((s = MsbSydneyHelper.compliantLog) === null || s === void 0 ? void 0 : s.call.apply(s, __spreadArray([MsbSydneyHelper, n, i], __assign(__assign({},
2031    e), f), !1))))
2032  }
2033  function us(n) {
2034    return n ? (vf.forEach(function(t) {
2035      var i, r;
2036      n[t] !== undefined && (n[t] = at); ((i = n.CustomData) === null || i === void 0 ? void 0 : i[t]) !== undefined && (n.CustomData[t] = at); ((r = n.EncryptedData) === null || r === void 0 ? void 0 : r[t]) !== undefined && (n.EncryptedData[t] = at)
2037    }), n) : n
2038  }
2039  function yr(n, t, u) {
2040    i(r.Interaction, n, t, u)
2041  }
2042  function fs() {
2043    if (history && (n.enableConvModeSwitchAjax && (_w._currentRoute = {
2044      state: _w.history.state,
2045      href: _w.location.href,
2046      search: _w.location.search
2047    }), sj_be(_w, "popstate",
2048    function(i) {
2049      var f, e, o, s, h, c, l, a, y, p, w, b, r, u;
2050      n.enableBingChatPath = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableBingChatPath, !1);
2051      n.enableConvModeSwitchAjax = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableConvModeSwitchAjax, !1);
2052      var tt = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableNotebookMode, !1),
2053      k = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableBackFromNotebook, !1),
2054      it = tt && k && _G[n.SYD_MODE] === "notebook";
2055      if (v = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.isCopilotChat, !1), n.enableConvModeSwitchAjax) if (r = _w._currentRoute, _w._currentRoute = {
2056        state: _w.history.state,
2057        href: _w.location.href,
2058        search: _w.location.search
2059      },
2060      n.enableBingChatPath) {
2061        if (u = _ge("sb_form_q"), ot((c = _w._currentRoute) === null || c === void 0 ? void 0 : c.search) != (u === null || u === void 0 ? void 0 : u.value) && (_w._isConvAjaxUpdated || ((a = (l = _w._currentRoute) === null || l === void 0 ? void 0 : l.state) === null || a === void 0 ? void 0 : a.ajaxserp) === !0)) {
2062          var d = _w.location,
2063          g = d.href,
2064          nt = g.indexOf("/search");
2065          if (nt >= 0) {
2066            window.location.reload();
2067            return
2068          }
2069        }
2070      } else {
2071        if (it) {
2072          sj_evt.fire("switchToConversation");
2073          sj_evt.fire("showSydFSC", undefined, undefined, undefined, !0);
2074          return
2075        }
2076        if (ot(r === null || r === void 0 ? void 0 : r.search) != ot((y = _w._currentRoute) === null || y === void 0 ? void 0 : y.search) && (_w._isConvAjaxUpdated || ((w = (p = _w._currentRoute) === null || p === void 0 ? void 0 : p.state) === null || w === void 0 ? void 0 : w.ajaxserp) === !0)) {
2077          var d = _w.location,
2078          g = d.href,
2079          nt = g.indexOf("/search");
2080          if (nt >= 0) {
2081            window.location.reload();
2082            return
2083          }
2084        }
2085      } ((b = i === null || i === void 0 ? void 0 : i.state) === null || b === void 0 ? void 0 : b.inConvMode) ? _G[n.SYD_MODE] == "serp" ? sj_evt.fire("showSydFSC", null, null, !1, !0) : k && _G[n.SYD_PREV_MODE] === "notebook" && sj_evt.fire("showNotebook") : v || !(i === null || i === void 0 ? void 0 : i.state) || i.state.inConvMode || _G[n.SYD_MODE] != "conversation" || (sj_evt.fire("preHideSydFSCByHistory"), sj_evt.fire("hideSydFSC", !0))
2086    }), URLSearchParams)) {
2087      var i = new URLSearchParams(window.location.search);
2088      bi = i.get("showconv") === "1"
2089    }
2090  }
2091  function es(u) {
2092    var f, e, o, s, h, c = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.isNewBingChat, !1),
2093    l = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableDynamicFormCode, !1);
2094    if (n.enableBingChatPath = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableBingChatPath, !1), history) {
2095      if ((bi || c) && ki && u) {
2096        ki = !1;
2097        history.replaceState({
2098          inConvMode: u
2099        },
2100        document.title || "");
2101        n.enableConvModeSwitchAjax = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableConvModeSwitchAjax, !1);
2102        i(r.System, "SydHistory", "replace", {
2103          enableConvModeSwitchAjax: n.enableConvModeSwitchAjax,
2104          showconv: u
2105        });
2106        n.enableConvModeSwitchAjax && (_w._currentRoute = {
2107          state: _w.history.state,
2108          href: _w.location.href,
2109          search: _w.location.search
2110        });
2111        c && (_w._chatRoute = _w.location.pathname);
2112        return
2113      }
2114      wi ? pr(u) : n.enableBingChatPath ? c && l ? sj_evt.bind("ConvModeNavigate",
2115      function a(n) {
2116        var t = n && n.length > 1 ? n[1] : null;
2117        wr(u, t);
2118        sj_evt.unbind("ConvModeNavigate", a)
2119      }) : wr(u, null) : (history.pushState({
2120        inConvMode: u
2121      },
2122      document.title || ""), n.enableConvModeSwitchAjax = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableConvModeSwitchAjax, !1), i(r.System, "SydHistory", "push", {
2123        enableConvModeSwitchAjax: n.enableConvModeSwitchAjax,
2124        showconv: u
2125      }), n.enableConvModeSwitchAjax && (_w._currentRoute = {
2126        state: _w.history.state,
2127        href: _w.location.href,
2128        search: _w.location.search
2129      }))
2130    }
2131  }
2132  function pr(u) {
2133    var f, e = new URL(window.location.href);
2134    e.searchParams.set("showconv", u ? "1": "0");
2135    history.pushState({
2136      inConvMode: u
2137    },
2138    b(u), e);
2139    n.enableConvModeSwitchAjax = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.enableConvModeSwitchAjax, !1);
2140    i(r.System, "SydHistory", "push", {
2141      enableConvModeSwitchAjax: n.enableConvModeSwitchAjax,
2142      showconv: u,
2143      Paramflag: 1
2144    });
2145    n.enableConvModeSwitchAjax && (_w._currentRoute = {
2146      state: _w.history.state,
2147      href: _w.location.href,
2148      search: _w.location.search
2149    })
2150  }
2151  function os() {
2152    var t, n = new URL(window.location.href); ((t = n === null || n === void 0 ? void 0 : n.searchParams) === null || t === void 0 ? void 0 : t.get("showntbk")) || (n.searchParams.append("showntbk", "1"), history.pushState({
2153      inConvMode: !0
2154    },
2155    b(!0), n))
2156  }
2157  function ss() {
2158    var t, n = new URL(window.location.href),
2159    i = (t = n === null || n === void 0 ? void 0 : n.searchParams) === null || t === void 0 ? void 0 : t.get("showntbk");
2160    i === "1" && (n.searchParams["delete"]("showntbk"), history.replaceState({
2161      inConvMode: !0
2162    },
2163    b(!0), n))
2164  }
2165  function wr(u, f) {
2166    var e, o, h = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.isMobileHost, !1);
2167    if (!h) {
2168      var s = _ge("sb_form_q"),
2169      c = _ge("sb_form"),
2170      l = _w._chatRoute || "/chat",
2171      a = u ? l: "/search";
2172      history.pushState({
2173        inConvMode: u
2174      },
2175      b(u), a + "?q=" + encodeURIComponent(f || (s === null || s === void 0 ? void 0 : s.value) || "Bing AI") + hs(c));
2176      n.enableConvModeSwitchAjax = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enableConvModeSwitchAjax, !1);
2177      i(r.System, "SydHistory", "push", {
2178        enableConvModeSwitchAjax: n.enableConvModeSwitchAjax,
2179        showconv: u,
2180        Paramflag: 1
2181      });
2182      n.enableConvModeSwitchAjax && (_w._currentRoute = {
2183        state: _w.history.state,
2184        href: _w.location.href,
2185        search: _w.location.search
2186      })
2187    }
2188  }
2189  function hs(n) {
2190    var r = "",
2191    i, t, u;
2192    if (!n) return r;
2193    for (i = n.getElementsByTagName("input"), t = 0; t < i.length; t++) i[t].type === "hidden" && i[t].name != "form" && (r += "&" + i[t].name + "=" + encodeURIComponent(i[t].value));
2194    return u = _w._ncpformCode || (_w._isConvAutoHide ? "ATCVAJ": "CONVAJ"),
2195    r + "&form=" + u
2196  }
2197  function b(n) {
2198    return y && it ? n ? y: it: document.title
2199  }
2200  function cs(n) {
2201    var i;
2202    y = t((i = _w._sydConvTranslation) === null || i === void 0 ? void 0 : i.pageTitleText, "");
2203    y && it && (document.title = b(n))
2204  }
2205  function ls() {
2206    var t, n; ((t = history === null || history === void 0 ? void 0 : history.state) === null || t === void 0 ? void 0 : t.inConvMode) && (n = _ge("sb_form_q"), n && n.value ? sj_evt.fire("showSydFSC", n.value) : sj_evt.fire("showSydFSC"))
2207  }
2208  function as() {
2209    function w(n) {
2210      if (n && n.length >= 2) {
2211        var t = n[1].waitlist;
2212        t && t == "2" && (CIB.config.features.enableMUIDUserMode = !1, CIB.config.messaging.maxTurnsPerConversation = it, sj_evt.unbind("rewready", w))
2213      }
2214    }
2215    var i, r, u, f, e, o, s, h, c, l, d = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableSydTigerAns, !1),
2216    g = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableSydAjaxReset, !1),
2217    y,
2218    p,
2219    a,
2220    b,
2221    k,
2222    v;
2223    CIB.onModeChanged(function(t) {
2224      switch (t) {
2225      case "conversation":
2226        sj_evt.fire("showSydFSC");
2227        CIB.config.sydney.request.scenario === "SERP" && hr();
2228        break;
2229      case "off-stage":
2230        if (n.ignoreFirstOffStage) {
2231          n.ignoreFirstOffStage = !1;
2232          CIB.showConversation();
2233          break
2234        }
2235        sj_evt.fire("hideSydFSC");
2236        break;
2237      default:
2238        Log.Log("ClientInst", "Codex", "ModeChangeError", !1, "CustomData", JSON.stringify({
2239          mode: t
2240        }))
2241      }
2242    });
2243    if (d && (y = _ge("b_sydTigerCont"), y)) {
2244      p = _d.querySelector("#b_pole #b_sydTigerCont") != null;
2245      CIB.onSerpSlotSuggestionInvoked(function() {
2246        _G[n.SYD_MODE] != "conversation" && (n.LogIntEvent("ConversationViewEnter", p ? "Pole": "RightRail", {
2247          source: "ChatBubble"
2248        }), sj_evt.fire("showSydFSC"))
2249      });
2250      a = _ge("sb_form_q");
2251      a && (CIB.config.sydney.slottedModeTurnIndex = ru() && ((e = (f = (u = CIB === null || CIB === void 0 ? void 0 : CIB.vm) === null || u === void 0 ? void 0 : u.conversation) === null || f === void 0 ? void 0 : f.turns) === null || e === void 0 ? void 0 : e.length) ? Math.max(CIB.vm.conversation.turns.length - 1, 0) : 0, n.lastQuery = a.value.toLowerCase().trim())
2252    }
2253    g && sj_evt.bind("ajax.unload",
2254    function() {
2255      var n, t, i, r, u, f, e, o, s, h, c;
2256      CIB && (c = (t = (n = CIB === null || CIB === void 0 ? void 0 : CIB.config) === null || n === void 0 ? void 0 : n.greeting) === null || t === void 0 ? void 0 : t.shouldSe
2256ndBotGreeting, CIB.config.greeting.shouldSendBotGreeting = !1, (u = (r = (i = CIB === null || CIB === void 0 ? void 0 : CIB.manager) === null || i === void 0 ? void 0 : i.stream) === null || r === void 0 ? void 0 : r.subscription) === null || u === void 0 ? void 0 : u.dispose(), (e = (f = CIB === null || CIB === void 0 ? void 0 : CIB.manager) === null || f === void 0 ? void 0 : f.stream) === null || e === void 0 ? void 0 : e.complete(), (s = (o = CIB === null || CIB === void 0 ? void 0 : CIB.manager) === null || o === void 0 ? void 0 : o.stream) === null || s === void 0 ? void 0 : s.finalizeStreamSubscription(), (h = CIB === null || CIB === void 0 ? void 0 : CIB.manager) === null || h === void 0 ? void 0 : h.resetConversation(), CIB.config.greeting.shouldSendBotGreeting = c)
2257    });
2258    var nt = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.codexMUIDUser, !1),
2259    tt = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableSigninTurnFix, !0),
2260    it = t((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.maxTurnsPerConversation, lt);
2261    if (nt && tt && sj_evt.bind("rewready", w, !0), CIB.onModalVisibilityChanged) CIB.onModalVisibilityChanged(function(n) {
2262      var t = _ge("b_header");
2263      t && (n ? Lib.CssClass.add(t, pi) : Lib.CssClass.remove(t, pi))
2264    });
2265    b = t((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.enableThreads, !1);
2266    k = t((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.isAccountLinkedWithActiveAAD, !1); ! b && k && (v = _qs("body"), v && Lib.CssClass.add(v, yf))
2267  }
2268  function vs() {
2269    var t, i, r, u, f, e, o, s, h, l = (r = (i = (t = CIB === null || CIB === void 0 ? void 0 : CIB.vm) === null || t === void 0 ? void 0 : t.conversation) === null || i === void 0 ? void 0 : i.model) === null || r === void 0 ? void 0 : r.suggestions,
2270    n = document.activeElement,
2271    c;
2272    return ! l || !n || n.nodeName !== "CIB-SERP" ? "": (n = (s = (o = (e = (f = (u = n === null || n === void 0 ? void 0 : n.shadowRoot) === null || u === void 0 ? void 0 : u.activeElement) === null || f === void 0 ? void 0 : f.shadowRoot) === null || e === void 0 ? void 0 : e.activeElement) === null || o === void 0 ? void 0 : o.shadowRoot) === null || s === void 0 ? void 0 : s.activeElement, !n || n.nodeName !== "CIB-SUGGESTION-ITEM") ? "": (n = (h = n === null || n === void 0 ? void 0 : n.shadowRoot) === null || h === void 0 ? void 0 : h.activeElement, !n || n.nodeName !== "BUTTON" || !n.textContent) ? "": (c = n.textContent.trim(), l.find(function(n) {
2273      return n.text.trim() === c
2274    })) ? c: ""
2275  }
2276  function gt(n) {
2277    var t = _ge(n);
2278    t && t.parentElement && t.parentElement.removeChild(t)
2279  }
2280  function ys(n) {
2281    CIB.processCachedResponse(n)
2282  }
2283  function br(n, t, i, r, u, f, e, o) {
2284    n === void 0 && (n = "");
2285    t === void 0 && (t = "");
2286    i === void 0 && (i = "");
2287    r === void 0 && (r = "");
2288    u === void 0 && (u = !1);
2289    f === void 0 && (f = !1);
2290    e === void 0 && (e = !1);
2291    o === void 0 && (o = !0);
2292    sj_evt.fire("showSydFSC", n, t, r, u, i, f, e, !1, !1, o)
2293  }
2294  function ot(n) {
2295    var r = new RegExp("[?&]{1}q=([^&]+)"),
2296    t = n.match(r),
2297    i = t ? t[1] : null;
2298    return i ? decodeURIComponent(i.replace("+", " ")) : ""
2299  }
2300  function k() {
2301    var i, r, u, e = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.isSapphireClient, !1),
2302    f,
2303    n;
2304    return e ? ot(_w.location.search) : (f = typeof sj_b != "undefined" && sj_b != null ? sj_b: _d.body, n = f.querySelectorAll("textarea.b_searchbox, input.b_searchbox:not(#uaseabox)"), !n || n.length <= 0) ? "": (u = (r = n[0]) === null || r === void 0 ? void 0 : r.getAttribute("value")) !== null && u !== void 0 ? u: ""
2305  }
2306  function ps() {
2307    var t = new URLSearchParams(_w.location.search),
2308    i = t.get(ei);
2309    i && (n.lastQuery = k().toLowerCase().trim())
2310  }
2311  function kr(n, t, i, r, u, f, e) {
2312    var s, o, h;
2313    t === void 0 && (t = !1);
2314    i === void 0 && (i = "");
2315    r === void 0 && (r = "");
2316    u === void 0 && (u = !1);
2317    f === void 0 && (f = !1);
2318    e === void 0 && (e = !0);
2319    s = "";
2320    t && (s = k());
2321    o = i;
2322    o || (h = _d.querySelector(".b_ans #b_wpt_data"), h && (o = h.getAttribute("data-sydctx")));
2323    br(n, o, s, r, !1, u, f, e)
2324  }
2325  function ws(n, t, i) {
2326    n === void 0 && (n = "");
2327    t === void 0 && (t = "");
2328    i === void 0 && (i = !0);
2329    var r = k();
2330    kr(r, !1, n, t, !1, !0, i)
2331  }
2332  function bs(t) {
2333    n.isSydFSCEligible = t
2334  }
2335  function ks(n) {
2336    for (var i = [], t = 1; t < arguments.length; t++) i[t - 1] = arguments[t]
2337  }
2338  function ds() {
2339    sj_evt.fire("clarity.trigger", "cibChat")
2340  }
2341  function gs(n, t, i) {
2342    return ! n || t && (!i || i.toLowerCase().trim() !== k().toLowerCase().trim())
2343  }
2344  function nh(t, i) {
2345    var l, a, v, y, p, w, b, k, it, o, d, u, e, s, tt, ht, h, ct, r, c, lt, at, vt, yt;
2346    i === void 0 && (i = !1);
2347    it = n.getConfigOrDefault((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.enableSydCarouselHistory, !1);
2348    dr();
2349    var f = sj_ce("div", "b_metaCont"),
2350    rt = sj_ce("div", "b_metaCont_Title"),
2351    pt = n.getConfigOrDefault((a = _w._sydConvTranslation) === null || a === void 0 ? void 0 : a.sydneyCarou
2351selTitle, "");
2352    rt.textContent = pt;
2353    f.appendChild(rt);
2354    o = sj_ce("div", "b_meta_bot");
2355    f.appendChild(o);
2356    d = sj_ce("div", "b_metaChat");
2357    u = sj_ce("div", "b_metaCont_PillCont", "b_meta_hideEx");
2358    i ? u.appendChild(d) : o.appendChild(d);
2359    o.appendChild(u);
2360    var ut = n.getConfigOrDefault((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.carouselQueries, ""),
2361    wt = n.getConfigOrDefault((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.sydCarPropQuery, !1),
2362    ft = ut ? ut.split(",") : null,
2363    g = ft ? ft: CIB.vm.conversation.model.messages.filter(function(n) {
2364      return n.type === "meta" && n.text && n.text != "Generating answers for you..."
2365    }).map(function(n) {
2366      var i, r, t = (r = (i = n.text) === null || i === void 0 ? void 0 : i.split("`")) !== null && r !== void 0 ? r: [];
2367      return t.length == 1 ? t[0] : t.length == 3 ? t[1] : ""
2368    }).filter(function(n) {
2369      return n
2370    }),
2371    et = 0,
2372    bt = i ? _w.innerWidth - ii - du: ku,
2373    kt = _w.innerWidth - ii - ri,
2374    ot = !i,
2375    st = bt - ri,
2376    dt = CIB.vm.conversation.model._id,
2377    nt = !0;
2378    for (e = g.length - 1; e >= 0; e--) s = g[e],
2379    nt && (tt = th(s) + 2 * gu + nf, et + tt < st ? et += tt: ot ? (nt = !1, ht = e + 1, h = sj_ce("div", "b_meta_exp", "b_metaCont_Pill"), h.innerText = "+" + ht.toString(), sj_be(h, "click",
2380    function() {
2381      Lib.CssClass.add(u, "b_metaExpanded")
2382    }), u.append(h)) : (st = kt, ot = !0)),
2383    ct = "cdxche",
2384    r = sj_ce("a", null, "b_metaCont_Pill" + (nt ? "": " b_hide")),
2385    r.href = _w.location.origin + _w.location.pathname + "?q=" + s + "&form=" + ct,
2386    it && (r.href = r.href + "&convid=" + dt),
2387    wt && (r.href = r.href + "&features=sydcarousel,sydcpropq"),
2388    r.textContent = s,
2389    r.target = "_blank",
2390    sj_be(r, "click",
2391    function(t) {
2392      var r = _ge("CodexCarouselInstLink"),
2393      i;
2394      _w.si_ct && _w.si_ct(r);
2395      i = t === null || t === void 0 ? void 0 : t.target;
2396      n.LogIntEvent("QueryCarouselClick", "QueryCarousel", {
2397        query: i === null || i === void 0 ? void 0 : i.textContent
2398      })
2399    }),
2400    u.appendChild(r);
2401    c = sj_ce("div", "b_meta_col", "b_metaCont_Pill b_hide");
2402    c.innerText = n.getConfigOrDefault((p = _w._sydConvTranslation) === null || p === void 0 ? void 0 : p.sydneyCarouselCollapse, "Collapse");
2403    sj_be(c, "click",
2404    function() {
2405      Lib.CssClass.remove(u, "b_metaExpanded")
2406    });
2407    u.append(c);
2408    g.length > 0 && (lt = n.getConfigOrDefault((w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.suppressAlsoTryWhenEnableSydCarousel, !1), lt && gt("b_alsotry"), at = n.getConfigOrDefault((b = _w._sydConvConfig) === null || b === void 0 ? void 0 : b.suppressPoleRSWhenEnableSydCarousel, !1), at && gt("brspole"), vt = n.getConfigOrDefault((k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.suppressPoleRecommendedSearchWhenEnableSydCarousel, !1), vt && gt("polerecommendedsearch"), t.children.length > 0 ? (yt = _w.getComputedStyle(t, null), yt.paddingLeft == "0px" && Lib.CssClass.add(f, "b_metaPadding"), t.insertBefore(f, t.children[0])) : t.appendChild(f), sj_evt.fire(uf))
2409  }
2410  function th(n) {
2411    var i = sj_ce("canvas"),
2412    t = i.getContext("2d");
2413    return t.font = "14px Roboto",
2414    t.measureText(n).width
2415  }
2416  function dr() {
2417    var n = _ge("b_metaCont");
2418    n && n.parentElement && n.parentElement.removeChild(n)
2419  }
2420  function ih() {
2421    var n, t, i; ((t = (n = CIB.config) === null || n === void 0 ? void 0 : n.knowledgeCards) === null || t === void 0 ? void 0 : t.query) && (CIB.config.knowledgeCards.query.IG = _G.IG, CIB.config.knowledgeCards.query.IID = (i = _ge("b_sydConvCont")) === null || i === void 0 ? void 0 : i.getAttribute("_iid"))
2422  }
2423  function ni(n, i, r) {
2424    var f, e, o, s, h, c, l, a, v, y, p, w = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.disable2TSearchHistory, !1),
2425    k = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enable2TTest, !1),
2426    b = t((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.enable2TResizeUpdate, !1),
2427    u = t((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.isMobileHost, !1); ((c = (h = CIB === null || CIB === void 0 ? void 0 : CIB.config) === null || h === void 0 ? void 0 : h.answers) === null || c === void 0 ? void 0 : c.query) && (CIB.config.answers.query.IG = _G.IG, CIB.config.answers.query.IID = (l = _ge("b_sydConvCont")) === null || l === void 0 ? void 0 : l.getAttribute("_iid"), 
2427CIB.config.answers.query.cw = n, CIB.config.answers.query.ch = i, w && (CIB.config.answers.query.dissrchswrite = "1"), b && sj_be(_w, "resize",
2428    function() {
2429      CIB.config.answers.query.cw = ht(u);
2430      CIB.config.answers.query.ch = st(u)
2431    })); ((v = (a = CIB === null || CIB === void 0 ? void 0 : CIB.config) === null || a === void 0 ? void 0 : a.ads) === null || v === void 0 ? void 0 : v.query) && (CIB.config.ads.query.IG = _G.IG, CIB.config.ads.query.IID = r ? (y = _ge("CodexAdsInstLink")) === null || y === void 0 ? void 0 : y.getAttribute("_iid") : (p = _ge("b_sydConvCont")) === null || p === void 0 ? void 0 : p.getAttribute("_iid"), CIB.config.ads.query.cw = n, CIB.config.ads.query.ch = i, CIB.config.ads.query.form = "codexx", w && (CIB.config.ads.query.dissrchswrite = "1"), b && sj_be(_w, "resize",
2432    function() {
2433      CIB.config.ads.query.cw = ht(u);
2434      CIB.config.ads.query.ch = st(u)
2435    }));
2436    k && SydneyTestHelper.set2TTestConfigs()
2437  }
2438  function rh(n, t) {
2439    var i = ht(n),
2440    r = st(n);
2441    if (n) try {
2442      ni(i, r, t)
2443    } catch(u) {
2444      Log.Log("CI.Error", "SydneyMobile", "ClientObserver not loaded")
2445    } else ni(i, r, t)
2446  }
2447  function st(n) {
2448    var i, r = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enable2TQueryConfigsOnSerpLoad, !1);
2449    return n ? ClientObserver ? ClientObserver.getBrowserHeight() : er() : r ? ClientObserver ? ClientObserver.getBrowserHeight() : Math.round(_d.documentElement.clientHeight || _w.innerHeight) : ClientObserver.getBrowserHeight()
2450  }
2451  function ht(i) {
2452    var r, f = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enable2TQueryConfigsOnSerpLoad, !1),
2453    u;
2454    return i ? (u = ClientObserver ? ClientObserver.getBrowserWidth() : fr(), u - n.padding2TMobile < n.MIN_WIDTH_MOBILE ? n.MIN_WIDTH_MOBILE: u - n.padding2TMobile) : f ? ClientObserver ? ClientObserver.getBrowserWidth() : Math.round(_d.documentElement.clientWidth || _w.innerWidth) : ClientObserver.getBrowserWidth()
2455  }
2456  function gr(n) {
2457    var i, r, u, f, e;
2458    n === void 0 && (n = {
2459      autoSubmit: !1
2460    });
2461    r = nu();
2462    r && CIB.addMessageWithData && (u = t( !! ((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.himgdirmsg), !0), f = decodeURI(r), typeof SydneyImageKnowledgeTestUtils != "undefined" && (f = SydneyImageKnowledgeTestUtils.prepareMockedImageUrl()), e = [{
2463      type: "url",
2464      data: f
2465    }], n.autoSubmit && !!n.isFirstMessage && !!n.query && CIB.sendSearchQueryWithData ? CIB.sendSearchQueryWithData(n.query, {
2466      images: e
2467    },
2468    {
2469      hideImageInUserMessage: u
2470    }) : CIB.addMessageWithData({
2471      text: n.query || "",
2472      images: e
2473    },
2474    n.autoSubmit, "", {
2475      hideImageInUserMessage: u
2476    }))
2477  }
2478  function uh(u, f, e, o, s, h) {
2479    var v, y, p, w, b, k, d, g, nt, tt, it, rt, ut, c, l, ft, a, ot, st;
2480    if (s === void 0 && (s = !1), h === void 0 && (h = !0), rt = t((v = _w._sydConvConfig) === null || v === void 0 ? void 0 : v.enableSydContext, !1), ut = t((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enableSQMsg, !1), n.enableConvModeSwitchAjax = t((p = _w._sydConvConfig) === null || p === void 0 ? void 0 : p.enableConvModeSwitchAjax, !1), i(r.System, "TrySendingFirstQueryToChat", "SerpToChatTransition", {}), !iu(u, s)) return ! 1;
2481    if (o && n.enableConvModeSwitchAjax) {
2482      if (n.isSmoothConvSwitchUpdatedPage()) return ! 1;
2483      try {
2484        if (c = CIB.vm.conversation.model.messages.filter(function(n) {
2485          return n.type === "meta" && n.text != "Generating answers for you..." || n.type === "text" && n.author === "user"
2486        }), c && c.length > 0 && (l = c[c.length - 1].text.split("`"), ft = l.length == 1 ? l[0] : l.length == 3 ? l[1] : "", ft.toLowerCase() == u.toLowerCase())) return ! 1
2487      } catch(yt) {}
2488    }
2489    a = [];
2490    e && a.push({
2491      author: "user",
2492      text: e
2493    });
2494    f && a.push({
2495      author: "bot",
2496      text: f
2497    });
2498    rt && a.length != 0 && CIB.registerContext(a);
2499    var ht = (b = (w = _w._sydConvConfig) === null || w === void 0 ? void 0 : w.enableSunoWelcomeMessage) !== null && b !== void 0 ? b: !1,
2500    ct = (d = (k = _w._sydConvConfig) === null || k === void 0 ? void 0 : k.enableSunoUpsell) !== null && d !== void 0 ? d: !1,
2501    lt = (nt = (g = _w._sydConvConfig) === null || g === void 0 ? void 0 : g.isMSAAuthenticated) !== null && nt !== void 0 ? nt: !1,
2502    et = n.getConfigOrDefault((tt = _w._sydConvConfig) === null || tt === void 0 ? void 0 : tt.enableScrollMsgTextMessage, !1),
2503    at = new URLSearchParams(_w === null || _w === void 0 ? void 0 : _w.location.search),
2504    vt = at.get("enablesuno") === "1";
2505    return ct && ht && lt && vt && (!CIB.manager.conversation._lastMessage || CIB.manager.conversation._lastMessage.author === "bot") && !CIB.manager.conversation.messages.filter(function(n) {
2506      return n.author === "user"
2507    }).length ? (u = t((it = _w._sydConvTranslation) === null || it === void 0 ? void 0 : it.sunoCachedMessage, u), CIB.addMessage(u)) : ut && o && (!et || h) && (!CIB.manager.conversation._lastMessage || CIB.manager.conversation._lastMessage.author === "bot") && !CIB.manager.conversation.messages.filter(function(n) {
2508      return n.author === "user"
2509    }).length ? tu(u, !0) : (i(r.Interaction, "TranistionToChatWithQuery", "SerpToChatTransition", {}), et && !h && (ot = typeof sessionStorage != "undefined", st = "isMessageIntentional", ot && (sessionStorage === null || sessionStorage === void 0 ? void 0 : sessionStorage.setItem(st, JSON.stringify(!1)))), tu(u, !1)),
2510    n.lastQuery = u,
2511    n.firstQuery.length == 0 && (n.firstQuery = u),
2512    !0
2513  }
2514  function fh() {
2515    return CIB.config.features.enablePartnerVisualSearchUpload && CIB.config.visualSearch.sendPartnerImageUrlDirectlyToBot
2516  }
2517  function nu() {
2518    var n, i = new URLSearchParams(_w.location.search),
2519    t = (n = i.get(ti)) !== null && n !== void 0 ? n: typeof SydneyTestHelper != "undefined" ? SydneyTestHelper.getParamFromUrl(ti) : null;
2520    return t !== null && t !== void 0 ? t: undefined
2521  }
2522  function eh() {
2523    return {
2524      imageUrl: nu()
2525    }
2526  }
2527  function tu(n, t) {
2528    if (fh()) {
2529      var i = eh();
2530      if (i.imageUrl) {
2531        gr({
2532          query: n,
2533          isFirstMessage: t,
2534          autoSubmit: !0
2535        });
2536        return
2537      }
2538    }
2539    t ? CIB.sendSearchQuery(n) : CIB.addMessage(n)
2540  }
2541  function iu(n, u) {
2542    var f, e, o, s, h, c;
2543    return oh(n) || sh() ? !1 : (o = ft("showconv"), s = ft("sendquery"), o === "1" && s === "1" || u) ? !0 : o === "1" && s !== "1" ? !1 : (h = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.initialShowConvPresent, !1), c = t((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.disableChatQueryForShowConv, !1), h && i(r.System, "InitialShowConvPresent", "SerpToChatTransition", "1"), c && h) ? !1 : !0
2544  }
2545  function oh(t) {
2546    return ! t || t == n.lastQuery || t == n.firstQuery
2547  }
2548  function sh() {
2549    var n, i, r, u, f = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.bypassConsentCheck, !1),
2550    e = t((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.enableCodexMuidConsentTop, !1),
2551    o = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableCodexMuidConsentExplicit, !1),
2552    s = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableCodexMuidConsentImplicit, !1),
2553    h = CIB.vm.conversation.model.messages.filter(function(n) {
2554      return n.author == "user"
2555    }).length,
2556    c = e || o || s;
2557    return c && !vt && !cr() && !(f || h < 1)
2558  }
2559  function hh(n) {
2560    var i = n.dataset.codexads,
2561    r, t;
2562    return i ? (r = n.querySelector(".sb_add > h2 > a"), t = JSON.parse(i), r && (t === null || t === void 0 ? void 0 : t.length) > 0 && (t[0].kappns = r.getAttribute("h")), i = JSON.stringify(t), i ? i: "") : ""
2563  }
2564  function ct(n, t, i) {
2565    return i === void 0 && (i = "POST"),
2566    new Promise(function(r, u) {
2567      var f = sj_gx();
2568      f.onreadystatechange = function() {
2569        f.readyState === 4 && (f.status === 200 ? r(f) : u(f))
2570      };
2571      f.onerror = function() {
2572        u(f)
2573      };
2574      f.open(i, n, !0);
2575      f.setRequestHeader("content-type", "application/json");
2576      f.send(t)
2577    })
2578  }
2579  function ch(n) {
2580    return ct(n, "", "GET").then(function(n) {
2581      return Promise.resolve(JSON.parse(n.response))
2582    })["catch"](function(n) {
2583      return Promise.reject(n)
2584    })
2585  }
2586  function lh(n) {
2587    var u, f, i, r;
2588    return n ? (i = t((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.tigerEnhancedPromptTemplate, ""), !i) ? n: (i = i.replace("{0}", n), r = t((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.language, ""), r && r.indexOf("English") < 0 && (i += " Respond in language " + r), i) : n
2589  }
2590  function ru() {
2591    var n, i, r, u = new URLSearchParams(_w === null || _w === void 0 ? void 0 : _w.location.search),
2592    f = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableDynamicFormCode, !1),
2593    e = f ? !!_w._ncpformCode: ((i = u.get("form")) === null || i === void 0 ? void 0 : i.toLowerCase()) === "convaj" || ((r = u.get("form")) === null || r === void 0 ? void 0 : r.toLowerCase()) === "atcvaj";
2594    return u.has("form") && e && _w._isConvAjaxUpdated
2595  }
2596  function ah() {
2597    var n = _ge("noSerp");
2598    return n && Lib.CssClass.contains(n, "initSerp")
2599  }
2600  function vh() {
2601    var n, t, i = (t = (n = _d.querySelector("cib-serp")) === null || n === void 0 ? void 0 : n.shadowRoot) === null || t === void 0 ? void 0 : t.querySelector("cib-background");
2602    i && (i.style.height = "100%", i.style.width = "100%")
2603  }
2604  function yh() {
2605    var n, t, i, r, u, f, e = (f = (u = (r = (i = (t = (n = _d.querySelector("cib-serp")) === null || n === void 0 ? void 0 : n.shadowRoot) === null || t === void 0 ? void 0 : t.querySelector("cib-conversation")) === null || i === void 0 ? void 0 : i.shadowRoot) === null || r === void 0 ? void 0 : r.querySelector("cib-welcome-container")) === null || u === void 0 ? void 0 : u.shadowRoot) === null || f === void 0 ? void 0 : f.querySelector(".muid-upsell");
2606    e && (e.style.display = "none")
2607  }
2608  function ph() {
2609    var t, i, n = (i = (t = _d.querySelector("cib-serp")) === null || t === void 0 ? void 0 : t.shadowRoot) === null || i === void 0 ? void 0 : i.querySelector("cib-conversation"),
2610    r,
2611    u; (n === null || n === void 0 ? void 0 : n.shadowRoot) && (r = n.shadowRoot.querySelector(".scroller"), r && (u = r.querySelector(".fade.top"), u && (u.style.display = "none")))
2612  }
2613  function wh() {
2614    var r, i, u;
2615    pt = __spreadArray([], CIB.config.sydney.request.optionsSets, !0);
2616    i = n.getAllowedToneOptionsSets(n.PRECISE_TONE);
2617    u = t((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.threadsAutoSaveOptionset, "autosave");
2618    i = i.filter(function(n) {
2619      return n !== u
2620    });
2621    tr.forEach(function(t) {
2622      n.addOptionSet(i, t)
2623    });
2624    CIB.config.sydney.request.optionsSets = i;
2625    CIB.showNotebook && CIB.showNotebook();
2626    _G[n.SYD_PREV_MODE] = _G[n.SYD_MODE];
2627    _G[n.SYD_MODE] = "notebook"
2628  }
2629  function bh() {
2630    CIB.config.sydney.request.optionsSets = __spreadArray([], pt, !0);
2631    var t = n.getAllowedToneOptionsSets(CIB.responseTone);
2632    CIB.config.sydney.request.optionsSets = t
2633  }
2634  function kh() {
2635    var n;
2636    return __awaiter(this, void 0, void 0,
2637    function() {
2638      var i, u, r;
2639      return __generator(this,
2640      function(f) {
2641        switch (f.label) {
2642        case 0:
2643          return t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enable1pGptsApi, !1) ? (r = {},
2644          [4, FreeSydneyHelper.get1pGptsFromApi()]) : [3, 2];
2645        case 1:
2646          return i = (r.freeSydneyPersonaModels = f.sent(), r),
2647          [3, 4];
2648        case 2:
2649          return [4, tc()];
2650        case 3:
2651          u = f.sent();
2652          i = {
2653            freeSydneyPersonaModels: __spreadArray(__spreadArray([], FreeSydneyHelper.getFreeSydneyPersonasData().freeSydneyPersonaModels, !0), u, !0)
2654          };
2655          f.label = 4;
2656        case 4:
2657          return CIB.setFreeSydneyData && CIB.setFreeSydneyData(i),
2658          [2]
2659        }
2660      })
2661    })
2662  }
2663  function dh() {
2664    var n = FreeSydneyHelper.getFreeSydneyPersonasData();
2665    return n && n.freeSydneyPersonaModels.length > 0 ? n.freeSydneyPersonaModels[0] : null
2666  }
2667  function gh(n, t, r) {
2668    if (r === void 0 && (r = !1), CIB === null) return i("AdsAjax", "BingChatAds", "InjectionFailed", {
2669      Reason: "CIB element not found"
2670    }),
2671    !1;
2672    var u = _ge(wf),
2673    f = r ? _qs(gf) : _qs(kf);
2674    return u === null || f === null ? (i("AdsAjax", "BingChatAds", "InjectionFailed", {
2675      Reason: "External content wrapper or cib-serp wrapper not found"
2676    }), !1) : nc(n, f, u, t)
2677  }
2678  function uu(n) {
2679    if (!n) return null;
2680    for (var t = n.parentNode; t;) {
2681      if (t instanceof ShadowRoot) return t;
2682      t = t.parentNode
2683    }
2684    return null
2685  }
2686  function nc(n, t, r, u) {
2687    var a, v, y, p, w, b, g = n === "cib-message" && !!u,
2688    k, d, s, f, e, h, nt, o, c, l, tt;
2689    if (k = g ? (y = (v = uu((a = _w._sydExtResSlots) === null || a === void 0 ? void 0 : a.get(u))) === null || v === void 0 ? void 0 : v.host) !== null && y !== void 0 ? y: undefined: (p = t === null || t === void 0 ? void 0 : t.shadowRoot) === null || p === void 0 ? void 0 : p.querySelector(n), !k) return i("AdsAjax", "BingChatAds", "InjectionFailed", {
2690      Reason: "Destination element not found"
2691    }),
2692    !1;
2693    for (d = r.getElementsByClassName(bf), s = 0; s < d.length; s++) {
2694      if (f = d[s], e = k, !f) {
2695        i("AdsAjax", "BingChatAds", "InjectionFailed", {
2696          Reason: "Could not parse external content to HTMLElement"
2697        });
2698        continue
2699      }
2700      if (h = f.getAttribute("slot"), h === null) {
2701        i("AdsAjax", "BingChatAds", "InjectionFailed", {
2702          Reason: "Slot name on injected element is null"
2703        });
2704        continue
2705      }
2706      for (nt = 1, o = h; e.tagName.toLowerCase() !== df;) c = sj_ce("slot"),
2707      c.setAttribute("slot", o),
2708      o = "".concat(h, "-").concat(nt++),
2709      c.setAttribute("name", o),
2710      e.appendChild(c),
2711      e = (b = (w = uu(e)) === null || w === void 0 ? void 0 : w.host) !== null && b !== void 0 ? b: t;
2712      f.setAttribute("slot", o);
2713      t.appendChild(f);
2714      f.classList.remove(ne);
2715      l = hh(f);
2716      f.removeAttribute("data-codexads");
2717      tt = f.dataset.query;
2718      f.removeAttribute("data-query");
2719      g ? _w.postMessage({
2720        type: "AnswerCardDimensionUpdate",
2721        data: {
2722          type: "ADS",
2723          iframeid: u,
2724          height: f.clientHeight,
2725          width: f.clientWidth,
2726          hasCarousel: !1,
2727          isFullWidth: !1,
2728          query: tt,
2729          context: l ? l: {}
2730        }
2731      },
2732      "*") : _w.postMessage({
2733        eventId: te,
2734        adsContext: l,
2735        width: f.clientWidth,
2736        height: f.clientHeight
2737      },
2738      "*")
2739    }
2740    return ! 0
2741  }
2742  function tc() {
2743    var n;
2744    return __awaiter(this, void 0, void 0,
2745    function() {
2746      var i, r, u, f;
2747      return __generator(this,
2748      function(e) {
2749        switch (e.label) {
2750        case 0:
2751          return (i = t((n = _w._sydConvConfig) === null || n === void 0 ? void 0 : n.enableAIPersonasForDesktop, !1), !(i && typeof PersonaGPTHandler != "undefined" && PersonaGPTHandler)) ? [3, 2] : (r = _w._sydConvTranslation, [4, PersonaGPTHandler.getPersonas()]);
2752        case 1:
2753          return u = e.sent(),
2754          f = u.map(function(n) {
2755            return {
2756              id: n.topic,
2757              type: n.topic,
2758              name: n.personaTitle,
2759              displayName: n.personaTitle,
2760              icon: n.smallImageUrl,
2761              avatarImageUrl: n.avatarImageUrl,
2762              description: n.shortDescription,
2763              extraOptionsSets: n.optionsSets,
2764              supportedTones: n.supportedTones,
2765              defaultTone: n.defaultTone,
2766              showThreads: !1,
2767              welcomeHeader: n.description,
2768              welcomeTiles: n.suggestions.map(function(n) {
2769                return {
2770                  category: "chat",
2771                  text: n.text,
2772                  title: r.freeSydneyWelcomeTilesChatTitle,
2773                  size: "medium"
2774                }
2775              })
2776            }
2777          }),
2778          [2, f];
2779        case 2:
2780          return [2, []]
2781        }
2782      })
2783    })
2784  }
2785  var fu = "sydneyOptionsSets",
2786  eu = "codexFeatures",
2787  ou = "speechSrOptions",
2788  ti = "imgUrl",
2789  su = "https://bing.com/new",
2790  ei, d;
2791  n.CREATIVE_TONE = "Creative";
2792  n.BALANCED_TONE = "Balanced";
2793  n.PRECISE_TONE = "Precise";
2794  var lt = 5,
2795  hu = 2,
2796  c = 2e3,
2797  cu = 1e6,
2798  lu = 15e6,
2799  au = 1e7,
2800  vu = 300,
2801  yu = 5,
2802  pu = 1,
2803  wu = [],
2804  bu = [],
2805  ku = 750,
2806  ii = 48,
2807  du = 42,
2808  gu = 16,
2809  nf = 6,
2810  ri = 60,
2811  ui = 66,
2812  tf = 1e3,
2813  rf = "so_bing_chat",
2814  fi = "seltone",
2815  uf = "SydAddCarousel";
2816  n.SYD_MODE = "SydMode";
2817  n.SYD_PREV_MODE = "SydPrevMode";
2818  n.lastQuery = (n === null || n === void 0 ? void 0 : n.lastQuery) ? n === null || n === void 0 ? void 0 : n.lastQuery: "";
2819  n.firstQuery = "";
2820  n.ignoreFirstOffStage = !1;
2821  n.shouldResetBotGreeting = !0;
2822  n.shouldForceSendBotGreeting = !1;
2823  ei = "shareId";
2824  n.userCook = "SRCHHPGUSR";
2825  n.toneCook = "CDXTC";
2826  n.toneCrumb = "cdxtone";
2827  n.toneOptsCrumb = "cdxtoneopts";
2828  d = "InitialTone";
2829  n.hasSetToneCrumb = "cdxts";
2830  var ff = "crtone",
2831  ef = "cdxwinturn",
2832  sf = "ADLT",
2833  g = "MUID",
2834  oi = "CMUID",
2835  hf = "BCTTSOS",
2836  si = "VSRO",
2837  cf = "VSVN",
2838  hi = "BFBUSR",
2839  lf = "CMUIDBCE",
2840  ci = "CIBV",
2841  li = "BCML",
2842  ai = "BCMLNCount",
2843  nt = !1,
2844  v = !1,
2845  vi = "BCRO",
2846  yi = "BCRONCount",
2847  tt = !1,
2848  af = "BCSRLANG",
2849  vf = ["chips", "query", "searchQuery", "text"],
2850  at = "<stripped/>",
2851  pi = "cdxModalVisible",
2852  yf = "aad",
2853  y = "",
2854  it = document.title || "",
2855  wi = !1,
2856  bi = !1,
2857  ki = !0,
2858  p = oi,
2859  w = !1,
2860  vt = !1,
2861  pf = 3,
2862  r = {
2863    System: "SystemEvent",
2864    Interaction: "InteractionEvent"
2865  },
2866  u = {
2867    Creative: "h3imaginative",
2868    Balanced: "harmonyv3",
2869    Precise: "h3precise"
2870  },
2871  rt = {
2872    c: "Creative",
2873    b: "Balanced",
2874    p: "Precise"
2875  },
2876  e = {
2877    Creative: [],
2878    Balanced: [],
2879    Precise: []
2880  },
2881  l = "",
2882  di = !1,
2883  s = !1,
2884  gi = !1,
2885  yt = -1,
2886  nr = "",
2887  pt,
2888  tr = [],
2889  ir = "",
2890  ut = {
2891    Off: "1",
2892    Demote: "2",
2893    Strict: "4",
2894    KidSafe: "8",
2895    Stricter: "16",
2896    AdultOnly: "32"
2897  },
2898  wf = "b_chat_external_content",
2899  bf = "b_cib_ext",
2900  kf = 'cib-serp[serp-slot="none"]',
2901  df = "cib-serp",
2902  gf = 'cib-serp[serp-slot="right-rail"]',
2903  ne = "b_hide",
2904  te = "adInjectionComplete";
2905  n.isSydFSCEligible = n.isSydFSCEligible ? n.isSydFSCEligible: !1;
2906  n.isConfigSet = !1;
2907  n.enableCreatorSendQueryWhenShowConvQuery = !0;
2908  n.padding2TMobile = 92;
2909  n.MIN_WIDTH_MOBILE = 288;
2910  n.enableConvModeSwitchAjax = !1;
2911  n.enableBingChatPath = !1;
2912  n.setConfigs = ie;
2913  n.setTestConfigs = rr;
2914  n.setColorScheme = fe;
2915  n.getMobileBrowserWidth = fr;
2916  n.getMobileBrowserHeight = er;
2917  n.setConvTranslationAsync = ee;
2918  n.setTigActiveSuggestionChipText = ho;
2919  n.getTigActiveSuggestionChipText = co;
2920  n.getCookieTone = bt;
2921  n.updateResponseToneAfterSerp = ko;
2922  n.setSpeechLanguageConfig = ar;
2923  n.addOptionSet = f;
2924  n.removeOptionSet = a;
2925  n.getConfigOrDefault = t;
2926  n.getAllowedToneOptionsSets = is;
2927  n.isCookieBannerVisibileOnChatPage = rs;
2928  n.SydLog = i;
2929  n.LogIntEvent = yr;
2930  n.setupHistory = fs;
2931  n.pushSydHistory = es;
2932  n.updateConvFlagInURL = pr;
2933  n.addNotebookFlagInURL = os;
2934  n.deleteNotebookFlagInURL = ss;
2935  n.updateConvPageTitle = cs;
2936  n.checkInitialState = ls;
2937  n.setEventListeners = as;
2938  n.getActiveSuggestionChipText = vs;
2939  n.processCachedResponseUsingCIB = ys;
2940  n.triggerSydFSC = br;
2941  n.getQuery = k;
2942  n.triggerShareFlow = ps;
2943  n.triggerSydFSCWithContext = kr;
2944  n.triggerSydFSCQueryWithContext = ws;
2945  n.setSydFSCEligibleState = bs;
2946  n.sydPayWallTrace = ks;
2947  n.triggerClarity = ds;
2948  n.shouldMove1TAnswers = gs;
2949  n.addCarousel = nh;
2950  n.removeQueries = dr;
2951  n.set2TQueryConfigs = ni;
2952  n.retrieveSydneyFSCClientHeight = st;
2953  n.retrieveSydneyFSCClientWidth = ht;
2954  n.submitVisualSearchImage = gr;
2955  n.sendFirstQuery = uh;
2956  n.shouldSendQuery = iu;
2957  n.createRequest = ct;
2958  n.getJsonData = ch;
2959  n.createIntelligentQuery = lh;
2960  n.isSmoothConvSwitchUpdatedPage = ru;
2961  n.isFirstAjaxSerp = ah;
2962  n.updateChatBackgroundWidth = vh;
2963  n.hideSignInUpsellFor3P = yh;
2964  n.hideTopFade = ph;
2965  n.setNotebookOptions = wh;
2966  n.setDefaultOptions = bh;
2967  n.setFreeSydneyData = kh;
2968  n.getDefaultFreeSydneyData = dh;
2969  n.injectExternalAd = gh;
2970  sj_evt.fire("SydFSCHelperLoaded")
2971})(SydFSCHelper || (SydFSCHelper = {}));
2972
2973var __awaiter = this && this.__awaiter ||
2974function(n, t, i, r) {
2975  function u(n) {
2976    return n instanceof i ? n: new i(function(t) {
2977      t(n)
2978    })
2979  }
2980  return new(i || (i = Promise))(function(i, f) {
2981    function o(n) {
2982      try {
2983        e(r.next(n))
2984      } catch(t) {
2985        f(t)
2986      }
2987    }
2988    function s(n) {
2989      try {
2990        e(r["throw"](n))
2991      } catch(t) {
2992        f(t)
2993      }
2994    }
2995    function e(n) {
2996      n.done ? i(n.value) : u(n.value).then(o, s)
2997    }
2998    e((r = r.apply(n, t || [])).next())
2999  })
3000},
3001__generator = this && this.__generator ||
3002function(n, t) {
3003  function o(n) {
3004    return function(t) {
3005      return s([n, t])
3006    }
3007  }
3008  function s(o) {
3009    if (e) throw new TypeError("Generator is already executing.");
3010    while (f && (f = 0, o[0] && (r = 0)), r) try {
3011      if (e = 1, u && (i = o[0] & 2 ? u["return"] : o[0] ? u["throw"] || ((i = u["return"]) && i.call(u), 0) : u.next) && !(i = i.call(u, o[1])).done) return i; (u = 0, i) && (o = [o[0] & 2, i.value]);
3012      switch (o[0]) {
3013      case 0:
3014      case 1:
3015        i = o;
3016        break;
3017      case 4:
3018        return r.label++,
3019        {
3020          value: o[1],
3021          done: !1
3022        };
3023      case 5:
3024        r.label++;
3025        u = o[1];
3026        o = [0];
3027        continue;
3028      case 7:
3029        o = r.ops.pop();
3030        r.trys.pop();
3031        continue;
3032      default:
3033        if (! (i = r.trys, i = i.length > 0 && i[i.length - 1]) && (o[0] === 6 || o[0] === 2)) {
3034          r = 0;
3035          continue
3036        }
3037        if (o[0] === 3 && (!i || o[1] > i[0] && o[1] < i[3])) {
3038          r.label = o[1];
3039          break
3040        }
3041        if (o[0] === 6 && r.label < i[1]) {
3042          r.label = i[1];
3043          i = o;
3044          break
3045        }
3046        if (i && r.label < i[2]) {
3047          r.label = i[2];
3048          r.ops.push(o);
3049          break
3050        }
3051        i[2] && r.ops.pop();
3052        r.trys.pop();
3053        continue
3054      }
3055      o = t.call(n, r)
3056    } catch(s) {
3057      o = [6, s];
3058      u = 0
3059    } finally {
3060      e = i = 0
3061    }
3062    if (o[0] & 5) throw o[1];
3063    return {
3064      value: o[0] ? o[1] : void 0,
3065      done: !0
3066    }
3067  }
3068  var r = {
3069    label: 0,
3070    sent: function() {
3071      if (i[0] & 1) throw i[1];
3072      return i[1]
3073    },
3074    trys: [],
3075    ops: []
3076  },
3077  e,
3078  u,
3079  i,
3080  f;
3081  return f = {
3082    next: o(0),
3083    "throw": o(1),
3084    "return": o(2)
3085  },
3086  typeof Symbol == "function" && (f[Symbol.iterator] = function() {
3087    return this
3088  }),
3089  f
3090},
3091ChatHomeScreenBase; (function(n) {
3092  function l(n, t) {
3093    return __awaiter(this, void 0, void 0,
3094    function() {
3095      var i;
3096      return __generator(this,
3097      function() {
3098        return n && (i = ge_cl(n, "b_ziTileCont")[0], _w.swtc = function() {
3099          e(i, t);
3100          sj_evt.unbind("showSydFSC", _w.swtc)
3101        },
3102        sj_evt.bind("showSydFSC", _w.swtc, !0)),
3103        [2]
3104      })
3105    })
3106  }
3107  function a(n, t) {
3108    var i, r;
3109    return (t === void 0 && (t = !0), i = _d.getElementById(n), i) ? t ? (r = i.cloneNode(!0), r.id = r.getAttribute("id") + "_", r) : i: null
3110  }
3111  function v(n, t) {
3112    var i; (i = n === null || n === void 0 ? void 0 : n.parentNode) === null || i === void 0 ? void 0 : i.insertBefore(t, n.nextSibling)
3113  }
3114  function y(n, t) {
3115    if (n) {
3116      var i = _d.createElement("slot");
3117      return i.setAttribute("name", n),
3118      t && i.setAttribute("slot", t.getAttribute("name")),
3119      i
3120    }
3121  }
3122  function p(n) {
3123    return n ? n.getAttribute(s) : null
3124  }
3125  function w(n) {
3126    var u, i = (u = _w.location) === null || u === void 0 ? void 0 : u.search,
3127    r,
3128    t,
3129    e;
3130    if ((i === null || i === void 0 ? void 0 : i.length) > 1) {
3131      var o = {
3132        atlahostname: null,
3133        testhooks: null,
3134        uncrunched: null,
3135        darkschemeovr: null,
3136        webthemedark: null
3137      },
3138      f = i.substring(1).split("&");
3139      for (r = 0; r < f.length; r++) t = f[r].split("="),
3140      t.length === 2 && (e = t[0].toLowerCase(), e in o && n.searchParams.append(t[0], t[1]))
3141    }
3142  }
3143  function b(n, t) {
3144    var i, r, u, f = p(t),
3145    e;
3146    f && n.searchParams.append("IID", f);
3147    n.searchParams.append("IG", _G.IG);
3148    e = CIB ? (i = CIB.responseTone) !== null && i !== void 0 ? i: "balanced": SydFSCHelper.getCookieTone();
3149    n.searchParams.append("lang", (u = (r = _G.Lang) === null || r === void 0 ? void 0 : r.split("-")[0]) !== null && u !== void 0 ? u: "en");
3150    n.searchParams.append("region", "*");
3151    n.searchParams.append("tone", e);
3152    n.searchParams.append("version", "2");
3153    w(n)
3154  }
3155  function e(n, t) {
3156    var i, e;
3157    return __awaiter(this, void 0, void 0,
3158    function() {
3159      var l, s;
3160      return __generator(this,
3161      function() {
3162        if (!n) return [2];
3163        l = t !== null && t !== void 0 ? t: h;
3164        s = new URL(l, window.location.origin);
3165        b(s, n);
3166        try { (e = (i = d(s.href, o)) === null || i === void 0 ? void 0 : i.then) === null || e === void 0 ? void 0 : e.call(i,
3167          function(t) {
3168            t.status === 200 ? (sj_appHTML(n, t.responseText), f ? sj_evt.bind("onP1", r, !0) : c || r(), k()) : u(n)
3169          })["catch"](function() {
3170            u(n)
3171          })
3172        } catch(a) {
3173          u(n)
3174        }
3175        return [2]
3176      })
3177    })
3178  }
3179  function r() {
3180    _w.rms && _w.rms.start();
3181    f && sj_evt.unbind("onP1", r)
3182  }
3183  function u() {}
3184  function k() {
3185    sj_evt.fire("lazyLdImg");
3186    sj_evt.fire("loadProgImages");
3187    sj_evt.fire("RMS.LoadImg")
3188  }
3189  function d(n, t) {
3190    return new Promise(function(i, r) {
3191      var u = function(t) {
3192        var f = sj_gx();
3193        f.onreadystatechange = function() {
3194          f.readyState === 4 && (f.status !== 200 && t > 0 && u(t - 1), i(f))
3195        };
3196        f.onerror = function() {
3197          r(f)
3198        };
3199        f.open("GET", n, !0);
3200        f.send()
3201      };
3202      u(t)
3203    })
3204  }
3205  var t, i, o = 2,
3206  s = "data-zi-iid",
3207  h = "turing/api/suggestions/v2/zeroinputstarter",
3208  c = SydFSCHelper.getConfigOrDefault((t = _w._sydConvConfig) === null || t === void 0 ? void 0 : t.disableZIRMSStart, !1),
3209  f = SydFSCHelper.getConfigOrDefault((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.isNewBingChat, !1);
3210  n.setTileContainer = l;
3211  n.getChatScreenContainer = a;
3212  n.insertAfter = v;
3213  n.createSlot = y;
3214  n.fetchContent = e
3215})(ChatHomeScreenBase || (ChatHomeScreenBase = {}));
3216var ChatHomeScreen; (function(n) {
3217  function nt(n) {
3218    var u, f, i = n[1],
3219    r,
3220    e;
3221    i && CIB && (r = (u = i.shadowRoot) === null || u === void 0 ? void 0 : u.querySelector("cib-conversation"), r) && (e = (f = r.shadowRoot) === null || f === void 0 ? void 0 : f.querySelector(l), e) && (t || (t = ChatHomeScreenBase.getChatScreenContainer(y), ChatHomeScreenBase.setTileContainer(t, a)), t && (tt(i), it(e, r, h, c)), w && b && typeof(BceSydneyHelper === null || BceSydneyHelper === void 0 ? void 0 : BceSydneyHelper.appendProtectedHeaderToCibHeader) == "function" && BceSydneyHelper.appendProtectedHeaderToCibHeader(i), g && sj_evt.fire("sp_active", i))
3222  }
3223  function tt(n) {
3224    t.setAttribute("slot", h);
3225    n.appendChild(t)
3226  }
3227  function it(n, t, i, r) {
3228    var u = n.querySelector("slot[name=".concat(r)),
3229    f;
3230    u || (u = ChatHomeScreenBase.createSlot(r), n.prepend(u));
3231    f = n.querySelector("slot[name=".concat(i));
3232    f || (f = ChatHomeScreenBase.createSlot(i, u), t.append(f), t.removeAttribute("empty"))
3233  }
3234  function v(n, t, i) {
3235    var u, f, e, r, o, s;
3236    if ((i === void 0 && (i = 0), !(i > 3)) && (e = (u = n.shadowRoot) === null || u === void 0 ? void 0 : u.querySelector("cib-conversation"), e)) {
3237      if (r = (f = e.shadowRoot) === null || f === void 0 ? void 0 : f.querySelector(l), !r) {
3238        setTimeout(function() {
3239          v(n, t, i + 1)
3240        },
3241        12);
3242        return
3243      }
3244      o = r.querySelector("slot[name=".concat(t));
3245      o || (s = ChatHomeScreenBase.createSlot(t), r.prepend(s))
3246    }
3247  }
3248  function rt(n) {
3249    var t = n[1],
3250    i = n.length > 2 ? n[2] : c;
3251    v(t, i)
3252  }
3253  function ut(n) {
3254    n && (a = n);
3255    sj_evt.bind("renderWsSlot", rt, !0);
3256    sj_evt.bind("cib_init", nt, !0)
3257  }
3258  var i, r, u, f, e, o, s, y = "b_sydWelcomeTemplate",
3259  h = "wlcmCntnr",
3260  c = "wlcmCntnrChld",
3261  p = SydFSCHelper.getConfigOrDefault((i = _w._sydConvConfig) === null || i === void 0 ? void 0 : i.isBingChatForEnterprise, !1),
3262  w = SydFSCHelper.getConfigOrDefault((r = _w._sydConvConfig) === null || r === void 0 ? void 0 : r.enableWelcomeScreenV3, !1),
3263  b = SydFSCHelper.getConfigOrDefault((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.enableBCECarouselProtectedPill, !1),
3264  k = SydFSCHelper.getConfigOrDefault((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.isCopilotChat, !1),
3265  d = SydFSCHelper.getConfigOrDefault(((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableCopilotLayout) || ((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.isCCP), !1),
3266  l = p && !d && !k ? "cib-welcome-container": "#cib-chat-main",
3267  g = SydFSCHelper.getConfigOrDefault((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableSydWelcomeScreenMobileEvents, !1, !0),
3268  a = null,
3269  t;
3270  n.init = ut;
3271  sj_evt.fire("chs_init")
3272})(ChatHomeScreen || (ChatHomeScreen = {}));
3273
3274var GPTHomeScreen; (function(n) {
3275  function ei(n) {
3276    var i, r, t, u, f;
3277    if (n && (t = (i = n.shadowRoot) === null || i === void 0 ? void 0 : i.querySelector("cib-conversation"), t) && (u = (r = t.shadowRoot) === null || r === void 0 ? void 0 : r.querySelector(fi), u) && ti) {
3278      if (ui) CIB.onModeChanging(function(n) {
3279        n !== "conversation" || tt || (SydFSCHelper.setFreeSydneyData(), tt = !0)
3280      });
3281      else SydFSCHelper.setFreeSydneyData();
3282      if (d && (f = oi(), f || (b(n), nt = !0)), CIB === null || CIB === void 0 ? void 0 : CIB.onFreeSydneyPersonaChanged) CIB.onFreeSydneyPersonaChanged(function(i) {
3283        if (d && g && nt && (!i || i.type === "Copilot")) {
3284          g = !1;
3285          return
3286        }
3287        it();
3288        ii && (i && i.id !== "copilot" ? (CIB.config.features.enablePrivacyProtectedConversation || (CIB.config.features.enablePrivacyProtectedConversation = !0), CIB.setPrivacyF
3288orConversation(!0)) : (CIB.config.features.enablePrivacyProtectedConversation = ri, CIB.setPrivacyForConversation(!1)));
3289        i && i.type !== "Copilot" ? rt(n, u, t, i) : b(n)
3290      })
3291    }
3292  }
3293  function it() {
3294    var n, t = document.getElementById("b_sydWelcomeTemplate_");
3295    t && ((n = t.parentNode) === null || n === void 0 ? void 0 : n.removeChild(t))
3296  }
3297  function oi() {
3298    try {
3299      var n = new URLSearchParams(_w.location.search),
3300      t = n.get("gptId");
3301      if (t) return ! 0
3302    } catch(i) {}
3303    return ! 1
3304  }
3305  function b(n) {
3306    sj_evt.fire("cib_init", n);
3307    si();
3308    r && ft(r)
3309  }
3310  function si() {
3311    sj_evt.fire("lazyLdImg");
3312    sj_evt.fire("loadProgImages");
3313    sj_evt.fire("RMS.LoadImg")
3314  }
3315  function rt(n, t, r, u) {
3316    var f, e, o;
3317    u.type !== "Custom" || u.welcomeTiles && ((f = u.welcomeTiles) === null || f === void 0 ? void 0 : f.length) !== 0 || (u.welcomeTiles = FreeSydneyHelper.getDefaultCustomWelcomeTiles());
3318    e = function() {
3319      return u.welcomeTiles
3320    };
3321    o = u.welcomeTiles ?
3322    function() {
3323      return Promise.resolve(u.welcomeTiles)
3324    }: null;
3325    i = li(u);
3326    SydWelcomeScreenBase.setTileContainer(i, !1, o, e);
3327    i && (hi(n), ci(t, r, k, st))
3328  }
3329  function hi(n) {
3330    i.setAttribute("slot", k);
3331    i.id = i.getAttribute("id") + "_";
3332    n.appendChild(i)
3333  }
3334  function ci(n, t, i, r) {
3335    var e = n.querySelector("slot[name=".concat(r)),
3336    u,
3337    f;
3338    e || (u = SydWelcomeScreenBase.createSlot(r), f = SydWelcomeScreenBase.createSlot(i, u), n.prepend(u), t.append(f), t.removeAttribute("empty"))
3339  }
3340  function li(n) {
3341    var o, f = sj_ce(t, et, ot),
3342    u,
3343    i,
3344    c,
3345    l,
3346    a;
3347    f.setAttribute(ht, "2");
3348    var e = sj_ce(t, null, ct),
3349    s = sj_ce(t, null, at),
3350    h = (o = n.type) === null || o === void 0 ? void 0 : o.toLowerCase(),
3351    r = sj_ce(t, null, lt + " " + h);
3352    return r.setAttribute("role", "img"),
3353    r.setAttribute("alt", h),
3354    r.setAttribute("aria-label", h + " Logo"),
3355    r.setAttribute("tab-index", "0"),
3356    u = sj_ce(t, null, vt),
3357    u.innerHTML = ut(n.displayName || n.name),
3358    u.setAttribute("role", "heading"),
3359    u.setAttribute("aria-level", "2"),
3360    i = sj_ce(t, null, yt),
3361    i.innerHTML = ut(n.welcomeHeader || n.description || ""),
3362    i.setAttribute("role", "heading"),
3363    i.setAttribute("aria-level", "2"),
3364    s.appendChild(r),
3365    s.appendChild(u),
3366    e.appendChild(s),
3367    i.innerHTML && e.appendChild(i),
3368    c = n.type !== "Custom" ? bt: n.authorName,
3369    l = sj_ce(t, null, pt),
3370    l.innerHTML = p === null || p === void 0 ? void 0 : p.replace("{0}", c),
3371    e.appendChild(l),
3372    ft(w === null || w === void 0 ? void 0 : w.replace("{0}", c)),
3373    a = sj_ce(t, null, wt),
3374    f.appendChild(e),
3375    f.appendChild(a),
3376    f
3377  }
3378  function ut(n) {
3379    if (n) return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;")
3380  }
3381  function ft(n) {
3382    var u = _d.querySelector("cib-serp"),
3383    t,
3384    i,
3385    f; (u === null || u === void 0 ? void 0 : u.shadowRoot) && (t = u.shadowRoot.querySelector("cib-conversation"), (t === null || t === void 0 ? void 0 : t.shadowRoot) && (i = t.shadowRoot.querySelector("cib-welcome-container"), (i === null || i === void 0 ? void 0 : i.shadowRoot) && (f = i.shadowRoot.querySelector(kt), f && (r || (r = f.innerHTML), f.innerHTML = n))))
3386  }
3387  var u, f, e, o, s, h, c, l, a, v, y, et = "b_sydWelcomeTemplate",
3388  ot = "b_wlcmCont",
3389  t = "div",
3390  k = "wlcmCntnr",
3391  st = "wlcmCntnrChld",
3392  ht = "data-priority",
3393  ct = "b_wlcmHdr",
3394  lt = "b_wlcmPersLogo",
3395  at = "b_wlcmPersLogoCont",
3396  vt = "b_wlcmPersName",
3397  yt = "b_wlcmPersDesc",
3398  pt = "b_wlcmPersAuthorText",
3399  wt = "b_wlcmTileCont",
3400  bt = "Microsoft",
3401  kt = ".preview-container .preview-disclaimer .disclaimer span",
3402  dt = SydFSCHelper.getConfigOrDefault((u = _w._sydConvConfig) === null || u === void 0 ? void 0 : u.isBingChatForEnterprise, !1),
3403  gt = SydFSCHelper.getConfigOrDefault((f = _w._sydConvConfig) === null || f === void 0 ? void 0 : f.isCopilotChat, !1),
3404  ni = SydFSCHelper.getConfigOrDefault(((e = _w._sydConvConfig) === null || e === void 0 ? void 0 : e.enableCopilotLayout) || ((o = _w._sydConvConfig) === null || o === void 0 ? void 0 : o.isCCP), !1),
3405  ti = SydFSCHelper.getConfigOrDefault((s = _w._sydConvConfig) === null || s === void 0 ? void 0 : s.enableFreeSydney, !1),
3406  ii = SydFSCHelper.getConfigOrDefault((h = _w._sydConvConfig) === null || h === void 0 ? void 0 : h.enableFreeSydneyPrivacy, !1),
3407  ri = SydFSCHelper.getConfigOrDefault((c = _w._sydConvConfig) === null || c === void 0 ? void 0 : c.enablePrivacyProtectedConversation, !1),
3408  ui = SydFSCHelper.getConfigOrDefault((l = _w._sydConvConfig) === null || l === void 0 ? void 0 : l.enableDelayGet1PGpts, !1),
3409  fi = dt && !ni && !gt ? "cib-welcome-container": "#cib-chat-main",
3410  p = (a = _w._sydConvTranslation) === null || a === void 0 ? void 0 : a.freeSydneyWelcomeAuthorText,
3411  w = (v = _w._sydConvTranslation) === null || v === void 0 ? void 0 : v.sydneyGptCreatorWelcomeMessage,
3412  d = SydFSCHelper.getConfigOrDefault((y = _w._sydConvConfig) === null || y === void 0 ? void 0 : y.enable1pGPTPreLoadForCopilot, !1),
3413  g = !0,
3414  nt = !1,
3415  tt = !1,
3416  i,
3417  r;
3418  n.attachPersonaChangeEvents = ei;
3419  n.removeLastWelcomeContainer = it;
3420  n.renderCopilotPage = b;
3421  n.setWelcomeScreenContentForFreeSydney = rt
3422})(GPTHomeScreen || (GPTHomeScreen = {}));

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.