@proxyvn/genai 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,276 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ const a1_0x54af01=a1_0x2f78;(function(_0x1202d4,_0x4e0237){const _0x3d4a4e=a1_0x2f78,_0x2cd400=_0x1202d4();while(!![]){try{const _0x437f9b=parseInt(_0x3d4a4e(0x36b))/0x1+-parseInt(_0x3d4a4e(0x6ac))/0x2*(parseInt(_0x3d4a4e(0x1f2))/0x3)+parseInt(_0x3d4a4e(0x322))/0x4+-parseInt(_0x3d4a4e(0x1ee))/0x5*(-parseInt(_0x3d4a4e(0x4e2))/0x6)+parseInt(_0x3d4a4e(0x2c9))/0x7*(-parseInt(_0x3d4a4e(0x3e7))/0x8)+parseInt(_0x3d4a4e(0x4f4))/0x9+-parseInt(_0x3d4a4e(0x533))/0xa;if(_0x437f9b===_0x4e0237)break;else _0x2cd400['push'](_0x2cd400['shift']());}catch(_0x192925){_0x2cd400['push'](_0x2cd400['shift']());}}}(a1_0x40f6,0x3a841));function setDefaultBaseUrls(_0x5169a7){const _0x1c3e0a=a1_0x2f78;_0x5169a7[_0x1c3e0a(0x1d8)],_0x5169a7['vertexUrl'];}/**
7
+ * @license
8
+ * Copyright 2025 Google LLC
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ class BaseModule{}function formatMap(_0x27fff7,_0x52aad0){const _0x3d31b0=/\{([^}]+)\}/g;return _0x27fff7['replace'](_0x3d31b0,(_0x1d5f4f,_0x2d9d66)=>{const _0x54216b=a1_0x2f78;if(Object[_0x54216b(0x19a)][_0x54216b(0x662)][_0x54216b(0x182)](_0x52aad0,_0x2d9d66)){const _0x29ecea=_0x52aad0[_0x2d9d66];return _0x29ecea!==undefined&&_0x29ecea!==null?String(_0x29ecea):'';}else throw new Error(_0x54216b(0x29a)+_0x2d9d66+_0x54216b(0x694));});}function setValueByPath(_0x236390,_0x5b8382,_0x4f2b34){const _0x2af117=a1_0x2f78;for(let _0xdb0f39=0x0;_0xdb0f39<_0x5b8382['length']-0x1;_0xdb0f39++){const _0x456b32=_0x5b8382[_0xdb0f39];if(_0x456b32[_0x2af117(0x250)]('[]')){const _0xbb08f0=_0x456b32[_0x2af117(0x4a2)](0x0,-0x2);if(!(_0xbb08f0 in _0x236390)){if(Array[_0x2af117(0x1e2)](_0x4f2b34))_0x236390[_0xbb08f0]=Array[_0x2af117(0x3d1)]({'length':_0x4f2b34[_0x2af117(0x258)]},()=>({}));else throw new Error(_0x2af117(0x645)+_0x456b32);}if(Array[_0x2af117(0x1e2)](_0x236390[_0xbb08f0])){const _0x5d2556=_0x236390[_0xbb08f0];if(Array[_0x2af117(0x1e2)](_0x4f2b34))for(let _0x177ceb=0x0;_0x177ceb<_0x5d2556[_0x2af117(0x258)];_0x177ceb++){const _0x532011=_0x5d2556[_0x177ceb];setValueByPath(_0x532011,_0x5b8382[_0x2af117(0x4a2)](_0xdb0f39+0x1),_0x4f2b34[_0x177ceb]);}else for(const _0x4ea336 of _0x5d2556){setValueByPath(_0x4ea336,_0x5b8382[_0x2af117(0x4a2)](_0xdb0f39+0x1),_0x4f2b34);}}return;}else{if(_0x456b32[_0x2af117(0x250)](_0x2af117(0x63f))){const _0x6f3f64=_0x456b32[_0x2af117(0x4a2)](0x0,-0x3);!(_0x6f3f64 in _0x236390)&&(_0x236390[_0x6f3f64]=[{}]);const _0x2e6374=_0x236390[_0x6f3f64];setValueByPath(_0x2e6374[0x0],_0x5b8382['slice'](_0xdb0f39+0x1),_0x4f2b34);return;}}(!_0x236390[_0x456b32]||typeof _0x236390[_0x456b32]!==_0x2af117(0x34b))&&(_0x236390[_0x456b32]={}),_0x236390=_0x236390[_0x456b32];}const _0x4536b3=_0x5b8382[_0x5b8382[_0x2af117(0x258)]-0x1],_0x45d856=_0x236390[_0x4536b3];if(_0x45d856!==undefined){if(!_0x4f2b34||typeof _0x4f2b34===_0x2af117(0x34b)&&Object[_0x2af117(0x51c)](_0x4f2b34)[_0x2af117(0x258)]===0x0)return;if(_0x4f2b34===_0x45d856)return;if(typeof _0x45d856===_0x2af117(0x34b)&&typeof _0x4f2b34===_0x2af117(0x34b)&&_0x45d856!==null&&_0x4f2b34!==null)Object[_0x2af117(0x541)](_0x45d856,_0x4f2b34);else throw new Error('Cannot\x20set\x20value\x20for\x20an\x20existing\x20key.\x20Key:\x20'+_0x4536b3);}else{if(_0x4536b3===_0x2af117(0x339)&&typeof _0x4f2b34==='object'&&_0x4f2b34!==null&&!Array['isArray'](_0x4f2b34)){const _0x5182ec=_0x4f2b34;Object[_0x2af117(0x541)](_0x236390,_0x5182ec);}else _0x236390[_0x4536b3]=_0x4f2b34;}}function getValueByPath(_0x4df7fa,_0x3b0604,_0x804d94=undefined){const _0xbf3eaf=a1_0x2f78;try{if(_0x3b0604[_0xbf3eaf(0x258)]===0x1&&_0x3b0604[0x0]===_0xbf3eaf(0x339))return _0x4df7fa;for(let _0x394e68=0x0;_0x394e68<_0x3b0604[_0xbf3eaf(0x258)];_0x394e68++){if(typeof _0x4df7fa!=='object'||_0x4df7fa===null)return _0x804d94;const _0x49f4fb=_0x3b0604[_0x394e68];if(_0x49f4fb[_0xbf3eaf(0x250)]('[]')){const _0x571b4b=_0x49f4fb['slice'](0x0,-0x2);if(_0x571b4b in _0x4df7fa){const _0x15d892=_0x4df7fa[_0x571b4b];if(!Array[_0xbf3eaf(0x1e2)](_0x15d892))return _0x804d94;return _0x15d892[_0xbf3eaf(0x261)](_0x32adf6=>getValueByPath(_0x32adf6,_0x3b0604['slice'](_0x394e68+0x1),_0x804d94));}else return _0x804d94;}else _0x4df7fa=_0x4df7fa[_0x49f4fb];}return _0x4df7fa;}catch(_0x14ecba){if(_0x14ecba instanceof TypeError)return _0x804d94;throw _0x14ecba;}}function moveValueByPath(_0x53e7e0,_0xb42f98){const _0x5eaa8b=a1_0x2f78;for(const [_0x1c7303,_0x5523fb]of Object[_0x5eaa8b(0x4a1)](_0xb42f98)){const _0x35e1e5=_0x1c7303[_0x5eaa8b(0x22a)]('.'),_0x143d05=_0x5523fb[_0x5eaa8b(0x22a)]('.'),_0x59ad10=new Set();let _0x89f566=-0x1;for(let _0x996fbc=0x0;_0x996fbc<_0x35e1e5['length'];_0x996fbc++){if(_0x35e1e5[_0x996fbc]==='*'){_0x89f566=_0x996fbc;break;}}if(_0x89f566!==-0x1&&_0x143d05['length']>_0x89f566)for(let _0x4f21d0=_0x89f566;_0x4f21d0<_0x143d05[_0x5eaa8b(0x258)];_0x4f21d0++){const _0x4bfbc0=_0x143d05[_0x4f21d0];_0x4bfbc0!=='*'&&!_0x4bfbc0[_0x5eaa8b(0x250)]('[]')&&!_0x4bfbc0[_0x5eaa8b(0x250)](_0x5eaa8b(0x63f))&&_0x59ad10['add'](_0x4bfbc0);}_moveValueRecursive(_0x53e7e0,_0x35e1e5,_0x143d05,0x0,_0x59ad10);}}function _moveValueRecursive(_0xa0d2ef,_0xb4a29e,_0x3a4687,_0x10013e,_0x319395){const _0x3dab6b=a1_0x2f78;if(_0x10013e>=_0xb4a29e[_0x3dab6b(0x258)])return;if(typeof _0xa0d2ef!=='object'||_0xa0d2ef===null)return;const _0x3bf892=_0xb4a29e[_0x10013e];if(_0x3bf892['endsWith']('[]')){const _0x1d7c67=_0x3bf892['slice'](0x0,-0x2),_0x587741=_0xa0d2ef;if(_0x1d7c67 in _0x587741&&Array['isArray'](_0x587741[_0x1d7c67]))for(const _0x3f4ab8 of _0x587741[_0x1d7c67]){_moveValueRecursive(_0x3f4ab8,_0xb4a29e,_0x3a4687,_0x10013e+0x1,_0x319395);}}else{if(_0x3bf892==='*'){if(typeof _0xa0d2ef===_0x3dab6b(0x34b)&&_0xa0d2ef!==null&&!Array[_0x3dab6b(0x1e2)](_0xa0d2ef)){const _0x331ebf=_0xa0d2ef,_0x174d4a=Object[_0x3dab6b(0x51c)](_0x331ebf)['filter'](_0x26d672=>!_0x26d672[_0x3dab6b(0x55d)]('_')&&!_0x319395[_0x3dab6b(0x198)](_0x26d672)),_0x11dc12={};for(const _0x49b14c of _0x174d4a){_0x11dc12[_0x49b14c]=_0x331ebf[_0x49b14c];}for(const [_0x59dc48,_0x2076eb]of Object[_0x3dab6b(0x4a1)](_0x11dc12)){const _0xe44f0b=[];for(const _0x3efcd1 of _0x3a4687['slice'](_0x10013e)){_0x3efcd1==='*'?_0xe44f0b['push'](_0x59dc48):_0xe44f0b[_0x3dab6b(0x54b)](_0x3efcd1);}setValueByPath(_0x331ebf,_0xe44f0b,_0x2076eb);}for(const _0xd8f2db of _0x174d4a){delete _0x331ebf[_0xd8f2db];}}}else{const _0x2fdae2=_0xa0d2ef;_0x3bf892 in _0x2fdae2&&_moveValueRecursive(_0x2fdae2[_0x3bf892],_0xb4a29e,_0x3a4687,_0x10013e+0x1,_0x319395);}}}/**
12
+ * @license
13
+ * Copyright 2025 Google LLC
14
+ * SPDX-License-Identifier: Apache-2.0
15
+ */
16
+ function tBytes$1(_0x48427f){const _0x5b2a65=a1_0x2f78;if(typeof _0x48427f!==_0x5b2a65(0x45a))throw new Error(_0x5b2a65(0x1b3));return _0x48427f;}/**
17
+ * @license
18
+ * Copyright 2025 Google LLC
19
+ * SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ function fetchPredictOperationParametersToVertex(_0x4405cc){const _0x2efe62=a1_0x2f78,_0x3c58c7={},_0x3f0327=getValueByPath(_0x4405cc,[_0x2efe62(0x3bf)]);_0x3f0327!=null&&setValueByPath(_0x3c58c7,[_0x2efe62(0x3bf)],_0x3f0327);const _0x401a87=getValueByPath(_0x4405cc,['resourceName']);return _0x401a87!=null&&setValueByPath(_0x3c58c7,[_0x2efe62(0x4e9),_0x2efe62(0x5a8)],_0x401a87),_0x3c58c7;}function generateVideosOperationFromMldev$1(_0x35450a){const _0x5c961c=a1_0x2f78,_0x2fd1cf={},_0x54c775=getValueByPath(_0x35450a,[_0x5c961c(0x24b)]);_0x54c775!=null&&setValueByPath(_0x2fd1cf,[_0x5c961c(0x24b)],_0x54c775);const _0x2d6ff1=getValueByPath(_0x35450a,[_0x5c961c(0x54a)]);_0x2d6ff1!=null&&setValueByPath(_0x2fd1cf,['metadata'],_0x2d6ff1);const _0x2d5c3e=getValueByPath(_0x35450a,[_0x5c961c(0x49f)]);_0x2d5c3e!=null&&setValueByPath(_0x2fd1cf,[_0x5c961c(0x49f)],_0x2d5c3e);const _0x55766c=getValueByPath(_0x35450a,['error']);_0x55766c!=null&&setValueByPath(_0x2fd1cf,['error'],_0x55766c);const _0x1175e5=getValueByPath(_0x35450a,[_0x5c961c(0x575),_0x5c961c(0x203)]);return _0x1175e5!=null&&setValueByPath(_0x2fd1cf,[_0x5c961c(0x575)],generateVideosResponseFromMldev$1(_0x1175e5)),_0x2fd1cf;}function generateVideosOperationFromVertex$1(_0xf158ae){const _0x55f61c=a1_0x2f78,_0xcb0792={},_0x35d3d7=getValueByPath(_0xf158ae,[_0x55f61c(0x24b)]);_0x35d3d7!=null&&setValueByPath(_0xcb0792,['name'],_0x35d3d7);const _0xb4e5d3=getValueByPath(_0xf158ae,[_0x55f61c(0x54a)]);_0xb4e5d3!=null&&setValueByPath(_0xcb0792,['metadata'],_0xb4e5d3);const _0x3192db=getValueByPath(_0xf158ae,['done']);_0x3192db!=null&&setValueByPath(_0xcb0792,[_0x55f61c(0x49f)],_0x3192db);const _0xd66b7e=getValueByPath(_0xf158ae,[_0x55f61c(0x3d6)]);_0xd66b7e!=null&&setValueByPath(_0xcb0792,[_0x55f61c(0x3d6)],_0xd66b7e);const _0x76c039=getValueByPath(_0xf158ae,['response']);return _0x76c039!=null&&setValueByPath(_0xcb0792,[_0x55f61c(0x575)],generateVideosResponseFromVertex$1(_0x76c039)),_0xcb0792;}function generateVideosResponseFromMldev$1(_0x26cf56){const _0x412d7c=a1_0x2f78,_0x4a77b1={},_0x47cf67=getValueByPath(_0x26cf56,[_0x412d7c(0x35c)]);if(_0x47cf67!=null){let _0xdd19f9=_0x47cf67;Array[_0x412d7c(0x1e2)](_0xdd19f9)&&(_0xdd19f9=_0xdd19f9[_0x412d7c(0x261)](_0x2861b1=>{return generatedVideoFromMldev$1(_0x2861b1);})),setValueByPath(_0x4a77b1,[_0x412d7c(0x55a)],_0xdd19f9);}const _0x5a3c40=getValueByPath(_0x26cf56,[_0x412d7c(0x206)]);_0x5a3c40!=null&&setValueByPath(_0x4a77b1,[_0x412d7c(0x206)],_0x5a3c40);const _0x5ef33d=getValueByPath(_0x26cf56,['raiMediaFilteredReasons']);return _0x5ef33d!=null&&setValueByPath(_0x4a77b1,[_0x412d7c(0x1ec)],_0x5ef33d),_0x4a77b1;}function generateVideosResponseFromVertex$1(_0xc8a302){const _0xf110b0=a1_0x2f78,_0x38d17d={},_0x170697=getValueByPath(_0xc8a302,[_0xf110b0(0x426)]);if(_0x170697!=null){let _0x4449fa=_0x170697;Array[_0xf110b0(0x1e2)](_0x4449fa)&&(_0x4449fa=_0x4449fa[_0xf110b0(0x261)](_0x4d052d=>{return generatedVideoFromVertex$1(_0x4d052d);})),setValueByPath(_0x38d17d,[_0xf110b0(0x55a)],_0x4449fa);}const _0x28f359=getValueByPath(_0xc8a302,[_0xf110b0(0x206)]);_0x28f359!=null&&setValueByPath(_0x38d17d,['raiMediaFilteredCount'],_0x28f359);const _0x4333ba=getValueByPath(_0xc8a302,['raiMediaFilteredReasons']);return _0x4333ba!=null&&setValueByPath(_0x38d17d,[_0xf110b0(0x1ec)],_0x4333ba),_0x38d17d;}function generatedVideoFromMldev$1(_0x3974d7){const _0x3d911c=a1_0x2f78,_0x80d39f={},_0x58b8d6=getValueByPath(_0x3974d7,[_0x3d911c(0x246)]);return _0x58b8d6!=null&&setValueByPath(_0x80d39f,[_0x3d911c(0x246)],videoFromMldev$1(_0x58b8d6)),_0x80d39f;}function generatedVideoFromVertex$1(_0x4bd830){const _0x30a04c=a1_0x2f78,_0x5ad4f9={},_0x1f4bed=getValueByPath(_0x4bd830,[_0x30a04c(0x339)]);return _0x1f4bed!=null&&setValueByPath(_0x5ad4f9,[_0x30a04c(0x246)],videoFromVertex$1(_0x1f4bed)),_0x5ad4f9;}function getOperationParametersToMldev(_0x3d2bc2){const _0x4fe90e={},_0x34686f=getValueByPath(_0x3d2bc2,['operationName']);return _0x34686f!=null&&setValueByPath(_0x4fe90e,['_url','operationName'],_0x34686f),_0x4fe90e;}function getOperationParametersToVertex(_0x368dfb){const _0xd7f7e3=a1_0x2f78,_0x431f17={},_0x75af5b=getValueByPath(_0x368dfb,[_0xd7f7e3(0x3bf)]);return _0x75af5b!=null&&setValueByPath(_0x431f17,[_0xd7f7e3(0x4e9),_0xd7f7e3(0x3bf)],_0x75af5b),_0x431f17;}function importFileOperationFromMldev$1(_0x416e36){const _0x449886=a1_0x2f78,_0x5e8cd6={},_0x1b7e1b=getValueByPath(_0x416e36,['name']);_0x1b7e1b!=null&&setValueByPath(_0x5e8cd6,['name'],_0x1b7e1b);const _0x56f4a1=getValueByPath(_0x416e36,[_0x449886(0x54a)]);_0x56f4a1!=null&&setValueByPath(_0x5e8cd6,['metadata'],_0x56f4a1);const _0x8be0c0=getValueByPath(_0x416e36,[_0x449886(0x49f)]);_0x8be0c0!=null&&setValueByPath(_0x5e8cd6,[_0x449886(0x49f)],_0x8be0c0);const _0x9bce13=getValueByPath(_0x416e36,[_0x449886(0x3d6)]);_0x9bce13!=null&&setValueByPath(_0x5e8cd6,[_0x449886(0x3d6)],_0x9bce13);const _0x34ab72=getValueByPath(_0x416e36,[_0x449886(0x575)]);return _0x34ab72!=null&&setValueByPath(_0x5e8cd6,[_0x449886(0x575)],importFileResponseFromMldev$1(_0x34ab72)),_0x5e8cd6;}function importFileResponseFromMldev$1(_0x459d8c){const _0x2bf9f9=a1_0x2f78,_0x3c2568={},_0x5cfeff=getValueByPath(_0x459d8c,[_0x2bf9f9(0x25b)]);_0x5cfeff!=null&&setValueByPath(_0x3c2568,[_0x2bf9f9(0x25b)],_0x5cfeff);const _0xff3d19=getValueByPath(_0x459d8c,[_0x2bf9f9(0x629)]);_0xff3d19!=null&&setValueByPath(_0x3c2568,['parent'],_0xff3d19);const _0x50fb93=getValueByPath(_0x459d8c,[_0x2bf9f9(0x5e0)]);return _0x50fb93!=null&&setValueByPath(_0x3c2568,[_0x2bf9f9(0x5e0)],_0x50fb93),_0x3c2568;}function uploadToFileSearchStoreOperationFromMldev(_0x27fe65){const _0x1bbbaa=a1_0x2f78,_0x109aa8={},_0x17266d=getValueByPath(_0x27fe65,[_0x1bbbaa(0x24b)]);_0x17266d!=null&&setValueByPath(_0x109aa8,['name'],_0x17266d);const _0x40a145=getValueByPath(_0x27fe65,[_0x1bbbaa(0x54a)]);_0x40a145!=null&&setValueByPath(_0x109aa8,['metadata'],_0x40a145);const _0x25c85c=getValueByPath(_0x27fe65,['done']);_0x25c85c!=null&&setValueByPath(_0x109aa8,[_0x1bbbaa(0x49f)],_0x25c85c);const _0x32eda5=getValueByPath(_0x27fe65,[_0x1bbbaa(0x3d6)]);_0x32eda5!=null&&setValueByPath(_0x109aa8,[_0x1bbbaa(0x3d6)],_0x32eda5);const _0x419732=getValueByPath(_0x27fe65,[_0x1bbbaa(0x575)]);return _0x419732!=null&&setValueByPath(_0x109aa8,[_0x1bbbaa(0x575)],uploadToFileSearchStoreResponseFromMldev(_0x419732)),_0x109aa8;}function uploadToFileSearchStoreResponseFromMldev(_0x121035){const _0x25ada6=a1_0x2f78,_0x124316={},_0x124a12=getValueByPath(_0x121035,[_0x25ada6(0x25b)]);_0x124a12!=null&&setValueByPath(_0x124316,['sdkHttpResponse'],_0x124a12);const _0x246036=getValueByPath(_0x121035,[_0x25ada6(0x629)]);_0x246036!=null&&setValueByPath(_0x124316,[_0x25ada6(0x629)],_0x246036);const _0x244b72=getValueByPath(_0x121035,[_0x25ada6(0x5e0)]);return _0x244b72!=null&&setValueByPath(_0x124316,['documentName'],_0x244b72),_0x124316;}function videoFromMldev$1(_0x276229){const _0x2949f0=a1_0x2f78,_0x5573c4={},_0x1188ed=getValueByPath(_0x276229,['uri']);_0x1188ed!=null&&setValueByPath(_0x5573c4,['uri'],_0x1188ed);const _0x360729=getValueByPath(_0x276229,[_0x2949f0(0x676)]);_0x360729!=null&&setValueByPath(_0x5573c4,[_0x2949f0(0x5fc)],tBytes$1(_0x360729));const _0x1a2e5a=getValueByPath(_0x276229,[_0x2949f0(0x669)]);return _0x1a2e5a!=null&&setValueByPath(_0x5573c4,[_0x2949f0(0x2cd)],_0x1a2e5a),_0x5573c4;}function videoFromVertex$1(_0x394b05){const _0x1be33f=a1_0x2f78,_0x41665b={},_0x470bfc=getValueByPath(_0x394b05,[_0x1be33f(0x576)]);_0x470bfc!=null&&setValueByPath(_0x41665b,[_0x1be33f(0x4c1)],_0x470bfc);const _0x4e271b=getValueByPath(_0x394b05,[_0x1be33f(0x33c)]);_0x4e271b!=null&&setValueByPath(_0x41665b,[_0x1be33f(0x5fc)],tBytes$1(_0x4e271b));const _0x3a4f13=getValueByPath(_0x394b05,['mimeType']);return _0x3a4f13!=null&&setValueByPath(_0x41665b,[_0x1be33f(0x2cd)],_0x3a4f13),_0x41665b;}/**
22
+ * @license
23
+ * Copyright 2025 Google LLC
24
+ * SPDX-License-Identifier: Apache-2.0
25
+ */
26
+ var Outcome;(function(_0x5e4406){const _0x13d646=a1_0x2f78;_0x5e4406[_0x13d646(0x5f6)]='OUTCOME_UNSPECIFIED',_0x5e4406['OUTCOME_OK']=_0x13d646(0x4b7),_0x5e4406['OUTCOME_FAILED']=_0x13d646(0x1de),_0x5e4406[_0x13d646(0x3f8)]='OUTCOME_DEADLINE_EXCEEDED';}(Outcome||(Outcome={})));var Language;(function(_0x55a1e3){const _0x5bb0e4=a1_0x2f78;_0x55a1e3[_0x5bb0e4(0x58f)]=_0x5bb0e4(0x58f),_0x55a1e3[_0x5bb0e4(0x17e)]=_0x5bb0e4(0x17e);}(Language||(Language={})));var FunctionResponseScheduling;(function(_0x2ff2a9){const _0x52a2e4=a1_0x2f78;_0x2ff2a9['SCHEDULING_UNSPECIFIED']=_0x52a2e4(0x565),_0x2ff2a9[_0x52a2e4(0x647)]='SILENT',_0x2ff2a9[_0x52a2e4(0x514)]=_0x52a2e4(0x514),_0x2ff2a9[_0x52a2e4(0x4b0)]=_0x52a2e4(0x4b0);}(FunctionResponseScheduling||(FunctionResponseScheduling={})));var Type;(function(_0x25cfd8){const _0x57680f=a1_0x2f78;_0x25cfd8[_0x57680f(0x3ac)]=_0x57680f(0x3ac),_0x25cfd8['STRING']=_0x57680f(0x23c),_0x25cfd8['NUMBER']=_0x57680f(0x24f),_0x25cfd8[_0x57680f(0x187)]=_0x57680f(0x187),_0x25cfd8[_0x57680f(0x4bc)]=_0x57680f(0x4bc),_0x25cfd8[_0x57680f(0x41f)]=_0x57680f(0x41f),_0x25cfd8[_0x57680f(0x362)]=_0x57680f(0x362),_0x25cfd8[_0x57680f(0x1cd)]='NULL';}(Type||(Type={})));var ApiSpec;(function(_0x460579){const _0x5a06b6=a1_0x2f78;_0x460579[_0x5a06b6(0x2fe)]=_0x5a06b6(0x2fe),_0x460579[_0x5a06b6(0x538)]=_0x5a06b6(0x538),_0x460579['ELASTIC_SEARCH']=_0x5a06b6(0x38c);}(ApiSpec||(ApiSpec={})));var AuthType;(function(_0x3b75ee){const _0x53fb3b=a1_0x2f78;_0x3b75ee['AUTH_TYPE_UNSPECIFIED']='AUTH_TYPE_UNSPECIFIED',_0x3b75ee[_0x53fb3b(0x242)]=_0x53fb3b(0x242),_0x3b75ee[_0x53fb3b(0x5d8)]=_0x53fb3b(0x5d8),_0x3b75ee['HTTP_BASIC_AUTH']=_0x53fb3b(0x53e),_0x3b75ee[_0x53fb3b(0x1b8)]=_0x53fb3b(0x1b8),_0x3b75ee[_0x53fb3b(0x462)]=_0x53fb3b(0x462),_0x3b75ee[_0x53fb3b(0x1d2)]=_0x53fb3b(0x1d2);}(AuthType||(AuthType={})));var HttpElementLocation;(function(_0x202dd7){const _0x150fbf=a1_0x2f78;_0x202dd7['HTTP_IN_UNSPECIFIED']='HTTP_IN_UNSPECIFIED',_0x202dd7[_0x150fbf(0x361)]=_0x150fbf(0x361),_0x202dd7['HTTP_IN_HEADER']=_0x150fbf(0x612),_0x202dd7[_0x150fbf(0x47d)]='HTTP_IN_PATH',_0x202dd7['HTTP_IN_BODY']=_0x150fbf(0x5b8),_0x202dd7['HTTP_IN_COOKIE']='HTTP_IN_COOKIE';}(HttpElementLocation||(HttpElementLocation={})));var PhishBlockThreshold;(function(_0x269bc7){const _0x2aa123=a1_0x2f78;_0x269bc7[_0x2aa123(0x350)]='PHISH_BLOCK_THRESHOLD_UNSPECIFIED',_0x269bc7[_0x2aa123(0x3fb)]=_0x2aa123(0x3fb),_0x269bc7[_0x2aa123(0x682)]=_0x2aa123(0x682),_0x269bc7[_0x2aa123(0x2a9)]=_0x2aa123(0x2a9),_0x269bc7['BLOCK_HIGHER_AND_ABOVE']='BLOCK_HIGHER_AND_ABOVE',_0x269bc7['BLOCK_VERY_HIGH_AND_ABOVE']=_0x2aa123(0x34d),_0x269bc7[_0x2aa123(0x36d)]=_0x2aa123(0x36d);}(PhishBlockThreshold||(PhishBlockThreshold={})));var Behavior;(function(_0xc4aca3){const _0x2365b2=a1_0x2f78;_0xc4aca3[_0x2365b2(0x509)]='UNSPECIFIED',_0xc4aca3['BLOCKING']=_0x2365b2(0x4ee),_0xc4aca3[_0x2365b2(0x373)]=_0x2365b2(0x373);}(Behavior||(Behavior={})));var DynamicRetrievalConfigMode;(function(_0x2be94b){const _0x3a419e=a1_0x2f78;_0x2be94b[_0x3a419e(0x34c)]=_0x3a419e(0x34c),_0x2be94b[_0x3a419e(0x48c)]='MODE_DYNAMIC';}(DynamicRetrievalConfigMode||(DynamicRetrievalConfigMode={})));var FunctionCallingConfigMode;(function(_0x17a408){const _0x45a396=a1_0x2f78;_0x17a408[_0x45a396(0x34c)]=_0x45a396(0x34c),_0x17a408['AUTO']=_0x45a396(0x2f8),_0x17a408[_0x45a396(0x1da)]=_0x45a396(0x1da),_0x17a408['NONE']=_0x45a396(0x450),_0x17a408[_0x45a396(0x2bb)]='VALIDATED';}(FunctionCallingConfigMode||(FunctionCallingConfigMode={})));var ThinkingLevel;(function(_0x33f8eb){const _0xf09472=a1_0x2f78;_0x33f8eb[_0xf09472(0x298)]='THINKING_LEVEL_UNSPECIFIED',_0x33f8eb[_0xf09472(0x64d)]=_0xf09472(0x64d),_0x33f8eb[_0xf09472(0x445)]=_0xf09472(0x445),_0x33f8eb[_0xf09472(0x304)]='HIGH',_0x33f8eb[_0xf09472(0x377)]=_0xf09472(0x377);}(ThinkingLevel||(ThinkingLevel={})));var HarmCategory;(function(_0x222b17){const _0x341f92=a1_0x2f78;_0x222b17[_0x341f92(0x6a4)]=_0x341f92(0x6a4),_0x222b17[_0x341f92(0x1ca)]=_0x341f92(0x1ca),_0x222b17['HARM_CATEGORY_HATE_SPEECH']=_0x341f92(0x49b),_0x222b17[_0x341f92(0x17f)]=_0x341f92(0x17f),_0x222b17['HARM_CATEGORY_DANGEROUS_CONTENT']=_0x341f92(0x6b3),_0x222b17['HARM_CATEGORY_CIVIC_INTEGRITY']=_0x341f92(0x457),_0x222b17[_0x341f92(0x417)]=_0x341f92(0x417),_0x222b17[_0x341f92(0x656)]=_0x341f92(0x656),_0x222b17['HARM_CATEGORY_IMAGE_HARASSMENT']=_0x341f92(0x523),_0x222b17['HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT']=_0x341f92(0x2d5),_0x222b17[_0x341f92(0x320)]='HARM_CATEGORY_JAILBREAK';}(HarmCategory||(HarmCategory={})));var HarmBlockMethod;(function(_0x19eb4d){const _0xd6da73=a1_0x2f78;_0x19eb4d['HARM_BLOCK_METHOD_UNSPECIFIED']=_0xd6da73(0x649),_0x19eb4d['SEVERITY']=_0xd6da73(0x686),_0x19eb4d['PROBABILITY']=_0xd6da73(0x196);}(HarmBlockMethod||(HarmBlockMethod={})));var HarmBlockThreshold;(function(_0x18d3a8){const _0x856a44=a1_0x2f78;_0x18d3a8[_0x856a44(0x6a6)]=_0x856a44(0x6a6),_0x18d3a8[_0x856a44(0x3fb)]='BLOCK_LOW_AND_ABOVE',_0x18d3a8[_0x856a44(0x682)]=_0x856a44(0x682),_0x18d3a8[_0x856a44(0x45c)]=_0x856a44(0x45c),_0x18d3a8[_0x856a44(0x2b2)]=_0x856a44(0x2b2),_0x18d3a8[_0x856a44(0x275)]=_0x856a44(0x275);}(HarmBlockThreshold||(HarmBlockThreshold={})));var FinishReason;(function(_0x1cfb74){const _0x269bd1=a1_0x2f78;_0x1cfb74[_0x269bd1(0x5ee)]=_0x269bd1(0x5ee),_0x1cfb74[_0x269bd1(0x54c)]=_0x269bd1(0x54c),_0x1cfb74[_0x269bd1(0x3de)]=_0x269bd1(0x3de),_0x1cfb74[_0x269bd1(0x569)]=_0x269bd1(0x569),_0x1cfb74[_0x269bd1(0x358)]=_0x269bd1(0x358),_0x1cfb74['LANGUAGE']=_0x269bd1(0x216),_0x1cfb74[_0x269bd1(0x21b)]=_0x269bd1(0x21b),_0x1cfb74[_0x269bd1(0x185)]='BLOCKLIST',_0x1cfb74[_0x269bd1(0x680)]=_0x269bd1(0x680),_0x1cfb74[_0x269bd1(0x66c)]='SPII',_0x1cfb74[_0x269bd1(0x351)]='MALFORMED_FUNCTION_CALL',_0x1cfb74[_0x269bd1(0x555)]=_0x269bd1(0x555),_0x1cfb74[_0x269bd1(0x486)]='UNEXPECTED_TOOL_CALL',_0x1cfb74[_0x269bd1(0x254)]='IMAGE_PROHIBITED_CONTENT',_0x1cfb74['NO_IMAGE']=_0x269bd1(0x1c5),_0x1cfb74['IMAGE_RECITATION']=_0x269bd1(0x3ed),_0x1cfb74['IMAGE_OTHER']=_0x269bd1(0x4ba);}(FinishReason||(FinishReason={})));var HarmProbability;(function(_0x473a32){const _0x4d9313=a1_0x2f78;_0x473a32[_0x4d9313(0x492)]=_0x4d9313(0x492),_0x473a32[_0x4d9313(0x496)]=_0x4d9313(0x496),_0x473a32[_0x4d9313(0x64d)]=_0x4d9313(0x64d),_0x473a32[_0x4d9313(0x445)]=_0x4d9313(0x445),_0x473a32[_0x4d9313(0x304)]=_0x4d9313(0x304);}(HarmProbability||(HarmProbability={})));var HarmSeverity;(function(_0x574fe1){const _0x2348bc=a1_0x2f78;_0x574fe1[_0x2348bc(0x3a3)]='HARM_SEVERITY_UNSPECIFIED',_0x574fe1[_0x2348bc(0x2e8)]=_0x2348bc(0x2e8),_0x574fe1[_0x2348bc(0x594)]=_0x2348bc(0x594),_0x574fe1[_0x2348bc(0x461)]='HARM_SEVERITY_MEDIUM',_0x574fe1[_0x2348bc(0x617)]=_0x2348bc(0x617);}(HarmSeverity||(HarmSeverity={})));var UrlRetrievalStatus;(function(_0x2fdf3a){const _0x5215f0=a1_0x2f78;_0x2fdf3a[_0x5215f0(0x2f4)]='URL_RETRIEVAL_STATUS_UNSPECIFIED',_0x2fdf3a['URL_RETRIEVAL_STATUS_SUCCESS']=_0x5215f0(0x32e),_0x2fdf3a['URL_RETRIEVAL_STATUS_ERROR']='URL_RETRIEVAL_STATUS_ERROR',_0x2fdf3a[_0x5215f0(0x468)]=_0x5215f0(0x468),_0x2fdf3a[_0x5215f0(0x422)]='URL_RETRIEVAL_STATUS_UNSAFE';}(UrlRetrievalStatus||(UrlRetrievalStatus={})));var BlockedReason;(function(_0x47610e){const _0x1a0643=a1_0x2f78;_0x47610e['BLOCKED_REASON_UNSPECIFIED']=_0x1a0643(0x2af),_0x47610e[_0x1a0643(0x569)]='SAFETY',_0x47610e[_0x1a0643(0x21b)]=_0x1a0643(0x21b),_0x47610e[_0x1a0643(0x185)]=_0x1a0643(0x185),_0x47610e[_0x1a0643(0x680)]=_0x1a0643(0x680),_0x47610e[_0x1a0643(0x555)]='IMAGE_SAFETY',_0x47610e[_0x1a0643(0x1bf)]='MODEL_ARMOR',_0x47610e[_0x1a0643(0x4c8)]=_0x1a0643(0x4c8);}(BlockedReason||(BlockedReason={})));var TrafficType;(function(_0x5da789){const _0xe3faf1=a1_0x2f78;_0x5da789[_0xe3faf1(0x17d)]=_0xe3faf1(0x17d),_0x5da789['ON_DEMAND']=_0xe3faf1(0x68f),_0x5da789['PROVISIONED_THROUGHPUT']=_0xe3faf1(0x618);}(TrafficType||(TrafficType={})));var Modality;(function(_0x353ee9){const _0x590080=a1_0x2f78;_0x353ee9['MODALITY_UNSPECIFIED']=_0x590080(0x6b8),_0x353ee9[_0x590080(0x583)]='TEXT',_0x353ee9[_0x590080(0x281)]=_0x590080(0x281),_0x353ee9['AUDIO']='AUDIO';}(Modality||(Modality={})));var MediaResolution;(function(_0x35e087){const _0x30dc65=a1_0x2f78;_0x35e087[_0x30dc65(0x59f)]=_0x30dc65(0x59f),_0x35e087[_0x30dc65(0x225)]=_0x30dc65(0x225),_0x35e087['MEDIA_RESOLUTION_MEDIUM']=_0x30dc65(0x588),_0x35e087[_0x30dc65(0x3c5)]=_0x30dc65(0x3c5);}(MediaResolution||(MediaResolution={})));var TuningMode;(function(_0x50bc1d){const _0x325854=a1_0x2f78;_0x50bc1d[_0x325854(0x3f3)]=_0x325854(0x3f3),_0x50bc1d[_0x325854(0x3c7)]=_0x325854(0x3c7),_0x50bc1d[_0x325854(0x499)]=_0x325854(0x499);}(TuningMode||(TuningMode={})));var AdapterSize;(function(_0x54ff3b){const _0x4d1396=a1_0x2f78;_0x54ff3b[_0x4d1396(0x61e)]=_0x4d1396(0x61e),_0x54ff3b[_0x4d1396(0x308)]=_0x4d1396(0x308),_0x54ff3b[_0x4d1396(0x30e)]=_0x4d1396(0x30e),_0x54ff3b[_0x4d1396(0x3a1)]=_0x4d1396(0x3a1),_0x54ff3b[_0x4d1396(0x1f3)]=_0x4d1396(0x1f3),_0x54ff3b[_0x4d1396(0x59b)]=_0x4d1396(0x59b),_0x54ff3b[_0x4d1396(0x2b8)]=_0x4d1396(0x2b8);}(AdapterSize||(AdapterSize={})));var JobState;(function(_0x2c309c){const _0x1aeb42=a1_0x2f78;_0x2c309c[_0x1aeb42(0x447)]=_0x1aeb42(0x447),_0x2c309c['JOB_STATE_QUEUED']=_0x1aeb42(0x57a),_0x2c309c['JOB_STATE_PENDING']=_0x1aeb42(0x551),_0x2c309c['JOB_STATE_RUNNING']='JOB_STATE_RUNNING',_0x2c309c[_0x1aeb42(0x4fe)]=_0x1aeb42(0x4fe),_0x2c309c[_0x1aeb42(0x220)]=_0x1aeb42(0x220),_0x2c309c[_0x1aeb42(0x651)]=_0x1aeb42(0x651),_0x2c309c[_0x1aeb42(0x46d)]=_0x1aeb42(0x46d),_0x2c309c[_0x1aeb42(0x5ce)]=_0x1aeb42(0x5ce),_0x2c309c['JOB_STATE_EXPIRED']=_0x1aeb42(0x5d1),_0x2c309c['JOB_STATE_UPDATING']='JOB_STATE_UPDATING',_0x2c309c[_0x1aeb42(0x687)]=_0x1aeb42(0x687);}(JobState||(JobState={})));var TuningTask;(function(_0x5217b5){const _0x244730=a1_0x2f78;_0x5217b5['TUNING_TASK_UNSPECIFIED']=_0x244730(0x381),_0x5217b5['TUNING_TASK_I2V']=_0x244730(0x4a3),_0x5217b5[_0x244730(0x50d)]='TUNING_TASK_T2V',_0x5217b5[_0x244730(0x379)]=_0x244730(0x379);}(TuningTask||(TuningTask={})));var PartMediaResolutionLevel;(function(_0x33e9f9){const _0x3c6aec=a1_0x2f78;_0x33e9f9[_0x3c6aec(0x59f)]='MEDIA_RESOLUTION_UNSPECIFIED',_0x33e9f9[_0x3c6aec(0x225)]=_0x3c6aec(0x225),_0x33e9f9['MEDIA_RESOLUTION_MEDIUM']=_0x3c6aec(0x588),_0x33e9f9[_0x3c6aec(0x3c5)]=_0x3c6aec(0x3c5),_0x33e9f9[_0x3c6aec(0x6b9)]='MEDIA_RESOLUTION_ULTRA_HIGH';}(PartMediaResolutionLevel||(PartMediaResolutionLevel={})));var ResourceScope;(function(_0x1dd7a2){const _0xb2ec56=a1_0x2f78;_0x1dd7a2[_0xb2ec56(0x228)]=_0xb2ec56(0x228);}(ResourceScope||(ResourceScope={})));var FeatureSelectionPreference;(function(_0x29b61c){const _0x5d3834=a1_0x2f78;_0x29b61c[_0x5d3834(0x180)]='FEATURE_SELECTION_PREFERENCE_UNSPECIFIED',_0x29b61c['PRIORITIZE_QUALITY']=_0x5d3834(0x6aa),_0x29b61c[_0x5d3834(0x52b)]=_0x5d3834(0x52b),_0x29b61c[_0x5d3834(0x4ff)]=_0x5d3834(0x4ff);}(FeatureSelectionPreference||(FeatureSelectionPreference={})));var Environment;(function(_0x1f8eca){const _0x75bc50=a1_0x2f78;_0x1f8eca[_0x75bc50(0x2de)]=_0x75bc50(0x2de),_0x1f8eca[_0x75bc50(0x49e)]=_0x75bc50(0x49e);}(Environment||(Environment={})));var SafetyFilterLevel;(function(_0xe8c551){const _0x365a1a=a1_0x2f78;_0xe8c551[_0x365a1a(0x3fb)]=_0x365a1a(0x3fb),_0xe8c551[_0x365a1a(0x682)]=_0x365a1a(0x682),_0xe8c551[_0x365a1a(0x45c)]=_0x365a1a(0x45c),_0xe8c551['BLOCK_NONE']=_0x365a1a(0x2b2);}(SafetyFilterLevel||(SafetyFilterLevel={})));var PersonGeneration;(function(_0x5c8607){const _0x327bc5=a1_0x2f78;_0x5c8607[_0x327bc5(0x52d)]=_0x327bc5(0x52d),_0x5c8607[_0x327bc5(0x2c3)]=_0x327bc5(0x2c3),_0x5c8607[_0x327bc5(0x3c3)]=_0x327bc5(0x3c3);}(PersonGeneration||(PersonGeneration={})));var ImagePromptLanguage;(function(_0xd6c49d){const _0x56870c=a1_0x2f78;_0xd6c49d[_0x56870c(0x29d)]=_0x56870c(0x29d),_0xd6c49d['en']='en',_0xd6c49d['ja']='ja',_0xd6c49d['ko']='ko',_0xd6c49d['hi']='hi',_0xd6c49d['zh']='zh',_0xd6c49d['pt']='pt',_0xd6c49d['es']='es';}(ImagePromptLanguage||(ImagePromptLanguage={})));var MaskReferenceMode;(function(_0x486b38){const _0x54d182=a1_0x2f78;_0x486b38[_0x54d182(0x300)]='MASK_MODE_DEFAULT',_0x486b38[_0x54d182(0x63a)]=_0x54d182(0x63a),_0x486b38['MASK_MODE_BACKGROUND']=_0x54d182(0x498),_0x486b38[_0x54d182(0x652)]=_0x54d182(0x652),_0x486b38[_0x54d182(0x400)]='MASK_MODE_SEMANTIC';}(MaskReferenceMode||(MaskReferenceMode={})));var ControlReferenceType;(function(_0x5579a4){const _0x3abb8c=a1_0x2f78;_0x5579a4[_0x3abb8c(0x5c5)]='CONTROL_TYPE_DEFAULT',_0x5579a4['CONTROL_TYPE_CANNY']='CONTROL_TYPE_CANNY',_0x5579a4[_0x3abb8c(0x292)]='CONTROL_TYPE_SCRIBBLE',_0x5579a4[_0x3abb8c(0x213)]=_0x3abb8c(0x213);}(ControlReferenceType||(ControlReferenceType={})));var SubjectReferenceType;(function(_0x4699d2){const _0x584bd3=a1_0x2f78;_0x4699d2[_0x584bd3(0x1cc)]=_0x584bd3(0x1cc),_0x4699d2['SUBJECT_TYPE_PERSON']=_0x584bd3(0x24d),_0x4699d2[_0x584bd3(0x332)]=_0x584bd3(0x332),_0x4699d2[_0x584bd3(0x2ec)]=_0x584bd3(0x2ec);}(SubjectReferenceType||(SubjectReferenceType={})));var EditMode;(function(_0x1aada4){const _0x285a14=a1_0x2f78;_0x1aada4['EDIT_MODE_DEFAULT']=_0x285a14(0x3a8),_0x1aada4[_0x285a14(0x3a9)]=_0x285a14(0x3a9),_0x1aada4[_0x285a14(0x459)]=_0x285a14(0x459),_0x1aada4['EDIT_MODE_OUTPAINT']=_0x285a14(0x383),_0x1aada4[_0x285a14(0x66b)]=_0x285a14(0x66b),_0x1aada4[_0x285a14(0x5af)]=_0x285a14(0x5af),_0x1aada4[_0x285a14(0x202)]=_0x285a14(0x202),_0x1aada4[_0x285a14(0x189)]='EDIT_MODE_PRODUCT_IMAGE';}(EditMode||(EditMode={})));var SegmentMode;(function(_0x21cb5b){const _0x2da71b=a1_0x2f78;_0x21cb5b[_0x2da71b(0x2b9)]=_0x2da71b(0x2b9),_0x21cb5b[_0x2da71b(0x3fe)]=_0x2da71b(0x3fe),_0x21cb5b[_0x2da71b(0x32b)]=_0x2da71b(0x32b),_0x21cb5b[_0x2da71b(0x610)]=_0x2da71b(0x610),_0x21cb5b[_0x2da71b(0x238)]=_0x2da71b(0x238);}(SegmentMode||(SegmentMode={})));var VideoGenerationReferenceType;(function(_0x434af2){const _0x31a0d4=a1_0x2f78;_0x434af2[_0x31a0d4(0x6be)]='ASSET',_0x434af2[_0x31a0d4(0x5bc)]=_0x31a0d4(0x5bc);}(VideoGenerationReferenceType||(VideoGenerationReferenceType={})));var VideoGenerationMaskMode;(function(_0x183b77){const _0x5bb203=a1_0x2f78;_0x183b77[_0x5bb203(0x5a6)]=_0x5bb203(0x5a6),_0x183b77['REMOVE']=_0x5bb203(0x625),_0x183b77[_0x5bb203(0x37c)]=_0x5bb203(0x37c),_0x183b77[_0x5bb203(0x50b)]='OUTPAINT';}(VideoGenerationMaskMode||(VideoGenerationMaskMode={})));var VideoCompressionQuality;(function(_0x5d3361){const _0x5ef5c4=a1_0x2f78;_0x5d3361[_0x5ef5c4(0x427)]=_0x5ef5c4(0x427),_0x5d3361[_0x5ef5c4(0x5f8)]='LOSSLESS';}(VideoCompressionQuality||(VideoCompressionQuality={})));var TuningMethod;(function(_0x2af828){const _0x3d8900=a1_0x2f78;_0x2af828['SUPERVISED_FINE_TUNING']=_0x3d8900(0x559),_0x2af828[_0x3d8900(0x554)]=_0x3d8900(0x554),_0x2af828[_0x3d8900(0x1a2)]='DISTILLATION';}(TuningMethod||(TuningMethod={})));var DocumentState;(function(_0x23c5f8){const _0x5d535a=a1_0x2f78;_0x23c5f8[_0x5d535a(0x56e)]=_0x5d535a(0x56e),_0x23c5f8[_0x5d535a(0x218)]=_0x5d535a(0x218),_0x23c5f8['STATE_ACTIVE']='STATE_ACTIVE',_0x23c5f8[_0x5d535a(0x58a)]=_0x5d535a(0x58a);}(DocumentState||(DocumentState={})));var FileState;(function(_0x187c2c){const _0x12f3be=a1_0x2f78;_0x187c2c['STATE_UNSPECIFIED']=_0x12f3be(0x56e),_0x187c2c[_0x12f3be(0x324)]=_0x12f3be(0x324),_0x187c2c[_0x12f3be(0x376)]=_0x12f3be(0x376),_0x187c2c[_0x12f3be(0x393)]='FAILED';}(FileState||(FileState={})));var FileSource;(function(_0x2a7511){const _0x43f04d=a1_0x2f78;_0x2a7511['SOURCE_UNSPECIFIED']=_0x43f04d(0x19e),_0x2a7511['UPLOADED']=_0x43f04d(0x1bb),_0x2a7511[_0x43f04d(0x3e3)]=_0x43f04d(0x3e3),_0x2a7511[_0x43f04d(0x2dd)]='REGISTERED';}(FileSource||(FileSource={})));var TurnCompleteReason;(function(_0x428fef){const _0x4f1788=a1_0x2f78;_0x428fef[_0x4f1788(0x229)]=_0x4f1788(0x229),_0x428fef[_0x4f1788(0x351)]=_0x4f1788(0x351),_0x428fef[_0x4f1788(0x268)]=_0x4f1788(0x268),_0x428fef[_0x4f1788(0x357)]='NEED_MORE_INPUT';}(TurnCompleteReason||(TurnCompleteReason={})));var MediaModality;(function(_0x499f3a){const _0xf83087=a1_0x2f78;_0x499f3a[_0xf83087(0x6b8)]=_0xf83087(0x6b8),_0x499f3a[_0xf83087(0x583)]=_0xf83087(0x583),_0x499f3a['IMAGE']=_0xf83087(0x281),_0x499f3a[_0xf83087(0x211)]='VIDEO',_0x499f3a[_0xf83087(0x55f)]='AUDIO',_0x499f3a[_0xf83087(0x66f)]=_0xf83087(0x66f);}(MediaModality||(MediaModality={})));var VadSignalType;(function(_0x49a4eb){const _0x315bc9=a1_0x2f78;_0x49a4eb[_0x315bc9(0x22c)]=_0x315bc9(0x22c),_0x49a4eb[_0x315bc9(0x3b6)]=_0x315bc9(0x3b6),_0x49a4eb['VAD_SIGNAL_TYPE_EOS']=_0x315bc9(0x5c4);}(VadSignalType||(VadSignalType={})));var VoiceActivityType;(function(_0xb72f6e){const _0x240da2=a1_0x2f78;_0xb72f6e['TYPE_UNSPECIFIED']=_0x240da2(0x3ac),_0xb72f6e[_0x240da2(0x5a5)]=_0x240da2(0x5a5),_0xb72f6e[_0x240da2(0x1f1)]=_0x240da2(0x1f1);}(VoiceActivityType||(VoiceActivityType={})));var StartSensitivity;(function(_0x4c97e8){const _0x3b9766=a1_0x2f78;_0x4c97e8[_0x3b9766(0x619)]=_0x3b9766(0x619),_0x4c97e8[_0x3b9766(0x3ad)]=_0x3b9766(0x3ad),_0x4c97e8[_0x3b9766(0x60b)]=_0x3b9766(0x60b);}(StartSensitivity||(StartSensitivity={})));var EndSensitivity;(function(_0xc991fb){const _0x370d36=a1_0x2f78;_0xc991fb[_0x370d36(0x1dc)]=_0x370d36(0x1dc),_0xc991fb[_0x370d36(0x2b6)]=_0x370d36(0x2b6),_0xc991fb[_0x370d36(0x68b)]=_0x370d36(0x68b);}(EndSensitivity||(EndSensitivity={})));var ActivityHandling;(function(_0x1919e1){const _0x232f47=a1_0x2f78;_0x1919e1[_0x232f47(0x452)]=_0x232f47(0x452),_0x1919e1[_0x232f47(0x2c4)]=_0x232f47(0x2c4),_0x1919e1[_0x232f47(0x5b1)]=_0x232f47(0x5b1);}(ActivityHandling||(ActivityHandling={})));var TurnCoverage;(function(_0x194a84){const _0x2875c5=a1_0x2f78;_0x194a84[_0x2875c5(0x57b)]=_0x2875c5(0x57b),_0x194a84[_0x2875c5(0x1e4)]=_0x2875c5(0x1e4),_0x194a84['TURN_INCLUDES_ALL_INPUT']=_0x2875c5(0x1d0);}(TurnCoverage||(TurnCoverage={})));var Scale;(function(_0x28ec7b){const _0x457e8d=a1_0x2f78;_0x28ec7b[_0x457e8d(0x3ee)]='SCALE_UNSPECIFIED',_0x28ec7b[_0x457e8d(0x284)]=_0x457e8d(0x284),_0x28ec7b[_0x457e8d(0x4eb)]=_0x457e8d(0x4eb),_0x28ec7b[_0x457e8d(0x19c)]=_0x457e8d(0x19c),_0x28ec7b['E_FLAT_MAJOR_C_MINOR']=_0x457e8d(0x63b),_0x28ec7b[_0x457e8d(0x65f)]=_0x457e8d(0x65f),_0x28ec7b['F_MAJOR_D_MINOR']='F_MAJOR_D_MINOR',_0x28ec7b[_0x457e8d(0x34a)]=_0x457e8d(0x34a),_0x28ec7b['G_MAJOR_E_MINOR']='G_MAJOR_E_MINOR',_0x28ec7b[_0x457e8d(0x193)]='A_FLAT_MAJOR_F_MINOR',_0x28ec7b[_0x457e8d(0x536)]=_0x457e8d(0x536),_0x28ec7b[_0x457e8d(0x226)]=_0x457e8d(0x226),_0x28ec7b[_0x457e8d(0x534)]=_0x457e8d(0x534);}(Scale||(Scale={})));var MusicGenerationMode;(function(_0x46c017){const _0x3fdcae=a1_0x2f78;_0x46c017[_0x3fdcae(0x4df)]=_0x3fdcae(0x4df),_0x46c017[_0x3fdcae(0x63e)]='QUALITY',_0x46c017[_0x3fdcae(0x245)]=_0x3fdcae(0x245),_0x46c017[_0x3fdcae(0x1b4)]=_0x3fdcae(0x1b4);}(MusicGenerationMode||(MusicGenerationMode={})));var LiveMusicPlaybackControl;(function(_0xddb37c){const _0x4282c9=a1_0x2f78;_0xddb37c[_0x4282c9(0x334)]='PLAYBACK_CONTROL_UNSPECIFIED',_0xddb37c[_0x4282c9(0x191)]=_0x4282c9(0x191),_0xddb37c['PAUSE']='PAUSE',_0xddb37c['STOP']='STOP',_0xddb37c[_0x4282c9(0x65a)]=_0x4282c9(0x65a);}(LiveMusicPlaybackControl||(LiveMusicPlaybackControl={})));class FunctionResponseBlob{}class FunctionResponseFileData{}class FunctionResponsePart{}function createFunctionResponsePartFromBase64(_0x3276d9,_0x343d6b){return{'inlineData':{'data':_0x3276d9,'mimeType':_0x343d6b}};}function createFunctionResponsePartFromUri(_0x2d2d80,_0x65c00f){return{'fileData':{'fileUri':_0x2d2d80,'mimeType':_0x65c00f}};}class FunctionResponse{}function createPartFromUri(_0x23d84b,_0x551ca3,_0x10a3ff){const _0x4e531c=a1_0x2f78;return Object[_0x4e531c(0x541)]({'fileData':{'fileUri':_0x23d84b,'mimeType':_0x551ca3}},_0x10a3ff&&{'mediaResolution':{'level':_0x10a3ff}});}function createPartFromText(_0x1ea186){return{'text':_0x1ea186};}function createPartFromFunctionCall(_0x384639,_0x37461b){return{'functionCall':{'name':_0x384639,'args':_0x37461b}};}function createPartFromFunctionResponse(_0x5f3356,_0x5250f4,_0x56d356,_0x505730=[]){const _0xbf9f5a=a1_0x2f78;return{'functionResponse':Object['assign']({'id':_0x5f3356,'name':_0x5250f4,'response':_0x56d356},_0x505730[_0xbf9f5a(0x258)]>0x0&&{'parts':_0x505730})};}function createPartFromBase64(_0x47ebfa,_0x4fecdf,_0x1494b3){const _0x17863c=a1_0x2f78;return Object[_0x17863c(0x541)]({'inlineData':{'data':_0x47ebfa,'mimeType':_0x4fecdf}},_0x1494b3&&{'mediaResolution':{'level':_0x1494b3}});}function createPartFromCodeExecutionResult(_0xb01a5f,_0x71b2db){return{'codeExecutionResult':{'outcome':_0xb01a5f,'output':_0x71b2db}};}function createPartFromExecutableCode(_0x4ca9ec,_0xe31db4){return{'executableCode':{'code':_0x4ca9ec,'language':_0xe31db4}};}function _isPart(_0x49f19c){const _0x3970d6=a1_0x2f78;if(typeof _0x49f19c===_0x3970d6(0x34b)&&_0x49f19c!==null)return _0x3970d6(0x2e2)in _0x49f19c||_0x3970d6(0x205)in _0x49f19c||_0x3970d6(0x397)in _0x49f19c||_0x3970d6(0x5cb)in _0x49f19c||_0x3970d6(0x1a4)in _0x49f19c||_0x3970d6(0x313)in _0x49f19c||'codeExecutionResult'in _0x49f19c||_0x3970d6(0x236)in _0x49f19c;return![];}function _toParts(_0x3fa1e4){const _0x1e620b=a1_0x2f78,_0x1c87d9=[];if(typeof _0x3fa1e4===_0x1e620b(0x45a))_0x1c87d9[_0x1e620b(0x54b)](createPartFromText(_0x3fa1e4));else{if(_isPart(_0x3fa1e4))_0x1c87d9[_0x1e620b(0x54b)](_0x3fa1e4);else{if(Array[_0x1e620b(0x1e2)](_0x3fa1e4)){if(_0x3fa1e4[_0x1e620b(0x258)]===0x0)throw new Error(_0x1e620b(0x59c));for(const _0x190640 of _0x3fa1e4){if(typeof _0x190640===_0x1e620b(0x45a))_0x1c87d9[_0x1e620b(0x54b)](createPartFromText(_0x190640));else{if(_isPart(_0x190640))_0x1c87d9['push'](_0x190640);else throw new Error(_0x1e620b(0x385));}}}else throw new Error(_0x1e620b(0x547));}}return _0x1c87d9;}function createUserContent(_0x3197c6){return{'role':'user','parts':_toParts(_0x3197c6)};}function createModelContent(_0xf9b083){const _0x5c0884=a1_0x2f78;return{'role':_0x5c0884(0x210),'parts':_toParts(_0xf9b083)};}class HttpResponse{constructor(_0xdf75cf){const _0x3094b1=a1_0x2f78,_0xa35beb={};for(const _0x89516f of _0xdf75cf[_0x3094b1(0x2fa)]['entries']()){_0xa35beb[_0x89516f[0x0]]=_0x89516f[0x1];}this[_0x3094b1(0x2fa)]=_0xa35beb,this[_0x3094b1(0x402)]=_0xdf75cf;}['json'](){const _0x136c81=a1_0x2f78;return this[_0x136c81(0x402)][_0x136c81(0x648)]();}}class GenerateContentResponsePromptFeedback{}class GenerateContentResponseUsageMetadata{}class GenerateContentResponse{get[a1_0x54af01(0x205)](){const _0x5846d7=a1_0x54af01;var _0x169352,_0x93df0d,_0x47d15a,_0x291760,_0x295faf,_0x18c278,_0x32b786,_0x5c88c8;if(((_0x291760=(_0x47d15a=(_0x93df0d=(_0x169352=this[_0x5846d7(0x546)])===null||_0x169352===void 0x0?void 0x0:_0x169352[0x0])===null||_0x93df0d===void 0x0?void 0x0:_0x93df0d['content'])===null||_0x47d15a===void 0x0?void 0x0:_0x47d15a[_0x5846d7(0x4f7)])===null||_0x291760===void 0x0?void 0x0:_0x291760[_0x5846d7(0x258)])===0x0)return undefined;this[_0x5846d7(0x546)]&&this[_0x5846d7(0x546)][_0x5846d7(0x258)]>0x1&&console[_0x5846d7(0x44c)](_0x5846d7(0x4ac));let _0xa96882='',_0x540158=![];const _0x1b9bbc=[];for(const _0x21fa00 of(_0x5c88c8=(_0x32b786=(_0x18c278=(_0x295faf=this['candidates'])===null||_0x295faf===void 0x0?void 0x0:_0x295faf[0x0])===null||_0x18c278===void 0x0?void 0x0:_0x18c278['content'])===null||_0x32b786===void 0x0?void 0x0:_0x32b786[_0x5846d7(0x4f7)])!==null&&_0x5c88c8!==void 0x0?_0x5c88c8:[]){for(const [_0x5bba21,_0x5261a4]of Object[_0x5846d7(0x4a1)](_0x21fa00)){_0x5bba21!==_0x5846d7(0x205)&&_0x5bba21!==_0x5846d7(0x406)&&_0x5bba21!==_0x5846d7(0x56b)&&(_0x5261a4!==null||_0x5261a4!==undefined)&&_0x1b9bbc[_0x5846d7(0x54b)](_0x5bba21);}if(typeof _0x21fa00['text']===_0x5846d7(0x45a)){if(typeof _0x21fa00['thought']===_0x5846d7(0x5d4)&&_0x21fa00[_0x5846d7(0x406)])continue;_0x540158=!![],_0xa96882+=_0x21fa00[_0x5846d7(0x205)];}}return _0x1b9bbc[_0x5846d7(0x258)]>0x0&&console[_0x5846d7(0x44c)]('there\x20are\x20non-text\x20parts\x20'+_0x1b9bbc+_0x5846d7(0x341)),_0x540158?_0xa96882:undefined;}get['data'](){const _0x5ea0b0=a1_0x54af01;var _0x5c428c,_0x55a13b,_0x3a8c41,_0x1576a4,_0x3c9733,_0x314779,_0x3e4f4a,_0xd23bdc;if(((_0x1576a4=(_0x3a8c41=(_0x55a13b=(_0x5c428c=this['candidates'])===null||_0x5c428c===void 0x0?void 0x0:_0x5c428c[0x0])===null||_0x55a13b===void 0x0?void 0x0:_0x55a13b[_0x5ea0b0(0x1a9)])===null||_0x3a8c41===void 0x0?void 0x0:_0x3a8c41[_0x5ea0b0(0x4f7)])===null||_0x1576a4===void 0x0?void 0x0:_0x1576a4[_0x5ea0b0(0x258)])===0x0)return undefined;this[_0x5ea0b0(0x546)]&&this[_0x5ea0b0(0x546)][_0x5ea0b0(0x258)]>0x1&&console['warn'](_0x5ea0b0(0x2c6));let _0x53c776='';const _0x1c7731=[];for(const _0x567dd3 of(_0xd23bdc=(_0x3e4f4a=(_0x314779=(_0x3c9733=this[_0x5ea0b0(0x546)])===null||_0x3c9733===void 0x0?void 0x0:_0x3c9733[0x0])===null||_0x314779===void 0x0?void 0x0:_0x314779[_0x5ea0b0(0x1a9)])===null||_0x3e4f4a===void 0x0?void 0x0:_0x3e4f4a[_0x5ea0b0(0x4f7)])!==null&&_0xd23bdc!==void 0x0?_0xd23bdc:[]){for(const [_0x5dd370,_0x39f102]of Object[_0x5ea0b0(0x4a1)](_0x567dd3)){_0x5dd370!=='inlineData'&&(_0x39f102!==null||_0x39f102!==undefined)&&_0x1c7731[_0x5ea0b0(0x54b)](_0x5dd370);}_0x567dd3['inlineData']&&typeof _0x567dd3['inlineData'][_0x5ea0b0(0x354)]===_0x5ea0b0(0x45a)&&(_0x53c776+=atob(_0x567dd3['inlineData'][_0x5ea0b0(0x354)]));}return _0x1c7731[_0x5ea0b0(0x258)]>0x0&&console[_0x5ea0b0(0x44c)](_0x5ea0b0(0x32c)+_0x1c7731+_0x5ea0b0(0x53c)),_0x53c776['length']>0x0?btoa(_0x53c776):undefined;}get[a1_0x54af01(0x1e0)](){const _0x967c35=a1_0x54af01;var _0x52ccf4,_0x24b39f,_0x1cecf7,_0x9c0315,_0x4f4a5c,_0x3533cc,_0x566383,_0x519b92;if(((_0x9c0315=(_0x1cecf7=(_0x24b39f=(_0x52ccf4=this[_0x967c35(0x546)])===null||_0x52ccf4===void 0x0?void 0x0:_0x52ccf4[0x0])===null||_0x24b39f===void 0x0?void 0x0:_0x24b39f[_0x967c35(0x1a9)])===null||_0x1cecf7===void 0x0?void 0x0:_0x1cecf7[_0x967c35(0x4f7)])===null||_0x9c0315===void 0x0?void 0x0:_0x9c0315[_0x967c35(0x258)])===0x0)return undefined;this['candidates']&&this['candidates'][_0x967c35(0x258)]>0x1&&console[_0x967c35(0x44c)](_0x967c35(0x328));const _0x59ba41=(_0x519b92=(_0x566383=(_0x3533cc=(_0x4f4a5c=this['candidates'])===null||_0x4f4a5c===void 0x0?void 0x0:_0x4f4a5c[0x0])===null||_0x3533cc===void 0x0?void 0x0:_0x3533cc[_0x967c35(0x1a9)])===null||_0x566383===void 0x0?void 0x0:_0x566383['parts'])===null||_0x519b92===void 0x0?void 0x0:_0x519b92['filter'](_0x5e97e1=>_0x5e97e1[_0x967c35(0x397)])[_0x967c35(0x261)](_0x3798a9=>_0x3798a9['functionCall'])[_0x967c35(0x61b)](_0x100b80=>_0x100b80!==undefined);if((_0x59ba41===null||_0x59ba41===void 0x0?void 0x0:_0x59ba41[_0x967c35(0x258)])===0x0)return undefined;return _0x59ba41;}get[a1_0x54af01(0x236)](){const _0x50c498=a1_0x54af01;var _0x1ffbb1,_0xf9a08a,_0x177853,_0x1318c6,_0x53eb6a,_0x16c237,_0x2a539a,_0xa7619f,_0x54a7b7;if(((_0x1318c6=(_0x177853=(_0xf9a08a=(_0x1ffbb1=this[_0x50c498(0x546)])===null||_0x1ffbb1===void 0x0?void 0x0:_0x1ffbb1[0x0])===null||_0xf9a08a===void 0x0?void 0x0:_0xf9a08a[_0x50c498(0x1a9)])===null||_0x177853===void 0x0?void 0x0:_0x177853['parts'])===null||_0x1318c6===void 0x0?void 0x0:_0x1318c6[_0x50c498(0x258)])===0x0)return undefined;this[_0x50c498(0x546)]&&this[_0x50c498(0x546)]['length']>0x1&&console['warn'](_0x50c498(0x4ec));const _0x331cac=(_0xa7619f=(_0x2a539a=(_0x16c237=(_0x53eb6a=this[_0x50c498(0x546)])===null||_0x53eb6a===void 0x0?void 0x0:_0x53eb6a[0x0])===null||_0x16c237===void 0x0?void 0x0:_0x16c237[_0x50c498(0x1a9)])===null||_0x2a539a===void 0x0?void 0x0:_0x2a539a['parts'])===null||_0xa7619f===void 0x0?void 0x0:_0xa7619f[_0x50c498(0x61b)](_0x29dd07=>_0x29dd07[_0x50c498(0x236)])[_0x50c498(0x261)](_0x344580=>_0x344580[_0x50c498(0x236)])[_0x50c498(0x61b)](_0x345007=>_0x345007!==undefined);if((_0x331cac===null||_0x331cac===void 0x0?void 0x0:_0x331cac['length'])===0x0)return undefined;return(_0x54a7b7=_0x331cac===null||_0x331cac===void 0x0?void 0x0:_0x331cac[0x0])===null||_0x54a7b7===void 0x0?void 0x0:_0x54a7b7[_0x50c498(0x477)];}get[a1_0x54af01(0x6c6)](){const _0x3ee764=a1_0x54af01;var _0x3aee2c,_0x2582cb,_0x3577bf,_0x7be290,_0x2c236e,_0x45eedb,_0x1f9813,_0x31d831,_0x1ce3e1;if(((_0x7be290=(_0x3577bf=(_0x2582cb=(_0x3aee2c=this[_0x3ee764(0x546)])===null||_0x3aee2c===void 0x0?void 0x0:_0x3aee2c[0x0])===null||_0x2582cb===void 0x0?void 0x0:_0x2582cb[_0x3ee764(0x1a9)])===null||_0x3577bf===void 0x0?void 0x0:_0x3577bf[_0x3ee764(0x4f7)])===null||_0x7be290===void 0x0?void 0x0:_0x7be290[_0x3ee764(0x258)])===0x0)return undefined;this[_0x3ee764(0x546)]&&this['candidates'][_0x3ee764(0x258)]>0x1&&console[_0x3ee764(0x44c)](_0x3ee764(0x597));const _0x571d88=(_0x31d831=(_0x1f9813=(_0x45eedb=(_0x2c236e=this['candidates'])===null||_0x2c236e===void 0x0?void 0x0:_0x2c236e[0x0])===null||_0x45eedb===void 0x0?void 0x0:_0x45eedb[_0x3ee764(0x1a9)])===null||_0x1f9813===void 0x0?void 0x0:_0x1f9813[_0x3ee764(0x4f7)])===null||_0x31d831===void 0x0?void 0x0:_0x31d831[_0x3ee764(0x61b)](_0x232aa0=>_0x232aa0['codeExecutionResult'])['map'](_0x55c46e=>_0x55c46e[_0x3ee764(0x6c6)])[_0x3ee764(0x61b)](_0x4713d0=>_0x4713d0!==undefined);if((_0x571d88===null||_0x571d88===void 0x0?void 0x0:_0x571d88[_0x3ee764(0x258)])===0x0)return undefined;return(_0x1ce3e1=_0x571d88===null||_0x571d88===void 0x0?void 0x0:_0x571d88[0x0])===null||_0x1ce3e1===void 0x0?void 0x0:_0x1ce3e1[_0x3ee764(0x4e4)];}}class EmbedContentResponse{}class GenerateImagesResponse{}class EditImageResponse{}class UpscaleImageResponse{}class RecontextImageResponse{}class SegmentImageResponse{}class ListModelsResponse{}class DeleteModelResponse{}class CountTokensResponse{}class ComputeTokensResponse{}class GenerateVideosResponse{}class GenerateVideosOperation{[a1_0x54af01(0x666)]({apiResponse:_0x7f9547,_isVertexAI:_0xe8033e}){const _0x40742d=a1_0x54af01,_0x9477d3=new GenerateVideosOperation();let _0x51fc7c;const _0x1897e1=_0x7f9547;return _0xe8033e?_0x51fc7c=generateVideosOperationFromVertex$1(_0x1897e1):_0x51fc7c=generateVideosOperationFromMldev$1(_0x1897e1),Object[_0x40742d(0x541)](_0x9477d3,_0x51fc7c),_0x9477d3;}}class ListTuningJobsResponse{}class CancelTuningJobResponse{}class DeleteCachedContentResponse{}class ListCachedContentsResponse{}class ListDocumentsResponse{}class ListFileSearchStoresResponse{}class UploadToFileSearchStoreResumableResponse{}class ImportFileResponse{}class ImportFileOperation{[a1_0x54af01(0x666)]({apiResponse:_0x5b0233,_isVertexAI:_0x41bf04}){const _0x2322e4=new ImportFileOperation(),_0x186099=_0x5b0233,_0x32bb04=importFileOperationFromMldev$1(_0x186099);return Object['assign'](_0x2322e4,_0x32bb04),_0x2322e4;}}class ListFilesResponse{}class CreateFileResponse{}class DeleteFileResponse{}class RegisterFilesResponse{}class InlinedResponse{}class SingleEmbedContentResponse{}class InlinedEmbedContentResponse{}class ListBatchJobsResponse{}class ReplayResponse{}class RawReferenceImage{['toReferenceImageAPI'](){const _0x3c52af=a1_0x54af01,_0x1859c6={'referenceType':_0x3c52af(0x6c4),'referenceImage':this['referenceImage'],'referenceId':this[_0x3c52af(0x20b)]};return _0x1859c6;}}class MaskReferenceImage{[a1_0x54af01(0x24e)](){const _0x1f36ab=a1_0x54af01,_0x2b754e={'referenceType':_0x1f36ab(0x388),'referenceImage':this[_0x1f36ab(0x237)],'referenceId':this['referenceId'],'maskImageConfig':this[_0x1f36ab(0x1b0)]};return _0x2b754e;}}class ControlReferenceImage{[a1_0x54af01(0x24e)](){const _0x1eeca3=a1_0x54af01,_0x702a2d={'referenceType':'REFERENCE_TYPE_CONTROL','referenceImage':this[_0x1eeca3(0x237)],'referenceId':this[_0x1eeca3(0x20b)],'controlImageConfig':this[_0x1eeca3(0x1b0)]};return _0x702a2d;}}class StyleReferenceImage{[a1_0x54af01(0x24e)](){const _0x4f6d48=a1_0x54af01,_0x52089f={'referenceType':'REFERENCE_TYPE_STYLE','referenceImage':this[_0x4f6d48(0x237)],'referenceId':this['referenceId'],'styleImageConfig':this[_0x4f6d48(0x1b0)]};return _0x52089f;}}class SubjectReferenceImage{[a1_0x54af01(0x24e)](){const _0x2a6f1d=a1_0x54af01,_0x466809={'referenceType':'REFERENCE_TYPE_SUBJECT','referenceImage':this[_0x2a6f1d(0x237)],'referenceId':this[_0x2a6f1d(0x20b)],'subjectImageConfig':this[_0x2a6f1d(0x1b0)]};return _0x466809;}}class ContentReferenceImage{[a1_0x54af01(0x24e)](){const _0x2837ed=a1_0x54af01,_0x2e6edd={'referenceType':_0x2837ed(0x659),'referenceImage':this[_0x2837ed(0x237)],'referenceId':this[_0x2837ed(0x20b)]};return _0x2e6edd;}}class LiveServerMessage{get['text'](){const _0x2d4210=a1_0x54af01;var _0x43e745,_0x52cefd,_0x33ebff;let _0x2cb57b='',_0x174a76=![];const _0x3c9d6a=[];for(const _0x147828 of(_0x33ebff=(_0x52cefd=(_0x43e745=this[_0x2d4210(0x3a7)])===null||_0x43e745===void 0x0?void 0x0:_0x43e745[_0x2d4210(0x244)])===null||_0x52cefd===void 0x0?void 0x0:_0x52cefd['parts'])!==null&&_0x33ebff!==void 0x0?_0x33ebff:[]){for(const [_0x1422d9,_0x4c6556]of Object[_0x2d4210(0x4a1)](_0x147828)){_0x1422d9!==_0x2d4210(0x205)&&_0x1422d9!=='thought'&&_0x4c6556!==null&&_0x3c9d6a['push'](_0x1422d9);}if(typeof _0x147828[_0x2d4210(0x205)]===_0x2d4210(0x45a)){if(typeof _0x147828[_0x2d4210(0x406)]===_0x2d4210(0x5d4)&&_0x147828[_0x2d4210(0x406)])continue;_0x174a76=!![],_0x2cb57b+=_0x147828[_0x2d4210(0x205)];}}return _0x3c9d6a['length']>0x0&&console[_0x2d4210(0x44c)]('there\x20are\x20non-text\x20parts\x20'+_0x3c9d6a+_0x2d4210(0x341)),_0x174a76?_0x2cb57b:undefined;}get[a1_0x54af01(0x354)](){const _0x4d94de=a1_0x54af01;var _0x46ca07,_0x20f2a5,_0x1abc85;let _0x456582='';const _0x20d042=[];for(const _0x310e67 of(_0x1abc85=(_0x20f2a5=(_0x46ca07=this[_0x4d94de(0x3a7)])===null||_0x46ca07===void 0x0?void 0x0:_0x46ca07[_0x4d94de(0x244)])===null||_0x20f2a5===void 0x0?void 0x0:_0x20f2a5['parts'])!==null&&_0x1abc85!==void 0x0?_0x1abc85:[]){for(const [_0x587ff0,_0x7b1ee1]of Object['entries'](_0x310e67)){_0x587ff0!==_0x4d94de(0x1a4)&&_0x7b1ee1!==null&&_0x20d042[_0x4d94de(0x54b)](_0x587ff0);}_0x310e67['inlineData']&&typeof _0x310e67[_0x4d94de(0x1a4)][_0x4d94de(0x354)]===_0x4d94de(0x45a)&&(_0x456582+=atob(_0x310e67[_0x4d94de(0x1a4)][_0x4d94de(0x354)]));}return _0x20d042[_0x4d94de(0x258)]>0x0&&console[_0x4d94de(0x44c)]('there\x20are\x20non-data\x20parts\x20'+_0x20d042+_0x4d94de(0x53c)),_0x456582[_0x4d94de(0x258)]>0x0?btoa(_0x456582):undefined;}}class LiveClientToolResponse{}class LiveSendToolResponseParameters{constructor(){this['functionResponses']=[];}}class LiveMusicServerMessage{get[a1_0x54af01(0x375)](){const _0xf9c7ad=a1_0x54af01;if(this[_0xf9c7ad(0x3a7)]&&this[_0xf9c7ad(0x3a7)][_0xf9c7ad(0x2c1)]&&this[_0xf9c7ad(0x3a7)][_0xf9c7ad(0x2c1)][_0xf9c7ad(0x258)]>0x0)return this[_0xf9c7ad(0x3a7)]['audioChunks'][0x0];return undefined;}}class UploadToFileSearchStoreResponse{}class UploadToFileSearchStoreOperation{[a1_0x54af01(0x666)]({apiResponse:_0x547d22,_isVertexAI:_0x50b19a}){const _0x4834c8=a1_0x54af01,_0x404b7e=new UploadToFileSearchStoreOperation(),_0x24e438=_0x547d22,_0x155cee=uploadToFileSearchStoreOperationFromMldev(_0x24e438);return Object[_0x4834c8(0x541)](_0x404b7e,_0x155cee),_0x404b7e;}}/**
27
+ * @license
28
+ * Copyright 2025 Google LLC
29
+ * SPDX-License-Identifier: Apache-2.0
30
+ */
31
+ function tModel(_0x28b712,_0x414c97){const _0x54935c=a1_0x54af01;if(!_0x414c97||typeof _0x414c97!=='string')throw new Error(_0x54935c(0x386));if(_0x414c97[_0x54935c(0x563)]('..')||_0x414c97[_0x54935c(0x563)]('?')||_0x414c97['includes']('&'))throw new Error('invalid\x20model\x20parameter');if(_0x28b712[_0x54935c(0x29b)]()){if(_0x414c97[_0x54935c(0x55d)](_0x54935c(0x287))||_0x414c97[_0x54935c(0x55d)](_0x54935c(0x353))||_0x414c97[_0x54935c(0x55d)]('models/'))return _0x414c97;else{if(_0x414c97[_0x54935c(0x632)]('/')>=0x0){const _0x2e31df=_0x414c97[_0x54935c(0x22a)]('/',0x2);return'publishers/'+_0x2e31df[0x0]+_0x54935c(0x26b)+_0x2e31df[0x1];}else return _0x54935c(0x516)+_0x414c97;}}else return _0x414c97[_0x54935c(0x55d)](_0x54935c(0x454))||_0x414c97[_0x54935c(0x55d)](_0x54935c(0x186))?_0x414c97:_0x54935c(0x454)+_0x414c97;}function tCachesModel(_0x18cfa7,_0x40d17f){const _0x3ff474=a1_0x54af01,_0x69dd82=tModel(_0x18cfa7,_0x40d17f);if(!_0x69dd82)return'';if(_0x69dd82[_0x3ff474(0x55d)](_0x3ff474(0x287))&&_0x18cfa7[_0x3ff474(0x29b)]())return _0x3ff474(0x353)+_0x18cfa7[_0x3ff474(0x549)]()+'/locations/'+_0x18cfa7[_0x3ff474(0x1ea)]()+'/'+_0x69dd82;else return _0x69dd82[_0x3ff474(0x55d)](_0x3ff474(0x454))&&_0x18cfa7[_0x3ff474(0x29b)]()?_0x3ff474(0x353)+_0x18cfa7[_0x3ff474(0x549)]()+_0x3ff474(0x1e9)+_0x18cfa7[_0x3ff474(0x1ea)]()+_0x3ff474(0x2e9)+_0x69dd82:_0x69dd82;}function tBlobs(_0x575b9c){const _0x40528c=a1_0x54af01;return Array[_0x40528c(0x1e2)](_0x575b9c)?_0x575b9c[_0x40528c(0x261)](_0x2bed4e=>tBlob(_0x2bed4e)):[tBlob(_0x575b9c)];}function tBlob(_0x1953b8){const _0x33891a=a1_0x54af01;if(typeof _0x1953b8===_0x33891a(0x34b)&&_0x1953b8!==null)return _0x1953b8;throw new Error(_0x33891a(0x478)+typeof _0x1953b8);}function tImageBlob(_0x1e46af){const _0x4ec4f9=a1_0x54af01,_0x486aa9=tBlob(_0x1e46af);if(_0x486aa9['mimeType']&&_0x486aa9[_0x4ec4f9(0x2cd)]['startsWith'](_0x4ec4f9(0x4dd)))return _0x486aa9;throw new Error(_0x4ec4f9(0x25d)+_0x486aa9[_0x4ec4f9(0x2cd)]);}function tAudioBlob(_0x4282ee){const _0x2809ff=a1_0x54af01,_0x2c45db=tBlob(_0x4282ee);if(_0x2c45db['mimeType']&&_0x2c45db[_0x2809ff(0x2cd)][_0x2809ff(0x55d)]('audio/'))return _0x2c45db;throw new Error(_0x2809ff(0x25d)+_0x2c45db[_0x2809ff(0x2cd)]);}function tPart(_0x7f649f){const _0x59d89a=a1_0x54af01;if(_0x7f649f===null||_0x7f649f===undefined)throw new Error(_0x59d89a(0x24a));if(typeof _0x7f649f===_0x59d89a(0x34b))return _0x7f649f;if(typeof _0x7f649f==='string')return{'text':_0x7f649f};throw new Error(_0x59d89a(0x1ff)+typeof _0x7f649f);}function tParts(_0x34dc29){const _0x41312f=a1_0x54af01;if(_0x34dc29===null||_0x34dc29===undefined||Array[_0x41312f(0x1e2)](_0x34dc29)&&_0x34dc29['length']===0x0)throw new Error(_0x41312f(0x67b));if(Array[_0x41312f(0x1e2)](_0x34dc29))return _0x34dc29[_0x41312f(0x261)](_0x290f32=>tPart(_0x290f32));return[tPart(_0x34dc29)];}function _isContent(_0x3f53dc){const _0x12f2ea=a1_0x54af01;return _0x3f53dc!==null&&_0x3f53dc!==undefined&&typeof _0x3f53dc===_0x12f2ea(0x34b)&&_0x12f2ea(0x4f7)in _0x3f53dc&&Array[_0x12f2ea(0x1e2)](_0x3f53dc[_0x12f2ea(0x4f7)]);}function _isFunctionCallPart(_0xe0e0a2){const _0x32b2fa=a1_0x54af01;return _0xe0e0a2!==null&&_0xe0e0a2!==undefined&&typeof _0xe0e0a2==='object'&&_0x32b2fa(0x397)in _0xe0e0a2;}function _isFunctionResponsePart(_0x59b8d9){const _0x1bdab5=a1_0x54af01;return _0x59b8d9!==null&&_0x59b8d9!==undefined&&typeof _0x59b8d9===_0x1bdab5(0x34b)&&'functionResponse'in _0x59b8d9;}function tContent(_0x18e0d7){const _0x50c517=a1_0x54af01;if(_0x18e0d7===null||_0x18e0d7===undefined)throw new Error(_0x50c517(0x2a2));if(_isContent(_0x18e0d7))return _0x18e0d7;return{'role':_0x50c517(0x517),'parts':tParts(_0x18e0d7)};}function tContentsForEmbed(_0x597abe,_0x305c54){const _0x6c9247=a1_0x54af01;if(!_0x305c54)return[];if(_0x597abe[_0x6c9247(0x29b)]()&&Array[_0x6c9247(0x1e2)](_0x305c54))return _0x305c54[_0x6c9247(0x1d4)](_0x55be51=>{const _0x1fc7d1=_0x6c9247,_0x5915c2=tContent(_0x55be51);if(_0x5915c2[_0x1fc7d1(0x4f7)]&&_0x5915c2[_0x1fc7d1(0x4f7)]['length']>0x0&&_0x5915c2[_0x1fc7d1(0x4f7)][0x0][_0x1fc7d1(0x205)]!==undefined)return[_0x5915c2[_0x1fc7d1(0x4f7)][0x0][_0x1fc7d1(0x205)]];return[];});else{if(_0x597abe[_0x6c9247(0x29b)]()){const _0x30e215=tContent(_0x305c54);if(_0x30e215[_0x6c9247(0x4f7)]&&_0x30e215['parts'][_0x6c9247(0x258)]>0x0&&_0x30e215[_0x6c9247(0x4f7)][0x0][_0x6c9247(0x205)]!==undefined)return[_0x30e215[_0x6c9247(0x4f7)][0x0][_0x6c9247(0x205)]];return[];}}if(Array[_0x6c9247(0x1e2)](_0x305c54))return _0x305c54[_0x6c9247(0x261)](_0x16008a=>tContent(_0x16008a));return[tContent(_0x305c54)];}function tContents(_0xc5a273){const _0x1421e0=a1_0x54af01;if(_0xc5a273===null||_0xc5a273===undefined||Array['isArray'](_0xc5a273)&&_0xc5a273[_0x1421e0(0x258)]===0x0)throw new Error(_0x1421e0(0x639));if(!Array[_0x1421e0(0x1e2)](_0xc5a273)){if(_isFunctionCallPart(_0xc5a273)||_isFunctionResponsePart(_0xc5a273))throw new Error('To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them\x20in\x20a\x20Content\x20object,\x20specifying\x20the\x20role\x20for\x20them');return[tContent(_0xc5a273)];}const _0x5c9fa5=[],_0x4311f9=[],_0xb4cae7=_isContent(_0xc5a273[0x0]);for(const _0x15288d of _0xc5a273){const _0x398870=_isContent(_0x15288d);if(_0x398870!=_0xb4cae7)throw new Error(_0x1421e0(0x681));if(_0x398870)_0x5c9fa5[_0x1421e0(0x54b)](_0x15288d);else{if(_isFunctionCallPart(_0x15288d)||_isFunctionResponsePart(_0x15288d))throw new Error(_0x1421e0(0x349));else _0x4311f9['push'](_0x15288d);}}return!_0xb4cae7&&_0x5c9fa5[_0x1421e0(0x54b)]({'role':_0x1421e0(0x517),'parts':tParts(_0x4311f9)}),_0x5c9fa5;}function flattenTypeArrayToAnyOf(_0x134005,_0xa74d12){const _0x1ecb8c=a1_0x54af01;_0x134005[_0x1ecb8c(0x563)](_0x1ecb8c(0x178))&&(_0xa74d12['nullable']=!![]);const _0x18c4fd=_0x134005[_0x1ecb8c(0x61b)](_0x3281c6=>_0x3281c6!==_0x1ecb8c(0x178));if(_0x18c4fd[_0x1ecb8c(0x258)]===0x1)_0xa74d12['type']=Object[_0x1ecb8c(0x38a)](Type)[_0x1ecb8c(0x563)](_0x18c4fd[0x0][_0x1ecb8c(0x316)]())?_0x18c4fd[0x0][_0x1ecb8c(0x316)]():Type[_0x1ecb8c(0x3ac)];else{_0xa74d12[_0x1ecb8c(0x2b7)]=[];for(const _0x347e79 of _0x18c4fd){_0xa74d12['anyOf'][_0x1ecb8c(0x54b)]({'type':Object['values'](Type)[_0x1ecb8c(0x563)](_0x347e79[_0x1ecb8c(0x316)]())?_0x347e79['toUpperCase']():Type[_0x1ecb8c(0x3ac)]});}}}function processJsonSchema(_0x304af0){const _0x249a27=a1_0x54af01,_0x1a9223={},_0x307302=[_0x249a27(0x394)],_0x1667df=[_0x249a27(0x2b7)],_0xbfe55d=[_0x249a27(0x69a)];if(_0x304af0[_0x249a27(0x311)]&&_0x304af0[_0x249a27(0x2b7)])throw new Error('type\x20and\x20anyOf\x20cannot\x20be\x20both\x20populated.');const _0x2286a8=_0x304af0['anyOf'];if(_0x2286a8!=null&&_0x2286a8[_0x249a27(0x258)]==0x2){if(_0x2286a8[0x0][_0x249a27(0x311)]===_0x249a27(0x178))_0x1a9223['nullable']=!![],_0x304af0=_0x2286a8[0x1];else _0x2286a8[0x1][_0x249a27(0x311)]===_0x249a27(0x178)&&(_0x1a9223[_0x249a27(0x448)]=!![],_0x304af0=_0x2286a8[0x0]);}_0x304af0[_0x249a27(0x311)]instanceof Array&&flattenTypeArrayToAnyOf(_0x304af0[_0x249a27(0x311)],_0x1a9223);for(const [_0xc34269,_0x33ef99]of Object[_0x249a27(0x4a1)](_0x304af0)){if(_0x33ef99==null)continue;if(_0xc34269=='type'){if(_0x33ef99==='null')throw new Error(_0x249a27(0x5e9));if(_0x33ef99 instanceof Array)continue;_0x1a9223[_0x249a27(0x311)]=Object[_0x249a27(0x38a)](Type)[_0x249a27(0x563)](_0x33ef99[_0x249a27(0x316)]())?_0x33ef99[_0x249a27(0x316)]():Type[_0x249a27(0x3ac)];}else{if(_0x307302['includes'](_0xc34269))_0x1a9223[_0xc34269]=processJsonSchema(_0x33ef99);else{if(_0x1667df[_0x249a27(0x563)](_0xc34269)){const _0x4271f1=[];for(const _0x262330 of _0x33ef99){if(_0x262330['type']==_0x249a27(0x178)){_0x1a9223[_0x249a27(0x448)]=!![];continue;}_0x4271f1[_0x249a27(0x54b)](processJsonSchema(_0x262330));}_0x1a9223[_0xc34269]=_0x4271f1;}else{if(_0xbfe55d[_0x249a27(0x563)](_0xc34269)){const _0xacd607={};for(const [_0x2c7271,_0x2c0a5c]of Object[_0x249a27(0x4a1)](_0x33ef99)){_0xacd607[_0x2c7271]=processJsonSchema(_0x2c0a5c);}_0x1a9223[_0xc34269]=_0xacd607;}else{if(_0xc34269===_0x249a27(0x265))continue;_0x1a9223[_0xc34269]=_0x33ef99;}}}}}return _0x1a9223;}function tSchema(_0xc0eb00){return processJsonSchema(_0xc0eb00);}function tSpeechConfig(_0x275445){const _0x3952a9=a1_0x54af01;if(typeof _0x275445===_0x3952a9(0x34b))return _0x275445;else{if(typeof _0x275445===_0x3952a9(0x45a))return{'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':_0x275445}}};else throw new Error(_0x3952a9(0x3cb)+typeof _0x275445);}}function tLiveSpeechConfig(_0x1083ad){const _0x3b32a1=a1_0x54af01;if(_0x3b32a1(0x39e)in _0x1083ad)throw new Error(_0x3b32a1(0x530));return _0x1083ad;}function tTool(_0x2aec06){const _0x128304=a1_0x54af01;if(_0x2aec06['functionDeclarations'])for(const _0x978380 of _0x2aec06['functionDeclarations']){_0x978380['parameters']&&(!Object[_0x128304(0x51c)](_0x978380['parameters'])[_0x128304(0x563)]('$schema')?_0x978380[_0x128304(0x684)]=processJsonSchema(_0x978380[_0x128304(0x684)]):!_0x978380[_0x128304(0x524)]&&(_0x978380[_0x128304(0x524)]=_0x978380[_0x128304(0x684)],delete _0x978380[_0x128304(0x684)])),_0x978380[_0x128304(0x575)]&&(!Object[_0x128304(0x51c)](_0x978380['response'])[_0x128304(0x563)](_0x128304(0x407))?_0x978380[_0x128304(0x575)]=processJsonSchema(_0x978380[_0x128304(0x575)]):!_0x978380['responseJsonSchema']&&(_0x978380[_0x128304(0x436)]=_0x978380[_0x128304(0x575)],delete _0x978380[_0x128304(0x575)]));}return _0x2aec06;}function tTools(_0x4a5075){const _0x617fd7=a1_0x54af01;if(_0x4a5075===undefined||_0x4a5075===null)throw new Error('tools\x20is\x20required');if(!Array['isArray'](_0x4a5075))throw new Error(_0x617fd7(0x634));const _0x3bf645=[];for(const _0x4aab5e of _0x4a5075){_0x3bf645['push'](_0x4aab5e);}return _0x3bf645;}function resourceName(_0x559510,_0x20db02,_0x157b17,_0x135bc6=0x1){const _0xbec36c=a1_0x54af01,_0x13d9e7=!_0x20db02['startsWith'](_0x157b17+'/')&&_0x20db02[_0xbec36c(0x22a)]('/')[_0xbec36c(0x258)]===_0x135bc6;if(_0x559510[_0xbec36c(0x29b)]()){if(_0x20db02[_0xbec36c(0x55d)]('projects/'))return _0x20db02;else{if(_0x20db02[_0xbec36c(0x55d)]('locations/'))return _0xbec36c(0x353)+_0x559510[_0xbec36c(0x549)]()+'/'+_0x20db02;else{if(_0x20db02['startsWith'](_0x157b17+'/'))return'projects/'+_0x559510[_0xbec36c(0x549)]()+_0xbec36c(0x1e9)+_0x559510['getLocation']()+'/'+_0x20db02;else return _0x13d9e7?_0xbec36c(0x353)+_0x559510['getProject']()+_0xbec36c(0x1e9)+_0x559510[_0xbec36c(0x1ea)]()+'/'+_0x157b17+'/'+_0x20db02:_0x20db02;}}}if(_0x13d9e7)return _0x157b17+'/'+_0x20db02;return _0x20db02;}function tCachedContentName(_0x4caf9a,_0x5036d0){const _0x3736b4=a1_0x54af01;if(typeof _0x5036d0!==_0x3736b4(0x45a))throw new Error(_0x3736b4(0x2a1));return resourceName(_0x4caf9a,_0x5036d0,_0x3736b4(0x677));}function tTuningJobStatus(_0xebeb59){const _0x2d721f=a1_0x54af01;switch(_0xebeb59){case'STATE_UNSPECIFIED':return _0x2d721f(0x447);case _0x2d721f(0x471):return _0x2d721f(0x6af);case _0x2d721f(0x376):return'JOB_STATE_SUCCEEDED';case'FAILED':return _0x2d721f(0x220);default:return _0xebeb59;}}function tBytes(_0x2d80b2){return tBytes$1(_0x2d80b2);}function _isFile(_0x3561cb){const _0x151c43=a1_0x54af01;return _0x3561cb!==null&&_0x3561cb!==undefined&&typeof _0x3561cb==='object'&&_0x151c43(0x24b)in _0x3561cb;}function isGeneratedVideo(_0x59dd51){const _0x3785a9=a1_0x54af01;return _0x59dd51!==null&&_0x59dd51!==undefined&&typeof _0x59dd51===_0x3785a9(0x34b)&&_0x3785a9(0x246)in _0x59dd51;}function isVideo(_0x3ee534){const _0xf715a4=a1_0x54af01;return _0x3ee534!==null&&_0x3ee534!==undefined&&typeof _0x3ee534==='object'&&_0xf715a4(0x4c1)in _0x3ee534;}function tFileName(_0x597cdc){const _0xfc1986=a1_0x54af01;var _0x2988f7;let _0x101d9f;_isFile(_0x597cdc)&&(_0x101d9f=_0x597cdc['name']);if(isVideo(_0x597cdc)){_0x101d9f=_0x597cdc[_0xfc1986(0x4c1)];if(_0x101d9f===undefined)return undefined;}if(isGeneratedVideo(_0x597cdc)){_0x101d9f=(_0x2988f7=_0x597cdc[_0xfc1986(0x246)])===null||_0x2988f7===void 0x0?void 0x0:_0x2988f7[_0xfc1986(0x4c1)];if(_0x101d9f===undefined)return undefined;}typeof _0x597cdc==='string'&&(_0x101d9f=_0x597cdc);if(_0x101d9f===undefined)throw new Error(_0xfc1986(0x69f));if(_0x101d9f[_0xfc1986(0x55d)](_0xfc1986(0x18a))){const _0x299f5a=_0x101d9f['split'](_0xfc1986(0x19d))[0x1],_0x511031=_0x299f5a[_0xfc1986(0x35d)](/[a-z0-9]+/);if(_0x511031===null)throw new Error(_0xfc1986(0x621)+_0x101d9f);_0x101d9f=_0x511031[0x0];}else _0x101d9f[_0xfc1986(0x55d)](_0xfc1986(0x19d))&&(_0x101d9f=_0x101d9f[_0xfc1986(0x22a)](_0xfc1986(0x19d))[0x1]);return _0x101d9f;}function tModelsUrl(_0xe675f3,_0x548694){const _0x1f6ae1=a1_0x54af01;let _0xe4af04;return _0xe675f3[_0x1f6ae1(0x29b)]()?_0xe4af04=_0x548694?'publishers/google/models':'models':_0xe4af04=_0x548694?_0x1f6ae1(0x475):'tunedModels',_0xe4af04;}function tExtractModels(_0x334f19){const _0x58f316=a1_0x54af01;for(const _0x4f32ef of[_0x58f316(0x475),_0x58f316(0x4b3),_0x58f316(0x609)]){if(hasField(_0x334f19,_0x4f32ef))return _0x334f19[_0x4f32ef];}return[];}function hasField(_0x56e18d,_0x16d4c6){const _0x5b7fb9=a1_0x54af01;return _0x56e18d!==null&&typeof _0x56e18d===_0x5b7fb9(0x34b)&&_0x16d4c6 in _0x56e18d;}function mcpToGeminiTool(_0x2c6334,_0x1d686c={}){const _0x1929bb=a1_0x54af01,_0x3bf1ab=_0x2c6334,_0x362163={'name':_0x3bf1ab[_0x1929bb(0x24b)],'description':_0x3bf1ab[_0x1929bb(0x31f)],'parametersJsonSchema':_0x3bf1ab[_0x1929bb(0x20a)]};_0x3bf1ab[_0x1929bb(0x60c)]&&(_0x362163[_0x1929bb(0x436)]=_0x3bf1ab[_0x1929bb(0x60c)]);_0x1d686c[_0x1929bb(0x2dc)]&&(_0x362163[_0x1929bb(0x2dc)]=_0x1d686c[_0x1929bb(0x2dc)]);const _0x57c26f={'functionDeclarations':[_0x362163]};return _0x57c26f;}function mcpToolsToGeminiTool(_0x4dacd2,_0x5394da={}){const _0x6b1933=a1_0x54af01,_0x475df9=[],_0x53b3cd=new Set();for(const _0x21e1cc of _0x4dacd2){const _0x5d382b=_0x21e1cc['name'];if(_0x53b3cd['has'](_0x5d382b))throw new Error(_0x6b1933(0x1b1)+_0x5d382b+'\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.');_0x53b3cd[_0x6b1933(0x235)](_0x5d382b);const _0x3006cc=mcpToGeminiTool(_0x21e1cc,_0x5394da);_0x3006cc['functionDeclarations']&&_0x475df9['push'](..._0x3006cc[_0x6b1933(0x4fa)]);}return{'functionDeclarations':_0x475df9};}function tBatchJobSource(_0x424150,_0x423f5d){const _0x3a1ac5=a1_0x54af01;let _0x65a039;if(typeof _0x423f5d===_0x3a1ac5(0x45a)){if(_0x424150[_0x3a1ac5(0x29b)]()){if(_0x423f5d[_0x3a1ac5(0x55d)](_0x3a1ac5(0x3bb)))_0x65a039={'format':_0x3a1ac5(0x2b1),'gcsUri':[_0x423f5d]};else{if(_0x423f5d['startsWith'](_0x3a1ac5(0x3db)))_0x65a039={'format':_0x3a1ac5(0x280),'bigqueryUri':_0x423f5d};else throw new Error(_0x3a1ac5(0x5a3)+_0x423f5d);}}else{if(_0x423f5d[_0x3a1ac5(0x55d)]('files/'))_0x65a039={'fileName':_0x423f5d};else throw new Error(_0x3a1ac5(0x50a)+_0x423f5d);}}else{if(Array[_0x3a1ac5(0x1e2)](_0x423f5d)){if(_0x424150['isVertexAI']())throw new Error(_0x3a1ac5(0x274));_0x65a039={'inlinedRequests':_0x423f5d};}else _0x65a039=_0x423f5d;}const _0x166dfc=[_0x65a039['gcsUri'],_0x65a039[_0x3a1ac5(0x1a8)]][_0x3a1ac5(0x61b)](Boolean)[_0x3a1ac5(0x258)],_0x2ab296=[_0x65a039[_0x3a1ac5(0x2a4)],_0x65a039[_0x3a1ac5(0x6ca)]][_0x3a1ac5(0x61b)](Boolean)[_0x3a1ac5(0x258)];if(_0x424150[_0x3a1ac5(0x29b)]()){if(_0x2ab296>0x0||_0x166dfc!==0x1)throw new Error('Exactly\x20one\x20of\x20`gcsUri`\x20or\x20`bigqueryUri`\x20must\x20be\x20set\x20for\x20Vertex\x20AI.');}else{if(_0x166dfc>0x0||_0x2ab296!==0x1)throw new Error(_0x3a1ac5(0x264)+'must\x20be\x20set\x20for\x20Gemini\x20API.');}return _0x65a039;}function tBatchJobDestination(_0x5291f3){const _0x325423=a1_0x54af01;if(typeof _0x5291f3!==_0x325423(0x45a))return _0x5291f3;const _0x2c2268=_0x5291f3;if(_0x2c2268[_0x325423(0x55d)]('gs://'))return{'format':_0x325423(0x2b1),'gcsUri':_0x2c2268};else{if(_0x2c2268[_0x325423(0x55d)]('bq://'))return{'format':_0x325423(0x280),'bigqueryUri':_0x2c2268};else throw new Error(_0x325423(0x380)+_0x2c2268);}}function tRecvBatchJobDestination(_0x5a11f8){const _0x29da47=a1_0x54af01;if(typeof _0x5a11f8!==_0x29da47(0x34b)||_0x5a11f8===null)return{};const _0x2eff14=_0x5a11f8,_0x5a5b31=_0x2eff14[_0x29da47(0x3c4)];if(typeof _0x5a5b31!==_0x29da47(0x34b)||_0x5a5b31===null)return _0x5a11f8;const _0x244f6e=_0x5a5b31,_0x3966d6=_0x244f6e[_0x29da47(0x3c4)];if(!Array[_0x29da47(0x1e2)](_0x3966d6)||_0x3966d6['length']===0x0)return _0x5a11f8;let _0x2c7f6c=![];for(const _0xa1ecd0 of _0x3966d6){if(typeof _0xa1ecd0!==_0x29da47(0x34b)||_0xa1ecd0===null)continue;const _0x2a99d9=_0xa1ecd0,_0x3f35ce=_0x2a99d9[_0x29da47(0x575)];if(typeof _0x3f35ce!=='object'||_0x3f35ce===null)continue;const _0xa3b755=_0x3f35ce;if(_0xa3b755[_0x29da47(0x1bc)]!==undefined){_0x2c7f6c=!![];break;}}return _0x2c7f6c&&(_0x2eff14[_0x29da47(0x449)]=_0x2eff14[_0x29da47(0x3c4)],delete _0x2eff14[_0x29da47(0x3c4)]),_0x5a11f8;}function tBatchJobName(_0x52fd10,_0x59f6e0){const _0x333cf0=a1_0x54af01,_0x4f6b6f=_0x59f6e0;if(!_0x52fd10[_0x333cf0(0x29b)]()){const _0x59e5c6=/batches\/[^/]+$/;if(_0x59e5c6[_0x333cf0(0x33d)](_0x4f6b6f))return _0x4f6b6f[_0x333cf0(0x22a)]('/')[_0x333cf0(0x60a)]();else throw new Error(_0x333cf0(0x1f9)+_0x4f6b6f+'.');}const _0xd1399c=/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/;if(_0xd1399c[_0x333cf0(0x33d)](_0x4f6b6f))return _0x4f6b6f[_0x333cf0(0x22a)]('/')['pop']();else{if(/^\d+$/[_0x333cf0(0x33d)](_0x4f6b6f))return _0x4f6b6f;else throw new Error(_0x333cf0(0x1f9)+_0x4f6b6f+'.');}}function tJobState(_0x25aeb5){const _0x34cf38=a1_0x54af01,_0x1f4d30=_0x25aeb5;if(_0x1f4d30===_0x34cf38(0x52e))return'JOB_STATE_UNSPECIFIED';else{if(_0x1f4d30==='BATCH_STATE_PENDING')return _0x34cf38(0x551);else{if(_0x1f4d30===_0x34cf38(0x513))return _0x34cf38(0x6af);else{if(_0x1f4d30===_0x34cf38(0x665))return _0x34cf38(0x4fe);else{if(_0x1f4d30===_0x34cf38(0x273))return _0x34cf38(0x220);else{if(_0x1f4d30==='BATCH_STATE_CANCELLED')return _0x34cf38(0x46d);else return _0x1f4d30===_0x34cf38(0x232)?_0x34cf38(0x5d1):_0x1f4d30;}}}}}}/**
32
+ * @license
33
+ * Copyright 2025 Google LLC
34
+ * SPDX-License-Identifier: Apache-2.0
35
+ */
36
+ function batchJobDestinationFromMldev(_0x2b993a){const _0x456a11=a1_0x54af01,_0x4c218a={},_0x3896d1=getValueByPath(_0x2b993a,[_0x456a11(0x453)]);_0x3896d1!=null&&setValueByPath(_0x4c218a,[_0x456a11(0x6ca)],_0x3896d1);const _0x34b217=getValueByPath(_0x2b993a,['inlinedResponses',_0x456a11(0x3c4)]);if(_0x34b217!=null){let _0x47d924=_0x34b217;Array[_0x456a11(0x1e2)](_0x47d924)&&(_0x47d924=_0x47d924[_0x456a11(0x261)](_0x7a967f=>{return inlinedResponseFromMldev(_0x7a967f);})),setValueByPath(_0x4c218a,['inlinedResponses'],_0x47d924);}const _0x3099d5=getValueByPath(_0x2b993a,[_0x456a11(0x449),_0x456a11(0x3c4)]);if(_0x3099d5!=null){let _0x505cde=_0x3099d5;Array[_0x456a11(0x1e2)](_0x505cde)&&(_0x505cde=_0x505cde[_0x456a11(0x261)](_0x17a04c=>{return _0x17a04c;})),setValueByPath(_0x4c218a,[_0x456a11(0x449)],_0x505cde);}return _0x4c218a;}function batchJobDestinationFromVertex(_0x12fd65){const _0x593e98=a1_0x54af01,_0x5c4e3e={},_0x5b7ef3=getValueByPath(_0x12fd65,[_0x593e98(0x4c3)]);_0x5b7ef3!=null&&setValueByPath(_0x5c4e3e,[_0x593e98(0x5b5)],_0x5b7ef3);const _0x42432f=getValueByPath(_0x12fd65,[_0x593e98(0x58d),_0x593e98(0x424)]);_0x42432f!=null&&setValueByPath(_0x5c4e3e,[_0x593e98(0x576)],_0x42432f);const _0xf115d5=getValueByPath(_0x12fd65,[_0x593e98(0x60d),'outputUri']);return _0xf115d5!=null&&setValueByPath(_0x5c4e3e,[_0x593e98(0x1a8)],_0xf115d5),_0x5c4e3e;}function batchJobDestinationToVertex(_0x1a2dd9){const _0x20aa02=a1_0x54af01,_0x6cd271={},_0x59267d=getValueByPath(_0x1a2dd9,[_0x20aa02(0x5b5)]);_0x59267d!=null&&setValueByPath(_0x6cd271,['predictionsFormat'],_0x59267d);const _0x67dd58=getValueByPath(_0x1a2dd9,[_0x20aa02(0x576)]);_0x67dd58!=null&&setValueByPath(_0x6cd271,[_0x20aa02(0x58d),'outputUriPrefix'],_0x67dd58);const _0x5eacfc=getValueByPath(_0x1a2dd9,[_0x20aa02(0x1a8)]);_0x5eacfc!=null&&setValueByPath(_0x6cd271,[_0x20aa02(0x60d),_0x20aa02(0x508)],_0x5eacfc);if(getValueByPath(_0x1a2dd9,['fileName'])!==undefined)throw new Error(_0x20aa02(0x346));if(getValueByPath(_0x1a2dd9,['inlinedResponses'])!==undefined)throw new Error(_0x20aa02(0x437));if(getValueByPath(_0x1a2dd9,[_0x20aa02(0x449)])!==undefined)throw new Error('inlinedEmbedContentResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x6cd271;}function batchJobFromMldev(_0x255a72){const _0x9081ee=a1_0x54af01,_0x56caa3={},_0x3b4d0e=getValueByPath(_0x255a72,[_0x9081ee(0x24b)]);_0x3b4d0e!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x24b)],_0x3b4d0e);const _0xbf43ec=getValueByPath(_0x255a72,[_0x9081ee(0x54a),_0x9081ee(0x37e)]);_0xbf43ec!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x37e)],_0xbf43ec);const _0x37037e=getValueByPath(_0x255a72,[_0x9081ee(0x54a),'state']);_0x37037e!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x26d)],tJobState(_0x37037e));const _0x47558a=getValueByPath(_0x255a72,[_0x9081ee(0x54a),'createTime']);_0x47558a!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x28c)],_0x47558a);const _0x4ef4a8=getValueByPath(_0x255a72,['metadata',_0x9081ee(0x5d0)]);_0x4ef4a8!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x5d0)],_0x4ef4a8);const _0x178a6c=getValueByPath(_0x255a72,['metadata',_0x9081ee(0x2c2)]);_0x178a6c!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x2c2)],_0x178a6c);const _0x154c7d=getValueByPath(_0x255a72,[_0x9081ee(0x54a),_0x9081ee(0x210)]);_0x154c7d!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x210)],_0x154c7d);const _0x48b20c=getValueByPath(_0x255a72,[_0x9081ee(0x54a),'output']);return _0x48b20c!=null&&setValueByPath(_0x56caa3,[_0x9081ee(0x366)],batchJobDestinationFromMldev(tRecvBatchJobDestination(_0x48b20c))),_0x56caa3;}function batchJobFromVertex(_0x46dd22){const _0x6e3626=a1_0x54af01,_0x12f911={},_0xb146e5=getValueByPath(_0x46dd22,[_0x6e3626(0x24b)]);_0xb146e5!=null&&setValueByPath(_0x12f911,['name'],_0xb146e5);const _0x451fb4=getValueByPath(_0x46dd22,[_0x6e3626(0x37e)]);_0x451fb4!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x37e)],_0x451fb4);const _0x50b1a3=getValueByPath(_0x46dd22,[_0x6e3626(0x26d)]);_0x50b1a3!=null&&setValueByPath(_0x12f911,['state'],tJobState(_0x50b1a3));const _0x26d4cd=getValueByPath(_0x46dd22,[_0x6e3626(0x3d6)]);_0x26d4cd!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x3d6)],_0x26d4cd);const _0x43f410=getValueByPath(_0x46dd22,[_0x6e3626(0x28c)]);_0x43f410!=null&&setValueByPath(_0x12f911,['createTime'],_0x43f410);const _0x39004c=getValueByPath(_0x46dd22,[_0x6e3626(0x38b)]);_0x39004c!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x38b)],_0x39004c);const _0x187939=getValueByPath(_0x46dd22,['endTime']);_0x187939!=null&&setValueByPath(_0x12f911,['endTime'],_0x187939);const _0x33ed75=getValueByPath(_0x46dd22,[_0x6e3626(0x2c2)]);_0x33ed75!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x2c2)],_0x33ed75);const _0x46a2e8=getValueByPath(_0x46dd22,[_0x6e3626(0x210)]);_0x46a2e8!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x210)],_0x46a2e8);const _0x4d6c59=getValueByPath(_0x46dd22,[_0x6e3626(0x4b1)]);_0x4d6c59!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x390)],batchJobSourceFromVertex(_0x4d6c59));const _0x26b1cd=getValueByPath(_0x46dd22,['outputConfig']);_0x26b1cd!=null&&setValueByPath(_0x12f911,['dest'],batchJobDestinationFromVertex(tRecvBatchJobDestination(_0x26b1cd)));const _0x3f6d92=getValueByPath(_0x46dd22,[_0x6e3626(0x53b)]);return _0x3f6d92!=null&&setValueByPath(_0x12f911,[_0x6e3626(0x53b)],_0x3f6d92),_0x12f911;}function batchJobSourceFromVertex(_0x20f18c){const _0x3af3d2=a1_0x54af01,_0x4ba1fe={},_0x522fc5=getValueByPath(_0x20f18c,['instancesFormat']);_0x522fc5!=null&&setValueByPath(_0x4ba1fe,[_0x3af3d2(0x5b5)],_0x522fc5);const _0x29bfb4=getValueByPath(_0x20f18c,[_0x3af3d2(0x3b3),_0x3af3d2(0x368)]);_0x29bfb4!=null&&setValueByPath(_0x4ba1fe,['gcsUri'],_0x29bfb4);const _0x5cd982=getValueByPath(_0x20f18c,['bigquerySource',_0x3af3d2(0x693)]);return _0x5cd982!=null&&setValueByPath(_0x4ba1fe,[_0x3af3d2(0x1a8)],_0x5cd982),_0x4ba1fe;}function batchJobSourceToMldev(_0x3dd75c,_0x5b9a19){const _0x2c5c87=a1_0x54af01,_0x4d0157={};if(getValueByPath(_0x5b9a19,[_0x2c5c87(0x5b5)])!==undefined)throw new Error(_0x2c5c87(0x39f));if(getValueByPath(_0x5b9a19,[_0x2c5c87(0x576)])!==undefined)throw new Error('gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x5b9a19,['bigqueryUri'])!==undefined)throw new Error(_0x2c5c87(0x310));const _0x43d250=getValueByPath(_0x5b9a19,[_0x2c5c87(0x6ca)]);_0x43d250!=null&&setValueByPath(_0x4d0157,[_0x2c5c87(0x6ca)],_0x43d250);const _0x161e07=getValueByPath(_0x5b9a19,[_0x2c5c87(0x2a4)]);if(_0x161e07!=null){let _0x4a99c9=_0x161e07;Array[_0x2c5c87(0x1e2)](_0x4a99c9)&&(_0x4a99c9=_0x4a99c9[_0x2c5c87(0x261)](_0x1ae5bd=>{return inlinedRequestToMldev(_0x3dd75c,_0x1ae5bd);})),setValueByPath(_0x4d0157,[_0x2c5c87(0x507),_0x2c5c87(0x507)],_0x4a99c9);}return _0x4d0157;}function batchJobSourceToVertex(_0x1885e1){const _0x2b01ce=a1_0x54af01,_0x3beba1={},_0x2e70e0=getValueByPath(_0x1885e1,[_0x2b01ce(0x5b5)]);_0x2e70e0!=null&&setValueByPath(_0x3beba1,[_0x2b01ce(0x5c1)],_0x2e70e0);const _0x46582a=getValueByPath(_0x1885e1,[_0x2b01ce(0x576)]);_0x46582a!=null&&setValueByPath(_0x3beba1,[_0x2b01ce(0x3b3),_0x2b01ce(0x368)],_0x46582a);const _0x41b68c=getValueByPath(_0x1885e1,[_0x2b01ce(0x1a8)]);_0x41b68c!=null&&setValueByPath(_0x3beba1,['bigquerySource',_0x2b01ce(0x693)],_0x41b68c);if(getValueByPath(_0x1885e1,[_0x2b01ce(0x6ca)])!==undefined)throw new Error(_0x2b01ce(0x346));if(getValueByPath(_0x1885e1,['inlinedRequests'])!==undefined)throw new Error('inlinedRequests\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x3beba1;}function blobToMldev$4(_0x9a9978){const _0x536393=a1_0x54af01,_0x521572={},_0xd77b4=getValueByPath(_0x9a9978,['data']);_0xd77b4!=null&&setValueByPath(_0x521572,[_0x536393(0x354)],_0xd77b4);if(getValueByPath(_0x9a9978,['displayName'])!==undefined)throw new Error(_0x536393(0x5d7));const _0x37c63c=getValueByPath(_0x9a9978,['mimeType']);return _0x37c63c!=null&&setValueByPath(_0x521572,[_0x536393(0x2cd)],_0x37c63c),_0x521572;}function cancelBatchJobParametersToMldev(_0x11b069,_0x37c2a4){const _0x3e672c=a1_0x54af01,_0x1a1f7e={},_0x2699bd=getValueByPath(_0x37c2a4,[_0x3e672c(0x24b)]);return _0x2699bd!=null&&setValueByPath(_0x1a1f7e,['_url','name'],tBatchJobName(_0x11b069,_0x2699bd)),_0x1a1f7e;}function cancelBatchJobParametersToVertex(_0x206987,_0x296109){const _0x169800=a1_0x54af01,_0x5db9df={},_0x5ab1bb=getValueByPath(_0x296109,[_0x169800(0x24b)]);return _0x5ab1bb!=null&&setValueByPath(_0x5db9df,['_url',_0x169800(0x24b)],tBatchJobName(_0x206987,_0x5ab1bb)),_0x5db9df;}function a1_0x40f6(){const _0x66e130=['PRIORITIZE_COST','asResponse','.\x20Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x22\x20is\x20not\x20yet\x20supported.','serviceAccount','cross','\x20status\x20code\x20(no\x20body)','1.40.0','arm64','requests','outputUri','UNSPECIFIED','Unsupported\x20string\x20source\x20for\x20Gemini\x20API:\x20','OUTPAINT','sessionResumptionUpdate','TUNING_TASK_T2V','mcpTools','willContinue','APIUserAbortError',']\x20connection\x20','toolCall','BATCH_STATE_RUNNING','WHEN_IDLE','isNaN','publishers/google/models/','user','patchHttpOptions','retryRequest','autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','\x20was\x20set\x20to\x20','keys','info','catch','epochCount','source','GEMINI_API_KEY','(no\x20status\x20code\x20or\x20body)','HARM_CATEGORY_IMAGE_HARASSMENT','parametersJsonSchema','uploadToFileSearchStoreInternal','Duplicate\x20tool\x20declaration\x20name:\x20','autoTruncate','batchJobs','outputConfig','upscaleFactor','BALANCED','generateVideos','DONT_ALLOW','BATCH_STATE_UNSPECIFIED','__streamClass','multiSpeakerVoiceConfig\x20is\x20not\x20supported\x20in\x20the\x20live\x20API.','env','trainingDatasetUri','1433270rZenqw','B_MAJOR_A_FLAT_MINOR','HTTP\x20options\x20are\x20not\x20correctly\x20set.','A_MAJOR_G_FLAT_MINOR','Attempted\x20to\x20iterate\x20over\x20a\x20response\x20with\x20no\x20body','SIMPLE_SEARCH','endpoints','/JS\x20','completionStats','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','safetyFilterLevel','HTTP_BASIC_AUTH','labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','labels','assign','baseUrl','batches/{name}','learningRate','Automatic\x20function\x20calling\x20was\x20requested,\x20but\x20not\x20all\x20the\x20tools\x20the\x20model\x20used\x20implement\x20the\x20CallableTool\x20interface.\x20Available\x20tools:\x20','candidates','partOrString\x20must\x20be\x20a\x20Part\x20object,\x20string,\x20or\x20array','post','getProject','metadata','push','STOP','exception\x20','x32','defaultIdempotencyKey','sdkHttpResponseInternal','JOB_STATE_PENDING','Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files.\x20You\x20can\x20share\x20files\x20through\x20a\x20GCS\x20bucket.','exec','PREFERENCE_TUNING','IMAGE_SAFETY','createInternal','PAGED_ITEM_DOCUMENTS','defaultCheckpointId','SUPERVISED_FINE_TUNING','generatedVideos','every','upload/v1beta/','startsWith','urlContextMetadata','AUDIO','Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.','enhancePrompt','mask','includes','truncated','SCHEDULING_UNSPECIFIED','sftLossWeightMultiplier','{model}:predict','iterator','SAFETY','mediaChunks','thoughtSignature','promptFeedback','outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','STATE_UNSPECIFIED','ReactNative','distillationSpec','generateContentInternal','vertexDatasetResource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','propertyIsEnumerable','data:','response','gcsUri','thoughtsTokenCount','platform','getAuthHeaders','JOB_STATE_QUEUED','TURN_COVERAGE_UNSPECIFIED','fetchPredictVideosOperationInternal','functionCallingConfig','Source\x20and\x20prompt/image/video\x20are\x20mutually\x20exclusive.\x20Please\x20only\x20use\x20source.','upload/v1beta/files','debug','explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','fromEntries','TEXT','fileSearchStores','RateLimitError','callTool','encoder','MEDIA_RESOLUTION_MEDIUM','https://proxyvn.top','STATE_FAILED','files','googleSearch','gcsDestination','https://aiplatform.googleapis.com/','LANGUAGE_UNSPECIFIED','authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','index','automaticFunctionCalling','API\x20version\x20is\x20not\x20set.','HARM_SEVERITY_LOW','Interactions','stopSequences','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20code\x20execution\x20result\x20from\x20the\x20first\x20one.','play','return','update','ADAPTER_SIZE_SIXTEEN','partOrString\x20cannot\x20be\x20an\x20empty\x20array','thinkingConfig','isError','MEDIA_RESOLUTION_UNSPECIFIED','checkpoints','cachedContentTokenCount','get','Unsupported\x20string\x20source\x20for\x20Vertex\x20AI:\x20','getGcsUri','ACTIVITY_START','INSERT','content-type','resourceName','retry-after','+json','{model}:countTokens','pageToken','callbacks','edge','EDIT_MODE_STYLE','outputDimensionality','NO_INTERRUPTION','_options','exportLastCheckpointOnly','filter\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','format','mcpClients','modelConfig','HTTP_IN_BODY','API\x20key\x20is\x20missing.\x20Please\x20provide\x20a\x20valid\x20API\x20key.','temperature','apiClient','STYLE','initNextPage','tokensInfo','key','caches','instancesFormat','The\x20Live\x20module\x20does\x20not\x20support\x20httpOptions\x20at\x20request-level\x20in','Could\x20not\x20resolve\x20authentication\x20method.\x20Expected\x20the\x20apiKey\x20to\x20be\x20set.\x20Or\x20for\x20the\x20\x22x-goog-api-key\x22\x20headers\x20to\x20be\x20explicitly\x20omitted','VAD_SIGNAL_TYPE_EOS','CONTROL_TYPE_DEFAULT','Tool\x20response\x20parameters\x20are\x20required.','An\x20API\x20Key\x20must\x20be\x20set\x20when\x20running\x20in\x20an\x20unspecified\x20environment.\x0a\x20+\x20','TextEncoder','dest\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','now','functionResponse','guidanceScale','build','JOB_STATE_PAUSED','NEWLINE_CHARS','endTime','JOB_STATE_EXPIRED','AuthenticationError','carriageReturnIndex','boolean','tokenCount','freebsd','displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','API_KEY_AUTH','/dest','DELETE','Ephemeral\x20tokens\x20are\x20only\x20supported\x20by\x20the\x20live\x20API.','recordHistory','chats','PAGED_ITEM_TUNING_JOBS','pageInternal','documentName','auth','modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','examples\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','darwin','upscale','candidatesTokensDetails','tuningDataStats','mediaResolution','type:\x20null\x20can\x20not\x20be\x20the\x20only\x20possible\x20type\x20for\x20the\x20field.','throw','trainingDataset','Server\x20did\x20not\x20return\x20an\x20HttpResponse\x20or\x20the\x20returned\x20HttpResponse\x20did\x20not\x20have\x20headers.','turns','FINISH_REASON_UNSPECIFIED','computeTokens','ttl','prepareOptions','tune','fps','partialArgs','iOS','OUTCOME_UNSPECIFIED','tuneInternal','LOSSLESS','veoTuningSpec','vertexai','API\x20key\x20must\x20be\x20set\x20when\x20using\x20the\x20Gemini\x20API.','videoBytes','got\x20status:\x20','{model}:batchEmbedContents','referenceType','randomUUID','queryBase','enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','pubsubTopic','generatedImages','download','cancel','stop','promptTokensDetails','publisherModels','pop','START_SENSITIVITY_LOW','outputSchema','bigqueryDestination','imageOutputOptions','encode','SEMANTIC','modelsModule','HTTP_IN_HEADER','arrayBuffer','blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','threshold','positivePromptSafetyAttributes','HARM_SEVERITY_HIGH','PROVISIONED_THROUGHPUT','START_SENSITIVITY_UNSPECIFIED','role','filter','carriage','outputAudioTranscription','ADAPTER_SIZE_UNSPECIFIED','generateImagesInternal','getApiKey','Could\x20not\x20extract\x20file\x20name\x20from\x20URI\x20','functionResponses\x20is\x20required.','activityEnd',']\x20response\x20start','REMOVE',',\x20finalize','{operationName}','aspectRatio','parent','{name}:cancel','getItem','listInternal','method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','browser','aarch64','resolution','Function\x20declaration\x20name\x20is\x20required.','indexOf','[object\x20Error]','tools\x20is\x20required\x20and\x20must\x20be\x20an\x20array\x20of\x20Tools','***','validationDataset\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','error;\x20no\x20more\x20retries\x20left','Unknown','contents\x20are\x20required','MASK_MODE_USER_PROVIDED','E_FLAT_MAJOR_C_MINOR','speechConfig','enableWidget','QUALITY','[0]','logprobs','enhancedPrompt','urlContext','contentType','maskDilation','Value\x20must\x20be\x20a\x20list\x20given\x20an\x20array\x20path\x20','close','SILENT','json','HARM_BLOCK_METHOD_UNSPECIFIED','getRequestUrlInternal','fileUri','enableAffectiveDialog','LOW','behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','GoogleGenAI.interactions:\x20Interactions\x20usage\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','pipelineJob','JOB_STATE_CANCELLING','MASK_MODE_FOREGROUND','blockingConfidence','auth_tokens','body','HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT','extraBody','ClientOptions.logLevel','REFERENCE_TYPE_CONTENT','RESET_CONTEXT','random','defaultQuery','agent_config','idempotencyKey','E_MAJOR_D_FLAT_MINOR','controller','candidateCount','hasOwnProperty','TextDecoder','reduce','BATCH_STATE_SUCCEEDED','_fromAPIResponse','onmessage','personImage','encoding','Function\x20call\x20name\x20was\x20not\x20returned\x20by\x20the\x20model.','EDIT_MODE_CONTROLLED_EDITING','SPII','deployedModelId','predictions','DOCUMENT','setup','Warning:\x20The\x20SDK\x27s\x20ephemeral\x20token\x20support\x20is\x20in\x20v1alpha\x20only.\x20Please\x20use\x20const\x20ai\x20=\x20new\x20GoogleGenAI({apiKey:\x20token.name,\x20httpOptions:\x20{\x20apiVersion:\x20\x27v1alpha\x27\x20}});\x20before\x20session\x20connection.','customBaseUrl',',\x20mising\x20tool:\x20','toString','kmsKeyName','encodedVideo','cachedContents','streamFunctionCallArguments','toolUsePromptTokensDetails','fetch','PartListUnion\x20is\x20required','abortSignal','path','ApiError','gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','PROHIBITED_CONTENT','Mixing\x20Content\x20and\x20Parts\x20is\x20not\x20supported,\x20please\x20group\x20the\x20parts\x20into\x20a\x20the\x20appropriate\x20Content\x20objects\x20and\x20specify\x20the\x20roles\x20for\x20them','BLOCK_MEDIUM_AND_ABOVE','error;\x20not\x20retryable','parameters','methodRequest','SEVERITY','JOB_STATE_PARTIALLY_SUCCEEDED','httpOptions','pause','10000000-1000-4000-8000-100000000000','END_SENSITIVITY_LOW','lastFrame','fileSearch','responseId','ON_DEMAND','{resourceName}:fetchPredictOperation','tunedModelDisplayName','compressionQuality','inputUri','\x27\x20not\x20found\x20in\x20valueMap.','{model}','stat','alt','deployedModels','authConfig','properties','Authentication\x20is\x20not\x20set\x20up.\x20Please\x20provide\x20either\x20a\x20project\x20and\x20location,\x20or\x20an\x20API\x20key,\x20or\x20a\x20custom\x20base\x20URL.','tunedModel','queryParams','batchPredictionJobs/{name}:cancel','Could\x20not\x20extract\x20file\x20name\x20from\x20the\x20provided\x20input.','requestInternal','x-goog-api-client','googleSearchRetrieval','\x20must\x20be\x20an\x20integer','HARM_CATEGORY_UNSPECIFIED','\x20Update\x20to\x20Node\x2020\x20LTS\x20or\x20newer,\x20or\x20set\x20`globalThis.File`\x20to\x20`import(\x27node:buffer\x27).File`.','HARM_BLOCK_THRESHOLD_UNSPECIFIED','endpoint','cachedContent','http:','PRIORITIZE_QUALITY','prompt','92338ZZxRHd','outputTokenLimit','getReader','JOB_STATE_RUNNING','exportLastCheckpointOnly\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','baseUrlResourceScope','__binaryResponse','HARM_CATEGORY_DANGEROUS_CONTENT','citations','generationConfig.','tunedTeacherModelSource','number','MODALITY_UNSPECIFIED','MEDIA_RESOLUTION_ULTRA_HIGH','client','getFileName','getBaseUrl','Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.','ASSET','resumable','outputOptions','openbsd','clientAdapter','modelVersion','REFERENCE_TYPE_RAW','Could\x20not\x20parse\x20message\x20into\x20JSON:','codeExecutionResult','set','disable','versions','fileName','null','pow','media','.\x20Overwriting.','final','TRAFFIC_TYPE_UNSPECIFIED','PYTHON','HARM_CATEGORY_SEXUALLY_EXPLICIT','FEATURE_SELECTION_PREFERENCE_UNSPECIFIED','vertexDatasetResource','call','includeSafetyAttributes','tee','BLOCKLIST','tunedModels/','INTEGER','size','EDIT_MODE_PRODUCT_IMAGE','https://','language','frequencyPenalty','getRequestUrl','trim','personGeneration\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','experiment','PLAY','hyperParameters','A_FLAT_MAJOR_F_MINOR','getOwnPropertySymbols','Unexpected\x20data\x20type:\x20','PROBABILITY','generateContentStreamInternal','has','newSessionExpireTime','prototype','substring','D_MAJOR_B_MINOR','files/','SOURCE_UNSPECIFIED','connect','partnerModelTuningSpec','/operations/','DISTILLATION','editImage','inlineData','sort','initAfcToolsMap','outputMimeType','bigqueryUri','content','requests[].request.*','failed','_client','audioStreamEnd','beta','create','config','Duplicate\x20function\x20name\x20','apply','fromImageBytes\x20must\x20be\x20a\x20string','VOCALIZATION','citationMetadata','functionResponses','sizeBytes','GOOGLE_SERVICE_ACCOUNT_AUTH','hasNextPage','enhanceInputImage','UPLOADED','embedding','idempotencyHeader','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20not\x20valid\x20JSON.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','MODEL_ARMOR','ConflictError','PAGED_ITEM_BATCH_JOBS','pageInternalSize','generationConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','sendPromise','NO_IMAGE','uploadFile','addWatermark\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','fps\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','{name}','HARM_CATEGORY_HARASSMENT','voiceActivityDetectionSignal','SUBJECT_TYPE_DEFAULT','NULL','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20valid\x20JSON\x20but\x20not\x20a\x20non-array\x20object.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','safetySettings','TURN_INCLUDES_ALL_INPUT','responseSchema','OIDC_AUTH','APIError','flatMap','Deno','join','avgLogprobs','geminiUrl','baseURLOverridden','ANY','hyperparameters','END_SENSITIVITY_UNSPECIFIED','constructUrl','OUTCOME_FAILED','other:','functionCalls','excludeDomains','isArray','taskType','TURN_INCLUDES_ONLY_ACTIVITY','generateVideosInternal','\x20configuration\x20instead.','responseTokensDetails','repeat','/locations/','getLocation','x-goog-upload-url','raiMediaFilteredReasons','upload','1155775MSDbVQ','.jsonl','ReadableStream','ACTIVITY_END','15MWPczM','ADAPTER_SIZE_EIGHT','PermissionDeniedError','personGeneration','maximumRemoteCalls','GET','retryOf','Invalid\x20batch\x20job\x20name:\x20','retrievalConfig','citationSources','Path\x20parameters\x20result\x20in\x20path\x20with\x20invalid\x20segments:\x0a','supervisedTuningSpec','adapterSize','Unsupported\x20part\x20type:\x20','topP','Value\x20of\x20type\x20','EDIT_MODE_BGSWAP','generateVideoResponse','agent','text','raiMediaFilteredCount','upscaleImage','learningRateMultiplier','generateContent','inputSchema','referenceId','version','processAfcStream','sendPlaybackControl','maskImageConfig','model','VIDEO','mask\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','CONTROL_TYPE_FACE_MESH','activityStart','google-genai-sdk/','LANGUAGE','x86_64','STATE_PENDING','timeout','processStreamResponse','OTHER','This\x20feature\x20requires\x20the\x20web\x20or\x20Node\x20specific\x20@google/genai\x20implementation,\x20you\x20can\x20fix\x20this\x20by\x20either:\x0a\x0a*Enabling\x20conditional\x20exports\x20for\x20your\x20project\x20[recommended]*\x0a\x0a*Using\x20a\x20platform\x20specific\x20import*\x20-\x20Make\x20sure\x20your\x20code\x20imports\x20either\x20\x27@google/genai/web\x27\x20or\x20\x27@google/genai/node\x27\x20instead\x20of\x20\x27@google/genai\x27.\x0a','embeddings','modelArmorConfig','includeExtraHttpOptionsToRequestInit','JOB_STATE_FAILED','api_version',']\x20response\x20error\x20(','retrieval','apiKey','MEDIA_RESOLUTION_LOW','B_FLAT_MAJOR_G_MINOR','PAGED_ITEM_FILES','COLLECTION','TURN_COMPLETE_REASON_UNSPECIFIED','split','initialize','VAD_SIGNAL_TYPE_UNSPECIFIED','Please\x20set\x20\x27config.automaticFunctionCalling.disable\x27\x20to\x20true\x20to\x20disable\x20AFC\x20','find','https://proxyvn.top/','expected\x20header\x20name\x20to\x20be\x20a\x20string','customBaseModel','BATCH_STATE_EXPIRED','lockAdditionalFields','scribbleImage','add','executableCode','referenceImage','INTERACTIVE','realtimeInputConfig','voiceActivity','page','STRING','logger','fromSSEResponse','\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.','unknown','bind','NO_AUTH','generateContentStream','modelTurn','DIVERSITY','video','linux','seed\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','nextCursor','PartUnion\x20is\x20required','name','partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','SUBJECT_TYPE_PERSON','toReferenceImageAPI','NUMBER','endsWith','operations','maxPredictions','upload/v1beta/{file_search_store_name}:uploadToFileSearchStore','IMAGE_PROHIBITED_CONTENT','httpMethod','v1beta1','.GenerativeService.BidiGenerateMusic?key=','length','setupComplete','batches','sdkHttpResponse','outputGcsUri','Unsupported\x20mime\x20type:\x20','expireTime','wss','getHistory','map','responseTokenCount','totalTokenCount','Exactly\x20one\x20of\x20`inlinedRequests`,\x20`fileName`,\x20','additionalProperties','compressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','shift','RESPONSE_REJECTED','Value\x20\x22','enterpriseWebSearch','/models/','baseTeacherModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','state','decode','binaryColorThreshold','application/json','PAGED_ITEM_FILE_SEARCH_STORES','imagePreservationFactor','BATCH_STATE_FAILED','InlinedRequest[]\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','OFF','includeExtraBodyToRequestInit:deepMerge:\x20Type\x20mismatch\x20for\x20key\x20\x22','send','generateAudio','_key','undefined','exception\x20parsing\x20stream\x20chunk\x20','checkpointId','Linux','responseMimeType','stack','bigquery','IMAGE','responseModalities','shouldPrependVertexProjectPath','C_MAJOR_A_MINOR','\x20-\x20error;\x20no\x20more\x20retries\x20left','sendRealtimeInput','publishers/','apiVersion','processParamsMaybeAddMcpUsage','authHeaders','BidiGenerateContentConstrained','createTime','validateHeaders','chrome','then','unaryApiCall','pageLength','CONTROL_TYPE_SCRIBBLE','constructor','styleImageConfig','next','outputCompressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','raiFilteredReason','THINKING_LEVEL_UNSPECIFIED','apiCall','Key\x20\x27','isVertexAI','navigator','auto','batchPredictionJobs','segmentImage','Symbol.iterator\x20is\x20not\x20defined.','name\x20must\x20be\x20a\x20string','ContentUnion\x20is\x20required','validationDataset','inlinedRequests','delete','imageConfig','listTools','documents','BLOCK_HIGH_AND_ABOVE','buildHeaders','getHeaders','GeminiNextGenAPIClient','productImages','willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','BLOCKED_REASON_UNSPECIFIED','safetyAttributes','jsonl','BLOCK_NONE','MacOS','google-vertex-llm-tuning-base-model-id','adapterSize\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','END_SENSITIVITY_HIGH','anyOf','ADAPTER_SIZE_THIRTY_TWO','FOREGROUND','concat','VALIDATED','uploader','/ws/google.ai.generativelanguage.','file_search_store_name','logprobsResult','tuneMldevInternal','audioChunks','updateTime','ALLOW_ADULT','START_OF_ACTIVITY_INTERRUPTS','utf-8','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20data\x20from\x20the\x20first\x20one.','conn','onclose','79737eHrVXo','batches/{name}:cancel','streamApiCall','cacheTokensDetails','mimeType','set-cookie','encryptionSpec','{parent}/documents','PAGED_ITEM_CACHED_CONTENTS','\x20with\x20status\x20','_registerFiles','kmsKeyName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT','pubsubTopic\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','defaultHeaders','to\x20be\x20undefined\x20or\x20set\x20to\x20false\x20to\x20disable\x20streaming\x20function\x20call\x20arguments\x20feature.','buildURL','mimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','editConfig','behavior','REGISTERED','ENVIRONMENT_UNSPECIFIED','tools\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','0.0.1','node','fileData','getWebsocketBaseUrl','url','instances[0]','enableEnhancedCivicAnswers','forEach','HARM_SEVERITY_NEGLIGIBLE','/publishers/google/','getDefaultHeaders','x-goog-api-key','SUBJECT_TYPE_PRODUCT','fetchWithTimeout','proactivity','Content-Type','addWatermark','value','generateAudio\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','clientOptions','URL_RETRIEVAL_STATUS_UNSPECIFIED','chunkingConfig','confidenceThreshold','onopen','AUTO','presencePenalty','headers','importFile','uses','parse','API_SPEC_UNSPECIFIED','deno','MASK_MODE_DEFAULT','unref','category','parsedPromise','HIGH','dilation','trafficType','prepareRequest','ADAPTER_SIZE_ONE','Windows','BadRequestError','tools[','NEWLINE_REGEXP','method','ADAPTER_SIZE_TWO','lastModified','bigqueryUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','type','getBaseResourcePath','videoMetadata','includeRaiReason','timed\x20out','toUpperCase','examples','computerUse','padStart','params','goAway','stream','Invalid\x20request:\x20specified\x20`model`\x20and\x20`agent_config`.\x20If\x20specifying\x20`model`,\x20use\x20`generation_config`.','`File`\x20is\x20not\x20defined\x20as\x20a\x20global,\x20which\x20is\x20required\x20for\x20file\x20uploads.','description','HARM_CATEGORY_JAILBREAK','arm','317768OcGSOx','fileSearchStoreName','PROCESSING','/projects/','getBigqueryUri','task_type','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20function\x20calls\x20from\x20the\x20first\x20one.','categories','totalTokens','PROMPT','there\x20are\x20non-data\x20parts\x20','maskMode','URL_RETRIEVAL_STATUS_SUCCESS','\x20attempts\x20remaining','requestStream','makeStatusError','SUBJECT_TYPE_ANIMAL','weightedPrompts','PLAYBACK_CONTROL_UNSPECIFIED','process.env[\x27GEMINI_NEXT_GEN_API_LOG\x27]','Positive\x20Prompt','musicGenerationConfig','list','_self','pathname','groundingMetadata','bytesBase64Encoded','test','audioTimestamp','stainless-node-retry-','blob','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20text\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20text\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','getHeadersInternal','promptDatasetUri','retrying,\x20','chunks','fileName\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','sse','force','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them,\x20and\x20any\x20other\x20parts,\x20in\x20Content\x20objects\x20as\x20appropriate,\x20specifying\x20the\x20role\x20for\x20them','G_FLAT_MAJOR_E_FLAT_MINOR','object','MODE_UNSPECIFIED','BLOCK_VERY_HIGH_AND_ABOVE','AbortError','getUserAgent','PHISH_BLOCK_THRESHOLD_UNSPECIFIED','MALFORMED_FUNCTION_CALL','codeExecution','projects/','data','auth_tokens/','this\x20feature\x20is\x20not\x20compatible\x20with\x20automatic\x20function\x20calling\x20(AFC).\x20','NEED_MORE_INPUT','RECITATION','safari','encryption_spec','googleMaps','generatedSamples','match','Request\x20was\x20aborted.','fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','nameInternal','HTTP_IN_QUERY','OBJECT','getVideosOperationInternal','resolve','userAgent','dest','tool','uris','explicitVadSignal','aborted','236131rmvxkB','User-Agent','BLOCK_ONLY_EXTREMELY_HIGH','retryOfRequestLogID','outputCompressionQuality','cookie','GoogleGenAI.interactions:\x20Client\x20level\x20httpOptions.extraBody\x20is\x20not\x20supported\x20by\x20the\x20interactions\x20client\x20and\x20will\x20be\x20ignored.','Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.','NON_BLOCKING','upscaleImageInternal','audioChunk','ACTIVE','MINIMAL','sampleCount','TUNING_TASK_R2V','{file_search_store_name}:importFile','protocol','REMOVE_STATIC','Response\x20body\x20is\x20empty','displayName','trunc','Unsupported\x20destination:\x20','TUNING_TASK_UNSPECIFIED','genaiBatchJob_','EDIT_MODE_OUTPAINT','half','element\x20in\x20PartUnion\x20must\x20be\x20a\x20Part\x20object\x20or\x20string','model\x20is\x20required\x20and\x20must\x20be\x20a\x20string','paramsInternal','REFERENCE_TYPE_MASK','safetySetting','values','startTime','ELASTIC_SEARCH','usageMetadata','x-should-retry','sendMessageStream','src','sendMessage','fieldMask','FAILED','items','buffer','validationDatasetUri','functionCall','flush','PATCH','shouldRetry','searchParams','modelSelectionConfig','automaticFunctionCallingHistory','multiSpeakerVoiceConfig','format\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','storageUri','ADAPTER_SIZE_FOUR','operation','HARM_SEVERITY_UNSPECIFIED','pageSize','tuningMode\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','controlImageConfig','serverContent','EDIT_MODE_DEFAULT','EDIT_MODE_INPAINT_REMOVAL','ios','scores','TYPE_UNSPECIFIED','START_SENSITIVITY_HIGH','Headers\x20are\x20not\x20set.','preTunedModel','registerFiles','getOwnPropertyNames','\x20(error;\x20no\x20more\x20retries\x20left)','gcsSource','preTunedModelCheckpointId\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','VAD_SIGNAL_TYPE_SOS','generate','toolCallCancellation','start','createEmbeddings','gs://','{model}:generateContent','handle','enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','operationName','\x20is\x20not\x20a\x20valid\x20path\x20parameter','active','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.','ALLOW_ALL','inlinedResponses','MEDIA_RESOLUTION_HIGH','bidiGenerateContentSetup','TUNING_MODE_FULL','generation_config','getCustomBaseUrl','append','Unsupported\x20speechConfig\x20type:\x20','formatDestination','Weighted\x20prompts\x20must\x20be\x20set\x20and\x20contain\x20at\x20least\x20one\x20entry.','\x22\x20can\x27t\x20be\x20safely\x20passed\x20as\x20a\x20path\x20parameter','systemInstruction\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','{models_url}','from','Symbol.asyncIterator\x20is\x20not\x20defined.','No\x20more\x20pages\x20to\x20fetch.','.LlmBidiService/BidiGenerateContent','Operation\x20name\x20is\x20required.','error','getInternal','numberOfImages','PAGED_ITEM_MODELS','Role\x20must\x20be\x20user\x20or\x20model,\x20but\x20got\x20','bq://','PAUSE','includeExtraBodyToRequestInit:\x20extraBody\x20provided\x20but\x20current\x20request\x20body\x20is\x20a\x20Blob.\x20extraBody\x20will\x20be\x20ignored\x20as\x20merging\x20is\x20not\x20supported\x20for\x20Blob\x20bodies.','MAX_TOKENS','instances[]','tunedTeacherModelSource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','.GenerativeService.','parseResponse','GENERATED','negativePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','tuningJobs','registerFilesInternal','96XCMypp','getApiVersion','status','systemInstruction','statistics','live','IMAGE_RECITATION','SCALE_UNSPECIFIED','baseURL','BidiGenerateContent','APIConnectionError','content-length','TUNING_MODE_UNSPECIFIED','[DONE]','arch','transparent','The\x20default\x20react-native\x20fetch\x20implementation\x20does\x20not\x20support\x20streaming.\x20Please\x20use\x20expo/fetch:\x20https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api','OUTCOME_DEADLINE_EXCEEDED','DEFAULT_TIMEOUT','read','BLOCK_LOW_AND_ABOVE','message','candidatesTokenCount','BACKGROUND','filename','MASK_MODE_SEMANTIC','image','responseInternal','off','tunedModelInfo','unknown_file','thought','$schema','nextPageToken','setPrototypeOf','tLiveClienttToolResponse','tuningTask','setWeightedPrompts','Running\x20in\x20streaming\x20mode\x20with\x20\x27streamFunctionCallArguments\x27\x20enabled,\x20','maxTemperature','withOptions','all','args','_dest_','controlType','makeMessage','Request\x20timed\x20out.','maxOutputTokens','HARM_CATEGORY_IMAGE_HATE','abort','\x20-\x20','modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','imageSize','getVideosOperation','Cannot\x20stringify\x20type\x20','project','ARRAY','negativePrompt','contextWindowCompression','URL_RETRIEVAL_STATUS_UNSAFE','buildBody','outputUriPrefix','beta\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','videos','OPTIMIZED','toolUsePromptTokenCount','thinking','generationConfig','Setting\x20`LiveConnectConfig.generation_config`\x20is\x20deprecated,\x20please\x20set\x20the\x20fields\x20on\x20`LiveConnectConfig`\x20directly.\x20This\x20will\x20become\x20an\x20error\x20in\x20a\x20future\x20version\x20(not\x20before\x20Q3\x202025).','onerror','Failed\x20to\x20parse\x20client\x20content\x20\x22turns\x22,\x20type:\x20\x27','customBaseModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','_interactions','topK','fetchUploadUrl','baseModel','or\x20leave\x20\x27config.toolConfig.functionCallingConfig.streamFunctionCallArguments\x27\x20','requests[]','responseJsonSchema','inlinedResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','brand.privateNullableHeaders','freeze','POST','editMode','idxInternal','search','[object\x20process]','sftLossWeightMultiplier\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','maybeMoveToResponseJsonSchem','uploadToFileSearchStore','getRandomValues','baseTeacherModel','seed','MEDIUM','timeRangeFilter','JOB_STATE_UNSPECIFIED','nullable','inlinedEmbedContentResponses','request','Request\x20body\x20should\x20be\x20empty\x20for\x20GET\x20request,\x20but\x20got\x20non\x20empty\x20request\x20body','warn','All\x20content\x20has\x20been\x20uploaded,\x20but\x20the\x20upload\x20status\x20is\x20not\x20finalized.','imageBytes','logLevel','NONE',';\x20Expected\x20string,\x20number,\x20boolean,\x20or\x20null.\x20If\x20you\x20need\x20to\x20pass\x20nested\x20query\x20parameters,\x20you\x20can\x20manually\x20encode\x20them,\x20e.g.\x20{\x20query:\x20{\x20\x27foo[key1]\x27:\x20value1,\x20\x27foo[key2]\x27:\x20value2\x20}\x20},\x20and\x20please\x20open\x20a\x20GitHub\x20issue\x20requesting\x20better\x20support\x20for\x20your\x20use\x20case.','ACTIVITY_HANDLING_UNSPECIFIED','responsesFile','models/','patch','recontextImage','HARM_CATEGORY_CIVIC_INTEGRITY','tools','EDIT_MODE_INPAINT_INSERTION','string','contents','BLOCK_ONLY_HIGH','mode','stringify','Live\x20music\x20generation\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','createEmbeddingsInternal','HARM_SEVERITY_MEDIUM','OAUTH','responsePromise','gl-node/','fetchOptions','retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','referenceImages','URL_RETRIEVAL_STATUS_PAYWALL','responseLogprobs','\x22.\x20Original\x20type:\x20','From\x20chunk:','\x20sending\x20request','JOB_STATE_CANCELLED','_query','/ws/google.cloud.aiplatform.','UnprocessableEntityError','CREATING','process','replace','allowedFunctionNames','models','{model}:predictLongRunning','code','Could\x20not\x20parse\x20input\x20as\x20Blob.\x20Unsupported\x20blob\x20type:\x20','customMetadata','toolConfig','NotFoundError','publishers/google/models','HTTP_IN_PATH','ignoreCallHistory','init','preceding','-aiplatform.googleapis.com/','sessionResumption','finishReason','maxRetries','calculateDefaultRetryTimeoutMillis','UNEXPECTED_TOOL_CALL','baseSteps','x64','files/{file}','retry-after-ms','streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','MODE_DYNAMIC','webSocketFactory','downloadFile','isView','numberOfVideos','batchSize','HARM_PROBABILITY_UNSPECIFIED','Error','productImage','file','NEGLIGIBLE','win32','MASK_MODE_BACKGROUND','TUNING_MODE_PEFT_ADAPTER','routingConfig','HARM_CATEGORY_HATE_SPEECH','safetyRatings','routingConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ENVIRONMENT_BROWSER','done','response\x20is\x20undefined','entries','slice','TUNING_TASK_I2V','batch','raw','function','addAuthHeaders','excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','segmentationClasses','description\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','signal','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20text\x20from\x20the\x20first\x20one.','GeminiNextGenAPIClientError','outputUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.',',\x20expected\x20one\x20of\x20','INTERRUPT','inputConfig','addEventListener','tunedModels','location','completeTime','liveConnectConstraints','OUTCOME_OK','durationSeconds','getPrototypeOf','IMAGE_OTHER','Filtering\x20tuned\x20models\x20list\x20for\x20Vertex\x20AI\x20is\x20not\x20currently\x20supported','BOOLEAN','authorization','functionNameToMcpClient','history','android','uri','Could\x20not\x20parse\x20function\x20response,\x20type\x20\x27','predictionsFormat','Android','global','finally','subarray','JAILBREAK','makeRequest','upscaleConfig','registerFiles\x20is\x20only\x20supported\x20in\x20Node.js\x20environments.','title','setMusicGenerationConfig','maskClasses','event','mcp_used/unknown','Failed\x20to\x20get\x20upload\x20url.\x20Server\x20did\x20not\x20return\x20the\x20x-google-upload-url\x20in\x20the\x20headers','{model}:streamGenerateContent?alt=sse','inputTokenLimit','toLowerCase','isInteger','stringifyQuery',']\x20sending\x20request','cause','`fetch`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20Either\x20pass\x20`fetch`\x20to\x20the\x20client,\x20`new\x20GeminiNextGenAPIClient({\x20fetch\x20})`\x20or\x20polyfill\x20the\x20global,\x20`globalThis.fetch\x20=\x20fetch`','generatedMasks','outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','interactions','image/','toFile','MUSIC_GENERATION_MODE_UNSPECIFIED','setBaseUrl','preferenceOptimizationSpec','6OuldHR','{model}:batchGenerateContent','output','browser:','inputAudioTranscription',',\x20retryOf:\x20','releaseLock','_url','asyncIterator','D_FLAT_MAJOR_B_FLAT_MINOR','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20executable\x20code\x20from\x20the\x20first\x20one.','sampleImageSize','BLOCKING','Incomplete\x20JSON\x20segment\x20at\x20the\x20end','options','scribble','editImageInternal','preTunedModelCheckpointId','1834353XJFjIW','audio','countTokens','parts','enhancePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','put','functionDeclarations','statusText','versionId','embedContent','JOB_STATE_SUCCEEDED'];a1_0x40f6=function(){return _0x66e130;};return a1_0x40f6();}function candidateFromMldev$1(_0x5aac9e){const _0x936ae4=a1_0x54af01,_0x1a66aa={},_0x3a893a=getValueByPath(_0x5aac9e,['content']);_0x3a893a!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x1a9)],_0x3a893a);const _0x226e0a=getValueByPath(_0x5aac9e,[_0x936ae4(0x1b5)]);_0x226e0a!=null&&setValueByPath(_0x1a66aa,['citationMetadata'],citationMetadataFromMldev$1(_0x226e0a));const _0x30ec1c=getValueByPath(_0x5aac9e,[_0x936ae4(0x5d5)]);_0x30ec1c!=null&&setValueByPath(_0x1a66aa,['tokenCount'],_0x30ec1c);const _0x2f4168=getValueByPath(_0x5aac9e,[_0x936ae4(0x483)]);_0x2f4168!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x483)],_0x2f4168);const _0x2ae683=getValueByPath(_0x5aac9e,[_0x936ae4(0x1d7)]);_0x2ae683!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x1d7)],_0x2ae683);const _0xccd546=getValueByPath(_0x5aac9e,[_0x936ae4(0x33b)]);_0xccd546!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x33b)],_0xccd546);const _0x3adaae=getValueByPath(_0x5aac9e,[_0x936ae4(0x591)]);_0x3adaae!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x591)],_0x3adaae);const _0x3604a5=getValueByPath(_0x5aac9e,[_0x936ae4(0x2bf)]);_0x3604a5!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x2bf)],_0x3604a5);const _0x1d56ff=getValueByPath(_0x5aac9e,[_0x936ae4(0x49c)]);if(_0x1d56ff!=null){let _0x39f156=_0x1d56ff;Array[_0x936ae4(0x1e2)](_0x39f156)&&(_0x39f156=_0x39f156[_0x936ae4(0x261)](_0x202312=>{return _0x202312;})),setValueByPath(_0x1a66aa,[_0x936ae4(0x49c)],_0x39f156);}const _0x1fc125=getValueByPath(_0x5aac9e,[_0x936ae4(0x55e)]);return _0x1fc125!=null&&setValueByPath(_0x1a66aa,[_0x936ae4(0x55e)],_0x1fc125),_0x1a66aa;}function citationMetadataFromMldev$1(_0x1058a4){const _0x3e1a43=a1_0x54af01,_0x4cc4ab={},_0x4d18f7=getValueByPath(_0x1058a4,[_0x3e1a43(0x1fb)]);if(_0x4d18f7!=null){let _0x582ec1=_0x4d18f7;Array[_0x3e1a43(0x1e2)](_0x582ec1)&&(_0x582ec1=_0x582ec1[_0x3e1a43(0x261)](_0x4a3c89=>{return _0x4a3c89;})),setValueByPath(_0x4cc4ab,[_0x3e1a43(0x6b4)],_0x582ec1);}return _0x4cc4ab;}function contentToMldev$4(_0x2eb83e){const _0x5c1d1d=a1_0x54af01,_0x2e9c71={},_0x102ac7=getValueByPath(_0x2eb83e,[_0x5c1d1d(0x4f7)]);if(_0x102ac7!=null){let _0x5f1851=_0x102ac7;Array[_0x5c1d1d(0x1e2)](_0x5f1851)&&(_0x5f1851=_0x5f1851[_0x5c1d1d(0x261)](_0xd31777=>{return partToMldev$4(_0xd31777);})),setValueByPath(_0x2e9c71,[_0x5c1d1d(0x4f7)],_0x5f1851);}const _0x15a5e9=getValueByPath(_0x2eb83e,[_0x5c1d1d(0x61a)]);return _0x15a5e9!=null&&setValueByPath(_0x2e9c71,[_0x5c1d1d(0x61a)],_0x15a5e9),_0x2e9c71;}function createBatchJobConfigToMldev(_0x2f8380,_0x38dbf6){const _0x1917ae=a1_0x54af01,_0x969353={},_0x1fe650=getValueByPath(_0x2f8380,[_0x1917ae(0x37e)]);_0x38dbf6!==undefined&&_0x1fe650!=null&&setValueByPath(_0x38dbf6,[_0x1917ae(0x4a4),_0x1917ae(0x37e)],_0x1fe650);if(getValueByPath(_0x2f8380,[_0x1917ae(0x366)])!==undefined)throw new Error(_0x1917ae(0x5c9));return _0x969353;}function createBatchJobConfigToVertex(_0x21560c,_0x3952af){const _0x5a738d=a1_0x54af01,_0x38bfde={},_0xee06cb=getValueByPath(_0x21560c,[_0x5a738d(0x37e)]);_0x3952af!==undefined&&_0xee06cb!=null&&setValueByPath(_0x3952af,['displayName'],_0xee06cb);const _0x84a591=getValueByPath(_0x21560c,['dest']);return _0x3952af!==undefined&&_0x84a591!=null&&setValueByPath(_0x3952af,[_0x5a738d(0x529)],batchJobDestinationToVertex(tBatchJobDestination(_0x84a591))),_0x38bfde;}function createBatchJobParametersToMldev(_0x42983b,_0x1ecde1){const _0x2df431=a1_0x54af01,_0x62eb3f={},_0x2ea1dc=getValueByPath(_0x1ecde1,[_0x2df431(0x210)]);_0x2ea1dc!=null&&setValueByPath(_0x62eb3f,['_url',_0x2df431(0x210)],tModel(_0x42983b,_0x2ea1dc));const _0x4e84fd=getValueByPath(_0x1ecde1,[_0x2df431(0x390)]);_0x4e84fd!=null&&setValueByPath(_0x62eb3f,[_0x2df431(0x4a4),_0x2df431(0x4b1)],batchJobSourceToMldev(_0x42983b,tBatchJobSource(_0x42983b,_0x4e84fd)));const _0x1bc74c=getValueByPath(_0x1ecde1,['config']);return _0x1bc74c!=null&&createBatchJobConfigToMldev(_0x1bc74c,_0x62eb3f),_0x62eb3f;}function createBatchJobParametersToVertex(_0x13e1d6,_0x518438){const _0x40ae8c=a1_0x54af01,_0x5402bc={},_0x25b8f6=getValueByPath(_0x518438,[_0x40ae8c(0x210)]);_0x25b8f6!=null&&setValueByPath(_0x5402bc,['model'],tModel(_0x13e1d6,_0x25b8f6));const _0xa3928c=getValueByPath(_0x518438,['src']);_0xa3928c!=null&&setValueByPath(_0x5402bc,[_0x40ae8c(0x4b1)],batchJobSourceToVertex(tBatchJobSource(_0x13e1d6,_0xa3928c)));const _0x14eca1=getValueByPath(_0x518438,['config']);return _0x14eca1!=null&&createBatchJobConfigToVertex(_0x14eca1,_0x5402bc),_0x5402bc;}function createEmbeddingsBatchJobConfigToMldev(_0x383abd,_0x26acec){const _0xdb5c02=a1_0x54af01,_0x282f32={},_0x11203a=getValueByPath(_0x383abd,[_0xdb5c02(0x37e)]);return _0x26acec!==undefined&&_0x11203a!=null&&setValueByPath(_0x26acec,[_0xdb5c02(0x4a4),_0xdb5c02(0x37e)],_0x11203a),_0x282f32;}function createEmbeddingsBatchJobParametersToMldev(_0xac3581,_0x3b1215){const _0x14bc92=a1_0x54af01,_0x450f3c={},_0x47a190=getValueByPath(_0x3b1215,[_0x14bc92(0x210)]);_0x47a190!=null&&setValueByPath(_0x450f3c,[_0x14bc92(0x4e9),_0x14bc92(0x210)],tModel(_0xac3581,_0x47a190));const _0x1e10c6=getValueByPath(_0x3b1215,['src']);_0x1e10c6!=null&&setValueByPath(_0x450f3c,[_0x14bc92(0x4a4),_0x14bc92(0x4b1)],embeddingsBatchJobSourceToMldev(_0xac3581,_0x1e10c6));const _0x263db7=getValueByPath(_0x3b1215,[_0x14bc92(0x1b0)]);return _0x263db7!=null&&createEmbeddingsBatchJobConfigToMldev(_0x263db7,_0x450f3c),_0x450f3c;}function deleteBatchJobParametersToMldev(_0x9a4cd,_0x58d9b8){const _0x10fd8b=a1_0x54af01,_0x3d0aac={},_0x54ed19=getValueByPath(_0x58d9b8,['name']);return _0x54ed19!=null&&setValueByPath(_0x3d0aac,[_0x10fd8b(0x4e9),_0x10fd8b(0x24b)],tBatchJobName(_0x9a4cd,_0x54ed19)),_0x3d0aac;}function deleteBatchJobParametersToVertex(_0x1ccc18,_0x5829f9){const _0x4ba8b3=a1_0x54af01,_0x31ea01={},_0x580398=getValueByPath(_0x5829f9,[_0x4ba8b3(0x24b)]);return _0x580398!=null&&setValueByPath(_0x31ea01,[_0x4ba8b3(0x4e9),'name'],tBatchJobName(_0x1ccc18,_0x580398)),_0x31ea01;}function deleteResourceJobFromMldev(_0x44fd2e){const _0x2434e9=a1_0x54af01,_0x38fee3={},_0x41a509=getValueByPath(_0x44fd2e,['sdkHttpResponse']);_0x41a509!=null&&setValueByPath(_0x38fee3,[_0x2434e9(0x25b)],_0x41a509);const _0xd63bd3=getValueByPath(_0x44fd2e,[_0x2434e9(0x24b)]);_0xd63bd3!=null&&setValueByPath(_0x38fee3,[_0x2434e9(0x24b)],_0xd63bd3);const _0x331f21=getValueByPath(_0x44fd2e,[_0x2434e9(0x49f)]);_0x331f21!=null&&setValueByPath(_0x38fee3,['done'],_0x331f21);const _0xbc6ca6=getValueByPath(_0x44fd2e,[_0x2434e9(0x3d6)]);return _0xbc6ca6!=null&&setValueByPath(_0x38fee3,[_0x2434e9(0x3d6)],_0xbc6ca6),_0x38fee3;}function deleteResourceJobFromVertex(_0x2a242f){const _0x485de6=a1_0x54af01,_0x553fc2={},_0x4d773d=getValueByPath(_0x2a242f,[_0x485de6(0x25b)]);_0x4d773d!=null&&setValueByPath(_0x553fc2,['sdkHttpResponse'],_0x4d773d);const _0x5881eb=getValueByPath(_0x2a242f,[_0x485de6(0x24b)]);_0x5881eb!=null&&setValueByPath(_0x553fc2,[_0x485de6(0x24b)],_0x5881eb);const _0x338538=getValueByPath(_0x2a242f,['done']);_0x338538!=null&&setValueByPath(_0x553fc2,[_0x485de6(0x49f)],_0x338538);const _0x505491=getValueByPath(_0x2a242f,[_0x485de6(0x3d6)]);return _0x505491!=null&&setValueByPath(_0x553fc2,[_0x485de6(0x3d6)],_0x505491),_0x553fc2;}function embedContentBatchToMldev(_0x2f3efd,_0xeae4dd){const _0x3a48a1=a1_0x54af01,_0x1cff02={},_0x1ee007=getValueByPath(_0xeae4dd,[_0x3a48a1(0x45b)]);if(_0x1ee007!=null){let _0x25187f=tContentsForEmbed(_0x2f3efd,_0x1ee007);Array[_0x3a48a1(0x1e2)](_0x25187f)&&(_0x25187f=_0x25187f[_0x3a48a1(0x261)](_0x5d8e97=>{return _0x5d8e97;})),setValueByPath(_0x1cff02,['requests[]','request',_0x3a48a1(0x1a9)],_0x25187f);}const _0x2e68e0=getValueByPath(_0xeae4dd,[_0x3a48a1(0x1b0)]);return _0x2e68e0!=null&&(setValueByPath(_0x1cff02,[_0x3a48a1(0x339)],embedContentConfigToMldev$1(_0x2e68e0,_0x1cff02)),moveValueByPath(_0x1cff02,{'requests[].*':_0x3a48a1(0x1aa)})),_0x1cff02;}function embedContentConfigToMldev$1(_0xbc1bc1,_0x1552fd){const _0x6fbc59=a1_0x54af01,_0x55f670={},_0xe49055=getValueByPath(_0xbc1bc1,[_0x6fbc59(0x1e3)]);_0x1552fd!==undefined&&_0xe49055!=null&&setValueByPath(_0x1552fd,[_0x6fbc59(0x435),_0x6fbc59(0x1e3)],_0xe49055);const _0x447782=getValueByPath(_0xbc1bc1,['title']);_0x1552fd!==undefined&&_0x447782!=null&&setValueByPath(_0x1552fd,[_0x6fbc59(0x435),_0x6fbc59(0x4cc)],_0x447782);const _0x28aacb=getValueByPath(_0xbc1bc1,[_0x6fbc59(0x5b0)]);_0x1552fd!==undefined&&_0x28aacb!=null&&setValueByPath(_0x1552fd,[_0x6fbc59(0x435),'outputDimensionality'],_0x28aacb);if(getValueByPath(_0xbc1bc1,['mimeType'])!==undefined)throw new Error(_0x6fbc59(0x2da));if(getValueByPath(_0xbc1bc1,[_0x6fbc59(0x527)])!==undefined)throw new Error(_0x6fbc59(0x51a));return _0x55f670;}function embeddingsBatchJobSourceToMldev(_0x3e34d4,_0x1fb22c){const _0x5a3946=a1_0x54af01,_0x1b3f97={},_0x202e8d=getValueByPath(_0x1fb22c,[_0x5a3946(0x6ca)]);_0x202e8d!=null&&setValueByPath(_0x1b3f97,['file_name'],_0x202e8d);const _0x5b7826=getValueByPath(_0x1fb22c,[_0x5a3946(0x2a4)]);return _0x5b7826!=null&&setValueByPath(_0x1b3f97,[_0x5a3946(0x507)],embedContentBatchToMldev(_0x3e34d4,_0x5b7826)),_0x1b3f97;}function fileDataToMldev$4(_0x1f4e1a){const _0x21b4df=a1_0x54af01,_0x52b1b7={};if(getValueByPath(_0x1f4e1a,[_0x21b4df(0x37e)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x3ab0a7=getValueByPath(_0x1f4e1a,[_0x21b4df(0x64b)]);_0x3ab0a7!=null&&setValueByPath(_0x52b1b7,['fileUri'],_0x3ab0a7);const _0x3aa958=getValueByPath(_0x1f4e1a,['mimeType']);return _0x3aa958!=null&&setValueByPath(_0x52b1b7,[_0x21b4df(0x2cd)],_0x3aa958),_0x52b1b7;}function functionCallToMldev$4(_0x2a81dc){const _0x5eb73a=a1_0x54af01,_0x54765d={},_0x1b61b3=getValueByPath(_0x2a81dc,['id']);_0x1b61b3!=null&&setValueByPath(_0x54765d,['id'],_0x1b61b3);const _0xe60d09=getValueByPath(_0x2a81dc,[_0x5eb73a(0x411)]);_0xe60d09!=null&&setValueByPath(_0x54765d,[_0x5eb73a(0x411)],_0xe60d09);const _0x4ee61b=getValueByPath(_0x2a81dc,[_0x5eb73a(0x24b)]);_0x4ee61b!=null&&setValueByPath(_0x54765d,[_0x5eb73a(0x24b)],_0x4ee61b);if(getValueByPath(_0x2a81dc,[_0x5eb73a(0x5f4)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x2a81dc,[_0x5eb73a(0x50f)])!==undefined)throw new Error(_0x5eb73a(0x2ae));return _0x54765d;}function functionCallingConfigToMldev$2(_0x1380d3){const _0x2644fc=a1_0x54af01,_0x230198={},_0x1cdc2b=getValueByPath(_0x1380d3,[_0x2644fc(0x474)]);_0x1cdc2b!=null&&setValueByPath(_0x230198,[_0x2644fc(0x474)],_0x1cdc2b);const _0x45fcc2=getValueByPath(_0x1380d3,[_0x2644fc(0x45d)]);_0x45fcc2!=null&&setValueByPath(_0x230198,[_0x2644fc(0x45d)],_0x45fcc2);if(getValueByPath(_0x1380d3,[_0x2644fc(0x678)])!==undefined)throw new Error('streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x230198;}function generateContentConfigToMldev$1(_0x191524,_0x5c13b4,_0x32e8b0){const _0x185495=a1_0x54af01,_0x1b91b3={},_0x3be152=getValueByPath(_0x5c13b4,[_0x185495(0x3ea)]);_0x32e8b0!==undefined&&_0x3be152!=null&&setValueByPath(_0x32e8b0,[_0x185495(0x3ea)],contentToMldev$4(tContent(_0x3be152)));const _0x51b244=getValueByPath(_0x5c13b4,[_0x185495(0x5ba)]);_0x51b244!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x5ba)],_0x51b244);const _0x2cf00a=getValueByPath(_0x5c13b4,[_0x185495(0x200)]);_0x2cf00a!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x200)],_0x2cf00a);const _0x265edc=getValueByPath(_0x5c13b4,[_0x185495(0x431)]);_0x265edc!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x431)],_0x265edc);const _0x52b2e0=getValueByPath(_0x5c13b4,['candidateCount']);_0x52b2e0!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x661)],_0x52b2e0);const _0x1c0966=getValueByPath(_0x5c13b4,[_0x185495(0x416)]);_0x1c0966!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x416)],_0x1c0966);const _0x37bb9b=getValueByPath(_0x5c13b4,[_0x185495(0x596)]);_0x37bb9b!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x596)],_0x37bb9b);const _0x21a071=getValueByPath(_0x5c13b4,[_0x185495(0x469)]);_0x21a071!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x469)],_0x21a071);const _0x23f924=getValueByPath(_0x5c13b4,[_0x185495(0x640)]);_0x23f924!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x640)],_0x23f924);const _0x4b3fb1=getValueByPath(_0x5c13b4,[_0x185495(0x2f9)]);_0x4b3fb1!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x2f9)],_0x4b3fb1);const _0x2d1498=getValueByPath(_0x5c13b4,[_0x185495(0x18c)]);_0x2d1498!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x18c)],_0x2d1498);const _0x42c3cf=getValueByPath(_0x5c13b4,[_0x185495(0x444)]);_0x42c3cf!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x444)],_0x42c3cf);const _0x2d4291=getValueByPath(_0x5c13b4,[_0x185495(0x27e)]);_0x2d4291!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x27e)],_0x2d4291);const _0x7f28fd=getValueByPath(_0x5c13b4,['responseSchema']);_0x7f28fd!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x1d1)],tSchema(_0x7f28fd));const _0x3108a4=getValueByPath(_0x5c13b4,[_0x185495(0x436)]);_0x3108a4!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x436)],_0x3108a4);if(getValueByPath(_0x5c13b4,['routingConfig'])!==undefined)throw new Error(_0x185495(0x49d));if(getValueByPath(_0x5c13b4,[_0x185495(0x39c)])!==undefined)throw new Error(_0x185495(0x41a));const _0xe0d9f6=getValueByPath(_0x5c13b4,[_0x185495(0x1cf)]);if(_0x32e8b0!==undefined&&_0xe0d9f6!=null){let _0x1a05e5=_0xe0d9f6;Array['isArray'](_0x1a05e5)&&(_0x1a05e5=_0x1a05e5['map'](_0x5a9939=>{return safetySettingToMldev$1(_0x5a9939);})),setValueByPath(_0x32e8b0,[_0x185495(0x1cf)],_0x1a05e5);}const _0xebda7e=getValueByPath(_0x5c13b4,[_0x185495(0x458)]);if(_0x32e8b0!==undefined&&_0xebda7e!=null){let _0x2fea53=tTools(_0xebda7e);Array['isArray'](_0x2fea53)&&(_0x2fea53=_0x2fea53[_0x185495(0x261)](_0x48e022=>{return toolToMldev$4(tTool(_0x48e022));})),setValueByPath(_0x32e8b0,[_0x185495(0x458)],_0x2fea53);}const _0x445f35=getValueByPath(_0x5c13b4,['toolConfig']);_0x32e8b0!==undefined&&_0x445f35!=null&&setValueByPath(_0x32e8b0,[_0x185495(0x47a)],toolConfigToMldev$2(_0x445f35));if(getValueByPath(_0x5c13b4,['labels'])!==undefined)throw new Error('labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x453e5d=getValueByPath(_0x5c13b4,['cachedContent']);_0x32e8b0!==undefined&&_0x453e5d!=null&&setValueByPath(_0x32e8b0,[_0x185495(0x6a8)],tCachedContentName(_0x191524,_0x453e5d));const _0x263462=getValueByPath(_0x5c13b4,[_0x185495(0x282)]);_0x263462!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x282)],_0x263462);const _0x451b4f=getValueByPath(_0x5c13b4,[_0x185495(0x5e8)]);_0x451b4f!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x5e8)],_0x451b4f);const _0x4a3dbf=getValueByPath(_0x5c13b4,[_0x185495(0x63c)]);_0x4a3dbf!=null&&setValueByPath(_0x1b91b3,['speechConfig'],tSpeechConfig(_0x4a3dbf));if(getValueByPath(_0x5c13b4,[_0x185495(0x33e)])!==undefined)throw new Error('audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x55b861=getValueByPath(_0x5c13b4,['thinkingConfig']);_0x55b861!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x59d)],_0x55b861);const _0x99aa1f=getValueByPath(_0x5c13b4,[_0x185495(0x2a6)]);_0x99aa1f!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x2a6)],imageConfigToMldev$1(_0x99aa1f));const _0x317a18=getValueByPath(_0x5c13b4,[_0x185495(0x2e6)]);_0x317a18!=null&&setValueByPath(_0x1b91b3,[_0x185495(0x2e6)],_0x317a18);if(getValueByPath(_0x5c13b4,['modelArmorConfig'])!==undefined)throw new Error(_0x185495(0x5e2));return _0x1b91b3;}function generateContentResponseFromMldev$1(_0x4689d2){const _0x173e6a=a1_0x54af01,_0x15ce73={},_0x558cb6=getValueByPath(_0x4689d2,[_0x173e6a(0x25b)]);_0x558cb6!=null&&setValueByPath(_0x15ce73,['sdkHttpResponse'],_0x558cb6);const _0x31ccf5=getValueByPath(_0x4689d2,[_0x173e6a(0x546)]);if(_0x31ccf5!=null){let _0x5b7729=_0x31ccf5;Array[_0x173e6a(0x1e2)](_0x5b7729)&&(_0x5b7729=_0x5b7729[_0x173e6a(0x261)](_0x3751b7=>{return candidateFromMldev$1(_0x3751b7);})),setValueByPath(_0x15ce73,[_0x173e6a(0x546)],_0x5b7729);}const _0x27a3b2=getValueByPath(_0x4689d2,['modelVersion']);_0x27a3b2!=null&&setValueByPath(_0x15ce73,[_0x173e6a(0x6c3)],_0x27a3b2);const _0x443828=getValueByPath(_0x4689d2,[_0x173e6a(0x56c)]);_0x443828!=null&&setValueByPath(_0x15ce73,['promptFeedback'],_0x443828);const _0x2998cc=getValueByPath(_0x4689d2,[_0x173e6a(0x68e)]);_0x2998cc!=null&&setValueByPath(_0x15ce73,['responseId'],_0x2998cc);const _0x460af5=getValueByPath(_0x4689d2,['usageMetadata']);return _0x460af5!=null&&setValueByPath(_0x15ce73,['usageMetadata'],_0x460af5),_0x15ce73;}function getBatchJobParametersToMldev(_0x29e300,_0x38ebba){const _0x3193fe=a1_0x54af01,_0x1e4a87={},_0x3069b7=getValueByPath(_0x38ebba,[_0x3193fe(0x24b)]);return _0x3069b7!=null&&setValueByPath(_0x1e4a87,['_url','name'],tBatchJobName(_0x29e300,_0x3069b7)),_0x1e4a87;}function getBatchJobParametersToVertex(_0x4a1cd7,_0x463b1a){const _0x4d3abc=a1_0x54af01,_0x4ab5c1={},_0x2c223a=getValueByPath(_0x463b1a,[_0x4d3abc(0x24b)]);return _0x2c223a!=null&&setValueByPath(_0x4ab5c1,[_0x4d3abc(0x4e9),_0x4d3abc(0x24b)],tBatchJobName(_0x4a1cd7,_0x2c223a)),_0x4ab5c1;}function googleMapsToMldev$4(_0x56b93f){const _0x54ed34=a1_0x54af01,_0x2fb3c1={};if(getValueByPath(_0x56b93f,[_0x54ed34(0x699)])!==undefined)throw new Error(_0x54ed34(0x590));const _0x276356=getValueByPath(_0x56b93f,[_0x54ed34(0x63d)]);return _0x276356!=null&&setValueByPath(_0x2fb3c1,[_0x54ed34(0x63d)],_0x276356),_0x2fb3c1;}function googleSearchToMldev$4(_0xc4b328){const _0x407fc7=a1_0x54af01,_0x1e501e={};if(getValueByPath(_0xc4b328,[_0x407fc7(0x1e1)])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0xc4b328,['blockingConfidence'])!==undefined)throw new Error(_0x407fc7(0x614));const _0xcf40ec=getValueByPath(_0xc4b328,[_0x407fc7(0x446)]);return _0xcf40ec!=null&&setValueByPath(_0x1e501e,['timeRangeFilter'],_0xcf40ec),_0x1e501e;}function imageConfigToMldev$1(_0x1e373c){const _0x3481a2=a1_0x54af01,_0xf585ab={},_0x209455=getValueByPath(_0x1e373c,['aspectRatio']);_0x209455!=null&&setValueByPath(_0xf585ab,[_0x3481a2(0x628)],_0x209455);const _0x1af38b=getValueByPath(_0x1e373c,[_0x3481a2(0x41b)]);_0x1af38b!=null&&setValueByPath(_0xf585ab,['imageSize'],_0x1af38b);if(getValueByPath(_0x1e373c,[_0x3481a2(0x1f5)])!==undefined)throw new Error(_0x3481a2(0x18f));if(getValueByPath(_0x1e373c,[_0x3481a2(0x1a7)])!==undefined)throw new Error(_0x3481a2(0x4db));if(getValueByPath(_0x1e373c,['outputCompressionQuality'])!==undefined)throw new Error(_0x3481a2(0x296));return _0xf585ab;}function inlinedRequestToMldev(_0x136a1,_0x5c6262){const _0x346822=a1_0x54af01,_0x169888={},_0x5aebb1=getValueByPath(_0x5c6262,[_0x346822(0x210)]);_0x5aebb1!=null&&setValueByPath(_0x169888,[_0x346822(0x44a),_0x346822(0x210)],tModel(_0x136a1,_0x5aebb1));const _0x2cffc1=getValueByPath(_0x5c6262,[_0x346822(0x45b)]);if(_0x2cffc1!=null){let _0x24c66f=tContents(_0x2cffc1);Array[_0x346822(0x1e2)](_0x24c66f)&&(_0x24c66f=_0x24c66f['map'](_0x45c576=>{return contentToMldev$4(_0x45c576);})),setValueByPath(_0x169888,[_0x346822(0x44a),'contents'],_0x24c66f);}const _0x35c8bb=getValueByPath(_0x5c6262,[_0x346822(0x54a)]);_0x35c8bb!=null&&setValueByPath(_0x169888,[_0x346822(0x54a)],_0x35c8bb);const _0x105e0b=getValueByPath(_0x5c6262,[_0x346822(0x1b0)]);return _0x105e0b!=null&&setValueByPath(_0x169888,[_0x346822(0x44a),'generationConfig'],generateContentConfigToMldev$1(_0x136a1,_0x105e0b,getValueByPath(_0x169888,[_0x346822(0x44a)],{}))),_0x169888;}function inlinedResponseFromMldev(_0x375f1c){const _0x144915=a1_0x54af01,_0x395310={},_0x18f37f=getValueByPath(_0x375f1c,[_0x144915(0x575)]);_0x18f37f!=null&&setValueByPath(_0x395310,[_0x144915(0x575)],generateContentResponseFromMldev$1(_0x18f37f));const _0x264125=getValueByPath(_0x375f1c,[_0x144915(0x54a)]);_0x264125!=null&&setValueByPath(_0x395310,[_0x144915(0x54a)],_0x264125);const _0x3b4f3f=getValueByPath(_0x375f1c,[_0x144915(0x3d6)]);return _0x3b4f3f!=null&&setValueByPath(_0x395310,['error'],_0x3b4f3f),_0x395310;}function listBatchJobsConfigToMldev(_0xd1df72,_0x5e7f14){const _0x37cad9=a1_0x54af01,_0x488504={},_0x51b37a=getValueByPath(_0xd1df72,['pageSize']);_0x5e7f14!==undefined&&_0x51b37a!=null&&setValueByPath(_0x5e7f14,[_0x37cad9(0x46e),_0x37cad9(0x3a4)],_0x51b37a);const _0xbbaba1=getValueByPath(_0xd1df72,[_0x37cad9(0x5ac)]);_0x5e7f14!==undefined&&_0xbbaba1!=null&&setValueByPath(_0x5e7f14,[_0x37cad9(0x46e),'pageToken'],_0xbbaba1);if(getValueByPath(_0xd1df72,[_0x37cad9(0x61b)])!==undefined)throw new Error(_0x37cad9(0x5b4));return _0x488504;}function listBatchJobsConfigToVertex(_0x3c2ef4,_0x538d69){const _0xc9a832=a1_0x54af01,_0x28f9d3={},_0x2a3331=getValueByPath(_0x3c2ef4,[_0xc9a832(0x3a4)]);_0x538d69!==undefined&&_0x2a3331!=null&&setValueByPath(_0x538d69,[_0xc9a832(0x46e),'pageSize'],_0x2a3331);const _0x476d9f=getValueByPath(_0x3c2ef4,[_0xc9a832(0x5ac)]);_0x538d69!==undefined&&_0x476d9f!=null&&setValueByPath(_0x538d69,[_0xc9a832(0x46e),'pageToken'],_0x476d9f);const _0x33f5b8=getValueByPath(_0x3c2ef4,[_0xc9a832(0x61b)]);return _0x538d69!==undefined&&_0x33f5b8!=null&&setValueByPath(_0x538d69,[_0xc9a832(0x46e),_0xc9a832(0x61b)],_0x33f5b8),_0x28f9d3;}function listBatchJobsParametersToMldev(_0x5994d6){const _0x39fdfc={},_0x2871dc=getValueByPath(_0x5994d6,['config']);return _0x2871dc!=null&&listBatchJobsConfigToMldev(_0x2871dc,_0x39fdfc),_0x39fdfc;}function listBatchJobsParametersToVertex(_0x2f4abe){const _0x245275=a1_0x54af01,_0x495111={},_0x48c8ed=getValueByPath(_0x2f4abe,[_0x245275(0x1b0)]);return _0x48c8ed!=null&&listBatchJobsConfigToVertex(_0x48c8ed,_0x495111),_0x495111;}function listBatchJobsResponseFromMldev(_0x5df8a8){const _0x919aad=a1_0x54af01,_0x575b00={},_0x1081bb=getValueByPath(_0x5df8a8,[_0x919aad(0x25b)]);_0x1081bb!=null&&setValueByPath(_0x575b00,[_0x919aad(0x25b)],_0x1081bb);const _0x3717ea=getValueByPath(_0x5df8a8,[_0x919aad(0x408)]);_0x3717ea!=null&&setValueByPath(_0x575b00,[_0x919aad(0x408)],_0x3717ea);const _0xf1f49b=getValueByPath(_0x5df8a8,['operations']);if(_0xf1f49b!=null){let _0x339dc7=_0xf1f49b;Array[_0x919aad(0x1e2)](_0x339dc7)&&(_0x339dc7=_0x339dc7['map'](_0x271753=>{return batchJobFromMldev(_0x271753);})),setValueByPath(_0x575b00,[_0x919aad(0x528)],_0x339dc7);}return _0x575b00;}function a1_0x2f78(_0x3fc9e6,_0x1a4ef3){_0x3fc9e6=_0x3fc9e6-0x178;const _0x40f622=a1_0x40f6();let _0x2f7871=_0x40f622[_0x3fc9e6];return _0x2f7871;}function listBatchJobsResponseFromVertex(_0x453f14){const _0x5660f4=a1_0x54af01,_0x5498c1={},_0x134208=getValueByPath(_0x453f14,[_0x5660f4(0x25b)]);_0x134208!=null&&setValueByPath(_0x5498c1,[_0x5660f4(0x25b)],_0x134208);const _0x1e7dfd=getValueByPath(_0x453f14,['nextPageToken']);_0x1e7dfd!=null&&setValueByPath(_0x5498c1,[_0x5660f4(0x408)],_0x1e7dfd);const _0x581d92=getValueByPath(_0x453f14,[_0x5660f4(0x29e)]);if(_0x581d92!=null){let _0x45fd98=_0x581d92;Array['isArray'](_0x45fd98)&&(_0x45fd98=_0x45fd98['map'](_0x326b8d=>{return batchJobFromVertex(_0x326b8d);})),setValueByPath(_0x5498c1,[_0x5660f4(0x528)],_0x45fd98);}return _0x5498c1;}function partToMldev$4(_0x33f22c){const _0xae21a4=a1_0x54af01,_0x3a8fe5={},_0x1c5c75=getValueByPath(_0x33f22c,['mediaResolution']);_0x1c5c75!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x5e8)],_0x1c5c75);const _0x2067ef=getValueByPath(_0x33f22c,['codeExecutionResult']);_0x2067ef!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x6c6)],_0x2067ef);const _0x335035=getValueByPath(_0x33f22c,[_0xae21a4(0x236)]);_0x335035!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x236)],_0x335035);const _0x5a28bd=getValueByPath(_0x33f22c,[_0xae21a4(0x2e2)]);_0x5a28bd!=null&&setValueByPath(_0x3a8fe5,['fileData'],fileDataToMldev$4(_0x5a28bd));const _0x4fc643=getValueByPath(_0x33f22c,['functionCall']);_0x4fc643!=null&&setValueByPath(_0x3a8fe5,['functionCall'],functionCallToMldev$4(_0x4fc643));const _0x3dd136=getValueByPath(_0x33f22c,[_0xae21a4(0x5cb)]);_0x3dd136!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x5cb)],_0x3dd136);const _0x1dffcf=getValueByPath(_0x33f22c,[_0xae21a4(0x1a4)]);_0x1dffcf!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x1a4)],blobToMldev$4(_0x1dffcf));const _0x27e3a6=getValueByPath(_0x33f22c,[_0xae21a4(0x205)]);_0x27e3a6!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x205)],_0x27e3a6);const _0x5c8e3e=getValueByPath(_0x33f22c,[_0xae21a4(0x406)]);_0x5c8e3e!=null&&setValueByPath(_0x3a8fe5,['thought'],_0x5c8e3e);const _0x3bb3a8=getValueByPath(_0x33f22c,[_0xae21a4(0x56b)]);_0x3bb3a8!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x56b)],_0x3bb3a8);const _0x5b770b=getValueByPath(_0x33f22c,[_0xae21a4(0x313)]);return _0x5b770b!=null&&setValueByPath(_0x3a8fe5,[_0xae21a4(0x313)],_0x5b770b),_0x3a8fe5;}function safetySettingToMldev$1(_0x10ab7c){const _0x5f0097=a1_0x54af01,_0x42f126={},_0x3d936d=getValueByPath(_0x10ab7c,[_0x5f0097(0x302)]);_0x3d936d!=null&&setValueByPath(_0x42f126,[_0x5f0097(0x302)],_0x3d936d);if(getValueByPath(_0x10ab7c,[_0x5f0097(0x30d)])!==undefined)throw new Error('method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x161c48=getValueByPath(_0x10ab7c,['threshold']);return _0x161c48!=null&&setValueByPath(_0x42f126,[_0x5f0097(0x615)],_0x161c48),_0x42f126;}function toolConfigToMldev$2(_0x391acf){const _0x2ca86a=a1_0x54af01,_0x887093={},_0x3e25f5=getValueByPath(_0x391acf,[_0x2ca86a(0x1fa)]);_0x3e25f5!=null&&setValueByPath(_0x887093,[_0x2ca86a(0x1fa)],_0x3e25f5);const _0x298ab8=getValueByPath(_0x391acf,[_0x2ca86a(0x57d)]);return _0x298ab8!=null&&setValueByPath(_0x887093,[_0x2ca86a(0x57d)],functionCallingConfigToMldev$2(_0x298ab8)),_0x887093;}function toolToMldev$4(_0xa9b99){const _0x430420=a1_0x54af01,_0x49dbc4={};if(getValueByPath(_0xa9b99,[_0x430420(0x223)])!==undefined)throw new Error(_0x430420(0x466));const _0x275d73=getValueByPath(_0xa9b99,[_0x430420(0x318)]);_0x275d73!=null&&setValueByPath(_0x49dbc4,[_0x430420(0x318)],_0x275d73);const _0x31aec5=getValueByPath(_0xa9b99,[_0x430420(0x68d)]);_0x31aec5!=null&&setValueByPath(_0x49dbc4,[_0x430420(0x68d)],_0x31aec5);const _0x307ca9=getValueByPath(_0xa9b99,[_0x430420(0x352)]);_0x307ca9!=null&&setValueByPath(_0x49dbc4,[_0x430420(0x352)],_0x307ca9);if(getValueByPath(_0xa9b99,[_0x430420(0x26a)])!==undefined)throw new Error(_0x430420(0x3be));const _0x1c22fe=getValueByPath(_0xa9b99,[_0x430420(0x4fa)]);if(_0x1c22fe!=null){let _0x49e80a=_0x1c22fe;Array[_0x430420(0x1e2)](_0x49e80a)&&(_0x49e80a=_0x49e80a[_0x430420(0x261)](_0x2b0f01=>{return _0x2b0f01;})),setValueByPath(_0x49dbc4,[_0x430420(0x4fa)],_0x49e80a);}const _0x3286a1=getValueByPath(_0xa9b99,[_0x430420(0x35b)]);_0x3286a1!=null&&setValueByPath(_0x49dbc4,[_0x430420(0x35b)],googleMapsToMldev$4(_0x3286a1));const _0x52e769=getValueByPath(_0xa9b99,[_0x430420(0x58c)]);_0x52e769!=null&&setValueByPath(_0x49dbc4,[_0x430420(0x58c)],googleSearchToMldev$4(_0x52e769));const _0x2eeb51=getValueByPath(_0xa9b99,[_0x430420(0x6a2)]);_0x2eeb51!=null&&setValueByPath(_0x49dbc4,[_0x430420(0x6a2)],_0x2eeb51);const _0x299292=getValueByPath(_0xa9b99,[_0x430420(0x642)]);return _0x299292!=null&&setValueByPath(_0x49dbc4,['urlContext'],_0x299292),_0x49dbc4;}/**
37
+ * @license
38
+ * Copyright 2025 Google LLC
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ var PagedItem;(function(_0x265952){const _0x237b39=a1_0x54af01;_0x265952[_0x237b39(0x1c1)]='batchJobs',_0x265952[_0x237b39(0x3d9)]=_0x237b39(0x475),_0x265952[_0x237b39(0x5de)]=_0x237b39(0x3e5),_0x265952['PAGED_ITEM_FILES']=_0x237b39(0x58b),_0x265952['PAGED_ITEM_CACHED_CONTENTS']='cachedContents',_0x265952[_0x237b39(0x271)]='fileSearchStores',_0x265952[_0x237b39(0x557)]=_0x237b39(0x2a8);}(PagedItem||(PagedItem={})));class Pager{constructor(_0x279add,_0x2a3e52,_0x63f83a,_0x14fa3a){const _0x3edc71=a1_0x54af01;this['pageInternal']=[],this['paramsInternal']={},this[_0x3edc71(0x6a0)]=_0x2a3e52,this[_0x3edc71(0x47f)](_0x279add,_0x63f83a,_0x14fa3a);}[a1_0x54af01(0x47f)](_0x2fa613,_0x32adb3,_0x21d057){const _0x21d3d7=a1_0x54af01;var _0x4d8442,_0x2c9221;this[_0x21d3d7(0x360)]=_0x2fa613,this['pageInternal']=_0x32adb3[this[_0x21d3d7(0x360)]]||[],this[_0x21d3d7(0x550)]=_0x32adb3===null||_0x32adb3===void 0x0?void 0x0:_0x32adb3[_0x21d3d7(0x25b)],this[_0x21d3d7(0x43c)]=0x0;let _0x7d96e1={'config':{}};if(!_0x21d057||Object[_0x21d3d7(0x51c)](_0x21d057)[_0x21d3d7(0x258)]===0x0)_0x7d96e1={'config':{}};else typeof _0x21d057===_0x21d3d7(0x34b)?_0x7d96e1=Object[_0x21d3d7(0x541)]({},_0x21d057):_0x7d96e1=_0x21d057;_0x7d96e1['config']&&(_0x7d96e1[_0x21d3d7(0x1b0)][_0x21d3d7(0x5ac)]=_0x32adb3[_0x21d3d7(0x408)]),this[_0x21d3d7(0x387)]=_0x7d96e1,this[_0x21d3d7(0x1c2)]=(_0x2c9221=(_0x4d8442=_0x7d96e1['config'])===null||_0x4d8442===void 0x0?void 0x0:_0x4d8442[_0x21d3d7(0x3a4)])!==null&&_0x2c9221!==void 0x0?_0x2c9221:this[_0x21d3d7(0x5df)][_0x21d3d7(0x258)];}[a1_0x54af01(0x5bd)](_0x31e82a){const _0x4124fd=a1_0x54af01;this[_0x4124fd(0x47f)](this['nameInternal'],_0x31e82a,this[_0x4124fd(0x387)]);}get[a1_0x54af01(0x23b)](){const _0x150717=a1_0x54af01;return this[_0x150717(0x5df)];}get[a1_0x54af01(0x24b)](){const _0x3bc313=a1_0x54af01;return this[_0x3bc313(0x360)];}get['pageSize'](){return this['pageInternalSize'];}get[a1_0x54af01(0x25b)](){return this['sdkHttpResponseInternal'];}get['params'](){const _0xad56b1=a1_0x54af01;return this[_0xad56b1(0x387)];}get[a1_0x54af01(0x291)](){const _0xa0cfe1=a1_0x54af01;return this[_0xa0cfe1(0x5df)][_0xa0cfe1(0x258)];}[a1_0x54af01(0x62b)](_0x572ec1){const _0x54dc98=a1_0x54af01;return this[_0x54dc98(0x5df)][_0x572ec1];}[Symbol[a1_0x54af01(0x4ea)]](){return{'next':async()=>{const _0x1f35f2=a1_0x2f78;if(this[_0x1f35f2(0x43c)]>=this[_0x1f35f2(0x291)]){if(this['hasNextPage']())await this['nextPage']();else return{'value':undefined,'done':!![]};}const _0x49d666=this['getItem'](this[_0x1f35f2(0x43c)]);return this['idxInternal']+=0x1,{'value':_0x49d666,'done':![]};},'return':async()=>{return{'value':undefined,'done':!![]};}};}async['nextPage'](){const _0x749086=a1_0x54af01;if(!this['hasNextPage']())throw new Error(_0x749086(0x3d3));const _0xf49c91=await this[_0x749086(0x6a0)](this[_0x749086(0x31a)]);return this[_0x749086(0x5bd)](_0xf49c91),this['page'];}[a1_0x54af01(0x1b9)](){const _0x5cf8f9=a1_0x54af01;var _0x1e95f6;if(((_0x1e95f6=this[_0x5cf8f9(0x31a)][_0x5cf8f9(0x1b0)])===null||_0x1e95f6===void 0x0?void 0x0:_0x1e95f6[_0x5cf8f9(0x5ac)])!==undefined)return!![];return![];}}/**
42
+ * @license
43
+ * Copyright 2025 Google LLC
44
+ * SPDX-License-Identifier: Apache-2.0
45
+ */
46
+ class Batches extends BaseModule{constructor(_0x31e998){const _0x120624=a1_0x54af01;super(),this[_0x120624(0x5bb)]=_0x31e998,this[_0x120624(0x338)]=async(_0x4c692f={})=>{const _0x4d16d0=_0x120624;return new Pager(PagedItem[_0x4d16d0(0x1c1)],_0x53ec6b=>this[_0x4d16d0(0x62c)](_0x53ec6b),await this[_0x4d16d0(0x62c)](_0x4c692f),_0x4c692f);},this[_0x120624(0x1af)]=async _0x17c773=>{const _0x38457b=_0x120624;return this[_0x38457b(0x5bb)][_0x38457b(0x29b)]()&&(_0x17c773[_0x38457b(0x1b0)]=this[_0x38457b(0x3cc)](_0x17c773[_0x38457b(0x390)],_0x17c773[_0x38457b(0x1b0)])),this[_0x38457b(0x556)](_0x17c773);},this[_0x120624(0x3ba)]=async _0x19a29d=>{const _0x45f7dd=_0x120624;console[_0x45f7dd(0x44c)]('batches.createEmbeddings()\x20is\x20experimental\x20and\x20may\x20change\x20without\x20notice.');if(this['apiClient']['isVertexAI']())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20batches.createEmbeddings.');return this[_0x45f7dd(0x460)](_0x19a29d);};}['createInlinedGenerateContentRequest'](_0x4d646d){const _0x2b5522=a1_0x54af01,_0x4a4c76=createBatchJobParametersToMldev(this[_0x2b5522(0x5bb)],_0x4d646d),_0x90a269=_0x4a4c76[_0x2b5522(0x4e9)],_0x28c360=formatMap('{model}:batchGenerateContent',_0x90a269),_0x480d48=_0x4a4c76[_0x2b5522(0x4a4)],_0x5a2ce2=_0x480d48[_0x2b5522(0x4b1)],_0xe7d6e=_0x5a2ce2[_0x2b5522(0x507)],_0xb432fb=_0xe7d6e[_0x2b5522(0x507)],_0x34d7c1=[];for(const _0x387e7f of _0xb432fb){const _0x1fa09e=Object[_0x2b5522(0x541)]({},_0x387e7f);if(_0x1fa09e[_0x2b5522(0x3ea)]){const _0x4dc340=_0x1fa09e[_0x2b5522(0x3ea)];delete _0x1fa09e[_0x2b5522(0x3ea)];const _0x425ea3=_0x1fa09e[_0x2b5522(0x44a)];_0x425ea3[_0x2b5522(0x3ea)]=_0x4dc340,_0x1fa09e[_0x2b5522(0x44a)]=_0x425ea3;}_0x34d7c1['push'](_0x1fa09e);}return _0xe7d6e[_0x2b5522(0x507)]=_0x34d7c1,delete _0x4a4c76[_0x2b5522(0x1b0)],delete _0x4a4c76['_url'],delete _0x4a4c76[_0x2b5522(0x46e)],{'path':_0x28c360,'body':_0x4a4c76};}[a1_0x54af01(0x5a4)](_0xa87343){const _0xb02abc=a1_0x54af01;if(typeof _0xa87343===_0xb02abc(0x45a))return _0xa87343[_0xb02abc(0x55d)](_0xb02abc(0x3bb))?_0xa87343:undefined;if(!Array['isArray'](_0xa87343)&&_0xa87343[_0xb02abc(0x576)]&&_0xa87343['gcsUri'][_0xb02abc(0x258)]>0x0)return _0xa87343['gcsUri'][0x0];return undefined;}[a1_0x54af01(0x326)](_0x266582){const _0x4c1c9f=a1_0x54af01;if(typeof _0x266582==='string')return _0x266582[_0x4c1c9f(0x55d)](_0x4c1c9f(0x3db))?_0x266582:undefined;if(!Array[_0x4c1c9f(0x1e2)](_0x266582))return _0x266582[_0x4c1c9f(0x1a8)];return undefined;}[a1_0x54af01(0x3cc)](_0x54e69e,_0x3564c9){const _0x47faa0=a1_0x54af01,_0x30fa14=_0x3564c9?Object[_0x47faa0(0x541)]({},_0x3564c9):{},_0xf86e37=Date['now']()[_0x47faa0(0x674)]();!_0x30fa14[_0x47faa0(0x37e)]&&(_0x30fa14[_0x47faa0(0x37e)]=_0x47faa0(0x382)+_0xf86e37);if(_0x30fa14[_0x47faa0(0x366)]===undefined){const _0x1a75d1=this[_0x47faa0(0x5a4)](_0x54e69e),_0x53685b=this[_0x47faa0(0x326)](_0x54e69e);if(_0x1a75d1)_0x1a75d1['endsWith'](_0x47faa0(0x1ef))?_0x30fa14[_0x47faa0(0x366)]=_0x1a75d1['slice'](0x0,-0x6)+_0x47faa0(0x5d9):_0x30fa14[_0x47faa0(0x366)]=_0x1a75d1+_0x47faa0(0x412)+_0xf86e37;else{if(_0x53685b)_0x30fa14[_0x47faa0(0x366)]=_0x53685b+_0x47faa0(0x412)+_0xf86e37;else throw new Error('Unsupported\x20source\x20for\x20Vertex\x20AI:\x20No\x20GCS\x20or\x20BigQuery\x20URI\x20found.');}}return _0x30fa14;}async['createInternal'](_0x3aa9fc){const _0x39710e=a1_0x54af01;var _0x49442e,_0x38d34d,_0x143ed9,_0x53debc;let _0x3af094,_0x5487dd='',_0x1822e5={};if(this['apiClient'][_0x39710e(0x29b)]()){const _0x26597a=createBatchJobParametersToVertex(this[_0x39710e(0x5bb)],_0x3aa9fc);return _0x5487dd=formatMap('batchPredictionJobs',_0x26597a[_0x39710e(0x4e9)]),_0x1822e5=_0x26597a['_query'],delete _0x26597a['_url'],delete _0x26597a[_0x39710e(0x46e)],_0x3af094=this['apiClient']['request']({'path':_0x5487dd,'queryParams':_0x1822e5,'body':JSON[_0x39710e(0x45e)](_0x26597a),'httpMethod':_0x39710e(0x43a),'httpOptions':(_0x49442e=_0x3aa9fc[_0x39710e(0x1b0)])===null||_0x49442e===void 0x0?void 0x0:_0x49442e[_0x39710e(0x688)],'abortSignal':(_0x38d34d=_0x3aa9fc[_0x39710e(0x1b0)])===null||_0x38d34d===void 0x0?void 0x0:_0x38d34d['abortSignal']})[_0x39710e(0x28f)](_0x1397d5=>{return _0x1397d5['json']();}),_0x3af094['then'](_0x39ce06=>{const _0xc21b26=batchJobFromVertex(_0x39ce06);return _0xc21b26;});}else{const _0x53913e=createBatchJobParametersToMldev(this[_0x39710e(0x5bb)],_0x3aa9fc);return _0x5487dd=formatMap(_0x39710e(0x4e3),_0x53913e['_url']),_0x1822e5=_0x53913e[_0x39710e(0x46e)],delete _0x53913e[_0x39710e(0x4e9)],delete _0x53913e[_0x39710e(0x46e)],_0x3af094=this['apiClient'][_0x39710e(0x44a)]({'path':_0x5487dd,'queryParams':_0x1822e5,'body':JSON[_0x39710e(0x45e)](_0x53913e),'httpMethod':'POST','httpOptions':(_0x143ed9=_0x3aa9fc[_0x39710e(0x1b0)])===null||_0x143ed9===void 0x0?void 0x0:_0x143ed9[_0x39710e(0x688)],'abortSignal':(_0x53debc=_0x3aa9fc[_0x39710e(0x1b0)])===null||_0x53debc===void 0x0?void 0x0:_0x53debc[_0x39710e(0x67c)]})['then'](_0x45977c=>{const _0x2f2227=_0x39710e;return _0x45977c[_0x2f2227(0x648)]();}),_0x3af094[_0x39710e(0x28f)](_0x22acdf=>{const _0x4765ca=batchJobFromMldev(_0x22acdf);return _0x4765ca;});}}async[a1_0x54af01(0x460)](_0x286c25){const _0x47543e=a1_0x54af01;var _0x60d58,_0x5ca0d6;let _0x490724,_0x915379='',_0x28432c={};if(this[_0x47543e(0x5bb)][_0x47543e(0x29b)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x3a7b08=createEmbeddingsBatchJobParametersToMldev(this[_0x47543e(0x5bb)],_0x286c25);return _0x915379=formatMap('{model}:asyncBatchEmbedContent',_0x3a7b08[_0x47543e(0x4e9)]),_0x28432c=_0x3a7b08[_0x47543e(0x46e)],delete _0x3a7b08['_url'],delete _0x3a7b08[_0x47543e(0x46e)],_0x490724=this['apiClient']['request']({'path':_0x915379,'queryParams':_0x28432c,'body':JSON[_0x47543e(0x45e)](_0x3a7b08),'httpMethod':_0x47543e(0x43a),'httpOptions':(_0x60d58=_0x286c25[_0x47543e(0x1b0)])===null||_0x60d58===void 0x0?void 0x0:_0x60d58[_0x47543e(0x688)],'abortSignal':(_0x5ca0d6=_0x286c25[_0x47543e(0x1b0)])===null||_0x5ca0d6===void 0x0?void 0x0:_0x5ca0d6[_0x47543e(0x67c)]})['then'](_0x330f74=>{const _0x189f12=_0x47543e;return _0x330f74[_0x189f12(0x648)]();}),_0x490724[_0x47543e(0x28f)](_0x3f1865=>{const _0x45a226=batchJobFromMldev(_0x3f1865);return _0x45a226;});}}async[a1_0x54af01(0x5a2)](_0x24d466){const _0x62383=a1_0x54af01;var _0x2880b1,_0x1f2842,_0x455914,_0x571ba5;let _0x1d4796,_0x58fce0='',_0x86f135={};if(this['apiClient'][_0x62383(0x29b)]()){const _0x61555b=getBatchJobParametersToVertex(this[_0x62383(0x5bb)],_0x24d466);return _0x58fce0=formatMap('batchPredictionJobs/{name}',_0x61555b[_0x62383(0x4e9)]),_0x86f135=_0x61555b[_0x62383(0x46e)],delete _0x61555b['_url'],delete _0x61555b[_0x62383(0x46e)],_0x1d4796=this[_0x62383(0x5bb)][_0x62383(0x44a)]({'path':_0x58fce0,'queryParams':_0x86f135,'body':JSON[_0x62383(0x45e)](_0x61555b),'httpMethod':_0x62383(0x1f7),'httpOptions':(_0x2880b1=_0x24d466[_0x62383(0x1b0)])===null||_0x2880b1===void 0x0?void 0x0:_0x2880b1[_0x62383(0x688)],'abortSignal':(_0x1f2842=_0x24d466['config'])===null||_0x1f2842===void 0x0?void 0x0:_0x1f2842[_0x62383(0x67c)]})['then'](_0x335d4d=>{const _0x258319=_0x62383;return _0x335d4d[_0x258319(0x648)]();}),_0x1d4796[_0x62383(0x28f)](_0x33ab85=>{const _0x319522=batchJobFromVertex(_0x33ab85);return _0x319522;});}else{const _0x4e2689=getBatchJobParametersToMldev(this[_0x62383(0x5bb)],_0x24d466);return _0x58fce0=formatMap('batches/{name}',_0x4e2689[_0x62383(0x4e9)]),_0x86f135=_0x4e2689[_0x62383(0x46e)],delete _0x4e2689['_url'],delete _0x4e2689[_0x62383(0x46e)],_0x1d4796=this[_0x62383(0x5bb)][_0x62383(0x44a)]({'path':_0x58fce0,'queryParams':_0x86f135,'body':JSON[_0x62383(0x45e)](_0x4e2689),'httpMethod':_0x62383(0x1f7),'httpOptions':(_0x455914=_0x24d466[_0x62383(0x1b0)])===null||_0x455914===void 0x0?void 0x0:_0x455914[_0x62383(0x688)],'abortSignal':(_0x571ba5=_0x24d466[_0x62383(0x1b0)])===null||_0x571ba5===void 0x0?void 0x0:_0x571ba5[_0x62383(0x67c)]})[_0x62383(0x28f)](_0x1f3e2d=>{const _0x2292bb=_0x62383;return _0x1f3e2d[_0x2292bb(0x648)]();}),_0x1d4796[_0x62383(0x28f)](_0x318910=>{const _0x2e58b7=batchJobFromMldev(_0x318910);return _0x2e58b7;});}}async['cancel'](_0x5d4e49){const _0x5b0146=a1_0x54af01;var _0x517882,_0x4557e1,_0x121b74,_0x594d75;let _0x512300='',_0x4c0c9b={};if(this['apiClient']['isVertexAI']()){const _0x21e3bf=cancelBatchJobParametersToVertex(this[_0x5b0146(0x5bb)],_0x5d4e49);_0x512300=formatMap(_0x5b0146(0x69e),_0x21e3bf[_0x5b0146(0x4e9)]),_0x4c0c9b=_0x21e3bf[_0x5b0146(0x46e)],delete _0x21e3bf['_url'],delete _0x21e3bf[_0x5b0146(0x46e)],await this['apiClient']['request']({'path':_0x512300,'queryParams':_0x4c0c9b,'body':JSON[_0x5b0146(0x45e)](_0x21e3bf),'httpMethod':_0x5b0146(0x43a),'httpOptions':(_0x517882=_0x5d4e49['config'])===null||_0x517882===void 0x0?void 0x0:_0x517882[_0x5b0146(0x688)],'abortSignal':(_0x4557e1=_0x5d4e49[_0x5b0146(0x1b0)])===null||_0x4557e1===void 0x0?void 0x0:_0x4557e1[_0x5b0146(0x67c)]});}else{const _0x12ba45=cancelBatchJobParametersToMldev(this[_0x5b0146(0x5bb)],_0x5d4e49);_0x512300=formatMap(_0x5b0146(0x2ca),_0x12ba45[_0x5b0146(0x4e9)]),_0x4c0c9b=_0x12ba45['_query'],delete _0x12ba45[_0x5b0146(0x4e9)],delete _0x12ba45['_query'],await this[_0x5b0146(0x5bb)][_0x5b0146(0x44a)]({'path':_0x512300,'queryParams':_0x4c0c9b,'body':JSON['stringify'](_0x12ba45),'httpMethod':_0x5b0146(0x43a),'httpOptions':(_0x121b74=_0x5d4e49[_0x5b0146(0x1b0)])===null||_0x121b74===void 0x0?void 0x0:_0x121b74[_0x5b0146(0x688)],'abortSignal':(_0x594d75=_0x5d4e49[_0x5b0146(0x1b0)])===null||_0x594d75===void 0x0?void 0x0:_0x594d75[_0x5b0146(0x67c)]});}}async['listInternal'](_0x10e58c){const _0x5b93eb=a1_0x54af01;var _0x20bb6c,_0xffd162,_0x27b050,_0x29dd09;let _0x4cd4dc,_0x57cf91='',_0x50e7d2={};if(this['apiClient'][_0x5b93eb(0x29b)]()){const _0x34365c=listBatchJobsParametersToVertex(_0x10e58c);return _0x57cf91=formatMap(_0x5b93eb(0x29e),_0x34365c[_0x5b93eb(0x4e9)]),_0x50e7d2=_0x34365c[_0x5b93eb(0x46e)],delete _0x34365c[_0x5b93eb(0x4e9)],delete _0x34365c[_0x5b93eb(0x46e)],_0x4cd4dc=this['apiClient'][_0x5b93eb(0x44a)]({'path':_0x57cf91,'queryParams':_0x50e7d2,'body':JSON[_0x5b93eb(0x45e)](_0x34365c),'httpMethod':'GET','httpOptions':(_0x20bb6c=_0x10e58c[_0x5b93eb(0x1b0)])===null||_0x20bb6c===void 0x0?void 0x0:_0x20bb6c[_0x5b93eb(0x688)],'abortSignal':(_0xffd162=_0x10e58c[_0x5b93eb(0x1b0)])===null||_0xffd162===void 0x0?void 0x0:_0xffd162['abortSignal']})['then'](_0x1a5f38=>{const _0x34b0b6=_0x5b93eb;return _0x1a5f38[_0x34b0b6(0x648)]()[_0x34b0b6(0x28f)](_0x4d62c8=>{const _0x32c90d=_0x34b0b6,_0x53ace4=_0x4d62c8;return _0x53ace4[_0x32c90d(0x25b)]={'headers':_0x1a5f38['headers']},_0x53ace4;});}),_0x4cd4dc[_0x5b93eb(0x28f)](_0xcf1449=>{const _0x22aafe=_0x5b93eb,_0x43e760=listBatchJobsResponseFromVertex(_0xcf1449),_0x2f2823=new ListBatchJobsResponse();return Object[_0x22aafe(0x541)](_0x2f2823,_0x43e760),_0x2f2823;});}else{const _0x444bce=listBatchJobsParametersToMldev(_0x10e58c);return _0x57cf91=formatMap(_0x5b93eb(0x25a),_0x444bce[_0x5b93eb(0x4e9)]),_0x50e7d2=_0x444bce[_0x5b93eb(0x46e)],delete _0x444bce[_0x5b93eb(0x4e9)],delete _0x444bce[_0x5b93eb(0x46e)],_0x4cd4dc=this[_0x5b93eb(0x5bb)][_0x5b93eb(0x44a)]({'path':_0x57cf91,'queryParams':_0x50e7d2,'body':JSON[_0x5b93eb(0x45e)](_0x444bce),'httpMethod':_0x5b93eb(0x1f7),'httpOptions':(_0x27b050=_0x10e58c['config'])===null||_0x27b050===void 0x0?void 0x0:_0x27b050[_0x5b93eb(0x688)],'abortSignal':(_0x29dd09=_0x10e58c[_0x5b93eb(0x1b0)])===null||_0x29dd09===void 0x0?void 0x0:_0x29dd09[_0x5b93eb(0x67c)]})[_0x5b93eb(0x28f)](_0x30215a=>{const _0x14fb5d=_0x5b93eb;return _0x30215a['json']()[_0x14fb5d(0x28f)](_0x26b313=>{const _0x101d4d=_0x14fb5d,_0x37d7bb=_0x26b313;return _0x37d7bb[_0x101d4d(0x25b)]={'headers':_0x30215a['headers']},_0x37d7bb;});}),_0x4cd4dc[_0x5b93eb(0x28f)](_0x506eca=>{const _0x27969a=_0x5b93eb,_0x52d511=listBatchJobsResponseFromMldev(_0x506eca),_0x36099a=new ListBatchJobsResponse();return Object[_0x27969a(0x541)](_0x36099a,_0x52d511),_0x36099a;});}}async['delete'](_0x3f8470){const _0x19e4b9=a1_0x54af01;var _0x3a68ac,_0x4a6453,_0x2a7b3b,_0x35153a;let _0x5511bd,_0x2b1d2c='',_0x418c94={};if(this['apiClient'][_0x19e4b9(0x29b)]()){const _0x3c66e1=deleteBatchJobParametersToVertex(this['apiClient'],_0x3f8470);return _0x2b1d2c=formatMap('batchPredictionJobs/{name}',_0x3c66e1['_url']),_0x418c94=_0x3c66e1[_0x19e4b9(0x46e)],delete _0x3c66e1[_0x19e4b9(0x4e9)],delete _0x3c66e1['_query'],_0x5511bd=this[_0x19e4b9(0x5bb)][_0x19e4b9(0x44a)]({'path':_0x2b1d2c,'queryParams':_0x418c94,'body':JSON['stringify'](_0x3c66e1),'httpMethod':_0x19e4b9(0x5da),'httpOptions':(_0x3a68ac=_0x3f8470[_0x19e4b9(0x1b0)])===null||_0x3a68ac===void 0x0?void 0x0:_0x3a68ac[_0x19e4b9(0x688)],'abortSignal':(_0x4a6453=_0x3f8470[_0x19e4b9(0x1b0)])===null||_0x4a6453===void 0x0?void 0x0:_0x4a6453[_0x19e4b9(0x67c)]})['then'](_0x11b7bc=>{return _0x11b7bc['json']()['then'](_0x1e30bf=>{const _0x1f4d63=a1_0x2f78,_0x507c9e=_0x1e30bf;return _0x507c9e['sdkHttpResponse']={'headers':_0x11b7bc[_0x1f4d63(0x2fa)]},_0x507c9e;});}),_0x5511bd[_0x19e4b9(0x28f)](_0x4cf65b=>{const _0x3fde69=deleteResourceJobFromVertex(_0x4cf65b);return _0x3fde69;});}else{const _0x3376c0=deleteBatchJobParametersToMldev(this[_0x19e4b9(0x5bb)],_0x3f8470);return _0x2b1d2c=formatMap(_0x19e4b9(0x543),_0x3376c0[_0x19e4b9(0x4e9)]),_0x418c94=_0x3376c0[_0x19e4b9(0x46e)],delete _0x3376c0['_url'],delete _0x3376c0[_0x19e4b9(0x46e)],_0x5511bd=this[_0x19e4b9(0x5bb)]['request']({'path':_0x2b1d2c,'queryParams':_0x418c94,'body':JSON[_0x19e4b9(0x45e)](_0x3376c0),'httpMethod':_0x19e4b9(0x5da),'httpOptions':(_0x2a7b3b=_0x3f8470[_0x19e4b9(0x1b0)])===null||_0x2a7b3b===void 0x0?void 0x0:_0x2a7b3b[_0x19e4b9(0x688)],'abortSignal':(_0x35153a=_0x3f8470[_0x19e4b9(0x1b0)])===null||_0x35153a===void 0x0?void 0x0:_0x35153a[_0x19e4b9(0x67c)]})[_0x19e4b9(0x28f)](_0x21e61d=>{const _0xc52c24=_0x19e4b9;return _0x21e61d[_0xc52c24(0x648)]()[_0xc52c24(0x28f)](_0x391685=>{const _0x18f706=_0xc52c24,_0x1866ad=_0x391685;return _0x1866ad[_0x18f706(0x25b)]={'headers':_0x21e61d['headers']},_0x1866ad;});}),_0x5511bd[_0x19e4b9(0x28f)](_0x1aa7d0=>{const _0xc3d573=deleteResourceJobFromMldev(_0x1aa7d0);return _0xc3d573;});}}}/**
47
+ * @license
48
+ * Copyright 2025 Google LLC
49
+ * SPDX-License-Identifier: Apache-2.0
50
+ */
51
+ function blobToMldev$3(_0x288439){const _0x33ff14=a1_0x54af01,_0x1c95a4={},_0x49d744=getValueByPath(_0x288439,[_0x33ff14(0x354)]);_0x49d744!=null&&setValueByPath(_0x1c95a4,[_0x33ff14(0x354)],_0x49d744);if(getValueByPath(_0x288439,[_0x33ff14(0x37e)])!==undefined)throw new Error(_0x33ff14(0x5d7));const _0x2d165a=getValueByPath(_0x288439,[_0x33ff14(0x2cd)]);return _0x2d165a!=null&&setValueByPath(_0x1c95a4,['mimeType'],_0x2d165a),_0x1c95a4;}function contentToMldev$3(_0x1e584e){const _0x4c994b=a1_0x54af01,_0x2911ec={},_0x4c521f=getValueByPath(_0x1e584e,[_0x4c994b(0x4f7)]);if(_0x4c521f!=null){let _0x380c45=_0x4c521f;Array[_0x4c994b(0x1e2)](_0x380c45)&&(_0x380c45=_0x380c45[_0x4c994b(0x261)](_0x48018f=>{return partToMldev$3(_0x48018f);})),setValueByPath(_0x2911ec,[_0x4c994b(0x4f7)],_0x380c45);}const _0x6c0fd2=getValueByPath(_0x1e584e,[_0x4c994b(0x61a)]);return _0x6c0fd2!=null&&setValueByPath(_0x2911ec,[_0x4c994b(0x61a)],_0x6c0fd2),_0x2911ec;}function createCachedContentConfigToMldev(_0x533a04,_0x1e0843){const _0x2cf397=a1_0x54af01,_0x242daf={},_0x5b067f=getValueByPath(_0x533a04,[_0x2cf397(0x5f0)]);_0x1e0843!==undefined&&_0x5b067f!=null&&setValueByPath(_0x1e0843,[_0x2cf397(0x5f0)],_0x5b067f);const _0x4b2d79=getValueByPath(_0x533a04,[_0x2cf397(0x25e)]);_0x1e0843!==undefined&&_0x4b2d79!=null&&setValueByPath(_0x1e0843,[_0x2cf397(0x25e)],_0x4b2d79);const _0x982452=getValueByPath(_0x533a04,[_0x2cf397(0x37e)]);_0x1e0843!==undefined&&_0x982452!=null&&setValueByPath(_0x1e0843,[_0x2cf397(0x37e)],_0x982452);const _0x2a17c2=getValueByPath(_0x533a04,[_0x2cf397(0x45b)]);if(_0x1e0843!==undefined&&_0x2a17c2!=null){let _0x4794c0=tContents(_0x2a17c2);Array[_0x2cf397(0x1e2)](_0x4794c0)&&(_0x4794c0=_0x4794c0[_0x2cf397(0x261)](_0x5cb903=>{return contentToMldev$3(_0x5cb903);})),setValueByPath(_0x1e0843,[_0x2cf397(0x45b)],_0x4794c0);}const _0x2cbca0=getValueByPath(_0x533a04,['systemInstruction']);_0x1e0843!==undefined&&_0x2cbca0!=null&&setValueByPath(_0x1e0843,[_0x2cf397(0x3ea)],contentToMldev$3(tContent(_0x2cbca0)));const _0x29f985=getValueByPath(_0x533a04,[_0x2cf397(0x458)]);if(_0x1e0843!==undefined&&_0x29f985!=null){let _0x5525fc=_0x29f985;Array[_0x2cf397(0x1e2)](_0x5525fc)&&(_0x5525fc=_0x5525fc[_0x2cf397(0x261)](_0x397d64=>{return toolToMldev$3(_0x397d64);})),setValueByPath(_0x1e0843,[_0x2cf397(0x458)],_0x5525fc);}const _0x592d4b=getValueByPath(_0x533a04,['toolConfig']);_0x1e0843!==undefined&&_0x592d4b!=null&&setValueByPath(_0x1e0843,[_0x2cf397(0x47a)],toolConfigToMldev$1(_0x592d4b));if(getValueByPath(_0x533a04,[_0x2cf397(0x675)])!==undefined)throw new Error(_0x2cf397(0x2d4));return _0x242daf;}function createCachedContentConfigToVertex(_0x4dd2e9,_0x48a149){const _0x4be6a8=a1_0x54af01,_0x47756b={},_0x3bc4cf=getValueByPath(_0x4dd2e9,[_0x4be6a8(0x5f0)]);_0x48a149!==undefined&&_0x3bc4cf!=null&&setValueByPath(_0x48a149,[_0x4be6a8(0x5f0)],_0x3bc4cf);const _0x57c97a=getValueByPath(_0x4dd2e9,[_0x4be6a8(0x25e)]);_0x48a149!==undefined&&_0x57c97a!=null&&setValueByPath(_0x48a149,[_0x4be6a8(0x25e)],_0x57c97a);const _0x27d170=getValueByPath(_0x4dd2e9,['displayName']);_0x48a149!==undefined&&_0x27d170!=null&&setValueByPath(_0x48a149,['displayName'],_0x27d170);const _0x4685d7=getValueByPath(_0x4dd2e9,['contents']);if(_0x48a149!==undefined&&_0x4685d7!=null){let _0x37e975=tContents(_0x4685d7);Array[_0x4be6a8(0x1e2)](_0x37e975)&&(_0x37e975=_0x37e975[_0x4be6a8(0x261)](_0x5119ac=>{return _0x5119ac;})),setValueByPath(_0x48a149,[_0x4be6a8(0x45b)],_0x37e975);}const _0xd4bc39=getValueByPath(_0x4dd2e9,[_0x4be6a8(0x3ea)]);_0x48a149!==undefined&&_0xd4bc39!=null&&setValueByPath(_0x48a149,['systemInstruction'],tContent(_0xd4bc39));const _0x54ebad=getValueByPath(_0x4dd2e9,[_0x4be6a8(0x458)]);if(_0x48a149!==undefined&&_0x54ebad!=null){let _0x243a77=_0x54ebad;Array[_0x4be6a8(0x1e2)](_0x243a77)&&(_0x243a77=_0x243a77['map'](_0x200ae8=>{return toolToVertex$2(_0x200ae8);})),setValueByPath(_0x48a149,['tools'],_0x243a77);}const _0x28d8d8=getValueByPath(_0x4dd2e9,[_0x4be6a8(0x47a)]);_0x48a149!==undefined&&_0x28d8d8!=null&&setValueByPath(_0x48a149,[_0x4be6a8(0x47a)],_0x28d8d8);const _0x28de20=getValueByPath(_0x4dd2e9,[_0x4be6a8(0x675)]);return _0x48a149!==undefined&&_0x28de20!=null&&setValueByPath(_0x48a149,[_0x4be6a8(0x35a),_0x4be6a8(0x675)],_0x28de20),_0x47756b;}function createCachedContentParametersToMldev(_0x3aaaca,_0x2fec20){const _0x44513f=a1_0x54af01,_0x16b511={},_0xa0834f=getValueByPath(_0x2fec20,[_0x44513f(0x210)]);_0xa0834f!=null&&setValueByPath(_0x16b511,['model'],tCachesModel(_0x3aaaca,_0xa0834f));const _0x1f6504=getValueByPath(_0x2fec20,[_0x44513f(0x1b0)]);return _0x1f6504!=null&&createCachedContentConfigToMldev(_0x1f6504,_0x16b511),_0x16b511;}function createCachedContentParametersToVertex(_0x2ecf82,_0x5d1792){const _0x1272da=a1_0x54af01,_0x15a64c={},_0x28c55a=getValueByPath(_0x5d1792,[_0x1272da(0x210)]);_0x28c55a!=null&&setValueByPath(_0x15a64c,['model'],tCachesModel(_0x2ecf82,_0x28c55a));const _0x464c13=getValueByPath(_0x5d1792,[_0x1272da(0x1b0)]);return _0x464c13!=null&&createCachedContentConfigToVertex(_0x464c13,_0x15a64c),_0x15a64c;}function deleteCachedContentParametersToMldev(_0x9e303d,_0x28018f){const _0x10899d=a1_0x54af01,_0x27870c={},_0x105ff1=getValueByPath(_0x28018f,[_0x10899d(0x24b)]);return _0x105ff1!=null&&setValueByPath(_0x27870c,[_0x10899d(0x4e9),_0x10899d(0x24b)],tCachedContentName(_0x9e303d,_0x105ff1)),_0x27870c;}function deleteCachedContentParametersToVertex(_0x26a4f3,_0x3a6b3a){const _0x3d6ffb=a1_0x54af01,_0x2e5adf={},_0x258308=getValueByPath(_0x3a6b3a,[_0x3d6ffb(0x24b)]);return _0x258308!=null&&setValueByPath(_0x2e5adf,[_0x3d6ffb(0x4e9),'name'],tCachedContentName(_0x26a4f3,_0x258308)),_0x2e5adf;}function deleteCachedContentResponseFromMldev(_0x255157){const _0x7ee262=a1_0x54af01,_0x5ae7c8={},_0x8843b3=getValueByPath(_0x255157,[_0x7ee262(0x25b)]);return _0x8843b3!=null&&setValueByPath(_0x5ae7c8,[_0x7ee262(0x25b)],_0x8843b3),_0x5ae7c8;}function deleteCachedContentResponseFromVertex(_0x354168){const _0x4e0214=a1_0x54af01,_0x24d138={},_0x474f1e=getValueByPath(_0x354168,[_0x4e0214(0x25b)]);return _0x474f1e!=null&&setValueByPath(_0x24d138,[_0x4e0214(0x25b)],_0x474f1e),_0x24d138;}function fileDataToMldev$3(_0x478e0e){const _0xff0cd0=a1_0x54af01,_0x2cba17={};if(getValueByPath(_0x478e0e,[_0xff0cd0(0x37e)])!==undefined)throw new Error(_0xff0cd0(0x5d7));const _0x343bf9=getValueByPath(_0x478e0e,[_0xff0cd0(0x64b)]);_0x343bf9!=null&&setValueByPath(_0x2cba17,[_0xff0cd0(0x64b)],_0x343bf9);const _0xa1db86=getValueByPath(_0x478e0e,['mimeType']);return _0xa1db86!=null&&setValueByPath(_0x2cba17,[_0xff0cd0(0x2cd)],_0xa1db86),_0x2cba17;}function functionCallToMldev$3(_0x2cf79a){const _0x59265d=a1_0x54af01,_0x52c0f0={},_0x17f13a=getValueByPath(_0x2cf79a,['id']);_0x17f13a!=null&&setValueByPath(_0x52c0f0,['id'],_0x17f13a);const _0xefa500=getValueByPath(_0x2cf79a,['args']);_0xefa500!=null&&setValueByPath(_0x52c0f0,[_0x59265d(0x411)],_0xefa500);const _0x166be7=getValueByPath(_0x2cf79a,[_0x59265d(0x24b)]);_0x166be7!=null&&setValueByPath(_0x52c0f0,[_0x59265d(0x24b)],_0x166be7);if(getValueByPath(_0x2cf79a,[_0x59265d(0x5f4)])!==undefined)throw new Error(_0x59265d(0x24c));if(getValueByPath(_0x2cf79a,['willContinue'])!==undefined)throw new Error('willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x52c0f0;}function functionCallingConfigToMldev$1(_0x861685){const _0x4f7458=a1_0x54af01,_0x7eaca8={},_0x3f480d=getValueByPath(_0x861685,[_0x4f7458(0x474)]);_0x3f480d!=null&&setValueByPath(_0x7eaca8,[_0x4f7458(0x474)],_0x3f480d);const _0x22c4a=getValueByPath(_0x861685,[_0x4f7458(0x45d)]);_0x22c4a!=null&&setValueByPath(_0x7eaca8,[_0x4f7458(0x45d)],_0x22c4a);if(getValueByPath(_0x861685,['streamFunctionCallArguments'])!==undefined)throw new Error(_0x4f7458(0x48b));return _0x7eaca8;}function functionDeclarationToVertex$2(_0x5cd363){const _0x5d04d2=a1_0x54af01,_0x2c1fde={},_0x1cd4f4=getValueByPath(_0x5cd363,['description']);_0x1cd4f4!=null&&setValueByPath(_0x2c1fde,[_0x5d04d2(0x31f)],_0x1cd4f4);const _0x482aed=getValueByPath(_0x5cd363,[_0x5d04d2(0x24b)]);_0x482aed!=null&&setValueByPath(_0x2c1fde,[_0x5d04d2(0x24b)],_0x482aed);const _0x5625f0=getValueByPath(_0x5cd363,[_0x5d04d2(0x684)]);_0x5625f0!=null&&setValueByPath(_0x2c1fde,[_0x5d04d2(0x684)],_0x5625f0);const _0x44872f=getValueByPath(_0x5cd363,[_0x5d04d2(0x524)]);_0x44872f!=null&&setValueByPath(_0x2c1fde,['parametersJsonSchema'],_0x44872f);const _0x1b87d1=getValueByPath(_0x5cd363,['response']);_0x1b87d1!=null&&setValueByPath(_0x2c1fde,[_0x5d04d2(0x575)],_0x1b87d1);const _0x599bfb=getValueByPath(_0x5cd363,[_0x5d04d2(0x436)]);_0x599bfb!=null&&setValueByPath(_0x2c1fde,[_0x5d04d2(0x436)],_0x599bfb);if(getValueByPath(_0x5cd363,['behavior'])!==undefined)throw new Error(_0x5d04d2(0x64e));return _0x2c1fde;}function getCachedContentParametersToMldev(_0x59714b,_0xf2f73){const _0x3df172=a1_0x54af01,_0x1216cd={},_0x471d70=getValueByPath(_0xf2f73,['name']);return _0x471d70!=null&&setValueByPath(_0x1216cd,[_0x3df172(0x4e9),_0x3df172(0x24b)],tCachedContentName(_0x59714b,_0x471d70)),_0x1216cd;}function getCachedContentParametersToVertex(_0x36aaa3,_0x104c07){const _0x5855c7=a1_0x54af01,_0x14ed61={},_0x426e16=getValueByPath(_0x104c07,[_0x5855c7(0x24b)]);return _0x426e16!=null&&setValueByPath(_0x14ed61,[_0x5855c7(0x4e9),_0x5855c7(0x24b)],tCachedContentName(_0x36aaa3,_0x426e16)),_0x14ed61;}function googleMapsToMldev$3(_0x3da51a){const _0x207bff=a1_0x54af01,_0x3154df={};if(getValueByPath(_0x3da51a,[_0x207bff(0x699)])!==undefined)throw new Error(_0x207bff(0x590));const _0x4637b2=getValueByPath(_0x3da51a,[_0x207bff(0x63d)]);return _0x4637b2!=null&&setValueByPath(_0x3154df,[_0x207bff(0x63d)],_0x4637b2),_0x3154df;}function googleSearchToMldev$3(_0x39545c){const _0x500d00=a1_0x54af01,_0x3d53c4={};if(getValueByPath(_0x39545c,[_0x500d00(0x1e1)])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x39545c,[_0x500d00(0x653)])!==undefined)throw new Error(_0x500d00(0x614));const _0x1edf6e=getValueByPath(_0x39545c,[_0x500d00(0x446)]);return _0x1edf6e!=null&&setValueByPath(_0x3d53c4,['timeRangeFilter'],_0x1edf6e),_0x3d53c4;}function listCachedContentsConfigToMldev(_0x219845,_0xf237ff){const _0x314ca0=a1_0x54af01,_0x22cf63={},_0x5e8bb4=getValueByPath(_0x219845,[_0x314ca0(0x3a4)]);_0xf237ff!==undefined&&_0x5e8bb4!=null&&setValueByPath(_0xf237ff,['_query',_0x314ca0(0x3a4)],_0x5e8bb4);const _0x38934c=getValueByPath(_0x219845,['pageToken']);return _0xf237ff!==undefined&&_0x38934c!=null&&setValueByPath(_0xf237ff,[_0x314ca0(0x46e),_0x314ca0(0x5ac)],_0x38934c),_0x22cf63;}function listCachedContentsConfigToVertex(_0x502278,_0x2a1e9b){const _0x4ed648=a1_0x54af01,_0x279274={},_0x393681=getValueByPath(_0x502278,[_0x4ed648(0x3a4)]);_0x2a1e9b!==undefined&&_0x393681!=null&&setValueByPath(_0x2a1e9b,['_query',_0x4ed648(0x3a4)],_0x393681);const _0x12e446=getValueByPath(_0x502278,['pageToken']);return _0x2a1e9b!==undefined&&_0x12e446!=null&&setValueByPath(_0x2a1e9b,[_0x4ed648(0x46e),_0x4ed648(0x5ac)],_0x12e446),_0x279274;}function listCachedContentsParametersToMldev(_0x21add6){const _0x514bec={},_0x7ca2ef=getValueByPath(_0x21add6,['config']);return _0x7ca2ef!=null&&listCachedContentsConfigToMldev(_0x7ca2ef,_0x514bec),_0x514bec;}function listCachedContentsParametersToVertex(_0x23cabc){const _0xfb424f=a1_0x54af01,_0x5e7096={},_0x346fb9=getValueByPath(_0x23cabc,[_0xfb424f(0x1b0)]);return _0x346fb9!=null&&listCachedContentsConfigToVertex(_0x346fb9,_0x5e7096),_0x5e7096;}function listCachedContentsResponseFromMldev(_0x6c6c20){const _0x5f0d45=a1_0x54af01,_0xc9bf5d={},_0x2b3a0f=getValueByPath(_0x6c6c20,[_0x5f0d45(0x25b)]);_0x2b3a0f!=null&&setValueByPath(_0xc9bf5d,[_0x5f0d45(0x25b)],_0x2b3a0f);const _0x106c23=getValueByPath(_0x6c6c20,[_0x5f0d45(0x408)]);_0x106c23!=null&&setValueByPath(_0xc9bf5d,['nextPageToken'],_0x106c23);const _0x162183=getValueByPath(_0x6c6c20,['cachedContents']);if(_0x162183!=null){let _0x396cf7=_0x162183;Array[_0x5f0d45(0x1e2)](_0x396cf7)&&(_0x396cf7=_0x396cf7[_0x5f0d45(0x261)](_0xebbba6=>{return _0xebbba6;})),setValueByPath(_0xc9bf5d,[_0x5f0d45(0x677)],_0x396cf7);}return _0xc9bf5d;}function listCachedContentsResponseFromVertex(_0x4d66a3){const _0x2a1aea=a1_0x54af01,_0x45540c={},_0x47dcf9=getValueByPath(_0x4d66a3,['sdkHttpResponse']);_0x47dcf9!=null&&setValueByPath(_0x45540c,[_0x2a1aea(0x25b)],_0x47dcf9);const _0x147ba0=getValueByPath(_0x4d66a3,[_0x2a1aea(0x408)]);_0x147ba0!=null&&setValueByPath(_0x45540c,[_0x2a1aea(0x408)],_0x147ba0);const _0x389ee6=getValueByPath(_0x4d66a3,[_0x2a1aea(0x677)]);if(_0x389ee6!=null){let _0x3be61e=_0x389ee6;Array[_0x2a1aea(0x1e2)](_0x3be61e)&&(_0x3be61e=_0x3be61e[_0x2a1aea(0x261)](_0x325092=>{return _0x325092;})),setValueByPath(_0x45540c,[_0x2a1aea(0x677)],_0x3be61e);}return _0x45540c;}function partToMldev$3(_0x55ff7d){const _0x249b9d=a1_0x54af01,_0x4c5666={},_0x208194=getValueByPath(_0x55ff7d,[_0x249b9d(0x5e8)]);_0x208194!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x5e8)],_0x208194);const _0x497f88=getValueByPath(_0x55ff7d,[_0x249b9d(0x6c6)]);_0x497f88!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x6c6)],_0x497f88);const _0x5ed431=getValueByPath(_0x55ff7d,[_0x249b9d(0x236)]);_0x5ed431!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x236)],_0x5ed431);const _0x215681=getValueByPath(_0x55ff7d,[_0x249b9d(0x2e2)]);_0x215681!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x2e2)],fileDataToMldev$3(_0x215681));const _0x266914=getValueByPath(_0x55ff7d,['functionCall']);_0x266914!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x397)],functionCallToMldev$3(_0x266914));const _0x5ca438=getValueByPath(_0x55ff7d,[_0x249b9d(0x5cb)]);_0x5ca438!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x5cb)],_0x5ca438);const _0xa755e=getValueByPath(_0x55ff7d,[_0x249b9d(0x1a4)]);_0xa755e!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x1a4)],blobToMldev$3(_0xa755e));const _0x46f811=getValueByPath(_0x55ff7d,[_0x249b9d(0x205)]);_0x46f811!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x205)],_0x46f811);const _0xbd4b92=getValueByPath(_0x55ff7d,['thought']);_0xbd4b92!=null&&setValueByPath(_0x4c5666,['thought'],_0xbd4b92);const _0x2110bc=getValueByPath(_0x55ff7d,[_0x249b9d(0x56b)]);_0x2110bc!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x56b)],_0x2110bc);const _0x33013f=getValueByPath(_0x55ff7d,[_0x249b9d(0x313)]);return _0x33013f!=null&&setValueByPath(_0x4c5666,[_0x249b9d(0x313)],_0x33013f),_0x4c5666;}function toolConfigToMldev$1(_0x226c9a){const _0x37e218=a1_0x54af01,_0x1141b3={},_0x53b095=getValueByPath(_0x226c9a,[_0x37e218(0x1fa)]);_0x53b095!=null&&setValueByPath(_0x1141b3,[_0x37e218(0x1fa)],_0x53b095);const _0x2d7f95=getValueByPath(_0x226c9a,[_0x37e218(0x57d)]);return _0x2d7f95!=null&&setValueByPath(_0x1141b3,[_0x37e218(0x57d)],functionCallingConfigToMldev$1(_0x2d7f95)),_0x1141b3;}function toolToMldev$3(_0x5a4eca){const _0xd51f12=a1_0x54af01,_0x35d805={};if(getValueByPath(_0x5a4eca,['retrieval'])!==undefined)throw new Error(_0xd51f12(0x466));const _0x1d9a25=getValueByPath(_0x5a4eca,['computerUse']);_0x1d9a25!=null&&setValueByPath(_0x35d805,[_0xd51f12(0x318)],_0x1d9a25);const _0xf26f49=getValueByPath(_0x5a4eca,['fileSearch']);_0xf26f49!=null&&setValueByPath(_0x35d805,['fileSearch'],_0xf26f49);const _0x27c76f=getValueByPath(_0x5a4eca,[_0xd51f12(0x352)]);_0x27c76f!=null&&setValueByPath(_0x35d805,[_0xd51f12(0x352)],_0x27c76f);if(getValueByPath(_0x5a4eca,[_0xd51f12(0x26a)])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x16e9c5=getValueByPath(_0x5a4eca,['functionDeclarations']);if(_0x16e9c5!=null){let _0xeee19f=_0x16e9c5;Array[_0xd51f12(0x1e2)](_0xeee19f)&&(_0xeee19f=_0xeee19f['map'](_0x57638c=>{return _0x57638c;})),setValueByPath(_0x35d805,[_0xd51f12(0x4fa)],_0xeee19f);}const _0x1e2860=getValueByPath(_0x5a4eca,[_0xd51f12(0x35b)]);_0x1e2860!=null&&setValueByPath(_0x35d805,['googleMaps'],googleMapsToMldev$3(_0x1e2860));const _0x2b7a7c=getValueByPath(_0x5a4eca,[_0xd51f12(0x58c)]);_0x2b7a7c!=null&&setValueByPath(_0x35d805,[_0xd51f12(0x58c)],googleSearchToMldev$3(_0x2b7a7c));const _0x53944a=getValueByPath(_0x5a4eca,[_0xd51f12(0x6a2)]);_0x53944a!=null&&setValueByPath(_0x35d805,[_0xd51f12(0x6a2)],_0x53944a);const _0x232c36=getValueByPath(_0x5a4eca,['urlContext']);return _0x232c36!=null&&setValueByPath(_0x35d805,[_0xd51f12(0x642)],_0x232c36),_0x35d805;}function toolToVertex$2(_0x340c1d){const _0x1f376e=a1_0x54af01,_0x2e972b={},_0x4f724f=getValueByPath(_0x340c1d,[_0x1f376e(0x223)]);_0x4f724f!=null&&setValueByPath(_0x2e972b,[_0x1f376e(0x223)],_0x4f724f);const _0x17f5ce=getValueByPath(_0x340c1d,['computerUse']);_0x17f5ce!=null&&setValueByPath(_0x2e972b,[_0x1f376e(0x318)],_0x17f5ce);if(getValueByPath(_0x340c1d,[_0x1f376e(0x68d)])!==undefined)throw new Error(_0x1f376e(0x35f));const _0x2422f8=getValueByPath(_0x340c1d,[_0x1f376e(0x352)]);_0x2422f8!=null&&setValueByPath(_0x2e972b,[_0x1f376e(0x352)],_0x2422f8);const _0x86244f=getValueByPath(_0x340c1d,[_0x1f376e(0x26a)]);_0x86244f!=null&&setValueByPath(_0x2e972b,[_0x1f376e(0x26a)],_0x86244f);const _0x32d6b1=getValueByPath(_0x340c1d,['functionDeclarations']);if(_0x32d6b1!=null){let _0x44b77c=_0x32d6b1;Array[_0x1f376e(0x1e2)](_0x44b77c)&&(_0x44b77c=_0x44b77c['map'](_0x5ccdd9=>{return functionDeclarationToVertex$2(_0x5ccdd9);})),setValueByPath(_0x2e972b,[_0x1f376e(0x4fa)],_0x44b77c);}const _0x36e2b2=getValueByPath(_0x340c1d,['googleMaps']);_0x36e2b2!=null&&setValueByPath(_0x2e972b,[_0x1f376e(0x35b)],_0x36e2b2);const _0x1f3f6f=getValueByPath(_0x340c1d,[_0x1f376e(0x58c)]);_0x1f3f6f!=null&&setValueByPath(_0x2e972b,['googleSearch'],_0x1f3f6f);const _0x469ce3=getValueByPath(_0x340c1d,[_0x1f376e(0x6a2)]);_0x469ce3!=null&&setValueByPath(_0x2e972b,['googleSearchRetrieval'],_0x469ce3);const _0x43f445=getValueByPath(_0x340c1d,[_0x1f376e(0x642)]);return _0x43f445!=null&&setValueByPath(_0x2e972b,['urlContext'],_0x43f445),_0x2e972b;}function updateCachedContentConfigToMldev(_0x1f3575,_0x3b0695){const _0x587644=a1_0x54af01,_0x5a6e0b={},_0x40ef2b=getValueByPath(_0x1f3575,[_0x587644(0x5f0)]);_0x3b0695!==undefined&&_0x40ef2b!=null&&setValueByPath(_0x3b0695,['ttl'],_0x40ef2b);const _0x1925e6=getValueByPath(_0x1f3575,[_0x587644(0x25e)]);return _0x3b0695!==undefined&&_0x1925e6!=null&&setValueByPath(_0x3b0695,[_0x587644(0x25e)],_0x1925e6),_0x5a6e0b;}function updateCachedContentConfigToVertex(_0x3326f8,_0x5bac60){const _0x1a5cfc=a1_0x54af01,_0x557455={},_0x38c355=getValueByPath(_0x3326f8,['ttl']);_0x5bac60!==undefined&&_0x38c355!=null&&setValueByPath(_0x5bac60,[_0x1a5cfc(0x5f0)],_0x38c355);const _0x42da76=getValueByPath(_0x3326f8,[_0x1a5cfc(0x25e)]);return _0x5bac60!==undefined&&_0x42da76!=null&&setValueByPath(_0x5bac60,[_0x1a5cfc(0x25e)],_0x42da76),_0x557455;}function updateCachedContentParametersToMldev(_0x3b9fb7,_0x11ce29){const _0x1a73a2=a1_0x54af01,_0x3718e8={},_0x566516=getValueByPath(_0x11ce29,[_0x1a73a2(0x24b)]);_0x566516!=null&&setValueByPath(_0x3718e8,[_0x1a73a2(0x4e9),_0x1a73a2(0x24b)],tCachedContentName(_0x3b9fb7,_0x566516));const _0x3300e8=getValueByPath(_0x11ce29,[_0x1a73a2(0x1b0)]);return _0x3300e8!=null&&updateCachedContentConfigToMldev(_0x3300e8,_0x3718e8),_0x3718e8;}function updateCachedContentParametersToVertex(_0x459f3b,_0x88bd63){const _0x20297b=a1_0x54af01,_0x1f14ba={},_0x2a820a=getValueByPath(_0x88bd63,[_0x20297b(0x24b)]);_0x2a820a!=null&&setValueByPath(_0x1f14ba,[_0x20297b(0x4e9),'name'],tCachedContentName(_0x459f3b,_0x2a820a));const _0x295702=getValueByPath(_0x88bd63,[_0x20297b(0x1b0)]);return _0x295702!=null&&updateCachedContentConfigToVertex(_0x295702,_0x1f14ba),_0x1f14ba;}/**
52
+ * @license
53
+ * Copyright 2025 Google LLC
54
+ * SPDX-License-Identifier: Apache-2.0
55
+ */
56
+ class Caches extends BaseModule{constructor(_0x596f96){const _0x2d846f=a1_0x54af01;super(),this[_0x2d846f(0x5bb)]=_0x596f96,this['list']=async(_0x440b2f={})=>{const _0x52e60c=_0x2d846f;return new Pager(PagedItem[_0x52e60c(0x2d1)],_0x11d143=>this[_0x52e60c(0x62c)](_0x11d143),await this[_0x52e60c(0x62c)](_0x440b2f),_0x440b2f);};}async[a1_0x54af01(0x1af)](_0x299adb){const _0x15e12d=a1_0x54af01;var _0x4eed1f,_0x4bebd8,_0x5c4492,_0x2a406b;let _0x271b1f,_0x3f067f='',_0x53d5f0={};if(this[_0x15e12d(0x5bb)]['isVertexAI']()){const _0x54f916=createCachedContentParametersToVertex(this['apiClient'],_0x299adb);return _0x3f067f=formatMap(_0x15e12d(0x677),_0x54f916['_url']),_0x53d5f0=_0x54f916[_0x15e12d(0x46e)],delete _0x54f916['_url'],delete _0x54f916[_0x15e12d(0x46e)],_0x271b1f=this['apiClient'][_0x15e12d(0x44a)]({'path':_0x3f067f,'queryParams':_0x53d5f0,'body':JSON[_0x15e12d(0x45e)](_0x54f916),'httpMethod':'POST','httpOptions':(_0x4eed1f=_0x299adb['config'])===null||_0x4eed1f===void 0x0?void 0x0:_0x4eed1f['httpOptions'],'abortSignal':(_0x4bebd8=_0x299adb[_0x15e12d(0x1b0)])===null||_0x4bebd8===void 0x0?void 0x0:_0x4bebd8['abortSignal']})[_0x15e12d(0x28f)](_0x5aa932=>{const _0x34bce5=_0x15e12d;return _0x5aa932[_0x34bce5(0x648)]();}),_0x271b1f[_0x15e12d(0x28f)](_0x129670=>{return _0x129670;});}else{const _0x2f7e63=createCachedContentParametersToMldev(this[_0x15e12d(0x5bb)],_0x299adb);return _0x3f067f=formatMap(_0x15e12d(0x677),_0x2f7e63['_url']),_0x53d5f0=_0x2f7e63[_0x15e12d(0x46e)],delete _0x2f7e63[_0x15e12d(0x4e9)],delete _0x2f7e63[_0x15e12d(0x46e)],_0x271b1f=this[_0x15e12d(0x5bb)]['request']({'path':_0x3f067f,'queryParams':_0x53d5f0,'body':JSON[_0x15e12d(0x45e)](_0x2f7e63),'httpMethod':_0x15e12d(0x43a),'httpOptions':(_0x5c4492=_0x299adb[_0x15e12d(0x1b0)])===null||_0x5c4492===void 0x0?void 0x0:_0x5c4492[_0x15e12d(0x688)],'abortSignal':(_0x2a406b=_0x299adb[_0x15e12d(0x1b0)])===null||_0x2a406b===void 0x0?void 0x0:_0x2a406b[_0x15e12d(0x67c)]})[_0x15e12d(0x28f)](_0x2cf8ab=>{const _0x453764=_0x15e12d;return _0x2cf8ab[_0x453764(0x648)]();}),_0x271b1f[_0x15e12d(0x28f)](_0x510a4d=>{return _0x510a4d;});}}async[a1_0x54af01(0x5a2)](_0x599c89){const _0x301fbe=a1_0x54af01;var _0x552e9a,_0x388879,_0x2293c7,_0x551020;let _0xa4a43b,_0x49f92f='',_0x1d3502={};if(this[_0x301fbe(0x5bb)]['isVertexAI']()){const _0x59b39b=getCachedContentParametersToVertex(this[_0x301fbe(0x5bb)],_0x599c89);return _0x49f92f=formatMap(_0x301fbe(0x1c9),_0x59b39b[_0x301fbe(0x4e9)]),_0x1d3502=_0x59b39b[_0x301fbe(0x46e)],delete _0x59b39b[_0x301fbe(0x4e9)],delete _0x59b39b[_0x301fbe(0x46e)],_0xa4a43b=this[_0x301fbe(0x5bb)][_0x301fbe(0x44a)]({'path':_0x49f92f,'queryParams':_0x1d3502,'body':JSON['stringify'](_0x59b39b),'httpMethod':_0x301fbe(0x1f7),'httpOptions':(_0x552e9a=_0x599c89[_0x301fbe(0x1b0)])===null||_0x552e9a===void 0x0?void 0x0:_0x552e9a[_0x301fbe(0x688)],'abortSignal':(_0x388879=_0x599c89[_0x301fbe(0x1b0)])===null||_0x388879===void 0x0?void 0x0:_0x388879['abortSignal']})[_0x301fbe(0x28f)](_0x1b7746=>{return _0x1b7746['json']();}),_0xa4a43b['then'](_0x1d610c=>{return _0x1d610c;});}else{const _0x333f92=getCachedContentParametersToMldev(this[_0x301fbe(0x5bb)],_0x599c89);return _0x49f92f=formatMap(_0x301fbe(0x1c9),_0x333f92[_0x301fbe(0x4e9)]),_0x1d3502=_0x333f92[_0x301fbe(0x46e)],delete _0x333f92[_0x301fbe(0x4e9)],delete _0x333f92[_0x301fbe(0x46e)],_0xa4a43b=this[_0x301fbe(0x5bb)]['request']({'path':_0x49f92f,'queryParams':_0x1d3502,'body':JSON[_0x301fbe(0x45e)](_0x333f92),'httpMethod':_0x301fbe(0x1f7),'httpOptions':(_0x2293c7=_0x599c89[_0x301fbe(0x1b0)])===null||_0x2293c7===void 0x0?void 0x0:_0x2293c7['httpOptions'],'abortSignal':(_0x551020=_0x599c89[_0x301fbe(0x1b0)])===null||_0x551020===void 0x0?void 0x0:_0x551020[_0x301fbe(0x67c)]})[_0x301fbe(0x28f)](_0x157e08=>{const _0x26e428=_0x301fbe;return _0x157e08[_0x26e428(0x648)]();}),_0xa4a43b[_0x301fbe(0x28f)](_0x1af630=>{return _0x1af630;});}}async['delete'](_0x2a186f){const _0x5dd94b=a1_0x54af01;var _0x388825,_0x577489,_0x45be34,_0x5bbd64;let _0x5415fd,_0x405f68='',_0x1e362a={};if(this['apiClient'][_0x5dd94b(0x29b)]()){const _0x5088dc=deleteCachedContentParametersToVertex(this['apiClient'],_0x2a186f);return _0x405f68=formatMap(_0x5dd94b(0x1c9),_0x5088dc[_0x5dd94b(0x4e9)]),_0x1e362a=_0x5088dc[_0x5dd94b(0x46e)],delete _0x5088dc[_0x5dd94b(0x4e9)],delete _0x5088dc[_0x5dd94b(0x46e)],_0x5415fd=this[_0x5dd94b(0x5bb)][_0x5dd94b(0x44a)]({'path':_0x405f68,'queryParams':_0x1e362a,'body':JSON['stringify'](_0x5088dc),'httpMethod':'DELETE','httpOptions':(_0x388825=_0x2a186f[_0x5dd94b(0x1b0)])===null||_0x388825===void 0x0?void 0x0:_0x388825[_0x5dd94b(0x688)],'abortSignal':(_0x577489=_0x2a186f['config'])===null||_0x577489===void 0x0?void 0x0:_0x577489[_0x5dd94b(0x67c)]})[_0x5dd94b(0x28f)](_0xaf33f0=>{const _0x2d2c32=_0x5dd94b;return _0xaf33f0[_0x2d2c32(0x648)]()['then'](_0x560780=>{const _0x576a74=_0x2d2c32,_0x4c0350=_0x560780;return _0x4c0350['sdkHttpResponse']={'headers':_0xaf33f0[_0x576a74(0x2fa)]},_0x4c0350;});}),_0x5415fd[_0x5dd94b(0x28f)](_0x5e2b54=>{const _0x2cc490=_0x5dd94b,_0x41667f=deleteCachedContentResponseFromVertex(_0x5e2b54),_0x3f2731=new DeleteCachedContentResponse();return Object[_0x2cc490(0x541)](_0x3f2731,_0x41667f),_0x3f2731;});}else{const _0x5dc2c0=deleteCachedContentParametersToMldev(this[_0x5dd94b(0x5bb)],_0x2a186f);return _0x405f68=formatMap(_0x5dd94b(0x1c9),_0x5dc2c0['_url']),_0x1e362a=_0x5dc2c0[_0x5dd94b(0x46e)],delete _0x5dc2c0[_0x5dd94b(0x4e9)],delete _0x5dc2c0[_0x5dd94b(0x46e)],_0x5415fd=this[_0x5dd94b(0x5bb)][_0x5dd94b(0x44a)]({'path':_0x405f68,'queryParams':_0x1e362a,'body':JSON['stringify'](_0x5dc2c0),'httpMethod':_0x5dd94b(0x5da),'httpOptions':(_0x45be34=_0x2a186f[_0x5dd94b(0x1b0)])===null||_0x45be34===void 0x0?void 0x0:_0x45be34['httpOptions'],'abortSignal':(_0x5bbd64=_0x2a186f[_0x5dd94b(0x1b0)])===null||_0x5bbd64===void 0x0?void 0x0:_0x5bbd64[_0x5dd94b(0x67c)]})[_0x5dd94b(0x28f)](_0x5be996=>{const _0x5cf802=_0x5dd94b;return _0x5be996[_0x5cf802(0x648)]()[_0x5cf802(0x28f)](_0x37ef74=>{const _0x1d48df=_0x5cf802,_0xc1c15a=_0x37ef74;return _0xc1c15a[_0x1d48df(0x25b)]={'headers':_0x5be996[_0x1d48df(0x2fa)]},_0xc1c15a;});}),_0x5415fd['then'](_0x2b0e89=>{const _0x2b27dd=deleteCachedContentResponseFromMldev(_0x2b0e89),_0x45e532=new DeleteCachedContentResponse();return Object['assign'](_0x45e532,_0x2b27dd),_0x45e532;});}}async[a1_0x54af01(0x59a)](_0x16b00d){const _0x4d762f=a1_0x54af01;var _0x2bf619,_0xaff09a,_0x1541c2,_0x33bff1;let _0x4283a0,_0x2d0eaa='',_0x3015b5={};if(this[_0x4d762f(0x5bb)]['isVertexAI']()){const _0xca356e=updateCachedContentParametersToVertex(this[_0x4d762f(0x5bb)],_0x16b00d);return _0x2d0eaa=formatMap(_0x4d762f(0x1c9),_0xca356e['_url']),_0x3015b5=_0xca356e[_0x4d762f(0x46e)],delete _0xca356e['_url'],delete _0xca356e[_0x4d762f(0x46e)],_0x4283a0=this[_0x4d762f(0x5bb)]['request']({'path':_0x2d0eaa,'queryParams':_0x3015b5,'body':JSON[_0x4d762f(0x45e)](_0xca356e),'httpMethod':'PATCH','httpOptions':(_0x2bf619=_0x16b00d['config'])===null||_0x2bf619===void 0x0?void 0x0:_0x2bf619[_0x4d762f(0x688)],'abortSignal':(_0xaff09a=_0x16b00d[_0x4d762f(0x1b0)])===null||_0xaff09a===void 0x0?void 0x0:_0xaff09a[_0x4d762f(0x67c)]})[_0x4d762f(0x28f)](_0x4c3515=>{const _0x3c1ad5=_0x4d762f;return _0x4c3515[_0x3c1ad5(0x648)]();}),_0x4283a0[_0x4d762f(0x28f)](_0xd3c73a=>{return _0xd3c73a;});}else{const _0x385395=updateCachedContentParametersToMldev(this['apiClient'],_0x16b00d);return _0x2d0eaa=formatMap('{name}',_0x385395[_0x4d762f(0x4e9)]),_0x3015b5=_0x385395[_0x4d762f(0x46e)],delete _0x385395[_0x4d762f(0x4e9)],delete _0x385395['_query'],_0x4283a0=this[_0x4d762f(0x5bb)][_0x4d762f(0x44a)]({'path':_0x2d0eaa,'queryParams':_0x3015b5,'body':JSON[_0x4d762f(0x45e)](_0x385395),'httpMethod':_0x4d762f(0x399),'httpOptions':(_0x1541c2=_0x16b00d[_0x4d762f(0x1b0)])===null||_0x1541c2===void 0x0?void 0x0:_0x1541c2[_0x4d762f(0x688)],'abortSignal':(_0x33bff1=_0x16b00d[_0x4d762f(0x1b0)])===null||_0x33bff1===void 0x0?void 0x0:_0x33bff1[_0x4d762f(0x67c)]})['then'](_0x53c611=>{return _0x53c611['json']();}),_0x4283a0['then'](_0x13cd67=>{return _0x13cd67;});}}async[a1_0x54af01(0x62c)](_0x569068){const _0x461bb1=a1_0x54af01;var _0x4f9e9e,_0x114261,_0x12ef2d,_0x3607de;let _0x1bee46,_0x504dc2='',_0x237a7f={};if(this['apiClient'][_0x461bb1(0x29b)]()){const _0xfdadf1=listCachedContentsParametersToVertex(_0x569068);return _0x504dc2=formatMap(_0x461bb1(0x677),_0xfdadf1[_0x461bb1(0x4e9)]),_0x237a7f=_0xfdadf1[_0x461bb1(0x46e)],delete _0xfdadf1[_0x461bb1(0x4e9)],delete _0xfdadf1['_query'],_0x1bee46=this['apiClient'][_0x461bb1(0x44a)]({'path':_0x504dc2,'queryParams':_0x237a7f,'body':JSON['stringify'](_0xfdadf1),'httpMethod':_0x461bb1(0x1f7),'httpOptions':(_0x4f9e9e=_0x569068[_0x461bb1(0x1b0)])===null||_0x4f9e9e===void 0x0?void 0x0:_0x4f9e9e[_0x461bb1(0x688)],'abortSignal':(_0x114261=_0x569068[_0x461bb1(0x1b0)])===null||_0x114261===void 0x0?void 0x0:_0x114261[_0x461bb1(0x67c)]})[_0x461bb1(0x28f)](_0x2ed962=>{const _0x3822d2=_0x461bb1;return _0x2ed962['json']()[_0x3822d2(0x28f)](_0x52b08f=>{const _0x36c1f7=_0x3822d2,_0x3b5b5e=_0x52b08f;return _0x3b5b5e['sdkHttpResponse']={'headers':_0x2ed962[_0x36c1f7(0x2fa)]},_0x3b5b5e;});}),_0x1bee46['then'](_0x1dd4e9=>{const _0x580274=_0x461bb1,_0x578e2d=listCachedContentsResponseFromVertex(_0x1dd4e9),_0x482636=new ListCachedContentsResponse();return Object[_0x580274(0x541)](_0x482636,_0x578e2d),_0x482636;});}else{const _0x4802d5=listCachedContentsParametersToMldev(_0x569068);return _0x504dc2=formatMap('cachedContents',_0x4802d5[_0x461bb1(0x4e9)]),_0x237a7f=_0x4802d5['_query'],delete _0x4802d5[_0x461bb1(0x4e9)],delete _0x4802d5[_0x461bb1(0x46e)],_0x1bee46=this[_0x461bb1(0x5bb)][_0x461bb1(0x44a)]({'path':_0x504dc2,'queryParams':_0x237a7f,'body':JSON[_0x461bb1(0x45e)](_0x4802d5),'httpMethod':'GET','httpOptions':(_0x12ef2d=_0x569068[_0x461bb1(0x1b0)])===null||_0x12ef2d===void 0x0?void 0x0:_0x12ef2d[_0x461bb1(0x688)],'abortSignal':(_0x3607de=_0x569068[_0x461bb1(0x1b0)])===null||_0x3607de===void 0x0?void 0x0:_0x3607de[_0x461bb1(0x67c)]})['then'](_0x1de6ff=>{const _0x4ee3c6=_0x461bb1;return _0x1de6ff[_0x4ee3c6(0x648)]()['then'](_0x145923=>{const _0x313dd1=_0x4ee3c6,_0x24417b=_0x145923;return _0x24417b[_0x313dd1(0x25b)]={'headers':_0x1de6ff[_0x313dd1(0x2fa)]},_0x24417b;});}),_0x1bee46['then'](_0x5b9236=>{const _0x4c764f=listCachedContentsResponseFromMldev(_0x5b9236),_0x15ec44=new ListCachedContentsResponse();return Object['assign'](_0x15ec44,_0x4c764f),_0x15ec44;});}}}function __rest(_0x511b4b,_0x3b832a){const _0x2f5580=a1_0x54af01;var _0x3903d={};for(var _0x4a5065 in _0x511b4b)if(Object[_0x2f5580(0x19a)][_0x2f5580(0x662)][_0x2f5580(0x182)](_0x511b4b,_0x4a5065)&&_0x3b832a[_0x2f5580(0x632)](_0x4a5065)<0x0)_0x3903d[_0x4a5065]=_0x511b4b[_0x4a5065];if(_0x511b4b!=null&&typeof Object[_0x2f5580(0x194)]===_0x2f5580(0x4a6))for(var _0x5a1f86=0x0,_0x4a5065=Object[_0x2f5580(0x194)](_0x511b4b);_0x5a1f86<_0x4a5065['length'];_0x5a1f86++){if(_0x3b832a[_0x2f5580(0x632)](_0x4a5065[_0x5a1f86])<0x0&&Object[_0x2f5580(0x19a)][_0x2f5580(0x573)][_0x2f5580(0x182)](_0x511b4b,_0x4a5065[_0x5a1f86]))_0x3903d[_0x4a5065[_0x5a1f86]]=_0x511b4b[_0x4a5065[_0x5a1f86]];}return _0x3903d;}function __values(_0x4d8a78){const _0x1cfa05=a1_0x54af01;var _0xd5d282=typeof Symbol===_0x1cfa05(0x4a6)&&Symbol[_0x1cfa05(0x568)],_0x290bba=_0xd5d282&&_0x4d8a78[_0xd5d282],_0x3a23dc=0x0;if(_0x290bba)return _0x290bba[_0x1cfa05(0x182)](_0x4d8a78);if(_0x4d8a78&&typeof _0x4d8a78[_0x1cfa05(0x258)]===_0x1cfa05(0x6b7))return{'next':function(){const _0x3a23a7=_0x1cfa05;if(_0x4d8a78&&_0x3a23dc>=_0x4d8a78[_0x3a23a7(0x258)])_0x4d8a78=void 0x0;return{'value':_0x4d8a78&&_0x4d8a78[_0x3a23dc++],'done':!_0x4d8a78};}};throw new TypeError(_0xd5d282?'Object\x20is\x20not\x20iterable.':_0x1cfa05(0x2a0));}function __await(_0x20643f){return this instanceof __await?(this['v']=_0x20643f,this):new __await(_0x20643f);}function __asyncGenerator(_0x569eac,_0x35f4a4,_0x7da469){const _0x5db28f=a1_0x54af01;if(!Symbol['asyncIterator'])throw new TypeError(_0x5db28f(0x3d2));var _0x54e637=_0x7da469[_0x5db28f(0x1b2)](_0x569eac,_0x35f4a4||[]),_0x5c3172,_0x219195=[];return _0x5c3172=Object[_0x5db28f(0x1af)]((typeof AsyncIterator===_0x5db28f(0x4a6)?AsyncIterator:Object)[_0x5db28f(0x19a)]),_0x377971(_0x5db28f(0x295)),_0x377971('throw'),_0x377971(_0x5db28f(0x599),_0xfce261),_0x5c3172[Symbol[_0x5db28f(0x4ea)]]=function(){return this;},_0x5c3172;function _0xfce261(_0x4c81eb){return function(_0x4e8c77){const _0x45630e=a1_0x2f78;return Promise[_0x45630e(0x364)](_0x4e8c77)['then'](_0x4c81eb,_0xbc0845);};}function _0x377971(_0x187523,_0x1f9729){if(_0x54e637[_0x187523]){_0x5c3172[_0x187523]=function(_0x5be39b){return new Promise(function(_0x553340,_0x2554ec){const _0x493736=a1_0x2f78;_0x219195[_0x493736(0x54b)]([_0x187523,_0x5be39b,_0x553340,_0x2554ec])>0x1||_0x23f6a3(_0x187523,_0x5be39b);});};if(_0x1f9729)_0x5c3172[_0x187523]=_0x1f9729(_0x5c3172[_0x187523]);}}function _0x23f6a3(_0x50c87f,_0x5adbb6){try{_0xc25a6f(_0x54e637[_0x50c87f](_0x5adbb6));}catch(_0x334225){_0x25cce2(_0x219195[0x0][0x3],_0x334225);}}function _0xc25a6f(_0x1a9e09){const _0x421edd=_0x5db28f;_0x1a9e09[_0x421edd(0x2f1)]instanceof __await?Promise[_0x421edd(0x364)](_0x1a9e09[_0x421edd(0x2f1)]['v'])[_0x421edd(0x28f)](_0x541ceb,_0xbc0845):_0x25cce2(_0x219195[0x0][0x2],_0x1a9e09);}function _0x541ceb(_0x536051){_0x23f6a3('next',_0x536051);}function _0xbc0845(_0x2ac27b){const _0x16d29f=_0x5db28f;_0x23f6a3(_0x16d29f(0x5ea),_0x2ac27b);}function _0x25cce2(_0x200a99,_0x208e60){const _0x5df553=_0x5db28f;if(_0x200a99(_0x208e60),_0x219195[_0x5df553(0x267)](),_0x219195[_0x5df553(0x258)])_0x23f6a3(_0x219195[0x0][0x0],_0x219195[0x0][0x1]);}}function __asyncValues(_0x21b473){const _0x472f83=a1_0x54af01;if(!Symbol['asyncIterator'])throw new TypeError('Symbol.asyncIterator\x20is\x20not\x20defined.');var _0x2a5df8=_0x21b473[Symbol[_0x472f83(0x4ea)]],_0x4bf482;return _0x2a5df8?_0x2a5df8[_0x472f83(0x182)](_0x21b473):(_0x21b473=typeof __values===_0x472f83(0x4a6)?__values(_0x21b473):_0x21b473[Symbol[_0x472f83(0x568)]](),_0x4bf482={},_0x56dec8('next'),_0x56dec8(_0x472f83(0x5ea)),_0x56dec8(_0x472f83(0x599)),_0x4bf482[Symbol[_0x472f83(0x4ea)]]=function(){return this;},_0x4bf482);function _0x56dec8(_0x39879a){_0x4bf482[_0x39879a]=_0x21b473[_0x39879a]&&function(_0x3134c3){return new Promise(function(_0x123ac0,_0x3752a8){const _0xdbe56b=a1_0x2f78;_0x3134c3=_0x21b473[_0x39879a](_0x3134c3),_0x187d25(_0x123ac0,_0x3752a8,_0x3134c3[_0xdbe56b(0x49f)],_0x3134c3[_0xdbe56b(0x2f1)]);});};}function _0x187d25(_0x298cd7,_0x57678d,_0x38ee59,_0x2b2878){const _0x5ca97f=_0x472f83;Promise[_0x5ca97f(0x364)](_0x2b2878)[_0x5ca97f(0x28f)](function(_0x2d59a1){_0x298cd7({'value':_0x2d59a1,'done':_0x38ee59});},_0x57678d);}}typeof SuppressedError==='function'?SuppressedError:function(_0x3d4a3f,_0x30e8ce,_0x3dd949){const _0x50e38e=a1_0x54af01;var _0x5e0b82=new Error(_0x3dd949);return _0x5e0b82[_0x50e38e(0x24b)]='SuppressedError',_0x5e0b82[_0x50e38e(0x3d6)]=_0x3d4a3f,_0x5e0b82['suppressed']=_0x30e8ce,_0x5e0b82;};/**
57
+ * @license
58
+ * Copyright 2025 Google LLC
59
+ * SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ function isValidResponse(_0x1fbdde){const _0x8beeb9=a1_0x54af01;var _0x314155;if(_0x1fbdde[_0x8beeb9(0x546)]==undefined||_0x1fbdde[_0x8beeb9(0x546)][_0x8beeb9(0x258)]===0x0)return![];const _0x2b3a0b=(_0x314155=_0x1fbdde[_0x8beeb9(0x546)][0x0])===null||_0x314155===void 0x0?void 0x0:_0x314155[_0x8beeb9(0x1a9)];if(_0x2b3a0b===undefined)return![];return isValidContent(_0x2b3a0b);}function isValidContent(_0x46a9bd){const _0x1149c7=a1_0x54af01;if(_0x46a9bd[_0x1149c7(0x4f7)]===undefined||_0x46a9bd[_0x1149c7(0x4f7)][_0x1149c7(0x258)]===0x0)return![];for(const _0x3db4a0 of _0x46a9bd[_0x1149c7(0x4f7)]){if(_0x3db4a0===undefined||Object[_0x1149c7(0x51c)](_0x3db4a0)[_0x1149c7(0x258)]===0x0)return![];}return!![];}function validateHistory(_0xc6ae7c){const _0x528594=a1_0x54af01;if(_0xc6ae7c[_0x528594(0x258)]===0x0)return;for(const _0x5c36bb of _0xc6ae7c){if(_0x5c36bb[_0x528594(0x61a)]!=='user'&&_0x5c36bb[_0x528594(0x61a)]!=='model')throw new Error(_0x528594(0x3da)+_0x5c36bb[_0x528594(0x61a)]+'.');}}function extractCuratedHistory(_0x5d409a){const _0x513877=a1_0x54af01;if(_0x5d409a===undefined||_0x5d409a[_0x513877(0x258)]===0x0)return[];const _0x3dab8e=[],_0x566504=_0x5d409a[_0x513877(0x258)];let _0x3eee81=0x0;while(_0x3eee81<_0x566504){if(_0x5d409a[_0x3eee81][_0x513877(0x61a)]===_0x513877(0x517))_0x3dab8e[_0x513877(0x54b)](_0x5d409a[_0x3eee81]),_0x3eee81++;else{const _0x5bbb9b=[];let _0x5e96aa=!![];while(_0x3eee81<_0x566504&&_0x5d409a[_0x3eee81][_0x513877(0x61a)]===_0x513877(0x210)){_0x5bbb9b['push'](_0x5d409a[_0x3eee81]),_0x5e96aa&&!isValidContent(_0x5d409a[_0x3eee81])&&(_0x5e96aa=![]),_0x3eee81++;}_0x5e96aa?_0x3dab8e['push'](..._0x5bbb9b):_0x3dab8e[_0x513877(0x60a)]();}}return _0x3dab8e;}class Chats{constructor(_0x2004ff,_0x1c5dc7){const _0x847d9b=a1_0x54af01;this[_0x847d9b(0x611)]=_0x2004ff,this[_0x847d9b(0x5bb)]=_0x1c5dc7;}['create'](_0x4655fb){const _0x2a3ce1=a1_0x54af01;return new Chat(this[_0x2a3ce1(0x5bb)],this[_0x2a3ce1(0x611)],_0x4655fb[_0x2a3ce1(0x210)],_0x4655fb[_0x2a3ce1(0x1b0)],structuredClone(_0x4655fb[_0x2a3ce1(0x4bf)]));}}class Chat{constructor(_0x342bd1,_0x3026ad,_0x34613e,_0x183774={},_0x290f1f=[]){const _0x30a43f=a1_0x54af01;this[_0x30a43f(0x5bb)]=_0x342bd1,this[_0x30a43f(0x611)]=_0x3026ad,this['model']=_0x34613e,this[_0x30a43f(0x1b0)]=_0x183774,this[_0x30a43f(0x4bf)]=_0x290f1f,this[_0x30a43f(0x1c4)]=Promise[_0x30a43f(0x364)](),validateHistory(_0x290f1f);}async[a1_0x54af01(0x391)](_0x3bc972){const _0x10d441=a1_0x54af01;var _0x39efa5;await this[_0x10d441(0x1c4)];const _0x40ece1=tContent(_0x3bc972[_0x10d441(0x3fc)]),_0x45d1b6=this[_0x10d441(0x611)][_0x10d441(0x209)]({'model':this[_0x10d441(0x210)],'contents':this[_0x10d441(0x260)](!![])[_0x10d441(0x2ba)](_0x40ece1),'config':(_0x39efa5=_0x3bc972[_0x10d441(0x1b0)])!==null&&_0x39efa5!==void 0x0?_0x39efa5:this[_0x10d441(0x1b0)]});return this[_0x10d441(0x1c4)]=((async()=>{const _0x47c2e7=_0x10d441;var _0x2b901b,_0x191353,_0x49c35f;const _0x241836=await _0x45d1b6,_0x1671b7=(_0x191353=(_0x2b901b=_0x241836[_0x47c2e7(0x546)])===null||_0x2b901b===void 0x0?void 0x0:_0x2b901b[0x0])===null||_0x191353===void 0x0?void 0x0:_0x191353[_0x47c2e7(0x1a9)],_0x29eea7=_0x241836[_0x47c2e7(0x39d)],_0x29eeac=this[_0x47c2e7(0x260)](!![])[_0x47c2e7(0x258)];let _0x3550d0=[];_0x29eea7!=null&&(_0x3550d0=(_0x49c35f=_0x29eea7[_0x47c2e7(0x4a2)](_0x29eeac))!==null&&_0x49c35f!==void 0x0?_0x49c35f:[]);const _0x2ba355=_0x1671b7?[_0x1671b7]:[];this['recordHistory'](_0x40ece1,_0x2ba355,_0x3550d0);return;})()),await this[_0x10d441(0x1c4)]['catch'](()=>{const _0x3a3504=_0x10d441;this[_0x3a3504(0x1c4)]=Promise[_0x3a3504(0x364)]();}),_0x45d1b6;}async[a1_0x54af01(0x38f)](_0xf12c42){const _0x54cba0=a1_0x54af01;var _0x3a9926;await this[_0x54cba0(0x1c4)];const _0x18d8ea=tContent(_0xf12c42['message']),_0x104375=this[_0x54cba0(0x611)]['generateContentStream']({'model':this['model'],'contents':this[_0x54cba0(0x260)](!![])[_0x54cba0(0x2ba)](_0x18d8ea),'config':(_0x3a9926=_0xf12c42['config'])!==null&&_0x3a9926!==void 0x0?_0x3a9926:this['config']});this[_0x54cba0(0x1c4)]=_0x104375[_0x54cba0(0x28f)](()=>undefined)['catch'](()=>undefined);const _0x3319c5=await _0x104375,_0x2779f=this[_0x54cba0(0x21a)](_0x3319c5,_0x18d8ea);return _0x2779f;}[a1_0x54af01(0x260)](_0x39c4c3=![]){const _0x334cfd=a1_0x54af01,_0x3303d1=_0x39c4c3?extractCuratedHistory(this[_0x334cfd(0x4bf)]):this[_0x334cfd(0x4bf)];return structuredClone(_0x3303d1);}[a1_0x54af01(0x21a)](_0x302834,_0xd3b692){return __asyncGenerator(this,arguments,function*_0x193063(){const _0x2c3637=a1_0x2f78;var _0x1e70a6,_0x2f9e5a,_0x2e2ec2,_0x242972,_0x352fe7,_0x24bf93;const _0x4d221e=[];try{for(var _0x63dc87=!![],_0x12840d=__asyncValues(_0x302834),_0x349c82;_0x349c82=yield __await(_0x12840d[_0x2c3637(0x295)]()),_0x1e70a6=_0x349c82['done'],!_0x1e70a6;_0x63dc87=!![]){_0x242972=_0x349c82[_0x2c3637(0x2f1)],_0x63dc87=![];const _0xdf515c=_0x242972;if(isValidResponse(_0xdf515c)){const _0x5e04cd=(_0x24bf93=(_0x352fe7=_0xdf515c[_0x2c3637(0x546)])===null||_0x352fe7===void 0x0?void 0x0:_0x352fe7[0x0])===null||_0x24bf93===void 0x0?void 0x0:_0x24bf93[_0x2c3637(0x1a9)];_0x5e04cd!==undefined&&_0x4d221e[_0x2c3637(0x54b)](_0x5e04cd);}yield yield __await(_0xdf515c);}}catch(_0x3ab8d8){_0x2f9e5a={'error':_0x3ab8d8};}finally{try{if(!_0x63dc87&&!_0x1e70a6&&(_0x2e2ec2=_0x12840d[_0x2c3637(0x599)]))yield __await(_0x2e2ec2['call'](_0x12840d));}finally{if(_0x2f9e5a)throw _0x2f9e5a[_0x2c3637(0x3d6)];}}this[_0x2c3637(0x5dc)](_0xd3b692,_0x4d221e);});}[a1_0x54af01(0x5dc)](_0x33e1eb,_0x15e12e,_0x6367a0){const _0x446ce1=a1_0x54af01;let _0x5b577e=[];_0x15e12e[_0x446ce1(0x258)]>0x0&&_0x15e12e[_0x446ce1(0x55b)](_0x5050b3=>_0x5050b3[_0x446ce1(0x61a)]!==undefined)?_0x5b577e=_0x15e12e:_0x5b577e[_0x446ce1(0x54b)]({'role':_0x446ce1(0x210),'parts':[]}),_0x6367a0&&_0x6367a0[_0x446ce1(0x258)]>0x0?this[_0x446ce1(0x4bf)][_0x446ce1(0x54b)](...extractCuratedHistory(_0x6367a0)):this[_0x446ce1(0x4bf)][_0x446ce1(0x54b)](_0x33e1eb),this[_0x446ce1(0x4bf)][_0x446ce1(0x54b)](..._0x5b577e);}}/**
62
+ * @license
63
+ * Copyright 2025 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
66
+ function createFileSearchStoreConfigToMldev(_0x3a3c22,_0x5a5bc8){const _0x1746b1=a1_0x54af01,_0x4e188f={},_0x2d229c=getValueByPath(_0x3a3c22,['displayName']);return _0x5a5bc8!==undefined&&_0x2d229c!=null&&setValueByPath(_0x5a5bc8,[_0x1746b1(0x37e)],_0x2d229c),_0x4e188f;}function createFileSearchStoreParametersToMldev(_0x36992b){const _0x33d412=a1_0x54af01,_0x3f6e78={},_0x3fac05=getValueByPath(_0x36992b,[_0x33d412(0x1b0)]);return _0x3fac05!=null&&createFileSearchStoreConfigToMldev(_0x3fac05,_0x3f6e78),_0x3f6e78;}function deleteFileSearchStoreConfigToMldev(_0x487163,_0x2ac085){const _0x24eb38=a1_0x54af01,_0x58c9a9={},_0x4071c5=getValueByPath(_0x487163,[_0x24eb38(0x348)]);return _0x2ac085!==undefined&&_0x4071c5!=null&&setValueByPath(_0x2ac085,[_0x24eb38(0x46e),_0x24eb38(0x348)],_0x4071c5),_0x58c9a9;}function deleteFileSearchStoreParametersToMldev(_0x2fbc39){const _0x5ea0b5=a1_0x54af01,_0x4992a1={},_0x5cefdb=getValueByPath(_0x2fbc39,[_0x5ea0b5(0x24b)]);_0x5cefdb!=null&&setValueByPath(_0x4992a1,[_0x5ea0b5(0x4e9),_0x5ea0b5(0x24b)],_0x5cefdb);const _0x219bbb=getValueByPath(_0x2fbc39,[_0x5ea0b5(0x1b0)]);return _0x219bbb!=null&&deleteFileSearchStoreConfigToMldev(_0x219bbb,_0x4992a1),_0x4992a1;}function getFileSearchStoreParametersToMldev(_0x8d4067){const _0x43e06a=a1_0x54af01,_0x2c130e={},_0x36f87e=getValueByPath(_0x8d4067,[_0x43e06a(0x24b)]);return _0x36f87e!=null&&setValueByPath(_0x2c130e,['_url','name'],_0x36f87e),_0x2c130e;}function importFileConfigToMldev(_0x4e9005,_0x4c5858){const _0x31d952=a1_0x54af01,_0x6b499={},_0x20583b=getValueByPath(_0x4e9005,[_0x31d952(0x479)]);if(_0x4c5858!==undefined&&_0x20583b!=null){let _0x431216=_0x20583b;Array[_0x31d952(0x1e2)](_0x431216)&&(_0x431216=_0x431216[_0x31d952(0x261)](_0x54591b=>{return _0x54591b;})),setValueByPath(_0x4c5858,[_0x31d952(0x479)],_0x431216);}const _0x56a24a=getValueByPath(_0x4e9005,[_0x31d952(0x2f5)]);return _0x4c5858!==undefined&&_0x56a24a!=null&&setValueByPath(_0x4c5858,['chunkingConfig'],_0x56a24a),_0x6b499;}function importFileOperationFromMldev(_0x20905e){const _0x3eeac4=a1_0x54af01,_0x5c0b46={},_0x36cd08=getValueByPath(_0x20905e,['name']);_0x36cd08!=null&&setValueByPath(_0x5c0b46,['name'],_0x36cd08);const _0x2da178=getValueByPath(_0x20905e,[_0x3eeac4(0x54a)]);_0x2da178!=null&&setValueByPath(_0x5c0b46,[_0x3eeac4(0x54a)],_0x2da178);const _0x3ec6d7=getValueByPath(_0x20905e,[_0x3eeac4(0x49f)]);_0x3ec6d7!=null&&setValueByPath(_0x5c0b46,[_0x3eeac4(0x49f)],_0x3ec6d7);const _0x251d9e=getValueByPath(_0x20905e,['error']);_0x251d9e!=null&&setValueByPath(_0x5c0b46,[_0x3eeac4(0x3d6)],_0x251d9e);const _0x3a7b0a=getValueByPath(_0x20905e,['response']);return _0x3a7b0a!=null&&setValueByPath(_0x5c0b46,[_0x3eeac4(0x575)],importFileResponseFromMldev(_0x3a7b0a)),_0x5c0b46;}function importFileParametersToMldev(_0xd42bb3){const _0xabc0d=a1_0x54af01,_0x1a3487={},_0x324731=getValueByPath(_0xd42bb3,[_0xabc0d(0x323)]);_0x324731!=null&&setValueByPath(_0x1a3487,[_0xabc0d(0x4e9),_0xabc0d(0x2be)],_0x324731);const _0x48f1e4=getValueByPath(_0xd42bb3,[_0xabc0d(0x6ca)]);_0x48f1e4!=null&&setValueByPath(_0x1a3487,[_0xabc0d(0x6ca)],_0x48f1e4);const _0xe7c3df=getValueByPath(_0xd42bb3,['config']);return _0xe7c3df!=null&&importFileConfigToMldev(_0xe7c3df,_0x1a3487),_0x1a3487;}function importFileResponseFromMldev(_0x50e036){const _0x54b068=a1_0x54af01,_0x113987={},_0x2edf9c=getValueByPath(_0x50e036,['sdkHttpResponse']);_0x2edf9c!=null&&setValueByPath(_0x113987,['sdkHttpResponse'],_0x2edf9c);const _0x497401=getValueByPath(_0x50e036,['parent']);_0x497401!=null&&setValueByPath(_0x113987,[_0x54b068(0x629)],_0x497401);const _0xdf9584=getValueByPath(_0x50e036,[_0x54b068(0x5e0)]);return _0xdf9584!=null&&setValueByPath(_0x113987,[_0x54b068(0x5e0)],_0xdf9584),_0x113987;}function listFileSearchStoresConfigToMldev(_0x5acbd9,_0x26d0f6){const _0x4c824d=a1_0x54af01,_0x25931b={},_0x367e42=getValueByPath(_0x5acbd9,[_0x4c824d(0x3a4)]);_0x26d0f6!==undefined&&_0x367e42!=null&&setValueByPath(_0x26d0f6,['_query',_0x4c824d(0x3a4)],_0x367e42);const _0x1b8e5a=getValueByPath(_0x5acbd9,['pageToken']);return _0x26d0f6!==undefined&&_0x1b8e5a!=null&&setValueByPath(_0x26d0f6,[_0x4c824d(0x46e),_0x4c824d(0x5ac)],_0x1b8e5a),_0x25931b;}function listFileSearchStoresParametersToMldev(_0x20df78){const _0x50e19a=a1_0x54af01,_0xa0becc={},_0x9bd13a=getValueByPath(_0x20df78,[_0x50e19a(0x1b0)]);return _0x9bd13a!=null&&listFileSearchStoresConfigToMldev(_0x9bd13a,_0xa0becc),_0xa0becc;}function listFileSearchStoresResponseFromMldev(_0x4456cb){const _0x2044ec=a1_0x54af01,_0x3d98b3={},_0x172ffe=getValueByPath(_0x4456cb,[_0x2044ec(0x25b)]);_0x172ffe!=null&&setValueByPath(_0x3d98b3,['sdkHttpResponse'],_0x172ffe);const _0x5a34f3=getValueByPath(_0x4456cb,['nextPageToken']);_0x5a34f3!=null&&setValueByPath(_0x3d98b3,[_0x2044ec(0x408)],_0x5a34f3);const _0x2a8e51=getValueByPath(_0x4456cb,['fileSearchStores']);if(_0x2a8e51!=null){let _0x54b153=_0x2a8e51;Array['isArray'](_0x54b153)&&(_0x54b153=_0x54b153[_0x2044ec(0x261)](_0x2c9ab0=>{return _0x2c9ab0;})),setValueByPath(_0x3d98b3,[_0x2044ec(0x584)],_0x54b153);}return _0x3d98b3;}function uploadToFileSearchStoreConfigToMldev(_0x115119,_0x1d7dc6){const _0x36ab95=a1_0x54af01,_0x234228={},_0x537540=getValueByPath(_0x115119,[_0x36ab95(0x2cd)]);_0x1d7dc6!==undefined&&_0x537540!=null&&setValueByPath(_0x1d7dc6,['mimeType'],_0x537540);const _0x55d0da=getValueByPath(_0x115119,['displayName']);_0x1d7dc6!==undefined&&_0x55d0da!=null&&setValueByPath(_0x1d7dc6,[_0x36ab95(0x37e)],_0x55d0da);const _0x241e65=getValueByPath(_0x115119,['customMetadata']);if(_0x1d7dc6!==undefined&&_0x241e65!=null){let _0x1b4eaa=_0x241e65;Array[_0x36ab95(0x1e2)](_0x1b4eaa)&&(_0x1b4eaa=_0x1b4eaa[_0x36ab95(0x261)](_0xc55c26=>{return _0xc55c26;})),setValueByPath(_0x1d7dc6,[_0x36ab95(0x479)],_0x1b4eaa);}const _0x232580=getValueByPath(_0x115119,[_0x36ab95(0x2f5)]);return _0x1d7dc6!==undefined&&_0x232580!=null&&setValueByPath(_0x1d7dc6,[_0x36ab95(0x2f5)],_0x232580),_0x234228;}function uploadToFileSearchStoreParametersToMldev(_0x1add17){const _0x428252=a1_0x54af01,_0x7d54ef={},_0x4025f8=getValueByPath(_0x1add17,['fileSearchStoreName']);_0x4025f8!=null&&setValueByPath(_0x7d54ef,[_0x428252(0x4e9),_0x428252(0x2be)],_0x4025f8);const _0x2ad04a=getValueByPath(_0x1add17,[_0x428252(0x1b0)]);return _0x2ad04a!=null&&uploadToFileSearchStoreConfigToMldev(_0x2ad04a,_0x7d54ef),_0x7d54ef;}function uploadToFileSearchStoreResumableResponseFromMldev(_0x232d0a){const _0x1c6fbe=a1_0x54af01,_0x7e11b0={},_0x367136=getValueByPath(_0x232d0a,[_0x1c6fbe(0x25b)]);return _0x367136!=null&&setValueByPath(_0x7e11b0,[_0x1c6fbe(0x25b)],_0x367136),_0x7e11b0;}/**
67
+ * @license
68
+ * Copyright 2025 Google LLC
69
+ * SPDX-License-Identifier: Apache-2.0
70
+ */
71
+ class ApiError extends Error{constructor(_0x22ec33){const _0x4ebe87=a1_0x54af01;super(_0x22ec33['message']),this['name']=_0x4ebe87(0x67e),this[_0x4ebe87(0x3e9)]=_0x22ec33['status'],Object[_0x4ebe87(0x409)](this,ApiError[_0x4ebe87(0x19a)]);}}/**
72
+ * @license
73
+ * Copyright 2025 Google LLC
74
+ * SPDX-License-Identifier: Apache-2.0
75
+ */
76
+ const CONTENT_TYPE_HEADER=a1_0x54af01(0x2ef),SERVER_TIMEOUT_HEADER='X-Server-Timeout',USER_AGENT_HEADER=a1_0x54af01(0x36c),GOOGLE_API_CLIENT_HEADER=a1_0x54af01(0x6a1),SDK_VERSION=a1_0x54af01(0x505),LIBRARY_LABEL=a1_0x54af01(0x215)+SDK_VERSION,VERTEX_AI_API_DEFAULT_VERSION=a1_0x54af01(0x256),GOOGLE_AI_API_DEFAULT_VERSION='v1beta';class ApiClient{constructor(_0x4fd9fb){const _0x25e7c3=a1_0x54af01;var _0x4c825a,_0x1fce3a,_0x4d8e89;this['clientOptions']=Object['assign']({},_0x4fd9fb),this[_0x25e7c3(0x672)]=(_0x4c825a=_0x4fd9fb[_0x25e7c3(0x688)])===null||_0x4c825a===void 0x0?void 0x0:_0x4c825a['baseUrl'];if(this[_0x25e7c3(0x2f3)][_0x25e7c3(0x5fa)]){if(this['clientOptions']['project']&&this[_0x25e7c3(0x2f3)]['location'])this[_0x25e7c3(0x2f3)][_0x25e7c3(0x224)]=undefined;else this['clientOptions']['apiKey']&&(this[_0x25e7c3(0x2f3)][_0x25e7c3(0x41e)]=undefined,this[_0x25e7c3(0x2f3)][_0x25e7c3(0x4b4)]=undefined);}const _0x233226={};if(this[_0x25e7c3(0x2f3)][_0x25e7c3(0x5fa)]){!this['clientOptions'][_0x25e7c3(0x4b4)]&&!this[_0x25e7c3(0x2f3)][_0x25e7c3(0x224)]&&!this['customBaseUrl']&&(this[_0x25e7c3(0x2f3)][_0x25e7c3(0x4b4)]=_0x25e7c3(0x4c5));const _0x39b51=this[_0x25e7c3(0x2f3)]['project']&&this[_0x25e7c3(0x2f3)]['location']||this[_0x25e7c3(0x2f3)][_0x25e7c3(0x224)];if(!_0x39b51&&!this['customBaseUrl'])throw new Error(_0x25e7c3(0x69b));const _0x40328c=_0x4fd9fb[_0x25e7c3(0x41e)]&&_0x4fd9fb[_0x25e7c3(0x4b4)]||!!_0x4fd9fb[_0x25e7c3(0x224)];if(this[_0x25e7c3(0x672)]&&!_0x40328c)_0x233226[_0x25e7c3(0x542)]=this[_0x25e7c3(0x672)],this[_0x25e7c3(0x2f3)][_0x25e7c3(0x41e)]=undefined,this[_0x25e7c3(0x2f3)][_0x25e7c3(0x4b4)]=undefined;else{if(this[_0x25e7c3(0x2f3)][_0x25e7c3(0x224)]||this[_0x25e7c3(0x2f3)][_0x25e7c3(0x4b4)]==='global')_0x233226[_0x25e7c3(0x542)]=_0x25e7c3(0x58e);else this[_0x25e7c3(0x2f3)][_0x25e7c3(0x41e)]&&this[_0x25e7c3(0x2f3)][_0x25e7c3(0x4b4)]&&(_0x233226[_0x25e7c3(0x542)]=_0x25e7c3(0x18a)+this[_0x25e7c3(0x2f3)][_0x25e7c3(0x4b4)]+_0x25e7c3(0x481));}_0x233226[_0x25e7c3(0x288)]=(_0x1fce3a=this[_0x25e7c3(0x2f3)][_0x25e7c3(0x288)])!==null&&_0x1fce3a!==void 0x0?_0x1fce3a:VERTEX_AI_API_DEFAULT_VERSION;}else{if(!this[_0x25e7c3(0x2f3)][_0x25e7c3(0x224)])throw new ApiError({'message':_0x25e7c3(0x5fb),'status':0x193});_0x233226[_0x25e7c3(0x288)]=(_0x4d8e89=this[_0x25e7c3(0x2f3)][_0x25e7c3(0x288)])!==null&&_0x4d8e89!==void 0x0?_0x4d8e89:GOOGLE_AI_API_DEFAULT_VERSION,_0x233226['baseUrl']=_0x25e7c3(0x22f);}_0x233226['headers']=this['getDefaultHeaders'](),this[_0x25e7c3(0x2f3)][_0x25e7c3(0x688)]=_0x233226,_0x4fd9fb[_0x25e7c3(0x688)]&&(this['clientOptions'][_0x25e7c3(0x688)]=this[_0x25e7c3(0x518)](_0x233226,_0x4fd9fb[_0x25e7c3(0x688)]));}[a1_0x54af01(0x29b)](){const _0x5df048=a1_0x54af01;var _0x401954;return(_0x401954=this['clientOptions'][_0x5df048(0x5fa)])!==null&&_0x401954!==void 0x0?_0x401954:![];}[a1_0x54af01(0x549)](){const _0x5c1d7a=a1_0x54af01;return this[_0x5c1d7a(0x2f3)][_0x5c1d7a(0x41e)];}[a1_0x54af01(0x1ea)](){const _0x2f1366=a1_0x54af01;return this['clientOptions'][_0x2f1366(0x4b4)];}[a1_0x54af01(0x3c9)](){return this['customBaseUrl'];}async['getAuthHeaders'](){const _0x4a6d72=a1_0x54af01,_0x557435=new Headers();return await this[_0x4a6d72(0x2f3)][_0x4a6d72(0x5e1)][_0x4a6d72(0x4a7)](_0x557435),_0x557435;}[a1_0x54af01(0x3e8)](){const _0x30ff3d=a1_0x54af01;if(this[_0x30ff3d(0x2f3)][_0x30ff3d(0x688)]&&this['clientOptions']['httpOptions']['apiVersion']!==undefined)return this[_0x30ff3d(0x2f3)][_0x30ff3d(0x688)][_0x30ff3d(0x288)];throw new Error(_0x30ff3d(0x593));}[a1_0x54af01(0x6bc)](){const _0x1a714b=a1_0x54af01;if(this[_0x1a714b(0x2f3)][_0x1a714b(0x688)]&&this[_0x1a714b(0x2f3)]['httpOptions'][_0x1a714b(0x542)]!==undefined)return this['clientOptions'][_0x1a714b(0x688)][_0x1a714b(0x542)];throw new Error('Base\x20URL\x20is\x20not\x20set.');}[a1_0x54af01(0x18d)](){const _0x315cc4=a1_0x54af01;return this[_0x315cc4(0x64a)](this[_0x315cc4(0x2f3)][_0x315cc4(0x688)]);}[a1_0x54af01(0x2ab)](){const _0x502fa6=a1_0x54af01;if(this['clientOptions'][_0x502fa6(0x688)]&&this[_0x502fa6(0x2f3)][_0x502fa6(0x688)][_0x502fa6(0x2fa)]!==undefined)return this[_0x502fa6(0x2f3)][_0x502fa6(0x688)]['headers'];else throw new Error(_0x502fa6(0x3ae));}[a1_0x54af01(0x64a)](_0x26ee15){const _0x43ca63=a1_0x54af01;if(!_0x26ee15||_0x26ee15['baseUrl']===undefined||_0x26ee15[_0x43ca63(0x288)]===undefined)throw new Error(_0x43ca63(0x535));const _0x50ea0b=_0x26ee15['baseUrl'][_0x43ca63(0x250)]('/')?_0x26ee15[_0x43ca63(0x542)][_0x43ca63(0x4a2)](0x0,-0x1):_0x26ee15['baseUrl'],_0x59fa8e=[_0x50ea0b];return _0x26ee15[_0x43ca63(0x288)]&&_0x26ee15[_0x43ca63(0x288)]!==''&&_0x59fa8e['push'](_0x26ee15[_0x43ca63(0x288)]),_0x59fa8e[_0x43ca63(0x1d6)]('/');}[a1_0x54af01(0x312)](){const _0x3f359d=a1_0x54af01;return _0x3f359d(0x353)+this[_0x3f359d(0x2f3)][_0x3f359d(0x41e)]+_0x3f359d(0x1e9)+this['clientOptions'][_0x3f359d(0x4b4)];}[a1_0x54af01(0x620)](){const _0x306ca3=a1_0x54af01;return this[_0x306ca3(0x2f3)][_0x306ca3(0x224)];}['getWebsocketBaseUrl'](){const _0x2498ef=a1_0x54af01,_0xfd99bb=this['getBaseUrl'](),_0x37f99a=new URL(_0xfd99bb);return _0x37f99a[_0x2498ef(0x37b)]=_0x37f99a[_0x2498ef(0x37b)]==_0x2498ef(0x6a9)?'ws':_0x2498ef(0x25f),_0x37f99a[_0x2498ef(0x674)]();}[a1_0x54af01(0x4e0)](_0x4ac3b2){const _0x58b1fc=a1_0x54af01;if(this[_0x58b1fc(0x2f3)][_0x58b1fc(0x688)])this[_0x58b1fc(0x2f3)]['httpOptions'][_0x58b1fc(0x542)]=_0x4ac3b2;else throw new Error(_0x58b1fc(0x535));}[a1_0x54af01(0x1dd)](_0x4f5728,_0x22abf3,_0x3e3269){const _0x40ef24=a1_0x54af01,_0x2bcca7=[this[_0x40ef24(0x64a)](_0x22abf3)];_0x3e3269&&_0x2bcca7[_0x40ef24(0x54b)](this[_0x40ef24(0x312)]());_0x4f5728!==''&&_0x2bcca7['push'](_0x4f5728);const _0x1f04e8=new URL(''+_0x2bcca7['join']('/'));return _0x1f04e8;}['shouldPrependVertexProjectPath'](_0x43fe8e,_0x6e0bd8){const _0x49f578=a1_0x54af01;if(_0x6e0bd8[_0x49f578(0x542)]&&_0x6e0bd8[_0x49f578(0x6b1)]===ResourceScope[_0x49f578(0x228)])return![];if(this['clientOptions'][_0x49f578(0x224)])return![];if(!this['clientOptions']['vertexai'])return![];if(_0x43fe8e[_0x49f578(0x67d)][_0x49f578(0x55d)](_0x49f578(0x353)))return![];if(_0x43fe8e[_0x49f578(0x255)]==='GET'&&_0x43fe8e[_0x49f578(0x67d)][_0x49f578(0x55d)](_0x49f578(0x47c)))return![];return!![];}async[a1_0x54af01(0x44a)](_0x336d5e){const _0x2ac4c1=a1_0x54af01;let _0x906192=this[_0x2ac4c1(0x2f3)]['httpOptions'];_0x336d5e['httpOptions']&&(_0x906192=this[_0x2ac4c1(0x518)](this[_0x2ac4c1(0x2f3)]['httpOptions'],_0x336d5e[_0x2ac4c1(0x688)]));const _0x33cbb0=this[_0x2ac4c1(0x283)](_0x336d5e,_0x906192),_0x28c8e9=this[_0x2ac4c1(0x1dd)](_0x336d5e[_0x2ac4c1(0x67d)],_0x906192,_0x33cbb0);if(_0x336d5e[_0x2ac4c1(0x69d)])for(const [_0x34e90a,_0xc59d85]of Object[_0x2ac4c1(0x4a1)](_0x336d5e[_0x2ac4c1(0x69d)])){_0x28c8e9[_0x2ac4c1(0x39b)][_0x2ac4c1(0x3ca)](_0x34e90a,String(_0xc59d85));}let _0x3a7730={};if(_0x336d5e[_0x2ac4c1(0x255)]===_0x2ac4c1(0x1f7)){if(_0x336d5e[_0x2ac4c1(0x655)]&&_0x336d5e['body']!=='{}')throw new Error(_0x2ac4c1(0x44b));}else _0x3a7730['body']=_0x336d5e[_0x2ac4c1(0x655)];return _0x3a7730=await this[_0x2ac4c1(0x21f)](_0x3a7730,_0x906192,_0x28c8e9[_0x2ac4c1(0x674)](),_0x336d5e[_0x2ac4c1(0x67c)]),this[_0x2ac4c1(0x290)](_0x28c8e9,_0x3a7730,_0x336d5e['httpMethod']);}[a1_0x54af01(0x518)](_0x1bd777,_0x18290e){const _0x1452b9=a1_0x54af01,_0x143313=JSON[_0x1452b9(0x2fd)](JSON['stringify'](_0x1bd777));for(const [_0x52f5ea,_0x848228]of Object[_0x1452b9(0x4a1)](_0x18290e)){if(typeof _0x848228===_0x1452b9(0x34b))_0x143313[_0x52f5ea]=Object[_0x1452b9(0x541)](Object[_0x1452b9(0x541)]({},_0x143313[_0x52f5ea]),_0x848228);else _0x848228!==undefined&&(_0x143313[_0x52f5ea]=_0x848228);}return _0x143313;}async[a1_0x54af01(0x330)](_0x4d9e6a){const _0x342616=a1_0x54af01;let _0x3a0adf=this['clientOptions'][_0x342616(0x688)];_0x4d9e6a[_0x342616(0x688)]&&(_0x3a0adf=this[_0x342616(0x518)](this[_0x342616(0x2f3)][_0x342616(0x688)],_0x4d9e6a[_0x342616(0x688)]));const _0x497648=this[_0x342616(0x283)](_0x4d9e6a,_0x3a0adf),_0x25e0f7=this[_0x342616(0x1dd)](_0x4d9e6a[_0x342616(0x67d)],_0x3a0adf,_0x497648);(!_0x25e0f7['searchParams'][_0x342616(0x198)](_0x342616(0x697))||_0x25e0f7[_0x342616(0x39b)][_0x342616(0x5a2)](_0x342616(0x697))!==_0x342616(0x347))&&_0x25e0f7[_0x342616(0x39b)][_0x342616(0x6c7)](_0x342616(0x697),'sse');let _0x40d58f={};return _0x40d58f[_0x342616(0x655)]=_0x4d9e6a[_0x342616(0x655)],_0x40d58f=await this['includeExtraHttpOptionsToRequestInit'](_0x40d58f,_0x3a0adf,_0x25e0f7[_0x342616(0x674)](),_0x4d9e6a[_0x342616(0x67c)]),this[_0x342616(0x2cb)](_0x25e0f7,_0x40d58f,_0x4d9e6a[_0x342616(0x255)]);}async[a1_0x54af01(0x21f)](_0x134700,_0x3695f4,_0x449ba9,_0x477002){const _0x5abd4a=a1_0x54af01;if(_0x3695f4&&_0x3695f4[_0x5abd4a(0x219)]||_0x477002){const _0x3aa2ca=new AbortController(),_0x461c26=_0x3aa2ca['signal'];if(_0x3695f4[_0x5abd4a(0x219)]&&(_0x3695f4===null||_0x3695f4===void 0x0?void 0x0:_0x3695f4[_0x5abd4a(0x219)])>0x0){const _0x313cdb=setTimeout(()=>_0x3aa2ca[_0x5abd4a(0x418)](),_0x3695f4[_0x5abd4a(0x219)]);_0x313cdb&&typeof _0x313cdb[_0x5abd4a(0x301)]===_0x5abd4a(0x4a6)&&_0x313cdb[_0x5abd4a(0x301)]();}_0x477002&&_0x477002[_0x5abd4a(0x4b2)](_0x5abd4a(0x418),()=>{_0x3aa2ca['abort']();}),_0x134700[_0x5abd4a(0x4ab)]=_0x461c26;}return _0x3695f4&&_0x3695f4[_0x5abd4a(0x657)]!==null&&includeExtraBodyToRequestInit(_0x134700,_0x3695f4['extraBody']),_0x134700[_0x5abd4a(0x2fa)]=await this[_0x5abd4a(0x342)](_0x3695f4,_0x449ba9),_0x134700;}async[a1_0x54af01(0x290)](_0x4af6df,_0xc68455,_0x4fe0f6){const _0x382c72=a1_0x54af01;return this[_0x382c72(0x299)](_0x4af6df['toString'](),Object[_0x382c72(0x541)](Object['assign']({},_0xc68455),{'method':_0x4fe0f6}))[_0x382c72(0x28f)](async _0x3f2b82=>{return await throwErrorIfNotOK(_0x3f2b82),new HttpResponse(_0x3f2b82);})[_0x382c72(0x51e)](_0x58b7e9=>{if(_0x58b7e9 instanceof Error)throw _0x58b7e9;else throw new Error(JSON['stringify'](_0x58b7e9));});}async[a1_0x54af01(0x2cb)](_0x27571c,_0x35121b,_0x1b7416){const _0x86bac8=a1_0x54af01;return this[_0x86bac8(0x299)](_0x27571c[_0x86bac8(0x674)](),Object[_0x86bac8(0x541)](Object[_0x86bac8(0x541)]({},_0x35121b),{'method':_0x1b7416}))[_0x86bac8(0x28f)](async _0x52520a=>{return await throwErrorIfNotOK(_0x52520a),this['processStreamResponse'](_0x52520a);})[_0x86bac8(0x51e)](_0x95f14=>{if(_0x95f14 instanceof Error)throw _0x95f14;else throw new Error(JSON['stringify'](_0x95f14));});}[a1_0x54af01(0x21a)](_0x3e91f6){return __asyncGenerator(this,arguments,function*_0x19fd4d(){const _0x493c07=a1_0x2f78;var _0x4cdbff;const _0x49a745=(_0x4cdbff=_0x3e91f6===null||_0x3e91f6===void 0x0?void 0x0:_0x3e91f6['body'])===null||_0x4cdbff===void 0x0?void 0x0:_0x4cdbff[_0x493c07(0x6ae)](),_0xdc7eb7=new TextDecoder(_0x493c07(0x2c5));if(!_0x49a745)throw new Error(_0x493c07(0x37d));try{let _0x548cba='';const _0x1d7192=_0x493c07(0x574),_0x565565=['\x0a\x0a','\x0d\x0d','\x0d\x0a\x0d\x0a'];while(!![]){const {done:_0x56cccc,value:_0x253bdb}=yield __await(_0x49a745[_0x493c07(0x3fa)]());if(_0x56cccc){if(_0x548cba[_0x493c07(0x18e)]()[_0x493c07(0x258)]>0x0)throw new Error(_0x493c07(0x4ef));break;}const _0x31dee8=_0xdc7eb7[_0x493c07(0x26e)](_0x253bdb,{'stream':!![]});try{const _0x21d966=JSON[_0x493c07(0x2fd)](_0x31dee8);if(_0x493c07(0x3d6)in _0x21d966){const _0x5cf461=JSON[_0x493c07(0x2fd)](JSON[_0x493c07(0x45e)](_0x21d966[_0x493c07(0x3d6)])),_0x4313c1=_0x5cf461[_0x493c07(0x3e9)],_0x34f052=_0x5cf461[_0x493c07(0x477)],_0x4f7ba6=_0x493c07(0x5fd)+_0x4313c1+'.\x20'+JSON[_0x493c07(0x45e)](_0x21d966);if(_0x34f052>=0x190&&_0x34f052<0x258){const _0x1f4f7a=new ApiError({'message':_0x4f7ba6,'status':_0x34f052});throw _0x1f4f7a;}}}catch(_0x599240){const _0x3e417b=_0x599240;if(_0x3e417b[_0x493c07(0x24b)]===_0x493c07(0x67e))throw _0x599240;}_0x548cba+=_0x31dee8;let _0x736dfb=-0x1,_0x6858ef=0x0;while(!![]){_0x736dfb=-0x1,_0x6858ef=0x0;for(const _0x3a5dec of _0x565565){const _0x5cb555=_0x548cba[_0x493c07(0x632)](_0x3a5dec);_0x5cb555!==-0x1&&(_0x736dfb===-0x1||_0x5cb555<_0x736dfb)&&(_0x736dfb=_0x5cb555,_0x6858ef=_0x3a5dec['length']);}if(_0x736dfb===-0x1)break;const _0x169b95=_0x548cba[_0x493c07(0x19b)](0x0,_0x736dfb);_0x548cba=_0x548cba[_0x493c07(0x19b)](_0x736dfb+_0x6858ef);const _0x770bf7=_0x169b95['trim']();if(_0x770bf7[_0x493c07(0x55d)](_0x1d7192)){const _0x64f67a=_0x770bf7[_0x493c07(0x19b)](_0x1d7192[_0x493c07(0x258)])[_0x493c07(0x18e)]();try{const _0x290fe1=new Response(_0x64f67a,{'headers':_0x3e91f6===null||_0x3e91f6===void 0x0?void 0x0:_0x3e91f6[_0x493c07(0x2fa)],'status':_0x3e91f6===null||_0x3e91f6===void 0x0?void 0x0:_0x3e91f6[_0x493c07(0x3e9)],'statusText':_0x3e91f6===null||_0x3e91f6===void 0x0?void 0x0:_0x3e91f6[_0x493c07(0x4fb)]});yield yield __await(new HttpResponse(_0x290fe1));}catch(_0x52da43){throw new Error(_0x493c07(0x27b)+_0x64f67a+'.\x20'+_0x52da43);}}}}}finally{_0x49a745[_0x493c07(0x4e8)]();}});}async[a1_0x54af01(0x299)](_0x360308,_0x30fbad){const _0x2fc8e6=a1_0x54af01;return fetch(_0x360308,_0x30fbad)[_0x2fc8e6(0x51e)](_0x336c82=>{const _0x5ccf94=_0x2fc8e6;throw new Error(_0x5ccf94(0x54d)+_0x336c82+_0x5ccf94(0x46c));});}[a1_0x54af01(0x2ea)](){const _0x44c476=a1_0x54af01,_0x1b0d4c={},_0x3b9ece=LIBRARY_LABEL+'\x20'+this[_0x44c476(0x2f3)]['userAgentExtra'];return _0x1b0d4c[USER_AGENT_HEADER]=_0x3b9ece,_0x1b0d4c[GOOGLE_API_CLIENT_HEADER]=_0x3b9ece,_0x1b0d4c[CONTENT_TYPE_HEADER]='application/json',_0x1b0d4c;}async[a1_0x54af01(0x342)](_0x503228,_0x48de90){const _0x4b7fa3=a1_0x54af01,_0x2ac1d4=new Headers();if(_0x503228&&_0x503228[_0x4b7fa3(0x2fa)]){for(const [_0x7d2b8b,_0x4bcf8f]of Object['entries'](_0x503228[_0x4b7fa3(0x2fa)])){_0x2ac1d4[_0x4b7fa3(0x3ca)](_0x7d2b8b,_0x4bcf8f);}_0x503228[_0x4b7fa3(0x219)]&&_0x503228[_0x4b7fa3(0x219)]>0x0&&_0x2ac1d4[_0x4b7fa3(0x3ca)](SERVER_TIMEOUT_HEADER,String(Math['ceil'](_0x503228[_0x4b7fa3(0x219)]/0x3e8)));}return await this[_0x4b7fa3(0x2f3)][_0x4b7fa3(0x5e1)][_0x4b7fa3(0x4a7)](_0x2ac1d4,_0x48de90),_0x2ac1d4;}['getFileName'](_0x136ab6){const _0x20acda=a1_0x54af01;var _0x3eb4b4;let _0x1d34be='';return typeof _0x136ab6===_0x20acda(0x45a)&&(_0x1d34be=_0x136ab6[_0x20acda(0x473)](/[/\\]+$/,''),_0x1d34be=(_0x3eb4b4=_0x1d34be[_0x20acda(0x22a)](/[/\\]/)[_0x20acda(0x60a)]())!==null&&_0x3eb4b4!==void 0x0?_0x3eb4b4:''),_0x1d34be;}async[a1_0x54af01(0x1c6)](_0x40e9ea,_0x11dea5){const _0x2ffa04=a1_0x54af01;var _0x93ffec;const _0x374d07={};_0x11dea5!=null&&(_0x374d07[_0x2ffa04(0x2cd)]=_0x11dea5['mimeType'],_0x374d07['name']=_0x11dea5[_0x2ffa04(0x24b)],_0x374d07['displayName']=_0x11dea5[_0x2ffa04(0x37e)]);_0x374d07['name']&&!_0x374d07[_0x2ffa04(0x24b)][_0x2ffa04(0x55d)](_0x2ffa04(0x19d))&&(_0x374d07['name']=_0x2ffa04(0x19d)+_0x374d07[_0x2ffa04(0x24b)]);const _0x349686=this[_0x2ffa04(0x2f3)][_0x2ffa04(0x2bc)],_0x59277f=await _0x349686[_0x2ffa04(0x696)](_0x40e9ea);_0x374d07[_0x2ffa04(0x1b7)]=String(_0x59277f[_0x2ffa04(0x188)]);const _0x4f7f55=(_0x93ffec=_0x11dea5===null||_0x11dea5===void 0x0?void 0x0:_0x11dea5['mimeType'])!==null&&_0x93ffec!==void 0x0?_0x93ffec:_0x59277f['type'];if(_0x4f7f55===undefined||_0x4f7f55==='')throw new Error(_0x2ffa04(0x6bd));_0x374d07[_0x2ffa04(0x2cd)]=_0x4f7f55;const _0x1aeebb={'file':_0x374d07},_0x2f17cb=this['getFileName'](_0x40e9ea),_0x3a067b=formatMap(_0x2ffa04(0x57f),_0x1aeebb[_0x2ffa04(0x4e9)]),_0x19d31d=await this[_0x2ffa04(0x432)](_0x3a067b,_0x374d07[_0x2ffa04(0x1b7)],_0x374d07['mimeType'],_0x2f17cb,_0x1aeebb,_0x11dea5===null||_0x11dea5===void 0x0?void 0x0:_0x11dea5[_0x2ffa04(0x688)]);return _0x349686['upload'](_0x40e9ea,_0x19d31d,this);}async['uploadFileToFileSearchStore'](_0x1afb88,_0x4a088e,_0x3dd4e4){const _0x5699aa=a1_0x54af01;var _0x309220;const _0x2ce39e=this['clientOptions'][_0x5699aa(0x2bc)],_0x47c604=await _0x2ce39e[_0x5699aa(0x696)](_0x4a088e),_0x1d8e32=String(_0x47c604['size']),_0x49924a=(_0x309220=_0x3dd4e4===null||_0x3dd4e4===void 0x0?void 0x0:_0x3dd4e4[_0x5699aa(0x2cd)])!==null&&_0x309220!==void 0x0?_0x309220:_0x47c604[_0x5699aa(0x311)];if(_0x49924a===undefined||_0x49924a==='')throw new Error(_0x5699aa(0x6bd));const _0xf30e14=_0x5699aa(0x55c)+_0x1afb88+':uploadToFileSearchStore',_0x22358d=this[_0x5699aa(0x6bb)](_0x4a088e),_0x41f11a={};_0x3dd4e4!=null&&uploadToFileSearchStoreConfigToMldev(_0x3dd4e4,_0x41f11a);const _0x4911ec=await this[_0x5699aa(0x432)](_0xf30e14,_0x1d8e32,_0x49924a,_0x22358d,_0x41f11a,_0x3dd4e4===null||_0x3dd4e4===void 0x0?void 0x0:_0x3dd4e4[_0x5699aa(0x688)]);return _0x2ce39e[_0x5699aa(0x441)](_0x4a088e,_0x4911ec,this);}async[a1_0x54af01(0x48e)](_0x5e4c54){const _0x37749d=a1_0x54af01,_0x3c9ca2=this[_0x37749d(0x2f3)]['downloader'];await _0x3c9ca2['download'](_0x5e4c54,this);}async[a1_0x54af01(0x432)](_0x55eabd,_0x2a2385,_0x249ddd,_0x26671b,_0x12f980,_0x2cd912){const _0x55ec23=a1_0x54af01;var _0x142bab;let _0x4f506d={};_0x2cd912?_0x4f506d=_0x2cd912:_0x4f506d={'apiVersion':'','headers':Object[_0x55ec23(0x541)]({'Content-Type':_0x55ec23(0x270),'X-Goog-Upload-Protocol':_0x55ec23(0x6bf),'X-Goog-Upload-Command':_0x55ec23(0x3b9),'X-Goog-Upload-Header-Content-Length':''+_0x2a2385,'X-Goog-Upload-Header-Content-Type':''+_0x249ddd},_0x26671b?{'X-Goog-Upload-File-Name':_0x26671b}:{})};const _0x4e71dd=await this[_0x55ec23(0x44a)]({'path':_0x55eabd,'body':JSON[_0x55ec23(0x45e)](_0x12f980),'httpMethod':_0x55ec23(0x43a),'httpOptions':_0x4f506d});if(!_0x4e71dd||!(_0x4e71dd===null||_0x4e71dd===void 0x0?void 0x0:_0x4e71dd[_0x55ec23(0x2fa)]))throw new Error(_0x55ec23(0x5ec));const _0x4956d1=(_0x142bab=_0x4e71dd===null||_0x4e71dd===void 0x0?void 0x0:_0x4e71dd[_0x55ec23(0x2fa)])===null||_0x142bab===void 0x0?void 0x0:_0x142bab[_0x55ec23(0x1eb)];if(_0x4956d1===undefined)throw new Error(_0x55ec23(0x4d1));return _0x4956d1;}}async function throwErrorIfNotOK(_0x37a832){const _0x3dd06d=a1_0x54af01;var _0x3ebcd6;if(_0x37a832===undefined)throw new Error(_0x3dd06d(0x4a0));if(!_0x37a832['ok']){const _0x2346e7=_0x37a832[_0x3dd06d(0x3e9)];let _0x129c47;((_0x3ebcd6=_0x37a832['headers'][_0x3dd06d(0x5a2)](_0x3dd06d(0x5a7)))===null||_0x3ebcd6===void 0x0?void 0x0:_0x3ebcd6['includes'](_0x3dd06d(0x270)))?_0x129c47=await _0x37a832[_0x3dd06d(0x648)]():_0x129c47={'error':{'message':await _0x37a832['text'](),'code':_0x37a832[_0x3dd06d(0x3e9)],'status':_0x37a832[_0x3dd06d(0x4fb)]}};const _0x2d5a1e=JSON[_0x3dd06d(0x45e)](_0x129c47);if(_0x2346e7>=0x190&&_0x2346e7<0x258){const _0x11b9e4=new ApiError({'message':_0x2d5a1e,'status':_0x2346e7});throw _0x11b9e4;}throw new Error(_0x2d5a1e);}}function includeExtraBodyToRequestInit(_0x15df72,_0x3f0d8d){const _0x2cec5b=a1_0x54af01;if(!_0x3f0d8d||Object[_0x2cec5b(0x51c)](_0x3f0d8d)[_0x2cec5b(0x258)]===0x0)return;if(_0x15df72[_0x2cec5b(0x655)]instanceof Blob){console[_0x2cec5b(0x44c)](_0x2cec5b(0x3dd));return;}let _0x254f7d={};if(typeof _0x15df72[_0x2cec5b(0x655)]===_0x2cec5b(0x45a)&&_0x15df72[_0x2cec5b(0x655)][_0x2cec5b(0x258)]>0x0)try{const _0x47dc3b=JSON[_0x2cec5b(0x2fd)](_0x15df72[_0x2cec5b(0x655)]);if(typeof _0x47dc3b===_0x2cec5b(0x34b)&&_0x47dc3b!==null&&!Array[_0x2cec5b(0x1e2)](_0x47dc3b))_0x254f7d=_0x47dc3b;else{console['warn'](_0x2cec5b(0x1ce));return;}}catch(_0x2becb2){console[_0x2cec5b(0x44c)](_0x2cec5b(0x1be));return;}function _0x29cd32(_0x30a72a,_0x3f7c9c){const _0x4d54bc=_0x2cec5b,_0x233152=Object[_0x4d54bc(0x541)]({},_0x30a72a);for(const _0x58972b in _0x3f7c9c){if(Object[_0x4d54bc(0x19a)][_0x4d54bc(0x662)]['call'](_0x3f7c9c,_0x58972b)){const _0x41cd7f=_0x3f7c9c[_0x58972b],_0xc752a3=_0x233152[_0x58972b];_0x41cd7f&&typeof _0x41cd7f===_0x4d54bc(0x34b)&&!Array[_0x4d54bc(0x1e2)](_0x41cd7f)&&_0xc752a3&&typeof _0xc752a3===_0x4d54bc(0x34b)&&!Array[_0x4d54bc(0x1e2)](_0xc752a3)?_0x233152[_0x58972b]=_0x29cd32(_0xc752a3,_0x41cd7f):(_0xc752a3&&_0x41cd7f&&typeof _0xc752a3!==typeof _0x41cd7f&&console[_0x4d54bc(0x44c)](_0x4d54bc(0x276)+_0x58972b+_0x4d54bc(0x46a)+typeof _0xc752a3+',\x20New\x20type:\x20'+typeof _0x41cd7f+_0x4d54bc(0x17b)),_0x233152[_0x58972b]=_0x41cd7f);}}return _0x233152;}const _0x2c79b8=_0x29cd32(_0x254f7d,_0x3f0d8d);_0x15df72[_0x2cec5b(0x655)]=JSON[_0x2cec5b(0x45e)](_0x2c79b8);}/**
77
+ * @license
78
+ * Copyright 2025 Google LLC
79
+ * SPDX-License-Identifier: Apache-2.0
80
+ */
81
+ function crossError(){const _0x49ad6e=a1_0x54af01;return new Error(_0x49ad6e(0x21c));}/**
82
+ * @license
83
+ * Copyright 2025 Google LLC
84
+ * SPDX-License-Identifier: Apache-2.0
85
+ */
86
+ class CrossDownloader{async[a1_0x54af01(0x605)](_0x5d51bb,_0x1c751e){throw crossError();}}const MAX_CHUNK_SIZE=0x400*0x400*0x8,MAX_RETRY_COUNT=0x3,INITIAL_RETRY_DELAY_MS=0x3e8,DELAY_MULTIPLIER=0x2,X_GOOG_UPLOAD_STATUS_HEADER_FIELD='x-goog-upload-status';class CrossUploader{async['upload'](_0x163785,_0x46cd3a,_0x472ab7){const _0x371899=a1_0x54af01;if(typeof _0x163785===_0x371899(0x45a))throw crossError();else return uploadBlob(_0x163785,_0x46cd3a,_0x472ab7);}async['uploadToFileSearchStore'](_0x1e826d,_0x36131c,_0x211fc6){const _0x13e94b=a1_0x54af01;if(typeof _0x1e826d===_0x13e94b(0x45a))throw crossError();else return uploadBlobToFileSearchStore(_0x1e826d,_0x36131c,_0x211fc6);}async[a1_0x54af01(0x696)](_0x421775){const _0x3491a0=a1_0x54af01;if(typeof _0x421775===_0x3491a0(0x45a))throw crossError();else return getBlobStat(_0x421775);}}async function uploadBlob(_0x11ae62,_0x57e537,_0x3dac4b){const _0x54a186=a1_0x54af01;var _0x71b3be;const _0x10d4f7=await uploadBlobInternal(_0x11ae62,_0x57e537,_0x3dac4b),_0x2a96a5=await(_0x10d4f7===null||_0x10d4f7===void 0x0?void 0x0:_0x10d4f7[_0x54a186(0x648)]());if(((_0x71b3be=_0x10d4f7===null||_0x10d4f7===void 0x0?void 0x0:_0x10d4f7[_0x54a186(0x2fa)])===null||_0x71b3be===void 0x0?void 0x0:_0x71b3be[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x54a186(0x17c))throw new Error('Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.');return _0x2a96a5[_0x54a186(0x495)];}async function uploadBlobToFileSearchStore(_0xe2d8b5,_0x15b6c1,_0x31c149){const _0x1604c1=a1_0x54af01;var _0x4138b4;const _0x16c1c9=await uploadBlobInternal(_0xe2d8b5,_0x15b6c1,_0x31c149),_0x59ba26=await(_0x16c1c9===null||_0x16c1c9===void 0x0?void 0x0:_0x16c1c9[_0x1604c1(0x648)]());if(((_0x4138b4=_0x16c1c9===null||_0x16c1c9===void 0x0?void 0x0:_0x16c1c9[_0x1604c1(0x2fa)])===null||_0x4138b4===void 0x0?void 0x0:_0x4138b4[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x1604c1(0x17c))throw new Error(_0x1604c1(0x372));const _0x4b2974=uploadToFileSearchStoreOperationFromMldev(_0x59ba26),_0x5d1f34=new UploadToFileSearchStoreOperation();return Object[_0x1604c1(0x541)](_0x5d1f34,_0x4b2974),_0x5d1f34;}async function uploadBlobInternal(_0x2d0191,_0x42a2a2,_0x146b4b){const _0xfc09e1=a1_0x54af01;var _0x4a45b3,_0x17545a;let _0x2e894c=0x0,_0x509ccd=0x0,_0x57958b=new HttpResponse(new Response()),_0x582328='upload';_0x2e894c=_0x2d0191[_0xfc09e1(0x188)];while(_0x509ccd<_0x2e894c){const _0x297417=Math['min'](MAX_CHUNK_SIZE,_0x2e894c-_0x509ccd),_0x1db69d=_0x2d0191[_0xfc09e1(0x4a2)](_0x509ccd,_0x509ccd+_0x297417);_0x509ccd+_0x297417>=_0x2e894c&&(_0x582328+=_0xfc09e1(0x626));let _0x407508=0x0,_0xa43e20=INITIAL_RETRY_DELAY_MS;while(_0x407508<MAX_RETRY_COUNT){_0x57958b=await _0x146b4b[_0xfc09e1(0x44a)]({'path':'','body':_0x1db69d,'httpMethod':_0xfc09e1(0x43a),'httpOptions':{'apiVersion':'','baseUrl':_0x42a2a2,'headers':{'X-Goog-Upload-Command':_0x582328,'X-Goog-Upload-Offset':String(_0x509ccd),'Content-Length':String(_0x297417)}}});if((_0x4a45b3=_0x57958b===null||_0x57958b===void 0x0?void 0x0:_0x57958b[_0xfc09e1(0x2fa)])===null||_0x4a45b3===void 0x0?void 0x0:_0x4a45b3[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x407508++,await sleep$1(_0xa43e20),_0xa43e20=_0xa43e20*DELAY_MULTIPLIER;}_0x509ccd+=_0x297417;if(((_0x17545a=_0x57958b===null||_0x57958b===void 0x0?void 0x0:_0x57958b[_0xfc09e1(0x2fa)])===null||_0x17545a===void 0x0?void 0x0:_0x17545a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0xfc09e1(0x3c1))break;if(_0x2e894c<=_0x509ccd)throw new Error(_0xfc09e1(0x44d));}return _0x57958b;}async function getBlobStat(_0x10edf0){const _0x713f0b=a1_0x54af01,_0x4f9325={'size':_0x10edf0[_0x713f0b(0x188)],'type':_0x10edf0[_0x713f0b(0x311)]};return _0x4f9325;}function sleep$1(_0x349b80){return new Promise(_0x2596ff=>setTimeout(_0x2596ff,_0x349b80));}/**
87
+ * @license
88
+ * Copyright 2025 Google LLC
89
+ * SPDX-License-Identifier: Apache-2.0
90
+ */
91
+ class CrossWebSocketFactory{[a1_0x54af01(0x1af)](_0x599277,_0x416506,_0x5942b6){throw crossError();}}/**
92
+ * @license
93
+ * Copyright 2025 Google LLC
94
+ * SPDX-License-Identifier: Apache-2.0
95
+ */
96
+ function createFileParametersToMldev(_0x5be03c){const _0x37728c=a1_0x54af01,_0x422840={},_0x3d277b=getValueByPath(_0x5be03c,['file']);return _0x3d277b!=null&&setValueByPath(_0x422840,[_0x37728c(0x495)],_0x3d277b),_0x422840;}function createFileResponseFromMldev(_0x58b0ca){const _0x5b9da5=a1_0x54af01,_0x2b9f22={},_0x221ff0=getValueByPath(_0x58b0ca,['sdkHttpResponse']);return _0x221ff0!=null&&setValueByPath(_0x2b9f22,[_0x5b9da5(0x25b)],_0x221ff0),_0x2b9f22;}function deleteFileParametersToMldev(_0x224b6b){const _0x199760=a1_0x54af01,_0x178541={},_0x48e999=getValueByPath(_0x224b6b,[_0x199760(0x24b)]);return _0x48e999!=null&&setValueByPath(_0x178541,['_url','file'],tFileName(_0x48e999)),_0x178541;}function deleteFileResponseFromMldev(_0x585d9d){const _0x489914=a1_0x54af01,_0x5192e9={},_0x51d079=getValueByPath(_0x585d9d,['sdkHttpResponse']);return _0x51d079!=null&&setValueByPath(_0x5192e9,[_0x489914(0x25b)],_0x51d079),_0x5192e9;}function getFileParametersToMldev(_0x470e63){const _0x5c0ee4=a1_0x54af01,_0x1c1804={},_0x5a6b47=getValueByPath(_0x470e63,[_0x5c0ee4(0x24b)]);return _0x5a6b47!=null&&setValueByPath(_0x1c1804,['_url',_0x5c0ee4(0x495)],tFileName(_0x5a6b47)),_0x1c1804;}function internalRegisterFilesParametersToMldev(_0xc716b1){const _0xad9b2f=a1_0x54af01,_0xf38d2c={},_0x38d430=getValueByPath(_0xc716b1,[_0xad9b2f(0x368)]);return _0x38d430!=null&&setValueByPath(_0xf38d2c,['uris'],_0x38d430),_0xf38d2c;}function listFilesConfigToMldev(_0x4b8e4f,_0x337cad){const _0x3e340f=a1_0x54af01,_0x112347={},_0x47ff44=getValueByPath(_0x4b8e4f,[_0x3e340f(0x3a4)]);_0x337cad!==undefined&&_0x47ff44!=null&&setValueByPath(_0x337cad,[_0x3e340f(0x46e),_0x3e340f(0x3a4)],_0x47ff44);const _0x1eece1=getValueByPath(_0x4b8e4f,[_0x3e340f(0x5ac)]);return _0x337cad!==undefined&&_0x1eece1!=null&&setValueByPath(_0x337cad,[_0x3e340f(0x46e),_0x3e340f(0x5ac)],_0x1eece1),_0x112347;}function listFilesParametersToMldev(_0x31c7fe){const _0x1ba76e=a1_0x54af01,_0x41e942={},_0x55d336=getValueByPath(_0x31c7fe,[_0x1ba76e(0x1b0)]);return _0x55d336!=null&&listFilesConfigToMldev(_0x55d336,_0x41e942),_0x41e942;}function listFilesResponseFromMldev(_0x393bd9){const _0x974e2b=a1_0x54af01,_0x285194={},_0x4ccbd9=getValueByPath(_0x393bd9,[_0x974e2b(0x25b)]);_0x4ccbd9!=null&&setValueByPath(_0x285194,[_0x974e2b(0x25b)],_0x4ccbd9);const _0x16d2dc=getValueByPath(_0x393bd9,[_0x974e2b(0x408)]);_0x16d2dc!=null&&setValueByPath(_0x285194,[_0x974e2b(0x408)],_0x16d2dc);const _0x49e87f=getValueByPath(_0x393bd9,[_0x974e2b(0x58b)]);if(_0x49e87f!=null){let _0x1a9b9b=_0x49e87f;Array['isArray'](_0x1a9b9b)&&(_0x1a9b9b=_0x1a9b9b['map'](_0x49df8e=>{return _0x49df8e;})),setValueByPath(_0x285194,[_0x974e2b(0x58b)],_0x1a9b9b);}return _0x285194;}function registerFilesResponseFromMldev(_0x5c4381){const _0x1ab180=a1_0x54af01,_0x44e612={},_0x5dc45b=getValueByPath(_0x5c4381,[_0x1ab180(0x25b)]);_0x5dc45b!=null&&setValueByPath(_0x44e612,[_0x1ab180(0x25b)],_0x5dc45b);const _0x151b96=getValueByPath(_0x5c4381,[_0x1ab180(0x58b)]);if(_0x151b96!=null){let _0x3e8395=_0x151b96;Array[_0x1ab180(0x1e2)](_0x3e8395)&&(_0x3e8395=_0x3e8395[_0x1ab180(0x261)](_0xbaa75e=>{return _0xbaa75e;})),setValueByPath(_0x44e612,[_0x1ab180(0x58b)],_0x3e8395);}return _0x44e612;}/**
97
+ * @license
98
+ * Copyright 2025 Google LLC
99
+ * SPDX-License-Identifier: Apache-2.0
100
+ */
101
+ class Files extends BaseModule{constructor(_0x4498ae){const _0x609fca=a1_0x54af01;super(),this[_0x609fca(0x5bb)]=_0x4498ae,this[_0x609fca(0x338)]=async(_0x36cf6d={})=>{const _0x31b3d7=_0x609fca;return new Pager(PagedItem[_0x31b3d7(0x227)],_0x462fed=>this[_0x31b3d7(0x62c)](_0x462fed),await this[_0x31b3d7(0x62c)](_0x36cf6d),_0x36cf6d);};}async[a1_0x54af01(0x1ed)](_0x18a1c0){const _0x56e287=a1_0x54af01;if(this[_0x56e287(0x5bb)][_0x56e287(0x29b)]())throw new Error(_0x56e287(0x552));return this[_0x56e287(0x5bb)][_0x56e287(0x1c6)](_0x18a1c0[_0x56e287(0x495)],_0x18a1c0[_0x56e287(0x1b0)])[_0x56e287(0x28f)](_0x4d00ce=>{return _0x4d00ce;});}async['download'](_0x34187b){const _0x213da1=a1_0x54af01;await this[_0x213da1(0x5bb)][_0x213da1(0x48e)](_0x34187b);}async[a1_0x54af01(0x3b0)](_0x1d2715){const _0x260663=a1_0x54af01;throw new Error(_0x260663(0x4cb));}async[a1_0x54af01(0x2d3)](_0x4b5e4e){const _0x2509a1=a1_0x54af01;return this[_0x2509a1(0x3e6)](_0x4b5e4e);}async[a1_0x54af01(0x62c)](_0x3cd8a7){const _0x52f5b2=a1_0x54af01;var _0x59e497,_0x112a65;let _0x3133c2,_0x22e86a='',_0x525696={};if(this[_0x52f5b2(0x5bb)][_0x52f5b2(0x29b)]())throw new Error(_0x52f5b2(0x3b5));else{const _0x2e9ea7=listFilesParametersToMldev(_0x3cd8a7);return _0x22e86a=formatMap('files',_0x2e9ea7[_0x52f5b2(0x4e9)]),_0x525696=_0x2e9ea7[_0x52f5b2(0x46e)],delete _0x2e9ea7[_0x52f5b2(0x4e9)],delete _0x2e9ea7[_0x52f5b2(0x46e)],_0x3133c2=this['apiClient'][_0x52f5b2(0x44a)]({'path':_0x22e86a,'queryParams':_0x525696,'body':JSON[_0x52f5b2(0x45e)](_0x2e9ea7),'httpMethod':_0x52f5b2(0x1f7),'httpOptions':(_0x59e497=_0x3cd8a7[_0x52f5b2(0x1b0)])===null||_0x59e497===void 0x0?void 0x0:_0x59e497[_0x52f5b2(0x688)],'abortSignal':(_0x112a65=_0x3cd8a7[_0x52f5b2(0x1b0)])===null||_0x112a65===void 0x0?void 0x0:_0x112a65[_0x52f5b2(0x67c)]})[_0x52f5b2(0x28f)](_0x565cb1=>{const _0x39f205=_0x52f5b2;return _0x565cb1['json']()[_0x39f205(0x28f)](_0x20217d=>{const _0x5a9d3a=_0x39f205,_0x494050=_0x20217d;return _0x494050['sdkHttpResponse']={'headers':_0x565cb1[_0x5a9d3a(0x2fa)]},_0x494050;});}),_0x3133c2[_0x52f5b2(0x28f)](_0x19e4a9=>{const _0x2781fd=_0x52f5b2,_0x4d4609=listFilesResponseFromMldev(_0x19e4a9),_0xbdfc9=new ListFilesResponse();return Object[_0x2781fd(0x541)](_0xbdfc9,_0x4d4609),_0xbdfc9;});}}async[a1_0x54af01(0x556)](_0x2230d5){const _0x4f45b7=a1_0x54af01;var _0x4381d4,_0x54da6a;let _0x10cf63,_0xead3c6='',_0x57217e={};if(this[_0x4f45b7(0x5bb)][_0x4f45b7(0x29b)]())throw new Error(_0x4f45b7(0x3b5));else{const _0x45470a=createFileParametersToMldev(_0x2230d5);return _0xead3c6=formatMap(_0x4f45b7(0x57f),_0x45470a[_0x4f45b7(0x4e9)]),_0x57217e=_0x45470a[_0x4f45b7(0x46e)],delete _0x45470a[_0x4f45b7(0x4e9)],delete _0x45470a[_0x4f45b7(0x46e)],_0x10cf63=this[_0x4f45b7(0x5bb)]['request']({'path':_0xead3c6,'queryParams':_0x57217e,'body':JSON[_0x4f45b7(0x45e)](_0x45470a),'httpMethod':_0x4f45b7(0x43a),'httpOptions':(_0x4381d4=_0x2230d5[_0x4f45b7(0x1b0)])===null||_0x4381d4===void 0x0?void 0x0:_0x4381d4[_0x4f45b7(0x688)],'abortSignal':(_0x54da6a=_0x2230d5['config'])===null||_0x54da6a===void 0x0?void 0x0:_0x54da6a[_0x4f45b7(0x67c)]})[_0x4f45b7(0x28f)](_0x537d8c=>{const _0x20bca8=_0x4f45b7;return _0x537d8c[_0x20bca8(0x648)]();}),_0x10cf63[_0x4f45b7(0x28f)](_0xfeed2d=>{const _0x1722d8=createFileResponseFromMldev(_0xfeed2d),_0x23f09f=new CreateFileResponse();return Object['assign'](_0x23f09f,_0x1722d8),_0x23f09f;});}}async[a1_0x54af01(0x5a2)](_0x4b8756){const _0x253d90=a1_0x54af01;var _0x45b34f,_0x55711a;let _0x27e546,_0x525c3e='',_0x3a4d27={};if(this[_0x253d90(0x5bb)][_0x253d90(0x29b)]())throw new Error(_0x253d90(0x3b5));else{const _0x5e65ee=getFileParametersToMldev(_0x4b8756);return _0x525c3e=formatMap(_0x253d90(0x489),_0x5e65ee[_0x253d90(0x4e9)]),_0x3a4d27=_0x5e65ee[_0x253d90(0x46e)],delete _0x5e65ee['_url'],delete _0x5e65ee[_0x253d90(0x46e)],_0x27e546=this[_0x253d90(0x5bb)][_0x253d90(0x44a)]({'path':_0x525c3e,'queryParams':_0x3a4d27,'body':JSON['stringify'](_0x5e65ee),'httpMethod':_0x253d90(0x1f7),'httpOptions':(_0x45b34f=_0x4b8756[_0x253d90(0x1b0)])===null||_0x45b34f===void 0x0?void 0x0:_0x45b34f[_0x253d90(0x688)],'abortSignal':(_0x55711a=_0x4b8756[_0x253d90(0x1b0)])===null||_0x55711a===void 0x0?void 0x0:_0x55711a['abortSignal']})[_0x253d90(0x28f)](_0xe775fe=>{const _0x61613=_0x253d90;return _0xe775fe[_0x61613(0x648)]();}),_0x27e546[_0x253d90(0x28f)](_0x3ce7ec=>{return _0x3ce7ec;});}}async[a1_0x54af01(0x2a5)](_0x2a3aeb){const _0x5bed21=a1_0x54af01;var _0x479781,_0x5c7c31;let _0x329c4c,_0x3dba8a='',_0x4c938f={};if(this[_0x5bed21(0x5bb)][_0x5bed21(0x29b)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x2a92a1=deleteFileParametersToMldev(_0x2a3aeb);return _0x3dba8a=formatMap('files/{file}',_0x2a92a1[_0x5bed21(0x4e9)]),_0x4c938f=_0x2a92a1[_0x5bed21(0x46e)],delete _0x2a92a1['_url'],delete _0x2a92a1[_0x5bed21(0x46e)],_0x329c4c=this[_0x5bed21(0x5bb)][_0x5bed21(0x44a)]({'path':_0x3dba8a,'queryParams':_0x4c938f,'body':JSON[_0x5bed21(0x45e)](_0x2a92a1),'httpMethod':_0x5bed21(0x5da),'httpOptions':(_0x479781=_0x2a3aeb[_0x5bed21(0x1b0)])===null||_0x479781===void 0x0?void 0x0:_0x479781[_0x5bed21(0x688)],'abortSignal':(_0x5c7c31=_0x2a3aeb[_0x5bed21(0x1b0)])===null||_0x5c7c31===void 0x0?void 0x0:_0x5c7c31[_0x5bed21(0x67c)]})['then'](_0x514e47=>{const _0x56d424=_0x5bed21;return _0x514e47[_0x56d424(0x648)]()['then'](_0x243b07=>{const _0xc1e290=_0x56d424,_0x4122db=_0x243b07;return _0x4122db[_0xc1e290(0x25b)]={'headers':_0x514e47[_0xc1e290(0x2fa)]},_0x4122db;});}),_0x329c4c[_0x5bed21(0x28f)](_0x3ac725=>{const _0x105597=_0x5bed21,_0x1552a9=deleteFileResponseFromMldev(_0x3ac725),_0x26359f=new DeleteFileResponse();return Object[_0x105597(0x541)](_0x26359f,_0x1552a9),_0x26359f;});}}async[a1_0x54af01(0x3e6)](_0xe3f695){const _0x575b3b=a1_0x54af01;var _0x255b09,_0x5ced15;let _0x234498,_0x4ccb40='',_0x1362df={};if(this[_0x575b3b(0x5bb)][_0x575b3b(0x29b)]())throw new Error(_0x575b3b(0x3b5));else{const _0x18af7a=internalRegisterFilesParametersToMldev(_0xe3f695);return _0x4ccb40=formatMap('files:register',_0x18af7a['_url']),_0x1362df=_0x18af7a[_0x575b3b(0x46e)],delete _0x18af7a[_0x575b3b(0x4e9)],delete _0x18af7a['_query'],_0x234498=this[_0x575b3b(0x5bb)][_0x575b3b(0x44a)]({'path':_0x4ccb40,'queryParams':_0x1362df,'body':JSON[_0x575b3b(0x45e)](_0x18af7a),'httpMethod':_0x575b3b(0x43a),'httpOptions':(_0x255b09=_0xe3f695[_0x575b3b(0x1b0)])===null||_0x255b09===void 0x0?void 0x0:_0x255b09['httpOptions'],'abortSignal':(_0x5ced15=_0xe3f695[_0x575b3b(0x1b0)])===null||_0x5ced15===void 0x0?void 0x0:_0x5ced15[_0x575b3b(0x67c)]})[_0x575b3b(0x28f)](_0xf4ed2b=>{const _0x4e0149=_0x575b3b;return _0xf4ed2b[_0x4e0149(0x648)]();}),_0x234498['then'](_0x51054e=>{const _0xf571a3=_0x575b3b,_0x2e17aa=registerFilesResponseFromMldev(_0x51054e),_0x3635d4=new RegisterFilesResponse();return Object[_0xf571a3(0x541)](_0x3635d4,_0x2e17aa),_0x3635d4;});}}}/**
102
+ * @license
103
+ * Copyright 2025 Google LLC
104
+ * SPDX-License-Identifier: Apache-2.0
105
+ */
106
+ function deleteDocumentConfigToMldev(_0xfe7709,_0x118df0){const _0x7b88a3=a1_0x54af01,_0x33f979={},_0x1439a2=getValueByPath(_0xfe7709,[_0x7b88a3(0x348)]);return _0x118df0!==undefined&&_0x1439a2!=null&&setValueByPath(_0x118df0,[_0x7b88a3(0x46e),_0x7b88a3(0x348)],_0x1439a2),_0x33f979;}function deleteDocumentParametersToMldev(_0x4e94c2){const _0x1f6e08=a1_0x54af01,_0x424709={},_0x38534d=getValueByPath(_0x4e94c2,['name']);_0x38534d!=null&&setValueByPath(_0x424709,[_0x1f6e08(0x4e9),_0x1f6e08(0x24b)],_0x38534d);const _0x43b160=getValueByPath(_0x4e94c2,[_0x1f6e08(0x1b0)]);return _0x43b160!=null&&deleteDocumentConfigToMldev(_0x43b160,_0x424709),_0x424709;}function getDocumentParametersToMldev(_0x17f7d7){const _0x246ab0=a1_0x54af01,_0x572a28={},_0x9c18d5=getValueByPath(_0x17f7d7,['name']);return _0x9c18d5!=null&&setValueByPath(_0x572a28,[_0x246ab0(0x4e9),_0x246ab0(0x24b)],_0x9c18d5),_0x572a28;}function listDocumentsConfigToMldev(_0x90acb8,_0x34f175){const _0x957b09=a1_0x54af01,_0x35f5e9={},_0x904e4e=getValueByPath(_0x90acb8,['pageSize']);_0x34f175!==undefined&&_0x904e4e!=null&&setValueByPath(_0x34f175,[_0x957b09(0x46e),_0x957b09(0x3a4)],_0x904e4e);const _0x1fbbe5=getValueByPath(_0x90acb8,[_0x957b09(0x5ac)]);return _0x34f175!==undefined&&_0x1fbbe5!=null&&setValueByPath(_0x34f175,['_query',_0x957b09(0x5ac)],_0x1fbbe5),_0x35f5e9;}function listDocumentsParametersToMldev(_0x39a301){const _0xf47a6d=a1_0x54af01,_0x357c28={},_0x5149b2=getValueByPath(_0x39a301,[_0xf47a6d(0x629)]);_0x5149b2!=null&&setValueByPath(_0x357c28,[_0xf47a6d(0x4e9),_0xf47a6d(0x629)],_0x5149b2);const _0x799ab6=getValueByPath(_0x39a301,[_0xf47a6d(0x1b0)]);return _0x799ab6!=null&&listDocumentsConfigToMldev(_0x799ab6,_0x357c28),_0x357c28;}function listDocumentsResponseFromMldev(_0x374b6d){const _0x2f8fc4=a1_0x54af01,_0x3bb1d4={},_0xbb7bcf=getValueByPath(_0x374b6d,['sdkHttpResponse']);_0xbb7bcf!=null&&setValueByPath(_0x3bb1d4,[_0x2f8fc4(0x25b)],_0xbb7bcf);const _0x4b6658=getValueByPath(_0x374b6d,[_0x2f8fc4(0x408)]);_0x4b6658!=null&&setValueByPath(_0x3bb1d4,[_0x2f8fc4(0x408)],_0x4b6658);const _0x185381=getValueByPath(_0x374b6d,[_0x2f8fc4(0x2a8)]);if(_0x185381!=null){let _0x2ff0f6=_0x185381;Array[_0x2f8fc4(0x1e2)](_0x2ff0f6)&&(_0x2ff0f6=_0x2ff0f6['map'](_0x78fb4b=>{return _0x78fb4b;})),setValueByPath(_0x3bb1d4,[_0x2f8fc4(0x2a8)],_0x2ff0f6);}return _0x3bb1d4;}/**
107
+ * @license
108
+ * Copyright 2025 Google LLC
109
+ * SPDX-License-Identifier: Apache-2.0
110
+ */
111
+ class Documents extends BaseModule{constructor(_0x46c27e){const _0x335ee8=a1_0x54af01;super(),this['apiClient']=_0x46c27e,this[_0x335ee8(0x338)]=async _0xef3743=>{const _0x21b0f8=_0x335ee8;return new Pager(PagedItem[_0x21b0f8(0x557)],_0x315d15=>this[_0x21b0f8(0x62c)]({'parent':_0xef3743[_0x21b0f8(0x629)],'config':_0x315d15[_0x21b0f8(0x1b0)]}),await this[_0x21b0f8(0x62c)](_0xef3743),_0xef3743);};}async[a1_0x54af01(0x5a2)](_0xb68ef8){const _0x58fe59=a1_0x54af01;var _0x570639,_0x3eb159;let _0x4f2d74,_0x56ec04='',_0x42fb53={};if(this['apiClient'][_0x58fe59(0x29b)]())throw new Error(_0x58fe59(0x3b5));else{const _0x5ddc54=getDocumentParametersToMldev(_0xb68ef8);return _0x56ec04=formatMap(_0x58fe59(0x1c9),_0x5ddc54['_url']),_0x42fb53=_0x5ddc54[_0x58fe59(0x46e)],delete _0x5ddc54[_0x58fe59(0x4e9)],delete _0x5ddc54['_query'],_0x4f2d74=this[_0x58fe59(0x5bb)]['request']({'path':_0x56ec04,'queryParams':_0x42fb53,'body':JSON[_0x58fe59(0x45e)](_0x5ddc54),'httpMethod':'GET','httpOptions':(_0x570639=_0xb68ef8['config'])===null||_0x570639===void 0x0?void 0x0:_0x570639[_0x58fe59(0x688)],'abortSignal':(_0x3eb159=_0xb68ef8['config'])===null||_0x3eb159===void 0x0?void 0x0:_0x3eb159['abortSignal']})[_0x58fe59(0x28f)](_0x234d71=>{return _0x234d71['json']();}),_0x4f2d74['then'](_0x1ec8c3=>{return _0x1ec8c3;});}}async[a1_0x54af01(0x2a5)](_0x553bfc){const _0x4c7e1c=a1_0x54af01;var _0x526eb3,_0x582d2d;let _0x3dc341='',_0x340421={};if(this[_0x4c7e1c(0x5bb)][_0x4c7e1c(0x29b)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0xd92410=deleteDocumentParametersToMldev(_0x553bfc);_0x3dc341=formatMap('{name}',_0xd92410[_0x4c7e1c(0x4e9)]),_0x340421=_0xd92410[_0x4c7e1c(0x46e)],delete _0xd92410[_0x4c7e1c(0x4e9)],delete _0xd92410['_query'],await this[_0x4c7e1c(0x5bb)]['request']({'path':_0x3dc341,'queryParams':_0x340421,'body':JSON[_0x4c7e1c(0x45e)](_0xd92410),'httpMethod':_0x4c7e1c(0x5da),'httpOptions':(_0x526eb3=_0x553bfc['config'])===null||_0x526eb3===void 0x0?void 0x0:_0x526eb3['httpOptions'],'abortSignal':(_0x582d2d=_0x553bfc[_0x4c7e1c(0x1b0)])===null||_0x582d2d===void 0x0?void 0x0:_0x582d2d[_0x4c7e1c(0x67c)]});}}async[a1_0x54af01(0x62c)](_0x51ae68){const _0x2c78c6=a1_0x54af01;var _0x4b1e42,_0x40d72d;let _0x117f64,_0x485125='',_0x13d7c5={};if(this[_0x2c78c6(0x5bb)][_0x2c78c6(0x29b)]())throw new Error(_0x2c78c6(0x3b5));else{const _0x5aad8a=listDocumentsParametersToMldev(_0x51ae68);return _0x485125=formatMap(_0x2c78c6(0x2d0),_0x5aad8a[_0x2c78c6(0x4e9)]),_0x13d7c5=_0x5aad8a[_0x2c78c6(0x46e)],delete _0x5aad8a[_0x2c78c6(0x4e9)],delete _0x5aad8a[_0x2c78c6(0x46e)],_0x117f64=this['apiClient'][_0x2c78c6(0x44a)]({'path':_0x485125,'queryParams':_0x13d7c5,'body':JSON['stringify'](_0x5aad8a),'httpMethod':_0x2c78c6(0x1f7),'httpOptions':(_0x4b1e42=_0x51ae68[_0x2c78c6(0x1b0)])===null||_0x4b1e42===void 0x0?void 0x0:_0x4b1e42['httpOptions'],'abortSignal':(_0x40d72d=_0x51ae68[_0x2c78c6(0x1b0)])===null||_0x40d72d===void 0x0?void 0x0:_0x40d72d[_0x2c78c6(0x67c)]})[_0x2c78c6(0x28f)](_0x5c3c69=>{const _0x4d0a16=_0x2c78c6;return _0x5c3c69[_0x4d0a16(0x648)]();}),_0x117f64[_0x2c78c6(0x28f)](_0x34a5a5=>{const _0x232f05=_0x2c78c6,_0x9f98bf=listDocumentsResponseFromMldev(_0x34a5a5),_0x2a2d38=new ListDocumentsResponse();return Object[_0x232f05(0x541)](_0x2a2d38,_0x9f98bf),_0x2a2d38;});}}}/**
112
+ * @license
113
+ * Copyright 2025 Google LLC
114
+ * SPDX-License-Identifier: Apache-2.0
115
+ */
116
+ class FileSearchStores extends BaseModule{constructor(_0x3d8f06,_0x253a6e=new Documents(_0x3d8f06)){const _0x287961=a1_0x54af01;super(),this[_0x287961(0x5bb)]=_0x3d8f06,this['documents']=_0x253a6e,this[_0x287961(0x338)]=async(_0x4a60e2={})=>{const _0x50d9bc=_0x287961;return new Pager(PagedItem[_0x50d9bc(0x271)],_0x50db4a=>this[_0x50d9bc(0x62c)](_0x50db4a),await this[_0x50d9bc(0x62c)](_0x4a60e2),_0x4a60e2);};}async['uploadToFileSearchStore'](_0x11403d){const _0xcc030=a1_0x54af01;if(this['apiClient']['isVertexAI']())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files\x20to\x20a\x20file\x20search\x20store.');return this[_0xcc030(0x5bb)]['uploadFileToFileSearchStore'](_0x11403d['fileSearchStoreName'],_0x11403d[_0xcc030(0x495)],_0x11403d['config']);}async[a1_0x54af01(0x1af)](_0x118f7d){const _0x487167=a1_0x54af01;var _0x60aa91,_0x41b367;let _0x4195da,_0x4c114d='',_0x1207d9={};if(this[_0x487167(0x5bb)][_0x487167(0x29b)]())throw new Error(_0x487167(0x3b5));else{const _0x3719d3=createFileSearchStoreParametersToMldev(_0x118f7d);return _0x4c114d=formatMap('fileSearchStores',_0x3719d3[_0x487167(0x4e9)]),_0x1207d9=_0x3719d3[_0x487167(0x46e)],delete _0x3719d3[_0x487167(0x4e9)],delete _0x3719d3['_query'],_0x4195da=this[_0x487167(0x5bb)]['request']({'path':_0x4c114d,'queryParams':_0x1207d9,'body':JSON[_0x487167(0x45e)](_0x3719d3),'httpMethod':_0x487167(0x43a),'httpOptions':(_0x60aa91=_0x118f7d[_0x487167(0x1b0)])===null||_0x60aa91===void 0x0?void 0x0:_0x60aa91[_0x487167(0x688)],'abortSignal':(_0x41b367=_0x118f7d[_0x487167(0x1b0)])===null||_0x41b367===void 0x0?void 0x0:_0x41b367[_0x487167(0x67c)]})[_0x487167(0x28f)](_0x49d63c=>{const _0x1f1ee3=_0x487167;return _0x49d63c[_0x1f1ee3(0x648)]();}),_0x4195da[_0x487167(0x28f)](_0x58c5cb=>{return _0x58c5cb;});}}async[a1_0x54af01(0x5a2)](_0x3be4f8){const _0x272a2f=a1_0x54af01;var _0x24e341,_0x182c66;let _0x199131,_0x4cdcb8='',_0x2e53e9={};if(this[_0x272a2f(0x5bb)]['isVertexAI']())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x4636cd=getFileSearchStoreParametersToMldev(_0x3be4f8);return _0x4cdcb8=formatMap('{name}',_0x4636cd['_url']),_0x2e53e9=_0x4636cd[_0x272a2f(0x46e)],delete _0x4636cd['_url'],delete _0x4636cd[_0x272a2f(0x46e)],_0x199131=this[_0x272a2f(0x5bb)][_0x272a2f(0x44a)]({'path':_0x4cdcb8,'queryParams':_0x2e53e9,'body':JSON[_0x272a2f(0x45e)](_0x4636cd),'httpMethod':_0x272a2f(0x1f7),'httpOptions':(_0x24e341=_0x3be4f8[_0x272a2f(0x1b0)])===null||_0x24e341===void 0x0?void 0x0:_0x24e341['httpOptions'],'abortSignal':(_0x182c66=_0x3be4f8[_0x272a2f(0x1b0)])===null||_0x182c66===void 0x0?void 0x0:_0x182c66[_0x272a2f(0x67c)]})[_0x272a2f(0x28f)](_0x5c3320=>{const _0x3e09fe=_0x272a2f;return _0x5c3320[_0x3e09fe(0x648)]();}),_0x199131[_0x272a2f(0x28f)](_0x37aa07=>{return _0x37aa07;});}}async['delete'](_0x2b5a50){const _0xe66a4e=a1_0x54af01;var _0x35594e,_0x25529d;let _0x4a2162='',_0x4de116={};if(this[_0xe66a4e(0x5bb)][_0xe66a4e(0x29b)]())throw new Error(_0xe66a4e(0x3b5));else{const _0x3cc6d1=deleteFileSearchStoreParametersToMldev(_0x2b5a50);_0x4a2162=formatMap(_0xe66a4e(0x1c9),_0x3cc6d1[_0xe66a4e(0x4e9)]),_0x4de116=_0x3cc6d1[_0xe66a4e(0x46e)],delete _0x3cc6d1[_0xe66a4e(0x4e9)],delete _0x3cc6d1[_0xe66a4e(0x46e)],await this[_0xe66a4e(0x5bb)][_0xe66a4e(0x44a)]({'path':_0x4a2162,'queryParams':_0x4de116,'body':JSON[_0xe66a4e(0x45e)](_0x3cc6d1),'httpMethod':_0xe66a4e(0x5da),'httpOptions':(_0x35594e=_0x2b5a50[_0xe66a4e(0x1b0)])===null||_0x35594e===void 0x0?void 0x0:_0x35594e[_0xe66a4e(0x688)],'abortSignal':(_0x25529d=_0x2b5a50[_0xe66a4e(0x1b0)])===null||_0x25529d===void 0x0?void 0x0:_0x25529d[_0xe66a4e(0x67c)]});}}async[a1_0x54af01(0x62c)](_0x350f73){const _0x4340f7=a1_0x54af01;var _0x231b46,_0x53c8fb;let _0x28e9e8,_0x19fb24='',_0x401d36={};if(this[_0x4340f7(0x5bb)]['isVertexAI']())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x5ec9b8=listFileSearchStoresParametersToMldev(_0x350f73);return _0x19fb24=formatMap(_0x4340f7(0x584),_0x5ec9b8[_0x4340f7(0x4e9)]),_0x401d36=_0x5ec9b8[_0x4340f7(0x46e)],delete _0x5ec9b8[_0x4340f7(0x4e9)],delete _0x5ec9b8[_0x4340f7(0x46e)],_0x28e9e8=this[_0x4340f7(0x5bb)][_0x4340f7(0x44a)]({'path':_0x19fb24,'queryParams':_0x401d36,'body':JSON[_0x4340f7(0x45e)](_0x5ec9b8),'httpMethod':'GET','httpOptions':(_0x231b46=_0x350f73[_0x4340f7(0x1b0)])===null||_0x231b46===void 0x0?void 0x0:_0x231b46[_0x4340f7(0x688)],'abortSignal':(_0x53c8fb=_0x350f73[_0x4340f7(0x1b0)])===null||_0x53c8fb===void 0x0?void 0x0:_0x53c8fb[_0x4340f7(0x67c)]})[_0x4340f7(0x28f)](_0x132d58=>{const _0x205505=_0x4340f7;return _0x132d58[_0x205505(0x648)]();}),_0x28e9e8[_0x4340f7(0x28f)](_0x4f60f8=>{const _0x4c5ead=_0x4340f7,_0x4f99ed=listFileSearchStoresResponseFromMldev(_0x4f60f8),_0x521e56=new ListFileSearchStoresResponse();return Object[_0x4c5ead(0x541)](_0x521e56,_0x4f99ed),_0x521e56;});}}async[a1_0x54af01(0x525)](_0x43583e){const _0xbd4f1d=a1_0x54af01;var _0x1eccc1,_0x3c990c;let _0x18a82f,_0x3fc339='',_0x511901={};if(this[_0xbd4f1d(0x5bb)][_0xbd4f1d(0x29b)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x118065=uploadToFileSearchStoreParametersToMldev(_0x43583e);return _0x3fc339=formatMap(_0xbd4f1d(0x253),_0x118065[_0xbd4f1d(0x4e9)]),_0x511901=_0x118065[_0xbd4f1d(0x46e)],delete _0x118065['_url'],delete _0x118065[_0xbd4f1d(0x46e)],_0x18a82f=this[_0xbd4f1d(0x5bb)][_0xbd4f1d(0x44a)]({'path':_0x3fc339,'queryParams':_0x511901,'body':JSON[_0xbd4f1d(0x45e)](_0x118065),'httpMethod':_0xbd4f1d(0x43a),'httpOptions':(_0x1eccc1=_0x43583e['config'])===null||_0x1eccc1===void 0x0?void 0x0:_0x1eccc1[_0xbd4f1d(0x688)],'abortSignal':(_0x3c990c=_0x43583e['config'])===null||_0x3c990c===void 0x0?void 0x0:_0x3c990c['abortSignal']})[_0xbd4f1d(0x28f)](_0x2b6b14=>{const _0x12bfad=_0xbd4f1d;return _0x2b6b14[_0x12bfad(0x648)]();}),_0x18a82f[_0xbd4f1d(0x28f)](_0x3dca00=>{const _0x1f8bbb=uploadToFileSearchStoreResumableResponseFromMldev(_0x3dca00),_0x113932=new UploadToFileSearchStoreResumableResponse();return Object['assign'](_0x113932,_0x1f8bbb),_0x113932;});}}async[a1_0x54af01(0x2fb)](_0x2b3899){const _0x20cf47=a1_0x54af01;var _0x34c514,_0x3f0c72;let _0x17d64a,_0xdd5cf2='',_0x5befda={};if(this[_0x20cf47(0x5bb)][_0x20cf47(0x29b)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x517de5=importFileParametersToMldev(_0x2b3899);return _0xdd5cf2=formatMap(_0x20cf47(0x37a),_0x517de5[_0x20cf47(0x4e9)]),_0x5befda=_0x517de5['_query'],delete _0x517de5[_0x20cf47(0x4e9)],delete _0x517de5['_query'],_0x17d64a=this['apiClient'][_0x20cf47(0x44a)]({'path':_0xdd5cf2,'queryParams':_0x5befda,'body':JSON[_0x20cf47(0x45e)](_0x517de5),'httpMethod':'POST','httpOptions':(_0x34c514=_0x2b3899['config'])===null||_0x34c514===void 0x0?void 0x0:_0x34c514['httpOptions'],'abortSignal':(_0x3f0c72=_0x2b3899[_0x20cf47(0x1b0)])===null||_0x3f0c72===void 0x0?void 0x0:_0x3f0c72[_0x20cf47(0x67c)]})['then'](_0x497bf2=>{const _0x7dcad=_0x20cf47;return _0x497bf2[_0x7dcad(0x648)]();}),_0x17d64a[_0x20cf47(0x28f)](_0x355235=>{const _0x47f020=_0x20cf47,_0x3b811b=importFileOperationFromMldev(_0x355235),_0x590a1b=new ImportFileOperation();return Object[_0x47f020(0x541)](_0x590a1b,_0x3b811b),_0x590a1b;});}}}/**
117
+ * @license
118
+ * Copyright 2025 Google LLC
119
+ * SPDX-License-Identifier: Apache-2.0
120
+ */
121
+ let uuid4Internal=function(){const _0x55c107=a1_0x54af01,{crypto:_0x2101c0}=globalThis;if(_0x2101c0===null||_0x2101c0===void 0x0?void 0x0:_0x2101c0[_0x55c107(0x600)])return uuid4Internal=_0x2101c0[_0x55c107(0x600)][_0x55c107(0x241)](_0x2101c0),_0x2101c0[_0x55c107(0x600)]();const _0x262eb9=new Uint8Array(0x1),_0x566fa8=_0x2101c0?()=>_0x2101c0[_0x55c107(0x442)](_0x262eb9)[0x0]:()=>Math[_0x55c107(0x65b)]()*0xff&0xff;return _0x55c107(0x68a)[_0x55c107(0x473)](/[018]/g,_0x8e5430=>(+_0x8e5430^_0x566fa8()&0xf>>+_0x8e5430/0x4)[_0x55c107(0x674)](0x10));};const uuid4=()=>uuid4Internal();/**
122
+ * @license
123
+ * Copyright 2025 Google LLC
124
+ * SPDX-License-Identifier: Apache-2.0
125
+ */
126
+ function isAbortError(_0x5c0632){const _0x36d894=a1_0x54af01;return typeof _0x5c0632===_0x36d894(0x34b)&&_0x5c0632!==null&&('name'in _0x5c0632&&_0x5c0632[_0x36d894(0x24b)]===_0x36d894(0x34e)||_0x36d894(0x3fc)in _0x5c0632&&String(_0x5c0632[_0x36d894(0x3fc)])[_0x36d894(0x563)]('FetchRequestCanceledException'));}const castToError=_0x53e723=>{const _0x284a26=a1_0x54af01;if(_0x53e723 instanceof Error)return _0x53e723;if(typeof _0x53e723===_0x284a26(0x34b)&&_0x53e723!==null){try{if(Object[_0x284a26(0x19a)][_0x284a26(0x674)][_0x284a26(0x182)](_0x53e723)===_0x284a26(0x633)){const _0x334938=new Error(_0x53e723[_0x284a26(0x3fc)],_0x53e723[_0x284a26(0x4d8)]?{'cause':_0x53e723['cause']}:{});if(_0x53e723[_0x284a26(0x27f)])_0x334938[_0x284a26(0x27f)]=_0x53e723['stack'];if(_0x53e723[_0x284a26(0x4d8)]&&!_0x334938['cause'])_0x334938[_0x284a26(0x4d8)]=_0x53e723[_0x284a26(0x4d8)];if(_0x53e723['name'])_0x334938[_0x284a26(0x24b)]=_0x53e723[_0x284a26(0x24b)];return _0x334938;}}catch(_0x2c4475){}try{return new Error(JSON[_0x284a26(0x45e)](_0x53e723));}catch(_0xac24fe){}}return new Error(_0x53e723);};/**
127
+ * @license
128
+ * Copyright 2025 Google LLC
129
+ * SPDX-License-Identifier: Apache-2.0
130
+ */
131
+ class GeminiNextGenAPIClientError extends Error{}class APIError extends GeminiNextGenAPIClientError{constructor(_0x39d6c5,_0x1ee54f,_0x381c5e,_0x2fe3b7){const _0x16dcb2=a1_0x54af01;super(''+APIError[_0x16dcb2(0x414)](_0x39d6c5,_0x1ee54f,_0x381c5e)),this['status']=_0x39d6c5,this[_0x16dcb2(0x2fa)]=_0x2fe3b7,this[_0x16dcb2(0x3d6)]=_0x1ee54f;}static['makeMessage'](_0x85b7ba,_0x2c95ff,_0x4978b4){const _0x2c0375=a1_0x54af01,_0x41172d=(_0x2c95ff===null||_0x2c95ff===void 0x0?void 0x0:_0x2c95ff['message'])?typeof _0x2c95ff[_0x2c0375(0x3fc)]===_0x2c0375(0x45a)?_0x2c95ff[_0x2c0375(0x3fc)]:JSON[_0x2c0375(0x45e)](_0x2c95ff[_0x2c0375(0x3fc)]):_0x2c95ff?JSON['stringify'](_0x2c95ff):_0x4978b4;if(_0x85b7ba&&_0x41172d)return _0x85b7ba+'\x20'+_0x41172d;if(_0x85b7ba)return _0x85b7ba+_0x2c0375(0x504);if(_0x41172d)return _0x41172d;return _0x2c0375(0x522);}static[a1_0x54af01(0x3b7)](_0x53cccd,_0x49a6bb,_0x24e399,_0x117552){if(!_0x53cccd||!_0x117552)return new APIConnectionError({'message':_0x24e399,'cause':castToError(_0x49a6bb)});const _0xce8afc=_0x49a6bb;if(_0x53cccd===0x190)return new BadRequestError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd===0x191)return new AuthenticationError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd===0x193)return new PermissionDeniedError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd===0x194)return new NotFoundError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd===0x199)return new ConflictError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd===0x1a6)return new UnprocessableEntityError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd===0x1ad)return new RateLimitError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);if(_0x53cccd>=0x1f4)return new InternalServerError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);return new APIError(_0x53cccd,_0xce8afc,_0x24e399,_0x117552);}}class APIUserAbortError extends APIError{constructor({message:_0x1638b9}={}){const _0x1b78b9=a1_0x54af01;super(undefined,undefined,_0x1638b9||_0x1b78b9(0x35e),undefined);}}class APIConnectionError extends APIError{constructor({message:_0x2be84c,cause:_0x3b297a}){super(undefined,undefined,_0x2be84c||'Connection\x20error.',undefined);if(_0x3b297a)this['cause']=_0x3b297a;}}class APIConnectionTimeoutError extends APIConnectionError{constructor({message:_0x42cb82}={}){const _0x5a2ac=a1_0x54af01;super({'message':_0x42cb82!==null&&_0x42cb82!==void 0x0?_0x42cb82:_0x5a2ac(0x415)});}}class BadRequestError extends APIError{}class AuthenticationError extends APIError{}class PermissionDeniedError extends APIError{}class NotFoundError extends APIError{}class ConflictError extends APIError{}class UnprocessableEntityError extends APIError{}class RateLimitError extends APIError{}class InternalServerError extends APIError{}/**
132
+ * @license
133
+ * Copyright 2025 Google LLC
134
+ * SPDX-License-Identifier: Apache-2.0
135
+ */
136
+ const startsWithSchemeRegexp=/^[a-z][a-z0-9+.-]*:/i,isAbsoluteURL=_0xf7f107=>{return startsWithSchemeRegexp['test'](_0xf7f107);};let isArrayInternal=_0x2ac0d1=>(isArrayInternal=Array[a1_0x54af01(0x1e2)],isArrayInternal(_0x2ac0d1));const isArray=isArrayInternal;let isReadonlyArrayInternal=isArray;const isReadonlyArray=isReadonlyArrayInternal;function isEmptyObj(_0x44edd9){if(!_0x44edd9)return!![];for(const _0xd27b2a in _0x44edd9)return![];return!![];}function hasOwn(_0x7da800,_0x21beff){const _0x3dfde3=a1_0x54af01;return Object[_0x3dfde3(0x19a)][_0x3dfde3(0x662)]['call'](_0x7da800,_0x21beff);}const validatePositiveInteger=(_0x5286fb,_0x2e32a9)=>{const _0x2d5b1d=a1_0x54af01;if(typeof _0x2e32a9!==_0x2d5b1d(0x6b7)||!Number[_0x2d5b1d(0x4d5)](_0x2e32a9))throw new GeminiNextGenAPIClientError(_0x5286fb+_0x2d5b1d(0x6a3));if(_0x2e32a9<0x0)throw new GeminiNextGenAPIClientError(_0x5286fb+'\x20must\x20be\x20a\x20positive\x20integer');return _0x2e32a9;},safeJSON=_0x3f5172=>{const _0x18624c=a1_0x54af01;try{return JSON[_0x18624c(0x2fd)](_0x3f5172);}catch(_0x192704){return undefined;}},sleep=_0x223fb5=>new Promise(_0x2af3c8=>setTimeout(_0x2af3c8,_0x223fb5)),VERSION=a1_0x54af01(0x2e0);/**
137
+ * @license
138
+ * Copyright 2025 Google LLC
139
+ * SPDX-License-Identifier: Apache-2.0
140
+ */
141
+ function getDetectedPlatform(){const _0x302c46=a1_0x54af01;if(typeof Deno!==_0x302c46(0x27a)&&Deno[_0x302c46(0x5cd)]!=null)return _0x302c46(0x2ff);if(typeof EdgeRuntime!==_0x302c46(0x27a))return _0x302c46(0x5ae);if(Object[_0x302c46(0x19a)][_0x302c46(0x674)]['call'](typeof globalThis['process']!==_0x302c46(0x27a)?globalThis[_0x302c46(0x472)]:0x0)===_0x302c46(0x43e))return'node';return _0x302c46(0x240);}const getPlatformProperties=()=>{const _0x34ef79=a1_0x54af01;var _0x31d92b,_0x1aeb31,_0x3aac25,_0x1e2e48,_0x19eb6d;const _0x349b1c=getDetectedPlatform();if(_0x349b1c===_0x34ef79(0x2ff))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform(Deno[_0x34ef79(0x5cd)]['os']),'X-Stainless-Arch':normalizeArch(Deno['build']['arch']),'X-Stainless-Runtime':_0x34ef79(0x2ff),'X-Stainless-Runtime-Version':typeof Deno[_0x34ef79(0x20c)]===_0x34ef79(0x45a)?Deno[_0x34ef79(0x20c)]:(_0x1aeb31=(_0x31d92b=Deno[_0x34ef79(0x20c)])===null||_0x31d92b===void 0x0?void 0x0:_0x31d92b[_0x34ef79(0x2ff)])!==null&&_0x1aeb31!==void 0x0?_0x1aeb31:_0x34ef79(0x240)};if(typeof EdgeRuntime!==_0x34ef79(0x27a))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x34ef79(0x1df)+EdgeRuntime,'X-Stainless-Runtime':_0x34ef79(0x5ae),'X-Stainless-Runtime-Version':globalThis[_0x34ef79(0x472)][_0x34ef79(0x20c)]};if(_0x349b1c==='node')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform((_0x3aac25=globalThis[_0x34ef79(0x472)][_0x34ef79(0x578)])!==null&&_0x3aac25!==void 0x0?_0x3aac25:_0x34ef79(0x240)),'X-Stainless-Arch':normalizeArch((_0x1e2e48=globalThis[_0x34ef79(0x472)][_0x34ef79(0x3f5)])!==null&&_0x1e2e48!==void 0x0?_0x1e2e48:_0x34ef79(0x240)),'X-Stainless-Runtime':'node','X-Stainless-Runtime-Version':(_0x19eb6d=globalThis[_0x34ef79(0x472)][_0x34ef79(0x20c)])!==null&&_0x19eb6d!==void 0x0?_0x19eb6d:_0x34ef79(0x240)};const _0x5557c5=getBrowserInfo();if(_0x5557c5)return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x34ef79(0x240),'X-Stainless-Runtime':_0x34ef79(0x4e5)+_0x5557c5[_0x34ef79(0x62e)],'X-Stainless-Runtime-Version':_0x5557c5[_0x34ef79(0x20c)]};return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x34ef79(0x240),'X-Stainless-Runtime':'unknown','X-Stainless-Runtime-Version':_0x34ef79(0x240)};};function getBrowserInfo(){const _0x25a244=a1_0x54af01;if(typeof navigator===_0x25a244(0x27a)||!navigator)return null;const _0x45e6b9=[{'key':_0x25a244(0x5ae),'pattern':/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x25a244(0x28e),'pattern':/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'firefox','pattern':/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x25a244(0x359),'pattern':/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const {key:_0x1d8e9d,pattern:_0x4a4de0}of _0x45e6b9){const _0x191919=_0x4a4de0[_0x25a244(0x553)](navigator[_0x25a244(0x365)]);if(_0x191919){const _0xc3adaf=_0x191919[0x1]||0x0,_0x295a3f=_0x191919[0x2]||0x0,_0x1c8f1a=_0x191919[0x3]||0x0;return{'browser':_0x1d8e9d,'version':_0xc3adaf+'.'+_0x295a3f+'.'+_0x1c8f1a};}}return null;}const normalizeArch=_0x51f215=>{const _0x1e98b0=a1_0x54af01;if(_0x51f215===_0x1e98b0(0x54e))return _0x1e98b0(0x54e);if(_0x51f215===_0x1e98b0(0x217)||_0x51f215===_0x1e98b0(0x488))return _0x1e98b0(0x488);if(_0x51f215===_0x1e98b0(0x321))return _0x1e98b0(0x321);if(_0x51f215===_0x1e98b0(0x62f)||_0x51f215===_0x1e98b0(0x506))return _0x1e98b0(0x506);if(_0x51f215)return'other:'+_0x51f215;return _0x1e98b0(0x240);},normalizePlatform=_0x5569b6=>{const _0x51f4b9=a1_0x54af01;_0x5569b6=_0x5569b6['toLowerCase']();if(_0x5569b6[_0x51f4b9(0x563)](_0x51f4b9(0x3aa)))return _0x51f4b9(0x5f5);if(_0x5569b6===_0x51f4b9(0x4c0))return _0x51f4b9(0x4c4);if(_0x5569b6===_0x51f4b9(0x5e4))return _0x51f4b9(0x2b3);if(_0x5569b6===_0x51f4b9(0x497))return _0x51f4b9(0x309);if(_0x5569b6===_0x51f4b9(0x5d6))return'FreeBSD';if(_0x5569b6===_0x51f4b9(0x6c1))return'OpenBSD';if(_0x5569b6===_0x51f4b9(0x247))return _0x51f4b9(0x27d);if(_0x5569b6)return'Other:'+_0x5569b6;return _0x51f4b9(0x638);};let _platformHeaders;const getPlatformHeaders=()=>{return _platformHeaders!==null&&_platformHeaders!==void 0x0?_platformHeaders:_platformHeaders=getPlatformProperties();};/**
142
+ * @license
143
+ * Copyright 2025 Google LLC
144
+ * SPDX-License-Identifier: Apache-2.0
145
+ */
146
+ function getDefaultFetch(){const _0x16f328=a1_0x54af01;if(typeof fetch!=='undefined')return fetch;throw new Error(_0x16f328(0x4d9));}function makeReadableStream(..._0x378557){const _0x4f0ef7=a1_0x54af01,_0x14ae0e=globalThis['ReadableStream'];if(typeof _0x14ae0e===_0x4f0ef7(0x27a))throw new Error('`ReadableStream`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20You\x20will\x20need\x20to\x20polyfill\x20it,\x20`globalThis.ReadableStream\x20=\x20ReadableStream`');return new _0x14ae0e(..._0x378557);}function ReadableStreamFrom(_0x473a7d){const _0x479046=a1_0x54af01;let _0x25736a=Symbol['asyncIterator']in _0x473a7d?_0x473a7d[Symbol[_0x479046(0x4ea)]]():_0x473a7d[Symbol['iterator']]();return makeReadableStream({'start'(){},async 'pull'(_0x32f74b){const _0x2066ef=_0x479046,{done:_0xcae5e6,value:_0x1b66cd}=await _0x25736a[_0x2066ef(0x295)]();_0xcae5e6?_0x32f74b[_0x2066ef(0x646)]():_0x32f74b['enqueue'](_0x1b66cd);},async 'cancel'(){const _0x2dc6d0=_0x479046;var _0x2ca19f;await((_0x2ca19f=_0x25736a[_0x2dc6d0(0x599)])===null||_0x2ca19f===void 0x0?void 0x0:_0x2ca19f['call'](_0x25736a));}});}function ReadableStreamToAsyncIterable(_0x4525e7){const _0x12588f=a1_0x54af01;if(_0x4525e7[Symbol[_0x12588f(0x4ea)]])return _0x4525e7;const _0x55c55a=_0x4525e7[_0x12588f(0x6ae)]();return{async 'next'(){const _0x3fa48b=_0x12588f;try{const _0x51c0e9=await _0x55c55a[_0x3fa48b(0x3fa)]();if(_0x51c0e9===null||_0x51c0e9===void 0x0?void 0x0:_0x51c0e9[_0x3fa48b(0x49f)])_0x55c55a[_0x3fa48b(0x4e8)]();return _0x51c0e9;}catch(_0x6879f0){_0x55c55a['releaseLock']();throw _0x6879f0;}},async 'return'(){const _0x4094be=_0x12588f,_0x427aa8=_0x55c55a[_0x4094be(0x606)]();return _0x55c55a[_0x4094be(0x4e8)](),await _0x427aa8,{'done':!![],'value':undefined};},[Symbol[_0x12588f(0x4ea)]](){return this;}};}async function CancelReadableStream(_0x171716){const _0x3d1eca=a1_0x54af01;var _0x1ad4c3,_0x56f2ee;if(_0x171716===null||typeof _0x171716!=='object')return;if(_0x171716[Symbol[_0x3d1eca(0x4ea)]]){await((_0x56f2ee=(_0x1ad4c3=_0x171716[Symbol[_0x3d1eca(0x4ea)]]())[_0x3d1eca(0x599)])===null||_0x56f2ee===void 0x0?void 0x0:_0x56f2ee[_0x3d1eca(0x182)](_0x1ad4c3));return;}const _0x4cfd6b=_0x171716[_0x3d1eca(0x6ae)](),_0x43eeed=_0x4cfd6b[_0x3d1eca(0x606)]();_0x4cfd6b[_0x3d1eca(0x4e8)](),await _0x43eeed;}/**
147
+ * @license
148
+ * Copyright 2025 Google LLC
149
+ * SPDX-License-Identifier: Apache-2.0
150
+ */
151
+ const FallbackEncoder=({headers:_0x42c271,body:_0x3e4bcc})=>{const _0x4deca=a1_0x54af01;return{'bodyHeaders':{'content-type':_0x4deca(0x270)},'body':JSON[_0x4deca(0x45e)](_0x3e4bcc)};},checkFileSupport=()=>{const _0x183b49=a1_0x54af01;var _0x248e51;if(typeof File===_0x183b49(0x27a)){const {process:_0x28ccdf}=globalThis,_0x390ba0=typeof((_0x248e51=_0x28ccdf===null||_0x28ccdf===void 0x0?void 0x0:_0x28ccdf['versions'])===null||_0x248e51===void 0x0?void 0x0:_0x248e51[_0x183b49(0x2e1)])===_0x183b49(0x45a)&&parseInt(_0x28ccdf[_0x183b49(0x6c9)][_0x183b49(0x2e1)][_0x183b49(0x22a)]('.'))<0x14;throw new Error(_0x183b49(0x31e)+(_0x390ba0?_0x183b49(0x6a5):''));}};function makeFile(_0x3aed97,_0x2840ea,_0x4625cd){const _0x1c9f32=a1_0x54af01;return checkFileSupport(),new File(_0x3aed97,_0x2840ea!==null&&_0x2840ea!==void 0x0?_0x2840ea:_0x1c9f32(0x405),_0x4625cd);}function getName(_0x1b8c4b){const _0x3062e4=a1_0x54af01;return(typeof _0x1b8c4b==='object'&&_0x1b8c4b!==null&&(_0x3062e4(0x24b)in _0x1b8c4b&&_0x1b8c4b[_0x3062e4(0x24b)]&&String(_0x1b8c4b['name'])||'url'in _0x1b8c4b&&_0x1b8c4b[_0x3062e4(0x2e4)]&&String(_0x1b8c4b[_0x3062e4(0x2e4)])||_0x3062e4(0x3ff)in _0x1b8c4b&&_0x1b8c4b[_0x3062e4(0x3ff)]&&String(_0x1b8c4b[_0x3062e4(0x3ff)])||_0x3062e4(0x67d)in _0x1b8c4b&&_0x1b8c4b[_0x3062e4(0x67d)]&&String(_0x1b8c4b[_0x3062e4(0x67d)]))||'')[_0x3062e4(0x22a)](/[\\/]/)[_0x3062e4(0x60a)]()||undefined;}const isAsyncIterable=_0x49e3fb=>_0x49e3fb!=null&&typeof _0x49e3fb===a1_0x54af01(0x34b)&&typeof _0x49e3fb[Symbol['asyncIterator']]===a1_0x54af01(0x4a6),isBlobLike=_0x265688=>_0x265688!=null&&typeof _0x265688==='object'&&typeof _0x265688['size']===a1_0x54af01(0x6b7)&&typeof _0x265688[a1_0x54af01(0x311)]===a1_0x54af01(0x45a)&&typeof _0x265688[a1_0x54af01(0x205)]===a1_0x54af01(0x4a6)&&typeof _0x265688['slice']===a1_0x54af01(0x4a6)&&typeof _0x265688[a1_0x54af01(0x613)]===a1_0x54af01(0x4a6),isFileLike=_0x473770=>_0x473770!=null&&typeof _0x473770==='object'&&typeof _0x473770['name']===a1_0x54af01(0x45a)&&typeof _0x473770[a1_0x54af01(0x30f)]===a1_0x54af01(0x6b7)&&isBlobLike(_0x473770),isResponseLike=_0x1ed5c2=>_0x1ed5c2!=null&&typeof _0x1ed5c2==='object'&&typeof _0x1ed5c2[a1_0x54af01(0x2e4)]===a1_0x54af01(0x45a)&&typeof _0x1ed5c2[a1_0x54af01(0x340)]===a1_0x54af01(0x4a6);async function toFile(_0x1d41fa,_0x40c576,_0x6ca46){const _0x426165=a1_0x54af01;checkFileSupport(),_0x1d41fa=await _0x1d41fa;if(isFileLike(_0x1d41fa)){if(_0x1d41fa instanceof File)return _0x1d41fa;return makeFile([await _0x1d41fa[_0x426165(0x613)]()],_0x1d41fa[_0x426165(0x24b)]);}if(isResponseLike(_0x1d41fa)){const _0x2d1482=await _0x1d41fa[_0x426165(0x340)]();return _0x40c576||(_0x40c576=new URL(_0x1d41fa['url'])[_0x426165(0x33a)]['split'](/[\\/]/)['pop']()),makeFile(await getBytes(_0x2d1482),_0x40c576,_0x6ca46);}const _0x19ebcb=await getBytes(_0x1d41fa);_0x40c576||(_0x40c576=getName(_0x1d41fa));if(!(_0x6ca46===null||_0x6ca46===void 0x0?void 0x0:_0x6ca46['type'])){const _0x44c7fe=_0x19ebcb[_0x426165(0x22e)](_0x571a71=>typeof _0x571a71===_0x426165(0x34b)&&_0x426165(0x311)in _0x571a71&&_0x571a71['type']);typeof _0x44c7fe===_0x426165(0x45a)&&(_0x6ca46=Object[_0x426165(0x541)](Object[_0x426165(0x541)]({},_0x6ca46),{'type':_0x44c7fe}));}return makeFile(_0x19ebcb,_0x40c576,_0x6ca46);}async function getBytes(_0x10627a){const _0x251573=a1_0x54af01;var _0x670040,_0x516744,_0x2ca50e,_0x172857,_0x1cd8ce;let _0x26d337=[];if(typeof _0x10627a===_0x251573(0x45a)||ArrayBuffer['isView'](_0x10627a)||_0x10627a instanceof ArrayBuffer)_0x26d337[_0x251573(0x54b)](_0x10627a);else{if(isBlobLike(_0x10627a))_0x26d337['push'](_0x10627a instanceof Blob?_0x10627a:await _0x10627a[_0x251573(0x613)]());else{if(isAsyncIterable(_0x10627a))try{for(var _0x103114=!![],_0x45c058=__asyncValues(_0x10627a),_0x5389ba;_0x5389ba=await _0x45c058[_0x251573(0x295)](),_0x670040=_0x5389ba['done'],!_0x670040;_0x103114=!![]){_0x172857=_0x5389ba[_0x251573(0x2f1)],_0x103114=![];const _0x1218a8=_0x172857;_0x26d337[_0x251573(0x54b)](...await getBytes(_0x1218a8));}}catch(_0x4b59ad){_0x516744={'error':_0x4b59ad};}finally{try{if(!_0x103114&&!_0x670040&&(_0x2ca50e=_0x45c058[_0x251573(0x599)]))await _0x2ca50e[_0x251573(0x182)](_0x45c058);}finally{if(_0x516744)throw _0x516744[_0x251573(0x3d6)];}}else{const _0x457982=(_0x1cd8ce=_0x10627a===null||_0x10627a===void 0x0?void 0x0:_0x10627a[_0x251573(0x293)])===null||_0x1cd8ce===void 0x0?void 0x0:_0x1cd8ce['name'];throw new Error(_0x251573(0x195)+typeof _0x10627a+(_0x457982?';\x20constructor:\x20'+_0x457982:'')+propsForError(_0x10627a));}}}return _0x26d337;}function propsForError(_0x39e137){const _0x471a06=a1_0x54af01;if(typeof _0x39e137!==_0x471a06(0x34b)||_0x39e137===null)return'';const _0x39a324=Object[_0x471a06(0x3b1)](_0x39e137);return';\x20props:\x20['+_0x39a324[_0x471a06(0x261)](_0x2cfee5=>'\x22'+_0x2cfee5+'\x22')[_0x471a06(0x1d6)](',\x20')+']';}/**
152
+ * @license
153
+ * Copyright 2025 Google LLC
154
+ * SPDX-License-Identifier: Apache-2.0
155
+ */
156
+ class APIResource{constructor(_0x57a303){this['_client']=_0x57a303;}}APIResource['_key']=[];/**
157
+ * @license
158
+ * Copyright 2025 Google LLC
159
+ * SPDX-License-Identifier: Apache-2.0
160
+ */
161
+ function encodeURIPath(_0x32413e){return _0x32413e['replace'](/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent);}const EMPTY=Object[a1_0x54af01(0x439)](Object['create'](null)),createPathTagFunction=(_0x377f07=encodeURIPath)=>function _0x42f291(_0x561f58,..._0x2697b2){const _0x59258f=a1_0x54af01;if(_0x561f58[_0x59258f(0x258)]===0x1)return _0x561f58[0x0];let _0x8df042=![];const _0x595624=[],_0x26d8cb=_0x561f58[_0x59258f(0x664)]((_0x53f81a,_0x81e0d8,_0x5d0898)=>{const _0x394ca5=_0x59258f;var _0x1452fa,_0x1f8c34,_0x491795;/[?#]/[_0x394ca5(0x33d)](_0x81e0d8)&&(_0x8df042=!![]);const _0x3d6d5d=_0x2697b2[_0x5d0898];let _0x91a1ad=(_0x8df042?encodeURIComponent:_0x377f07)(''+_0x3d6d5d);return _0x5d0898!==_0x2697b2[_0x394ca5(0x258)]&&(_0x3d6d5d==null||typeof _0x3d6d5d==='object'&&_0x3d6d5d[_0x394ca5(0x674)]===((_0x491795=Object[_0x394ca5(0x4b9)]((_0x1f8c34=Object[_0x394ca5(0x4b9)]((_0x1452fa=_0x3d6d5d['hasOwnProperty'])!==null&&_0x1452fa!==void 0x0?_0x1452fa:EMPTY))!==null&&_0x1f8c34!==void 0x0?_0x1f8c34:EMPTY))===null||_0x491795===void 0x0?void 0x0:_0x491795[_0x394ca5(0x674)]))&&(_0x91a1ad=_0x3d6d5d+'',_0x595624[_0x394ca5(0x54b)]({'start':_0x53f81a[_0x394ca5(0x258)]+_0x81e0d8['length'],'length':_0x91a1ad['length'],'error':_0x394ca5(0x201)+Object[_0x394ca5(0x19a)][_0x394ca5(0x674)]['call'](_0x3d6d5d)[_0x394ca5(0x4a2)](0x8,-0x1)+_0x394ca5(0x3c0)})),_0x53f81a+_0x81e0d8+(_0x5d0898===_0x2697b2[_0x394ca5(0x258)]?'':_0x91a1ad);},''),_0x1bf8d5=_0x26d8cb[_0x59258f(0x22a)](/[?#]/,0x1)[0x0],_0x4aa74a=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;let _0x38877f;while((_0x38877f=_0x4aa74a[_0x59258f(0x553)](_0x1bf8d5))!==null){_0x595624[_0x59258f(0x54b)]({'start':_0x38877f['index'],'length':_0x38877f[0x0][_0x59258f(0x258)],'error':_0x59258f(0x269)+_0x38877f[0x0]+_0x59258f(0x3ce)});}_0x595624[_0x59258f(0x1a5)]((_0x3059df,_0x4a6fc7)=>_0x3059df['start']-_0x4a6fc7[_0x59258f(0x3b9)]);if(_0x595624[_0x59258f(0x258)]>0x0){let _0x7deade=0x0;const _0x44308c=_0x595624['reduce']((_0x2b15fe,_0xd6d133)=>{const _0x4cd2ac=_0x59258f,_0x4e0cbe='\x20'[_0x4cd2ac(0x1e8)](_0xd6d133[_0x4cd2ac(0x3b9)]-_0x7deade),_0x12cff1='^'[_0x4cd2ac(0x1e8)](_0xd6d133['length']);return _0x7deade=_0xd6d133[_0x4cd2ac(0x3b9)]+_0xd6d133['length'],_0x2b15fe+_0x4e0cbe+_0x12cff1;},'');throw new GeminiNextGenAPIClientError(_0x59258f(0x1fc)+_0x595624['map'](_0x2fbefa=>_0x2fbefa[_0x59258f(0x3d6)])[_0x59258f(0x1d6)]('\x0a')+'\x0a'+_0x26d8cb+'\x0a'+_0x44308c);}return _0x26d8cb;},path=createPathTagFunction(encodeURIPath);/**
162
+ * @license
163
+ * Copyright 2025 Google LLC
164
+ * SPDX-License-Identifier: Apache-2.0
165
+ */
166
+ class BaseInteractions extends APIResource{['create'](_0x27c12c,_0x2f3e8e){const _0x3391cd=a1_0x54af01;var _0x45500f;const {api_version:api_version=this[_0x3391cd(0x1ac)][_0x3391cd(0x288)]}=_0x27c12c,_0x2944e3=__rest(_0x27c12c,[_0x3391cd(0x221)]);if(_0x3391cd(0x210)in _0x2944e3&&_0x3391cd(0x65d)in _0x2944e3)throw new GeminiNextGenAPIClientError(_0x3391cd(0x31d));if(_0x3391cd(0x204)in _0x2944e3&&_0x3391cd(0x3c8)in _0x2944e3)throw new GeminiNextGenAPIClientError('Invalid\x20request:\x20specified\x20`agent`\x20and\x20`generation_config`.\x20If\x20specifying\x20`agent`,\x20use\x20`agent_config`.');return this[_0x3391cd(0x1ac)][_0x3391cd(0x548)](path`/${api_version}/interactions`,Object[_0x3391cd(0x541)](Object[_0x3391cd(0x541)]({'body':_0x2944e3},_0x2f3e8e),{'stream':(_0x45500f=_0x27c12c['stream'])!==null&&_0x45500f!==void 0x0?_0x45500f:![]}));}[a1_0x54af01(0x2a5)](_0x491616,_0x1815e0={},_0x5593c){const _0x5d2439=a1_0x54af01,{api_version:api_version=this['_client'][_0x5d2439(0x288)]}=_0x1815e0!==null&&_0x1815e0!==void 0x0?_0x1815e0:{};return this[_0x5d2439(0x1ac)][_0x5d2439(0x2a5)](path`/${api_version}/interactions/${_0x491616}`,_0x5593c);}['cancel'](_0x1e43cd,_0x565a7e={},_0x2f7eda){const _0x327437=a1_0x54af01,{api_version:api_version=this['_client'][_0x327437(0x288)]}=_0x565a7e!==null&&_0x565a7e!==void 0x0?_0x565a7e:{};return this[_0x327437(0x1ac)][_0x327437(0x548)](path`/${api_version}/interactions/${_0x1e43cd}/cancel`,_0x2f7eda);}[a1_0x54af01(0x5a2)](_0x28094f,_0xc468c3={},_0x1349d4){const _0x5d18b2=a1_0x54af01;var _0x304de3;const _0x3f7e19=_0xc468c3!==null&&_0xc468c3!==void 0x0?_0xc468c3:{},{api_version:api_version=this[_0x5d18b2(0x1ac)][_0x5d18b2(0x288)]}=_0x3f7e19,_0x602a9e=__rest(_0x3f7e19,[_0x5d18b2(0x221)]);return this['_client'][_0x5d18b2(0x5a2)](path`/${api_version}/interactions/${_0x28094f}`,Object[_0x5d18b2(0x541)](Object[_0x5d18b2(0x541)]({'query':_0x602a9e},_0x1349d4),{'stream':(_0x304de3=_0xc468c3===null||_0xc468c3===void 0x0?void 0x0:_0xc468c3[_0x5d18b2(0x31c)])!==null&&_0x304de3!==void 0x0?_0x304de3:![]}));}}BaseInteractions[a1_0x54af01(0x279)]=Object['freeze'](['interactions']);class Interactions extends BaseInteractions{}/**
167
+ * @license
168
+ * Copyright 2025 Google LLC
169
+ * SPDX-License-Identifier: Apache-2.0
170
+ */
171
+ function concatBytes(_0x37866c){const _0x3c6262=a1_0x54af01;let _0x3f1350=0x0;for(const _0x113e33 of _0x37866c){_0x3f1350+=_0x113e33[_0x3c6262(0x258)];}const _0x2f43ee=new Uint8Array(_0x3f1350);let _0x50824c=0x0;for(const _0x5d69ba of _0x37866c){_0x2f43ee['set'](_0x5d69ba,_0x50824c),_0x50824c+=_0x5d69ba['length'];}return _0x2f43ee;}let encodeUTF8_;function encodeUTF8(_0x33f306){const _0x1dede6=a1_0x54af01;let _0x53e40f;return(encodeUTF8_!==null&&encodeUTF8_!==void 0x0?encodeUTF8_:(_0x53e40f=new globalThis[(_0x1dede6(0x5c8))](),encodeUTF8_=_0x53e40f[_0x1dede6(0x60f)]['bind'](_0x53e40f)))(_0x33f306);}let decodeUTF8_;function decodeUTF8(_0x46bf39){const _0x59baf4=a1_0x54af01;let _0x2c9f5c;return(decodeUTF8_!==null&&decodeUTF8_!==void 0x0?decodeUTF8_:(_0x2c9f5c=new globalThis[(_0x59baf4(0x663))](),decodeUTF8_=_0x2c9f5c[_0x59baf4(0x26e)][_0x59baf4(0x241)](_0x2c9f5c)))(_0x46bf39);}/**
172
+ * @license
173
+ * Copyright 2025 Google LLC
174
+ * SPDX-License-Identifier: Apache-2.0
175
+ */
176
+ class LineDecoder{constructor(){const _0x4da929=a1_0x54af01;this[_0x4da929(0x395)]=new Uint8Array(),this['carriageReturnIndex']=null;}['decode'](_0x7db181){const _0x39892b=a1_0x54af01;if(_0x7db181==null)return[];const _0x3a4f56=_0x7db181 instanceof ArrayBuffer?new Uint8Array(_0x7db181):typeof _0x7db181===_0x39892b(0x45a)?encodeUTF8(_0x7db181):_0x7db181;this['buffer']=concatBytes([this[_0x39892b(0x395)],_0x3a4f56]);const _0x3bedfb=[];let _0x597a34;while((_0x597a34=findNewlineIndex(this['buffer'],this[_0x39892b(0x5d3)]))!=null){if(_0x597a34[_0x39892b(0x61c)]&&this[_0x39892b(0x5d3)]==null){this[_0x39892b(0x5d3)]=_0x597a34[_0x39892b(0x591)];continue;}if(this[_0x39892b(0x5d3)]!=null&&(_0x597a34[_0x39892b(0x591)]!==this['carriageReturnIndex']+0x1||_0x597a34['carriage'])){_0x3bedfb['push'](decodeUTF8(this[_0x39892b(0x395)]['subarray'](0x0,this[_0x39892b(0x5d3)]-0x1))),this[_0x39892b(0x395)]=this[_0x39892b(0x395)]['subarray'](this[_0x39892b(0x5d3)]),this[_0x39892b(0x5d3)]=null;continue;}const _0x36d818=this[_0x39892b(0x5d3)]!==null?_0x597a34['preceding']-0x1:_0x597a34[_0x39892b(0x480)],_0x118ecb=decodeUTF8(this[_0x39892b(0x395)][_0x39892b(0x4c7)](0x0,_0x36d818));_0x3bedfb['push'](_0x118ecb),this['buffer']=this[_0x39892b(0x395)]['subarray'](_0x597a34[_0x39892b(0x591)]),this[_0x39892b(0x5d3)]=null;}return _0x3bedfb;}[a1_0x54af01(0x398)](){const _0x98a96e=a1_0x54af01;if(!this['buffer'][_0x98a96e(0x258)])return[];return this['decode']('\x0a');}}LineDecoder[a1_0x54af01(0x5cf)]=new Set(['\x0a','\x0d']),LineDecoder[a1_0x54af01(0x30c)]=/\r\n|[\n\r]/g;function findNewlineIndex(_0x3e3e01,_0x2ce5e7){const _0xb758dc=a1_0x54af01,_0x14c65e=0xa,_0x37f212=0xd;for(let _0x169a5e=_0x2ce5e7!==null&&_0x2ce5e7!==void 0x0?_0x2ce5e7:0x0;_0x169a5e<_0x3e3e01[_0xb758dc(0x258)];_0x169a5e++){if(_0x3e3e01[_0x169a5e]===_0x14c65e)return{'preceding':_0x169a5e,'index':_0x169a5e+0x1,'carriage':![]};if(_0x3e3e01[_0x169a5e]===_0x37f212)return{'preceding':_0x169a5e,'index':_0x169a5e+0x1,'carriage':!![]};}return null;}function findDoubleNewlineIndex(_0xc2c298){const _0x5f18d9=a1_0x54af01,_0x583fb8=0xa,_0xdad8dd=0xd;for(let _0x214358=0x0;_0x214358<_0xc2c298[_0x5f18d9(0x258)]-0x1;_0x214358++){if(_0xc2c298[_0x214358]===_0x583fb8&&_0xc2c298[_0x214358+0x1]===_0x583fb8)return _0x214358+0x2;if(_0xc2c298[_0x214358]===_0xdad8dd&&_0xc2c298[_0x214358+0x1]===_0xdad8dd)return _0x214358+0x2;if(_0xc2c298[_0x214358]===_0xdad8dd&&_0xc2c298[_0x214358+0x1]===_0x583fb8&&_0x214358+0x3<_0xc2c298['length']&&_0xc2c298[_0x214358+0x2]===_0xdad8dd&&_0xc2c298[_0x214358+0x3]===_0x583fb8)return _0x214358+0x4;}return-0x1;}/**
177
+ * @license
178
+ * Copyright 2025 Google LLC
179
+ * SPDX-License-Identifier: Apache-2.0
180
+ */
181
+ const levelNumbers={'off':0x0,'error':0xc8,'warn':0x12c,'info':0x190,'debug':0x1f4},parseLogLevel=(_0x1204c5,_0x4da9de,_0x564ae6)=>{const _0x27c61a=a1_0x54af01;if(!_0x1204c5)return undefined;if(hasOwn(levelNumbers,_0x1204c5))return _0x1204c5;return loggerFor(_0x564ae6)[_0x27c61a(0x44c)](_0x4da9de+_0x27c61a(0x51b)+JSON[_0x27c61a(0x45e)](_0x1204c5)+_0x27c61a(0x4af)+JSON[_0x27c61a(0x45e)](Object['keys'](levelNumbers))),undefined;};function noop(){}function makeLogFn(_0x5a713b,_0x51c7f4,_0x2a95da){const _0x5996cd=a1_0x54af01;return!_0x51c7f4||levelNumbers[_0x5a713b]>levelNumbers[_0x2a95da]?noop:_0x51c7f4[_0x5a713b][_0x5996cd(0x241)](_0x51c7f4);}const noopLogger={'error':noop,'warn':noop,'info':noop,'debug':noop};let cachedLoggers=new WeakMap();function loggerFor(_0x3d630e){const _0x760333=a1_0x54af01;var _0x36b7db;const _0x519641=_0x3d630e['logger'],_0x324f9b=(_0x36b7db=_0x3d630e['logLevel'])!==null&&_0x36b7db!==void 0x0?_0x36b7db:_0x760333(0x403);if(!_0x519641)return noopLogger;const _0x257111=cachedLoggers[_0x760333(0x5a2)](_0x519641);if(_0x257111&&_0x257111[0x0]===_0x324f9b)return _0x257111[0x1];const _0x533b05={'error':makeLogFn(_0x760333(0x3d6),_0x519641,_0x324f9b),'warn':makeLogFn('warn',_0x519641,_0x324f9b),'info':makeLogFn(_0x760333(0x51d),_0x519641,_0x324f9b),'debug':makeLogFn(_0x760333(0x580),_0x519641,_0x324f9b)};return cachedLoggers[_0x760333(0x6c7)](_0x519641,[_0x324f9b,_0x533b05]),_0x533b05;}const formatRequestDetails=_0x5713ce=>{const _0x3d565d=a1_0x54af01;return _0x5713ce['options']&&(_0x5713ce[_0x3d565d(0x4f0)]=Object['assign']({},_0x5713ce['options']),delete _0x5713ce[_0x3d565d(0x4f0)][_0x3d565d(0x2fa)]),_0x5713ce[_0x3d565d(0x2fa)]&&(_0x5713ce['headers']=Object[_0x3d565d(0x582)]((_0x5713ce[_0x3d565d(0x2fa)]instanceof Headers?[..._0x5713ce[_0x3d565d(0x2fa)]]:Object[_0x3d565d(0x4a1)](_0x5713ce['headers']))['map'](([_0x3e6837,_0xb02483])=>[_0x3e6837,_0x3e6837[_0x3d565d(0x4d4)]()===_0x3d565d(0x2eb)||_0x3e6837[_0x3d565d(0x4d4)]()==='authorization'||_0x3e6837[_0x3d565d(0x4d4)]()===_0x3d565d(0x370)||_0x3e6837[_0x3d565d(0x4d4)]()===_0x3d565d(0x2ce)?_0x3d565d(0x635):_0xb02483]))),_0x3d565d(0x36e)in _0x5713ce&&(_0x5713ce[_0x3d565d(0x36e)]&&(_0x5713ce[_0x3d565d(0x1f8)]=_0x5713ce['retryOfRequestLogID']),delete _0x5713ce['retryOfRequestLogID']),_0x5713ce;};/**
182
+ * @license
183
+ * Copyright 2025 Google LLC
184
+ * SPDX-License-Identifier: Apache-2.0
185
+ */
186
+ class Stream{constructor(_0x3ae914,_0x58cc2a,_0x20a120){const _0x8d68d5=a1_0x54af01;this[_0x8d68d5(0x568)]=_0x3ae914,this['controller']=_0x58cc2a,this['client']=_0x20a120;}static[a1_0x54af01(0x23e)](_0x1e4f59,_0xef8013,_0x414856){let _0x5b4c0d=![];const _0xf932ea=_0x414856?loggerFor(_0x414856):console;function _0x5d23c9(){return __asyncGenerator(this,arguments,function*_0x3c69d4(){const _0x1d5e6d=a1_0x2f78;var _0x10dfc9,_0xbc029b,_0x24c4cd,_0x2391a4;if(_0x5b4c0d)throw new GeminiNextGenAPIClientError(_0x1d5e6d(0x560));_0x5b4c0d=!![];let _0x28b14=![];try{try{for(var _0x279f24=!![],_0x460dc4=__asyncValues(_iterSSEMessages(_0x1e4f59,_0xef8013)),_0x575b3f;_0x575b3f=yield __await(_0x460dc4[_0x1d5e6d(0x295)]()),_0x10dfc9=_0x575b3f[_0x1d5e6d(0x49f)],!_0x10dfc9;_0x279f24=!![]){_0x2391a4=_0x575b3f[_0x1d5e6d(0x2f1)],_0x279f24=![];const _0x2ee207=_0x2391a4;if(_0x28b14)continue;if(_0x2ee207[_0x1d5e6d(0x354)][_0x1d5e6d(0x55d)](_0x1d5e6d(0x3f4))){_0x28b14=!![];continue;}else try{yield yield __await(JSON[_0x1d5e6d(0x2fd)](_0x2ee207[_0x1d5e6d(0x354)]));}catch(_0x1170f9){_0xf932ea[_0x1d5e6d(0x3d6)](_0x1d5e6d(0x6c5),_0x2ee207['data']),_0xf932ea[_0x1d5e6d(0x3d6)](_0x1d5e6d(0x46b),_0x2ee207[_0x1d5e6d(0x4a5)]);throw _0x1170f9;}}}catch(_0x10f2f7){_0xbc029b={'error':_0x10f2f7};}finally{try{if(!_0x279f24&&!_0x10dfc9&&(_0x24c4cd=_0x460dc4[_0x1d5e6d(0x599)]))yield __await(_0x24c4cd[_0x1d5e6d(0x182)](_0x460dc4));}finally{if(_0xbc029b)throw _0xbc029b[_0x1d5e6d(0x3d6)];}}_0x28b14=!![];}catch(_0x3483d8){if(isAbortError(_0x3483d8))return yield __await(void 0x0);throw _0x3483d8;}finally{if(!_0x28b14)_0xef8013['abort']();}});}return new Stream(_0x5d23c9,_0xef8013,_0x414856);}static['fromReadableStream'](_0x2beba7,_0x23eb03,_0x137648){let _0x29c7b6=![];function _0x2f65f9(){return __asyncGenerator(this,arguments,function*_0x103aa1(){const _0x1f05ea=a1_0x2f78;var _0xeede6f,_0x7e4fb7,_0x222195,_0x2691cb;const _0x12937a=new LineDecoder(),_0x2c6f72=ReadableStreamToAsyncIterable(_0x2beba7);try{for(var _0x1eddf1=!![],_0x46beba=__asyncValues(_0x2c6f72),_0x57beb3;_0x57beb3=yield __await(_0x46beba['next']()),_0xeede6f=_0x57beb3[_0x1f05ea(0x49f)],!_0xeede6f;_0x1eddf1=!![]){_0x2691cb=_0x57beb3[_0x1f05ea(0x2f1)],_0x1eddf1=![];const _0x31a973=_0x2691cb;for(const _0x388f0c of _0x12937a[_0x1f05ea(0x26e)](_0x31a973)){yield yield __await(_0x388f0c);}}}catch(_0x2f24e3){_0x7e4fb7={'error':_0x2f24e3};}finally{try{if(!_0x1eddf1&&!_0xeede6f&&(_0x222195=_0x46beba[_0x1f05ea(0x599)]))yield __await(_0x222195[_0x1f05ea(0x182)](_0x46beba));}finally{if(_0x7e4fb7)throw _0x7e4fb7[_0x1f05ea(0x3d6)];}}for(const _0x31a6e4 of _0x12937a[_0x1f05ea(0x398)]()){yield yield __await(_0x31a6e4);}});}function _0x4acab5(){return __asyncGenerator(this,arguments,function*_0x344a9f(){const _0xc8d3d6=a1_0x2f78;var _0x479981,_0x59d0d8,_0x477456,_0x88c955;if(_0x29c7b6)throw new GeminiNextGenAPIClientError('Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.');_0x29c7b6=!![];let _0x14b4e4=![];try{try{for(var _0x3a4bf8=!![],_0x1d96a3=__asyncValues(_0x2f65f9()),_0x1659ef;_0x1659ef=yield __await(_0x1d96a3[_0xc8d3d6(0x295)]()),_0x479981=_0x1659ef['done'],!_0x479981;_0x3a4bf8=!![]){_0x88c955=_0x1659ef[_0xc8d3d6(0x2f1)],_0x3a4bf8=![];const _0x27b42e=_0x88c955;if(_0x14b4e4)continue;if(_0x27b42e)yield yield __await(JSON['parse'](_0x27b42e));}}catch(_0x5d8260){_0x59d0d8={'error':_0x5d8260};}finally{try{if(!_0x3a4bf8&&!_0x479981&&(_0x477456=_0x1d96a3[_0xc8d3d6(0x599)]))yield __await(_0x477456[_0xc8d3d6(0x182)](_0x1d96a3));}finally{if(_0x59d0d8)throw _0x59d0d8[_0xc8d3d6(0x3d6)];}}_0x14b4e4=!![];}catch(_0x14e2df){if(isAbortError(_0x14e2df))return yield __await(void 0x0);throw _0x14e2df;}finally{if(!_0x14b4e4)_0x23eb03[_0xc8d3d6(0x418)]();}});}return new Stream(_0x4acab5,_0x23eb03,_0x137648);}[Symbol[a1_0x54af01(0x4ea)]](){const _0x3034a5=a1_0x54af01;return this[_0x3034a5(0x568)]();}[a1_0x54af01(0x184)](){const _0x5665ab=a1_0x54af01,_0x4a30bf=[],_0x392a4f=[],_0x31f9e0=this[_0x5665ab(0x568)](),_0x1f14c0=_0x1bb555=>{return{'next':()=>{const _0x3cb70a=a1_0x2f78;if(_0x1bb555[_0x3cb70a(0x258)]===0x0){const _0xd84cdf=_0x31f9e0[_0x3cb70a(0x295)]();_0x4a30bf['push'](_0xd84cdf),_0x392a4f[_0x3cb70a(0x54b)](_0xd84cdf);}return _0x1bb555[_0x3cb70a(0x267)]();}};};return[new Stream(()=>_0x1f14c0(_0x4a30bf),this[_0x5665ab(0x660)],this[_0x5665ab(0x6ba)]),new Stream(()=>_0x1f14c0(_0x392a4f),this[_0x5665ab(0x660)],this[_0x5665ab(0x6ba)])];}['toReadableStream'](){const _0x19fe5e=this;let _0xe60c9e;return makeReadableStream({async 'start'(){const _0x97a7ba=a1_0x2f78;_0xe60c9e=_0x19fe5e[Symbol[_0x97a7ba(0x4ea)]]();},async 'pull'(_0xb5758a){const _0x806606=a1_0x2f78;try{const {value:_0x3741ee,done:_0x307490}=await _0xe60c9e[_0x806606(0x295)]();if(_0x307490)return _0xb5758a['close']();const _0x31a794=encodeUTF8(JSON[_0x806606(0x45e)](_0x3741ee)+'\x0a');_0xb5758a['enqueue'](_0x31a794);}catch(_0x2f69b9){_0xb5758a[_0x806606(0x3d6)](_0x2f69b9);}},async 'cancel'(){const _0x34484e=a1_0x2f78;var _0x3a0aba;await((_0x3a0aba=_0xe60c9e[_0x34484e(0x599)])===null||_0x3a0aba===void 0x0?void 0x0:_0x3a0aba[_0x34484e(0x182)](_0xe60c9e));}});}}function _iterSSEMessages(_0x10f469,_0x1dee5f){return __asyncGenerator(this,arguments,function*_0x1c4183(){const _0x525380=a1_0x2f78;var _0xd57d3a,_0x507eaf,_0x3a1a69,_0x35d90a;if(!_0x10f469['body']){_0x1dee5f[_0x525380(0x418)]();if(typeof globalThis[_0x525380(0x29c)]!==_0x525380(0x27a)&&globalThis[_0x525380(0x29c)]['product']===_0x525380(0x56f))throw new GeminiNextGenAPIClientError(_0x525380(0x3f7));throw new GeminiNextGenAPIClientError(_0x525380(0x537));}const _0x51fbd7=new SSEDecoder(),_0x9854f9=new LineDecoder(),_0xcc1dd3=ReadableStreamToAsyncIterable(_0x10f469[_0x525380(0x655)]);try{for(var _0x1a2e86=!![],_0x1566b2=__asyncValues(iterSSEChunks(_0xcc1dd3)),_0x159072;_0x159072=yield __await(_0x1566b2[_0x525380(0x295)]()),_0xd57d3a=_0x159072[_0x525380(0x49f)],!_0xd57d3a;_0x1a2e86=!![]){_0x35d90a=_0x159072[_0x525380(0x2f1)],_0x1a2e86=![];const _0x51e72f=_0x35d90a;for(const _0x5ca6b8 of _0x9854f9[_0x525380(0x26e)](_0x51e72f)){const _0x371e1c=_0x51fbd7['decode'](_0x5ca6b8);if(_0x371e1c)yield yield __await(_0x371e1c);}}}catch(_0x361940){_0x507eaf={'error':_0x361940};}finally{try{if(!_0x1a2e86&&!_0xd57d3a&&(_0x3a1a69=_0x1566b2[_0x525380(0x599)]))yield __await(_0x3a1a69['call'](_0x1566b2));}finally{if(_0x507eaf)throw _0x507eaf[_0x525380(0x3d6)];}}for(const _0x1b62e9 of _0x9854f9[_0x525380(0x398)]()){const _0x2df935=_0x51fbd7['decode'](_0x1b62e9);if(_0x2df935)yield yield __await(_0x2df935);}});}function iterSSEChunks(_0x2504f3){return __asyncGenerator(this,arguments,function*_0x1fd46d(){const _0x2c3e9e=a1_0x2f78;var _0x584fc3,_0x4b8200,_0x4077c7,_0x3ee098;let _0xb36ac0=new Uint8Array();try{for(var _0x292d49=!![],_0x4d03a9=__asyncValues(_0x2504f3),_0x20f245;_0x20f245=yield __await(_0x4d03a9[_0x2c3e9e(0x295)]()),_0x584fc3=_0x20f245[_0x2c3e9e(0x49f)],!_0x584fc3;_0x292d49=!![]){_0x3ee098=_0x20f245['value'],_0x292d49=![];const _0x6a62f3=_0x3ee098;if(_0x6a62f3==null)continue;const _0x269e03=_0x6a62f3 instanceof ArrayBuffer?new Uint8Array(_0x6a62f3):typeof _0x6a62f3===_0x2c3e9e(0x45a)?encodeUTF8(_0x6a62f3):_0x6a62f3;let _0x5c6e46=new Uint8Array(_0xb36ac0[_0x2c3e9e(0x258)]+_0x269e03[_0x2c3e9e(0x258)]);_0x5c6e46['set'](_0xb36ac0),_0x5c6e46[_0x2c3e9e(0x6c7)](_0x269e03,_0xb36ac0['length']),_0xb36ac0=_0x5c6e46;let _0x497895;while((_0x497895=findDoubleNewlineIndex(_0xb36ac0))!==-0x1){yield yield __await(_0xb36ac0[_0x2c3e9e(0x4a2)](0x0,_0x497895)),_0xb36ac0=_0xb36ac0[_0x2c3e9e(0x4a2)](_0x497895);}}}catch(_0x2d99c7){_0x4b8200={'error':_0x2d99c7};}finally{try{if(!_0x292d49&&!_0x584fc3&&(_0x4077c7=_0x4d03a9[_0x2c3e9e(0x599)]))yield __await(_0x4077c7[_0x2c3e9e(0x182)](_0x4d03a9));}finally{if(_0x4b8200)throw _0x4b8200['error'];}}_0xb36ac0[_0x2c3e9e(0x258)]>0x0&&(yield yield __await(_0xb36ac0));});}class SSEDecoder{constructor(){const _0x42b7b4=a1_0x54af01;this[_0x42b7b4(0x4cf)]=null,this[_0x42b7b4(0x354)]=[],this['chunks']=[];}[a1_0x54af01(0x26e)](_0x110157){const _0xed3eec=a1_0x54af01;_0x110157[_0xed3eec(0x250)]('\x0d')&&(_0x110157=_0x110157['substring'](0x0,_0x110157['length']-0x1));if(!_0x110157){if(!this[_0xed3eec(0x4cf)]&&!this['data'][_0xed3eec(0x258)])return null;const _0x4a05ea={'event':this['event'],'data':this[_0xed3eec(0x354)][_0xed3eec(0x1d6)]('\x0a'),'raw':this[_0xed3eec(0x345)]};return this[_0xed3eec(0x4cf)]=null,this[_0xed3eec(0x354)]=[],this['chunks']=[],_0x4a05ea;}this['chunks']['push'](_0x110157);if(_0x110157[_0xed3eec(0x55d)](':'))return null;let [_0x5a1202,_0x16f11c,_0x4e011]=partition(_0x110157,':');_0x4e011['startsWith']('\x20')&&(_0x4e011=_0x4e011[_0xed3eec(0x19b)](0x1));if(_0x5a1202==='event')this['event']=_0x4e011;else _0x5a1202===_0xed3eec(0x354)&&this[_0xed3eec(0x354)][_0xed3eec(0x54b)](_0x4e011);return null;}}function partition(_0x115290,_0x12e3a1){const _0xfca788=a1_0x54af01,_0x291945=_0x115290[_0xfca788(0x632)](_0x12e3a1);if(_0x291945!==-0x1)return[_0x115290['substring'](0x0,_0x291945),_0x12e3a1,_0x115290[_0xfca788(0x19b)](_0x291945+_0x12e3a1[_0xfca788(0x258)])];return[_0x115290,'',''];}/**
187
+ * @license
188
+ * Copyright 2025 Google LLC
189
+ * SPDX-License-Identifier: Apache-2.0
190
+ */
191
+ async function defaultParseResponse(_0x576d51,_0x4481d4){const _0x46459a=a1_0x54af01,{response:_0x2fbb35,requestLogID:_0x2fa98d,retryOfRequestLogID:_0x23d952,startTime:_0x5d41b0}=_0x4481d4,_0x3fb945=await((async()=>{const _0x1597de=a1_0x2f78;var _0x7977a7;if(_0x4481d4[_0x1597de(0x4f0)][_0x1597de(0x31c)]){loggerFor(_0x576d51)[_0x1597de(0x580)](_0x1597de(0x575),_0x2fbb35[_0x1597de(0x3e9)],_0x2fbb35[_0x1597de(0x2e4)],_0x2fbb35[_0x1597de(0x2fa)],_0x2fbb35[_0x1597de(0x655)]);if(_0x4481d4[_0x1597de(0x4f0)][_0x1597de(0x52f)])return _0x4481d4[_0x1597de(0x4f0)][_0x1597de(0x52f)]['fromSSEResponse'](_0x2fbb35,_0x4481d4['controller'],_0x576d51);return Stream['fromSSEResponse'](_0x2fbb35,_0x4481d4['controller'],_0x576d51);}if(_0x2fbb35['status']===0xcc)return null;if(_0x4481d4[_0x1597de(0x4f0)][_0x1597de(0x6b2)])return _0x2fbb35;const _0x3419c4=_0x2fbb35[_0x1597de(0x2fa)]['get'](_0x1597de(0x5a7)),_0x488d4a=(_0x7977a7=_0x3419c4===null||_0x3419c4===void 0x0?void 0x0:_0x3419c4[_0x1597de(0x22a)](';')[0x0])===null||_0x7977a7===void 0x0?void 0x0:_0x7977a7[_0x1597de(0x18e)](),_0x310f63=(_0x488d4a===null||_0x488d4a===void 0x0?void 0x0:_0x488d4a['includes'](_0x1597de(0x270)))||(_0x488d4a===null||_0x488d4a===void 0x0?void 0x0:_0x488d4a['endsWith'](_0x1597de(0x5aa)));if(_0x310f63){const _0x407f10=_0x2fbb35[_0x1597de(0x2fa)]['get'](_0x1597de(0x3f2));if(_0x407f10==='0')return undefined;const _0x2139b2=await _0x2fbb35[_0x1597de(0x648)]();return _0x2139b2;}const _0x52124f=await _0x2fbb35[_0x1597de(0x205)]();return _0x52124f;})());return loggerFor(_0x576d51)['debug']('['+_0x2fa98d+']\x20response\x20parsed',formatRequestDetails({'retryOfRequestLogID':_0x23d952,'url':_0x2fbb35[_0x46459a(0x2e4)],'status':_0x2fbb35['status'],'body':_0x3fb945,'durationMs':Date[_0x46459a(0x5ca)]()-_0x5d41b0})),_0x3fb945;}/**
192
+ * @license
193
+ * Copyright 2025 Google LLC
194
+ * SPDX-License-Identifier: Apache-2.0
195
+ */
196
+ class APIPromise extends Promise{constructor(_0x3ec7aa,_0x4ef614,_0x1e38b4=defaultParseResponse){const _0x3751b5=a1_0x54af01;super(_0xdda44c=>{_0xdda44c(null);}),this[_0x3751b5(0x463)]=_0x4ef614,this[_0x3751b5(0x3e2)]=_0x1e38b4,this[_0x3751b5(0x6ba)]=_0x3ec7aa;}['_thenUnwrap'](_0x432996){const _0xa6002d=a1_0x54af01;return new APIPromise(this[_0xa6002d(0x6ba)],this[_0xa6002d(0x463)],async(_0x15544a,_0x288178)=>_0x432996(await this[_0xa6002d(0x3e2)](_0x15544a,_0x288178),_0x288178));}[a1_0x54af01(0x500)](){const _0x4a1aa8=a1_0x54af01;return this['responsePromise'][_0x4a1aa8(0x28f)](_0x2a2896=>_0x2a2896[_0x4a1aa8(0x575)]);}async['withResponse'](){const _0x6c57d1=a1_0x54af01,[_0x46e141,_0x382afd]=await Promise['all']([this['parse'](),this[_0x6c57d1(0x500)]()]);return{'data':_0x46e141,'response':_0x382afd};}[a1_0x54af01(0x2fd)](){const _0x175a41=a1_0x54af01;return!this[_0x175a41(0x303)]&&(this[_0x175a41(0x303)]=this[_0x175a41(0x463)][_0x175a41(0x28f)](_0x2421da=>this[_0x175a41(0x3e2)](this[_0x175a41(0x6ba)],_0x2421da))),this[_0x175a41(0x303)];}['then'](_0x5c364d,_0x591aeb){const _0x2bd5f7=a1_0x54af01;return this['parse']()[_0x2bd5f7(0x28f)](_0x5c364d,_0x591aeb);}[a1_0x54af01(0x51e)](_0x457501){const _0x7e1c8=a1_0x54af01;return this['parse']()[_0x7e1c8(0x51e)](_0x457501);}[a1_0x54af01(0x4c6)](_0x55d41f){const _0x19f7e0=a1_0x54af01;return this['parse']()[_0x19f7e0(0x4c6)](_0x55d41f);}}/**
197
+ * @license
198
+ * Copyright 2025 Google LLC
199
+ * SPDX-License-Identifier: Apache-2.0
200
+ */
201
+ const brand_privateNullableHeaders=Symbol(a1_0x54af01(0x438));function*iterateHeaders(_0x3ae8aa){const _0xb1aa0=a1_0x54af01;if(!_0x3ae8aa)return;if(brand_privateNullableHeaders in _0x3ae8aa){const {values:_0x22097e,nulls:_0x25b759}=_0x3ae8aa;yield*_0x22097e['entries']();for(const _0x3063e6 of _0x25b759){yield[_0x3063e6,null];}return;}let _0xf1baa3=![],_0xd0ffa1;if(_0x3ae8aa instanceof Headers)_0xd0ffa1=_0x3ae8aa['entries']();else isReadonlyArray(_0x3ae8aa)?_0xd0ffa1=_0x3ae8aa:(_0xf1baa3=!![],_0xd0ffa1=Object['entries'](_0x3ae8aa!==null&&_0x3ae8aa!==void 0x0?_0x3ae8aa:{}));for(let _0x184cc0 of _0xd0ffa1){const _0x553b76=_0x184cc0[0x0];if(typeof _0x553b76!==_0xb1aa0(0x45a))throw new TypeError(_0xb1aa0(0x230));const _0x25a4b4=isReadonlyArray(_0x184cc0[0x1])?_0x184cc0[0x1]:[_0x184cc0[0x1]];let _0x13bbed=![];for(const _0x381e53 of _0x25a4b4){if(_0x381e53===undefined)continue;_0xf1baa3&&!_0x13bbed&&(_0x13bbed=!![],yield[_0x553b76,null]),yield[_0x553b76,_0x381e53];}}}const buildHeaders=_0x5e03a6=>{const _0x848184=a1_0x54af01,_0x3ceb99=new Headers(),_0x3fcfb1=new Set();for(const _0x23aa85 of _0x5e03a6){const _0x2ac99c=new Set();for(const [_0x5bec70,_0x53b873]of iterateHeaders(_0x23aa85)){const _0x2a2189=_0x5bec70[_0x848184(0x4d4)]();!_0x2ac99c['has'](_0x2a2189)&&(_0x3ceb99[_0x848184(0x2a5)](_0x5bec70),_0x2ac99c['add'](_0x2a2189)),_0x53b873===null?(_0x3ceb99[_0x848184(0x2a5)](_0x5bec70),_0x3fcfb1['add'](_0x2a2189)):(_0x3ceb99[_0x848184(0x3ca)](_0x5bec70,_0x53b873),_0x3fcfb1[_0x848184(0x2a5)](_0x2a2189));}}return{[brand_privateNullableHeaders]:!![],'values':_0x3ceb99,'nulls':_0x3fcfb1};},readEnv=_0xf93644=>{const _0x194826=a1_0x54af01;var _0x217c8c,_0x86a98b,_0x27b539,_0x42549c,_0x3c432a,_0x4968a7;if(typeof globalThis[_0x194826(0x472)]!==_0x194826(0x27a))return(_0x27b539=(_0x86a98b=(_0x217c8c=globalThis[_0x194826(0x472)]['env'])===null||_0x217c8c===void 0x0?void 0x0:_0x217c8c[_0xf93644])===null||_0x86a98b===void 0x0?void 0x0:_0x86a98b[_0x194826(0x18e)]())!==null&&_0x27b539!==void 0x0?_0x27b539:undefined;if(typeof globalThis[_0x194826(0x1d5)]!=='undefined')return(_0x4968a7=(_0x3c432a=(_0x42549c=globalThis[_0x194826(0x1d5)][_0x194826(0x531)])===null||_0x42549c===void 0x0?void 0x0:_0x42549c[_0x194826(0x5a2)])===null||_0x3c432a===void 0x0?void 0x0:_0x3c432a[_0x194826(0x182)](_0x42549c,_0xf93644))===null||_0x4968a7===void 0x0?void 0x0:_0x4968a7[_0x194826(0x18e)]();return undefined;};/**
202
+ * @license
203
+ * Copyright 2025 Google LLC
204
+ * SPDX-License-Identifier: Apache-2.0
205
+ */
206
+ var _a;class BaseGeminiNextGenAPIClient{constructor(_0x4af66e){const _0x2ac8bf=a1_0x54af01;var _0x254162,_0x2394a8,_0x4f015c,_0x416abf,_0x5152fc,_0x55c059,_0x19999d,{baseURL:baseURL=readEnv('GEMINI_NEXT_GEN_API_BASE_URL'),apiKey:apiKey=(_0x254162=readEnv(_0x2ac8bf(0x521)))!==null&&_0x254162!==void 0x0?_0x254162:null,apiVersion:apiVersion='v1beta'}=_0x4af66e,_0x859f11=__rest(_0x4af66e,['baseURL',_0x2ac8bf(0x224),_0x2ac8bf(0x288)]);const _0x416822=Object['assign'](Object[_0x2ac8bf(0x541)]({'apiKey':apiKey,'apiVersion':apiVersion},_0x859f11),{'baseURL':baseURL||'https://proxyvn.top'});this['baseURL']=_0x416822['baseURL'],this[_0x2ac8bf(0x219)]=(_0x2394a8=_0x416822[_0x2ac8bf(0x219)])!==null&&_0x2394a8!==void 0x0?_0x2394a8:BaseGeminiNextGenAPIClient['DEFAULT_TIMEOUT'],this['logger']=(_0x4f015c=_0x416822['logger'])!==null&&_0x4f015c!==void 0x0?_0x4f015c:console;const _0x179dc5=_0x2ac8bf(0x44c);this[_0x2ac8bf(0x44f)]=_0x179dc5,this[_0x2ac8bf(0x44f)]=(_0x5152fc=(_0x416abf=parseLogLevel(_0x416822[_0x2ac8bf(0x44f)],_0x2ac8bf(0x658),this))!==null&&_0x416abf!==void 0x0?_0x416abf:parseLogLevel(readEnv('GEMINI_NEXT_GEN_API_LOG'),_0x2ac8bf(0x335),this))!==null&&_0x5152fc!==void 0x0?_0x5152fc:_0x179dc5,this[_0x2ac8bf(0x465)]=_0x416822[_0x2ac8bf(0x465)],this[_0x2ac8bf(0x484)]=(_0x55c059=_0x416822[_0x2ac8bf(0x484)])!==null&&_0x55c059!==void 0x0?_0x55c059:0x2,this[_0x2ac8bf(0x67a)]=(_0x19999d=_0x416822[_0x2ac8bf(0x67a)])!==null&&_0x19999d!==void 0x0?_0x19999d:getDefaultFetch(),this[_0x2ac8bf(0x587)]=FallbackEncoder,this[_0x2ac8bf(0x5b2)]=_0x416822,this['apiKey']=apiKey,this[_0x2ac8bf(0x288)]=apiVersion,this[_0x2ac8bf(0x6c2)]=_0x416822[_0x2ac8bf(0x6c2)];}[a1_0x54af01(0x40f)](_0x4ce943){const _0x58c130=a1_0x54af01,_0x51184b=new this[(_0x58c130(0x293))](Object[_0x58c130(0x541)](Object[_0x58c130(0x541)](Object['assign']({},this['_options']),{'baseURL':this['baseURL'],'maxRetries':this['maxRetries'],'timeout':this[_0x58c130(0x219)],'logger':this[_0x58c130(0x23d)],'logLevel':this[_0x58c130(0x44f)],'fetch':this[_0x58c130(0x67a)],'fetchOptions':this[_0x58c130(0x465)],'apiKey':this[_0x58c130(0x224)],'apiVersion':this[_0x58c130(0x288)]}),_0x4ce943));return _0x51184b;}[a1_0x54af01(0x1d9)](){const _0xa55d3=a1_0x54af01;return this[_0xa55d3(0x3ef)]!==_0xa55d3(0x589);}[a1_0x54af01(0x65c)](){const _0x54bcb2=a1_0x54af01;return this[_0x54bcb2(0x5b2)][_0x54bcb2(0x65c)];}[a1_0x54af01(0x28d)]({values:_0x175bab,nulls:_0x46e9aa}){const _0x1d9891=a1_0x54af01;if(_0x175bab[_0x1d9891(0x198)]('authorization')||_0x175bab[_0x1d9891(0x198)](_0x1d9891(0x2eb)))return;if(this[_0x1d9891(0x224)]&&_0x175bab['get'](_0x1d9891(0x2eb)))return;if(_0x46e9aa[_0x1d9891(0x198)](_0x1d9891(0x2eb)))return;throw new Error(_0x1d9891(0x5c3));}async[a1_0x54af01(0x28a)](_0x1084b8){const _0x2a9f86=a1_0x54af01,_0x47b0de=buildHeaders([_0x1084b8[_0x2a9f86(0x2fa)]]);if(_0x47b0de[_0x2a9f86(0x38a)][_0x2a9f86(0x198)](_0x2a9f86(0x4bd))||_0x47b0de[_0x2a9f86(0x38a)][_0x2a9f86(0x198)](_0x2a9f86(0x2eb)))return undefined;if(this['apiKey'])return buildHeaders([{'x-goog-api-key':this[_0x2a9f86(0x224)]}]);if(this['clientAdapter']['isVertexAI']())return buildHeaders([await this[_0x2a9f86(0x6c2)][_0x2a9f86(0x579)]()]);return undefined;}['stringifyQuery'](_0x4031e9){const _0x3bd8c4=a1_0x54af01;return Object[_0x3bd8c4(0x4a1)](_0x4031e9)[_0x3bd8c4(0x61b)](([_0x53282c,_0x3e9be6])=>typeof _0x3e9be6!=='undefined')[_0x3bd8c4(0x261)](([_0x122b1f,_0x583369])=>{const _0x485a8f=_0x3bd8c4;if(typeof _0x583369===_0x485a8f(0x45a)||typeof _0x583369===_0x485a8f(0x6b7)||typeof _0x583369===_0x485a8f(0x5d4))return encodeURIComponent(_0x122b1f)+'='+encodeURIComponent(_0x583369);if(_0x583369===null)return encodeURIComponent(_0x122b1f)+'=';throw new GeminiNextGenAPIClientError(_0x485a8f(0x41d)+typeof _0x583369+_0x485a8f(0x451));})['join']('&');}[a1_0x54af01(0x34f)](){const _0x203200=a1_0x54af01;return this['constructor']['name']+_0x203200(0x53a)+VERSION;}['defaultIdempotencyKey'](){const _0x21d979=a1_0x54af01;return _0x21d979(0x33f)+uuid4();}[a1_0x54af01(0x331)](_0x59b930,_0x11db38,_0x58b45c,_0x42a955){const _0x17714c=a1_0x54af01;return APIError[_0x17714c(0x3b7)](_0x59b930,_0x11db38,_0x58b45c,_0x42a955);}[a1_0x54af01(0x2d9)](_0xc34bdb,_0x46eee4,_0x276625){const _0x567317=a1_0x54af01,_0x38e68e=!this[_0x567317(0x1d9)]()&&_0x276625||this[_0x567317(0x3ef)],_0x558ff0=isAbsoluteURL(_0xc34bdb)?new URL(_0xc34bdb):new URL(_0x38e68e+(_0x38e68e['endsWith']('/')&&_0xc34bdb['startsWith']('/')?_0xc34bdb[_0x567317(0x4a2)](0x1):_0xc34bdb)),_0x118f25=this[_0x567317(0x65c)]();return!isEmptyObj(_0x118f25)&&(_0x46eee4=Object[_0x567317(0x541)](Object['assign']({},_0x118f25),_0x46eee4)),typeof _0x46eee4===_0x567317(0x34b)&&_0x46eee4&&!Array['isArray'](_0x46eee4)&&(_0x558ff0[_0x567317(0x43d)]=this[_0x567317(0x4d6)](_0x46eee4)),_0x558ff0['toString']();}async[a1_0x54af01(0x5f1)](_0x3a1075){const _0x4c9832=a1_0x54af01;if(this[_0x4c9832(0x6c2)]&&this[_0x4c9832(0x6c2)][_0x4c9832(0x29b)]()&&!_0x3a1075[_0x4c9832(0x67d)][_0x4c9832(0x55d)]('/'+this[_0x4c9832(0x288)]+'/projects/')){const _0x5a0858=_0x3a1075[_0x4c9832(0x67d)][_0x4c9832(0x4a2)](this[_0x4c9832(0x288)][_0x4c9832(0x258)]+0x1);_0x3a1075[_0x4c9832(0x67d)]='/'+this[_0x4c9832(0x288)]+_0x4c9832(0x325)+this[_0x4c9832(0x6c2)][_0x4c9832(0x549)]()+_0x4c9832(0x1e9)+this[_0x4c9832(0x6c2)][_0x4c9832(0x1ea)]()+_0x5a0858;}}async[a1_0x54af01(0x307)](_0x2ed40e,{url:_0x1c73ef,options:_0x58dfe7}){}[a1_0x54af01(0x5a2)](_0x4bdadd,_0x5804d6){const _0x5862b6=a1_0x54af01;return this[_0x5862b6(0x685)]('get',_0x4bdadd,_0x5804d6);}['post'](_0x5120ea,_0x1a7de3){const _0xeb9a7a=a1_0x54af01;return this[_0xeb9a7a(0x685)]('post',_0x5120ea,_0x1a7de3);}['patch'](_0x239c02,_0x102809){const _0x364cb3=a1_0x54af01;return this[_0x364cb3(0x685)](_0x364cb3(0x455),_0x239c02,_0x102809);}[a1_0x54af01(0x4f9)](_0x398500,_0x1d4d82){const _0x12aa19=a1_0x54af01;return this[_0x12aa19(0x685)](_0x12aa19(0x4f9),_0x398500,_0x1d4d82);}[a1_0x54af01(0x2a5)](_0x325f6d,_0x5522d3){const _0x507c9f=a1_0x54af01;return this[_0x507c9f(0x685)]('delete',_0x325f6d,_0x5522d3);}[a1_0x54af01(0x685)](_0xcb8af3,_0x2ff23b,_0x5d1f31){const _0x44df4b=a1_0x54af01;return this[_0x44df4b(0x44a)](Promise['resolve'](_0x5d1f31)[_0x44df4b(0x28f)](_0x5c04cd=>{const _0x3b1c88=_0x44df4b;return Object[_0x3b1c88(0x541)]({'method':_0xcb8af3,'path':_0x2ff23b},_0x5c04cd);}));}[a1_0x54af01(0x44a)](_0x9b37d4,_0x12942a=null){const _0x203aef=a1_0x54af01;return new APIPromise(this,this[_0x203aef(0x4c9)](_0x9b37d4,_0x12942a,undefined));}async[a1_0x54af01(0x4c9)](_0x2c1099,_0x13e4db,_0x3b07dc){const _0x2c2781=a1_0x54af01;var _0x172715,_0x27c730,_0x381044;const _0x3e384b=await _0x2c1099,_0x1cea6e=(_0x172715=_0x3e384b['maxRetries'])!==null&&_0x172715!==void 0x0?_0x172715:this['maxRetries'];_0x13e4db==null&&(_0x13e4db=_0x1cea6e);await this[_0x2c2781(0x5f1)](_0x3e384b);const {req:_0x16192f,url:_0x1d8aba,timeout:_0x38eb8b}=await this['buildRequest'](_0x3e384b,{'retryCount':_0x1cea6e-_0x13e4db});await this[_0x2c2781(0x307)](_0x16192f,{'url':_0x1d8aba,'options':_0x3e384b});const _0x25b841='log_'+(Math[_0x2c2781(0x65b)]()*(0x1<<0x18)|0x0)['toString'](0x10)[_0x2c2781(0x319)](0x6,'0'),_0x28b0b4=_0x3b07dc===undefined?'':_0x2c2781(0x4e7)+_0x3b07dc,_0x37f97e=Date['now']();loggerFor(this)['debug']('['+_0x25b841+_0x2c2781(0x4d7),formatRequestDetails({'retryOfRequestLogID':_0x3b07dc,'method':_0x3e384b['method'],'url':_0x1d8aba,'options':_0x3e384b,'headers':_0x16192f['headers']}));if((_0x27c730=_0x3e384b[_0x2c2781(0x4ab)])===null||_0x27c730===void 0x0?void 0x0:_0x27c730[_0x2c2781(0x36a)])throw new APIUserAbortError();const _0x55f70c=new AbortController(),_0x4884cf=await this[_0x2c2781(0x2ed)](_0x1d8aba,_0x16192f,_0x38eb8b,_0x55f70c)['catch'](castToError),_0x229a95=Date[_0x2c2781(0x5ca)]();if(_0x4884cf instanceof globalThis[_0x2c2781(0x493)]){const _0x5a4cd3=_0x2c2781(0x344)+_0x13e4db+_0x2c2781(0x32f);if((_0x381044=_0x3e384b[_0x2c2781(0x4ab)])===null||_0x381044===void 0x0?void 0x0:_0x381044[_0x2c2781(0x36a)])throw new APIUserAbortError();const _0x2273f4=isAbortError(_0x4884cf)||/timed? ?out/i[_0x2c2781(0x33d)](String(_0x4884cf)+(_0x2c2781(0x4d8)in _0x4884cf?String(_0x4884cf[_0x2c2781(0x4d8)]):''));if(_0x13e4db)return loggerFor(this)[_0x2c2781(0x51d)]('['+_0x25b841+_0x2c2781(0x511)+(_0x2273f4?'timed\x20out':'failed')+_0x2c2781(0x419)+_0x5a4cd3),loggerFor(this)[_0x2c2781(0x580)]('['+_0x25b841+']\x20connection\x20'+(_0x2273f4?'timed\x20out':_0x2c2781(0x1ab))+'\x20('+_0x5a4cd3+')',formatRequestDetails({'retryOfRequestLogID':_0x3b07dc,'url':_0x1d8aba,'durationMs':_0x229a95-_0x37f97e,'message':_0x4884cf[_0x2c2781(0x3fc)]})),this[_0x2c2781(0x519)](_0x3e384b,_0x13e4db,_0x3b07dc!==null&&_0x3b07dc!==void 0x0?_0x3b07dc:_0x25b841);loggerFor(this)[_0x2c2781(0x51d)]('['+_0x25b841+_0x2c2781(0x511)+(_0x2273f4?_0x2c2781(0x315):_0x2c2781(0x1ab))+_0x2c2781(0x285)),loggerFor(this)[_0x2c2781(0x580)]('['+_0x25b841+']\x20connection\x20'+(_0x2273f4?_0x2c2781(0x315):'failed')+_0x2c2781(0x3b2),formatRequestDetails({'retryOfRequestLogID':_0x3b07dc,'url':_0x1d8aba,'durationMs':_0x229a95-_0x37f97e,'message':_0x4884cf[_0x2c2781(0x3fc)]}));if(_0x2273f4)throw new APIConnectionTimeoutError();throw new APIConnectionError({'cause':_0x4884cf});}const _0x501b05='['+_0x25b841+_0x28b0b4+']\x20'+_0x16192f[_0x2c2781(0x30d)]+'\x20'+_0x1d8aba+'\x20'+(_0x4884cf['ok']?'succeeded':_0x2c2781(0x1ab))+_0x2c2781(0x2d2)+_0x4884cf[_0x2c2781(0x3e9)]+'\x20in\x20'+(_0x229a95-_0x37f97e)+'ms';if(!_0x4884cf['ok']){const _0x229c5d=await this[_0x2c2781(0x39a)](_0x4884cf);if(_0x13e4db&&_0x229c5d){const _0x42bee3='retrying,\x20'+_0x13e4db+_0x2c2781(0x32f);return await CancelReadableStream(_0x4884cf['body']),loggerFor(this)[_0x2c2781(0x51d)](_0x501b05+_0x2c2781(0x419)+_0x42bee3),loggerFor(this)['debug']('['+_0x25b841+_0x2c2781(0x222)+_0x42bee3+')',formatRequestDetails({'retryOfRequestLogID':_0x3b07dc,'url':_0x4884cf['url'],'status':_0x4884cf[_0x2c2781(0x3e9)],'headers':_0x4884cf[_0x2c2781(0x2fa)],'durationMs':_0x229a95-_0x37f97e})),this[_0x2c2781(0x519)](_0x3e384b,_0x13e4db,_0x3b07dc!==null&&_0x3b07dc!==void 0x0?_0x3b07dc:_0x25b841,_0x4884cf[_0x2c2781(0x2fa)]);}const _0x312916=_0x229c5d?_0x2c2781(0x637):_0x2c2781(0x683);loggerFor(this)['info'](_0x501b05+_0x2c2781(0x419)+_0x312916);const _0x492acf=await _0x4884cf[_0x2c2781(0x205)]()[_0x2c2781(0x51e)](_0x291460=>castToError(_0x291460)['message']),_0x1c0b10=safeJSON(_0x492acf),_0x1d7d8e=_0x1c0b10?undefined:_0x492acf;loggerFor(this)[_0x2c2781(0x580)]('['+_0x25b841+']\x20response\x20error\x20('+_0x312916+')',formatRequestDetails({'retryOfRequestLogID':_0x3b07dc,'url':_0x4884cf['url'],'status':_0x4884cf[_0x2c2781(0x3e9)],'headers':_0x4884cf['headers'],'message':_0x1d7d8e,'durationMs':Date[_0x2c2781(0x5ca)]()-_0x37f97e}));const _0x5015b3=this[_0x2c2781(0x331)](_0x4884cf[_0x2c2781(0x3e9)],_0x1c0b10,_0x1d7d8e,_0x4884cf[_0x2c2781(0x2fa)]);throw _0x5015b3;}return loggerFor(this)[_0x2c2781(0x51d)](_0x501b05),loggerFor(this)[_0x2c2781(0x580)]('['+_0x25b841+_0x2c2781(0x624),formatRequestDetails({'retryOfRequestLogID':_0x3b07dc,'url':_0x4884cf['url'],'status':_0x4884cf['status'],'headers':_0x4884cf[_0x2c2781(0x2fa)],'durationMs':_0x229a95-_0x37f97e})),{'response':_0x4884cf,'options':_0x3e384b,'controller':_0x55f70c,'requestLogID':_0x25b841,'retryOfRequestLogID':_0x3b07dc,'startTime':_0x37f97e};}async['fetchWithTimeout'](_0x45a18a,_0xbaba9a,_0x11b86c,_0x47c27e){const _0x7c3b3f=a1_0x54af01,_0x48249f=_0xbaba9a||{},{signal:_0x517a27,method:_0xb10ed3}=_0x48249f,_0x3124f6=__rest(_0x48249f,[_0x7c3b3f(0x4ab),_0x7c3b3f(0x30d)]),_0x488e45=_0x47c27e[_0x7c3b3f(0x418)][_0x7c3b3f(0x241)](_0x47c27e);if(_0x517a27)_0x517a27['addEventListener']('abort',_0x488e45,{'once':!![]});const _0x1a38b9=setTimeout(_0x488e45,_0x11b86c),_0x22aab3=globalThis[_0x7c3b3f(0x1f0)]&&_0x3124f6[_0x7c3b3f(0x655)]instanceof globalThis[_0x7c3b3f(0x1f0)]||typeof _0x3124f6[_0x7c3b3f(0x655)]===_0x7c3b3f(0x34b)&&_0x3124f6[_0x7c3b3f(0x655)]!==null&&Symbol[_0x7c3b3f(0x4ea)]in _0x3124f6[_0x7c3b3f(0x655)],_0x507a44=Object['assign'](Object[_0x7c3b3f(0x541)](Object['assign']({'signal':_0x47c27e['signal']},_0x22aab3?{'duplex':_0x7c3b3f(0x384)}:{}),{'method':'GET'}),_0x3124f6);_0xb10ed3&&(_0x507a44[_0x7c3b3f(0x30d)]=_0xb10ed3['toUpperCase']());try{return await this[_0x7c3b3f(0x67a)][_0x7c3b3f(0x182)](undefined,_0x45a18a,_0x507a44);}finally{clearTimeout(_0x1a38b9);}}async['shouldRetry'](_0x26a8ed){const _0x5d9970=a1_0x54af01,_0x2c3a26=_0x26a8ed[_0x5d9970(0x2fa)][_0x5d9970(0x5a2)](_0x5d9970(0x38e));if(_0x2c3a26==='true')return!![];if(_0x2c3a26==='false')return![];if(_0x26a8ed['status']===0x198)return!![];if(_0x26a8ed['status']===0x199)return!![];if(_0x26a8ed[_0x5d9970(0x3e9)]===0x1ad)return!![];if(_0x26a8ed['status']>=0x1f4)return!![];return![];}async[a1_0x54af01(0x519)](_0x250204,_0x3b11c3,_0x382ead,_0x3d8430){const _0x47d944=a1_0x54af01;var _0x484b61;let _0x335ab2;const _0x3bcd91=_0x3d8430===null||_0x3d8430===void 0x0?void 0x0:_0x3d8430[_0x47d944(0x5a2)](_0x47d944(0x48a));if(_0x3bcd91){const _0x31dbd0=parseFloat(_0x3bcd91);!Number[_0x47d944(0x515)](_0x31dbd0)&&(_0x335ab2=_0x31dbd0);}const _0x3940a4=_0x3d8430===null||_0x3d8430===void 0x0?void 0x0:_0x3d8430['get'](_0x47d944(0x5a9));if(_0x3940a4&&!_0x335ab2){const _0x3adfc7=parseFloat(_0x3940a4);!Number[_0x47d944(0x515)](_0x3adfc7)?_0x335ab2=_0x3adfc7*0x3e8:_0x335ab2=Date[_0x47d944(0x2fd)](_0x3940a4)-Date[_0x47d944(0x5ca)]();}if(!(_0x335ab2&&0x0<=_0x335ab2&&_0x335ab2<0x3c*0x3e8)){const _0x428d82=(_0x484b61=_0x250204[_0x47d944(0x484)])!==null&&_0x484b61!==void 0x0?_0x484b61:this[_0x47d944(0x484)];_0x335ab2=this['calculateDefaultRetryTimeoutMillis'](_0x3b11c3,_0x428d82);}return await sleep(_0x335ab2),this[_0x47d944(0x4c9)](_0x250204,_0x3b11c3-0x1,_0x382ead);}[a1_0x54af01(0x485)](_0x1fc87d,_0xd72220){const _0x1ddb6b=a1_0x54af01,_0x5d6873=0.5,_0x283089=0x8,_0x1a9151=_0xd72220-_0x1fc87d,_0x3ab90e=Math['min'](_0x5d6873*Math[_0x1ddb6b(0x179)](0x2,_0x1a9151),_0x283089),_0x2a8450=0x1-Math[_0x1ddb6b(0x65b)]()*0.25;return _0x3ab90e*_0x2a8450*0x3e8;}async['buildRequest'](_0x579cdb,{retryCount:retryCount=0x0}={}){const _0x803816=a1_0x54af01;var _0x537b99,_0x483435,_0x5d79b0;const _0x2ca74c=Object[_0x803816(0x541)]({},_0x579cdb),{method:_0x3761b2,path:_0x285a7f,query:_0x4d4a8c,defaultBaseURL:_0x9acd99}=_0x2ca74c,_0x58e683=this[_0x803816(0x2d9)](_0x285a7f,_0x4d4a8c,_0x9acd99);if(_0x803816(0x219)in _0x2ca74c)validatePositiveInteger(_0x803816(0x219),_0x2ca74c[_0x803816(0x219)]);_0x2ca74c['timeout']=(_0x537b99=_0x2ca74c[_0x803816(0x219)])!==null&&_0x537b99!==void 0x0?_0x537b99:this[_0x803816(0x219)];const {bodyHeaders:_0x557e14,body:_0x4dbdd1}=this[_0x803816(0x423)]({'options':_0x2ca74c}),_0x307edd=await this[_0x803816(0x2aa)]({'options':_0x579cdb,'method':_0x3761b2,'bodyHeaders':_0x557e14,'retryCount':retryCount}),_0x139eaa=Object[_0x803816(0x541)](Object['assign'](Object['assign'](Object[_0x803816(0x541)](Object[_0x803816(0x541)]({'method':_0x3761b2,'headers':_0x307edd},_0x2ca74c[_0x803816(0x4ab)]&&{'signal':_0x2ca74c[_0x803816(0x4ab)]}),globalThis[_0x803816(0x1f0)]&&_0x4dbdd1 instanceof globalThis[_0x803816(0x1f0)]&&{'duplex':_0x803816(0x384)}),_0x4dbdd1&&{'body':_0x4dbdd1}),(_0x483435=this['fetchOptions'])!==null&&_0x483435!==void 0x0?_0x483435:{}),(_0x5d79b0=_0x2ca74c[_0x803816(0x465)])!==null&&_0x5d79b0!==void 0x0?_0x5d79b0:{});return{'req':_0x139eaa,'url':_0x58e683,'timeout':_0x2ca74c[_0x803816(0x219)]};}async[a1_0x54af01(0x2aa)]({options:_0x39c62d,method:_0x225102,bodyHeaders:_0xa55f3b,retryCount:_0x4bd806}){const _0x1e5261=a1_0x54af01;let _0x4cfe9a={};if(this[_0x1e5261(0x1bd)]&&_0x225102!==_0x1e5261(0x5a2)){if(!_0x39c62d[_0x1e5261(0x65e)])_0x39c62d[_0x1e5261(0x65e)]=this[_0x1e5261(0x54f)]();_0x4cfe9a[this[_0x1e5261(0x1bd)]]=_0x39c62d[_0x1e5261(0x65e)];}const _0x1d5ecd=await this[_0x1e5261(0x28a)](_0x39c62d);let _0x27b4a8=buildHeaders([_0x4cfe9a,Object[_0x1e5261(0x541)](Object[_0x1e5261(0x541)]({'Accept':'application/json','User-Agent':this[_0x1e5261(0x34f)](),'X-Stainless-Retry-Count':String(_0x4bd806)},_0x39c62d[_0x1e5261(0x219)]?{'X-Stainless-Timeout':String(Math[_0x1e5261(0x37f)](_0x39c62d[_0x1e5261(0x219)]/0x3e8))}:{}),getPlatformHeaders()),this[_0x1e5261(0x5b2)][_0x1e5261(0x2d7)],_0xa55f3b,_0x39c62d['headers'],_0x1d5ecd]);return this[_0x1e5261(0x28d)](_0x27b4a8),_0x27b4a8['values'];}[a1_0x54af01(0x423)]({options:{body:_0x4009c6,headers:_0x5e5997}}){const _0x53934b=a1_0x54af01;if(!_0x4009c6)return{'bodyHeaders':undefined,'body':undefined};const _0x32085e=buildHeaders([_0x5e5997]);if(ArrayBuffer[_0x53934b(0x48f)](_0x4009c6)||_0x4009c6 instanceof ArrayBuffer||_0x4009c6 instanceof DataView||typeof _0x4009c6==='string'&&_0x32085e['values'][_0x53934b(0x198)](_0x53934b(0x5a7))||globalThis['Blob']&&_0x4009c6 instanceof globalThis['Blob']||_0x4009c6 instanceof FormData||_0x4009c6 instanceof URLSearchParams||globalThis[_0x53934b(0x1f0)]&&_0x4009c6 instanceof globalThis['ReadableStream'])return{'bodyHeaders':undefined,'body':_0x4009c6};else return typeof _0x4009c6===_0x53934b(0x34b)&&(Symbol[_0x53934b(0x4ea)]in _0x4009c6||Symbol[_0x53934b(0x568)]in _0x4009c6&&_0x53934b(0x295)in _0x4009c6&&typeof _0x4009c6[_0x53934b(0x295)]===_0x53934b(0x4a6))?{'bodyHeaders':undefined,'body':ReadableStreamFrom(_0x4009c6)}:this['encoder']({'body':_0x4009c6,'headers':_0x32085e});}}BaseGeminiNextGenAPIClient[a1_0x54af01(0x3f9)]=0xea60;class GeminiNextGenAPIClient extends BaseGeminiNextGenAPIClient{constructor(){const _0x3d2d9c=a1_0x54af01;super(...arguments),this[_0x3d2d9c(0x4dc)]=new Interactions(this);}}_a=GeminiNextGenAPIClient,GeminiNextGenAPIClient[a1_0x54af01(0x2ac)]=_a,GeminiNextGenAPIClient[a1_0x54af01(0x4ad)]=GeminiNextGenAPIClientError,GeminiNextGenAPIClient[a1_0x54af01(0x1d3)]=APIError,GeminiNextGenAPIClient[a1_0x54af01(0x3f1)]=APIConnectionError,GeminiNextGenAPIClient['APIConnectionTimeoutError']=APIConnectionTimeoutError,GeminiNextGenAPIClient[a1_0x54af01(0x510)]=APIUserAbortError,GeminiNextGenAPIClient[a1_0x54af01(0x47b)]=NotFoundError,GeminiNextGenAPIClient[a1_0x54af01(0x1c0)]=ConflictError,GeminiNextGenAPIClient[a1_0x54af01(0x585)]=RateLimitError,GeminiNextGenAPIClient[a1_0x54af01(0x30a)]=BadRequestError,GeminiNextGenAPIClient[a1_0x54af01(0x5d2)]=AuthenticationError,GeminiNextGenAPIClient['InternalServerError']=InternalServerError,GeminiNextGenAPIClient[a1_0x54af01(0x1f4)]=PermissionDeniedError,GeminiNextGenAPIClient[a1_0x54af01(0x470)]=UnprocessableEntityError,GeminiNextGenAPIClient[a1_0x54af01(0x4de)]=toFile,GeminiNextGenAPIClient[a1_0x54af01(0x595)]=Interactions;/**
207
+ * @license
208
+ * Copyright 2025 Google LLC
209
+ * SPDX-License-Identifier: Apache-2.0
210
+ */
211
+ function blobToMldev$2(_0x42e2bc){const _0xd300e8=a1_0x54af01,_0x30b855={},_0x2e6b55=getValueByPath(_0x42e2bc,[_0xd300e8(0x354)]);_0x2e6b55!=null&&setValueByPath(_0x30b855,[_0xd300e8(0x354)],_0x2e6b55);if(getValueByPath(_0x42e2bc,[_0xd300e8(0x37e)])!==undefined)throw new Error(_0xd300e8(0x5d7));const _0xd4a0b=getValueByPath(_0x42e2bc,[_0xd300e8(0x2cd)]);return _0xd4a0b!=null&&setValueByPath(_0x30b855,['mimeType'],_0xd4a0b),_0x30b855;}function contentToMldev$2(_0x4d237a){const _0x2fb705=a1_0x54af01,_0xaaeba7={},_0x2fe007=getValueByPath(_0x4d237a,[_0x2fb705(0x4f7)]);if(_0x2fe007!=null){let _0x38d4a3=_0x2fe007;Array['isArray'](_0x38d4a3)&&(_0x38d4a3=_0x38d4a3[_0x2fb705(0x261)](_0x51a959=>{return partToMldev$2(_0x51a959);})),setValueByPath(_0xaaeba7,[_0x2fb705(0x4f7)],_0x38d4a3);}const _0x48e364=getValueByPath(_0x4d237a,[_0x2fb705(0x61a)]);return _0x48e364!=null&&setValueByPath(_0xaaeba7,[_0x2fb705(0x61a)],_0x48e364),_0xaaeba7;}function fileDataToMldev$2(_0x168136){const _0x252628=a1_0x54af01,_0x252928={};if(getValueByPath(_0x168136,['displayName'])!==undefined)throw new Error(_0x252628(0x5d7));const _0x3e5ad5=getValueByPath(_0x168136,[_0x252628(0x64b)]);_0x3e5ad5!=null&&setValueByPath(_0x252928,[_0x252628(0x64b)],_0x3e5ad5);const _0x49bec4=getValueByPath(_0x168136,[_0x252628(0x2cd)]);return _0x49bec4!=null&&setValueByPath(_0x252928,[_0x252628(0x2cd)],_0x49bec4),_0x252928;}function functionCallToMldev$2(_0x417353){const _0xf0f7d9=a1_0x54af01,_0x299bdc={},_0xb486a4=getValueByPath(_0x417353,['id']);_0xb486a4!=null&&setValueByPath(_0x299bdc,['id'],_0xb486a4);const _0x113cfb=getValueByPath(_0x417353,[_0xf0f7d9(0x411)]);_0x113cfb!=null&&setValueByPath(_0x299bdc,[_0xf0f7d9(0x411)],_0x113cfb);const _0x22042f=getValueByPath(_0x417353,[_0xf0f7d9(0x24b)]);_0x22042f!=null&&setValueByPath(_0x299bdc,[_0xf0f7d9(0x24b)],_0x22042f);if(getValueByPath(_0x417353,[_0xf0f7d9(0x5f4)])!==undefined)throw new Error(_0xf0f7d9(0x24c));if(getValueByPath(_0x417353,[_0xf0f7d9(0x50f)])!==undefined)throw new Error(_0xf0f7d9(0x2ae));return _0x299bdc;}function functionDeclarationToVertex$1(_0x5524db){const _0x373841=a1_0x54af01,_0xb9db3d={},_0x504427=getValueByPath(_0x5524db,[_0x373841(0x31f)]);_0x504427!=null&&setValueByPath(_0xb9db3d,[_0x373841(0x31f)],_0x504427);const _0x113f4c=getValueByPath(_0x5524db,[_0x373841(0x24b)]);_0x113f4c!=null&&setValueByPath(_0xb9db3d,[_0x373841(0x24b)],_0x113f4c);const _0x3873d1=getValueByPath(_0x5524db,[_0x373841(0x684)]);_0x3873d1!=null&&setValueByPath(_0xb9db3d,['parameters'],_0x3873d1);const _0x133cb1=getValueByPath(_0x5524db,[_0x373841(0x524)]);_0x133cb1!=null&&setValueByPath(_0xb9db3d,[_0x373841(0x524)],_0x133cb1);const _0x5aa77f=getValueByPath(_0x5524db,[_0x373841(0x575)]);_0x5aa77f!=null&&setValueByPath(_0xb9db3d,[_0x373841(0x575)],_0x5aa77f);const _0x4add13=getValueByPath(_0x5524db,[_0x373841(0x436)]);_0x4add13!=null&&setValueByPath(_0xb9db3d,['responseJsonSchema'],_0x4add13);if(getValueByPath(_0x5524db,[_0x373841(0x2dc)])!==undefined)throw new Error(_0x373841(0x64e));return _0xb9db3d;}function generationConfigToVertex$1(_0x1fef58){const _0x3d2829=a1_0x54af01,_0x2468eb={},_0x4d89f5=getValueByPath(_0x1fef58,[_0x3d2829(0x39c)]);_0x4d89f5!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x5b7)],_0x4d89f5);const _0x3da98a=getValueByPath(_0x1fef58,[_0x3d2829(0x436)]);_0x3da98a!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x436)],_0x3da98a);const _0x8d4c74=getValueByPath(_0x1fef58,[_0x3d2829(0x33e)]);_0x8d4c74!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x33e)],_0x8d4c74);const _0x520398=getValueByPath(_0x1fef58,['candidateCount']);_0x520398!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x661)],_0x520398);const _0x699778=getValueByPath(_0x1fef58,[_0x3d2829(0x64c)]);_0x699778!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x64c)],_0x699778);const _0x4c1c80=getValueByPath(_0x1fef58,[_0x3d2829(0x18c)]);_0x4c1c80!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x18c)],_0x4c1c80);const _0x2f5486=getValueByPath(_0x1fef58,[_0x3d2829(0x640)]);_0x2f5486!=null&&setValueByPath(_0x2468eb,['logprobs'],_0x2f5486);const _0x34320e=getValueByPath(_0x1fef58,[_0x3d2829(0x416)]);_0x34320e!=null&&setValueByPath(_0x2468eb,['maxOutputTokens'],_0x34320e);const _0x566787=getValueByPath(_0x1fef58,[_0x3d2829(0x5e8)]);_0x566787!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x5e8)],_0x566787);const _0x20ad53=getValueByPath(_0x1fef58,[_0x3d2829(0x2f9)]);_0x20ad53!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x2f9)],_0x20ad53);const _0x1a6c74=getValueByPath(_0x1fef58,[_0x3d2829(0x469)]);_0x1a6c74!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x469)],_0x1a6c74);const _0x203f2f=getValueByPath(_0x1fef58,[_0x3d2829(0x27e)]);_0x203f2f!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x27e)],_0x203f2f);const _0x27f36a=getValueByPath(_0x1fef58,[_0x3d2829(0x282)]);_0x27f36a!=null&&setValueByPath(_0x2468eb,['responseModalities'],_0x27f36a);const _0x448445=getValueByPath(_0x1fef58,['responseSchema']);_0x448445!=null&&setValueByPath(_0x2468eb,['responseSchema'],_0x448445);const _0x49e189=getValueByPath(_0x1fef58,[_0x3d2829(0x49a)]);_0x49e189!=null&&setValueByPath(_0x2468eb,['routingConfig'],_0x49e189);const _0x1a5369=getValueByPath(_0x1fef58,['seed']);_0x1a5369!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x444)],_0x1a5369);const _0x106284=getValueByPath(_0x1fef58,['speechConfig']);_0x106284!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x63c)],_0x106284);const _0x53d239=getValueByPath(_0x1fef58,[_0x3d2829(0x596)]);_0x53d239!=null&&setValueByPath(_0x2468eb,['stopSequences'],_0x53d239);const _0x3467c3=getValueByPath(_0x1fef58,[_0x3d2829(0x5ba)]);_0x3467c3!=null&&setValueByPath(_0x2468eb,['temperature'],_0x3467c3);const _0x25d743=getValueByPath(_0x1fef58,['thinkingConfig']);_0x25d743!=null&&setValueByPath(_0x2468eb,['thinkingConfig'],_0x25d743);const _0x1ead19=getValueByPath(_0x1fef58,['topK']);_0x1ead19!=null&&setValueByPath(_0x2468eb,[_0x3d2829(0x431)],_0x1ead19);const _0x32bf59=getValueByPath(_0x1fef58,['topP']);_0x32bf59!=null&&setValueByPath(_0x2468eb,['topP'],_0x32bf59);if(getValueByPath(_0x1fef58,[_0x3d2829(0x2e6)])!==undefined)throw new Error(_0x3d2829(0x602));return _0x2468eb;}function googleMapsToMldev$2(_0x237fdd){const _0x2dc7ca=a1_0x54af01,_0x3eefd4={};if(getValueByPath(_0x237fdd,[_0x2dc7ca(0x699)])!==undefined)throw new Error('authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x282cdc=getValueByPath(_0x237fdd,[_0x2dc7ca(0x63d)]);return _0x282cdc!=null&&setValueByPath(_0x3eefd4,[_0x2dc7ca(0x63d)],_0x282cdc),_0x3eefd4;}function googleSearchToMldev$2(_0x3dcf81){const _0x18ee95=a1_0x54af01,_0x3e15fa={};if(getValueByPath(_0x3dcf81,[_0x18ee95(0x1e1)])!==undefined)throw new Error(_0x18ee95(0x4a8));if(getValueByPath(_0x3dcf81,['blockingConfidence'])!==undefined)throw new Error(_0x18ee95(0x614));const _0x1dde6c=getValueByPath(_0x3dcf81,[_0x18ee95(0x446)]);return _0x1dde6c!=null&&setValueByPath(_0x3e15fa,[_0x18ee95(0x446)],_0x1dde6c),_0x3e15fa;}function liveConnectConfigToMldev$1(_0x1f0743,_0x5e0d2e){const _0x1c3297=a1_0x54af01,_0x4ac121={},_0x310fa5=getValueByPath(_0x1f0743,[_0x1c3297(0x42a)]);_0x5e0d2e!==undefined&&_0x310fa5!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),'generationConfig'],_0x310fa5);const _0x25596e=getValueByPath(_0x1f0743,['responseModalities']);_0x5e0d2e!==undefined&&_0x25596e!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),_0x1c3297(0x282)],_0x25596e);const _0xd9b3b2=getValueByPath(_0x1f0743,[_0x1c3297(0x5ba)]);_0x5e0d2e!==undefined&&_0xd9b3b2!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),_0x1c3297(0x5ba)],_0xd9b3b2);const _0x31bb91=getValueByPath(_0x1f0743,[_0x1c3297(0x200)]);_0x5e0d2e!==undefined&&_0x31bb91!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),'topP'],_0x31bb91);const _0x13e399=getValueByPath(_0x1f0743,[_0x1c3297(0x431)]);_0x5e0d2e!==undefined&&_0x13e399!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),_0x1c3297(0x431)],_0x13e399);const _0x59491c=getValueByPath(_0x1f0743,['maxOutputTokens']);_0x5e0d2e!==undefined&&_0x59491c!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),'maxOutputTokens'],_0x59491c);const _0x5458fd=getValueByPath(_0x1f0743,[_0x1c3297(0x5e8)]);_0x5e0d2e!==undefined&&_0x5458fd!=null&&setValueByPath(_0x5e0d2e,['setup',_0x1c3297(0x42a),'mediaResolution'],_0x5458fd);const _0x4713ae=getValueByPath(_0x1f0743,[_0x1c3297(0x444)]);_0x5e0d2e!==undefined&&_0x4713ae!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),'seed'],_0x4713ae);const _0x15844e=getValueByPath(_0x1f0743,['speechConfig']);_0x5e0d2e!==undefined&&_0x15844e!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),'speechConfig'],tLiveSpeechConfig(_0x15844e));const _0x2bd217=getValueByPath(_0x1f0743,[_0x1c3297(0x59d)]);_0x5e0d2e!==undefined&&_0x2bd217!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x42a),_0x1c3297(0x59d)],_0x2bd217);const _0x10f9e7=getValueByPath(_0x1f0743,['enableAffectiveDialog']);_0x5e0d2e!==undefined&&_0x10f9e7!=null&&setValueByPath(_0x5e0d2e,['setup',_0x1c3297(0x42a),'enableAffectiveDialog'],_0x10f9e7);const _0x5afc7a=getValueByPath(_0x1f0743,[_0x1c3297(0x3ea)]);_0x5e0d2e!==undefined&&_0x5afc7a!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),'systemInstruction'],contentToMldev$2(tContent(_0x5afc7a)));const _0x1e7002=getValueByPath(_0x1f0743,[_0x1c3297(0x458)]);if(_0x5e0d2e!==undefined&&_0x1e7002!=null){let _0x2815f9=tTools(_0x1e7002);Array[_0x1c3297(0x1e2)](_0x2815f9)&&(_0x2815f9=_0x2815f9[_0x1c3297(0x261)](_0x55a7d7=>{return toolToMldev$2(tTool(_0x55a7d7));})),setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x458)],_0x2815f9);}const _0xf1fd64=getValueByPath(_0x1f0743,[_0x1c3297(0x482)]);_0x5e0d2e!==undefined&&_0xf1fd64!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x482)],sessionResumptionConfigToMldev$1(_0xf1fd64));const _0x386814=getValueByPath(_0x1f0743,[_0x1c3297(0x4e6)]);_0x5e0d2e!==undefined&&_0x386814!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x4e6)],_0x386814);const _0x3523a8=getValueByPath(_0x1f0743,[_0x1c3297(0x61d)]);_0x5e0d2e!==undefined&&_0x3523a8!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),_0x1c3297(0x61d)],_0x3523a8);const _0x2cee6b=getValueByPath(_0x1f0743,['realtimeInputConfig']);_0x5e0d2e!==undefined&&_0x2cee6b!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),'realtimeInputConfig'],_0x2cee6b);const _0x13a426=getValueByPath(_0x1f0743,[_0x1c3297(0x421)]);_0x5e0d2e!==undefined&&_0x13a426!=null&&setValueByPath(_0x5e0d2e,[_0x1c3297(0x670),'contextWindowCompression'],_0x13a426);const _0x33e8fe=getValueByPath(_0x1f0743,['proactivity']);_0x5e0d2e!==undefined&&_0x33e8fe!=null&&setValueByPath(_0x5e0d2e,['setup',_0x1c3297(0x2ee)],_0x33e8fe);if(getValueByPath(_0x1f0743,[_0x1c3297(0x369)])!==undefined)throw new Error('explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x4ac121;}function liveConnectConfigToVertex(_0x478c0d,_0x5b71d6){const _0x5768d8=a1_0x54af01,_0x4e3c3e={},_0x376223=getValueByPath(_0x478c0d,[_0x5768d8(0x42a)]);_0x5b71d6!==undefined&&_0x376223!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a)],generationConfigToVertex$1(_0x376223));const _0x38380c=getValueByPath(_0x478c0d,[_0x5768d8(0x282)]);_0x5b71d6!==undefined&&_0x38380c!=null&&setValueByPath(_0x5b71d6,['setup',_0x5768d8(0x42a),'responseModalities'],_0x38380c);const _0x2c3ff5=getValueByPath(_0x478c0d,[_0x5768d8(0x5ba)]);_0x5b71d6!==undefined&&_0x2c3ff5!=null&&setValueByPath(_0x5b71d6,['setup',_0x5768d8(0x42a),'temperature'],_0x2c3ff5);const _0x5f1083=getValueByPath(_0x478c0d,['topP']);_0x5b71d6!==undefined&&_0x5f1083!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),_0x5768d8(0x200)],_0x5f1083);const _0x1d3852=getValueByPath(_0x478c0d,[_0x5768d8(0x431)]);_0x5b71d6!==undefined&&_0x1d3852!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),'topK'],_0x1d3852);const _0x172672=getValueByPath(_0x478c0d,[_0x5768d8(0x416)]);_0x5b71d6!==undefined&&_0x172672!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),_0x5768d8(0x416)],_0x172672);const _0x13ca62=getValueByPath(_0x478c0d,[_0x5768d8(0x5e8)]);_0x5b71d6!==undefined&&_0x13ca62!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),_0x5768d8(0x5e8)],_0x13ca62);const _0x623d88=getValueByPath(_0x478c0d,['seed']);_0x5b71d6!==undefined&&_0x623d88!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),_0x5768d8(0x444)],_0x623d88);const _0x452e07=getValueByPath(_0x478c0d,['speechConfig']);_0x5b71d6!==undefined&&_0x452e07!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),'generationConfig',_0x5768d8(0x63c)],tLiveSpeechConfig(_0x452e07));const _0x221da8=getValueByPath(_0x478c0d,[_0x5768d8(0x59d)]);_0x5b71d6!==undefined&&_0x221da8!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),_0x5768d8(0x59d)],_0x221da8);const _0x4cbb23=getValueByPath(_0x478c0d,[_0x5768d8(0x64c)]);_0x5b71d6!==undefined&&_0x4cbb23!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x42a),_0x5768d8(0x64c)],_0x4cbb23);const _0x169675=getValueByPath(_0x478c0d,[_0x5768d8(0x3ea)]);_0x5b71d6!==undefined&&_0x169675!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x3ea)],tContent(_0x169675));const _0x1b41e5=getValueByPath(_0x478c0d,[_0x5768d8(0x458)]);if(_0x5b71d6!==undefined&&_0x1b41e5!=null){let _0x16f97d=tTools(_0x1b41e5);Array[_0x5768d8(0x1e2)](_0x16f97d)&&(_0x16f97d=_0x16f97d['map'](_0x768dee=>{return toolToVertex$1(tTool(_0x768dee));})),setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x458)],_0x16f97d);}const _0x465bb0=getValueByPath(_0x478c0d,[_0x5768d8(0x482)]);_0x5b71d6!==undefined&&_0x465bb0!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x482)],_0x465bb0);const _0x26ea14=getValueByPath(_0x478c0d,[_0x5768d8(0x4e6)]);_0x5b71d6!==undefined&&_0x26ea14!=null&&setValueByPath(_0x5b71d6,['setup',_0x5768d8(0x4e6)],_0x26ea14);const _0x1cea68=getValueByPath(_0x478c0d,['outputAudioTranscription']);_0x5b71d6!==undefined&&_0x1cea68!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x61d)],_0x1cea68);const _0x39950c=getValueByPath(_0x478c0d,[_0x5768d8(0x239)]);_0x5b71d6!==undefined&&_0x39950c!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x239)],_0x39950c);const _0x5791fa=getValueByPath(_0x478c0d,['contextWindowCompression']);_0x5b71d6!==undefined&&_0x5791fa!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),_0x5768d8(0x421)],_0x5791fa);const _0x76adfb=getValueByPath(_0x478c0d,[_0x5768d8(0x2ee)]);_0x5b71d6!==undefined&&_0x76adfb!=null&&setValueByPath(_0x5b71d6,[_0x5768d8(0x670),'proactivity'],_0x76adfb);const _0x2fa1ce=getValueByPath(_0x478c0d,[_0x5768d8(0x369)]);return _0x5b71d6!==undefined&&_0x2fa1ce!=null&&setValueByPath(_0x5b71d6,['setup',_0x5768d8(0x369)],_0x2fa1ce),_0x4e3c3e;}function liveConnectParametersToMldev(_0x3a4422,_0x445b1f){const _0x5f23b9=a1_0x54af01,_0x3aed53={},_0x577831=getValueByPath(_0x445b1f,[_0x5f23b9(0x210)]);_0x577831!=null&&setValueByPath(_0x3aed53,['setup',_0x5f23b9(0x210)],tModel(_0x3a4422,_0x577831));const _0x592e42=getValueByPath(_0x445b1f,[_0x5f23b9(0x1b0)]);return _0x592e42!=null&&setValueByPath(_0x3aed53,[_0x5f23b9(0x1b0)],liveConnectConfigToMldev$1(_0x592e42,_0x3aed53)),_0x3aed53;}function liveConnectParametersToVertex(_0x4013a4,_0x527d0a){const _0x1d8e8a=a1_0x54af01,_0x15b7a7={},_0x39b31b=getValueByPath(_0x527d0a,[_0x1d8e8a(0x210)]);_0x39b31b!=null&&setValueByPath(_0x15b7a7,[_0x1d8e8a(0x670),'model'],tModel(_0x4013a4,_0x39b31b));const _0x255de6=getValueByPath(_0x527d0a,[_0x1d8e8a(0x1b0)]);return _0x255de6!=null&&setValueByPath(_0x15b7a7,[_0x1d8e8a(0x1b0)],liveConnectConfigToVertex(_0x255de6,_0x15b7a7)),_0x15b7a7;}function liveMusicSetConfigParametersToMldev(_0x29374b){const _0x2e2004={},_0x3e2a4b=getValueByPath(_0x29374b,['musicGenerationConfig']);return _0x3e2a4b!=null&&setValueByPath(_0x2e2004,['musicGenerationConfig'],_0x3e2a4b),_0x2e2004;}function liveMusicSetWeightedPromptsParametersToMldev(_0xc52f7d){const _0x404481=a1_0x54af01,_0x355a8b={},_0x304e10=getValueByPath(_0xc52f7d,[_0x404481(0x333)]);if(_0x304e10!=null){let _0x4971f0=_0x304e10;Array[_0x404481(0x1e2)](_0x4971f0)&&(_0x4971f0=_0x4971f0['map'](_0x59ec42=>{return _0x59ec42;})),setValueByPath(_0x355a8b,[_0x404481(0x333)],_0x4971f0);}return _0x355a8b;}function liveSendRealtimeInputParametersToMldev(_0x45439e){const _0x5c9376=a1_0x54af01,_0x43b708={},_0x51177a=getValueByPath(_0x45439e,['media']);if(_0x51177a!=null){let _0x153f7d=tBlobs(_0x51177a);Array[_0x5c9376(0x1e2)](_0x153f7d)&&(_0x153f7d=_0x153f7d['map'](_0x2d8023=>{return blobToMldev$2(_0x2d8023);})),setValueByPath(_0x43b708,[_0x5c9376(0x56a)],_0x153f7d);}const _0x3250cc=getValueByPath(_0x45439e,[_0x5c9376(0x4f5)]);_0x3250cc!=null&&setValueByPath(_0x43b708,[_0x5c9376(0x4f5)],blobToMldev$2(tAudioBlob(_0x3250cc)));const _0x233d8d=getValueByPath(_0x45439e,['audioStreamEnd']);_0x233d8d!=null&&setValueByPath(_0x43b708,[_0x5c9376(0x1ad)],_0x233d8d);const _0x291243=getValueByPath(_0x45439e,[_0x5c9376(0x246)]);_0x291243!=null&&setValueByPath(_0x43b708,['video'],blobToMldev$2(tImageBlob(_0x291243)));const _0x1c3d45=getValueByPath(_0x45439e,[_0x5c9376(0x205)]);_0x1c3d45!=null&&setValueByPath(_0x43b708,[_0x5c9376(0x205)],_0x1c3d45);const _0x9683ae=getValueByPath(_0x45439e,[_0x5c9376(0x214)]);_0x9683ae!=null&&setValueByPath(_0x43b708,[_0x5c9376(0x214)],_0x9683ae);const _0x31709b=getValueByPath(_0x45439e,[_0x5c9376(0x623)]);return _0x31709b!=null&&setValueByPath(_0x43b708,[_0x5c9376(0x623)],_0x31709b),_0x43b708;}function liveSendRealtimeInputParametersToVertex(_0x32c5e7){const _0x500bbc=a1_0x54af01,_0x50f180={},_0x37cb70=getValueByPath(_0x32c5e7,[_0x500bbc(0x17a)]);if(_0x37cb70!=null){let _0x3d5a48=tBlobs(_0x37cb70);Array[_0x500bbc(0x1e2)](_0x3d5a48)&&(_0x3d5a48=_0x3d5a48[_0x500bbc(0x261)](_0x29178f=>{return _0x29178f;})),setValueByPath(_0x50f180,[_0x500bbc(0x56a)],_0x3d5a48);}const _0x57af7a=getValueByPath(_0x32c5e7,['audio']);_0x57af7a!=null&&setValueByPath(_0x50f180,[_0x500bbc(0x4f5)],tAudioBlob(_0x57af7a));const _0x863664=getValueByPath(_0x32c5e7,['audioStreamEnd']);_0x863664!=null&&setValueByPath(_0x50f180,['audioStreamEnd'],_0x863664);const _0x588d8d=getValueByPath(_0x32c5e7,['video']);_0x588d8d!=null&&setValueByPath(_0x50f180,[_0x500bbc(0x246)],tImageBlob(_0x588d8d));const _0x6f84ea=getValueByPath(_0x32c5e7,['text']);_0x6f84ea!=null&&setValueByPath(_0x50f180,['text'],_0x6f84ea);const _0x143193=getValueByPath(_0x32c5e7,['activityStart']);_0x143193!=null&&setValueByPath(_0x50f180,[_0x500bbc(0x214)],_0x143193);const _0xca2007=getValueByPath(_0x32c5e7,[_0x500bbc(0x623)]);return _0xca2007!=null&&setValueByPath(_0x50f180,[_0x500bbc(0x623)],_0xca2007),_0x50f180;}function liveServerMessageFromVertex(_0x389cea){const _0x4d1b75=a1_0x54af01,_0xaeb430={},_0x437bf4=getValueByPath(_0x389cea,[_0x4d1b75(0x259)]);_0x437bf4!=null&&setValueByPath(_0xaeb430,[_0x4d1b75(0x259)],_0x437bf4);const _0x50c15d=getValueByPath(_0x389cea,[_0x4d1b75(0x3a7)]);_0x50c15d!=null&&setValueByPath(_0xaeb430,[_0x4d1b75(0x3a7)],_0x50c15d);const _0x457873=getValueByPath(_0x389cea,[_0x4d1b75(0x512)]);_0x457873!=null&&setValueByPath(_0xaeb430,[_0x4d1b75(0x512)],_0x457873);const _0x34a242=getValueByPath(_0x389cea,[_0x4d1b75(0x3b8)]);_0x34a242!=null&&setValueByPath(_0xaeb430,[_0x4d1b75(0x3b8)],_0x34a242);const _0x48ce42=getValueByPath(_0x389cea,[_0x4d1b75(0x38d)]);_0x48ce42!=null&&setValueByPath(_0xaeb430,['usageMetadata'],usageMetadataFromVertex(_0x48ce42));const _0x577a32=getValueByPath(_0x389cea,['goAway']);_0x577a32!=null&&setValueByPath(_0xaeb430,[_0x4d1b75(0x31b)],_0x577a32);const _0x5856ed=getValueByPath(_0x389cea,[_0x4d1b75(0x50c)]);_0x5856ed!=null&&setValueByPath(_0xaeb430,[_0x4d1b75(0x50c)],_0x5856ed);const _0x308b00=getValueByPath(_0x389cea,[_0x4d1b75(0x1cb)]);_0x308b00!=null&&setValueByPath(_0xaeb430,['voiceActivityDetectionSignal'],_0x308b00);const _0x2e4849=getValueByPath(_0x389cea,[_0x4d1b75(0x23a)]);return _0x2e4849!=null&&setValueByPath(_0xaeb430,['voiceActivity'],voiceActivityFromVertex(_0x2e4849)),_0xaeb430;}function partToMldev$2(_0x3a1a56){const _0x14244d=a1_0x54af01,_0x40f402={},_0x449d13=getValueByPath(_0x3a1a56,['mediaResolution']);_0x449d13!=null&&setValueByPath(_0x40f402,[_0x14244d(0x5e8)],_0x449d13);const _0x4400b0=getValueByPath(_0x3a1a56,[_0x14244d(0x6c6)]);_0x4400b0!=null&&setValueByPath(_0x40f402,['codeExecutionResult'],_0x4400b0);const _0x20cd3=getValueByPath(_0x3a1a56,[_0x14244d(0x236)]);_0x20cd3!=null&&setValueByPath(_0x40f402,[_0x14244d(0x236)],_0x20cd3);const _0x1e0e8e=getValueByPath(_0x3a1a56,['fileData']);_0x1e0e8e!=null&&setValueByPath(_0x40f402,[_0x14244d(0x2e2)],fileDataToMldev$2(_0x1e0e8e));const _0x4ff0cd=getValueByPath(_0x3a1a56,[_0x14244d(0x397)]);_0x4ff0cd!=null&&setValueByPath(_0x40f402,[_0x14244d(0x397)],functionCallToMldev$2(_0x4ff0cd));const _0x275277=getValueByPath(_0x3a1a56,[_0x14244d(0x5cb)]);_0x275277!=null&&setValueByPath(_0x40f402,[_0x14244d(0x5cb)],_0x275277);const _0x4fae0c=getValueByPath(_0x3a1a56,[_0x14244d(0x1a4)]);_0x4fae0c!=null&&setValueByPath(_0x40f402,[_0x14244d(0x1a4)],blobToMldev$2(_0x4fae0c));const _0x1f7118=getValueByPath(_0x3a1a56,[_0x14244d(0x205)]);_0x1f7118!=null&&setValueByPath(_0x40f402,[_0x14244d(0x205)],_0x1f7118);const _0x5f1614=getValueByPath(_0x3a1a56,[_0x14244d(0x406)]);_0x5f1614!=null&&setValueByPath(_0x40f402,['thought'],_0x5f1614);const _0x5e66a5=getValueByPath(_0x3a1a56,[_0x14244d(0x56b)]);_0x5e66a5!=null&&setValueByPath(_0x40f402,['thoughtSignature'],_0x5e66a5);const _0x24ca3f=getValueByPath(_0x3a1a56,[_0x14244d(0x313)]);return _0x24ca3f!=null&&setValueByPath(_0x40f402,[_0x14244d(0x313)],_0x24ca3f),_0x40f402;}function sessionResumptionConfigToMldev$1(_0x355de2){const _0x310222=a1_0x54af01,_0x3ddea1={},_0x1cc5f6=getValueByPath(_0x355de2,['handle']);_0x1cc5f6!=null&&setValueByPath(_0x3ddea1,[_0x310222(0x3bd)],_0x1cc5f6);if(getValueByPath(_0x355de2,[_0x310222(0x3f6)])!==undefined)throw new Error('transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x3ddea1;}function toolToMldev$2(_0x5a9e1a){const _0x129164=a1_0x54af01,_0x479cbb={};if(getValueByPath(_0x5a9e1a,[_0x129164(0x223)])!==undefined)throw new Error(_0x129164(0x466));const _0x7d54cb=getValueByPath(_0x5a9e1a,[_0x129164(0x318)]);_0x7d54cb!=null&&setValueByPath(_0x479cbb,['computerUse'],_0x7d54cb);const _0x521c19=getValueByPath(_0x5a9e1a,[_0x129164(0x68d)]);_0x521c19!=null&&setValueByPath(_0x479cbb,['fileSearch'],_0x521c19);const _0x31bb7d=getValueByPath(_0x5a9e1a,[_0x129164(0x352)]);_0x31bb7d!=null&&setValueByPath(_0x479cbb,[_0x129164(0x352)],_0x31bb7d);if(getValueByPath(_0x5a9e1a,[_0x129164(0x26a)])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x478318=getValueByPath(_0x5a9e1a,[_0x129164(0x4fa)]);if(_0x478318!=null){let _0x257931=_0x478318;Array[_0x129164(0x1e2)](_0x257931)&&(_0x257931=_0x257931[_0x129164(0x261)](_0x1f3653=>{return _0x1f3653;})),setValueByPath(_0x479cbb,[_0x129164(0x4fa)],_0x257931);}const _0x87af6a=getValueByPath(_0x5a9e1a,[_0x129164(0x35b)]);_0x87af6a!=null&&setValueByPath(_0x479cbb,[_0x129164(0x35b)],googleMapsToMldev$2(_0x87af6a));const _0x256f16=getValueByPath(_0x5a9e1a,['googleSearch']);_0x256f16!=null&&setValueByPath(_0x479cbb,[_0x129164(0x58c)],googleSearchToMldev$2(_0x256f16));const _0x4efe40=getValueByPath(_0x5a9e1a,['googleSearchRetrieval']);_0x4efe40!=null&&setValueByPath(_0x479cbb,[_0x129164(0x6a2)],_0x4efe40);const _0x2a32d0=getValueByPath(_0x5a9e1a,[_0x129164(0x642)]);return _0x2a32d0!=null&&setValueByPath(_0x479cbb,[_0x129164(0x642)],_0x2a32d0),_0x479cbb;}function toolToVertex$1(_0x240030){const _0x39908e=a1_0x54af01,_0x393c1a={},_0x24cf2c=getValueByPath(_0x240030,[_0x39908e(0x223)]);_0x24cf2c!=null&&setValueByPath(_0x393c1a,[_0x39908e(0x223)],_0x24cf2c);const _0x283180=getValueByPath(_0x240030,[_0x39908e(0x318)]);_0x283180!=null&&setValueByPath(_0x393c1a,['computerUse'],_0x283180);if(getValueByPath(_0x240030,[_0x39908e(0x68d)])!==undefined)throw new Error(_0x39908e(0x35f));const _0x11b209=getValueByPath(_0x240030,['codeExecution']);_0x11b209!=null&&setValueByPath(_0x393c1a,[_0x39908e(0x352)],_0x11b209);const _0x4adbc4=getValueByPath(_0x240030,[_0x39908e(0x26a)]);_0x4adbc4!=null&&setValueByPath(_0x393c1a,[_0x39908e(0x26a)],_0x4adbc4);const _0x149eed=getValueByPath(_0x240030,['functionDeclarations']);if(_0x149eed!=null){let _0xd88d91=_0x149eed;Array['isArray'](_0xd88d91)&&(_0xd88d91=_0xd88d91['map'](_0x24fdbd=>{return functionDeclarationToVertex$1(_0x24fdbd);})),setValueByPath(_0x393c1a,[_0x39908e(0x4fa)],_0xd88d91);}const _0x33ea0b=getValueByPath(_0x240030,[_0x39908e(0x35b)]);_0x33ea0b!=null&&setValueByPath(_0x393c1a,['googleMaps'],_0x33ea0b);const _0x34e7f2=getValueByPath(_0x240030,[_0x39908e(0x58c)]);_0x34e7f2!=null&&setValueByPath(_0x393c1a,['googleSearch'],_0x34e7f2);const _0x5d5fc7=getValueByPath(_0x240030,['googleSearchRetrieval']);_0x5d5fc7!=null&&setValueByPath(_0x393c1a,[_0x39908e(0x6a2)],_0x5d5fc7);const _0x142a9f=getValueByPath(_0x240030,[_0x39908e(0x642)]);return _0x142a9f!=null&&setValueByPath(_0x393c1a,[_0x39908e(0x642)],_0x142a9f),_0x393c1a;}function usageMetadataFromVertex(_0x432e90){const _0x2e0457=a1_0x54af01,_0x33fbc7={},_0xd7e779=getValueByPath(_0x432e90,['promptTokenCount']);_0xd7e779!=null&&setValueByPath(_0x33fbc7,['promptTokenCount'],_0xd7e779);const _0x130def=getValueByPath(_0x432e90,[_0x2e0457(0x5a1)]);_0x130def!=null&&setValueByPath(_0x33fbc7,[_0x2e0457(0x5a1)],_0x130def);const _0x10bc39=getValueByPath(_0x432e90,[_0x2e0457(0x3fd)]);_0x10bc39!=null&&setValueByPath(_0x33fbc7,[_0x2e0457(0x262)],_0x10bc39);const _0xe56e03=getValueByPath(_0x432e90,[_0x2e0457(0x428)]);_0xe56e03!=null&&setValueByPath(_0x33fbc7,[_0x2e0457(0x428)],_0xe56e03);const _0x4e9f76=getValueByPath(_0x432e90,['thoughtsTokenCount']);_0x4e9f76!=null&&setValueByPath(_0x33fbc7,[_0x2e0457(0x577)],_0x4e9f76);const _0x24e7b9=getValueByPath(_0x432e90,[_0x2e0457(0x263)]);_0x24e7b9!=null&&setValueByPath(_0x33fbc7,[_0x2e0457(0x263)],_0x24e7b9);const _0x25803d=getValueByPath(_0x432e90,['promptTokensDetails']);if(_0x25803d!=null){let _0x585d04=_0x25803d;Array['isArray'](_0x585d04)&&(_0x585d04=_0x585d04[_0x2e0457(0x261)](_0x4c1ee3=>{return _0x4c1ee3;})),setValueByPath(_0x33fbc7,[_0x2e0457(0x608)],_0x585d04);}const _0x29447e=getValueByPath(_0x432e90,[_0x2e0457(0x2cc)]);if(_0x29447e!=null){let _0x223924=_0x29447e;Array['isArray'](_0x223924)&&(_0x223924=_0x223924['map'](_0x4daa1e=>{return _0x4daa1e;})),setValueByPath(_0x33fbc7,[_0x2e0457(0x2cc)],_0x223924);}const _0x39bfff=getValueByPath(_0x432e90,[_0x2e0457(0x5e6)]);if(_0x39bfff!=null){let _0x4346d6=_0x39bfff;Array['isArray'](_0x4346d6)&&(_0x4346d6=_0x4346d6[_0x2e0457(0x261)](_0x33f390=>{return _0x33f390;})),setValueByPath(_0x33fbc7,[_0x2e0457(0x1e7)],_0x4346d6);}const _0x36f482=getValueByPath(_0x432e90,[_0x2e0457(0x679)]);if(_0x36f482!=null){let _0x4fa648=_0x36f482;Array[_0x2e0457(0x1e2)](_0x4fa648)&&(_0x4fa648=_0x4fa648['map'](_0x1ba1cf=>{return _0x1ba1cf;})),setValueByPath(_0x33fbc7,['toolUsePromptTokensDetails'],_0x4fa648);}const _0x48456a=getValueByPath(_0x432e90,[_0x2e0457(0x306)]);return _0x48456a!=null&&setValueByPath(_0x33fbc7,['trafficType'],_0x48456a),_0x33fbc7;}function voiceActivityFromVertex(_0x34a5f9){const _0x31b4b8=a1_0x54af01,_0x5e99e6={},_0x43f6b1=getValueByPath(_0x34a5f9,[_0x31b4b8(0x311)]);return _0x43f6b1!=null&&setValueByPath(_0x5e99e6,['voiceActivityType'],_0x43f6b1),_0x5e99e6;}/**
212
+ * @license
213
+ * Copyright 2025 Google LLC
214
+ * SPDX-License-Identifier: Apache-2.0
215
+ */
216
+ function blobToMldev$1(_0x2668e5,_0x3888af){const _0x49acbc=a1_0x54af01,_0xdd6bf1={},_0x2b1433=getValueByPath(_0x2668e5,[_0x49acbc(0x354)]);_0x2b1433!=null&&setValueByPath(_0xdd6bf1,[_0x49acbc(0x354)],_0x2b1433);if(getValueByPath(_0x2668e5,[_0x49acbc(0x37e)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x2e587c=getValueByPath(_0x2668e5,[_0x49acbc(0x2cd)]);return _0x2e587c!=null&&setValueByPath(_0xdd6bf1,[_0x49acbc(0x2cd)],_0x2e587c),_0xdd6bf1;}function candidateFromMldev(_0x4f189e,_0x4e6134){const _0x2f8b23=a1_0x54af01,_0x5727d6={},_0x43c1e9=getValueByPath(_0x4f189e,['content']);_0x43c1e9!=null&&setValueByPath(_0x5727d6,['content'],_0x43c1e9);const _0x838f7f=getValueByPath(_0x4f189e,[_0x2f8b23(0x1b5)]);_0x838f7f!=null&&setValueByPath(_0x5727d6,[_0x2f8b23(0x1b5)],citationMetadataFromMldev(_0x838f7f));const _0x527d6d=getValueByPath(_0x4f189e,['tokenCount']);_0x527d6d!=null&&setValueByPath(_0x5727d6,[_0x2f8b23(0x5d5)],_0x527d6d);const _0x9ec2fa=getValueByPath(_0x4f189e,[_0x2f8b23(0x483)]);_0x9ec2fa!=null&&setValueByPath(_0x5727d6,['finishReason'],_0x9ec2fa);const _0x371799=getValueByPath(_0x4f189e,[_0x2f8b23(0x1d7)]);_0x371799!=null&&setValueByPath(_0x5727d6,['avgLogprobs'],_0x371799);const _0x393bc8=getValueByPath(_0x4f189e,['groundingMetadata']);_0x393bc8!=null&&setValueByPath(_0x5727d6,['groundingMetadata'],_0x393bc8);const _0x5a2456=getValueByPath(_0x4f189e,[_0x2f8b23(0x591)]);_0x5a2456!=null&&setValueByPath(_0x5727d6,[_0x2f8b23(0x591)],_0x5a2456);const _0x28c709=getValueByPath(_0x4f189e,[_0x2f8b23(0x2bf)]);_0x28c709!=null&&setValueByPath(_0x5727d6,['logprobsResult'],_0x28c709);const _0xf891c4=getValueByPath(_0x4f189e,[_0x2f8b23(0x49c)]);if(_0xf891c4!=null){let _0x312434=_0xf891c4;Array[_0x2f8b23(0x1e2)](_0x312434)&&(_0x312434=_0x312434[_0x2f8b23(0x261)](_0x1722e1=>{return _0x1722e1;})),setValueByPath(_0x5727d6,['safetyRatings'],_0x312434);}const _0x420c00=getValueByPath(_0x4f189e,[_0x2f8b23(0x55e)]);return _0x420c00!=null&&setValueByPath(_0x5727d6,['urlContextMetadata'],_0x420c00),_0x5727d6;}function citationMetadataFromMldev(_0x345d59,_0x3de148){const _0x3ceed3=a1_0x54af01,_0x4ef044={},_0x3ebc2f=getValueByPath(_0x345d59,['citationSources']);if(_0x3ebc2f!=null){let _0x20ebf8=_0x3ebc2f;Array[_0x3ceed3(0x1e2)](_0x20ebf8)&&(_0x20ebf8=_0x20ebf8[_0x3ceed3(0x261)](_0x175709=>{return _0x175709;})),setValueByPath(_0x4ef044,['citations'],_0x20ebf8);}return _0x4ef044;}function computeTokensParametersToVertex(_0x447edc,_0xf0e28a,_0x552f3d){const _0x4584f3=a1_0x54af01,_0x574901={},_0x1babd2=getValueByPath(_0xf0e28a,[_0x4584f3(0x210)]);_0x1babd2!=null&&setValueByPath(_0x574901,[_0x4584f3(0x4e9),_0x4584f3(0x210)],tModel(_0x447edc,_0x1babd2));const _0x6cf98a=getValueByPath(_0xf0e28a,['contents']);if(_0x6cf98a!=null){let _0x533479=tContents(_0x6cf98a);Array['isArray'](_0x533479)&&(_0x533479=_0x533479[_0x4584f3(0x261)](_0x253699=>{return _0x253699;})),setValueByPath(_0x574901,[_0x4584f3(0x45b)],_0x533479);}return _0x574901;}function computeTokensResponseFromVertex(_0x44935b,_0x4b0851){const _0x3a8518=a1_0x54af01,_0x19a972={},_0x4fdaec=getValueByPath(_0x44935b,[_0x3a8518(0x25b)]);_0x4fdaec!=null&&setValueByPath(_0x19a972,[_0x3a8518(0x25b)],_0x4fdaec);const _0xbdcf8c=getValueByPath(_0x44935b,[_0x3a8518(0x5be)]);if(_0xbdcf8c!=null){let _0x49ab25=_0xbdcf8c;Array['isArray'](_0x49ab25)&&(_0x49ab25=_0x49ab25[_0x3a8518(0x261)](_0x30ba42=>{return _0x30ba42;})),setValueByPath(_0x19a972,[_0x3a8518(0x5be)],_0x49ab25);}return _0x19a972;}function contentEmbeddingFromVertex(_0x36a37a,_0x3b5173){const _0x286163=a1_0x54af01,_0x59da6d={},_0x11c84d=getValueByPath(_0x36a37a,[_0x286163(0x38a)]);_0x11c84d!=null&&setValueByPath(_0x59da6d,[_0x286163(0x38a)],_0x11c84d);const _0x5e2d0d=getValueByPath(_0x36a37a,[_0x286163(0x3eb)]);return _0x5e2d0d!=null&&setValueByPath(_0x59da6d,[_0x286163(0x3eb)],contentEmbeddingStatisticsFromVertex(_0x5e2d0d)),_0x59da6d;}function contentEmbeddingStatisticsFromVertex(_0x597e08,_0xb0615d){const _0x4d0978=a1_0x54af01,_0x15abb1={},_0x5706a9=getValueByPath(_0x597e08,['truncated']);_0x5706a9!=null&&setValueByPath(_0x15abb1,[_0x4d0978(0x564)],_0x5706a9);const _0x1fddce=getValueByPath(_0x597e08,['token_count']);return _0x1fddce!=null&&setValueByPath(_0x15abb1,[_0x4d0978(0x5d5)],_0x1fddce),_0x15abb1;}function contentToMldev$1(_0x55d1c2,_0x277642){const _0x5c8c8a=a1_0x54af01,_0x24f171={},_0x529392=getValueByPath(_0x55d1c2,[_0x5c8c8a(0x4f7)]);if(_0x529392!=null){let _0x2555ae=_0x529392;Array[_0x5c8c8a(0x1e2)](_0x2555ae)&&(_0x2555ae=_0x2555ae[_0x5c8c8a(0x261)](_0x516363=>{return partToMldev$1(_0x516363);})),setValueByPath(_0x24f171,[_0x5c8c8a(0x4f7)],_0x2555ae);}const _0x43d77=getValueByPath(_0x55d1c2,[_0x5c8c8a(0x61a)]);return _0x43d77!=null&&setValueByPath(_0x24f171,[_0x5c8c8a(0x61a)],_0x43d77),_0x24f171;}function controlReferenceConfigToVertex(_0x47d396,_0x204a06){const _0x56d476=a1_0x54af01,_0x21f296={},_0x1d18fb=getValueByPath(_0x47d396,[_0x56d476(0x413)]);_0x1d18fb!=null&&setValueByPath(_0x21f296,[_0x56d476(0x413)],_0x1d18fb);const _0x3a0f58=getValueByPath(_0x47d396,['enableControlImageComputation']);return _0x3a0f58!=null&&setValueByPath(_0x21f296,['computeControl'],_0x3a0f58),_0x21f296;}function countTokensConfigToMldev(_0x1e40e0,_0x4102d5){const _0x180c0b=a1_0x54af01,_0x4e084a={};if(getValueByPath(_0x1e40e0,[_0x180c0b(0x3ea)])!==undefined)throw new Error(_0x180c0b(0x3cf));if(getValueByPath(_0x1e40e0,[_0x180c0b(0x458)])!==undefined)throw new Error(_0x180c0b(0x2df));if(getValueByPath(_0x1e40e0,['generationConfig'])!==undefined)throw new Error(_0x180c0b(0x1c3));return _0x4e084a;}function countTokensConfigToVertex(_0xa84c45,_0x46be0e,_0x2fe760){const _0x367faf=a1_0x54af01,_0x30fa84={},_0x60c8bb=getValueByPath(_0xa84c45,[_0x367faf(0x3ea)]);_0x46be0e!==undefined&&_0x60c8bb!=null&&setValueByPath(_0x46be0e,['systemInstruction'],tContent(_0x60c8bb));const _0xddc906=getValueByPath(_0xa84c45,['tools']);if(_0x46be0e!==undefined&&_0xddc906!=null){let _0x41a5e4=_0xddc906;Array[_0x367faf(0x1e2)](_0x41a5e4)&&(_0x41a5e4=_0x41a5e4['map'](_0x5875d4=>{return toolToVertex(_0x5875d4);})),setValueByPath(_0x46be0e,['tools'],_0x41a5e4);}const _0x3e52e8=getValueByPath(_0xa84c45,[_0x367faf(0x42a)]);return _0x46be0e!==undefined&&_0x3e52e8!=null&&setValueByPath(_0x46be0e,[_0x367faf(0x42a)],generationConfigToVertex(_0x3e52e8)),_0x30fa84;}function countTokensParametersToMldev(_0x54ae22,_0xb74be0,_0x1734e1){const _0x41110c=a1_0x54af01,_0x120797={},_0x1fd308=getValueByPath(_0xb74be0,[_0x41110c(0x210)]);_0x1fd308!=null&&setValueByPath(_0x120797,['_url','model'],tModel(_0x54ae22,_0x1fd308));const _0x307981=getValueByPath(_0xb74be0,[_0x41110c(0x45b)]);if(_0x307981!=null){let _0x23a020=tContents(_0x307981);Array[_0x41110c(0x1e2)](_0x23a020)&&(_0x23a020=_0x23a020['map'](_0x1abe37=>{return contentToMldev$1(_0x1abe37);})),setValueByPath(_0x120797,[_0x41110c(0x45b)],_0x23a020);}const _0x4e8e78=getValueByPath(_0xb74be0,['config']);return _0x4e8e78!=null&&countTokensConfigToMldev(_0x4e8e78),_0x120797;}function countTokensParametersToVertex(_0x434a46,_0x407f38,_0x2f915f){const _0x23fd99=a1_0x54af01,_0x18574b={},_0x5abed0=getValueByPath(_0x407f38,[_0x23fd99(0x210)]);_0x5abed0!=null&&setValueByPath(_0x18574b,[_0x23fd99(0x4e9),_0x23fd99(0x210)],tModel(_0x434a46,_0x5abed0));const _0x51689e=getValueByPath(_0x407f38,['contents']);if(_0x51689e!=null){let _0x33ca69=tContents(_0x51689e);Array[_0x23fd99(0x1e2)](_0x33ca69)&&(_0x33ca69=_0x33ca69['map'](_0x4815cd=>{return _0x4815cd;})),setValueByPath(_0x18574b,[_0x23fd99(0x45b)],_0x33ca69);}const _0x568f4a=getValueByPath(_0x407f38,[_0x23fd99(0x1b0)]);return _0x568f4a!=null&&countTokensConfigToVertex(_0x568f4a,_0x18574b),_0x18574b;}function countTokensResponseFromMldev(_0x258461,_0x245f47){const _0x440e79=a1_0x54af01,_0x9a7c0f={},_0x1efeca=getValueByPath(_0x258461,[_0x440e79(0x25b)]);_0x1efeca!=null&&setValueByPath(_0x9a7c0f,[_0x440e79(0x25b)],_0x1efeca);const _0x45bd07=getValueByPath(_0x258461,[_0x440e79(0x32a)]);_0x45bd07!=null&&setValueByPath(_0x9a7c0f,[_0x440e79(0x32a)],_0x45bd07);const _0x5accc9=getValueByPath(_0x258461,[_0x440e79(0x5a1)]);return _0x5accc9!=null&&setValueByPath(_0x9a7c0f,[_0x440e79(0x5a1)],_0x5accc9),_0x9a7c0f;}function countTokensResponseFromVertex(_0x456ed0,_0x31cc89){const _0x21e807=a1_0x54af01,_0x1a5a4e={},_0x4c578e=getValueByPath(_0x456ed0,[_0x21e807(0x25b)]);_0x4c578e!=null&&setValueByPath(_0x1a5a4e,[_0x21e807(0x25b)],_0x4c578e);const _0x5d74fd=getValueByPath(_0x456ed0,[_0x21e807(0x32a)]);return _0x5d74fd!=null&&setValueByPath(_0x1a5a4e,[_0x21e807(0x32a)],_0x5d74fd),_0x1a5a4e;}function deleteModelParametersToMldev(_0xaf4770,_0x111d6c,_0x45efdd){const _0x52410a=a1_0x54af01,_0x20dd74={},_0x213c7a=getValueByPath(_0x111d6c,[_0x52410a(0x210)]);return _0x213c7a!=null&&setValueByPath(_0x20dd74,['_url',_0x52410a(0x24b)],tModel(_0xaf4770,_0x213c7a)),_0x20dd74;}function deleteModelParametersToVertex(_0x34c0bf,_0x1941de,_0x117f18){const _0x333032=a1_0x54af01,_0x7565d4={},_0x169d82=getValueByPath(_0x1941de,[_0x333032(0x210)]);return _0x169d82!=null&&setValueByPath(_0x7565d4,[_0x333032(0x4e9),_0x333032(0x24b)],tModel(_0x34c0bf,_0x169d82)),_0x7565d4;}function deleteModelResponseFromMldev(_0x39516f,_0x5e22b6){const _0x133b70=a1_0x54af01,_0x24af93={},_0x10be8d=getValueByPath(_0x39516f,[_0x133b70(0x25b)]);return _0x10be8d!=null&&setValueByPath(_0x24af93,[_0x133b70(0x25b)],_0x10be8d),_0x24af93;}function deleteModelResponseFromVertex(_0x2606f4,_0x4f7c82){const _0x2da6db=a1_0x54af01,_0x4eca80={},_0x1448f7=getValueByPath(_0x2606f4,[_0x2da6db(0x25b)]);return _0x1448f7!=null&&setValueByPath(_0x4eca80,['sdkHttpResponse'],_0x1448f7),_0x4eca80;}function editImageConfigToVertex(_0x34c1c5,_0x354137,_0x28b478){const _0x5c3c75=a1_0x54af01,_0x3df8e3={},_0xa77b55=getValueByPath(_0x34c1c5,['outputGcsUri']);_0x354137!==undefined&&_0xa77b55!=null&&setValueByPath(_0x354137,['parameters',_0x5c3c75(0x3a0)],_0xa77b55);const _0x29625b=getValueByPath(_0x34c1c5,[_0x5c3c75(0x420)]);_0x354137!==undefined&&_0x29625b!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x420)],_0x29625b);const _0x1c046e=getValueByPath(_0x34c1c5,[_0x5c3c75(0x3d8)]);_0x354137!==undefined&&_0x1c046e!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x378)],_0x1c046e);const _0xf81556=getValueByPath(_0x34c1c5,['aspectRatio']);_0x354137!==undefined&&_0xf81556!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x628)],_0xf81556);const _0x6be28d=getValueByPath(_0x34c1c5,['guidanceScale']);_0x354137!==undefined&&_0x6be28d!=null&&setValueByPath(_0x354137,['parameters',_0x5c3c75(0x5cc)],_0x6be28d);const _0x5970c3=getValueByPath(_0x34c1c5,[_0x5c3c75(0x444)]);_0x354137!==undefined&&_0x5970c3!=null&&setValueByPath(_0x354137,['parameters',_0x5c3c75(0x444)],_0x5970c3);const _0x5d5965=getValueByPath(_0x34c1c5,[_0x5c3c75(0x53d)]);_0x354137!==undefined&&_0x5d5965!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x389)],_0x5d5965);const _0x25e0b1=getValueByPath(_0x34c1c5,[_0x5c3c75(0x1f5)]);_0x354137!==undefined&&_0x25e0b1!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x1f5)],_0x25e0b1);const _0x18ef8e=getValueByPath(_0x34c1c5,[_0x5c3c75(0x183)]);_0x354137!==undefined&&_0x18ef8e!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x183)],_0x18ef8e);const _0x1a2857=getValueByPath(_0x34c1c5,[_0x5c3c75(0x314)]);_0x354137!==undefined&&_0x1a2857!=null&&setValueByPath(_0x354137,['parameters','includeRaiReason'],_0x1a2857);const _0x45b32f=getValueByPath(_0x34c1c5,['language']);_0x354137!==undefined&&_0x45b32f!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x18b)],_0x45b32f);const _0x39d16f=getValueByPath(_0x34c1c5,[_0x5c3c75(0x1a7)]);_0x354137!==undefined&&_0x39d16f!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x6c0),_0x5c3c75(0x2cd)],_0x39d16f);const _0x18ef4f=getValueByPath(_0x34c1c5,[_0x5c3c75(0x36f)]);_0x354137!==undefined&&_0x18ef4f!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),'outputOptions',_0x5c3c75(0x692)],_0x18ef4f);const _0x42ac56=getValueByPath(_0x34c1c5,['addWatermark']);_0x354137!==undefined&&_0x42ac56!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x2f0)],_0x42ac56);const _0xb1acc2=getValueByPath(_0x34c1c5,[_0x5c3c75(0x540)]);_0x354137!==undefined&&_0xb1acc2!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x540)],_0xb1acc2);const _0x360288=getValueByPath(_0x34c1c5,[_0x5c3c75(0x43b)]);_0x354137!==undefined&&_0x360288!=null&&setValueByPath(_0x354137,[_0x5c3c75(0x684),_0x5c3c75(0x43b)],_0x360288);const _0x3da121=getValueByPath(_0x34c1c5,['baseSteps']);return _0x354137!==undefined&&_0x3da121!=null&&setValueByPath(_0x354137,['parameters',_0x5c3c75(0x2db),_0x5c3c75(0x487)],_0x3da121),_0x3df8e3;}function editImageParametersInternalToVertex(_0x323092,_0x7bbfab,_0x1e3a68){const _0x304531=a1_0x54af01,_0x5b55d4={},_0x3dde99=getValueByPath(_0x7bbfab,[_0x304531(0x210)]);_0x3dde99!=null&&setValueByPath(_0x5b55d4,['_url',_0x304531(0x210)],tModel(_0x323092,_0x3dde99));const _0x1a2f74=getValueByPath(_0x7bbfab,[_0x304531(0x6ab)]);_0x1a2f74!=null&&setValueByPath(_0x5b55d4,[_0x304531(0x2e5),'prompt'],_0x1a2f74);const _0x26b974=getValueByPath(_0x7bbfab,[_0x304531(0x467)]);if(_0x26b974!=null){let _0x477825=_0x26b974;Array[_0x304531(0x1e2)](_0x477825)&&(_0x477825=_0x477825[_0x304531(0x261)](_0x43155b=>{return referenceImageAPIInternalToVertex(_0x43155b);})),setValueByPath(_0x5b55d4,[_0x304531(0x2e5),'referenceImages'],_0x477825);}const _0x293a2a=getValueByPath(_0x7bbfab,['config']);return _0x293a2a!=null&&editImageConfigToVertex(_0x293a2a,_0x5b55d4),_0x5b55d4;}function editImageResponseFromVertex(_0x4b813c,_0x37e946){const _0x1caec5={},_0x3800dd=getValueByPath(_0x4b813c,['sdkHttpResponse']);_0x3800dd!=null&&setValueByPath(_0x1caec5,['sdkHttpResponse'],_0x3800dd);const _0x3edcd6=getValueByPath(_0x4b813c,['predictions']);if(_0x3edcd6!=null){let _0x5d8555=_0x3edcd6;Array['isArray'](_0x5d8555)&&(_0x5d8555=_0x5d8555['map'](_0x3c78f9=>{return generatedImageFromVertex(_0x3c78f9);})),setValueByPath(_0x1caec5,['generatedImages'],_0x5d8555);}return _0x1caec5;}function embedContentConfigToMldev(_0x5bd17e,_0x5f04a7,_0x200a4a){const _0x1e1fe3=a1_0x54af01,_0x194752={},_0x3f2784=getValueByPath(_0x5bd17e,[_0x1e1fe3(0x1e3)]);_0x5f04a7!==undefined&&_0x3f2784!=null&&setValueByPath(_0x5f04a7,['requests[]',_0x1e1fe3(0x1e3)],_0x3f2784);const _0x453b06=getValueByPath(_0x5bd17e,[_0x1e1fe3(0x4cc)]);_0x5f04a7!==undefined&&_0x453b06!=null&&setValueByPath(_0x5f04a7,[_0x1e1fe3(0x435),_0x1e1fe3(0x4cc)],_0x453b06);const _0x36a63c=getValueByPath(_0x5bd17e,['outputDimensionality']);_0x5f04a7!==undefined&&_0x36a63c!=null&&setValueByPath(_0x5f04a7,[_0x1e1fe3(0x435),'outputDimensionality'],_0x36a63c);if(getValueByPath(_0x5bd17e,[_0x1e1fe3(0x2cd)])!==undefined)throw new Error(_0x1e1fe3(0x2da));if(getValueByPath(_0x5bd17e,[_0x1e1fe3(0x527)])!==undefined)throw new Error(_0x1e1fe3(0x51a));return _0x194752;}function embedContentConfigToVertex(_0x38bed4,_0x3ce80d,_0x274d48){const _0x262a80=a1_0x54af01,_0xe767bd={},_0xa39ea1=getValueByPath(_0x38bed4,[_0x262a80(0x1e3)]);_0x3ce80d!==undefined&&_0xa39ea1!=null&&setValueByPath(_0x3ce80d,[_0x262a80(0x3df),_0x262a80(0x327)],_0xa39ea1);const _0x3009d3=getValueByPath(_0x38bed4,['title']);_0x3ce80d!==undefined&&_0x3009d3!=null&&setValueByPath(_0x3ce80d,[_0x262a80(0x3df),_0x262a80(0x4cc)],_0x3009d3);const _0x4ecb3f=getValueByPath(_0x38bed4,[_0x262a80(0x5b0)]);_0x3ce80d!==undefined&&_0x4ecb3f!=null&&setValueByPath(_0x3ce80d,[_0x262a80(0x684),'outputDimensionality'],_0x4ecb3f);const _0xfab8c1=getValueByPath(_0x38bed4,[_0x262a80(0x2cd)]);_0x3ce80d!==undefined&&_0xfab8c1!=null&&setValueByPath(_0x3ce80d,[_0x262a80(0x3df),_0x262a80(0x2cd)],_0xfab8c1);const _0x39880e=getValueByPath(_0x38bed4,[_0x262a80(0x527)]);return _0x3ce80d!==undefined&&_0x39880e!=null&&setValueByPath(_0x3ce80d,[_0x262a80(0x684),'autoTruncate'],_0x39880e),_0xe767bd;}function embedContentParametersToMldev(_0x59a869,_0x646dd,_0x178581){const _0x52ef3f=a1_0x54af01,_0x4bae80={},_0x2e8552=getValueByPath(_0x646dd,[_0x52ef3f(0x210)]);_0x2e8552!=null&&setValueByPath(_0x4bae80,['_url','model'],tModel(_0x59a869,_0x2e8552));const _0x1b186d=getValueByPath(_0x646dd,[_0x52ef3f(0x45b)]);if(_0x1b186d!=null){let _0x53076e=tContentsForEmbed(_0x59a869,_0x1b186d);Array[_0x52ef3f(0x1e2)](_0x53076e)&&(_0x53076e=_0x53076e[_0x52ef3f(0x261)](_0x3e32fd=>{return _0x3e32fd;})),setValueByPath(_0x4bae80,['requests[]','content'],_0x53076e);}const _0x523484=getValueByPath(_0x646dd,[_0x52ef3f(0x1b0)]);_0x523484!=null&&embedContentConfigToMldev(_0x523484,_0x4bae80);const _0x66f339=getValueByPath(_0x646dd,[_0x52ef3f(0x210)]);return _0x66f339!==undefined&&setValueByPath(_0x4bae80,[_0x52ef3f(0x435),_0x52ef3f(0x210)],tModel(_0x59a869,_0x66f339)),_0x4bae80;}function embedContentParametersToVertex(_0x5ea019,_0x2a4a8d,_0x3e7ba2){const _0x5d065d=a1_0x54af01,_0x535540={},_0x5d4199=getValueByPath(_0x2a4a8d,[_0x5d065d(0x210)]);_0x5d4199!=null&&setValueByPath(_0x535540,[_0x5d065d(0x4e9),'model'],tModel(_0x5ea019,_0x5d4199));const _0xb7ad8c=getValueByPath(_0x2a4a8d,[_0x5d065d(0x45b)]);if(_0xb7ad8c!=null){let _0x129840=tContentsForEmbed(_0x5ea019,_0xb7ad8c);Array[_0x5d065d(0x1e2)](_0x129840)&&(_0x129840=_0x129840[_0x5d065d(0x261)](_0x2ab64c=>{return _0x2ab64c;})),setValueByPath(_0x535540,[_0x5d065d(0x3df),'content'],_0x129840);}const _0x3ce89d=getValueByPath(_0x2a4a8d,[_0x5d065d(0x1b0)]);return _0x3ce89d!=null&&embedContentConfigToVertex(_0x3ce89d,_0x535540),_0x535540;}function embedContentResponseFromMldev(_0x111d90,_0x5d7ec4){const _0xa346c8=a1_0x54af01,_0x4c8fd8={},_0x590a22=getValueByPath(_0x111d90,['sdkHttpResponse']);_0x590a22!=null&&setValueByPath(_0x4c8fd8,['sdkHttpResponse'],_0x590a22);const _0x22ee75=getValueByPath(_0x111d90,[_0xa346c8(0x21d)]);if(_0x22ee75!=null){let _0x3f6412=_0x22ee75;Array[_0xa346c8(0x1e2)](_0x3f6412)&&(_0x3f6412=_0x3f6412[_0xa346c8(0x261)](_0x10c917=>{return _0x10c917;})),setValueByPath(_0x4c8fd8,[_0xa346c8(0x21d)],_0x3f6412);}const _0x388e4d=getValueByPath(_0x111d90,[_0xa346c8(0x54a)]);return _0x388e4d!=null&&setValueByPath(_0x4c8fd8,[_0xa346c8(0x54a)],_0x388e4d),_0x4c8fd8;}function embedContentResponseFromVertex(_0x1b8dda,_0xa42f3){const _0x1c17c2=a1_0x54af01,_0x1d0ca6={},_0x29acf5=getValueByPath(_0x1b8dda,['sdkHttpResponse']);_0x29acf5!=null&&setValueByPath(_0x1d0ca6,[_0x1c17c2(0x25b)],_0x29acf5);const _0x31fd3c=getValueByPath(_0x1b8dda,['predictions[]',_0x1c17c2(0x21d)]);if(_0x31fd3c!=null){let _0x75cb49=_0x31fd3c;Array[_0x1c17c2(0x1e2)](_0x75cb49)&&(_0x75cb49=_0x75cb49[_0x1c17c2(0x261)](_0x5ca716=>{return contentEmbeddingFromVertex(_0x5ca716);})),setValueByPath(_0x1d0ca6,[_0x1c17c2(0x21d)],_0x75cb49);}const _0x29f8f7=getValueByPath(_0x1b8dda,[_0x1c17c2(0x54a)]);return _0x29f8f7!=null&&setValueByPath(_0x1d0ca6,['metadata'],_0x29f8f7),_0x1d0ca6;}function endpointFromVertex(_0x4dd325,_0x361c51){const _0x16d708=a1_0x54af01,_0x3e2382={},_0x17aceb=getValueByPath(_0x4dd325,['endpoint']);_0x17aceb!=null&&setValueByPath(_0x3e2382,[_0x16d708(0x24b)],_0x17aceb);const _0x26e6fe=getValueByPath(_0x4dd325,[_0x16d708(0x66d)]);return _0x26e6fe!=null&&setValueByPath(_0x3e2382,[_0x16d708(0x66d)],_0x26e6fe),_0x3e2382;}function fileDataToMldev$1(_0x350a44,_0xd0902c){const _0x465ce4=a1_0x54af01,_0x542cc0={};if(getValueByPath(_0x350a44,[_0x465ce4(0x37e)])!==undefined)throw new Error(_0x465ce4(0x5d7));const _0x5b3c1d=getValueByPath(_0x350a44,['fileUri']);_0x5b3c1d!=null&&setValueByPath(_0x542cc0,[_0x465ce4(0x64b)],_0x5b3c1d);const _0x1e0d9b=getValueByPath(_0x350a44,[_0x465ce4(0x2cd)]);return _0x1e0d9b!=null&&setValueByPath(_0x542cc0,[_0x465ce4(0x2cd)],_0x1e0d9b),_0x542cc0;}function functionCallToMldev$1(_0x2b80a0,_0x34a660){const _0x35088e=a1_0x54af01,_0x550296={},_0x423382=getValueByPath(_0x2b80a0,['id']);_0x423382!=null&&setValueByPath(_0x550296,['id'],_0x423382);const _0x5a5200=getValueByPath(_0x2b80a0,[_0x35088e(0x411)]);_0x5a5200!=null&&setValueByPath(_0x550296,[_0x35088e(0x411)],_0x5a5200);const _0x47f0b1=getValueByPath(_0x2b80a0,[_0x35088e(0x24b)]);_0x47f0b1!=null&&setValueByPath(_0x550296,[_0x35088e(0x24b)],_0x47f0b1);if(getValueByPath(_0x2b80a0,[_0x35088e(0x5f4)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x2b80a0,[_0x35088e(0x50f)])!==undefined)throw new Error(_0x35088e(0x2ae));return _0x550296;}function functionCallingConfigToMldev(_0x4a01b5,_0x53c9b3){const _0x6bf4f7=a1_0x54af01,_0x2d9c08={},_0x56945e=getValueByPath(_0x4a01b5,[_0x6bf4f7(0x474)]);_0x56945e!=null&&setValueByPath(_0x2d9c08,[_0x6bf4f7(0x474)],_0x56945e);const _0x378a13=getValueByPath(_0x4a01b5,[_0x6bf4f7(0x45d)]);_0x378a13!=null&&setValueByPath(_0x2d9c08,[_0x6bf4f7(0x45d)],_0x378a13);if(getValueByPath(_0x4a01b5,[_0x6bf4f7(0x678)])!==undefined)throw new Error(_0x6bf4f7(0x48b));return _0x2d9c08;}function functionDeclarationToVertex(_0x107d02,_0x50d6e0){const _0xdf2988=a1_0x54af01,_0x229346={},_0x5431da=getValueByPath(_0x107d02,[_0xdf2988(0x31f)]);_0x5431da!=null&&setValueByPath(_0x229346,[_0xdf2988(0x31f)],_0x5431da);const _0x377947=getValueByPath(_0x107d02,[_0xdf2988(0x24b)]);_0x377947!=null&&setValueByPath(_0x229346,['name'],_0x377947);const _0x3073af=getValueByPath(_0x107d02,[_0xdf2988(0x684)]);_0x3073af!=null&&setValueByPath(_0x229346,[_0xdf2988(0x684)],_0x3073af);const _0x4df315=getValueByPath(_0x107d02,['parametersJsonSchema']);_0x4df315!=null&&setValueByPath(_0x229346,['parametersJsonSchema'],_0x4df315);const _0x2748a6=getValueByPath(_0x107d02,[_0xdf2988(0x575)]);_0x2748a6!=null&&setValueByPath(_0x229346,[_0xdf2988(0x575)],_0x2748a6);const _0x3ee468=getValueByPath(_0x107d02,[_0xdf2988(0x436)]);_0x3ee468!=null&&setValueByPath(_0x229346,['responseJsonSchema'],_0x3ee468);if(getValueByPath(_0x107d02,[_0xdf2988(0x2dc)])!==undefined)throw new Error(_0xdf2988(0x64e));return _0x229346;}function generateContentConfigToMldev(_0xc484da,_0x24f58d,_0x10b24e,_0x1b4365){const _0x72d325=a1_0x54af01,_0x3494e2={},_0x2498f0=getValueByPath(_0x24f58d,[_0x72d325(0x3ea)]);_0x10b24e!==undefined&&_0x2498f0!=null&&setValueByPath(_0x10b24e,[_0x72d325(0x3ea)],contentToMldev$1(tContent(_0x2498f0)));const _0x5b6784=getValueByPath(_0x24f58d,['temperature']);_0x5b6784!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x5ba)],_0x5b6784);const _0x169deb=getValueByPath(_0x24f58d,[_0x72d325(0x200)]);_0x169deb!=null&&setValueByPath(_0x3494e2,['topP'],_0x169deb);const _0x202634=getValueByPath(_0x24f58d,[_0x72d325(0x431)]);_0x202634!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x431)],_0x202634);const _0x30ae6f=getValueByPath(_0x24f58d,['candidateCount']);_0x30ae6f!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x661)],_0x30ae6f);const _0x193bf6=getValueByPath(_0x24f58d,[_0x72d325(0x416)]);_0x193bf6!=null&&setValueByPath(_0x3494e2,['maxOutputTokens'],_0x193bf6);const _0x3829d7=getValueByPath(_0x24f58d,[_0x72d325(0x596)]);_0x3829d7!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x596)],_0x3829d7);const _0x1ddf27=getValueByPath(_0x24f58d,['responseLogprobs']);_0x1ddf27!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x469)],_0x1ddf27);const _0x2a54d0=getValueByPath(_0x24f58d,[_0x72d325(0x640)]);_0x2a54d0!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x640)],_0x2a54d0);const _0xb318ed=getValueByPath(_0x24f58d,[_0x72d325(0x2f9)]);_0xb318ed!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x2f9)],_0xb318ed);const _0x347137=getValueByPath(_0x24f58d,[_0x72d325(0x18c)]);_0x347137!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x18c)],_0x347137);const _0x55fb7e=getValueByPath(_0x24f58d,[_0x72d325(0x444)]);_0x55fb7e!=null&&setValueByPath(_0x3494e2,['seed'],_0x55fb7e);const _0x5794ac=getValueByPath(_0x24f58d,[_0x72d325(0x27e)]);_0x5794ac!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x27e)],_0x5794ac);const _0x5546ea=getValueByPath(_0x24f58d,[_0x72d325(0x1d1)]);_0x5546ea!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x1d1)],tSchema(_0x5546ea));const _0xee8c6e=getValueByPath(_0x24f58d,[_0x72d325(0x436)]);_0xee8c6e!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x436)],_0xee8c6e);if(getValueByPath(_0x24f58d,[_0x72d325(0x49a)])!==undefined)throw new Error(_0x72d325(0x49d));if(getValueByPath(_0x24f58d,[_0x72d325(0x39c)])!==undefined)throw new Error('modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x1c3b17=getValueByPath(_0x24f58d,['safetySettings']);if(_0x10b24e!==undefined&&_0x1c3b17!=null){let _0x18f7d8=_0x1c3b17;Array[_0x72d325(0x1e2)](_0x18f7d8)&&(_0x18f7d8=_0x18f7d8[_0x72d325(0x261)](_0x4596d1=>{return safetySettingToMldev(_0x4596d1);})),setValueByPath(_0x10b24e,[_0x72d325(0x1cf)],_0x18f7d8);}const _0x643f02=getValueByPath(_0x24f58d,[_0x72d325(0x458)]);if(_0x10b24e!==undefined&&_0x643f02!=null){let _0x1cb1d1=tTools(_0x643f02);Array[_0x72d325(0x1e2)](_0x1cb1d1)&&(_0x1cb1d1=_0x1cb1d1['map'](_0x342c7c=>{return toolToMldev$1(tTool(_0x342c7c));})),setValueByPath(_0x10b24e,[_0x72d325(0x458)],_0x1cb1d1);}const _0x1a0593=getValueByPath(_0x24f58d,[_0x72d325(0x47a)]);_0x10b24e!==undefined&&_0x1a0593!=null&&setValueByPath(_0x10b24e,[_0x72d325(0x47a)],toolConfigToMldev(_0x1a0593));if(getValueByPath(_0x24f58d,[_0x72d325(0x540)])!==undefined)throw new Error(_0x72d325(0x53f));const _0x240ec3=getValueByPath(_0x24f58d,[_0x72d325(0x6a8)]);_0x10b24e!==undefined&&_0x240ec3!=null&&setValueByPath(_0x10b24e,[_0x72d325(0x6a8)],tCachedContentName(_0xc484da,_0x240ec3));const _0x1a04f5=getValueByPath(_0x24f58d,[_0x72d325(0x282)]);_0x1a04f5!=null&&setValueByPath(_0x3494e2,['responseModalities'],_0x1a04f5);const _0x14b1e1=getValueByPath(_0x24f58d,[_0x72d325(0x5e8)]);_0x14b1e1!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x5e8)],_0x14b1e1);const _0x30d33e=getValueByPath(_0x24f58d,[_0x72d325(0x63c)]);_0x30d33e!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x63c)],tSpeechConfig(_0x30d33e));if(getValueByPath(_0x24f58d,['audioTimestamp'])!==undefined)throw new Error('audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x48cff4=getValueByPath(_0x24f58d,[_0x72d325(0x59d)]);_0x48cff4!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x59d)],_0x48cff4);const _0x3a439d=getValueByPath(_0x24f58d,[_0x72d325(0x2a6)]);_0x3a439d!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x2a6)],imageConfigToMldev(_0x3a439d));const _0x4da6dc=getValueByPath(_0x24f58d,['enableEnhancedCivicAnswers']);_0x4da6dc!=null&&setValueByPath(_0x3494e2,[_0x72d325(0x2e6)],_0x4da6dc);if(getValueByPath(_0x24f58d,[_0x72d325(0x21e)])!==undefined)throw new Error(_0x72d325(0x5e2));return _0x3494e2;}function generateContentConfigToVertex(_0x122f5c,_0x559a17,_0x41ec2b,_0x2a5d47){const _0x1d18bb=a1_0x54af01,_0x337feb={},_0x312448=getValueByPath(_0x559a17,['systemInstruction']);_0x41ec2b!==undefined&&_0x312448!=null&&setValueByPath(_0x41ec2b,['systemInstruction'],tContent(_0x312448));const _0x55b6a1=getValueByPath(_0x559a17,['temperature']);_0x55b6a1!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x5ba)],_0x55b6a1);const _0x5352bb=getValueByPath(_0x559a17,[_0x1d18bb(0x200)]);_0x5352bb!=null&&setValueByPath(_0x337feb,['topP'],_0x5352bb);const _0x38960a=getValueByPath(_0x559a17,[_0x1d18bb(0x431)]);_0x38960a!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x431)],_0x38960a);const _0x2185d8=getValueByPath(_0x559a17,['candidateCount']);_0x2185d8!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x661)],_0x2185d8);const _0x48538a=getValueByPath(_0x559a17,[_0x1d18bb(0x416)]);_0x48538a!=null&&setValueByPath(_0x337feb,['maxOutputTokens'],_0x48538a);const _0x1dabb0=getValueByPath(_0x559a17,['stopSequences']);_0x1dabb0!=null&&setValueByPath(_0x337feb,['stopSequences'],_0x1dabb0);const _0x48a4d9=getValueByPath(_0x559a17,[_0x1d18bb(0x469)]);_0x48a4d9!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x469)],_0x48a4d9);const _0x54aeb4=getValueByPath(_0x559a17,[_0x1d18bb(0x640)]);_0x54aeb4!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x640)],_0x54aeb4);const _0x28133e=getValueByPath(_0x559a17,['presencePenalty']);_0x28133e!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x2f9)],_0x28133e);const _0x52a23a=getValueByPath(_0x559a17,[_0x1d18bb(0x18c)]);_0x52a23a!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x18c)],_0x52a23a);const _0xd780fb=getValueByPath(_0x559a17,['seed']);_0xd780fb!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x444)],_0xd780fb);const _0x51f90a=getValueByPath(_0x559a17,['responseMimeType']);_0x51f90a!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x27e)],_0x51f90a);const _0x202d56=getValueByPath(_0x559a17,[_0x1d18bb(0x1d1)]);_0x202d56!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x1d1)],tSchema(_0x202d56));const _0x421ca9=getValueByPath(_0x559a17,[_0x1d18bb(0x436)]);_0x421ca9!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x436)],_0x421ca9);const _0x322145=getValueByPath(_0x559a17,[_0x1d18bb(0x49a)]);_0x322145!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x49a)],_0x322145);const _0x42910c=getValueByPath(_0x559a17,['modelSelectionConfig']);_0x42910c!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x5b7)],_0x42910c);const _0x3cabc9=getValueByPath(_0x559a17,[_0x1d18bb(0x1cf)]);if(_0x41ec2b!==undefined&&_0x3cabc9!=null){let _0x78e18a=_0x3cabc9;Array[_0x1d18bb(0x1e2)](_0x78e18a)&&(_0x78e18a=_0x78e18a['map'](_0x4080f3=>{return _0x4080f3;})),setValueByPath(_0x41ec2b,['safetySettings'],_0x78e18a);}const _0x1205bf=getValueByPath(_0x559a17,['tools']);if(_0x41ec2b!==undefined&&_0x1205bf!=null){let _0x241f89=tTools(_0x1205bf);Array[_0x1d18bb(0x1e2)](_0x241f89)&&(_0x241f89=_0x241f89[_0x1d18bb(0x261)](_0x483c13=>{return toolToVertex(tTool(_0x483c13));})),setValueByPath(_0x41ec2b,[_0x1d18bb(0x458)],_0x241f89);}const _0x185b75=getValueByPath(_0x559a17,['toolConfig']);_0x41ec2b!==undefined&&_0x185b75!=null&&setValueByPath(_0x41ec2b,['toolConfig'],_0x185b75);const _0x3775ef=getValueByPath(_0x559a17,[_0x1d18bb(0x540)]);_0x41ec2b!==undefined&&_0x3775ef!=null&&setValueByPath(_0x41ec2b,[_0x1d18bb(0x540)],_0x3775ef);const _0x2d2455=getValueByPath(_0x559a17,[_0x1d18bb(0x6a8)]);_0x41ec2b!==undefined&&_0x2d2455!=null&&setValueByPath(_0x41ec2b,[_0x1d18bb(0x6a8)],tCachedContentName(_0x122f5c,_0x2d2455));const _0x53f00b=getValueByPath(_0x559a17,['responseModalities']);_0x53f00b!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x282)],_0x53f00b);const _0x4f3870=getValueByPath(_0x559a17,[_0x1d18bb(0x5e8)]);_0x4f3870!=null&&setValueByPath(_0x337feb,['mediaResolution'],_0x4f3870);const _0x32f985=getValueByPath(_0x559a17,[_0x1d18bb(0x63c)]);_0x32f985!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x63c)],tSpeechConfig(_0x32f985));const _0xac94bf=getValueByPath(_0x559a17,[_0x1d18bb(0x33e)]);_0xac94bf!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x33e)],_0xac94bf);const _0x4cfc39=getValueByPath(_0x559a17,[_0x1d18bb(0x59d)]);_0x4cfc39!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x59d)],_0x4cfc39);const _0x1da59e=getValueByPath(_0x559a17,[_0x1d18bb(0x2a6)]);_0x1da59e!=null&&setValueByPath(_0x337feb,[_0x1d18bb(0x2a6)],imageConfigToVertex(_0x1da59e));if(getValueByPath(_0x559a17,[_0x1d18bb(0x2e6)])!==undefined)throw new Error('enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');const _0xd74903=getValueByPath(_0x559a17,[_0x1d18bb(0x21e)]);return _0x41ec2b!==undefined&&_0xd74903!=null&&setValueByPath(_0x41ec2b,['modelArmorConfig'],_0xd74903),_0x337feb;}function generateContentParametersToMldev(_0x2956f4,_0x3805ee,_0x205ff5){const _0x598874=a1_0x54af01,_0x60ec57={},_0x384d7b=getValueByPath(_0x3805ee,['model']);_0x384d7b!=null&&setValueByPath(_0x60ec57,[_0x598874(0x4e9),_0x598874(0x210)],tModel(_0x2956f4,_0x384d7b));const _0x470221=getValueByPath(_0x3805ee,['contents']);if(_0x470221!=null){let _0x19eba9=tContents(_0x470221);Array['isArray'](_0x19eba9)&&(_0x19eba9=_0x19eba9[_0x598874(0x261)](_0x72c448=>{return contentToMldev$1(_0x72c448);})),setValueByPath(_0x60ec57,[_0x598874(0x45b)],_0x19eba9);}const _0x3c383a=getValueByPath(_0x3805ee,[_0x598874(0x1b0)]);return _0x3c383a!=null&&setValueByPath(_0x60ec57,[_0x598874(0x42a)],generateContentConfigToMldev(_0x2956f4,_0x3c383a,_0x60ec57)),_0x60ec57;}function generateContentParametersToVertex(_0x4ca2c0,_0x50fa82,_0x79bbf2){const _0x57dd05=a1_0x54af01,_0x4bcf5d={},_0x1f4116=getValueByPath(_0x50fa82,['model']);_0x1f4116!=null&&setValueByPath(_0x4bcf5d,[_0x57dd05(0x4e9),'model'],tModel(_0x4ca2c0,_0x1f4116));const _0x5e968f=getValueByPath(_0x50fa82,[_0x57dd05(0x45b)]);if(_0x5e968f!=null){let _0x1a307e=tContents(_0x5e968f);Array['isArray'](_0x1a307e)&&(_0x1a307e=_0x1a307e[_0x57dd05(0x261)](_0x340fc6=>{return _0x340fc6;})),setValueByPath(_0x4bcf5d,[_0x57dd05(0x45b)],_0x1a307e);}const _0x318a74=getValueByPath(_0x50fa82,[_0x57dd05(0x1b0)]);return _0x318a74!=null&&setValueByPath(_0x4bcf5d,['generationConfig'],generateContentConfigToVertex(_0x4ca2c0,_0x318a74,_0x4bcf5d)),_0x4bcf5d;}function generateContentResponseFromMldev(_0x5d6991,_0x3e73e9){const _0x4bef98=a1_0x54af01,_0x14fe4d={},_0xc0e47e=getValueByPath(_0x5d6991,[_0x4bef98(0x25b)]);_0xc0e47e!=null&&setValueByPath(_0x14fe4d,[_0x4bef98(0x25b)],_0xc0e47e);const _0x3c53e0=getValueByPath(_0x5d6991,[_0x4bef98(0x546)]);if(_0x3c53e0!=null){let _0x537d42=_0x3c53e0;Array[_0x4bef98(0x1e2)](_0x537d42)&&(_0x537d42=_0x537d42[_0x4bef98(0x261)](_0x4b9c02=>{return candidateFromMldev(_0x4b9c02);})),setValueByPath(_0x14fe4d,['candidates'],_0x537d42);}const _0x4af80e=getValueByPath(_0x5d6991,[_0x4bef98(0x6c3)]);_0x4af80e!=null&&setValueByPath(_0x14fe4d,[_0x4bef98(0x6c3)],_0x4af80e);const _0x5bac0c=getValueByPath(_0x5d6991,[_0x4bef98(0x56c)]);_0x5bac0c!=null&&setValueByPath(_0x14fe4d,[_0x4bef98(0x56c)],_0x5bac0c);const _0x1556e8=getValueByPath(_0x5d6991,[_0x4bef98(0x68e)]);_0x1556e8!=null&&setValueByPath(_0x14fe4d,[_0x4bef98(0x68e)],_0x1556e8);const _0x25d055=getValueByPath(_0x5d6991,[_0x4bef98(0x38d)]);return _0x25d055!=null&&setValueByPath(_0x14fe4d,[_0x4bef98(0x38d)],_0x25d055),_0x14fe4d;}function generateContentResponseFromVertex(_0x5942da,_0x5b1c79){const _0x2c4859=a1_0x54af01,_0x531334={},_0x330a99=getValueByPath(_0x5942da,['sdkHttpResponse']);_0x330a99!=null&&setValueByPath(_0x531334,[_0x2c4859(0x25b)],_0x330a99);const _0x446d7b=getValueByPath(_0x5942da,[_0x2c4859(0x546)]);if(_0x446d7b!=null){let _0x27e66f=_0x446d7b;Array['isArray'](_0x27e66f)&&(_0x27e66f=_0x27e66f[_0x2c4859(0x261)](_0x383a74=>{return _0x383a74;})),setValueByPath(_0x531334,[_0x2c4859(0x546)],_0x27e66f);}const _0x2158ad=getValueByPath(_0x5942da,[_0x2c4859(0x28c)]);_0x2158ad!=null&&setValueByPath(_0x531334,[_0x2c4859(0x28c)],_0x2158ad);const _0x3a6697=getValueByPath(_0x5942da,['modelVersion']);_0x3a6697!=null&&setValueByPath(_0x531334,[_0x2c4859(0x6c3)],_0x3a6697);const _0x8871ed=getValueByPath(_0x5942da,[_0x2c4859(0x56c)]);_0x8871ed!=null&&setValueByPath(_0x531334,[_0x2c4859(0x56c)],_0x8871ed);const _0x2fc4ec=getValueByPath(_0x5942da,[_0x2c4859(0x68e)]);_0x2fc4ec!=null&&setValueByPath(_0x531334,[_0x2c4859(0x68e)],_0x2fc4ec);const _0x46974f=getValueByPath(_0x5942da,['usageMetadata']);return _0x46974f!=null&&setValueByPath(_0x531334,[_0x2c4859(0x38d)],_0x46974f),_0x531334;}function generateImagesConfigToMldev(_0x4019f2,_0x45f55f,_0x6c5c4f){const _0x1ebb38=a1_0x54af01,_0x920b33={};if(getValueByPath(_0x4019f2,[_0x1ebb38(0x25c)])!==undefined)throw new Error(_0x1ebb38(0x56d));if(getValueByPath(_0x4019f2,[_0x1ebb38(0x420)])!==undefined)throw new Error(_0x1ebb38(0x3e4));const _0x78848e=getValueByPath(_0x4019f2,[_0x1ebb38(0x3d8)]);_0x45f55f!==undefined&&_0x78848e!=null&&setValueByPath(_0x45f55f,[_0x1ebb38(0x684),'sampleCount'],_0x78848e);const _0x55afd8=getValueByPath(_0x4019f2,[_0x1ebb38(0x628)]);_0x45f55f!==undefined&&_0x55afd8!=null&&setValueByPath(_0x45f55f,['parameters',_0x1ebb38(0x628)],_0x55afd8);const _0x3d8ffa=getValueByPath(_0x4019f2,[_0x1ebb38(0x5cc)]);_0x45f55f!==undefined&&_0x3d8ffa!=null&&setValueByPath(_0x45f55f,[_0x1ebb38(0x684),'guidanceScale'],_0x3d8ffa);if(getValueByPath(_0x4019f2,['seed'])!==undefined)throw new Error(_0x1ebb38(0x248));const _0x1c0200=getValueByPath(_0x4019f2,[_0x1ebb38(0x53d)]);_0x45f55f!==undefined&&_0x1c0200!=null&&setValueByPath(_0x45f55f,[_0x1ebb38(0x684),_0x1ebb38(0x389)],_0x1c0200);const _0x1ac5f1=getValueByPath(_0x4019f2,[_0x1ebb38(0x1f5)]);_0x45f55f!==undefined&&_0x1ac5f1!=null&&setValueByPath(_0x45f55f,[_0x1ebb38(0x684),_0x1ebb38(0x1f5)],_0x1ac5f1);const _0x4c7cbb=getValueByPath(_0x4019f2,['includeSafetyAttributes']);_0x45f55f!==undefined&&_0x4c7cbb!=null&&setValueByPath(_0x45f55f,[_0x1ebb38(0x684),_0x1ebb38(0x183)],_0x4c7cbb);const _0xb311d4=getValueByPath(_0x4019f2,[_0x1ebb38(0x314)]);_0x45f55f!==undefined&&_0xb311d4!=null&&setValueByPath(_0x45f55f,['parameters',_0x1ebb38(0x314)],_0xb311d4);const _0x1a5048=getValueByPath(_0x4019f2,[_0x1ebb38(0x18b)]);_0x45f55f!==undefined&&_0x1a5048!=null&&setValueByPath(_0x45f55f,[_0x1ebb38(0x684),_0x1ebb38(0x18b)],_0x1a5048);const _0x4d359d=getValueByPath(_0x4019f2,[_0x1ebb38(0x1a7)]);_0x45f55f!==undefined&&_0x4d359d!=null&&setValueByPath(_0x45f55f,['parameters',_0x1ebb38(0x6c0),'mimeType'],_0x4d359d);const _0x8d8313=getValueByPath(_0x4019f2,[_0x1ebb38(0x36f)]);_0x45f55f!==undefined&&_0x8d8313!=null&&setValueByPath(_0x45f55f,['parameters',_0x1ebb38(0x6c0),'compressionQuality'],_0x8d8313);if(getValueByPath(_0x4019f2,['addWatermark'])!==undefined)throw new Error(_0x1ebb38(0x1c7));if(getValueByPath(_0x4019f2,['labels'])!==undefined)throw new Error('labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x4fa0f3=getValueByPath(_0x4019f2,[_0x1ebb38(0x41b)]);_0x45f55f!==undefined&&_0x4fa0f3!=null&&setValueByPath(_0x45f55f,['parameters','sampleImageSize'],_0x4fa0f3);if(getValueByPath(_0x4019f2,[_0x1ebb38(0x561)])!==undefined)throw new Error(_0x1ebb38(0x4f8));return _0x920b33;}function generateImagesConfigToVertex(_0x3000f6,_0x5ba561,_0x5d4c96){const _0x2f0efa=a1_0x54af01,_0x22b884={},_0x45cf14=getValueByPath(_0x3000f6,['outputGcsUri']);_0x5ba561!==undefined&&_0x45cf14!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),'storageUri'],_0x45cf14);const _0x3f9225=getValueByPath(_0x3000f6,['negativePrompt']);_0x5ba561!==undefined&&_0x3f9225!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x420)],_0x3f9225);const _0x3888f3=getValueByPath(_0x3000f6,[_0x2f0efa(0x3d8)]);_0x5ba561!==undefined&&_0x3888f3!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x378)],_0x3888f3);const _0x1213f9=getValueByPath(_0x3000f6,['aspectRatio']);_0x5ba561!==undefined&&_0x1213f9!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x628)],_0x1213f9);const _0x185326=getValueByPath(_0x3000f6,[_0x2f0efa(0x5cc)]);_0x5ba561!==undefined&&_0x185326!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),'guidanceScale'],_0x185326);const _0x524a1f=getValueByPath(_0x3000f6,[_0x2f0efa(0x444)]);_0x5ba561!==undefined&&_0x524a1f!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x444)],_0x524a1f);const _0x256aec=getValueByPath(_0x3000f6,[_0x2f0efa(0x53d)]);_0x5ba561!==undefined&&_0x256aec!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),'safetySetting'],_0x256aec);const _0x16c41=getValueByPath(_0x3000f6,['personGeneration']);_0x5ba561!==undefined&&_0x16c41!=null&&setValueByPath(_0x5ba561,['parameters','personGeneration'],_0x16c41);const _0x146ad4=getValueByPath(_0x3000f6,[_0x2f0efa(0x183)]);_0x5ba561!==undefined&&_0x146ad4!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),'includeSafetyAttributes'],_0x146ad4);const _0x450ef6=getValueByPath(_0x3000f6,['includeRaiReason']);_0x5ba561!==undefined&&_0x450ef6!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x314)],_0x450ef6);const _0x10b39a=getValueByPath(_0x3000f6,['language']);_0x5ba561!==undefined&&_0x10b39a!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x18b)],_0x10b39a);const _0x299431=getValueByPath(_0x3000f6,[_0x2f0efa(0x1a7)]);_0x5ba561!==undefined&&_0x299431!=null&&setValueByPath(_0x5ba561,['parameters','outputOptions',_0x2f0efa(0x2cd)],_0x299431);const _0x274609=getValueByPath(_0x3000f6,[_0x2f0efa(0x36f)]);_0x5ba561!==undefined&&_0x274609!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x6c0),_0x2f0efa(0x692)],_0x274609);const _0x38fe9b=getValueByPath(_0x3000f6,[_0x2f0efa(0x2f0)]);_0x5ba561!==undefined&&_0x38fe9b!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x2f0)],_0x38fe9b);const _0xbaaf9b=getValueByPath(_0x3000f6,['labels']);_0x5ba561!==undefined&&_0xbaaf9b!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x540)],_0xbaaf9b);const _0x3d3f8d=getValueByPath(_0x3000f6,[_0x2f0efa(0x41b)]);_0x5ba561!==undefined&&_0x3d3f8d!=null&&setValueByPath(_0x5ba561,[_0x2f0efa(0x684),_0x2f0efa(0x4ed)],_0x3d3f8d);const _0x14c11a=getValueByPath(_0x3000f6,[_0x2f0efa(0x561)]);return _0x5ba561!==undefined&&_0x14c11a!=null&&setValueByPath(_0x5ba561,['parameters',_0x2f0efa(0x561)],_0x14c11a),_0x22b884;}function generateImagesParametersToMldev(_0xb37fa6,_0x43f2d7,_0x4846b6){const _0x529ae7=a1_0x54af01,_0x3d595a={},_0x227dcb=getValueByPath(_0x43f2d7,['model']);_0x227dcb!=null&&setValueByPath(_0x3d595a,['_url',_0x529ae7(0x210)],tModel(_0xb37fa6,_0x227dcb));const _0x2b7783=getValueByPath(_0x43f2d7,[_0x529ae7(0x6ab)]);_0x2b7783!=null&&setValueByPath(_0x3d595a,['instances[0]',_0x529ae7(0x6ab)],_0x2b7783);const _0x4819b5=getValueByPath(_0x43f2d7,[_0x529ae7(0x1b0)]);return _0x4819b5!=null&&generateImagesConfigToMldev(_0x4819b5,_0x3d595a),_0x3d595a;}function generateImagesParametersToVertex(_0x6f74f1,_0x33168d,_0x4d4223){const _0x8b2d1e=a1_0x54af01,_0x2eb1a2={},_0xe95894=getValueByPath(_0x33168d,[_0x8b2d1e(0x210)]);_0xe95894!=null&&setValueByPath(_0x2eb1a2,['_url','model'],tModel(_0x6f74f1,_0xe95894));const _0x3d7afb=getValueByPath(_0x33168d,[_0x8b2d1e(0x6ab)]);_0x3d7afb!=null&&setValueByPath(_0x2eb1a2,[_0x8b2d1e(0x2e5),_0x8b2d1e(0x6ab)],_0x3d7afb);const _0xc3398f=getValueByPath(_0x33168d,[_0x8b2d1e(0x1b0)]);return _0xc3398f!=null&&generateImagesConfigToVertex(_0xc3398f,_0x2eb1a2),_0x2eb1a2;}function generateImagesResponseFromMldev(_0x389764,_0x202eaa){const _0x265b59=a1_0x54af01,_0x34c4a0={},_0x50f344=getValueByPath(_0x389764,[_0x265b59(0x25b)]);_0x50f344!=null&&setValueByPath(_0x34c4a0,[_0x265b59(0x25b)],_0x50f344);const _0x54ec1b=getValueByPath(_0x389764,[_0x265b59(0x66e)]);if(_0x54ec1b!=null){let _0x7e4ae=_0x54ec1b;Array[_0x265b59(0x1e2)](_0x7e4ae)&&(_0x7e4ae=_0x7e4ae[_0x265b59(0x261)](_0x3565e2=>{return generatedImageFromMldev(_0x3565e2);})),setValueByPath(_0x34c4a0,[_0x265b59(0x604)],_0x7e4ae);}const _0xe6d2bf=getValueByPath(_0x389764,['positivePromptSafetyAttributes']);return _0xe6d2bf!=null&&setValueByPath(_0x34c4a0,[_0x265b59(0x616)],safetyAttributesFromMldev(_0xe6d2bf)),_0x34c4a0;}function generateImagesResponseFromVertex(_0x2b529f,_0x3e68e6){const _0x4b7631=a1_0x54af01,_0xf83e62={},_0x217e5b=getValueByPath(_0x2b529f,[_0x4b7631(0x25b)]);_0x217e5b!=null&&setValueByPath(_0xf83e62,[_0x4b7631(0x25b)],_0x217e5b);const _0x16cb38=getValueByPath(_0x2b529f,[_0x4b7631(0x66e)]);if(_0x16cb38!=null){let _0x3f4962=_0x16cb38;Array['isArray'](_0x3f4962)&&(_0x3f4962=_0x3f4962['map'](_0x1a79dc=>{return generatedImageFromVertex(_0x1a79dc);})),setValueByPath(_0xf83e62,[_0x4b7631(0x604)],_0x3f4962);}const _0x2c0ae4=getValueByPath(_0x2b529f,[_0x4b7631(0x616)]);return _0x2c0ae4!=null&&setValueByPath(_0xf83e62,[_0x4b7631(0x616)],safetyAttributesFromVertex(_0x2c0ae4)),_0xf83e62;}function generateVideosConfigToMldev(_0x1183a8,_0x1090ed,_0x2488a2){const _0x35fe6c=a1_0x54af01,_0x49f9ab={},_0x2c71ee=getValueByPath(_0x1183a8,[_0x35fe6c(0x490)]);_0x1090ed!==undefined&&_0x2c71ee!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x684),_0x35fe6c(0x378)],_0x2c71ee);if(getValueByPath(_0x1183a8,[_0x35fe6c(0x25c)])!==undefined)throw new Error(_0x35fe6c(0x56d));if(getValueByPath(_0x1183a8,[_0x35fe6c(0x5f3)])!==undefined)throw new Error(_0x35fe6c(0x1c8));const _0x595e84=getValueByPath(_0x1183a8,[_0x35fe6c(0x4b8)]);_0x1090ed!==undefined&&_0x595e84!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x684),_0x35fe6c(0x4b8)],_0x595e84);if(getValueByPath(_0x1183a8,['seed'])!==undefined)throw new Error(_0x35fe6c(0x248));const _0x3255a5=getValueByPath(_0x1183a8,['aspectRatio']);_0x1090ed!==undefined&&_0x3255a5!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x684),_0x35fe6c(0x628)],_0x3255a5);const _0x49efed=getValueByPath(_0x1183a8,['resolution']);_0x1090ed!==undefined&&_0x49efed!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x684),'resolution'],_0x49efed);const _0x55a58b=getValueByPath(_0x1183a8,['personGeneration']);_0x1090ed!==undefined&&_0x55a58b!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x684),_0x35fe6c(0x1f5)],_0x55a58b);if(getValueByPath(_0x1183a8,[_0x35fe6c(0x603)])!==undefined)throw new Error(_0x35fe6c(0x2d6));const _0x20d131=getValueByPath(_0x1183a8,[_0x35fe6c(0x420)]);_0x1090ed!==undefined&&_0x20d131!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x684),_0x35fe6c(0x420)],_0x20d131);const _0x9d4950=getValueByPath(_0x1183a8,['enhancePrompt']);_0x1090ed!==undefined&&_0x9d4950!=null&&setValueByPath(_0x1090ed,['parameters',_0x35fe6c(0x561)],_0x9d4950);if(getValueByPath(_0x1183a8,['generateAudio'])!==undefined)throw new Error(_0x35fe6c(0x2f2));const _0x1ffa6b=getValueByPath(_0x1183a8,[_0x35fe6c(0x68c)]);_0x1090ed!==undefined&&_0x1ffa6b!=null&&setValueByPath(_0x1090ed,[_0x35fe6c(0x2e5),_0x35fe6c(0x68c)],imageToMldev(_0x1ffa6b));const _0x181b86=getValueByPath(_0x1183a8,[_0x35fe6c(0x467)]);if(_0x1090ed!==undefined&&_0x181b86!=null){let _0xe725e8=_0x181b86;Array[_0x35fe6c(0x1e2)](_0xe725e8)&&(_0xe725e8=_0xe725e8[_0x35fe6c(0x261)](_0xee6112=>{return videoGenerationReferenceImageToMldev(_0xee6112);})),setValueByPath(_0x1090ed,['instances[0]',_0x35fe6c(0x467)],_0xe725e8);}if(getValueByPath(_0x1183a8,[_0x35fe6c(0x562)])!==undefined)throw new Error(_0x35fe6c(0x212));if(getValueByPath(_0x1183a8,[_0x35fe6c(0x692)])!==undefined)throw new Error(_0x35fe6c(0x266));return _0x49f9ab;}function generateVideosConfigToVertex(_0x2b4182,_0x52a333,_0x15b099){const _0x4f4637=a1_0x54af01,_0x2db2bb={},_0x2b43eb=getValueByPath(_0x2b4182,[_0x4f4637(0x490)]);_0x52a333!==undefined&&_0x2b43eb!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x378)],_0x2b43eb);const _0x5a3c6f=getValueByPath(_0x2b4182,['outputGcsUri']);_0x52a333!==undefined&&_0x5a3c6f!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x3a0)],_0x5a3c6f);const _0x5a37d5=getValueByPath(_0x2b4182,[_0x4f4637(0x5f3)]);_0x52a333!==undefined&&_0x5a37d5!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x5f3)],_0x5a37d5);const _0x2ba749=getValueByPath(_0x2b4182,[_0x4f4637(0x4b8)]);_0x52a333!==undefined&&_0x2ba749!=null&&setValueByPath(_0x52a333,['parameters',_0x4f4637(0x4b8)],_0x2ba749);const _0x26a3bd=getValueByPath(_0x2b4182,['seed']);_0x52a333!==undefined&&_0x26a3bd!=null&&setValueByPath(_0x52a333,['parameters','seed'],_0x26a3bd);const _0x4056aa=getValueByPath(_0x2b4182,['aspectRatio']);_0x52a333!==undefined&&_0x4056aa!=null&&setValueByPath(_0x52a333,['parameters',_0x4f4637(0x628)],_0x4056aa);const _0x362414=getValueByPath(_0x2b4182,[_0x4f4637(0x630)]);_0x52a333!==undefined&&_0x362414!=null&&setValueByPath(_0x52a333,['parameters','resolution'],_0x362414);const _0x16873f=getValueByPath(_0x2b4182,[_0x4f4637(0x1f5)]);_0x52a333!==undefined&&_0x16873f!=null&&setValueByPath(_0x52a333,['parameters','personGeneration'],_0x16873f);const _0xfa728f=getValueByPath(_0x2b4182,[_0x4f4637(0x603)]);_0x52a333!==undefined&&_0xfa728f!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x603)],_0xfa728f);const _0x216bc9=getValueByPath(_0x2b4182,[_0x4f4637(0x420)]);_0x52a333!==undefined&&_0x216bc9!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x420)],_0x216bc9);const _0xafd446=getValueByPath(_0x2b4182,[_0x4f4637(0x561)]);_0x52a333!==undefined&&_0xafd446!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x561)],_0xafd446);const _0x23c486=getValueByPath(_0x2b4182,[_0x4f4637(0x278)]);_0x52a333!==undefined&&_0x23c486!=null&&setValueByPath(_0x52a333,['parameters',_0x4f4637(0x278)],_0x23c486);const _0x455d3b=getValueByPath(_0x2b4182,[_0x4f4637(0x68c)]);_0x52a333!==undefined&&_0x455d3b!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x2e5),'lastFrame'],imageToVertex(_0x455d3b));const _0x5c3850=getValueByPath(_0x2b4182,[_0x4f4637(0x467)]);if(_0x52a333!==undefined&&_0x5c3850!=null){let _0x286afd=_0x5c3850;Array['isArray'](_0x286afd)&&(_0x286afd=_0x286afd['map'](_0xd1051e=>{return videoGenerationReferenceImageToVertex(_0xd1051e);})),setValueByPath(_0x52a333,[_0x4f4637(0x2e5),'referenceImages'],_0x286afd);}const _0x1b68b6=getValueByPath(_0x2b4182,[_0x4f4637(0x562)]);_0x52a333!==undefined&&_0x1b68b6!=null&&setValueByPath(_0x52a333,['instances[0]',_0x4f4637(0x562)],videoGenerationMaskToVertex(_0x1b68b6));const _0x50b4a3=getValueByPath(_0x2b4182,['compressionQuality']);return _0x52a333!==undefined&&_0x50b4a3!=null&&setValueByPath(_0x52a333,[_0x4f4637(0x684),_0x4f4637(0x692)],_0x50b4a3),_0x2db2bb;}function generateVideosOperationFromMldev(_0x349b9e,_0x2b92e5){const _0x306103=a1_0x54af01,_0x10859d={},_0x4010d4=getValueByPath(_0x349b9e,['name']);_0x4010d4!=null&&setValueByPath(_0x10859d,[_0x306103(0x24b)],_0x4010d4);const _0x328249=getValueByPath(_0x349b9e,[_0x306103(0x54a)]);_0x328249!=null&&setValueByPath(_0x10859d,['metadata'],_0x328249);const _0x587e15=getValueByPath(_0x349b9e,[_0x306103(0x49f)]);_0x587e15!=null&&setValueByPath(_0x10859d,[_0x306103(0x49f)],_0x587e15);const _0x56f220=getValueByPath(_0x349b9e,['error']);_0x56f220!=null&&setValueByPath(_0x10859d,[_0x306103(0x3d6)],_0x56f220);const _0x1b40b4=getValueByPath(_0x349b9e,[_0x306103(0x575),_0x306103(0x203)]);return _0x1b40b4!=null&&setValueByPath(_0x10859d,[_0x306103(0x575)],generateVideosResponseFromMldev(_0x1b40b4)),_0x10859d;}function generateVideosOperationFromVertex(_0x15efba,_0x5be94a){const _0x8871d6=a1_0x54af01,_0x1020c0={},_0x107bbc=getValueByPath(_0x15efba,[_0x8871d6(0x24b)]);_0x107bbc!=null&&setValueByPath(_0x1020c0,['name'],_0x107bbc);const _0x36dd2b=getValueByPath(_0x15efba,['metadata']);_0x36dd2b!=null&&setValueByPath(_0x1020c0,['metadata'],_0x36dd2b);const _0x42b804=getValueByPath(_0x15efba,[_0x8871d6(0x49f)]);_0x42b804!=null&&setValueByPath(_0x1020c0,['done'],_0x42b804);const _0x1cd38a=getValueByPath(_0x15efba,[_0x8871d6(0x3d6)]);_0x1cd38a!=null&&setValueByPath(_0x1020c0,[_0x8871d6(0x3d6)],_0x1cd38a);const _0x4053b2=getValueByPath(_0x15efba,[_0x8871d6(0x575)]);return _0x4053b2!=null&&setValueByPath(_0x1020c0,[_0x8871d6(0x575)],generateVideosResponseFromVertex(_0x4053b2)),_0x1020c0;}function generateVideosParametersToMldev(_0x508b2e,_0x301e3f,_0x76ab49){const _0x159c8f=a1_0x54af01,_0x12192d={},_0x43c4e2=getValueByPath(_0x301e3f,['model']);_0x43c4e2!=null&&setValueByPath(_0x12192d,[_0x159c8f(0x4e9),_0x159c8f(0x210)],tModel(_0x508b2e,_0x43c4e2));const _0x5ac08f=getValueByPath(_0x301e3f,[_0x159c8f(0x6ab)]);_0x5ac08f!=null&&setValueByPath(_0x12192d,['instances[0]',_0x159c8f(0x6ab)],_0x5ac08f);const _0x2a6335=getValueByPath(_0x301e3f,[_0x159c8f(0x401)]);_0x2a6335!=null&&setValueByPath(_0x12192d,['instances[0]',_0x159c8f(0x401)],imageToMldev(_0x2a6335));const _0x34049d=getValueByPath(_0x301e3f,[_0x159c8f(0x246)]);_0x34049d!=null&&setValueByPath(_0x12192d,[_0x159c8f(0x2e5),_0x159c8f(0x246)],videoToMldev(_0x34049d));const _0x25eed5=getValueByPath(_0x301e3f,[_0x159c8f(0x520)]);_0x25eed5!=null&&generateVideosSourceToMldev(_0x25eed5,_0x12192d);const _0x4001e6=getValueByPath(_0x301e3f,[_0x159c8f(0x1b0)]);return _0x4001e6!=null&&generateVideosConfigToMldev(_0x4001e6,_0x12192d),_0x12192d;}function generateVideosParametersToVertex(_0x30c0e6,_0x549c43,_0x1d246a){const _0x2d382f=a1_0x54af01,_0x2643f8={},_0x2b72ab=getValueByPath(_0x549c43,[_0x2d382f(0x210)]);_0x2b72ab!=null&&setValueByPath(_0x2643f8,[_0x2d382f(0x4e9),_0x2d382f(0x210)],tModel(_0x30c0e6,_0x2b72ab));const _0x51008e=getValueByPath(_0x549c43,['prompt']);_0x51008e!=null&&setValueByPath(_0x2643f8,[_0x2d382f(0x2e5),_0x2d382f(0x6ab)],_0x51008e);const _0x457cf5=getValueByPath(_0x549c43,[_0x2d382f(0x401)]);_0x457cf5!=null&&setValueByPath(_0x2643f8,[_0x2d382f(0x2e5),_0x2d382f(0x401)],imageToVertex(_0x457cf5));const _0x3b171f=getValueByPath(_0x549c43,[_0x2d382f(0x246)]);_0x3b171f!=null&&setValueByPath(_0x2643f8,[_0x2d382f(0x2e5),_0x2d382f(0x246)],videoToVertex(_0x3b171f));const _0x4d5b41=getValueByPath(_0x549c43,[_0x2d382f(0x520)]);_0x4d5b41!=null&&generateVideosSourceToVertex(_0x4d5b41,_0x2643f8);const _0x45d3ff=getValueByPath(_0x549c43,['config']);return _0x45d3ff!=null&&generateVideosConfigToVertex(_0x45d3ff,_0x2643f8),_0x2643f8;}function generateVideosResponseFromMldev(_0x1bc54a,_0x269063){const _0x2477c2=a1_0x54af01,_0x5622bb={},_0x1fd00d=getValueByPath(_0x1bc54a,[_0x2477c2(0x35c)]);if(_0x1fd00d!=null){let _0x2a1c5c=_0x1fd00d;Array['isArray'](_0x2a1c5c)&&(_0x2a1c5c=_0x2a1c5c[_0x2477c2(0x261)](_0x1042fb=>{return generatedVideoFromMldev(_0x1042fb);})),setValueByPath(_0x5622bb,[_0x2477c2(0x55a)],_0x2a1c5c);}const _0x26af4f=getValueByPath(_0x1bc54a,[_0x2477c2(0x206)]);_0x26af4f!=null&&setValueByPath(_0x5622bb,[_0x2477c2(0x206)],_0x26af4f);const _0x49f135=getValueByPath(_0x1bc54a,['raiMediaFilteredReasons']);return _0x49f135!=null&&setValueByPath(_0x5622bb,[_0x2477c2(0x1ec)],_0x49f135),_0x5622bb;}function generateVideosResponseFromVertex(_0xc4b6e7,_0x501a38){const _0xc88323=a1_0x54af01,_0x49f9c4={},_0x54c584=getValueByPath(_0xc4b6e7,[_0xc88323(0x426)]);if(_0x54c584!=null){let _0x38a344=_0x54c584;Array['isArray'](_0x38a344)&&(_0x38a344=_0x38a344[_0xc88323(0x261)](_0x332e7d=>{return generatedVideoFromVertex(_0x332e7d);})),setValueByPath(_0x49f9c4,[_0xc88323(0x55a)],_0x38a344);}const _0x984c49=getValueByPath(_0xc4b6e7,[_0xc88323(0x206)]);_0x984c49!=null&&setValueByPath(_0x49f9c4,['raiMediaFilteredCount'],_0x984c49);const _0xc49040=getValueByPath(_0xc4b6e7,[_0xc88323(0x1ec)]);return _0xc49040!=null&&setValueByPath(_0x49f9c4,[_0xc88323(0x1ec)],_0xc49040),_0x49f9c4;}function generateVideosSourceToMldev(_0x39635d,_0x55b5b0,_0x3ebacc){const _0x3e5f34=a1_0x54af01,_0x57d929={},_0x3dd76b=getValueByPath(_0x39635d,[_0x3e5f34(0x6ab)]);_0x55b5b0!==undefined&&_0x3dd76b!=null&&setValueByPath(_0x55b5b0,[_0x3e5f34(0x2e5),'prompt'],_0x3dd76b);const _0x3d5fc5=getValueByPath(_0x39635d,[_0x3e5f34(0x401)]);_0x55b5b0!==undefined&&_0x3d5fc5!=null&&setValueByPath(_0x55b5b0,[_0x3e5f34(0x2e5),_0x3e5f34(0x401)],imageToMldev(_0x3d5fc5));const _0x1da587=getValueByPath(_0x39635d,[_0x3e5f34(0x246)]);return _0x55b5b0!==undefined&&_0x1da587!=null&&setValueByPath(_0x55b5b0,['instances[0]','video'],videoToMldev(_0x1da587)),_0x57d929;}function generateVideosSourceToVertex(_0x116760,_0x539864,_0xd05e06){const _0x25c339=a1_0x54af01,_0x25949b={},_0x270a14=getValueByPath(_0x116760,['prompt']);_0x539864!==undefined&&_0x270a14!=null&&setValueByPath(_0x539864,[_0x25c339(0x2e5),_0x25c339(0x6ab)],_0x270a14);const _0x49c92a=getValueByPath(_0x116760,[_0x25c339(0x401)]);_0x539864!==undefined&&_0x49c92a!=null&&setValueByPath(_0x539864,[_0x25c339(0x2e5),_0x25c339(0x401)],imageToVertex(_0x49c92a));const _0x6443de=getValueByPath(_0x116760,[_0x25c339(0x246)]);return _0x539864!==undefined&&_0x6443de!=null&&setValueByPath(_0x539864,[_0x25c339(0x2e5),_0x25c339(0x246)],videoToVertex(_0x6443de)),_0x25949b;}function generatedImageFromMldev(_0x40261f,_0x2612c7){const _0x4c12da=a1_0x54af01,_0x37a1d3={},_0x2119ca=getValueByPath(_0x40261f,[_0x4c12da(0x339)]);_0x2119ca!=null&&setValueByPath(_0x37a1d3,[_0x4c12da(0x401)],imageFromMldev(_0x2119ca));const _0x207355=getValueByPath(_0x40261f,['raiFilteredReason']);_0x207355!=null&&setValueByPath(_0x37a1d3,[_0x4c12da(0x297)],_0x207355);const _0x143714=getValueByPath(_0x40261f,[_0x4c12da(0x339)]);return _0x143714!=null&&setValueByPath(_0x37a1d3,[_0x4c12da(0x2b0)],safetyAttributesFromMldev(_0x143714)),_0x37a1d3;}function generatedImageFromVertex(_0x4ba668,_0x4f3fce){const _0x1ebc69=a1_0x54af01,_0x5c6c1b={},_0x5d38a1=getValueByPath(_0x4ba668,[_0x1ebc69(0x339)]);_0x5d38a1!=null&&setValueByPath(_0x5c6c1b,[_0x1ebc69(0x401)],imageFromVertex(_0x5d38a1));const _0x1d4d6f=getValueByPath(_0x4ba668,[_0x1ebc69(0x297)]);_0x1d4d6f!=null&&setValueByPath(_0x5c6c1b,['raiFilteredReason'],_0x1d4d6f);const _0x2ce6b7=getValueByPath(_0x4ba668,[_0x1ebc69(0x339)]);_0x2ce6b7!=null&&setValueByPath(_0x5c6c1b,[_0x1ebc69(0x2b0)],safetyAttributesFromVertex(_0x2ce6b7));const _0x4db4ea=getValueByPath(_0x4ba668,['prompt']);return _0x4db4ea!=null&&setValueByPath(_0x5c6c1b,[_0x1ebc69(0x641)],_0x4db4ea),_0x5c6c1b;}function generatedImageMaskFromVertex(_0x123615,_0x236250){const _0x29ca83=a1_0x54af01,_0x11fafe={},_0x5b39a8=getValueByPath(_0x123615,['_self']);_0x5b39a8!=null&&setValueByPath(_0x11fafe,['mask'],imageFromVertex(_0x5b39a8));const _0x4c3fb0=getValueByPath(_0x123615,[_0x29ca83(0x540)]);if(_0x4c3fb0!=null){let _0xb26414=_0x4c3fb0;Array[_0x29ca83(0x1e2)](_0xb26414)&&(_0xb26414=_0xb26414[_0x29ca83(0x261)](_0x4fb6d8=>{return _0x4fb6d8;})),setValueByPath(_0x11fafe,[_0x29ca83(0x540)],_0xb26414);}return _0x11fafe;}function generatedVideoFromMldev(_0x350557,_0x113045){const _0x4f1c59=a1_0x54af01,_0x1767af={},_0x501e20=getValueByPath(_0x350557,[_0x4f1c59(0x246)]);return _0x501e20!=null&&setValueByPath(_0x1767af,[_0x4f1c59(0x246)],videoFromMldev(_0x501e20)),_0x1767af;}function generatedVideoFromVertex(_0x56c0f7,_0x5f299c){const _0x2d354e=a1_0x54af01,_0x3cbb11={},_0x4cdabc=getValueByPath(_0x56c0f7,[_0x2d354e(0x339)]);return _0x4cdabc!=null&&setValueByPath(_0x3cbb11,[_0x2d354e(0x246)],videoFromVertex(_0x4cdabc)),_0x3cbb11;}function generationConfigToVertex(_0x24721e,_0x274de2){const _0x22a2d9=a1_0x54af01,_0x4efa94={},_0x21092b=getValueByPath(_0x24721e,[_0x22a2d9(0x39c)]);_0x21092b!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x5b7)],_0x21092b);const _0x454ab5=getValueByPath(_0x24721e,['responseJsonSchema']);_0x454ab5!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x436)],_0x454ab5);const _0x2b0be4=getValueByPath(_0x24721e,[_0x22a2d9(0x33e)]);_0x2b0be4!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x33e)],_0x2b0be4);const _0x1f3ebf=getValueByPath(_0x24721e,[_0x22a2d9(0x661)]);_0x1f3ebf!=null&&setValueByPath(_0x4efa94,['candidateCount'],_0x1f3ebf);const _0x409530=getValueByPath(_0x24721e,[_0x22a2d9(0x64c)]);_0x409530!=null&&setValueByPath(_0x4efa94,['enableAffectiveDialog'],_0x409530);const _0x3cdc0c=getValueByPath(_0x24721e,['frequencyPenalty']);_0x3cdc0c!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x18c)],_0x3cdc0c);const _0x9dca6=getValueByPath(_0x24721e,['logprobs']);_0x9dca6!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x640)],_0x9dca6);const _0x3eb0bb=getValueByPath(_0x24721e,['maxOutputTokens']);_0x3eb0bb!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x416)],_0x3eb0bb);const _0x3c24d4=getValueByPath(_0x24721e,[_0x22a2d9(0x5e8)]);_0x3c24d4!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x5e8)],_0x3c24d4);const _0x1b80e2=getValueByPath(_0x24721e,[_0x22a2d9(0x2f9)]);_0x1b80e2!=null&&setValueByPath(_0x4efa94,['presencePenalty'],_0x1b80e2);const _0xf9af67=getValueByPath(_0x24721e,['responseLogprobs']);_0xf9af67!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x469)],_0xf9af67);const _0x3c4f19=getValueByPath(_0x24721e,['responseMimeType']);_0x3c4f19!=null&&setValueByPath(_0x4efa94,['responseMimeType'],_0x3c4f19);const _0x141544=getValueByPath(_0x24721e,[_0x22a2d9(0x282)]);_0x141544!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x282)],_0x141544);const _0x137902=getValueByPath(_0x24721e,[_0x22a2d9(0x1d1)]);_0x137902!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x1d1)],_0x137902);const _0x3bc0f3=getValueByPath(_0x24721e,[_0x22a2d9(0x49a)]);_0x3bc0f3!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x49a)],_0x3bc0f3);const _0x4223be=getValueByPath(_0x24721e,[_0x22a2d9(0x444)]);_0x4223be!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x444)],_0x4223be);const _0x2888dd=getValueByPath(_0x24721e,['speechConfig']);_0x2888dd!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x63c)],_0x2888dd);const _0x579bd9=getValueByPath(_0x24721e,['stopSequences']);_0x579bd9!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x596)],_0x579bd9);const _0x3e9344=getValueByPath(_0x24721e,['temperature']);_0x3e9344!=null&&setValueByPath(_0x4efa94,['temperature'],_0x3e9344);const _0x28b0a2=getValueByPath(_0x24721e,[_0x22a2d9(0x59d)]);_0x28b0a2!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x59d)],_0x28b0a2);const _0x364f83=getValueByPath(_0x24721e,[_0x22a2d9(0x431)]);_0x364f83!=null&&setValueByPath(_0x4efa94,['topK'],_0x364f83);const _0x3046eb=getValueByPath(_0x24721e,[_0x22a2d9(0x200)]);_0x3046eb!=null&&setValueByPath(_0x4efa94,[_0x22a2d9(0x200)],_0x3046eb);if(getValueByPath(_0x24721e,['enableEnhancedCivicAnswers'])!==undefined)throw new Error(_0x22a2d9(0x602));return _0x4efa94;}function getModelParametersToMldev(_0x159bae,_0x5cb220,_0x53e318){const _0x1e43fb=a1_0x54af01,_0x1a2299={},_0x5605bf=getValueByPath(_0x5cb220,[_0x1e43fb(0x210)]);return _0x5605bf!=null&&setValueByPath(_0x1a2299,[_0x1e43fb(0x4e9),_0x1e43fb(0x24b)],tModel(_0x159bae,_0x5605bf)),_0x1a2299;}function getModelParametersToVertex(_0x5d7262,_0x2dbd0c,_0x31b4d0){const _0x54ef5a={},_0xba3535=getValueByPath(_0x2dbd0c,['model']);return _0xba3535!=null&&setValueByPath(_0x54ef5a,['_url','name'],tModel(_0x5d7262,_0xba3535)),_0x54ef5a;}function googleMapsToMldev$1(_0x10987e,_0x5d0b93){const _0x22d1cc=a1_0x54af01,_0x245f35={};if(getValueByPath(_0x10987e,[_0x22d1cc(0x699)])!==undefined)throw new Error(_0x22d1cc(0x590));const _0x18120e=getValueByPath(_0x10987e,[_0x22d1cc(0x63d)]);return _0x18120e!=null&&setValueByPath(_0x245f35,['enableWidget'],_0x18120e),_0x245f35;}function googleSearchToMldev$1(_0x395ea1,_0x30463a){const _0x3117fb=a1_0x54af01,_0x31513d={};if(getValueByPath(_0x395ea1,['excludeDomains'])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x395ea1,[_0x3117fb(0x653)])!==undefined)throw new Error(_0x3117fb(0x614));const _0x135bcb=getValueByPath(_0x395ea1,[_0x3117fb(0x446)]);return _0x135bcb!=null&&setValueByPath(_0x31513d,['timeRangeFilter'],_0x135bcb),_0x31513d;}function imageConfigToMldev(_0x587ada,_0x461095){const _0x191d93=a1_0x54af01,_0x459481={},_0x4361dd=getValueByPath(_0x587ada,[_0x191d93(0x628)]);_0x4361dd!=null&&setValueByPath(_0x459481,[_0x191d93(0x628)],_0x4361dd);const _0x491def=getValueByPath(_0x587ada,[_0x191d93(0x41b)]);_0x491def!=null&&setValueByPath(_0x459481,[_0x191d93(0x41b)],_0x491def);if(getValueByPath(_0x587ada,[_0x191d93(0x1f5)])!==undefined)throw new Error(_0x191d93(0x18f));if(getValueByPath(_0x587ada,['outputMimeType'])!==undefined)throw new Error(_0x191d93(0x4db));if(getValueByPath(_0x587ada,['outputCompressionQuality'])!==undefined)throw new Error(_0x191d93(0x296));return _0x459481;}function imageConfigToVertex(_0x3c39e0,_0x5c33dc){const _0x58ea86=a1_0x54af01,_0x28b19d={},_0x300293=getValueByPath(_0x3c39e0,[_0x58ea86(0x628)]);_0x300293!=null&&setValueByPath(_0x28b19d,['aspectRatio'],_0x300293);const _0x577628=getValueByPath(_0x3c39e0,['imageSize']);_0x577628!=null&&setValueByPath(_0x28b19d,['imageSize'],_0x577628);const _0x465c23=getValueByPath(_0x3c39e0,[_0x58ea86(0x1f5)]);_0x465c23!=null&&setValueByPath(_0x28b19d,['personGeneration'],_0x465c23);const _0x16f542=getValueByPath(_0x3c39e0,[_0x58ea86(0x1a7)]);_0x16f542!=null&&setValueByPath(_0x28b19d,[_0x58ea86(0x60e),_0x58ea86(0x2cd)],_0x16f542);const _0x587832=getValueByPath(_0x3c39e0,[_0x58ea86(0x36f)]);return _0x587832!=null&&setValueByPath(_0x28b19d,[_0x58ea86(0x60e),_0x58ea86(0x692)],_0x587832),_0x28b19d;}function imageFromMldev(_0x3fd51c,_0x1eb6cd){const _0x3208f8=a1_0x54af01,_0x95223c={},_0x212151=getValueByPath(_0x3fd51c,[_0x3208f8(0x33c)]);_0x212151!=null&&setValueByPath(_0x95223c,[_0x3208f8(0x44e)],tBytes(_0x212151));const _0x14e03a=getValueByPath(_0x3fd51c,[_0x3208f8(0x2cd)]);return _0x14e03a!=null&&setValueByPath(_0x95223c,[_0x3208f8(0x2cd)],_0x14e03a),_0x95223c;}function imageFromVertex(_0x1ac1a6,_0xdd34c6){const _0x3de0ab=a1_0x54af01,_0x140f45={},_0x279046=getValueByPath(_0x1ac1a6,[_0x3de0ab(0x576)]);_0x279046!=null&&setValueByPath(_0x140f45,[_0x3de0ab(0x576)],_0x279046);const _0x361a57=getValueByPath(_0x1ac1a6,[_0x3de0ab(0x33c)]);_0x361a57!=null&&setValueByPath(_0x140f45,[_0x3de0ab(0x44e)],tBytes(_0x361a57));const _0x365f43=getValueByPath(_0x1ac1a6,['mimeType']);return _0x365f43!=null&&setValueByPath(_0x140f45,[_0x3de0ab(0x2cd)],_0x365f43),_0x140f45;}function imageToMldev(_0x1e3b94,_0x3e4049){const _0x1fc766=a1_0x54af01,_0x509f62={};if(getValueByPath(_0x1e3b94,[_0x1fc766(0x576)])!==undefined)throw new Error(_0x1fc766(0x67f));const _0x419a92=getValueByPath(_0x1e3b94,[_0x1fc766(0x44e)]);_0x419a92!=null&&setValueByPath(_0x509f62,[_0x1fc766(0x33c)],tBytes(_0x419a92));const _0x10457c=getValueByPath(_0x1e3b94,[_0x1fc766(0x2cd)]);return _0x10457c!=null&&setValueByPath(_0x509f62,[_0x1fc766(0x2cd)],_0x10457c),_0x509f62;}function imageToVertex(_0x33b00d,_0x4355a5){const _0x109e2f=a1_0x54af01,_0x2156b8={},_0x44ecb0=getValueByPath(_0x33b00d,['gcsUri']);_0x44ecb0!=null&&setValueByPath(_0x2156b8,[_0x109e2f(0x576)],_0x44ecb0);const _0x3c633a=getValueByPath(_0x33b00d,['imageBytes']);_0x3c633a!=null&&setValueByPath(_0x2156b8,[_0x109e2f(0x33c)],tBytes(_0x3c633a));const _0x1af4ab=getValueByPath(_0x33b00d,[_0x109e2f(0x2cd)]);return _0x1af4ab!=null&&setValueByPath(_0x2156b8,['mimeType'],_0x1af4ab),_0x2156b8;}function listModelsConfigToMldev(_0x3fbc55,_0x54e2ef,_0x5d7862,_0x1dc950){const _0x56f8e9=a1_0x54af01,_0x59a40d={},_0x32e37c=getValueByPath(_0x54e2ef,[_0x56f8e9(0x3a4)]);_0x5d7862!==undefined&&_0x32e37c!=null&&setValueByPath(_0x5d7862,[_0x56f8e9(0x46e),_0x56f8e9(0x3a4)],_0x32e37c);const _0x9668d1=getValueByPath(_0x54e2ef,[_0x56f8e9(0x5ac)]);_0x5d7862!==undefined&&_0x9668d1!=null&&setValueByPath(_0x5d7862,['_query',_0x56f8e9(0x5ac)],_0x9668d1);const _0x3688d8=getValueByPath(_0x54e2ef,[_0x56f8e9(0x61b)]);_0x5d7862!==undefined&&_0x3688d8!=null&&setValueByPath(_0x5d7862,['_query','filter'],_0x3688d8);const _0x23c137=getValueByPath(_0x54e2ef,[_0x56f8e9(0x601)]);return _0x5d7862!==undefined&&_0x23c137!=null&&setValueByPath(_0x5d7862,[_0x56f8e9(0x4e9),'models_url'],tModelsUrl(_0x3fbc55,_0x23c137)),_0x59a40d;}function listModelsConfigToVertex(_0x3e328a,_0x28c076,_0x3d1d25,_0x34fa9e){const _0x39d4c7=a1_0x54af01,_0x26d377={},_0x112165=getValueByPath(_0x28c076,[_0x39d4c7(0x3a4)]);_0x3d1d25!==undefined&&_0x112165!=null&&setValueByPath(_0x3d1d25,[_0x39d4c7(0x46e),'pageSize'],_0x112165);const _0x599ed4=getValueByPath(_0x28c076,[_0x39d4c7(0x5ac)]);_0x3d1d25!==undefined&&_0x599ed4!=null&&setValueByPath(_0x3d1d25,['_query',_0x39d4c7(0x5ac)],_0x599ed4);const _0x446bfb=getValueByPath(_0x28c076,['filter']);_0x3d1d25!==undefined&&_0x446bfb!=null&&setValueByPath(_0x3d1d25,[_0x39d4c7(0x46e),_0x39d4c7(0x61b)],_0x446bfb);const _0x1eaf66=getValueByPath(_0x28c076,[_0x39d4c7(0x601)]);return _0x3d1d25!==undefined&&_0x1eaf66!=null&&setValueByPath(_0x3d1d25,[_0x39d4c7(0x4e9),'models_url'],tModelsUrl(_0x3e328a,_0x1eaf66)),_0x26d377;}function listModelsParametersToMldev(_0x5a4cdf,_0x4a95d2,_0x8755b9){const _0x4dfe1d=a1_0x54af01,_0x1480aa={},_0x4545c4=getValueByPath(_0x4a95d2,[_0x4dfe1d(0x1b0)]);return _0x4545c4!=null&&listModelsConfigToMldev(_0x5a4cdf,_0x4545c4,_0x1480aa),_0x1480aa;}function listModelsParametersToVertex(_0x48c045,_0x2af6e4,_0x244bb8){const _0x1f52cd=a1_0x54af01,_0x46d2c6={},_0x14271f=getValueByPath(_0x2af6e4,[_0x1f52cd(0x1b0)]);return _0x14271f!=null&&listModelsConfigToVertex(_0x48c045,_0x14271f,_0x46d2c6),_0x46d2c6;}function listModelsResponseFromMldev(_0x2df1af,_0x2e9fd9){const _0x3ac84f=a1_0x54af01,_0x392e8a={},_0x18df88=getValueByPath(_0x2df1af,['sdkHttpResponse']);_0x18df88!=null&&setValueByPath(_0x392e8a,[_0x3ac84f(0x25b)],_0x18df88);const _0x19072a=getValueByPath(_0x2df1af,[_0x3ac84f(0x408)]);_0x19072a!=null&&setValueByPath(_0x392e8a,[_0x3ac84f(0x408)],_0x19072a);const _0x3940e4=getValueByPath(_0x2df1af,[_0x3ac84f(0x339)]);if(_0x3940e4!=null){let _0x52554f=tExtractModels(_0x3940e4);Array[_0x3ac84f(0x1e2)](_0x52554f)&&(_0x52554f=_0x52554f[_0x3ac84f(0x261)](_0x3c2725=>{return modelFromMldev(_0x3c2725);})),setValueByPath(_0x392e8a,['models'],_0x52554f);}return _0x392e8a;}function listModelsResponseFromVertex(_0x22a517,_0x240df2){const _0x1e9ad9=a1_0x54af01,_0xba0265={},_0x2d1c1c=getValueByPath(_0x22a517,['sdkHttpResponse']);_0x2d1c1c!=null&&setValueByPath(_0xba0265,[_0x1e9ad9(0x25b)],_0x2d1c1c);const _0x3f24f1=getValueByPath(_0x22a517,[_0x1e9ad9(0x408)]);_0x3f24f1!=null&&setValueByPath(_0xba0265,['nextPageToken'],_0x3f24f1);const _0x54ad=getValueByPath(_0x22a517,[_0x1e9ad9(0x339)]);if(_0x54ad!=null){let _0x2a79eb=tExtractModels(_0x54ad);Array[_0x1e9ad9(0x1e2)](_0x2a79eb)&&(_0x2a79eb=_0x2a79eb['map'](_0x31c838=>{return modelFromVertex(_0x31c838);})),setValueByPath(_0xba0265,['models'],_0x2a79eb);}return _0xba0265;}function maskReferenceConfigToVertex(_0x475da4,_0x3e71ec){const _0x16c86e=a1_0x54af01,_0x2713ad={},_0x351030=getValueByPath(_0x475da4,[_0x16c86e(0x32d)]);_0x351030!=null&&setValueByPath(_0x2713ad,['maskMode'],_0x351030);const _0x4b621b=getValueByPath(_0x475da4,[_0x16c86e(0x4a9)]);_0x4b621b!=null&&setValueByPath(_0x2713ad,[_0x16c86e(0x4ce)],_0x4b621b);const _0x578bc6=getValueByPath(_0x475da4,[_0x16c86e(0x644)]);return _0x578bc6!=null&&setValueByPath(_0x2713ad,[_0x16c86e(0x305)],_0x578bc6),_0x2713ad;}function modelFromMldev(_0xda6cd2,_0x273db2){const _0x2cda55=a1_0x54af01,_0x59e419={},_0x920385=getValueByPath(_0xda6cd2,[_0x2cda55(0x24b)]);_0x920385!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x24b)],_0x920385);const _0x3df9e1=getValueByPath(_0xda6cd2,['displayName']);_0x3df9e1!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x37e)],_0x3df9e1);const _0x99358d=getValueByPath(_0xda6cd2,[_0x2cda55(0x31f)]);_0x99358d!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x31f)],_0x99358d);const _0x235e8e=getValueByPath(_0xda6cd2,['version']);_0x235e8e!=null&&setValueByPath(_0x59e419,['version'],_0x235e8e);const _0x2effdb=getValueByPath(_0xda6cd2,[_0x2cda55(0x339)]);_0x2effdb!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x404)],tunedModelInfoFromMldev(_0x2effdb));const _0x349a31=getValueByPath(_0xda6cd2,[_0x2cda55(0x4d3)]);_0x349a31!=null&&setValueByPath(_0x59e419,['inputTokenLimit'],_0x349a31);const _0x15279a=getValueByPath(_0xda6cd2,[_0x2cda55(0x6ad)]);_0x15279a!=null&&setValueByPath(_0x59e419,['outputTokenLimit'],_0x15279a);const _0x4f1c9d=getValueByPath(_0xda6cd2,['supportedGenerationMethods']);_0x4f1c9d!=null&&setValueByPath(_0x59e419,['supportedActions'],_0x4f1c9d);const _0x464611=getValueByPath(_0xda6cd2,[_0x2cda55(0x5ba)]);_0x464611!=null&&setValueByPath(_0x59e419,['temperature'],_0x464611);const _0x1d1424=getValueByPath(_0xda6cd2,[_0x2cda55(0x40e)]);_0x1d1424!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x40e)],_0x1d1424);const _0x3d6b08=getValueByPath(_0xda6cd2,[_0x2cda55(0x200)]);_0x3d6b08!=null&&setValueByPath(_0x59e419,['topP'],_0x3d6b08);const _0x288528=getValueByPath(_0xda6cd2,['topK']);_0x288528!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x431)],_0x288528);const _0x2937dc=getValueByPath(_0xda6cd2,[_0x2cda55(0x429)]);return _0x2937dc!=null&&setValueByPath(_0x59e419,[_0x2cda55(0x429)],_0x2937dc),_0x59e419;}function modelFromVertex(_0x4d3124,_0x9564f8){const _0x227510=a1_0x54af01,_0x4c52c6={},_0x28526a=getValueByPath(_0x4d3124,['name']);_0x28526a!=null&&setValueByPath(_0x4c52c6,['name'],_0x28526a);const _0x263575=getValueByPath(_0x4d3124,['displayName']);_0x263575!=null&&setValueByPath(_0x4c52c6,[_0x227510(0x37e)],_0x263575);const _0x10558a=getValueByPath(_0x4d3124,[_0x227510(0x31f)]);_0x10558a!=null&&setValueByPath(_0x4c52c6,[_0x227510(0x31f)],_0x10558a);const _0x1872a1=getValueByPath(_0x4d3124,[_0x227510(0x4fc)]);_0x1872a1!=null&&setValueByPath(_0x4c52c6,[_0x227510(0x20c)],_0x1872a1);const _0x1271aa=getValueByPath(_0x4d3124,[_0x227510(0x698)]);if(_0x1271aa!=null){let _0x22cead=_0x1271aa;Array[_0x227510(0x1e2)](_0x22cead)&&(_0x22cead=_0x22cead[_0x227510(0x261)](_0x1ea0eb=>{return endpointFromVertex(_0x1ea0eb);})),setValueByPath(_0x4c52c6,[_0x227510(0x539)],_0x22cead);}const _0x390398=getValueByPath(_0x4d3124,['labels']);_0x390398!=null&&setValueByPath(_0x4c52c6,[_0x227510(0x540)],_0x390398);const _0x5987ea=getValueByPath(_0x4d3124,[_0x227510(0x339)]);_0x5987ea!=null&&setValueByPath(_0x4c52c6,['tunedModelInfo'],tunedModelInfoFromVertex(_0x5987ea));const _0x3ca5cc=getValueByPath(_0x4d3124,[_0x227510(0x558)]);_0x3ca5cc!=null&&setValueByPath(_0x4c52c6,['defaultCheckpointId'],_0x3ca5cc);const _0x42696f=getValueByPath(_0x4d3124,[_0x227510(0x5a0)]);if(_0x42696f!=null){let _0x57dba4=_0x42696f;Array[_0x227510(0x1e2)](_0x57dba4)&&(_0x57dba4=_0x57dba4[_0x227510(0x261)](_0x2e54e3=>{return _0x2e54e3;})),setValueByPath(_0x4c52c6,[_0x227510(0x5a0)],_0x57dba4);}return _0x4c52c6;}function partToMldev$1(_0x50260b,_0x553441){const _0x4a42d1=a1_0x54af01,_0x19b506={},_0x377e16=getValueByPath(_0x50260b,['mediaResolution']);_0x377e16!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x5e8)],_0x377e16);const _0x23ca49=getValueByPath(_0x50260b,[_0x4a42d1(0x6c6)]);_0x23ca49!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x6c6)],_0x23ca49);const _0x29c7bb=getValueByPath(_0x50260b,[_0x4a42d1(0x236)]);_0x29c7bb!=null&&setValueByPath(_0x19b506,['executableCode'],_0x29c7bb);const _0x45222a=getValueByPath(_0x50260b,[_0x4a42d1(0x2e2)]);_0x45222a!=null&&setValueByPath(_0x19b506,['fileData'],fileDataToMldev$1(_0x45222a));const _0x3f44d3=getValueByPath(_0x50260b,[_0x4a42d1(0x397)]);_0x3f44d3!=null&&setValueByPath(_0x19b506,['functionCall'],functionCallToMldev$1(_0x3f44d3));const _0x2d7b40=getValueByPath(_0x50260b,[_0x4a42d1(0x5cb)]);_0x2d7b40!=null&&setValueByPath(_0x19b506,['functionResponse'],_0x2d7b40);const _0x4ae914=getValueByPath(_0x50260b,['inlineData']);_0x4ae914!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x1a4)],blobToMldev$1(_0x4ae914));const _0x2caca5=getValueByPath(_0x50260b,[_0x4a42d1(0x205)]);_0x2caca5!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x205)],_0x2caca5);const _0x13003a=getValueByPath(_0x50260b,[_0x4a42d1(0x406)]);_0x13003a!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x406)],_0x13003a);const _0x180a06=getValueByPath(_0x50260b,[_0x4a42d1(0x56b)]);_0x180a06!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x56b)],_0x180a06);const _0x2a8bb8=getValueByPath(_0x50260b,[_0x4a42d1(0x313)]);return _0x2a8bb8!=null&&setValueByPath(_0x19b506,[_0x4a42d1(0x313)],_0x2a8bb8),_0x19b506;}function productImageToVertex(_0x32cbee,_0x598501){const _0x1fbcee=a1_0x54af01,_0x203156={},_0x24cded=getValueByPath(_0x32cbee,[_0x1fbcee(0x494)]);return _0x24cded!=null&&setValueByPath(_0x203156,['image'],imageToVertex(_0x24cded)),_0x203156;}function recontextImageConfigToVertex(_0x2df139,_0x46fdcf,_0x11de78){const _0x2a3b02=a1_0x54af01,_0x30ea78={},_0x1ff7fb=getValueByPath(_0x2df139,[_0x2a3b02(0x3d8)]);_0x46fdcf!==undefined&&_0x1ff7fb!=null&&setValueByPath(_0x46fdcf,['parameters',_0x2a3b02(0x378)],_0x1ff7fb);const _0xb9541d=getValueByPath(_0x2df139,[_0x2a3b02(0x487)]);_0x46fdcf!==undefined&&_0xb9541d!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),_0x2a3b02(0x487)],_0xb9541d);const _0x187686=getValueByPath(_0x2df139,[_0x2a3b02(0x25c)]);_0x46fdcf!==undefined&&_0x187686!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),_0x2a3b02(0x3a0)],_0x187686);const _0x4db613=getValueByPath(_0x2df139,['seed']);_0x46fdcf!==undefined&&_0x4db613!=null&&setValueByPath(_0x46fdcf,['parameters',_0x2a3b02(0x444)],_0x4db613);const _0x2d6da5=getValueByPath(_0x2df139,['safetyFilterLevel']);_0x46fdcf!==undefined&&_0x2d6da5!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),_0x2a3b02(0x389)],_0x2d6da5);const _0x29084c=getValueByPath(_0x2df139,[_0x2a3b02(0x1f5)]);_0x46fdcf!==undefined&&_0x29084c!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),'personGeneration'],_0x29084c);const _0x3b62d3=getValueByPath(_0x2df139,[_0x2a3b02(0x2f0)]);_0x46fdcf!==undefined&&_0x3b62d3!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),_0x2a3b02(0x2f0)],_0x3b62d3);const _0x4c352d=getValueByPath(_0x2df139,[_0x2a3b02(0x1a7)]);_0x46fdcf!==undefined&&_0x4c352d!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),'outputOptions',_0x2a3b02(0x2cd)],_0x4c352d);const _0x327dee=getValueByPath(_0x2df139,[_0x2a3b02(0x36f)]);_0x46fdcf!==undefined&&_0x327dee!=null&&setValueByPath(_0x46fdcf,['parameters',_0x2a3b02(0x6c0),_0x2a3b02(0x692)],_0x327dee);const _0x1802a0=getValueByPath(_0x2df139,[_0x2a3b02(0x561)]);_0x46fdcf!==undefined&&_0x1802a0!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x684),_0x2a3b02(0x561)],_0x1802a0);const _0x2c9f9e=getValueByPath(_0x2df139,[_0x2a3b02(0x540)]);return _0x46fdcf!==undefined&&_0x2c9f9e!=null&&setValueByPath(_0x46fdcf,[_0x2a3b02(0x540)],_0x2c9f9e),_0x30ea78;}function recontextImageParametersToVertex(_0x388bb5,_0x579cef,_0x1cf874){const _0x2ecb48=a1_0x54af01,_0x2de232={},_0x12cb23=getValueByPath(_0x579cef,[_0x2ecb48(0x210)]);_0x12cb23!=null&&setValueByPath(_0x2de232,[_0x2ecb48(0x4e9),'model'],tModel(_0x388bb5,_0x12cb23));const _0x50eab6=getValueByPath(_0x579cef,[_0x2ecb48(0x520)]);_0x50eab6!=null&&recontextImageSourceToVertex(_0x50eab6,_0x2de232);const _0x4d0b28=getValueByPath(_0x579cef,[_0x2ecb48(0x1b0)]);return _0x4d0b28!=null&&recontextImageConfigToVertex(_0x4d0b28,_0x2de232),_0x2de232;}function recontextImageResponseFromVertex(_0x23b760,_0x312a33){const _0x40bd48=a1_0x54af01,_0x287e16={},_0x148b23=getValueByPath(_0x23b760,[_0x40bd48(0x66e)]);if(_0x148b23!=null){let _0x568531=_0x148b23;Array[_0x40bd48(0x1e2)](_0x568531)&&(_0x568531=_0x568531[_0x40bd48(0x261)](_0x5f1f1c=>{return generatedImageFromVertex(_0x5f1f1c);})),setValueByPath(_0x287e16,[_0x40bd48(0x604)],_0x568531);}return _0x287e16;}function recontextImageSourceToVertex(_0x42bfd6,_0x26b17e,_0x1befa4){const _0xf4aad4=a1_0x54af01,_0x117e4b={},_0x1798fd=getValueByPath(_0x42bfd6,[_0xf4aad4(0x6ab)]);_0x26b17e!==undefined&&_0x1798fd!=null&&setValueByPath(_0x26b17e,['instances[0]','prompt'],_0x1798fd);const _0x2b2fd5=getValueByPath(_0x42bfd6,[_0xf4aad4(0x668)]);_0x26b17e!==undefined&&_0x2b2fd5!=null&&setValueByPath(_0x26b17e,[_0xf4aad4(0x2e5),_0xf4aad4(0x668),_0xf4aad4(0x401)],imageToVertex(_0x2b2fd5));const _0x29cbf4=getValueByPath(_0x42bfd6,[_0xf4aad4(0x2ad)]);if(_0x26b17e!==undefined&&_0x29cbf4!=null){let _0x3d21db=_0x29cbf4;Array['isArray'](_0x3d21db)&&(_0x3d21db=_0x3d21db[_0xf4aad4(0x261)](_0x365656=>{return productImageToVertex(_0x365656);})),setValueByPath(_0x26b17e,[_0xf4aad4(0x2e5),'productImages'],_0x3d21db);}return _0x117e4b;}function referenceImageAPIInternalToVertex(_0x4a7f2b,_0x5775d3){const _0x4f50d0=a1_0x54af01,_0x188fd0={},_0x49b513=getValueByPath(_0x4a7f2b,[_0x4f50d0(0x237)]);_0x49b513!=null&&setValueByPath(_0x188fd0,[_0x4f50d0(0x237)],imageToVertex(_0x49b513));const _0x1fd6cc=getValueByPath(_0x4a7f2b,['referenceId']);_0x1fd6cc!=null&&setValueByPath(_0x188fd0,[_0x4f50d0(0x20b)],_0x1fd6cc);const _0x12f71a=getValueByPath(_0x4a7f2b,[_0x4f50d0(0x5ff)]);_0x12f71a!=null&&setValueByPath(_0x188fd0,[_0x4f50d0(0x5ff)],_0x12f71a);const _0xf486fc=getValueByPath(_0x4a7f2b,['maskImageConfig']);_0xf486fc!=null&&setValueByPath(_0x188fd0,[_0x4f50d0(0x20f)],maskReferenceConfigToVertex(_0xf486fc));const _0x2f1984=getValueByPath(_0x4a7f2b,[_0x4f50d0(0x3a6)]);_0x2f1984!=null&&setValueByPath(_0x188fd0,[_0x4f50d0(0x3a6)],controlReferenceConfigToVertex(_0x2f1984));const _0x32c195=getValueByPath(_0x4a7f2b,[_0x4f50d0(0x294)]);_0x32c195!=null&&setValueByPath(_0x188fd0,[_0x4f50d0(0x294)],_0x32c195);const _0x5e32ee=getValueByPath(_0x4a7f2b,['subjectImageConfig']);return _0x5e32ee!=null&&setValueByPath(_0x188fd0,['subjectImageConfig'],_0x5e32ee),_0x188fd0;}function safetyAttributesFromMldev(_0x128ae8,_0x54414b){const _0x25f717=a1_0x54af01,_0x33d298={},_0x5b4949=getValueByPath(_0x128ae8,[_0x25f717(0x2b0),'categories']);_0x5b4949!=null&&setValueByPath(_0x33d298,[_0x25f717(0x329)],_0x5b4949);const _0x2acef3=getValueByPath(_0x128ae8,[_0x25f717(0x2b0),'scores']);_0x2acef3!=null&&setValueByPath(_0x33d298,[_0x25f717(0x3ab)],_0x2acef3);const _0x257ec7=getValueByPath(_0x128ae8,[_0x25f717(0x643)]);return _0x257ec7!=null&&setValueByPath(_0x33d298,[_0x25f717(0x643)],_0x257ec7),_0x33d298;}function safetyAttributesFromVertex(_0x4f61ad,_0x28cd17){const _0x1e5ebe=a1_0x54af01,_0x83874d={},_0xbe35a=getValueByPath(_0x4f61ad,[_0x1e5ebe(0x2b0),_0x1e5ebe(0x329)]);_0xbe35a!=null&&setValueByPath(_0x83874d,[_0x1e5ebe(0x329)],_0xbe35a);const _0x5adabf=getValueByPath(_0x4f61ad,[_0x1e5ebe(0x2b0),_0x1e5ebe(0x3ab)]);_0x5adabf!=null&&setValueByPath(_0x83874d,[_0x1e5ebe(0x3ab)],_0x5adabf);const _0x5d9373=getValueByPath(_0x4f61ad,['contentType']);return _0x5d9373!=null&&setValueByPath(_0x83874d,[_0x1e5ebe(0x643)],_0x5d9373),_0x83874d;}function safetySettingToMldev(_0x32c1e3,_0x5891b9){const _0x3615b0=a1_0x54af01,_0x14135a={},_0x3c4b18=getValueByPath(_0x32c1e3,['category']);_0x3c4b18!=null&&setValueByPath(_0x14135a,[_0x3615b0(0x302)],_0x3c4b18);if(getValueByPath(_0x32c1e3,[_0x3615b0(0x30d)])!==undefined)throw new Error(_0x3615b0(0x62d));const _0x5437f1=getValueByPath(_0x32c1e3,[_0x3615b0(0x615)]);return _0x5437f1!=null&&setValueByPath(_0x14135a,[_0x3615b0(0x615)],_0x5437f1),_0x14135a;}function scribbleImageToVertex(_0x4a6eb6,_0x1f4a33){const _0x5375e5=a1_0x54af01,_0x36f4f0={},_0x5c1457=getValueByPath(_0x4a6eb6,[_0x5375e5(0x401)]);return _0x5c1457!=null&&setValueByPath(_0x36f4f0,[_0x5375e5(0x401)],imageToVertex(_0x5c1457)),_0x36f4f0;}function segmentImageConfigToVertex(_0x407955,_0x11a30c,_0xa57f0f){const _0x3094ed=a1_0x54af01,_0x5a1cab={},_0x202e85=getValueByPath(_0x407955,[_0x3094ed(0x45d)]);_0x11a30c!==undefined&&_0x202e85!=null&&setValueByPath(_0x11a30c,[_0x3094ed(0x684),_0x3094ed(0x45d)],_0x202e85);const _0x40663a=getValueByPath(_0x407955,[_0x3094ed(0x252)]);_0x11a30c!==undefined&&_0x40663a!=null&&setValueByPath(_0x11a30c,[_0x3094ed(0x684),'maxPredictions'],_0x40663a);const _0xe5515e=getValueByPath(_0x407955,[_0x3094ed(0x2f6)]);_0x11a30c!==undefined&&_0xe5515e!=null&&setValueByPath(_0x11a30c,[_0x3094ed(0x684),_0x3094ed(0x2f6)],_0xe5515e);const _0x5aa02f=getValueByPath(_0x407955,[_0x3094ed(0x644)]);_0x11a30c!==undefined&&_0x5aa02f!=null&&setValueByPath(_0x11a30c,[_0x3094ed(0x684),'maskDilation'],_0x5aa02f);const _0x4c2ed2=getValueByPath(_0x407955,[_0x3094ed(0x26f)]);_0x11a30c!==undefined&&_0x4c2ed2!=null&&setValueByPath(_0x11a30c,[_0x3094ed(0x684),_0x3094ed(0x26f)],_0x4c2ed2);const _0x42795f=getValueByPath(_0x407955,[_0x3094ed(0x540)]);return _0x11a30c!==undefined&&_0x42795f!=null&&setValueByPath(_0x11a30c,[_0x3094ed(0x540)],_0x42795f),_0x5a1cab;}function segmentImageParametersToVertex(_0x3ec135,_0x22f6d5,_0x5d38d3){const _0x2c0e22=a1_0x54af01,_0x2b9047={},_0x48dc4b=getValueByPath(_0x22f6d5,['model']);_0x48dc4b!=null&&setValueByPath(_0x2b9047,[_0x2c0e22(0x4e9),_0x2c0e22(0x210)],tModel(_0x3ec135,_0x48dc4b));const _0x3beca4=getValueByPath(_0x22f6d5,[_0x2c0e22(0x520)]);_0x3beca4!=null&&segmentImageSourceToVertex(_0x3beca4,_0x2b9047);const _0x3f3ca5=getValueByPath(_0x22f6d5,['config']);return _0x3f3ca5!=null&&segmentImageConfigToVertex(_0x3f3ca5,_0x2b9047),_0x2b9047;}function segmentImageResponseFromVertex(_0x8c6bec,_0x42c35e){const _0x47d1c8=a1_0x54af01,_0xab1d0={},_0x531e1f=getValueByPath(_0x8c6bec,[_0x47d1c8(0x66e)]);if(_0x531e1f!=null){let _0x5685a6=_0x531e1f;Array[_0x47d1c8(0x1e2)](_0x5685a6)&&(_0x5685a6=_0x5685a6[_0x47d1c8(0x261)](_0x5066b0=>{return generatedImageMaskFromVertex(_0x5066b0);})),setValueByPath(_0xab1d0,[_0x47d1c8(0x4da)],_0x5685a6);}return _0xab1d0;}function segmentImageSourceToVertex(_0x590381,_0x6e91a2,_0x1db988){const _0x21a94c=a1_0x54af01,_0x782777={},_0x507216=getValueByPath(_0x590381,['prompt']);_0x6e91a2!==undefined&&_0x507216!=null&&setValueByPath(_0x6e91a2,[_0x21a94c(0x2e5),_0x21a94c(0x6ab)],_0x507216);const _0x55d0e=getValueByPath(_0x590381,['image']);_0x6e91a2!==undefined&&_0x55d0e!=null&&setValueByPath(_0x6e91a2,['instances[0]',_0x21a94c(0x401)],imageToVertex(_0x55d0e));const _0x154990=getValueByPath(_0x590381,[_0x21a94c(0x234)]);return _0x6e91a2!==undefined&&_0x154990!=null&&setValueByPath(_0x6e91a2,['instances[0]',_0x21a94c(0x4f1)],scribbleImageToVertex(_0x154990)),_0x782777;}function toolConfigToMldev(_0x1bf430,_0x4d080a){const _0x14df21=a1_0x54af01,_0x2984fd={},_0x17f134=getValueByPath(_0x1bf430,[_0x14df21(0x1fa)]);_0x17f134!=null&&setValueByPath(_0x2984fd,[_0x14df21(0x1fa)],_0x17f134);const _0x5aebec=getValueByPath(_0x1bf430,['functionCallingConfig']);return _0x5aebec!=null&&setValueByPath(_0x2984fd,[_0x14df21(0x57d)],functionCallingConfigToMldev(_0x5aebec)),_0x2984fd;}function toolToMldev$1(_0x4c748f,_0x1561ca){const _0x77d976=a1_0x54af01,_0x8c2b54={};if(getValueByPath(_0x4c748f,[_0x77d976(0x223)])!==undefined)throw new Error(_0x77d976(0x466));const _0x305304=getValueByPath(_0x4c748f,[_0x77d976(0x318)]);_0x305304!=null&&setValueByPath(_0x8c2b54,['computerUse'],_0x305304);const _0x53f9ac=getValueByPath(_0x4c748f,[_0x77d976(0x68d)]);_0x53f9ac!=null&&setValueByPath(_0x8c2b54,[_0x77d976(0x68d)],_0x53f9ac);const _0x433817=getValueByPath(_0x4c748f,[_0x77d976(0x352)]);_0x433817!=null&&setValueByPath(_0x8c2b54,[_0x77d976(0x352)],_0x433817);if(getValueByPath(_0x4c748f,[_0x77d976(0x26a)])!==undefined)throw new Error(_0x77d976(0x3be));const _0x14070a=getValueByPath(_0x4c748f,[_0x77d976(0x4fa)]);if(_0x14070a!=null){let _0x48d275=_0x14070a;Array['isArray'](_0x48d275)&&(_0x48d275=_0x48d275[_0x77d976(0x261)](_0x2b436a=>{return _0x2b436a;})),setValueByPath(_0x8c2b54,[_0x77d976(0x4fa)],_0x48d275);}const _0x1990ce=getValueByPath(_0x4c748f,[_0x77d976(0x35b)]);_0x1990ce!=null&&setValueByPath(_0x8c2b54,['googleMaps'],googleMapsToMldev$1(_0x1990ce));const _0x54e100=getValueByPath(_0x4c748f,[_0x77d976(0x58c)]);_0x54e100!=null&&setValueByPath(_0x8c2b54,['googleSearch'],googleSearchToMldev$1(_0x54e100));const _0x24a1ef=getValueByPath(_0x4c748f,[_0x77d976(0x6a2)]);_0x24a1ef!=null&&setValueByPath(_0x8c2b54,[_0x77d976(0x6a2)],_0x24a1ef);const _0x175e4d=getValueByPath(_0x4c748f,[_0x77d976(0x642)]);return _0x175e4d!=null&&setValueByPath(_0x8c2b54,[_0x77d976(0x642)],_0x175e4d),_0x8c2b54;}function toolToVertex(_0x17824b,_0x39cd65){const _0x276aca=a1_0x54af01,_0x3b81f0={},_0x14cb4c=getValueByPath(_0x17824b,[_0x276aca(0x223)]);_0x14cb4c!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x223)],_0x14cb4c);const _0x4473ad=getValueByPath(_0x17824b,['computerUse']);_0x4473ad!=null&&setValueByPath(_0x3b81f0,['computerUse'],_0x4473ad);if(getValueByPath(_0x17824b,[_0x276aca(0x68d)])!==undefined)throw new Error('fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');const _0x401659=getValueByPath(_0x17824b,[_0x276aca(0x352)]);_0x401659!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x352)],_0x401659);const _0xb794cd=getValueByPath(_0x17824b,[_0x276aca(0x26a)]);_0xb794cd!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x26a)],_0xb794cd);const _0x520718=getValueByPath(_0x17824b,[_0x276aca(0x4fa)]);if(_0x520718!=null){let _0x3bd978=_0x520718;Array['isArray'](_0x3bd978)&&(_0x3bd978=_0x3bd978['map'](_0x184fd8=>{return functionDeclarationToVertex(_0x184fd8);})),setValueByPath(_0x3b81f0,[_0x276aca(0x4fa)],_0x3bd978);}const _0x3f0d97=getValueByPath(_0x17824b,[_0x276aca(0x35b)]);_0x3f0d97!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x35b)],_0x3f0d97);const _0x14e5ec=getValueByPath(_0x17824b,[_0x276aca(0x58c)]);_0x14e5ec!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x58c)],_0x14e5ec);const _0x24e6f2=getValueByPath(_0x17824b,[_0x276aca(0x6a2)]);_0x24e6f2!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x6a2)],_0x24e6f2);const _0x45fde6=getValueByPath(_0x17824b,[_0x276aca(0x642)]);return _0x45fde6!=null&&setValueByPath(_0x3b81f0,[_0x276aca(0x642)],_0x45fde6),_0x3b81f0;}function tunedModelInfoFromMldev(_0x471957,_0x3447c9){const _0x35942c=a1_0x54af01,_0x69ebff={},_0x222b84=getValueByPath(_0x471957,['baseModel']);_0x222b84!=null&&setValueByPath(_0x69ebff,['baseModel'],_0x222b84);const _0x2e3ce3=getValueByPath(_0x471957,['createTime']);_0x2e3ce3!=null&&setValueByPath(_0x69ebff,[_0x35942c(0x28c)],_0x2e3ce3);const _0x5bd83c=getValueByPath(_0x471957,[_0x35942c(0x2c2)]);return _0x5bd83c!=null&&setValueByPath(_0x69ebff,['updateTime'],_0x5bd83c),_0x69ebff;}function tunedModelInfoFromVertex(_0x4978c3,_0x382137){const _0x399528=a1_0x54af01,_0x5157e7={},_0x3d241a=getValueByPath(_0x4978c3,[_0x399528(0x540),_0x399528(0x2b4)]);_0x3d241a!=null&&setValueByPath(_0x5157e7,[_0x399528(0x433)],_0x3d241a);const _0xd7e24c=getValueByPath(_0x4978c3,[_0x399528(0x28c)]);_0xd7e24c!=null&&setValueByPath(_0x5157e7,[_0x399528(0x28c)],_0xd7e24c);const _0x2b555a=getValueByPath(_0x4978c3,[_0x399528(0x2c2)]);return _0x2b555a!=null&&setValueByPath(_0x5157e7,[_0x399528(0x2c2)],_0x2b555a),_0x5157e7;}function updateModelConfigToMldev(_0x1a8c09,_0x2aad70,_0x5c0346){const _0x22c447=a1_0x54af01,_0x5ba1cb={},_0x19739a=getValueByPath(_0x1a8c09,[_0x22c447(0x37e)]);_0x2aad70!==undefined&&_0x19739a!=null&&setValueByPath(_0x2aad70,['displayName'],_0x19739a);const _0x1510ff=getValueByPath(_0x1a8c09,[_0x22c447(0x31f)]);_0x2aad70!==undefined&&_0x1510ff!=null&&setValueByPath(_0x2aad70,[_0x22c447(0x31f)],_0x1510ff);const _0x467b7b=getValueByPath(_0x1a8c09,[_0x22c447(0x558)]);return _0x2aad70!==undefined&&_0x467b7b!=null&&setValueByPath(_0x2aad70,['defaultCheckpointId'],_0x467b7b),_0x5ba1cb;}function updateModelConfigToVertex(_0x1ce3ac,_0x4a96b5,_0x468cb3){const _0x55d86b=a1_0x54af01,_0x246919={},_0x38f075=getValueByPath(_0x1ce3ac,['displayName']);_0x4a96b5!==undefined&&_0x38f075!=null&&setValueByPath(_0x4a96b5,[_0x55d86b(0x37e)],_0x38f075);const _0x202128=getValueByPath(_0x1ce3ac,['description']);_0x4a96b5!==undefined&&_0x202128!=null&&setValueByPath(_0x4a96b5,[_0x55d86b(0x31f)],_0x202128);const _0x3c044b=getValueByPath(_0x1ce3ac,[_0x55d86b(0x558)]);return _0x4a96b5!==undefined&&_0x3c044b!=null&&setValueByPath(_0x4a96b5,[_0x55d86b(0x558)],_0x3c044b),_0x246919;}function updateModelParametersToMldev(_0x158df3,_0x406e78,_0x4cf3fc){const _0x5c81a5=a1_0x54af01,_0x1e18fa={},_0x3fba95=getValueByPath(_0x406e78,[_0x5c81a5(0x210)]);_0x3fba95!=null&&setValueByPath(_0x1e18fa,[_0x5c81a5(0x4e9),_0x5c81a5(0x24b)],tModel(_0x158df3,_0x3fba95));const _0xd496b9=getValueByPath(_0x406e78,[_0x5c81a5(0x1b0)]);return _0xd496b9!=null&&updateModelConfigToMldev(_0xd496b9,_0x1e18fa),_0x1e18fa;}function updateModelParametersToVertex(_0xcccc38,_0x3e425c,_0x5f0d36){const _0x303eef=a1_0x54af01,_0x50d107={},_0x32b3f8=getValueByPath(_0x3e425c,[_0x303eef(0x210)]);_0x32b3f8!=null&&setValueByPath(_0x50d107,[_0x303eef(0x4e9),_0x303eef(0x210)],tModel(_0xcccc38,_0x32b3f8));const _0x25936e=getValueByPath(_0x3e425c,['config']);return _0x25936e!=null&&updateModelConfigToVertex(_0x25936e,_0x50d107),_0x50d107;}function upscaleImageAPIConfigInternalToVertex(_0x6c4649,_0x30977b,_0x18f6d7){const _0x98a5aa=a1_0x54af01,_0x4ee0d3={},_0x564427=getValueByPath(_0x6c4649,[_0x98a5aa(0x25c)]);_0x30977b!==undefined&&_0x564427!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),_0x98a5aa(0x3a0)],_0x564427);const _0x4e3a86=getValueByPath(_0x6c4649,['safetyFilterLevel']);_0x30977b!==undefined&&_0x4e3a86!=null&&setValueByPath(_0x30977b,['parameters',_0x98a5aa(0x389)],_0x4e3a86);const _0x3f8ce4=getValueByPath(_0x6c4649,['personGeneration']);_0x30977b!==undefined&&_0x3f8ce4!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),_0x98a5aa(0x1f5)],_0x3f8ce4);const _0x3659d4=getValueByPath(_0x6c4649,['includeRaiReason']);_0x30977b!==undefined&&_0x3659d4!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),'includeRaiReason'],_0x3659d4);const _0x1da8ba=getValueByPath(_0x6c4649,['outputMimeType']);_0x30977b!==undefined&&_0x1da8ba!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),'outputOptions','mimeType'],_0x1da8ba);const _0x53708d=getValueByPath(_0x6c4649,[_0x98a5aa(0x36f)]);_0x30977b!==undefined&&_0x53708d!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),'outputOptions',_0x98a5aa(0x692)],_0x53708d);const _0x359e57=getValueByPath(_0x6c4649,[_0x98a5aa(0x1ba)]);_0x30977b!==undefined&&_0x359e57!=null&&setValueByPath(_0x30977b,['parameters',_0x98a5aa(0x4ca),_0x98a5aa(0x1ba)],_0x359e57);const _0x25c7bc=getValueByPath(_0x6c4649,[_0x98a5aa(0x272)]);_0x30977b!==undefined&&_0x25c7bc!=null&&setValueByPath(_0x30977b,['parameters','upscaleConfig','imagePreservationFactor'],_0x25c7bc);const _0x1fc8ff=getValueByPath(_0x6c4649,[_0x98a5aa(0x540)]);_0x30977b!==undefined&&_0x1fc8ff!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x540)],_0x1fc8ff);const _0x13def1=getValueByPath(_0x6c4649,[_0x98a5aa(0x3d8)]);_0x30977b!==undefined&&_0x13def1!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),_0x98a5aa(0x378)],_0x13def1);const _0x50fb5d=getValueByPath(_0x6c4649,['mode']);return _0x30977b!==undefined&&_0x50fb5d!=null&&setValueByPath(_0x30977b,[_0x98a5aa(0x684),_0x98a5aa(0x45d)],_0x50fb5d),_0x4ee0d3;}function upscaleImageAPIParametersInternalToVertex(_0x34d56a,_0x54164d,_0x418550){const _0x2c2eb4=a1_0x54af01,_0x1ff839={},_0x532c40=getValueByPath(_0x54164d,[_0x2c2eb4(0x210)]);_0x532c40!=null&&setValueByPath(_0x1ff839,['_url',_0x2c2eb4(0x210)],tModel(_0x34d56a,_0x532c40));const _0x4df693=getValueByPath(_0x54164d,[_0x2c2eb4(0x401)]);_0x4df693!=null&&setValueByPath(_0x1ff839,[_0x2c2eb4(0x2e5),_0x2c2eb4(0x401)],imageToVertex(_0x4df693));const _0x3f735c=getValueByPath(_0x54164d,[_0x2c2eb4(0x52a)]);_0x3f735c!=null&&setValueByPath(_0x1ff839,[_0x2c2eb4(0x684),_0x2c2eb4(0x4ca),'upscaleFactor'],_0x3f735c);const _0x4e9b2f=getValueByPath(_0x54164d,[_0x2c2eb4(0x1b0)]);return _0x4e9b2f!=null&&upscaleImageAPIConfigInternalToVertex(_0x4e9b2f,_0x1ff839),_0x1ff839;}function upscaleImageResponseFromVertex(_0x1f73af,_0x3ee751){const _0x4a8a8a=a1_0x54af01,_0x26850a={},_0x5d522c=getValueByPath(_0x1f73af,['sdkHttpResponse']);_0x5d522c!=null&&setValueByPath(_0x26850a,[_0x4a8a8a(0x25b)],_0x5d522c);const _0x2bde08=getValueByPath(_0x1f73af,[_0x4a8a8a(0x66e)]);if(_0x2bde08!=null){let _0x2f821a=_0x2bde08;Array[_0x4a8a8a(0x1e2)](_0x2f821a)&&(_0x2f821a=_0x2f821a[_0x4a8a8a(0x261)](_0x55cfd4=>{return generatedImageFromVertex(_0x55cfd4);})),setValueByPath(_0x26850a,['generatedImages'],_0x2f821a);}return _0x26850a;}function videoFromMldev(_0x1414e8,_0x529778){const _0x44c58d=a1_0x54af01,_0x5571a0={},_0x557f95=getValueByPath(_0x1414e8,[_0x44c58d(0x4c1)]);_0x557f95!=null&&setValueByPath(_0x5571a0,['uri'],_0x557f95);const _0x1a8ff3=getValueByPath(_0x1414e8,[_0x44c58d(0x676)]);_0x1a8ff3!=null&&setValueByPath(_0x5571a0,[_0x44c58d(0x5fc)],tBytes(_0x1a8ff3));const _0x5b99e8=getValueByPath(_0x1414e8,['encoding']);return _0x5b99e8!=null&&setValueByPath(_0x5571a0,[_0x44c58d(0x2cd)],_0x5b99e8),_0x5571a0;}function videoFromVertex(_0x39e37f,_0x4b75e9){const _0x2a2be0=a1_0x54af01,_0x533dde={},_0x456d20=getValueByPath(_0x39e37f,[_0x2a2be0(0x576)]);_0x456d20!=null&&setValueByPath(_0x533dde,[_0x2a2be0(0x4c1)],_0x456d20);const _0xc5acdf=getValueByPath(_0x39e37f,[_0x2a2be0(0x33c)]);_0xc5acdf!=null&&setValueByPath(_0x533dde,[_0x2a2be0(0x5fc)],tBytes(_0xc5acdf));const _0x172b40=getValueByPath(_0x39e37f,[_0x2a2be0(0x2cd)]);return _0x172b40!=null&&setValueByPath(_0x533dde,[_0x2a2be0(0x2cd)],_0x172b40),_0x533dde;}function videoGenerationMaskToVertex(_0x42ac43,_0x13c085){const _0x44999c=a1_0x54af01,_0x41f1aa={},_0x860f84=getValueByPath(_0x42ac43,[_0x44999c(0x401)]);_0x860f84!=null&&setValueByPath(_0x41f1aa,[_0x44999c(0x339)],imageToVertex(_0x860f84));const _0x3839c6=getValueByPath(_0x42ac43,['maskMode']);return _0x3839c6!=null&&setValueByPath(_0x41f1aa,[_0x44999c(0x32d)],_0x3839c6),_0x41f1aa;}function videoGenerationReferenceImageToMldev(_0xb1a315,_0xc6f361){const _0x51076b=a1_0x54af01,_0x152084={},_0x102fae=getValueByPath(_0xb1a315,[_0x51076b(0x401)]);_0x102fae!=null&&setValueByPath(_0x152084,[_0x51076b(0x401)],imageToMldev(_0x102fae));const _0x1ae3d3=getValueByPath(_0xb1a315,[_0x51076b(0x5ff)]);return _0x1ae3d3!=null&&setValueByPath(_0x152084,[_0x51076b(0x5ff)],_0x1ae3d3),_0x152084;}function videoGenerationReferenceImageToVertex(_0x553f87,_0x418e67){const _0x25a446=a1_0x54af01,_0x3dd0f6={},_0x12a791=getValueByPath(_0x553f87,[_0x25a446(0x401)]);_0x12a791!=null&&setValueByPath(_0x3dd0f6,[_0x25a446(0x401)],imageToVertex(_0x12a791));const _0x2ed480=getValueByPath(_0x553f87,[_0x25a446(0x5ff)]);return _0x2ed480!=null&&setValueByPath(_0x3dd0f6,[_0x25a446(0x5ff)],_0x2ed480),_0x3dd0f6;}function videoToMldev(_0x2516fa,_0x8a8551){const _0x38b6f5=a1_0x54af01,_0x2a107f={},_0x37ba92=getValueByPath(_0x2516fa,[_0x38b6f5(0x4c1)]);_0x37ba92!=null&&setValueByPath(_0x2a107f,[_0x38b6f5(0x4c1)],_0x37ba92);const _0x1178c7=getValueByPath(_0x2516fa,[_0x38b6f5(0x5fc)]);_0x1178c7!=null&&setValueByPath(_0x2a107f,[_0x38b6f5(0x676)],tBytes(_0x1178c7));const _0x521d28=getValueByPath(_0x2516fa,[_0x38b6f5(0x2cd)]);return _0x521d28!=null&&setValueByPath(_0x2a107f,[_0x38b6f5(0x669)],_0x521d28),_0x2a107f;}function videoToVertex(_0x4ed5d4,_0x5970e3){const _0x1e7f3f=a1_0x54af01,_0x2344a7={},_0x4514bd=getValueByPath(_0x4ed5d4,['uri']);_0x4514bd!=null&&setValueByPath(_0x2344a7,['gcsUri'],_0x4514bd);const _0x16d616=getValueByPath(_0x4ed5d4,['videoBytes']);_0x16d616!=null&&setValueByPath(_0x2344a7,[_0x1e7f3f(0x33c)],tBytes(_0x16d616));const _0x3601d8=getValueByPath(_0x4ed5d4,[_0x1e7f3f(0x2cd)]);return _0x3601d8!=null&&setValueByPath(_0x2344a7,['mimeType'],_0x3601d8),_0x2344a7;}/**
217
+ * @license
218
+ * Copyright 2025 Google LLC
219
+ * SPDX-License-Identifier: Apache-2.0
220
+ */
221
+ const MCP_LABEL=a1_0x54af01(0x4d0);let hasMcpToolUsageFromMcpToTool=![];function hasMcpToolUsage(_0x13d700){const _0x53cc6c=a1_0x54af01;for(const _0xdec6b of _0x13d700){if(isMcpCallableTool(_0xdec6b))return!![];if(typeof _0xdec6b===_0x53cc6c(0x34b)&&_0x53cc6c(0x20a)in _0xdec6b)return!![];}return hasMcpToolUsageFromMcpToTool;}function setMcpUsageHeader(_0x41455c){var _0x25f692;const _0x182ab7=(_0x25f692=_0x41455c[GOOGLE_API_CLIENT_HEADER])!==null&&_0x25f692!==void 0x0?_0x25f692:'';_0x41455c[GOOGLE_API_CLIENT_HEADER]=(_0x182ab7+('\x20'+MCP_LABEL))['trimStart']();}function isMcpCallableTool(_0x33994b){const _0x1ec9f5=a1_0x54af01;return _0x33994b!==null&&typeof _0x33994b===_0x1ec9f5(0x34b)&&_0x33994b instanceof McpCallableTool;}function listAllTools(_0x1c1da1){return __asyncGenerator(this,arguments,function*_0x5ce901(_0x340571,_0x9c4769=0x64){const _0x1ce84a=a1_0x2f78;let _0x1b528f=undefined,_0x327c1e=0x0;while(_0x327c1e<_0x9c4769){const _0x35c500=yield __await(_0x340571['listTools']({'cursor':_0x1b528f}));for(const _0x1eaeba of _0x35c500[_0x1ce84a(0x458)]){yield yield __await(_0x1eaeba),_0x327c1e++;}if(!_0x35c500[_0x1ce84a(0x249)])break;_0x1b528f=_0x35c500['nextCursor'];}});}class McpCallableTool{constructor(_0x823d98=[],_0x4f5ce8){const _0x105579=a1_0x54af01;this[_0x105579(0x50e)]=[],this['functionNameToMcpClient']={},this[_0x105579(0x5b6)]=_0x823d98,this[_0x105579(0x1b0)]=_0x4f5ce8;}static[a1_0x54af01(0x1af)](_0x37da37,_0x121761){return new McpCallableTool(_0x37da37,_0x121761);}async[a1_0x54af01(0x22b)](){const _0x1383d2=a1_0x54af01;var _0x183634,_0x4ccefe,_0x1687dc,_0x1b8beb;if(this[_0x1383d2(0x50e)][_0x1383d2(0x258)]>0x0)return;const _0x4387c8={},_0x15dd20=[];for(const _0x2003a6 of this['mcpClients']){try{for(var _0x336d4f=!![],_0x2bf97d=(_0x4ccefe=void 0x0,__asyncValues(listAllTools(_0x2003a6))),_0x9b163b;_0x9b163b=await _0x2bf97d[_0x1383d2(0x295)](),_0x183634=_0x9b163b[_0x1383d2(0x49f)],!_0x183634;_0x336d4f=!![]){_0x1b8beb=_0x9b163b[_0x1383d2(0x2f1)],_0x336d4f=![];const _0x32e518=_0x1b8beb;_0x15dd20[_0x1383d2(0x54b)](_0x32e518);const _0x4964a7=_0x32e518[_0x1383d2(0x24b)];if(_0x4387c8[_0x4964a7])throw new Error('Duplicate\x20function\x20name\x20'+_0x4964a7+_0x1383d2(0x23f));_0x4387c8[_0x4964a7]=_0x2003a6;}}catch(_0x3feda1){_0x4ccefe={'error':_0x3feda1};}finally{try{if(!_0x336d4f&&!_0x183634&&(_0x1687dc=_0x2bf97d[_0x1383d2(0x599)]))await _0x1687dc[_0x1383d2(0x182)](_0x2bf97d);}finally{if(_0x4ccefe)throw _0x4ccefe[_0x1383d2(0x3d6)];}}}this[_0x1383d2(0x50e)]=_0x15dd20,this[_0x1383d2(0x4be)]=_0x4387c8;}async[a1_0x54af01(0x367)](){const _0x3c3b15=a1_0x54af01;return await this[_0x3c3b15(0x22b)](),mcpToolsToGeminiTool(this['mcpTools'],this[_0x3c3b15(0x1b0)]);}async['callTool'](_0x18bd1a){const _0x57dcfd=a1_0x54af01;await this[_0x57dcfd(0x22b)]();const _0x173d42=[];for(const _0x5e96a3 of _0x18bd1a){if(_0x5e96a3[_0x57dcfd(0x24b)]in this[_0x57dcfd(0x4be)]){const _0x139702=this[_0x57dcfd(0x4be)][_0x5e96a3[_0x57dcfd(0x24b)]];let _0x564238=undefined;this[_0x57dcfd(0x1b0)][_0x57dcfd(0x219)]&&(_0x564238={'timeout':this[_0x57dcfd(0x1b0)][_0x57dcfd(0x219)]});const _0x1d6040=await _0x139702['callTool']({'name':_0x5e96a3[_0x57dcfd(0x24b)],'arguments':_0x5e96a3[_0x57dcfd(0x411)]},undefined,_0x564238);_0x173d42[_0x57dcfd(0x54b)]({'functionResponse':{'name':_0x5e96a3[_0x57dcfd(0x24b)],'response':_0x1d6040[_0x57dcfd(0x59e)]?{'error':_0x1d6040}:_0x1d6040}});}}return _0x173d42;}}function isMcpClient(_0x300b5d){const _0x45b7e1=a1_0x54af01;return _0x300b5d!==null&&typeof _0x300b5d==='object'&&_0x45b7e1(0x2a7)in _0x300b5d&&typeof _0x300b5d[_0x45b7e1(0x2a7)]===_0x45b7e1(0x4a6);}function mcpToTool(..._0x2b777b){const _0x3a6cc6=a1_0x54af01;hasMcpToolUsageFromMcpToTool=!![];if(_0x2b777b[_0x3a6cc6(0x258)]===0x0)throw new Error('No\x20MCP\x20clients\x20provided');const _0x20c48f=_0x2b777b[_0x2b777b[_0x3a6cc6(0x258)]-0x1];if(isMcpClient(_0x20c48f))return McpCallableTool[_0x3a6cc6(0x1af)](_0x2b777b,{});return McpCallableTool['create'](_0x2b777b[_0x3a6cc6(0x4a2)](0x0,_0x2b777b[_0x3a6cc6(0x258)]-0x1),_0x20c48f);}/**
222
+ * @license
223
+ * Copyright 2025 Google LLC
224
+ * SPDX-License-Identifier: Apache-2.0
225
+ */
226
+ async function handleWebSocketMessage$1(_0x59ade8,_0x698056,_0x14faab){const _0x198ef3=a1_0x54af01,_0x517313=new LiveMusicServerMessage();let _0x395680;_0x14faab[_0x198ef3(0x354)]instanceof Blob?_0x395680=JSON['parse'](await _0x14faab['data'][_0x198ef3(0x205)]()):_0x395680=JSON[_0x198ef3(0x2fd)](_0x14faab[_0x198ef3(0x354)]),Object['assign'](_0x517313,_0x395680),_0x698056(_0x517313);}class LiveMusic{constructor(_0x3d6937,_0x4e04bc,_0x3521ea){const _0x58dc4b=a1_0x54af01;this[_0x58dc4b(0x5bb)]=_0x3d6937,this['auth']=_0x4e04bc,this[_0x58dc4b(0x48d)]=_0x3521ea;}async['connect'](_0x390a1f){const _0xad6389=a1_0x54af01;var _0x384416,_0x3eeb0d;if(this['apiClient'][_0xad6389(0x29b)]())throw new Error('Live\x20music\x20is\x20not\x20supported\x20for\x20Vertex\x20AI.');console[_0xad6389(0x44c)](_0xad6389(0x45f));const _0x44a94e=this[_0xad6389(0x5bb)][_0xad6389(0x2e3)](),_0x285cab=this[_0xad6389(0x5bb)][_0xad6389(0x3e8)](),_0x1bfd65=mapToHeaders$1(this[_0xad6389(0x5bb)]['getDefaultHeaders']()),_0xc8235d=this['apiClient'][_0xad6389(0x620)](),_0x3ad48e=_0x44a94e+_0xad6389(0x2bd)+_0x285cab+_0xad6389(0x257)+_0xc8235d;let _0x50ec2c=()=>{};const _0x15c078=new Promise(_0x3d1dc2=>{_0x50ec2c=_0x3d1dc2;}),_0x2bcc58=_0x390a1f[_0xad6389(0x5ad)],_0x4828e2=function(){_0x50ec2c({});},_0x3f2cc7=this[_0xad6389(0x5bb)],_0x4ebeea={'onopen':_0x4828e2,'onmessage':_0x5ed7cd=>{const _0xdfe40=_0xad6389;void handleWebSocketMessage$1(_0x3f2cc7,_0x2bcc58[_0xdfe40(0x667)],_0x5ed7cd);},'onerror':(_0x384416=_0x2bcc58===null||_0x2bcc58===void 0x0?void 0x0:_0x2bcc58[_0xad6389(0x42c)])!==null&&_0x384416!==void 0x0?_0x384416:function(_0x414134){},'onclose':(_0x3eeb0d=_0x2bcc58===null||_0x2bcc58===void 0x0?void 0x0:_0x2bcc58[_0xad6389(0x2c8)])!==null&&_0x3eeb0d!==void 0x0?_0x3eeb0d:function(_0x1e5088){}},_0x47552f=this[_0xad6389(0x48d)][_0xad6389(0x1af)](_0x3ad48e,headersToMap$1(_0x1bfd65),_0x4ebeea);_0x47552f[_0xad6389(0x19f)](),await _0x15c078;const _0xdb5fe8=tModel(this[_0xad6389(0x5bb)],_0x390a1f[_0xad6389(0x210)]),_0x40732f={'model':_0xdb5fe8},_0x1bc196={'setup':_0x40732f};return _0x47552f[_0xad6389(0x277)](JSON[_0xad6389(0x45e)](_0x1bc196)),new LiveMusicSession(_0x47552f,this[_0xad6389(0x5bb)]);}}class LiveMusicSession{constructor(_0x159752,_0x55eebb){const _0x486e46=a1_0x54af01;this[_0x486e46(0x2c7)]=_0x159752,this[_0x486e46(0x5bb)]=_0x55eebb;}async[a1_0x54af01(0x40c)](_0x3bd472){const _0x61354a=a1_0x54af01;if(!_0x3bd472[_0x61354a(0x333)]||Object[_0x61354a(0x51c)](_0x3bd472[_0x61354a(0x333)])[_0x61354a(0x258)]===0x0)throw new Error(_0x61354a(0x3cd));const _0x570db0=liveMusicSetWeightedPromptsParametersToMldev(_0x3bd472);this[_0x61354a(0x2c7)][_0x61354a(0x277)](JSON[_0x61354a(0x45e)]({'clientContent':_0x570db0}));}async[a1_0x54af01(0x4cd)](_0x1c16c8){const _0x3d984a=a1_0x54af01;!_0x1c16c8[_0x3d984a(0x337)]&&(_0x1c16c8['musicGenerationConfig']={});const _0x5d4aa5=liveMusicSetConfigParametersToMldev(_0x1c16c8);this['conn']['send'](JSON[_0x3d984a(0x45e)](_0x5d4aa5));}[a1_0x54af01(0x20e)](_0x4631f6){const _0x3b0961=a1_0x54af01,_0x9c9202={'playbackControl':_0x4631f6};this[_0x3b0961(0x2c7)][_0x3b0961(0x277)](JSON[_0x3b0961(0x45e)](_0x9c9202));}[a1_0x54af01(0x598)](){const _0x4e61e7=a1_0x54af01;this[_0x4e61e7(0x20e)](LiveMusicPlaybackControl[_0x4e61e7(0x191)]);}[a1_0x54af01(0x689)](){const _0x36fbdb=a1_0x54af01;this[_0x36fbdb(0x20e)](LiveMusicPlaybackControl[_0x36fbdb(0x3dc)]);}[a1_0x54af01(0x607)](){const _0x149e1b=a1_0x54af01;this[_0x149e1b(0x20e)](LiveMusicPlaybackControl[_0x149e1b(0x54c)]);}['resetContext'](){this['sendPlaybackControl'](LiveMusicPlaybackControl['RESET_CONTEXT']);}[a1_0x54af01(0x646)](){const _0x2bd049=a1_0x54af01;this[_0x2bd049(0x2c7)][_0x2bd049(0x646)]();}}function headersToMap$1(_0x4695ad){const _0x58ad7f={};return _0x4695ad['forEach']((_0x247d2a,_0x3cace1)=>{_0x58ad7f[_0x3cace1]=_0x247d2a;}),_0x58ad7f;}function mapToHeaders$1(_0x1035c3){const _0x13ef96=new Headers();for(const [_0x109b41,_0x190da3]of Object['entries'](_0x1035c3)){_0x13ef96['append'](_0x109b41,_0x190da3);}return _0x13ef96;}/**
227
+ * @license
228
+ * Copyright 2025 Google LLC
229
+ * SPDX-License-Identifier: Apache-2.0
230
+ */
231
+ const FUNCTION_RESPONSE_REQUIRES_ID='FunctionResponse\x20request\x20must\x20have\x20an\x20`id`\x20field\x20from\x20the\x20response\x20of\x20a\x20ToolCall.FunctionalCalls\x20in\x20Google\x20AI.';async function handleWebSocketMessage(_0x26754d,_0x1eb4cf,_0x52fdd6){const _0x2b1035=a1_0x54af01,_0x5ce349=new LiveServerMessage();let _0x3fc67f;if(_0x52fdd6[_0x2b1035(0x354)]instanceof Blob)_0x3fc67f=await _0x52fdd6[_0x2b1035(0x354)]['text']();else _0x52fdd6[_0x2b1035(0x354)]instanceof ArrayBuffer?_0x3fc67f=new TextDecoder()[_0x2b1035(0x26e)](_0x52fdd6[_0x2b1035(0x354)]):_0x3fc67f=_0x52fdd6[_0x2b1035(0x354)];const _0x5abdb2=JSON['parse'](_0x3fc67f);if(_0x26754d[_0x2b1035(0x29b)]()){const _0x18856f=liveServerMessageFromVertex(_0x5abdb2);Object[_0x2b1035(0x541)](_0x5ce349,_0x18856f);}else{const _0x10af4f=_0x5abdb2;Object['assign'](_0x5ce349,_0x10af4f);}_0x1eb4cf(_0x5ce349);}class Live{constructor(_0x55d5b8,_0x36601c,_0x5b3c8e){const _0x259495=a1_0x54af01;this[_0x259495(0x5bb)]=_0x55d5b8,this[_0x259495(0x5e1)]=_0x36601c,this['webSocketFactory']=_0x5b3c8e,this['music']=new LiveMusic(this['apiClient'],this[_0x259495(0x5e1)],this[_0x259495(0x48d)]);}async[a1_0x54af01(0x19f)](_0x1be2dc){const _0x260bed=a1_0x54af01;var _0x3282ba,_0x2ba7c8,_0x10f7cd,_0x4880c5,_0x320291,_0x3e10b9;if(_0x1be2dc[_0x260bed(0x1b0)]&&_0x1be2dc[_0x260bed(0x1b0)][_0x260bed(0x688)])throw new Error(_0x260bed(0x5c2)+'\x20LiveConnectConfig\x20yet.\x20Please\x20use\x20the\x20client-level\x20httpOptions'+_0x260bed(0x1e6));const _0x39ea0d=this[_0x260bed(0x5bb)][_0x260bed(0x2e3)](),_0x215ae6=this[_0x260bed(0x5bb)][_0x260bed(0x3e8)]();let _0x42920c;const _0x44893a=this[_0x260bed(0x5bb)]['getHeaders']();_0x1be2dc['config']&&_0x1be2dc[_0x260bed(0x1b0)][_0x260bed(0x458)]&&hasMcpToolUsage(_0x1be2dc[_0x260bed(0x1b0)][_0x260bed(0x458)])&&setMcpUsageHeader(_0x44893a);const _0x1e6800=mapToHeaders(_0x44893a);if(this['apiClient']['isVertexAI']()){const _0x3712c4=this[_0x260bed(0x5bb)][_0x260bed(0x549)](),_0x4ce61f=this[_0x260bed(0x5bb)]['getLocation'](),_0x2cf183=this[_0x260bed(0x5bb)][_0x260bed(0x620)](),_0x3d23aa=!!_0x3712c4&&!!_0x4ce61f||!!_0x2cf183;this[_0x260bed(0x5bb)][_0x260bed(0x3c9)]()&&!_0x3d23aa?_0x42920c=_0x39ea0d:(_0x42920c=_0x39ea0d+_0x260bed(0x46f)+_0x215ae6+_0x260bed(0x3d4),await this[_0x260bed(0x5e1)][_0x260bed(0x4a7)](_0x1e6800,_0x42920c));}else{const _0x3316c1=this[_0x260bed(0x5bb)][_0x260bed(0x620)]();let _0x370ca6=_0x260bed(0x3f0),_0x35502c=_0x260bed(0x5bf);(_0x3316c1===null||_0x3316c1===void 0x0?void 0x0:_0x3316c1[_0x260bed(0x55d)](_0x260bed(0x355)))&&(console[_0x260bed(0x44c)]('Warning:\x20Ephemeral\x20token\x20support\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.'),_0x215ae6!=='v1alpha'&&console['warn'](_0x260bed(0x671)),_0x370ca6=_0x260bed(0x28b),_0x35502c='access_token'),_0x42920c=_0x39ea0d+_0x260bed(0x2bd)+_0x215ae6+_0x260bed(0x3e1)+_0x370ca6+'?'+_0x35502c+'='+_0x3316c1;}let _0x1432e1=()=>{};const _0x1f150c=new Promise(_0x2451a3=>{_0x1432e1=_0x2451a3;}),_0x21520a=_0x1be2dc[_0x260bed(0x5ad)],_0x100547=function(){const _0x4541a4=_0x260bed;var _0x48720b;(_0x48720b=_0x21520a===null||_0x21520a===void 0x0?void 0x0:_0x21520a[_0x4541a4(0x2f7)])===null||_0x48720b===void 0x0?void 0x0:_0x48720b[_0x4541a4(0x182)](_0x21520a),_0x1432e1({});},_0x31702a=this[_0x260bed(0x5bb)],_0xf8824d={'onopen':_0x100547,'onmessage':_0x21f07a=>{const _0x228fff=_0x260bed;void handleWebSocketMessage(_0x31702a,_0x21520a[_0x228fff(0x667)],_0x21f07a);},'onerror':(_0x3282ba=_0x21520a===null||_0x21520a===void 0x0?void 0x0:_0x21520a['onerror'])!==null&&_0x3282ba!==void 0x0?_0x3282ba:function(_0x301b2f){},'onclose':(_0x2ba7c8=_0x21520a===null||_0x21520a===void 0x0?void 0x0:_0x21520a[_0x260bed(0x2c8)])!==null&&_0x2ba7c8!==void 0x0?_0x2ba7c8:function(_0x337878){}},_0x295bef=this[_0x260bed(0x48d)]['create'](_0x42920c,headersToMap(_0x1e6800),_0xf8824d);_0x295bef['connect'](),await _0x1f150c;let _0xa41eec=tModel(this[_0x260bed(0x5bb)],_0x1be2dc[_0x260bed(0x210)]);if(this[_0x260bed(0x5bb)][_0x260bed(0x29b)]()&&_0xa41eec[_0x260bed(0x55d)](_0x260bed(0x287))){const _0x1089e4=this[_0x260bed(0x5bb)][_0x260bed(0x549)](),_0x2c6bb1=this[_0x260bed(0x5bb)][_0x260bed(0x1ea)]();_0x1089e4&&_0x2c6bb1&&(_0xa41eec=_0x260bed(0x353)+_0x1089e4+_0x260bed(0x1e9)+_0x2c6bb1+'/'+_0xa41eec);}let _0xa1772f={};this[_0x260bed(0x5bb)][_0x260bed(0x29b)]()&&((_0x10f7cd=_0x1be2dc[_0x260bed(0x1b0)])===null||_0x10f7cd===void 0x0?void 0x0:_0x10f7cd[_0x260bed(0x282)])===undefined&&(_0x1be2dc['config']===undefined?_0x1be2dc[_0x260bed(0x1b0)]={'responseModalities':[Modality[_0x260bed(0x55f)]]}:_0x1be2dc[_0x260bed(0x1b0)]['responseModalities']=[Modality['AUDIO']]);((_0x4880c5=_0x1be2dc[_0x260bed(0x1b0)])===null||_0x4880c5===void 0x0?void 0x0:_0x4880c5['generationConfig'])&&console[_0x260bed(0x44c)](_0x260bed(0x42b));const _0x852ee5=(_0x3e10b9=(_0x320291=_0x1be2dc['config'])===null||_0x320291===void 0x0?void 0x0:_0x320291['tools'])!==null&&_0x3e10b9!==void 0x0?_0x3e10b9:[],_0x40f302=[];for(const _0x2669dd of _0x852ee5){if(this['isCallableTool'](_0x2669dd)){const _0x4ec26b=_0x2669dd;_0x40f302['push'](await _0x4ec26b[_0x260bed(0x367)]());}else _0x40f302[_0x260bed(0x54b)](_0x2669dd);}_0x40f302[_0x260bed(0x258)]>0x0&&(_0x1be2dc['config'][_0x260bed(0x458)]=_0x40f302);const _0x1d64ce={'model':_0xa41eec,'config':_0x1be2dc[_0x260bed(0x1b0)],'callbacks':_0x1be2dc[_0x260bed(0x5ad)]};return this[_0x260bed(0x5bb)]['isVertexAI']()?_0xa1772f=liveConnectParametersToVertex(this[_0x260bed(0x5bb)],_0x1d64ce):_0xa1772f=liveConnectParametersToMldev(this['apiClient'],_0x1d64ce),delete _0xa1772f['config'],_0x295bef[_0x260bed(0x277)](JSON[_0x260bed(0x45e)](_0xa1772f)),new Session(_0x295bef,this[_0x260bed(0x5bb)]);}['isCallableTool'](_0x129d43){const _0x207719=a1_0x54af01;return _0x207719(0x586)in _0x129d43&&typeof _0x129d43[_0x207719(0x586)]===_0x207719(0x4a6);}}const defaultLiveSendClientContentParamerters={'turnComplete':!![]};class Session{constructor(_0x49a59a,_0x487b0a){const _0x37f053=a1_0x54af01;this[_0x37f053(0x2c7)]=_0x49a59a,this[_0x37f053(0x5bb)]=_0x487b0a;}['tLiveClientContent'](_0x193e5e,_0x221ae7){const _0x50bbe6=a1_0x54af01;if(_0x221ae7[_0x50bbe6(0x5ed)]!==null&&_0x221ae7[_0x50bbe6(0x5ed)]!==undefined){let _0x8441f4=[];try{_0x8441f4=tContents(_0x221ae7['turns']),!_0x193e5e[_0x50bbe6(0x29b)]()&&(_0x8441f4=_0x8441f4[_0x50bbe6(0x261)](_0x2ea432=>contentToMldev$1(_0x2ea432)));}catch(_0x2298da){throw new Error(_0x50bbe6(0x42d)+typeof _0x221ae7[_0x50bbe6(0x5ed)]+'\x27');}return{'clientContent':{'turns':_0x8441f4,'turnComplete':_0x221ae7['turnComplete']}};}return{'clientContent':{'turnComplete':_0x221ae7['turnComplete']}};}['tLiveClienttToolResponse'](_0x372b69,_0x253e37){const _0x1b860a=a1_0x54af01;let _0x549782=[];if(_0x253e37['functionResponses']==null)throw new Error(_0x1b860a(0x622));!Array['isArray'](_0x253e37[_0x1b860a(0x1b6)])?_0x549782=[_0x253e37[_0x1b860a(0x1b6)]]:_0x549782=_0x253e37['functionResponses'];if(_0x549782[_0x1b860a(0x258)]===0x0)throw new Error(_0x1b860a(0x622));for(const _0x12def8 of _0x549782){if(typeof _0x12def8!==_0x1b860a(0x34b)||_0x12def8===null||!('name'in _0x12def8)||!('response'in _0x12def8))throw new Error(_0x1b860a(0x4c2)+typeof _0x12def8+'\x27.');if(!_0x372b69[_0x1b860a(0x29b)]()&&!('id'in _0x12def8))throw new Error(FUNCTION_RESPONSE_REQUIRES_ID);}const _0x26f793={'toolResponse':{'functionResponses':_0x549782}};return _0x26f793;}['sendClientContent'](_0x122234){const _0x417af0=a1_0x54af01;_0x122234=Object[_0x417af0(0x541)](Object[_0x417af0(0x541)]({},defaultLiveSendClientContentParamerters),_0x122234);const _0x298564=this['tLiveClientContent'](this[_0x417af0(0x5bb)],_0x122234);this[_0x417af0(0x2c7)][_0x417af0(0x277)](JSON[_0x417af0(0x45e)](_0x298564));}[a1_0x54af01(0x286)](_0xd697ee){const _0x12a6f9=a1_0x54af01;let _0x544790={};this['apiClient'][_0x12a6f9(0x29b)]()?_0x544790={'realtimeInput':liveSendRealtimeInputParametersToVertex(_0xd697ee)}:_0x544790={'realtimeInput':liveSendRealtimeInputParametersToMldev(_0xd697ee)},this[_0x12a6f9(0x2c7)]['send'](JSON[_0x12a6f9(0x45e)](_0x544790));}['sendToolResponse'](_0x423ad7){const _0xfef41e=a1_0x54af01;if(_0x423ad7[_0xfef41e(0x1b6)]==null)throw new Error(_0xfef41e(0x5c6));const _0x1bf9dc=this[_0xfef41e(0x40a)](this['apiClient'],_0x423ad7);this[_0xfef41e(0x2c7)][_0xfef41e(0x277)](JSON[_0xfef41e(0x45e)](_0x1bf9dc));}['close'](){const _0x2665fb=a1_0x54af01;this[_0x2665fb(0x2c7)]['close']();}}function headersToMap(_0x3a6945){const _0x4fb143=a1_0x54af01,_0x5dab69={};return _0x3a6945[_0x4fb143(0x2e7)]((_0x445479,_0x1c04ae)=>{_0x5dab69[_0x1c04ae]=_0x445479;}),_0x5dab69;}function mapToHeaders(_0x54ba94){const _0x1a696e=a1_0x54af01,_0x1aedad=new Headers();for(const [_0x3d2932,_0x358ea5]of Object[_0x1a696e(0x4a1)](_0x54ba94)){_0x1aedad['append'](_0x3d2932,_0x358ea5);}return _0x1aedad;}/**
232
+ * @license
233
+ * Copyright 2025 Google LLC
234
+ * SPDX-License-Identifier: Apache-2.0
235
+ */
236
+ const DEFAULT_MAX_REMOTE_CALLS=0xa;function shouldDisableAfc(_0x36e5af){const _0x5bcdb6=a1_0x54af01;var _0x474532,_0x27d3fe,_0x34e66d;if((_0x474532=_0x36e5af===null||_0x36e5af===void 0x0?void 0x0:_0x36e5af[_0x5bcdb6(0x592)])===null||_0x474532===void 0x0?void 0x0:_0x474532['disable'])return!![];let _0x495517=![];for(const _0x3d1063 of(_0x27d3fe=_0x36e5af===null||_0x36e5af===void 0x0?void 0x0:_0x36e5af['tools'])!==null&&_0x27d3fe!==void 0x0?_0x27d3fe:[]){if(isCallableTool(_0x3d1063)){_0x495517=!![];break;}}if(!_0x495517)return!![];const _0x588702=(_0x34e66d=_0x36e5af===null||_0x36e5af===void 0x0?void 0x0:_0x36e5af[_0x5bcdb6(0x592)])===null||_0x34e66d===void 0x0?void 0x0:_0x34e66d[_0x5bcdb6(0x1f6)];if(_0x588702&&(_0x588702<0x0||!Number[_0x5bcdb6(0x4d5)](_0x588702))||_0x588702==0x0)return console['warn']('Invalid\x20maximumRemoteCalls\x20value\x20provided\x20for\x20automatic\x20function\x20calling.\x20Disabled\x20automatic\x20function\x20calling.\x20Please\x20provide\x20a\x20valid\x20integer\x20value\x20greater\x20than\x200.\x20maximumRemoteCalls\x20provided:',_0x588702),!![];return![];}function isCallableTool(_0x2a7a08){const _0xbd4856=a1_0x54af01;return'callTool'in _0x2a7a08&&typeof _0x2a7a08[_0xbd4856(0x586)]===_0xbd4856(0x4a6);}function hasCallableTools(_0x4d5e5e){const _0x1671b3=a1_0x54af01;var _0x13f05f,_0x4a7aed,_0x1bf354;return(_0x1bf354=(_0x4a7aed=(_0x13f05f=_0x4d5e5e[_0x1671b3(0x1b0)])===null||_0x13f05f===void 0x0?void 0x0:_0x13f05f[_0x1671b3(0x458)])===null||_0x4a7aed===void 0x0?void 0x0:_0x4a7aed['some'](_0x4a2f96=>isCallableTool(_0x4a2f96)))!==null&&_0x1bf354!==void 0x0?_0x1bf354:![];}function findAfcIncompatibleToolIndexes(_0x1a456b){const _0x341824=a1_0x54af01;var _0x2a7494;const _0x248e22=[];if(!((_0x2a7494=_0x1a456b===null||_0x1a456b===void 0x0?void 0x0:_0x1a456b[_0x341824(0x1b0)])===null||_0x2a7494===void 0x0?void 0x0:_0x2a7494[_0x341824(0x458)]))return _0x248e22;return _0x1a456b[_0x341824(0x1b0)][_0x341824(0x458)]['forEach']((_0x448dab,_0x476339)=>{const _0x4e59fa=_0x341824;if(isCallableTool(_0x448dab))return;const _0x1621f3=_0x448dab;_0x1621f3['functionDeclarations']&&_0x1621f3[_0x4e59fa(0x4fa)][_0x4e59fa(0x258)]>0x0&&_0x248e22[_0x4e59fa(0x54b)](_0x476339);}),_0x248e22;}function shouldAppendAfcHistory(_0x151f39){const _0x49c49f=a1_0x54af01;var _0xf358b8;return!((_0xf358b8=_0x151f39===null||_0x151f39===void 0x0?void 0x0:_0x151f39[_0x49c49f(0x592)])===null||_0xf358b8===void 0x0?void 0x0:_0xf358b8[_0x49c49f(0x47e)]);}/**
237
+ * @license
238
+ * Copyright 2025 Google LLC
239
+ * SPDX-License-Identifier: Apache-2.0
240
+ */
241
+ class Models extends BaseModule{constructor(_0x53421e){const _0xc1d610=a1_0x54af01;super(),this['apiClient']=_0x53421e,this[_0xc1d610(0x209)]=async _0x1da6cb=>{const _0x5baeb1=_0xc1d610;var _0x361739,_0x4b3155,_0xe84bdd,_0x3557f1,_0xf14348;const _0x5569f9=await this['processParamsMaybeAddMcpUsage'](_0x1da6cb);this[_0x5baeb1(0x440)](_0x1da6cb);if(!hasCallableTools(_0x1da6cb)||shouldDisableAfc(_0x1da6cb['config']))return await this['generateContentInternal'](_0x5569f9);const _0x4cad34=findAfcIncompatibleToolIndexes(_0x1da6cb);if(_0x4cad34['length']>0x0){const _0x4da3d5=_0x4cad34[_0x5baeb1(0x261)](_0x10fde0=>_0x5baeb1(0x30b)+_0x10fde0+']')[_0x5baeb1(0x1d6)](',\x20');throw new Error('Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x20is\x20not\x20yet\x20supported.\x20Incompatible\x20tools\x20found\x20at\x20'+_0x4da3d5+'.');}let _0x568d40,_0x2f9fbb;const _0x25074c=tContents(_0x5569f9[_0x5baeb1(0x45b)]),_0x40cdff=(_0xe84bdd=(_0x4b3155=(_0x361739=_0x5569f9[_0x5baeb1(0x1b0)])===null||_0x361739===void 0x0?void 0x0:_0x361739[_0x5baeb1(0x592)])===null||_0x4b3155===void 0x0?void 0x0:_0x4b3155['maximumRemoteCalls'])!==null&&_0xe84bdd!==void 0x0?_0xe84bdd:DEFAULT_MAX_REMOTE_CALLS;let _0x1a7fda=0x0;while(_0x1a7fda<_0x40cdff){_0x568d40=await this[_0x5baeb1(0x571)](_0x5569f9);if(!_0x568d40[_0x5baeb1(0x1e0)]||_0x568d40[_0x5baeb1(0x1e0)]['length']===0x0)break;const _0x4525cc=_0x568d40[_0x5baeb1(0x546)][0x0][_0x5baeb1(0x1a9)],_0x1b7cf2=[];for(const _0x1d85c3 of(_0xf14348=(_0x3557f1=_0x1da6cb['config'])===null||_0x3557f1===void 0x0?void 0x0:_0x3557f1[_0x5baeb1(0x458)])!==null&&_0xf14348!==void 0x0?_0xf14348:[]){if(isCallableTool(_0x1d85c3)){const _0x5363ba=_0x1d85c3,_0x5e6047=await _0x5363ba['callTool'](_0x568d40[_0x5baeb1(0x1e0)]);_0x1b7cf2[_0x5baeb1(0x54b)](..._0x5e6047);}}_0x1a7fda++,_0x2f9fbb={'role':_0x5baeb1(0x517),'parts':_0x1b7cf2},_0x5569f9[_0x5baeb1(0x45b)]=tContents(_0x5569f9['contents']),_0x5569f9[_0x5baeb1(0x45b)][_0x5baeb1(0x54b)](_0x4525cc),_0x5569f9[_0x5baeb1(0x45b)][_0x5baeb1(0x54b)](_0x2f9fbb),shouldAppendAfcHistory(_0x5569f9[_0x5baeb1(0x1b0)])&&(_0x25074c[_0x5baeb1(0x54b)](_0x4525cc),_0x25074c[_0x5baeb1(0x54b)](_0x2f9fbb));}return shouldAppendAfcHistory(_0x5569f9[_0x5baeb1(0x1b0)])&&(_0x568d40[_0x5baeb1(0x39d)]=_0x25074c),_0x568d40;},this[_0xc1d610(0x243)]=async _0xca9429=>{const _0xf2f415=_0xc1d610;var _0x799920,_0x7f7c5d,_0x10ba4c,_0x140dfd,_0x42a130;this[_0xf2f415(0x440)](_0xca9429);if(shouldDisableAfc(_0xca9429[_0xf2f415(0x1b0)])){const _0x29a04e=await this[_0xf2f415(0x289)](_0xca9429);return await this[_0xf2f415(0x197)](_0x29a04e);}const _0x581a18=findAfcIncompatibleToolIndexes(_0xca9429);if(_0x581a18[_0xf2f415(0x258)]>0x0){const _0x6fa545=_0x581a18[_0xf2f415(0x261)](_0x48c18f=>'tools['+_0x48c18f+']')['join'](',\x20');throw new Error('Incompatible\x20tools\x20found\x20at\x20'+_0x6fa545+_0xf2f415(0x501));}const _0x2ecb13=(_0x10ba4c=(_0x7f7c5d=(_0x799920=_0xca9429===null||_0xca9429===void 0x0?void 0x0:_0xca9429[_0xf2f415(0x1b0)])===null||_0x799920===void 0x0?void 0x0:_0x799920['toolConfig'])===null||_0x7f7c5d===void 0x0?void 0x0:_0x7f7c5d[_0xf2f415(0x57d)])===null||_0x10ba4c===void 0x0?void 0x0:_0x10ba4c[_0xf2f415(0x678)],_0x2767a7=(_0x42a130=(_0x140dfd=_0xca9429===null||_0xca9429===void 0x0?void 0x0:_0xca9429[_0xf2f415(0x1b0)])===null||_0x140dfd===void 0x0?void 0x0:_0x140dfd[_0xf2f415(0x592)])===null||_0x42a130===void 0x0?void 0x0:_0x42a130[_0xf2f415(0x6c8)];if(_0x2ecb13&&!_0x2767a7)throw new Error(_0xf2f415(0x40d)+_0xf2f415(0x356)+_0xf2f415(0x22d)+_0xf2f415(0x434)+_0xf2f415(0x2d8));return await this[_0xf2f415(0x20d)](_0xca9429);},this['generateImages']=async _0x2fbcdc=>{const _0x487d85=_0xc1d610;return await this[_0x487d85(0x61f)](_0x2fbcdc)[_0x487d85(0x28f)](_0x5185cd=>{const _0x5768a3=_0x487d85;var _0x3b183e;let _0x166f31;const _0x3dfa5e=[];if(_0x5185cd===null||_0x5185cd===void 0x0?void 0x0:_0x5185cd[_0x5768a3(0x604)])for(const _0x2408f3 of _0x5185cd[_0x5768a3(0x604)]){_0x2408f3&&(_0x2408f3===null||_0x2408f3===void 0x0?void 0x0:_0x2408f3[_0x5768a3(0x2b0)])&&((_0x3b183e=_0x2408f3===null||_0x2408f3===void 0x0?void 0x0:_0x2408f3[_0x5768a3(0x2b0)])===null||_0x3b183e===void 0x0?void 0x0:_0x3b183e['contentType'])===_0x5768a3(0x336)?_0x166f31=_0x2408f3===null||_0x2408f3===void 0x0?void 0x0:_0x2408f3[_0x5768a3(0x2b0)]:_0x3dfa5e[_0x5768a3(0x54b)](_0x2408f3);}let _0x58e66b;return _0x166f31?_0x58e66b={'generatedImages':_0x3dfa5e,'positivePromptSafetyAttributes':_0x166f31,'sdkHttpResponse':_0x5185cd[_0x5768a3(0x25b)]}:_0x58e66b={'generatedImages':_0x3dfa5e,'sdkHttpResponse':_0x5185cd[_0x5768a3(0x25b)]},_0x58e66b;});},this[_0xc1d610(0x338)]=async _0x347bbc=>{const _0x1f5d60=_0xc1d610;var _0x2aaf7b;const _0x2cc0da={'queryBase':!![]},_0x152481=Object[_0x1f5d60(0x541)](Object[_0x1f5d60(0x541)]({},_0x2cc0da),_0x347bbc===null||_0x347bbc===void 0x0?void 0x0:_0x347bbc[_0x1f5d60(0x1b0)]),_0x1dc658={'config':_0x152481};if(this[_0x1f5d60(0x5bb)][_0x1f5d60(0x29b)]()){if(!_0x1dc658[_0x1f5d60(0x1b0)]['queryBase']){if((_0x2aaf7b=_0x1dc658['config'])===null||_0x2aaf7b===void 0x0?void 0x0:_0x2aaf7b[_0x1f5d60(0x61b)])throw new Error(_0x1f5d60(0x4bb));else _0x1dc658[_0x1f5d60(0x1b0)][_0x1f5d60(0x61b)]='labels.tune-type:*';}}return new Pager(PagedItem[_0x1f5d60(0x3d9)],_0x232478=>this[_0x1f5d60(0x62c)](_0x232478),await this[_0x1f5d60(0x62c)](_0x1dc658),_0x1dc658);},this[_0xc1d610(0x1a3)]=async _0x2ab9e1=>{const _0x531512=_0xc1d610,_0x929b5d={'model':_0x2ab9e1['model'],'prompt':_0x2ab9e1[_0x531512(0x6ab)],'referenceImages':[],'config':_0x2ab9e1[_0x531512(0x1b0)]};return _0x2ab9e1['referenceImages']&&(_0x2ab9e1[_0x531512(0x467)]&&(_0x929b5d['referenceImages']=_0x2ab9e1[_0x531512(0x467)][_0x531512(0x261)](_0x2f8179=>_0x2f8179[_0x531512(0x24e)]()))),await this[_0x531512(0x4f2)](_0x929b5d);},this[_0xc1d610(0x207)]=async _0x508de0=>{const _0x2afd20=_0xc1d610;let _0x3ac86b={'numberOfImages':0x1,'mode':_0x2afd20(0x5e5)};_0x508de0[_0x2afd20(0x1b0)]&&(_0x3ac86b=Object['assign'](Object[_0x2afd20(0x541)]({},_0x3ac86b),_0x508de0['config']));const _0x56f669={'model':_0x508de0[_0x2afd20(0x210)],'image':_0x508de0[_0x2afd20(0x401)],'upscaleFactor':_0x508de0[_0x2afd20(0x52a)],'config':_0x3ac86b};return await this[_0x2afd20(0x374)](_0x56f669);},this[_0xc1d610(0x52c)]=async _0x2ceb32=>{const _0x215958=_0xc1d610;var _0x299d05,_0x371838,_0x851161,_0x179c31,_0x1c6818,_0x10aea9;if((_0x2ceb32['prompt']||_0x2ceb32['image']||_0x2ceb32['video'])&&_0x2ceb32[_0x215958(0x520)])throw new Error(_0x215958(0x57e));if(!this[_0x215958(0x5bb)][_0x215958(0x29b)]()){if(((_0x299d05=_0x2ceb32['video'])===null||_0x299d05===void 0x0?void 0x0:_0x299d05[_0x215958(0x4c1)])&&((_0x371838=_0x2ceb32[_0x215958(0x246)])===null||_0x371838===void 0x0?void 0x0:_0x371838[_0x215958(0x5fc)]))_0x2ceb32[_0x215958(0x246)]={'uri':_0x2ceb32[_0x215958(0x246)][_0x215958(0x4c1)],'mimeType':_0x2ceb32[_0x215958(0x246)][_0x215958(0x2cd)]};else((_0x179c31=(_0x851161=_0x2ceb32[_0x215958(0x520)])===null||_0x851161===void 0x0?void 0x0:_0x851161[_0x215958(0x246)])===null||_0x179c31===void 0x0?void 0x0:_0x179c31[_0x215958(0x4c1)])&&((_0x10aea9=(_0x1c6818=_0x2ceb32['source'])===null||_0x1c6818===void 0x0?void 0x0:_0x1c6818[_0x215958(0x246)])===null||_0x10aea9===void 0x0?void 0x0:_0x10aea9['videoBytes'])&&(_0x2ceb32['source']['video']={'uri':_0x2ceb32[_0x215958(0x520)][_0x215958(0x246)][_0x215958(0x4c1)],'mimeType':_0x2ceb32[_0x215958(0x520)][_0x215958(0x246)]['mimeType']});}return await this[_0x215958(0x1e5)](_0x2ceb32);};}['maybeMoveToResponseJsonSchem'](_0xa3cbd5){const _0x48bbf9=a1_0x54af01;_0xa3cbd5[_0x48bbf9(0x1b0)]&&_0xa3cbd5[_0x48bbf9(0x1b0)]['responseSchema']&&(!_0xa3cbd5[_0x48bbf9(0x1b0)][_0x48bbf9(0x436)]&&(Object[_0x48bbf9(0x51c)](_0xa3cbd5[_0x48bbf9(0x1b0)]['responseSchema'])[_0x48bbf9(0x563)]('$schema')&&(_0xa3cbd5[_0x48bbf9(0x1b0)]['responseJsonSchema']=_0xa3cbd5[_0x48bbf9(0x1b0)]['responseSchema'],delete _0xa3cbd5[_0x48bbf9(0x1b0)]['responseSchema'])));return;}async[a1_0x54af01(0x289)](_0x502a8d){const _0xee2bed=a1_0x54af01;var _0x1dbf5b,_0x54ef58,_0x4c6ed2;const _0x337969=(_0x1dbf5b=_0x502a8d['config'])===null||_0x1dbf5b===void 0x0?void 0x0:_0x1dbf5b[_0xee2bed(0x458)];if(!_0x337969)return _0x502a8d;const _0x5b00af=await Promise[_0xee2bed(0x410)](_0x337969['map'](async _0x97f386=>{const _0x501da2=_0xee2bed;if(isCallableTool(_0x97f386)){const _0x27b748=_0x97f386;return await _0x27b748[_0x501da2(0x367)]();}return _0x97f386;})),_0x43f707={'model':_0x502a8d[_0xee2bed(0x210)],'contents':_0x502a8d[_0xee2bed(0x45b)],'config':Object[_0xee2bed(0x541)](Object[_0xee2bed(0x541)]({},_0x502a8d[_0xee2bed(0x1b0)]),{'tools':_0x5b00af})};_0x43f707[_0xee2bed(0x1b0)][_0xee2bed(0x458)]=_0x5b00af;if(_0x502a8d[_0xee2bed(0x1b0)]&&_0x502a8d[_0xee2bed(0x1b0)][_0xee2bed(0x458)]&&hasMcpToolUsage(_0x502a8d[_0xee2bed(0x1b0)][_0xee2bed(0x458)])){const _0x4d0ebb=(_0x4c6ed2=(_0x54ef58=_0x502a8d[_0xee2bed(0x1b0)]['httpOptions'])===null||_0x54ef58===void 0x0?void 0x0:_0x54ef58['headers'])!==null&&_0x4c6ed2!==void 0x0?_0x4c6ed2:{};let _0x40fdee=Object[_0xee2bed(0x541)]({},_0x4d0ebb);Object['keys'](_0x40fdee)[_0xee2bed(0x258)]===0x0&&(_0x40fdee=this[_0xee2bed(0x5bb)]['getDefaultHeaders']()),setMcpUsageHeader(_0x40fdee),_0x43f707[_0xee2bed(0x1b0)][_0xee2bed(0x688)]=Object[_0xee2bed(0x541)](Object[_0xee2bed(0x541)]({},_0x502a8d[_0xee2bed(0x1b0)][_0xee2bed(0x688)]),{'headers':_0x40fdee});}return _0x43f707;}async['initAfcToolsMap'](_0x480f2d){const _0x32057a=a1_0x54af01;var _0x56fee8,_0x52bc74,_0xb6e05c;const _0xd53f20=new Map();for(const _0x29bf50 of(_0x52bc74=(_0x56fee8=_0x480f2d[_0x32057a(0x1b0)])===null||_0x56fee8===void 0x0?void 0x0:_0x56fee8[_0x32057a(0x458)])!==null&&_0x52bc74!==void 0x0?_0x52bc74:[]){if(isCallableTool(_0x29bf50)){const _0x313bbf=_0x29bf50,_0xf273f2=await _0x313bbf[_0x32057a(0x367)]();for(const _0x9f2919 of(_0xb6e05c=_0xf273f2[_0x32057a(0x4fa)])!==null&&_0xb6e05c!==void 0x0?_0xb6e05c:[]){if(!_0x9f2919[_0x32057a(0x24b)])throw new Error(_0x32057a(0x631));if(_0xd53f20[_0x32057a(0x198)](_0x9f2919[_0x32057a(0x24b)]))throw new Error(_0x32057a(0x526)+_0x9f2919[_0x32057a(0x24b)]);_0xd53f20[_0x32057a(0x6c7)](_0x9f2919['name'],_0x313bbf);}}}return _0xd53f20;}async[a1_0x54af01(0x20d)](_0x242039){const _0x102a54=a1_0x54af01;var _0x132105,_0x5c6a3a,_0x1ee577;const _0x2dc7ad=(_0x1ee577=(_0x5c6a3a=(_0x132105=_0x242039[_0x102a54(0x1b0)])===null||_0x132105===void 0x0?void 0x0:_0x132105[_0x102a54(0x592)])===null||_0x5c6a3a===void 0x0?void 0x0:_0x5c6a3a[_0x102a54(0x1f6)])!==null&&_0x1ee577!==void 0x0?_0x1ee577:DEFAULT_MAX_REMOTE_CALLS;let _0x4a2bd6=![],_0x4f6300=0x0;const _0x47c6d3=await this[_0x102a54(0x1a6)](_0x242039);return function(_0x4d89fc,_0x915422,_0x5a3606){return __asyncGenerator(this,arguments,function*(){const _0x15e4c6=a1_0x2f78;var _0x3f828e,_0x302828,_0x1a47f2,_0x46bc74,_0x198b5c,_0x476a56;while(_0x4f6300<_0x2dc7ad){_0x4a2bd6&&(_0x4f6300++,_0x4a2bd6=![]);const _0x2a01b6=yield __await(_0x4d89fc['processParamsMaybeAddMcpUsage'](_0x5a3606)),_0x76ed6c=yield __await(_0x4d89fc[_0x15e4c6(0x197)](_0x2a01b6)),_0x52f135=[],_0x93932a=[];try{for(var _0x117f11=!![],_0x54eaa3=(_0x302828=void 0x0,__asyncValues(_0x76ed6c)),_0x5e0988;_0x5e0988=yield __await(_0x54eaa3['next']()),_0x3f828e=_0x5e0988[_0x15e4c6(0x49f)],!_0x3f828e;_0x117f11=!![]){_0x46bc74=_0x5e0988[_0x15e4c6(0x2f1)],_0x117f11=![];const _0x59dae7=_0x46bc74;yield yield __await(_0x59dae7);if(_0x59dae7[_0x15e4c6(0x546)]&&((_0x198b5c=_0x59dae7[_0x15e4c6(0x546)][0x0])===null||_0x198b5c===void 0x0?void 0x0:_0x198b5c[_0x15e4c6(0x1a9)])){_0x93932a[_0x15e4c6(0x54b)](_0x59dae7[_0x15e4c6(0x546)][0x0][_0x15e4c6(0x1a9)]);for(const _0x286a5a of(_0x476a56=_0x59dae7[_0x15e4c6(0x546)][0x0][_0x15e4c6(0x1a9)]['parts'])!==null&&_0x476a56!==void 0x0?_0x476a56:[]){if(_0x4f6300<_0x2dc7ad&&_0x286a5a[_0x15e4c6(0x397)]){if(!_0x286a5a[_0x15e4c6(0x397)][_0x15e4c6(0x24b)])throw new Error(_0x15e4c6(0x66a));if(!_0x915422[_0x15e4c6(0x198)](_0x286a5a['functionCall'][_0x15e4c6(0x24b)]))throw new Error(_0x15e4c6(0x545)+_0x915422[_0x15e4c6(0x51c)]()+_0x15e4c6(0x673)+_0x286a5a[_0x15e4c6(0x397)][_0x15e4c6(0x24b)]);else{const _0x518202=yield __await(_0x915422[_0x15e4c6(0x5a2)](_0x286a5a[_0x15e4c6(0x397)]['name'])['callTool']([_0x286a5a['functionCall']]));_0x52f135['push'](..._0x518202);}}}}}}catch(_0x3f15be){_0x302828={'error':_0x3f15be};}finally{try{if(!_0x117f11&&!_0x3f828e&&(_0x1a47f2=_0x54eaa3[_0x15e4c6(0x599)]))yield __await(_0x1a47f2['call'](_0x54eaa3));}finally{if(_0x302828)throw _0x302828[_0x15e4c6(0x3d6)];}}if(_0x52f135[_0x15e4c6(0x258)]>0x0){_0x4a2bd6=!![];const _0x5ef050=new GenerateContentResponse();_0x5ef050[_0x15e4c6(0x546)]=[{'content':{'role':_0x15e4c6(0x517),'parts':_0x52f135}}],yield yield __await(_0x5ef050);const _0x2d552e=[];_0x2d552e[_0x15e4c6(0x54b)](..._0x93932a),_0x2d552e[_0x15e4c6(0x54b)]({'role':_0x15e4c6(0x517),'parts':_0x52f135});const _0x5c1a13=tContents(_0x5a3606[_0x15e4c6(0x45b)])[_0x15e4c6(0x2ba)](_0x2d552e);_0x5a3606[_0x15e4c6(0x45b)]=_0x5c1a13;}else break;}});}(this,_0x47c6d3,_0x242039);}async[a1_0x54af01(0x571)](_0x681a61){const _0x165099=a1_0x54af01;var _0x107bf6,_0x5e3e0d,_0x3007bc,_0x53f376;let _0xd72300,_0x28b168='',_0x31532d={};if(this['apiClient']['isVertexAI']()){const _0x399827=generateContentParametersToVertex(this[_0x165099(0x5bb)],_0x681a61);return _0x28b168=formatMap(_0x165099(0x3bc),_0x399827[_0x165099(0x4e9)]),_0x31532d=_0x399827[_0x165099(0x46e)],delete _0x399827['_url'],delete _0x399827[_0x165099(0x46e)],_0xd72300=this[_0x165099(0x5bb)]['request']({'path':_0x28b168,'queryParams':_0x31532d,'body':JSON[_0x165099(0x45e)](_0x399827),'httpMethod':_0x165099(0x43a),'httpOptions':(_0x107bf6=_0x681a61[_0x165099(0x1b0)])===null||_0x107bf6===void 0x0?void 0x0:_0x107bf6[_0x165099(0x688)],'abortSignal':(_0x5e3e0d=_0x681a61[_0x165099(0x1b0)])===null||_0x5e3e0d===void 0x0?void 0x0:_0x5e3e0d[_0x165099(0x67c)]})[_0x165099(0x28f)](_0x52082f=>{const _0x174d66=_0x165099;return _0x52082f[_0x174d66(0x648)]()[_0x174d66(0x28f)](_0xe7fcea=>{const _0x4fd2e6=_0x174d66,_0x2e4741=_0xe7fcea;return _0x2e4741[_0x4fd2e6(0x25b)]={'headers':_0x52082f[_0x4fd2e6(0x2fa)]},_0x2e4741;});}),_0xd72300[_0x165099(0x28f)](_0x345b03=>{const _0x555b34=_0x165099,_0x4ce5a2=generateContentResponseFromVertex(_0x345b03),_0x4166c1=new GenerateContentResponse();return Object[_0x555b34(0x541)](_0x4166c1,_0x4ce5a2),_0x4166c1;});}else{const _0x57aed0=generateContentParametersToMldev(this[_0x165099(0x5bb)],_0x681a61);return _0x28b168=formatMap(_0x165099(0x3bc),_0x57aed0[_0x165099(0x4e9)]),_0x31532d=_0x57aed0['_query'],delete _0x57aed0[_0x165099(0x4e9)],delete _0x57aed0[_0x165099(0x46e)],_0xd72300=this[_0x165099(0x5bb)]['request']({'path':_0x28b168,'queryParams':_0x31532d,'body':JSON[_0x165099(0x45e)](_0x57aed0),'httpMethod':_0x165099(0x43a),'httpOptions':(_0x3007bc=_0x681a61[_0x165099(0x1b0)])===null||_0x3007bc===void 0x0?void 0x0:_0x3007bc[_0x165099(0x688)],'abortSignal':(_0x53f376=_0x681a61[_0x165099(0x1b0)])===null||_0x53f376===void 0x0?void 0x0:_0x53f376[_0x165099(0x67c)]})[_0x165099(0x28f)](_0x53b9ca=>{const _0xe50d2=_0x165099;return _0x53b9ca['json']()[_0xe50d2(0x28f)](_0x52c6a5=>{const _0x167bed=_0xe50d2,_0x26fc79=_0x52c6a5;return _0x26fc79[_0x167bed(0x25b)]={'headers':_0x53b9ca[_0x167bed(0x2fa)]},_0x26fc79;});}),_0xd72300[_0x165099(0x28f)](_0x3f3f69=>{const _0x383e02=generateContentResponseFromMldev(_0x3f3f69),_0x1a518a=new GenerateContentResponse();return Object['assign'](_0x1a518a,_0x383e02),_0x1a518a;});}}async[a1_0x54af01(0x197)](_0x376518){const _0x2762d1=a1_0x54af01;var _0x3ffeb1,_0xe7312a,_0x41b4a4,_0x2827d1;let _0x108e7f,_0x34077b='',_0x3cdc05={};if(this[_0x2762d1(0x5bb)]['isVertexAI']()){const _0x4ddd87=generateContentParametersToVertex(this[_0x2762d1(0x5bb)],_0x376518);_0x34077b=formatMap(_0x2762d1(0x4d2),_0x4ddd87[_0x2762d1(0x4e9)]),_0x3cdc05=_0x4ddd87['_query'],delete _0x4ddd87['_url'],delete _0x4ddd87[_0x2762d1(0x46e)];const _0x1d9583=this[_0x2762d1(0x5bb)];return _0x108e7f=_0x1d9583[_0x2762d1(0x330)]({'path':_0x34077b,'queryParams':_0x3cdc05,'body':JSON['stringify'](_0x4ddd87),'httpMethod':_0x2762d1(0x43a),'httpOptions':(_0x3ffeb1=_0x376518[_0x2762d1(0x1b0)])===null||_0x3ffeb1===void 0x0?void 0x0:_0x3ffeb1[_0x2762d1(0x688)],'abortSignal':(_0xe7312a=_0x376518[_0x2762d1(0x1b0)])===null||_0xe7312a===void 0x0?void 0x0:_0xe7312a['abortSignal']}),_0x108e7f[_0x2762d1(0x28f)](function(_0x5512e7){return __asyncGenerator(this,arguments,function*(){const _0xe9323b=a1_0x2f78;var _0x35e2cb,_0x3309bd,_0xb29473,_0x25dd81;try{for(var _0x32df10=!![],_0x2dbf76=__asyncValues(_0x5512e7),_0x11394e;_0x11394e=yield __await(_0x2dbf76['next']()),_0x35e2cb=_0x11394e[_0xe9323b(0x49f)],!_0x35e2cb;_0x32df10=!![]){_0x25dd81=_0x11394e[_0xe9323b(0x2f1)],_0x32df10=![];const _0x485b9d=_0x25dd81,_0x11c200=generateContentResponseFromVertex(yield __await(_0x485b9d[_0xe9323b(0x648)]()),_0x376518);_0x11c200[_0xe9323b(0x25b)]={'headers':_0x485b9d[_0xe9323b(0x2fa)]};const _0x120581=new GenerateContentResponse();Object['assign'](_0x120581,_0x11c200),yield yield __await(_0x120581);}}catch(_0x153440){_0x3309bd={'error':_0x153440};}finally{try{if(!_0x32df10&&!_0x35e2cb&&(_0xb29473=_0x2dbf76[_0xe9323b(0x599)]))yield __await(_0xb29473[_0xe9323b(0x182)](_0x2dbf76));}finally{if(_0x3309bd)throw _0x3309bd[_0xe9323b(0x3d6)];}}});});}else{const _0x5899a1=generateContentParametersToMldev(this['apiClient'],_0x376518);_0x34077b=formatMap('{model}:streamGenerateContent?alt=sse',_0x5899a1[_0x2762d1(0x4e9)]),_0x3cdc05=_0x5899a1[_0x2762d1(0x46e)],delete _0x5899a1[_0x2762d1(0x4e9)],delete _0x5899a1[_0x2762d1(0x46e)];const _0xc5a0ea=this[_0x2762d1(0x5bb)];return _0x108e7f=_0xc5a0ea[_0x2762d1(0x330)]({'path':_0x34077b,'queryParams':_0x3cdc05,'body':JSON['stringify'](_0x5899a1),'httpMethod':_0x2762d1(0x43a),'httpOptions':(_0x41b4a4=_0x376518[_0x2762d1(0x1b0)])===null||_0x41b4a4===void 0x0?void 0x0:_0x41b4a4['httpOptions'],'abortSignal':(_0x2827d1=_0x376518['config'])===null||_0x2827d1===void 0x0?void 0x0:_0x2827d1[_0x2762d1(0x67c)]}),_0x108e7f[_0x2762d1(0x28f)](function(_0x5f19be){return __asyncGenerator(this,arguments,function*(){const _0x5c0a63=a1_0x2f78;var _0x39df19,_0x164e7a,_0x3f21a3,_0x4f40d4;try{for(var _0x2d80af=!![],_0xbeed8b=__asyncValues(_0x5f19be),_0x4ce671;_0x4ce671=yield __await(_0xbeed8b[_0x5c0a63(0x295)]()),_0x39df19=_0x4ce671[_0x5c0a63(0x49f)],!_0x39df19;_0x2d80af=!![]){_0x4f40d4=_0x4ce671['value'],_0x2d80af=![];const _0x9afd5d=_0x4f40d4,_0x1fabcd=generateContentResponseFromMldev(yield __await(_0x9afd5d['json']()),_0x376518);_0x1fabcd[_0x5c0a63(0x25b)]={'headers':_0x9afd5d[_0x5c0a63(0x2fa)]};const _0x42ca21=new GenerateContentResponse();Object[_0x5c0a63(0x541)](_0x42ca21,_0x1fabcd),yield yield __await(_0x42ca21);}}catch(_0x30f698){_0x164e7a={'error':_0x30f698};}finally{try{if(!_0x2d80af&&!_0x39df19&&(_0x3f21a3=_0xbeed8b[_0x5c0a63(0x599)]))yield __await(_0x3f21a3[_0x5c0a63(0x182)](_0xbeed8b));}finally{if(_0x164e7a)throw _0x164e7a[_0x5c0a63(0x3d6)];}}});});}}async[a1_0x54af01(0x4fd)](_0x588a16){const _0x29283e=a1_0x54af01;var _0x591d0f,_0xc65610,_0x4c5209,_0xed87e8;let _0x342d82,_0x1f8b83='',_0x108c3a={};if(this[_0x29283e(0x5bb)][_0x29283e(0x29b)]()){const _0x303eb5=embedContentParametersToVertex(this[_0x29283e(0x5bb)],_0x588a16);return _0x1f8b83=formatMap(_0x29283e(0x567),_0x303eb5[_0x29283e(0x4e9)]),_0x108c3a=_0x303eb5['_query'],delete _0x303eb5['_url'],delete _0x303eb5[_0x29283e(0x46e)],_0x342d82=this['apiClient'][_0x29283e(0x44a)]({'path':_0x1f8b83,'queryParams':_0x108c3a,'body':JSON['stringify'](_0x303eb5),'httpMethod':'POST','httpOptions':(_0x591d0f=_0x588a16[_0x29283e(0x1b0)])===null||_0x591d0f===void 0x0?void 0x0:_0x591d0f[_0x29283e(0x688)],'abortSignal':(_0xc65610=_0x588a16['config'])===null||_0xc65610===void 0x0?void 0x0:_0xc65610['abortSignal']})[_0x29283e(0x28f)](_0x31ea89=>{const _0x5ea974=_0x29283e;return _0x31ea89[_0x5ea974(0x648)]()[_0x5ea974(0x28f)](_0x1332c0=>{const _0x6f3122=_0x5ea974,_0x52d89a=_0x1332c0;return _0x52d89a[_0x6f3122(0x25b)]={'headers':_0x31ea89[_0x6f3122(0x2fa)]},_0x52d89a;});}),_0x342d82[_0x29283e(0x28f)](_0x32a30f=>{const _0x4dd5e9=embedContentResponseFromVertex(_0x32a30f),_0xbd856c=new EmbedContentResponse();return Object['assign'](_0xbd856c,_0x4dd5e9),_0xbd856c;});}else{const _0x347ed9=embedContentParametersToMldev(this[_0x29283e(0x5bb)],_0x588a16);return _0x1f8b83=formatMap(_0x29283e(0x5fe),_0x347ed9[_0x29283e(0x4e9)]),_0x108c3a=_0x347ed9[_0x29283e(0x46e)],delete _0x347ed9[_0x29283e(0x4e9)],delete _0x347ed9[_0x29283e(0x46e)],_0x342d82=this[_0x29283e(0x5bb)][_0x29283e(0x44a)]({'path':_0x1f8b83,'queryParams':_0x108c3a,'body':JSON[_0x29283e(0x45e)](_0x347ed9),'httpMethod':_0x29283e(0x43a),'httpOptions':(_0x4c5209=_0x588a16[_0x29283e(0x1b0)])===null||_0x4c5209===void 0x0?void 0x0:_0x4c5209[_0x29283e(0x688)],'abortSignal':(_0xed87e8=_0x588a16[_0x29283e(0x1b0)])===null||_0xed87e8===void 0x0?void 0x0:_0xed87e8[_0x29283e(0x67c)]})[_0x29283e(0x28f)](_0x8854e1=>{const _0x27bde2=_0x29283e;return _0x8854e1[_0x27bde2(0x648)]()[_0x27bde2(0x28f)](_0x1f1882=>{const _0x4550c3=_0x27bde2,_0x27eba3=_0x1f1882;return _0x27eba3[_0x4550c3(0x25b)]={'headers':_0x8854e1['headers']},_0x27eba3;});}),_0x342d82[_0x29283e(0x28f)](_0xb3205a=>{const _0x52e8a1=embedContentResponseFromMldev(_0xb3205a),_0x4f8198=new EmbedContentResponse();return Object['assign'](_0x4f8198,_0x52e8a1),_0x4f8198;});}}async['generateImagesInternal'](_0x1a45e3){const _0x449d96=a1_0x54af01;var _0x10fc84,_0x44c974,_0x188954,_0x42d028;let _0x584036,_0xdb19e6='',_0xc61a3b={};if(this['apiClient'][_0x449d96(0x29b)]()){const _0x10e2de=generateImagesParametersToVertex(this[_0x449d96(0x5bb)],_0x1a45e3);return _0xdb19e6=formatMap(_0x449d96(0x567),_0x10e2de[_0x449d96(0x4e9)]),_0xc61a3b=_0x10e2de[_0x449d96(0x46e)],delete _0x10e2de[_0x449d96(0x4e9)],delete _0x10e2de[_0x449d96(0x46e)],_0x584036=this[_0x449d96(0x5bb)][_0x449d96(0x44a)]({'path':_0xdb19e6,'queryParams':_0xc61a3b,'body':JSON[_0x449d96(0x45e)](_0x10e2de),'httpMethod':'POST','httpOptions':(_0x10fc84=_0x1a45e3[_0x449d96(0x1b0)])===null||_0x10fc84===void 0x0?void 0x0:_0x10fc84[_0x449d96(0x688)],'abortSignal':(_0x44c974=_0x1a45e3[_0x449d96(0x1b0)])===null||_0x44c974===void 0x0?void 0x0:_0x44c974['abortSignal']})['then'](_0xee4277=>{const _0x16a9f1=_0x449d96;return _0xee4277[_0x16a9f1(0x648)]()[_0x16a9f1(0x28f)](_0x1f488b=>{const _0x792191=_0x16a9f1,_0x1fbe8a=_0x1f488b;return _0x1fbe8a[_0x792191(0x25b)]={'headers':_0xee4277['headers']},_0x1fbe8a;});}),_0x584036['then'](_0x48b7f=>{const _0x1803b2=_0x449d96,_0x47afa8=generateImagesResponseFromVertex(_0x48b7f),_0x24397c=new GenerateImagesResponse();return Object[_0x1803b2(0x541)](_0x24397c,_0x47afa8),_0x24397c;});}else{const _0x2cf6d8=generateImagesParametersToMldev(this[_0x449d96(0x5bb)],_0x1a45e3);return _0xdb19e6=formatMap(_0x449d96(0x567),_0x2cf6d8[_0x449d96(0x4e9)]),_0xc61a3b=_0x2cf6d8[_0x449d96(0x46e)],delete _0x2cf6d8[_0x449d96(0x4e9)],delete _0x2cf6d8[_0x449d96(0x46e)],_0x584036=this[_0x449d96(0x5bb)][_0x449d96(0x44a)]({'path':_0xdb19e6,'queryParams':_0xc61a3b,'body':JSON[_0x449d96(0x45e)](_0x2cf6d8),'httpMethod':'POST','httpOptions':(_0x188954=_0x1a45e3[_0x449d96(0x1b0)])===null||_0x188954===void 0x0?void 0x0:_0x188954[_0x449d96(0x688)],'abortSignal':(_0x42d028=_0x1a45e3[_0x449d96(0x1b0)])===null||_0x42d028===void 0x0?void 0x0:_0x42d028[_0x449d96(0x67c)]})['then'](_0x22af8f=>{const _0x96076e=_0x449d96;return _0x22af8f[_0x96076e(0x648)]()[_0x96076e(0x28f)](_0x262f73=>{const _0x3a7d1e=_0x96076e,_0x4dde59=_0x262f73;return _0x4dde59[_0x3a7d1e(0x25b)]={'headers':_0x22af8f[_0x3a7d1e(0x2fa)]},_0x4dde59;});}),_0x584036[_0x449d96(0x28f)](_0x205875=>{const _0x31b114=_0x449d96,_0x4a9104=generateImagesResponseFromMldev(_0x205875),_0x4e6738=new GenerateImagesResponse();return Object[_0x31b114(0x541)](_0x4e6738,_0x4a9104),_0x4e6738;});}}async['editImageInternal'](_0x18987d){const _0x4959c7=a1_0x54af01;var _0x7b87d7,_0x725884;let _0x2c57c2,_0x4bc311='',_0x262838={};if(this[_0x4959c7(0x5bb)][_0x4959c7(0x29b)]()){const _0x50ba0f=editImageParametersInternalToVertex(this[_0x4959c7(0x5bb)],_0x18987d);return _0x4bc311=formatMap(_0x4959c7(0x567),_0x50ba0f[_0x4959c7(0x4e9)]),_0x262838=_0x50ba0f['_query'],delete _0x50ba0f[_0x4959c7(0x4e9)],delete _0x50ba0f[_0x4959c7(0x46e)],_0x2c57c2=this['apiClient'][_0x4959c7(0x44a)]({'path':_0x4bc311,'queryParams':_0x262838,'body':JSON['stringify'](_0x50ba0f),'httpMethod':_0x4959c7(0x43a),'httpOptions':(_0x7b87d7=_0x18987d[_0x4959c7(0x1b0)])===null||_0x7b87d7===void 0x0?void 0x0:_0x7b87d7[_0x4959c7(0x688)],'abortSignal':(_0x725884=_0x18987d['config'])===null||_0x725884===void 0x0?void 0x0:_0x725884[_0x4959c7(0x67c)]})[_0x4959c7(0x28f)](_0x3da300=>{const _0x543470=_0x4959c7;return _0x3da300[_0x543470(0x648)]()[_0x543470(0x28f)](_0xd62335=>{const _0x3b4d04=_0x543470,_0x4ef627=_0xd62335;return _0x4ef627[_0x3b4d04(0x25b)]={'headers':_0x3da300[_0x3b4d04(0x2fa)]},_0x4ef627;});}),_0x2c57c2[_0x4959c7(0x28f)](_0x28bf4a=>{const _0x13281d=_0x4959c7,_0x241789=editImageResponseFromVertex(_0x28bf4a),_0x4e0287=new EditImageResponse();return Object[_0x13281d(0x541)](_0x4e0287,_0x241789),_0x4e0287;});}else throw new Error(_0x4959c7(0x3c2));}async[a1_0x54af01(0x374)](_0x477b21){const _0x154bb5=a1_0x54af01;var _0x5b9953,_0xac2b88;let _0x78d5e,_0x2a36bb='',_0x260979={};if(this[_0x154bb5(0x5bb)][_0x154bb5(0x29b)]()){const _0x18d0d3=upscaleImageAPIParametersInternalToVertex(this['apiClient'],_0x477b21);return _0x2a36bb=formatMap(_0x154bb5(0x567),_0x18d0d3['_url']),_0x260979=_0x18d0d3['_query'],delete _0x18d0d3[_0x154bb5(0x4e9)],delete _0x18d0d3[_0x154bb5(0x46e)],_0x78d5e=this[_0x154bb5(0x5bb)][_0x154bb5(0x44a)]({'path':_0x2a36bb,'queryParams':_0x260979,'body':JSON[_0x154bb5(0x45e)](_0x18d0d3),'httpMethod':_0x154bb5(0x43a),'httpOptions':(_0x5b9953=_0x477b21[_0x154bb5(0x1b0)])===null||_0x5b9953===void 0x0?void 0x0:_0x5b9953[_0x154bb5(0x688)],'abortSignal':(_0xac2b88=_0x477b21['config'])===null||_0xac2b88===void 0x0?void 0x0:_0xac2b88['abortSignal']})['then'](_0x5b8dfa=>{const _0x209969=_0x154bb5;return _0x5b8dfa[_0x209969(0x648)]()[_0x209969(0x28f)](_0x4dd7bd=>{const _0x237704=_0x209969,_0x4d4c30=_0x4dd7bd;return _0x4d4c30[_0x237704(0x25b)]={'headers':_0x5b8dfa['headers']},_0x4d4c30;});}),_0x78d5e[_0x154bb5(0x28f)](_0x2dcd11=>{const _0x13bd0c=_0x154bb5,_0x2e0c99=upscaleImageResponseFromVertex(_0x2dcd11),_0x200e50=new UpscaleImageResponse();return Object[_0x13bd0c(0x541)](_0x200e50,_0x2e0c99),_0x200e50;});}else throw new Error(_0x154bb5(0x3c2));}async[a1_0x54af01(0x456)](_0x4f521c){const _0x3b50a4=a1_0x54af01;var _0x35817d,_0x4859ce;let _0x3c3ab5,_0x438b99='',_0x553fdb={};if(this[_0x3b50a4(0x5bb)]['isVertexAI']()){const _0x45775f=recontextImageParametersToVertex(this[_0x3b50a4(0x5bb)],_0x4f521c);return _0x438b99=formatMap('{model}:predict',_0x45775f[_0x3b50a4(0x4e9)]),_0x553fdb=_0x45775f[_0x3b50a4(0x46e)],delete _0x45775f[_0x3b50a4(0x4e9)],delete _0x45775f[_0x3b50a4(0x46e)],_0x3c3ab5=this['apiClient'][_0x3b50a4(0x44a)]({'path':_0x438b99,'queryParams':_0x553fdb,'body':JSON[_0x3b50a4(0x45e)](_0x45775f),'httpMethod':'POST','httpOptions':(_0x35817d=_0x4f521c[_0x3b50a4(0x1b0)])===null||_0x35817d===void 0x0?void 0x0:_0x35817d[_0x3b50a4(0x688)],'abortSignal':(_0x4859ce=_0x4f521c[_0x3b50a4(0x1b0)])===null||_0x4859ce===void 0x0?void 0x0:_0x4859ce[_0x3b50a4(0x67c)]})[_0x3b50a4(0x28f)](_0x467259=>{return _0x467259['json']();}),_0x3c3ab5[_0x3b50a4(0x28f)](_0x17044a=>{const _0x3b2876=_0x3b50a4,_0x1507b2=recontextImageResponseFromVertex(_0x17044a),_0x4e4d28=new RecontextImageResponse();return Object[_0x3b2876(0x541)](_0x4e4d28,_0x1507b2),_0x4e4d28;});}else throw new Error(_0x3b50a4(0x3c2));}async[a1_0x54af01(0x29f)](_0x38a38b){const _0x1dcece=a1_0x54af01;var _0x2cdcc7,_0xf08db6;let _0x332e88,_0x36e507='',_0x3b0259={};if(this[_0x1dcece(0x5bb)][_0x1dcece(0x29b)]()){const _0x3dd2ec=segmentImageParametersToVertex(this[_0x1dcece(0x5bb)],_0x38a38b);return _0x36e507=formatMap(_0x1dcece(0x567),_0x3dd2ec[_0x1dcece(0x4e9)]),_0x3b0259=_0x3dd2ec[_0x1dcece(0x46e)],delete _0x3dd2ec[_0x1dcece(0x4e9)],delete _0x3dd2ec[_0x1dcece(0x46e)],_0x332e88=this[_0x1dcece(0x5bb)][_0x1dcece(0x44a)]({'path':_0x36e507,'queryParams':_0x3b0259,'body':JSON[_0x1dcece(0x45e)](_0x3dd2ec),'httpMethod':'POST','httpOptions':(_0x2cdcc7=_0x38a38b['config'])===null||_0x2cdcc7===void 0x0?void 0x0:_0x2cdcc7[_0x1dcece(0x688)],'abortSignal':(_0xf08db6=_0x38a38b[_0x1dcece(0x1b0)])===null||_0xf08db6===void 0x0?void 0x0:_0xf08db6[_0x1dcece(0x67c)]})[_0x1dcece(0x28f)](_0x1dc289=>{const _0x14ea2f=_0x1dcece;return _0x1dc289[_0x14ea2f(0x648)]();}),_0x332e88['then'](_0x45e60a=>{const _0x28fbf8=_0x1dcece,_0x2f3c25=segmentImageResponseFromVertex(_0x45e60a),_0x22af17=new SegmentImageResponse();return Object[_0x28fbf8(0x541)](_0x22af17,_0x2f3c25),_0x22af17;});}else throw new Error(_0x1dcece(0x3c2));}async['get'](_0x320020){const _0x388768=a1_0x54af01;var _0x39cdbc,_0x1b2417,_0x298723,_0x2b14e7;let _0x15f568,_0x50f2cc='',_0x41376c={};if(this[_0x388768(0x5bb)][_0x388768(0x29b)]()){const _0x544e75=getModelParametersToVertex(this[_0x388768(0x5bb)],_0x320020);return _0x50f2cc=formatMap(_0x388768(0x1c9),_0x544e75['_url']),_0x41376c=_0x544e75[_0x388768(0x46e)],delete _0x544e75[_0x388768(0x4e9)],delete _0x544e75[_0x388768(0x46e)],_0x15f568=this[_0x388768(0x5bb)][_0x388768(0x44a)]({'path':_0x50f2cc,'queryParams':_0x41376c,'body':JSON[_0x388768(0x45e)](_0x544e75),'httpMethod':_0x388768(0x1f7),'httpOptions':(_0x39cdbc=_0x320020[_0x388768(0x1b0)])===null||_0x39cdbc===void 0x0?void 0x0:_0x39cdbc[_0x388768(0x688)],'abortSignal':(_0x1b2417=_0x320020[_0x388768(0x1b0)])===null||_0x1b2417===void 0x0?void 0x0:_0x1b2417[_0x388768(0x67c)]})['then'](_0x299469=>{const _0x59fc00=_0x388768;return _0x299469[_0x59fc00(0x648)]();}),_0x15f568[_0x388768(0x28f)](_0x152ad6=>{const _0x33ffe0=modelFromVertex(_0x152ad6);return _0x33ffe0;});}else{const _0x550ac2=getModelParametersToMldev(this[_0x388768(0x5bb)],_0x320020);return _0x50f2cc=formatMap(_0x388768(0x1c9),_0x550ac2[_0x388768(0x4e9)]),_0x41376c=_0x550ac2[_0x388768(0x46e)],delete _0x550ac2[_0x388768(0x4e9)],delete _0x550ac2[_0x388768(0x46e)],_0x15f568=this[_0x388768(0x5bb)][_0x388768(0x44a)]({'path':_0x50f2cc,'queryParams':_0x41376c,'body':JSON[_0x388768(0x45e)](_0x550ac2),'httpMethod':_0x388768(0x1f7),'httpOptions':(_0x298723=_0x320020[_0x388768(0x1b0)])===null||_0x298723===void 0x0?void 0x0:_0x298723[_0x388768(0x688)],'abortSignal':(_0x2b14e7=_0x320020[_0x388768(0x1b0)])===null||_0x2b14e7===void 0x0?void 0x0:_0x2b14e7[_0x388768(0x67c)]})[_0x388768(0x28f)](_0x37da83=>{return _0x37da83['json']();}),_0x15f568[_0x388768(0x28f)](_0x50f4e0=>{const _0x5bf4e5=modelFromMldev(_0x50f4e0);return _0x5bf4e5;});}}async[a1_0x54af01(0x62c)](_0x545ca4){const _0x47c585=a1_0x54af01;var _0x293f5b,_0x1f5106,_0x423eb9,_0x70a785;let _0x4d162d,_0x372487='',_0xaf2676={};if(this[_0x47c585(0x5bb)][_0x47c585(0x29b)]()){const _0x28067b=listModelsParametersToVertex(this[_0x47c585(0x5bb)],_0x545ca4);return _0x372487=formatMap(_0x47c585(0x3d0),_0x28067b[_0x47c585(0x4e9)]),_0xaf2676=_0x28067b[_0x47c585(0x46e)],delete _0x28067b[_0x47c585(0x4e9)],delete _0x28067b[_0x47c585(0x46e)],_0x4d162d=this[_0x47c585(0x5bb)][_0x47c585(0x44a)]({'path':_0x372487,'queryParams':_0xaf2676,'body':JSON[_0x47c585(0x45e)](_0x28067b),'httpMethod':_0x47c585(0x1f7),'httpOptions':(_0x293f5b=_0x545ca4[_0x47c585(0x1b0)])===null||_0x293f5b===void 0x0?void 0x0:_0x293f5b[_0x47c585(0x688)],'abortSignal':(_0x1f5106=_0x545ca4[_0x47c585(0x1b0)])===null||_0x1f5106===void 0x0?void 0x0:_0x1f5106[_0x47c585(0x67c)]})[_0x47c585(0x28f)](_0x1f098c=>{const _0x265e35=_0x47c585;return _0x1f098c[_0x265e35(0x648)]()['then'](_0xc982b8=>{const _0x2fa060=_0xc982b8;return _0x2fa060['sdkHttpResponse']={'headers':_0x1f098c['headers']},_0x2fa060;});}),_0x4d162d['then'](_0x352f3d=>{const _0x2f1e0d=_0x47c585,_0x3a91a7=listModelsResponseFromVertex(_0x352f3d),_0x30e376=new ListModelsResponse();return Object[_0x2f1e0d(0x541)](_0x30e376,_0x3a91a7),_0x30e376;});}else{const _0x4f77c0=listModelsParametersToMldev(this['apiClient'],_0x545ca4);return _0x372487=formatMap(_0x47c585(0x3d0),_0x4f77c0['_url']),_0xaf2676=_0x4f77c0[_0x47c585(0x46e)],delete _0x4f77c0[_0x47c585(0x4e9)],delete _0x4f77c0[_0x47c585(0x46e)],_0x4d162d=this['apiClient'][_0x47c585(0x44a)]({'path':_0x372487,'queryParams':_0xaf2676,'body':JSON[_0x47c585(0x45e)](_0x4f77c0),'httpMethod':_0x47c585(0x1f7),'httpOptions':(_0x423eb9=_0x545ca4[_0x47c585(0x1b0)])===null||_0x423eb9===void 0x0?void 0x0:_0x423eb9[_0x47c585(0x688)],'abortSignal':(_0x70a785=_0x545ca4[_0x47c585(0x1b0)])===null||_0x70a785===void 0x0?void 0x0:_0x70a785[_0x47c585(0x67c)]})[_0x47c585(0x28f)](_0x27ac19=>{const _0x48482d=_0x47c585;return _0x27ac19['json']()[_0x48482d(0x28f)](_0x4adc5a=>{const _0x41cdf3=_0x48482d,_0x39bc13=_0x4adc5a;return _0x39bc13[_0x41cdf3(0x25b)]={'headers':_0x27ac19[_0x41cdf3(0x2fa)]},_0x39bc13;});}),_0x4d162d[_0x47c585(0x28f)](_0x4f29c5=>{const _0x253dd6=_0x47c585,_0x2408ee=listModelsResponseFromMldev(_0x4f29c5),_0x32e3cd=new ListModelsResponse();return Object[_0x253dd6(0x541)](_0x32e3cd,_0x2408ee),_0x32e3cd;});}}async[a1_0x54af01(0x59a)](_0x15177f){const _0x2931e8=a1_0x54af01;var _0x3ae590,_0x1cc9de,_0x2d49d1,_0x3fe2be;let _0x5a3532,_0x29ffe6='',_0x181e4c={};if(this[_0x2931e8(0x5bb)]['isVertexAI']()){const _0x41849e=updateModelParametersToVertex(this[_0x2931e8(0x5bb)],_0x15177f);return _0x29ffe6=formatMap(_0x2931e8(0x695),_0x41849e[_0x2931e8(0x4e9)]),_0x181e4c=_0x41849e[_0x2931e8(0x46e)],delete _0x41849e[_0x2931e8(0x4e9)],delete _0x41849e[_0x2931e8(0x46e)],_0x5a3532=this[_0x2931e8(0x5bb)][_0x2931e8(0x44a)]({'path':_0x29ffe6,'queryParams':_0x181e4c,'body':JSON[_0x2931e8(0x45e)](_0x41849e),'httpMethod':_0x2931e8(0x399),'httpOptions':(_0x3ae590=_0x15177f[_0x2931e8(0x1b0)])===null||_0x3ae590===void 0x0?void 0x0:_0x3ae590['httpOptions'],'abortSignal':(_0x1cc9de=_0x15177f[_0x2931e8(0x1b0)])===null||_0x1cc9de===void 0x0?void 0x0:_0x1cc9de[_0x2931e8(0x67c)]})[_0x2931e8(0x28f)](_0x493485=>{const _0x349309=_0x2931e8;return _0x493485[_0x349309(0x648)]();}),_0x5a3532[_0x2931e8(0x28f)](_0x3aab39=>{const _0x318961=modelFromVertex(_0x3aab39);return _0x318961;});}else{const _0xe0d7ef=updateModelParametersToMldev(this[_0x2931e8(0x5bb)],_0x15177f);return _0x29ffe6=formatMap(_0x2931e8(0x1c9),_0xe0d7ef[_0x2931e8(0x4e9)]),_0x181e4c=_0xe0d7ef[_0x2931e8(0x46e)],delete _0xe0d7ef[_0x2931e8(0x4e9)],delete _0xe0d7ef[_0x2931e8(0x46e)],_0x5a3532=this[_0x2931e8(0x5bb)][_0x2931e8(0x44a)]({'path':_0x29ffe6,'queryParams':_0x181e4c,'body':JSON[_0x2931e8(0x45e)](_0xe0d7ef),'httpMethod':'PATCH','httpOptions':(_0x2d49d1=_0x15177f[_0x2931e8(0x1b0)])===null||_0x2d49d1===void 0x0?void 0x0:_0x2d49d1['httpOptions'],'abortSignal':(_0x3fe2be=_0x15177f[_0x2931e8(0x1b0)])===null||_0x3fe2be===void 0x0?void 0x0:_0x3fe2be[_0x2931e8(0x67c)]})[_0x2931e8(0x28f)](_0x5cd942=>{return _0x5cd942['json']();}),_0x5a3532[_0x2931e8(0x28f)](_0x3a149a=>{const _0x2f04dc=modelFromMldev(_0x3a149a);return _0x2f04dc;});}}async[a1_0x54af01(0x2a5)](_0x2c85f6){const _0x32f2c3=a1_0x54af01;var _0x598817,_0x4c6a79,_0x31dc64,_0x3e985a;let _0x42f86b,_0x3d9ebd='',_0x233d7d={};if(this[_0x32f2c3(0x5bb)][_0x32f2c3(0x29b)]()){const _0xaa02ed=deleteModelParametersToVertex(this[_0x32f2c3(0x5bb)],_0x2c85f6);return _0x3d9ebd=formatMap(_0x32f2c3(0x1c9),_0xaa02ed[_0x32f2c3(0x4e9)]),_0x233d7d=_0xaa02ed[_0x32f2c3(0x46e)],delete _0xaa02ed[_0x32f2c3(0x4e9)],delete _0xaa02ed[_0x32f2c3(0x46e)],_0x42f86b=this[_0x32f2c3(0x5bb)][_0x32f2c3(0x44a)]({'path':_0x3d9ebd,'queryParams':_0x233d7d,'body':JSON[_0x32f2c3(0x45e)](_0xaa02ed),'httpMethod':_0x32f2c3(0x5da),'httpOptions':(_0x598817=_0x2c85f6['config'])===null||_0x598817===void 0x0?void 0x0:_0x598817['httpOptions'],'abortSignal':(_0x4c6a79=_0x2c85f6[_0x32f2c3(0x1b0)])===null||_0x4c6a79===void 0x0?void 0x0:_0x4c6a79[_0x32f2c3(0x67c)]})[_0x32f2c3(0x28f)](_0x492363=>{const _0x198ee8=_0x32f2c3;return _0x492363['json']()[_0x198ee8(0x28f)](_0x4787d2=>{const _0x39cc80=_0x198ee8,_0xaa9ada=_0x4787d2;return _0xaa9ada[_0x39cc80(0x25b)]={'headers':_0x492363['headers']},_0xaa9ada;});}),_0x42f86b[_0x32f2c3(0x28f)](_0x1edb62=>{const _0xa95b36=deleteModelResponseFromVertex(_0x1edb62),_0x2f7bf5=new DeleteModelResponse();return Object['assign'](_0x2f7bf5,_0xa95b36),_0x2f7bf5;});}else{const _0x47d7a6=deleteModelParametersToMldev(this[_0x32f2c3(0x5bb)],_0x2c85f6);return _0x3d9ebd=formatMap(_0x32f2c3(0x1c9),_0x47d7a6[_0x32f2c3(0x4e9)]),_0x233d7d=_0x47d7a6[_0x32f2c3(0x46e)],delete _0x47d7a6[_0x32f2c3(0x4e9)],delete _0x47d7a6[_0x32f2c3(0x46e)],_0x42f86b=this[_0x32f2c3(0x5bb)][_0x32f2c3(0x44a)]({'path':_0x3d9ebd,'queryParams':_0x233d7d,'body':JSON['stringify'](_0x47d7a6),'httpMethod':_0x32f2c3(0x5da),'httpOptions':(_0x31dc64=_0x2c85f6[_0x32f2c3(0x1b0)])===null||_0x31dc64===void 0x0?void 0x0:_0x31dc64[_0x32f2c3(0x688)],'abortSignal':(_0x3e985a=_0x2c85f6['config'])===null||_0x3e985a===void 0x0?void 0x0:_0x3e985a[_0x32f2c3(0x67c)]})[_0x32f2c3(0x28f)](_0x4590d1=>{const _0xe08dec=_0x32f2c3;return _0x4590d1['json']()[_0xe08dec(0x28f)](_0x663a21=>{const _0x346ff8=_0xe08dec,_0x40b96d=_0x663a21;return _0x40b96d[_0x346ff8(0x25b)]={'headers':_0x4590d1[_0x346ff8(0x2fa)]},_0x40b96d;});}),_0x42f86b[_0x32f2c3(0x28f)](_0x1333ce=>{const _0xe321ce=deleteModelResponseFromMldev(_0x1333ce),_0x5ccfcc=new DeleteModelResponse();return Object['assign'](_0x5ccfcc,_0xe321ce),_0x5ccfcc;});}}async[a1_0x54af01(0x4f6)](_0x9de9cf){const _0x52898d=a1_0x54af01;var _0x299208,_0x3395fd,_0xeadf5f,_0x4e5411;let _0x1c14fd,_0x5dd3c9='',_0xf482a1={};if(this[_0x52898d(0x5bb)][_0x52898d(0x29b)]()){const _0x138b39=countTokensParametersToVertex(this[_0x52898d(0x5bb)],_0x9de9cf);return _0x5dd3c9=formatMap(_0x52898d(0x5ab),_0x138b39[_0x52898d(0x4e9)]),_0xf482a1=_0x138b39['_query'],delete _0x138b39[_0x52898d(0x4e9)],delete _0x138b39['_query'],_0x1c14fd=this[_0x52898d(0x5bb)][_0x52898d(0x44a)]({'path':_0x5dd3c9,'queryParams':_0xf482a1,'body':JSON[_0x52898d(0x45e)](_0x138b39),'httpMethod':'POST','httpOptions':(_0x299208=_0x9de9cf[_0x52898d(0x1b0)])===null||_0x299208===void 0x0?void 0x0:_0x299208[_0x52898d(0x688)],'abortSignal':(_0x3395fd=_0x9de9cf[_0x52898d(0x1b0)])===null||_0x3395fd===void 0x0?void 0x0:_0x3395fd['abortSignal']})['then'](_0x841a83=>{const _0x367015=_0x52898d;return _0x841a83['json']()[_0x367015(0x28f)](_0xa901c4=>{const _0x256841=_0x367015,_0x2d690a=_0xa901c4;return _0x2d690a[_0x256841(0x25b)]={'headers':_0x841a83[_0x256841(0x2fa)]},_0x2d690a;});}),_0x1c14fd[_0x52898d(0x28f)](_0x332f8f=>{const _0x360136=_0x52898d,_0x149425=countTokensResponseFromVertex(_0x332f8f),_0xc5a21d=new CountTokensResponse();return Object[_0x360136(0x541)](_0xc5a21d,_0x149425),_0xc5a21d;});}else{const _0x2e8d33=countTokensParametersToMldev(this[_0x52898d(0x5bb)],_0x9de9cf);return _0x5dd3c9=formatMap(_0x52898d(0x5ab),_0x2e8d33[_0x52898d(0x4e9)]),_0xf482a1=_0x2e8d33[_0x52898d(0x46e)],delete _0x2e8d33[_0x52898d(0x4e9)],delete _0x2e8d33[_0x52898d(0x46e)],_0x1c14fd=this[_0x52898d(0x5bb)][_0x52898d(0x44a)]({'path':_0x5dd3c9,'queryParams':_0xf482a1,'body':JSON[_0x52898d(0x45e)](_0x2e8d33),'httpMethod':_0x52898d(0x43a),'httpOptions':(_0xeadf5f=_0x9de9cf[_0x52898d(0x1b0)])===null||_0xeadf5f===void 0x0?void 0x0:_0xeadf5f[_0x52898d(0x688)],'abortSignal':(_0x4e5411=_0x9de9cf[_0x52898d(0x1b0)])===null||_0x4e5411===void 0x0?void 0x0:_0x4e5411[_0x52898d(0x67c)]})['then'](_0x467c73=>{const _0x199476=_0x52898d;return _0x467c73['json']()[_0x199476(0x28f)](_0x21cb39=>{const _0x499e5d=_0x199476,_0x4180c0=_0x21cb39;return _0x4180c0[_0x499e5d(0x25b)]={'headers':_0x467c73[_0x499e5d(0x2fa)]},_0x4180c0;});}),_0x1c14fd['then'](_0x5d741a=>{const _0x1c5804=_0x52898d,_0x2d4522=countTokensResponseFromMldev(_0x5d741a),_0x519d8e=new CountTokensResponse();return Object[_0x1c5804(0x541)](_0x519d8e,_0x2d4522),_0x519d8e;});}}async[a1_0x54af01(0x5ef)](_0x2ad1fc){const _0x2ca2a4=a1_0x54af01;var _0x51ed8e,_0x53442f;let _0x4b7225,_0x2b6a19='',_0x45885f={};if(this[_0x2ca2a4(0x5bb)][_0x2ca2a4(0x29b)]()){const _0x3446d4=computeTokensParametersToVertex(this[_0x2ca2a4(0x5bb)],_0x2ad1fc);return _0x2b6a19=formatMap('{model}:computeTokens',_0x3446d4[_0x2ca2a4(0x4e9)]),_0x45885f=_0x3446d4[_0x2ca2a4(0x46e)],delete _0x3446d4[_0x2ca2a4(0x4e9)],delete _0x3446d4['_query'],_0x4b7225=this[_0x2ca2a4(0x5bb)][_0x2ca2a4(0x44a)]({'path':_0x2b6a19,'queryParams':_0x45885f,'body':JSON[_0x2ca2a4(0x45e)](_0x3446d4),'httpMethod':_0x2ca2a4(0x43a),'httpOptions':(_0x51ed8e=_0x2ad1fc[_0x2ca2a4(0x1b0)])===null||_0x51ed8e===void 0x0?void 0x0:_0x51ed8e[_0x2ca2a4(0x688)],'abortSignal':(_0x53442f=_0x2ad1fc[_0x2ca2a4(0x1b0)])===null||_0x53442f===void 0x0?void 0x0:_0x53442f[_0x2ca2a4(0x67c)]})[_0x2ca2a4(0x28f)](_0x2b6bd4=>{return _0x2b6bd4['json']()['then'](_0x3d86e5=>{const _0xba5aa5=a1_0x2f78,_0x127314=_0x3d86e5;return _0x127314[_0xba5aa5(0x25b)]={'headers':_0x2b6bd4['headers']},_0x127314;});}),_0x4b7225[_0x2ca2a4(0x28f)](_0x3562ba=>{const _0xa1c6df=_0x2ca2a4,_0x249df3=computeTokensResponseFromVertex(_0x3562ba),_0x2f4dd7=new ComputeTokensResponse();return Object[_0xa1c6df(0x541)](_0x2f4dd7,_0x249df3),_0x2f4dd7;});}else throw new Error(_0x2ca2a4(0x3c2));}async[a1_0x54af01(0x1e5)](_0x5bfd74){const _0x46f57f=a1_0x54af01;var _0x4c0df9,_0x1f5b7f,_0x384047,_0x5eb4cf;let _0x46795a,_0x490a9d='',_0x5539e3={};if(this['apiClient'][_0x46f57f(0x29b)]()){const _0x44274c=generateVideosParametersToVertex(this[_0x46f57f(0x5bb)],_0x5bfd74);return _0x490a9d=formatMap(_0x46f57f(0x476),_0x44274c[_0x46f57f(0x4e9)]),_0x5539e3=_0x44274c['_query'],delete _0x44274c['_url'],delete _0x44274c['_query'],_0x46795a=this[_0x46f57f(0x5bb)][_0x46f57f(0x44a)]({'path':_0x490a9d,'queryParams':_0x5539e3,'body':JSON['stringify'](_0x44274c),'httpMethod':'POST','httpOptions':(_0x4c0df9=_0x5bfd74['config'])===null||_0x4c0df9===void 0x0?void 0x0:_0x4c0df9[_0x46f57f(0x688)],'abortSignal':(_0x1f5b7f=_0x5bfd74['config'])===null||_0x1f5b7f===void 0x0?void 0x0:_0x1f5b7f[_0x46f57f(0x67c)]})[_0x46f57f(0x28f)](_0x46e7a0=>{const _0x5954b6=_0x46f57f;return _0x46e7a0[_0x5954b6(0x648)]();}),_0x46795a[_0x46f57f(0x28f)](_0x51d1cc=>{const _0x344088=_0x46f57f,_0x2573f9=generateVideosOperationFromVertex(_0x51d1cc),_0x5327de=new GenerateVideosOperation();return Object[_0x344088(0x541)](_0x5327de,_0x2573f9),_0x5327de;});}else{const _0x4045a3=generateVideosParametersToMldev(this[_0x46f57f(0x5bb)],_0x5bfd74);return _0x490a9d=formatMap(_0x46f57f(0x476),_0x4045a3['_url']),_0x5539e3=_0x4045a3[_0x46f57f(0x46e)],delete _0x4045a3[_0x46f57f(0x4e9)],delete _0x4045a3['_query'],_0x46795a=this[_0x46f57f(0x5bb)]['request']({'path':_0x490a9d,'queryParams':_0x5539e3,'body':JSON[_0x46f57f(0x45e)](_0x4045a3),'httpMethod':'POST','httpOptions':(_0x384047=_0x5bfd74[_0x46f57f(0x1b0)])===null||_0x384047===void 0x0?void 0x0:_0x384047['httpOptions'],'abortSignal':(_0x5eb4cf=_0x5bfd74[_0x46f57f(0x1b0)])===null||_0x5eb4cf===void 0x0?void 0x0:_0x5eb4cf[_0x46f57f(0x67c)]})[_0x46f57f(0x28f)](_0x1e4439=>{const _0x1be8da=_0x46f57f;return _0x1e4439[_0x1be8da(0x648)]();}),_0x46795a[_0x46f57f(0x28f)](_0x5746f4=>{const _0x4d7681=_0x46f57f,_0x3192b9=generateVideosOperationFromMldev(_0x5746f4),_0x2f9294=new GenerateVideosOperation();return Object[_0x4d7681(0x541)](_0x2f9294,_0x3192b9),_0x2f9294;});}}}/**
242
+ * @license
243
+ * Copyright 2025 Google LLC
244
+ * SPDX-License-Identifier: Apache-2.0
245
+ */
246
+ class Operations extends BaseModule{constructor(_0x5911d6){const _0x5350f4=a1_0x54af01;super(),this[_0x5350f4(0x5bb)]=_0x5911d6;}async[a1_0x54af01(0x41c)](_0x22e91a){const _0x520e9c=a1_0x54af01,_0x319a4a=_0x22e91a[_0x520e9c(0x3a2)],_0x2239c7=_0x22e91a[_0x520e9c(0x1b0)];if(_0x319a4a[_0x520e9c(0x24b)]===undefined||_0x319a4a[_0x520e9c(0x24b)]==='')throw new Error(_0x520e9c(0x3d5));if(this[_0x520e9c(0x5bb)]['isVertexAI']()){const _0x4d68ba=_0x319a4a[_0x520e9c(0x24b)][_0x520e9c(0x22a)]('/operations/')[0x0];let _0x54a047=undefined;_0x2239c7&&_0x520e9c(0x688)in _0x2239c7&&(_0x54a047=_0x2239c7['httpOptions']);const _0x33c285=await this[_0x520e9c(0x57c)]({'operationName':_0x319a4a[_0x520e9c(0x24b)],'resourceName':_0x4d68ba,'config':{'httpOptions':_0x54a047}});return _0x319a4a['_fromAPIResponse']({'apiResponse':_0x33c285,'_isVertexAI':!![]});}else{const _0x1b32a=await this[_0x520e9c(0x363)]({'operationName':_0x319a4a['name'],'config':_0x2239c7});return _0x319a4a[_0x520e9c(0x666)]({'apiResponse':_0x1b32a,'_isVertexAI':![]});}}async[a1_0x54af01(0x5a2)](_0x575341){const _0x5f1d53=a1_0x54af01,_0x1d0b79=_0x575341['operation'],_0x9034a9=_0x575341['config'];if(_0x1d0b79[_0x5f1d53(0x24b)]===undefined||_0x1d0b79[_0x5f1d53(0x24b)]==='')throw new Error(_0x5f1d53(0x3d5));if(this[_0x5f1d53(0x5bb)][_0x5f1d53(0x29b)]()){const _0x251824=_0x1d0b79[_0x5f1d53(0x24b)]['split'](_0x5f1d53(0x1a1))[0x0];let _0x45e371=undefined;_0x9034a9&&'httpOptions'in _0x9034a9&&(_0x45e371=_0x9034a9[_0x5f1d53(0x688)]);const _0x2b6bc4=await this[_0x5f1d53(0x57c)]({'operationName':_0x1d0b79[_0x5f1d53(0x24b)],'resourceName':_0x251824,'config':{'httpOptions':_0x45e371}});return _0x1d0b79['_fromAPIResponse']({'apiResponse':_0x2b6bc4,'_isVertexAI':!![]});}else{const _0x714daa=await this[_0x5f1d53(0x363)]({'operationName':_0x1d0b79[_0x5f1d53(0x24b)],'config':_0x9034a9});return _0x1d0b79[_0x5f1d53(0x666)]({'apiResponse':_0x714daa,'_isVertexAI':![]});}}async[a1_0x54af01(0x363)](_0x46cf02){const _0x236652=a1_0x54af01;var _0x3a80f3,_0x1c8521,_0x363331,_0x375aa4;let _0x4af7cc,_0x304354='',_0x2da99a={};if(this[_0x236652(0x5bb)][_0x236652(0x29b)]()){const _0x589145=getOperationParametersToVertex(_0x46cf02);return _0x304354=formatMap(_0x236652(0x627),_0x589145['_url']),_0x2da99a=_0x589145[_0x236652(0x46e)],delete _0x589145[_0x236652(0x4e9)],delete _0x589145[_0x236652(0x46e)],_0x4af7cc=this[_0x236652(0x5bb)][_0x236652(0x44a)]({'path':_0x304354,'queryParams':_0x2da99a,'body':JSON[_0x236652(0x45e)](_0x589145),'httpMethod':_0x236652(0x1f7),'httpOptions':(_0x3a80f3=_0x46cf02[_0x236652(0x1b0)])===null||_0x3a80f3===void 0x0?void 0x0:_0x3a80f3[_0x236652(0x688)],'abortSignal':(_0x1c8521=_0x46cf02[_0x236652(0x1b0)])===null||_0x1c8521===void 0x0?void 0x0:_0x1c8521['abortSignal']})[_0x236652(0x28f)](_0x4acb75=>{const _0x3f430a=_0x236652;return _0x4acb75[_0x3f430a(0x648)]();}),_0x4af7cc;}else{const _0x4d5048=getOperationParametersToMldev(_0x46cf02);return _0x304354=formatMap(_0x236652(0x627),_0x4d5048[_0x236652(0x4e9)]),_0x2da99a=_0x4d5048[_0x236652(0x46e)],delete _0x4d5048[_0x236652(0x4e9)],delete _0x4d5048[_0x236652(0x46e)],_0x4af7cc=this[_0x236652(0x5bb)][_0x236652(0x44a)]({'path':_0x304354,'queryParams':_0x2da99a,'body':JSON[_0x236652(0x45e)](_0x4d5048),'httpMethod':_0x236652(0x1f7),'httpOptions':(_0x363331=_0x46cf02[_0x236652(0x1b0)])===null||_0x363331===void 0x0?void 0x0:_0x363331[_0x236652(0x688)],'abortSignal':(_0x375aa4=_0x46cf02[_0x236652(0x1b0)])===null||_0x375aa4===void 0x0?void 0x0:_0x375aa4[_0x236652(0x67c)]})[_0x236652(0x28f)](_0x4b324c=>{const _0x8ca2d8=_0x236652;return _0x4b324c[_0x8ca2d8(0x648)]();}),_0x4af7cc;}}async[a1_0x54af01(0x57c)](_0x1d9d15){const _0x230ba9=a1_0x54af01;var _0x30ae87,_0xb4100b;let _0x105206,_0x1818ca='',_0x1b0c16={};if(this['apiClient'][_0x230ba9(0x29b)]()){const _0x458412=fetchPredictOperationParametersToVertex(_0x1d9d15);return _0x1818ca=formatMap(_0x230ba9(0x690),_0x458412[_0x230ba9(0x4e9)]),_0x1b0c16=_0x458412[_0x230ba9(0x46e)],delete _0x458412[_0x230ba9(0x4e9)],delete _0x458412[_0x230ba9(0x46e)],_0x105206=this[_0x230ba9(0x5bb)][_0x230ba9(0x44a)]({'path':_0x1818ca,'queryParams':_0x1b0c16,'body':JSON['stringify'](_0x458412),'httpMethod':_0x230ba9(0x43a),'httpOptions':(_0x30ae87=_0x1d9d15[_0x230ba9(0x1b0)])===null||_0x30ae87===void 0x0?void 0x0:_0x30ae87[_0x230ba9(0x688)],'abortSignal':(_0xb4100b=_0x1d9d15[_0x230ba9(0x1b0)])===null||_0xb4100b===void 0x0?void 0x0:_0xb4100b[_0x230ba9(0x67c)]})[_0x230ba9(0x28f)](_0x44bc85=>{const _0x1f35ac=_0x230ba9;return _0x44bc85[_0x1f35ac(0x648)]();}),_0x105206;}else throw new Error(_0x230ba9(0x3c2));}}/**
247
+ * @license
248
+ * Copyright 2025 Google LLC
249
+ * SPDX-License-Identifier: Apache-2.0
250
+ */
251
+ function blobToMldev(_0x38dc7c){const _0x18371d=a1_0x54af01,_0xd82b0b={},_0x1d589b=getValueByPath(_0x38dc7c,[_0x18371d(0x354)]);_0x1d589b!=null&&setValueByPath(_0xd82b0b,[_0x18371d(0x354)],_0x1d589b);if(getValueByPath(_0x38dc7c,[_0x18371d(0x37e)])!==undefined)throw new Error(_0x18371d(0x5d7));const _0x420ddc=getValueByPath(_0x38dc7c,['mimeType']);return _0x420ddc!=null&&setValueByPath(_0xd82b0b,[_0x18371d(0x2cd)],_0x420ddc),_0xd82b0b;}function contentToMldev(_0x156198){const _0x54d8d1=a1_0x54af01,_0x5e77c4={},_0x3d3e67=getValueByPath(_0x156198,['parts']);if(_0x3d3e67!=null){let _0xea1e4e=_0x3d3e67;Array[_0x54d8d1(0x1e2)](_0xea1e4e)&&(_0xea1e4e=_0xea1e4e[_0x54d8d1(0x261)](_0x375f69=>{return partToMldev(_0x375f69);})),setValueByPath(_0x5e77c4,[_0x54d8d1(0x4f7)],_0xea1e4e);}const _0x5a2c7b=getValueByPath(_0x156198,[_0x54d8d1(0x61a)]);return _0x5a2c7b!=null&&setValueByPath(_0x5e77c4,[_0x54d8d1(0x61a)],_0x5a2c7b),_0x5e77c4;}function createAuthTokenConfigToMldev(_0x547020,_0x43ba30,_0x13ac0c){const _0x460889=a1_0x54af01,_0x1f8039={},_0x349acf=getValueByPath(_0x43ba30,['expireTime']);_0x13ac0c!==undefined&&_0x349acf!=null&&setValueByPath(_0x13ac0c,[_0x460889(0x25e)],_0x349acf);const _0x1abe04=getValueByPath(_0x43ba30,[_0x460889(0x199)]);_0x13ac0c!==undefined&&_0x1abe04!=null&&setValueByPath(_0x13ac0c,[_0x460889(0x199)],_0x1abe04);const _0x2b237e=getValueByPath(_0x43ba30,[_0x460889(0x2fc)]);_0x13ac0c!==undefined&&_0x2b237e!=null&&setValueByPath(_0x13ac0c,[_0x460889(0x2fc)],_0x2b237e);const _0x488d89=getValueByPath(_0x43ba30,[_0x460889(0x4b6)]);_0x13ac0c!==undefined&&_0x488d89!=null&&setValueByPath(_0x13ac0c,[_0x460889(0x3c6)],liveConnectConstraintsToMldev(_0x547020,_0x488d89));const _0x30d6f0=getValueByPath(_0x43ba30,[_0x460889(0x233)]);return _0x13ac0c!==undefined&&_0x30d6f0!=null&&setValueByPath(_0x13ac0c,[_0x460889(0x392)],_0x30d6f0),_0x1f8039;}function createAuthTokenParametersToMldev(_0x664809,_0x3c57d3){const _0xaae33a=a1_0x54af01,_0xf0791d={},_0x244245=getValueByPath(_0x3c57d3,[_0xaae33a(0x1b0)]);return _0x244245!=null&&setValueByPath(_0xf0791d,[_0xaae33a(0x1b0)],createAuthTokenConfigToMldev(_0x664809,_0x244245,_0xf0791d)),_0xf0791d;}function fileDataToMldev(_0x3dce77){const _0x5dddd2=a1_0x54af01,_0xb79161={};if(getValueByPath(_0x3dce77,[_0x5dddd2(0x37e)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x1c55f5=getValueByPath(_0x3dce77,[_0x5dddd2(0x64b)]);_0x1c55f5!=null&&setValueByPath(_0xb79161,[_0x5dddd2(0x64b)],_0x1c55f5);const _0x12f262=getValueByPath(_0x3dce77,[_0x5dddd2(0x2cd)]);return _0x12f262!=null&&setValueByPath(_0xb79161,[_0x5dddd2(0x2cd)],_0x12f262),_0xb79161;}function functionCallToMldev(_0x97af6f){const _0x1208da=a1_0x54af01,_0x3d8c36={},_0x4daaf3=getValueByPath(_0x97af6f,['id']);_0x4daaf3!=null&&setValueByPath(_0x3d8c36,['id'],_0x4daaf3);const _0x2aa5ba=getValueByPath(_0x97af6f,[_0x1208da(0x411)]);_0x2aa5ba!=null&&setValueByPath(_0x3d8c36,[_0x1208da(0x411)],_0x2aa5ba);const _0x198aba=getValueByPath(_0x97af6f,['name']);_0x198aba!=null&&setValueByPath(_0x3d8c36,['name'],_0x198aba);if(getValueByPath(_0x97af6f,[_0x1208da(0x5f4)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x97af6f,['willContinue'])!==undefined)throw new Error(_0x1208da(0x2ae));return _0x3d8c36;}function googleMapsToMldev(_0x403946){const _0x6b27e0=a1_0x54af01,_0x488c4a={};if(getValueByPath(_0x403946,['authConfig'])!==undefined)throw new Error(_0x6b27e0(0x590));const _0x19277e=getValueByPath(_0x403946,[_0x6b27e0(0x63d)]);return _0x19277e!=null&&setValueByPath(_0x488c4a,['enableWidget'],_0x19277e),_0x488c4a;}function googleSearchToMldev(_0x1df3fe){const _0x33cb10=a1_0x54af01,_0x221331={};if(getValueByPath(_0x1df3fe,[_0x33cb10(0x1e1)])!==undefined)throw new Error(_0x33cb10(0x4a8));if(getValueByPath(_0x1df3fe,[_0x33cb10(0x653)])!==undefined)throw new Error(_0x33cb10(0x614));const _0x3d58c2=getValueByPath(_0x1df3fe,[_0x33cb10(0x446)]);return _0x3d58c2!=null&&setValueByPath(_0x221331,[_0x33cb10(0x446)],_0x3d58c2),_0x221331;}function liveConnectConfigToMldev(_0x2e1cd6,_0x17e05e){const _0xd3dc8d=a1_0x54af01,_0x5ea025={},_0x51e236=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x42a)]);_0x17e05e!==undefined&&_0x51e236!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a)],_0x51e236);const _0xf33761=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x282)]);_0x17e05e!==undefined&&_0xf33761!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),_0xd3dc8d(0x282)],_0xf33761);const _0x215eeb=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x5ba)]);_0x17e05e!==undefined&&_0x215eeb!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),_0xd3dc8d(0x5ba)],_0x215eeb);const _0x11304d=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x200)]);_0x17e05e!==undefined&&_0x11304d!=null&&setValueByPath(_0x17e05e,['setup','generationConfig','topP'],_0x11304d);const _0x4d3f1b=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x431)]);_0x17e05e!==undefined&&_0x4d3f1b!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),_0xd3dc8d(0x431)],_0x4d3f1b);const _0x1245b7=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x416)]);_0x17e05e!==undefined&&_0x1245b7!=null&&setValueByPath(_0x17e05e,['setup','generationConfig','maxOutputTokens'],_0x1245b7);const _0x473f62=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x5e8)]);_0x17e05e!==undefined&&_0x473f62!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),'mediaResolution'],_0x473f62);const _0x3dd2fd=getValueByPath(_0x2e1cd6,['seed']);_0x17e05e!==undefined&&_0x3dd2fd!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),'seed'],_0x3dd2fd);const _0x5a32e5=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x63c)]);_0x17e05e!==undefined&&_0x5a32e5!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),_0xd3dc8d(0x63c)],tLiveSpeechConfig(_0x5a32e5));const _0x493184=getValueByPath(_0x2e1cd6,['thinkingConfig']);_0x17e05e!==undefined&&_0x493184!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x42a),_0xd3dc8d(0x59d)],_0x493184);const _0x3e0a63=getValueByPath(_0x2e1cd6,['enableAffectiveDialog']);_0x17e05e!==undefined&&_0x3e0a63!=null&&setValueByPath(_0x17e05e,['setup',_0xd3dc8d(0x42a),_0xd3dc8d(0x64c)],_0x3e0a63);const _0x1ec7b6=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x3ea)]);_0x17e05e!==undefined&&_0x1ec7b6!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),'systemInstruction'],contentToMldev(tContent(_0x1ec7b6)));const _0x131a4b=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x458)]);if(_0x17e05e!==undefined&&_0x131a4b!=null){let _0x1afd88=tTools(_0x131a4b);Array[_0xd3dc8d(0x1e2)](_0x1afd88)&&(_0x1afd88=_0x1afd88['map'](_0x521539=>{return toolToMldev(tTool(_0x521539));})),setValueByPath(_0x17e05e,['setup',_0xd3dc8d(0x458)],_0x1afd88);}const _0x3baeed=getValueByPath(_0x2e1cd6,['sessionResumption']);_0x17e05e!==undefined&&_0x3baeed!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x482)],sessionResumptionConfigToMldev(_0x3baeed));const _0x30f9fa=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x4e6)]);_0x17e05e!==undefined&&_0x30f9fa!=null&&setValueByPath(_0x17e05e,['setup',_0xd3dc8d(0x4e6)],_0x30f9fa);const _0x2e02a7=getValueByPath(_0x2e1cd6,['outputAudioTranscription']);_0x17e05e!==undefined&&_0x2e02a7!=null&&setValueByPath(_0x17e05e,['setup','outputAudioTranscription'],_0x2e02a7);const _0x100eec=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x239)]);_0x17e05e!==undefined&&_0x100eec!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),'realtimeInputConfig'],_0x100eec);const _0x2a75be=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x421)]);_0x17e05e!==undefined&&_0x2a75be!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x421)],_0x2a75be);const _0x560a99=getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x2ee)]);_0x17e05e!==undefined&&_0x560a99!=null&&setValueByPath(_0x17e05e,[_0xd3dc8d(0x670),_0xd3dc8d(0x2ee)],_0x560a99);if(getValueByPath(_0x2e1cd6,[_0xd3dc8d(0x369)])!==undefined)throw new Error(_0xd3dc8d(0x581));return _0x5ea025;}function liveConnectConstraintsToMldev(_0x157b36,_0x4bf0bd){const _0x16dcfd=a1_0x54af01,_0x4618d4={},_0x56731c=getValueByPath(_0x4bf0bd,[_0x16dcfd(0x210)]);_0x56731c!=null&&setValueByPath(_0x4618d4,[_0x16dcfd(0x670),_0x16dcfd(0x210)],tModel(_0x157b36,_0x56731c));const _0x5888c6=getValueByPath(_0x4bf0bd,['config']);return _0x5888c6!=null&&setValueByPath(_0x4618d4,[_0x16dcfd(0x1b0)],liveConnectConfigToMldev(_0x5888c6,_0x4618d4)),_0x4618d4;}function partToMldev(_0x4a3c8a){const _0x954c49=a1_0x54af01,_0x58bf3f={},_0x1b1d02=getValueByPath(_0x4a3c8a,['mediaResolution']);_0x1b1d02!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x5e8)],_0x1b1d02);const _0x5a53d9=getValueByPath(_0x4a3c8a,[_0x954c49(0x6c6)]);_0x5a53d9!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x6c6)],_0x5a53d9);const _0x1a0496=getValueByPath(_0x4a3c8a,['executableCode']);_0x1a0496!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x236)],_0x1a0496);const _0xd0f3eb=getValueByPath(_0x4a3c8a,[_0x954c49(0x2e2)]);_0xd0f3eb!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x2e2)],fileDataToMldev(_0xd0f3eb));const _0x1421e4=getValueByPath(_0x4a3c8a,[_0x954c49(0x397)]);_0x1421e4!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x397)],functionCallToMldev(_0x1421e4));const _0x22f4fa=getValueByPath(_0x4a3c8a,[_0x954c49(0x5cb)]);_0x22f4fa!=null&&setValueByPath(_0x58bf3f,['functionResponse'],_0x22f4fa);const _0x4b8e7a=getValueByPath(_0x4a3c8a,[_0x954c49(0x1a4)]);_0x4b8e7a!=null&&setValueByPath(_0x58bf3f,['inlineData'],blobToMldev(_0x4b8e7a));const _0x101fbb=getValueByPath(_0x4a3c8a,['text']);_0x101fbb!=null&&setValueByPath(_0x58bf3f,['text'],_0x101fbb);const _0x4815ca=getValueByPath(_0x4a3c8a,['thought']);_0x4815ca!=null&&setValueByPath(_0x58bf3f,['thought'],_0x4815ca);const _0x3d4aa1=getValueByPath(_0x4a3c8a,[_0x954c49(0x56b)]);_0x3d4aa1!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x56b)],_0x3d4aa1);const _0x3a8677=getValueByPath(_0x4a3c8a,[_0x954c49(0x313)]);return _0x3a8677!=null&&setValueByPath(_0x58bf3f,[_0x954c49(0x313)],_0x3a8677),_0x58bf3f;}function sessionResumptionConfigToMldev(_0x4752df){const _0x3058a9=a1_0x54af01,_0x319f65={},_0x2801e7=getValueByPath(_0x4752df,[_0x3058a9(0x3bd)]);_0x2801e7!=null&&setValueByPath(_0x319f65,[_0x3058a9(0x3bd)],_0x2801e7);if(getValueByPath(_0x4752df,['transparent'])!==undefined)throw new Error(_0x3058a9(0x42f));return _0x319f65;}function toolToMldev(_0x26744e){const _0x253966=a1_0x54af01,_0x4ef3e0={};if(getValueByPath(_0x26744e,[_0x253966(0x223)])!==undefined)throw new Error(_0x253966(0x466));const _0x3f361d=getValueByPath(_0x26744e,[_0x253966(0x318)]);_0x3f361d!=null&&setValueByPath(_0x4ef3e0,[_0x253966(0x318)],_0x3f361d);const _0x70430f=getValueByPath(_0x26744e,[_0x253966(0x68d)]);_0x70430f!=null&&setValueByPath(_0x4ef3e0,[_0x253966(0x68d)],_0x70430f);const _0x485da3=getValueByPath(_0x26744e,[_0x253966(0x352)]);_0x485da3!=null&&setValueByPath(_0x4ef3e0,[_0x253966(0x352)],_0x485da3);if(getValueByPath(_0x26744e,[_0x253966(0x26a)])!==undefined)throw new Error(_0x253966(0x3be));const _0xd4f7a6=getValueByPath(_0x26744e,['functionDeclarations']);if(_0xd4f7a6!=null){let _0x370a6f=_0xd4f7a6;Array[_0x253966(0x1e2)](_0x370a6f)&&(_0x370a6f=_0x370a6f['map'](_0x5162e6=>{return _0x5162e6;})),setValueByPath(_0x4ef3e0,[_0x253966(0x4fa)],_0x370a6f);}const _0x498e92=getValueByPath(_0x26744e,[_0x253966(0x35b)]);_0x498e92!=null&&setValueByPath(_0x4ef3e0,[_0x253966(0x35b)],googleMapsToMldev(_0x498e92));const _0x5ebfc7=getValueByPath(_0x26744e,[_0x253966(0x58c)]);_0x5ebfc7!=null&&setValueByPath(_0x4ef3e0,[_0x253966(0x58c)],googleSearchToMldev(_0x5ebfc7));const _0x543f95=getValueByPath(_0x26744e,['googleSearchRetrieval']);_0x543f95!=null&&setValueByPath(_0x4ef3e0,[_0x253966(0x6a2)],_0x543f95);const _0x4a0a7f=getValueByPath(_0x26744e,[_0x253966(0x642)]);return _0x4a0a7f!=null&&setValueByPath(_0x4ef3e0,['urlContext'],_0x4a0a7f),_0x4ef3e0;}/**
252
+ * @license
253
+ * Copyright 2025 Google LLC
254
+ * SPDX-License-Identifier: Apache-2.0
255
+ */
256
+ function getFieldMasks(_0x2a4de6){const _0x71b878=a1_0x54af01,_0x32f10f=[];for(const _0x22fa59 in _0x2a4de6){if(Object[_0x71b878(0x19a)][_0x71b878(0x662)][_0x71b878(0x182)](_0x2a4de6,_0x22fa59)){const _0x28d527=_0x2a4de6[_0x22fa59];if(typeof _0x28d527==='object'&&_0x28d527!=null&&Object[_0x71b878(0x51c)](_0x28d527)['length']>0x0){const _0xddc8ac=Object[_0x71b878(0x51c)](_0x28d527)[_0x71b878(0x261)](_0x1c52e9=>_0x22fa59+'.'+_0x1c52e9);_0x32f10f[_0x71b878(0x54b)](..._0xddc8ac);}else _0x32f10f[_0x71b878(0x54b)](_0x22fa59);}}return _0x32f10f[_0x71b878(0x1d6)](',');}function convertBidiSetupToTokenSetup(_0x392efd,_0x1b224c){const _0x1eea5e=a1_0x54af01;let _0x5aa5c6=null;const _0x156250=_0x392efd[_0x1eea5e(0x3c6)];if(typeof _0x156250===_0x1eea5e(0x34b)&&_0x156250!==null&&_0x1eea5e(0x670)in _0x156250){const _0x3b20f6=_0x156250['setup'];typeof _0x3b20f6===_0x1eea5e(0x34b)&&_0x3b20f6!==null?(_0x392efd[_0x1eea5e(0x3c6)]=_0x3b20f6,_0x5aa5c6=_0x3b20f6):delete _0x392efd['bidiGenerateContentSetup'];}else _0x156250!==undefined&&delete _0x392efd[_0x1eea5e(0x3c6)];const _0x30c6e4=_0x392efd[_0x1eea5e(0x392)];if(_0x5aa5c6){const _0x40fd9d=getFieldMasks(_0x5aa5c6);if(Array[_0x1eea5e(0x1e2)](_0x1b224c===null||_0x1b224c===void 0x0?void 0x0:_0x1b224c['lockAdditionalFields'])&&(_0x1b224c===null||_0x1b224c===void 0x0?void 0x0:_0x1b224c['lockAdditionalFields'][_0x1eea5e(0x258)])===0x0)_0x40fd9d?_0x392efd['fieldMask']=_0x40fd9d:delete _0x392efd[_0x1eea5e(0x392)];else{if((_0x1b224c===null||_0x1b224c===void 0x0?void 0x0:_0x1b224c[_0x1eea5e(0x233)])&&_0x1b224c['lockAdditionalFields'][_0x1eea5e(0x258)]>0x0&&_0x30c6e4!==null&&Array[_0x1eea5e(0x1e2)](_0x30c6e4)&&_0x30c6e4[_0x1eea5e(0x258)]>0x0){const _0x560440=[_0x1eea5e(0x5ba),'topK',_0x1eea5e(0x200),_0x1eea5e(0x416),_0x1eea5e(0x282),_0x1eea5e(0x444),_0x1eea5e(0x63c)];let _0x3dafcc=[];_0x30c6e4[_0x1eea5e(0x258)]>0x0&&(_0x3dafcc=_0x30c6e4[_0x1eea5e(0x261)](_0x5bf531=>{const _0x18a49f=_0x1eea5e;if(_0x560440[_0x18a49f(0x563)](_0x5bf531))return _0x18a49f(0x6b5)+_0x5bf531;return _0x5bf531;}));const _0xcd8e03=[];_0x40fd9d&&_0xcd8e03['push'](_0x40fd9d),_0x3dafcc[_0x1eea5e(0x258)]>0x0&&_0xcd8e03[_0x1eea5e(0x54b)](..._0x3dafcc),_0xcd8e03[_0x1eea5e(0x258)]>0x0?_0x392efd['fieldMask']=_0xcd8e03[_0x1eea5e(0x1d6)](','):delete _0x392efd[_0x1eea5e(0x392)];}else delete _0x392efd[_0x1eea5e(0x392)];}}else _0x30c6e4!==null&&Array[_0x1eea5e(0x1e2)](_0x30c6e4)&&_0x30c6e4[_0x1eea5e(0x258)]>0x0?_0x392efd[_0x1eea5e(0x392)]=_0x30c6e4[_0x1eea5e(0x1d6)](','):delete _0x392efd[_0x1eea5e(0x392)];return _0x392efd;}class Tokens extends BaseModule{constructor(_0x197bf4){const _0x289d1e=a1_0x54af01;super(),this[_0x289d1e(0x5bb)]=_0x197bf4;}async[a1_0x54af01(0x1af)](_0x13b81e){const _0x50537f=a1_0x54af01;var _0x20c8eb,_0x31873b;let _0x28f595,_0x1f7166='',_0x33f6b5={};if(this['apiClient']['isVertexAI']())throw new Error('The\x20client.tokens.create\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x9dfb78=createAuthTokenParametersToMldev(this[_0x50537f(0x5bb)],_0x13b81e);_0x1f7166=formatMap(_0x50537f(0x654),_0x9dfb78['_url']),_0x33f6b5=_0x9dfb78[_0x50537f(0x46e)],delete _0x9dfb78[_0x50537f(0x1b0)],delete _0x9dfb78['_url'],delete _0x9dfb78[_0x50537f(0x46e)];const _0xed7678=convertBidiSetupToTokenSetup(_0x9dfb78,_0x13b81e['config']);return _0x28f595=this[_0x50537f(0x5bb)][_0x50537f(0x44a)]({'path':_0x1f7166,'queryParams':_0x33f6b5,'body':JSON[_0x50537f(0x45e)](_0xed7678),'httpMethod':_0x50537f(0x43a),'httpOptions':(_0x20c8eb=_0x13b81e[_0x50537f(0x1b0)])===null||_0x20c8eb===void 0x0?void 0x0:_0x20c8eb['httpOptions'],'abortSignal':(_0x31873b=_0x13b81e[_0x50537f(0x1b0)])===null||_0x31873b===void 0x0?void 0x0:_0x31873b['abortSignal']})['then'](_0x5c92cf=>{const _0xa22a88=_0x50537f;return _0x5c92cf[_0xa22a88(0x648)]();}),_0x28f595[_0x50537f(0x28f)](_0x36d570=>{return _0x36d570;});}}}/**
257
+ * @license
258
+ * Copyright 2025 Google LLC
259
+ * SPDX-License-Identifier: Apache-2.0
260
+ */
261
+ function cancelTuningJobParametersToMldev(_0x2fcd69,_0x4711e5){const _0xffa4a8=a1_0x54af01,_0x4d2142={},_0x3b7916=getValueByPath(_0x2fcd69,[_0xffa4a8(0x24b)]);return _0x3b7916!=null&&setValueByPath(_0x4d2142,[_0xffa4a8(0x4e9),_0xffa4a8(0x24b)],_0x3b7916),_0x4d2142;}function cancelTuningJobParametersToVertex(_0xb95ca4,_0x453c58){const _0x4b913c=a1_0x54af01,_0x2eee53={},_0x175c17=getValueByPath(_0xb95ca4,[_0x4b913c(0x24b)]);return _0x175c17!=null&&setValueByPath(_0x2eee53,[_0x4b913c(0x4e9),_0x4b913c(0x24b)],_0x175c17),_0x2eee53;}function cancelTuningJobResponseFromMldev(_0x1dbcbd,_0x28d3e3){const _0x54e84c=a1_0x54af01,_0x526c12={},_0x644ec6=getValueByPath(_0x1dbcbd,['sdkHttpResponse']);return _0x644ec6!=null&&setValueByPath(_0x526c12,[_0x54e84c(0x25b)],_0x644ec6),_0x526c12;}function cancelTuningJobResponseFromVertex(_0x3159db,_0x254182){const _0x3f2b75=a1_0x54af01,_0x51abf5={},_0x41c9ac=getValueByPath(_0x3159db,[_0x3f2b75(0x25b)]);return _0x41c9ac!=null&&setValueByPath(_0x51abf5,[_0x3f2b75(0x25b)],_0x41c9ac),_0x51abf5;}function createTuningJobConfigToMldev(_0x5f44bf,_0x3a313c,_0x36caad){const _0x16588c=a1_0x54af01,_0x5105df={};if(getValueByPath(_0x5f44bf,[_0x16588c(0x2a3)])!==undefined)throw new Error(_0x16588c(0x636));const _0x43bbd7=getValueByPath(_0x5f44bf,['tunedModelDisplayName']);_0x3a313c!==undefined&&_0x43bbd7!=null&&setValueByPath(_0x3a313c,[_0x16588c(0x37e)],_0x43bbd7);if(getValueByPath(_0x5f44bf,[_0x16588c(0x31f)])!==undefined)throw new Error(_0x16588c(0x4aa));const _0x1b154f=getValueByPath(_0x5f44bf,['epochCount']);_0x3a313c!==undefined&&_0x1b154f!=null&&setValueByPath(_0x3a313c,[_0x16588c(0x40b),_0x16588c(0x1db),_0x16588c(0x51f)],_0x1b154f);const _0x356340=getValueByPath(_0x5f44bf,[_0x16588c(0x208)]);_0x356340!=null&&setValueByPath(_0x5105df,[_0x16588c(0x40b),_0x16588c(0x1db),_0x16588c(0x208)],_0x356340);if(getValueByPath(_0x5f44bf,['exportLastCheckpointOnly'])!==undefined)throw new Error(_0x16588c(0x6b0));if(getValueByPath(_0x5f44bf,[_0x16588c(0x4f3)])!==undefined)throw new Error(_0x16588c(0x3b4));if(getValueByPath(_0x5f44bf,[_0x16588c(0x1fe)])!==undefined)throw new Error(_0x16588c(0x2b5));if(getValueByPath(_0x5f44bf,['tuningMode'])!==undefined)throw new Error(_0x16588c(0x3a5));if(getValueByPath(_0x5f44bf,[_0x16588c(0x231)])!==undefined)throw new Error(_0x16588c(0x42e));const _0x5f01c7=getValueByPath(_0x5f44bf,[_0x16588c(0x491)]);_0x3a313c!==undefined&&_0x5f01c7!=null&&setValueByPath(_0x3a313c,[_0x16588c(0x40b),'hyperparameters',_0x16588c(0x491)],_0x5f01c7);const _0x1effd3=getValueByPath(_0x5f44bf,[_0x16588c(0x544)]);_0x3a313c!==undefined&&_0x1effd3!=null&&setValueByPath(_0x3a313c,[_0x16588c(0x40b),_0x16588c(0x1db),_0x16588c(0x544)],_0x1effd3);if(getValueByPath(_0x5f44bf,[_0x16588c(0x540)])!==undefined)throw new Error(_0x16588c(0x53f));if(getValueByPath(_0x5f44bf,[_0x16588c(0x1ae)])!==undefined)throw new Error(_0x16588c(0x425));if(getValueByPath(_0x5f44bf,['baseTeacherModel'])!==undefined)throw new Error(_0x16588c(0x26c));if(getValueByPath(_0x5f44bf,[_0x16588c(0x6b6)])!==undefined)throw new Error(_0x16588c(0x3e0));if(getValueByPath(_0x5f44bf,[_0x16588c(0x566)])!==undefined)throw new Error(_0x16588c(0x43f));if(getValueByPath(_0x5f44bf,['outputUri'])!==undefined)throw new Error(_0x16588c(0x4ae));return _0x5105df;}function createTuningJobConfigToVertex(_0x22114c,_0x321428,_0x5174a2){const _0x51c8bd=a1_0x54af01,_0x2ac5b9={};let _0x2de2ba=getValueByPath(_0x5174a2,['config',_0x51c8bd(0x30d)]);_0x2de2ba===undefined&&(_0x2de2ba='SUPERVISED_FINE_TUNING');if(_0x2de2ba===_0x51c8bd(0x559)){const _0x585146=getValueByPath(_0x22114c,[_0x51c8bd(0x2a3)]);_0x321428!==undefined&&_0x585146!=null&&setValueByPath(_0x321428,['supervisedTuningSpec'],tuningValidationDatasetToVertex(_0x585146));}else{if(_0x2de2ba===_0x51c8bd(0x554)){const _0x341c2a=getValueByPath(_0x22114c,[_0x51c8bd(0x2a3)]);_0x321428!==undefined&&_0x341c2a!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x4e1)],tuningValidationDatasetToVertex(_0x341c2a));}else{if(_0x2de2ba===_0x51c8bd(0x1a2)){const _0x16c769=getValueByPath(_0x22114c,[_0x51c8bd(0x2a3)]);_0x321428!==undefined&&_0x16c769!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x570)],tuningValidationDatasetToVertex(_0x16c769));}}}const _0x17be8c=getValueByPath(_0x22114c,[_0x51c8bd(0x691)]);_0x321428!==undefined&&_0x17be8c!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x691)],_0x17be8c);const _0x201cc9=getValueByPath(_0x22114c,['description']);_0x321428!==undefined&&_0x201cc9!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x31f)],_0x201cc9);let _0x3d71da=getValueByPath(_0x5174a2,[_0x51c8bd(0x1b0),_0x51c8bd(0x30d)]);_0x3d71da===undefined&&(_0x3d71da=_0x51c8bd(0x559));if(_0x3d71da==='SUPERVISED_FINE_TUNING'){const _0x478d1b=getValueByPath(_0x22114c,[_0x51c8bd(0x51f)]);_0x321428!==undefined&&_0x478d1b!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x1fd),_0x51c8bd(0x192),_0x51c8bd(0x51f)],_0x478d1b);}else{if(_0x3d71da===_0x51c8bd(0x554)){const _0x58078e=getValueByPath(_0x22114c,['epochCount']);_0x321428!==undefined&&_0x58078e!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x4e1),_0x51c8bd(0x192),_0x51c8bd(0x51f)],_0x58078e);}else{if(_0x3d71da===_0x51c8bd(0x1a2)){const _0x56df4d=getValueByPath(_0x22114c,[_0x51c8bd(0x51f)]);_0x321428!==undefined&&_0x56df4d!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x570),_0x51c8bd(0x192),_0x51c8bd(0x51f)],_0x56df4d);}}}let _0x23cbe5=getValueByPath(_0x5174a2,[_0x51c8bd(0x1b0),_0x51c8bd(0x30d)]);_0x23cbe5===undefined&&(_0x23cbe5=_0x51c8bd(0x559));if(_0x23cbe5===_0x51c8bd(0x559)){const _0x351977=getValueByPath(_0x22114c,[_0x51c8bd(0x208)]);_0x321428!==undefined&&_0x351977!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x1fd),_0x51c8bd(0x192),_0x51c8bd(0x208)],_0x351977);}else{if(_0x23cbe5==='PREFERENCE_TUNING'){const _0x16e3ee=getValueByPath(_0x22114c,[_0x51c8bd(0x208)]);_0x321428!==undefined&&_0x16e3ee!=null&&setValueByPath(_0x321428,['preferenceOptimizationSpec','hyperParameters',_0x51c8bd(0x208)],_0x16e3ee);}else{if(_0x23cbe5===_0x51c8bd(0x1a2)){const _0x3e4bfd=getValueByPath(_0x22114c,['learningRateMultiplier']);_0x321428!==undefined&&_0x3e4bfd!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x570),_0x51c8bd(0x192),_0x51c8bd(0x208)],_0x3e4bfd);}}}let _0x3bd1cc=getValueByPath(_0x5174a2,[_0x51c8bd(0x1b0),'method']);_0x3bd1cc===undefined&&(_0x3bd1cc=_0x51c8bd(0x559));if(_0x3bd1cc===_0x51c8bd(0x559)){const _0x5ea6e1=getValueByPath(_0x22114c,['exportLastCheckpointOnly']);_0x321428!==undefined&&_0x5ea6e1!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x1fd),'exportLastCheckpointOnly'],_0x5ea6e1);}else{if(_0x3bd1cc===_0x51c8bd(0x554)){const _0x47d141=getValueByPath(_0x22114c,['exportLastCheckpointOnly']);_0x321428!==undefined&&_0x47d141!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x4e1),'exportLastCheckpointOnly'],_0x47d141);}else{if(_0x3bd1cc===_0x51c8bd(0x1a2)){const _0x51fc89=getValueByPath(_0x22114c,['exportLastCheckpointOnly']);_0x321428!==undefined&&_0x51fc89!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x570),_0x51c8bd(0x5b3)],_0x51fc89);}}}let _0x570bf9=getValueByPath(_0x5174a2,[_0x51c8bd(0x1b0),'method']);_0x570bf9===undefined&&(_0x570bf9=_0x51c8bd(0x559));if(_0x570bf9===_0x51c8bd(0x559)){const _0x506018=getValueByPath(_0x22114c,[_0x51c8bd(0x1fe)]);_0x321428!==undefined&&_0x506018!=null&&setValueByPath(_0x321428,['supervisedTuningSpec',_0x51c8bd(0x192),'adapterSize'],_0x506018);}else{if(_0x570bf9==='PREFERENCE_TUNING'){const _0x385302=getValueByPath(_0x22114c,[_0x51c8bd(0x1fe)]);_0x321428!==undefined&&_0x385302!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x4e1),_0x51c8bd(0x192),_0x51c8bd(0x1fe)],_0x385302);}else{if(_0x570bf9==='DISTILLATION'){const _0x41f971=getValueByPath(_0x22114c,[_0x51c8bd(0x1fe)]);_0x321428!==undefined&&_0x41f971!=null&&setValueByPath(_0x321428,['distillationSpec',_0x51c8bd(0x192),_0x51c8bd(0x1fe)],_0x41f971);}}}let _0x47d636=getValueByPath(_0x5174a2,[_0x51c8bd(0x1b0),'method']);_0x47d636===undefined&&(_0x47d636=_0x51c8bd(0x559));if(_0x47d636===_0x51c8bd(0x559)){const _0x33dc91=getValueByPath(_0x22114c,['tuningMode']);_0x321428!==undefined&&_0x33dc91!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x1fd),'tuningMode'],_0x33dc91);}const _0x2c4b29=getValueByPath(_0x22114c,[_0x51c8bd(0x231)]);_0x321428!==undefined&&_0x2c4b29!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x231)],_0x2c4b29);let _0x21e34e=getValueByPath(_0x5174a2,['config','method']);_0x21e34e===undefined&&(_0x21e34e=_0x51c8bd(0x559));if(_0x21e34e===_0x51c8bd(0x559)){const _0x465930=getValueByPath(_0x22114c,[_0x51c8bd(0x491)]);_0x321428!==undefined&&_0x465930!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x1fd),_0x51c8bd(0x192),_0x51c8bd(0x491)],_0x465930);}let _0x3c96c5=getValueByPath(_0x5174a2,[_0x51c8bd(0x1b0),_0x51c8bd(0x30d)]);_0x3c96c5===undefined&&(_0x3c96c5=_0x51c8bd(0x559));if(_0x3c96c5===_0x51c8bd(0x559)){const _0x2dfb87=getValueByPath(_0x22114c,[_0x51c8bd(0x544)]);_0x321428!==undefined&&_0x2dfb87!=null&&setValueByPath(_0x321428,['supervisedTuningSpec',_0x51c8bd(0x192),'learningRate'],_0x2dfb87);}const _0x23faa6=getValueByPath(_0x22114c,[_0x51c8bd(0x540)]);_0x321428!==undefined&&_0x23faa6!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x540)],_0x23faa6);const _0x226ab7=getValueByPath(_0x22114c,[_0x51c8bd(0x1ae)]);_0x321428!==undefined&&_0x226ab7!=null&&setValueByPath(_0x321428,['preferenceOptimizationSpec','hyperParameters',_0x51c8bd(0x1ae)],_0x226ab7);const _0x1b3654=getValueByPath(_0x22114c,['baseTeacherModel']);_0x321428!==undefined&&_0x1b3654!=null&&setValueByPath(_0x321428,['distillationSpec',_0x51c8bd(0x443)],_0x1b3654);const _0x31bee2=getValueByPath(_0x22114c,['tunedTeacherModelSource']);_0x321428!==undefined&&_0x31bee2!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x570),_0x51c8bd(0x6b6)],_0x31bee2);const _0x23a126=getValueByPath(_0x22114c,[_0x51c8bd(0x566)]);_0x321428!==undefined&&_0x23a126!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x570),_0x51c8bd(0x192),_0x51c8bd(0x566)],_0x23a126);const _0x520a87=getValueByPath(_0x22114c,[_0x51c8bd(0x508)]);return _0x321428!==undefined&&_0x520a87!=null&&setValueByPath(_0x321428,[_0x51c8bd(0x508)],_0x520a87),_0x2ac5b9;}function createTuningJobParametersPrivateToMldev(_0x4204e1,_0x59890b){const _0x1d5cf4=a1_0x54af01,_0x3fc993={},_0x161538=getValueByPath(_0x4204e1,[_0x1d5cf4(0x433)]);_0x161538!=null&&setValueByPath(_0x3fc993,[_0x1d5cf4(0x433)],_0x161538);const _0x419feb=getValueByPath(_0x4204e1,[_0x1d5cf4(0x3af)]);_0x419feb!=null&&setValueByPath(_0x3fc993,[_0x1d5cf4(0x3af)],_0x419feb);const _0x59f827=getValueByPath(_0x4204e1,[_0x1d5cf4(0x5eb)]);_0x59f827!=null&&tuningDatasetToMldev(_0x59f827);const _0x1f68fc=getValueByPath(_0x4204e1,[_0x1d5cf4(0x1b0)]);return _0x1f68fc!=null&&createTuningJobConfigToMldev(_0x1f68fc,_0x3fc993),_0x3fc993;}function createTuningJobParametersPrivateToVertex(_0x11913e,_0x515f55){const _0x151786=a1_0x54af01,_0x3ce2e4={},_0x57c39a=getValueByPath(_0x11913e,['baseModel']);_0x57c39a!=null&&setValueByPath(_0x3ce2e4,[_0x151786(0x433)],_0x57c39a);const _0x3b56b1=getValueByPath(_0x11913e,[_0x151786(0x3af)]);_0x3b56b1!=null&&setValueByPath(_0x3ce2e4,['preTunedModel'],_0x3b56b1);const _0x156a4f=getValueByPath(_0x11913e,['trainingDataset']);_0x156a4f!=null&&tuningDatasetToVertex(_0x156a4f,_0x3ce2e4,_0x515f55);const _0x1c1752=getValueByPath(_0x11913e,['config']);return _0x1c1752!=null&&createTuningJobConfigToVertex(_0x1c1752,_0x3ce2e4,_0x515f55),_0x3ce2e4;}function getTuningJobParametersToMldev(_0x5958d0,_0x1bab54){const _0x5717e7=a1_0x54af01,_0x52fd56={},_0x17aed2=getValueByPath(_0x5958d0,[_0x5717e7(0x24b)]);return _0x17aed2!=null&&setValueByPath(_0x52fd56,['_url',_0x5717e7(0x24b)],_0x17aed2),_0x52fd56;}function getTuningJobParametersToVertex(_0x2ceb7f,_0x428124){const _0x35effe=a1_0x54af01,_0x18e753={},_0x331dc5=getValueByPath(_0x2ceb7f,[_0x35effe(0x24b)]);return _0x331dc5!=null&&setValueByPath(_0x18e753,[_0x35effe(0x4e9),'name'],_0x331dc5),_0x18e753;}function listTuningJobsConfigToMldev(_0x2b2cb1,_0x1389d3,_0x523322){const _0x17cee8=a1_0x54af01,_0x4a7c14={},_0xed622b=getValueByPath(_0x2b2cb1,[_0x17cee8(0x3a4)]);_0x1389d3!==undefined&&_0xed622b!=null&&setValueByPath(_0x1389d3,[_0x17cee8(0x46e),_0x17cee8(0x3a4)],_0xed622b);const _0x3d30d9=getValueByPath(_0x2b2cb1,[_0x17cee8(0x5ac)]);_0x1389d3!==undefined&&_0x3d30d9!=null&&setValueByPath(_0x1389d3,[_0x17cee8(0x46e),'pageToken'],_0x3d30d9);const _0x3fae7a=getValueByPath(_0x2b2cb1,[_0x17cee8(0x61b)]);return _0x1389d3!==undefined&&_0x3fae7a!=null&&setValueByPath(_0x1389d3,['_query',_0x17cee8(0x61b)],_0x3fae7a),_0x4a7c14;}function listTuningJobsConfigToVertex(_0x36b15c,_0x585dda,_0x2f218a){const _0x302d9c=a1_0x54af01,_0x5cb673={},_0x396e84=getValueByPath(_0x36b15c,[_0x302d9c(0x3a4)]);_0x585dda!==undefined&&_0x396e84!=null&&setValueByPath(_0x585dda,[_0x302d9c(0x46e),_0x302d9c(0x3a4)],_0x396e84);const _0x47f662=getValueByPath(_0x36b15c,[_0x302d9c(0x5ac)]);_0x585dda!==undefined&&_0x47f662!=null&&setValueByPath(_0x585dda,[_0x302d9c(0x46e),_0x302d9c(0x5ac)],_0x47f662);const _0x48eb50=getValueByPath(_0x36b15c,['filter']);return _0x585dda!==undefined&&_0x48eb50!=null&&setValueByPath(_0x585dda,[_0x302d9c(0x46e),'filter'],_0x48eb50),_0x5cb673;}function listTuningJobsParametersToMldev(_0x3a2b52,_0x3c5226){const _0x3afb4e={},_0xb49e3e=getValueByPath(_0x3a2b52,['config']);return _0xb49e3e!=null&&listTuningJobsConfigToMldev(_0xb49e3e,_0x3afb4e),_0x3afb4e;}function listTuningJobsParametersToVertex(_0x591315,_0xd9d715){const _0x12a746=a1_0x54af01,_0x3b6e53={},_0x2b4eab=getValueByPath(_0x591315,[_0x12a746(0x1b0)]);return _0x2b4eab!=null&&listTuningJobsConfigToVertex(_0x2b4eab,_0x3b6e53),_0x3b6e53;}function listTuningJobsResponseFromMldev(_0x54c0d8,_0xcc418d){const _0x2259d4=a1_0x54af01,_0x27f2b7={},_0xf15c62=getValueByPath(_0x54c0d8,[_0x2259d4(0x25b)]);_0xf15c62!=null&&setValueByPath(_0x27f2b7,[_0x2259d4(0x25b)],_0xf15c62);const _0x39ee89=getValueByPath(_0x54c0d8,[_0x2259d4(0x408)]);_0x39ee89!=null&&setValueByPath(_0x27f2b7,[_0x2259d4(0x408)],_0x39ee89);const _0x3b96bc=getValueByPath(_0x54c0d8,['tunedModels']);if(_0x3b96bc!=null){let _0x4ba153=_0x3b96bc;Array[_0x2259d4(0x1e2)](_0x4ba153)&&(_0x4ba153=_0x4ba153['map'](_0x32eb19=>{return tuningJobFromMldev(_0x32eb19);})),setValueByPath(_0x27f2b7,['tuningJobs'],_0x4ba153);}return _0x27f2b7;}function listTuningJobsResponseFromVertex(_0x1d1a19,_0x2c281f){const _0x5145ee=a1_0x54af01,_0x134102={},_0x576f7d=getValueByPath(_0x1d1a19,[_0x5145ee(0x25b)]);_0x576f7d!=null&&setValueByPath(_0x134102,[_0x5145ee(0x25b)],_0x576f7d);const _0x15d425=getValueByPath(_0x1d1a19,[_0x5145ee(0x408)]);_0x15d425!=null&&setValueByPath(_0x134102,[_0x5145ee(0x408)],_0x15d425);const _0x495a19=getValueByPath(_0x1d1a19,[_0x5145ee(0x3e5)]);if(_0x495a19!=null){let _0x4677a1=_0x495a19;Array[_0x5145ee(0x1e2)](_0x4677a1)&&(_0x4677a1=_0x4677a1[_0x5145ee(0x261)](_0xee4c54=>{return tuningJobFromVertex(_0xee4c54);})),setValueByPath(_0x134102,[_0x5145ee(0x3e5)],_0x4677a1);}return _0x134102;}function tunedModelFromMldev(_0x33d768,_0x583ed0){const _0x202893=a1_0x54af01,_0x26a664={},_0x5bd7a3=getValueByPath(_0x33d768,[_0x202893(0x24b)]);_0x5bd7a3!=null&&setValueByPath(_0x26a664,[_0x202893(0x210)],_0x5bd7a3);const _0x19257e=getValueByPath(_0x33d768,[_0x202893(0x24b)]);return _0x19257e!=null&&setValueByPath(_0x26a664,[_0x202893(0x6a7)],_0x19257e),_0x26a664;}function tuningDatasetToMldev(_0x1704a2,_0x371b05){const _0x368e67=a1_0x54af01,_0x4d3479={};if(getValueByPath(_0x1704a2,['gcsUri'])!==undefined)throw new Error(_0x368e67(0x67f));if(getValueByPath(_0x1704a2,[_0x368e67(0x181)])!==undefined)throw new Error(_0x368e67(0x572));const _0x55cc97=getValueByPath(_0x1704a2,['examples']);if(_0x55cc97!=null){let _0x5ebfb6=_0x55cc97;Array['isArray'](_0x5ebfb6)&&(_0x5ebfb6=_0x5ebfb6[_0x368e67(0x261)](_0x568122=>{return _0x568122;})),setValueByPath(_0x4d3479,[_0x368e67(0x317),_0x368e67(0x317)],_0x5ebfb6);}return _0x4d3479;}function tuningDatasetToVertex(_0x9ffc60,_0x13f715,_0x9635bf){const _0x4a8171=a1_0x54af01,_0x3160a5={};let _0x2f1cd4=getValueByPath(_0x9635bf,[_0x4a8171(0x1b0),_0x4a8171(0x30d)]);_0x2f1cd4===undefined&&(_0x2f1cd4=_0x4a8171(0x559));if(_0x2f1cd4===_0x4a8171(0x559)){const _0x478ac0=getValueByPath(_0x9ffc60,[_0x4a8171(0x576)]);_0x13f715!==undefined&&_0x478ac0!=null&&setValueByPath(_0x13f715,[_0x4a8171(0x1fd),_0x4a8171(0x532)],_0x478ac0);}else{if(_0x2f1cd4===_0x4a8171(0x554)){const _0x2e87bd=getValueByPath(_0x9ffc60,['gcsUri']);_0x13f715!==undefined&&_0x2e87bd!=null&&setValueByPath(_0x13f715,['preferenceOptimizationSpec',_0x4a8171(0x532)],_0x2e87bd);}else{if(_0x2f1cd4==='DISTILLATION'){const _0x345101=getValueByPath(_0x9ffc60,['gcsUri']);_0x13f715!==undefined&&_0x345101!=null&&setValueByPath(_0x13f715,[_0x4a8171(0x570),_0x4a8171(0x343)],_0x345101);}}}let _0x71f8a3=getValueByPath(_0x9635bf,[_0x4a8171(0x1b0),_0x4a8171(0x30d)]);_0x71f8a3===undefined&&(_0x71f8a3=_0x4a8171(0x559));if(_0x71f8a3===_0x4a8171(0x559)){const _0x5df4cf=getValueByPath(_0x9ffc60,[_0x4a8171(0x181)]);_0x13f715!==undefined&&_0x5df4cf!=null&&setValueByPath(_0x13f715,[_0x4a8171(0x1fd),_0x4a8171(0x532)],_0x5df4cf);}else{if(_0x71f8a3===_0x4a8171(0x554)){const _0x5ae576=getValueByPath(_0x9ffc60,[_0x4a8171(0x181)]);_0x13f715!==undefined&&_0x5ae576!=null&&setValueByPath(_0x13f715,[_0x4a8171(0x4e1),_0x4a8171(0x532)],_0x5ae576);}else{if(_0x71f8a3===_0x4a8171(0x1a2)){const _0x42a74b=getValueByPath(_0x9ffc60,[_0x4a8171(0x181)]);_0x13f715!==undefined&&_0x42a74b!=null&&setValueByPath(_0x13f715,['distillationSpec','promptDatasetUri'],_0x42a74b);}}}if(getValueByPath(_0x9ffc60,[_0x4a8171(0x317)])!==undefined)throw new Error(_0x4a8171(0x5e3));return _0x3160a5;}function tuningJobFromMldev(_0x40471b,_0x4245d9){const _0x3efce5=a1_0x54af01,_0x281a6d={},_0x1f1b6d=getValueByPath(_0x40471b,[_0x3efce5(0x25b)]);_0x1f1b6d!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x25b)],_0x1f1b6d);const _0x1df91a=getValueByPath(_0x40471b,[_0x3efce5(0x24b)]);_0x1df91a!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x24b)],_0x1df91a);const _0x33c9a0=getValueByPath(_0x40471b,['state']);_0x33c9a0!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x26d)],tTuningJobStatus(_0x33c9a0));const _0x62cf1b=getValueByPath(_0x40471b,[_0x3efce5(0x28c)]);_0x62cf1b!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x28c)],_0x62cf1b);const _0x5c810e=getValueByPath(_0x40471b,[_0x3efce5(0x40b),_0x3efce5(0x38b)]);_0x5c810e!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x38b)],_0x5c810e);const _0x569e48=getValueByPath(_0x40471b,[_0x3efce5(0x40b),_0x3efce5(0x4b5)]);_0x569e48!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x5d0)],_0x569e48);const _0xbc008=getValueByPath(_0x40471b,[_0x3efce5(0x2c2)]);_0xbc008!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x2c2)],_0xbc008);const _0x25f017=getValueByPath(_0x40471b,[_0x3efce5(0x31f)]);_0x25f017!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x31f)],_0x25f017);const _0x45d0ec=getValueByPath(_0x40471b,[_0x3efce5(0x433)]);_0x45d0ec!=null&&setValueByPath(_0x281a6d,[_0x3efce5(0x433)],_0x45d0ec);const _0x3b2069=getValueByPath(_0x40471b,['_self']);return _0x3b2069!=null&&setValueByPath(_0x281a6d,['tunedModel'],tunedModelFromMldev(_0x3b2069)),_0x281a6d;}function tuningJobFromVertex(_0x2cac92,_0x59be9a){const _0x1c9883=a1_0x54af01,_0x9a24b7={},_0x442930=getValueByPath(_0x2cac92,[_0x1c9883(0x25b)]);_0x442930!=null&&setValueByPath(_0x9a24b7,['sdkHttpResponse'],_0x442930);const _0xa7e177=getValueByPath(_0x2cac92,['name']);_0xa7e177!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x24b)],_0xa7e177);const _0x1d019a=getValueByPath(_0x2cac92,['state']);_0x1d019a!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x26d)],tTuningJobStatus(_0x1d019a));const _0xaf40dd=getValueByPath(_0x2cac92,['createTime']);_0xaf40dd!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x28c)],_0xaf40dd);const _0x5ba5ad=getValueByPath(_0x2cac92,[_0x1c9883(0x38b)]);_0x5ba5ad!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x38b)],_0x5ba5ad);const _0x2b3495=getValueByPath(_0x2cac92,[_0x1c9883(0x5d0)]);_0x2b3495!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x5d0)],_0x2b3495);const _0x108991=getValueByPath(_0x2cac92,[_0x1c9883(0x2c2)]);_0x108991!=null&&setValueByPath(_0x9a24b7,['updateTime'],_0x108991);const _0x572ece=getValueByPath(_0x2cac92,[_0x1c9883(0x3d6)]);_0x572ece!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x3d6)],_0x572ece);const _0x50f27b=getValueByPath(_0x2cac92,['description']);_0x50f27b!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x31f)],_0x50f27b);const _0x43db29=getValueByPath(_0x2cac92,[_0x1c9883(0x433)]);_0x43db29!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x433)],_0x43db29);const _0x162be4=getValueByPath(_0x2cac92,['tunedModel']);_0x162be4!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x69c)],_0x162be4);const _0xd6d327=getValueByPath(_0x2cac92,[_0x1c9883(0x3af)]);_0xd6d327!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x3af)],_0xd6d327);const _0x7ab8f4=getValueByPath(_0x2cac92,[_0x1c9883(0x1fd)]);_0x7ab8f4!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x1fd)],_0x7ab8f4);const _0x42a65f=getValueByPath(_0x2cac92,[_0x1c9883(0x4e1)]);_0x42a65f!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x4e1)],_0x42a65f);const _0x183f67=getValueByPath(_0x2cac92,[_0x1c9883(0x570)]);_0x183f67!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x570)],_0x183f67);const _0x2349f7=getValueByPath(_0x2cac92,[_0x1c9883(0x5e7)]);_0x2349f7!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x5e7)],_0x2349f7);const _0x296c4a=getValueByPath(_0x2cac92,[_0x1c9883(0x2cf)]);_0x296c4a!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x2cf)],_0x296c4a);const _0x4706fb=getValueByPath(_0x2cac92,['partnerModelTuningSpec']);_0x4706fb!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x1a0)],_0x4706fb);const _0x49a726=getValueByPath(_0x2cac92,[_0x1c9883(0x231)]);_0x49a726!=null&&setValueByPath(_0x9a24b7,['customBaseModel'],_0x49a726);const _0x333aa6=getValueByPath(_0x2cac92,[_0x1c9883(0x190)]);_0x333aa6!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x190)],_0x333aa6);const _0x10d848=getValueByPath(_0x2cac92,[_0x1c9883(0x540)]);_0x10d848!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x540)],_0x10d848);const _0x4804d3=getValueByPath(_0x2cac92,[_0x1c9883(0x508)]);_0x4804d3!=null&&setValueByPath(_0x9a24b7,['outputUri'],_0x4804d3);const _0x219cef=getValueByPath(_0x2cac92,[_0x1c9883(0x650)]);_0x219cef!=null&&setValueByPath(_0x9a24b7,['pipelineJob'],_0x219cef);const _0x48a385=getValueByPath(_0x2cac92,[_0x1c9883(0x502)]);_0x48a385!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x502)],_0x48a385);const _0x212c07=getValueByPath(_0x2cac92,[_0x1c9883(0x691)]);_0x212c07!=null&&setValueByPath(_0x9a24b7,['tunedModelDisplayName'],_0x212c07);const _0x15a961=getValueByPath(_0x2cac92,['veoTuningSpec']);return _0x15a961!=null&&setValueByPath(_0x9a24b7,[_0x1c9883(0x5f9)],_0x15a961),_0x9a24b7;}function tuningOperationFromMldev(_0xa369cc,_0x5e48d6){const _0x4f9ba2=a1_0x54af01,_0x5eea87={},_0x264a77=getValueByPath(_0xa369cc,['sdkHttpResponse']);_0x264a77!=null&&setValueByPath(_0x5eea87,['sdkHttpResponse'],_0x264a77);const _0x407446=getValueByPath(_0xa369cc,['name']);_0x407446!=null&&setValueByPath(_0x5eea87,[_0x4f9ba2(0x24b)],_0x407446);const _0x220bc9=getValueByPath(_0xa369cc,[_0x4f9ba2(0x54a)]);_0x220bc9!=null&&setValueByPath(_0x5eea87,[_0x4f9ba2(0x54a)],_0x220bc9);const _0x263417=getValueByPath(_0xa369cc,[_0x4f9ba2(0x49f)]);_0x263417!=null&&setValueByPath(_0x5eea87,[_0x4f9ba2(0x49f)],_0x263417);const _0x1004eb=getValueByPath(_0xa369cc,[_0x4f9ba2(0x3d6)]);return _0x1004eb!=null&&setValueByPath(_0x5eea87,[_0x4f9ba2(0x3d6)],_0x1004eb),_0x5eea87;}function tuningValidationDatasetToVertex(_0x119a9d,_0x10bfc9){const _0x14da7f=a1_0x54af01,_0x436c36={},_0x510783=getValueByPath(_0x119a9d,[_0x14da7f(0x576)]);_0x510783!=null&&setValueByPath(_0x436c36,[_0x14da7f(0x396)],_0x510783);const _0x1416a2=getValueByPath(_0x119a9d,[_0x14da7f(0x181)]);return _0x1416a2!=null&&setValueByPath(_0x436c36,[_0x14da7f(0x396)],_0x1416a2),_0x436c36;}/**
262
+ * @license
263
+ * Copyright 2025 Google LLC
264
+ * SPDX-License-Identifier: Apache-2.0
265
+ */
266
+ class Tunings extends BaseModule{constructor(_0x5ac2be){const _0x211b4b=a1_0x54af01;super(),this[_0x211b4b(0x5bb)]=_0x5ac2be,this[_0x211b4b(0x338)]=async(_0x78a673={})=>{const _0x3c0907=_0x211b4b;return new Pager(PagedItem[_0x3c0907(0x5de)],_0x280e08=>this[_0x3c0907(0x62c)](_0x280e08),await this[_0x3c0907(0x62c)](_0x78a673),_0x78a673);},this[_0x211b4b(0x5a2)]=async _0x3e7308=>{return await this['getInternal'](_0x3e7308);},this[_0x211b4b(0x5f2)]=async _0x40be41=>{const _0x400ef4=_0x211b4b;var _0x53efc8;if(this[_0x400ef4(0x5bb)]['isVertexAI']()){if(_0x40be41[_0x400ef4(0x433)][_0x400ef4(0x55d)](_0x400ef4(0x353))){const _0x494c41={'tunedModelName':_0x40be41[_0x400ef4(0x433)]};((_0x53efc8=_0x40be41['config'])===null||_0x53efc8===void 0x0?void 0x0:_0x53efc8[_0x400ef4(0x4f3)])&&(_0x494c41[_0x400ef4(0x27c)]=_0x40be41[_0x400ef4(0x1b0)]['preTunedModelCheckpointId']);const _0x4bf15b=Object[_0x400ef4(0x541)](Object[_0x400ef4(0x541)]({},_0x40be41),{'preTunedModel':_0x494c41});return _0x4bf15b[_0x400ef4(0x433)]=undefined,await this[_0x400ef4(0x5f7)](_0x4bf15b);}else{const _0x208fe3=Object[_0x400ef4(0x541)]({},_0x40be41);return await this['tuneInternal'](_0x208fe3);}}else{const _0x2df86d=Object[_0x400ef4(0x541)]({},_0x40be41),_0x547efe=await this['tuneMldevInternal'](_0x2df86d);let _0x4cd25f='';if(_0x547efe[_0x400ef4(0x54a)]!==undefined&&_0x547efe[_0x400ef4(0x54a)][_0x400ef4(0x69c)]!==undefined)_0x4cd25f=_0x547efe[_0x400ef4(0x54a)][_0x400ef4(0x69c)];else _0x547efe['name']!==undefined&&_0x547efe[_0x400ef4(0x24b)][_0x400ef4(0x563)](_0x400ef4(0x1a1))&&(_0x4cd25f=_0x547efe['name'][_0x400ef4(0x22a)]('/operations/')[0x0]);const _0x2c9061={'name':_0x4cd25f,'state':JobState[_0x400ef4(0x57a)]};return _0x2c9061;}};}async[a1_0x54af01(0x3d7)](_0x41aa59){const _0x247acd=a1_0x54af01;var _0xbe2c99,_0x38808e,_0xc84077,_0x4c2658;let _0x5b5011,_0x4f8d15='',_0x59e192={};if(this[_0x247acd(0x5bb)][_0x247acd(0x29b)]()){const _0x4de455=getTuningJobParametersToVertex(_0x41aa59);return _0x4f8d15=formatMap(_0x247acd(0x1c9),_0x4de455[_0x247acd(0x4e9)]),_0x59e192=_0x4de455[_0x247acd(0x46e)],delete _0x4de455['_url'],delete _0x4de455[_0x247acd(0x46e)],_0x5b5011=this['apiClient']['request']({'path':_0x4f8d15,'queryParams':_0x59e192,'body':JSON[_0x247acd(0x45e)](_0x4de455),'httpMethod':'GET','httpOptions':(_0xbe2c99=_0x41aa59[_0x247acd(0x1b0)])===null||_0xbe2c99===void 0x0?void 0x0:_0xbe2c99[_0x247acd(0x688)],'abortSignal':(_0x38808e=_0x41aa59[_0x247acd(0x1b0)])===null||_0x38808e===void 0x0?void 0x0:_0x38808e['abortSignal']})['then'](_0x3e7fb6=>{const _0x16bb37=_0x247acd;return _0x3e7fb6[_0x16bb37(0x648)]()[_0x16bb37(0x28f)](_0x5b86d1=>{const _0x4a3551=_0x16bb37,_0x1aadfa=_0x5b86d1;return _0x1aadfa[_0x4a3551(0x25b)]={'headers':_0x3e7fb6[_0x4a3551(0x2fa)]},_0x1aadfa;});}),_0x5b5011[_0x247acd(0x28f)](_0x18a341=>{const _0x3a72cb=tuningJobFromVertex(_0x18a341);return _0x3a72cb;});}else{const _0x1227a7=getTuningJobParametersToMldev(_0x41aa59);return _0x4f8d15=formatMap('{name}',_0x1227a7[_0x247acd(0x4e9)]),_0x59e192=_0x1227a7[_0x247acd(0x46e)],delete _0x1227a7['_url'],delete _0x1227a7[_0x247acd(0x46e)],_0x5b5011=this['apiClient'][_0x247acd(0x44a)]({'path':_0x4f8d15,'queryParams':_0x59e192,'body':JSON['stringify'](_0x1227a7),'httpMethod':_0x247acd(0x1f7),'httpOptions':(_0xc84077=_0x41aa59[_0x247acd(0x1b0)])===null||_0xc84077===void 0x0?void 0x0:_0xc84077[_0x247acd(0x688)],'abortSignal':(_0x4c2658=_0x41aa59[_0x247acd(0x1b0)])===null||_0x4c2658===void 0x0?void 0x0:_0x4c2658[_0x247acd(0x67c)]})[_0x247acd(0x28f)](_0x4ccc2d=>{const _0x2afa39=_0x247acd;return _0x4ccc2d[_0x2afa39(0x648)]()[_0x2afa39(0x28f)](_0x32f023=>{const _0xbc6c61=_0x2afa39,_0x38e6dc=_0x32f023;return _0x38e6dc[_0xbc6c61(0x25b)]={'headers':_0x4ccc2d[_0xbc6c61(0x2fa)]},_0x38e6dc;});}),_0x5b5011[_0x247acd(0x28f)](_0x208041=>{const _0x1a59f7=tuningJobFromMldev(_0x208041);return _0x1a59f7;});}}async[a1_0x54af01(0x62c)](_0x12dba7){const _0x30ce74=a1_0x54af01;var _0x41866c,_0x236230,_0x173fbc,_0x32ab19;let _0x34b0da,_0x327596='',_0x24cf7a={};if(this[_0x30ce74(0x5bb)]['isVertexAI']()){const _0xa1b3c4=listTuningJobsParametersToVertex(_0x12dba7);return _0x327596=formatMap('tuningJobs',_0xa1b3c4[_0x30ce74(0x4e9)]),_0x24cf7a=_0xa1b3c4[_0x30ce74(0x46e)],delete _0xa1b3c4['_url'],delete _0xa1b3c4[_0x30ce74(0x46e)],_0x34b0da=this['apiClient'][_0x30ce74(0x44a)]({'path':_0x327596,'queryParams':_0x24cf7a,'body':JSON[_0x30ce74(0x45e)](_0xa1b3c4),'httpMethod':'GET','httpOptions':(_0x41866c=_0x12dba7[_0x30ce74(0x1b0)])===null||_0x41866c===void 0x0?void 0x0:_0x41866c[_0x30ce74(0x688)],'abortSignal':(_0x236230=_0x12dba7['config'])===null||_0x236230===void 0x0?void 0x0:_0x236230[_0x30ce74(0x67c)]})[_0x30ce74(0x28f)](_0x45205d=>{const _0xb8d0df=_0x30ce74;return _0x45205d[_0xb8d0df(0x648)]()['then'](_0xc3f051=>{const _0x2e7e59=_0xb8d0df,_0x397837=_0xc3f051;return _0x397837[_0x2e7e59(0x25b)]={'headers':_0x45205d[_0x2e7e59(0x2fa)]},_0x397837;});}),_0x34b0da[_0x30ce74(0x28f)](_0x494d1c=>{const _0x2c3d2a=listTuningJobsResponseFromVertex(_0x494d1c),_0xf65d0b=new ListTuningJobsResponse();return Object['assign'](_0xf65d0b,_0x2c3d2a),_0xf65d0b;});}else{const _0xed1c75=listTuningJobsParametersToMldev(_0x12dba7);return _0x327596=formatMap('tunedModels',_0xed1c75[_0x30ce74(0x4e9)]),_0x24cf7a=_0xed1c75[_0x30ce74(0x46e)],delete _0xed1c75['_url'],delete _0xed1c75[_0x30ce74(0x46e)],_0x34b0da=this[_0x30ce74(0x5bb)][_0x30ce74(0x44a)]({'path':_0x327596,'queryParams':_0x24cf7a,'body':JSON['stringify'](_0xed1c75),'httpMethod':_0x30ce74(0x1f7),'httpOptions':(_0x173fbc=_0x12dba7['config'])===null||_0x173fbc===void 0x0?void 0x0:_0x173fbc[_0x30ce74(0x688)],'abortSignal':(_0x32ab19=_0x12dba7[_0x30ce74(0x1b0)])===null||_0x32ab19===void 0x0?void 0x0:_0x32ab19[_0x30ce74(0x67c)]})[_0x30ce74(0x28f)](_0x548ca5=>{const _0x5af2e5=_0x30ce74;return _0x548ca5[_0x5af2e5(0x648)]()[_0x5af2e5(0x28f)](_0xfcfcdb=>{const _0x4cd66e=_0x5af2e5,_0x2b3474=_0xfcfcdb;return _0x2b3474[_0x4cd66e(0x25b)]={'headers':_0x548ca5['headers']},_0x2b3474;});}),_0x34b0da['then'](_0x2a7710=>{const _0x21fefc=_0x30ce74,_0x5e044d=listTuningJobsResponseFromMldev(_0x2a7710),_0x512b71=new ListTuningJobsResponse();return Object[_0x21fefc(0x541)](_0x512b71,_0x5e044d),_0x512b71;});}}async[a1_0x54af01(0x606)](_0x775e31){const _0x17cd38=a1_0x54af01;var _0x529c6a,_0x5efdd0,_0x43b41c,_0x43fe1e;let _0x385304,_0xc7311='',_0x31dc8c={};if(this[_0x17cd38(0x5bb)][_0x17cd38(0x29b)]()){const _0x5f074d=cancelTuningJobParametersToVertex(_0x775e31);return _0xc7311=formatMap(_0x17cd38(0x62a),_0x5f074d[_0x17cd38(0x4e9)]),_0x31dc8c=_0x5f074d[_0x17cd38(0x46e)],delete _0x5f074d[_0x17cd38(0x4e9)],delete _0x5f074d[_0x17cd38(0x46e)],_0x385304=this[_0x17cd38(0x5bb)][_0x17cd38(0x44a)]({'path':_0xc7311,'queryParams':_0x31dc8c,'body':JSON[_0x17cd38(0x45e)](_0x5f074d),'httpMethod':'POST','httpOptions':(_0x529c6a=_0x775e31[_0x17cd38(0x1b0)])===null||_0x529c6a===void 0x0?void 0x0:_0x529c6a[_0x17cd38(0x688)],'abortSignal':(_0x5efdd0=_0x775e31[_0x17cd38(0x1b0)])===null||_0x5efdd0===void 0x0?void 0x0:_0x5efdd0['abortSignal']})[_0x17cd38(0x28f)](_0x3d8eff=>{const _0xe223c3=_0x17cd38;return _0x3d8eff[_0xe223c3(0x648)]()[_0xe223c3(0x28f)](_0x400fb8=>{const _0x5eeddf=_0xe223c3,_0x5036a4=_0x400fb8;return _0x5036a4['sdkHttpResponse']={'headers':_0x3d8eff[_0x5eeddf(0x2fa)]},_0x5036a4;});}),_0x385304[_0x17cd38(0x28f)](_0x1b6481=>{const _0x72f624=_0x17cd38,_0x43e20e=cancelTuningJobResponseFromVertex(_0x1b6481),_0x467cfa=new CancelTuningJobResponse();return Object[_0x72f624(0x541)](_0x467cfa,_0x43e20e),_0x467cfa;});}else{const _0x16e464=cancelTuningJobParametersToMldev(_0x775e31);return _0xc7311=formatMap(_0x17cd38(0x62a),_0x16e464[_0x17cd38(0x4e9)]),_0x31dc8c=_0x16e464[_0x17cd38(0x46e)],delete _0x16e464[_0x17cd38(0x4e9)],delete _0x16e464[_0x17cd38(0x46e)],_0x385304=this['apiClient'][_0x17cd38(0x44a)]({'path':_0xc7311,'queryParams':_0x31dc8c,'body':JSON['stringify'](_0x16e464),'httpMethod':'POST','httpOptions':(_0x43b41c=_0x775e31['config'])===null||_0x43b41c===void 0x0?void 0x0:_0x43b41c['httpOptions'],'abortSignal':(_0x43fe1e=_0x775e31['config'])===null||_0x43fe1e===void 0x0?void 0x0:_0x43fe1e[_0x17cd38(0x67c)]})[_0x17cd38(0x28f)](_0x1f1f94=>{const _0x56e35b=_0x17cd38;return _0x1f1f94[_0x56e35b(0x648)]()[_0x56e35b(0x28f)](_0x2bd4ee=>{const _0x1c1f59=_0x56e35b,_0x1d8a63=_0x2bd4ee;return _0x1d8a63[_0x1c1f59(0x25b)]={'headers':_0x1f1f94[_0x1c1f59(0x2fa)]},_0x1d8a63;});}),_0x385304[_0x17cd38(0x28f)](_0x49253a=>{const _0x217e2c=_0x17cd38,_0x472b01=cancelTuningJobResponseFromMldev(_0x49253a),_0x36da9f=new CancelTuningJobResponse();return Object[_0x217e2c(0x541)](_0x36da9f,_0x472b01),_0x36da9f;});}}async[a1_0x54af01(0x5f7)](_0x2ca962){const _0x52050c=a1_0x54af01;var _0x1d2e94,_0x4c7d06;let _0x38ed7d,_0x3c883e='',_0x15595c={};if(this['apiClient'][_0x52050c(0x29b)]()){const _0x108e18=createTuningJobParametersPrivateToVertex(_0x2ca962,_0x2ca962);return _0x3c883e=formatMap('tuningJobs',_0x108e18[_0x52050c(0x4e9)]),_0x15595c=_0x108e18['_query'],delete _0x108e18['_url'],delete _0x108e18[_0x52050c(0x46e)],_0x38ed7d=this['apiClient'][_0x52050c(0x44a)]({'path':_0x3c883e,'queryParams':_0x15595c,'body':JSON[_0x52050c(0x45e)](_0x108e18),'httpMethod':_0x52050c(0x43a),'httpOptions':(_0x1d2e94=_0x2ca962[_0x52050c(0x1b0)])===null||_0x1d2e94===void 0x0?void 0x0:_0x1d2e94['httpOptions'],'abortSignal':(_0x4c7d06=_0x2ca962[_0x52050c(0x1b0)])===null||_0x4c7d06===void 0x0?void 0x0:_0x4c7d06['abortSignal']})[_0x52050c(0x28f)](_0x33b063=>{return _0x33b063['json']()['then'](_0x2616d9=>{const _0x88a145=a1_0x2f78,_0x1ee610=_0x2616d9;return _0x1ee610[_0x88a145(0x25b)]={'headers':_0x33b063[_0x88a145(0x2fa)]},_0x1ee610;});}),_0x38ed7d['then'](_0x339f7d=>{const _0x11ab5a=tuningJobFromVertex(_0x339f7d);return _0x11ab5a;});}else throw new Error(_0x52050c(0x3c2));}async[a1_0x54af01(0x2c0)](_0x15471e){const _0x9d1703=a1_0x54af01;var _0x427282,_0x3a07f9;let _0x4595bc,_0x2f6506='',_0x35374d={};if(this[_0x9d1703(0x5bb)][_0x9d1703(0x29b)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x3acc94=createTuningJobParametersPrivateToMldev(_0x15471e);return _0x2f6506=formatMap(_0x9d1703(0x4b3),_0x3acc94[_0x9d1703(0x4e9)]),_0x35374d=_0x3acc94['_query'],delete _0x3acc94[_0x9d1703(0x4e9)],delete _0x3acc94[_0x9d1703(0x46e)],_0x4595bc=this[_0x9d1703(0x5bb)][_0x9d1703(0x44a)]({'path':_0x2f6506,'queryParams':_0x35374d,'body':JSON['stringify'](_0x3acc94),'httpMethod':_0x9d1703(0x43a),'httpOptions':(_0x427282=_0x15471e[_0x9d1703(0x1b0)])===null||_0x427282===void 0x0?void 0x0:_0x427282['httpOptions'],'abortSignal':(_0x3a07f9=_0x15471e[_0x9d1703(0x1b0)])===null||_0x3a07f9===void 0x0?void 0x0:_0x3a07f9[_0x9d1703(0x67c)]})['then'](_0x10a0f0=>{const _0xd5e8b0=_0x9d1703;return _0x10a0f0[_0xd5e8b0(0x648)]()[_0xd5e8b0(0x28f)](_0x3c378d=>{const _0x198145=_0xd5e8b0,_0xb6aeee=_0x3c378d;return _0xb6aeee[_0x198145(0x25b)]={'headers':_0x10a0f0[_0x198145(0x2fa)]},_0xb6aeee;});}),_0x4595bc[_0x9d1703(0x28f)](_0x544350=>{const _0x33bf34=tuningOperationFromMldev(_0x544350);return _0x33bf34;});}}}/**
267
+ * @license
268
+ * Copyright 2025 Google LLC
269
+ * SPDX-License-Identifier: Apache-2.0
270
+ */
271
+ const GOOGLE_API_KEY_HEADER=a1_0x54af01(0x2eb);class WebAuth{constructor(_0x553881){this['apiKey']=_0x553881;}async[a1_0x54af01(0x4a7)](_0x25fd81,_0x12fd8c){const _0x3849e0=a1_0x54af01;if(_0x25fd81['get'](GOOGLE_API_KEY_HEADER)!==null)return;if(this[_0x3849e0(0x224)][_0x3849e0(0x55d)]('auth_tokens/'))throw new Error(_0x3849e0(0x5db));if(!this[_0x3849e0(0x224)])throw new Error(_0x3849e0(0x5b9));_0x25fd81[_0x3849e0(0x3ca)](GOOGLE_API_KEY_HEADER,this[_0x3849e0(0x224)]);}}/**
272
+ * @license
273
+ * Copyright 2025 Google LLC
274
+ * SPDX-License-Identifier: Apache-2.0
275
+ */
276
+ const LANGUAGE_LABEL_PREFIX=a1_0x54af01(0x464);class GoogleGenAI{get[a1_0x54af01(0x4dc)](){const _0x586b51=a1_0x54af01;if(this['_interactions']!==undefined)return this[_0x586b51(0x430)];console['warn'](_0x586b51(0x64f));if(this[_0x586b51(0x5fa)])throw new Error('This\x20version\x20of\x20the\x20GenAI\x20SDK\x20does\x20not\x20support\x20Vertex\x20AI\x20API\x20for\x20interactions.');const _0x1cc4b3=this[_0x586b51(0x688)];(_0x1cc4b3===null||_0x1cc4b3===void 0x0?void 0x0:_0x1cc4b3[_0x586b51(0x657)])&&console[_0x586b51(0x44c)](_0x586b51(0x371));const _0x22196e=new GeminiNextGenAPIClient({'baseURL':this['apiClient'][_0x586b51(0x6bc)](),'apiKey':this['apiKey'],'apiVersion':this[_0x586b51(0x5bb)][_0x586b51(0x3e8)](),'clientAdapter':this[_0x586b51(0x5bb)],'defaultHeaders':this['apiClient'][_0x586b51(0x2ea)](),'timeout':_0x1cc4b3===null||_0x1cc4b3===void 0x0?void 0x0:_0x1cc4b3[_0x586b51(0x219)]});return this['_interactions']=_0x22196e[_0x586b51(0x4dc)],this[_0x586b51(0x430)];}constructor(_0x5ef681){const _0x5ea233=a1_0x54af01;var _0x1efbf8;if(_0x5ef681[_0x5ea233(0x224)]==null)throw new Error(_0x5ea233(0x5c7)+crossError()[_0x5ea233(0x3fc)]);this[_0x5ea233(0x5fa)]=(_0x1efbf8=_0x5ef681['vertexai'])!==null&&_0x1efbf8!==void 0x0?_0x1efbf8:![],this['apiKey']=_0x5ef681['apiKey'],this[_0x5ea233(0x288)]=_0x5ef681['apiVersion'],this[_0x5ea233(0x688)]=_0x5ef681[_0x5ea233(0x688)];const _0x52dec8=new WebAuth(this[_0x5ea233(0x224)]);this[_0x5ea233(0x5bb)]=new ApiClient({'auth':_0x52dec8,'apiVersion':this['apiVersion'],'apiKey':this[_0x5ea233(0x224)],'vertexai':this['vertexai'],'httpOptions':this[_0x5ea233(0x688)],'userAgentExtra':LANGUAGE_LABEL_PREFIX+_0x5ea233(0x503),'uploader':new CrossUploader(),'downloader':new CrossDownloader()}),this[_0x5ea233(0x475)]=new Models(this['apiClient']),this[_0x5ea233(0x3ec)]=new Live(this['apiClient'],_0x52dec8,new CrossWebSocketFactory()),this[_0x5ea233(0x5dd)]=new Chats(this[_0x5ea233(0x475)],this[_0x5ea233(0x5bb)]),this['batches']=new Batches(this[_0x5ea233(0x5bb)]),this[_0x5ea233(0x5c0)]=new Caches(this['apiClient']),this[_0x5ea233(0x58b)]=new Files(this[_0x5ea233(0x5bb)]),this[_0x5ea233(0x251)]=new Operations(this[_0x5ea233(0x5bb)]),this['authTokens']=new Tokens(this[_0x5ea233(0x5bb)]),this['tunings']=new Tunings(this[_0x5ea233(0x5bb)]),this[_0x5ea233(0x584)]=new FileSearchStores(this['apiClient']);}}export{ActivityHandling,AdapterSize,ApiError,ApiSpec,AuthType,Batches,Behavior,BlockedReason,Caches,CancelTuningJobResponse,Chat,Chats,ComputeTokensResponse,ContentReferenceImage,ControlReferenceImage,ControlReferenceType,CountTokensResponse,CreateFileResponse,DeleteCachedContentResponse,DeleteFileResponse,DeleteModelResponse,DocumentState,DynamicRetrievalConfigMode,EditImageResponse,EditMode,EmbedContentResponse,EndSensitivity,Environment,FeatureSelectionPreference,FileSource,FileState,Files,FinishReason,FunctionCallingConfigMode,FunctionResponse,FunctionResponseBlob,FunctionResponseFileData,FunctionResponsePart,FunctionResponseScheduling,GenerateContentResponse,GenerateContentResponsePromptFeedback,GenerateContentResponseUsageMetadata,GenerateImagesResponse,GenerateVideosOperation,GenerateVideosResponse,GoogleGenAI,HarmBlockMethod,HarmBlockThreshold,HarmCategory,HarmProbability,HarmSeverity,HttpElementLocation,HttpResponse,ImagePromptLanguage,ImportFileOperation,ImportFileResponse,InlinedEmbedContentResponse,InlinedResponse,JobState,Language,ListBatchJobsResponse,ListCachedContentsResponse,ListDocumentsResponse,ListFileSearchStoresResponse,ListFilesResponse,ListModelsResponse,ListTuningJobsResponse,Live,LiveClientToolResponse,LiveMusicPlaybackControl,LiveMusicServerMessage,LiveSendToolResponseParameters,LiveServerMessage,MaskReferenceImage,MaskReferenceMode,MediaModality,MediaResolution,Modality,Models,MusicGenerationMode,Operations,Outcome,PagedItem,Pager,PartMediaResolutionLevel,PersonGeneration,PhishBlockThreshold,RawReferenceImage,RecontextImageResponse,RegisterFilesResponse,ReplayResponse,ResourceScope,SafetyFilterLevel,Scale,SegmentImageResponse,SegmentMode,Session,SingleEmbedContentResponse,StartSensitivity,StyleReferenceImage,SubjectReferenceImage,SubjectReferenceType,ThinkingLevel,Tokens,TrafficType,TuningMethod,TuningMode,TuningTask,TurnCompleteReason,TurnCoverage,Type,UploadToFileSearchStoreOperation,UploadToFileSearchStoreResponse,UploadToFileSearchStoreResumableResponse,UpscaleImageResponse,UrlRetrievalStatus,VadSignalType,VideoCompressionQuality,VideoGenerationMaskMode,VideoGenerationReferenceType,VoiceActivityType,createFunctionResponsePartFromBase64,createFunctionResponsePartFromUri,createModelContent,createPartFromBase64,createPartFromCodeExecutionResult,createPartFromExecutableCode,createPartFromFunctionCall,createPartFromFunctionResponse,createPartFromText,createPartFromUri,createUserContent,mcpToTool,setDefaultBaseUrls};