@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.cjs ADDED
@@ -0,0 +1,276 @@
1
+ 'use strict';const a0_0x254c3a=a0_0x3530;(function(_0x1907e5,_0xac545e){const _0xc2d734=a0_0x3530,_0x5efcf2=_0x1907e5();while(!![]){try{const _0x316e74=parseInt(_0xc2d734(0x515))/0x1*(-parseInt(_0xc2d734(0x38d))/0x2)+parseInt(_0xc2d734(0x229))/0x3+parseInt(_0xc2d734(0x6f5))/0x4+-parseInt(_0xc2d734(0x4fc))/0x5*(parseInt(_0xc2d734(0x1ba))/0x6)+parseInt(_0xc2d734(0x69e))/0x7+parseInt(_0xc2d734(0x463))/0x8*(-parseInt(_0xc2d734(0x63c))/0x9)+-parseInt(_0xc2d734(0x6e1))/0xa*(parseInt(_0xc2d734(0x28c))/0xb);if(_0x316e74===_0xac545e)break;else _0x5efcf2['push'](_0x5efcf2['shift']());}catch(_0x3d3aeb){_0x5efcf2['push'](_0x5efcf2['shift']());}}}(a0_0x1905,0xa619a));/**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ function setDefaultBaseUrls(_0x518f9c){const _0x418d96=a0_0x3530;_0x518f9c['geminiUrl'],_0x518f9c[_0x418d96(0x3d5)];}/**
7
+ * @license
8
+ * Copyright 2025 Google LLC
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ class BaseModule{}function formatMap(_0xe342a9,_0x23741c){const _0x37aa8d=a0_0x3530,_0x260a6f=/\{([^}]+)\}/g;return _0xe342a9[_0x37aa8d(0x19f)](_0x260a6f,(_0x423d76,_0x4dc584)=>{const _0x2d9ad4=_0x37aa8d;if(Object[_0x2d9ad4(0x6b5)][_0x2d9ad4(0x54e)]['call'](_0x23741c,_0x4dc584)){const _0x52d6b9=_0x23741c[_0x4dc584];return _0x52d6b9!==undefined&&_0x52d6b9!==null?String(_0x52d6b9):'';}else throw new Error(_0x2d9ad4(0x3ed)+_0x4dc584+_0x2d9ad4(0x71f));});}function setValueByPath(_0x3ef682,_0xb3e038,_0x360488){const _0xb91d29=a0_0x3530;for(let _0x563544=0x0;_0x563544<_0xb3e038[_0xb91d29(0x3d2)]-0x1;_0x563544++){const _0x310cec=_0xb3e038[_0x563544];if(_0x310cec[_0xb91d29(0x53e)]('[]')){const _0x530cc0=_0x310cec[_0xb91d29(0x26b)](0x0,-0x2);if(!(_0x530cc0 in _0x3ef682)){if(Array['isArray'](_0x360488))_0x3ef682[_0x530cc0]=Array[_0xb91d29(0x305)]({'length':_0x360488[_0xb91d29(0x3d2)]},()=>({}));else throw new Error(_0xb91d29(0x1dc)+_0x310cec);}if(Array['isArray'](_0x3ef682[_0x530cc0])){const _0x3a095d=_0x3ef682[_0x530cc0];if(Array['isArray'](_0x360488))for(let _0x5013a1=0x0;_0x5013a1<_0x3a095d['length'];_0x5013a1++){const _0x282e25=_0x3a095d[_0x5013a1];setValueByPath(_0x282e25,_0xb3e038[_0xb91d29(0x26b)](_0x563544+0x1),_0x360488[_0x5013a1]);}else for(const _0x4714ae of _0x3a095d){setValueByPath(_0x4714ae,_0xb3e038[_0xb91d29(0x26b)](_0x563544+0x1),_0x360488);}}return;}else{if(_0x310cec['endsWith'](_0xb91d29(0x1a7))){const _0x1f804d=_0x310cec[_0xb91d29(0x26b)](0x0,-0x3);!(_0x1f804d in _0x3ef682)&&(_0x3ef682[_0x1f804d]=[{}]);const _0x8972c1=_0x3ef682[_0x1f804d];setValueByPath(_0x8972c1[0x0],_0xb3e038[_0xb91d29(0x26b)](_0x563544+0x1),_0x360488);return;}}(!_0x3ef682[_0x310cec]||typeof _0x3ef682[_0x310cec]!==_0xb91d29(0x46a))&&(_0x3ef682[_0x310cec]={}),_0x3ef682=_0x3ef682[_0x310cec];}const _0xaf83c1=_0xb3e038[_0xb3e038[_0xb91d29(0x3d2)]-0x1],_0x338b76=_0x3ef682[_0xaf83c1];if(_0x338b76!==undefined){if(!_0x360488||typeof _0x360488==='object'&&Object[_0xb91d29(0x421)](_0x360488)[_0xb91d29(0x3d2)]===0x0)return;if(_0x360488===_0x338b76)return;if(typeof _0x338b76===_0xb91d29(0x46a)&&typeof _0x360488==='object'&&_0x338b76!==null&&_0x360488!==null)Object[_0xb91d29(0x64e)](_0x338b76,_0x360488);else throw new Error(_0xb91d29(0x6e3)+_0xaf83c1);}else{if(_0xaf83c1===_0xb91d29(0x33f)&&typeof _0x360488===_0xb91d29(0x46a)&&_0x360488!==null&&!Array[_0xb91d29(0x192)](_0x360488)){const _0x2a585f=_0x360488;Object[_0xb91d29(0x64e)](_0x3ef682,_0x2a585f);}else _0x3ef682[_0xaf83c1]=_0x360488;}}function getValueByPath(_0xe09b22,_0x434595,_0x469eef=undefined){const _0x3e17fd=a0_0x3530;try{if(_0x434595[_0x3e17fd(0x3d2)]===0x1&&_0x434595[0x0]===_0x3e17fd(0x33f))return _0xe09b22;for(let _0x2cc833=0x0;_0x2cc833<_0x434595[_0x3e17fd(0x3d2)];_0x2cc833++){if(typeof _0xe09b22!=='object'||_0xe09b22===null)return _0x469eef;const _0x467022=_0x434595[_0x2cc833];if(_0x467022[_0x3e17fd(0x53e)]('[]')){const _0x2fb4d3=_0x467022['slice'](0x0,-0x2);if(_0x2fb4d3 in _0xe09b22){const _0x4c589e=_0xe09b22[_0x2fb4d3];if(!Array[_0x3e17fd(0x192)](_0x4c589e))return _0x469eef;return _0x4c589e[_0x3e17fd(0x221)](_0x4e5688=>getValueByPath(_0x4e5688,_0x434595['slice'](_0x2cc833+0x1),_0x469eef));}else return _0x469eef;}else _0xe09b22=_0xe09b22[_0x467022];}return _0xe09b22;}catch(_0x5e5d03){if(_0x5e5d03 instanceof TypeError)return _0x469eef;throw _0x5e5d03;}}function moveValueByPath(_0x2851cf,_0x16c113){const _0x468b16=a0_0x3530;for(const [_0x27c32a,_0x24b75d]of Object[_0x468b16(0x1ae)](_0x16c113)){const _0x2b64a5=_0x27c32a['split']('.'),_0x1d886c=_0x24b75d[_0x468b16(0x406)]('.'),_0x4041a2=new Set();let _0x3003df=-0x1;for(let _0x2127d6=0x0;_0x2127d6<_0x2b64a5[_0x468b16(0x3d2)];_0x2127d6++){if(_0x2b64a5[_0x2127d6]==='*'){_0x3003df=_0x2127d6;break;}}if(_0x3003df!==-0x1&&_0x1d886c[_0x468b16(0x3d2)]>_0x3003df)for(let _0x583a97=_0x3003df;_0x583a97<_0x1d886c['length'];_0x583a97++){const _0x3a4374=_0x1d886c[_0x583a97];_0x3a4374!=='*'&&!_0x3a4374[_0x468b16(0x53e)]('[]')&&!_0x3a4374[_0x468b16(0x53e)]('[0]')&&_0x4041a2[_0x468b16(0x4be)](_0x3a4374);}_moveValueRecursive(_0x2851cf,_0x2b64a5,_0x1d886c,0x0,_0x4041a2);}}function _moveValueRecursive(_0x5d49aa,_0x202fdd,_0x469ffc,_0x5f5143,_0x1d0cde){const _0x57320d=a0_0x3530;if(_0x5f5143>=_0x202fdd[_0x57320d(0x3d2)])return;if(typeof _0x5d49aa!==_0x57320d(0x46a)||_0x5d49aa===null)return;const _0x1904ad=_0x202fdd[_0x5f5143];if(_0x1904ad[_0x57320d(0x53e)]('[]')){const _0x3a57de=_0x1904ad[_0x57320d(0x26b)](0x0,-0x2),_0x13727a=_0x5d49aa;if(_0x3a57de in _0x13727a&&Array[_0x57320d(0x192)](_0x13727a[_0x3a57de]))for(const _0x27b485 of _0x13727a[_0x3a57de]){_moveValueRecursive(_0x27b485,_0x202fdd,_0x469ffc,_0x5f5143+0x1,_0x1d0cde);}}else{if(_0x1904ad==='*'){if(typeof _0x5d49aa==='object'&&_0x5d49aa!==null&&!Array[_0x57320d(0x192)](_0x5d49aa)){const _0x429613=_0x5d49aa,_0x1620b8=Object[_0x57320d(0x421)](_0x429613)[_0x57320d(0x38a)](_0x47f751=>!_0x47f751['startsWith']('_')&&!_0x1d0cde[_0x57320d(0x399)](_0x47f751)),_0x15231d={};for(const _0x590612 of _0x1620b8){_0x15231d[_0x590612]=_0x429613[_0x590612];}for(const [_0x5a699a,_0x209717]of Object[_0x57320d(0x1ae)](_0x15231d)){const _0x2165eb=[];for(const _0xde1d0b of _0x469ffc[_0x57320d(0x26b)](_0x5f5143)){_0xde1d0b==='*'?_0x2165eb[_0x57320d(0x417)](_0x5a699a):_0x2165eb[_0x57320d(0x417)](_0xde1d0b);}setValueByPath(_0x429613,_0x2165eb,_0x209717);}for(const _0x2aff1c of _0x1620b8){delete _0x429613[_0x2aff1c];}}}else{const _0x33ab5=_0x5d49aa;_0x1904ad in _0x33ab5&&_moveValueRecursive(_0x33ab5[_0x1904ad],_0x202fdd,_0x469ffc,_0x5f5143+0x1,_0x1d0cde);}}}/**
12
+ * @license
13
+ * Copyright 2025 Google LLC
14
+ * SPDX-License-Identifier: Apache-2.0
15
+ */
16
+ function tBytes$1(_0x3630a9){const _0x226206=a0_0x3530;if(typeof _0x3630a9!==_0x226206(0x4ae))throw new Error(_0x226206(0x55a));return _0x3630a9;}/**
17
+ * @license
18
+ * Copyright 2025 Google LLC
19
+ * SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ function fetchPredictOperationParametersToVertex(_0x27ea96){const _0x2ce6f0=a0_0x3530,_0x50de8f={},_0x570ce7=getValueByPath(_0x27ea96,[_0x2ce6f0(0x706)]);_0x570ce7!=null&&setValueByPath(_0x50de8f,['operationName'],_0x570ce7);const _0x246133=getValueByPath(_0x27ea96,[_0x2ce6f0(0x70c)]);return _0x246133!=null&&setValueByPath(_0x50de8f,['_url',_0x2ce6f0(0x70c)],_0x246133),_0x50de8f;}function generateVideosOperationFromMldev$1(_0x3f32b9){const _0x56e34f=a0_0x3530,_0x452e65={},_0x3c041c=getValueByPath(_0x3f32b9,['name']);_0x3c041c!=null&&setValueByPath(_0x452e65,[_0x56e34f(0x68e)],_0x3c041c);const _0x14e54d=getValueByPath(_0x3f32b9,['metadata']);_0x14e54d!=null&&setValueByPath(_0x452e65,[_0x56e34f(0x3d3)],_0x14e54d);const _0x520e62=getValueByPath(_0x3f32b9,[_0x56e34f(0x183)]);_0x520e62!=null&&setValueByPath(_0x452e65,[_0x56e34f(0x183)],_0x520e62);const _0x67453f=getValueByPath(_0x3f32b9,[_0x56e34f(0x20b)]);_0x67453f!=null&&setValueByPath(_0x452e65,[_0x56e34f(0x20b)],_0x67453f);const _0x187274=getValueByPath(_0x3f32b9,[_0x56e34f(0x218),_0x56e34f(0x62e)]);return _0x187274!=null&&setValueByPath(_0x452e65,[_0x56e34f(0x218)],generateVideosResponseFromMldev$1(_0x187274)),_0x452e65;}function generateVideosOperationFromVertex$1(_0xbc34e0){const _0x1946cd=a0_0x3530,_0x47441e={},_0x4a1997=getValueByPath(_0xbc34e0,[_0x1946cd(0x68e)]);_0x4a1997!=null&&setValueByPath(_0x47441e,[_0x1946cd(0x68e)],_0x4a1997);const _0x389a8f=getValueByPath(_0xbc34e0,[_0x1946cd(0x3d3)]);_0x389a8f!=null&&setValueByPath(_0x47441e,['metadata'],_0x389a8f);const _0x47c7ef=getValueByPath(_0xbc34e0,['done']);_0x47c7ef!=null&&setValueByPath(_0x47441e,['done'],_0x47c7ef);const _0x1c390b=getValueByPath(_0xbc34e0,[_0x1946cd(0x20b)]);_0x1c390b!=null&&setValueByPath(_0x47441e,[_0x1946cd(0x20b)],_0x1c390b);const _0x51b1bd=getValueByPath(_0xbc34e0,[_0x1946cd(0x218)]);return _0x51b1bd!=null&&setValueByPath(_0x47441e,['response'],generateVideosResponseFromVertex$1(_0x51b1bd)),_0x47441e;}function generateVideosResponseFromMldev$1(_0x51cd30){const _0x2982dc=a0_0x3530,_0x448bb2={},_0x4bbbb1=getValueByPath(_0x51cd30,[_0x2982dc(0x4f7)]);if(_0x4bbbb1!=null){let _0x27eaeb=_0x4bbbb1;Array[_0x2982dc(0x192)](_0x27eaeb)&&(_0x27eaeb=_0x27eaeb['map'](_0xb1ba1f=>{return generatedVideoFromMldev$1(_0xb1ba1f);})),setValueByPath(_0x448bb2,[_0x2982dc(0x511)],_0x27eaeb);}const _0x31c957=getValueByPath(_0x51cd30,[_0x2982dc(0x702)]);_0x31c957!=null&&setValueByPath(_0x448bb2,[_0x2982dc(0x702)],_0x31c957);const _0x399ef6=getValueByPath(_0x51cd30,[_0x2982dc(0x2df)]);return _0x399ef6!=null&&setValueByPath(_0x448bb2,[_0x2982dc(0x2df)],_0x399ef6),_0x448bb2;}function generateVideosResponseFromVertex$1(_0x44f187){const _0xcc9fb8=a0_0x3530,_0x53d221={},_0x23c213=getValueByPath(_0x44f187,[_0xcc9fb8(0x68d)]);if(_0x23c213!=null){let _0x2a7fd8=_0x23c213;Array['isArray'](_0x2a7fd8)&&(_0x2a7fd8=_0x2a7fd8[_0xcc9fb8(0x221)](_0x1092ae=>{return generatedVideoFromVertex$1(_0x1092ae);})),setValueByPath(_0x53d221,['generatedVideos'],_0x2a7fd8);}const _0x1ffa62=getValueByPath(_0x44f187,['raiMediaFilteredCount']);_0x1ffa62!=null&&setValueByPath(_0x53d221,[_0xcc9fb8(0x702)],_0x1ffa62);const _0x5eb482=getValueByPath(_0x44f187,['raiMediaFilteredReasons']);return _0x5eb482!=null&&setValueByPath(_0x53d221,[_0xcc9fb8(0x2df)],_0x5eb482),_0x53d221;}function generatedVideoFromMldev$1(_0x483d7f){const _0x821a81=a0_0x3530,_0x12796f={},_0x59ad61=getValueByPath(_0x483d7f,[_0x821a81(0x315)]);return _0x59ad61!=null&&setValueByPath(_0x12796f,['video'],videoFromMldev$1(_0x59ad61)),_0x12796f;}function generatedVideoFromVertex$1(_0x14d9d1){const _0x23b346=a0_0x3530,_0x5c1291={},_0xa68da=getValueByPath(_0x14d9d1,[_0x23b346(0x33f)]);return _0xa68da!=null&&setValueByPath(_0x5c1291,[_0x23b346(0x315)],videoFromVertex$1(_0xa68da)),_0x5c1291;}function getOperationParametersToMldev(_0x53474b){const _0x5e5828=a0_0x3530,_0x1f554b={},_0xdb6ec3=getValueByPath(_0x53474b,[_0x5e5828(0x706)]);return _0xdb6ec3!=null&&setValueByPath(_0x1f554b,['_url',_0x5e5828(0x706)],_0xdb6ec3),_0x1f554b;}function getOperationParametersToVertex(_0x3a6700){const _0x2fc922=a0_0x3530,_0x4ffce7={},_0x3b802b=getValueByPath(_0x3a6700,['operationName']);return _0x3b802b!=null&&setValueByPath(_0x4ffce7,[_0x2fc922(0x1fb),_0x2fc922(0x706)],_0x3b802b),_0x4ffce7;}function importFileOperationFromMldev$1(_0x65aa09){const _0x36ba67=a0_0x3530,_0xe5e80b={},_0x3f40ab=getValueByPath(_0x65aa09,[_0x36ba67(0x68e)]);_0x3f40ab!=null&&setValueByPath(_0xe5e80b,[_0x36ba67(0x68e)],_0x3f40ab);const _0x2805b1=getValueByPath(_0x65aa09,[_0x36ba67(0x3d3)]);_0x2805b1!=null&&setValueByPath(_0xe5e80b,['metadata'],_0x2805b1);const _0x16cf62=getValueByPath(_0x65aa09,['done']);_0x16cf62!=null&&setValueByPath(_0xe5e80b,[_0x36ba67(0x183)],_0x16cf62);const _0x1c21b3=getValueByPath(_0x65aa09,[_0x36ba67(0x20b)]);_0x1c21b3!=null&&setValueByPath(_0xe5e80b,[_0x36ba67(0x20b)],_0x1c21b3);const _0x1abc60=getValueByPath(_0x65aa09,[_0x36ba67(0x218)]);return _0x1abc60!=null&&setValueByPath(_0xe5e80b,['response'],importFileResponseFromMldev$1(_0x1abc60)),_0xe5e80b;}function importFileResponseFromMldev$1(_0x5df86c){const _0x5efea3=a0_0x3530,_0x380522={},_0x34cbcc=getValueByPath(_0x5df86c,[_0x5efea3(0x1ab)]);_0x34cbcc!=null&&setValueByPath(_0x380522,[_0x5efea3(0x1ab)],_0x34cbcc);const _0x13b2d6=getValueByPath(_0x5df86c,['parent']);_0x13b2d6!=null&&setValueByPath(_0x380522,[_0x5efea3(0x61e)],_0x13b2d6);const _0x394125=getValueByPath(_0x5df86c,['documentName']);return _0x394125!=null&&setValueByPath(_0x380522,['documentName'],_0x394125),_0x380522;}function uploadToFileSearchStoreOperationFromMldev(_0x446cf6){const _0x2d1585=a0_0x3530,_0x31f805={},_0x11977c=getValueByPath(_0x446cf6,[_0x2d1585(0x68e)]);_0x11977c!=null&&setValueByPath(_0x31f805,[_0x2d1585(0x68e)],_0x11977c);const _0x1f5207=getValueByPath(_0x446cf6,['metadata']);_0x1f5207!=null&&setValueByPath(_0x31f805,[_0x2d1585(0x3d3)],_0x1f5207);const _0x3d2321=getValueByPath(_0x446cf6,[_0x2d1585(0x183)]);_0x3d2321!=null&&setValueByPath(_0x31f805,[_0x2d1585(0x183)],_0x3d2321);const _0x19fcf4=getValueByPath(_0x446cf6,[_0x2d1585(0x20b)]);_0x19fcf4!=null&&setValueByPath(_0x31f805,['error'],_0x19fcf4);const _0xf15f2e=getValueByPath(_0x446cf6,['response']);return _0xf15f2e!=null&&setValueByPath(_0x31f805,[_0x2d1585(0x218)],uploadToFileSearchStoreResponseFromMldev(_0xf15f2e)),_0x31f805;}function uploadToFileSearchStoreResponseFromMldev(_0x360814){const _0x176e8d=a0_0x3530,_0x5a4016={},_0x1069a4=getValueByPath(_0x360814,['sdkHttpResponse']);_0x1069a4!=null&&setValueByPath(_0x5a4016,[_0x176e8d(0x1ab)],_0x1069a4);const _0x253182=getValueByPath(_0x360814,['parent']);_0x253182!=null&&setValueByPath(_0x5a4016,['parent'],_0x253182);const _0x4cc89a=getValueByPath(_0x360814,[_0x176e8d(0x2f2)]);return _0x4cc89a!=null&&setValueByPath(_0x5a4016,['documentName'],_0x4cc89a),_0x5a4016;}function videoFromMldev$1(_0xef59cd){const _0x213e46=a0_0x3530,_0x3d73f0={},_0x2f0d04=getValueByPath(_0xef59cd,['uri']);_0x2f0d04!=null&&setValueByPath(_0x3d73f0,[_0x213e46(0x1d1)],_0x2f0d04);const _0x166154=getValueByPath(_0xef59cd,[_0x213e46(0x57e)]);_0x166154!=null&&setValueByPath(_0x3d73f0,[_0x213e46(0x255)],tBytes$1(_0x166154));const _0x5d49a0=getValueByPath(_0xef59cd,[_0x213e46(0x5fa)]);return _0x5d49a0!=null&&setValueByPath(_0x3d73f0,[_0x213e46(0x38c)],_0x5d49a0),_0x3d73f0;}function videoFromVertex$1(_0x4164d5){const _0x5042d7=a0_0x3530,_0x30cc71={},_0x29418c=getValueByPath(_0x4164d5,[_0x5042d7(0x569)]);_0x29418c!=null&&setValueByPath(_0x30cc71,['uri'],_0x29418c);const _0x372bab=getValueByPath(_0x4164d5,[_0x5042d7(0x178)]);_0x372bab!=null&&setValueByPath(_0x30cc71,[_0x5042d7(0x255)],tBytes$1(_0x372bab));const _0x558f72=getValueByPath(_0x4164d5,['mimeType']);return _0x558f72!=null&&setValueByPath(_0x30cc71,[_0x5042d7(0x38c)],_0x558f72),_0x30cc71;}/**
22
+ * @license
23
+ * Copyright 2025 Google LLC
24
+ * SPDX-License-Identifier: Apache-2.0
25
+ */
26
+ exports['Outcome']=void 0x0,function(_0x32dfd3){const _0xecb87=a0_0x3530;_0x32dfd3['OUTCOME_UNSPECIFIED']=_0xecb87(0x18d),_0x32dfd3[_0xecb87(0x5f1)]='OUTCOME_OK',_0x32dfd3['OUTCOME_FAILED']='OUTCOME_FAILED',_0x32dfd3['OUTCOME_DEADLINE_EXCEEDED']='OUTCOME_DEADLINE_EXCEEDED';}(exports['Outcome']||(exports[a0_0x254c3a(0x5d3)]={})),exports['Language']=void 0x0,function(_0x40436b){const _0x3df53b=a0_0x254c3a;_0x40436b[_0x3df53b(0x6c5)]=_0x3df53b(0x6c5),_0x40436b[_0x3df53b(0x679)]='PYTHON';}(exports[a0_0x254c3a(0x555)]||(exports[a0_0x254c3a(0x555)]={})),exports[a0_0x254c3a(0x5bf)]=void 0x0,function(_0x4ec23c){const _0x4ba3c1=a0_0x254c3a;_0x4ec23c[_0x4ba3c1(0x724)]='SCHEDULING_UNSPECIFIED',_0x4ec23c[_0x4ba3c1(0x43a)]=_0x4ba3c1(0x43a),_0x4ec23c[_0x4ba3c1(0x669)]='WHEN_IDLE',_0x4ec23c['INTERRUPT']=_0x4ba3c1(0x327);}(exports[a0_0x254c3a(0x5bf)]||(exports[a0_0x254c3a(0x5bf)]={})),exports[a0_0x254c3a(0x398)]=void 0x0,function(_0x22e6ec){const _0x5710fb=a0_0x254c3a;_0x22e6ec[_0x5710fb(0x3b4)]=_0x5710fb(0x3b4),_0x22e6ec['STRING']=_0x5710fb(0x20f),_0x22e6ec[_0x5710fb(0x50f)]=_0x5710fb(0x50f),_0x22e6ec[_0x5710fb(0x2da)]=_0x5710fb(0x2da),_0x22e6ec[_0x5710fb(0x23d)]='BOOLEAN',_0x22e6ec[_0x5710fb(0x355)]='ARRAY',_0x22e6ec[_0x5710fb(0x291)]='OBJECT',_0x22e6ec[_0x5710fb(0x2b5)]='NULL';}(exports['Type']||(exports[a0_0x254c3a(0x398)]={})),exports[a0_0x254c3a(0x368)]=void 0x0,function(_0x5396fe){const _0x1d351d=a0_0x254c3a;_0x5396fe[_0x1d351d(0x6b3)]=_0x1d351d(0x6b3),_0x5396fe[_0x1d351d(0x486)]=_0x1d351d(0x486),_0x5396fe['ELASTIC_SEARCH']=_0x1d351d(0x6a2);}(exports['ApiSpec']||(exports['ApiSpec']={})),exports[a0_0x254c3a(0x719)]=void 0x0,function(_0x48ea16){const _0x17d145=a0_0x254c3a;_0x48ea16[_0x17d145(0x543)]=_0x17d145(0x543),_0x48ea16[_0x17d145(0x17a)]=_0x17d145(0x17a),_0x48ea16[_0x17d145(0x6b4)]=_0x17d145(0x6b4),_0x48ea16[_0x17d145(0x4c9)]=_0x17d145(0x4c9),_0x48ea16[_0x17d145(0x25f)]=_0x17d145(0x25f),_0x48ea16['OAUTH']=_0x17d145(0x6d0),_0x48ea16[_0x17d145(0x4d7)]=_0x17d145(0x4d7);}(exports[a0_0x254c3a(0x719)]||(exports[a0_0x254c3a(0x719)]={})),exports[a0_0x254c3a(0x32e)]=void 0x0,function(_0x4d7d85){const _0x427ab2=a0_0x254c3a;_0x4d7d85['HTTP_IN_UNSPECIFIED']=_0x427ab2(0x48d),_0x4d7d85['HTTP_IN_QUERY']=_0x427ab2(0x46e),_0x4d7d85[_0x427ab2(0x52c)]=_0x427ab2(0x52c),_0x4d7d85[_0x427ab2(0x369)]=_0x427ab2(0x369),_0x4d7d85['HTTP_IN_BODY']=_0x427ab2(0x247),_0x4d7d85[_0x427ab2(0x24f)]=_0x427ab2(0x24f);}(exports[a0_0x254c3a(0x32e)]||(exports[a0_0x254c3a(0x32e)]={})),exports[a0_0x254c3a(0x444)]=void 0x0,function(_0x939909){const _0x30d786=a0_0x254c3a;_0x939909[_0x30d786(0x1f1)]=_0x30d786(0x1f1),_0x939909[_0x30d786(0x2b1)]=_0x30d786(0x2b1),_0x939909[_0x30d786(0x4d2)]=_0x30d786(0x4d2),_0x939909[_0x30d786(0x51c)]='BLOCK_HIGH_AND_ABOVE',_0x939909[_0x30d786(0x3eb)]='BLOCK_HIGHER_AND_ABOVE',_0x939909['BLOCK_VERY_HIGH_AND_ABOVE']=_0x30d786(0x614),_0x939909['BLOCK_ONLY_EXTREMELY_HIGH']=_0x30d786(0x222);}(exports[a0_0x254c3a(0x444)]||(exports[a0_0x254c3a(0x444)]={})),exports[a0_0x254c3a(0x442)]=void 0x0,function(_0x14f28b){const _0x239832=a0_0x254c3a;_0x14f28b[_0x239832(0x696)]=_0x239832(0x696),_0x14f28b[_0x239832(0x671)]='BLOCKING',_0x14f28b[_0x239832(0x61f)]='NON_BLOCKING';}(exports['Behavior']||(exports['Behavior']={})),exports[a0_0x254c3a(0x3dc)]=void 0x0,function(_0x1262e3){const _0x1c8468=a0_0x254c3a;_0x1262e3[_0x1c8468(0x31e)]=_0x1c8468(0x31e),_0x1262e3[_0x1c8468(0x6ca)]=_0x1c8468(0x6ca);}(exports[a0_0x254c3a(0x3dc)]||(exports[a0_0x254c3a(0x3dc)]={})),exports[a0_0x254c3a(0x71a)]=void 0x0,function(_0x7fb693){const _0x5e9763=a0_0x254c3a;_0x7fb693[_0x5e9763(0x31e)]='MODE_UNSPECIFIED',_0x7fb693['AUTO']=_0x5e9763(0x182),_0x7fb693[_0x5e9763(0x3f4)]=_0x5e9763(0x3f4),_0x7fb693[_0x5e9763(0x662)]=_0x5e9763(0x662),_0x7fb693[_0x5e9763(0x198)]=_0x5e9763(0x198);}(exports[a0_0x254c3a(0x71a)]||(exports['FunctionCallingConfigMode']={})),exports[a0_0x254c3a(0x4cc)]=void 0x0,function(_0x304f76){const _0x1115c7=a0_0x254c3a;_0x304f76[_0x1115c7(0x674)]=_0x1115c7(0x674),_0x304f76['LOW']=_0x1115c7(0x409),_0x304f76[_0x1115c7(0x300)]='MEDIUM',_0x304f76[_0x1115c7(0x590)]=_0x1115c7(0x590),_0x304f76[_0x1115c7(0x3e1)]=_0x1115c7(0x3e1);}(exports[a0_0x254c3a(0x4cc)]||(exports[a0_0x254c3a(0x4cc)]={})),exports[a0_0x254c3a(0x68c)]=void 0x0,function(_0x59e989){const _0x17764e=a0_0x254c3a;_0x59e989[_0x17764e(0x4df)]=_0x17764e(0x4df),_0x59e989[_0x17764e(0x718)]=_0x17764e(0x718),_0x59e989[_0x17764e(0x654)]='HARM_CATEGORY_HATE_SPEECH',_0x59e989['HARM_CATEGORY_SEXUALLY_EXPLICIT']=_0x17764e(0x684),_0x59e989[_0x17764e(0x579)]='HARM_CATEGORY_DANGEROUS_CONTENT',_0x59e989[_0x17764e(0x2e0)]=_0x17764e(0x2e0),_0x59e989['HARM_CATEGORY_IMAGE_HATE']=_0x17764e(0x26c),_0x59e989[_0x17764e(0x528)]=_0x17764e(0x528),_0x59e989['HARM_CATEGORY_IMAGE_HARASSMENT']=_0x17764e(0x456),_0x59e989['HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT']='HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT',_0x59e989[_0x17764e(0x607)]=_0x17764e(0x607);}(exports[a0_0x254c3a(0x68c)]||(exports[a0_0x254c3a(0x68c)]={})),exports['HarmBlockMethod']=void 0x0,function(_0x2addd4){const _0x445217=a0_0x254c3a;_0x2addd4[_0x445217(0x26d)]=_0x445217(0x26d),_0x2addd4[_0x445217(0x405)]='SEVERITY',_0x2addd4[_0x445217(0x56c)]='PROBABILITY';}(exports[a0_0x254c3a(0x3ac)]||(exports['HarmBlockMethod']={})),exports['HarmBlockThreshold']=void 0x0,function(_0x3a7ad1){const _0x860bc4=a0_0x254c3a;_0x3a7ad1[_0x860bc4(0x249)]=_0x860bc4(0x249),_0x3a7ad1[_0x860bc4(0x2b1)]=_0x860bc4(0x2b1),_0x3a7ad1['BLOCK_MEDIUM_AND_ABOVE']=_0x860bc4(0x4d2),_0x3a7ad1[_0x860bc4(0x2a5)]=_0x860bc4(0x2a5),_0x3a7ad1[_0x860bc4(0x56d)]='BLOCK_NONE',_0x3a7ad1[_0x860bc4(0x474)]='OFF';}(exports[a0_0x254c3a(0x1b3)]||(exports[a0_0x254c3a(0x1b3)]={})),exports[a0_0x254c3a(0x3f7)]=void 0x0,function(_0x230a7d){const _0x1a9f13=a0_0x254c3a;_0x230a7d[_0x1a9f13(0x39f)]='FINISH_REASON_UNSPECIFIED',_0x230a7d[_0x1a9f13(0x1e7)]=_0x1a9f13(0x1e7),_0x230a7d['MAX_TOKENS']=_0x1a9f13(0x6d3),_0x230a7d[_0x1a9f13(0x216)]=_0x1a9f13(0x216),_0x230a7d[_0x1a9f13(0x4fe)]=_0x1a9f13(0x4fe),_0x230a7d[_0x1a9f13(0x60f)]=_0x1a9f13(0x60f),_0x230a7d[_0x1a9f13(0x424)]=_0x1a9f13(0x424),_0x230a7d[_0x1a9f13(0x611)]=_0x1a9f13(0x611),_0x230a7d[_0x1a9f13(0x3b2)]=_0x1a9f13(0x3b2),_0x230a7d[_0x1a9f13(0x189)]=_0x1a9f13(0x189),_0x230a7d[_0x1a9f13(0x55f)]=_0x1a9f13(0x55f),_0x230a7d['IMAGE_SAFETY']=_0x1a9f13(0x554),_0x230a7d['UNEXPECTED_TOOL_CALL']=_0x1a9f13(0x3b1),_0x230a7d['IMAGE_PROHIBITED_CONTENT']=_0x1a9f13(0x270),_0x230a7d[_0x1a9f13(0x597)]=_0x1a9f13(0x597),_0x230a7d['IMAGE_RECITATION']='IMAGE_RECITATION',_0x230a7d[_0x1a9f13(0x4bb)]=_0x1a9f13(0x4bb);}(exports['FinishReason']||(exports['FinishReason']={})),exports['HarmProbability']=void 0x0,function(_0x1898b9){const _0x44796e=a0_0x254c3a;_0x1898b9[_0x44796e(0x3b5)]=_0x44796e(0x3b5),_0x1898b9[_0x44796e(0x274)]=_0x44796e(0x274),_0x1898b9[_0x44796e(0x409)]=_0x44796e(0x409),_0x1898b9['MEDIUM']=_0x44796e(0x300),_0x1898b9['HIGH']=_0x44796e(0x590);}(exports[a0_0x254c3a(0x4b8)]||(exports[a0_0x254c3a(0x4b8)]={})),exports['HarmSeverity']=void 0x0,function(_0x456c12){const _0x38f6b3=a0_0x254c3a;_0x456c12[_0x38f6b3(0x482)]=_0x38f6b3(0x482),_0x456c12[_0x38f6b3(0x4f6)]=_0x38f6b3(0x4f6),_0x456c12[_0x38f6b3(0x631)]='HARM_SEVERITY_LOW',_0x456c12[_0x38f6b3(0x4c5)]='HARM_SEVERITY_MEDIUM',_0x456c12[_0x38f6b3(0x45f)]=_0x38f6b3(0x45f);}(exports[a0_0x254c3a(0x700)]||(exports[a0_0x254c3a(0x700)]={})),exports[a0_0x254c3a(0x1e5)]=void 0x0,function(_0x2059fd){const _0x52eb56=a0_0x254c3a;_0x2059fd[_0x52eb56(0x23b)]=_0x52eb56(0x23b),_0x2059fd[_0x52eb56(0x1b9)]=_0x52eb56(0x1b9),_0x2059fd[_0x52eb56(0x214)]='URL_RETRIEVAL_STATUS_ERROR',_0x2059fd[_0x52eb56(0x5b1)]=_0x52eb56(0x5b1),_0x2059fd[_0x52eb56(0x2f3)]='URL_RETRIEVAL_STATUS_UNSAFE';}(exports[a0_0x254c3a(0x1e5)]||(exports[a0_0x254c3a(0x1e5)]={})),exports['BlockedReason']=void 0x0,function(_0x51def2){const _0x12fcec=a0_0x254c3a;_0x51def2['BLOCKED_REASON_UNSPECIFIED']='BLOCKED_REASON_UNSPECIFIED',_0x51def2[_0x12fcec(0x216)]=_0x12fcec(0x216),_0x51def2[_0x12fcec(0x424)]=_0x12fcec(0x424),_0x51def2[_0x12fcec(0x611)]=_0x12fcec(0x611),_0x51def2[_0x12fcec(0x3b2)]='PROHIBITED_CONTENT',_0x51def2[_0x12fcec(0x554)]='IMAGE_SAFETY',_0x51def2['MODEL_ARMOR']=_0x12fcec(0x635),_0x51def2[_0x12fcec(0x3c8)]=_0x12fcec(0x3c8);}(exports['BlockedReason']||(exports[a0_0x254c3a(0x352)]={})),exports['TrafficType']=void 0x0,function(_0x57e3d6){const _0x12bd54=a0_0x254c3a;_0x57e3d6[_0x12bd54(0x389)]=_0x12bd54(0x389),_0x57e3d6['ON_DEMAND']=_0x12bd54(0x190),_0x57e3d6['PROVISIONED_THROUGHPUT']=_0x12bd54(0x5e4);}(exports[a0_0x254c3a(0x28a)]||(exports[a0_0x254c3a(0x28a)]={})),exports[a0_0x254c3a(0x5cd)]=void 0x0,function(_0x449b7e){const _0x408e27=a0_0x254c3a;_0x449b7e[_0x408e27(0x338)]=_0x408e27(0x338),_0x449b7e[_0x408e27(0x6c9)]=_0x408e27(0x6c9),_0x449b7e[_0x408e27(0x689)]='IMAGE',_0x449b7e[_0x408e27(0x40f)]='AUDIO';}(exports[a0_0x254c3a(0x5cd)]||(exports[a0_0x254c3a(0x5cd)]={})),exports[a0_0x254c3a(0x68a)]=void 0x0,function(_0x3abfa2){const _0x3e024a=a0_0x254c3a;_0x3abfa2['MEDIA_RESOLUTION_UNSPECIFIED']=_0x3e024a(0x469),_0x3abfa2[_0x3e024a(0x1a4)]='MEDIA_RESOLUTION_LOW',_0x3abfa2['MEDIA_RESOLUTION_MEDIUM']=_0x3e024a(0x19c),_0x3abfa2[_0x3e024a(0x37a)]=_0x3e024a(0x37a);}(exports[a0_0x254c3a(0x68a)]||(exports[a0_0x254c3a(0x68a)]={})),exports[a0_0x254c3a(0x5c4)]=void 0x0,function(_0x2503fd){const _0x21132b=a0_0x254c3a;_0x2503fd['TUNING_MODE_UNSPECIFIED']=_0x21132b(0x331),_0x2503fd['TUNING_MODE_FULL']='TUNING_MODE_FULL',_0x2503fd[_0x21132b(0x3ea)]=_0x21132b(0x3ea);}(exports[a0_0x254c3a(0x5c4)]||(exports[a0_0x254c3a(0x5c4)]={})),exports[a0_0x254c3a(0x279)]=void 0x0,function(_0x3fbabc){const _0x4b37d8=a0_0x254c3a;_0x3fbabc[_0x4b37d8(0x268)]=_0x4b37d8(0x268),_0x3fbabc[_0x4b37d8(0x6a5)]=_0x4b37d8(0x6a5),_0x3fbabc[_0x4b37d8(0x3f0)]=_0x4b37d8(0x3f0),_0x3fbabc[_0x4b37d8(0x461)]=_0x4b37d8(0x461),_0x3fbabc[_0x4b37d8(0x236)]=_0x4b37d8(0x236),_0x3fbabc[_0x4b37d8(0x685)]=_0x4b37d8(0x685),_0x3fbabc['ADAPTER_SIZE_THIRTY_TWO']=_0x4b37d8(0x334);}(exports['AdapterSize']||(exports[a0_0x254c3a(0x279)]={})),exports[a0_0x254c3a(0x415)]=void 0x0,function(_0x3e1fe8){const _0x16fa30=a0_0x254c3a;_0x3e1fe8[_0x16fa30(0x396)]='JOB_STATE_UNSPECIFIED',_0x3e1fe8[_0x16fa30(0x657)]=_0x16fa30(0x657),_0x3e1fe8[_0x16fa30(0x34b)]=_0x16fa30(0x34b),_0x3e1fe8[_0x16fa30(0x328)]='JOB_STATE_RUNNING',_0x3e1fe8['JOB_STATE_SUCCEEDED']=_0x16fa30(0x5a1),_0x3e1fe8['JOB_STATE_FAILED']=_0x16fa30(0x326),_0x3e1fe8[_0x16fa30(0x401)]='JOB_STATE_CANCELLING',_0x3e1fe8[_0x16fa30(0x4cf)]=_0x16fa30(0x4cf),_0x3e1fe8[_0x16fa30(0x538)]=_0x16fa30(0x538),_0x3e1fe8['JOB_STATE_EXPIRED']=_0x16fa30(0x51d),_0x3e1fe8[_0x16fa30(0x4dc)]=_0x16fa30(0x4dc),_0x3e1fe8[_0x16fa30(0x6da)]='JOB_STATE_PARTIALLY_SUCCEEDED';}(exports[a0_0x254c3a(0x415)]||(exports[a0_0x254c3a(0x415)]={})),exports[a0_0x254c3a(0x612)]=void 0x0,function(_0x35545e){const _0x16d50c=a0_0x254c3a;_0x35545e['TUNING_TASK_UNSPECIFIED']='TUNING_TASK_UNSPECIFIED',_0x35545e[_0x16d50c(0x50a)]=_0x16d50c(0x50a),_0x35545e['TUNING_TASK_T2V']=_0x16d50c(0x3e9),_0x35545e[_0x16d50c(0x63d)]='TUNING_TASK_R2V';}(exports['TuningTask']||(exports[a0_0x254c3a(0x612)]={})),exports[a0_0x254c3a(0x40a)]=void 0x0,function(_0x5eb394){const _0x4b35a2=a0_0x254c3a;_0x5eb394['MEDIA_RESOLUTION_UNSPECIFIED']=_0x4b35a2(0x469),_0x5eb394[_0x4b35a2(0x1a4)]='MEDIA_RESOLUTION_LOW',_0x5eb394[_0x4b35a2(0x19c)]=_0x4b35a2(0x19c),_0x5eb394[_0x4b35a2(0x37a)]='MEDIA_RESOLUTION_HIGH',_0x5eb394['MEDIA_RESOLUTION_ULTRA_HIGH']='MEDIA_RESOLUTION_ULTRA_HIGH';}(exports[a0_0x254c3a(0x40a)]||(exports['PartMediaResolutionLevel']={})),exports['ResourceScope']=void 0x0,function(_0x242746){const _0x265938=a0_0x254c3a;_0x242746[_0x265938(0x3fe)]=_0x265938(0x3fe);}(exports[a0_0x254c3a(0x26f)]||(exports['ResourceScope']={})),exports[a0_0x254c3a(0x69d)]=void 0x0,function(_0xff868f){const _0xc31680=a0_0x254c3a;_0xff868f['FEATURE_SELECTION_PREFERENCE_UNSPECIFIED']=_0xc31680(0x1f4),_0xff868f[_0xc31680(0x6ae)]=_0xc31680(0x6ae),_0xff868f[_0xc31680(0x5fe)]=_0xc31680(0x5fe),_0xff868f[_0xc31680(0x3f2)]=_0xc31680(0x3f2);}(exports['FeatureSelectionPreference']||(exports[a0_0x254c3a(0x69d)]={})),exports[a0_0x254c3a(0x3a0)]=void 0x0,function(_0x9cc75c){const _0x2058c1=a0_0x254c3a;_0x9cc75c['ENVIRONMENT_UNSPECIFIED']=_0x2058c1(0x6eb),_0x9cc75c['ENVIRONMENT_BROWSER']=_0x2058c1(0x659);}(exports[a0_0x254c3a(0x3a0)]||(exports[a0_0x254c3a(0x3a0)]={})),exports[a0_0x254c3a(0x664)]=void 0x0,function(_0x49ca4f){const _0x5cad34=a0_0x254c3a;_0x49ca4f[_0x5cad34(0x2b1)]=_0x5cad34(0x2b1),_0x49ca4f[_0x5cad34(0x4d2)]='BLOCK_MEDIUM_AND_ABOVE',_0x49ca4f[_0x5cad34(0x2a5)]=_0x5cad34(0x2a5),_0x49ca4f['BLOCK_NONE']=_0x5cad34(0x56d);}(exports[a0_0x254c3a(0x664)]||(exports[a0_0x254c3a(0x664)]={})),exports[a0_0x254c3a(0x2d0)]=void 0x0,function(_0x1e1810){const _0xcf8f56=a0_0x254c3a;_0x1e1810[_0xcf8f56(0x2f0)]=_0xcf8f56(0x2f0),_0x1e1810[_0xcf8f56(0x6fd)]=_0xcf8f56(0x6fd),_0x1e1810[_0xcf8f56(0x5d0)]=_0xcf8f56(0x5d0);}(exports['PersonGeneration']||(exports[a0_0x254c3a(0x2d0)]={})),exports[a0_0x254c3a(0x655)]=void 0x0,function(_0x555470){const _0x208609=a0_0x254c3a;_0x555470[_0x208609(0x471)]='auto',_0x555470['en']='en',_0x555470['ja']='ja',_0x555470['ko']='ko',_0x555470['hi']='hi',_0x555470['zh']='zh',_0x555470['pt']='pt',_0x555470['es']='es';}(exports[a0_0x254c3a(0x655)]||(exports[a0_0x254c3a(0x655)]={})),exports['MaskReferenceMode']=void 0x0,function(_0x3084cc){const _0x5da683=a0_0x254c3a;_0x3084cc[_0x5da683(0x6b1)]=_0x5da683(0x6b1),_0x3084cc['MASK_MODE_USER_PROVIDED']=_0x5da683(0x4a8),_0x3084cc[_0x5da683(0x272)]=_0x5da683(0x272),_0x3084cc[_0x5da683(0x3dd)]=_0x5da683(0x3dd),_0x3084cc[_0x5da683(0x2cc)]=_0x5da683(0x2cc);}(exports[a0_0x254c3a(0x428)]||(exports[a0_0x254c3a(0x428)]={})),exports[a0_0x254c3a(0x35d)]=void 0x0,function(_0x2d32f7){const _0x573922=a0_0x254c3a;_0x2d32f7[_0x573922(0x2ee)]=_0x573922(0x2ee),_0x2d32f7['CONTROL_TYPE_CANNY']=_0x573922(0x2bc),_0x2d32f7[_0x573922(0x4d4)]=_0x573922(0x4d4),_0x2d32f7[_0x573922(0x53b)]=_0x573922(0x53b);}(exports[a0_0x254c3a(0x35d)]||(exports[a0_0x254c3a(0x35d)]={})),exports['SubjectReferenceType']=void 0x0,function(_0xadc24b){const _0x556f3e=a0_0x254c3a;_0xadc24b['SUBJECT_TYPE_DEFAULT']=_0x556f3e(0x703),_0xadc24b['SUBJECT_TYPE_PERSON']=_0x556f3e(0x5e9),_0xadc24b[_0x556f3e(0x61b)]=_0x556f3e(0x61b),_0xadc24b[_0x556f3e(0x38e)]=_0x556f3e(0x38e);}(exports[a0_0x254c3a(0x269)]||(exports[a0_0x254c3a(0x269)]={})),exports[a0_0x254c3a(0x40e)]=void 0x0,function(_0x358b20){const _0x4a2a9e=a0_0x254c3a;_0x358b20['EDIT_MODE_DEFAULT']=_0x4a2a9e(0x4a5),_0x358b20[_0x4a2a9e(0x50e)]=_0x4a2a9e(0x50e),_0x358b20[_0x4a2a9e(0x59e)]='EDIT_MODE_INPAINT_INSERTION',_0x358b20[_0x4a2a9e(0x63b)]='EDIT_MODE_OUTPAINT',_0x358b20['EDIT_MODE_CONTROLLED_EDITING']=_0x4a2a9e(0x5cc),_0x358b20[_0x4a2a9e(0x681)]=_0x4a2a9e(0x681),_0x358b20['EDIT_MODE_BGSWAP']=_0x4a2a9e(0x6b9),_0x358b20['EDIT_MODE_PRODUCT_IMAGE']=_0x4a2a9e(0x447);}(exports[a0_0x254c3a(0x40e)]||(exports['EditMode']={})),exports[a0_0x254c3a(0x20e)]=void 0x0,function(_0x1d4fa6){const _0x1fdd7e=a0_0x254c3a;_0x1d4fa6[_0x1fdd7e(0x1ff)]=_0x1fdd7e(0x1ff),_0x1d4fa6[_0x1fdd7e(0x354)]=_0x1fdd7e(0x354),_0x1d4fa6[_0x1fdd7e(0x6c2)]=_0x1fdd7e(0x6c2),_0x1d4fa6[_0x1fdd7e(0x1d9)]=_0x1fdd7e(0x1d9),_0x1d4fa6[_0x1fdd7e(0x3c2)]=_0x1fdd7e(0x3c2);}(exports['SegmentMode']||(exports[a0_0x254c3a(0x20e)]={})),exports[a0_0x254c3a(0x3da)]=void 0x0,function(_0x15d8ca){const _0x44af28=a0_0x254c3a;_0x15d8ca[_0x44af28(0x714)]='ASSET',_0x15d8ca[_0x44af28(0x347)]=_0x44af28(0x347);}(exports[a0_0x254c3a(0x3da)]||(exports[a0_0x254c3a(0x3da)]={})),exports[a0_0x254c3a(0x562)]=void 0x0,function(_0x50ac9e){const _0x4b637c=a0_0x254c3a;_0x50ac9e['INSERT']=_0x4b637c(0x1f6),_0x50ac9e[_0x4b637c(0x2fd)]=_0x4b637c(0x2fd),_0x50ac9e[_0x4b637c(0x520)]=_0x4b637c(0x520),_0x50ac9e[_0x4b637c(0x3ef)]='OUTPAINT';}(exports[a0_0x254c3a(0x562)]||(exports['VideoGenerationMaskMode']={})),exports[a0_0x254c3a(0x207)]=void 0x0,function(_0x3a2a46){const _0x22724a=a0_0x254c3a;_0x3a2a46[_0x22724a(0x3fc)]=_0x22724a(0x3fc),_0x3a2a46[_0x22724a(0x6e0)]='LOSSLESS';}(exports[a0_0x254c3a(0x207)]||(exports[a0_0x254c3a(0x207)]={})),exports[a0_0x254c3a(0x57c)]=void 0x0,function(_0x203f97){const _0x2c1fb9=a0_0x254c3a;_0x203f97[_0x2c1fb9(0x2e5)]='SUPERVISED_FINE_TUNING',_0x203f97[_0x2c1fb9(0x4ea)]='PREFERENCE_TUNING',_0x203f97[_0x2c1fb9(0x53a)]=_0x2c1fb9(0x53a);}(exports[a0_0x254c3a(0x57c)]||(exports[a0_0x254c3a(0x57c)]={})),exports[a0_0x254c3a(0x215)]=void 0x0,function(_0x45dfff){const _0x4bede7=a0_0x254c3a;_0x45dfff[_0x4bede7(0x239)]=_0x4bede7(0x239),_0x45dfff[_0x4bede7(0x4ec)]=_0x4bede7(0x4ec),_0x45dfff[_0x4bede7(0x17c)]='STATE_ACTIVE',_0x45dfff[_0x4bede7(0x5fc)]='STATE_FAILED';}(exports[a0_0x254c3a(0x215)]||(exports[a0_0x254c3a(0x215)]={})),exports[a0_0x254c3a(0x663)]=void 0x0,function(_0x2209fc){const _0x1c76ed=a0_0x254c3a;_0x2209fc['STATE_UNSPECIFIED']='STATE_UNSPECIFIED',_0x2209fc[_0x1c76ed(0x6ab)]=_0x1c76ed(0x6ab),_0x2209fc[_0x1c76ed(0x48c)]=_0x1c76ed(0x48c),_0x2209fc[_0x1c76ed(0x2bf)]=_0x1c76ed(0x2bf);}(exports[a0_0x254c3a(0x663)]||(exports['FileState']={})),exports[a0_0x254c3a(0x5a3)]=void 0x0,function(_0x337592){const _0x4fb9c6=a0_0x254c3a;_0x337592[_0x4fb9c6(0x2ea)]=_0x4fb9c6(0x2ea),_0x337592['UPLOADED']=_0x4fb9c6(0x660),_0x337592[_0x4fb9c6(0x205)]=_0x4fb9c6(0x205),_0x337592[_0x4fb9c6(0x3de)]='REGISTERED';}(exports[a0_0x254c3a(0x5a3)]||(exports['FileSource']={})),exports['TurnCompleteReason']=void 0x0,function(_0x1863da){const _0x34ac5c=a0_0x254c3a;_0x1863da[_0x34ac5c(0x541)]='TURN_COMPLETE_REASON_UNSPECIFIED',_0x1863da[_0x34ac5c(0x55f)]='MALFORMED_FUNCTION_CALL',_0x1863da['RESPONSE_REJECTED']=_0x34ac5c(0x37c),_0x1863da[_0x34ac5c(0x330)]=_0x34ac5c(0x330);}(exports['TurnCompleteReason']||(exports['TurnCompleteReason']={})),exports[a0_0x254c3a(0x201)]=void 0x0,function(_0x53e727){const _0xcdea33=a0_0x254c3a;_0x53e727[_0xcdea33(0x338)]=_0xcdea33(0x338),_0x53e727[_0xcdea33(0x6c9)]=_0xcdea33(0x6c9),_0x53e727[_0xcdea33(0x689)]=_0xcdea33(0x689),_0x53e727[_0xcdea33(0x2ad)]=_0xcdea33(0x2ad),_0x53e727[_0xcdea33(0x40f)]=_0xcdea33(0x40f),_0x53e727[_0xcdea33(0x5de)]=_0xcdea33(0x5de);}(exports[a0_0x254c3a(0x201)]||(exports['MediaModality']={})),exports[a0_0x254c3a(0x44a)]=void 0x0,function(_0x164a07){const _0x1c2036=a0_0x254c3a;_0x164a07[_0x1c2036(0x2eb)]='VAD_SIGNAL_TYPE_UNSPECIFIED',_0x164a07[_0x1c2036(0x33a)]=_0x1c2036(0x33a),_0x164a07[_0x1c2036(0x36f)]=_0x1c2036(0x36f);}(exports[a0_0x254c3a(0x44a)]||(exports[a0_0x254c3a(0x44a)]={})),exports['VoiceActivityType']=void 0x0,function(_0x2955fb){const _0x1f4f05=a0_0x254c3a;_0x2955fb['TYPE_UNSPECIFIED']='TYPE_UNSPECIFIED',_0x2955fb[_0x1f4f05(0x5d5)]=_0x1f4f05(0x5d5),_0x2955fb[_0x1f4f05(0x3b9)]='ACTIVITY_END';}(exports[a0_0x254c3a(0x6e4)]||(exports[a0_0x254c3a(0x6e4)]={})),exports['StartSensitivity']=void 0x0,function(_0x981088){const _0x4bb59f=a0_0x254c3a;_0x981088['START_SENSITIVITY_UNSPECIFIED']=_0x4bb59f(0x6b8),_0x981088[_0x4bb59f(0x1b1)]=_0x4bb59f(0x1b1),_0x981088[_0x4bb59f(0x542)]=_0x4bb59f(0x542);}(exports[a0_0x254c3a(0x534)]||(exports['StartSensitivity']={})),exports['EndSensitivity']=void 0x0,function(_0x1029ae){const _0x4a84a9=a0_0x254c3a;_0x1029ae['END_SENSITIVITY_UNSPECIFIED']=_0x4a84a9(0x616),_0x1029ae[_0x4a84a9(0x31a)]=_0x4a84a9(0x31a),_0x1029ae[_0x4a84a9(0x4ab)]=_0x4a84a9(0x4ab);}(exports[a0_0x254c3a(0x5d8)]||(exports[a0_0x254c3a(0x5d8)]={})),exports[a0_0x254c3a(0x24d)]=void 0x0,function(_0x285d3c){const _0x7b14df=a0_0x254c3a;_0x285d3c[_0x7b14df(0x5d1)]=_0x7b14df(0x5d1),_0x285d3c[_0x7b14df(0x5f6)]=_0x7b14df(0x5f6),_0x285d3c[_0x7b14df(0x34f)]=_0x7b14df(0x34f);}(exports[a0_0x254c3a(0x24d)]||(exports['ActivityHandling']={})),exports[a0_0x254c3a(0x6db)]=void 0x0,function(_0x30be2c){const _0x256e63=a0_0x254c3a;_0x30be2c[_0x256e63(0x219)]=_0x256e63(0x219),_0x30be2c['TURN_INCLUDES_ONLY_ACTIVITY']=_0x256e63(0x453),_0x30be2c[_0x256e63(0x254)]='TURN_INCLUDES_ALL_INPUT';}(exports[a0_0x254c3a(0x6db)]||(exports[a0_0x254c3a(0x6db)]={})),exports['Scale']=void 0x0,function(_0x3415c9){const _0x3ffcfc=a0_0x254c3a;_0x3415c9[_0x3ffcfc(0x637)]=_0x3ffcfc(0x637),_0x3415c9[_0x3ffcfc(0x623)]='C_MAJOR_A_MINOR',_0x3415c9[_0x3ffcfc(0x686)]=_0x3ffcfc(0x686),_0x3415c9[_0x3ffcfc(0x18f)]='D_MAJOR_B_MINOR',_0x3415c9['E_FLAT_MAJOR_C_MINOR']=_0x3ffcfc(0x45c),_0x3415c9[_0x3ffcfc(0x364)]=_0x3ffcfc(0x364),_0x3415c9[_0x3ffcfc(0x213)]=_0x3ffcfc(0x213),_0x3415c9[_0x3ffcfc(0x52a)]=_0x3ffcfc(0x52a),_0x3415c9['G_MAJOR_E_MINOR']=_0x3ffcfc(0x2d4),_0x3415c9[_0x3ffcfc(0x6c3)]=_0x3ffcfc(0x6c3),_0x3415c9[_0x3ffcfc(0x605)]='A_MAJOR_G_FLAT_MINOR',_0x3415c9[_0x3ffcfc(0x6d8)]=_0x3ffcfc(0x6d8),_0x3415c9[_0x3ffcfc(0x3b6)]='B_MAJOR_A_FLAT_MINOR';}(exports[a0_0x254c3a(0x43e)]||(exports['Scale']={})),exports[a0_0x254c3a(0x4d0)]=void 0x0,function(_0x3605aa){const _0x2b7841=a0_0x254c3a;_0x3605aa[_0x2b7841(0x211)]='MUSIC_GENERATION_MODE_UNSPECIFIED',_0x3605aa[_0x2b7841(0x3b0)]='QUALITY',_0x3605aa['DIVERSITY']=_0x2b7841(0x63e),_0x3605aa[_0x2b7841(0x27e)]='VOCALIZATION';}(exports[a0_0x254c3a(0x4d0)]||(exports[a0_0x254c3a(0x4d0)]={})),exports['LiveMusicPlaybackControl']=void 0x0,function(_0x469926){const _0x5ae02f=a0_0x254c3a;_0x469926['PLAYBACK_CONTROL_UNSPECIFIED']=_0x5ae02f(0x46b),_0x469926['PLAY']=_0x5ae02f(0x1d7),_0x469926['PAUSE']=_0x5ae02f(0x383),_0x469926[_0x5ae02f(0x1e7)]=_0x5ae02f(0x1e7),_0x469926['RESET_CONTEXT']=_0x5ae02f(0x524);}(exports[a0_0x254c3a(0x301)]||(exports['LiveMusicPlaybackControl']={}));class FunctionResponseBlob{}class FunctionResponseFileData{}class FunctionResponsePart{}function createFunctionResponsePartFromBase64(_0x572523,_0x671496){return{'inlineData':{'data':_0x572523,'mimeType':_0x671496}};}function createFunctionResponsePartFromUri(_0x46743d,_0x9b1fca){return{'fileData':{'fileUri':_0x46743d,'mimeType':_0x9b1fca}};}class FunctionResponse{}function createPartFromUri(_0xb5a752,_0x16d7ea,_0x5b1637){const _0x155692=a0_0x254c3a;return Object[_0x155692(0x64e)]({'fileData':{'fileUri':_0xb5a752,'mimeType':_0x16d7ea}},_0x5b1637&&{'mediaResolution':{'level':_0x5b1637}});}function createPartFromText(_0x311995){return{'text':_0x311995};}function createPartFromFunctionCall(_0x27c4a8,_0x54db29){return{'functionCall':{'name':_0x27c4a8,'args':_0x54db29}};}function createPartFromFunctionResponse(_0x2ecc95,_0x49db0a,_0x2dfc7e,_0x5335a1=[]){const _0x5cc0a0=a0_0x254c3a;return{'functionResponse':Object[_0x5cc0a0(0x64e)]({'id':_0x2ecc95,'name':_0x49db0a,'response':_0x2dfc7e},_0x5335a1[_0x5cc0a0(0x3d2)]>0x0&&{'parts':_0x5335a1})};}function createPartFromBase64(_0x189f81,_0x37ac39,_0x26ab9b){const _0x44ed7c=a0_0x254c3a;return Object[_0x44ed7c(0x64e)]({'inlineData':{'data':_0x189f81,'mimeType':_0x37ac39}},_0x26ab9b&&{'mediaResolution':{'level':_0x26ab9b}});}function createPartFromCodeExecutionResult(_0x3e41f0,_0xe02357){return{'codeExecutionResult':{'outcome':_0x3e41f0,'output':_0xe02357}};}function createPartFromExecutableCode(_0x51c56d,_0x2dc0e2){return{'executableCode':{'code':_0x51c56d,'language':_0x2dc0e2}};}function _isPart(_0x2cd171){const _0x4c193c=a0_0x254c3a;if(typeof _0x2cd171==='object'&&_0x2cd171!==null)return _0x4c193c(0x26e)in _0x2cd171||_0x4c193c(0x2ab)in _0x2cd171||_0x4c193c(0x5ff)in _0x2cd171||_0x4c193c(0x2af)in _0x2cd171||'inlineData'in _0x2cd171||_0x4c193c(0x64b)in _0x2cd171||_0x4c193c(0x282)in _0x2cd171||_0x4c193c(0x386)in _0x2cd171;return![];}function _toParts(_0x29dba3){const _0xc68f3d=a0_0x254c3a,_0x51f244=[];if(typeof _0x29dba3==='string')_0x51f244[_0xc68f3d(0x417)](createPartFromText(_0x29dba3));else{if(_isPart(_0x29dba3))_0x51f244[_0xc68f3d(0x417)](_0x29dba3);else{if(Array[_0xc68f3d(0x192)](_0x29dba3)){if(_0x29dba3[_0xc68f3d(0x3d2)]===0x0)throw new Error(_0xc68f3d(0x349));for(const _0x530e5b of _0x29dba3){if(typeof _0x530e5b===_0xc68f3d(0x4ae))_0x51f244['push'](createPartFromText(_0x530e5b));else{if(_isPart(_0x530e5b))_0x51f244['push'](_0x530e5b);else throw new Error('element\x20in\x20PartUnion\x20must\x20be\x20a\x20Part\x20object\x20or\x20string');}}}else throw new Error(_0xc68f3d(0x71d));}}return _0x51f244;}function createUserContent(_0x7a6139){const _0x569339=a0_0x254c3a;return{'role':_0x569339(0x699),'parts':_toParts(_0x7a6139)};}function createModelContent(_0x36cc72){const _0x2396ce=a0_0x254c3a;return{'role':_0x2396ce(0x492),'parts':_toParts(_0x36cc72)};}class HttpResponse{constructor(_0x4a8b1b){const _0x1782f8=a0_0x254c3a,_0x5c270c={};for(const _0xcacd8f of _0x4a8b1b[_0x1782f8(0x4e8)][_0x1782f8(0x1ae)]()){_0x5c270c[_0xcacd8f[0x0]]=_0xcacd8f[0x1];}this[_0x1782f8(0x4e8)]=_0x5c270c,this['responseInternal']=_0x4a8b1b;}[a0_0x254c3a(0x288)](){const _0x3f2083=a0_0x254c3a;return this['responseInternal'][_0x3f2083(0x288)]();}}class GenerateContentResponsePromptFeedback{}class GenerateContentResponseUsageMetadata{}class GenerateContentResponse{get[a0_0x254c3a(0x2ab)](){const _0x44b58a=a0_0x254c3a;var _0x20ac1e,_0x13844b,_0x292d29,_0x291160,_0x2ab90f,_0x3b4c1a,_0x154f77,_0xa6ea3b;if(((_0x291160=(_0x292d29=(_0x13844b=(_0x20ac1e=this[_0x44b58a(0x711)])===null||_0x20ac1e===void 0x0?void 0x0:_0x20ac1e[0x0])===null||_0x13844b===void 0x0?void 0x0:_0x13844b['content'])===null||_0x292d29===void 0x0?void 0x0:_0x292d29[_0x44b58a(0x435)])===null||_0x291160===void 0x0?void 0x0:_0x291160[_0x44b58a(0x3d2)])===0x0)return undefined;this[_0x44b58a(0x711)]&&this[_0x44b58a(0x711)]['length']>0x1&&console[_0x44b58a(0x69c)](_0x44b58a(0x44b));let _0x2b2926='',_0x3d7116=![];const _0x448463=[];for(const _0xe8d6f1 of(_0xa6ea3b=(_0x154f77=(_0x3b4c1a=(_0x2ab90f=this[_0x44b58a(0x711)])===null||_0x2ab90f===void 0x0?void 0x0:_0x2ab90f[0x0])===null||_0x3b4c1a===void 0x0?void 0x0:_0x3b4c1a['content'])===null||_0x154f77===void 0x0?void 0x0:_0x154f77[_0x44b58a(0x435)])!==null&&_0xa6ea3b!==void 0x0?_0xa6ea3b:[]){for(const [_0x45f32d,_0x41c6be]of Object[_0x44b58a(0x1ae)](_0xe8d6f1)){_0x45f32d!==_0x44b58a(0x2ab)&&_0x45f32d!=='thought'&&_0x45f32d!==_0x44b58a(0x5ba)&&(_0x41c6be!==null||_0x41c6be!==undefined)&&_0x448463['push'](_0x45f32d);}if(typeof _0xe8d6f1[_0x44b58a(0x2ab)]===_0x44b58a(0x4ae)){if(typeof _0xe8d6f1[_0x44b58a(0x50b)]==='boolean'&&_0xe8d6f1[_0x44b58a(0x50b)])continue;_0x3d7116=!![],_0x2b2926+=_0xe8d6f1[_0x44b58a(0x2ab)];}}return _0x448463[_0x44b58a(0x3d2)]>0x0&&console[_0x44b58a(0x69c)](_0x44b58a(0x1d3)+_0x448463+_0x44b58a(0x47f)),_0x3d7116?_0x2b2926:undefined;}get[a0_0x254c3a(0x526)](){const _0x1a21c7=a0_0x254c3a;var _0x8886bb,_0x3bb5ce,_0xd1ce85,_0x358cfd,_0x5693e6,_0x29f6a1,_0x1157e2,_0x116f87;if(((_0x358cfd=(_0xd1ce85=(_0x3bb5ce=(_0x8886bb=this[_0x1a21c7(0x711)])===null||_0x8886bb===void 0x0?void 0x0:_0x8886bb[0x0])===null||_0x3bb5ce===void 0x0?void 0x0:_0x3bb5ce[_0x1a21c7(0x60e)])===null||_0xd1ce85===void 0x0?void 0x0:_0xd1ce85[_0x1a21c7(0x435)])===null||_0x358cfd===void 0x0?void 0x0:_0x358cfd[_0x1a21c7(0x3d2)])===0x0)return undefined;this['candidates']&&this['candidates'][_0x1a21c7(0x3d2)]>0x1&&console[_0x1a21c7(0x69c)]('there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20data\x20from\x20the\x20first\x20one.');let _0x272e92='';const _0x584439=[];for(const _0x52f762 of(_0x116f87=(_0x1157e2=(_0x29f6a1=(_0x5693e6=this[_0x1a21c7(0x711)])===null||_0x5693e6===void 0x0?void 0x0:_0x5693e6[0x0])===null||_0x29f6a1===void 0x0?void 0x0:_0x29f6a1[_0x1a21c7(0x60e)])===null||_0x1157e2===void 0x0?void 0x0:_0x1157e2['parts'])!==null&&_0x116f87!==void 0x0?_0x116f87:[]){for(const [_0x304252,_0x11a53e]of Object['entries'](_0x52f762)){_0x304252!==_0x1a21c7(0x59d)&&(_0x11a53e!==null||_0x11a53e!==undefined)&&_0x584439[_0x1a21c7(0x417)](_0x304252);}_0x52f762[_0x1a21c7(0x59d)]&&typeof _0x52f762[_0x1a21c7(0x59d)][_0x1a21c7(0x526)]===_0x1a21c7(0x4ae)&&(_0x272e92+=atob(_0x52f762['inlineData'][_0x1a21c7(0x526)]));}return _0x584439[_0x1a21c7(0x3d2)]>0x0&&console[_0x1a21c7(0x69c)]('there\x20are\x20non-data\x20parts\x20'+_0x584439+'\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.'),_0x272e92[_0x1a21c7(0x3d2)]>0x0?btoa(_0x272e92):undefined;}get['functionCalls'](){const _0x193cec=a0_0x254c3a;var _0x271bde,_0x3998cc,_0x5ba1f4,_0x3006e6,_0x4ecee5,_0x47b3a9,_0x4a5b6b,_0x371f8d;if(((_0x3006e6=(_0x5ba1f4=(_0x3998cc=(_0x271bde=this[_0x193cec(0x711)])===null||_0x271bde===void 0x0?void 0x0:_0x271bde[0x0])===null||_0x3998cc===void 0x0?void 0x0:_0x3998cc[_0x193cec(0x60e)])===null||_0x5ba1f4===void 0x0?void 0x0:_0x5ba1f4['parts'])===null||_0x3006e6===void 0x0?void 0x0:_0x3006e6[_0x193cec(0x3d2)])===0x0)return undefined;this[_0x193cec(0x711)]&&this[_0x193cec(0x711)][_0x193cec(0x3d2)]>0x1&&console[_0x193cec(0x69c)](_0x193cec(0x176));const _0x2b0625=(_0x371f8d=(_0x4a5b6b=(_0x47b3a9=(_0x4ecee5=this['candidates'])===null||_0x4ecee5===void 0x0?void 0x0:_0x4ecee5[0x0])===null||_0x47b3a9===void 0x0?void 0x0:_0x47b3a9[_0x193cec(0x60e)])===null||_0x4a5b6b===void 0x0?void 0x0:_0x4a5b6b['parts'])===null||_0x371f8d===void 0x0?void 0x0:_0x371f8d[_0x193cec(0x38a)](_0x3198f4=>_0x3198f4['functionCall'])[_0x193cec(0x221)](_0x5a120a=>_0x5a120a[_0x193cec(0x5ff)])[_0x193cec(0x38a)](_0x2c7893=>_0x2c7893!==undefined);if((_0x2b0625===null||_0x2b0625===void 0x0?void 0x0:_0x2b0625[_0x193cec(0x3d2)])===0x0)return undefined;return _0x2b0625;}get[a0_0x254c3a(0x386)](){const _0x8e88=a0_0x254c3a;var _0x1000b5,_0x513892,_0x502282,_0x29353e,_0x580909,_0x57a8bf,_0x319215,_0x4c2a10,_0x21d5e3;if(((_0x29353e=(_0x502282=(_0x513892=(_0x1000b5=this[_0x8e88(0x711)])===null||_0x1000b5===void 0x0?void 0x0:_0x1000b5[0x0])===null||_0x513892===void 0x0?void 0x0:_0x513892[_0x8e88(0x60e)])===null||_0x502282===void 0x0?void 0x0:_0x502282[_0x8e88(0x435)])===null||_0x29353e===void 0x0?void 0x0:_0x29353e[_0x8e88(0x3d2)])===0x0)return undefined;this[_0x8e88(0x711)]&&this[_0x8e88(0x711)][_0x8e88(0x3d2)]>0x1&&console['warn'](_0x8e88(0x346));const _0x39ad4c=(_0x4c2a10=(_0x319215=(_0x57a8bf=(_0x580909=this[_0x8e88(0x711)])===null||_0x580909===void 0x0?void 0x0:_0x580909[0x0])===null||_0x57a8bf===void 0x0?void 0x0:_0x57a8bf[_0x8e88(0x60e)])===null||_0x319215===void 0x0?void 0x0:_0x319215[_0x8e88(0x435)])===null||_0x4c2a10===void 0x0?void 0x0:_0x4c2a10['filter'](_0x4b4a27=>_0x4b4a27['executableCode'])['map'](_0x417b7b=>_0x417b7b[_0x8e88(0x386)])[_0x8e88(0x38a)](_0xdd0381=>_0xdd0381!==undefined);if((_0x39ad4c===null||_0x39ad4c===void 0x0?void 0x0:_0x39ad4c[_0x8e88(0x3d2)])===0x0)return undefined;return(_0x21d5e3=_0x39ad4c===null||_0x39ad4c===void 0x0?void 0x0:_0x39ad4c[0x0])===null||_0x21d5e3===void 0x0?void 0x0:_0x21d5e3[_0x8e88(0x1d4)];}get['codeExecutionResult'](){const _0x144833=a0_0x254c3a;var _0x510f73,_0x24dd80,_0x33e3e5,_0x2421dc,_0x2d2867,_0x242cda,_0x4dffa0,_0x1a2a30,_0x2e0b17;if(((_0x2421dc=(_0x33e3e5=(_0x24dd80=(_0x510f73=this['candidates'])===null||_0x510f73===void 0x0?void 0x0:_0x510f73[0x0])===null||_0x24dd80===void 0x0?void 0x0:_0x24dd80[_0x144833(0x60e)])===null||_0x33e3e5===void 0x0?void 0x0:_0x33e3e5[_0x144833(0x435)])===null||_0x2421dc===void 0x0?void 0x0:_0x2421dc[_0x144833(0x3d2)])===0x0)return undefined;this['candidates']&&this['candidates'][_0x144833(0x3d2)]>0x1&&console[_0x144833(0x69c)]('there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20code\x20execution\x20result\x20from\x20the\x20first\x20one.');const _0x4491f2=(_0x1a2a30=(_0x4dffa0=(_0x242cda=(_0x2d2867=this[_0x144833(0x711)])===null||_0x2d2867===void 0x0?void 0x0:_0x2d2867[0x0])===null||_0x242cda===void 0x0?void 0x0:_0x242cda['content'])===null||_0x4dffa0===void 0x0?void 0x0:_0x4dffa0[_0x144833(0x435)])===null||_0x1a2a30===void 0x0?void 0x0:_0x1a2a30[_0x144833(0x38a)](_0x2733bb=>_0x2733bb[_0x144833(0x282)])[_0x144833(0x221)](_0x4a0b57=>_0x4a0b57['codeExecutionResult'])[_0x144833(0x38a)](_0x1f2fd1=>_0x1f2fd1!==undefined);if((_0x4491f2===null||_0x4491f2===void 0x0?void 0x0:_0x4491f2[_0x144833(0x3d2)])===0x0)return undefined;return(_0x2e0b17=_0x4491f2===null||_0x4491f2===void 0x0?void 0x0:_0x4491f2[0x0])===null||_0x2e0b17===void 0x0?void 0x0:_0x2e0b17[_0x144833(0x256)];}}class EmbedContentResponse{}class GenerateImagesResponse{}class EditImageResponse{}class UpscaleImageResponse{}class RecontextImageResponse{}class SegmentImageResponse{}class ListModelsResponse{}class DeleteModelResponse{}class CountTokensResponse{}class ComputeTokensResponse{}class GenerateVideosResponse{}class GenerateVideosOperation{[a0_0x254c3a(0x24e)]({apiResponse:_0xc76a1b,_isVertexAI:_0x49d4fc}){const _0x31d37b=a0_0x254c3a,_0x9b9490=new GenerateVideosOperation();let _0x4fab61;const _0x15fd7e=_0xc76a1b;return _0x49d4fc?_0x4fab61=generateVideosOperationFromVertex$1(_0x15fd7e):_0x4fab61=generateVideosOperationFromMldev$1(_0x15fd7e),Object[_0x31d37b(0x64e)](_0x9b9490,_0x4fab61),_0x9b9490;}}class ListTuningJobsResponse{}class CancelTuningJobResponse{}class DeleteCachedContentResponse{}class ListCachedContentsResponse{}class ListDocumentsResponse{}class ListFileSearchStoresResponse{}class UploadToFileSearchStoreResumableResponse{}class ImportFileResponse{}class ImportFileOperation{[a0_0x254c3a(0x24e)]({apiResponse:_0x34308b,_isVertexAI:_0x3c585c}){const _0x17d106=new ImportFileOperation(),_0x7fa6ff=_0x34308b,_0x2ba1a6=importFileOperationFromMldev$1(_0x7fa6ff);return Object['assign'](_0x17d106,_0x2ba1a6),_0x17d106;}}class ListFilesResponse{}class CreateFileResponse{}class DeleteFileResponse{}class RegisterFilesResponse{}class InlinedResponse{}class SingleEmbedContentResponse{}class InlinedEmbedContentResponse{}class ListBatchJobsResponse{}class ReplayResponse{}class RawReferenceImage{[a0_0x254c3a(0x5fd)](){const _0x12991a=a0_0x254c3a,_0x1a3a0d={'referenceType':_0x12991a(0x65f),'referenceImage':this[_0x12991a(0x353)],'referenceId':this[_0x12991a(0x549)]};return _0x1a3a0d;}}class MaskReferenceImage{[a0_0x254c3a(0x5fd)](){const _0x45f75d=a0_0x254c3a,_0x4481aa={'referenceType':_0x45f75d(0x6c0),'referenceImage':this[_0x45f75d(0x353)],'referenceId':this[_0x45f75d(0x549)],'maskImageConfig':this[_0x45f75d(0x563)]};return _0x4481aa;}}class ControlReferenceImage{['toReferenceImageAPI'](){const _0xbe008f=a0_0x254c3a,_0x528de1={'referenceType':_0xbe008f(0x4a9),'referenceImage':this[_0xbe008f(0x353)],'referenceId':this['referenceId'],'controlImageConfig':this['config']};return _0x528de1;}}class StyleReferenceImage{['toReferenceImageAPI'](){const _0x1e60de=a0_0x254c3a,_0x15b40c={'referenceType':_0x1e60de(0x4c8),'referenceImage':this[_0x1e60de(0x353)],'referenceId':this[_0x1e60de(0x549)],'styleImageConfig':this[_0x1e60de(0x563)]};return _0x15b40c;}}class SubjectReferenceImage{['toReferenceImageAPI'](){const _0x53df21=a0_0x254c3a,_0x58b3bc={'referenceType':_0x53df21(0x286),'referenceImage':this[_0x53df21(0x353)],'referenceId':this[_0x53df21(0x549)],'subjectImageConfig':this[_0x53df21(0x563)]};return _0x58b3bc;}}class ContentReferenceImage{[a0_0x254c3a(0x5fd)](){const _0x3078a6=a0_0x254c3a,_0x429520={'referenceType':_0x3078a6(0x3bc),'referenceImage':this['referenceImage'],'referenceId':this[_0x3078a6(0x549)]};return _0x429520;}}class LiveServerMessage{get['text'](){const _0x3f5e59=a0_0x254c3a;var _0x337b2a,_0x2a2046,_0x22c674;let _0x44001e='',_0x261bed=![];const _0x4368c4=[];for(const _0x30073f of(_0x22c674=(_0x2a2046=(_0x337b2a=this['serverContent'])===null||_0x337b2a===void 0x0?void 0x0:_0x337b2a['modelTurn'])===null||_0x2a2046===void 0x0?void 0x0:_0x2a2046[_0x3f5e59(0x435)])!==null&&_0x22c674!==void 0x0?_0x22c674:[]){for(const [_0x552ce0,_0x45c33e]of Object['entries'](_0x30073f)){_0x552ce0!==_0x3f5e59(0x2ab)&&_0x552ce0!=='thought'&&_0x45c33e!==null&&_0x4368c4[_0x3f5e59(0x417)](_0x552ce0);}if(typeof _0x30073f[_0x3f5e59(0x2ab)]===_0x3f5e59(0x4ae)){if(typeof _0x30073f[_0x3f5e59(0x50b)]===_0x3f5e59(0x6a9)&&_0x30073f[_0x3f5e59(0x50b)])continue;_0x261bed=!![],_0x44001e+=_0x30073f['text'];}}return _0x4368c4[_0x3f5e59(0x3d2)]>0x0&&console[_0x3f5e59(0x69c)]('there\x20are\x20non-text\x20parts\x20'+_0x4368c4+_0x3f5e59(0x47f)),_0x261bed?_0x44001e:undefined;}get['data'](){const _0x2442c8=a0_0x254c3a;var _0x112bd2,_0x4fc8fc,_0x41166e;let _0x48ecbc='';const _0x156240=[];for(const _0x3ea931 of(_0x41166e=(_0x4fc8fc=(_0x112bd2=this[_0x2442c8(0x2a7)])===null||_0x112bd2===void 0x0?void 0x0:_0x112bd2[_0x2442c8(0x4f9)])===null||_0x4fc8fc===void 0x0?void 0x0:_0x4fc8fc[_0x2442c8(0x435)])!==null&&_0x41166e!==void 0x0?_0x41166e:[]){for(const [_0x3b2447,_0x465346]of Object['entries'](_0x3ea931)){_0x3b2447!==_0x2442c8(0x59d)&&_0x465346!==null&&_0x156240[_0x2442c8(0x417)](_0x3b2447);}_0x3ea931[_0x2442c8(0x59d)]&&typeof _0x3ea931['inlineData'][_0x2442c8(0x526)]===_0x2442c8(0x4ae)&&(_0x48ecbc+=atob(_0x3ea931[_0x2442c8(0x59d)][_0x2442c8(0x526)]));}return _0x156240[_0x2442c8(0x3d2)]>0x0&&console['warn'](_0x2442c8(0x3a3)+_0x156240+'\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.'),_0x48ecbc['length']>0x0?btoa(_0x48ecbc):undefined;}}class LiveClientToolResponse{}class LiveSendToolResponseParameters{constructor(){const _0x5e688f=a0_0x254c3a;this[_0x5e688f(0x44e)]=[];}}class LiveMusicServerMessage{get['audioChunk'](){const _0x239731=a0_0x254c3a;if(this[_0x239731(0x2a7)]&&this['serverContent'][_0x239731(0x391)]&&this['serverContent'][_0x239731(0x391)][_0x239731(0x3d2)]>0x0)return this['serverContent']['audioChunks'][0x0];return undefined;}}class UploadToFileSearchStoreResponse{}class UploadToFileSearchStoreOperation{[a0_0x254c3a(0x24e)]({apiResponse:_0x598579,_isVertexAI:_0x36321f}){const _0x5f2c36=new UploadToFileSearchStoreOperation(),_0x250624=_0x598579,_0x1bd008=uploadToFileSearchStoreOperationFromMldev(_0x250624);return Object['assign'](_0x5f2c36,_0x1bd008),_0x5f2c36;}}/**
27
+ * @license
28
+ * Copyright 2025 Google LLC
29
+ * SPDX-License-Identifier: Apache-2.0
30
+ */
31
+ function tModel(_0x113dc2,_0x4270b5){const _0x33873b=a0_0x254c3a;if(!_0x4270b5||typeof _0x4270b5!=='string')throw new Error(_0x33873b(0x418));if(_0x4270b5['includes']('..')||_0x4270b5['includes']('?')||_0x4270b5['includes']('&'))throw new Error(_0x33873b(0x4eb));if(_0x113dc2[_0x33873b(0x2b9)]()){if(_0x4270b5[_0x33873b(0x320)](_0x33873b(0x564))||_0x4270b5[_0x33873b(0x320)]('projects/')||_0x4270b5[_0x33873b(0x320)](_0x33873b(0x6e5)))return _0x4270b5;else{if(_0x4270b5[_0x33873b(0x4f5)]('/')>=0x0){const _0x10133d=_0x4270b5[_0x33873b(0x406)]('/',0x2);return _0x33873b(0x564)+_0x10133d[0x0]+_0x33873b(0x4db)+_0x10133d[0x1];}else return'publishers/google/models/'+_0x4270b5;}}else return _0x4270b5['startsWith'](_0x33873b(0x6e5))||_0x4270b5[_0x33873b(0x320)](_0x33873b(0x479))?_0x4270b5:'models/'+_0x4270b5;}function tCachesModel(_0x39b4fa,_0x2a28d2){const _0x3f8e6c=a0_0x254c3a,_0x3e7851=tModel(_0x39b4fa,_0x2a28d2);if(!_0x3e7851)return'';if(_0x3e7851[_0x3f8e6c(0x320)](_0x3f8e6c(0x564))&&_0x39b4fa[_0x3f8e6c(0x2b9)]())return _0x3f8e6c(0x332)+_0x39b4fa['getProject']()+_0x3f8e6c(0x238)+_0x39b4fa[_0x3f8e6c(0x35a)]()+'/'+_0x3e7851;else return _0x3e7851[_0x3f8e6c(0x320)]('models/')&&_0x39b4fa['isVertexAI']()?_0x3f8e6c(0x332)+_0x39b4fa[_0x3f8e6c(0x709)]()+'/locations/'+_0x39b4fa['getLocation']()+_0x3f8e6c(0x4b9)+_0x3e7851:_0x3e7851;}function tBlobs(_0x341704){const _0x14358d=a0_0x254c3a;return Array[_0x14358d(0x192)](_0x341704)?_0x341704['map'](_0x43302a=>tBlob(_0x43302a)):[tBlob(_0x341704)];}function tBlob(_0x1bd431){const _0xd51e92=a0_0x254c3a;if(typeof _0x1bd431==='object'&&_0x1bd431!==null)return _0x1bd431;throw new Error(_0xd51e92(0x3c6)+typeof _0x1bd431);}function tImageBlob(_0x30a7f0){const _0x1c56ff=a0_0x254c3a,_0x264db2=tBlob(_0x30a7f0);if(_0x264db2[_0x1c56ff(0x38c)]&&_0x264db2[_0x1c56ff(0x38c)][_0x1c56ff(0x320)](_0x1c56ff(0x394)))return _0x264db2;throw new Error(_0x1c56ff(0x505)+_0x264db2['mimeType']);}function tAudioBlob(_0x5dc0ab){const _0x1e15b6=a0_0x254c3a,_0x757845=tBlob(_0x5dc0ab);if(_0x757845[_0x1e15b6(0x38c)]&&_0x757845['mimeType'][_0x1e15b6(0x320)]('audio/'))return _0x757845;throw new Error(_0x1e15b6(0x505)+_0x757845[_0x1e15b6(0x38c)]);}function tPart(_0x3dcac6){const _0x915579=a0_0x254c3a;if(_0x3dcac6===null||_0x3dcac6===undefined)throw new Error(_0x915579(0x3ae));if(typeof _0x3dcac6===_0x915579(0x46a))return _0x3dcac6;if(typeof _0x3dcac6===_0x915579(0x4ae))return{'text':_0x3dcac6};throw new Error('Unsupported\x20part\x20type:\x20'+typeof _0x3dcac6);}function tParts(_0x4578fc){const _0x1872c6=a0_0x254c3a;if(_0x4578fc===null||_0x4578fc===undefined||Array[_0x1872c6(0x192)](_0x4578fc)&&_0x4578fc[_0x1872c6(0x3d2)]===0x0)throw new Error(_0x1872c6(0x56e));if(Array['isArray'](_0x4578fc))return _0x4578fc[_0x1872c6(0x221)](_0x1443de=>tPart(_0x1443de));return[tPart(_0x4578fc)];}function _isContent(_0x41b446){const _0x5b5ce5=a0_0x254c3a;return _0x41b446!==null&&_0x41b446!==undefined&&typeof _0x41b446===_0x5b5ce5(0x46a)&&_0x5b5ce5(0x435)in _0x41b446&&Array[_0x5b5ce5(0x192)](_0x41b446[_0x5b5ce5(0x435)]);}function _isFunctionCallPart(_0x3304a0){return _0x3304a0!==null&&_0x3304a0!==undefined&&typeof _0x3304a0==='object'&&'functionCall'in _0x3304a0;}function _isFunctionResponsePart(_0x6b9e3d){const _0x598b4e=a0_0x254c3a;return _0x6b9e3d!==null&&_0x6b9e3d!==undefined&&typeof _0x6b9e3d===_0x598b4e(0x46a)&&_0x598b4e(0x2af)in _0x6b9e3d;}function tContent(_0x27e55f){const _0x3b8e02=a0_0x254c3a;if(_0x27e55f===null||_0x27e55f===undefined)throw new Error(_0x3b8e02(0x1da));if(_isContent(_0x27e55f))return _0x27e55f;return{'role':'user','parts':tParts(_0x27e55f)};}function tContentsForEmbed(_0x5e27b0,_0x4fefda){const _0x2cfabc=a0_0x254c3a;if(!_0x4fefda)return[];if(_0x5e27b0[_0x2cfabc(0x2b9)]()&&Array[_0x2cfabc(0x192)](_0x4fefda))return _0x4fefda['flatMap'](_0x4e1b2e=>{const _0x5e5a73=_0x2cfabc,_0x304bd7=tContent(_0x4e1b2e);if(_0x304bd7[_0x5e5a73(0x435)]&&_0x304bd7[_0x5e5a73(0x435)][_0x5e5a73(0x3d2)]>0x0&&_0x304bd7[_0x5e5a73(0x435)][0x0][_0x5e5a73(0x2ab)]!==undefined)return[_0x304bd7[_0x5e5a73(0x435)][0x0][_0x5e5a73(0x2ab)]];return[];});else{if(_0x5e27b0[_0x2cfabc(0x2b9)]()){const _0x5cd5ca=tContent(_0x4fefda);if(_0x5cd5ca['parts']&&_0x5cd5ca[_0x2cfabc(0x435)][_0x2cfabc(0x3d2)]>0x0&&_0x5cd5ca[_0x2cfabc(0x435)][0x0]['text']!==undefined)return[_0x5cd5ca['parts'][0x0][_0x2cfabc(0x2ab)]];return[];}}if(Array[_0x2cfabc(0x192)](_0x4fefda))return _0x4fefda['map'](_0x49304a=>tContent(_0x49304a));return[tContent(_0x4fefda)];}function tContents(_0x3eb250){const _0x2b2b1f=a0_0x254c3a;if(_0x3eb250===null||_0x3eb250===undefined||Array[_0x2b2b1f(0x192)](_0x3eb250)&&_0x3eb250['length']===0x0)throw new Error('contents\x20are\x20required');if(!Array['isArray'](_0x3eb250)){if(_isFunctionCallPart(_0x3eb250)||_isFunctionResponsePart(_0x3eb250))throw new Error(_0x2b2b1f(0x514));return[tContent(_0x3eb250)];}const _0x5d6724=[],_0x500d11=[],_0x430597=_isContent(_0x3eb250[0x0]);for(const _0x1ed1cf of _0x3eb250){const _0x42af9c=_isContent(_0x1ed1cf);if(_0x42af9c!=_0x430597)throw new Error('Mixing\x20Content\x20and\x20Parts\x20is\x20not\x20supported,\x20please\x20group\x20the\x20parts\x20into\x20a\x20the\x20appropriate\x20Content\x20objects\x20and\x20specify\x20the\x20roles\x20for\x20them');if(_0x42af9c)_0x5d6724[_0x2b2b1f(0x417)](_0x1ed1cf);else{if(_isFunctionCallPart(_0x1ed1cf)||_isFunctionResponsePart(_0x1ed1cf))throw new Error(_0x2b2b1f(0x335));else _0x500d11[_0x2b2b1f(0x417)](_0x1ed1cf);}}return!_0x430597&&_0x5d6724['push']({'role':_0x2b2b1f(0x699),'parts':tParts(_0x500d11)}),_0x5d6724;}function flattenTypeArrayToAnyOf(_0x130634,_0x42c4fe){const _0x33d9d0=a0_0x254c3a;_0x130634[_0x33d9d0(0x566)]('null')&&(_0x42c4fe[_0x33d9d0(0x673)]=!![]);const _0x2355fb=_0x130634['filter'](_0x3317bc=>_0x3317bc!=='null');if(_0x2355fb[_0x33d9d0(0x3d2)]===0x1)_0x42c4fe[_0x33d9d0(0x58d)]=Object[_0x33d9d0(0x464)](exports[_0x33d9d0(0x398)])['includes'](_0x2355fb[0x0][_0x33d9d0(0x3c0)]())?_0x2355fb[0x0][_0x33d9d0(0x3c0)]():exports['Type'][_0x33d9d0(0x3b4)];else{_0x42c4fe[_0x33d9d0(0x4a6)]=[];for(const _0x3f0962 of _0x2355fb){_0x42c4fe['anyOf'][_0x33d9d0(0x417)]({'type':Object[_0x33d9d0(0x464)](exports[_0x33d9d0(0x398)])[_0x33d9d0(0x566)](_0x3f0962[_0x33d9d0(0x3c0)]())?_0x3f0962['toUpperCase']():exports[_0x33d9d0(0x398)][_0x33d9d0(0x3b4)]});}}}function processJsonSchema(_0x483b7e){const _0x44c286=a0_0x254c3a,_0x5ce68f={},_0x573610=['items'],_0x1d1091=[_0x44c286(0x4a6)],_0x242d6c=[_0x44c286(0x431)];if(_0x483b7e[_0x44c286(0x58d)]&&_0x483b7e[_0x44c286(0x4a6)])throw new Error('type\x20and\x20anyOf\x20cannot\x20be\x20both\x20populated.');const _0x440a1c=_0x483b7e['anyOf'];if(_0x440a1c!=null&&_0x440a1c[_0x44c286(0x3d2)]==0x2){if(_0x440a1c[0x0][_0x44c286(0x58d)]===_0x44c286(0x227))_0x5ce68f[_0x44c286(0x673)]=!![],_0x483b7e=_0x440a1c[0x1];else _0x440a1c[0x1][_0x44c286(0x58d)]==='null'&&(_0x5ce68f['nullable']=!![],_0x483b7e=_0x440a1c[0x0]);}_0x483b7e[_0x44c286(0x58d)]instanceof Array&&flattenTypeArrayToAnyOf(_0x483b7e[_0x44c286(0x58d)],_0x5ce68f);for(const [_0x592ced,_0x29c8c5]of Object[_0x44c286(0x1ae)](_0x483b7e)){if(_0x29c8c5==null)continue;if(_0x592ced==_0x44c286(0x58d)){if(_0x29c8c5==='null')throw new Error(_0x44c286(0x58b));if(_0x29c8c5 instanceof Array)continue;_0x5ce68f['type']=Object[_0x44c286(0x464)](exports[_0x44c286(0x398)])['includes'](_0x29c8c5['toUpperCase']())?_0x29c8c5['toUpperCase']():exports[_0x44c286(0x398)][_0x44c286(0x3b4)];}else{if(_0x573610[_0x44c286(0x566)](_0x592ced))_0x5ce68f[_0x592ced]=processJsonSchema(_0x29c8c5);else{if(_0x1d1091['includes'](_0x592ced)){const _0x55e448=[];for(const _0x476413 of _0x29c8c5){if(_0x476413[_0x44c286(0x58d)]=='null'){_0x5ce68f[_0x44c286(0x673)]=!![];continue;}_0x55e448['push'](processJsonSchema(_0x476413));}_0x5ce68f[_0x592ced]=_0x55e448;}else{if(_0x242d6c[_0x44c286(0x566)](_0x592ced)){const _0x374779={};for(const [_0x24e981,_0x216aff]of Object[_0x44c286(0x1ae)](_0x29c8c5)){_0x374779[_0x24e981]=processJsonSchema(_0x216aff);}_0x5ce68f[_0x592ced]=_0x374779;}else{if(_0x592ced===_0x44c286(0x203))continue;_0x5ce68f[_0x592ced]=_0x29c8c5;}}}}}return _0x5ce68f;}function tSchema(_0xf06d8){return processJsonSchema(_0xf06d8);}function tSpeechConfig(_0x3ca6a3){const _0x2305d8=a0_0x254c3a;if(typeof _0x3ca6a3===_0x2305d8(0x46a))return _0x3ca6a3;else{if(typeof _0x3ca6a3===_0x2305d8(0x4ae))return{'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':_0x3ca6a3}}};else throw new Error('Unsupported\x20speechConfig\x20type:\x20'+typeof _0x3ca6a3);}}function tLiveSpeechConfig(_0x2d9129){const _0x4efe91=a0_0x254c3a;if(_0x4efe91(0x281)in _0x2d9129)throw new Error('multiSpeakerVoiceConfig\x20is\x20not\x20supported\x20in\x20the\x20live\x20API.');return _0x2d9129;}function tTool(_0x4f0d85){const _0x12d37a=a0_0x254c3a;if(_0x4f0d85[_0x12d37a(0x4b0)])for(const _0x2e1353 of _0x4f0d85['functionDeclarations']){_0x2e1353[_0x12d37a(0x34d)]&&(!Object['keys'](_0x2e1353[_0x12d37a(0x34d)])[_0x12d37a(0x566)](_0x12d37a(0x4b4))?_0x2e1353['parameters']=processJsonSchema(_0x2e1353[_0x12d37a(0x34d)]):!_0x2e1353[_0x12d37a(0x3d0)]&&(_0x2e1353[_0x12d37a(0x3d0)]=_0x2e1353['parameters'],delete _0x2e1353[_0x12d37a(0x34d)])),_0x2e1353[_0x12d37a(0x218)]&&(!Object[_0x12d37a(0x421)](_0x2e1353[_0x12d37a(0x218)])['includes']('$schema')?_0x2e1353['response']=processJsonSchema(_0x2e1353[_0x12d37a(0x218)]):!_0x2e1353['responseJsonSchema']&&(_0x2e1353['responseJsonSchema']=_0x2e1353[_0x12d37a(0x218)],delete _0x2e1353[_0x12d37a(0x218)]));}return _0x4f0d85;}function tTools(_0x54b05e){const _0xd76c5a=a0_0x254c3a;if(_0x54b05e===undefined||_0x54b05e===null)throw new Error(_0xd76c5a(0x6f6));if(!Array['isArray'](_0x54b05e))throw new Error('tools\x20is\x20required\x20and\x20must\x20be\x20an\x20array\x20of\x20Tools');const _0x46354d=[];for(const _0x325abd of _0x54b05e){_0x46354d[_0xd76c5a(0x417)](_0x325abd);}return _0x46354d;}function resourceName(_0x4ed656,_0x11c102,_0x313c56,_0xdf3c42=0x1){const _0x1b9b76=a0_0x254c3a,_0xf92f4e=!_0x11c102[_0x1b9b76(0x320)](_0x313c56+'/')&&_0x11c102['split']('/')[_0x1b9b76(0x3d2)]===_0xdf3c42;if(_0x4ed656[_0x1b9b76(0x2b9)]()){if(_0x11c102['startsWith']('projects/'))return _0x11c102;else{if(_0x11c102['startsWith']('locations/'))return _0x1b9b76(0x332)+_0x4ed656['getProject']()+'/'+_0x11c102;else{if(_0x11c102[_0x1b9b76(0x320)](_0x313c56+'/'))return _0x1b9b76(0x332)+_0x4ed656['getProject']()+_0x1b9b76(0x238)+_0x4ed656[_0x1b9b76(0x35a)]()+'/'+_0x11c102;else return _0xf92f4e?_0x1b9b76(0x332)+_0x4ed656[_0x1b9b76(0x709)]()+'/locations/'+_0x4ed656[_0x1b9b76(0x35a)]()+'/'+_0x313c56+'/'+_0x11c102:_0x11c102;}}}if(_0xf92f4e)return _0x313c56+'/'+_0x11c102;return _0x11c102;}function tCachedContentName(_0x365d6d,_0x5653f7){const _0x199e1f=a0_0x254c3a;if(typeof _0x5653f7!==_0x199e1f(0x4ae))throw new Error('name\x20must\x20be\x20a\x20string');return resourceName(_0x365d6d,_0x5653f7,_0x199e1f(0x27c));}function tTuningJobStatus(_0x544bf4){const _0x40043b=a0_0x254c3a;switch(_0x544bf4){case _0x40043b(0x239):return _0x40043b(0x396);case _0x40043b(0x624):return _0x40043b(0x328);case'ACTIVE':return'JOB_STATE_SUCCEEDED';case _0x40043b(0x2bf):return _0x40043b(0x326);default:return _0x544bf4;}}function tBytes(_0x242d07){return tBytes$1(_0x242d07);}function _isFile(_0x24ea7a){const _0x45a9f1=a0_0x254c3a;return _0x24ea7a!==null&&_0x24ea7a!==undefined&&typeof _0x24ea7a===_0x45a9f1(0x46a)&&'name'in _0x24ea7a;}function isGeneratedVideo(_0x9ecc3c){const _0x15e323=a0_0x254c3a;return _0x9ecc3c!==null&&_0x9ecc3c!==undefined&&typeof _0x9ecc3c==='object'&&_0x15e323(0x315)in _0x9ecc3c;}function isVideo(_0x3a80cc){return _0x3a80cc!==null&&_0x3a80cc!==undefined&&typeof _0x3a80cc==='object'&&'uri'in _0x3a80cc;}function tFileName(_0x20c725){const _0x253e83=a0_0x254c3a;var _0x54bda9;let _0x397c55;_isFile(_0x20c725)&&(_0x397c55=_0x20c725[_0x253e83(0x68e)]);if(isVideo(_0x20c725)){_0x397c55=_0x20c725[_0x253e83(0x1d1)];if(_0x397c55===undefined)return undefined;}if(isGeneratedVideo(_0x20c725)){_0x397c55=(_0x54bda9=_0x20c725[_0x253e83(0x315)])===null||_0x54bda9===void 0x0?void 0x0:_0x54bda9['uri'];if(_0x397c55===undefined)return undefined;}typeof _0x20c725==='string'&&(_0x397c55=_0x20c725);if(_0x397c55===undefined)throw new Error(_0x253e83(0x510));if(_0x397c55[_0x253e83(0x320)](_0x253e83(0x35b))){const _0x5dbcbb=_0x397c55[_0x253e83(0x406)]('files/')[0x1],_0x4a77a5=_0x5dbcbb[_0x253e83(0x1cc)](/[a-z0-9]+/);if(_0x4a77a5===null)throw new Error(_0x253e83(0x4ac)+_0x397c55);_0x397c55=_0x4a77a5[0x0];}else _0x397c55['startsWith'](_0x253e83(0x1e0))&&(_0x397c55=_0x397c55['split'](_0x253e83(0x1e0))[0x1]);return _0x397c55;}function tModelsUrl(_0x27797a,_0x5a3013){const _0x491a17=a0_0x254c3a;let _0x43ffd9;return _0x27797a[_0x491a17(0x2b9)]()?_0x43ffd9=_0x5a3013?'publishers/google/models':_0x491a17(0x70b):_0x43ffd9=_0x5a3013?_0x491a17(0x70b):_0x491a17(0x3cd),_0x43ffd9;}function tExtractModels(_0x566744){const _0x15e33b=a0_0x254c3a;for(const _0x3884ca of[_0x15e33b(0x70b),'tunedModels',_0x15e33b(0x3e6)]){if(hasField(_0x566744,_0x3884ca))return _0x566744[_0x3884ca];}return[];}function hasField(_0x14d730,_0x28560d){const _0x161baf=a0_0x254c3a;return _0x14d730!==null&&typeof _0x14d730===_0x161baf(0x46a)&&_0x28560d in _0x14d730;}function mcpToGeminiTool(_0x20ba80,_0x299649={}){const _0x590fbf=a0_0x254c3a,_0x590ec1=_0x20ba80,_0x545ee4={'name':_0x590ec1[_0x590fbf(0x68e)],'description':_0x590ec1['description'],'parametersJsonSchema':_0x590ec1['inputSchema']};_0x590ec1[_0x590fbf(0x366)]&&(_0x545ee4[_0x590fbf(0x2a6)]=_0x590ec1[_0x590fbf(0x366)]);_0x299649[_0x590fbf(0x306)]&&(_0x545ee4['behavior']=_0x299649[_0x590fbf(0x306)]);const _0x405191={'functionDeclarations':[_0x545ee4]};return _0x405191;}function mcpToolsToGeminiTool(_0x940e15,_0x4eaac8={}){const _0x2fabb6=a0_0x254c3a,_0x5e8542=[],_0x4cd643=new Set();for(const _0x59c63b of _0x940e15){const _0x4122b6=_0x59c63b[_0x2fabb6(0x68e)];if(_0x4cd643['has'](_0x4122b6))throw new Error(_0x2fabb6(0x54f)+_0x4122b6+_0x2fabb6(0x337));_0x4cd643['add'](_0x4122b6);const _0x13ba78=mcpToGeminiTool(_0x59c63b,_0x4eaac8);_0x13ba78[_0x2fabb6(0x4b0)]&&_0x5e8542['push'](..._0x13ba78['functionDeclarations']);}return{'functionDeclarations':_0x5e8542};}function tBatchJobSource(_0x4f9933,_0x1849d4){const _0x5bdb75=a0_0x254c3a;let _0x318384;if(typeof _0x1849d4===_0x5bdb75(0x4ae)){if(_0x4f9933[_0x5bdb75(0x2b9)]()){if(_0x1849d4[_0x5bdb75(0x320)](_0x5bdb75(0x537)))_0x318384={'format':_0x5bdb75(0x2b4),'gcsUri':[_0x1849d4]};else{if(_0x1849d4[_0x5bdb75(0x320)]('bq://'))_0x318384={'format':_0x5bdb75(0x295),'bigqueryUri':_0x1849d4};else throw new Error(_0x5bdb75(0x422)+_0x1849d4);}}else{if(_0x1849d4[_0x5bdb75(0x320)](_0x5bdb75(0x1e0)))_0x318384={'fileName':_0x1849d4};else throw new Error('Unsupported\x20string\x20source\x20for\x20Gemini\x20API:\x20'+_0x1849d4);}}else{if(Array[_0x5bdb75(0x192)](_0x1849d4)){if(_0x4f9933[_0x5bdb75(0x2b9)]())throw new Error(_0x5bdb75(0x535));_0x318384={'inlinedRequests':_0x1849d4};}else _0x318384=_0x1849d4;}const _0x521dcf=[_0x318384[_0x5bdb75(0x569)],_0x318384['bigqueryUri']][_0x5bdb75(0x38a)](Boolean)[_0x5bdb75(0x3d2)],_0x27a006=[_0x318384[_0x5bdb75(0x6a7)],_0x318384[_0x5bdb75(0x3ba)]][_0x5bdb75(0x38a)](Boolean)['length'];if(_0x4f9933['isVertexAI']()){if(_0x27a006>0x0||_0x521dcf!==0x1)throw new Error(_0x5bdb75(0x1e3));}else{if(_0x521dcf>0x0||_0x27a006!==0x1)throw new Error(_0x5bdb75(0x3fb)+_0x5bdb75(0x622));}return _0x318384;}function tBatchJobDestination(_0x3cac3a){const _0x155d13=a0_0x254c3a;if(typeof _0x3cac3a!=='string')return _0x3cac3a;const _0x4f9dce=_0x3cac3a;if(_0x4f9dce['startsWith'](_0x155d13(0x537)))return{'format':'jsonl','gcsUri':_0x4f9dce};else{if(_0x4f9dce[_0x155d13(0x320)](_0x155d13(0x1e9)))return{'format':_0x155d13(0x295),'bigqueryUri':_0x4f9dce};else throw new Error(_0x155d13(0x359)+_0x4f9dce);}}function tRecvBatchJobDestination(_0x4fca2d){const _0x1df5a7=a0_0x254c3a;if(typeof _0x4fca2d!==_0x1df5a7(0x46a)||_0x4fca2d===null)return{};const _0xb27e8f=_0x4fca2d,_0x5dbe24=_0xb27e8f[_0x1df5a7(0x193)];if(typeof _0x5dbe24!==_0x1df5a7(0x46a)||_0x5dbe24===null)return _0x4fca2d;const _0xf037e5=_0x5dbe24,_0xfae28d=_0xf037e5[_0x1df5a7(0x193)];if(!Array[_0x1df5a7(0x192)](_0xfae28d)||_0xfae28d['length']===0x0)return _0x4fca2d;let _0x4587e7=![];for(const _0x9cab13 of _0xfae28d){if(typeof _0x9cab13!=='object'||_0x9cab13===null)continue;const _0x412d97=_0x9cab13,_0x43802f=_0x412d97[_0x1df5a7(0x218)];if(typeof _0x43802f!==_0x1df5a7(0x46a)||_0x43802f===null)continue;const _0x31fef2=_0x43802f;if(_0x31fef2[_0x1df5a7(0x677)]!==undefined){_0x4587e7=!![];break;}}return _0x4587e7&&(_0xb27e8f[_0x1df5a7(0x4ca)]=_0xb27e8f[_0x1df5a7(0x193)],delete _0xb27e8f[_0x1df5a7(0x193)]),_0x4fca2d;}function tBatchJobName(_0x1b58c0,_0x21176c){const _0x5125d5=a0_0x254c3a,_0x1575da=_0x21176c;if(!_0x1b58c0['isVertexAI']()){const _0x3610e8=/batches\/[^/]+$/;if(_0x3610e8[_0x5125d5(0x5f3)](_0x1575da))return _0x1575da[_0x5125d5(0x406)]('/')[_0x5125d5(0x690)]();else throw new Error('Invalid\x20batch\x20job\x20name:\x20'+_0x1575da+'.');}const _0x332ab6=/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/;if(_0x332ab6['test'](_0x1575da))return _0x1575da[_0x5125d5(0x406)]('/')[_0x5125d5(0x690)]();else{if(/^\d+$/['test'](_0x1575da))return _0x1575da;else throw new Error(_0x5125d5(0x47e)+_0x1575da+'.');}}function tJobState(_0x52f1c0){const _0x2a1bd0=a0_0x254c3a,_0x48f908=_0x52f1c0;if(_0x48f908===_0x2a1bd0(0x5e7))return _0x2a1bd0(0x396);else{if(_0x48f908===_0x2a1bd0(0x22b))return _0x2a1bd0(0x34b);else{if(_0x48f908===_0x2a1bd0(0x45e))return _0x2a1bd0(0x328);else{if(_0x48f908===_0x2a1bd0(0x5dc))return _0x2a1bd0(0x5a1);else{if(_0x48f908==='BATCH_STATE_FAILED')return'JOB_STATE_FAILED';else{if(_0x48f908===_0x2a1bd0(0x276))return _0x2a1bd0(0x4cf);else return _0x48f908===_0x2a1bd0(0x2be)?_0x2a1bd0(0x51d):_0x48f908;}}}}}}/**
32
+ * @license
33
+ * Copyright 2025 Google LLC
34
+ * SPDX-License-Identifier: Apache-2.0
35
+ */
36
+ function batchJobDestinationFromMldev(_0x1370a2){const _0x2c1070=a0_0x254c3a,_0x4d1f07={},_0x5e9e63=getValueByPath(_0x1370a2,[_0x2c1070(0x470)]);_0x5e9e63!=null&&setValueByPath(_0x4d1f07,[_0x2c1070(0x3ba)],_0x5e9e63);const _0x14b69d=getValueByPath(_0x1370a2,[_0x2c1070(0x193),'inlinedResponses']);if(_0x14b69d!=null){let _0x54efff=_0x14b69d;Array['isArray'](_0x54efff)&&(_0x54efff=_0x54efff[_0x2c1070(0x221)](_0x119759=>{return inlinedResponseFromMldev(_0x119759);})),setValueByPath(_0x4d1f07,['inlinedResponses'],_0x54efff);}const _0x411081=getValueByPath(_0x1370a2,['inlinedEmbedContentResponses',_0x2c1070(0x193)]);if(_0x411081!=null){let _0x168298=_0x411081;Array['isArray'](_0x168298)&&(_0x168298=_0x168298[_0x2c1070(0x221)](_0x76519d=>{return _0x76519d;})),setValueByPath(_0x4d1f07,[_0x2c1070(0x4ca)],_0x168298);}return _0x4d1f07;}function batchJobDestinationFromVertex(_0x1f9df9){const _0x11d489=a0_0x254c3a,_0x5024c8={},_0x166c6f=getValueByPath(_0x1f9df9,['predictionsFormat']);_0x166c6f!=null&&setValueByPath(_0x5024c8,['format'],_0x166c6f);const _0x3317ad=getValueByPath(_0x1f9df9,['gcsDestination',_0x11d489(0x228)]);_0x3317ad!=null&&setValueByPath(_0x5024c8,['gcsUri'],_0x3317ad);const _0x4123dc=getValueByPath(_0x1f9df9,[_0x11d489(0x539),_0x11d489(0x2fa)]);return _0x4123dc!=null&&setValueByPath(_0x5024c8,['bigqueryUri'],_0x4123dc),_0x5024c8;}function batchJobDestinationToVertex(_0x5499eb){const _0x33559a=a0_0x254c3a,_0x66d42a={},_0x238698=getValueByPath(_0x5499eb,[_0x33559a(0x707)]);_0x238698!=null&&setValueByPath(_0x66d42a,[_0x33559a(0x516)],_0x238698);const _0x506676=getValueByPath(_0x5499eb,[_0x33559a(0x569)]);_0x506676!=null&&setValueByPath(_0x66d42a,[_0x33559a(0x6e8),'outputUriPrefix'],_0x506676);const _0x4e8ad4=getValueByPath(_0x5499eb,[_0x33559a(0x5c6)]);_0x4e8ad4!=null&&setValueByPath(_0x66d42a,['bigqueryDestination',_0x33559a(0x2fa)],_0x4e8ad4);if(getValueByPath(_0x5499eb,[_0x33559a(0x3ba)])!==undefined)throw new Error(_0x33559a(0x1fa));if(getValueByPath(_0x5499eb,[_0x33559a(0x193)])!==undefined)throw new Error(_0x33559a(0x606));if(getValueByPath(_0x5499eb,[_0x33559a(0x4ca)])!==undefined)throw new Error(_0x33559a(0x521));return _0x66d42a;}function batchJobFromMldev(_0x4e4037){const _0x38b85d=a0_0x254c3a,_0x16943e={},_0x52a783=getValueByPath(_0x4e4037,[_0x38b85d(0x68e)]);_0x52a783!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x68e)],_0x52a783);const _0xfffb1d=getValueByPath(_0x4e4037,['metadata',_0x38b85d(0x462)]);_0xfffb1d!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x462)],_0xfffb1d);const _0x5f14ef=getValueByPath(_0x4e4037,[_0x38b85d(0x3d3),_0x38b85d(0x292)]);_0x5f14ef!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x292)],tJobState(_0x5f14ef));const _0x4c02cf=getValueByPath(_0x4e4037,[_0x38b85d(0x3d3),'createTime']);_0x4c02cf!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x3ff)],_0x4c02cf);const _0x35b381=getValueByPath(_0x4e4037,[_0x38b85d(0x3d3),_0x38b85d(0x6de)]);_0x35b381!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x6de)],_0x35b381);const _0x131541=getValueByPath(_0x4e4037,[_0x38b85d(0x3d3),_0x38b85d(0x4af)]);_0x131541!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x4af)],_0x131541);const _0xb6389d=getValueByPath(_0x4e4037,[_0x38b85d(0x3d3),_0x38b85d(0x492)]);_0xb6389d!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x492)],_0xb6389d);const _0x5a8d02=getValueByPath(_0x4e4037,[_0x38b85d(0x3d3),'output']);return _0x5a8d02!=null&&setValueByPath(_0x16943e,[_0x38b85d(0x5e3)],batchJobDestinationFromMldev(tRecvBatchJobDestination(_0x5a8d02))),_0x16943e;}function batchJobFromVertex(_0x1e498a){const _0x11209d=a0_0x254c3a,_0x32d035={},_0x385407=getValueByPath(_0x1e498a,[_0x11209d(0x68e)]);_0x385407!=null&&setValueByPath(_0x32d035,[_0x11209d(0x68e)],_0x385407);const _0x2e11b8=getValueByPath(_0x1e498a,[_0x11209d(0x462)]);_0x2e11b8!=null&&setValueByPath(_0x32d035,[_0x11209d(0x462)],_0x2e11b8);const _0x5af470=getValueByPath(_0x1e498a,[_0x11209d(0x292)]);_0x5af470!=null&&setValueByPath(_0x32d035,[_0x11209d(0x292)],tJobState(_0x5af470));const _0x5c46e5=getValueByPath(_0x1e498a,[_0x11209d(0x20b)]);_0x5c46e5!=null&&setValueByPath(_0x32d035,[_0x11209d(0x20b)],_0x5c46e5);const _0x174aba=getValueByPath(_0x1e498a,[_0x11209d(0x3ff)]);_0x174aba!=null&&setValueByPath(_0x32d035,[_0x11209d(0x3ff)],_0x174aba);const _0x5f5660=getValueByPath(_0x1e498a,[_0x11209d(0x208)]);_0x5f5660!=null&&setValueByPath(_0x32d035,['startTime'],_0x5f5660);const _0x23ec46=getValueByPath(_0x1e498a,[_0x11209d(0x6de)]);_0x23ec46!=null&&setValueByPath(_0x32d035,[_0x11209d(0x6de)],_0x23ec46);const _0x141c13=getValueByPath(_0x1e498a,[_0x11209d(0x4af)]);_0x141c13!=null&&setValueByPath(_0x32d035,[_0x11209d(0x4af)],_0x141c13);const _0x642369=getValueByPath(_0x1e498a,[_0x11209d(0x492)]);_0x642369!=null&&setValueByPath(_0x32d035,['model'],_0x642369);const _0x8d58bf=getValueByPath(_0x1e498a,[_0x11209d(0x438)]);_0x8d58bf!=null&&setValueByPath(_0x32d035,[_0x11209d(0x3ca)],batchJobSourceFromVertex(_0x8d58bf));const _0x32421d=getValueByPath(_0x1e498a,[_0x11209d(0x67c)]);_0x32421d!=null&&setValueByPath(_0x32d035,[_0x11209d(0x5e3)],batchJobDestinationFromVertex(tRecvBatchJobDestination(_0x32421d)));const _0x4ecfaf=getValueByPath(_0x1e498a,[_0x11209d(0x287)]);return _0x4ecfaf!=null&&setValueByPath(_0x32d035,[_0x11209d(0x287)],_0x4ecfaf),_0x32d035;}function batchJobSourceFromVertex(_0x91262e){const _0x482f87=a0_0x254c3a,_0x5a939d={},_0x32df81=getValueByPath(_0x91262e,[_0x482f87(0x64d)]);_0x32df81!=null&&setValueByPath(_0x5a939d,[_0x482f87(0x707)],_0x32df81);const _0x429664=getValueByPath(_0x91262e,[_0x482f87(0x5aa),'uris']);_0x429664!=null&&setValueByPath(_0x5a939d,[_0x482f87(0x569)],_0x429664);const _0x559f5f=getValueByPath(_0x91262e,[_0x482f87(0x3cb),'inputUri']);return _0x559f5f!=null&&setValueByPath(_0x5a939d,[_0x482f87(0x5c6)],_0x559f5f),_0x5a939d;}function batchJobSourceToMldev(_0x4323ec,_0xb16c85){const _0x326269=a0_0x254c3a,_0x93eab0={};if(getValueByPath(_0xb16c85,[_0x326269(0x707)])!==undefined)throw new Error(_0x326269(0x2c6));if(getValueByPath(_0xb16c85,['gcsUri'])!==undefined)throw new Error(_0x326269(0x2cf));if(getValueByPath(_0xb16c85,[_0x326269(0x5c6)])!==undefined)throw new Error(_0x326269(0x446));const _0x4acb9f=getValueByPath(_0xb16c85,['fileName']);_0x4acb9f!=null&&setValueByPath(_0x93eab0,[_0x326269(0x3ba)],_0x4acb9f);const _0x1fb302=getValueByPath(_0xb16c85,[_0x326269(0x6a7)]);if(_0x1fb302!=null){let _0x53093b=_0x1fb302;Array[_0x326269(0x192)](_0x53093b)&&(_0x53093b=_0x53093b['map'](_0x27735a=>{return inlinedRequestToMldev(_0x4323ec,_0x27735a);})),setValueByPath(_0x93eab0,['requests',_0x326269(0x1d2)],_0x53093b);}return _0x93eab0;}function batchJobSourceToVertex(_0x4fcbbc){const _0x2d9725=a0_0x254c3a,_0x45f140={},_0x54469c=getValueByPath(_0x4fcbbc,['format']);_0x54469c!=null&&setValueByPath(_0x45f140,['instancesFormat'],_0x54469c);const _0x18e0a9=getValueByPath(_0x4fcbbc,[_0x2d9725(0x569)]);_0x18e0a9!=null&&setValueByPath(_0x45f140,[_0x2d9725(0x5aa),_0x2d9725(0x483)],_0x18e0a9);const _0x19573f=getValueByPath(_0x4fcbbc,[_0x2d9725(0x5c6)]);_0x19573f!=null&&setValueByPath(_0x45f140,['bigquerySource','inputUri'],_0x19573f);if(getValueByPath(_0x4fcbbc,[_0x2d9725(0x3ba)])!==undefined)throw new Error(_0x2d9725(0x1fa));if(getValueByPath(_0x4fcbbc,[_0x2d9725(0x6a7)])!==undefined)throw new Error('inlinedRequests\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x45f140;}function blobToMldev$4(_0x3e6b21){const _0x51daab=a0_0x254c3a,_0x55a339={},_0x15966e=getValueByPath(_0x3e6b21,[_0x51daab(0x526)]);_0x15966e!=null&&setValueByPath(_0x55a339,[_0x51daab(0x526)],_0x15966e);if(getValueByPath(_0x3e6b21,['displayName'])!==undefined)throw new Error(_0x51daab(0x24a));const _0x4b9a51=getValueByPath(_0x3e6b21,['mimeType']);return _0x4b9a51!=null&&setValueByPath(_0x55a339,[_0x51daab(0x38c)],_0x4b9a51),_0x55a339;}function cancelBatchJobParametersToMldev(_0x3ee2e5,_0x38db1a){const _0x1ceb59=a0_0x254c3a,_0xc371b0={},_0x35c24e=getValueByPath(_0x38db1a,[_0x1ceb59(0x68e)]);return _0x35c24e!=null&&setValueByPath(_0xc371b0,[_0x1ceb59(0x1fb),_0x1ceb59(0x68e)],tBatchJobName(_0x3ee2e5,_0x35c24e)),_0xc371b0;}function cancelBatchJobParametersToVertex(_0xf42d5a,_0x5f3519){const _0x1433c1=a0_0x254c3a,_0x5a6eeb={},_0x3b94b7=getValueByPath(_0x5f3519,[_0x1433c1(0x68e)]);return _0x3b94b7!=null&&setValueByPath(_0x5a6eeb,['_url',_0x1433c1(0x68e)],tBatchJobName(_0xf42d5a,_0x3b94b7)),_0x5a6eeb;}function candidateFromMldev$1(_0x35d853){const _0x18ef4f=a0_0x254c3a,_0x5b708={},_0x26e702=getValueByPath(_0x35d853,[_0x18ef4f(0x60e)]);_0x26e702!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x60e)],_0x26e702);const _0x5c4d42=getValueByPath(_0x35d853,[_0x18ef4f(0x35e)]);_0x5c4d42!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x35e)],citationMetadataFromMldev$1(_0x5c4d42));const _0x1cd26d=getValueByPath(_0x35d853,['tokenCount']);_0x1cd26d!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x6c8)],_0x1cd26d);const _0x5507e4=getValueByPath(_0x35d853,[_0x18ef4f(0x29a)]);_0x5507e4!=null&&setValueByPath(_0x5b708,['finishReason'],_0x5507e4);const _0x4ff780=getValueByPath(_0x35d853,[_0x18ef4f(0x231)]);_0x4ff780!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x231)],_0x4ff780);const _0x59bdac=getValueByPath(_0x35d853,[_0x18ef4f(0x6fe)]);_0x59bdac!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x6fe)],_0x59bdac);const _0x3360e9=getValueByPath(_0x35d853,[_0x18ef4f(0x60d)]);_0x3360e9!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x60d)],_0x3360e9);const _0x55782b=getValueByPath(_0x35d853,[_0x18ef4f(0x361)]);_0x55782b!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x361)],_0x55782b);const _0x1798d6=getValueByPath(_0x35d853,[_0x18ef4f(0x501)]);if(_0x1798d6!=null){let _0x314578=_0x1798d6;Array[_0x18ef4f(0x192)](_0x314578)&&(_0x314578=_0x314578[_0x18ef4f(0x221)](_0x1466e1=>{return _0x1466e1;})),setValueByPath(_0x5b708,['safetyRatings'],_0x314578);}const _0x26ef4d=getValueByPath(_0x35d853,['urlContextMetadata']);return _0x26ef4d!=null&&setValueByPath(_0x5b708,[_0x18ef4f(0x2f6)],_0x26ef4d),_0x5b708;}function citationMetadataFromMldev$1(_0x23d583){const _0x22fbb7=a0_0x254c3a,_0x57b935={},_0xbfcde0=getValueByPath(_0x23d583,[_0x22fbb7(0x1c5)]);if(_0xbfcde0!=null){let _0x3e0e2d=_0xbfcde0;Array['isArray'](_0x3e0e2d)&&(_0x3e0e2d=_0x3e0e2d['map'](_0x50eaf2=>{return _0x50eaf2;})),setValueByPath(_0x57b935,[_0x22fbb7(0x4ee)],_0x3e0e2d);}return _0x57b935;}function contentToMldev$4(_0x3b0eb0){const _0x39eb16=a0_0x254c3a,_0x570c8e={},_0x223ff5=getValueByPath(_0x3b0eb0,[_0x39eb16(0x435)]);if(_0x223ff5!=null){let _0x31e7d3=_0x223ff5;Array[_0x39eb16(0x192)](_0x31e7d3)&&(_0x31e7d3=_0x31e7d3[_0x39eb16(0x221)](_0x40329c=>{return partToMldev$4(_0x40329c);})),setValueByPath(_0x570c8e,[_0x39eb16(0x435)],_0x31e7d3);}const _0x1dfc5c=getValueByPath(_0x3b0eb0,[_0x39eb16(0x5ca)]);return _0x1dfc5c!=null&&setValueByPath(_0x570c8e,[_0x39eb16(0x5ca)],_0x1dfc5c),_0x570c8e;}function createBatchJobConfigToMldev(_0x161754,_0x342aea){const _0x44abb9=a0_0x254c3a,_0x4ee4bc={},_0x4d7548=getValueByPath(_0x161754,[_0x44abb9(0x462)]);_0x342aea!==undefined&&_0x4d7548!=null&&setValueByPath(_0x342aea,[_0x44abb9(0x3db),_0x44abb9(0x462)],_0x4d7548);if(getValueByPath(_0x161754,[_0x44abb9(0x5e3)])!==undefined)throw new Error(_0x44abb9(0x43d));return _0x4ee4bc;}function createBatchJobConfigToVertex(_0xe183bc,_0x27e59c){const _0x47204e=a0_0x254c3a,_0x1bbaa1={},_0x49203e=getValueByPath(_0xe183bc,[_0x47204e(0x462)]);_0x27e59c!==undefined&&_0x49203e!=null&&setValueByPath(_0x27e59c,[_0x47204e(0x462)],_0x49203e);const _0x4d13c8=getValueByPath(_0xe183bc,[_0x47204e(0x5e3)]);return _0x27e59c!==undefined&&_0x4d13c8!=null&&setValueByPath(_0x27e59c,[_0x47204e(0x67c)],batchJobDestinationToVertex(tBatchJobDestination(_0x4d13c8))),_0x1bbaa1;}function createBatchJobParametersToMldev(_0x16876a,_0x2f43d5){const _0x2a9d1c=a0_0x254c3a,_0x1df7f8={},_0xed1a4e=getValueByPath(_0x2f43d5,[_0x2a9d1c(0x492)]);_0xed1a4e!=null&&setValueByPath(_0x1df7f8,['_url',_0x2a9d1c(0x492)],tModel(_0x16876a,_0xed1a4e));const _0xda3d94=getValueByPath(_0x2f43d5,['src']);_0xda3d94!=null&&setValueByPath(_0x1df7f8,[_0x2a9d1c(0x3db),_0x2a9d1c(0x438)],batchJobSourceToMldev(_0x16876a,tBatchJobSource(_0x16876a,_0xda3d94)));const _0x5a30f7=getValueByPath(_0x2f43d5,['config']);return _0x5a30f7!=null&&createBatchJobConfigToMldev(_0x5a30f7,_0x1df7f8),_0x1df7f8;}function createBatchJobParametersToVertex(_0x1c2aeb,_0x4dd6a7){const _0x4c436f=a0_0x254c3a,_0x2b4bb0={},_0x3bce7d=getValueByPath(_0x4dd6a7,['model']);_0x3bce7d!=null&&setValueByPath(_0x2b4bb0,[_0x4c436f(0x492)],tModel(_0x1c2aeb,_0x3bce7d));const _0x6ea09c=getValueByPath(_0x4dd6a7,['src']);_0x6ea09c!=null&&setValueByPath(_0x2b4bb0,[_0x4c436f(0x438)],batchJobSourceToVertex(tBatchJobSource(_0x1c2aeb,_0x6ea09c)));const _0x19e0af=getValueByPath(_0x4dd6a7,[_0x4c436f(0x563)]);return _0x19e0af!=null&&createBatchJobConfigToVertex(_0x19e0af,_0x2b4bb0),_0x2b4bb0;}function createEmbeddingsBatchJobConfigToMldev(_0x53390d,_0x48f844){const _0x59ccae=a0_0x254c3a,_0x27f4c2={},_0x3c9903=getValueByPath(_0x53390d,[_0x59ccae(0x462)]);return _0x48f844!==undefined&&_0x3c9903!=null&&setValueByPath(_0x48f844,['batch',_0x59ccae(0x462)],_0x3c9903),_0x27f4c2;}function createEmbeddingsBatchJobParametersToMldev(_0x24a798,_0x1cc220){const _0x3225ce=a0_0x254c3a,_0x444b46={},_0x26f513=getValueByPath(_0x1cc220,[_0x3225ce(0x492)]);_0x26f513!=null&&setValueByPath(_0x444b46,[_0x3225ce(0x1fb),'model'],tModel(_0x24a798,_0x26f513));const _0x500805=getValueByPath(_0x1cc220,['src']);_0x500805!=null&&setValueByPath(_0x444b46,[_0x3225ce(0x3db),_0x3225ce(0x438)],embeddingsBatchJobSourceToMldev(_0x24a798,_0x500805));const _0x53f078=getValueByPath(_0x1cc220,[_0x3225ce(0x563)]);return _0x53f078!=null&&createEmbeddingsBatchJobConfigToMldev(_0x53f078,_0x444b46),_0x444b46;}function deleteBatchJobParametersToMldev(_0x41320c,_0x56dab7){const _0x5711dd=a0_0x254c3a,_0x345f31={},_0x38fdd4=getValueByPath(_0x56dab7,['name']);return _0x38fdd4!=null&&setValueByPath(_0x345f31,[_0x5711dd(0x1fb),_0x5711dd(0x68e)],tBatchJobName(_0x41320c,_0x38fdd4)),_0x345f31;}function deleteBatchJobParametersToVertex(_0x2d611f,_0xc30b99){const _0x413cb2=a0_0x254c3a,_0x484d39={},_0x53813b=getValueByPath(_0xc30b99,[_0x413cb2(0x68e)]);return _0x53813b!=null&&setValueByPath(_0x484d39,[_0x413cb2(0x1fb),'name'],tBatchJobName(_0x2d611f,_0x53813b)),_0x484d39;}function deleteResourceJobFromMldev(_0x14a648){const _0x435a5a=a0_0x254c3a,_0x35ed08={},_0x502d19=getValueByPath(_0x14a648,[_0x435a5a(0x1ab)]);_0x502d19!=null&&setValueByPath(_0x35ed08,[_0x435a5a(0x1ab)],_0x502d19);const _0x2a295f=getValueByPath(_0x14a648,['name']);_0x2a295f!=null&&setValueByPath(_0x35ed08,[_0x435a5a(0x68e)],_0x2a295f);const _0x5d1ac8=getValueByPath(_0x14a648,['done']);_0x5d1ac8!=null&&setValueByPath(_0x35ed08,[_0x435a5a(0x183)],_0x5d1ac8);const _0x3cd300=getValueByPath(_0x14a648,[_0x435a5a(0x20b)]);return _0x3cd300!=null&&setValueByPath(_0x35ed08,['error'],_0x3cd300),_0x35ed08;}function deleteResourceJobFromVertex(_0x20dac9){const _0x433e5e=a0_0x254c3a,_0x40d33d={},_0x255019=getValueByPath(_0x20dac9,[_0x433e5e(0x1ab)]);_0x255019!=null&&setValueByPath(_0x40d33d,[_0x433e5e(0x1ab)],_0x255019);const _0x489383=getValueByPath(_0x20dac9,[_0x433e5e(0x68e)]);_0x489383!=null&&setValueByPath(_0x40d33d,[_0x433e5e(0x68e)],_0x489383);const _0x1c1b90=getValueByPath(_0x20dac9,['done']);_0x1c1b90!=null&&setValueByPath(_0x40d33d,[_0x433e5e(0x183)],_0x1c1b90);const _0x272db8=getValueByPath(_0x20dac9,['error']);return _0x272db8!=null&&setValueByPath(_0x40d33d,[_0x433e5e(0x20b)],_0x272db8),_0x40d33d;}function embedContentBatchToMldev(_0x2ef915,_0xb4e403){const _0x1fe569=a0_0x254c3a,_0x1f82cd={},_0x2cf7d5=getValueByPath(_0xb4e403,[_0x1fe569(0x1ea)]);if(_0x2cf7d5!=null){let _0x4653c2=tContentsForEmbed(_0x2ef915,_0x2cf7d5);Array['isArray'](_0x4653c2)&&(_0x4653c2=_0x4653c2[_0x1fe569(0x221)](_0x183083=>{return _0x183083;})),setValueByPath(_0x1f82cd,[_0x1fe569(0x70e),_0x1fe569(0x610),_0x1fe569(0x60e)],_0x4653c2);}const _0x281842=getValueByPath(_0xb4e403,[_0x1fe569(0x563)]);return _0x281842!=null&&(setValueByPath(_0x1f82cd,[_0x1fe569(0x33f)],embedContentConfigToMldev$1(_0x281842,_0x1f82cd)),moveValueByPath(_0x1f82cd,{'requests[].*':_0x1fe569(0x21e)})),_0x1f82cd;}function embedContentConfigToMldev$1(_0x512ea8,_0x3d53ca){const _0x1cbb6f=a0_0x254c3a,_0x531fdc={},_0x49ab0f=getValueByPath(_0x512ea8,[_0x1cbb6f(0x54d)]);_0x3d53ca!==undefined&&_0x49ab0f!=null&&setValueByPath(_0x3d53ca,['requests[]',_0x1cbb6f(0x54d)],_0x49ab0f);const _0x4fdc6f=getValueByPath(_0x512ea8,[_0x1cbb6f(0x46c)]);_0x3d53ca!==undefined&&_0x4fdc6f!=null&&setValueByPath(_0x3d53ca,[_0x1cbb6f(0x70e),'title'],_0x4fdc6f);const _0x32baef=getValueByPath(_0x512ea8,[_0x1cbb6f(0x6b6)]);_0x3d53ca!==undefined&&_0x32baef!=null&&setValueByPath(_0x3d53ca,[_0x1cbb6f(0x70e),'outputDimensionality'],_0x32baef);if(getValueByPath(_0x512ea8,[_0x1cbb6f(0x38c)])!==undefined)throw new Error(_0x1cbb6f(0x210));if(getValueByPath(_0x512ea8,['autoTruncate'])!==undefined)throw new Error(_0x1cbb6f(0x41e));return _0x531fdc;}function embeddingsBatchJobSourceToMldev(_0x539f67,_0x555b22){const _0x24eb0e=a0_0x254c3a,_0x4a0d41={},_0x598adf=getValueByPath(_0x555b22,[_0x24eb0e(0x3ba)]);_0x598adf!=null&&setValueByPath(_0x4a0d41,[_0x24eb0e(0x1bc)],_0x598adf);const _0x1f2369=getValueByPath(_0x555b22,[_0x24eb0e(0x6a7)]);return _0x1f2369!=null&&setValueByPath(_0x4a0d41,[_0x24eb0e(0x1d2)],embedContentBatchToMldev(_0x539f67,_0x1f2369)),_0x4a0d41;}function fileDataToMldev$4(_0x4c9889){const _0x37df99=a0_0x254c3a,_0xd6fd38={};if(getValueByPath(_0x4c9889,[_0x37df99(0x462)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x43fdc3=getValueByPath(_0x4c9889,[_0x37df99(0x617)]);_0x43fdc3!=null&&setValueByPath(_0xd6fd38,['fileUri'],_0x43fdc3);const _0x2fc29b=getValueByPath(_0x4c9889,[_0x37df99(0x38c)]);return _0x2fc29b!=null&&setValueByPath(_0xd6fd38,['mimeType'],_0x2fc29b),_0xd6fd38;}function functionCallToMldev$4(_0x306d25){const _0x4d7202=a0_0x254c3a,_0x3eba8d={},_0x4d9002=getValueByPath(_0x306d25,['id']);_0x4d9002!=null&&setValueByPath(_0x3eba8d,['id'],_0x4d9002);const _0x4c7d7a=getValueByPath(_0x306d25,[_0x4d7202(0x4d6)]);_0x4c7d7a!=null&&setValueByPath(_0x3eba8d,[_0x4d7202(0x4d6)],_0x4c7d7a);const _0x3bbcc3=getValueByPath(_0x306d25,[_0x4d7202(0x68e)]);_0x3bbcc3!=null&&setValueByPath(_0x3eba8d,[_0x4d7202(0x68e)],_0x3bbcc3);if(getValueByPath(_0x306d25,[_0x4d7202(0x374)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x306d25,[_0x4d7202(0x480)])!==undefined)throw new Error(_0x4d7202(0x17d));return _0x3eba8d;}function functionCallingConfigToMldev$2(_0x5a6907){const _0x2fd2b2=a0_0x254c3a,_0x701374={},_0x1a0f5d=getValueByPath(_0x5a6907,[_0x2fd2b2(0x19b)]);_0x1a0f5d!=null&&setValueByPath(_0x701374,[_0x2fd2b2(0x19b)],_0x1a0f5d);const _0x46fd20=getValueByPath(_0x5a6907,[_0x2fd2b2(0x19e)]);_0x46fd20!=null&&setValueByPath(_0x701374,['mode'],_0x46fd20);if(getValueByPath(_0x5a6907,[_0x2fd2b2(0x557)])!==undefined)throw new Error('streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x701374;}function generateContentConfigToMldev$1(_0x1cf034,_0x421c7f,_0x4ee255){const _0x122430=a0_0x254c3a,_0x117fa3={},_0x5914d0=getValueByPath(_0x421c7f,['systemInstruction']);_0x4ee255!==undefined&&_0x5914d0!=null&&setValueByPath(_0x4ee255,[_0x122430(0x2ba)],contentToMldev$4(tContent(_0x5914d0)));const _0x14fb06=getValueByPath(_0x421c7f,[_0x122430(0x1e2)]);_0x14fb06!=null&&setValueByPath(_0x117fa3,[_0x122430(0x1e2)],_0x14fb06);const _0x5374da=getValueByPath(_0x421c7f,[_0x122430(0x651)]);_0x5374da!=null&&setValueByPath(_0x117fa3,[_0x122430(0x651)],_0x5374da);const _0x33da0a=getValueByPath(_0x421c7f,[_0x122430(0x1a6)]);_0x33da0a!=null&&setValueByPath(_0x117fa3,['topK'],_0x33da0a);const _0x6710af=getValueByPath(_0x421c7f,[_0x122430(0x518)]);_0x6710af!=null&&setValueByPath(_0x117fa3,[_0x122430(0x518)],_0x6710af);const _0x113c89=getValueByPath(_0x421c7f,['maxOutputTokens']);_0x113c89!=null&&setValueByPath(_0x117fa3,[_0x122430(0x1a3)],_0x113c89);const _0x4ce8ad=getValueByPath(_0x421c7f,[_0x122430(0x56b)]);_0x4ce8ad!=null&&setValueByPath(_0x117fa3,[_0x122430(0x56b)],_0x4ce8ad);const _0x12ac62=getValueByPath(_0x421c7f,[_0x122430(0x725)]);_0x12ac62!=null&&setValueByPath(_0x117fa3,[_0x122430(0x725)],_0x12ac62);const _0x39f6a9=getValueByPath(_0x421c7f,[_0x122430(0x4da)]);_0x39f6a9!=null&&setValueByPath(_0x117fa3,[_0x122430(0x4da)],_0x39f6a9);const _0x53a4a0=getValueByPath(_0x421c7f,[_0x122430(0x646)]);_0x53a4a0!=null&&setValueByPath(_0x117fa3,[_0x122430(0x646)],_0x53a4a0);const _0x813027=getValueByPath(_0x421c7f,[_0x122430(0x71c)]);_0x813027!=null&&setValueByPath(_0x117fa3,[_0x122430(0x71c)],_0x813027);const _0x3e4e73=getValueByPath(_0x421c7f,['seed']);_0x3e4e73!=null&&setValueByPath(_0x117fa3,[_0x122430(0x1f8)],_0x3e4e73);const _0x4015e3=getValueByPath(_0x421c7f,[_0x122430(0x28f)]);_0x4015e3!=null&&setValueByPath(_0x117fa3,['responseMimeType'],_0x4015e3);const _0x504950=getValueByPath(_0x421c7f,['responseSchema']);_0x504950!=null&&setValueByPath(_0x117fa3,[_0x122430(0x1cb)],tSchema(_0x504950));const _0x2c8a98=getValueByPath(_0x421c7f,[_0x122430(0x2a6)]);_0x2c8a98!=null&&setValueByPath(_0x117fa3,['responseJsonSchema'],_0x2c8a98);if(getValueByPath(_0x421c7f,['routingConfig'])!==undefined)throw new Error(_0x122430(0x1e4));if(getValueByPath(_0x421c7f,[_0x122430(0x69b)])!==undefined)throw new Error(_0x122430(0x1a9));const _0x4d41bd=getValueByPath(_0x421c7f,[_0x122430(0x36a)]);if(_0x4ee255!==undefined&&_0x4d41bd!=null){let _0x3d84d6=_0x4d41bd;Array[_0x122430(0x192)](_0x3d84d6)&&(_0x3d84d6=_0x3d84d6[_0x122430(0x221)](_0xa69aa6=>{return safetySettingToMldev$1(_0xa69aa6);})),setValueByPath(_0x4ee255,[_0x122430(0x36a)],_0x3d84d6);}const _0x16e1fd=getValueByPath(_0x421c7f,[_0x122430(0x1e6)]);if(_0x4ee255!==undefined&&_0x16e1fd!=null){let _0x276557=tTools(_0x16e1fd);Array['isArray'](_0x276557)&&(_0x276557=_0x276557[_0x122430(0x221)](_0x2c9e1a=>{return toolToMldev$4(tTool(_0x2c9e1a));})),setValueByPath(_0x4ee255,[_0x122430(0x1e6)],_0x276557);}const _0x21f4c0=getValueByPath(_0x421c7f,[_0x122430(0x440)]);_0x4ee255!==undefined&&_0x21f4c0!=null&&setValueByPath(_0x4ee255,[_0x122430(0x440)],toolConfigToMldev$2(_0x21f4c0));if(getValueByPath(_0x421c7f,['labels'])!==undefined)throw new Error(_0x122430(0x639));const _0x1869f2=getValueByPath(_0x421c7f,[_0x122430(0x224)]);_0x4ee255!==undefined&&_0x1869f2!=null&&setValueByPath(_0x4ee255,[_0x122430(0x224)],tCachedContentName(_0x1cf034,_0x1869f2));const _0x1af462=getValueByPath(_0x421c7f,['responseModalities']);_0x1af462!=null&&setValueByPath(_0x117fa3,[_0x122430(0x6d4)],_0x1af462);const _0xc7614f=getValueByPath(_0x421c7f,[_0x122430(0x667)]);_0xc7614f!=null&&setValueByPath(_0x117fa3,[_0x122430(0x667)],_0xc7614f);const _0x444e57=getValueByPath(_0x421c7f,['speechConfig']);_0x444e57!=null&&setValueByPath(_0x117fa3,[_0x122430(0x540)],tSpeechConfig(_0x444e57));if(getValueByPath(_0x421c7f,[_0x122430(0x633)])!==undefined)throw new Error(_0x122430(0x65a));const _0x55b9d5=getValueByPath(_0x421c7f,[_0x122430(0x414)]);_0x55b9d5!=null&&setValueByPath(_0x117fa3,[_0x122430(0x414)],_0x55b9d5);const _0x2f3b47=getValueByPath(_0x421c7f,['imageConfig']);_0x2f3b47!=null&&setValueByPath(_0x117fa3,[_0x122430(0x61c)],imageConfigToMldev$1(_0x2f3b47));const _0x3b315c=getValueByPath(_0x421c7f,[_0x122430(0x4e9)]);_0x3b315c!=null&&setValueByPath(_0x117fa3,[_0x122430(0x4e9)],_0x3b315c);if(getValueByPath(_0x421c7f,[_0x122430(0x6ad)])!==undefined)throw new Error(_0x122430(0x6f4));return _0x117fa3;}function generateContentResponseFromMldev$1(_0x8042fd){const _0x197427=a0_0x254c3a,_0x41f003={},_0x176d04=getValueByPath(_0x8042fd,[_0x197427(0x1ab)]);_0x176d04!=null&&setValueByPath(_0x41f003,[_0x197427(0x1ab)],_0x176d04);const _0x4ebf33=getValueByPath(_0x8042fd,[_0x197427(0x711)]);if(_0x4ebf33!=null){let _0x5ca3f8=_0x4ebf33;Array[_0x197427(0x192)](_0x5ca3f8)&&(_0x5ca3f8=_0x5ca3f8[_0x197427(0x221)](_0x5d11bc=>{return candidateFromMldev$1(_0x5d11bc);})),setValueByPath(_0x41f003,[_0x197427(0x711)],_0x5ca3f8);}const _0x241cc2=getValueByPath(_0x8042fd,[_0x197427(0x333)]);_0x241cc2!=null&&setValueByPath(_0x41f003,[_0x197427(0x333)],_0x241cc2);const _0x41c892=getValueByPath(_0x8042fd,[_0x197427(0x693)]);_0x41c892!=null&&setValueByPath(_0x41f003,[_0x197427(0x693)],_0x41c892);const _0x3b637c=getValueByPath(_0x8042fd,[_0x197427(0x6f7)]);_0x3b637c!=null&&setValueByPath(_0x41f003,[_0x197427(0x6f7)],_0x3b637c);const _0x3bdc9a=getValueByPath(_0x8042fd,['usageMetadata']);return _0x3bdc9a!=null&&setValueByPath(_0x41f003,[_0x197427(0x39e)],_0x3bdc9a),_0x41f003;}function getBatchJobParametersToMldev(_0x14a4c0,_0xe4f246){const _0x1adc7d=a0_0x254c3a,_0x632c2b={},_0x13f7ce=getValueByPath(_0xe4f246,[_0x1adc7d(0x68e)]);return _0x13f7ce!=null&&setValueByPath(_0x632c2b,[_0x1adc7d(0x1fb),_0x1adc7d(0x68e)],tBatchJobName(_0x14a4c0,_0x13f7ce)),_0x632c2b;}function getBatchJobParametersToVertex(_0x45d02e,_0x5e362f){const _0x3bd77=a0_0x254c3a,_0x379375={},_0x57b46e=getValueByPath(_0x5e362f,[_0x3bd77(0x68e)]);return _0x57b46e!=null&&setValueByPath(_0x379375,[_0x3bd77(0x1fb),'name'],tBatchJobName(_0x45d02e,_0x57b46e)),_0x379375;}function googleMapsToMldev$4(_0x1159fa){const _0x43c1b4=a0_0x254c3a,_0x47aa1c={};if(getValueByPath(_0x1159fa,[_0x43c1b4(0x2c5)])!==undefined)throw new Error('authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x24a04a=getValueByPath(_0x1159fa,[_0x43c1b4(0x5f5)]);return _0x24a04a!=null&&setValueByPath(_0x47aa1c,[_0x43c1b4(0x5f5)],_0x24a04a),_0x47aa1c;}function googleSearchToMldev$4(_0x1faf5d){const _0x5398e6=a0_0x254c3a,_0x43db1c={};if(getValueByPath(_0x1faf5d,[_0x5398e6(0x242)])!==undefined)throw new Error(_0x5398e6(0x51f));if(getValueByPath(_0x1faf5d,[_0x5398e6(0x3af)])!==undefined)throw new Error(_0x5398e6(0x4ef));const _0x32ee8b=getValueByPath(_0x1faf5d,[_0x5398e6(0x44c)]);return _0x32ee8b!=null&&setValueByPath(_0x43db1c,['timeRangeFilter'],_0x32ee8b),_0x43db1c;}function imageConfigToMldev$1(_0x2a6384){const _0x4aba62=a0_0x254c3a,_0x4acc51={},_0x212df8=getValueByPath(_0x2a6384,['aspectRatio']);_0x212df8!=null&&setValueByPath(_0x4acc51,['aspectRatio'],_0x212df8);const _0x45b881=getValueByPath(_0x2a6384,[_0x4aba62(0x25c)]);_0x45b881!=null&&setValueByPath(_0x4acc51,[_0x4aba62(0x25c)],_0x45b881);if(getValueByPath(_0x2a6384,[_0x4aba62(0x39d)])!==undefined)throw new Error(_0x4aba62(0x49a));if(getValueByPath(_0x2a6384,['outputMimeType'])!==undefined)throw new Error('outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x2a6384,['outputCompressionQuality'])!==undefined)throw new Error(_0x4aba62(0x437));return _0x4acc51;}function inlinedRequestToMldev(_0x7eebbd,_0x5d6448){const _0x4d163a=a0_0x254c3a,_0x29ad0b={},_0x4a0ef0=getValueByPath(_0x5d6448,[_0x4d163a(0x492)]);_0x4a0ef0!=null&&setValueByPath(_0x29ad0b,[_0x4d163a(0x610),_0x4d163a(0x492)],tModel(_0x7eebbd,_0x4a0ef0));const _0x351b5a=getValueByPath(_0x5d6448,[_0x4d163a(0x1ea)]);if(_0x351b5a!=null){let _0x3b4d89=tContents(_0x351b5a);Array[_0x4d163a(0x192)](_0x3b4d89)&&(_0x3b4d89=_0x3b4d89[_0x4d163a(0x221)](_0x2d9a0b=>{return contentToMldev$4(_0x2d9a0b);})),setValueByPath(_0x29ad0b,[_0x4d163a(0x610),'contents'],_0x3b4d89);}const _0x3161c9=getValueByPath(_0x5d6448,['metadata']);_0x3161c9!=null&&setValueByPath(_0x29ad0b,[_0x4d163a(0x3d3)],_0x3161c9);const _0x483eb1=getValueByPath(_0x5d6448,[_0x4d163a(0x563)]);return _0x483eb1!=null&&setValueByPath(_0x29ad0b,['request',_0x4d163a(0x324)],generateContentConfigToMldev$1(_0x7eebbd,_0x483eb1,getValueByPath(_0x29ad0b,[_0x4d163a(0x610)],{}))),_0x29ad0b;}function inlinedResponseFromMldev(_0x1f3f43){const _0x284815=a0_0x254c3a,_0x452048={},_0x3fa54a=getValueByPath(_0x1f3f43,[_0x284815(0x218)]);_0x3fa54a!=null&&setValueByPath(_0x452048,[_0x284815(0x218)],generateContentResponseFromMldev$1(_0x3fa54a));const _0x130609=getValueByPath(_0x1f3f43,[_0x284815(0x3d3)]);_0x130609!=null&&setValueByPath(_0x452048,[_0x284815(0x3d3)],_0x130609);const _0x11f54c=getValueByPath(_0x1f3f43,[_0x284815(0x20b)]);return _0x11f54c!=null&&setValueByPath(_0x452048,[_0x284815(0x20b)],_0x11f54c),_0x452048;}function listBatchJobsConfigToMldev(_0x21ee86,_0x5aea74){const _0x29004d=a0_0x254c3a,_0x3d6b76={},_0x28d923=getValueByPath(_0x21ee86,[_0x29004d(0x2a3)]);_0x5aea74!==undefined&&_0x28d923!=null&&setValueByPath(_0x5aea74,['_query',_0x29004d(0x2a3)],_0x28d923);const _0x578ab1=getValueByPath(_0x21ee86,['pageToken']);_0x5aea74!==undefined&&_0x578ab1!=null&&setValueByPath(_0x5aea74,['_query',_0x29004d(0x6d9)],_0x578ab1);if(getValueByPath(_0x21ee86,[_0x29004d(0x38a)])!==undefined)throw new Error(_0x29004d(0x694));return _0x3d6b76;}function listBatchJobsConfigToVertex(_0x1f9cc0,_0xadfeb0){const _0x3b36fa=a0_0x254c3a,_0x4ff958={},_0x2fb0cd=getValueByPath(_0x1f9cc0,[_0x3b36fa(0x2a3)]);_0xadfeb0!==undefined&&_0x2fb0cd!=null&&setValueByPath(_0xadfeb0,['_query',_0x3b36fa(0x2a3)],_0x2fb0cd);const _0x517252=getValueByPath(_0x1f9cc0,[_0x3b36fa(0x6d9)]);_0xadfeb0!==undefined&&_0x517252!=null&&setValueByPath(_0xadfeb0,[_0x3b36fa(0x32f),_0x3b36fa(0x6d9)],_0x517252);const _0x35826f=getValueByPath(_0x1f9cc0,['filter']);return _0xadfeb0!==undefined&&_0x35826f!=null&&setValueByPath(_0xadfeb0,['_query',_0x3b36fa(0x38a)],_0x35826f),_0x4ff958;}function listBatchJobsParametersToMldev(_0x5a6b35){const _0x1d195e=a0_0x254c3a,_0x5f077a={},_0x37e79a=getValueByPath(_0x5a6b35,[_0x1d195e(0x563)]);return _0x37e79a!=null&&listBatchJobsConfigToMldev(_0x37e79a,_0x5f077a),_0x5f077a;}function listBatchJobsParametersToVertex(_0x2e05b9){const _0x1ebe1d={},_0x4d75fa=getValueByPath(_0x2e05b9,['config']);return _0x4d75fa!=null&&listBatchJobsConfigToVertex(_0x4d75fa,_0x1ebe1d),_0x1ebe1d;}function listBatchJobsResponseFromMldev(_0x4c8976){const _0x377030=a0_0x254c3a,_0x512fdf={},_0x506f38=getValueByPath(_0x4c8976,[_0x377030(0x1ab)]);_0x506f38!=null&&setValueByPath(_0x512fdf,['sdkHttpResponse'],_0x506f38);const _0x1523ef=getValueByPath(_0x4c8976,['nextPageToken']);_0x1523ef!=null&&setValueByPath(_0x512fdf,[_0x377030(0x4e2)],_0x1523ef);const _0x38dcb3=getValueByPath(_0x4c8976,[_0x377030(0x185)]);if(_0x38dcb3!=null){let _0xcaa4e=_0x38dcb3;Array[_0x377030(0x192)](_0xcaa4e)&&(_0xcaa4e=_0xcaa4e[_0x377030(0x221)](_0x2ead83=>{return batchJobFromMldev(_0x2ead83);})),setValueByPath(_0x512fdf,['batchJobs'],_0xcaa4e);}return _0x512fdf;}function listBatchJobsResponseFromVertex(_0x43b622){const _0x247b3b=a0_0x254c3a,_0x36e68e={},_0x3daf52=getValueByPath(_0x43b622,[_0x247b3b(0x1ab)]);_0x3daf52!=null&&setValueByPath(_0x36e68e,['sdkHttpResponse'],_0x3daf52);const _0x43ec2d=getValueByPath(_0x43b622,[_0x247b3b(0x4e2)]);_0x43ec2d!=null&&setValueByPath(_0x36e68e,['nextPageToken'],_0x43ec2d);const _0x414a25=getValueByPath(_0x43b622,[_0x247b3b(0x35f)]);if(_0x414a25!=null){let _0x1419f0=_0x414a25;Array['isArray'](_0x1419f0)&&(_0x1419f0=_0x1419f0[_0x247b3b(0x221)](_0x39d8b1=>{return batchJobFromVertex(_0x39d8b1);})),setValueByPath(_0x36e68e,[_0x247b3b(0x400)],_0x1419f0);}return _0x36e68e;}function partToMldev$4(_0x54c140){const _0x50ce3f=a0_0x254c3a,_0x121ded={},_0x2669e3=getValueByPath(_0x54c140,[_0x50ce3f(0x667)]);_0x2669e3!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x667)],_0x2669e3);const _0xcfa2e3=getValueByPath(_0x54c140,['codeExecutionResult']);_0xcfa2e3!=null&&setValueByPath(_0x121ded,['codeExecutionResult'],_0xcfa2e3);const _0x2d0492=getValueByPath(_0x54c140,[_0x50ce3f(0x386)]);_0x2d0492!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x386)],_0x2d0492);const _0x132d56=getValueByPath(_0x54c140,[_0x50ce3f(0x26e)]);_0x132d56!=null&&setValueByPath(_0x121ded,['fileData'],fileDataToMldev$4(_0x132d56));const _0x13048c=getValueByPath(_0x54c140,[_0x50ce3f(0x5ff)]);_0x13048c!=null&&setValueByPath(_0x121ded,['functionCall'],functionCallToMldev$4(_0x13048c));const _0x26df4e=getValueByPath(_0x54c140,[_0x50ce3f(0x2af)]);_0x26df4e!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x2af)],_0x26df4e);const _0x28402c=getValueByPath(_0x54c140,['inlineData']);_0x28402c!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x59d)],blobToMldev$4(_0x28402c));const _0x5d0ef8=getValueByPath(_0x54c140,['text']);_0x5d0ef8!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x2ab)],_0x5d0ef8);const _0x509140=getValueByPath(_0x54c140,[_0x50ce3f(0x50b)]);_0x509140!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x50b)],_0x509140);const _0x152612=getValueByPath(_0x54c140,[_0x50ce3f(0x5ba)]);_0x152612!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x5ba)],_0x152612);const _0x2732a1=getValueByPath(_0x54c140,[_0x50ce3f(0x64b)]);return _0x2732a1!=null&&setValueByPath(_0x121ded,[_0x50ce3f(0x64b)],_0x2732a1),_0x121ded;}function safetySettingToMldev$1(_0x35ffce){const _0x3e3c67=a0_0x254c3a,_0x116d39={},_0x564080=getValueByPath(_0x35ffce,[_0x3e3c67(0x363)]);_0x564080!=null&&setValueByPath(_0x116d39,[_0x3e3c67(0x363)],_0x564080);if(getValueByPath(_0x35ffce,[_0x3e3c67(0x4d8)])!==undefined)throw new Error('method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0xab9775=getValueByPath(_0x35ffce,[_0x3e3c67(0x2fe)]);return _0xab9775!=null&&setValueByPath(_0x116d39,['threshold'],_0xab9775),_0x116d39;}function toolConfigToMldev$2(_0x1793b2){const _0x58c557=a0_0x254c3a,_0x2152b9={},_0x3bb894=getValueByPath(_0x1793b2,[_0x58c557(0x4e6)]);_0x3bb894!=null&&setValueByPath(_0x2152b9,['retrievalConfig'],_0x3bb894);const _0x851efc=getValueByPath(_0x1793b2,[_0x58c557(0x3f1)]);return _0x851efc!=null&&setValueByPath(_0x2152b9,[_0x58c557(0x3f1)],functionCallingConfigToMldev$2(_0x851efc)),_0x2152b9;}function toolToMldev$4(_0x45a8db){const _0x5cdda8=a0_0x254c3a,_0x13ae33={};if(getValueByPath(_0x45a8db,[_0x5cdda8(0x71e)])!==undefined)throw new Error('retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x29ba26=getValueByPath(_0x45a8db,[_0x5cdda8(0x698)]);_0x29ba26!=null&&setValueByPath(_0x13ae33,['computerUse'],_0x29ba26);const _0x336594=getValueByPath(_0x45a8db,[_0x5cdda8(0x47d)]);_0x336594!=null&&setValueByPath(_0x13ae33,['fileSearch'],_0x336594);const _0x11255f=getValueByPath(_0x45a8db,[_0x5cdda8(0x32b)]);_0x11255f!=null&&setValueByPath(_0x13ae33,['codeExecution'],_0x11255f);if(getValueByPath(_0x45a8db,[_0x5cdda8(0x506)])!==undefined)throw new Error(_0x5cdda8(0x450));const _0x1c9e49=getValueByPath(_0x45a8db,[_0x5cdda8(0x4b0)]);if(_0x1c9e49!=null){let _0x222fcb=_0x1c9e49;Array[_0x5cdda8(0x192)](_0x222fcb)&&(_0x222fcb=_0x222fcb[_0x5cdda8(0x221)](_0xee4408=>{return _0xee4408;})),setValueByPath(_0x13ae33,[_0x5cdda8(0x4b0)],_0x222fcb);}const _0x3e1e92=getValueByPath(_0x45a8db,[_0x5cdda8(0x688)]);_0x3e1e92!=null&&setValueByPath(_0x13ae33,[_0x5cdda8(0x688)],googleMapsToMldev$4(_0x3e1e92));const _0x49a39d=getValueByPath(_0x45a8db,[_0x5cdda8(0x436)]);_0x49a39d!=null&&setValueByPath(_0x13ae33,[_0x5cdda8(0x436)],googleSearchToMldev$4(_0x49a39d));const _0x185486=getValueByPath(_0x45a8db,[_0x5cdda8(0x503)]);_0x185486!=null&&setValueByPath(_0x13ae33,[_0x5cdda8(0x503)],_0x185486);const _0x2c6e1e=getValueByPath(_0x45a8db,['urlContext']);return _0x2c6e1e!=null&&setValueByPath(_0x13ae33,[_0x5cdda8(0x39b)],_0x2c6e1e),_0x13ae33;}/**
37
+ * @license
38
+ * Copyright 2025 Google LLC
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ exports[a0_0x254c3a(0x666)]=void 0x0,function(_0x326537){const _0x344e5b=a0_0x254c3a;_0x326537['PAGED_ITEM_BATCH_JOBS']=_0x344e5b(0x400),_0x326537['PAGED_ITEM_MODELS']=_0x344e5b(0x70b),_0x326537[_0x344e5b(0x552)]=_0x344e5b(0x661),_0x326537[_0x344e5b(0x46d)]='files',_0x326537['PAGED_ITEM_CACHED_CONTENTS']=_0x344e5b(0x27c),_0x326537[_0x344e5b(0x4cb)]=_0x344e5b(0x3a1),_0x326537[_0x344e5b(0x230)]=_0x344e5b(0x3ad);}(exports[a0_0x254c3a(0x666)]||(exports['PagedItem']={}));class Pager{constructor(_0x1ade4e,_0x29aa1e,_0x1c16ab,_0x41ed95){const _0x47a944=a0_0x254c3a;this['pageInternal']=[],this[_0x47a944(0x4bd)]={},this['requestInternal']=_0x29aa1e,this[_0x47a944(0x186)](_0x1ade4e,_0x1c16ab,_0x41ed95);}[a0_0x254c3a(0x186)](_0x3ab54d,_0x31f2ac,_0x360d97){const _0x36569f=a0_0x254c3a;var _0x5467c5,_0x3b1841;this['nameInternal']=_0x3ab54d,this['pageInternal']=_0x31f2ac[this[_0x36569f(0x1a8)]]||[],this['sdkHttpResponseInternal']=_0x31f2ac===null||_0x31f2ac===void 0x0?void 0x0:_0x31f2ac['sdkHttpResponse'],this[_0x36569f(0x42b)]=0x0;let _0x1555be={'config':{}};if(!_0x360d97||Object['keys'](_0x360d97)['length']===0x0)_0x1555be={'config':{}};else typeof _0x360d97==='object'?_0x1555be=Object[_0x36569f(0x64e)]({},_0x360d97):_0x1555be=_0x360d97;_0x1555be[_0x36569f(0x563)]&&(_0x1555be[_0x36569f(0x563)][_0x36569f(0x6d9)]=_0x31f2ac[_0x36569f(0x4e2)]),this[_0x36569f(0x4bd)]=_0x1555be,this[_0x36569f(0x340)]=(_0x3b1841=(_0x5467c5=_0x1555be[_0x36569f(0x563)])===null||_0x5467c5===void 0x0?void 0x0:_0x5467c5['pageSize'])!==null&&_0x3b1841!==void 0x0?_0x3b1841:this['pageInternal'][_0x36569f(0x3d2)];}[a0_0x254c3a(0x250)](_0x49d6b1){const _0x5e401f=a0_0x254c3a;this[_0x5e401f(0x186)](this[_0x5e401f(0x1a8)],_0x49d6b1,this[_0x5e401f(0x4bd)]);}get['page'](){const _0x3d1715=a0_0x254c3a;return this[_0x3d1715(0x71b)];}get[a0_0x254c3a(0x68e)](){const _0x299e71=a0_0x254c3a;return this[_0x299e71(0x1a8)];}get[a0_0x254c3a(0x2a3)](){const _0x1b7291=a0_0x254c3a;return this[_0x1b7291(0x340)];}get['sdkHttpResponse'](){const _0x48487c=a0_0x254c3a;return this[_0x48487c(0x57b)];}get['params'](){const _0x2ad982=a0_0x254c3a;return this[_0x2ad982(0x4bd)];}get[a0_0x254c3a(0x5b2)](){const _0xffba14=a0_0x254c3a;return this[_0xffba14(0x71b)][_0xffba14(0x3d2)];}[a0_0x254c3a(0x680)](_0x1e0409){const _0x37f88c=a0_0x254c3a;return this[_0x37f88c(0x71b)][_0x1e0409];}[Symbol[a0_0x254c3a(0x561)]](){return{'next':async()=>{const _0x4216e5=a0_0x3530;if(this['idxInternal']>=this[_0x4216e5(0x5b2)]){if(this['hasNextPage']())await this[_0x4216e5(0x6e7)]();else return{'value':undefined,'done':!![]};}const _0x392163=this['getItem'](this[_0x4216e5(0x42b)]);return this['idxInternal']+=0x1,{'value':_0x392163,'done':![]};},'return':async()=>{return{'value':undefined,'done':!![]};}};}async[a0_0x254c3a(0x6e7)](){const _0x132d51=a0_0x254c3a;if(!this[_0x132d51(0x5c3)]())throw new Error('No\x20more\x20pages\x20to\x20fetch.');const _0x459828=await this[_0x132d51(0x2b6)](this[_0x132d51(0x1af)]);return this[_0x132d51(0x250)](_0x459828),this[_0x132d51(0x2f9)];}['hasNextPage'](){const _0x2dc357=a0_0x254c3a;var _0x23355f;if(((_0x23355f=this[_0x2dc357(0x1af)]['config'])===null||_0x23355f===void 0x0?void 0x0:_0x23355f[_0x2dc357(0x6d9)])!==undefined)return!![];return![];}}/**
42
+ * @license
43
+ * Copyright 2025 Google LLC
44
+ * SPDX-License-Identifier: Apache-2.0
45
+ */
46
+ class Batches extends BaseModule{constructor(_0xe35f45){const _0x4e571d=a0_0x254c3a;super(),this[_0x4e571d(0x6cf)]=_0xe35f45,this[_0x4e571d(0x488)]=async(_0x51433b={})=>{const _0x543ab3=_0x4e571d;return new Pager(exports[_0x543ab3(0x666)][_0x543ab3(0x3d7)],_0x1ff3b0=>this['listInternal'](_0x1ff3b0),await this[_0x543ab3(0x475)](_0x51433b),_0x51433b);},this[_0x4e571d(0x1b6)]=async _0x194600=>{const _0x3844ae=_0x4e571d;return this[_0x3844ae(0x6cf)][_0x3844ae(0x2b9)]()&&(_0x194600['config']=this[_0x3844ae(0x1c6)](_0x194600['src'],_0x194600[_0x3844ae(0x563)])),this[_0x3844ae(0x603)](_0x194600);},this[_0x4e571d(0x362)]=async _0x516b98=>{const _0x3da7eb=_0x4e571d;console[_0x3da7eb(0x69c)](_0x3da7eb(0x4dd));if(this['apiClient'][_0x3da7eb(0x2b9)]())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20batches.createEmbeddings.');return this['createEmbeddingsInternal'](_0x516b98);};}[a0_0x254c3a(0x1cf)](_0x2caa49){const _0x366dec=a0_0x254c3a,_0x321c60=createBatchJobParametersToMldev(this[_0x366dec(0x6cf)],_0x2caa49),_0x29965b=_0x321c60[_0x366dec(0x1fb)],_0xd618e=formatMap(_0x366dec(0x1b4),_0x29965b),_0x236457=_0x321c60[_0x366dec(0x3db)],_0x164cff=_0x236457[_0x366dec(0x438)],_0x9c8c03=_0x164cff[_0x366dec(0x1d2)],_0x17a824=_0x9c8c03[_0x366dec(0x1d2)],_0x55c43f=[];for(const _0x20262a of _0x17a824){const _0x4b6819=Object['assign']({},_0x20262a);if(_0x4b6819[_0x366dec(0x2ba)]){const _0x2c3ffe=_0x4b6819['systemInstruction'];delete _0x4b6819['systemInstruction'];const _0x598695=_0x4b6819[_0x366dec(0x610)];_0x598695[_0x366dec(0x2ba)]=_0x2c3ffe,_0x4b6819[_0x366dec(0x610)]=_0x598695;}_0x55c43f[_0x366dec(0x417)](_0x4b6819);}return _0x9c8c03[_0x366dec(0x1d2)]=_0x55c43f,delete _0x321c60[_0x366dec(0x563)],delete _0x321c60['_url'],delete _0x321c60[_0x366dec(0x32f)],{'path':_0xd618e,'body':_0x321c60};}[a0_0x254c3a(0x5b8)](_0x134a4f){const _0x3aa6bf=a0_0x254c3a;if(typeof _0x134a4f===_0x3aa6bf(0x4ae))return _0x134a4f['startsWith']('gs://')?_0x134a4f:undefined;if(!Array[_0x3aa6bf(0x192)](_0x134a4f)&&_0x134a4f[_0x3aa6bf(0x569)]&&_0x134a4f[_0x3aa6bf(0x569)][_0x3aa6bf(0x3d2)]>0x0)return _0x134a4f[_0x3aa6bf(0x569)][0x0];return undefined;}[a0_0x254c3a(0x29b)](_0x154b7b){const _0x4a1e54=a0_0x254c3a;if(typeof _0x154b7b===_0x4a1e54(0x4ae))return _0x154b7b[_0x4a1e54(0x320)](_0x4a1e54(0x1e9))?_0x154b7b:undefined;if(!Array['isArray'](_0x154b7b))return _0x154b7b[_0x4a1e54(0x5c6)];return undefined;}[a0_0x254c3a(0x1c6)](_0x33000d,_0xfdc52a){const _0x4b965d=a0_0x254c3a,_0x35482c=_0xfdc52a?Object[_0x4b965d(0x64e)]({},_0xfdc52a):{},_0x29cb21=Date['now']()['toString']();!_0x35482c[_0x4b965d(0x462)]&&(_0x35482c['displayName']=_0x4b965d(0x48e)+_0x29cb21);if(_0x35482c[_0x4b965d(0x5e3)]===undefined){const _0x49d103=this[_0x4b965d(0x5b8)](_0x33000d),_0xb4347b=this[_0x4b965d(0x29b)](_0x33000d);if(_0x49d103)_0x49d103[_0x4b965d(0x53e)](_0x4b965d(0x43c))?_0x35482c['dest']=_0x49d103[_0x4b965d(0x26b)](0x0,-0x6)+'/dest':_0x35482c[_0x4b965d(0x5e3)]=_0x49d103+_0x4b965d(0x647)+_0x29cb21;else{if(_0xb4347b)_0x35482c[_0x4b965d(0x5e3)]=_0xb4347b+_0x4b965d(0x647)+_0x29cb21;else throw new Error(_0x4b965d(0x5c0));}}return _0x35482c;}async[a0_0x254c3a(0x603)](_0x27f9c6){const _0x2731b6=a0_0x254c3a;var _0x538a68,_0x7f117a,_0x1c25b5,_0x280eb5;let _0xe546e7,_0x473922='',_0x1bcd87={};if(this[_0x2731b6(0x6cf)][_0x2731b6(0x2b9)]()){const _0x7c89b7=createBatchJobParametersToVertex(this['apiClient'],_0x27f9c6);return _0x473922=formatMap(_0x2731b6(0x35f),_0x7c89b7[_0x2731b6(0x1fb)]),_0x1bcd87=_0x7c89b7[_0x2731b6(0x32f)],delete _0x7c89b7['_url'],delete _0x7c89b7[_0x2731b6(0x32f)],_0xe546e7=this[_0x2731b6(0x6cf)]['request']({'path':_0x473922,'queryParams':_0x1bcd87,'body':JSON[_0x2731b6(0x59a)](_0x7c89b7),'httpMethod':_0x2731b6(0x5f7),'httpOptions':(_0x538a68=_0x27f9c6[_0x2731b6(0x563)])===null||_0x538a68===void 0x0?void 0x0:_0x538a68[_0x2731b6(0x234)],'abortSignal':(_0x7f117a=_0x27f9c6['config'])===null||_0x7f117a===void 0x0?void 0x0:_0x7f117a['abortSignal']})['then'](_0x52f0f7=>{const _0x128349=_0x2731b6;return _0x52f0f7[_0x128349(0x288)]();}),_0xe546e7[_0x2731b6(0x3a5)](_0x3ba8d4=>{const _0xb32bae=batchJobFromVertex(_0x3ba8d4);return _0xb32bae;});}else{const _0x5e090c=createBatchJobParametersToMldev(this[_0x2731b6(0x6cf)],_0x27f9c6);return _0x473922=formatMap(_0x2731b6(0x1b4),_0x5e090c[_0x2731b6(0x1fb)]),_0x1bcd87=_0x5e090c['_query'],delete _0x5e090c['_url'],delete _0x5e090c['_query'],_0xe546e7=this['apiClient'][_0x2731b6(0x610)]({'path':_0x473922,'queryParams':_0x1bcd87,'body':JSON[_0x2731b6(0x59a)](_0x5e090c),'httpMethod':_0x2731b6(0x5f7),'httpOptions':(_0x1c25b5=_0x27f9c6[_0x2731b6(0x563)])===null||_0x1c25b5===void 0x0?void 0x0:_0x1c25b5[_0x2731b6(0x234)],'abortSignal':(_0x280eb5=_0x27f9c6['config'])===null||_0x280eb5===void 0x0?void 0x0:_0x280eb5[_0x2731b6(0x546)]})[_0x2731b6(0x3a5)](_0xfce3fe=>{return _0xfce3fe['json']();}),_0xe546e7['then'](_0xea6503=>{const _0x5fef38=batchJobFromMldev(_0xea6503);return _0x5fef38;});}}async[a0_0x254c3a(0x3c9)](_0x349587){const _0x16306b=a0_0x254c3a;var _0x232dcd,_0x4041cd;let _0x4208da,_0x35e8b9='',_0xc6e8d1={};if(this[_0x16306b(0x6cf)][_0x16306b(0x2b9)]())throw new Error(_0x16306b(0x367));else{const _0x4e759d=createEmbeddingsBatchJobParametersToMldev(this[_0x16306b(0x6cf)],_0x349587);return _0x35e8b9=formatMap(_0x16306b(0x3e7),_0x4e759d['_url']),_0xc6e8d1=_0x4e759d['_query'],delete _0x4e759d[_0x16306b(0x1fb)],delete _0x4e759d[_0x16306b(0x32f)],_0x4208da=this[_0x16306b(0x6cf)][_0x16306b(0x610)]({'path':_0x35e8b9,'queryParams':_0xc6e8d1,'body':JSON[_0x16306b(0x59a)](_0x4e759d),'httpMethod':_0x16306b(0x5f7),'httpOptions':(_0x232dcd=_0x349587[_0x16306b(0x563)])===null||_0x232dcd===void 0x0?void 0x0:_0x232dcd[_0x16306b(0x234)],'abortSignal':(_0x4041cd=_0x349587[_0x16306b(0x563)])===null||_0x4041cd===void 0x0?void 0x0:_0x4041cd[_0x16306b(0x546)]})[_0x16306b(0x3a5)](_0x3b733c=>{return _0x3b733c['json']();}),_0x4208da['then'](_0x4d01d6=>{const _0x51db6d=batchJobFromMldev(_0x4d01d6);return _0x51db6d;});}}async[a0_0x254c3a(0x296)](_0x59049d){const _0x1a827e=a0_0x254c3a;var _0x271ad5,_0x325979,_0x3e98a2,_0x3add97;let _0x5877d8,_0x3ebb87='',_0x553056={};if(this[_0x1a827e(0x6cf)][_0x1a827e(0x2b9)]()){const _0x24de3b=getBatchJobParametersToVertex(this['apiClient'],_0x59049d);return _0x3ebb87=formatMap(_0x1a827e(0x5c7),_0x24de3b[_0x1a827e(0x1fb)]),_0x553056=_0x24de3b['_query'],delete _0x24de3b[_0x1a827e(0x1fb)],delete _0x24de3b[_0x1a827e(0x32f)],_0x5877d8=this['apiClient']['request']({'path':_0x3ebb87,'queryParams':_0x553056,'body':JSON[_0x1a827e(0x59a)](_0x24de3b),'httpMethod':_0x1a827e(0x525),'httpOptions':(_0x271ad5=_0x59049d['config'])===null||_0x271ad5===void 0x0?void 0x0:_0x271ad5[_0x1a827e(0x234)],'abortSignal':(_0x325979=_0x59049d['config'])===null||_0x325979===void 0x0?void 0x0:_0x325979[_0x1a827e(0x546)]})[_0x1a827e(0x3a5)](_0x381900=>{const _0x2bd3b9=_0x1a827e;return _0x381900[_0x2bd3b9(0x288)]();}),_0x5877d8[_0x1a827e(0x3a5)](_0x43bf13=>{const _0x4a2f43=batchJobFromVertex(_0x43bf13);return _0x4a2f43;});}else{const _0x611e4=getBatchJobParametersToMldev(this[_0x1a827e(0x6cf)],_0x59049d);return _0x3ebb87=formatMap(_0x1a827e(0x43f),_0x611e4[_0x1a827e(0x1fb)]),_0x553056=_0x611e4['_query'],delete _0x611e4[_0x1a827e(0x1fb)],delete _0x611e4['_query'],_0x5877d8=this[_0x1a827e(0x6cf)][_0x1a827e(0x610)]({'path':_0x3ebb87,'queryParams':_0x553056,'body':JSON[_0x1a827e(0x59a)](_0x611e4),'httpMethod':'GET','httpOptions':(_0x3e98a2=_0x59049d[_0x1a827e(0x563)])===null||_0x3e98a2===void 0x0?void 0x0:_0x3e98a2[_0x1a827e(0x234)],'abortSignal':(_0x3add97=_0x59049d['config'])===null||_0x3add97===void 0x0?void 0x0:_0x3add97[_0x1a827e(0x546)]})['then'](_0x2d644e=>{return _0x2d644e['json']();}),_0x5877d8[_0x1a827e(0x3a5)](_0xf64871=>{const _0x2f9f18=batchJobFromMldev(_0xf64871);return _0x2f9f18;});}}async['cancel'](_0x41fe01){const _0x2846f4=a0_0x254c3a;var _0x3be072,_0x44e5df,_0x28c8a2,_0x3c95f7;let _0x748893='',_0x4cce73={};if(this['apiClient'][_0x2846f4(0x2b9)]()){const _0x1a3e55=cancelBatchJobParametersToVertex(this['apiClient'],_0x41fe01);_0x748893=formatMap(_0x2846f4(0x1c1),_0x1a3e55[_0x2846f4(0x1fb)]),_0x4cce73=_0x1a3e55['_query'],delete _0x1a3e55['_url'],delete _0x1a3e55[_0x2846f4(0x32f)],await this[_0x2846f4(0x6cf)][_0x2846f4(0x610)]({'path':_0x748893,'queryParams':_0x4cce73,'body':JSON[_0x2846f4(0x59a)](_0x1a3e55),'httpMethod':_0x2846f4(0x5f7),'httpOptions':(_0x3be072=_0x41fe01[_0x2846f4(0x563)])===null||_0x3be072===void 0x0?void 0x0:_0x3be072[_0x2846f4(0x234)],'abortSignal':(_0x44e5df=_0x41fe01[_0x2846f4(0x563)])===null||_0x44e5df===void 0x0?void 0x0:_0x44e5df[_0x2846f4(0x546)]});}else{const _0x254068=cancelBatchJobParametersToMldev(this[_0x2846f4(0x6cf)],_0x41fe01);_0x748893=formatMap(_0x2846f4(0x626),_0x254068[_0x2846f4(0x1fb)]),_0x4cce73=_0x254068[_0x2846f4(0x32f)],delete _0x254068[_0x2846f4(0x1fb)],delete _0x254068['_query'],await this[_0x2846f4(0x6cf)][_0x2846f4(0x610)]({'path':_0x748893,'queryParams':_0x4cce73,'body':JSON[_0x2846f4(0x59a)](_0x254068),'httpMethod':_0x2846f4(0x5f7),'httpOptions':(_0x28c8a2=_0x41fe01['config'])===null||_0x28c8a2===void 0x0?void 0x0:_0x28c8a2[_0x2846f4(0x234)],'abortSignal':(_0x3c95f7=_0x41fe01[_0x2846f4(0x563)])===null||_0x3c95f7===void 0x0?void 0x0:_0x3c95f7[_0x2846f4(0x546)]});}}async[a0_0x254c3a(0x475)](_0x437e2e){const _0x309fdd=a0_0x254c3a;var _0x31517b,_0x28d415,_0x24cbe4,_0xce5010;let _0x23a835,_0x2155e1='',_0x6f6c3a={};if(this[_0x309fdd(0x6cf)][_0x309fdd(0x2b9)]()){const _0x38e1c2=listBatchJobsParametersToVertex(_0x437e2e);return _0x2155e1=formatMap(_0x309fdd(0x35f),_0x38e1c2[_0x309fdd(0x1fb)]),_0x6f6c3a=_0x38e1c2[_0x309fdd(0x32f)],delete _0x38e1c2[_0x309fdd(0x1fb)],delete _0x38e1c2[_0x309fdd(0x32f)],_0x23a835=this[_0x309fdd(0x6cf)]['request']({'path':_0x2155e1,'queryParams':_0x6f6c3a,'body':JSON['stringify'](_0x38e1c2),'httpMethod':_0x309fdd(0x525),'httpOptions':(_0x31517b=_0x437e2e[_0x309fdd(0x563)])===null||_0x31517b===void 0x0?void 0x0:_0x31517b[_0x309fdd(0x234)],'abortSignal':(_0x28d415=_0x437e2e[_0x309fdd(0x563)])===null||_0x28d415===void 0x0?void 0x0:_0x28d415[_0x309fdd(0x546)]})[_0x309fdd(0x3a5)](_0x4254db=>{const _0x535f50=_0x309fdd;return _0x4254db[_0x535f50(0x288)]()[_0x535f50(0x3a5)](_0x44d415=>{const _0x5e3af9=_0x535f50,_0x4e1709=_0x44d415;return _0x4e1709[_0x5e3af9(0x1ab)]={'headers':_0x4254db[_0x5e3af9(0x4e8)]},_0x4e1709;});}),_0x23a835[_0x309fdd(0x3a5)](_0x341080=>{const _0x39d364=listBatchJobsResponseFromVertex(_0x341080),_0x23a3c2=new ListBatchJobsResponse();return Object['assign'](_0x23a3c2,_0x39d364),_0x23a3c2;});}else{const _0x530d24=listBatchJobsParametersToMldev(_0x437e2e);return _0x2155e1=formatMap(_0x309fdd(0x5f8),_0x530d24[_0x309fdd(0x1fb)]),_0x6f6c3a=_0x530d24[_0x309fdd(0x32f)],delete _0x530d24[_0x309fdd(0x1fb)],delete _0x530d24[_0x309fdd(0x32f)],_0x23a835=this[_0x309fdd(0x6cf)][_0x309fdd(0x610)]({'path':_0x2155e1,'queryParams':_0x6f6c3a,'body':JSON[_0x309fdd(0x59a)](_0x530d24),'httpMethod':_0x309fdd(0x525),'httpOptions':(_0x24cbe4=_0x437e2e[_0x309fdd(0x563)])===null||_0x24cbe4===void 0x0?void 0x0:_0x24cbe4[_0x309fdd(0x234)],'abortSignal':(_0xce5010=_0x437e2e[_0x309fdd(0x563)])===null||_0xce5010===void 0x0?void 0x0:_0xce5010['abortSignal']})[_0x309fdd(0x3a5)](_0x351442=>{const _0xcacb5b=_0x309fdd;return _0x351442[_0xcacb5b(0x288)]()[_0xcacb5b(0x3a5)](_0x19ba43=>{const _0x2eb052=_0xcacb5b,_0x43276c=_0x19ba43;return _0x43276c[_0x2eb052(0x1ab)]={'headers':_0x351442[_0x2eb052(0x4e8)]},_0x43276c;});}),_0x23a835[_0x309fdd(0x3a5)](_0x2a3b67=>{const _0xa36330=listBatchJobsResponseFromMldev(_0x2a3b67),_0x1dbdd6=new ListBatchJobsResponse();return Object['assign'](_0x1dbdd6,_0xa36330),_0x1dbdd6;});}}async['delete'](_0x29cb4c){const _0x5dd44f=a0_0x254c3a;var _0x11cce8,_0xe730ab,_0x2907d2,_0xe241ab;let _0x295a53,_0x591734='',_0x35d29d={};if(this[_0x5dd44f(0x6cf)][_0x5dd44f(0x2b9)]()){const _0x235ea4=deleteBatchJobParametersToVertex(this['apiClient'],_0x29cb4c);return _0x591734=formatMap(_0x5dd44f(0x5c7),_0x235ea4[_0x5dd44f(0x1fb)]),_0x35d29d=_0x235ea4['_query'],delete _0x235ea4[_0x5dd44f(0x1fb)],delete _0x235ea4[_0x5dd44f(0x32f)],_0x295a53=this[_0x5dd44f(0x6cf)][_0x5dd44f(0x610)]({'path':_0x591734,'queryParams':_0x35d29d,'body':JSON['stringify'](_0x235ea4),'httpMethod':_0x5dd44f(0x27a),'httpOptions':(_0x11cce8=_0x29cb4c[_0x5dd44f(0x563)])===null||_0x11cce8===void 0x0?void 0x0:_0x11cce8[_0x5dd44f(0x234)],'abortSignal':(_0xe730ab=_0x29cb4c['config'])===null||_0xe730ab===void 0x0?void 0x0:_0xe730ab[_0x5dd44f(0x546)]})[_0x5dd44f(0x3a5)](_0x572834=>{return _0x572834['json']()['then'](_0x3191e9=>{const _0x5a8aaa=a0_0x3530,_0x251354=_0x3191e9;return _0x251354[_0x5a8aaa(0x1ab)]={'headers':_0x572834[_0x5a8aaa(0x4e8)]},_0x251354;});}),_0x295a53[_0x5dd44f(0x3a5)](_0x447500=>{const _0x3566ac=deleteResourceJobFromVertex(_0x447500);return _0x3566ac;});}else{const _0x3bd64c=deleteBatchJobParametersToMldev(this[_0x5dd44f(0x6cf)],_0x29cb4c);return _0x591734=formatMap(_0x5dd44f(0x43f),_0x3bd64c[_0x5dd44f(0x1fb)]),_0x35d29d=_0x3bd64c['_query'],delete _0x3bd64c[_0x5dd44f(0x1fb)],delete _0x3bd64c['_query'],_0x295a53=this['apiClient'][_0x5dd44f(0x610)]({'path':_0x591734,'queryParams':_0x35d29d,'body':JSON['stringify'](_0x3bd64c),'httpMethod':_0x5dd44f(0x27a),'httpOptions':(_0x2907d2=_0x29cb4c[_0x5dd44f(0x563)])===null||_0x2907d2===void 0x0?void 0x0:_0x2907d2['httpOptions'],'abortSignal':(_0xe241ab=_0x29cb4c[_0x5dd44f(0x563)])===null||_0xe241ab===void 0x0?void 0x0:_0xe241ab[_0x5dd44f(0x546)]})[_0x5dd44f(0x3a5)](_0x4ad95f=>{const _0x16f058=_0x5dd44f;return _0x4ad95f[_0x16f058(0x288)]()[_0x16f058(0x3a5)](_0x22afc1=>{const _0x4bd796=_0x16f058,_0x355ee2=_0x22afc1;return _0x355ee2[_0x4bd796(0x1ab)]={'headers':_0x4ad95f[_0x4bd796(0x4e8)]},_0x355ee2;});}),_0x295a53[_0x5dd44f(0x3a5)](_0x392aa9=>{const _0x1072a0=deleteResourceJobFromMldev(_0x392aa9);return _0x1072a0;});}}}/**
47
+ * @license
48
+ * Copyright 2025 Google LLC
49
+ * SPDX-License-Identifier: Apache-2.0
50
+ */
51
+ function blobToMldev$3(_0x2ada23){const _0xefed35=a0_0x254c3a,_0x38b956={},_0x181780=getValueByPath(_0x2ada23,[_0xefed35(0x526)]);_0x181780!=null&&setValueByPath(_0x38b956,['data'],_0x181780);if(getValueByPath(_0x2ada23,[_0xefed35(0x462)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x23973b=getValueByPath(_0x2ada23,['mimeType']);return _0x23973b!=null&&setValueByPath(_0x38b956,[_0xefed35(0x38c)],_0x23973b),_0x38b956;}function contentToMldev$3(_0x2347df){const _0x4189aa=a0_0x254c3a,_0x34a0cf={},_0x4dee45=getValueByPath(_0x2347df,[_0x4189aa(0x435)]);if(_0x4dee45!=null){let _0x3c8256=_0x4dee45;Array['isArray'](_0x3c8256)&&(_0x3c8256=_0x3c8256[_0x4189aa(0x221)](_0x4c218e=>{return partToMldev$3(_0x4c218e);})),setValueByPath(_0x34a0cf,[_0x4189aa(0x435)],_0x3c8256);}const _0x392470=getValueByPath(_0x2347df,[_0x4189aa(0x5ca)]);return _0x392470!=null&&setValueByPath(_0x34a0cf,['role'],_0x392470),_0x34a0cf;}function createCachedContentConfigToMldev(_0x2236c5,_0x4deca5){const _0x309884=a0_0x254c3a,_0x2d59d7={},_0xfb9dcc=getValueByPath(_0x2236c5,[_0x309884(0x6c7)]);_0x4deca5!==undefined&&_0xfb9dcc!=null&&setValueByPath(_0x4deca5,[_0x309884(0x6c7)],_0xfb9dcc);const _0x245319=getValueByPath(_0x2236c5,[_0x309884(0x311)]);_0x4deca5!==undefined&&_0x245319!=null&&setValueByPath(_0x4deca5,[_0x309884(0x311)],_0x245319);const _0x4ca794=getValueByPath(_0x2236c5,['displayName']);_0x4deca5!==undefined&&_0x4ca794!=null&&setValueByPath(_0x4deca5,[_0x309884(0x462)],_0x4ca794);const _0x3f4e35=getValueByPath(_0x2236c5,[_0x309884(0x1ea)]);if(_0x4deca5!==undefined&&_0x3f4e35!=null){let _0x1cfb6f=tContents(_0x3f4e35);Array[_0x309884(0x192)](_0x1cfb6f)&&(_0x1cfb6f=_0x1cfb6f[_0x309884(0x221)](_0x1bb5e9=>{return contentToMldev$3(_0x1bb5e9);})),setValueByPath(_0x4deca5,[_0x309884(0x1ea)],_0x1cfb6f);}const _0x43916c=getValueByPath(_0x2236c5,[_0x309884(0x2ba)]);_0x4deca5!==undefined&&_0x43916c!=null&&setValueByPath(_0x4deca5,[_0x309884(0x2ba)],contentToMldev$3(tContent(_0x43916c)));const _0x379b2b=getValueByPath(_0x2236c5,[_0x309884(0x1e6)]);if(_0x4deca5!==undefined&&_0x379b2b!=null){let _0x1255eb=_0x379b2b;Array[_0x309884(0x192)](_0x1255eb)&&(_0x1255eb=_0x1255eb[_0x309884(0x221)](_0x2c3ad1=>{return toolToMldev$3(_0x2c3ad1);})),setValueByPath(_0x4deca5,['tools'],_0x1255eb);}const _0x5caa96=getValueByPath(_0x2236c5,[_0x309884(0x440)]);_0x4deca5!==undefined&&_0x5caa96!=null&&setValueByPath(_0x4deca5,['toolConfig'],toolConfigToMldev$1(_0x5caa96));if(getValueByPath(_0x2236c5,['kmsKeyName'])!==undefined)throw new Error(_0x309884(0x2f1));return _0x2d59d7;}function createCachedContentConfigToVertex(_0x4b5896,_0x329f62){const _0x1fb260=a0_0x254c3a,_0x491f94={},_0x5783f2=getValueByPath(_0x4b5896,[_0x1fb260(0x6c7)]);_0x329f62!==undefined&&_0x5783f2!=null&&setValueByPath(_0x329f62,['ttl'],_0x5783f2);const _0x5d8452=getValueByPath(_0x4b5896,['expireTime']);_0x329f62!==undefined&&_0x5d8452!=null&&setValueByPath(_0x329f62,[_0x1fb260(0x311)],_0x5d8452);const _0x2cce20=getValueByPath(_0x4b5896,['displayName']);_0x329f62!==undefined&&_0x2cce20!=null&&setValueByPath(_0x329f62,[_0x1fb260(0x462)],_0x2cce20);const _0x11ea53=getValueByPath(_0x4b5896,['contents']);if(_0x329f62!==undefined&&_0x11ea53!=null){let _0x98a5b9=tContents(_0x11ea53);Array[_0x1fb260(0x192)](_0x98a5b9)&&(_0x98a5b9=_0x98a5b9['map'](_0x4eb805=>{return _0x4eb805;})),setValueByPath(_0x329f62,[_0x1fb260(0x1ea)],_0x98a5b9);}const _0x49e647=getValueByPath(_0x4b5896,['systemInstruction']);_0x329f62!==undefined&&_0x49e647!=null&&setValueByPath(_0x329f62,['systemInstruction'],tContent(_0x49e647));const _0x4697f3=getValueByPath(_0x4b5896,[_0x1fb260(0x1e6)]);if(_0x329f62!==undefined&&_0x4697f3!=null){let _0x4906f2=_0x4697f3;Array[_0x1fb260(0x192)](_0x4906f2)&&(_0x4906f2=_0x4906f2['map'](_0x32d64f=>{return toolToVertex$2(_0x32d64f);})),setValueByPath(_0x329f62,[_0x1fb260(0x1e6)],_0x4906f2);}const _0xe4cfe3=getValueByPath(_0x4b5896,['toolConfig']);_0x329f62!==undefined&&_0xe4cfe3!=null&&setValueByPath(_0x329f62,[_0x1fb260(0x440)],_0xe4cfe3);const _0x3bf83f=getValueByPath(_0x4b5896,[_0x1fb260(0x29f)]);return _0x329f62!==undefined&&_0x3bf83f!=null&&setValueByPath(_0x329f62,[_0x1fb260(0x25e),'kmsKeyName'],_0x3bf83f),_0x491f94;}function createCachedContentParametersToMldev(_0x194f7f,_0x5f2a0f){const _0x568b8b=a0_0x254c3a,_0x5edc0c={},_0x4a4aaf=getValueByPath(_0x5f2a0f,[_0x568b8b(0x492)]);_0x4a4aaf!=null&&setValueByPath(_0x5edc0c,[_0x568b8b(0x492)],tCachesModel(_0x194f7f,_0x4a4aaf));const _0x2b847c=getValueByPath(_0x5f2a0f,[_0x568b8b(0x563)]);return _0x2b847c!=null&&createCachedContentConfigToMldev(_0x2b847c,_0x5edc0c),_0x5edc0c;}function createCachedContentParametersToVertex(_0x263c96,_0x5248d6){const _0x4db2f9=a0_0x254c3a,_0x32fce0={},_0x41778f=getValueByPath(_0x5248d6,[_0x4db2f9(0x492)]);_0x41778f!=null&&setValueByPath(_0x32fce0,['model'],tCachesModel(_0x263c96,_0x41778f));const _0x5a5275=getValueByPath(_0x5248d6,[_0x4db2f9(0x563)]);return _0x5a5275!=null&&createCachedContentConfigToVertex(_0x5a5275,_0x32fce0),_0x32fce0;}function deleteCachedContentParametersToMldev(_0x4bb503,_0x1692a4){const _0x40047e=a0_0x254c3a,_0x56501f={},_0x3f2904=getValueByPath(_0x1692a4,[_0x40047e(0x68e)]);return _0x3f2904!=null&&setValueByPath(_0x56501f,[_0x40047e(0x1fb),_0x40047e(0x68e)],tCachedContentName(_0x4bb503,_0x3f2904)),_0x56501f;}function deleteCachedContentParametersToVertex(_0x44515a,_0x3de41b){const _0x2c2b85=a0_0x254c3a,_0x116d44={},_0x51f711=getValueByPath(_0x3de41b,[_0x2c2b85(0x68e)]);return _0x51f711!=null&&setValueByPath(_0x116d44,[_0x2c2b85(0x1fb),_0x2c2b85(0x68e)],tCachedContentName(_0x44515a,_0x51f711)),_0x116d44;}function deleteCachedContentResponseFromMldev(_0x54784c){const _0x3afbfe=a0_0x254c3a,_0x45a3c2={},_0x324ead=getValueByPath(_0x54784c,['sdkHttpResponse']);return _0x324ead!=null&&setValueByPath(_0x45a3c2,[_0x3afbfe(0x1ab)],_0x324ead),_0x45a3c2;}function deleteCachedContentResponseFromVertex(_0x367167){const _0x17e3be=a0_0x254c3a,_0x4d3987={},_0x15197a=getValueByPath(_0x367167,[_0x17e3be(0x1ab)]);return _0x15197a!=null&&setValueByPath(_0x4d3987,['sdkHttpResponse'],_0x15197a),_0x4d3987;}function fileDataToMldev$3(_0x205c3b){const _0x4554d2=a0_0x254c3a,_0x3d4dd9={};if(getValueByPath(_0x205c3b,[_0x4554d2(0x462)])!==undefined)throw new Error(_0x4554d2(0x24a));const _0x27da18=getValueByPath(_0x205c3b,['fileUri']);_0x27da18!=null&&setValueByPath(_0x3d4dd9,[_0x4554d2(0x617)],_0x27da18);const _0x10ee0b=getValueByPath(_0x205c3b,[_0x4554d2(0x38c)]);return _0x10ee0b!=null&&setValueByPath(_0x3d4dd9,[_0x4554d2(0x38c)],_0x10ee0b),_0x3d4dd9;}function functionCallToMldev$3(_0x435c6a){const _0x164b91=a0_0x254c3a,_0x5d7a96={},_0x4482d0=getValueByPath(_0x435c6a,['id']);_0x4482d0!=null&&setValueByPath(_0x5d7a96,['id'],_0x4482d0);const _0x1a5117=getValueByPath(_0x435c6a,['args']);_0x1a5117!=null&&setValueByPath(_0x5d7a96,[_0x164b91(0x4d6)],_0x1a5117);const _0x42c88d=getValueByPath(_0x435c6a,[_0x164b91(0x68e)]);_0x42c88d!=null&&setValueByPath(_0x5d7a96,[_0x164b91(0x68e)],_0x42c88d);if(getValueByPath(_0x435c6a,['partialArgs'])!==undefined)throw new Error(_0x164b91(0x19a));if(getValueByPath(_0x435c6a,[_0x164b91(0x480)])!==undefined)throw new Error(_0x164b91(0x17d));return _0x5d7a96;}function functionCallingConfigToMldev$1(_0x39c98e){const _0x55c292=a0_0x254c3a,_0x213bb0={},_0x28517a=getValueByPath(_0x39c98e,[_0x55c292(0x19b)]);_0x28517a!=null&&setValueByPath(_0x213bb0,[_0x55c292(0x19b)],_0x28517a);const _0x4a3d66=getValueByPath(_0x39c98e,[_0x55c292(0x19e)]);_0x4a3d66!=null&&setValueByPath(_0x213bb0,[_0x55c292(0x19e)],_0x4a3d66);if(getValueByPath(_0x39c98e,['streamFunctionCallArguments'])!==undefined)throw new Error(_0x55c292(0x2e4));return _0x213bb0;}function functionDeclarationToVertex$2(_0x5bb7ce){const _0xd9e1b5=a0_0x254c3a,_0x2ee805={},_0x1fa3fe=getValueByPath(_0x5bb7ce,[_0xd9e1b5(0x3b3)]);_0x1fa3fe!=null&&setValueByPath(_0x2ee805,['description'],_0x1fa3fe);const _0x4c41fa=getValueByPath(_0x5bb7ce,['name']);_0x4c41fa!=null&&setValueByPath(_0x2ee805,[_0xd9e1b5(0x68e)],_0x4c41fa);const _0x4130b1=getValueByPath(_0x5bb7ce,[_0xd9e1b5(0x34d)]);_0x4130b1!=null&&setValueByPath(_0x2ee805,['parameters'],_0x4130b1);const _0x570c03=getValueByPath(_0x5bb7ce,[_0xd9e1b5(0x3d0)]);_0x570c03!=null&&setValueByPath(_0x2ee805,[_0xd9e1b5(0x3d0)],_0x570c03);const _0x29a2d4=getValueByPath(_0x5bb7ce,[_0xd9e1b5(0x218)]);_0x29a2d4!=null&&setValueByPath(_0x2ee805,[_0xd9e1b5(0x218)],_0x29a2d4);const _0x4b62da=getValueByPath(_0x5bb7ce,[_0xd9e1b5(0x2a6)]);_0x4b62da!=null&&setValueByPath(_0x2ee805,[_0xd9e1b5(0x2a6)],_0x4b62da);if(getValueByPath(_0x5bb7ce,['behavior'])!==undefined)throw new Error(_0xd9e1b5(0x695));return _0x2ee805;}function getCachedContentParametersToMldev(_0x27d7c4,_0x11d712){const _0x4a0cc0=a0_0x254c3a,_0x24d21c={},_0xbdce68=getValueByPath(_0x11d712,['name']);return _0xbdce68!=null&&setValueByPath(_0x24d21c,[_0x4a0cc0(0x1fb),_0x4a0cc0(0x68e)],tCachedContentName(_0x27d7c4,_0xbdce68)),_0x24d21c;}function getCachedContentParametersToVertex(_0x3e5d9a,_0x3ac6ff){const _0x17db30=a0_0x254c3a,_0xcc462f={},_0x37e076=getValueByPath(_0x3ac6ff,['name']);return _0x37e076!=null&&setValueByPath(_0xcc462f,[_0x17db30(0x1fb),_0x17db30(0x68e)],tCachedContentName(_0x3e5d9a,_0x37e076)),_0xcc462f;}function googleMapsToMldev$3(_0x3fb959){const _0x1628a1=a0_0x254c3a,_0x4999b6={};if(getValueByPath(_0x3fb959,[_0x1628a1(0x2c5)])!==undefined)throw new Error('authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x1d87d1=getValueByPath(_0x3fb959,['enableWidget']);return _0x1d87d1!=null&&setValueByPath(_0x4999b6,['enableWidget'],_0x1d87d1),_0x4999b6;}function googleSearchToMldev$3(_0x173aa5){const _0x5c83cc=a0_0x254c3a,_0x5e744b={};if(getValueByPath(_0x173aa5,['excludeDomains'])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x173aa5,['blockingConfidence'])!==undefined)throw new Error(_0x5c83cc(0x4ef));const _0x4ba2f5=getValueByPath(_0x173aa5,['timeRangeFilter']);return _0x4ba2f5!=null&&setValueByPath(_0x5e744b,[_0x5c83cc(0x44c)],_0x4ba2f5),_0x5e744b;}function listCachedContentsConfigToMldev(_0x22b6fc,_0x84c8c3){const _0x3e1de0=a0_0x254c3a,_0x188b3f={},_0x3ebaba=getValueByPath(_0x22b6fc,[_0x3e1de0(0x2a3)]);_0x84c8c3!==undefined&&_0x3ebaba!=null&&setValueByPath(_0x84c8c3,['_query','pageSize'],_0x3ebaba);const _0x171978=getValueByPath(_0x22b6fc,[_0x3e1de0(0x6d9)]);return _0x84c8c3!==undefined&&_0x171978!=null&&setValueByPath(_0x84c8c3,[_0x3e1de0(0x32f),'pageToken'],_0x171978),_0x188b3f;}function listCachedContentsConfigToVertex(_0x441223,_0x179e08){const _0x78b2e=a0_0x254c3a,_0x35c23b={},_0x3811de=getValueByPath(_0x441223,[_0x78b2e(0x2a3)]);_0x179e08!==undefined&&_0x3811de!=null&&setValueByPath(_0x179e08,[_0x78b2e(0x32f),_0x78b2e(0x2a3)],_0x3811de);const _0x576198=getValueByPath(_0x441223,[_0x78b2e(0x6d9)]);return _0x179e08!==undefined&&_0x576198!=null&&setValueByPath(_0x179e08,[_0x78b2e(0x32f),_0x78b2e(0x6d9)],_0x576198),_0x35c23b;}function listCachedContentsParametersToMldev(_0x13bc43){const _0x218e81={},_0x297b5=getValueByPath(_0x13bc43,['config']);return _0x297b5!=null&&listCachedContentsConfigToMldev(_0x297b5,_0x218e81),_0x218e81;}function listCachedContentsParametersToVertex(_0x78a14){const _0x36c087=a0_0x254c3a,_0x5b1ebc={},_0x237e17=getValueByPath(_0x78a14,[_0x36c087(0x563)]);return _0x237e17!=null&&listCachedContentsConfigToVertex(_0x237e17,_0x5b1ebc),_0x5b1ebc;}function listCachedContentsResponseFromMldev(_0x317790){const _0x27ffb2=a0_0x254c3a,_0x3b721b={},_0x428a1b=getValueByPath(_0x317790,['sdkHttpResponse']);_0x428a1b!=null&&setValueByPath(_0x3b721b,[_0x27ffb2(0x1ab)],_0x428a1b);const _0x2fced0=getValueByPath(_0x317790,[_0x27ffb2(0x4e2)]);_0x2fced0!=null&&setValueByPath(_0x3b721b,[_0x27ffb2(0x4e2)],_0x2fced0);const _0x1bfedb=getValueByPath(_0x317790,[_0x27ffb2(0x27c)]);if(_0x1bfedb!=null){let _0x2ce969=_0x1bfedb;Array[_0x27ffb2(0x192)](_0x2ce969)&&(_0x2ce969=_0x2ce969[_0x27ffb2(0x221)](_0x2fa3d4=>{return _0x2fa3d4;})),setValueByPath(_0x3b721b,[_0x27ffb2(0x27c)],_0x2ce969);}return _0x3b721b;}function listCachedContentsResponseFromVertex(_0x2d1388){const _0x3b9e3e=a0_0x254c3a,_0x5381c4={},_0x5c1107=getValueByPath(_0x2d1388,[_0x3b9e3e(0x1ab)]);_0x5c1107!=null&&setValueByPath(_0x5381c4,[_0x3b9e3e(0x1ab)],_0x5c1107);const _0x2f8648=getValueByPath(_0x2d1388,['nextPageToken']);_0x2f8648!=null&&setValueByPath(_0x5381c4,[_0x3b9e3e(0x4e2)],_0x2f8648);const _0x52eaaa=getValueByPath(_0x2d1388,[_0x3b9e3e(0x27c)]);if(_0x52eaaa!=null){let _0x4919e0=_0x52eaaa;Array[_0x3b9e3e(0x192)](_0x4919e0)&&(_0x4919e0=_0x4919e0[_0x3b9e3e(0x221)](_0x4a6ccf=>{return _0x4a6ccf;})),setValueByPath(_0x5381c4,[_0x3b9e3e(0x27c)],_0x4919e0);}return _0x5381c4;}function partToMldev$3(_0x566f56){const _0x2dfaed=a0_0x254c3a,_0x5d9d0d={},_0x55b66e=getValueByPath(_0x566f56,['mediaResolution']);_0x55b66e!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x667)],_0x55b66e);const _0x135f0a=getValueByPath(_0x566f56,['codeExecutionResult']);_0x135f0a!=null&&setValueByPath(_0x5d9d0d,['codeExecutionResult'],_0x135f0a);const _0x2d16eb=getValueByPath(_0x566f56,[_0x2dfaed(0x386)]);_0x2d16eb!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x386)],_0x2d16eb);const _0x20c7cc=getValueByPath(_0x566f56,['fileData']);_0x20c7cc!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x26e)],fileDataToMldev$3(_0x20c7cc));const _0x2ff389=getValueByPath(_0x566f56,[_0x2dfaed(0x5ff)]);_0x2ff389!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x5ff)],functionCallToMldev$3(_0x2ff389));const _0x4d2eb2=getValueByPath(_0x566f56,['functionResponse']);_0x4d2eb2!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x2af)],_0x4d2eb2);const _0x2bc055=getValueByPath(_0x566f56,[_0x2dfaed(0x59d)]);_0x2bc055!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x59d)],blobToMldev$3(_0x2bc055));const _0x2f0eb1=getValueByPath(_0x566f56,['text']);_0x2f0eb1!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x2ab)],_0x2f0eb1);const _0x2b40cd=getValueByPath(_0x566f56,['thought']);_0x2b40cd!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x50b)],_0x2b40cd);const _0x151131=getValueByPath(_0x566f56,[_0x2dfaed(0x5ba)]);_0x151131!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x5ba)],_0x151131);const _0x78be02=getValueByPath(_0x566f56,[_0x2dfaed(0x64b)]);return _0x78be02!=null&&setValueByPath(_0x5d9d0d,[_0x2dfaed(0x64b)],_0x78be02),_0x5d9d0d;}function toolConfigToMldev$1(_0xf47c30){const _0x37cb85=a0_0x254c3a,_0x34f80f={},_0x24d5f1=getValueByPath(_0xf47c30,[_0x37cb85(0x4e6)]);_0x24d5f1!=null&&setValueByPath(_0x34f80f,[_0x37cb85(0x4e6)],_0x24d5f1);const _0x22344a=getValueByPath(_0xf47c30,[_0x37cb85(0x3f1)]);return _0x22344a!=null&&setValueByPath(_0x34f80f,['functionCallingConfig'],functionCallingConfigToMldev$1(_0x22344a)),_0x34f80f;}function toolToMldev$3(_0x5344dc){const _0x10f630=a0_0x254c3a,_0x170046={};if(getValueByPath(_0x5344dc,['retrieval'])!==undefined)throw new Error(_0x10f630(0x2ae));const _0x4bcfe3=getValueByPath(_0x5344dc,['computerUse']);_0x4bcfe3!=null&&setValueByPath(_0x170046,[_0x10f630(0x698)],_0x4bcfe3);const _0x4461ca=getValueByPath(_0x5344dc,[_0x10f630(0x47d)]);_0x4461ca!=null&&setValueByPath(_0x170046,[_0x10f630(0x47d)],_0x4461ca);const _0x31aaca=getValueByPath(_0x5344dc,[_0x10f630(0x32b)]);_0x31aaca!=null&&setValueByPath(_0x170046,['codeExecution'],_0x31aaca);if(getValueByPath(_0x5344dc,[_0x10f630(0x506)])!==undefined)throw new Error(_0x10f630(0x450));const _0x47f200=getValueByPath(_0x5344dc,['functionDeclarations']);if(_0x47f200!=null){let _0x2032e0=_0x47f200;Array['isArray'](_0x2032e0)&&(_0x2032e0=_0x2032e0[_0x10f630(0x221)](_0x4a04cc=>{return _0x4a04cc;})),setValueByPath(_0x170046,[_0x10f630(0x4b0)],_0x2032e0);}const _0x3ab7cd=getValueByPath(_0x5344dc,[_0x10f630(0x688)]);_0x3ab7cd!=null&&setValueByPath(_0x170046,[_0x10f630(0x688)],googleMapsToMldev$3(_0x3ab7cd));const _0x4e205c=getValueByPath(_0x5344dc,[_0x10f630(0x436)]);_0x4e205c!=null&&setValueByPath(_0x170046,[_0x10f630(0x436)],googleSearchToMldev$3(_0x4e205c));const _0x466e56=getValueByPath(_0x5344dc,[_0x10f630(0x503)]);_0x466e56!=null&&setValueByPath(_0x170046,[_0x10f630(0x503)],_0x466e56);const _0x20e956=getValueByPath(_0x5344dc,['urlContext']);return _0x20e956!=null&&setValueByPath(_0x170046,['urlContext'],_0x20e956),_0x170046;}function toolToVertex$2(_0x389cdf){const _0x33d6ed=a0_0x254c3a,_0x230ba9={},_0xd1bc98=getValueByPath(_0x389cdf,[_0x33d6ed(0x71e)]);_0xd1bc98!=null&&setValueByPath(_0x230ba9,['retrieval'],_0xd1bc98);const _0x112511=getValueByPath(_0x389cdf,[_0x33d6ed(0x698)]);_0x112511!=null&&setValueByPath(_0x230ba9,['computerUse'],_0x112511);if(getValueByPath(_0x389cdf,[_0x33d6ed(0x47d)])!==undefined)throw new Error(_0x33d6ed(0x51e));const _0x3f9fe1=getValueByPath(_0x389cdf,[_0x33d6ed(0x32b)]);_0x3f9fe1!=null&&setValueByPath(_0x230ba9,['codeExecution'],_0x3f9fe1);const _0x557afb=getValueByPath(_0x389cdf,[_0x33d6ed(0x506)]);_0x557afb!=null&&setValueByPath(_0x230ba9,[_0x33d6ed(0x506)],_0x557afb);const _0x277c48=getValueByPath(_0x389cdf,[_0x33d6ed(0x4b0)]);if(_0x277c48!=null){let _0x1ae7ed=_0x277c48;Array[_0x33d6ed(0x192)](_0x1ae7ed)&&(_0x1ae7ed=_0x1ae7ed['map'](_0x25a99e=>{return functionDeclarationToVertex$2(_0x25a99e);})),setValueByPath(_0x230ba9,[_0x33d6ed(0x4b0)],_0x1ae7ed);}const _0xfd6b44=getValueByPath(_0x389cdf,['googleMaps']);_0xfd6b44!=null&&setValueByPath(_0x230ba9,[_0x33d6ed(0x688)],_0xfd6b44);const _0x1a7d32=getValueByPath(_0x389cdf,[_0x33d6ed(0x436)]);_0x1a7d32!=null&&setValueByPath(_0x230ba9,[_0x33d6ed(0x436)],_0x1a7d32);const _0x512b67=getValueByPath(_0x389cdf,[_0x33d6ed(0x503)]);_0x512b67!=null&&setValueByPath(_0x230ba9,['googleSearchRetrieval'],_0x512b67);const _0x1c8c2a=getValueByPath(_0x389cdf,[_0x33d6ed(0x39b)]);return _0x1c8c2a!=null&&setValueByPath(_0x230ba9,[_0x33d6ed(0x39b)],_0x1c8c2a),_0x230ba9;}function updateCachedContentConfigToMldev(_0x1ecac2,_0x24a615){const _0x3ab103=a0_0x254c3a,_0x252978={},_0x116e03=getValueByPath(_0x1ecac2,[_0x3ab103(0x6c7)]);_0x24a615!==undefined&&_0x116e03!=null&&setValueByPath(_0x24a615,[_0x3ab103(0x6c7)],_0x116e03);const _0x5cc755=getValueByPath(_0x1ecac2,[_0x3ab103(0x311)]);return _0x24a615!==undefined&&_0x5cc755!=null&&setValueByPath(_0x24a615,[_0x3ab103(0x311)],_0x5cc755),_0x252978;}function updateCachedContentConfigToVertex(_0x36c690,_0xf9f88e){const _0x103585=a0_0x254c3a,_0x48eea8={},_0x3ee2a2=getValueByPath(_0x36c690,[_0x103585(0x6c7)]);_0xf9f88e!==undefined&&_0x3ee2a2!=null&&setValueByPath(_0xf9f88e,[_0x103585(0x6c7)],_0x3ee2a2);const _0x5d07f4=getValueByPath(_0x36c690,[_0x103585(0x311)]);return _0xf9f88e!==undefined&&_0x5d07f4!=null&&setValueByPath(_0xf9f88e,[_0x103585(0x311)],_0x5d07f4),_0x48eea8;}function updateCachedContentParametersToMldev(_0x1429fb,_0x2add34){const _0x2d62d0=a0_0x254c3a,_0x308ab5={},_0xe3cd58=getValueByPath(_0x2add34,[_0x2d62d0(0x68e)]);_0xe3cd58!=null&&setValueByPath(_0x308ab5,[_0x2d62d0(0x1fb),'name'],tCachedContentName(_0x1429fb,_0xe3cd58));const _0x999f49=getValueByPath(_0x2add34,[_0x2d62d0(0x563)]);return _0x999f49!=null&&updateCachedContentConfigToMldev(_0x999f49,_0x308ab5),_0x308ab5;}function a0_0x1905(){const _0x520b10=['mediaResolution','x-goog-upload-url','WHEN_IDLE',']\x20response\x20start','labels.tune-type:*','undefined','files:register','numberOfImages','mcpTools','v1beta','BLOCKING','ListBatchJobsResponse','nullable','THINKING_LEVEL_UNSPECIFIED','UploadToFileSearchStoreResponse','v1alpha','embedding','file','PYTHON','getBaseUrl','callbacks','outputConfig','functionNameToMcpClient','flush','Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x20is\x20not\x20yet\x20supported.\x20Incompatible\x20tools\x20found\x20at\x20','getItem','EDIT_MODE_STYLE','ConflictError','https://proxyvn.top','HARM_CATEGORY_SEXUALLY_EXPLICIT','ADAPTER_SIZE_SIXTEEN','D_FLAT_MAJOR_B_FLAT_MINOR','_registerFiles','googleMaps','IMAGE','MediaResolution','url','HarmCategory','videos','name','darwin','pop','enableAffectiveDialog','methodRequest','promptFeedback','filter\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','UNSPECIFIED','unaryApiCall','computerUse','user','node','modelSelectionConfig','warn','FeatureSelectionPreference','9113923XpfoIn','disable','history','trainingDataset','ELASTIC_SEARCH','files/{file}','apiKey','ADAPTER_SIZE_ONE','importFile','inlinedRequests','stop','boolean','releaseLock','PROCESSING','createPartFromBase64','modelArmorConfig','PRIORITIZE_QUALITY','RegisterFilesResponse','ListDocumentsResponse','MASK_MODE_DEFAULT','carriage','API_SPEC_UNSPECIFIED','API_KEY_AUTH','prototype','outputDimensionality','An\x20API\x20Key\x20must\x20be\x20set\x20when\x20running\x20in\x20an\x20unspecified\x20environment.\x0a\x20+\x20','START_SENSITIVITY_UNSPECIFIED','EDIT_MODE_BGSWAP','upscale','baseURL','queryBase','scores','generatedImages','computeTokens','REFERENCE_TYPE_MASK','sort','PROMPT','A_FLAT_MAJOR_F_MINOR','NEWLINE_REGEXP','LANGUAGE_UNSPECIFIED','product','ttl','tokenCount','TEXT','MODE_DYNAMIC','retryOf','sftLossWeightMultiplier','update','uploadFile','apiClient','OAUTH','size','got\x20status:\x20','MAX_TOKENS','responseModalities','endpoints','Interactions','\x22.\x20Original\x20type:\x20','B_FLAT_MAJOR_G_MINOR','pageToken','JOB_STATE_PARTIALLY_SUCCEEDED','TurnCoverage','predictions','contentType','endTime','EmbedContentResponse','LOSSLESS','1609590YCMZSE','upload/v1beta/files','Cannot\x20set\x20value\x20for\x20an\x20existing\x20key.\x20Key:\x20','VoiceActivityType','models/','onmessage','nextPage','gcsDestination','addWatermark\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','includeExtraHttpOptionsToRequestInit','ENVIRONMENT_UNSPECIFIED','agent','baseURLOverridden','imageBytes','tools[','createFunctionResponsePartFromUri','process.env[\x27GEMINI_NEXT_GEN_API_LOG\x27]','repeat','uploadFileToFileSearchStore','modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','4251492kCjWdK','tools\x20is\x20required','responseId','segmentationClasses','chrome','freebsd','functionCalls','v1beta1','ALLOW_ADULT','groundingMetadata','tool','HarmSeverity','generateContent','raiMediaFilteredCount','SUBJECT_TYPE_DEFAULT','APIConnectionError','substring','operationName','format','cause','getProject','toolCall','models','resourceName','thinking','requests[]','HttpResponse','DEFAULT_TIMEOUT','candidates','responseTokenCount','includeRaiReason','ASSET','listTools','sendMessage','registerFiles','HARM_CATEGORY_HARASSMENT','AuthType','FunctionCallingConfigMode','pageInternal','frequencyPenalty','partOrString\x20must\x20be\x20a\x20Part\x20object,\x20string,\x20or\x20array','retrieval','\x27\x20not\x20found\x20in\x20valueMap.','maximumRemoteCalls','streamApiCall','contextWindowCompression','turnComplete','SCHEDULING_UNSPECIFIED','responseLogprobs','fromSSEResponse','caches','join','trim','musicGenerationConfig','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20function\x20calls\x20from\x20the\x20first\x20one.','stream','bytesBase64Encoded','maxPredictions','NO_AUTH','generation_config','STATE_ACTIVE','willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','signal','exportLastCheckpointOnly\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','options','suppressed','AUTO','done','apiCall','operations','init','freeze','{name}','SPII','cachedContentTokenCount','fps','sendClientContent','OUTCOME_UNSPECIFIED','logLevel','D_MAJOR_B_MINOR','ON_DEMAND','newSessionExpireTime','isArray','inlinedResponses','\x20with\x20status\x20','learningRateMultiplier','chats','Live\x20music\x20generation\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','VALIDATED','Request\x20was\x20aborted.','partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','allowedFunctionNames','MEDIA_RESOLUTION_MEDIUM','The\x20client.tokens.create\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','mode','replace','Operation\x20name\x20is\x20required.','isView','Deno','maxOutputTokens','MEDIA_RESOLUTION_LOW','.GenerativeService.','topK','[0]','nameInternal','modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','audio','sdkHttpResponse','reduce','pause','entries','params','transparent','START_SENSITIVITY_HIGH','imageOutputOptions','HarmBlockThreshold','{model}:batchGenerateContent','Operations','create','editMode','toReadableStream','URL_RETRIEVAL_STATUS_SUCCESS','7570968hEODJB','All\x20content\x20has\x20been\x20uploaded,\x20but\x20the\x20upload\x20status\x20is\x20not\x20finalized.','file_name','InternalServerError','exception\x20parsing\x20stream\x20chunk\x20','generationConfig.','recontextImage','batchPredictionJobs/{name}:cancel','getOwnPropertyNames','NotFoundError','ListModelsResponse','citationSources','formatDestination','padStart','concat','thoughtsTokenCount','cookie','responseSchema','match','{model}:generateContent','Android','createInlinedGenerateContentRequest','***','uri','requests','there\x20are\x20non-text\x20parts\x20','code','partnerModelTuningSpec','post','PLAY','10000000-1000-4000-8000-100000000000','SEMANTIC','ContentUnion\x20is\x20required','DeleteModelResponse','Value\x20must\x20be\x20a\x20list\x20given\x20an\x20array\x20path\x20','onclose','preTunedModel','__streamClass','files/','maskDilation','temperature','Exactly\x20one\x20of\x20`gcsUri`\x20or\x20`bigqueryUri`\x20must\x20be\x20set\x20for\x20Vertex\x20AI.','routingConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','UrlRetrievalStatus','tools','STOP','sendToolResponse','bq://','contents','build','_options','ContentReferenceImage','withOptions','x64','Failed\x20to\x20parse\x20client\x20content\x20\x22turns\x22,\x20type:\x20\x27','PHISH_BLOCK_THRESHOLD_UNSPECIFIED','pow','half','FEATURE_SELECTION_PREFERENCE_UNSPECIFIED','aarch64','INSERT','Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.','seed','now','fileName\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','_url','set-cookie','ignoreCallHistory','storageUri','FOREGROUND','enhanceInputImage','MediaModality','+json','additionalProperties','interactions','GENERATED','getCustomBaseUrl','VideoCompressionQuality','startTime','tuneMldevInternal','embeddings','error','.GenerativeService.BidiGenerateMusic?key=','google-genai-sdk/','SegmentMode','STRING','mimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','MUSIC_GENERATION_MODE_UNSPECIFIED','pathname','F_MAJOR_D_MINOR','URL_RETRIEVAL_STATUS_ERROR','DocumentState','SAFETY','referenceType','response','TURN_COVERAGE_UNSPECIFIED','embedContent',',\x20retryOf:\x20','media','exportLastCheckpointOnly','requests[].request.*','tune','shift','map','BLOCK_ONLY_EXTREMELY_HIGH','controlType','cachedContent','client','getPrototypeOf','null','outputUriPrefix','1284759pMbIiy','Incomplete\x20JSON\x20segment\x20at\x20the\x20end','BATCH_STATE_PENDING','GeminiNextGenAPIClientError','cacheTokensDetails','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','{operationName}','PAGED_ITEM_DOCUMENTS','avgLogprobs','patch','beta','httpOptions','Invalid\x20request:\x20specified\x20`model`\x20and\x20`agent_config`.\x20If\x20specifying\x20`model`,\x20use\x20`generation_config`.','ADAPTER_SIZE_EIGHT','constructor','/locations/','STATE_UNSPECIFIED',';\x20props:\x20[','URL_RETRIEVAL_STATUS_UNSPECIFIED','onerror','BOOLEAN','generateContentInternal','generateVideos','callTool','stringifyQuery','excludeDomains','stainless-node-retry-','throw','statusText','lastFrame','HTTP_IN_BODY','toString','HARM_BLOCK_THRESHOLD_UNSPECIFIED','displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','mcp_used/unknown','subjectImageConfig','ActivityHandling','_fromAPIResponse','HTTP_IN_COOKIE','initNextPage','generate','encode','clientOptions','TURN_INCLUDES_ALL_INPUT','videoBytes','output','getRequestUrlInternal','GEMINI_NEXT_GEN_API_LOG','tunedModel','gl-node/','safetyAttributes','imageSize','parseResponse','encryption_spec','GOOGLE_SERVICE_ACCOUNT_AUTH','audioStreamEnd','getInternal','failed','upscaleImage','location','uses','labels','addAuthHeaders','ADAPTER_SIZE_UNSPECIFIED','SubjectReferenceType','buffer','slice','HARM_CATEGORY_IMAGE_HATE','HARM_BLOCK_METHOD_UNSPECIFIED','fileData','ResourceScope','IMAGE_PROHIBITED_CONTENT','active','MASK_MODE_BACKGROUND','addWatermark','NEGLIGIBLE','filename','BATCH_STATE_CANCELLED','{models_url}','inputAudioTranscription','AdapterSize','DELETE','APIError','cachedContents','Could\x20not\x20parse\x20message\x20into\x20JSON:','VOCALIZATION','openbsd','encoder','multiSpeakerVoiceConfig','codeExecutionResult','retry-after','beta\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Invalid\x20maximumRemoteCalls\x20value\x20provided\x20for\x20automatic\x20function\x20calling.\x20Disabled\x20automatic\x20function\x20calling.\x20Please\x20provide\x20a\x20valid\x20integer\x20value\x20greater\x20than\x200.\x20maximumRemoteCalls\x20provided:','REFERENCE_TYPE_SUBJECT','completionStats','json','outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','TrafficType','logger','11WAlYhX','Request\x20timed\x20out.','aspectRatio','responseMimeType','computeControl','OBJECT','state','MacOS','resolve','bigquery','get','seed\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','\x20LiveConnectConfig\x20yet.\x20Please\x20use\x20the\x20client-level\x20httpOptions','image','finishReason','getBigqueryUri','Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.','getHeaders','x-goog-upload-status','kmsKeyName','sizeBytes','timed\x20out','totalTokenCount','pageSize','ceil','BLOCK_ONLY_HIGH','responseJsonSchema','serverContent','responsePromise','upscaleFactor','baseTeacherModel','text','unknown','VIDEO','retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','functionResponse','isInteger','BLOCK_LOW_AND_ABOVE','enableControlImageComputation','includeExtraBodyToRequestInit:\x20extraBody\x20provided\x20but\x20current\x20request\x20body\x20is\x20a\x20Blob.\x20extraBody\x20will\x20be\x20ignored\x20as\x20merging\x20is\x20not\x20supported\x20for\x20Blob\x20bodies.','jsonl','NULL','requestInternal','`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`','UpscaleImageResponse','isVertexAI','systemInstruction','content-type','CONTROL_TYPE_CANNY','realtimeInputConfig','BATCH_STATE_EXPIRED','FAILED','patchHttpOptions','outputCompressionQuality','message','project','0.0.1','authConfig','format\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','data:','preTunedModelCheckpointId\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','functionResponses\x20is\x20required.','httpMethod','instances[0]','MASK_MODE_SEMANTIC','resolution','completeTime','gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','PersonGeneration','apiVersion','min','maskImageConfig','G_MAJOR_E_MINOR','apply','HTTP\x20options\x20are\x20not\x20correctly\x20set.','decode','ReadableStream','promptTokenCount','INTEGER','Object\x20is\x20not\x20iterable.','upload','{name}:cancel','GoogleGenAI','raiMediaFilteredReasons','HARM_CATEGORY_CIVIC_INTEGRITY','authHeaders','tLiveClienttToolResponse','propertyIsEnumerable','streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','SUPERVISED_FINE_TUNING','Incompatible\x20tools\x20found\x20at\x20','processStreamResponse','hyperparameters','PermissionDeniedError','SOURCE_UNSPECIFIED','VAD_SIGNAL_TYPE_UNSPECIFIED','_thenUnwrap','publishers/google/models','CONTROL_TYPE_DEFAULT','createPartFromCodeExecutionResult','DONT_ALLOW','kmsKeyName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','documentName','URL_RETRIEVAL_STATUS_UNSAFE','prepareRequest','operation','urlContextMetadata','Linux','ControlReferenceImage','page','outputUri','searchParams','baseTeacherModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','REMOVE','threshold','liveConnectConstraints','MEDIUM','LiveMusicPlaybackControl','chunks','RateLimitError','function','from','behavior','buildRequest','Failed\x20to\x20get\x20upload\x20url.\x20Server\x20did\x20not\x20return\x20the\x20x-google-upload-url\x20in\x20the\x20headers','webSocketFactory','iOS','outputTokenLimit','download','activityEnd','append','BidiGenerateContentConstrained','Request\x20body\x20should\x20be\x20empty\x20for\x20GET\x20request,\x20but\x20got\x20non\x20empty\x20request\x20body','expireTime','sse','customBaseModel','lockAdditionalFields','video','customBaseModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','sendPlaybackControl','firefox','send','END_SENSITIVITY_HIGH','Invalid\x20request:\x20specified\x20`agent`\x20and\x20`generation_config`.\x20If\x20specifying\x20`agent`,\x20use\x20`agent_config`.','agent_config','truncated','MODE_UNSPECIFIED','{model}:predict','startsWith','`File`\x20is\x20not\x20defined\x20as\x20a\x20global,\x20which\x20is\x20required\x20for\x20file\x20uploads.','examples\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','trimStart','generationConfig','getHeadersInternal','JOB_STATE_FAILED','INTERRUPT','JOB_STATE_RUNNING','clientAdapter','resetContext','codeExecution','calculateDefaultRetryTimeoutMillis','createPartFromFunctionResponse','HttpElementLocation','_query','NEED_MORE_INPUT','TUNING_MODE_UNSPECIFIED','projects/','modelVersion','ADAPTER_SIZE_THIRTY_TWO','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them,\x20and\x20any\x20other\x20parts,\x20in\x20Content\x20objects\x20as\x20appropriate,\x20specifying\x20the\x20role\x20for\x20them','Positive\x20Prompt','\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.','MODALITY_UNSPECIFIED','queryParams','VAD_SIGNAL_TYPE_SOS','global','getApiVersion','log_','next','_self','pageInternalSize','scribbleImage','batchSize','enhancePrompt','activityStart','tunedModelDisplayName','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20executable\x20code\x20from\x20the\x20first\x20one.','STYLE','baseSteps','partOrString\x20cannot\x20be\x20an\x20empty\x20array','prompt','JOB_STATE_PENDING','generateImages','parameters','bidiGenerateContentSetup','NO_INTERRUPTION','withResponse','enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','BlockedReason','referenceImage','BACKGROUND','ARRAY','tunedTeacherModelSource','response\x20is\x20undefined','Ephemeral\x20tokens\x20are\x20only\x20supported\x20by\x20the\x20live\x20API.','Unsupported\x20destination:\x20','getLocation','https://','google-vertex-llm-tuning-base-model-id','ControlReferenceType','citationMetadata','batchPredictionJobs','binaryColorThreshold','logprobsResult','createEmbeddings','category','E_MAJOR_D_FLAT_MINOR','GenerateContentResponse','outputSchema','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','ApiSpec','HTTP_IN_PATH','safetySettings','x86_64','imagePreservationFactor','{model}:countTokens','force','VAD_SIGNAL_TYPE_EOS','final','.\x20Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x22\x20is\x20not\x20yet\x20supported.','UploadToFileSearchStoreOperation','CancelTuningJobResponse','partialArgs','veoTuningSpec','tokensInfo','description\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','automaticFunctionCallingHistory','Live\x20music\x20is\x20not\x20supported\x20for\x20Vertex\x20AI.','MEDIA_RESOLUTION_HIGH','\x20sending\x20request','RESPONSE_REJECTED','Base\x20URL\x20is\x20not\x20set.','RecontextImageResponse','instances[]','tuningTask','other:','candidatesTokenCount','PAUSE','{model}','FunctionResponseBlob','executableCode','tuningMode','put','TRAFFIC_TYPE_UNSPECIFIED','filter','FunctionResponseFileData','mimeType','350974sbDFzN','SUBJECT_TYPE_PRODUCT','getDefaultHeaders','setup','audioChunks','addEventListener','makeMessage','image/','styleImageConfig','JOB_STATE_UNSPECIFIED','Caches','Type','has','token_count','urlContext','chunkingConfig','personGeneration','usageMetadata','FINISH_REASON_UNSPECIFIED','Environment','fileSearchStores','tuneInternal','there\x20are\x20non-data\x20parts\x20','fieldMask','then','/JS\x20','application/json','handle','ApiError','getReader',']\x20response\x20parsed','HarmBlockMethod','documents','PartUnion\x20is\x20required','blockingConfidence','QUALITY','UNEXPECTED_TOOL_CALL','PROHIBITED_CONTENT','description','TYPE_UNSPECIFIED','HARM_PROBABILITY_UNSPECIFIED','B_MAJOR_A_FLAT_MINOR','Cannot\x20stringify\x20type\x20','InlinedEmbedContentResponse','ACTIVITY_END','fileName','customMetadata','REFERENCE_TYPE_CONTENT','compressionQuality','supervisedTuningSpec','outputAudioTranscription','toUpperCase','files','INTERACTIVE','_key',',\x20New\x20type:\x20','totalTokens','Could\x20not\x20parse\x20input\x20as\x20Blob.\x20Unsupported\x20blob\x20type:\x20','referenceImages','JAILBREAK','createEmbeddingsInternal','src','bigquerySource','initAfcToolsMap','tunedModels','Chat','dilation','parametersJsonSchema','serviceAccount','length','metadata','vertexai','vertexUrl','{model}:streamGenerateContent?alt=sse','PAGED_ITEM_BATCH_JOBS','upload/v1beta/','FetchRequestCanceledException','VideoGenerationReferenceType','batch','DynamicRetrievalConfigMode','MASK_MODE_FOREGROUND','REGISTERED','downloader','tools\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','MINIMAL','Source\x20and\x20prompt/image/video\x20are\x20mutually\x20exclusive.\x20Please\x20only\x20use\x20source.','Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files\x20to\x20a\x20file\x20search\x20store.','defaultCheckpointId','editImageInternal','publisherModels','{model}:asyncBatchEmbedContent','Error','TUNING_TASK_T2V','TUNING_MODE_PEFT_ADAPTER','BLOCK_HIGHER_AND_ABOVE','api_version','Key\x20\x27','generateAudio','OUTPAINT','ADAPTER_SIZE_TWO','functionCallingConfig','PRIORITIZE_COST','outputOptions','ANY','validationDataset',';\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.','FinishReason','deployedModelId','getAuthHeaders','trainingDatasetUri','Exactly\x20one\x20of\x20`inlinedRequests`,\x20`fileName`,\x20','OPTIMIZED','return','COLLECTION','createTime','batchJobs','JOB_STATE_CANCELLING','getApiKey','Unknown','authorization','SEVERITY','split','debug','processParamsMaybeAddMcpUsage','LOW','PartMediaResolutionLevel','authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','nextCursor','confidenceThreshold','EditMode','AUDIO','GenerateContentResponsePromptFeedback','win32','getBaseResourcePath','makeStatusError','thinkingConfig','JobState','edge','push','model\x20is\x20required\x20and\x20must\x20be\x20a\x20string','LiveSendToolResponseParameters','Windows','ListFilesResponse','sessionResumptionUpdate','Batches','autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','inputTokenLimit','search','keys','Unsupported\x20string\x20source\x20for\x20Vertex\x20AI:\x20','productImages','OTHER','The\x20Live\x20module\x20does\x20not\x20support\x20httpOptions\x20at\x20request-level\x20in','bind','auth_tokens/','MaskReferenceMode','.\x20Overwriting.','APIConnectionTimeoutError','idxInternal','trunc','key','buildBody','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20valid\x20JSON\x20but\x20not\x20a\x20non-array\x20object.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','initialize','properties','sftLossWeightMultiplier\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Role\x20must\x20be\x20user\x20or\x20model,\x20but\x20got\x20','isCallableTool','parts','googleSearch','outputCompressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','inputConfig','toolCallCancellation','SILENT','modelsModule','.jsonl','dest\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Scale','batches/{name}','toolConfig','Tokens','Behavior','all','PhishBlockThreshold','getVideosOperationInternal','bigqueryUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','EDIT_MODE_PRODUCT_IMAGE','retry-after-ms','language','VadSignalType','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20text\x20from\x20the\x20first\x20one.','timeRangeFilter','Filtering\x20tuned\x20models\x20list\x20for\x20Vertex\x20AI\x20is\x20not\x20currently\x20supported','functionResponses','x32','enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','baseModel','preTunedModelCheckpointId','TURN_INCLUDES_ONLY_ACTIVITY','safetyFilterLevel','Path\x20parameters\x20result\x20in\x20path\x20with\x20invalid\x20segments:\x0a','HARM_CATEGORY_IMAGE_HARASSMENT','safari','lastModified','buildURL','responseTokensDetails','sampleImageSize','E_FLAT_MAJOR_C_MINOR','BadRequestError','BATCH_STATE_RUNNING','HARM_SEVERITY_HIGH','tunedModelInfo','ADAPTER_SIZE_FOUR','displayName','8CPvHRQ','values','fetchPredictVideosOperationInternal','numberOfVideos','x-goog-api-client','includeSafetyAttributes','MEDIA_RESOLUTION_UNSPECIFIED','object','PLAYBACK_CONTROL_UNSPECIFIED','title','PAGED_ITEM_FILES','HTTP_IN_QUERY','fetch','responsesFile','auto','arrayBuffer','maxRetries','OFF','listInternal','aborted','/projects/','maskMode','tunedModels/','protocol','candidatesTokensDetails','fetchWithTimeout','fileSearch','Invalid\x20batch\x20job\x20name:\x20','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20text\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20text\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','willContinue','supportedActions','HARM_SEVERITY_UNSPECIFIED','uris','value','UploadToFileSearchStoreResumableResponse','SIMPLE_SEARCH','Blob','list',']\x20connection\x20','createPartFromExecutableCode','\x20status\x20code\x20(no\x20body)','ACTIVE','HTTP_IN_UNSPECIFIED','genaiBatchJob_','true','Symbol.asyncIterator\x20is\x20not\x20defined.','categories','model','sampleCount','SubjectReferenceImage','navigator','asResponse','maskClasses','tee','subarray','personGeneration\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','call','getWebsocketBaseUrl','generateContentStream','mediaChunks','registerFilesInternal','unref','timeout','Automatic\x20function\x20calling\x20was\x20requested,\x20but\x20not\x20all\x20the\x20tools\x20the\x20model\x20used\x20implement\x20the\x20CallableTool\x20interface.\x20Available\x20tools:\x20','arch','toolUsePromptTokenCount','EDIT_MODE_DEFAULT','anyOf','GeminiNextGenAPIClient','MASK_MODE_USER_PROVIDED','REFERENCE_TYPE_CONTROL','processAfcStream','END_SENSITIVITY_LOW','Could\x20not\x20extract\x20file\x20name\x20from\x20URI\x20','.LlmBidiService/BidiGenerateContent','string','updateTime','functionDeclarations','random','parsedPromise','hyperParameters','$schema','generateContentStreamInternal','autoTruncate','positivePromptSafetyAttributes','HarmProbability','/publishers/google/','catch','IMAGE_OTHER','abort','paramsInternal','add','explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Content-Type','this\x20feature\x20is\x20not\x20compatible\x20with\x20automatic\x20function\x20calling\x20(AFC).\x20','Headers\x20are\x20not\x20set.','adapterSize','systemInstruction\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','HARM_SEVERITY_MEDIUM','GenerateVideosOperation','ClientOptions.logLevel','REFERENCE_TYPE_STYLE','HTTP_BASIC_AUTH','inlinedEmbedContentResponses','PAGED_ITEM_FILE_SEARCH_STORES','ThinkingLevel','_interactions','experiment','JOB_STATE_CANCELLED','MusicGenerationMode','requestStream','BLOCK_MEDIUM_AND_ABOVE',',\x20mising\x20tool:\x20','CONTROL_TYPE_SCRIBBLE','weightedPrompts','args','OIDC_AUTH','method','compressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','logprobs','/models/','JOB_STATE_UPDATING','batches.createEmbeddings()\x20is\x20experimental\x20and\x20may\x20change\x20without\x20notice.','supportedGenerationMethods','HARM_CATEGORY_UNSPECIFIED','setBaseUrl','number','nextPageToken','x-goog-api-key','ListFileSearchStoresResponse','DeleteCachedContentResponse','retrievalConfig','voiceActivity','headers','enableEnhancedCivicAnswers','PREFERENCE_TUNING','invalid\x20model\x20parameter','STATE_PENDING','voiceActivityType','citations','blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','to\x20be\x20undefined\x20or\x20set\x20to\x20false\x20to\x20disable\x20streaming\x20function\x20call\x20arguments\x20feature.','PATCH','set','deno','ComputeTokensResponse','indexOf','HARM_SEVERITY_NEGLIGIBLE','generatedSamples','version','modelTurn','createPartFromUri','defaultIdempotencyKey','5yCHgBs','blob','RECITATION','Authentication\x20is\x20not\x20set\x20up.\x20Please\x20provide\x20either\x20a\x20project\x20and\x20location,\x20or\x20an\x20API\x20key,\x20or\x20a\x20custom\x20base\x20URL.','/operations/','safetyRatings','finally','googleSearchRetrieval','generateVideosInternal','Unsupported\x20mime\x20type:\x20','enterpriseWebSearch','PAGED_ITEM_MODELS','versionId',']\x20response\x20error\x20(','TUNING_TASK_I2V','thought','DeleteFileResponse','cancel','EDIT_MODE_INPAINT_REMOVAL','NUMBER','Could\x20not\x20extract\x20file\x20name\x20from\x20the\x20provided\x20input.','generatedVideos','`ReadableStream`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20You\x20will\x20need\x20to\x20polyfill\x20it,\x20`globalThis.ReadableStream\x20=\x20ReadableStream`','info','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them\x20in\x20a\x20Content\x20object,\x20specifying\x20the\x20role\x20for\x20them','3UgnysZ','predictionsFormat','createUserContent','candidateCount','APIUserAbortError','toLowerCase','read','BLOCK_HIGH_AND_ABOVE','JOB_STATE_EXPIRED','fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','REMOVE_STATIC','inlinedEmbedContentResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','Weighted\x20prompts\x20must\x20be\x20set\x20and\x20contain\x20at\x20least\x20one\x20entry.','trafficType','RESET_CONTEXT','GET','data','durationSeconds','HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT','CreateFileResponse','G_FLAT_MAJOR_E_FLAT_MINOR','file_search_store_name','HTTP_IN_HEADER','API\x20version\x20is\x20not\x20set.','auth','LiveMusicServerMessage','outputMimeType','exception\x20','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20not\x20valid\x20JSON.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','defaultHeaders','StartSensitivity','InlinedRequest[]\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','live','gs://','JOB_STATE_PAUSED','bigqueryDestination','DISTILLATION','CONTROL_TYPE_FACE_MESH','http:','outputGcsUri','endsWith','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.','speechConfig','TURN_COMPLETE_REASON_UNSPECIFIED','START_SENSITIVITY_LOW','AUTH_TYPE_UNSPECIFIED','No\x20MCP\x20clients\x20provided','iterator','abortSignal','source','isNaN','referenceId','createFunctionResponsePartFromBase64','vertexDatasetResource','Live','taskType','hasOwnProperty','Duplicate\x20function\x20name\x20','pubsubTopic\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ImportFileOperation','PAGED_ITEM_TUNING_JOBS','body','IMAGE_SAFETY','Language','event','streamFunctionCallArguments','platform','scribble','fromImageBytes\x20must\x20be\x20a\x20string','endpoint','extraBody','ios','guidanceScale','MALFORMED_FUNCTION_CALL','status','asyncIterator','VideoGenerationMaskMode','config','publishers/','isError','includes','process','maxTemperature','gcsUri','Symbol.iterator\x20is\x20not\x20defined.','stopSequences','PROBABILITY','BLOCK_NONE','PartListUnion\x20is\x20required','[object\x20Error]','validationDatasetUri','proactivity','predictions[]','downloadFile','env','StyleReferenceImage','mask','tunings','AuthenticationError','HARM_CATEGORY_DANGEROUS_CONTENT','distillationSpec','sdkHttpResponseInternal','TuningMethod','utf-8','encodedVideo','uploadToFileSearchStoreInternal','\x20Update\x20to\x20Node\x2020\x20LTS\x20or\x20newer,\x20or\x20set\x20`globalThis.File`\x20to\x20`import(\x27node:buffer\x27).File`.','auth_tokens','ReplayResponse','statistics','getHistory','succeeded','epochCount','expected\x20header\x20name\x20to\x20be\x20a\x20string','close','examples','modelConfig','type:\x20null\x20can\x20not\x20be\x20the\x20only\x20possible\x20type\x20for\x20the\x20field.','goAway','type','getOwnPropertySymbols','ListCachedContentsResponse','HIGH','baseUrl','connect','Value\x20\x22','preceding','fetchUploadUrl','constructUrl','NO_IMAGE','Warning:\x20Ephemeral\x20token\x20support\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','setMusicGenerationConfig','stringify','raiFilteredReason','customBaseUrl','inlineData','EDIT_MODE_INPAINT_INSERTION','some','controller','JOB_STATE_SUCCEEDED','carriageReturnIndex','FileSource','promptDatasetUri','getFileName','preferenceOptimizationSpec','maybeMoveToResponseJsonSchem','task_type','conn','gcsSource','\x20-\x20error;\x20no\x20more\x20retries\x20left',';\x20constructor:\x20','idempotencyHeader','access_token','Tool\x20response\x20parameters\x20are\x20required.','shouldRetry','URL_RETRIEVAL_STATUS_PAYWALL','pageLength','checkpoints','pipelineJob','tLiveClientContent','generationConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','fileSearchStoreName','getGcsUri','1.40.0','thoughtSignature','brand.privateNullableHeaders','safetySetting','ReactNative','play','FunctionResponseScheduling','Unsupported\x20source\x20for\x20Vertex\x20AI:\x20No\x20GCS\x20or\x20BigQuery\x20URI\x20found.','parse','mcpToTool','hasNextPage','TuningMode','randomUUID','bigqueryUri','batchPredictionJobs/{name}','The\x20default\x20react-native\x20fetch\x20implementation\x20does\x20not\x20support\x20streaming.\x20Please\x20use\x20expo/fetch:\x20https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api','shouldPrependVertexProjectPath','role','arm','EDIT_MODE_CONTROLLED_EDITING','Modality','validateHeaders','prepareOptions','ALLOW_ALL','ACTIVITY_HANDLING_UNSPECIFIED','\x0d\x0a\x0d\x0a','Outcome','Function\x20call\x20name\x20was\x20not\x20returned\x20by\x20the\x20model.','ACTIVITY_START','makeRequest','stat','EndSensitivity','userAgent','UnprocessableEntityError','stack','BATCH_STATE_SUCCEEDED','Files','DOCUMENT','learningRate','generateImagesInternal','automaticFunctionCalling','CountTokensResponse','dest','PROVISIONED_THROUGHPUT','fps\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.','BATCH_STATE_UNSPECIFIED','path','SUBJECT_TYPE_PERSON','personImage','{model}:batchEmbedContents','\x20(error;\x20no\x20more\x20retries\x20left)','models_url','GEMINI_API_KEY','FunctionResponse','pubsubTopic','OUTCOME_OK','buildHeaders','test','RawReferenceImage','enableWidget','START_OF_ACTIVITY_INTERRUPTS','POST','batches','mcpClients','encoding','forEach','STATE_FAILED','toReferenceImageAPI','BALANCED','functionCall','\x20attempts\x20remaining','explicitVadSignal','controlImageConfig','createInternal','exec','A_MAJOR_G_FLAT_MINOR','inlinedResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','HARM_CATEGORY_JAILBREAK','deployedModels','EditImageResponse','API\x20key\x20must\x20be\x20set\x20when\x20using\x20the\x20Gemini\x20API.','/ws/google.ai.generativelanguage.','BidiGenerateContent','index','content','LANGUAGE','request','BLOCKLIST','TuningTask','Other:','BLOCK_VERY_HIGH_AND_ABOVE','upscaleConfig','END_SENSITIVITY_UNSPECIFIED','fileUri','Unexpected\x20data\x20type:\x20','sessionResumption','linux','SUBJECT_TYPE_ANIMAL','imageConfig','fetchOptions','parent','NON_BLOCKING','Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files.\x20You\x20can\x20share\x20files\x20through\x20a\x20GCS\x20bucket.','turns','must\x20be\x20set\x20for\x20Gemini\x20API.','C_MAJOR_A_MINOR','CREATING','delete','batches/{name}:cancel','defaultQuery','fromEntries','transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','\x22\x20can\x27t\x20be\x20safely\x20passed\x20as\x20a\x20path\x20parameter','_client','retryOfRequestLogID','idempotencyKey','generateVideoResponse','negativePrompt','retryRequest','HARM_SEVERITY_LOW','getRequestUrl','audioTimestamp','X-Server-Timeout','MODEL_ARMOR','uploadToFileSearchStore','SCALE_UNSPECIFIED','routingConfig','labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','checkpointId','EDIT_MODE_OUTPAINT','1471689wUXDDw','TUNING_TASK_R2V','DIVERSITY',':uploadToFileSearchStore','https://proxyvn.top/','alt','or\x20leave\x20\x27config.toolConfig.functionCallingConfig.streamFunctionCallArguments\x27\x20','start','arm64','toFile','presencePenalty','_dest_','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','recordHistory','voiceActivityDetectionSignal','videoMetadata','sendPromise','instancesFormat','assign','GenerateVideosResponse','\x20-\x20','topP','/ws/google.cloud.aiplatform.','createPartFromFunctionCall','HARM_CATEGORY_HATE_SPEECH','ImagePromptLanguage','{file_search_store_name}:importFile','JOB_STATE_QUEUED','FunctionResponse\x20request\x20must\x20have\x20an\x20`id`\x20field\x20from\x20the\x20response\x20of\x20a\x20ToolCall.FunctionalCalls\x20in\x20Google\x20AI.','ENVIRONMENT_BROWSER','audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getUserAgent','android','method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','\x20was\x20set\x20to\x20','REFERENCE_TYPE_RAW','UPLOADED','tuningJobs','NONE','FileState','SafetyFilterLevel','setupComplete','PagedItem'];a0_0x1905=function(){return _0x520b10;};return a0_0x1905();}function updateCachedContentParametersToVertex(_0x3d68ea,_0x94c55e){const _0x52a71c=a0_0x254c3a,_0x20b5e4={},_0x450185=getValueByPath(_0x94c55e,[_0x52a71c(0x68e)]);_0x450185!=null&&setValueByPath(_0x20b5e4,['_url',_0x52a71c(0x68e)],tCachedContentName(_0x3d68ea,_0x450185));const _0x5112bb=getValueByPath(_0x94c55e,['config']);return _0x5112bb!=null&&updateCachedContentConfigToVertex(_0x5112bb,_0x20b5e4),_0x20b5e4;}/**
52
+ * @license
53
+ * Copyright 2025 Google LLC
54
+ * SPDX-License-Identifier: Apache-2.0
55
+ */
56
+ class Caches extends BaseModule{constructor(_0x5ce16e){const _0x3bbef3=a0_0x254c3a;super(),this['apiClient']=_0x5ce16e,this[_0x3bbef3(0x488)]=async(_0x432dac={})=>{const _0x160eb9=_0x3bbef3;return new Pager(exports['PagedItem']['PAGED_ITEM_CACHED_CONTENTS'],_0x230c82=>this[_0x160eb9(0x475)](_0x230c82),await this[_0x160eb9(0x475)](_0x432dac),_0x432dac);};}async[a0_0x254c3a(0x1b6)](_0x37e52e){const _0x2cdfb8=a0_0x254c3a;var _0x57f0b6,_0x3fc5b4,_0x182ac8,_0x1f4eb4;let _0x448272,_0x587ef0='',_0x33e77f={};if(this[_0x2cdfb8(0x6cf)][_0x2cdfb8(0x2b9)]()){const _0x5cb390=createCachedContentParametersToVertex(this[_0x2cdfb8(0x6cf)],_0x37e52e);return _0x587ef0=formatMap(_0x2cdfb8(0x27c),_0x5cb390[_0x2cdfb8(0x1fb)]),_0x33e77f=_0x5cb390[_0x2cdfb8(0x32f)],delete _0x5cb390[_0x2cdfb8(0x1fb)],delete _0x5cb390[_0x2cdfb8(0x32f)],_0x448272=this[_0x2cdfb8(0x6cf)][_0x2cdfb8(0x610)]({'path':_0x587ef0,'queryParams':_0x33e77f,'body':JSON['stringify'](_0x5cb390),'httpMethod':'POST','httpOptions':(_0x57f0b6=_0x37e52e[_0x2cdfb8(0x563)])===null||_0x57f0b6===void 0x0?void 0x0:_0x57f0b6[_0x2cdfb8(0x234)],'abortSignal':(_0x3fc5b4=_0x37e52e[_0x2cdfb8(0x563)])===null||_0x3fc5b4===void 0x0?void 0x0:_0x3fc5b4[_0x2cdfb8(0x546)]})[_0x2cdfb8(0x3a5)](_0x8ee53c=>{const _0x191db2=_0x2cdfb8;return _0x8ee53c[_0x191db2(0x288)]();}),_0x448272['then'](_0x244d88=>{return _0x244d88;});}else{const _0x4599f3=createCachedContentParametersToMldev(this[_0x2cdfb8(0x6cf)],_0x37e52e);return _0x587ef0=formatMap(_0x2cdfb8(0x27c),_0x4599f3['_url']),_0x33e77f=_0x4599f3['_query'],delete _0x4599f3[_0x2cdfb8(0x1fb)],delete _0x4599f3[_0x2cdfb8(0x32f)],_0x448272=this[_0x2cdfb8(0x6cf)][_0x2cdfb8(0x610)]({'path':_0x587ef0,'queryParams':_0x33e77f,'body':JSON[_0x2cdfb8(0x59a)](_0x4599f3),'httpMethod':_0x2cdfb8(0x5f7),'httpOptions':(_0x182ac8=_0x37e52e[_0x2cdfb8(0x563)])===null||_0x182ac8===void 0x0?void 0x0:_0x182ac8['httpOptions'],'abortSignal':(_0x1f4eb4=_0x37e52e['config'])===null||_0x1f4eb4===void 0x0?void 0x0:_0x1f4eb4[_0x2cdfb8(0x546)]})['then'](_0x346f3d=>{return _0x346f3d['json']();}),_0x448272[_0x2cdfb8(0x3a5)](_0x4d2300=>{return _0x4d2300;});}}async[a0_0x254c3a(0x296)](_0x4529ba){const _0x33900c=a0_0x254c3a;var _0x2da036,_0x3f549c,_0x42fd82,_0x3c9857;let _0x241d73,_0x1cc374='',_0x23692b={};if(this[_0x33900c(0x6cf)][_0x33900c(0x2b9)]()){const _0x4209ed=getCachedContentParametersToVertex(this[_0x33900c(0x6cf)],_0x4529ba);return _0x1cc374=formatMap('{name}',_0x4209ed[_0x33900c(0x1fb)]),_0x23692b=_0x4209ed['_query'],delete _0x4209ed[_0x33900c(0x1fb)],delete _0x4209ed[_0x33900c(0x32f)],_0x241d73=this[_0x33900c(0x6cf)][_0x33900c(0x610)]({'path':_0x1cc374,'queryParams':_0x23692b,'body':JSON[_0x33900c(0x59a)](_0x4209ed),'httpMethod':_0x33900c(0x525),'httpOptions':(_0x2da036=_0x4529ba[_0x33900c(0x563)])===null||_0x2da036===void 0x0?void 0x0:_0x2da036[_0x33900c(0x234)],'abortSignal':(_0x3f549c=_0x4529ba[_0x33900c(0x563)])===null||_0x3f549c===void 0x0?void 0x0:_0x3f549c[_0x33900c(0x546)]})[_0x33900c(0x3a5)](_0xd0686d=>{const _0x5e08f7=_0x33900c;return _0xd0686d[_0x5e08f7(0x288)]();}),_0x241d73[_0x33900c(0x3a5)](_0x10e6c8=>{return _0x10e6c8;});}else{const _0x5cfcd8=getCachedContentParametersToMldev(this[_0x33900c(0x6cf)],_0x4529ba);return _0x1cc374=formatMap(_0x33900c(0x188),_0x5cfcd8[_0x33900c(0x1fb)]),_0x23692b=_0x5cfcd8['_query'],delete _0x5cfcd8['_url'],delete _0x5cfcd8[_0x33900c(0x32f)],_0x241d73=this[_0x33900c(0x6cf)]['request']({'path':_0x1cc374,'queryParams':_0x23692b,'body':JSON[_0x33900c(0x59a)](_0x5cfcd8),'httpMethod':_0x33900c(0x525),'httpOptions':(_0x42fd82=_0x4529ba[_0x33900c(0x563)])===null||_0x42fd82===void 0x0?void 0x0:_0x42fd82[_0x33900c(0x234)],'abortSignal':(_0x3c9857=_0x4529ba[_0x33900c(0x563)])===null||_0x3c9857===void 0x0?void 0x0:_0x3c9857[_0x33900c(0x546)]})[_0x33900c(0x3a5)](_0x5e5dc3=>{const _0x38f777=_0x33900c;return _0x5e5dc3[_0x38f777(0x288)]();}),_0x241d73[_0x33900c(0x3a5)](_0x14ff3c=>{return _0x14ff3c;});}}async[a0_0x254c3a(0x625)](_0x43e8cc){const _0x11d070=a0_0x254c3a;var _0x2964b5,_0xd7bcee,_0x4bb77a,_0x3e3f9d;let _0x5c2a12,_0xd031d5='',_0x516b8b={};if(this[_0x11d070(0x6cf)][_0x11d070(0x2b9)]()){const _0xd712a7=deleteCachedContentParametersToVertex(this[_0x11d070(0x6cf)],_0x43e8cc);return _0xd031d5=formatMap(_0x11d070(0x188),_0xd712a7[_0x11d070(0x1fb)]),_0x516b8b=_0xd712a7['_query'],delete _0xd712a7[_0x11d070(0x1fb)],delete _0xd712a7[_0x11d070(0x32f)],_0x5c2a12=this[_0x11d070(0x6cf)][_0x11d070(0x610)]({'path':_0xd031d5,'queryParams':_0x516b8b,'body':JSON[_0x11d070(0x59a)](_0xd712a7),'httpMethod':_0x11d070(0x27a),'httpOptions':(_0x2964b5=_0x43e8cc['config'])===null||_0x2964b5===void 0x0?void 0x0:_0x2964b5[_0x11d070(0x234)],'abortSignal':(_0xd7bcee=_0x43e8cc[_0x11d070(0x563)])===null||_0xd7bcee===void 0x0?void 0x0:_0xd7bcee[_0x11d070(0x546)]})['then'](_0x45b956=>{const _0xe3579=_0x11d070;return _0x45b956[_0xe3579(0x288)]()['then'](_0x2d7092=>{const _0x2d1909=_0xe3579,_0x6120e9=_0x2d7092;return _0x6120e9[_0x2d1909(0x1ab)]={'headers':_0x45b956[_0x2d1909(0x4e8)]},_0x6120e9;});}),_0x5c2a12[_0x11d070(0x3a5)](_0x4a7059=>{const _0x116f3e=deleteCachedContentResponseFromVertex(_0x4a7059),_0x77e9a8=new DeleteCachedContentResponse();return Object['assign'](_0x77e9a8,_0x116f3e),_0x77e9a8;});}else{const _0x2444e7=deleteCachedContentParametersToMldev(this[_0x11d070(0x6cf)],_0x43e8cc);return _0xd031d5=formatMap(_0x11d070(0x188),_0x2444e7['_url']),_0x516b8b=_0x2444e7['_query'],delete _0x2444e7[_0x11d070(0x1fb)],delete _0x2444e7[_0x11d070(0x32f)],_0x5c2a12=this['apiClient'][_0x11d070(0x610)]({'path':_0xd031d5,'queryParams':_0x516b8b,'body':JSON[_0x11d070(0x59a)](_0x2444e7),'httpMethod':_0x11d070(0x27a),'httpOptions':(_0x4bb77a=_0x43e8cc[_0x11d070(0x563)])===null||_0x4bb77a===void 0x0?void 0x0:_0x4bb77a['httpOptions'],'abortSignal':(_0x3e3f9d=_0x43e8cc[_0x11d070(0x563)])===null||_0x3e3f9d===void 0x0?void 0x0:_0x3e3f9d[_0x11d070(0x546)]})['then'](_0x26d5ce=>{const _0x169969=_0x11d070;return _0x26d5ce[_0x169969(0x288)]()[_0x169969(0x3a5)](_0x14d3e3=>{const _0xec8ffc=_0x169969,_0x2973b6=_0x14d3e3;return _0x2973b6[_0xec8ffc(0x1ab)]={'headers':_0x26d5ce['headers']},_0x2973b6;});}),_0x5c2a12[_0x11d070(0x3a5)](_0x3c77fa=>{const _0x3fd31f=_0x11d070,_0x2b8848=deleteCachedContentResponseFromMldev(_0x3c77fa),_0x538b57=new DeleteCachedContentResponse();return Object[_0x3fd31f(0x64e)](_0x538b57,_0x2b8848),_0x538b57;});}}async[a0_0x254c3a(0x6cd)](_0x219da3){const _0x3614ff=a0_0x254c3a;var _0x107688,_0x4fd59d,_0x401c54,_0x5ca614;let _0x23c215,_0x126598='',_0xc0cd3c={};if(this[_0x3614ff(0x6cf)][_0x3614ff(0x2b9)]()){const _0x5d3a26=updateCachedContentParametersToVertex(this[_0x3614ff(0x6cf)],_0x219da3);return _0x126598=formatMap(_0x3614ff(0x188),_0x5d3a26[_0x3614ff(0x1fb)]),_0xc0cd3c=_0x5d3a26[_0x3614ff(0x32f)],delete _0x5d3a26[_0x3614ff(0x1fb)],delete _0x5d3a26[_0x3614ff(0x32f)],_0x23c215=this[_0x3614ff(0x6cf)][_0x3614ff(0x610)]({'path':_0x126598,'queryParams':_0xc0cd3c,'body':JSON['stringify'](_0x5d3a26),'httpMethod':_0x3614ff(0x4f1),'httpOptions':(_0x107688=_0x219da3['config'])===null||_0x107688===void 0x0?void 0x0:_0x107688['httpOptions'],'abortSignal':(_0x4fd59d=_0x219da3[_0x3614ff(0x563)])===null||_0x4fd59d===void 0x0?void 0x0:_0x4fd59d[_0x3614ff(0x546)]})[_0x3614ff(0x3a5)](_0x35850e=>{const _0x2baeeb=_0x3614ff;return _0x35850e[_0x2baeeb(0x288)]();}),_0x23c215['then'](_0xeed532=>{return _0xeed532;});}else{const _0x5f1894=updateCachedContentParametersToMldev(this[_0x3614ff(0x6cf)],_0x219da3);return _0x126598=formatMap(_0x3614ff(0x188),_0x5f1894[_0x3614ff(0x1fb)]),_0xc0cd3c=_0x5f1894['_query'],delete _0x5f1894[_0x3614ff(0x1fb)],delete _0x5f1894['_query'],_0x23c215=this[_0x3614ff(0x6cf)][_0x3614ff(0x610)]({'path':_0x126598,'queryParams':_0xc0cd3c,'body':JSON[_0x3614ff(0x59a)](_0x5f1894),'httpMethod':'PATCH','httpOptions':(_0x401c54=_0x219da3[_0x3614ff(0x563)])===null||_0x401c54===void 0x0?void 0x0:_0x401c54['httpOptions'],'abortSignal':(_0x5ca614=_0x219da3[_0x3614ff(0x563)])===null||_0x5ca614===void 0x0?void 0x0:_0x5ca614[_0x3614ff(0x546)]})[_0x3614ff(0x3a5)](_0x52b970=>{return _0x52b970['json']();}),_0x23c215[_0x3614ff(0x3a5)](_0x36483f=>{return _0x36483f;});}}async[a0_0x254c3a(0x475)](_0x45d825){const _0x24c6d8=a0_0x254c3a;var _0x4c4c73,_0x3b7e34,_0x16a30c,_0x2c9a0f;let _0x564176,_0x52df9e='',_0x1963a9={};if(this[_0x24c6d8(0x6cf)]['isVertexAI']()){const _0x4424f1=listCachedContentsParametersToVertex(_0x45d825);return _0x52df9e=formatMap(_0x24c6d8(0x27c),_0x4424f1[_0x24c6d8(0x1fb)]),_0x1963a9=_0x4424f1[_0x24c6d8(0x32f)],delete _0x4424f1[_0x24c6d8(0x1fb)],delete _0x4424f1[_0x24c6d8(0x32f)],_0x564176=this[_0x24c6d8(0x6cf)][_0x24c6d8(0x610)]({'path':_0x52df9e,'queryParams':_0x1963a9,'body':JSON[_0x24c6d8(0x59a)](_0x4424f1),'httpMethod':_0x24c6d8(0x525),'httpOptions':(_0x4c4c73=_0x45d825[_0x24c6d8(0x563)])===null||_0x4c4c73===void 0x0?void 0x0:_0x4c4c73['httpOptions'],'abortSignal':(_0x3b7e34=_0x45d825[_0x24c6d8(0x563)])===null||_0x3b7e34===void 0x0?void 0x0:_0x3b7e34['abortSignal']})[_0x24c6d8(0x3a5)](_0xf21ac5=>{const _0x20b7b7=_0x24c6d8;return _0xf21ac5['json']()[_0x20b7b7(0x3a5)](_0x15d355=>{const _0x2f5a2f=_0x20b7b7,_0x2bd985=_0x15d355;return _0x2bd985['sdkHttpResponse']={'headers':_0xf21ac5[_0x2f5a2f(0x4e8)]},_0x2bd985;});}),_0x564176[_0x24c6d8(0x3a5)](_0x5dd251=>{const _0x469ab4=_0x24c6d8,_0x150683=listCachedContentsResponseFromVertex(_0x5dd251),_0x4d405f=new ListCachedContentsResponse();return Object[_0x469ab4(0x64e)](_0x4d405f,_0x150683),_0x4d405f;});}else{const _0x33e844=listCachedContentsParametersToMldev(_0x45d825);return _0x52df9e=formatMap(_0x24c6d8(0x27c),_0x33e844[_0x24c6d8(0x1fb)]),_0x1963a9=_0x33e844[_0x24c6d8(0x32f)],delete _0x33e844[_0x24c6d8(0x1fb)],delete _0x33e844[_0x24c6d8(0x32f)],_0x564176=this['apiClient'][_0x24c6d8(0x610)]({'path':_0x52df9e,'queryParams':_0x1963a9,'body':JSON[_0x24c6d8(0x59a)](_0x33e844),'httpMethod':_0x24c6d8(0x525),'httpOptions':(_0x16a30c=_0x45d825[_0x24c6d8(0x563)])===null||_0x16a30c===void 0x0?void 0x0:_0x16a30c[_0x24c6d8(0x234)],'abortSignal':(_0x2c9a0f=_0x45d825[_0x24c6d8(0x563)])===null||_0x2c9a0f===void 0x0?void 0x0:_0x2c9a0f[_0x24c6d8(0x546)]})[_0x24c6d8(0x3a5)](_0x524396=>{const _0x4eab03=_0x24c6d8;return _0x524396[_0x4eab03(0x288)]()[_0x4eab03(0x3a5)](_0x1960a9=>{const _0x3b1290=_0x4eab03,_0x47d398=_0x1960a9;return _0x47d398[_0x3b1290(0x1ab)]={'headers':_0x524396[_0x3b1290(0x4e8)]},_0x47d398;});}),_0x564176[_0x24c6d8(0x3a5)](_0x45629f=>{const _0x1c5588=_0x24c6d8,_0x3a1093=listCachedContentsResponseFromMldev(_0x45629f),_0x3f11cc=new ListCachedContentsResponse();return Object[_0x1c5588(0x64e)](_0x3f11cc,_0x3a1093),_0x3f11cc;});}}}function __rest(_0x51ba96,_0x344d19){const _0xf442dc=a0_0x254c3a;var _0x3b533d={};for(var _0x339075 in _0x51ba96)if(Object[_0xf442dc(0x6b5)][_0xf442dc(0x54e)][_0xf442dc(0x49b)](_0x51ba96,_0x339075)&&_0x344d19[_0xf442dc(0x4f5)](_0x339075)<0x0)_0x3b533d[_0x339075]=_0x51ba96[_0x339075];if(_0x51ba96!=null&&typeof Object[_0xf442dc(0x58e)]===_0xf442dc(0x304))for(var _0x9fce3c=0x0,_0x339075=Object[_0xf442dc(0x58e)](_0x51ba96);_0x9fce3c<_0x339075['length'];_0x9fce3c++){if(_0x344d19[_0xf442dc(0x4f5)](_0x339075[_0x9fce3c])<0x0&&Object[_0xf442dc(0x6b5)][_0xf442dc(0x2e3)][_0xf442dc(0x49b)](_0x51ba96,_0x339075[_0x9fce3c]))_0x3b533d[_0x339075[_0x9fce3c]]=_0x51ba96[_0x339075[_0x9fce3c]];}return _0x3b533d;}function __values(_0x39f538){const _0x523402=a0_0x254c3a;var _0x110b24=typeof Symbol===_0x523402(0x304)&&Symbol[_0x523402(0x545)],_0x395056=_0x110b24&&_0x39f538[_0x110b24],_0x4759e9=0x0;if(_0x395056)return _0x395056[_0x523402(0x49b)](_0x39f538);if(_0x39f538&&typeof _0x39f538[_0x523402(0x3d2)]===_0x523402(0x4e1))return{'next':function(){const _0x316666=_0x523402;if(_0x39f538&&_0x4759e9>=_0x39f538[_0x316666(0x3d2)])_0x39f538=void 0x0;return{'value':_0x39f538&&_0x39f538[_0x4759e9++],'done':!_0x39f538};}};throw new TypeError(_0x110b24?_0x523402(0x2db):_0x523402(0x56a));}function __await(_0x36f2ff){return this instanceof __await?(this['v']=_0x36f2ff,this):new __await(_0x36f2ff);}function __asyncGenerator(_0x29e619,_0x25eaab,_0x39ca50){const _0x3ee6e5=a0_0x254c3a;if(!Symbol[_0x3ee6e5(0x561)])throw new TypeError(_0x3ee6e5(0x490));var _0x5e546c=_0x39ca50[_0x3ee6e5(0x2d5)](_0x29e619,_0x25eaab||[]),_0x1cd3a4,_0x186716=[];return _0x1cd3a4=Object[_0x3ee6e5(0x1b6)]((typeof AsyncIterator===_0x3ee6e5(0x304)?AsyncIterator:Object)['prototype']),_0x5e4a78(_0x3ee6e5(0x33e)),_0x5e4a78(_0x3ee6e5(0x244)),_0x5e4a78(_0x3ee6e5(0x3fd),_0x1c9e73),_0x1cd3a4[Symbol[_0x3ee6e5(0x561)]]=function(){return this;},_0x1cd3a4;function _0x1c9e73(_0x48f27d){return function(_0xe1e4cd){const _0x264489=a0_0x3530;return Promise['resolve'](_0xe1e4cd)[_0x264489(0x3a5)](_0x48f27d,_0x50bbf4);};}function _0x5e4a78(_0x4bc0cf,_0x56b829){if(_0x5e546c[_0x4bc0cf]){_0x1cd3a4[_0x4bc0cf]=function(_0x4a36c4){return new Promise(function(_0x571c25,_0x4bb1bc){const _0x16ee7d=a0_0x3530;_0x186716[_0x16ee7d(0x417)]([_0x4bc0cf,_0x4a36c4,_0x571c25,_0x4bb1bc])>0x1||_0x12aaa3(_0x4bc0cf,_0x4a36c4);});};if(_0x56b829)_0x1cd3a4[_0x4bc0cf]=_0x56b829(_0x1cd3a4[_0x4bc0cf]);}}function _0x12aaa3(_0x2eec44,_0x1c4fb6){try{_0x144d04(_0x5e546c[_0x2eec44](_0x1c4fb6));}catch(_0x3300f7){_0xfc0b62(_0x186716[0x0][0x3],_0x3300f7);}}function _0x144d04(_0x454fa0){const _0x497014=_0x3ee6e5;_0x454fa0[_0x497014(0x484)]instanceof __await?Promise[_0x497014(0x294)](_0x454fa0[_0x497014(0x484)]['v'])[_0x497014(0x3a5)](_0xf3800b,_0x50bbf4):_0xfc0b62(_0x186716[0x0][0x2],_0x454fa0);}function _0xf3800b(_0x3d5576){_0x12aaa3('next',_0x3d5576);}function _0x50bbf4(_0x3e5de2){const _0x55da06=_0x3ee6e5;_0x12aaa3(_0x55da06(0x244),_0x3e5de2);}function _0xfc0b62(_0x50745d,_0x19eaab){const _0x245a63=_0x3ee6e5;if(_0x50745d(_0x19eaab),_0x186716[_0x245a63(0x220)](),_0x186716['length'])_0x12aaa3(_0x186716[0x0][0x0],_0x186716[0x0][0x1]);}}function __asyncValues(_0x51293d){const _0x58204f=a0_0x254c3a;if(!Symbol[_0x58204f(0x561)])throw new TypeError('Symbol.asyncIterator\x20is\x20not\x20defined.');var _0x487fe7=_0x51293d[Symbol['asyncIterator']],_0x2ee54a;return _0x487fe7?_0x487fe7[_0x58204f(0x49b)](_0x51293d):(_0x51293d=typeof __values===_0x58204f(0x304)?__values(_0x51293d):_0x51293d[Symbol[_0x58204f(0x545)]](),_0x2ee54a={},_0xd57118(_0x58204f(0x33e)),_0xd57118(_0x58204f(0x244)),_0xd57118(_0x58204f(0x3fd)),_0x2ee54a[Symbol[_0x58204f(0x561)]]=function(){return this;},_0x2ee54a);function _0xd57118(_0x1f3478){_0x2ee54a[_0x1f3478]=_0x51293d[_0x1f3478]&&function(_0x4bbfe1){return new Promise(function(_0x589795,_0x1d90ab){const _0x35f22c=a0_0x3530;_0x4bbfe1=_0x51293d[_0x1f3478](_0x4bbfe1),_0x5e9bd2(_0x589795,_0x1d90ab,_0x4bbfe1[_0x35f22c(0x183)],_0x4bbfe1[_0x35f22c(0x484)]);});};}function _0x5e9bd2(_0x19c6bd,_0x56a965,_0x50bf3c,_0x3a6e55){const _0x293282=_0x58204f;Promise[_0x293282(0x294)](_0x3a6e55)['then'](function(_0x53f801){_0x19c6bd({'value':_0x53f801,'done':_0x50bf3c});},_0x56a965);}}typeof SuppressedError===a0_0x254c3a(0x304)?SuppressedError:function(_0xbb65cb,_0x343bb0,_0x144c3d){const _0x4a4796=a0_0x254c3a;var _0x394170=new Error(_0x144c3d);return _0x394170['name']='SuppressedError',_0x394170[_0x4a4796(0x20b)]=_0xbb65cb,_0x394170[_0x4a4796(0x181)]=_0x343bb0,_0x394170;};/**
57
+ * @license
58
+ * Copyright 2025 Google LLC
59
+ * SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ function isValidResponse(_0x44c83f){const _0x3cf87b=a0_0x254c3a;var _0x2141c7;if(_0x44c83f[_0x3cf87b(0x711)]==undefined||_0x44c83f[_0x3cf87b(0x711)][_0x3cf87b(0x3d2)]===0x0)return![];const _0x37996a=(_0x2141c7=_0x44c83f[_0x3cf87b(0x711)][0x0])===null||_0x2141c7===void 0x0?void 0x0:_0x2141c7[_0x3cf87b(0x60e)];if(_0x37996a===undefined)return![];return isValidContent(_0x37996a);}function isValidContent(_0x43ad9d){const _0x3c7f10=a0_0x254c3a;if(_0x43ad9d['parts']===undefined||_0x43ad9d[_0x3c7f10(0x435)][_0x3c7f10(0x3d2)]===0x0)return![];for(const _0x2b7ca9 of _0x43ad9d[_0x3c7f10(0x435)]){if(_0x2b7ca9===undefined||Object['keys'](_0x2b7ca9)[_0x3c7f10(0x3d2)]===0x0)return![];}return!![];}function validateHistory(_0x2eb4c6){const _0x1d90c1=a0_0x254c3a;if(_0x2eb4c6[_0x1d90c1(0x3d2)]===0x0)return;for(const _0x4e167 of _0x2eb4c6){if(_0x4e167[_0x1d90c1(0x5ca)]!==_0x1d90c1(0x699)&&_0x4e167[_0x1d90c1(0x5ca)]!==_0x1d90c1(0x492))throw new Error(_0x1d90c1(0x433)+_0x4e167[_0x1d90c1(0x5ca)]+'.');}}function extractCuratedHistory(_0x382b98){const _0xe65c10=a0_0x254c3a;if(_0x382b98===undefined||_0x382b98[_0xe65c10(0x3d2)]===0x0)return[];const _0x13bee9=[],_0x15fe71=_0x382b98[_0xe65c10(0x3d2)];let _0x5dd1a9=0x0;while(_0x5dd1a9<_0x15fe71){if(_0x382b98[_0x5dd1a9][_0xe65c10(0x5ca)]===_0xe65c10(0x699))_0x13bee9[_0xe65c10(0x417)](_0x382b98[_0x5dd1a9]),_0x5dd1a9++;else{const _0x4d123f=[];let _0x22bb97=!![];while(_0x5dd1a9<_0x15fe71&&_0x382b98[_0x5dd1a9][_0xe65c10(0x5ca)]==='model'){_0x4d123f[_0xe65c10(0x417)](_0x382b98[_0x5dd1a9]),_0x22bb97&&!isValidContent(_0x382b98[_0x5dd1a9])&&(_0x22bb97=![]),_0x5dd1a9++;}_0x22bb97?_0x13bee9[_0xe65c10(0x417)](..._0x4d123f):_0x13bee9['pop']();}}return _0x13bee9;}class Chats{constructor(_0x3d0c1d,_0x37603a){const _0x419850=a0_0x254c3a;this[_0x419850(0x43b)]=_0x3d0c1d,this[_0x419850(0x6cf)]=_0x37603a;}[a0_0x254c3a(0x1b6)](_0x35e464){const _0x1a4da8=a0_0x254c3a;return new Chat(this[_0x1a4da8(0x6cf)],this[_0x1a4da8(0x43b)],_0x35e464['model'],_0x35e464[_0x1a4da8(0x563)],structuredClone(_0x35e464['history']));}}class Chat{constructor(_0x229394,_0x1d1c9a,_0x211cb5,_0x4edd0e={},_0x3aefd7=[]){const _0x1fcc77=a0_0x254c3a;this['apiClient']=_0x229394,this[_0x1fcc77(0x43b)]=_0x1d1c9a,this['model']=_0x211cb5,this[_0x1fcc77(0x563)]=_0x4edd0e,this[_0x1fcc77(0x6a0)]=_0x3aefd7,this[_0x1fcc77(0x64c)]=Promise[_0x1fcc77(0x294)](),validateHistory(_0x3aefd7);}async[a0_0x254c3a(0x716)](_0x35603b){const _0x26c31c=a0_0x254c3a;var _0x4076d3;await this['sendPromise'];const _0x22532c=tContent(_0x35603b[_0x26c31c(0x2c2)]),_0x4519db=this[_0x26c31c(0x43b)][_0x26c31c(0x701)]({'model':this['model'],'contents':this[_0x26c31c(0x584)](!![])['concat'](_0x22532c),'config':(_0x4076d3=_0x35603b[_0x26c31c(0x563)])!==null&&_0x4076d3!==void 0x0?_0x4076d3:this[_0x26c31c(0x563)]});return this[_0x26c31c(0x64c)]=((async()=>{const _0x14b740=_0x26c31c;var _0x22401f,_0x5b4244,_0x4b5dca;const _0x21931d=await _0x4519db,_0x17bd67=(_0x5b4244=(_0x22401f=_0x21931d[_0x14b740(0x711)])===null||_0x22401f===void 0x0?void 0x0:_0x22401f[0x0])===null||_0x5b4244===void 0x0?void 0x0:_0x5b4244['content'],_0x24bfbf=_0x21931d[_0x14b740(0x378)],_0x520ef0=this['getHistory'](!![])[_0x14b740(0x3d2)];let _0xb1d4da=[];_0x24bfbf!=null&&(_0xb1d4da=(_0x4b5dca=_0x24bfbf[_0x14b740(0x26b)](_0x520ef0))!==null&&_0x4b5dca!==void 0x0?_0x4b5dca:[]);const _0x16b4b6=_0x17bd67?[_0x17bd67]:[];this[_0x14b740(0x649)](_0x22532c,_0x16b4b6,_0xb1d4da);return;})()),await this[_0x26c31c(0x64c)]['catch'](()=>{const _0xc4400a=_0x26c31c;this['sendPromise']=Promise[_0xc4400a(0x294)]();}),_0x4519db;}async['sendMessageStream'](_0x4bbf51){const _0x50b391=a0_0x254c3a;var _0x26f257;await this['sendPromise'];const _0x6eaa5=tContent(_0x4bbf51[_0x50b391(0x2c2)]),_0x3a2b7d=this['modelsModule'][_0x50b391(0x49d)]({'model':this[_0x50b391(0x492)],'contents':this[_0x50b391(0x584)](!![])[_0x50b391(0x1c8)](_0x6eaa5),'config':(_0x26f257=_0x4bbf51[_0x50b391(0x563)])!==null&&_0x26f257!==void 0x0?_0x26f257:this[_0x50b391(0x563)]});this[_0x50b391(0x64c)]=_0x3a2b7d[_0x50b391(0x3a5)](()=>undefined)[_0x50b391(0x4ba)](()=>undefined);const _0x40dba5=await _0x3a2b7d,_0x2cf06c=this[_0x50b391(0x2e7)](_0x40dba5,_0x6eaa5);return _0x2cf06c;}['getHistory'](_0x3ef997=![]){const _0x1dcba7=a0_0x254c3a,_0x258f32=_0x3ef997?extractCuratedHistory(this[_0x1dcba7(0x6a0)]):this['history'];return structuredClone(_0x258f32);}[a0_0x254c3a(0x2e7)](_0x46368a,_0x5c9bfb){return __asyncGenerator(this,arguments,function*_0x305b16(){const _0x13ad8c=a0_0x3530;var _0x3b8ff4,_0x369a98,_0x58284e,_0x1c2862,_0xec7cd6,_0x1615e0;const _0x592c06=[];try{for(var _0x40e3f8=!![],_0x4a9cf3=__asyncValues(_0x46368a),_0x378679;_0x378679=yield __await(_0x4a9cf3[_0x13ad8c(0x33e)]()),_0x3b8ff4=_0x378679[_0x13ad8c(0x183)],!_0x3b8ff4;_0x40e3f8=!![]){_0x1c2862=_0x378679[_0x13ad8c(0x484)],_0x40e3f8=![];const _0x34955e=_0x1c2862;if(isValidResponse(_0x34955e)){const _0x3c9e8d=(_0x1615e0=(_0xec7cd6=_0x34955e[_0x13ad8c(0x711)])===null||_0xec7cd6===void 0x0?void 0x0:_0xec7cd6[0x0])===null||_0x1615e0===void 0x0?void 0x0:_0x1615e0[_0x13ad8c(0x60e)];_0x3c9e8d!==undefined&&_0x592c06[_0x13ad8c(0x417)](_0x3c9e8d);}yield yield __await(_0x34955e);}}catch(_0x100b54){_0x369a98={'error':_0x100b54};}finally{try{if(!_0x40e3f8&&!_0x3b8ff4&&(_0x58284e=_0x4a9cf3[_0x13ad8c(0x3fd)]))yield __await(_0x58284e[_0x13ad8c(0x49b)](_0x4a9cf3));}finally{if(_0x369a98)throw _0x369a98[_0x13ad8c(0x20b)];}}this[_0x13ad8c(0x649)](_0x5c9bfb,_0x592c06);});}['recordHistory'](_0x73df0b,_0x1a11a1,_0x304d53){const _0x419e20=a0_0x254c3a;let _0x35e252=[];_0x1a11a1['length']>0x0&&_0x1a11a1['every'](_0x3451bc=>_0x3451bc[_0x419e20(0x5ca)]!==undefined)?_0x35e252=_0x1a11a1:_0x35e252[_0x419e20(0x417)]({'role':_0x419e20(0x492),'parts':[]}),_0x304d53&&_0x304d53[_0x419e20(0x3d2)]>0x0?this[_0x419e20(0x6a0)]['push'](...extractCuratedHistory(_0x304d53)):this[_0x419e20(0x6a0)]['push'](_0x73df0b),this[_0x419e20(0x6a0)][_0x419e20(0x417)](..._0x35e252);}}/**
62
+ * @license
63
+ * Copyright 2025 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
66
+ function createFileSearchStoreConfigToMldev(_0x3b59e8,_0x33b152){const _0x3623e5=a0_0x254c3a,_0x40f458={},_0x149114=getValueByPath(_0x3b59e8,[_0x3623e5(0x462)]);return _0x33b152!==undefined&&_0x149114!=null&&setValueByPath(_0x33b152,[_0x3623e5(0x462)],_0x149114),_0x40f458;}function createFileSearchStoreParametersToMldev(_0xcc251){const _0x2bcdfb=a0_0x254c3a,_0xb32496={},_0xd3a1f8=getValueByPath(_0xcc251,[_0x2bcdfb(0x563)]);return _0xd3a1f8!=null&&createFileSearchStoreConfigToMldev(_0xd3a1f8,_0xb32496),_0xb32496;}function deleteFileSearchStoreConfigToMldev(_0x431831,_0x1c8ff0){const _0xcc656d=a0_0x254c3a,_0x23fab3={},_0x1fb5bc=getValueByPath(_0x431831,[_0xcc656d(0x36e)]);return _0x1c8ff0!==undefined&&_0x1fb5bc!=null&&setValueByPath(_0x1c8ff0,['_query',_0xcc656d(0x36e)],_0x1fb5bc),_0x23fab3;}function deleteFileSearchStoreParametersToMldev(_0x273ff5){const _0x5f5b0f=a0_0x254c3a,_0x1b510c={},_0x15ed83=getValueByPath(_0x273ff5,['name']);_0x15ed83!=null&&setValueByPath(_0x1b510c,['_url',_0x5f5b0f(0x68e)],_0x15ed83);const _0x461ba5=getValueByPath(_0x273ff5,[_0x5f5b0f(0x563)]);return _0x461ba5!=null&&deleteFileSearchStoreConfigToMldev(_0x461ba5,_0x1b510c),_0x1b510c;}function getFileSearchStoreParametersToMldev(_0x44b196){const _0x12759b=a0_0x254c3a,_0x295627={},_0x3211e1=getValueByPath(_0x44b196,[_0x12759b(0x68e)]);return _0x3211e1!=null&&setValueByPath(_0x295627,[_0x12759b(0x1fb),_0x12759b(0x68e)],_0x3211e1),_0x295627;}function importFileConfigToMldev(_0x89a16a,_0x3cdfc4){const _0x3ea2f2=a0_0x254c3a,_0x28f13e={},_0x466464=getValueByPath(_0x89a16a,[_0x3ea2f2(0x3bb)]);if(_0x3cdfc4!==undefined&&_0x466464!=null){let _0x1874ed=_0x466464;Array['isArray'](_0x1874ed)&&(_0x1874ed=_0x1874ed['map'](_0xf0c9af=>{return _0xf0c9af;})),setValueByPath(_0x3cdfc4,[_0x3ea2f2(0x3bb)],_0x1874ed);}const _0x4ee966=getValueByPath(_0x89a16a,[_0x3ea2f2(0x39c)]);return _0x3cdfc4!==undefined&&_0x4ee966!=null&&setValueByPath(_0x3cdfc4,[_0x3ea2f2(0x39c)],_0x4ee966),_0x28f13e;}function importFileOperationFromMldev(_0xaa1db2){const _0x4d1147=a0_0x254c3a,_0x54d971={},_0x1e2a46=getValueByPath(_0xaa1db2,[_0x4d1147(0x68e)]);_0x1e2a46!=null&&setValueByPath(_0x54d971,[_0x4d1147(0x68e)],_0x1e2a46);const _0x359a55=getValueByPath(_0xaa1db2,[_0x4d1147(0x3d3)]);_0x359a55!=null&&setValueByPath(_0x54d971,[_0x4d1147(0x3d3)],_0x359a55);const _0xdc9026=getValueByPath(_0xaa1db2,[_0x4d1147(0x183)]);_0xdc9026!=null&&setValueByPath(_0x54d971,['done'],_0xdc9026);const _0x20b467=getValueByPath(_0xaa1db2,['error']);_0x20b467!=null&&setValueByPath(_0x54d971,[_0x4d1147(0x20b)],_0x20b467);const _0x932048=getValueByPath(_0xaa1db2,[_0x4d1147(0x218)]);return _0x932048!=null&&setValueByPath(_0x54d971,['response'],importFileResponseFromMldev(_0x932048)),_0x54d971;}function importFileParametersToMldev(_0x3b98d2){const _0x439891=a0_0x254c3a,_0x53317d={},_0x370228=getValueByPath(_0x3b98d2,[_0x439891(0x5b7)]);_0x370228!=null&&setValueByPath(_0x53317d,[_0x439891(0x1fb),_0x439891(0x52b)],_0x370228);const _0x10f0b4=getValueByPath(_0x3b98d2,[_0x439891(0x3ba)]);_0x10f0b4!=null&&setValueByPath(_0x53317d,[_0x439891(0x3ba)],_0x10f0b4);const _0x511d8a=getValueByPath(_0x3b98d2,['config']);return _0x511d8a!=null&&importFileConfigToMldev(_0x511d8a,_0x53317d),_0x53317d;}function importFileResponseFromMldev(_0x310c5c){const _0x58c9c0=a0_0x254c3a,_0x1ab9ad={},_0x413a55=getValueByPath(_0x310c5c,[_0x58c9c0(0x1ab)]);_0x413a55!=null&&setValueByPath(_0x1ab9ad,['sdkHttpResponse'],_0x413a55);const _0x26e705=getValueByPath(_0x310c5c,[_0x58c9c0(0x61e)]);_0x26e705!=null&&setValueByPath(_0x1ab9ad,[_0x58c9c0(0x61e)],_0x26e705);const _0x5c224f=getValueByPath(_0x310c5c,[_0x58c9c0(0x2f2)]);return _0x5c224f!=null&&setValueByPath(_0x1ab9ad,[_0x58c9c0(0x2f2)],_0x5c224f),_0x1ab9ad;}function listFileSearchStoresConfigToMldev(_0x128132,_0x364ef7){const _0x1f40bf=a0_0x254c3a,_0x25a6e2={},_0x2bee1c=getValueByPath(_0x128132,['pageSize']);_0x364ef7!==undefined&&_0x2bee1c!=null&&setValueByPath(_0x364ef7,[_0x1f40bf(0x32f),'pageSize'],_0x2bee1c);const _0x3213e0=getValueByPath(_0x128132,[_0x1f40bf(0x6d9)]);return _0x364ef7!==undefined&&_0x3213e0!=null&&setValueByPath(_0x364ef7,['_query','pageToken'],_0x3213e0),_0x25a6e2;}function listFileSearchStoresParametersToMldev(_0x5c082b){const _0x4f7f9c=a0_0x254c3a,_0x3361de={},_0x2afede=getValueByPath(_0x5c082b,[_0x4f7f9c(0x563)]);return _0x2afede!=null&&listFileSearchStoresConfigToMldev(_0x2afede,_0x3361de),_0x3361de;}function listFileSearchStoresResponseFromMldev(_0x2b0b8a){const _0x11e056=a0_0x254c3a,_0x5f4744={},_0x552cf3=getValueByPath(_0x2b0b8a,[_0x11e056(0x1ab)]);_0x552cf3!=null&&setValueByPath(_0x5f4744,[_0x11e056(0x1ab)],_0x552cf3);const _0x571c65=getValueByPath(_0x2b0b8a,[_0x11e056(0x4e2)]);_0x571c65!=null&&setValueByPath(_0x5f4744,[_0x11e056(0x4e2)],_0x571c65);const _0x21acdc=getValueByPath(_0x2b0b8a,['fileSearchStores']);if(_0x21acdc!=null){let _0x585c87=_0x21acdc;Array[_0x11e056(0x192)](_0x585c87)&&(_0x585c87=_0x585c87[_0x11e056(0x221)](_0x1a8827=>{return _0x1a8827;})),setValueByPath(_0x5f4744,[_0x11e056(0x3a1)],_0x585c87);}return _0x5f4744;}function uploadToFileSearchStoreConfigToMldev(_0x382a4e,_0x553162){const _0x34ffd6=a0_0x254c3a,_0x327da5={},_0x506159=getValueByPath(_0x382a4e,[_0x34ffd6(0x38c)]);_0x553162!==undefined&&_0x506159!=null&&setValueByPath(_0x553162,[_0x34ffd6(0x38c)],_0x506159);const _0x5ef408=getValueByPath(_0x382a4e,[_0x34ffd6(0x462)]);_0x553162!==undefined&&_0x5ef408!=null&&setValueByPath(_0x553162,[_0x34ffd6(0x462)],_0x5ef408);const _0x17d59e=getValueByPath(_0x382a4e,[_0x34ffd6(0x3bb)]);if(_0x553162!==undefined&&_0x17d59e!=null){let _0x10a5df=_0x17d59e;Array[_0x34ffd6(0x192)](_0x10a5df)&&(_0x10a5df=_0x10a5df[_0x34ffd6(0x221)](_0x3fd481=>{return _0x3fd481;})),setValueByPath(_0x553162,[_0x34ffd6(0x3bb)],_0x10a5df);}const _0x27a813=getValueByPath(_0x382a4e,[_0x34ffd6(0x39c)]);return _0x553162!==undefined&&_0x27a813!=null&&setValueByPath(_0x553162,[_0x34ffd6(0x39c)],_0x27a813),_0x327da5;}function uploadToFileSearchStoreParametersToMldev(_0x325e27){const _0x18777d=a0_0x254c3a,_0x5df607={},_0x2f9117=getValueByPath(_0x325e27,[_0x18777d(0x5b7)]);_0x2f9117!=null&&setValueByPath(_0x5df607,[_0x18777d(0x1fb),_0x18777d(0x52b)],_0x2f9117);const _0x263359=getValueByPath(_0x325e27,[_0x18777d(0x563)]);return _0x263359!=null&&uploadToFileSearchStoreConfigToMldev(_0x263359,_0x5df607),_0x5df607;}function uploadToFileSearchStoreResumableResponseFromMldev(_0x10b8f9){const _0x4a9385=a0_0x254c3a,_0x336c42={},_0x4d84a7=getValueByPath(_0x10b8f9,['sdkHttpResponse']);return _0x4d84a7!=null&&setValueByPath(_0x336c42,[_0x4a9385(0x1ab)],_0x4d84a7),_0x336c42;}/**
67
+ * @license
68
+ * Copyright 2025 Google LLC
69
+ * SPDX-License-Identifier: Apache-2.0
70
+ */
71
+ class ApiError extends Error{constructor(_0x114710){const _0x11e506=a0_0x254c3a;super(_0x114710['message']),this['name']=_0x11e506(0x3a9),this['status']=_0x114710[_0x11e506(0x560)],Object['setPrototypeOf'](this,ApiError[_0x11e506(0x6b5)]);}}/**
72
+ * @license
73
+ * Copyright 2025 Google LLC
74
+ * SPDX-License-Identifier: Apache-2.0
75
+ */
76
+ const CONTENT_TYPE_HEADER=a0_0x254c3a(0x4c0),SERVER_TIMEOUT_HEADER=a0_0x254c3a(0x634),USER_AGENT_HEADER='User-Agent',GOOGLE_API_CLIENT_HEADER=a0_0x254c3a(0x467),SDK_VERSION=a0_0x254c3a(0x5b9),LIBRARY_LABEL=a0_0x254c3a(0x20d)+SDK_VERSION,VERTEX_AI_API_DEFAULT_VERSION=a0_0x254c3a(0x6fc),GOOGLE_AI_API_DEFAULT_VERSION=a0_0x254c3a(0x670);class ApiClient{constructor(_0xb31a6c){const _0x43043f=a0_0x254c3a;var _0x3dd0dc,_0x4548e9,_0x33ef59;this[_0x43043f(0x253)]=Object['assign']({},_0xb31a6c),this[_0x43043f(0x59c)]=(_0x3dd0dc=_0xb31a6c['httpOptions'])===null||_0x3dd0dc===void 0x0?void 0x0:_0x3dd0dc[_0x43043f(0x591)];if(this[_0x43043f(0x253)]['vertexai']){if(this[_0x43043f(0x253)]['project']&&this[_0x43043f(0x253)][_0x43043f(0x264)])this[_0x43043f(0x253)][_0x43043f(0x6a4)]=undefined;else this['clientOptions'][_0x43043f(0x6a4)]&&(this[_0x43043f(0x253)][_0x43043f(0x2c3)]=undefined,this[_0x43043f(0x253)]['location']=undefined);}const _0x499150={};if(this[_0x43043f(0x253)]['vertexai']){!this['clientOptions'][_0x43043f(0x264)]&&!this['clientOptions'][_0x43043f(0x6a4)]&&!this[_0x43043f(0x59c)]&&(this[_0x43043f(0x253)][_0x43043f(0x264)]=_0x43043f(0x33b));const _0x43dbd0=this[_0x43043f(0x253)]['project']&&this['clientOptions'][_0x43043f(0x264)]||this[_0x43043f(0x253)]['apiKey'];if(!_0x43dbd0&&!this[_0x43043f(0x59c)])throw new Error(_0x43043f(0x4ff));const _0x1df649=_0xb31a6c[_0x43043f(0x2c3)]&&_0xb31a6c[_0x43043f(0x264)]||!!_0xb31a6c[_0x43043f(0x6a4)];if(this[_0x43043f(0x59c)]&&!_0x1df649)_0x499150[_0x43043f(0x591)]=this[_0x43043f(0x59c)],this[_0x43043f(0x253)][_0x43043f(0x2c3)]=undefined,this['clientOptions'][_0x43043f(0x264)]=undefined;else{if(this[_0x43043f(0x253)]['apiKey']||this[_0x43043f(0x253)][_0x43043f(0x264)]==='global')_0x499150[_0x43043f(0x591)]='https://aiplatform.googleapis.com/';else this[_0x43043f(0x253)]['project']&&this[_0x43043f(0x253)]['location']&&(_0x499150[_0x43043f(0x591)]='https://'+this[_0x43043f(0x253)][_0x43043f(0x264)]+'-aiplatform.googleapis.com/');}_0x499150[_0x43043f(0x2d1)]=(_0x4548e9=this[_0x43043f(0x253)]['apiVersion'])!==null&&_0x4548e9!==void 0x0?_0x4548e9:VERTEX_AI_API_DEFAULT_VERSION;}else{if(!this[_0x43043f(0x253)]['apiKey'])throw new ApiError({'message':_0x43043f(0x60a),'status':0x193});_0x499150[_0x43043f(0x2d1)]=(_0x33ef59=this[_0x43043f(0x253)][_0x43043f(0x2d1)])!==null&&_0x33ef59!==void 0x0?_0x33ef59:GOOGLE_AI_API_DEFAULT_VERSION,_0x499150[_0x43043f(0x591)]=_0x43043f(0x640);}_0x499150[_0x43043f(0x4e8)]=this[_0x43043f(0x38f)](),this['clientOptions'][_0x43043f(0x234)]=_0x499150,_0xb31a6c[_0x43043f(0x234)]&&(this[_0x43043f(0x253)]['httpOptions']=this[_0x43043f(0x2c0)](_0x499150,_0xb31a6c[_0x43043f(0x234)]));}[a0_0x254c3a(0x2b9)](){const _0xc456cb=a0_0x254c3a;var _0x4b35ab;return(_0x4b35ab=this[_0xc456cb(0x253)][_0xc456cb(0x3d4)])!==null&&_0x4b35ab!==void 0x0?_0x4b35ab:![];}[a0_0x254c3a(0x709)](){const _0x4aa714=a0_0x254c3a;return this[_0x4aa714(0x253)][_0x4aa714(0x2c3)];}[a0_0x254c3a(0x35a)](){const _0x11bce0=a0_0x254c3a;return this[_0x11bce0(0x253)]['location'];}[a0_0x254c3a(0x206)](){const _0x12a641=a0_0x254c3a;return this[_0x12a641(0x59c)];}async[a0_0x254c3a(0x3f9)](){const _0x15d8c3=a0_0x254c3a,_0x29c7d9=new Headers();return await this[_0x15d8c3(0x253)][_0x15d8c3(0x52e)][_0x15d8c3(0x267)](_0x29c7d9),_0x29c7d9;}[a0_0x254c3a(0x33c)](){const _0x47c877=a0_0x254c3a;if(this['clientOptions'][_0x47c877(0x234)]&&this[_0x47c877(0x253)][_0x47c877(0x234)][_0x47c877(0x2d1)]!==undefined)return this['clientOptions'][_0x47c877(0x234)][_0x47c877(0x2d1)];throw new Error(_0x47c877(0x52d));}[a0_0x254c3a(0x67a)](){const _0x5d8c9b=a0_0x254c3a;if(this[_0x5d8c9b(0x253)][_0x5d8c9b(0x234)]&&this[_0x5d8c9b(0x253)][_0x5d8c9b(0x234)]['baseUrl']!==undefined)return this[_0x5d8c9b(0x253)][_0x5d8c9b(0x234)]['baseUrl'];throw new Error(_0x5d8c9b(0x37d));}[a0_0x254c3a(0x632)](){const _0xa9ebb1=a0_0x254c3a;return this[_0xa9ebb1(0x257)](this[_0xa9ebb1(0x253)][_0xa9ebb1(0x234)]);}[a0_0x254c3a(0x29d)](){const _0x19ff36=a0_0x254c3a;if(this[_0x19ff36(0x253)][_0x19ff36(0x234)]&&this[_0x19ff36(0x253)]['httpOptions'][_0x19ff36(0x4e8)]!==undefined)return this[_0x19ff36(0x253)][_0x19ff36(0x234)]['headers'];else throw new Error(_0x19ff36(0x4c2));}[a0_0x254c3a(0x257)](_0xdabbd1){const _0x566d23=a0_0x254c3a;if(!_0xdabbd1||_0xdabbd1['baseUrl']===undefined||_0xdabbd1[_0x566d23(0x2d1)]===undefined)throw new Error('HTTP\x20options\x20are\x20not\x20correctly\x20set.');const _0x10baaf=_0xdabbd1[_0x566d23(0x591)][_0x566d23(0x53e)]('/')?_0xdabbd1[_0x566d23(0x591)][_0x566d23(0x26b)](0x0,-0x1):_0xdabbd1[_0x566d23(0x591)],_0x3e0c54=[_0x10baaf];return _0xdabbd1[_0x566d23(0x2d1)]&&_0xdabbd1[_0x566d23(0x2d1)]!==''&&_0x3e0c54[_0x566d23(0x417)](_0xdabbd1[_0x566d23(0x2d1)]),_0x3e0c54[_0x566d23(0x173)]('/');}[a0_0x254c3a(0x412)](){const _0x88edd0=a0_0x254c3a;return _0x88edd0(0x332)+this['clientOptions'][_0x88edd0(0x2c3)]+_0x88edd0(0x238)+this[_0x88edd0(0x253)][_0x88edd0(0x264)];}[a0_0x254c3a(0x402)](){const _0x5b6889=a0_0x254c3a;return this[_0x5b6889(0x253)][_0x5b6889(0x6a4)];}[a0_0x254c3a(0x49c)](){const _0x4cb5e8=a0_0x254c3a,_0x24f803=this[_0x4cb5e8(0x67a)](),_0x248dec=new URL(_0x24f803);return _0x248dec[_0x4cb5e8(0x47a)]=_0x248dec[_0x4cb5e8(0x47a)]==_0x4cb5e8(0x53c)?'ws':'wss',_0x248dec[_0x4cb5e8(0x248)]();}[a0_0x254c3a(0x4e0)](_0x168ef2){const _0x5a5d3a=a0_0x254c3a;if(this[_0x5a5d3a(0x253)]['httpOptions'])this['clientOptions'][_0x5a5d3a(0x234)][_0x5a5d3a(0x591)]=_0x168ef2;else throw new Error(_0x5a5d3a(0x2d6));}[a0_0x254c3a(0x596)](_0x26a1e7,_0x48d97a,_0xa4898d){const _0x591bb9=a0_0x254c3a,_0x45497f=[this[_0x591bb9(0x257)](_0x48d97a)];_0xa4898d&&_0x45497f[_0x591bb9(0x417)](this[_0x591bb9(0x412)]());_0x26a1e7!==''&&_0x45497f[_0x591bb9(0x417)](_0x26a1e7);const _0x21eef7=new URL(''+_0x45497f[_0x591bb9(0x173)]('/'));return _0x21eef7;}[a0_0x254c3a(0x5c9)](_0x239758,_0x2225ad){const _0x2c0b7e=a0_0x254c3a;if(_0x2225ad[_0x2c0b7e(0x591)]&&_0x2225ad['baseUrlResourceScope']===exports[_0x2c0b7e(0x26f)][_0x2c0b7e(0x3fe)])return![];if(this[_0x2c0b7e(0x253)][_0x2c0b7e(0x6a4)])return![];if(!this[_0x2c0b7e(0x253)][_0x2c0b7e(0x3d4)])return![];if(_0x239758[_0x2c0b7e(0x5e8)]['startsWith'](_0x2c0b7e(0x332)))return![];if(_0x239758[_0x2c0b7e(0x2ca)]===_0x2c0b7e(0x525)&&_0x239758['path'][_0x2c0b7e(0x320)](_0x2c0b7e(0x2ed)))return![];return!![];}async[a0_0x254c3a(0x610)](_0x951d6){const _0x596141=a0_0x254c3a;let _0x536be3=this[_0x596141(0x253)][_0x596141(0x234)];_0x951d6['httpOptions']&&(_0x536be3=this['patchHttpOptions'](this[_0x596141(0x253)][_0x596141(0x234)],_0x951d6[_0x596141(0x234)]));const _0xbba8ff=this[_0x596141(0x5c9)](_0x951d6,_0x536be3),_0x2c1799=this['constructUrl'](_0x951d6[_0x596141(0x5e8)],_0x536be3,_0xbba8ff);if(_0x951d6[_0x596141(0x339)])for(const [_0x54ec47,_0x2f7343]of Object[_0x596141(0x1ae)](_0x951d6[_0x596141(0x339)])){_0x2c1799[_0x596141(0x2fb)]['append'](_0x54ec47,String(_0x2f7343));}let _0x42fa5f={};if(_0x951d6[_0x596141(0x2ca)]===_0x596141(0x525)){if(_0x951d6[_0x596141(0x553)]&&_0x951d6['body']!=='{}')throw new Error(_0x596141(0x310));}else _0x42fa5f[_0x596141(0x553)]=_0x951d6[_0x596141(0x553)];return _0x42fa5f=await this[_0x596141(0x6ea)](_0x42fa5f,_0x536be3,_0x2c1799[_0x596141(0x248)](),_0x951d6[_0x596141(0x546)]),this[_0x596141(0x697)](_0x2c1799,_0x42fa5f,_0x951d6[_0x596141(0x2ca)]);}['patchHttpOptions'](_0x49f0f6,_0x36cf75){const _0x5b09a2=a0_0x254c3a,_0x246f28=JSON['parse'](JSON['stringify'](_0x49f0f6));for(const [_0x33e450,_0x2d037e]of Object['entries'](_0x36cf75)){if(typeof _0x2d037e===_0x5b09a2(0x46a))_0x246f28[_0x33e450]=Object[_0x5b09a2(0x64e)](Object[_0x5b09a2(0x64e)]({},_0x246f28[_0x33e450]),_0x2d037e);else _0x2d037e!==undefined&&(_0x246f28[_0x33e450]=_0x2d037e);}return _0x246f28;}async[a0_0x254c3a(0x4d1)](_0x993cbd){const _0x25472d=a0_0x254c3a;let _0x337b05=this[_0x25472d(0x253)][_0x25472d(0x234)];_0x993cbd['httpOptions']&&(_0x337b05=this[_0x25472d(0x2c0)](this['clientOptions'][_0x25472d(0x234)],_0x993cbd[_0x25472d(0x234)]));const _0x1a11e1=this['shouldPrependVertexProjectPath'](_0x993cbd,_0x337b05),_0x469664=this[_0x25472d(0x596)](_0x993cbd[_0x25472d(0x5e8)],_0x337b05,_0x1a11e1);(!_0x469664[_0x25472d(0x2fb)][_0x25472d(0x399)](_0x25472d(0x641))||_0x469664[_0x25472d(0x2fb)][_0x25472d(0x296)](_0x25472d(0x641))!==_0x25472d(0x312))&&_0x469664[_0x25472d(0x2fb)][_0x25472d(0x4f2)](_0x25472d(0x641),_0x25472d(0x312));let _0x52dac7={};return _0x52dac7[_0x25472d(0x553)]=_0x993cbd[_0x25472d(0x553)],_0x52dac7=await this[_0x25472d(0x6ea)](_0x52dac7,_0x337b05,_0x469664[_0x25472d(0x248)](),_0x993cbd['abortSignal']),this[_0x25472d(0x721)](_0x469664,_0x52dac7,_0x993cbd[_0x25472d(0x2ca)]);}async['includeExtraHttpOptionsToRequestInit'](_0x2eedcd,_0x53ea4c,_0x4d357a,_0x3f6a74){const _0x402c6f=a0_0x254c3a;if(_0x53ea4c&&_0x53ea4c['timeout']||_0x3f6a74){const _0x55f58c=new AbortController(),_0x535995=_0x55f58c['signal'];if(_0x53ea4c['timeout']&&(_0x53ea4c===null||_0x53ea4c===void 0x0?void 0x0:_0x53ea4c[_0x402c6f(0x4a1)])>0x0){const _0x2649cf=setTimeout(()=>_0x55f58c[_0x402c6f(0x4bc)](),_0x53ea4c[_0x402c6f(0x4a1)]);_0x2649cf&&typeof _0x2649cf[_0x402c6f(0x4a0)]===_0x402c6f(0x304)&&_0x2649cf['unref']();}_0x3f6a74&&_0x3f6a74[_0x402c6f(0x392)]('abort',()=>{const _0x6233a7=_0x402c6f;_0x55f58c[_0x6233a7(0x4bc)]();}),_0x2eedcd[_0x402c6f(0x17e)]=_0x535995;}return _0x53ea4c&&_0x53ea4c[_0x402c6f(0x55c)]!==null&&includeExtraBodyToRequestInit(_0x2eedcd,_0x53ea4c[_0x402c6f(0x55c)]),_0x2eedcd['headers']=await this[_0x402c6f(0x325)](_0x53ea4c,_0x4d357a),_0x2eedcd;}async[a0_0x254c3a(0x697)](_0x49039d,_0x385676,_0x5e4994){const _0x434c6e=a0_0x254c3a;return this[_0x434c6e(0x184)](_0x49039d[_0x434c6e(0x248)](),Object[_0x434c6e(0x64e)](Object[_0x434c6e(0x64e)]({},_0x385676),{'method':_0x5e4994}))[_0x434c6e(0x3a5)](async _0x2ab280=>{return await throwErrorIfNotOK(_0x2ab280),new HttpResponse(_0x2ab280);})[_0x434c6e(0x4ba)](_0xbe4a2=>{if(_0xbe4a2 instanceof Error)throw _0xbe4a2;else throw new Error(JSON['stringify'](_0xbe4a2));});}async['streamApiCall'](_0x4d5b70,_0x3d0853,_0x4065a1){const _0x354fb0=a0_0x254c3a;return this[_0x354fb0(0x184)](_0x4d5b70[_0x354fb0(0x248)](),Object['assign'](Object['assign']({},_0x3d0853),{'method':_0x4065a1}))[_0x354fb0(0x3a5)](async _0x1898c1=>{const _0x15a7bf=_0x354fb0;return await throwErrorIfNotOK(_0x1898c1),this[_0x15a7bf(0x2e7)](_0x1898c1);})[_0x354fb0(0x4ba)](_0x31c7f6=>{const _0x57168a=_0x354fb0;if(_0x31c7f6 instanceof Error)throw _0x31c7f6;else throw new Error(JSON[_0x57168a(0x59a)](_0x31c7f6));});}[a0_0x254c3a(0x2e7)](_0x4d79ef){return __asyncGenerator(this,arguments,function*_0x2a35f2(){const _0x51d326=a0_0x3530;var _0x30903f;const _0x5ba9=(_0x30903f=_0x4d79ef===null||_0x4d79ef===void 0x0?void 0x0:_0x4d79ef[_0x51d326(0x553)])===null||_0x30903f===void 0x0?void 0x0:_0x30903f[_0x51d326(0x3aa)](),_0x3fb557=new TextDecoder(_0x51d326(0x57d));if(!_0x5ba9)throw new Error('Response\x20body\x20is\x20empty');try{let _0x4c1125='';const _0x1ece09=_0x51d326(0x2c7),_0x1af5fe=['\x0a\x0a','\x0d\x0d',_0x51d326(0x5d2)];while(!![]){const {done:_0x3c82a9,value:_0x169fb2}=yield __await(_0x5ba9[_0x51d326(0x51b)]());if(_0x3c82a9){if(_0x4c1125[_0x51d326(0x174)]()['length']>0x0)throw new Error(_0x51d326(0x22a));break;}const _0x507560=_0x3fb557['decode'](_0x169fb2,{'stream':!![]});try{const _0x1dbda5=JSON['parse'](_0x507560);if(_0x51d326(0x20b)in _0x1dbda5){const _0x3e4380=JSON[_0x51d326(0x5c1)](JSON['stringify'](_0x1dbda5[_0x51d326(0x20b)])),_0x3a7aaf=_0x3e4380[_0x51d326(0x560)],_0x28ccc1=_0x3e4380[_0x51d326(0x1d4)],_0x1fe1a7=_0x51d326(0x6d2)+_0x3a7aaf+'.\x20'+JSON['stringify'](_0x1dbda5);if(_0x28ccc1>=0x190&&_0x28ccc1<0x258){const _0x5375b6=new ApiError({'message':_0x1fe1a7,'status':_0x28ccc1});throw _0x5375b6;}}}catch(_0x4d9982){const _0x376617=_0x4d9982;if(_0x376617[_0x51d326(0x68e)]===_0x51d326(0x3a9))throw _0x4d9982;}_0x4c1125+=_0x507560;let _0x4fec4a=-0x1,_0x1ada34=0x0;while(!![]){_0x4fec4a=-0x1,_0x1ada34=0x0;for(const _0x2761f7 of _0x1af5fe){const _0x157c28=_0x4c1125[_0x51d326(0x4f5)](_0x2761f7);_0x157c28!==-0x1&&(_0x4fec4a===-0x1||_0x157c28<_0x4fec4a)&&(_0x4fec4a=_0x157c28,_0x1ada34=_0x2761f7[_0x51d326(0x3d2)]);}if(_0x4fec4a===-0x1)break;const _0x34e9ef=_0x4c1125[_0x51d326(0x705)](0x0,_0x4fec4a);_0x4c1125=_0x4c1125[_0x51d326(0x705)](_0x4fec4a+_0x1ada34);const _0x1809c0=_0x34e9ef[_0x51d326(0x174)]();if(_0x1809c0['startsWith'](_0x1ece09)){const _0x342cb2=_0x1809c0[_0x51d326(0x705)](_0x1ece09[_0x51d326(0x3d2)])[_0x51d326(0x174)]();try{const _0x175acb=new Response(_0x342cb2,{'headers':_0x4d79ef===null||_0x4d79ef===void 0x0?void 0x0:_0x4d79ef[_0x51d326(0x4e8)],'status':_0x4d79ef===null||_0x4d79ef===void 0x0?void 0x0:_0x4d79ef[_0x51d326(0x560)],'statusText':_0x4d79ef===null||_0x4d79ef===void 0x0?void 0x0:_0x4d79ef['statusText']});yield yield __await(new HttpResponse(_0x175acb));}catch(_0x5d17be){throw new Error(_0x51d326(0x1be)+_0x342cb2+'.\x20'+_0x5d17be);}}}}}finally{_0x5ba9[_0x51d326(0x6aa)]();}});}async[a0_0x254c3a(0x184)](_0x362eb3,_0x6a13dd){const _0xe2f8da=a0_0x254c3a;return fetch(_0x362eb3,_0x6a13dd)[_0xe2f8da(0x4ba)](_0x42557c=>{const _0x49e426=_0xe2f8da;throw new Error(_0x49e426(0x531)+_0x42557c+_0x49e426(0x37b));});}['getDefaultHeaders'](){const _0x1daad7=a0_0x254c3a,_0x304606={},_0x4936fb=LIBRARY_LABEL+'\x20'+this[_0x1daad7(0x253)]['userAgentExtra'];return _0x304606[USER_AGENT_HEADER]=_0x4936fb,_0x304606[GOOGLE_API_CLIENT_HEADER]=_0x4936fb,_0x304606[CONTENT_TYPE_HEADER]=_0x1daad7(0x3a7),_0x304606;}async['getHeadersInternal'](_0x404bee,_0x1ac0ae){const _0x18ebb1=a0_0x254c3a,_0x410bd8=new Headers();if(_0x404bee&&_0x404bee['headers']){for(const [_0x2d6fa5,_0x58da46]of Object[_0x18ebb1(0x1ae)](_0x404bee[_0x18ebb1(0x4e8)])){_0x410bd8['append'](_0x2d6fa5,_0x58da46);}_0x404bee[_0x18ebb1(0x4a1)]&&_0x404bee[_0x18ebb1(0x4a1)]>0x0&&_0x410bd8[_0x18ebb1(0x30e)](SERVER_TIMEOUT_HEADER,String(Math[_0x18ebb1(0x2a4)](_0x404bee[_0x18ebb1(0x4a1)]/0x3e8)));}return await this['clientOptions'][_0x18ebb1(0x52e)][_0x18ebb1(0x267)](_0x410bd8,_0x1ac0ae),_0x410bd8;}[a0_0x254c3a(0x5a5)](_0x3cf410){const _0x365399=a0_0x254c3a;var _0x1fe18b;let _0x3b2f21='';return typeof _0x3cf410==='string'&&(_0x3b2f21=_0x3cf410[_0x365399(0x19f)](/[/\\]+$/,''),_0x3b2f21=(_0x1fe18b=_0x3b2f21[_0x365399(0x406)](/[/\\]/)[_0x365399(0x690)]())!==null&&_0x1fe18b!==void 0x0?_0x1fe18b:''),_0x3b2f21;}async[a0_0x254c3a(0x6ce)](_0xb4a37d,_0x2ae58b){const _0x1d9e6f=a0_0x254c3a;var _0x3e04a0;const _0x3916c3={};_0x2ae58b!=null&&(_0x3916c3[_0x1d9e6f(0x38c)]=_0x2ae58b[_0x1d9e6f(0x38c)],_0x3916c3['name']=_0x2ae58b[_0x1d9e6f(0x68e)],_0x3916c3['displayName']=_0x2ae58b[_0x1d9e6f(0x462)]);_0x3916c3[_0x1d9e6f(0x68e)]&&!_0x3916c3['name'][_0x1d9e6f(0x320)](_0x1d9e6f(0x1e0))&&(_0x3916c3[_0x1d9e6f(0x68e)]=_0x1d9e6f(0x1e0)+_0x3916c3[_0x1d9e6f(0x68e)]);const _0x46f5e3=this['clientOptions']['uploader'],_0x2dec9b=await _0x46f5e3[_0x1d9e6f(0x5d7)](_0xb4a37d);_0x3916c3['sizeBytes']=String(_0x2dec9b[_0x1d9e6f(0x6d1)]);const _0x89d501=(_0x3e04a0=_0x2ae58b===null||_0x2ae58b===void 0x0?void 0x0:_0x2ae58b[_0x1d9e6f(0x38c)])!==null&&_0x3e04a0!==void 0x0?_0x3e04a0:_0x2dec9b['type'];if(_0x89d501===undefined||_0x89d501==='')throw new Error(_0x1d9e6f(0x1f7));_0x3916c3['mimeType']=_0x89d501;const _0x5da0e8={'file':_0x3916c3},_0x562fc3=this[_0x1d9e6f(0x5a5)](_0xb4a37d),_0x54232b=formatMap(_0x1d9e6f(0x6e2),_0x5da0e8[_0x1d9e6f(0x1fb)]),_0x1bea0f=await this['fetchUploadUrl'](_0x54232b,_0x3916c3[_0x1d9e6f(0x2a0)],_0x3916c3[_0x1d9e6f(0x38c)],_0x562fc3,_0x5da0e8,_0x2ae58b===null||_0x2ae58b===void 0x0?void 0x0:_0x2ae58b[_0x1d9e6f(0x234)]);return _0x46f5e3['upload'](_0xb4a37d,_0x1bea0f,this);}async[a0_0x254c3a(0x6f3)](_0x4769f6,_0x41a767,_0x542653){const _0xe07f15=a0_0x254c3a;var _0x5860ed;const _0x2b7815=this[_0xe07f15(0x253)]['uploader'],_0x59b82a=await _0x2b7815[_0xe07f15(0x5d7)](_0x41a767),_0x57ac4b=String(_0x59b82a['size']),_0x132624=(_0x5860ed=_0x542653===null||_0x542653===void 0x0?void 0x0:_0x542653[_0xe07f15(0x38c)])!==null&&_0x5860ed!==void 0x0?_0x5860ed:_0x59b82a[_0xe07f15(0x58d)];if(_0x132624===undefined||_0x132624==='')throw new Error(_0xe07f15(0x1f7));const _0x4fa897=_0xe07f15(0x3d8)+_0x4769f6+_0xe07f15(0x63f),_0xf53c07=this['getFileName'](_0x41a767),_0x2e2b30={};_0x542653!=null&&uploadToFileSearchStoreConfigToMldev(_0x542653,_0x2e2b30);const _0x86d84=await this[_0xe07f15(0x595)](_0x4fa897,_0x57ac4b,_0x132624,_0xf53c07,_0x2e2b30,_0x542653===null||_0x542653===void 0x0?void 0x0:_0x542653[_0xe07f15(0x234)]);return _0x2b7815[_0xe07f15(0x636)](_0x41a767,_0x86d84,this);}async['downloadFile'](_0x33a2bf){const _0x44c2c9=a0_0x254c3a,_0x2c432b=this[_0x44c2c9(0x253)][_0x44c2c9(0x3df)];await _0x2c432b['download'](_0x33a2bf,this);}async[a0_0x254c3a(0x595)](_0x29e249,_0x108462,_0x283379,_0x18cd0a,_0x47b044,_0x30f845){const _0x125af5=a0_0x254c3a;var _0x550ffe;let _0x198f55={};_0x30f845?_0x198f55=_0x30f845:_0x198f55={'apiVersion':'','headers':Object[_0x125af5(0x64e)]({'Content-Type':_0x125af5(0x3a7),'X-Goog-Upload-Protocol':'resumable','X-Goog-Upload-Command':_0x125af5(0x643),'X-Goog-Upload-Header-Content-Length':''+_0x108462,'X-Goog-Upload-Header-Content-Type':''+_0x283379},_0x18cd0a?{'X-Goog-Upload-File-Name':_0x18cd0a}:{})};const _0x3cd4f2=await this[_0x125af5(0x610)]({'path':_0x29e249,'body':JSON[_0x125af5(0x59a)](_0x47b044),'httpMethod':'POST','httpOptions':_0x198f55});if(!_0x3cd4f2||!(_0x3cd4f2===null||_0x3cd4f2===void 0x0?void 0x0:_0x3cd4f2[_0x125af5(0x4e8)]))throw new Error('Server\x20did\x20not\x20return\x20an\x20HttpResponse\x20or\x20the\x20returned\x20HttpResponse\x20did\x20not\x20have\x20headers.');const _0x140bd3=(_0x550ffe=_0x3cd4f2===null||_0x3cd4f2===void 0x0?void 0x0:_0x3cd4f2['headers'])===null||_0x550ffe===void 0x0?void 0x0:_0x550ffe[_0x125af5(0x668)];if(_0x140bd3===undefined)throw new Error(_0x125af5(0x308));return _0x140bd3;}}async function throwErrorIfNotOK(_0x53e95b){const _0x3b855b=a0_0x254c3a;var _0x2fa22b;if(_0x53e95b===undefined)throw new Error(_0x3b855b(0x357));if(!_0x53e95b['ok']){const _0x193059=_0x53e95b['status'];let _0x465e8f;((_0x2fa22b=_0x53e95b[_0x3b855b(0x4e8)][_0x3b855b(0x296)]('content-type'))===null||_0x2fa22b===void 0x0?void 0x0:_0x2fa22b[_0x3b855b(0x566)](_0x3b855b(0x3a7)))?_0x465e8f=await _0x53e95b[_0x3b855b(0x288)]():_0x465e8f={'error':{'message':await _0x53e95b['text'](),'code':_0x53e95b[_0x3b855b(0x560)],'status':_0x53e95b[_0x3b855b(0x245)]}};const _0x23fadf=JSON[_0x3b855b(0x59a)](_0x465e8f);if(_0x193059>=0x190&&_0x193059<0x258){const _0x458a35=new ApiError({'message':_0x23fadf,'status':_0x193059});throw _0x458a35;}throw new Error(_0x23fadf);}}function includeExtraBodyToRequestInit(_0x55e906,_0x423e59){const _0x1d7cad=a0_0x254c3a;if(!_0x423e59||Object[_0x1d7cad(0x421)](_0x423e59)[_0x1d7cad(0x3d2)]===0x0)return;if(_0x55e906[_0x1d7cad(0x553)]instanceof Blob){console[_0x1d7cad(0x69c)](_0x1d7cad(0x2b3));return;}let _0x3e93fa={};if(typeof _0x55e906[_0x1d7cad(0x553)]===_0x1d7cad(0x4ae)&&_0x55e906[_0x1d7cad(0x553)][_0x1d7cad(0x3d2)]>0x0)try{const _0x32589a=JSON[_0x1d7cad(0x5c1)](_0x55e906[_0x1d7cad(0x553)]);if(typeof _0x32589a==='object'&&_0x32589a!==null&&!Array['isArray'](_0x32589a))_0x3e93fa=_0x32589a;else{console['warn'](_0x1d7cad(0x42f));return;}}catch(_0x4623ad){console[_0x1d7cad(0x69c)](_0x1d7cad(0x532));return;}function _0x311c20(_0x345691,_0x4b9d2c){const _0x5b652f=_0x1d7cad,_0x5bc777=Object[_0x5b652f(0x64e)]({},_0x345691);for(const _0x553fda in _0x4b9d2c){if(Object[_0x5b652f(0x6b5)][_0x5b652f(0x54e)]['call'](_0x4b9d2c,_0x553fda)){const _0x3d69df=_0x4b9d2c[_0x553fda],_0xa4202=_0x5bc777[_0x553fda];_0x3d69df&&typeof _0x3d69df==='object'&&!Array[_0x5b652f(0x192)](_0x3d69df)&&_0xa4202&&typeof _0xa4202===_0x5b652f(0x46a)&&!Array['isArray'](_0xa4202)?_0x5bc777[_0x553fda]=_0x311c20(_0xa4202,_0x3d69df):(_0xa4202&&_0x3d69df&&typeof _0xa4202!==typeof _0x3d69df&&console['warn']('includeExtraBodyToRequestInit:deepMerge:\x20Type\x20mismatch\x20for\x20key\x20\x22'+_0x553fda+_0x5b652f(0x6d7)+typeof _0xa4202+_0x5b652f(0x3c4)+typeof _0x3d69df+_0x5b652f(0x429)),_0x5bc777[_0x553fda]=_0x3d69df);}}return _0x5bc777;}const _0x172ced=_0x311c20(_0x3e93fa,_0x423e59);_0x55e906[_0x1d7cad(0x553)]=JSON['stringify'](_0x172ced);}/**
77
+ * @license
78
+ * Copyright 2025 Google LLC
79
+ * SPDX-License-Identifier: Apache-2.0
80
+ */
81
+ function crossError(){const _0x5373cb=a0_0x254c3a;return new Error(_0x5373cb(0x648));}/**
82
+ * @license
83
+ * Copyright 2025 Google LLC
84
+ * SPDX-License-Identifier: Apache-2.0
85
+ */
86
+ class CrossDownloader{async[a0_0x254c3a(0x30c)](_0x560083,_0x789ffc){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=a0_0x254c3a(0x29e);class CrossUploader{async[a0_0x254c3a(0x2dc)](_0x13ef2d,_0x842fe5,_0xf805bf){if(typeof _0x13ef2d==='string')throw crossError();else return uploadBlob(_0x13ef2d,_0x842fe5,_0xf805bf);}async[a0_0x254c3a(0x636)](_0x35d75e,_0x4d28e7,_0x4b4e51){const _0x5ca1c3=a0_0x254c3a;if(typeof _0x35d75e===_0x5ca1c3(0x4ae))throw crossError();else return uploadBlobToFileSearchStore(_0x35d75e,_0x4d28e7,_0x4b4e51);}async[a0_0x254c3a(0x5d7)](_0x7d2bc8){const _0x1b0c66=a0_0x254c3a;if(typeof _0x7d2bc8===_0x1b0c66(0x4ae))throw crossError();else return getBlobStat(_0x7d2bc8);}}async function uploadBlob(_0x4b6c1a,_0x508fbb,_0xbf60a){const _0x36dd1c=a0_0x254c3a;var _0x33b119;const _0x11fa42=await uploadBlobInternal(_0x4b6c1a,_0x508fbb,_0xbf60a),_0x41b4d5=await(_0x11fa42===null||_0x11fa42===void 0x0?void 0x0:_0x11fa42[_0x36dd1c(0x288)]());if(((_0x33b119=_0x11fa42===null||_0x11fa42===void 0x0?void 0x0:_0x11fa42[_0x36dd1c(0x4e8)])===null||_0x33b119===void 0x0?void 0x0:_0x33b119[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x36dd1c(0x370))throw new Error(_0x36dd1c(0x29c));return _0x41b4d5[_0x36dd1c(0x678)];}async function uploadBlobToFileSearchStore(_0x5dc1cf,_0x3b4930,_0x423cc4){const _0x459671=a0_0x254c3a;var _0x136fbf;const _0x5f268a=await uploadBlobInternal(_0x5dc1cf,_0x3b4930,_0x423cc4),_0x529b03=await(_0x5f268a===null||_0x5f268a===void 0x0?void 0x0:_0x5f268a['json']());if(((_0x136fbf=_0x5f268a===null||_0x5f268a===void 0x0?void 0x0:_0x5f268a[_0x459671(0x4e8)])===null||_0x136fbf===void 0x0?void 0x0:_0x136fbf[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!=='final')throw new Error(_0x459671(0x29c));const _0x20e7d0=uploadToFileSearchStoreOperationFromMldev(_0x529b03),_0x517ba9=new UploadToFileSearchStoreOperation();return Object[_0x459671(0x64e)](_0x517ba9,_0x20e7d0),_0x517ba9;}async function uploadBlobInternal(_0x3ee041,_0x29d028,_0x34a1f2){const _0x3c3a66=a0_0x254c3a;var _0x25ca18,_0x385dcc;let _0x430071=0x0,_0x2ebe10=0x0,_0x521595=new HttpResponse(new Response()),_0x1bb3a8='upload';_0x430071=_0x3ee041[_0x3c3a66(0x6d1)];while(_0x2ebe10<_0x430071){const _0xffd8ec=Math[_0x3c3a66(0x2d2)](MAX_CHUNK_SIZE,_0x430071-_0x2ebe10),_0x23935e=_0x3ee041[_0x3c3a66(0x26b)](_0x2ebe10,_0x2ebe10+_0xffd8ec);_0x2ebe10+_0xffd8ec>=_0x430071&&(_0x1bb3a8+=',\x20finalize');let _0x3bd524=0x0,_0xde54cf=INITIAL_RETRY_DELAY_MS;while(_0x3bd524<MAX_RETRY_COUNT){_0x521595=await _0x34a1f2['request']({'path':'','body':_0x23935e,'httpMethod':'POST','httpOptions':{'apiVersion':'','baseUrl':_0x29d028,'headers':{'X-Goog-Upload-Command':_0x1bb3a8,'X-Goog-Upload-Offset':String(_0x2ebe10),'Content-Length':String(_0xffd8ec)}}});if((_0x25ca18=_0x521595===null||_0x521595===void 0x0?void 0x0:_0x521595[_0x3c3a66(0x4e8)])===null||_0x25ca18===void 0x0?void 0x0:_0x25ca18[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x3bd524++,await sleep$1(_0xde54cf),_0xde54cf=_0xde54cf*DELAY_MULTIPLIER;}_0x2ebe10+=_0xffd8ec;if(((_0x385dcc=_0x521595===null||_0x521595===void 0x0?void 0x0:_0x521595[_0x3c3a66(0x4e8)])===null||_0x385dcc===void 0x0?void 0x0:_0x385dcc[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x3c3a66(0x271))break;if(_0x430071<=_0x2ebe10)throw new Error(_0x3c3a66(0x1bb));}return _0x521595;}async function getBlobStat(_0x28c678){const _0x355a0e=a0_0x254c3a,_0x4950e2={'size':_0x28c678[_0x355a0e(0x6d1)],'type':_0x28c678['type']};return _0x4950e2;}function sleep$1(_0x1eb6bc){return new Promise(_0x522eb4=>setTimeout(_0x522eb4,_0x1eb6bc));}/**
87
+ * @license
88
+ * Copyright 2025 Google LLC
89
+ * SPDX-License-Identifier: Apache-2.0
90
+ */
91
+ class CrossWebSocketFactory{[a0_0x254c3a(0x1b6)](_0x196949,_0x29609e,_0x5a9a46){throw crossError();}}/**
92
+ * @license
93
+ * Copyright 2025 Google LLC
94
+ * SPDX-License-Identifier: Apache-2.0
95
+ */
96
+ function createFileParametersToMldev(_0x1cf998){const _0x57cc70=a0_0x254c3a,_0x5244f3={},_0x1bcb66=getValueByPath(_0x1cf998,['file']);return _0x1bcb66!=null&&setValueByPath(_0x5244f3,[_0x57cc70(0x678)],_0x1bcb66),_0x5244f3;}function createFileResponseFromMldev(_0x3c4289){const _0x3dc612=a0_0x254c3a,_0x576097={},_0xfb760b=getValueByPath(_0x3c4289,[_0x3dc612(0x1ab)]);return _0xfb760b!=null&&setValueByPath(_0x576097,[_0x3dc612(0x1ab)],_0xfb760b),_0x576097;}function deleteFileParametersToMldev(_0x9d6b37){const _0x3d7672=a0_0x254c3a,_0x13d7b9={},_0x46b41f=getValueByPath(_0x9d6b37,[_0x3d7672(0x68e)]);return _0x46b41f!=null&&setValueByPath(_0x13d7b9,[_0x3d7672(0x1fb),_0x3d7672(0x678)],tFileName(_0x46b41f)),_0x13d7b9;}function deleteFileResponseFromMldev(_0x2068b4){const _0x57af2b=a0_0x254c3a,_0x26c487={},_0x3fa665=getValueByPath(_0x2068b4,[_0x57af2b(0x1ab)]);return _0x3fa665!=null&&setValueByPath(_0x26c487,[_0x57af2b(0x1ab)],_0x3fa665),_0x26c487;}function getFileParametersToMldev(_0x38e8d4){const _0x5de774=a0_0x254c3a,_0x25f9e7={},_0x4f2dd6=getValueByPath(_0x38e8d4,[_0x5de774(0x68e)]);return _0x4f2dd6!=null&&setValueByPath(_0x25f9e7,[_0x5de774(0x1fb),_0x5de774(0x678)],tFileName(_0x4f2dd6)),_0x25f9e7;}function internalRegisterFilesParametersToMldev(_0x2ff2df){const _0x4efc92=a0_0x254c3a,_0xe4ca45={},_0x2cbf2b=getValueByPath(_0x2ff2df,[_0x4efc92(0x483)]);return _0x2cbf2b!=null&&setValueByPath(_0xe4ca45,['uris'],_0x2cbf2b),_0xe4ca45;}function listFilesConfigToMldev(_0x3a2357,_0x3ccc4b){const _0x17c52a=a0_0x254c3a,_0x1181df={},_0x4e55a8=getValueByPath(_0x3a2357,['pageSize']);_0x3ccc4b!==undefined&&_0x4e55a8!=null&&setValueByPath(_0x3ccc4b,[_0x17c52a(0x32f),_0x17c52a(0x2a3)],_0x4e55a8);const _0x2a55ac=getValueByPath(_0x3a2357,[_0x17c52a(0x6d9)]);return _0x3ccc4b!==undefined&&_0x2a55ac!=null&&setValueByPath(_0x3ccc4b,['_query',_0x17c52a(0x6d9)],_0x2a55ac),_0x1181df;}function listFilesParametersToMldev(_0x5a888a){const _0xe7893=a0_0x254c3a,_0x3a79b3={},_0x1176a3=getValueByPath(_0x5a888a,[_0xe7893(0x563)]);return _0x1176a3!=null&&listFilesConfigToMldev(_0x1176a3,_0x3a79b3),_0x3a79b3;}function listFilesResponseFromMldev(_0x4598bf){const _0x5128c3=a0_0x254c3a,_0xd87f4c={},_0x47efe6=getValueByPath(_0x4598bf,[_0x5128c3(0x1ab)]);_0x47efe6!=null&&setValueByPath(_0xd87f4c,[_0x5128c3(0x1ab)],_0x47efe6);const _0x384164=getValueByPath(_0x4598bf,['nextPageToken']);_0x384164!=null&&setValueByPath(_0xd87f4c,[_0x5128c3(0x4e2)],_0x384164);const _0x59ed86=getValueByPath(_0x4598bf,[_0x5128c3(0x3c1)]);if(_0x59ed86!=null){let _0x54fd8e=_0x59ed86;Array['isArray'](_0x54fd8e)&&(_0x54fd8e=_0x54fd8e[_0x5128c3(0x221)](_0x208f35=>{return _0x208f35;})),setValueByPath(_0xd87f4c,[_0x5128c3(0x3c1)],_0x54fd8e);}return _0xd87f4c;}function registerFilesResponseFromMldev(_0x462d7b){const _0x4531c3=a0_0x254c3a,_0x3f49df={},_0x29528c=getValueByPath(_0x462d7b,[_0x4531c3(0x1ab)]);_0x29528c!=null&&setValueByPath(_0x3f49df,[_0x4531c3(0x1ab)],_0x29528c);const _0x7dad41=getValueByPath(_0x462d7b,[_0x4531c3(0x3c1)]);if(_0x7dad41!=null){let _0x4e5776=_0x7dad41;Array[_0x4531c3(0x192)](_0x4e5776)&&(_0x4e5776=_0x4e5776['map'](_0x1b7ece=>{return _0x1b7ece;})),setValueByPath(_0x3f49df,[_0x4531c3(0x3c1)],_0x4e5776);}return _0x3f49df;}/**
97
+ * @license
98
+ * Copyright 2025 Google LLC
99
+ * SPDX-License-Identifier: Apache-2.0
100
+ */
101
+ class Files extends BaseModule{constructor(_0xdb9b8c){const _0x22baff=a0_0x254c3a;super(),this[_0x22baff(0x6cf)]=_0xdb9b8c,this[_0x22baff(0x488)]=async(_0x5df635={})=>{const _0x26f187=_0x22baff;return new Pager(exports['PagedItem'][_0x26f187(0x46d)],_0x32463f=>this[_0x26f187(0x475)](_0x32463f),await this[_0x26f187(0x475)](_0x5df635),_0x5df635);};}async[a0_0x254c3a(0x2dc)](_0x5ed4e9){const _0x22e154=a0_0x254c3a;if(this[_0x22e154(0x6cf)][_0x22e154(0x2b9)]())throw new Error(_0x22e154(0x620));return this['apiClient'][_0x22e154(0x6ce)](_0x5ed4e9[_0x22e154(0x678)],_0x5ed4e9[_0x22e154(0x563)])[_0x22e154(0x3a5)](_0x40cabb=>{return _0x40cabb;});}async['download'](_0x3067ca){const _0x2fb411=a0_0x254c3a;await this[_0x2fb411(0x6cf)][_0x2fb411(0x573)](_0x3067ca);}async[a0_0x254c3a(0x717)](_0x259cfb){throw new Error('registerFiles\x20is\x20only\x20supported\x20in\x20Node.js\x20environments.');}async[a0_0x254c3a(0x687)](_0x357f85){return this['registerFilesInternal'](_0x357f85);}async[a0_0x254c3a(0x475)](_0x2b339e){const _0x4a8fca=a0_0x254c3a;var _0x8d398e,_0xb58e90;let _0x3a46c5,_0x377bc1='',_0x13d074={};if(this['apiClient'][_0x4a8fca(0x2b9)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x419cf1=listFilesParametersToMldev(_0x2b339e);return _0x377bc1=formatMap(_0x4a8fca(0x3c1),_0x419cf1[_0x4a8fca(0x1fb)]),_0x13d074=_0x419cf1[_0x4a8fca(0x32f)],delete _0x419cf1[_0x4a8fca(0x1fb)],delete _0x419cf1['_query'],_0x3a46c5=this['apiClient']['request']({'path':_0x377bc1,'queryParams':_0x13d074,'body':JSON[_0x4a8fca(0x59a)](_0x419cf1),'httpMethod':_0x4a8fca(0x525),'httpOptions':(_0x8d398e=_0x2b339e['config'])===null||_0x8d398e===void 0x0?void 0x0:_0x8d398e[_0x4a8fca(0x234)],'abortSignal':(_0xb58e90=_0x2b339e['config'])===null||_0xb58e90===void 0x0?void 0x0:_0xb58e90[_0x4a8fca(0x546)]})[_0x4a8fca(0x3a5)](_0x4d3a68=>{const _0x4e2d73=_0x4a8fca;return _0x4d3a68['json']()[_0x4e2d73(0x3a5)](_0x57ad4c=>{const _0x157225=_0x4e2d73,_0x440b76=_0x57ad4c;return _0x440b76[_0x157225(0x1ab)]={'headers':_0x4d3a68[_0x157225(0x4e8)]},_0x440b76;});}),_0x3a46c5[_0x4a8fca(0x3a5)](_0x54f0eb=>{const _0x34fb5e=_0x4a8fca,_0x2dc03a=listFilesResponseFromMldev(_0x54f0eb),_0x532e1f=new ListFilesResponse();return Object[_0x34fb5e(0x64e)](_0x532e1f,_0x2dc03a),_0x532e1f;});}}async[a0_0x254c3a(0x603)](_0x11cf71){const _0xcdfe09=a0_0x254c3a;var _0x5efe5f,_0x306514;let _0x415b0a,_0x52a040='',_0x1b85ef={};if(this[_0xcdfe09(0x6cf)][_0xcdfe09(0x2b9)]())throw new Error(_0xcdfe09(0x367));else{const _0x5047d3=createFileParametersToMldev(_0x11cf71);return _0x52a040=formatMap(_0xcdfe09(0x6e2),_0x5047d3[_0xcdfe09(0x1fb)]),_0x1b85ef=_0x5047d3[_0xcdfe09(0x32f)],delete _0x5047d3[_0xcdfe09(0x1fb)],delete _0x5047d3['_query'],_0x415b0a=this[_0xcdfe09(0x6cf)][_0xcdfe09(0x610)]({'path':_0x52a040,'queryParams':_0x1b85ef,'body':JSON['stringify'](_0x5047d3),'httpMethod':_0xcdfe09(0x5f7),'httpOptions':(_0x5efe5f=_0x11cf71[_0xcdfe09(0x563)])===null||_0x5efe5f===void 0x0?void 0x0:_0x5efe5f[_0xcdfe09(0x234)],'abortSignal':(_0x306514=_0x11cf71[_0xcdfe09(0x563)])===null||_0x306514===void 0x0?void 0x0:_0x306514[_0xcdfe09(0x546)]})[_0xcdfe09(0x3a5)](_0x24e571=>{const _0x106409=_0xcdfe09;return _0x24e571[_0x106409(0x288)]();}),_0x415b0a[_0xcdfe09(0x3a5)](_0x3165d5=>{const _0x1bccc9=_0xcdfe09,_0x28c899=createFileResponseFromMldev(_0x3165d5),_0x57cd33=new CreateFileResponse();return Object[_0x1bccc9(0x64e)](_0x57cd33,_0x28c899),_0x57cd33;});}}async[a0_0x254c3a(0x296)](_0x2406d2){const _0x4caaab=a0_0x254c3a;var _0x1d7d51,_0x5e5bff;let _0x10b063,_0x4c230a='',_0x19e56f={};if(this[_0x4caaab(0x6cf)][_0x4caaab(0x2b9)]())throw new Error(_0x4caaab(0x367));else{const _0x14c955=getFileParametersToMldev(_0x2406d2);return _0x4c230a=formatMap(_0x4caaab(0x6a3),_0x14c955['_url']),_0x19e56f=_0x14c955[_0x4caaab(0x32f)],delete _0x14c955[_0x4caaab(0x1fb)],delete _0x14c955['_query'],_0x10b063=this['apiClient'][_0x4caaab(0x610)]({'path':_0x4c230a,'queryParams':_0x19e56f,'body':JSON['stringify'](_0x14c955),'httpMethod':_0x4caaab(0x525),'httpOptions':(_0x1d7d51=_0x2406d2['config'])===null||_0x1d7d51===void 0x0?void 0x0:_0x1d7d51[_0x4caaab(0x234)],'abortSignal':(_0x5e5bff=_0x2406d2[_0x4caaab(0x563)])===null||_0x5e5bff===void 0x0?void 0x0:_0x5e5bff[_0x4caaab(0x546)]})['then'](_0x4f1609=>{const _0x3a71b3=_0x4caaab;return _0x4f1609[_0x3a71b3(0x288)]();}),_0x10b063['then'](_0x19f7a8=>{return _0x19f7a8;});}}async['delete'](_0x5cab40){const _0x171253=a0_0x254c3a;var _0x344f56,_0x46cad4;let _0x3182de,_0x5ee7e1='',_0x4fa509={};if(this[_0x171253(0x6cf)]['isVertexAI']())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x2df240=deleteFileParametersToMldev(_0x5cab40);return _0x5ee7e1=formatMap('files/{file}',_0x2df240[_0x171253(0x1fb)]),_0x4fa509=_0x2df240[_0x171253(0x32f)],delete _0x2df240['_url'],delete _0x2df240[_0x171253(0x32f)],_0x3182de=this[_0x171253(0x6cf)][_0x171253(0x610)]({'path':_0x5ee7e1,'queryParams':_0x4fa509,'body':JSON[_0x171253(0x59a)](_0x2df240),'httpMethod':'DELETE','httpOptions':(_0x344f56=_0x5cab40['config'])===null||_0x344f56===void 0x0?void 0x0:_0x344f56['httpOptions'],'abortSignal':(_0x46cad4=_0x5cab40[_0x171253(0x563)])===null||_0x46cad4===void 0x0?void 0x0:_0x46cad4[_0x171253(0x546)]})[_0x171253(0x3a5)](_0x48a833=>{const _0x305f8f=_0x171253;return _0x48a833[_0x305f8f(0x288)]()['then'](_0x22dfed=>{const _0x47c096=_0x305f8f,_0x1b77be=_0x22dfed;return _0x1b77be[_0x47c096(0x1ab)]={'headers':_0x48a833[_0x47c096(0x4e8)]},_0x1b77be;});}),_0x3182de[_0x171253(0x3a5)](_0x21789d=>{const _0x7b9f2a=_0x171253,_0x3473a7=deleteFileResponseFromMldev(_0x21789d),_0x1b8b23=new DeleteFileResponse();return Object[_0x7b9f2a(0x64e)](_0x1b8b23,_0x3473a7),_0x1b8b23;});}}async[a0_0x254c3a(0x49f)](_0x4d7e51){const _0x28533e=a0_0x254c3a;var _0xb085d8,_0x1388d0;let _0x404788,_0x3cb4de='',_0x1ee147={};if(this[_0x28533e(0x6cf)][_0x28533e(0x2b9)]())throw new Error(_0x28533e(0x367));else{const _0x815cee=internalRegisterFilesParametersToMldev(_0x4d7e51);return _0x3cb4de=formatMap(_0x28533e(0x66d),_0x815cee[_0x28533e(0x1fb)]),_0x1ee147=_0x815cee[_0x28533e(0x32f)],delete _0x815cee['_url'],delete _0x815cee[_0x28533e(0x32f)],_0x404788=this[_0x28533e(0x6cf)][_0x28533e(0x610)]({'path':_0x3cb4de,'queryParams':_0x1ee147,'body':JSON['stringify'](_0x815cee),'httpMethod':'POST','httpOptions':(_0xb085d8=_0x4d7e51['config'])===null||_0xb085d8===void 0x0?void 0x0:_0xb085d8[_0x28533e(0x234)],'abortSignal':(_0x1388d0=_0x4d7e51[_0x28533e(0x563)])===null||_0x1388d0===void 0x0?void 0x0:_0x1388d0[_0x28533e(0x546)]})['then'](_0x4e6c26=>{return _0x4e6c26['json']();}),_0x404788['then'](_0x1afa66=>{const _0x560cf4=_0x28533e,_0x3d25f9=registerFilesResponseFromMldev(_0x1afa66),_0x129e24=new RegisterFilesResponse();return Object[_0x560cf4(0x64e)](_0x129e24,_0x3d25f9),_0x129e24;});}}}/**
102
+ * @license
103
+ * Copyright 2025 Google LLC
104
+ * SPDX-License-Identifier: Apache-2.0
105
+ */
106
+ function deleteDocumentConfigToMldev(_0x4ebe19,_0x13d9ec){const _0x493280=a0_0x254c3a,_0x57fbe={},_0x320cdd=getValueByPath(_0x4ebe19,[_0x493280(0x36e)]);return _0x13d9ec!==undefined&&_0x320cdd!=null&&setValueByPath(_0x13d9ec,[_0x493280(0x32f),_0x493280(0x36e)],_0x320cdd),_0x57fbe;}function deleteDocumentParametersToMldev(_0x5a4247){const _0x5bbbaf=a0_0x254c3a,_0x54c581={},_0x4b8c8e=getValueByPath(_0x5a4247,[_0x5bbbaf(0x68e)]);_0x4b8c8e!=null&&setValueByPath(_0x54c581,[_0x5bbbaf(0x1fb),'name'],_0x4b8c8e);const _0x380ca0=getValueByPath(_0x5a4247,['config']);return _0x380ca0!=null&&deleteDocumentConfigToMldev(_0x380ca0,_0x54c581),_0x54c581;}function getDocumentParametersToMldev(_0x4ecb14){const _0xf774ec=a0_0x254c3a,_0x11798f={},_0x3232ac=getValueByPath(_0x4ecb14,[_0xf774ec(0x68e)]);return _0x3232ac!=null&&setValueByPath(_0x11798f,[_0xf774ec(0x1fb),_0xf774ec(0x68e)],_0x3232ac),_0x11798f;}function listDocumentsConfigToMldev(_0x52db12,_0x275073){const _0x2c3866=a0_0x254c3a,_0x491036={},_0x1d6f75=getValueByPath(_0x52db12,[_0x2c3866(0x2a3)]);_0x275073!==undefined&&_0x1d6f75!=null&&setValueByPath(_0x275073,['_query',_0x2c3866(0x2a3)],_0x1d6f75);const _0x4f791d=getValueByPath(_0x52db12,[_0x2c3866(0x6d9)]);return _0x275073!==undefined&&_0x4f791d!=null&&setValueByPath(_0x275073,[_0x2c3866(0x32f),'pageToken'],_0x4f791d),_0x491036;}function listDocumentsParametersToMldev(_0x47813f){const _0x4a10fc=a0_0x254c3a,_0x1b61d9={},_0xabb660=getValueByPath(_0x47813f,[_0x4a10fc(0x61e)]);_0xabb660!=null&&setValueByPath(_0x1b61d9,[_0x4a10fc(0x1fb),'parent'],_0xabb660);const _0x3dbb6d=getValueByPath(_0x47813f,[_0x4a10fc(0x563)]);return _0x3dbb6d!=null&&listDocumentsConfigToMldev(_0x3dbb6d,_0x1b61d9),_0x1b61d9;}function listDocumentsResponseFromMldev(_0x38dcbe){const _0x47a9d1=a0_0x254c3a,_0x2bffd3={},_0x14ebf2=getValueByPath(_0x38dcbe,[_0x47a9d1(0x1ab)]);_0x14ebf2!=null&&setValueByPath(_0x2bffd3,[_0x47a9d1(0x1ab)],_0x14ebf2);const _0x20e6a7=getValueByPath(_0x38dcbe,[_0x47a9d1(0x4e2)]);_0x20e6a7!=null&&setValueByPath(_0x2bffd3,[_0x47a9d1(0x4e2)],_0x20e6a7);const _0x368609=getValueByPath(_0x38dcbe,[_0x47a9d1(0x3ad)]);if(_0x368609!=null){let _0x3e873d=_0x368609;Array['isArray'](_0x3e873d)&&(_0x3e873d=_0x3e873d[_0x47a9d1(0x221)](_0x41f8e6=>{return _0x41f8e6;})),setValueByPath(_0x2bffd3,[_0x47a9d1(0x3ad)],_0x3e873d);}return _0x2bffd3;}/**
107
+ * @license
108
+ * Copyright 2025 Google LLC
109
+ * SPDX-License-Identifier: Apache-2.0
110
+ */
111
+ class Documents extends BaseModule{constructor(_0x445f32){const _0x4aafc2=a0_0x254c3a;super(),this[_0x4aafc2(0x6cf)]=_0x445f32,this[_0x4aafc2(0x488)]=async _0x5c37f9=>{const _0x2a5883=_0x4aafc2;return new Pager(exports[_0x2a5883(0x666)][_0x2a5883(0x230)],_0x26fba3=>this[_0x2a5883(0x475)]({'parent':_0x5c37f9['parent'],'config':_0x26fba3[_0x2a5883(0x563)]}),await this[_0x2a5883(0x475)](_0x5c37f9),_0x5c37f9);};}async[a0_0x254c3a(0x296)](_0x468226){const _0x568373=a0_0x254c3a;var _0x2c2ae9,_0x564911;let _0x45b832,_0x56af9a='',_0x10fa2f={};if(this[_0x568373(0x6cf)][_0x568373(0x2b9)]())throw new Error(_0x568373(0x367));else{const _0x152191=getDocumentParametersToMldev(_0x468226);return _0x56af9a=formatMap('{name}',_0x152191['_url']),_0x10fa2f=_0x152191[_0x568373(0x32f)],delete _0x152191['_url'],delete _0x152191[_0x568373(0x32f)],_0x45b832=this[_0x568373(0x6cf)][_0x568373(0x610)]({'path':_0x56af9a,'queryParams':_0x10fa2f,'body':JSON['stringify'](_0x152191),'httpMethod':'GET','httpOptions':(_0x2c2ae9=_0x468226[_0x568373(0x563)])===null||_0x2c2ae9===void 0x0?void 0x0:_0x2c2ae9[_0x568373(0x234)],'abortSignal':(_0x564911=_0x468226[_0x568373(0x563)])===null||_0x564911===void 0x0?void 0x0:_0x564911[_0x568373(0x546)]})[_0x568373(0x3a5)](_0x48c05f=>{const _0x15b8ec=_0x568373;return _0x48c05f[_0x15b8ec(0x288)]();}),_0x45b832['then'](_0x457306=>{return _0x457306;});}}async[a0_0x254c3a(0x625)](_0x3370de){const _0x393eb2=a0_0x254c3a;var _0x34f508,_0x4ccda5;let _0x5693db='',_0x54da99={};if(this[_0x393eb2(0x6cf)][_0x393eb2(0x2b9)]())throw new Error(_0x393eb2(0x367));else{const _0x497478=deleteDocumentParametersToMldev(_0x3370de);_0x5693db=formatMap(_0x393eb2(0x188),_0x497478[_0x393eb2(0x1fb)]),_0x54da99=_0x497478[_0x393eb2(0x32f)],delete _0x497478[_0x393eb2(0x1fb)],delete _0x497478[_0x393eb2(0x32f)],await this[_0x393eb2(0x6cf)]['request']({'path':_0x5693db,'queryParams':_0x54da99,'body':JSON[_0x393eb2(0x59a)](_0x497478),'httpMethod':_0x393eb2(0x27a),'httpOptions':(_0x34f508=_0x3370de['config'])===null||_0x34f508===void 0x0?void 0x0:_0x34f508[_0x393eb2(0x234)],'abortSignal':(_0x4ccda5=_0x3370de[_0x393eb2(0x563)])===null||_0x4ccda5===void 0x0?void 0x0:_0x4ccda5['abortSignal']});}}async['listInternal'](_0x1f36bd){const _0x34bf7f=a0_0x254c3a;var _0x4fabf6,_0xc09167;let _0x175b5d,_0x4eb325='',_0x484880={};if(this[_0x34bf7f(0x6cf)]['isVertexAI']())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x3535de=listDocumentsParametersToMldev(_0x1f36bd);return _0x4eb325=formatMap('{parent}/documents',_0x3535de[_0x34bf7f(0x1fb)]),_0x484880=_0x3535de[_0x34bf7f(0x32f)],delete _0x3535de[_0x34bf7f(0x1fb)],delete _0x3535de[_0x34bf7f(0x32f)],_0x175b5d=this['apiClient'][_0x34bf7f(0x610)]({'path':_0x4eb325,'queryParams':_0x484880,'body':JSON[_0x34bf7f(0x59a)](_0x3535de),'httpMethod':_0x34bf7f(0x525),'httpOptions':(_0x4fabf6=_0x1f36bd[_0x34bf7f(0x563)])===null||_0x4fabf6===void 0x0?void 0x0:_0x4fabf6[_0x34bf7f(0x234)],'abortSignal':(_0xc09167=_0x1f36bd['config'])===null||_0xc09167===void 0x0?void 0x0:_0xc09167[_0x34bf7f(0x546)]})[_0x34bf7f(0x3a5)](_0xfcbba5=>{const _0xef16f6=_0x34bf7f;return _0xfcbba5[_0xef16f6(0x288)]();}),_0x175b5d[_0x34bf7f(0x3a5)](_0x467d17=>{const _0xd7b162=_0x34bf7f,_0x45b16b=listDocumentsResponseFromMldev(_0x467d17),_0x232ba7=new ListDocumentsResponse();return Object[_0xd7b162(0x64e)](_0x232ba7,_0x45b16b),_0x232ba7;});}}}/**
112
+ * @license
113
+ * Copyright 2025 Google LLC
114
+ * SPDX-License-Identifier: Apache-2.0
115
+ */
116
+ class FileSearchStores extends BaseModule{constructor(_0x47e087,_0x496f7e=new Documents(_0x47e087)){const _0x3f1eeb=a0_0x254c3a;super(),this[_0x3f1eeb(0x6cf)]=_0x47e087,this[_0x3f1eeb(0x3ad)]=_0x496f7e,this['list']=async(_0x56f3dd={})=>{const _0x17c7c3=_0x3f1eeb;return new Pager(exports[_0x17c7c3(0x666)][_0x17c7c3(0x4cb)],_0x503613=>this[_0x17c7c3(0x475)](_0x503613),await this['listInternal'](_0x56f3dd),_0x56f3dd);};}async[a0_0x254c3a(0x636)](_0x26b601){const _0x1a25c5=a0_0x254c3a;if(this[_0x1a25c5(0x6cf)][_0x1a25c5(0x2b9)]())throw new Error(_0x1a25c5(0x3e3));return this[_0x1a25c5(0x6cf)][_0x1a25c5(0x6f3)](_0x26b601[_0x1a25c5(0x5b7)],_0x26b601[_0x1a25c5(0x678)],_0x26b601[_0x1a25c5(0x563)]);}async[a0_0x254c3a(0x1b6)](_0x3e3aff){const _0x32f59a=a0_0x254c3a;var _0x29f6ee,_0x14f358;let _0xec1b66,_0x44fc77='',_0x360b0d={};if(this[_0x32f59a(0x6cf)][_0x32f59a(0x2b9)]())throw new Error(_0x32f59a(0x367));else{const _0x5efa4a=createFileSearchStoreParametersToMldev(_0x3e3aff);return _0x44fc77=formatMap(_0x32f59a(0x3a1),_0x5efa4a[_0x32f59a(0x1fb)]),_0x360b0d=_0x5efa4a[_0x32f59a(0x32f)],delete _0x5efa4a['_url'],delete _0x5efa4a['_query'],_0xec1b66=this['apiClient'][_0x32f59a(0x610)]({'path':_0x44fc77,'queryParams':_0x360b0d,'body':JSON['stringify'](_0x5efa4a),'httpMethod':_0x32f59a(0x5f7),'httpOptions':(_0x29f6ee=_0x3e3aff['config'])===null||_0x29f6ee===void 0x0?void 0x0:_0x29f6ee[_0x32f59a(0x234)],'abortSignal':(_0x14f358=_0x3e3aff['config'])===null||_0x14f358===void 0x0?void 0x0:_0x14f358[_0x32f59a(0x546)]})['then'](_0x1f034c=>{const _0x140315=_0x32f59a;return _0x1f034c[_0x140315(0x288)]();}),_0xec1b66[_0x32f59a(0x3a5)](_0x2ecd3b=>{return _0x2ecd3b;});}}async[a0_0x254c3a(0x296)](_0x4c24de){const _0x1bb0fe=a0_0x254c3a;var _0x526d04,_0x5300bc;let _0x4389b1,_0x247e9f='',_0x48cf37={};if(this[_0x1bb0fe(0x6cf)][_0x1bb0fe(0x2b9)]())throw new Error(_0x1bb0fe(0x367));else{const _0x43f56e=getFileSearchStoreParametersToMldev(_0x4c24de);return _0x247e9f=formatMap(_0x1bb0fe(0x188),_0x43f56e[_0x1bb0fe(0x1fb)]),_0x48cf37=_0x43f56e[_0x1bb0fe(0x32f)],delete _0x43f56e['_url'],delete _0x43f56e['_query'],_0x4389b1=this[_0x1bb0fe(0x6cf)][_0x1bb0fe(0x610)]({'path':_0x247e9f,'queryParams':_0x48cf37,'body':JSON['stringify'](_0x43f56e),'httpMethod':_0x1bb0fe(0x525),'httpOptions':(_0x526d04=_0x4c24de[_0x1bb0fe(0x563)])===null||_0x526d04===void 0x0?void 0x0:_0x526d04['httpOptions'],'abortSignal':(_0x5300bc=_0x4c24de[_0x1bb0fe(0x563)])===null||_0x5300bc===void 0x0?void 0x0:_0x5300bc[_0x1bb0fe(0x546)]})[_0x1bb0fe(0x3a5)](_0x4c9607=>{const _0x5e857d=_0x1bb0fe;return _0x4c9607[_0x5e857d(0x288)]();}),_0x4389b1[_0x1bb0fe(0x3a5)](_0x244a43=>{return _0x244a43;});}}async['delete'](_0x4bf7b6){const _0x39fe9f=a0_0x254c3a;var _0x4be267,_0x1fc1a1;let _0x33f4fd='',_0x3fc8f4={};if(this[_0x39fe9f(0x6cf)][_0x39fe9f(0x2b9)]())throw new Error(_0x39fe9f(0x367));else{const _0x32b892=deleteFileSearchStoreParametersToMldev(_0x4bf7b6);_0x33f4fd=formatMap(_0x39fe9f(0x188),_0x32b892[_0x39fe9f(0x1fb)]),_0x3fc8f4=_0x32b892['_query'],delete _0x32b892['_url'],delete _0x32b892[_0x39fe9f(0x32f)],await this[_0x39fe9f(0x6cf)]['request']({'path':_0x33f4fd,'queryParams':_0x3fc8f4,'body':JSON[_0x39fe9f(0x59a)](_0x32b892),'httpMethod':_0x39fe9f(0x27a),'httpOptions':(_0x4be267=_0x4bf7b6[_0x39fe9f(0x563)])===null||_0x4be267===void 0x0?void 0x0:_0x4be267[_0x39fe9f(0x234)],'abortSignal':(_0x1fc1a1=_0x4bf7b6[_0x39fe9f(0x563)])===null||_0x1fc1a1===void 0x0?void 0x0:_0x1fc1a1[_0x39fe9f(0x546)]});}}async[a0_0x254c3a(0x475)](_0xcd80df){const _0x46c6cd=a0_0x254c3a;var _0x45016f,_0x44be2e;let _0x184590,_0x317255='',_0x458639={};if(this[_0x46c6cd(0x6cf)][_0x46c6cd(0x2b9)]())throw new Error(_0x46c6cd(0x367));else{const _0x2e4938=listFileSearchStoresParametersToMldev(_0xcd80df);return _0x317255=formatMap(_0x46c6cd(0x3a1),_0x2e4938['_url']),_0x458639=_0x2e4938[_0x46c6cd(0x32f)],delete _0x2e4938['_url'],delete _0x2e4938[_0x46c6cd(0x32f)],_0x184590=this[_0x46c6cd(0x6cf)][_0x46c6cd(0x610)]({'path':_0x317255,'queryParams':_0x458639,'body':JSON[_0x46c6cd(0x59a)](_0x2e4938),'httpMethod':_0x46c6cd(0x525),'httpOptions':(_0x45016f=_0xcd80df['config'])===null||_0x45016f===void 0x0?void 0x0:_0x45016f[_0x46c6cd(0x234)],'abortSignal':(_0x44be2e=_0xcd80df[_0x46c6cd(0x563)])===null||_0x44be2e===void 0x0?void 0x0:_0x44be2e[_0x46c6cd(0x546)]})[_0x46c6cd(0x3a5)](_0x5ab8ba=>{const _0x305135=_0x46c6cd;return _0x5ab8ba[_0x305135(0x288)]();}),_0x184590[_0x46c6cd(0x3a5)](_0x2e3df3=>{const _0x5c52a0=listFileSearchStoresResponseFromMldev(_0x2e3df3),_0x22dd13=new ListFileSearchStoresResponse();return Object['assign'](_0x22dd13,_0x5c52a0),_0x22dd13;});}}async[a0_0x254c3a(0x57f)](_0x138255){const _0xf72bb6=a0_0x254c3a;var _0x3a71a0,_0x2687f7;let _0x44372b,_0x3ef826='',_0xe602ad={};if(this[_0xf72bb6(0x6cf)][_0xf72bb6(0x2b9)]())throw new Error(_0xf72bb6(0x367));else{const _0x3bc6d9=uploadToFileSearchStoreParametersToMldev(_0x138255);return _0x3ef826=formatMap('upload/v1beta/{file_search_store_name}:uploadToFileSearchStore',_0x3bc6d9[_0xf72bb6(0x1fb)]),_0xe602ad=_0x3bc6d9[_0xf72bb6(0x32f)],delete _0x3bc6d9[_0xf72bb6(0x1fb)],delete _0x3bc6d9[_0xf72bb6(0x32f)],_0x44372b=this[_0xf72bb6(0x6cf)][_0xf72bb6(0x610)]({'path':_0x3ef826,'queryParams':_0xe602ad,'body':JSON[_0xf72bb6(0x59a)](_0x3bc6d9),'httpMethod':_0xf72bb6(0x5f7),'httpOptions':(_0x3a71a0=_0x138255['config'])===null||_0x3a71a0===void 0x0?void 0x0:_0x3a71a0['httpOptions'],'abortSignal':(_0x2687f7=_0x138255['config'])===null||_0x2687f7===void 0x0?void 0x0:_0x2687f7['abortSignal']})[_0xf72bb6(0x3a5)](_0x1a9e9e=>{const _0x4194e5=_0xf72bb6;return _0x1a9e9e[_0x4194e5(0x288)]();}),_0x44372b[_0xf72bb6(0x3a5)](_0x571cde=>{const _0x31abf7=_0xf72bb6,_0x3b92a4=uploadToFileSearchStoreResumableResponseFromMldev(_0x571cde),_0x5d7689=new UploadToFileSearchStoreResumableResponse();return Object[_0x31abf7(0x64e)](_0x5d7689,_0x3b92a4),_0x5d7689;});}}async[a0_0x254c3a(0x6a6)](_0x19fdec){const _0x3a8463=a0_0x254c3a;var _0x415899,_0x8e8334;let _0x352b7f,_0x4eac98='',_0x4beee7={};if(this[_0x3a8463(0x6cf)][_0x3a8463(0x2b9)]())throw new Error(_0x3a8463(0x367));else{const _0x4cb48e=importFileParametersToMldev(_0x19fdec);return _0x4eac98=formatMap(_0x3a8463(0x656),_0x4cb48e['_url']),_0x4beee7=_0x4cb48e[_0x3a8463(0x32f)],delete _0x4cb48e['_url'],delete _0x4cb48e[_0x3a8463(0x32f)],_0x352b7f=this[_0x3a8463(0x6cf)][_0x3a8463(0x610)]({'path':_0x4eac98,'queryParams':_0x4beee7,'body':JSON[_0x3a8463(0x59a)](_0x4cb48e),'httpMethod':_0x3a8463(0x5f7),'httpOptions':(_0x415899=_0x19fdec[_0x3a8463(0x563)])===null||_0x415899===void 0x0?void 0x0:_0x415899[_0x3a8463(0x234)],'abortSignal':(_0x8e8334=_0x19fdec[_0x3a8463(0x563)])===null||_0x8e8334===void 0x0?void 0x0:_0x8e8334[_0x3a8463(0x546)]})[_0x3a8463(0x3a5)](_0x25dce4=>{const _0x40e523=_0x3a8463;return _0x25dce4[_0x40e523(0x288)]();}),_0x352b7f[_0x3a8463(0x3a5)](_0x3369b1=>{const _0x40359d=_0x3a8463,_0x29b70b=importFileOperationFromMldev(_0x3369b1),_0x579f7d=new ImportFileOperation();return Object[_0x40359d(0x64e)](_0x579f7d,_0x29b70b),_0x579f7d;});}}}/**
117
+ * @license
118
+ * Copyright 2025 Google LLC
119
+ * SPDX-License-Identifier: Apache-2.0
120
+ */
121
+ let uuid4Internal=function(){const _0xd26bc0=a0_0x254c3a,{crypto:_0x5ebc82}=globalThis;if(_0x5ebc82===null||_0x5ebc82===void 0x0?void 0x0:_0x5ebc82['randomUUID'])return uuid4Internal=_0x5ebc82[_0xd26bc0(0x5c5)]['bind'](_0x5ebc82),_0x5ebc82[_0xd26bc0(0x5c5)]();const _0xf0e52c=new Uint8Array(0x1),_0x20c728=_0x5ebc82?()=>_0x5ebc82['getRandomValues'](_0xf0e52c)[0x0]:()=>Math[_0xd26bc0(0x4b1)]()*0xff&0xff;return _0xd26bc0(0x1d8)[_0xd26bc0(0x19f)](/[018]/g,_0x2f5711=>(+_0x2f5711^_0x20c728()&0xf>>+_0x2f5711/0x4)[_0xd26bc0(0x248)](0x10));};const uuid4=()=>uuid4Internal();/**
122
+ * @license
123
+ * Copyright 2025 Google LLC
124
+ * SPDX-License-Identifier: Apache-2.0
125
+ */
126
+ function isAbortError(_0x502139){const _0x493251=a0_0x254c3a;return typeof _0x502139==='object'&&_0x502139!==null&&('name'in _0x502139&&_0x502139[_0x493251(0x68e)]==='AbortError'||'message'in _0x502139&&String(_0x502139[_0x493251(0x2c2)])[_0x493251(0x566)](_0x493251(0x3d9)));}const castToError=_0x31ce8b=>{const _0x2ba72a=a0_0x254c3a;if(_0x31ce8b instanceof Error)return _0x31ce8b;if(typeof _0x31ce8b===_0x2ba72a(0x46a)&&_0x31ce8b!==null){try{if(Object[_0x2ba72a(0x6b5)][_0x2ba72a(0x248)][_0x2ba72a(0x49b)](_0x31ce8b)===_0x2ba72a(0x56f)){const _0x2549a1=new Error(_0x31ce8b[_0x2ba72a(0x2c2)],_0x31ce8b[_0x2ba72a(0x708)]?{'cause':_0x31ce8b[_0x2ba72a(0x708)]}:{});if(_0x31ce8b[_0x2ba72a(0x5db)])_0x2549a1[_0x2ba72a(0x5db)]=_0x31ce8b[_0x2ba72a(0x5db)];if(_0x31ce8b[_0x2ba72a(0x708)]&&!_0x2549a1[_0x2ba72a(0x708)])_0x2549a1[_0x2ba72a(0x708)]=_0x31ce8b[_0x2ba72a(0x708)];if(_0x31ce8b['name'])_0x2549a1['name']=_0x31ce8b[_0x2ba72a(0x68e)];return _0x2549a1;}}catch(_0x1819d5){}try{return new Error(JSON[_0x2ba72a(0x59a)](_0x31ce8b));}catch(_0x4e0225){}}return new Error(_0x31ce8b);};/**
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(_0x1578d7,_0x245e43,_0x545d0e,_0x54f7ef){const _0x6d441b=a0_0x254c3a;super(''+APIError[_0x6d441b(0x393)](_0x1578d7,_0x245e43,_0x545d0e)),this['status']=_0x1578d7,this['headers']=_0x54f7ef,this[_0x6d441b(0x20b)]=_0x245e43;}static['makeMessage'](_0x23eebb,_0x50c656,_0x4e3cac){const _0x5affad=a0_0x254c3a,_0x115e43=(_0x50c656===null||_0x50c656===void 0x0?void 0x0:_0x50c656[_0x5affad(0x2c2)])?typeof _0x50c656[_0x5affad(0x2c2)]===_0x5affad(0x4ae)?_0x50c656[_0x5affad(0x2c2)]:JSON[_0x5affad(0x59a)](_0x50c656['message']):_0x50c656?JSON[_0x5affad(0x59a)](_0x50c656):_0x4e3cac;if(_0x23eebb&&_0x115e43)return _0x23eebb+'\x20'+_0x115e43;if(_0x23eebb)return _0x23eebb+_0x5affad(0x48b);if(_0x115e43)return _0x115e43;return'(no\x20status\x20code\x20or\x20body)';}static[a0_0x254c3a(0x251)](_0x373235,_0x18e261,_0x4c8744,_0x10d251){if(!_0x373235||!_0x10d251)return new APIConnectionError({'message':_0x4c8744,'cause':castToError(_0x18e261)});const _0xa0a78=_0x18e261;if(_0x373235===0x190)return new BadRequestError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235===0x191)return new AuthenticationError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235===0x193)return new PermissionDeniedError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235===0x194)return new NotFoundError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235===0x199)return new ConflictError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235===0x1a6)return new UnprocessableEntityError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235===0x1ad)return new RateLimitError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);if(_0x373235>=0x1f4)return new InternalServerError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);return new APIError(_0x373235,_0xa0a78,_0x4c8744,_0x10d251);}}class APIUserAbortError extends APIError{constructor({message:_0x46eb25}={}){const _0x42034e=a0_0x254c3a;super(undefined,undefined,_0x46eb25||_0x42034e(0x199),undefined);}}class APIConnectionError extends APIError{constructor({message:_0x499520,cause:_0x58ad96}){super(undefined,undefined,_0x499520||'Connection\x20error.',undefined);if(_0x58ad96)this['cause']=_0x58ad96;}}class APIConnectionTimeoutError extends APIConnectionError{constructor({message:_0x583048}={}){const _0x56c884=a0_0x254c3a;super({'message':_0x583048!==null&&_0x583048!==void 0x0?_0x583048:_0x56c884(0x28d)});}}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=_0x2a0bd6=>{const _0x4173de=a0_0x254c3a;return startsWithSchemeRegexp[_0x4173de(0x5f3)](_0x2a0bd6);};let isArrayInternal=_0x547fcb=>(isArrayInternal=Array[a0_0x254c3a(0x192)],isArrayInternal(_0x547fcb));const isArray=isArrayInternal;let isReadonlyArrayInternal=isArray;const isReadonlyArray=isReadonlyArrayInternal;function isEmptyObj(_0x4d7734){if(!_0x4d7734)return!![];for(const _0x14a291 in _0x4d7734)return![];return!![];}function hasOwn(_0x1067b0,_0x91a043){const _0x9ba2e2=a0_0x254c3a;return Object[_0x9ba2e2(0x6b5)][_0x9ba2e2(0x54e)][_0x9ba2e2(0x49b)](_0x1067b0,_0x91a043);}const validatePositiveInteger=(_0x4180fc,_0x554776)=>{const _0x20c933=a0_0x254c3a;if(typeof _0x554776!==_0x20c933(0x4e1)||!Number[_0x20c933(0x2b0)](_0x554776))throw new GeminiNextGenAPIClientError(_0x4180fc+'\x20must\x20be\x20an\x20integer');if(_0x554776<0x0)throw new GeminiNextGenAPIClientError(_0x4180fc+'\x20must\x20be\x20a\x20positive\x20integer');return _0x554776;},safeJSON=_0x2a347f=>{try{return JSON['parse'](_0x2a347f);}catch(_0x26f44d){return undefined;}},sleep=_0x589728=>new Promise(_0x12045e=>setTimeout(_0x12045e,_0x589728)),VERSION=a0_0x254c3a(0x2c4);/**
137
+ * @license
138
+ * Copyright 2025 Google LLC
139
+ * SPDX-License-Identifier: Apache-2.0
140
+ */
141
+ function getDetectedPlatform(){const _0x2fe3d2=a0_0x254c3a;if(typeof Deno!=='undefined'&&Deno[_0x2fe3d2(0x1eb)]!=null)return'deno';if(typeof EdgeRuntime!==_0x2fe3d2(0x66c))return _0x2fe3d2(0x416);if(Object[_0x2fe3d2(0x6b5)][_0x2fe3d2(0x248)]['call'](typeof globalThis[_0x2fe3d2(0x567)]!==_0x2fe3d2(0x66c)?globalThis[_0x2fe3d2(0x567)]:0x0)==='[object\x20process]')return _0x2fe3d2(0x69a);return _0x2fe3d2(0x2ac);}const getPlatformProperties=()=>{const _0x56a38b=a0_0x254c3a;var _0x39a9f2,_0x118463,_0xadbcca,_0x319528,_0xef56fa;const _0x36b6af=getDetectedPlatform();if(_0x36b6af==='deno')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform(Deno[_0x56a38b(0x1eb)]['os']),'X-Stainless-Arch':normalizeArch(Deno[_0x56a38b(0x1eb)][_0x56a38b(0x4a3)]),'X-Stainless-Runtime':_0x56a38b(0x4f3),'X-Stainless-Runtime-Version':typeof Deno[_0x56a38b(0x4f8)]==='string'?Deno[_0x56a38b(0x4f8)]:(_0x118463=(_0x39a9f2=Deno[_0x56a38b(0x4f8)])===null||_0x39a9f2===void 0x0?void 0x0:_0x39a9f2[_0x56a38b(0x4f3)])!==null&&_0x118463!==void 0x0?_0x118463:_0x56a38b(0x2ac)};if(typeof EdgeRuntime!==_0x56a38b(0x66c))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x56a38b(0x403),'X-Stainless-Arch':_0x56a38b(0x381)+EdgeRuntime,'X-Stainless-Runtime':'edge','X-Stainless-Runtime-Version':globalThis[_0x56a38b(0x567)]['version']};if(_0x36b6af==='node')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform((_0xadbcca=globalThis[_0x56a38b(0x567)][_0x56a38b(0x558)])!==null&&_0xadbcca!==void 0x0?_0xadbcca:_0x56a38b(0x2ac)),'X-Stainless-Arch':normalizeArch((_0x319528=globalThis[_0x56a38b(0x567)][_0x56a38b(0x4a3)])!==null&&_0x319528!==void 0x0?_0x319528:_0x56a38b(0x2ac)),'X-Stainless-Runtime':_0x56a38b(0x69a),'X-Stainless-Runtime-Version':(_0xef56fa=globalThis[_0x56a38b(0x567)]['version'])!==null&&_0xef56fa!==void 0x0?_0xef56fa:_0x56a38b(0x2ac)};const _0x3fdaf4=getBrowserInfo();if(_0x3fdaf4)return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x56a38b(0x403),'X-Stainless-Arch':_0x56a38b(0x2ac),'X-Stainless-Runtime':'browser:'+_0x3fdaf4['browser'],'X-Stainless-Runtime-Version':_0x3fdaf4[_0x56a38b(0x4f8)]};return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x56a38b(0x403),'X-Stainless-Arch':_0x56a38b(0x2ac),'X-Stainless-Runtime':'unknown','X-Stainless-Runtime-Version':_0x56a38b(0x2ac)};};function getBrowserInfo(){const _0x1647b8=a0_0x254c3a;if(typeof navigator===_0x1647b8(0x66c)||!navigator)return null;const _0x556d1a=[{'key':_0x1647b8(0x416),'pattern':/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x1647b8(0x6f9),'pattern':/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x1647b8(0x318),'pattern':/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x1647b8(0x457),'pattern':/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const {key:_0x9a24aa,pattern:_0x3b7052}of _0x556d1a){const _0x4c8984=_0x3b7052[_0x1647b8(0x604)](navigator[_0x1647b8(0x5d9)]);if(_0x4c8984){const _0x148acd=_0x4c8984[0x1]||0x0,_0x5defa4=_0x4c8984[0x2]||0x0,_0x97606e=_0x4c8984[0x3]||0x0;return{'browser':_0x9a24aa,'version':_0x148acd+'.'+_0x5defa4+'.'+_0x97606e};}}return null;}const normalizeArch=_0x42eff2=>{const _0xff46ef=a0_0x254c3a;if(_0x42eff2===_0xff46ef(0x44f))return _0xff46ef(0x44f);if(_0x42eff2===_0xff46ef(0x36b)||_0x42eff2===_0xff46ef(0x1ef))return'x64';if(_0x42eff2===_0xff46ef(0x5cb))return _0xff46ef(0x5cb);if(_0x42eff2===_0xff46ef(0x1f5)||_0x42eff2===_0xff46ef(0x644))return _0xff46ef(0x644);if(_0x42eff2)return _0xff46ef(0x381)+_0x42eff2;return'unknown';},normalizePlatform=_0x24316c=>{const _0x5d2368=a0_0x254c3a;_0x24316c=_0x24316c[_0x5d2368(0x51a)]();if(_0x24316c[_0x5d2368(0x566)](_0x5d2368(0x55d)))return _0x5d2368(0x30a);if(_0x24316c===_0x5d2368(0x65c))return _0x5d2368(0x1ce);if(_0x24316c===_0x5d2368(0x68f))return _0x5d2368(0x293);if(_0x24316c===_0x5d2368(0x411))return _0x5d2368(0x41a);if(_0x24316c===_0x5d2368(0x6fa))return'FreeBSD';if(_0x24316c===_0x5d2368(0x27f))return'OpenBSD';if(_0x24316c===_0x5d2368(0x61a))return _0x5d2368(0x2f7);if(_0x24316c)return _0x5d2368(0x613)+_0x24316c;return'Unknown';};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 _0x4d9b1d=a0_0x254c3a;if(typeof fetch!==_0x4d9b1d(0x66c))return fetch;throw new Error(_0x4d9b1d(0x2b7));}function makeReadableStream(..._0x525268){const _0x30b8ed=a0_0x254c3a,_0x15bc54=globalThis['ReadableStream'];if(typeof _0x15bc54===_0x30b8ed(0x66c))throw new Error(_0x30b8ed(0x512));return new _0x15bc54(..._0x525268);}function ReadableStreamFrom(_0x90ced7){const _0x390ed2=a0_0x254c3a;let _0x1cdc9a=Symbol[_0x390ed2(0x561)]in _0x90ced7?_0x90ced7[Symbol[_0x390ed2(0x561)]]():_0x90ced7[Symbol[_0x390ed2(0x545)]]();return makeReadableStream({'start'(){},async 'pull'(_0x4c8b6f){const _0x5bef14=_0x390ed2,{done:_0x21bca1,value:_0xda8b8a}=await _0x1cdc9a[_0x5bef14(0x33e)]();_0x21bca1?_0x4c8b6f[_0x5bef14(0x588)]():_0x4c8b6f['enqueue'](_0xda8b8a);},async 'cancel'(){const _0x3117ed=_0x390ed2;var _0x107b17;await((_0x107b17=_0x1cdc9a[_0x3117ed(0x3fd)])===null||_0x107b17===void 0x0?void 0x0:_0x107b17[_0x3117ed(0x49b)](_0x1cdc9a));}});}function ReadableStreamToAsyncIterable(_0x131edd){const _0x10d9fa=a0_0x254c3a;if(_0x131edd[Symbol[_0x10d9fa(0x561)]])return _0x131edd;const _0x5624d4=_0x131edd[_0x10d9fa(0x3aa)]();return{async 'next'(){const _0x5994ad=_0x10d9fa;try{const _0x3cddb6=await _0x5624d4[_0x5994ad(0x51b)]();if(_0x3cddb6===null||_0x3cddb6===void 0x0?void 0x0:_0x3cddb6[_0x5994ad(0x183)])_0x5624d4[_0x5994ad(0x6aa)]();return _0x3cddb6;}catch(_0x5da574){_0x5624d4['releaseLock']();throw _0x5da574;}},async 'return'(){const _0x4e9b3d=_0x10d9fa,_0x2413e7=_0x5624d4['cancel']();return _0x5624d4[_0x4e9b3d(0x6aa)](),await _0x2413e7,{'done':!![],'value':undefined};},[Symbol[_0x10d9fa(0x561)]](){return this;}};}async function CancelReadableStream(_0xe69c40){const _0x1831a3=a0_0x254c3a;var _0x97b8f1,_0x35f71d;if(_0xe69c40===null||typeof _0xe69c40!==_0x1831a3(0x46a))return;if(_0xe69c40[Symbol['asyncIterator']]){await((_0x35f71d=(_0x97b8f1=_0xe69c40[Symbol[_0x1831a3(0x561)]]())[_0x1831a3(0x3fd)])===null||_0x35f71d===void 0x0?void 0x0:_0x35f71d[_0x1831a3(0x49b)](_0x97b8f1));return;}const _0x1d51a4=_0xe69c40[_0x1831a3(0x3aa)](),_0x27e94f=_0x1d51a4[_0x1831a3(0x50d)]();_0x1d51a4[_0x1831a3(0x6aa)](),await _0x27e94f;}/**
147
+ * @license
148
+ * Copyright 2025 Google LLC
149
+ * SPDX-License-Identifier: Apache-2.0
150
+ */
151
+ const FallbackEncoder=({headers:_0x58f0f0,body:_0x403791})=>{return{'bodyHeaders':{'content-type':'application/json'},'body':JSON['stringify'](_0x403791)};},checkFileSupport=()=>{const _0x398220=a0_0x254c3a;var _0x11ce21;if(typeof File==='undefined'){const {process:_0x19b7a3}=globalThis,_0x50553d=typeof((_0x11ce21=_0x19b7a3===null||_0x19b7a3===void 0x0?void 0x0:_0x19b7a3['versions'])===null||_0x11ce21===void 0x0?void 0x0:_0x11ce21['node'])===_0x398220(0x4ae)&&parseInt(_0x19b7a3['versions'][_0x398220(0x69a)][_0x398220(0x406)]('.'))<0x14;throw new Error(_0x398220(0x321)+(_0x50553d?_0x398220(0x580):''));}};function makeFile(_0x4dbde4,_0x3129be,_0xf5b51c){return checkFileSupport(),new File(_0x4dbde4,_0x3129be!==null&&_0x3129be!==void 0x0?_0x3129be:'unknown_file',_0xf5b51c);}function getName(_0x98fb92){const _0x14ec42=a0_0x254c3a;return(typeof _0x98fb92==='object'&&_0x98fb92!==null&&(_0x14ec42(0x68e)in _0x98fb92&&_0x98fb92[_0x14ec42(0x68e)]&&String(_0x98fb92[_0x14ec42(0x68e)])||_0x14ec42(0x68b)in _0x98fb92&&_0x98fb92['url']&&String(_0x98fb92['url'])||'filename'in _0x98fb92&&_0x98fb92[_0x14ec42(0x275)]&&String(_0x98fb92['filename'])||'path'in _0x98fb92&&_0x98fb92['path']&&String(_0x98fb92[_0x14ec42(0x5e8)]))||'')[_0x14ec42(0x406)](/[\\/]/)[_0x14ec42(0x690)]()||undefined;}const isAsyncIterable=_0x20fb07=>_0x20fb07!=null&&typeof _0x20fb07===a0_0x254c3a(0x46a)&&typeof _0x20fb07[Symbol[a0_0x254c3a(0x561)]]==='function',isBlobLike=_0x203ba8=>_0x203ba8!=null&&typeof _0x203ba8==='object'&&typeof _0x203ba8[a0_0x254c3a(0x6d1)]===a0_0x254c3a(0x4e1)&&typeof _0x203ba8[a0_0x254c3a(0x58d)]===a0_0x254c3a(0x4ae)&&typeof _0x203ba8[a0_0x254c3a(0x2ab)]===a0_0x254c3a(0x304)&&typeof _0x203ba8['slice']===a0_0x254c3a(0x304)&&typeof _0x203ba8[a0_0x254c3a(0x472)]===a0_0x254c3a(0x304),isFileLike=_0x4f0602=>_0x4f0602!=null&&typeof _0x4f0602===a0_0x254c3a(0x46a)&&typeof _0x4f0602[a0_0x254c3a(0x68e)]===a0_0x254c3a(0x4ae)&&typeof _0x4f0602[a0_0x254c3a(0x458)]===a0_0x254c3a(0x4e1)&&isBlobLike(_0x4f0602),isResponseLike=_0x19527b=>_0x19527b!=null&&typeof _0x19527b===a0_0x254c3a(0x46a)&&typeof _0x19527b[a0_0x254c3a(0x68b)]==='string'&&typeof _0x19527b[a0_0x254c3a(0x4fd)]==='function';async function toFile(_0x2a9d3c,_0x1f9a46,_0x49ad92){const _0x43441b=a0_0x254c3a;checkFileSupport(),_0x2a9d3c=await _0x2a9d3c;if(isFileLike(_0x2a9d3c)){if(_0x2a9d3c instanceof File)return _0x2a9d3c;return makeFile([await _0x2a9d3c[_0x43441b(0x472)]()],_0x2a9d3c[_0x43441b(0x68e)]);}if(isResponseLike(_0x2a9d3c)){const _0x3793e8=await _0x2a9d3c[_0x43441b(0x4fd)]();return _0x1f9a46||(_0x1f9a46=new URL(_0x2a9d3c['url'])[_0x43441b(0x212)][_0x43441b(0x406)](/[\\/]/)[_0x43441b(0x690)]()),makeFile(await getBytes(_0x3793e8),_0x1f9a46,_0x49ad92);}const _0x581a0c=await getBytes(_0x2a9d3c);_0x1f9a46||(_0x1f9a46=getName(_0x2a9d3c));if(!(_0x49ad92===null||_0x49ad92===void 0x0?void 0x0:_0x49ad92[_0x43441b(0x58d)])){const _0x49c53b=_0x581a0c['find'](_0x1b9e79=>typeof _0x1b9e79===_0x43441b(0x46a)&&_0x43441b(0x58d)in _0x1b9e79&&_0x1b9e79[_0x43441b(0x58d)]);typeof _0x49c53b==='string'&&(_0x49ad92=Object[_0x43441b(0x64e)](Object[_0x43441b(0x64e)]({},_0x49ad92),{'type':_0x49c53b}));}return makeFile(_0x581a0c,_0x1f9a46,_0x49ad92);}async function getBytes(_0x1c2da8){const _0xa5765=a0_0x254c3a;var _0x3ce412,_0x32b5eb,_0x56e65e,_0x5e57ff,_0x551277;let _0x5d3b8c=[];if(typeof _0x1c2da8===_0xa5765(0x4ae)||ArrayBuffer['isView'](_0x1c2da8)||_0x1c2da8 instanceof ArrayBuffer)_0x5d3b8c[_0xa5765(0x417)](_0x1c2da8);else{if(isBlobLike(_0x1c2da8))_0x5d3b8c[_0xa5765(0x417)](_0x1c2da8 instanceof Blob?_0x1c2da8:await _0x1c2da8[_0xa5765(0x472)]());else{if(isAsyncIterable(_0x1c2da8))try{for(var _0x2f1d14=!![],_0x5ecffb=__asyncValues(_0x1c2da8),_0x30b7e9;_0x30b7e9=await _0x5ecffb['next'](),_0x3ce412=_0x30b7e9[_0xa5765(0x183)],!_0x3ce412;_0x2f1d14=!![]){_0x5e57ff=_0x30b7e9[_0xa5765(0x484)],_0x2f1d14=![];const _0x4c475b=_0x5e57ff;_0x5d3b8c[_0xa5765(0x417)](...await getBytes(_0x4c475b));}}catch(_0x4dc8b7){_0x32b5eb={'error':_0x4dc8b7};}finally{try{if(!_0x2f1d14&&!_0x3ce412&&(_0x56e65e=_0x5ecffb[_0xa5765(0x3fd)]))await _0x56e65e[_0xa5765(0x49b)](_0x5ecffb);}finally{if(_0x32b5eb)throw _0x32b5eb[_0xa5765(0x20b)];}}else{const _0x2c5987=(_0x551277=_0x1c2da8===null||_0x1c2da8===void 0x0?void 0x0:_0x1c2da8[_0xa5765(0x237)])===null||_0x551277===void 0x0?void 0x0:_0x551277[_0xa5765(0x68e)];throw new Error(_0xa5765(0x618)+typeof _0x1c2da8+(_0x2c5987?_0xa5765(0x5ac)+_0x2c5987:'')+propsForError(_0x1c2da8));}}}return _0x5d3b8c;}function propsForError(_0x13fce9){const _0x43e30b=a0_0x254c3a;if(typeof _0x13fce9!==_0x43e30b(0x46a)||_0x13fce9===null)return'';const _0x2be11c=Object[_0x43e30b(0x1c2)](_0x13fce9);return _0x43e30b(0x23a)+_0x2be11c[_0x43e30b(0x221)](_0x208aaf=>'\x22'+_0x208aaf+'\x22')['join'](',\x20')+']';}/**
152
+ * @license
153
+ * Copyright 2025 Google LLC
154
+ * SPDX-License-Identifier: Apache-2.0
155
+ */
156
+ class APIResource{constructor(_0x474382){this['_client']=_0x474382;}}APIResource[a0_0x254c3a(0x3c3)]=[];/**
157
+ * @license
158
+ * Copyright 2025 Google LLC
159
+ * SPDX-License-Identifier: Apache-2.0
160
+ */
161
+ function encodeURIPath(_0x340831){const _0xa92262=a0_0x254c3a;return _0x340831[_0xa92262(0x19f)](/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent);}const EMPTY=Object[a0_0x254c3a(0x187)](Object[a0_0x254c3a(0x1b6)](null)),createPathTagFunction=(_0x3f9001=encodeURIPath)=>function _0x22513e(_0x31f094,..._0x248d00){const _0xa6daf2=a0_0x254c3a;if(_0x31f094[_0xa6daf2(0x3d2)]===0x1)return _0x31f094[0x0];let _0xb3c279=![];const _0x4aafb1=[],_0xe54ee5=_0x31f094[_0xa6daf2(0x1ac)]((_0x5eff58,_0x5c28df,_0x5dfbc0)=>{const _0x5bcce2=_0xa6daf2;var _0x2ab97a,_0x5e1219,_0x48a7fe;/[?#]/[_0x5bcce2(0x5f3)](_0x5c28df)&&(_0xb3c279=!![]);const _0xc3f817=_0x248d00[_0x5dfbc0];let _0xc6fa89=(_0xb3c279?encodeURIComponent:_0x3f9001)(''+_0xc3f817);return _0x5dfbc0!==_0x248d00[_0x5bcce2(0x3d2)]&&(_0xc3f817==null||typeof _0xc3f817==='object'&&_0xc3f817['toString']===((_0x48a7fe=Object[_0x5bcce2(0x226)]((_0x5e1219=Object['getPrototypeOf']((_0x2ab97a=_0xc3f817['hasOwnProperty'])!==null&&_0x2ab97a!==void 0x0?_0x2ab97a:EMPTY))!==null&&_0x5e1219!==void 0x0?_0x5e1219:EMPTY))===null||_0x48a7fe===void 0x0?void 0x0:_0x48a7fe['toString']))&&(_0xc6fa89=_0xc3f817+'',_0x4aafb1[_0x5bcce2(0x417)]({'start':_0x5eff58[_0x5bcce2(0x3d2)]+_0x5c28df[_0x5bcce2(0x3d2)],'length':_0xc6fa89[_0x5bcce2(0x3d2)],'error':'Value\x20of\x20type\x20'+Object[_0x5bcce2(0x6b5)][_0x5bcce2(0x248)][_0x5bcce2(0x49b)](_0xc3f817)[_0x5bcce2(0x26b)](0x8,-0x1)+'\x20is\x20not\x20a\x20valid\x20path\x20parameter'})),_0x5eff58+_0x5c28df+(_0x5dfbc0===_0x248d00['length']?'':_0xc6fa89);},''),_0x34faa8=_0xe54ee5[_0xa6daf2(0x406)](/[?#]/,0x1)[0x0],_0x10d80b=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;let _0x2d8a47;while((_0x2d8a47=_0x10d80b[_0xa6daf2(0x604)](_0x34faa8))!==null){_0x4aafb1['push']({'start':_0x2d8a47[_0xa6daf2(0x60d)],'length':_0x2d8a47[0x0][_0xa6daf2(0x3d2)],'error':_0xa6daf2(0x593)+_0x2d8a47[0x0]+_0xa6daf2(0x62a)});}_0x4aafb1[_0xa6daf2(0x6c1)]((_0x7143e5,_0x4d57a1)=>_0x7143e5[_0xa6daf2(0x643)]-_0x4d57a1[_0xa6daf2(0x643)]);if(_0x4aafb1[_0xa6daf2(0x3d2)]>0x0){let _0x553da6=0x0;const _0x191937=_0x4aafb1[_0xa6daf2(0x1ac)]((_0x33f545,_0x275d35)=>{const _0x514bc9=_0xa6daf2,_0x28dba2='\x20'[_0x514bc9(0x6f2)](_0x275d35[_0x514bc9(0x643)]-_0x553da6),_0x55a44f='^'['repeat'](_0x275d35[_0x514bc9(0x3d2)]);return _0x553da6=_0x275d35[_0x514bc9(0x643)]+_0x275d35[_0x514bc9(0x3d2)],_0x33f545+_0x28dba2+_0x55a44f;},'');throw new GeminiNextGenAPIClientError(_0xa6daf2(0x455)+_0x4aafb1['map'](_0x503fb2=>_0x503fb2[_0xa6daf2(0x20b)])['join']('\x0a')+'\x0a'+_0xe54ee5+'\x0a'+_0x191937);}return _0xe54ee5;},path=createPathTagFunction(encodeURIPath);/**
162
+ * @license
163
+ * Copyright 2025 Google LLC
164
+ * SPDX-License-Identifier: Apache-2.0
165
+ */
166
+ class BaseInteractions extends APIResource{['create'](_0x37c284,_0x438945){const _0x20301e=a0_0x254c3a;var _0xd8ef9a;const {api_version:api_version=this[_0x20301e(0x62b)]['apiVersion']}=_0x37c284,_0x218b04=__rest(_0x37c284,[_0x20301e(0x3ec)]);if('model'in _0x218b04&&_0x20301e(0x31c)in _0x218b04)throw new GeminiNextGenAPIClientError(_0x20301e(0x235));if(_0x20301e(0x6ec)in _0x218b04&&_0x20301e(0x17b)in _0x218b04)throw new GeminiNextGenAPIClientError(_0x20301e(0x31b));return this[_0x20301e(0x62b)][_0x20301e(0x1d6)](path`/${api_version}/interactions`,Object[_0x20301e(0x64e)](Object['assign']({'body':_0x218b04},_0x438945),{'stream':(_0xd8ef9a=_0x37c284['stream'])!==null&&_0xd8ef9a!==void 0x0?_0xd8ef9a:![]}));}['delete'](_0x1c58a7,_0x1cf7cb={},_0x41d62e){const _0x58ccea=a0_0x254c3a,{api_version:api_version=this['_client']['apiVersion']}=_0x1cf7cb!==null&&_0x1cf7cb!==void 0x0?_0x1cf7cb:{};return this[_0x58ccea(0x62b)][_0x58ccea(0x625)](path`/${api_version}/interactions/${_0x1c58a7}`,_0x41d62e);}[a0_0x254c3a(0x50d)](_0x133556,_0x38f540={},_0x28e535){const _0x452147=a0_0x254c3a,{api_version:api_version=this[_0x452147(0x62b)][_0x452147(0x2d1)]}=_0x38f540!==null&&_0x38f540!==void 0x0?_0x38f540:{};return this[_0x452147(0x62b)][_0x452147(0x1d6)](path`/${api_version}/interactions/${_0x133556}/cancel`,_0x28e535);}[a0_0x254c3a(0x296)](_0x4cadfc,_0x3b81cb={},_0x361288){const _0x5ced94=a0_0x254c3a;var _0x2661a7;const _0x2be500=_0x3b81cb!==null&&_0x3b81cb!==void 0x0?_0x3b81cb:{},{api_version:api_version=this[_0x5ced94(0x62b)]['apiVersion']}=_0x2be500,_0x2d96f8=__rest(_0x2be500,['api_version']);return this['_client'][_0x5ced94(0x296)](path`/${api_version}/interactions/${_0x4cadfc}`,Object[_0x5ced94(0x64e)](Object[_0x5ced94(0x64e)]({'query':_0x2d96f8},_0x361288),{'stream':(_0x2661a7=_0x3b81cb===null||_0x3b81cb===void 0x0?void 0x0:_0x3b81cb['stream'])!==null&&_0x2661a7!==void 0x0?_0x2661a7:![]}));}}BaseInteractions[a0_0x254c3a(0x3c3)]=Object[a0_0x254c3a(0x187)]([a0_0x254c3a(0x204)]);class Interactions extends BaseInteractions{}/**
167
+ * @license
168
+ * Copyright 2025 Google LLC
169
+ * SPDX-License-Identifier: Apache-2.0
170
+ */
171
+ function concatBytes(_0x138528){const _0x7f4591=a0_0x254c3a;let _0x4b69c0=0x0;for(const _0x119cf2 of _0x138528){_0x4b69c0+=_0x119cf2[_0x7f4591(0x3d2)];}const _0x32f4d0=new Uint8Array(_0x4b69c0);let _0x4a1b27=0x0;for(const _0x42642c of _0x138528){_0x32f4d0['set'](_0x42642c,_0x4a1b27),_0x4a1b27+=_0x42642c[_0x7f4591(0x3d2)];}return _0x32f4d0;}let encodeUTF8_;function encodeUTF8(_0x2ea444){const _0x5385e0=a0_0x254c3a;let _0x122961;return(encodeUTF8_!==null&&encodeUTF8_!==void 0x0?encodeUTF8_:(_0x122961=new globalThis['TextEncoder'](),encodeUTF8_=_0x122961[_0x5385e0(0x252)][_0x5385e0(0x426)](_0x122961)))(_0x2ea444);}let decodeUTF8_;function decodeUTF8(_0x37c6b4){const _0x203f20=a0_0x254c3a;let _0x55ef8c;return(decodeUTF8_!==null&&decodeUTF8_!==void 0x0?decodeUTF8_:(_0x55ef8c=new globalThis['TextDecoder'](),decodeUTF8_=_0x55ef8c[_0x203f20(0x2d7)][_0x203f20(0x426)](_0x55ef8c)))(_0x37c6b4);}/**
172
+ * @license
173
+ * Copyright 2025 Google LLC
174
+ * SPDX-License-Identifier: Apache-2.0
175
+ */
176
+ class LineDecoder{constructor(){const _0x15a65c=a0_0x254c3a;this['buffer']=new Uint8Array(),this[_0x15a65c(0x5a2)]=null;}[a0_0x254c3a(0x2d7)](_0xf95415){const _0x131900=a0_0x254c3a;if(_0xf95415==null)return[];const _0x48c26a=_0xf95415 instanceof ArrayBuffer?new Uint8Array(_0xf95415):typeof _0xf95415===_0x131900(0x4ae)?encodeUTF8(_0xf95415):_0xf95415;this['buffer']=concatBytes([this['buffer'],_0x48c26a]);const _0x3d72ea=[];let _0x5a80fa;while((_0x5a80fa=findNewlineIndex(this[_0x131900(0x26a)],this[_0x131900(0x5a2)]))!=null){if(_0x5a80fa[_0x131900(0x6b2)]&&this[_0x131900(0x5a2)]==null){this[_0x131900(0x5a2)]=_0x5a80fa['index'];continue;}if(this[_0x131900(0x5a2)]!=null&&(_0x5a80fa[_0x131900(0x60d)]!==this['carriageReturnIndex']+0x1||_0x5a80fa[_0x131900(0x6b2)])){_0x3d72ea[_0x131900(0x417)](decodeUTF8(this[_0x131900(0x26a)][_0x131900(0x499)](0x0,this[_0x131900(0x5a2)]-0x1))),this[_0x131900(0x26a)]=this[_0x131900(0x26a)][_0x131900(0x499)](this['carriageReturnIndex']),this[_0x131900(0x5a2)]=null;continue;}const _0x52e5ee=this[_0x131900(0x5a2)]!==null?_0x5a80fa['preceding']-0x1:_0x5a80fa[_0x131900(0x594)],_0x4d02fd=decodeUTF8(this[_0x131900(0x26a)][_0x131900(0x499)](0x0,_0x52e5ee));_0x3d72ea['push'](_0x4d02fd),this['buffer']=this[_0x131900(0x26a)]['subarray'](_0x5a80fa[_0x131900(0x60d)]),this['carriageReturnIndex']=null;}return _0x3d72ea;}[a0_0x254c3a(0x67e)](){const _0x810187=a0_0x254c3a;if(!this['buffer'][_0x810187(0x3d2)])return[];return this['decode']('\x0a');}}LineDecoder['NEWLINE_CHARS']=new Set(['\x0a','\x0d']),LineDecoder[a0_0x254c3a(0x6c4)]=/\r\n|[\n\r]/g;function findNewlineIndex(_0x2d93b2,_0x5696ef){const _0x157d98=a0_0x254c3a,_0x532370=0xa,_0x241582=0xd;for(let _0x2986cf=_0x5696ef!==null&&_0x5696ef!==void 0x0?_0x5696ef:0x0;_0x2986cf<_0x2d93b2[_0x157d98(0x3d2)];_0x2986cf++){if(_0x2d93b2[_0x2986cf]===_0x532370)return{'preceding':_0x2986cf,'index':_0x2986cf+0x1,'carriage':![]};if(_0x2d93b2[_0x2986cf]===_0x241582)return{'preceding':_0x2986cf,'index':_0x2986cf+0x1,'carriage':!![]};}return null;}function findDoubleNewlineIndex(_0x4bdf61){const _0x27d45d=a0_0x254c3a,_0x2eb9dd=0xa,_0x4f3e1c=0xd;for(let _0x5cdba7=0x0;_0x5cdba7<_0x4bdf61['length']-0x1;_0x5cdba7++){if(_0x4bdf61[_0x5cdba7]===_0x2eb9dd&&_0x4bdf61[_0x5cdba7+0x1]===_0x2eb9dd)return _0x5cdba7+0x2;if(_0x4bdf61[_0x5cdba7]===_0x4f3e1c&&_0x4bdf61[_0x5cdba7+0x1]===_0x4f3e1c)return _0x5cdba7+0x2;if(_0x4bdf61[_0x5cdba7]===_0x4f3e1c&&_0x4bdf61[_0x5cdba7+0x1]===_0x2eb9dd&&_0x5cdba7+0x3<_0x4bdf61[_0x27d45d(0x3d2)]&&_0x4bdf61[_0x5cdba7+0x2]===_0x4f3e1c&&_0x4bdf61[_0x5cdba7+0x3]===_0x2eb9dd)return _0x5cdba7+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=(_0x215a5b,_0x2c0f98,_0x31d701)=>{const _0x2ac4d0=a0_0x254c3a;if(!_0x215a5b)return undefined;if(hasOwn(levelNumbers,_0x215a5b))return _0x215a5b;return loggerFor(_0x31d701)[_0x2ac4d0(0x69c)](_0x2c0f98+_0x2ac4d0(0x65e)+JSON['stringify'](_0x215a5b)+',\x20expected\x20one\x20of\x20'+JSON[_0x2ac4d0(0x59a)](Object[_0x2ac4d0(0x421)](levelNumbers))),undefined;};function noop(){}function makeLogFn(_0x507c31,_0x4f179c,_0x26b05e){const _0x27d34e=a0_0x254c3a;return!_0x4f179c||levelNumbers[_0x507c31]>levelNumbers[_0x26b05e]?noop:_0x4f179c[_0x507c31][_0x27d34e(0x426)](_0x4f179c);}const noopLogger={'error':noop,'warn':noop,'info':noop,'debug':noop};let cachedLoggers=new WeakMap();function loggerFor(_0x11de8d){const _0x326687=a0_0x254c3a;var _0x56dd38;const _0x130f16=_0x11de8d['logger'],_0x10737b=(_0x56dd38=_0x11de8d['logLevel'])!==null&&_0x56dd38!==void 0x0?_0x56dd38:'off';if(!_0x130f16)return noopLogger;const _0x4d27ef=cachedLoggers['get'](_0x130f16);if(_0x4d27ef&&_0x4d27ef[0x0]===_0x10737b)return _0x4d27ef[0x1];const _0x4f492c={'error':makeLogFn(_0x326687(0x20b),_0x130f16,_0x10737b),'warn':makeLogFn(_0x326687(0x69c),_0x130f16,_0x10737b),'info':makeLogFn(_0x326687(0x513),_0x130f16,_0x10737b),'debug':makeLogFn(_0x326687(0x407),_0x130f16,_0x10737b)};return cachedLoggers[_0x326687(0x4f2)](_0x130f16,[_0x10737b,_0x4f492c]),_0x4f492c;}const formatRequestDetails=_0x130f66=>{const _0x399076=a0_0x254c3a;return _0x130f66[_0x399076(0x180)]&&(_0x130f66[_0x399076(0x180)]=Object[_0x399076(0x64e)]({},_0x130f66[_0x399076(0x180)]),delete _0x130f66[_0x399076(0x180)][_0x399076(0x4e8)]),_0x130f66['headers']&&(_0x130f66[_0x399076(0x4e8)]=Object[_0x399076(0x628)]((_0x130f66[_0x399076(0x4e8)]instanceof Headers?[..._0x130f66[_0x399076(0x4e8)]]:Object[_0x399076(0x1ae)](_0x130f66[_0x399076(0x4e8)]))[_0x399076(0x221)](([_0x3dea7c,_0x3a80dc])=>[_0x3dea7c,_0x3dea7c[_0x399076(0x51a)]()===_0x399076(0x4e3)||_0x3dea7c['toLowerCase']()===_0x399076(0x404)||_0x3dea7c[_0x399076(0x51a)]()===_0x399076(0x1ca)||_0x3dea7c['toLowerCase']()===_0x399076(0x1fc)?_0x399076(0x1d0):_0x3a80dc]))),_0x399076(0x62c)in _0x130f66&&(_0x130f66[_0x399076(0x62c)]&&(_0x130f66[_0x399076(0x6cb)]=_0x130f66[_0x399076(0x62c)]),delete _0x130f66[_0x399076(0x62c)]),_0x130f66;};/**
182
+ * @license
183
+ * Copyright 2025 Google LLC
184
+ * SPDX-License-Identifier: Apache-2.0
185
+ */
186
+ class Stream{constructor(_0x61873a,_0x4677f1,_0x26c377){const _0x369bac=a0_0x254c3a;this[_0x369bac(0x545)]=_0x61873a,this[_0x369bac(0x5a0)]=_0x4677f1,this['client']=_0x26c377;}static['fromSSEResponse'](_0x32073f,_0x1c7ca9,_0x5d3fab){let _0x39367c=![];const _0x408dba=_0x5d3fab?loggerFor(_0x5d3fab):console;function _0x522976(){return __asyncGenerator(this,arguments,function*_0x538f26(){const _0x355ca2=a0_0x3530;var _0x23814f,_0x532793,_0x38174c,_0x38bf04;if(_0x39367c)throw new GeminiNextGenAPIClientError('Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.');_0x39367c=!![];let _0x595562=![];try{try{for(var _0x53a1b0=!![],_0x36b4d1=__asyncValues(_iterSSEMessages(_0x32073f,_0x1c7ca9)),_0x49ba10;_0x49ba10=yield __await(_0x36b4d1['next']()),_0x23814f=_0x49ba10['done'],!_0x23814f;_0x53a1b0=!![]){_0x38bf04=_0x49ba10[_0x355ca2(0x484)],_0x53a1b0=![];const _0x146dbd=_0x38bf04;if(_0x595562)continue;if(_0x146dbd[_0x355ca2(0x526)][_0x355ca2(0x320)]('[DONE]')){_0x595562=!![];continue;}else try{yield yield __await(JSON[_0x355ca2(0x5c1)](_0x146dbd[_0x355ca2(0x526)]));}catch(_0x334496){_0x408dba[_0x355ca2(0x20b)](_0x355ca2(0x27d),_0x146dbd['data']),_0x408dba['error']('From\x20chunk:',_0x146dbd['raw']);throw _0x334496;}}}catch(_0x503f6d){_0x532793={'error':_0x503f6d};}finally{try{if(!_0x53a1b0&&!_0x23814f&&(_0x38174c=_0x36b4d1[_0x355ca2(0x3fd)]))yield __await(_0x38174c[_0x355ca2(0x49b)](_0x36b4d1));}finally{if(_0x532793)throw _0x532793[_0x355ca2(0x20b)];}}_0x595562=!![];}catch(_0x5781b4){if(isAbortError(_0x5781b4))return yield __await(void 0x0);throw _0x5781b4;}finally{if(!_0x595562)_0x1c7ca9[_0x355ca2(0x4bc)]();}});}return new Stream(_0x522976,_0x1c7ca9,_0x5d3fab);}static['fromReadableStream'](_0x48dc17,_0x5ad36b,_0x486ab6){let _0x87eafd=![];function _0x540ea2(){return __asyncGenerator(this,arguments,function*_0x14ed2c(){const _0x41709a=a0_0x3530;var _0x193dc6,_0x10ede4,_0x5f43a2,_0x3344a5;const _0x189af4=new LineDecoder(),_0x475b7f=ReadableStreamToAsyncIterable(_0x48dc17);try{for(var _0x4912fc=!![],_0x3ab1be=__asyncValues(_0x475b7f),_0x3a425b;_0x3a425b=yield __await(_0x3ab1be[_0x41709a(0x33e)]()),_0x193dc6=_0x3a425b[_0x41709a(0x183)],!_0x193dc6;_0x4912fc=!![]){_0x3344a5=_0x3a425b[_0x41709a(0x484)],_0x4912fc=![];const _0x386a2d=_0x3344a5;for(const _0x31953d of _0x189af4[_0x41709a(0x2d7)](_0x386a2d)){yield yield __await(_0x31953d);}}}catch(_0x1954d6){_0x10ede4={'error':_0x1954d6};}finally{try{if(!_0x4912fc&&!_0x193dc6&&(_0x5f43a2=_0x3ab1be['return']))yield __await(_0x5f43a2[_0x41709a(0x49b)](_0x3ab1be));}finally{if(_0x10ede4)throw _0x10ede4[_0x41709a(0x20b)];}}for(const _0x2545dd of _0x189af4[_0x41709a(0x67e)]()){yield yield __await(_0x2545dd);}});}function _0x338416(){return __asyncGenerator(this,arguments,function*_0x4999d8(){const _0xf18036=a0_0x3530;var _0x8e1ca5,_0x7f8e1f,_0x1ffc9d,_0x468aee;if(_0x87eafd)throw new GeminiNextGenAPIClientError(_0xf18036(0x5e6));_0x87eafd=!![];let _0x3023e3=![];try{try{for(var _0x551ef8=!![],_0x4a4447=__asyncValues(_0x540ea2()),_0x45e3a0;_0x45e3a0=yield __await(_0x4a4447[_0xf18036(0x33e)]()),_0x8e1ca5=_0x45e3a0[_0xf18036(0x183)],!_0x8e1ca5;_0x551ef8=!![]){_0x468aee=_0x45e3a0[_0xf18036(0x484)],_0x551ef8=![];const _0x58c0e8=_0x468aee;if(_0x3023e3)continue;if(_0x58c0e8)yield yield __await(JSON[_0xf18036(0x5c1)](_0x58c0e8));}}catch(_0x1d1af1){_0x7f8e1f={'error':_0x1d1af1};}finally{try{if(!_0x551ef8&&!_0x8e1ca5&&(_0x1ffc9d=_0x4a4447['return']))yield __await(_0x1ffc9d['call'](_0x4a4447));}finally{if(_0x7f8e1f)throw _0x7f8e1f['error'];}}_0x3023e3=!![];}catch(_0x580077){if(isAbortError(_0x580077))return yield __await(void 0x0);throw _0x580077;}finally{if(!_0x3023e3)_0x5ad36b['abort']();}});}return new Stream(_0x338416,_0x5ad36b,_0x486ab6);}[Symbol[a0_0x254c3a(0x561)]](){const _0xcede=a0_0x254c3a;return this[_0xcede(0x545)]();}[a0_0x254c3a(0x498)](){const _0x508154=a0_0x254c3a,_0x49bf81=[],_0x2e4250=[],_0x2e1b55=this['iterator'](),_0x5589c3=_0x506d9c=>{return{'next':()=>{const _0x525bff=a0_0x3530;if(_0x506d9c['length']===0x0){const _0x157e73=_0x2e1b55[_0x525bff(0x33e)]();_0x49bf81[_0x525bff(0x417)](_0x157e73),_0x2e4250['push'](_0x157e73);}return _0x506d9c['shift']();}};};return[new Stream(()=>_0x5589c3(_0x49bf81),this[_0x508154(0x5a0)],this['client']),new Stream(()=>_0x5589c3(_0x2e4250),this[_0x508154(0x5a0)],this['client'])];}[a0_0x254c3a(0x1b8)](){const _0x5975fb=this;let _0xf74b7d;return makeReadableStream({async 'start'(){const _0x3a5832=a0_0x3530;_0xf74b7d=_0x5975fb[Symbol[_0x3a5832(0x561)]]();},async 'pull'(_0x2533c7){const _0x59865b=a0_0x3530;try{const {value:_0x540aa2,done:_0x4676ba}=await _0xf74b7d['next']();if(_0x4676ba)return _0x2533c7[_0x59865b(0x588)]();const _0x137869=encodeUTF8(JSON['stringify'](_0x540aa2)+'\x0a');_0x2533c7['enqueue'](_0x137869);}catch(_0x3d0d78){_0x2533c7[_0x59865b(0x20b)](_0x3d0d78);}},async 'cancel'(){const _0x33f6ed=a0_0x3530;var _0x4904c9;await((_0x4904c9=_0xf74b7d[_0x33f6ed(0x3fd)])===null||_0x4904c9===void 0x0?void 0x0:_0x4904c9['call'](_0xf74b7d));}});}}function _iterSSEMessages(_0x2f0b95,_0x5a32ee){return __asyncGenerator(this,arguments,function*_0x29b929(){const _0x5e09b8=a0_0x3530;var _0x445fdc,_0x25ce38,_0x417502,_0x15275c;if(!_0x2f0b95[_0x5e09b8(0x553)]){_0x5a32ee['abort']();if(typeof globalThis['navigator']!=='undefined'&&globalThis[_0x5e09b8(0x495)][_0x5e09b8(0x6c6)]===_0x5e09b8(0x5bd))throw new GeminiNextGenAPIClientError(_0x5e09b8(0x5c8));throw new GeminiNextGenAPIClientError('Attempted\x20to\x20iterate\x20over\x20a\x20response\x20with\x20no\x20body');}const _0x5449cf=new SSEDecoder(),_0x1f8563=new LineDecoder(),_0x130f98=ReadableStreamToAsyncIterable(_0x2f0b95[_0x5e09b8(0x553)]);try{for(var _0x453dc4=!![],_0x36ddae=__asyncValues(iterSSEChunks(_0x130f98)),_0x2a4b7f;_0x2a4b7f=yield __await(_0x36ddae[_0x5e09b8(0x33e)]()),_0x445fdc=_0x2a4b7f['done'],!_0x445fdc;_0x453dc4=!![]){_0x15275c=_0x2a4b7f[_0x5e09b8(0x484)],_0x453dc4=![];const _0x55422a=_0x15275c;for(const _0x12d256 of _0x1f8563[_0x5e09b8(0x2d7)](_0x55422a)){const _0xc8cf28=_0x5449cf['decode'](_0x12d256);if(_0xc8cf28)yield yield __await(_0xc8cf28);}}}catch(_0x590c71){_0x25ce38={'error':_0x590c71};}finally{try{if(!_0x453dc4&&!_0x445fdc&&(_0x417502=_0x36ddae[_0x5e09b8(0x3fd)]))yield __await(_0x417502[_0x5e09b8(0x49b)](_0x36ddae));}finally{if(_0x25ce38)throw _0x25ce38[_0x5e09b8(0x20b)];}}for(const _0x2cb8b2 of _0x1f8563[_0x5e09b8(0x67e)]()){const _0x2659ed=_0x5449cf[_0x5e09b8(0x2d7)](_0x2cb8b2);if(_0x2659ed)yield yield __await(_0x2659ed);}});}function iterSSEChunks(_0x67ce47){return __asyncGenerator(this,arguments,function*_0x3b3965(){const _0x278970=a0_0x3530;var _0x3f032b,_0x25a909,_0x57211e,_0x5cc4d8;let _0x50eda8=new Uint8Array();try{for(var _0x3cd4ee=!![],_0x33aeb8=__asyncValues(_0x67ce47),_0x4c16fe;_0x4c16fe=yield __await(_0x33aeb8[_0x278970(0x33e)]()),_0x3f032b=_0x4c16fe[_0x278970(0x183)],!_0x3f032b;_0x3cd4ee=!![]){_0x5cc4d8=_0x4c16fe['value'],_0x3cd4ee=![];const _0x527af1=_0x5cc4d8;if(_0x527af1==null)continue;const _0x4a9484=_0x527af1 instanceof ArrayBuffer?new Uint8Array(_0x527af1):typeof _0x527af1===_0x278970(0x4ae)?encodeUTF8(_0x527af1):_0x527af1;let _0x130fa3=new Uint8Array(_0x50eda8['length']+_0x4a9484[_0x278970(0x3d2)]);_0x130fa3['set'](_0x50eda8),_0x130fa3[_0x278970(0x4f2)](_0x4a9484,_0x50eda8[_0x278970(0x3d2)]),_0x50eda8=_0x130fa3;let _0x34f03f;while((_0x34f03f=findDoubleNewlineIndex(_0x50eda8))!==-0x1){yield yield __await(_0x50eda8[_0x278970(0x26b)](0x0,_0x34f03f)),_0x50eda8=_0x50eda8[_0x278970(0x26b)](_0x34f03f);}}}catch(_0x33ce52){_0x25a909={'error':_0x33ce52};}finally{try{if(!_0x3cd4ee&&!_0x3f032b&&(_0x57211e=_0x33aeb8[_0x278970(0x3fd)]))yield __await(_0x57211e[_0x278970(0x49b)](_0x33aeb8));}finally{if(_0x25a909)throw _0x25a909[_0x278970(0x20b)];}}_0x50eda8['length']>0x0&&(yield yield __await(_0x50eda8));});}class SSEDecoder{constructor(){const _0x440117=a0_0x254c3a;this[_0x440117(0x556)]=null,this['data']=[],this['chunks']=[];}[a0_0x254c3a(0x2d7)](_0x5c8790){const _0x1f9bac=a0_0x254c3a;_0x5c8790[_0x1f9bac(0x53e)]('\x0d')&&(_0x5c8790=_0x5c8790[_0x1f9bac(0x705)](0x0,_0x5c8790[_0x1f9bac(0x3d2)]-0x1));if(!_0x5c8790){if(!this[_0x1f9bac(0x556)]&&!this[_0x1f9bac(0x526)][_0x1f9bac(0x3d2)])return null;const _0x579e2f={'event':this[_0x1f9bac(0x556)],'data':this['data'][_0x1f9bac(0x173)]('\x0a'),'raw':this[_0x1f9bac(0x302)]};return this[_0x1f9bac(0x556)]=null,this[_0x1f9bac(0x526)]=[],this[_0x1f9bac(0x302)]=[],_0x579e2f;}this['chunks'][_0x1f9bac(0x417)](_0x5c8790);if(_0x5c8790[_0x1f9bac(0x320)](':'))return null;let [_0x134edf,_0x1fb36e,_0x1b5628]=partition(_0x5c8790,':');_0x1b5628[_0x1f9bac(0x320)]('\x20')&&(_0x1b5628=_0x1b5628['substring'](0x1));if(_0x134edf===_0x1f9bac(0x556))this[_0x1f9bac(0x556)]=_0x1b5628;else _0x134edf===_0x1f9bac(0x526)&&this[_0x1f9bac(0x526)]['push'](_0x1b5628);return null;}}function partition(_0x1e2db8,_0x5db984){const _0x31c34d=a0_0x254c3a,_0x22c4ce=_0x1e2db8[_0x31c34d(0x4f5)](_0x5db984);if(_0x22c4ce!==-0x1)return[_0x1e2db8[_0x31c34d(0x705)](0x0,_0x22c4ce),_0x5db984,_0x1e2db8[_0x31c34d(0x705)](_0x22c4ce+_0x5db984[_0x31c34d(0x3d2)])];return[_0x1e2db8,'',''];}/**
187
+ * @license
188
+ * Copyright 2025 Google LLC
189
+ * SPDX-License-Identifier: Apache-2.0
190
+ */
191
+ async function defaultParseResponse(_0x320e24,_0x29064e){const _0x51f56b=a0_0x254c3a,{response:_0x44186d,requestLogID:_0x5b09c3,retryOfRequestLogID:_0x12c5f9,startTime:_0x44a2e1}=_0x29064e,_0x52dbc5=await((async()=>{const _0x4950d8=a0_0x3530;var _0x233b36;if(_0x29064e[_0x4950d8(0x180)][_0x4950d8(0x177)]){loggerFor(_0x320e24)[_0x4950d8(0x407)]('response',_0x44186d['status'],_0x44186d['url'],_0x44186d['headers'],_0x44186d[_0x4950d8(0x553)]);if(_0x29064e[_0x4950d8(0x180)][_0x4950d8(0x1df)])return _0x29064e[_0x4950d8(0x180)][_0x4950d8(0x1df)][_0x4950d8(0x726)](_0x44186d,_0x29064e['controller'],_0x320e24);return Stream[_0x4950d8(0x726)](_0x44186d,_0x29064e[_0x4950d8(0x5a0)],_0x320e24);}if(_0x44186d[_0x4950d8(0x560)]===0xcc)return null;if(_0x29064e['options']['__binaryResponse'])return _0x44186d;const _0x3af2b0=_0x44186d['headers']['get'](_0x4950d8(0x2bb)),_0x227835=(_0x233b36=_0x3af2b0===null||_0x3af2b0===void 0x0?void 0x0:_0x3af2b0[_0x4950d8(0x406)](';')[0x0])===null||_0x233b36===void 0x0?void 0x0:_0x233b36['trim'](),_0x42ea92=(_0x227835===null||_0x227835===void 0x0?void 0x0:_0x227835['includes'](_0x4950d8(0x3a7)))||(_0x227835===null||_0x227835===void 0x0?void 0x0:_0x227835[_0x4950d8(0x53e)](_0x4950d8(0x202)));if(_0x42ea92){const _0x2ea582=_0x44186d['headers'][_0x4950d8(0x296)]('content-length');if(_0x2ea582==='0')return undefined;const _0x29e35f=await _0x44186d[_0x4950d8(0x288)]();return _0x29e35f;}const _0x4acc2e=await _0x44186d['text']();return _0x4acc2e;})());return loggerFor(_0x320e24)[_0x51f56b(0x407)]('['+_0x5b09c3+_0x51f56b(0x3ab),formatRequestDetails({'retryOfRequestLogID':_0x12c5f9,'url':_0x44186d[_0x51f56b(0x68b)],'status':_0x44186d[_0x51f56b(0x560)],'body':_0x52dbc5,'durationMs':Date['now']()-_0x44a2e1})),_0x52dbc5;}/**
192
+ * @license
193
+ * Copyright 2025 Google LLC
194
+ * SPDX-License-Identifier: Apache-2.0
195
+ */
196
+ class APIPromise extends Promise{constructor(_0x374c83,_0x59a114,_0x2c49d5=defaultParseResponse){const _0x3e43d4=a0_0x254c3a;super(_0x1c365a=>{_0x1c365a(null);}),this['responsePromise']=_0x59a114,this[_0x3e43d4(0x25d)]=_0x2c49d5,this[_0x3e43d4(0x225)]=_0x374c83;}[a0_0x254c3a(0x2ec)](_0x1d4ae0){const _0x293b7e=a0_0x254c3a;return new APIPromise(this[_0x293b7e(0x225)],this[_0x293b7e(0x2a8)],async(_0x52e199,_0x2eeca1)=>_0x1d4ae0(await this['parseResponse'](_0x52e199,_0x2eeca1),_0x2eeca1));}['asResponse'](){const _0x127e85=a0_0x254c3a;return this[_0x127e85(0x2a8)][_0x127e85(0x3a5)](_0x1aa916=>_0x1aa916[_0x127e85(0x218)]);}async[a0_0x254c3a(0x350)](){const _0x3ea237=a0_0x254c3a,[_0x891421,_0x46e364]=await Promise[_0x3ea237(0x443)]([this[_0x3ea237(0x5c1)](),this[_0x3ea237(0x496)]()]);return{'data':_0x891421,'response':_0x46e364};}['parse'](){const _0x2949a8=a0_0x254c3a;return!this['parsedPromise']&&(this[_0x2949a8(0x4b2)]=this[_0x2949a8(0x2a8)][_0x2949a8(0x3a5)](_0x73ca36=>this['parseResponse'](this[_0x2949a8(0x225)],_0x73ca36))),this['parsedPromise'];}[a0_0x254c3a(0x3a5)](_0x512f06,_0x1067c9){const _0x2e69d6=a0_0x254c3a;return this[_0x2e69d6(0x5c1)]()[_0x2e69d6(0x3a5)](_0x512f06,_0x1067c9);}[a0_0x254c3a(0x4ba)](_0x3235ca){const _0x261d19=a0_0x254c3a;return this[_0x261d19(0x5c1)]()[_0x261d19(0x4ba)](_0x3235ca);}[a0_0x254c3a(0x502)](_0xd052ae){const _0x14c057=a0_0x254c3a;return this['parse']()[_0x14c057(0x502)](_0xd052ae);}}/**
197
+ * @license
198
+ * Copyright 2025 Google LLC
199
+ * SPDX-License-Identifier: Apache-2.0
200
+ */
201
+ const brand_privateNullableHeaders=Symbol(a0_0x254c3a(0x5bb));function*iterateHeaders(_0x2f685f){const _0x3b122a=a0_0x254c3a;if(!_0x2f685f)return;if(brand_privateNullableHeaders in _0x2f685f){const {values:_0x288046,nulls:_0x329c4d}=_0x2f685f;yield*_0x288046['entries']();for(const _0x1affa2 of _0x329c4d){yield[_0x1affa2,null];}return;}let _0x17a086=![],_0x57d60e;if(_0x2f685f instanceof Headers)_0x57d60e=_0x2f685f[_0x3b122a(0x1ae)]();else isReadonlyArray(_0x2f685f)?_0x57d60e=_0x2f685f:(_0x17a086=!![],_0x57d60e=Object['entries'](_0x2f685f!==null&&_0x2f685f!==void 0x0?_0x2f685f:{}));for(let _0x1af9b8 of _0x57d60e){const _0x24b439=_0x1af9b8[0x0];if(typeof _0x24b439!=='string')throw new TypeError(_0x3b122a(0x587));const _0x552a64=isReadonlyArray(_0x1af9b8[0x1])?_0x1af9b8[0x1]:[_0x1af9b8[0x1]];let _0x481f11=![];for(const _0x592877 of _0x552a64){if(_0x592877===undefined)continue;_0x17a086&&!_0x481f11&&(_0x481f11=!![],yield[_0x24b439,null]),yield[_0x24b439,_0x592877];}}}const buildHeaders=_0x4db297=>{const _0x2e5cb3=a0_0x254c3a,_0x393f1b=new Headers(),_0x28c322=new Set();for(const _0x2e1ef8 of _0x4db297){const _0x77825a=new Set();for(const [_0x30bcef,_0x16f66c]of iterateHeaders(_0x2e1ef8)){const _0x37983b=_0x30bcef['toLowerCase']();!_0x77825a[_0x2e5cb3(0x399)](_0x37983b)&&(_0x393f1b[_0x2e5cb3(0x625)](_0x30bcef),_0x77825a[_0x2e5cb3(0x4be)](_0x37983b)),_0x16f66c===null?(_0x393f1b[_0x2e5cb3(0x625)](_0x30bcef),_0x28c322[_0x2e5cb3(0x4be)](_0x37983b)):(_0x393f1b[_0x2e5cb3(0x30e)](_0x30bcef,_0x16f66c),_0x28c322['delete'](_0x37983b));}}return{[brand_privateNullableHeaders]:!![],'values':_0x393f1b,'nulls':_0x28c322};},readEnv=_0x31d27f=>{const _0x1e4446=a0_0x254c3a;var _0x246663,_0x4a6a9d,_0x501277,_0x51be05,_0x4c6f47,_0x22a47e;if(typeof globalThis[_0x1e4446(0x567)]!==_0x1e4446(0x66c))return(_0x501277=(_0x4a6a9d=(_0x246663=globalThis[_0x1e4446(0x567)][_0x1e4446(0x574)])===null||_0x246663===void 0x0?void 0x0:_0x246663[_0x31d27f])===null||_0x4a6a9d===void 0x0?void 0x0:_0x4a6a9d['trim']())!==null&&_0x501277!==void 0x0?_0x501277:undefined;if(typeof globalThis[_0x1e4446(0x1a2)]!==_0x1e4446(0x66c))return(_0x22a47e=(_0x4c6f47=(_0x51be05=globalThis[_0x1e4446(0x1a2)]['env'])===null||_0x51be05===void 0x0?void 0x0:_0x51be05[_0x1e4446(0x296)])===null||_0x4c6f47===void 0x0?void 0x0:_0x4c6f47[_0x1e4446(0x49b)](_0x51be05,_0x31d27f))===null||_0x22a47e===void 0x0?void 0x0:_0x22a47e[_0x1e4446(0x174)]();return undefined;};/**
202
+ * @license
203
+ * Copyright 2025 Google LLC
204
+ * SPDX-License-Identifier: Apache-2.0
205
+ */
206
+ var _a;class BaseGeminiNextGenAPIClient{constructor(_0x94d5a6){const _0x58a4d0=a0_0x254c3a;var _0x4288ee,_0x32d267,_0x4ac151,_0x1ef753,_0x25cad7,_0x1611bd,_0x1b4e3f,{baseURL:baseURL=readEnv('GEMINI_NEXT_GEN_API_BASE_URL'),apiKey:apiKey=(_0x4288ee=readEnv(_0x58a4d0(0x5ee)))!==null&&_0x4288ee!==void 0x0?_0x4288ee:null,apiVersion:apiVersion=_0x58a4d0(0x670)}=_0x94d5a6,_0x3bcd74=__rest(_0x94d5a6,[_0x58a4d0(0x6bb),_0x58a4d0(0x6a4),_0x58a4d0(0x2d1)]);const _0x312561=Object[_0x58a4d0(0x64e)](Object[_0x58a4d0(0x64e)]({'apiKey':apiKey,'apiVersion':apiVersion},_0x3bcd74),{'baseURL':baseURL||_0x58a4d0(0x683)});this['baseURL']=_0x312561[_0x58a4d0(0x6bb)],this['timeout']=(_0x32d267=_0x312561[_0x58a4d0(0x4a1)])!==null&&_0x32d267!==void 0x0?_0x32d267:BaseGeminiNextGenAPIClient[_0x58a4d0(0x710)],this[_0x58a4d0(0x28b)]=(_0x4ac151=_0x312561['logger'])!==null&&_0x4ac151!==void 0x0?_0x4ac151:console;const _0x3766da=_0x58a4d0(0x69c);this[_0x58a4d0(0x18e)]=_0x3766da,this[_0x58a4d0(0x18e)]=(_0x25cad7=(_0x1ef753=parseLogLevel(_0x312561[_0x58a4d0(0x18e)],_0x58a4d0(0x4c7),this))!==null&&_0x1ef753!==void 0x0?_0x1ef753:parseLogLevel(readEnv(_0x58a4d0(0x258)),_0x58a4d0(0x6f1),this))!==null&&_0x25cad7!==void 0x0?_0x25cad7:_0x3766da,this['fetchOptions']=_0x312561[_0x58a4d0(0x61d)],this[_0x58a4d0(0x473)]=(_0x1611bd=_0x312561[_0x58a4d0(0x473)])!==null&&_0x1611bd!==void 0x0?_0x1611bd:0x2,this['fetch']=(_0x1b4e3f=_0x312561[_0x58a4d0(0x46f)])!==null&&_0x1b4e3f!==void 0x0?_0x1b4e3f:getDefaultFetch(),this[_0x58a4d0(0x280)]=FallbackEncoder,this['_options']=_0x312561,this['apiKey']=apiKey,this[_0x58a4d0(0x2d1)]=apiVersion,this[_0x58a4d0(0x329)]=_0x312561['clientAdapter'];}[a0_0x254c3a(0x1ee)](_0x5c7355){const _0x3da334=a0_0x254c3a,_0xce4605=new this[(_0x3da334(0x237))](Object[_0x3da334(0x64e)](Object['assign'](Object[_0x3da334(0x64e)]({},this[_0x3da334(0x1ec)]),{'baseURL':this['baseURL'],'maxRetries':this['maxRetries'],'timeout':this[_0x3da334(0x4a1)],'logger':this['logger'],'logLevel':this[_0x3da334(0x18e)],'fetch':this[_0x3da334(0x46f)],'fetchOptions':this[_0x3da334(0x61d)],'apiKey':this[_0x3da334(0x6a4)],'apiVersion':this[_0x3da334(0x2d1)]}),_0x5c7355));return _0xce4605;}['baseURLOverridden'](){const _0x16c703=a0_0x254c3a;return this['baseURL']!==_0x16c703(0x683);}[a0_0x254c3a(0x627)](){const _0x3f1c08=a0_0x254c3a;return this[_0x3f1c08(0x1ec)]['defaultQuery'];}[a0_0x254c3a(0x5ce)]({values:_0x343c5b,nulls:_0x30fb78}){const _0x306cec=a0_0x254c3a;if(_0x343c5b[_0x306cec(0x399)]('authorization')||_0x343c5b[_0x306cec(0x399)](_0x306cec(0x4e3)))return;if(this[_0x306cec(0x6a4)]&&_0x343c5b[_0x306cec(0x296)]('x-goog-api-key'))return;if(_0x30fb78[_0x306cec(0x399)](_0x306cec(0x4e3)))return;throw new Error(_0x306cec(0x22e));}async['authHeaders'](_0x1015ec){const _0x58a124=a0_0x254c3a,_0x1e11f1=buildHeaders([_0x1015ec[_0x58a124(0x4e8)]]);if(_0x1e11f1[_0x58a124(0x464)][_0x58a124(0x399)](_0x58a124(0x404))||_0x1e11f1[_0x58a124(0x464)][_0x58a124(0x399)](_0x58a124(0x4e3)))return undefined;if(this[_0x58a124(0x6a4)])return buildHeaders([{'x-goog-api-key':this['apiKey']}]);if(this['clientAdapter'][_0x58a124(0x2b9)]())return buildHeaders([await this['clientAdapter'][_0x58a124(0x3f9)]()]);return undefined;}['stringifyQuery'](_0x1e9bcf){const _0x47e300=a0_0x254c3a;return Object[_0x47e300(0x1ae)](_0x1e9bcf)[_0x47e300(0x38a)](([_0x42591c,_0x434b4a])=>typeof _0x434b4a!==_0x47e300(0x66c))[_0x47e300(0x221)](([_0xb346f1,_0x549fe3])=>{const _0x13c132=_0x47e300;if(typeof _0x549fe3===_0x13c132(0x4ae)||typeof _0x549fe3===_0x13c132(0x4e1)||typeof _0x549fe3==='boolean')return encodeURIComponent(_0xb346f1)+'='+encodeURIComponent(_0x549fe3);if(_0x549fe3===null)return encodeURIComponent(_0xb346f1)+'=';throw new GeminiNextGenAPIClientError(_0x13c132(0x3b7)+typeof _0x549fe3+_0x13c132(0x3f6));})['join']('&');}[a0_0x254c3a(0x65b)](){const _0x1f34bb=a0_0x254c3a;return this[_0x1f34bb(0x237)][_0x1f34bb(0x68e)]+_0x1f34bb(0x3a6)+VERSION;}[a0_0x254c3a(0x4fb)](){const _0x46d27b=a0_0x254c3a;return _0x46d27b(0x243)+uuid4();}['makeStatusError'](_0x15f9d4,_0x4ee889,_0x17933a,_0x470f28){const _0x387527=a0_0x254c3a;return APIError[_0x387527(0x251)](_0x15f9d4,_0x4ee889,_0x17933a,_0x470f28);}['buildURL'](_0x10142a,_0x29219d,_0x3516e4){const _0xa000c7=a0_0x254c3a,_0x1f54f3=!this[_0xa000c7(0x6ed)]()&&_0x3516e4||this[_0xa000c7(0x6bb)],_0xc67c54=isAbsoluteURL(_0x10142a)?new URL(_0x10142a):new URL(_0x1f54f3+(_0x1f54f3[_0xa000c7(0x53e)]('/')&&_0x10142a['startsWith']('/')?_0x10142a[_0xa000c7(0x26b)](0x1):_0x10142a)),_0x4343de=this[_0xa000c7(0x627)]();return!isEmptyObj(_0x4343de)&&(_0x29219d=Object['assign'](Object[_0xa000c7(0x64e)]({},_0x4343de),_0x29219d)),typeof _0x29219d===_0xa000c7(0x46a)&&_0x29219d&&!Array[_0xa000c7(0x192)](_0x29219d)&&(_0xc67c54[_0xa000c7(0x420)]=this[_0xa000c7(0x241)](_0x29219d)),_0xc67c54['toString']();}async[a0_0x254c3a(0x5cf)](_0x25b0c1){const _0x2df967=a0_0x254c3a;if(this[_0x2df967(0x329)]&&this['clientAdapter']['isVertexAI']()&&!_0x25b0c1['path'][_0x2df967(0x320)]('/'+this[_0x2df967(0x2d1)]+_0x2df967(0x477))){const _0x4a1009=_0x25b0c1['path']['slice'](this[_0x2df967(0x2d1)]['length']+0x1);_0x25b0c1['path']='/'+this[_0x2df967(0x2d1)]+_0x2df967(0x477)+this[_0x2df967(0x329)][_0x2df967(0x709)]()+_0x2df967(0x238)+this['clientAdapter']['getLocation']()+_0x4a1009;}}async[a0_0x254c3a(0x2f4)](_0x2d3c9b,{url:_0xb4b22f,options:_0xbc3def}){}[a0_0x254c3a(0x296)](_0x33d250,_0x238824){const _0x396228=a0_0x254c3a;return this[_0x396228(0x692)]('get',_0x33d250,_0x238824);}['post'](_0x2bb01a,_0x328362){const _0x351724=a0_0x254c3a;return this[_0x351724(0x692)](_0x351724(0x1d6),_0x2bb01a,_0x328362);}[a0_0x254c3a(0x232)](_0x355363,_0xab8392){const _0x91bc06=a0_0x254c3a;return this[_0x91bc06(0x692)](_0x91bc06(0x232),_0x355363,_0xab8392);}[a0_0x254c3a(0x388)](_0x483ec9,_0x378061){const _0x269ad2=a0_0x254c3a;return this[_0x269ad2(0x692)](_0x269ad2(0x388),_0x483ec9,_0x378061);}[a0_0x254c3a(0x625)](_0x2befc1,_0x381045){const _0x394206=a0_0x254c3a;return this[_0x394206(0x692)](_0x394206(0x625),_0x2befc1,_0x381045);}['methodRequest'](_0x221333,_0x4d8e20,_0x3f5b07){const _0x3678bc=a0_0x254c3a;return this[_0x3678bc(0x610)](Promise[_0x3678bc(0x294)](_0x3f5b07)[_0x3678bc(0x3a5)](_0xff6759=>{const _0x30bb64=_0x3678bc;return Object[_0x30bb64(0x64e)]({'method':_0x221333,'path':_0x4d8e20},_0xff6759);}));}[a0_0x254c3a(0x610)](_0x5667a4,_0x3d54e9=null){const _0xa0782b=a0_0x254c3a;return new APIPromise(this,this[_0xa0782b(0x5d6)](_0x5667a4,_0x3d54e9,undefined));}async['makeRequest'](_0x7313d9,_0x4e060e,_0x333a69){const _0x3aaedf=a0_0x254c3a;var _0x5ce40e,_0x29eeaa,_0x4d09e5;const _0x20b1dc=await _0x7313d9,_0x2e775a=(_0x5ce40e=_0x20b1dc[_0x3aaedf(0x473)])!==null&&_0x5ce40e!==void 0x0?_0x5ce40e:this[_0x3aaedf(0x473)];_0x4e060e==null&&(_0x4e060e=_0x2e775a);await this[_0x3aaedf(0x5cf)](_0x20b1dc);const {req:_0x560c82,url:_0x1b7835,timeout:_0x35f65f}=await this['buildRequest'](_0x20b1dc,{'retryCount':_0x2e775a-_0x4e060e});await this['prepareRequest'](_0x560c82,{'url':_0x1b7835,'options':_0x20b1dc});const _0x183c6d=_0x3aaedf(0x33d)+(Math['random']()*(0x1<<0x18)|0x0)['toString'](0x10)[_0x3aaedf(0x1c7)](0x6,'0'),_0x559b2e=_0x333a69===undefined?'':_0x3aaedf(0x21b)+_0x333a69,_0x47cc04=Date[_0x3aaedf(0x1f9)]();loggerFor(this)['debug']('['+_0x183c6d+']\x20sending\x20request',formatRequestDetails({'retryOfRequestLogID':_0x333a69,'method':_0x20b1dc[_0x3aaedf(0x4d8)],'url':_0x1b7835,'options':_0x20b1dc,'headers':_0x560c82['headers']}));if((_0x29eeaa=_0x20b1dc[_0x3aaedf(0x17e)])===null||_0x29eeaa===void 0x0?void 0x0:_0x29eeaa['aborted'])throw new APIUserAbortError();const _0x28e278=new AbortController(),_0x30e39f=await this[_0x3aaedf(0x47c)](_0x1b7835,_0x560c82,_0x35f65f,_0x28e278)[_0x3aaedf(0x4ba)](castToError),_0x2e05c2=Date[_0x3aaedf(0x1f9)]();if(_0x30e39f instanceof globalThis[_0x3aaedf(0x3e8)]){const _0x5e3c28='retrying,\x20'+_0x4e060e+_0x3aaedf(0x600);if((_0x4d09e5=_0x20b1dc[_0x3aaedf(0x17e)])===null||_0x4d09e5===void 0x0?void 0x0:_0x4d09e5[_0x3aaedf(0x476)])throw new APIUserAbortError();const _0x548e3d=isAbortError(_0x30e39f)||/timed? ?out/i[_0x3aaedf(0x5f3)](String(_0x30e39f)+(_0x3aaedf(0x708)in _0x30e39f?String(_0x30e39f[_0x3aaedf(0x708)]):''));if(_0x4e060e)return loggerFor(this)[_0x3aaedf(0x513)]('['+_0x183c6d+_0x3aaedf(0x489)+(_0x548e3d?'timed\x20out':_0x3aaedf(0x262))+'\x20-\x20'+_0x5e3c28),loggerFor(this)['debug']('['+_0x183c6d+_0x3aaedf(0x489)+(_0x548e3d?_0x3aaedf(0x2a1):_0x3aaedf(0x262))+'\x20('+_0x5e3c28+')',formatRequestDetails({'retryOfRequestLogID':_0x333a69,'url':_0x1b7835,'durationMs':_0x2e05c2-_0x47cc04,'message':_0x30e39f[_0x3aaedf(0x2c2)]})),this['retryRequest'](_0x20b1dc,_0x4e060e,_0x333a69!==null&&_0x333a69!==void 0x0?_0x333a69:_0x183c6d);loggerFor(this)[_0x3aaedf(0x513)]('['+_0x183c6d+_0x3aaedf(0x489)+(_0x548e3d?_0x3aaedf(0x2a1):_0x3aaedf(0x262))+_0x3aaedf(0x5ab)),loggerFor(this)[_0x3aaedf(0x407)]('['+_0x183c6d+_0x3aaedf(0x489)+(_0x548e3d?'timed\x20out':_0x3aaedf(0x262))+_0x3aaedf(0x5ec),formatRequestDetails({'retryOfRequestLogID':_0x333a69,'url':_0x1b7835,'durationMs':_0x2e05c2-_0x47cc04,'message':_0x30e39f[_0x3aaedf(0x2c2)]}));if(_0x548e3d)throw new APIConnectionTimeoutError();throw new APIConnectionError({'cause':_0x30e39f});}const _0x66927f='['+_0x183c6d+_0x559b2e+']\x20'+_0x560c82[_0x3aaedf(0x4d8)]+'\x20'+_0x1b7835+'\x20'+(_0x30e39f['ok']?_0x3aaedf(0x585):_0x3aaedf(0x262))+_0x3aaedf(0x194)+_0x30e39f[_0x3aaedf(0x560)]+'\x20in\x20'+(_0x2e05c2-_0x47cc04)+'ms';if(!_0x30e39f['ok']){const _0x5a0483=await this[_0x3aaedf(0x5b0)](_0x30e39f);if(_0x4e060e&&_0x5a0483){const _0x3890c1='retrying,\x20'+_0x4e060e+_0x3aaedf(0x600);return await CancelReadableStream(_0x30e39f[_0x3aaedf(0x553)]),loggerFor(this)[_0x3aaedf(0x513)](_0x66927f+_0x3aaedf(0x650)+_0x3890c1),loggerFor(this)[_0x3aaedf(0x407)]('['+_0x183c6d+_0x3aaedf(0x509)+_0x3890c1+')',formatRequestDetails({'retryOfRequestLogID':_0x333a69,'url':_0x30e39f['url'],'status':_0x30e39f['status'],'headers':_0x30e39f[_0x3aaedf(0x4e8)],'durationMs':_0x2e05c2-_0x47cc04})),this[_0x3aaedf(0x630)](_0x20b1dc,_0x4e060e,_0x333a69!==null&&_0x333a69!==void 0x0?_0x333a69:_0x183c6d,_0x30e39f[_0x3aaedf(0x4e8)]);}const _0x1b9c0b=_0x5a0483?'error;\x20no\x20more\x20retries\x20left':'error;\x20not\x20retryable';loggerFor(this)[_0x3aaedf(0x513)](_0x66927f+_0x3aaedf(0x650)+_0x1b9c0b);const _0x32a4c0=await _0x30e39f[_0x3aaedf(0x2ab)]()[_0x3aaedf(0x4ba)](_0x35a719=>castToError(_0x35a719)[_0x3aaedf(0x2c2)]),_0x4cefc5=safeJSON(_0x32a4c0),_0x8df261=_0x4cefc5?undefined:_0x32a4c0;loggerFor(this)[_0x3aaedf(0x407)]('['+_0x183c6d+_0x3aaedf(0x509)+_0x1b9c0b+')',formatRequestDetails({'retryOfRequestLogID':_0x333a69,'url':_0x30e39f[_0x3aaedf(0x68b)],'status':_0x30e39f['status'],'headers':_0x30e39f[_0x3aaedf(0x4e8)],'message':_0x8df261,'durationMs':Date['now']()-_0x47cc04}));const _0x1da4ae=this[_0x3aaedf(0x413)](_0x30e39f['status'],_0x4cefc5,_0x8df261,_0x30e39f[_0x3aaedf(0x4e8)]);throw _0x1da4ae;}return loggerFor(this)[_0x3aaedf(0x513)](_0x66927f),loggerFor(this)[_0x3aaedf(0x407)]('['+_0x183c6d+_0x3aaedf(0x66a),formatRequestDetails({'retryOfRequestLogID':_0x333a69,'url':_0x30e39f[_0x3aaedf(0x68b)],'status':_0x30e39f[_0x3aaedf(0x560)],'headers':_0x30e39f[_0x3aaedf(0x4e8)],'durationMs':_0x2e05c2-_0x47cc04})),{'response':_0x30e39f,'options':_0x20b1dc,'controller':_0x28e278,'requestLogID':_0x183c6d,'retryOfRequestLogID':_0x333a69,'startTime':_0x47cc04};}async['fetchWithTimeout'](_0x194f64,_0x2a165d,_0x2aeae6,_0xf73600){const _0x3ef654=a0_0x254c3a,_0x439858=_0x2a165d||{},{signal:_0x2df1f0,method:_0x514c5a}=_0x439858,_0x3dbdeb=__rest(_0x439858,[_0x3ef654(0x17e),_0x3ef654(0x4d8)]),_0x4914f8=_0xf73600[_0x3ef654(0x4bc)]['bind'](_0xf73600);if(_0x2df1f0)_0x2df1f0['addEventListener'](_0x3ef654(0x4bc),_0x4914f8,{'once':!![]});const _0x1e50a5=setTimeout(_0x4914f8,_0x2aeae6),_0x4eba79=globalThis[_0x3ef654(0x2d8)]&&_0x3dbdeb['body']instanceof globalThis['ReadableStream']||typeof _0x3dbdeb[_0x3ef654(0x553)]===_0x3ef654(0x46a)&&_0x3dbdeb[_0x3ef654(0x553)]!==null&&Symbol[_0x3ef654(0x561)]in _0x3dbdeb['body'],_0x5336b9=Object[_0x3ef654(0x64e)](Object[_0x3ef654(0x64e)](Object[_0x3ef654(0x64e)]({'signal':_0xf73600[_0x3ef654(0x17e)]},_0x4eba79?{'duplex':_0x3ef654(0x1f3)}:{}),{'method':_0x3ef654(0x525)}),_0x3dbdeb);_0x514c5a&&(_0x5336b9[_0x3ef654(0x4d8)]=_0x514c5a[_0x3ef654(0x3c0)]());try{return await this[_0x3ef654(0x46f)][_0x3ef654(0x49b)](undefined,_0x194f64,_0x5336b9);}finally{clearTimeout(_0x1e50a5);}}async[a0_0x254c3a(0x5b0)](_0x43dd94){const _0x389696=a0_0x254c3a,_0x2a57aa=_0x43dd94['headers']['get']('x-should-retry');if(_0x2a57aa===_0x389696(0x48f))return!![];if(_0x2a57aa==='false')return![];if(_0x43dd94[_0x389696(0x560)]===0x198)return!![];if(_0x43dd94[_0x389696(0x560)]===0x199)return!![];if(_0x43dd94[_0x389696(0x560)]===0x1ad)return!![];if(_0x43dd94[_0x389696(0x560)]>=0x1f4)return!![];return![];}async[a0_0x254c3a(0x630)](_0x44e417,_0x621d9e,_0xfb3b86,_0x8e53db){const _0x282016=a0_0x254c3a;var _0x123033;let _0x3fcd3b;const _0x3ba50b=_0x8e53db===null||_0x8e53db===void 0x0?void 0x0:_0x8e53db[_0x282016(0x296)](_0x282016(0x448));if(_0x3ba50b){const _0x387afb=parseFloat(_0x3ba50b);!Number[_0x282016(0x548)](_0x387afb)&&(_0x3fcd3b=_0x387afb);}const _0x335a79=_0x8e53db===null||_0x8e53db===void 0x0?void 0x0:_0x8e53db[_0x282016(0x296)](_0x282016(0x283));if(_0x335a79&&!_0x3fcd3b){const _0x4ddb15=parseFloat(_0x335a79);!Number['isNaN'](_0x4ddb15)?_0x3fcd3b=_0x4ddb15*0x3e8:_0x3fcd3b=Date['parse'](_0x335a79)-Date[_0x282016(0x1f9)]();}if(!(_0x3fcd3b&&0x0<=_0x3fcd3b&&_0x3fcd3b<0x3c*0x3e8)){const _0x542a97=(_0x123033=_0x44e417[_0x282016(0x473)])!==null&&_0x123033!==void 0x0?_0x123033:this[_0x282016(0x473)];_0x3fcd3b=this['calculateDefaultRetryTimeoutMillis'](_0x621d9e,_0x542a97);}return await sleep(_0x3fcd3b),this[_0x282016(0x5d6)](_0x44e417,_0x621d9e-0x1,_0xfb3b86);}[a0_0x254c3a(0x32c)](_0x5a78ed,_0x5d1c7c){const _0x2a1413=a0_0x254c3a,_0x3ef11e=0.5,_0x320f9a=0x8,_0x35a8f7=_0x5d1c7c-_0x5a78ed,_0x48fb54=Math['min'](_0x3ef11e*Math[_0x2a1413(0x1f2)](0x2,_0x35a8f7),_0x320f9a),_0x542401=0x1-Math['random']()*0.25;return _0x48fb54*_0x542401*0x3e8;}async[a0_0x254c3a(0x307)](_0x4a255b,{retryCount:retryCount=0x0}={}){const _0x324e92=a0_0x254c3a;var _0x192cb9,_0x344fae,_0x3b1f51;const _0x580a6a=Object[_0x324e92(0x64e)]({},_0x4a255b),{method:_0x13271d,path:_0x6c28d8,query:_0xc09e85,defaultBaseURL:_0x445005}=_0x580a6a,_0x5e5527=this[_0x324e92(0x459)](_0x6c28d8,_0xc09e85,_0x445005);if(_0x324e92(0x4a1)in _0x580a6a)validatePositiveInteger(_0x324e92(0x4a1),_0x580a6a['timeout']);_0x580a6a[_0x324e92(0x4a1)]=(_0x192cb9=_0x580a6a[_0x324e92(0x4a1)])!==null&&_0x192cb9!==void 0x0?_0x192cb9:this[_0x324e92(0x4a1)];const {bodyHeaders:_0x3ad8c1,body:_0x1324f1}=this[_0x324e92(0x42e)]({'options':_0x580a6a}),_0x2e9f47=await this[_0x324e92(0x5f2)]({'options':_0x4a255b,'method':_0x13271d,'bodyHeaders':_0x3ad8c1,'retryCount':retryCount}),_0x2a231a=Object[_0x324e92(0x64e)](Object[_0x324e92(0x64e)](Object['assign'](Object[_0x324e92(0x64e)](Object[_0x324e92(0x64e)]({'method':_0x13271d,'headers':_0x2e9f47},_0x580a6a['signal']&&{'signal':_0x580a6a[_0x324e92(0x17e)]}),globalThis['ReadableStream']&&_0x1324f1 instanceof globalThis[_0x324e92(0x2d8)]&&{'duplex':_0x324e92(0x1f3)}),_0x1324f1&&{'body':_0x1324f1}),(_0x344fae=this[_0x324e92(0x61d)])!==null&&_0x344fae!==void 0x0?_0x344fae:{}),(_0x3b1f51=_0x580a6a[_0x324e92(0x61d)])!==null&&_0x3b1f51!==void 0x0?_0x3b1f51:{});return{'req':_0x2a231a,'url':_0x5e5527,'timeout':_0x580a6a[_0x324e92(0x4a1)]};}async[a0_0x254c3a(0x5f2)]({options:_0x573b7a,method:_0x297fd6,bodyHeaders:_0x28fa1b,retryCount:_0x2ee9a4}){const _0x236a47=a0_0x254c3a;let _0x41148f={};if(this['idempotencyHeader']&&_0x297fd6!==_0x236a47(0x296)){if(!_0x573b7a[_0x236a47(0x62d)])_0x573b7a[_0x236a47(0x62d)]=this['defaultIdempotencyKey']();_0x41148f[this[_0x236a47(0x5ad)]]=_0x573b7a[_0x236a47(0x62d)];}const _0x1b4bf4=await this[_0x236a47(0x2e1)](_0x573b7a);let _0xd6747b=buildHeaders([_0x41148f,Object[_0x236a47(0x64e)](Object['assign']({'Accept':_0x236a47(0x3a7),'User-Agent':this['getUserAgent'](),'X-Stainless-Retry-Count':String(_0x2ee9a4)},_0x573b7a[_0x236a47(0x4a1)]?{'X-Stainless-Timeout':String(Math[_0x236a47(0x42c)](_0x573b7a[_0x236a47(0x4a1)]/0x3e8))}:{}),getPlatformHeaders()),this[_0x236a47(0x1ec)][_0x236a47(0x533)],_0x28fa1b,_0x573b7a[_0x236a47(0x4e8)],_0x1b4bf4]);return this[_0x236a47(0x5ce)](_0xd6747b),_0xd6747b[_0x236a47(0x464)];}[a0_0x254c3a(0x42e)]({options:{body:_0x15c3a3,headers:_0x1c2de5}}){const _0x2db7ba=a0_0x254c3a;if(!_0x15c3a3)return{'bodyHeaders':undefined,'body':undefined};const _0x498836=buildHeaders([_0x1c2de5]);if(ArrayBuffer[_0x2db7ba(0x1a1)](_0x15c3a3)||_0x15c3a3 instanceof ArrayBuffer||_0x15c3a3 instanceof DataView||typeof _0x15c3a3==='string'&&_0x498836['values'][_0x2db7ba(0x399)](_0x2db7ba(0x2bb))||globalThis[_0x2db7ba(0x487)]&&_0x15c3a3 instanceof globalThis[_0x2db7ba(0x487)]||_0x15c3a3 instanceof FormData||_0x15c3a3 instanceof URLSearchParams||globalThis[_0x2db7ba(0x2d8)]&&_0x15c3a3 instanceof globalThis['ReadableStream'])return{'bodyHeaders':undefined,'body':_0x15c3a3};else return typeof _0x15c3a3===_0x2db7ba(0x46a)&&(Symbol['asyncIterator']in _0x15c3a3||Symbol['iterator']in _0x15c3a3&&_0x2db7ba(0x33e)in _0x15c3a3&&typeof _0x15c3a3['next']===_0x2db7ba(0x304))?{'bodyHeaders':undefined,'body':ReadableStreamFrom(_0x15c3a3)}:this[_0x2db7ba(0x280)]({'body':_0x15c3a3,'headers':_0x498836});}}BaseGeminiNextGenAPIClient[a0_0x254c3a(0x710)]=0xea60;class GeminiNextGenAPIClient extends BaseGeminiNextGenAPIClient{constructor(){super(...arguments),this['interactions']=new Interactions(this);}}_a=GeminiNextGenAPIClient,GeminiNextGenAPIClient[a0_0x254c3a(0x4a7)]=_a,GeminiNextGenAPIClient[a0_0x254c3a(0x22c)]=GeminiNextGenAPIClientError,GeminiNextGenAPIClient[a0_0x254c3a(0x27b)]=APIError,GeminiNextGenAPIClient[a0_0x254c3a(0x704)]=APIConnectionError,GeminiNextGenAPIClient[a0_0x254c3a(0x42a)]=APIConnectionTimeoutError,GeminiNextGenAPIClient[a0_0x254c3a(0x519)]=APIUserAbortError,GeminiNextGenAPIClient[a0_0x254c3a(0x1c3)]=NotFoundError,GeminiNextGenAPIClient[a0_0x254c3a(0x682)]=ConflictError,GeminiNextGenAPIClient[a0_0x254c3a(0x303)]=RateLimitError,GeminiNextGenAPIClient[a0_0x254c3a(0x45d)]=BadRequestError,GeminiNextGenAPIClient[a0_0x254c3a(0x578)]=AuthenticationError,GeminiNextGenAPIClient[a0_0x254c3a(0x1bd)]=InternalServerError,GeminiNextGenAPIClient[a0_0x254c3a(0x2e9)]=PermissionDeniedError,GeminiNextGenAPIClient[a0_0x254c3a(0x5da)]=UnprocessableEntityError,GeminiNextGenAPIClient[a0_0x254c3a(0x645)]=toFile,GeminiNextGenAPIClient[a0_0x254c3a(0x6d6)]=Interactions;/**
207
+ * @license
208
+ * Copyright 2025 Google LLC
209
+ * SPDX-License-Identifier: Apache-2.0
210
+ */
211
+ function blobToMldev$2(_0x310b45){const _0x52da3f=a0_0x254c3a,_0x3f40cb={},_0xf9a94a=getValueByPath(_0x310b45,[_0x52da3f(0x526)]);_0xf9a94a!=null&&setValueByPath(_0x3f40cb,['data'],_0xf9a94a);if(getValueByPath(_0x310b45,[_0x52da3f(0x462)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x1e1cdd=getValueByPath(_0x310b45,[_0x52da3f(0x38c)]);return _0x1e1cdd!=null&&setValueByPath(_0x3f40cb,[_0x52da3f(0x38c)],_0x1e1cdd),_0x3f40cb;}function contentToMldev$2(_0x21e9ba){const _0x224e1a=a0_0x254c3a,_0x9c6419={},_0x15fbac=getValueByPath(_0x21e9ba,[_0x224e1a(0x435)]);if(_0x15fbac!=null){let _0x17bcc7=_0x15fbac;Array['isArray'](_0x17bcc7)&&(_0x17bcc7=_0x17bcc7['map'](_0x1eb857=>{return partToMldev$2(_0x1eb857);})),setValueByPath(_0x9c6419,[_0x224e1a(0x435)],_0x17bcc7);}const _0x319aef=getValueByPath(_0x21e9ba,[_0x224e1a(0x5ca)]);return _0x319aef!=null&&setValueByPath(_0x9c6419,['role'],_0x319aef),_0x9c6419;}function fileDataToMldev$2(_0x2104f6){const _0x4aa2eb=a0_0x254c3a,_0x30c789={};if(getValueByPath(_0x2104f6,['displayName'])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x48b510=getValueByPath(_0x2104f6,[_0x4aa2eb(0x617)]);_0x48b510!=null&&setValueByPath(_0x30c789,[_0x4aa2eb(0x617)],_0x48b510);const _0x3ef142=getValueByPath(_0x2104f6,[_0x4aa2eb(0x38c)]);return _0x3ef142!=null&&setValueByPath(_0x30c789,[_0x4aa2eb(0x38c)],_0x3ef142),_0x30c789;}function functionCallToMldev$2(_0x2401e6){const _0x56111d=a0_0x254c3a,_0xaf88c1={},_0x183ad7=getValueByPath(_0x2401e6,['id']);_0x183ad7!=null&&setValueByPath(_0xaf88c1,['id'],_0x183ad7);const _0x1bd976=getValueByPath(_0x2401e6,[_0x56111d(0x4d6)]);_0x1bd976!=null&&setValueByPath(_0xaf88c1,[_0x56111d(0x4d6)],_0x1bd976);const _0x83eb08=getValueByPath(_0x2401e6,[_0x56111d(0x68e)]);_0x83eb08!=null&&setValueByPath(_0xaf88c1,[_0x56111d(0x68e)],_0x83eb08);if(getValueByPath(_0x2401e6,[_0x56111d(0x374)])!==undefined)throw new Error(_0x56111d(0x19a));if(getValueByPath(_0x2401e6,[_0x56111d(0x480)])!==undefined)throw new Error(_0x56111d(0x17d));return _0xaf88c1;}function functionDeclarationToVertex$1(_0x3cebcb){const _0x10fdd6=a0_0x254c3a,_0x1c68c1={},_0x321fea=getValueByPath(_0x3cebcb,[_0x10fdd6(0x3b3)]);_0x321fea!=null&&setValueByPath(_0x1c68c1,[_0x10fdd6(0x3b3)],_0x321fea);const _0x16b7a6=getValueByPath(_0x3cebcb,[_0x10fdd6(0x68e)]);_0x16b7a6!=null&&setValueByPath(_0x1c68c1,[_0x10fdd6(0x68e)],_0x16b7a6);const _0x318977=getValueByPath(_0x3cebcb,['parameters']);_0x318977!=null&&setValueByPath(_0x1c68c1,[_0x10fdd6(0x34d)],_0x318977);const _0x3591d2=getValueByPath(_0x3cebcb,['parametersJsonSchema']);_0x3591d2!=null&&setValueByPath(_0x1c68c1,[_0x10fdd6(0x3d0)],_0x3591d2);const _0x5b526e=getValueByPath(_0x3cebcb,[_0x10fdd6(0x218)]);_0x5b526e!=null&&setValueByPath(_0x1c68c1,[_0x10fdd6(0x218)],_0x5b526e);const _0x562f5b=getValueByPath(_0x3cebcb,[_0x10fdd6(0x2a6)]);_0x562f5b!=null&&setValueByPath(_0x1c68c1,[_0x10fdd6(0x2a6)],_0x562f5b);if(getValueByPath(_0x3cebcb,[_0x10fdd6(0x306)])!==undefined)throw new Error(_0x10fdd6(0x695));return _0x1c68c1;}function generationConfigToVertex$1(_0xb72d54){const _0x21c778=a0_0x254c3a,_0x93fc17={},_0x553f8b=getValueByPath(_0xb72d54,[_0x21c778(0x69b)]);_0x553f8b!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x58a)],_0x553f8b);const _0x3cd60a=getValueByPath(_0xb72d54,['responseJsonSchema']);_0x3cd60a!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x2a6)],_0x3cd60a);const _0x4ba690=getValueByPath(_0xb72d54,['audioTimestamp']);_0x4ba690!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x633)],_0x4ba690);const _0x5a5f68=getValueByPath(_0xb72d54,[_0x21c778(0x518)]);_0x5a5f68!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x518)],_0x5a5f68);const _0x47447d=getValueByPath(_0xb72d54,[_0x21c778(0x691)]);_0x47447d!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x691)],_0x47447d);const _0x2cdace=getValueByPath(_0xb72d54,[_0x21c778(0x71c)]);_0x2cdace!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x71c)],_0x2cdace);const _0x123dcc=getValueByPath(_0xb72d54,[_0x21c778(0x4da)]);_0x123dcc!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x4da)],_0x123dcc);const _0x300a3d=getValueByPath(_0xb72d54,['maxOutputTokens']);_0x300a3d!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x1a3)],_0x300a3d);const _0x4272d7=getValueByPath(_0xb72d54,[_0x21c778(0x667)]);_0x4272d7!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x667)],_0x4272d7);const _0x42ebaa=getValueByPath(_0xb72d54,[_0x21c778(0x646)]);_0x42ebaa!=null&&setValueByPath(_0x93fc17,['presencePenalty'],_0x42ebaa);const _0x39d0e2=getValueByPath(_0xb72d54,[_0x21c778(0x725)]);_0x39d0e2!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x725)],_0x39d0e2);const _0x2b4e58=getValueByPath(_0xb72d54,[_0x21c778(0x28f)]);_0x2b4e58!=null&&setValueByPath(_0x93fc17,['responseMimeType'],_0x2b4e58);const _0x50d0c2=getValueByPath(_0xb72d54,[_0x21c778(0x6d4)]);_0x50d0c2!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x6d4)],_0x50d0c2);const _0x37f18b=getValueByPath(_0xb72d54,[_0x21c778(0x1cb)]);_0x37f18b!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x1cb)],_0x37f18b);const _0x57b879=getValueByPath(_0xb72d54,[_0x21c778(0x638)]);_0x57b879!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x638)],_0x57b879);const _0x35b7e6=getValueByPath(_0xb72d54,[_0x21c778(0x1f8)]);_0x35b7e6!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x1f8)],_0x35b7e6);const _0x495265=getValueByPath(_0xb72d54,[_0x21c778(0x540)]);_0x495265!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x540)],_0x495265);const _0x42053f=getValueByPath(_0xb72d54,['stopSequences']);_0x42053f!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x56b)],_0x42053f);const _0x486a67=getValueByPath(_0xb72d54,[_0x21c778(0x1e2)]);_0x486a67!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x1e2)],_0x486a67);const _0x530e9=getValueByPath(_0xb72d54,['thinkingConfig']);_0x530e9!=null&&setValueByPath(_0x93fc17,['thinkingConfig'],_0x530e9);const _0x296dca=getValueByPath(_0xb72d54,['topK']);_0x296dca!=null&&setValueByPath(_0x93fc17,['topK'],_0x296dca);const _0x1bf087=getValueByPath(_0xb72d54,[_0x21c778(0x651)]);_0x1bf087!=null&&setValueByPath(_0x93fc17,[_0x21c778(0x651)],_0x1bf087);if(getValueByPath(_0xb72d54,['enableEnhancedCivicAnswers'])!==undefined)throw new Error('enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x93fc17;}function googleMapsToMldev$2(_0x2438be){const _0x1274f8=a0_0x254c3a,_0x253ebf={};if(getValueByPath(_0x2438be,['authConfig'])!==undefined)throw new Error(_0x1274f8(0x40b));const _0x12e983=getValueByPath(_0x2438be,[_0x1274f8(0x5f5)]);return _0x12e983!=null&&setValueByPath(_0x253ebf,[_0x1274f8(0x5f5)],_0x12e983),_0x253ebf;}function googleSearchToMldev$2(_0x2205d9){const _0x324943=a0_0x254c3a,_0x1ae47c={};if(getValueByPath(_0x2205d9,['excludeDomains'])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x2205d9,['blockingConfidence'])!==undefined)throw new Error(_0x324943(0x4ef));const _0x5eaec2=getValueByPath(_0x2205d9,[_0x324943(0x44c)]);return _0x5eaec2!=null&&setValueByPath(_0x1ae47c,[_0x324943(0x44c)],_0x5eaec2),_0x1ae47c;}function liveConnectConfigToMldev$1(_0x5ef0b6,_0x5c731e){const _0x3d15ec=a0_0x254c3a,_0x59cf23={},_0x39ea7b=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x324)]);_0x5c731e!==undefined&&_0x39ea7b!=null&&setValueByPath(_0x5c731e,['setup',_0x3d15ec(0x324)],_0x39ea7b);const _0x415e8d=getValueByPath(_0x5ef0b6,['responseModalities']);_0x5c731e!==undefined&&_0x415e8d!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x324),_0x3d15ec(0x6d4)],_0x415e8d);const _0x402363=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x1e2)]);_0x5c731e!==undefined&&_0x402363!=null&&setValueByPath(_0x5c731e,['setup',_0x3d15ec(0x324),_0x3d15ec(0x1e2)],_0x402363);const _0x5c4080=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x651)]);_0x5c731e!==undefined&&_0x5c4080!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x324),_0x3d15ec(0x651)],_0x5c4080);const _0x2db003=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x1a6)]);_0x5c731e!==undefined&&_0x2db003!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),'generationConfig',_0x3d15ec(0x1a6)],_0x2db003);const _0x543712=getValueByPath(_0x5ef0b6,['maxOutputTokens']);_0x5c731e!==undefined&&_0x543712!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x324),_0x3d15ec(0x1a3)],_0x543712);const _0x4e297c=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x667)]);_0x5c731e!==undefined&&_0x4e297c!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x324),_0x3d15ec(0x667)],_0x4e297c);const _0x178ed1=getValueByPath(_0x5ef0b6,['seed']);_0x5c731e!==undefined&&_0x178ed1!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),'generationConfig',_0x3d15ec(0x1f8)],_0x178ed1);const _0x4095e5=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x540)]);_0x5c731e!==undefined&&_0x4095e5!=null&&setValueByPath(_0x5c731e,['setup',_0x3d15ec(0x324),_0x3d15ec(0x540)],tLiveSpeechConfig(_0x4095e5));const _0x1e1886=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x414)]);_0x5c731e!==undefined&&_0x1e1886!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x324),_0x3d15ec(0x414)],_0x1e1886);const _0x4ec672=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x691)]);_0x5c731e!==undefined&&_0x4ec672!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x324),_0x3d15ec(0x691)],_0x4ec672);const _0x1b7022=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x2ba)]);_0x5c731e!==undefined&&_0x1b7022!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x2ba)],contentToMldev$2(tContent(_0x1b7022)));const _0x8ec5f8=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x1e6)]);if(_0x5c731e!==undefined&&_0x8ec5f8!=null){let _0x6d0ddb=tTools(_0x8ec5f8);Array[_0x3d15ec(0x192)](_0x6d0ddb)&&(_0x6d0ddb=_0x6d0ddb[_0x3d15ec(0x221)](_0x106856=>{return toolToMldev$2(tTool(_0x106856));})),setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x1e6)],_0x6d0ddb);}const _0x44db84=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x619)]);_0x5c731e!==undefined&&_0x44db84!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x619)],sessionResumptionConfigToMldev$1(_0x44db84));const _0x444b7e=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x278)]);_0x5c731e!==undefined&&_0x444b7e!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x278)],_0x444b7e);const _0x2f4040=getValueByPath(_0x5ef0b6,['outputAudioTranscription']);_0x5c731e!==undefined&&_0x2f4040!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),'outputAudioTranscription'],_0x2f4040);const _0x42605b=getValueByPath(_0x5ef0b6,['realtimeInputConfig']);_0x5c731e!==undefined&&_0x42605b!=null&&setValueByPath(_0x5c731e,[_0x3d15ec(0x390),_0x3d15ec(0x2bd)],_0x42605b);const _0x5e8ddb=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x722)]);_0x5c731e!==undefined&&_0x5e8ddb!=null&&setValueByPath(_0x5c731e,['setup',_0x3d15ec(0x722)],_0x5e8ddb);const _0x479d64=getValueByPath(_0x5ef0b6,[_0x3d15ec(0x571)]);_0x5c731e!==undefined&&_0x479d64!=null&&setValueByPath(_0x5c731e,['setup',_0x3d15ec(0x571)],_0x479d64);if(getValueByPath(_0x5ef0b6,[_0x3d15ec(0x601)])!==undefined)throw new Error('explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x59cf23;}function liveConnectConfigToVertex(_0x4b285a,_0x1563da){const _0x2435df=a0_0x254c3a,_0x4a6270={},_0x29a5f9=getValueByPath(_0x4b285a,['generationConfig']);_0x1563da!==undefined&&_0x29a5f9!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),'generationConfig'],generationConfigToVertex$1(_0x29a5f9));const _0x4efab2=getValueByPath(_0x4b285a,[_0x2435df(0x6d4)]);_0x1563da!==undefined&&_0x4efab2!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'responseModalities'],_0x4efab2);const _0x19877f=getValueByPath(_0x4b285a,['temperature']);_0x1563da!==undefined&&_0x19877f!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),_0x2435df(0x1e2)],_0x19877f);const _0x184aff=getValueByPath(_0x4b285a,['topP']);_0x1563da!==undefined&&_0x184aff!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'topP'],_0x184aff);const _0x188981=getValueByPath(_0x4b285a,[_0x2435df(0x1a6)]);_0x1563da!==undefined&&_0x188981!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'topK'],_0x188981);const _0x2beb59=getValueByPath(_0x4b285a,[_0x2435df(0x1a3)]);_0x1563da!==undefined&&_0x2beb59!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'maxOutputTokens'],_0x2beb59);const _0x321cd4=getValueByPath(_0x4b285a,[_0x2435df(0x667)]);_0x1563da!==undefined&&_0x321cd4!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),_0x2435df(0x667)],_0x321cd4);const _0x6ac30e=getValueByPath(_0x4b285a,[_0x2435df(0x1f8)]);_0x1563da!==undefined&&_0x6ac30e!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),_0x2435df(0x1f8)],_0x6ac30e);const _0x2670d2=getValueByPath(_0x4b285a,[_0x2435df(0x540)]);_0x1563da!==undefined&&_0x2670d2!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'speechConfig'],tLiveSpeechConfig(_0x2670d2));const _0x321377=getValueByPath(_0x4b285a,['thinkingConfig']);_0x1563da!==undefined&&_0x321377!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'thinkingConfig'],_0x321377);const _0x1b6928=getValueByPath(_0x4b285a,['enableAffectiveDialog']);_0x1563da!==undefined&&_0x1b6928!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x324),'enableAffectiveDialog'],_0x1b6928);const _0x2d6e9c=getValueByPath(_0x4b285a,[_0x2435df(0x2ba)]);_0x1563da!==undefined&&_0x2d6e9c!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x2ba)],tContent(_0x2d6e9c));const _0x3f1582=getValueByPath(_0x4b285a,[_0x2435df(0x1e6)]);if(_0x1563da!==undefined&&_0x3f1582!=null){let _0x52d786=tTools(_0x3f1582);Array[_0x2435df(0x192)](_0x52d786)&&(_0x52d786=_0x52d786[_0x2435df(0x221)](_0xed2cf8=>{return toolToVertex$1(tTool(_0xed2cf8));})),setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x1e6)],_0x52d786);}const _0x5b2858=getValueByPath(_0x4b285a,['sessionResumption']);_0x1563da!==undefined&&_0x5b2858!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x619)],_0x5b2858);const _0x886f97=getValueByPath(_0x4b285a,[_0x2435df(0x278)]);_0x1563da!==undefined&&_0x886f97!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x278)],_0x886f97);const _0x450e64=getValueByPath(_0x4b285a,[_0x2435df(0x3bf)]);_0x1563da!==undefined&&_0x450e64!=null&&setValueByPath(_0x1563da,['setup',_0x2435df(0x3bf)],_0x450e64);const _0x57394d=getValueByPath(_0x4b285a,[_0x2435df(0x2bd)]);_0x1563da!==undefined&&_0x57394d!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x2bd)],_0x57394d);const _0x38e91d=getValueByPath(_0x4b285a,['contextWindowCompression']);_0x1563da!==undefined&&_0x38e91d!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x722)],_0x38e91d);const _0x140806=getValueByPath(_0x4b285a,[_0x2435df(0x571)]);_0x1563da!==undefined&&_0x140806!=null&&setValueByPath(_0x1563da,['setup',_0x2435df(0x571)],_0x140806);const _0x30ca9f=getValueByPath(_0x4b285a,[_0x2435df(0x601)]);return _0x1563da!==undefined&&_0x30ca9f!=null&&setValueByPath(_0x1563da,[_0x2435df(0x390),_0x2435df(0x601)],_0x30ca9f),_0x4a6270;}function liveConnectParametersToMldev(_0x1f7e80,_0x5be8e1){const _0x486a20=a0_0x254c3a,_0x2c1320={},_0x426e03=getValueByPath(_0x5be8e1,[_0x486a20(0x492)]);_0x426e03!=null&&setValueByPath(_0x2c1320,['setup','model'],tModel(_0x1f7e80,_0x426e03));const _0x3aa821=getValueByPath(_0x5be8e1,['config']);return _0x3aa821!=null&&setValueByPath(_0x2c1320,[_0x486a20(0x563)],liveConnectConfigToMldev$1(_0x3aa821,_0x2c1320)),_0x2c1320;}function liveConnectParametersToVertex(_0x2e8dab,_0x5ec10b){const _0x50d240=a0_0x254c3a,_0x561ddc={},_0x5abdb1=getValueByPath(_0x5ec10b,[_0x50d240(0x492)]);_0x5abdb1!=null&&setValueByPath(_0x561ddc,['setup',_0x50d240(0x492)],tModel(_0x2e8dab,_0x5abdb1));const _0x4deb1a=getValueByPath(_0x5ec10b,[_0x50d240(0x563)]);return _0x4deb1a!=null&&setValueByPath(_0x561ddc,['config'],liveConnectConfigToVertex(_0x4deb1a,_0x561ddc)),_0x561ddc;}function liveMusicSetConfigParametersToMldev(_0x65c495){const _0x17df8f=a0_0x254c3a,_0x359063={},_0x29bf12=getValueByPath(_0x65c495,['musicGenerationConfig']);return _0x29bf12!=null&&setValueByPath(_0x359063,[_0x17df8f(0x175)],_0x29bf12),_0x359063;}function liveMusicSetWeightedPromptsParametersToMldev(_0x9a317){const _0x3b3706=a0_0x254c3a,_0xab25d2={},_0x26bc95=getValueByPath(_0x9a317,['weightedPrompts']);if(_0x26bc95!=null){let _0x750529=_0x26bc95;Array[_0x3b3706(0x192)](_0x750529)&&(_0x750529=_0x750529['map'](_0x151ef2=>{return _0x151ef2;})),setValueByPath(_0xab25d2,[_0x3b3706(0x4d5)],_0x750529);}return _0xab25d2;}function liveSendRealtimeInputParametersToMldev(_0x94f6f1){const _0x3cbd87=a0_0x254c3a,_0x606511={},_0x46f217=getValueByPath(_0x94f6f1,[_0x3cbd87(0x21c)]);if(_0x46f217!=null){let _0x453acd=tBlobs(_0x46f217);Array[_0x3cbd87(0x192)](_0x453acd)&&(_0x453acd=_0x453acd[_0x3cbd87(0x221)](_0x33b24c=>{return blobToMldev$2(_0x33b24c);})),setValueByPath(_0x606511,['mediaChunks'],_0x453acd);}const _0x1417c5=getValueByPath(_0x94f6f1,['audio']);_0x1417c5!=null&&setValueByPath(_0x606511,[_0x3cbd87(0x1aa)],blobToMldev$2(tAudioBlob(_0x1417c5)));const _0x369e30=getValueByPath(_0x94f6f1,[_0x3cbd87(0x260)]);_0x369e30!=null&&setValueByPath(_0x606511,[_0x3cbd87(0x260)],_0x369e30);const _0x5160d4=getValueByPath(_0x94f6f1,['video']);_0x5160d4!=null&&setValueByPath(_0x606511,[_0x3cbd87(0x315)],blobToMldev$2(tImageBlob(_0x5160d4)));const _0x20bfd2=getValueByPath(_0x94f6f1,[_0x3cbd87(0x2ab)]);_0x20bfd2!=null&&setValueByPath(_0x606511,[_0x3cbd87(0x2ab)],_0x20bfd2);const _0x4ac6b3=getValueByPath(_0x94f6f1,[_0x3cbd87(0x344)]);_0x4ac6b3!=null&&setValueByPath(_0x606511,['activityStart'],_0x4ac6b3);const _0x3e09dd=getValueByPath(_0x94f6f1,['activityEnd']);return _0x3e09dd!=null&&setValueByPath(_0x606511,[_0x3cbd87(0x30d)],_0x3e09dd),_0x606511;}function liveSendRealtimeInputParametersToVertex(_0x30bd7f){const _0x3ca2fd=a0_0x254c3a,_0x2e86a8={},_0x375935=getValueByPath(_0x30bd7f,['media']);if(_0x375935!=null){let _0x96dc96=tBlobs(_0x375935);Array['isArray'](_0x96dc96)&&(_0x96dc96=_0x96dc96[_0x3ca2fd(0x221)](_0x2572da=>{return _0x2572da;})),setValueByPath(_0x2e86a8,[_0x3ca2fd(0x49e)],_0x96dc96);}const _0x222e36=getValueByPath(_0x30bd7f,[_0x3ca2fd(0x1aa)]);_0x222e36!=null&&setValueByPath(_0x2e86a8,['audio'],tAudioBlob(_0x222e36));const _0x28b550=getValueByPath(_0x30bd7f,[_0x3ca2fd(0x260)]);_0x28b550!=null&&setValueByPath(_0x2e86a8,[_0x3ca2fd(0x260)],_0x28b550);const _0x1385ad=getValueByPath(_0x30bd7f,[_0x3ca2fd(0x315)]);_0x1385ad!=null&&setValueByPath(_0x2e86a8,[_0x3ca2fd(0x315)],tImageBlob(_0x1385ad));const _0x45f73b=getValueByPath(_0x30bd7f,[_0x3ca2fd(0x2ab)]);_0x45f73b!=null&&setValueByPath(_0x2e86a8,[_0x3ca2fd(0x2ab)],_0x45f73b);const _0x14041e=getValueByPath(_0x30bd7f,[_0x3ca2fd(0x344)]);_0x14041e!=null&&setValueByPath(_0x2e86a8,['activityStart'],_0x14041e);const _0x4c6928=getValueByPath(_0x30bd7f,['activityEnd']);return _0x4c6928!=null&&setValueByPath(_0x2e86a8,['activityEnd'],_0x4c6928),_0x2e86a8;}function liveServerMessageFromVertex(_0x472a06){const _0x49a40b=a0_0x254c3a,_0x4ce1c1={},_0x5ae954=getValueByPath(_0x472a06,['setupComplete']);_0x5ae954!=null&&setValueByPath(_0x4ce1c1,[_0x49a40b(0x665)],_0x5ae954);const _0x27d159=getValueByPath(_0x472a06,[_0x49a40b(0x2a7)]);_0x27d159!=null&&setValueByPath(_0x4ce1c1,[_0x49a40b(0x2a7)],_0x27d159);const _0x347c6d=getValueByPath(_0x472a06,[_0x49a40b(0x70a)]);_0x347c6d!=null&&setValueByPath(_0x4ce1c1,['toolCall'],_0x347c6d);const _0x1e0c79=getValueByPath(_0x472a06,[_0x49a40b(0x439)]);_0x1e0c79!=null&&setValueByPath(_0x4ce1c1,[_0x49a40b(0x439)],_0x1e0c79);const _0x29f875=getValueByPath(_0x472a06,[_0x49a40b(0x39e)]);_0x29f875!=null&&setValueByPath(_0x4ce1c1,['usageMetadata'],usageMetadataFromVertex(_0x29f875));const _0x33786c=getValueByPath(_0x472a06,[_0x49a40b(0x58c)]);_0x33786c!=null&&setValueByPath(_0x4ce1c1,[_0x49a40b(0x58c)],_0x33786c);const _0x8667b1=getValueByPath(_0x472a06,['sessionResumptionUpdate']);_0x8667b1!=null&&setValueByPath(_0x4ce1c1,[_0x49a40b(0x41c)],_0x8667b1);const _0x76efea=getValueByPath(_0x472a06,[_0x49a40b(0x64a)]);_0x76efea!=null&&setValueByPath(_0x4ce1c1,['voiceActivityDetectionSignal'],_0x76efea);const _0x3e6f8e=getValueByPath(_0x472a06,[_0x49a40b(0x4e7)]);return _0x3e6f8e!=null&&setValueByPath(_0x4ce1c1,['voiceActivity'],voiceActivityFromVertex(_0x3e6f8e)),_0x4ce1c1;}function partToMldev$2(_0x35eff7){const _0x22d82c=a0_0x254c3a,_0x154661={},_0x24b4d6=getValueByPath(_0x35eff7,[_0x22d82c(0x667)]);_0x24b4d6!=null&&setValueByPath(_0x154661,[_0x22d82c(0x667)],_0x24b4d6);const _0x1f615b=getValueByPath(_0x35eff7,[_0x22d82c(0x282)]);_0x1f615b!=null&&setValueByPath(_0x154661,[_0x22d82c(0x282)],_0x1f615b);const _0x5ad29b=getValueByPath(_0x35eff7,[_0x22d82c(0x386)]);_0x5ad29b!=null&&setValueByPath(_0x154661,[_0x22d82c(0x386)],_0x5ad29b);const _0x3ceacc=getValueByPath(_0x35eff7,[_0x22d82c(0x26e)]);_0x3ceacc!=null&&setValueByPath(_0x154661,[_0x22d82c(0x26e)],fileDataToMldev$2(_0x3ceacc));const _0x4880be=getValueByPath(_0x35eff7,[_0x22d82c(0x5ff)]);_0x4880be!=null&&setValueByPath(_0x154661,[_0x22d82c(0x5ff)],functionCallToMldev$2(_0x4880be));const _0x59b2c2=getValueByPath(_0x35eff7,[_0x22d82c(0x2af)]);_0x59b2c2!=null&&setValueByPath(_0x154661,['functionResponse'],_0x59b2c2);const _0x46109f=getValueByPath(_0x35eff7,[_0x22d82c(0x59d)]);_0x46109f!=null&&setValueByPath(_0x154661,[_0x22d82c(0x59d)],blobToMldev$2(_0x46109f));const _0x5d7b11=getValueByPath(_0x35eff7,[_0x22d82c(0x2ab)]);_0x5d7b11!=null&&setValueByPath(_0x154661,['text'],_0x5d7b11);const _0x2a411f=getValueByPath(_0x35eff7,[_0x22d82c(0x50b)]);_0x2a411f!=null&&setValueByPath(_0x154661,[_0x22d82c(0x50b)],_0x2a411f);const _0x3cfd2e=getValueByPath(_0x35eff7,[_0x22d82c(0x5ba)]);_0x3cfd2e!=null&&setValueByPath(_0x154661,[_0x22d82c(0x5ba)],_0x3cfd2e);const _0x2dbb09=getValueByPath(_0x35eff7,['videoMetadata']);return _0x2dbb09!=null&&setValueByPath(_0x154661,[_0x22d82c(0x64b)],_0x2dbb09),_0x154661;}function sessionResumptionConfigToMldev$1(_0x2bca84){const _0x101a98=a0_0x254c3a,_0x2219c8={},_0x4ba48a=getValueByPath(_0x2bca84,[_0x101a98(0x3a8)]);_0x4ba48a!=null&&setValueByPath(_0x2219c8,[_0x101a98(0x3a8)],_0x4ba48a);if(getValueByPath(_0x2bca84,['transparent'])!==undefined)throw new Error('transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x2219c8;}function toolToMldev$2(_0x1ca72f){const _0x4f824e=a0_0x254c3a,_0x38161c={};if(getValueByPath(_0x1ca72f,[_0x4f824e(0x71e)])!==undefined)throw new Error(_0x4f824e(0x2ae));const _0x48c812=getValueByPath(_0x1ca72f,[_0x4f824e(0x698)]);_0x48c812!=null&&setValueByPath(_0x38161c,[_0x4f824e(0x698)],_0x48c812);const _0x271363=getValueByPath(_0x1ca72f,[_0x4f824e(0x47d)]);_0x271363!=null&&setValueByPath(_0x38161c,[_0x4f824e(0x47d)],_0x271363);const _0x342ed7=getValueByPath(_0x1ca72f,[_0x4f824e(0x32b)]);_0x342ed7!=null&&setValueByPath(_0x38161c,[_0x4f824e(0x32b)],_0x342ed7);if(getValueByPath(_0x1ca72f,[_0x4f824e(0x506)])!==undefined)throw new Error(_0x4f824e(0x450));const _0x2b6e96=getValueByPath(_0x1ca72f,['functionDeclarations']);if(_0x2b6e96!=null){let _0x1f9e3b=_0x2b6e96;Array[_0x4f824e(0x192)](_0x1f9e3b)&&(_0x1f9e3b=_0x1f9e3b[_0x4f824e(0x221)](_0x1940eb=>{return _0x1940eb;})),setValueByPath(_0x38161c,['functionDeclarations'],_0x1f9e3b);}const _0x8dc97=getValueByPath(_0x1ca72f,['googleMaps']);_0x8dc97!=null&&setValueByPath(_0x38161c,[_0x4f824e(0x688)],googleMapsToMldev$2(_0x8dc97));const _0x483592=getValueByPath(_0x1ca72f,[_0x4f824e(0x436)]);_0x483592!=null&&setValueByPath(_0x38161c,['googleSearch'],googleSearchToMldev$2(_0x483592));const _0x5d8b32=getValueByPath(_0x1ca72f,[_0x4f824e(0x503)]);_0x5d8b32!=null&&setValueByPath(_0x38161c,[_0x4f824e(0x503)],_0x5d8b32);const _0x34b93f=getValueByPath(_0x1ca72f,[_0x4f824e(0x39b)]);return _0x34b93f!=null&&setValueByPath(_0x38161c,[_0x4f824e(0x39b)],_0x34b93f),_0x38161c;}function toolToVertex$1(_0x34f46f){const _0xc8bea4=a0_0x254c3a,_0x1f0cb1={},_0xfccd23=getValueByPath(_0x34f46f,[_0xc8bea4(0x71e)]);_0xfccd23!=null&&setValueByPath(_0x1f0cb1,[_0xc8bea4(0x71e)],_0xfccd23);const _0x2182a6=getValueByPath(_0x34f46f,[_0xc8bea4(0x698)]);_0x2182a6!=null&&setValueByPath(_0x1f0cb1,[_0xc8bea4(0x698)],_0x2182a6);if(getValueByPath(_0x34f46f,[_0xc8bea4(0x47d)])!==undefined)throw new Error(_0xc8bea4(0x51e));const _0x412c03=getValueByPath(_0x34f46f,[_0xc8bea4(0x32b)]);_0x412c03!=null&&setValueByPath(_0x1f0cb1,[_0xc8bea4(0x32b)],_0x412c03);const _0xc33982=getValueByPath(_0x34f46f,[_0xc8bea4(0x506)]);_0xc33982!=null&&setValueByPath(_0x1f0cb1,['enterpriseWebSearch'],_0xc33982);const _0x238ec7=getValueByPath(_0x34f46f,[_0xc8bea4(0x4b0)]);if(_0x238ec7!=null){let _0xe633f9=_0x238ec7;Array[_0xc8bea4(0x192)](_0xe633f9)&&(_0xe633f9=_0xe633f9[_0xc8bea4(0x221)](_0x740864=>{return functionDeclarationToVertex$1(_0x740864);})),setValueByPath(_0x1f0cb1,[_0xc8bea4(0x4b0)],_0xe633f9);}const _0x117995=getValueByPath(_0x34f46f,[_0xc8bea4(0x688)]);_0x117995!=null&&setValueByPath(_0x1f0cb1,[_0xc8bea4(0x688)],_0x117995);const _0x4ea2cd=getValueByPath(_0x34f46f,['googleSearch']);_0x4ea2cd!=null&&setValueByPath(_0x1f0cb1,['googleSearch'],_0x4ea2cd);const _0x56ea03=getValueByPath(_0x34f46f,[_0xc8bea4(0x503)]);_0x56ea03!=null&&setValueByPath(_0x1f0cb1,[_0xc8bea4(0x503)],_0x56ea03);const _0x491931=getValueByPath(_0x34f46f,['urlContext']);return _0x491931!=null&&setValueByPath(_0x1f0cb1,[_0xc8bea4(0x39b)],_0x491931),_0x1f0cb1;}function usageMetadataFromVertex(_0x28e438){const _0x479857=a0_0x254c3a,_0x37d387={},_0x5597c1=getValueByPath(_0x28e438,['promptTokenCount']);_0x5597c1!=null&&setValueByPath(_0x37d387,[_0x479857(0x2d9)],_0x5597c1);const _0x436c0d=getValueByPath(_0x28e438,['cachedContentTokenCount']);_0x436c0d!=null&&setValueByPath(_0x37d387,[_0x479857(0x18a)],_0x436c0d);const _0x1594ab=getValueByPath(_0x28e438,[_0x479857(0x382)]);_0x1594ab!=null&&setValueByPath(_0x37d387,[_0x479857(0x712)],_0x1594ab);const _0x2f6812=getValueByPath(_0x28e438,[_0x479857(0x4a4)]);_0x2f6812!=null&&setValueByPath(_0x37d387,['toolUsePromptTokenCount'],_0x2f6812);const _0x10d7b9=getValueByPath(_0x28e438,[_0x479857(0x1c9)]);_0x10d7b9!=null&&setValueByPath(_0x37d387,['thoughtsTokenCount'],_0x10d7b9);const _0x4f7199=getValueByPath(_0x28e438,[_0x479857(0x2a2)]);_0x4f7199!=null&&setValueByPath(_0x37d387,['totalTokenCount'],_0x4f7199);const _0x255bb6=getValueByPath(_0x28e438,['promptTokensDetails']);if(_0x255bb6!=null){let _0x34cba8=_0x255bb6;Array['isArray'](_0x34cba8)&&(_0x34cba8=_0x34cba8[_0x479857(0x221)](_0x446e15=>{return _0x446e15;})),setValueByPath(_0x37d387,['promptTokensDetails'],_0x34cba8);}const _0xd61478=getValueByPath(_0x28e438,['cacheTokensDetails']);if(_0xd61478!=null){let _0x30e5cf=_0xd61478;Array['isArray'](_0x30e5cf)&&(_0x30e5cf=_0x30e5cf[_0x479857(0x221)](_0xd8ce5e=>{return _0xd8ce5e;})),setValueByPath(_0x37d387,[_0x479857(0x22d)],_0x30e5cf);}const _0x2b067d=getValueByPath(_0x28e438,[_0x479857(0x47b)]);if(_0x2b067d!=null){let _0x2ce85d=_0x2b067d;Array[_0x479857(0x192)](_0x2ce85d)&&(_0x2ce85d=_0x2ce85d[_0x479857(0x221)](_0x499063=>{return _0x499063;})),setValueByPath(_0x37d387,[_0x479857(0x45a)],_0x2ce85d);}const _0xb36881=getValueByPath(_0x28e438,['toolUsePromptTokensDetails']);if(_0xb36881!=null){let _0x222e38=_0xb36881;Array[_0x479857(0x192)](_0x222e38)&&(_0x222e38=_0x222e38[_0x479857(0x221)](_0x39a3e4=>{return _0x39a3e4;})),setValueByPath(_0x37d387,['toolUsePromptTokensDetails'],_0x222e38);}const _0x2c9555=getValueByPath(_0x28e438,[_0x479857(0x523)]);return _0x2c9555!=null&&setValueByPath(_0x37d387,[_0x479857(0x523)],_0x2c9555),_0x37d387;}function voiceActivityFromVertex(_0x1bd79f){const _0x2ce899=a0_0x254c3a,_0x4e8309={},_0x1d4c73=getValueByPath(_0x1bd79f,['type']);return _0x1d4c73!=null&&setValueByPath(_0x4e8309,[_0x2ce899(0x4ed)],_0x1d4c73),_0x4e8309;}/**
212
+ * @license
213
+ * Copyright 2025 Google LLC
214
+ * SPDX-License-Identifier: Apache-2.0
215
+ */
216
+ function blobToMldev$1(_0x431483,_0x371f63){const _0x4f62f1=a0_0x254c3a,_0xd246e1={},_0x5bdfe6=getValueByPath(_0x431483,[_0x4f62f1(0x526)]);_0x5bdfe6!=null&&setValueByPath(_0xd246e1,[_0x4f62f1(0x526)],_0x5bdfe6);if(getValueByPath(_0x431483,[_0x4f62f1(0x462)])!==undefined)throw new Error(_0x4f62f1(0x24a));const _0xa2ddea=getValueByPath(_0x431483,[_0x4f62f1(0x38c)]);return _0xa2ddea!=null&&setValueByPath(_0xd246e1,[_0x4f62f1(0x38c)],_0xa2ddea),_0xd246e1;}function candidateFromMldev(_0x43db6b,_0x530545){const _0x910005=a0_0x254c3a,_0xa02f92={},_0x43b041=getValueByPath(_0x43db6b,[_0x910005(0x60e)]);_0x43b041!=null&&setValueByPath(_0xa02f92,['content'],_0x43b041);const _0x14647e=getValueByPath(_0x43db6b,[_0x910005(0x35e)]);_0x14647e!=null&&setValueByPath(_0xa02f92,['citationMetadata'],citationMetadataFromMldev(_0x14647e));const _0x52ae44=getValueByPath(_0x43db6b,[_0x910005(0x6c8)]);_0x52ae44!=null&&setValueByPath(_0xa02f92,[_0x910005(0x6c8)],_0x52ae44);const _0x28bf99=getValueByPath(_0x43db6b,[_0x910005(0x29a)]);_0x28bf99!=null&&setValueByPath(_0xa02f92,['finishReason'],_0x28bf99);const _0x8158d8=getValueByPath(_0x43db6b,[_0x910005(0x231)]);_0x8158d8!=null&&setValueByPath(_0xa02f92,[_0x910005(0x231)],_0x8158d8);const _0x4c7224=getValueByPath(_0x43db6b,[_0x910005(0x6fe)]);_0x4c7224!=null&&setValueByPath(_0xa02f92,[_0x910005(0x6fe)],_0x4c7224);const _0x5bc0a0=getValueByPath(_0x43db6b,['index']);_0x5bc0a0!=null&&setValueByPath(_0xa02f92,[_0x910005(0x60d)],_0x5bc0a0);const _0x421201=getValueByPath(_0x43db6b,[_0x910005(0x361)]);_0x421201!=null&&setValueByPath(_0xa02f92,['logprobsResult'],_0x421201);const _0x210684=getValueByPath(_0x43db6b,['safetyRatings']);if(_0x210684!=null){let _0xa5f32d=_0x210684;Array[_0x910005(0x192)](_0xa5f32d)&&(_0xa5f32d=_0xa5f32d[_0x910005(0x221)](_0x4c2498=>{return _0x4c2498;})),setValueByPath(_0xa02f92,[_0x910005(0x501)],_0xa5f32d);}const _0x27437b=getValueByPath(_0x43db6b,['urlContextMetadata']);return _0x27437b!=null&&setValueByPath(_0xa02f92,['urlContextMetadata'],_0x27437b),_0xa02f92;}function citationMetadataFromMldev(_0x4420f0,_0x512040){const _0x1cc521=a0_0x254c3a,_0x748cd={},_0x2763f1=getValueByPath(_0x4420f0,[_0x1cc521(0x1c5)]);if(_0x2763f1!=null){let _0x1398e8=_0x2763f1;Array['isArray'](_0x1398e8)&&(_0x1398e8=_0x1398e8[_0x1cc521(0x221)](_0x30cb1c=>{return _0x30cb1c;})),setValueByPath(_0x748cd,[_0x1cc521(0x4ee)],_0x1398e8);}return _0x748cd;}function computeTokensParametersToVertex(_0x2024bb,_0x2532f7,_0x58d60b){const _0x15c655=a0_0x254c3a,_0x2e555d={},_0x1e72ab=getValueByPath(_0x2532f7,[_0x15c655(0x492)]);_0x1e72ab!=null&&setValueByPath(_0x2e555d,[_0x15c655(0x1fb),_0x15c655(0x492)],tModel(_0x2024bb,_0x1e72ab));const _0x1314dc=getValueByPath(_0x2532f7,['contents']);if(_0x1314dc!=null){let _0x4b0b04=tContents(_0x1314dc);Array['isArray'](_0x4b0b04)&&(_0x4b0b04=_0x4b0b04[_0x15c655(0x221)](_0x49da21=>{return _0x49da21;})),setValueByPath(_0x2e555d,[_0x15c655(0x1ea)],_0x4b0b04);}return _0x2e555d;}function computeTokensResponseFromVertex(_0x495adb,_0x24e269){const _0x508f30=a0_0x254c3a,_0x1a0589={},_0x2bccd4=getValueByPath(_0x495adb,[_0x508f30(0x1ab)]);_0x2bccd4!=null&&setValueByPath(_0x1a0589,['sdkHttpResponse'],_0x2bccd4);const _0x4cc22c=getValueByPath(_0x495adb,['tokensInfo']);if(_0x4cc22c!=null){let _0x284166=_0x4cc22c;Array['isArray'](_0x284166)&&(_0x284166=_0x284166[_0x508f30(0x221)](_0x4de268=>{return _0x4de268;})),setValueByPath(_0x1a0589,[_0x508f30(0x376)],_0x284166);}return _0x1a0589;}function contentEmbeddingFromVertex(_0x256d14,_0x57b6a7){const _0x477337=a0_0x254c3a,_0x4c323f={},_0x13831b=getValueByPath(_0x256d14,[_0x477337(0x464)]);_0x13831b!=null&&setValueByPath(_0x4c323f,[_0x477337(0x464)],_0x13831b);const _0x4f50c7=getValueByPath(_0x256d14,[_0x477337(0x583)]);return _0x4f50c7!=null&&setValueByPath(_0x4c323f,['statistics'],contentEmbeddingStatisticsFromVertex(_0x4f50c7)),_0x4c323f;}function contentEmbeddingStatisticsFromVertex(_0x487e9f,_0x38e0f8){const _0x5ee7d1=a0_0x254c3a,_0x30b2b0={},_0x12841f=getValueByPath(_0x487e9f,[_0x5ee7d1(0x31d)]);_0x12841f!=null&&setValueByPath(_0x30b2b0,[_0x5ee7d1(0x31d)],_0x12841f);const _0x455c87=getValueByPath(_0x487e9f,[_0x5ee7d1(0x39a)]);return _0x455c87!=null&&setValueByPath(_0x30b2b0,[_0x5ee7d1(0x6c8)],_0x455c87),_0x30b2b0;}function contentToMldev$1(_0xe6bb26,_0x11ea05){const _0x7e6c1b=a0_0x254c3a,_0x549013={},_0x258d4e=getValueByPath(_0xe6bb26,['parts']);if(_0x258d4e!=null){let _0xc7cfe7=_0x258d4e;Array[_0x7e6c1b(0x192)](_0xc7cfe7)&&(_0xc7cfe7=_0xc7cfe7['map'](_0x175859=>{return partToMldev$1(_0x175859);})),setValueByPath(_0x549013,['parts'],_0xc7cfe7);}const _0x136019=getValueByPath(_0xe6bb26,[_0x7e6c1b(0x5ca)]);return _0x136019!=null&&setValueByPath(_0x549013,[_0x7e6c1b(0x5ca)],_0x136019),_0x549013;}function controlReferenceConfigToVertex(_0x1a9344,_0x401be0){const _0x4f46fb=a0_0x254c3a,_0x41bbba={},_0x5e1dd1=getValueByPath(_0x1a9344,['controlType']);_0x5e1dd1!=null&&setValueByPath(_0x41bbba,[_0x4f46fb(0x223)],_0x5e1dd1);const _0x2726bd=getValueByPath(_0x1a9344,[_0x4f46fb(0x2b2)]);return _0x2726bd!=null&&setValueByPath(_0x41bbba,[_0x4f46fb(0x290)],_0x2726bd),_0x41bbba;}function countTokensConfigToMldev(_0x304e7f,_0xacf67f){const _0x598bdc=a0_0x254c3a,_0x15ae84={};if(getValueByPath(_0x304e7f,['systemInstruction'])!==undefined)throw new Error(_0x598bdc(0x4c4));if(getValueByPath(_0x304e7f,[_0x598bdc(0x1e6)])!==undefined)throw new Error(_0x598bdc(0x3e0));if(getValueByPath(_0x304e7f,[_0x598bdc(0x324)])!==undefined)throw new Error(_0x598bdc(0x5b6));return _0x15ae84;}function countTokensConfigToVertex(_0x3c7626,_0x537a83,_0x31c8b5){const _0x5a28ca=a0_0x254c3a,_0x4930a8={},_0xda1928=getValueByPath(_0x3c7626,[_0x5a28ca(0x2ba)]);_0x537a83!==undefined&&_0xda1928!=null&&setValueByPath(_0x537a83,[_0x5a28ca(0x2ba)],tContent(_0xda1928));const _0x5b18b4=getValueByPath(_0x3c7626,[_0x5a28ca(0x1e6)]);if(_0x537a83!==undefined&&_0x5b18b4!=null){let _0x9fb670=_0x5b18b4;Array[_0x5a28ca(0x192)](_0x9fb670)&&(_0x9fb670=_0x9fb670[_0x5a28ca(0x221)](_0x57bbfa=>{return toolToVertex(_0x57bbfa);})),setValueByPath(_0x537a83,['tools'],_0x9fb670);}const _0x30a5d1=getValueByPath(_0x3c7626,['generationConfig']);return _0x537a83!==undefined&&_0x30a5d1!=null&&setValueByPath(_0x537a83,[_0x5a28ca(0x324)],generationConfigToVertex(_0x30a5d1)),_0x4930a8;}function countTokensParametersToMldev(_0x2170cc,_0x3aea83,_0x4dc513){const _0x1af74b=a0_0x254c3a,_0x317bc6={},_0x569cb7=getValueByPath(_0x3aea83,[_0x1af74b(0x492)]);_0x569cb7!=null&&setValueByPath(_0x317bc6,[_0x1af74b(0x1fb),_0x1af74b(0x492)],tModel(_0x2170cc,_0x569cb7));const _0xcadf2d=getValueByPath(_0x3aea83,[_0x1af74b(0x1ea)]);if(_0xcadf2d!=null){let _0x1fac60=tContents(_0xcadf2d);Array[_0x1af74b(0x192)](_0x1fac60)&&(_0x1fac60=_0x1fac60[_0x1af74b(0x221)](_0x1b388c=>{return contentToMldev$1(_0x1b388c);})),setValueByPath(_0x317bc6,[_0x1af74b(0x1ea)],_0x1fac60);}const _0xb9134a=getValueByPath(_0x3aea83,['config']);return _0xb9134a!=null&&countTokensConfigToMldev(_0xb9134a),_0x317bc6;}function countTokensParametersToVertex(_0x267e3e,_0x30a8fb,_0x4a75eb){const _0x2e1e9a=a0_0x254c3a,_0x52c92b={},_0x685631=getValueByPath(_0x30a8fb,[_0x2e1e9a(0x492)]);_0x685631!=null&&setValueByPath(_0x52c92b,[_0x2e1e9a(0x1fb),_0x2e1e9a(0x492)],tModel(_0x267e3e,_0x685631));const _0x15da9f=getValueByPath(_0x30a8fb,['contents']);if(_0x15da9f!=null){let _0x4899c7=tContents(_0x15da9f);Array[_0x2e1e9a(0x192)](_0x4899c7)&&(_0x4899c7=_0x4899c7[_0x2e1e9a(0x221)](_0x4da947=>{return _0x4da947;})),setValueByPath(_0x52c92b,[_0x2e1e9a(0x1ea)],_0x4899c7);}const _0x560fd6=getValueByPath(_0x30a8fb,[_0x2e1e9a(0x563)]);return _0x560fd6!=null&&countTokensConfigToVertex(_0x560fd6,_0x52c92b),_0x52c92b;}function countTokensResponseFromMldev(_0x3e4bf0,_0x57b959){const _0xbd955a=a0_0x254c3a,_0x33791c={},_0x26f81d=getValueByPath(_0x3e4bf0,[_0xbd955a(0x1ab)]);_0x26f81d!=null&&setValueByPath(_0x33791c,['sdkHttpResponse'],_0x26f81d);const _0x4292c2=getValueByPath(_0x3e4bf0,['totalTokens']);_0x4292c2!=null&&setValueByPath(_0x33791c,[_0xbd955a(0x3c5)],_0x4292c2);const _0x403c23=getValueByPath(_0x3e4bf0,[_0xbd955a(0x18a)]);return _0x403c23!=null&&setValueByPath(_0x33791c,[_0xbd955a(0x18a)],_0x403c23),_0x33791c;}function countTokensResponseFromVertex(_0x53c347,_0x1506c7){const _0x3f3ed6=a0_0x254c3a,_0x8137f8={},_0x5bd3f9=getValueByPath(_0x53c347,[_0x3f3ed6(0x1ab)]);_0x5bd3f9!=null&&setValueByPath(_0x8137f8,[_0x3f3ed6(0x1ab)],_0x5bd3f9);const _0x3e09d6=getValueByPath(_0x53c347,['totalTokens']);return _0x3e09d6!=null&&setValueByPath(_0x8137f8,[_0x3f3ed6(0x3c5)],_0x3e09d6),_0x8137f8;}function deleteModelParametersToMldev(_0x205183,_0x55f03f,_0x52998a){const _0x350592=a0_0x254c3a,_0x23aff1={},_0x414568=getValueByPath(_0x55f03f,[_0x350592(0x492)]);return _0x414568!=null&&setValueByPath(_0x23aff1,[_0x350592(0x1fb),_0x350592(0x68e)],tModel(_0x205183,_0x414568)),_0x23aff1;}function deleteModelParametersToVertex(_0x5b6ebc,_0x3b0c14,_0x6397e3){const _0x4f873d=a0_0x254c3a,_0x53c470={},_0x2bad3a=getValueByPath(_0x3b0c14,[_0x4f873d(0x492)]);return _0x2bad3a!=null&&setValueByPath(_0x53c470,[_0x4f873d(0x1fb),'name'],tModel(_0x5b6ebc,_0x2bad3a)),_0x53c470;}function deleteModelResponseFromMldev(_0x3acf8d,_0x3a419a){const _0x1c8b0f=a0_0x254c3a,_0x1eca8c={},_0x5c504e=getValueByPath(_0x3acf8d,[_0x1c8b0f(0x1ab)]);return _0x5c504e!=null&&setValueByPath(_0x1eca8c,[_0x1c8b0f(0x1ab)],_0x5c504e),_0x1eca8c;}function deleteModelResponseFromVertex(_0x772d0b,_0x5e314e){const _0x5e41a8=a0_0x254c3a,_0x27281c={},_0x47833a=getValueByPath(_0x772d0b,[_0x5e41a8(0x1ab)]);return _0x47833a!=null&&setValueByPath(_0x27281c,['sdkHttpResponse'],_0x47833a),_0x27281c;}function editImageConfigToVertex(_0x6cb47a,_0x5d2098,_0x5ad71d){const _0x4f154a=a0_0x254c3a,_0x179327={},_0xacb50b=getValueByPath(_0x6cb47a,[_0x4f154a(0x53d)]);_0x5d2098!==undefined&&_0xacb50b!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),'storageUri'],_0xacb50b);const _0xf4be3e=getValueByPath(_0x6cb47a,[_0x4f154a(0x62f)]);_0x5d2098!==undefined&&_0xf4be3e!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x62f)],_0xf4be3e);const _0x183531=getValueByPath(_0x6cb47a,[_0x4f154a(0x66e)]);_0x5d2098!==undefined&&_0x183531!=null&&setValueByPath(_0x5d2098,['parameters',_0x4f154a(0x493)],_0x183531);const _0x446782=getValueByPath(_0x6cb47a,[_0x4f154a(0x28e)]);_0x5d2098!==undefined&&_0x446782!=null&&setValueByPath(_0x5d2098,['parameters','aspectRatio'],_0x446782);const _0x951da3=getValueByPath(_0x6cb47a,['guidanceScale']);_0x5d2098!==undefined&&_0x951da3!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x55e)],_0x951da3);const _0x43dcf9=getValueByPath(_0x6cb47a,[_0x4f154a(0x1f8)]);_0x5d2098!==undefined&&_0x43dcf9!=null&&setValueByPath(_0x5d2098,['parameters',_0x4f154a(0x1f8)],_0x43dcf9);const _0x1fed13=getValueByPath(_0x6cb47a,['safetyFilterLevel']);_0x5d2098!==undefined&&_0x1fed13!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),'safetySetting'],_0x1fed13);const _0xdce345=getValueByPath(_0x6cb47a,[_0x4f154a(0x39d)]);_0x5d2098!==undefined&&_0xdce345!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x39d)],_0xdce345);const _0x12ac53=getValueByPath(_0x6cb47a,[_0x4f154a(0x468)]);_0x5d2098!==undefined&&_0x12ac53!=null&&setValueByPath(_0x5d2098,['parameters',_0x4f154a(0x468)],_0x12ac53);const _0x42db12=getValueByPath(_0x6cb47a,['includeRaiReason']);_0x5d2098!==undefined&&_0x42db12!=null&&setValueByPath(_0x5d2098,['parameters',_0x4f154a(0x713)],_0x42db12);const _0x35c442=getValueByPath(_0x6cb47a,['language']);_0x5d2098!==undefined&&_0x35c442!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x449)],_0x35c442);const _0x42e903=getValueByPath(_0x6cb47a,[_0x4f154a(0x530)]);_0x5d2098!==undefined&&_0x42e903!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x3f3),'mimeType'],_0x42e903);const _0x1f40c9=getValueByPath(_0x6cb47a,[_0x4f154a(0x2c1)]);_0x5d2098!==undefined&&_0x1f40c9!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x3f3),'compressionQuality'],_0x1f40c9);const _0x11f6d9=getValueByPath(_0x6cb47a,[_0x4f154a(0x273)]);_0x5d2098!==undefined&&_0x11f6d9!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),'addWatermark'],_0x11f6d9);const _0x4eb769=getValueByPath(_0x6cb47a,['labels']);_0x5d2098!==undefined&&_0x4eb769!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x266)],_0x4eb769);const _0x3d5903=getValueByPath(_0x6cb47a,[_0x4f154a(0x1b7)]);_0x5d2098!==undefined&&_0x3d5903!=null&&setValueByPath(_0x5d2098,[_0x4f154a(0x34d),_0x4f154a(0x1b7)],_0x3d5903);const _0x4a54f1=getValueByPath(_0x6cb47a,[_0x4f154a(0x348)]);return _0x5d2098!==undefined&&_0x4a54f1!=null&&setValueByPath(_0x5d2098,['parameters','editConfig',_0x4f154a(0x348)],_0x4a54f1),_0x179327;}function editImageParametersInternalToVertex(_0x4108a1,_0x553828,_0x12fab9){const _0x20de09=a0_0x254c3a,_0x484af1={},_0x39814d=getValueByPath(_0x553828,[_0x20de09(0x492)]);_0x39814d!=null&&setValueByPath(_0x484af1,[_0x20de09(0x1fb),_0x20de09(0x492)],tModel(_0x4108a1,_0x39814d));const _0x3e1a8b=getValueByPath(_0x553828,[_0x20de09(0x34a)]);_0x3e1a8b!=null&&setValueByPath(_0x484af1,['instances[0]',_0x20de09(0x34a)],_0x3e1a8b);const _0xd0ff47=getValueByPath(_0x553828,[_0x20de09(0x3c7)]);if(_0xd0ff47!=null){let _0xfdcaf7=_0xd0ff47;Array[_0x20de09(0x192)](_0xfdcaf7)&&(_0xfdcaf7=_0xfdcaf7[_0x20de09(0x221)](_0x5c2a6e=>{return referenceImageAPIInternalToVertex(_0x5c2a6e);})),setValueByPath(_0x484af1,[_0x20de09(0x2cb),_0x20de09(0x3c7)],_0xfdcaf7);}const _0x379203=getValueByPath(_0x553828,[_0x20de09(0x563)]);return _0x379203!=null&&editImageConfigToVertex(_0x379203,_0x484af1),_0x484af1;}function editImageResponseFromVertex(_0x542534,_0x30ca7c){const _0x4dd94a=a0_0x254c3a,_0x544d0e={},_0x48615b=getValueByPath(_0x542534,[_0x4dd94a(0x1ab)]);_0x48615b!=null&&setValueByPath(_0x544d0e,[_0x4dd94a(0x1ab)],_0x48615b);const _0xb42658=getValueByPath(_0x542534,['predictions']);if(_0xb42658!=null){let _0x244c2f=_0xb42658;Array[_0x4dd94a(0x192)](_0x244c2f)&&(_0x244c2f=_0x244c2f[_0x4dd94a(0x221)](_0x4dc610=>{return generatedImageFromVertex(_0x4dc610);})),setValueByPath(_0x544d0e,[_0x4dd94a(0x6be)],_0x244c2f);}return _0x544d0e;}function embedContentConfigToMldev(_0x351c8d,_0x474315,_0x4c4a7f){const _0x35e265=a0_0x254c3a,_0x54eb76={},_0x221d42=getValueByPath(_0x351c8d,[_0x35e265(0x54d)]);_0x474315!==undefined&&_0x221d42!=null&&setValueByPath(_0x474315,['requests[]',_0x35e265(0x54d)],_0x221d42);const _0x5ce4a6=getValueByPath(_0x351c8d,[_0x35e265(0x46c)]);_0x474315!==undefined&&_0x5ce4a6!=null&&setValueByPath(_0x474315,[_0x35e265(0x70e),'title'],_0x5ce4a6);const _0x471e84=getValueByPath(_0x351c8d,[_0x35e265(0x6b6)]);_0x474315!==undefined&&_0x471e84!=null&&setValueByPath(_0x474315,['requests[]',_0x35e265(0x6b6)],_0x471e84);if(getValueByPath(_0x351c8d,['mimeType'])!==undefined)throw new Error(_0x35e265(0x210));if(getValueByPath(_0x351c8d,[_0x35e265(0x4b6)])!==undefined)throw new Error(_0x35e265(0x41e));return _0x54eb76;}function embedContentConfigToVertex(_0x5a9f09,_0x4c5da4,_0x38613c){const _0x2c5788=a0_0x254c3a,_0x53da37={},_0x6b9a7a=getValueByPath(_0x5a9f09,[_0x2c5788(0x54d)]);_0x4c5da4!==undefined&&_0x6b9a7a!=null&&setValueByPath(_0x4c5da4,[_0x2c5788(0x37f),_0x2c5788(0x5a8)],_0x6b9a7a);const _0x4818c2=getValueByPath(_0x5a9f09,['title']);_0x4c5da4!==undefined&&_0x4818c2!=null&&setValueByPath(_0x4c5da4,[_0x2c5788(0x37f),'title'],_0x4818c2);const _0xf1147e=getValueByPath(_0x5a9f09,[_0x2c5788(0x6b6)]);_0x4c5da4!==undefined&&_0xf1147e!=null&&setValueByPath(_0x4c5da4,['parameters',_0x2c5788(0x6b6)],_0xf1147e);const _0x4ca301=getValueByPath(_0x5a9f09,['mimeType']);_0x4c5da4!==undefined&&_0x4ca301!=null&&setValueByPath(_0x4c5da4,[_0x2c5788(0x37f),_0x2c5788(0x38c)],_0x4ca301);const _0x464dad=getValueByPath(_0x5a9f09,[_0x2c5788(0x4b6)]);return _0x4c5da4!==undefined&&_0x464dad!=null&&setValueByPath(_0x4c5da4,[_0x2c5788(0x34d),_0x2c5788(0x4b6)],_0x464dad),_0x53da37;}function embedContentParametersToMldev(_0x165a2f,_0x1932eb,_0x464078){const _0x579b62=a0_0x254c3a,_0x57f8ef={},_0x555b8d=getValueByPath(_0x1932eb,['model']);_0x555b8d!=null&&setValueByPath(_0x57f8ef,[_0x579b62(0x1fb),_0x579b62(0x492)],tModel(_0x165a2f,_0x555b8d));const _0x3d9d0c=getValueByPath(_0x1932eb,['contents']);if(_0x3d9d0c!=null){let _0x44d329=tContentsForEmbed(_0x165a2f,_0x3d9d0c);Array[_0x579b62(0x192)](_0x44d329)&&(_0x44d329=_0x44d329[_0x579b62(0x221)](_0x230b53=>{return _0x230b53;})),setValueByPath(_0x57f8ef,[_0x579b62(0x70e),_0x579b62(0x60e)],_0x44d329);}const _0x1dd066=getValueByPath(_0x1932eb,[_0x579b62(0x563)]);_0x1dd066!=null&&embedContentConfigToMldev(_0x1dd066,_0x57f8ef);const _0xf75f8f=getValueByPath(_0x1932eb,[_0x579b62(0x492)]);return _0xf75f8f!==undefined&&setValueByPath(_0x57f8ef,[_0x579b62(0x70e),_0x579b62(0x492)],tModel(_0x165a2f,_0xf75f8f)),_0x57f8ef;}function embedContentParametersToVertex(_0x1eeaa2,_0x213307,_0x54c632){const _0x44e36a=a0_0x254c3a,_0x447024={},_0x44fecf=getValueByPath(_0x213307,[_0x44e36a(0x492)]);_0x44fecf!=null&&setValueByPath(_0x447024,[_0x44e36a(0x1fb),'model'],tModel(_0x1eeaa2,_0x44fecf));const _0x4c9696=getValueByPath(_0x213307,[_0x44e36a(0x1ea)]);if(_0x4c9696!=null){let _0x38bf73=tContentsForEmbed(_0x1eeaa2,_0x4c9696);Array[_0x44e36a(0x192)](_0x38bf73)&&(_0x38bf73=_0x38bf73['map'](_0x28d626=>{return _0x28d626;})),setValueByPath(_0x447024,[_0x44e36a(0x37f),'content'],_0x38bf73);}const _0x33a3aa=getValueByPath(_0x213307,[_0x44e36a(0x563)]);return _0x33a3aa!=null&&embedContentConfigToVertex(_0x33a3aa,_0x447024),_0x447024;}function embedContentResponseFromMldev(_0x1a520c,_0x24cd80){const _0x386262=a0_0x254c3a,_0x18d03={},_0x4cb070=getValueByPath(_0x1a520c,[_0x386262(0x1ab)]);_0x4cb070!=null&&setValueByPath(_0x18d03,['sdkHttpResponse'],_0x4cb070);const _0x234ccb=getValueByPath(_0x1a520c,['embeddings']);if(_0x234ccb!=null){let _0x23d949=_0x234ccb;Array[_0x386262(0x192)](_0x23d949)&&(_0x23d949=_0x23d949[_0x386262(0x221)](_0x544c92=>{return _0x544c92;})),setValueByPath(_0x18d03,[_0x386262(0x20a)],_0x23d949);}const _0x54675a=getValueByPath(_0x1a520c,[_0x386262(0x3d3)]);return _0x54675a!=null&&setValueByPath(_0x18d03,[_0x386262(0x3d3)],_0x54675a),_0x18d03;}function embedContentResponseFromVertex(_0x33ae1d,_0x4c3d1e){const _0x4602b2=a0_0x254c3a,_0x31f810={},_0x4320a1=getValueByPath(_0x33ae1d,[_0x4602b2(0x1ab)]);_0x4320a1!=null&&setValueByPath(_0x31f810,[_0x4602b2(0x1ab)],_0x4320a1);const _0x1fba8e=getValueByPath(_0x33ae1d,[_0x4602b2(0x572),_0x4602b2(0x20a)]);if(_0x1fba8e!=null){let _0xc0ca65=_0x1fba8e;Array[_0x4602b2(0x192)](_0xc0ca65)&&(_0xc0ca65=_0xc0ca65['map'](_0x322e52=>{return contentEmbeddingFromVertex(_0x322e52);})),setValueByPath(_0x31f810,[_0x4602b2(0x20a)],_0xc0ca65);}const _0x209014=getValueByPath(_0x33ae1d,[_0x4602b2(0x3d3)]);return _0x209014!=null&&setValueByPath(_0x31f810,['metadata'],_0x209014),_0x31f810;}function endpointFromVertex(_0x5439a8,_0x10b83e){const _0x575858=a0_0x254c3a,_0x3aaa06={},_0x4cda74=getValueByPath(_0x5439a8,[_0x575858(0x55b)]);_0x4cda74!=null&&setValueByPath(_0x3aaa06,[_0x575858(0x68e)],_0x4cda74);const _0x38344f=getValueByPath(_0x5439a8,[_0x575858(0x3f8)]);return _0x38344f!=null&&setValueByPath(_0x3aaa06,[_0x575858(0x3f8)],_0x38344f),_0x3aaa06;}function fileDataToMldev$1(_0x3833da,_0x2f67b2){const _0x289d55=a0_0x254c3a,_0x1daaf1={};if(getValueByPath(_0x3833da,[_0x289d55(0x462)])!==undefined)throw new Error(_0x289d55(0x24a));const _0x569d7b=getValueByPath(_0x3833da,[_0x289d55(0x617)]);_0x569d7b!=null&&setValueByPath(_0x1daaf1,[_0x289d55(0x617)],_0x569d7b);const _0x21ee36=getValueByPath(_0x3833da,['mimeType']);return _0x21ee36!=null&&setValueByPath(_0x1daaf1,[_0x289d55(0x38c)],_0x21ee36),_0x1daaf1;}function functionCallToMldev$1(_0x214c3c,_0x31b385){const _0x2929c9=a0_0x254c3a,_0x2064a2={},_0x4f7221=getValueByPath(_0x214c3c,['id']);_0x4f7221!=null&&setValueByPath(_0x2064a2,['id'],_0x4f7221);const _0x25bf72=getValueByPath(_0x214c3c,['args']);_0x25bf72!=null&&setValueByPath(_0x2064a2,[_0x2929c9(0x4d6)],_0x25bf72);const _0x4ae888=getValueByPath(_0x214c3c,[_0x2929c9(0x68e)]);_0x4ae888!=null&&setValueByPath(_0x2064a2,[_0x2929c9(0x68e)],_0x4ae888);if(getValueByPath(_0x214c3c,['partialArgs'])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x214c3c,[_0x2929c9(0x480)])!==undefined)throw new Error(_0x2929c9(0x17d));return _0x2064a2;}function functionCallingConfigToMldev(_0x18c781,_0x439c04){const _0x52efbf=a0_0x254c3a,_0x162ae0={},_0x4fb6de=getValueByPath(_0x18c781,['allowedFunctionNames']);_0x4fb6de!=null&&setValueByPath(_0x162ae0,[_0x52efbf(0x19b)],_0x4fb6de);const _0x4326d4=getValueByPath(_0x18c781,[_0x52efbf(0x19e)]);_0x4326d4!=null&&setValueByPath(_0x162ae0,['mode'],_0x4326d4);if(getValueByPath(_0x18c781,[_0x52efbf(0x557)])!==undefined)throw new Error(_0x52efbf(0x2e4));return _0x162ae0;}function functionDeclarationToVertex(_0x35ef2a,_0x38de88){const _0x377f7d=a0_0x254c3a,_0x62c624={},_0x10da26=getValueByPath(_0x35ef2a,[_0x377f7d(0x3b3)]);_0x10da26!=null&&setValueByPath(_0x62c624,[_0x377f7d(0x3b3)],_0x10da26);const _0x48d293=getValueByPath(_0x35ef2a,['name']);_0x48d293!=null&&setValueByPath(_0x62c624,['name'],_0x48d293);const _0x2b4615=getValueByPath(_0x35ef2a,[_0x377f7d(0x34d)]);_0x2b4615!=null&&setValueByPath(_0x62c624,[_0x377f7d(0x34d)],_0x2b4615);const _0x26e1e7=getValueByPath(_0x35ef2a,[_0x377f7d(0x3d0)]);_0x26e1e7!=null&&setValueByPath(_0x62c624,[_0x377f7d(0x3d0)],_0x26e1e7);const _0x35c30b=getValueByPath(_0x35ef2a,[_0x377f7d(0x218)]);_0x35c30b!=null&&setValueByPath(_0x62c624,[_0x377f7d(0x218)],_0x35c30b);const _0x2bda1c=getValueByPath(_0x35ef2a,['responseJsonSchema']);_0x2bda1c!=null&&setValueByPath(_0x62c624,[_0x377f7d(0x2a6)],_0x2bda1c);if(getValueByPath(_0x35ef2a,[_0x377f7d(0x306)])!==undefined)throw new Error(_0x377f7d(0x695));return _0x62c624;}function generateContentConfigToMldev(_0x1268ff,_0x221f6c,_0x40318b,_0x5f5628){const _0x4d9c62=a0_0x254c3a,_0x28db58={},_0x25cb77=getValueByPath(_0x221f6c,[_0x4d9c62(0x2ba)]);_0x40318b!==undefined&&_0x25cb77!=null&&setValueByPath(_0x40318b,[_0x4d9c62(0x2ba)],contentToMldev$1(tContent(_0x25cb77)));const _0x296abb=getValueByPath(_0x221f6c,['temperature']);_0x296abb!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x1e2)],_0x296abb);const _0x20f022=getValueByPath(_0x221f6c,[_0x4d9c62(0x651)]);_0x20f022!=null&&setValueByPath(_0x28db58,['topP'],_0x20f022);const _0x16af25=getValueByPath(_0x221f6c,['topK']);_0x16af25!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x1a6)],_0x16af25);const _0x14deee=getValueByPath(_0x221f6c,['candidateCount']);_0x14deee!=null&&setValueByPath(_0x28db58,['candidateCount'],_0x14deee);const _0x196140=getValueByPath(_0x221f6c,[_0x4d9c62(0x1a3)]);_0x196140!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x1a3)],_0x196140);const _0x511583=getValueByPath(_0x221f6c,[_0x4d9c62(0x56b)]);_0x511583!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x56b)],_0x511583);const _0x609441=getValueByPath(_0x221f6c,[_0x4d9c62(0x725)]);_0x609441!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x725)],_0x609441);const _0x1a32c3=getValueByPath(_0x221f6c,[_0x4d9c62(0x4da)]);_0x1a32c3!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x4da)],_0x1a32c3);const _0x3fdb6d=getValueByPath(_0x221f6c,[_0x4d9c62(0x646)]);_0x3fdb6d!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x646)],_0x3fdb6d);const _0x187e81=getValueByPath(_0x221f6c,[_0x4d9c62(0x71c)]);_0x187e81!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x71c)],_0x187e81);const _0x5480ca=getValueByPath(_0x221f6c,[_0x4d9c62(0x1f8)]);_0x5480ca!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x1f8)],_0x5480ca);const _0x183d53=getValueByPath(_0x221f6c,['responseMimeType']);_0x183d53!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x28f)],_0x183d53);const _0x513629=getValueByPath(_0x221f6c,[_0x4d9c62(0x1cb)]);_0x513629!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x1cb)],tSchema(_0x513629));const _0x5f0a20=getValueByPath(_0x221f6c,[_0x4d9c62(0x2a6)]);_0x5f0a20!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x2a6)],_0x5f0a20);if(getValueByPath(_0x221f6c,[_0x4d9c62(0x638)])!==undefined)throw new Error(_0x4d9c62(0x1e4));if(getValueByPath(_0x221f6c,[_0x4d9c62(0x69b)])!==undefined)throw new Error('modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x255a37=getValueByPath(_0x221f6c,['safetySettings']);if(_0x40318b!==undefined&&_0x255a37!=null){let _0x18d00f=_0x255a37;Array[_0x4d9c62(0x192)](_0x18d00f)&&(_0x18d00f=_0x18d00f[_0x4d9c62(0x221)](_0x531516=>{return safetySettingToMldev(_0x531516);})),setValueByPath(_0x40318b,[_0x4d9c62(0x36a)],_0x18d00f);}const _0x5da003=getValueByPath(_0x221f6c,[_0x4d9c62(0x1e6)]);if(_0x40318b!==undefined&&_0x5da003!=null){let _0x40c113=tTools(_0x5da003);Array['isArray'](_0x40c113)&&(_0x40c113=_0x40c113[_0x4d9c62(0x221)](_0x2d6545=>{return toolToMldev$1(tTool(_0x2d6545));})),setValueByPath(_0x40318b,[_0x4d9c62(0x1e6)],_0x40c113);}const _0xb727c0=getValueByPath(_0x221f6c,[_0x4d9c62(0x440)]);_0x40318b!==undefined&&_0xb727c0!=null&&setValueByPath(_0x40318b,['toolConfig'],toolConfigToMldev(_0xb727c0));if(getValueByPath(_0x221f6c,['labels'])!==undefined)throw new Error('labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x3924e3=getValueByPath(_0x221f6c,['cachedContent']);_0x40318b!==undefined&&_0x3924e3!=null&&setValueByPath(_0x40318b,['cachedContent'],tCachedContentName(_0x1268ff,_0x3924e3));const _0x3b6a69=getValueByPath(_0x221f6c,['responseModalities']);_0x3b6a69!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x6d4)],_0x3b6a69);const _0x421f6f=getValueByPath(_0x221f6c,['mediaResolution']);_0x421f6f!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x667)],_0x421f6f);const _0x843aee=getValueByPath(_0x221f6c,['speechConfig']);_0x843aee!=null&&setValueByPath(_0x28db58,['speechConfig'],tSpeechConfig(_0x843aee));if(getValueByPath(_0x221f6c,[_0x4d9c62(0x633)])!==undefined)throw new Error(_0x4d9c62(0x65a));const _0x1e3607=getValueByPath(_0x221f6c,[_0x4d9c62(0x414)]);_0x1e3607!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x414)],_0x1e3607);const _0x1d8378=getValueByPath(_0x221f6c,[_0x4d9c62(0x61c)]);_0x1d8378!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x61c)],imageConfigToMldev(_0x1d8378));const _0x2a9f3d=getValueByPath(_0x221f6c,[_0x4d9c62(0x4e9)]);_0x2a9f3d!=null&&setValueByPath(_0x28db58,[_0x4d9c62(0x4e9)],_0x2a9f3d);if(getValueByPath(_0x221f6c,[_0x4d9c62(0x6ad)])!==undefined)throw new Error('modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x28db58;}function generateContentConfigToVertex(_0x150357,_0xbfa84a,_0x53be16,_0x481fe9){const _0x450c0f=a0_0x254c3a,_0x4300ea={},_0x8f27dc=getValueByPath(_0xbfa84a,[_0x450c0f(0x2ba)]);_0x53be16!==undefined&&_0x8f27dc!=null&&setValueByPath(_0x53be16,[_0x450c0f(0x2ba)],tContent(_0x8f27dc));const _0x361bd8=getValueByPath(_0xbfa84a,['temperature']);_0x361bd8!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x1e2)],_0x361bd8);const _0x436eb4=getValueByPath(_0xbfa84a,['topP']);_0x436eb4!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x651)],_0x436eb4);const _0xcf10a8=getValueByPath(_0xbfa84a,[_0x450c0f(0x1a6)]);_0xcf10a8!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x1a6)],_0xcf10a8);const _0x31df83=getValueByPath(_0xbfa84a,[_0x450c0f(0x518)]);_0x31df83!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x518)],_0x31df83);const _0x58a645=getValueByPath(_0xbfa84a,['maxOutputTokens']);_0x58a645!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x1a3)],_0x58a645);const _0x4ca06a=getValueByPath(_0xbfa84a,[_0x450c0f(0x56b)]);_0x4ca06a!=null&&setValueByPath(_0x4300ea,['stopSequences'],_0x4ca06a);const _0xd7b17e=getValueByPath(_0xbfa84a,[_0x450c0f(0x725)]);_0xd7b17e!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x725)],_0xd7b17e);const _0x2545a1=getValueByPath(_0xbfa84a,[_0x450c0f(0x4da)]);_0x2545a1!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x4da)],_0x2545a1);const _0x5730ec=getValueByPath(_0xbfa84a,[_0x450c0f(0x646)]);_0x5730ec!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x646)],_0x5730ec);const _0x202162=getValueByPath(_0xbfa84a,[_0x450c0f(0x71c)]);_0x202162!=null&&setValueByPath(_0x4300ea,['frequencyPenalty'],_0x202162);const _0x3d9a92=getValueByPath(_0xbfa84a,[_0x450c0f(0x1f8)]);_0x3d9a92!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x1f8)],_0x3d9a92);const _0x326a24=getValueByPath(_0xbfa84a,['responseMimeType']);_0x326a24!=null&&setValueByPath(_0x4300ea,['responseMimeType'],_0x326a24);const _0x1b5d23=getValueByPath(_0xbfa84a,[_0x450c0f(0x1cb)]);_0x1b5d23!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x1cb)],tSchema(_0x1b5d23));const _0x5a8883=getValueByPath(_0xbfa84a,[_0x450c0f(0x2a6)]);_0x5a8883!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x2a6)],_0x5a8883);const _0x389c15=getValueByPath(_0xbfa84a,[_0x450c0f(0x638)]);_0x389c15!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x638)],_0x389c15);const _0x205440=getValueByPath(_0xbfa84a,[_0x450c0f(0x69b)]);_0x205440!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x58a)],_0x205440);const _0x58f311=getValueByPath(_0xbfa84a,[_0x450c0f(0x36a)]);if(_0x53be16!==undefined&&_0x58f311!=null){let _0x477895=_0x58f311;Array[_0x450c0f(0x192)](_0x477895)&&(_0x477895=_0x477895[_0x450c0f(0x221)](_0x57e90c=>{return _0x57e90c;})),setValueByPath(_0x53be16,['safetySettings'],_0x477895);}const _0x15f0e3=getValueByPath(_0xbfa84a,['tools']);if(_0x53be16!==undefined&&_0x15f0e3!=null){let _0x6c8c26=tTools(_0x15f0e3);Array['isArray'](_0x6c8c26)&&(_0x6c8c26=_0x6c8c26[_0x450c0f(0x221)](_0x3068eb=>{return toolToVertex(tTool(_0x3068eb));})),setValueByPath(_0x53be16,['tools'],_0x6c8c26);}const _0x534ff7=getValueByPath(_0xbfa84a,['toolConfig']);_0x53be16!==undefined&&_0x534ff7!=null&&setValueByPath(_0x53be16,[_0x450c0f(0x440)],_0x534ff7);const _0x363513=getValueByPath(_0xbfa84a,[_0x450c0f(0x266)]);_0x53be16!==undefined&&_0x363513!=null&&setValueByPath(_0x53be16,[_0x450c0f(0x266)],_0x363513);const _0x52e527=getValueByPath(_0xbfa84a,['cachedContent']);_0x53be16!==undefined&&_0x52e527!=null&&setValueByPath(_0x53be16,['cachedContent'],tCachedContentName(_0x150357,_0x52e527));const _0x2dca5b=getValueByPath(_0xbfa84a,['responseModalities']);_0x2dca5b!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x6d4)],_0x2dca5b);const _0x342821=getValueByPath(_0xbfa84a,[_0x450c0f(0x667)]);_0x342821!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x667)],_0x342821);const _0xa74560=getValueByPath(_0xbfa84a,['speechConfig']);_0xa74560!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x540)],tSpeechConfig(_0xa74560));const _0xc41982=getValueByPath(_0xbfa84a,[_0x450c0f(0x633)]);_0xc41982!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x633)],_0xc41982);const _0x58c90b=getValueByPath(_0xbfa84a,[_0x450c0f(0x414)]);_0x58c90b!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x414)],_0x58c90b);const _0x3f494c=getValueByPath(_0xbfa84a,[_0x450c0f(0x61c)]);_0x3f494c!=null&&setValueByPath(_0x4300ea,[_0x450c0f(0x61c)],imageConfigToVertex(_0x3f494c));if(getValueByPath(_0xbfa84a,[_0x450c0f(0x4e9)])!==undefined)throw new Error(_0x450c0f(0x351));const _0x27e4d2=getValueByPath(_0xbfa84a,['modelArmorConfig']);return _0x53be16!==undefined&&_0x27e4d2!=null&&setValueByPath(_0x53be16,[_0x450c0f(0x6ad)],_0x27e4d2),_0x4300ea;}function generateContentParametersToMldev(_0xe2df01,_0xdbb139,_0x3c7915){const _0x1c3684=a0_0x254c3a,_0x1347df={},_0x4f8903=getValueByPath(_0xdbb139,[_0x1c3684(0x492)]);_0x4f8903!=null&&setValueByPath(_0x1347df,['_url',_0x1c3684(0x492)],tModel(_0xe2df01,_0x4f8903));const _0xa5b0f2=getValueByPath(_0xdbb139,[_0x1c3684(0x1ea)]);if(_0xa5b0f2!=null){let _0x362085=tContents(_0xa5b0f2);Array['isArray'](_0x362085)&&(_0x362085=_0x362085['map'](_0x49d349=>{return contentToMldev$1(_0x49d349);})),setValueByPath(_0x1347df,['contents'],_0x362085);}const _0x5d9819=getValueByPath(_0xdbb139,[_0x1c3684(0x563)]);return _0x5d9819!=null&&setValueByPath(_0x1347df,[_0x1c3684(0x324)],generateContentConfigToMldev(_0xe2df01,_0x5d9819,_0x1347df)),_0x1347df;}function generateContentParametersToVertex(_0xd1585b,_0x501385,_0x1f5cf1){const _0x620427=a0_0x254c3a,_0x88c288={},_0x11d0fd=getValueByPath(_0x501385,[_0x620427(0x492)]);_0x11d0fd!=null&&setValueByPath(_0x88c288,['_url',_0x620427(0x492)],tModel(_0xd1585b,_0x11d0fd));const _0x30202a=getValueByPath(_0x501385,[_0x620427(0x1ea)]);if(_0x30202a!=null){let _0x544c50=tContents(_0x30202a);Array[_0x620427(0x192)](_0x544c50)&&(_0x544c50=_0x544c50[_0x620427(0x221)](_0x43b7b5=>{return _0x43b7b5;})),setValueByPath(_0x88c288,['contents'],_0x544c50);}const _0x5eaad2=getValueByPath(_0x501385,[_0x620427(0x563)]);return _0x5eaad2!=null&&setValueByPath(_0x88c288,[_0x620427(0x324)],generateContentConfigToVertex(_0xd1585b,_0x5eaad2,_0x88c288)),_0x88c288;}function generateContentResponseFromMldev(_0x15b46e,_0x2302d9){const _0x3ae347=a0_0x254c3a,_0x260b71={},_0x4331c9=getValueByPath(_0x15b46e,['sdkHttpResponse']);_0x4331c9!=null&&setValueByPath(_0x260b71,[_0x3ae347(0x1ab)],_0x4331c9);const _0x48d242=getValueByPath(_0x15b46e,['candidates']);if(_0x48d242!=null){let _0x414430=_0x48d242;Array[_0x3ae347(0x192)](_0x414430)&&(_0x414430=_0x414430[_0x3ae347(0x221)](_0x80fab0=>{return candidateFromMldev(_0x80fab0);})),setValueByPath(_0x260b71,['candidates'],_0x414430);}const _0x4a227c=getValueByPath(_0x15b46e,[_0x3ae347(0x333)]);_0x4a227c!=null&&setValueByPath(_0x260b71,[_0x3ae347(0x333)],_0x4a227c);const _0x1466e4=getValueByPath(_0x15b46e,[_0x3ae347(0x693)]);_0x1466e4!=null&&setValueByPath(_0x260b71,['promptFeedback'],_0x1466e4);const _0x1d425a=getValueByPath(_0x15b46e,[_0x3ae347(0x6f7)]);_0x1d425a!=null&&setValueByPath(_0x260b71,['responseId'],_0x1d425a);const _0x20e3da=getValueByPath(_0x15b46e,[_0x3ae347(0x39e)]);return _0x20e3da!=null&&setValueByPath(_0x260b71,[_0x3ae347(0x39e)],_0x20e3da),_0x260b71;}function generateContentResponseFromVertex(_0xf07c5a,_0x506347){const _0x204954=a0_0x254c3a,_0x58af2a={},_0x4524ca=getValueByPath(_0xf07c5a,[_0x204954(0x1ab)]);_0x4524ca!=null&&setValueByPath(_0x58af2a,['sdkHttpResponse'],_0x4524ca);const _0x398e94=getValueByPath(_0xf07c5a,[_0x204954(0x711)]);if(_0x398e94!=null){let _0x4c0363=_0x398e94;Array[_0x204954(0x192)](_0x4c0363)&&(_0x4c0363=_0x4c0363['map'](_0x23ec8e=>{return _0x23ec8e;})),setValueByPath(_0x58af2a,[_0x204954(0x711)],_0x4c0363);}const _0x43936e=getValueByPath(_0xf07c5a,['createTime']);_0x43936e!=null&&setValueByPath(_0x58af2a,[_0x204954(0x3ff)],_0x43936e);const _0x2fc088=getValueByPath(_0xf07c5a,[_0x204954(0x333)]);_0x2fc088!=null&&setValueByPath(_0x58af2a,['modelVersion'],_0x2fc088);const _0x40d591=getValueByPath(_0xf07c5a,[_0x204954(0x693)]);_0x40d591!=null&&setValueByPath(_0x58af2a,[_0x204954(0x693)],_0x40d591);const _0x5417fd=getValueByPath(_0xf07c5a,['responseId']);_0x5417fd!=null&&setValueByPath(_0x58af2a,['responseId'],_0x5417fd);const _0x4845fd=getValueByPath(_0xf07c5a,[_0x204954(0x39e)]);return _0x4845fd!=null&&setValueByPath(_0x58af2a,[_0x204954(0x39e)],_0x4845fd),_0x58af2a;}function generateImagesConfigToMldev(_0x1b2be8,_0x23a06b,_0x300705){const _0x3882f0=a0_0x254c3a,_0x43d87e={};if(getValueByPath(_0x1b2be8,[_0x3882f0(0x53d)])!==undefined)throw new Error(_0x3882f0(0x289));if(getValueByPath(_0x1b2be8,[_0x3882f0(0x62f)])!==undefined)throw new Error('negativePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x2907da=getValueByPath(_0x1b2be8,['numberOfImages']);_0x23a06b!==undefined&&_0x2907da!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),_0x3882f0(0x493)],_0x2907da);const _0x1508c3=getValueByPath(_0x1b2be8,[_0x3882f0(0x28e)]);_0x23a06b!==undefined&&_0x1508c3!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),_0x3882f0(0x28e)],_0x1508c3);const _0xa19751=getValueByPath(_0x1b2be8,['guidanceScale']);_0x23a06b!==undefined&&_0xa19751!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),_0x3882f0(0x55e)],_0xa19751);if(getValueByPath(_0x1b2be8,['seed'])!==undefined)throw new Error(_0x3882f0(0x297));const _0x90fb25=getValueByPath(_0x1b2be8,[_0x3882f0(0x454)]);_0x23a06b!==undefined&&_0x90fb25!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),_0x3882f0(0x5bc)],_0x90fb25);const _0x4e657c=getValueByPath(_0x1b2be8,[_0x3882f0(0x39d)]);_0x23a06b!==undefined&&_0x4e657c!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),'personGeneration'],_0x4e657c);const _0x30d701=getValueByPath(_0x1b2be8,['includeSafetyAttributes']);_0x23a06b!==undefined&&_0x30d701!=null&&setValueByPath(_0x23a06b,['parameters',_0x3882f0(0x468)],_0x30d701);const _0x28ac94=getValueByPath(_0x1b2be8,[_0x3882f0(0x713)]);_0x23a06b!==undefined&&_0x28ac94!=null&&setValueByPath(_0x23a06b,['parameters',_0x3882f0(0x713)],_0x28ac94);const _0x1d7f2c=getValueByPath(_0x1b2be8,['language']);_0x23a06b!==undefined&&_0x1d7f2c!=null&&setValueByPath(_0x23a06b,['parameters',_0x3882f0(0x449)],_0x1d7f2c);const _0x3511b4=getValueByPath(_0x1b2be8,[_0x3882f0(0x530)]);_0x23a06b!==undefined&&_0x3511b4!=null&&setValueByPath(_0x23a06b,['parameters',_0x3882f0(0x3f3),_0x3882f0(0x38c)],_0x3511b4);const _0x5277b5=getValueByPath(_0x1b2be8,[_0x3882f0(0x2c1)]);_0x23a06b!==undefined&&_0x5277b5!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),_0x3882f0(0x3f3),'compressionQuality'],_0x5277b5);if(getValueByPath(_0x1b2be8,[_0x3882f0(0x273)])!==undefined)throw new Error(_0x3882f0(0x6e9));if(getValueByPath(_0x1b2be8,[_0x3882f0(0x266)])!==undefined)throw new Error('labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x386cf4=getValueByPath(_0x1b2be8,[_0x3882f0(0x25c)]);_0x23a06b!==undefined&&_0x386cf4!=null&&setValueByPath(_0x23a06b,[_0x3882f0(0x34d),_0x3882f0(0x45b)],_0x386cf4);if(getValueByPath(_0x1b2be8,[_0x3882f0(0x343)])!==undefined)throw new Error('enhancePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x43d87e;}function generateImagesConfigToVertex(_0x33d958,_0x2d5dbb,_0x13198b){const _0x48d1a1=a0_0x254c3a,_0x1249bb={},_0x52425d=getValueByPath(_0x33d958,['outputGcsUri']);_0x2d5dbb!==undefined&&_0x52425d!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),'storageUri'],_0x52425d);const _0x4bca54=getValueByPath(_0x33d958,[_0x48d1a1(0x62f)]);_0x2d5dbb!==undefined&&_0x4bca54!=null&&setValueByPath(_0x2d5dbb,['parameters','negativePrompt'],_0x4bca54);const _0x579028=getValueByPath(_0x33d958,[_0x48d1a1(0x66e)]);_0x2d5dbb!==undefined&&_0x579028!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x493)],_0x579028);const _0x60e302=getValueByPath(_0x33d958,['aspectRatio']);_0x2d5dbb!==undefined&&_0x60e302!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x28e)],_0x60e302);const _0x1c4c9d=getValueByPath(_0x33d958,[_0x48d1a1(0x55e)]);_0x2d5dbb!==undefined&&_0x1c4c9d!=null&&setValueByPath(_0x2d5dbb,['parameters',_0x48d1a1(0x55e)],_0x1c4c9d);const _0x41f5f8=getValueByPath(_0x33d958,[_0x48d1a1(0x1f8)]);_0x2d5dbb!==undefined&&_0x41f5f8!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x1f8)],_0x41f5f8);const _0x3c3208=getValueByPath(_0x33d958,[_0x48d1a1(0x454)]);_0x2d5dbb!==undefined&&_0x3c3208!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x5bc)],_0x3c3208);const _0x4c8866=getValueByPath(_0x33d958,['personGeneration']);_0x2d5dbb!==undefined&&_0x4c8866!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x39d)],_0x4c8866);const _0x563823=getValueByPath(_0x33d958,[_0x48d1a1(0x468)]);_0x2d5dbb!==undefined&&_0x563823!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x468)],_0x563823);const _0x632ece=getValueByPath(_0x33d958,[_0x48d1a1(0x713)]);_0x2d5dbb!==undefined&&_0x632ece!=null&&setValueByPath(_0x2d5dbb,['parameters',_0x48d1a1(0x713)],_0x632ece);const _0x3bfcd1=getValueByPath(_0x33d958,['language']);_0x2d5dbb!==undefined&&_0x3bfcd1!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x449)],_0x3bfcd1);const _0x5c8514=getValueByPath(_0x33d958,['outputMimeType']);_0x2d5dbb!==undefined&&_0x5c8514!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x3f3),_0x48d1a1(0x38c)],_0x5c8514);const _0x63b4e7=getValueByPath(_0x33d958,[_0x48d1a1(0x2c1)]);_0x2d5dbb!==undefined&&_0x63b4e7!=null&&setValueByPath(_0x2d5dbb,['parameters',_0x48d1a1(0x3f3),_0x48d1a1(0x3bd)],_0x63b4e7);const _0x568691=getValueByPath(_0x33d958,[_0x48d1a1(0x273)]);_0x2d5dbb!==undefined&&_0x568691!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x273)],_0x568691);const _0x3d2a27=getValueByPath(_0x33d958,[_0x48d1a1(0x266)]);_0x2d5dbb!==undefined&&_0x3d2a27!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x266)],_0x3d2a27);const _0x5d739e=getValueByPath(_0x33d958,[_0x48d1a1(0x25c)]);_0x2d5dbb!==undefined&&_0x5d739e!=null&&setValueByPath(_0x2d5dbb,['parameters',_0x48d1a1(0x45b)],_0x5d739e);const _0x35fcae=getValueByPath(_0x33d958,[_0x48d1a1(0x343)]);return _0x2d5dbb!==undefined&&_0x35fcae!=null&&setValueByPath(_0x2d5dbb,[_0x48d1a1(0x34d),_0x48d1a1(0x343)],_0x35fcae),_0x1249bb;}function generateImagesParametersToMldev(_0x29a387,_0xe46286,_0x873779){const _0x48726a=a0_0x254c3a,_0x31ce43={},_0x331372=getValueByPath(_0xe46286,[_0x48726a(0x492)]);_0x331372!=null&&setValueByPath(_0x31ce43,[_0x48726a(0x1fb),_0x48726a(0x492)],tModel(_0x29a387,_0x331372));const _0x239a39=getValueByPath(_0xe46286,['prompt']);_0x239a39!=null&&setValueByPath(_0x31ce43,[_0x48726a(0x2cb),_0x48726a(0x34a)],_0x239a39);const _0x4307c3=getValueByPath(_0xe46286,[_0x48726a(0x563)]);return _0x4307c3!=null&&generateImagesConfigToMldev(_0x4307c3,_0x31ce43),_0x31ce43;}function generateImagesParametersToVertex(_0x865681,_0x45124f,_0x1e494d){const _0x470d47=a0_0x254c3a,_0x1e77b9={},_0x541856=getValueByPath(_0x45124f,[_0x470d47(0x492)]);_0x541856!=null&&setValueByPath(_0x1e77b9,[_0x470d47(0x1fb),_0x470d47(0x492)],tModel(_0x865681,_0x541856));const _0x50e57a=getValueByPath(_0x45124f,[_0x470d47(0x34a)]);_0x50e57a!=null&&setValueByPath(_0x1e77b9,[_0x470d47(0x2cb),_0x470d47(0x34a)],_0x50e57a);const _0x5de9e0=getValueByPath(_0x45124f,[_0x470d47(0x563)]);return _0x5de9e0!=null&&generateImagesConfigToVertex(_0x5de9e0,_0x1e77b9),_0x1e77b9;}function generateImagesResponseFromMldev(_0x177f7b,_0x679225){const _0x7dfaf9=a0_0x254c3a,_0x2437a2={},_0x4e99fd=getValueByPath(_0x177f7b,[_0x7dfaf9(0x1ab)]);_0x4e99fd!=null&&setValueByPath(_0x2437a2,[_0x7dfaf9(0x1ab)],_0x4e99fd);const _0x4f95ca=getValueByPath(_0x177f7b,['predictions']);if(_0x4f95ca!=null){let _0x288824=_0x4f95ca;Array[_0x7dfaf9(0x192)](_0x288824)&&(_0x288824=_0x288824[_0x7dfaf9(0x221)](_0x3cbd64=>{return generatedImageFromMldev(_0x3cbd64);})),setValueByPath(_0x2437a2,[_0x7dfaf9(0x6be)],_0x288824);}const _0x3077a6=getValueByPath(_0x177f7b,[_0x7dfaf9(0x4b7)]);return _0x3077a6!=null&&setValueByPath(_0x2437a2,[_0x7dfaf9(0x4b7)],safetyAttributesFromMldev(_0x3077a6)),_0x2437a2;}function generateImagesResponseFromVertex(_0x12f506,_0x1a30f8){const _0x13c030=a0_0x254c3a,_0x3a53e9={},_0x315ae8=getValueByPath(_0x12f506,[_0x13c030(0x1ab)]);_0x315ae8!=null&&setValueByPath(_0x3a53e9,[_0x13c030(0x1ab)],_0x315ae8);const _0x2a1eb5=getValueByPath(_0x12f506,[_0x13c030(0x6dc)]);if(_0x2a1eb5!=null){let _0x241e75=_0x2a1eb5;Array[_0x13c030(0x192)](_0x241e75)&&(_0x241e75=_0x241e75['map'](_0x3e7858=>{return generatedImageFromVertex(_0x3e7858);})),setValueByPath(_0x3a53e9,[_0x13c030(0x6be)],_0x241e75);}const _0x467834=getValueByPath(_0x12f506,[_0x13c030(0x4b7)]);return _0x467834!=null&&setValueByPath(_0x3a53e9,[_0x13c030(0x4b7)],safetyAttributesFromVertex(_0x467834)),_0x3a53e9;}function generateVideosConfigToMldev(_0x53b54e,_0x37c9fa,_0x12a36e){const _0x19df2b=a0_0x254c3a,_0x169c08={},_0x2c905b=getValueByPath(_0x53b54e,[_0x19df2b(0x466)]);_0x37c9fa!==undefined&&_0x2c905b!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),_0x19df2b(0x493)],_0x2c905b);if(getValueByPath(_0x53b54e,[_0x19df2b(0x53d)])!==undefined)throw new Error('outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x53b54e,[_0x19df2b(0x18b)])!==undefined)throw new Error(_0x19df2b(0x5e5));const _0x3a2059=getValueByPath(_0x53b54e,[_0x19df2b(0x527)]);_0x37c9fa!==undefined&&_0x3a2059!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),_0x19df2b(0x527)],_0x3a2059);if(getValueByPath(_0x53b54e,[_0x19df2b(0x1f8)])!==undefined)throw new Error(_0x19df2b(0x297));const _0x3609d4=getValueByPath(_0x53b54e,['aspectRatio']);_0x37c9fa!==undefined&&_0x3609d4!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),_0x19df2b(0x28e)],_0x3609d4);const _0x1be75c=getValueByPath(_0x53b54e,[_0x19df2b(0x2cd)]);_0x37c9fa!==undefined&&_0x1be75c!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),'resolution'],_0x1be75c);const _0x5d339b=getValueByPath(_0x53b54e,['personGeneration']);_0x37c9fa!==undefined&&_0x5d339b!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),_0x19df2b(0x39d)],_0x5d339b);if(getValueByPath(_0x53b54e,[_0x19df2b(0x5f0)])!==undefined)throw new Error(_0x19df2b(0x550));const _0x114782=getValueByPath(_0x53b54e,[_0x19df2b(0x62f)]);_0x37c9fa!==undefined&&_0x114782!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),_0x19df2b(0x62f)],_0x114782);const _0x4ac7fb=getValueByPath(_0x53b54e,[_0x19df2b(0x343)]);_0x37c9fa!==undefined&&_0x4ac7fb!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x34d),'enhancePrompt'],_0x4ac7fb);if(getValueByPath(_0x53b54e,['generateAudio'])!==undefined)throw new Error('generateAudio\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0xdaa1bd=getValueByPath(_0x53b54e,[_0x19df2b(0x246)]);_0x37c9fa!==undefined&&_0xdaa1bd!=null&&setValueByPath(_0x37c9fa,[_0x19df2b(0x2cb),_0x19df2b(0x246)],imageToMldev(_0xdaa1bd));const _0x4e8aca=getValueByPath(_0x53b54e,[_0x19df2b(0x3c7)]);if(_0x37c9fa!==undefined&&_0x4e8aca!=null){let _0x21ad1e=_0x4e8aca;Array[_0x19df2b(0x192)](_0x21ad1e)&&(_0x21ad1e=_0x21ad1e[_0x19df2b(0x221)](_0x238b20=>{return videoGenerationReferenceImageToMldev(_0x238b20);})),setValueByPath(_0x37c9fa,[_0x19df2b(0x2cb),_0x19df2b(0x3c7)],_0x21ad1e);}if(getValueByPath(_0x53b54e,[_0x19df2b(0x576)])!==undefined)throw new Error('mask\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x53b54e,[_0x19df2b(0x3bd)])!==undefined)throw new Error(_0x19df2b(0x4d9));return _0x169c08;}function generateVideosConfigToVertex(_0x590758,_0x30861b,_0xc77f75){const _0x134a2b=a0_0x254c3a,_0x1fab0a={},_0x316f7d=getValueByPath(_0x590758,[_0x134a2b(0x466)]);_0x30861b!==undefined&&_0x316f7d!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x493)],_0x316f7d);const _0x322016=getValueByPath(_0x590758,[_0x134a2b(0x53d)]);_0x30861b!==undefined&&_0x322016!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),'storageUri'],_0x322016);const _0x5c2448=getValueByPath(_0x590758,[_0x134a2b(0x18b)]);_0x30861b!==undefined&&_0x5c2448!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x18b)],_0x5c2448);const _0xfe36d5=getValueByPath(_0x590758,[_0x134a2b(0x527)]);_0x30861b!==undefined&&_0xfe36d5!=null&&setValueByPath(_0x30861b,['parameters',_0x134a2b(0x527)],_0xfe36d5);const _0x236140=getValueByPath(_0x590758,[_0x134a2b(0x1f8)]);_0x30861b!==undefined&&_0x236140!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x1f8)],_0x236140);const _0x5a19dc=getValueByPath(_0x590758,[_0x134a2b(0x28e)]);_0x30861b!==undefined&&_0x5a19dc!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x28e)],_0x5a19dc);const _0x3f45d0=getValueByPath(_0x590758,[_0x134a2b(0x2cd)]);_0x30861b!==undefined&&_0x3f45d0!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),'resolution'],_0x3f45d0);const _0x7aad7c=getValueByPath(_0x590758,[_0x134a2b(0x39d)]);_0x30861b!==undefined&&_0x7aad7c!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x39d)],_0x7aad7c);const _0x184170=getValueByPath(_0x590758,['pubsubTopic']);_0x30861b!==undefined&&_0x184170!=null&&setValueByPath(_0x30861b,['parameters',_0x134a2b(0x5f0)],_0x184170);const _0x20779b=getValueByPath(_0x590758,[_0x134a2b(0x62f)]);_0x30861b!==undefined&&_0x20779b!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),'negativePrompt'],_0x20779b);const _0x30bae8=getValueByPath(_0x590758,[_0x134a2b(0x343)]);_0x30861b!==undefined&&_0x30bae8!=null&&setValueByPath(_0x30861b,['parameters',_0x134a2b(0x343)],_0x30bae8);const _0x4687d6=getValueByPath(_0x590758,['generateAudio']);_0x30861b!==undefined&&_0x4687d6!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x3ee)],_0x4687d6);const _0x284f5e=getValueByPath(_0x590758,[_0x134a2b(0x246)]);_0x30861b!==undefined&&_0x284f5e!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x2cb),_0x134a2b(0x246)],imageToVertex(_0x284f5e));const _0x49c83e=getValueByPath(_0x590758,[_0x134a2b(0x3c7)]);if(_0x30861b!==undefined&&_0x49c83e!=null){let _0x4ae316=_0x49c83e;Array[_0x134a2b(0x192)](_0x4ae316)&&(_0x4ae316=_0x4ae316[_0x134a2b(0x221)](_0x36eac8=>{return videoGenerationReferenceImageToVertex(_0x36eac8);})),setValueByPath(_0x30861b,[_0x134a2b(0x2cb),_0x134a2b(0x3c7)],_0x4ae316);}const _0x3f77ba=getValueByPath(_0x590758,['mask']);_0x30861b!==undefined&&_0x3f77ba!=null&&setValueByPath(_0x30861b,['instances[0]',_0x134a2b(0x576)],videoGenerationMaskToVertex(_0x3f77ba));const _0x5934ea=getValueByPath(_0x590758,[_0x134a2b(0x3bd)]);return _0x30861b!==undefined&&_0x5934ea!=null&&setValueByPath(_0x30861b,[_0x134a2b(0x34d),_0x134a2b(0x3bd)],_0x5934ea),_0x1fab0a;}function generateVideosOperationFromMldev(_0xb1da4f,_0x27fcf0){const _0x8a33d1=a0_0x254c3a,_0x52afb7={},_0xb7e9f3=getValueByPath(_0xb1da4f,['name']);_0xb7e9f3!=null&&setValueByPath(_0x52afb7,[_0x8a33d1(0x68e)],_0xb7e9f3);const _0x3f0087=getValueByPath(_0xb1da4f,['metadata']);_0x3f0087!=null&&setValueByPath(_0x52afb7,[_0x8a33d1(0x3d3)],_0x3f0087);const _0x1eca94=getValueByPath(_0xb1da4f,[_0x8a33d1(0x183)]);_0x1eca94!=null&&setValueByPath(_0x52afb7,[_0x8a33d1(0x183)],_0x1eca94);const _0x4a8d0a=getValueByPath(_0xb1da4f,[_0x8a33d1(0x20b)]);_0x4a8d0a!=null&&setValueByPath(_0x52afb7,[_0x8a33d1(0x20b)],_0x4a8d0a);const _0xf0579=getValueByPath(_0xb1da4f,['response','generateVideoResponse']);return _0xf0579!=null&&setValueByPath(_0x52afb7,[_0x8a33d1(0x218)],generateVideosResponseFromMldev(_0xf0579)),_0x52afb7;}function generateVideosOperationFromVertex(_0x23ecec,_0x527f5c){const _0x4c182c=a0_0x254c3a,_0x46a363={},_0x4f282e=getValueByPath(_0x23ecec,[_0x4c182c(0x68e)]);_0x4f282e!=null&&setValueByPath(_0x46a363,['name'],_0x4f282e);const _0x4757b5=getValueByPath(_0x23ecec,[_0x4c182c(0x3d3)]);_0x4757b5!=null&&setValueByPath(_0x46a363,[_0x4c182c(0x3d3)],_0x4757b5);const _0x478626=getValueByPath(_0x23ecec,['done']);_0x478626!=null&&setValueByPath(_0x46a363,[_0x4c182c(0x183)],_0x478626);const _0x3e398c=getValueByPath(_0x23ecec,[_0x4c182c(0x20b)]);_0x3e398c!=null&&setValueByPath(_0x46a363,['error'],_0x3e398c);const _0x3420f1=getValueByPath(_0x23ecec,[_0x4c182c(0x218)]);return _0x3420f1!=null&&setValueByPath(_0x46a363,[_0x4c182c(0x218)],generateVideosResponseFromVertex(_0x3420f1)),_0x46a363;}function generateVideosParametersToMldev(_0x2b9818,_0x3ea149,_0x2711b3){const _0x523437=a0_0x254c3a,_0x3142e5={},_0x505d2e=getValueByPath(_0x3ea149,[_0x523437(0x492)]);_0x505d2e!=null&&setValueByPath(_0x3142e5,[_0x523437(0x1fb),_0x523437(0x492)],tModel(_0x2b9818,_0x505d2e));const _0x160962=getValueByPath(_0x3ea149,[_0x523437(0x34a)]);_0x160962!=null&&setValueByPath(_0x3142e5,[_0x523437(0x2cb),_0x523437(0x34a)],_0x160962);const _0x3c8289=getValueByPath(_0x3ea149,[_0x523437(0x299)]);_0x3c8289!=null&&setValueByPath(_0x3142e5,[_0x523437(0x2cb),_0x523437(0x299)],imageToMldev(_0x3c8289));const _0x5b0118=getValueByPath(_0x3ea149,['video']);_0x5b0118!=null&&setValueByPath(_0x3142e5,['instances[0]',_0x523437(0x315)],videoToMldev(_0x5b0118));const _0x4ccfdc=getValueByPath(_0x3ea149,[_0x523437(0x547)]);_0x4ccfdc!=null&&generateVideosSourceToMldev(_0x4ccfdc,_0x3142e5);const _0x324f97=getValueByPath(_0x3ea149,[_0x523437(0x563)]);return _0x324f97!=null&&generateVideosConfigToMldev(_0x324f97,_0x3142e5),_0x3142e5;}function generateVideosParametersToVertex(_0x20ef97,_0xc5a06b,_0x1a8e72){const _0x16aafd=a0_0x254c3a,_0x1627e1={},_0x179fa2=getValueByPath(_0xc5a06b,[_0x16aafd(0x492)]);_0x179fa2!=null&&setValueByPath(_0x1627e1,[_0x16aafd(0x1fb),_0x16aafd(0x492)],tModel(_0x20ef97,_0x179fa2));const _0x295b98=getValueByPath(_0xc5a06b,[_0x16aafd(0x34a)]);_0x295b98!=null&&setValueByPath(_0x1627e1,[_0x16aafd(0x2cb),_0x16aafd(0x34a)],_0x295b98);const _0x25feb7=getValueByPath(_0xc5a06b,[_0x16aafd(0x299)]);_0x25feb7!=null&&setValueByPath(_0x1627e1,[_0x16aafd(0x2cb),_0x16aafd(0x299)],imageToVertex(_0x25feb7));const _0x325542=getValueByPath(_0xc5a06b,[_0x16aafd(0x315)]);_0x325542!=null&&setValueByPath(_0x1627e1,[_0x16aafd(0x2cb),_0x16aafd(0x315)],videoToVertex(_0x325542));const _0x59c841=getValueByPath(_0xc5a06b,[_0x16aafd(0x547)]);_0x59c841!=null&&generateVideosSourceToVertex(_0x59c841,_0x1627e1);const _0x4df60b=getValueByPath(_0xc5a06b,[_0x16aafd(0x563)]);return _0x4df60b!=null&&generateVideosConfigToVertex(_0x4df60b,_0x1627e1),_0x1627e1;}function generateVideosResponseFromMldev(_0x27fa8d,_0xe315d7){const _0x1e8dc8=a0_0x254c3a,_0x44ff27={},_0x5b8902=getValueByPath(_0x27fa8d,['generatedSamples']);if(_0x5b8902!=null){let _0x283912=_0x5b8902;Array[_0x1e8dc8(0x192)](_0x283912)&&(_0x283912=_0x283912[_0x1e8dc8(0x221)](_0x1c8780=>{return generatedVideoFromMldev(_0x1c8780);})),setValueByPath(_0x44ff27,[_0x1e8dc8(0x511)],_0x283912);}const _0x52b22d=getValueByPath(_0x27fa8d,['raiMediaFilteredCount']);_0x52b22d!=null&&setValueByPath(_0x44ff27,['raiMediaFilteredCount'],_0x52b22d);const _0x507caa=getValueByPath(_0x27fa8d,[_0x1e8dc8(0x2df)]);return _0x507caa!=null&&setValueByPath(_0x44ff27,[_0x1e8dc8(0x2df)],_0x507caa),_0x44ff27;}function generateVideosResponseFromVertex(_0x1581c2,_0xb9a21c){const _0x2b2079=a0_0x254c3a,_0x2a47d3={},_0xff7694=getValueByPath(_0x1581c2,['videos']);if(_0xff7694!=null){let _0x3e9833=_0xff7694;Array[_0x2b2079(0x192)](_0x3e9833)&&(_0x3e9833=_0x3e9833[_0x2b2079(0x221)](_0x4b1dff=>{return generatedVideoFromVertex(_0x4b1dff);})),setValueByPath(_0x2a47d3,[_0x2b2079(0x511)],_0x3e9833);}const _0x56228a=getValueByPath(_0x1581c2,[_0x2b2079(0x702)]);_0x56228a!=null&&setValueByPath(_0x2a47d3,[_0x2b2079(0x702)],_0x56228a);const _0x2b9003=getValueByPath(_0x1581c2,['raiMediaFilteredReasons']);return _0x2b9003!=null&&setValueByPath(_0x2a47d3,[_0x2b2079(0x2df)],_0x2b9003),_0x2a47d3;}function generateVideosSourceToMldev(_0x51d0e3,_0xf11481,_0x33f5cb){const _0x27fb1b=a0_0x254c3a,_0x3ad920={},_0x388e5e=getValueByPath(_0x51d0e3,[_0x27fb1b(0x34a)]);_0xf11481!==undefined&&_0x388e5e!=null&&setValueByPath(_0xf11481,['instances[0]',_0x27fb1b(0x34a)],_0x388e5e);const _0x3b690a=getValueByPath(_0x51d0e3,[_0x27fb1b(0x299)]);_0xf11481!==undefined&&_0x3b690a!=null&&setValueByPath(_0xf11481,[_0x27fb1b(0x2cb),'image'],imageToMldev(_0x3b690a));const _0x4afbc9=getValueByPath(_0x51d0e3,[_0x27fb1b(0x315)]);return _0xf11481!==undefined&&_0x4afbc9!=null&&setValueByPath(_0xf11481,[_0x27fb1b(0x2cb),'video'],videoToMldev(_0x4afbc9)),_0x3ad920;}function generateVideosSourceToVertex(_0x21d28f,_0x290212,_0x29819a){const _0x5ac55c=a0_0x254c3a,_0x466b79={},_0x5501f1=getValueByPath(_0x21d28f,['prompt']);_0x290212!==undefined&&_0x5501f1!=null&&setValueByPath(_0x290212,['instances[0]',_0x5ac55c(0x34a)],_0x5501f1);const _0x202030=getValueByPath(_0x21d28f,[_0x5ac55c(0x299)]);_0x290212!==undefined&&_0x202030!=null&&setValueByPath(_0x290212,[_0x5ac55c(0x2cb),_0x5ac55c(0x299)],imageToVertex(_0x202030));const _0x51dad4=getValueByPath(_0x21d28f,[_0x5ac55c(0x315)]);return _0x290212!==undefined&&_0x51dad4!=null&&setValueByPath(_0x290212,[_0x5ac55c(0x2cb),_0x5ac55c(0x315)],videoToVertex(_0x51dad4)),_0x466b79;}function generatedImageFromMldev(_0x37a0f5,_0x312de3){const _0x3a90d1=a0_0x254c3a,_0x58fa90={},_0x5c58ac=getValueByPath(_0x37a0f5,['_self']);_0x5c58ac!=null&&setValueByPath(_0x58fa90,[_0x3a90d1(0x299)],imageFromMldev(_0x5c58ac));const _0x1e9c3a=getValueByPath(_0x37a0f5,[_0x3a90d1(0x59b)]);_0x1e9c3a!=null&&setValueByPath(_0x58fa90,['raiFilteredReason'],_0x1e9c3a);const _0x30055e=getValueByPath(_0x37a0f5,[_0x3a90d1(0x33f)]);return _0x30055e!=null&&setValueByPath(_0x58fa90,['safetyAttributes'],safetyAttributesFromMldev(_0x30055e)),_0x58fa90;}function generatedImageFromVertex(_0x76553a,_0x1464b2){const _0x8e09a3=a0_0x254c3a,_0x237520={},_0x3c9c37=getValueByPath(_0x76553a,[_0x8e09a3(0x33f)]);_0x3c9c37!=null&&setValueByPath(_0x237520,[_0x8e09a3(0x299)],imageFromVertex(_0x3c9c37));const _0x51fb60=getValueByPath(_0x76553a,[_0x8e09a3(0x59b)]);_0x51fb60!=null&&setValueByPath(_0x237520,[_0x8e09a3(0x59b)],_0x51fb60);const _0x444b4b=getValueByPath(_0x76553a,[_0x8e09a3(0x33f)]);_0x444b4b!=null&&setValueByPath(_0x237520,[_0x8e09a3(0x25b)],safetyAttributesFromVertex(_0x444b4b));const _0x8b333b=getValueByPath(_0x76553a,[_0x8e09a3(0x34a)]);return _0x8b333b!=null&&setValueByPath(_0x237520,['enhancedPrompt'],_0x8b333b),_0x237520;}function generatedImageMaskFromVertex(_0xd32ed0,_0x32c170){const _0x1fad98=a0_0x254c3a,_0x137257={},_0x10e6c9=getValueByPath(_0xd32ed0,[_0x1fad98(0x33f)]);_0x10e6c9!=null&&setValueByPath(_0x137257,[_0x1fad98(0x576)],imageFromVertex(_0x10e6c9));const _0x4f7578=getValueByPath(_0xd32ed0,[_0x1fad98(0x266)]);if(_0x4f7578!=null){let _0x3048c1=_0x4f7578;Array['isArray'](_0x3048c1)&&(_0x3048c1=_0x3048c1[_0x1fad98(0x221)](_0x287e87=>{return _0x287e87;})),setValueByPath(_0x137257,[_0x1fad98(0x266)],_0x3048c1);}return _0x137257;}function generatedVideoFromMldev(_0x1c9cb3,_0x129534){const _0x23c2f8={},_0x34a4b0=getValueByPath(_0x1c9cb3,['video']);return _0x34a4b0!=null&&setValueByPath(_0x23c2f8,['video'],videoFromMldev(_0x34a4b0)),_0x23c2f8;}function generatedVideoFromVertex(_0x4c24a3,_0x53a9a4){const _0x44e68e=a0_0x254c3a,_0x3409fa={},_0x41fb7d=getValueByPath(_0x4c24a3,[_0x44e68e(0x33f)]);return _0x41fb7d!=null&&setValueByPath(_0x3409fa,['video'],videoFromVertex(_0x41fb7d)),_0x3409fa;}function generationConfigToVertex(_0x4dccb5,_0x13dae0){const _0x2724d0=a0_0x254c3a,_0x3b087c={},_0xdbf649=getValueByPath(_0x4dccb5,['modelSelectionConfig']);_0xdbf649!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x58a)],_0xdbf649);const _0x5836c7=getValueByPath(_0x4dccb5,['responseJsonSchema']);_0x5836c7!=null&&setValueByPath(_0x3b087c,['responseJsonSchema'],_0x5836c7);const _0x4dc1fc=getValueByPath(_0x4dccb5,[_0x2724d0(0x633)]);_0x4dc1fc!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x633)],_0x4dc1fc);const _0x74aa20=getValueByPath(_0x4dccb5,[_0x2724d0(0x518)]);_0x74aa20!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x518)],_0x74aa20);const _0x3d7111=getValueByPath(_0x4dccb5,[_0x2724d0(0x691)]);_0x3d7111!=null&&setValueByPath(_0x3b087c,['enableAffectiveDialog'],_0x3d7111);const _0x14a8c1=getValueByPath(_0x4dccb5,[_0x2724d0(0x71c)]);_0x14a8c1!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x71c)],_0x14a8c1);const _0xfaa310=getValueByPath(_0x4dccb5,[_0x2724d0(0x4da)]);_0xfaa310!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x4da)],_0xfaa310);const _0x152684=getValueByPath(_0x4dccb5,[_0x2724d0(0x1a3)]);_0x152684!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x1a3)],_0x152684);const _0x3fcf69=getValueByPath(_0x4dccb5,[_0x2724d0(0x667)]);_0x3fcf69!=null&&setValueByPath(_0x3b087c,['mediaResolution'],_0x3fcf69);const _0x262249=getValueByPath(_0x4dccb5,['presencePenalty']);_0x262249!=null&&setValueByPath(_0x3b087c,['presencePenalty'],_0x262249);const _0x382e9e=getValueByPath(_0x4dccb5,[_0x2724d0(0x725)]);_0x382e9e!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x725)],_0x382e9e);const _0x4b6989=getValueByPath(_0x4dccb5,['responseMimeType']);_0x4b6989!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x28f)],_0x4b6989);const _0x31d001=getValueByPath(_0x4dccb5,[_0x2724d0(0x6d4)]);_0x31d001!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x6d4)],_0x31d001);const _0x2728ff=getValueByPath(_0x4dccb5,[_0x2724d0(0x1cb)]);_0x2728ff!=null&&setValueByPath(_0x3b087c,['responseSchema'],_0x2728ff);const _0x5e9c9d=getValueByPath(_0x4dccb5,[_0x2724d0(0x638)]);_0x5e9c9d!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x638)],_0x5e9c9d);const _0x4bfcec=getValueByPath(_0x4dccb5,[_0x2724d0(0x1f8)]);_0x4bfcec!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x1f8)],_0x4bfcec);const _0x5f1a51=getValueByPath(_0x4dccb5,[_0x2724d0(0x540)]);_0x5f1a51!=null&&setValueByPath(_0x3b087c,['speechConfig'],_0x5f1a51);const _0xb0975c=getValueByPath(_0x4dccb5,[_0x2724d0(0x56b)]);_0xb0975c!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x56b)],_0xb0975c);const _0xd25ffd=getValueByPath(_0x4dccb5,[_0x2724d0(0x1e2)]);_0xd25ffd!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x1e2)],_0xd25ffd);const _0x33aa5c=getValueByPath(_0x4dccb5,[_0x2724d0(0x414)]);_0x33aa5c!=null&&setValueByPath(_0x3b087c,['thinkingConfig'],_0x33aa5c);const _0x5d8cfb=getValueByPath(_0x4dccb5,['topK']);_0x5d8cfb!=null&&setValueByPath(_0x3b087c,['topK'],_0x5d8cfb);const _0xc69178=getValueByPath(_0x4dccb5,[_0x2724d0(0x651)]);_0xc69178!=null&&setValueByPath(_0x3b087c,[_0x2724d0(0x651)],_0xc69178);if(getValueByPath(_0x4dccb5,[_0x2724d0(0x4e9)])!==undefined)throw new Error(_0x2724d0(0x351));return _0x3b087c;}function getModelParametersToMldev(_0x457371,_0x175e6b,_0x57ace1){const _0x21ee0f=a0_0x254c3a,_0x1c25eb={},_0x514ea6=getValueByPath(_0x175e6b,['model']);return _0x514ea6!=null&&setValueByPath(_0x1c25eb,[_0x21ee0f(0x1fb),_0x21ee0f(0x68e)],tModel(_0x457371,_0x514ea6)),_0x1c25eb;}function getModelParametersToVertex(_0x2e9490,_0x3fb726,_0x3b9bf7){const _0xf84242=a0_0x254c3a,_0x480d5e={},_0xdf35bd=getValueByPath(_0x3fb726,[_0xf84242(0x492)]);return _0xdf35bd!=null&&setValueByPath(_0x480d5e,['_url',_0xf84242(0x68e)],tModel(_0x2e9490,_0xdf35bd)),_0x480d5e;}function googleMapsToMldev$1(_0x19f5ed,_0x15345f){const _0x5907b7=a0_0x254c3a,_0x3bd0fd={};if(getValueByPath(_0x19f5ed,['authConfig'])!==undefined)throw new Error(_0x5907b7(0x40b));const _0x570401=getValueByPath(_0x19f5ed,[_0x5907b7(0x5f5)]);return _0x570401!=null&&setValueByPath(_0x3bd0fd,['enableWidget'],_0x570401),_0x3bd0fd;}function googleSearchToMldev$1(_0x397ffe,_0x4c8d64){const _0x12f7e3=a0_0x254c3a,_0x3496fc={};if(getValueByPath(_0x397ffe,[_0x12f7e3(0x242)])!==undefined)throw new Error(_0x12f7e3(0x51f));if(getValueByPath(_0x397ffe,[_0x12f7e3(0x3af)])!==undefined)throw new Error(_0x12f7e3(0x4ef));const _0x3ea1a1=getValueByPath(_0x397ffe,[_0x12f7e3(0x44c)]);return _0x3ea1a1!=null&&setValueByPath(_0x3496fc,[_0x12f7e3(0x44c)],_0x3ea1a1),_0x3496fc;}function imageConfigToMldev(_0x3fb529,_0x5902ba){const _0x470fce=a0_0x254c3a,_0x5a1ec9={},_0x272ad3=getValueByPath(_0x3fb529,[_0x470fce(0x28e)]);_0x272ad3!=null&&setValueByPath(_0x5a1ec9,[_0x470fce(0x28e)],_0x272ad3);const _0x4a0fdb=getValueByPath(_0x3fb529,[_0x470fce(0x25c)]);_0x4a0fdb!=null&&setValueByPath(_0x5a1ec9,[_0x470fce(0x25c)],_0x4a0fdb);if(getValueByPath(_0x3fb529,[_0x470fce(0x39d)])!==undefined)throw new Error(_0x470fce(0x49a));if(getValueByPath(_0x3fb529,[_0x470fce(0x530)])!==undefined)throw new Error('outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x3fb529,[_0x470fce(0x2c1)])!==undefined)throw new Error(_0x470fce(0x437));return _0x5a1ec9;}function imageConfigToVertex(_0x457e7d,_0x17efdf){const _0x4c9380=a0_0x254c3a,_0x5d8577={},_0x2a058e=getValueByPath(_0x457e7d,[_0x4c9380(0x28e)]);_0x2a058e!=null&&setValueByPath(_0x5d8577,[_0x4c9380(0x28e)],_0x2a058e);const _0x164f9b=getValueByPath(_0x457e7d,['imageSize']);_0x164f9b!=null&&setValueByPath(_0x5d8577,[_0x4c9380(0x25c)],_0x164f9b);const _0x428c5f=getValueByPath(_0x457e7d,[_0x4c9380(0x39d)]);_0x428c5f!=null&&setValueByPath(_0x5d8577,[_0x4c9380(0x39d)],_0x428c5f);const _0x21806a=getValueByPath(_0x457e7d,['outputMimeType']);_0x21806a!=null&&setValueByPath(_0x5d8577,['imageOutputOptions',_0x4c9380(0x38c)],_0x21806a);const _0x40f2b1=getValueByPath(_0x457e7d,[_0x4c9380(0x2c1)]);return _0x40f2b1!=null&&setValueByPath(_0x5d8577,[_0x4c9380(0x1b2),'compressionQuality'],_0x40f2b1),_0x5d8577;}function imageFromMldev(_0x37c40f,_0x1b20a1){const _0x98618b=a0_0x254c3a,_0x49af51={},_0x28f83c=getValueByPath(_0x37c40f,[_0x98618b(0x178)]);_0x28f83c!=null&&setValueByPath(_0x49af51,[_0x98618b(0x6ee)],tBytes(_0x28f83c));const _0x1418cb=getValueByPath(_0x37c40f,['mimeType']);return _0x1418cb!=null&&setValueByPath(_0x49af51,[_0x98618b(0x38c)],_0x1418cb),_0x49af51;}function imageFromVertex(_0x211973,_0x1df125){const _0x3ba790=a0_0x254c3a,_0x327a63={},_0x12107d=getValueByPath(_0x211973,['gcsUri']);_0x12107d!=null&&setValueByPath(_0x327a63,[_0x3ba790(0x569)],_0x12107d);const _0xa9f8cf=getValueByPath(_0x211973,['bytesBase64Encoded']);_0xa9f8cf!=null&&setValueByPath(_0x327a63,['imageBytes'],tBytes(_0xa9f8cf));const _0x106b11=getValueByPath(_0x211973,[_0x3ba790(0x38c)]);return _0x106b11!=null&&setValueByPath(_0x327a63,[_0x3ba790(0x38c)],_0x106b11),_0x327a63;}function imageToMldev(_0x3dbe27,_0x250964){const _0x37ecd1=a0_0x254c3a,_0x5f3f47={};if(getValueByPath(_0x3dbe27,[_0x37ecd1(0x569)])!==undefined)throw new Error(_0x37ecd1(0x2cf));const _0x1d1493=getValueByPath(_0x3dbe27,['imageBytes']);_0x1d1493!=null&&setValueByPath(_0x5f3f47,[_0x37ecd1(0x178)],tBytes(_0x1d1493));const _0x438704=getValueByPath(_0x3dbe27,['mimeType']);return _0x438704!=null&&setValueByPath(_0x5f3f47,[_0x37ecd1(0x38c)],_0x438704),_0x5f3f47;}function imageToVertex(_0x13427b,_0x4c834){const _0x44ec90=a0_0x254c3a,_0x1deeb5={},_0x17e499=getValueByPath(_0x13427b,['gcsUri']);_0x17e499!=null&&setValueByPath(_0x1deeb5,[_0x44ec90(0x569)],_0x17e499);const _0x19a3dd=getValueByPath(_0x13427b,[_0x44ec90(0x6ee)]);_0x19a3dd!=null&&setValueByPath(_0x1deeb5,[_0x44ec90(0x178)],tBytes(_0x19a3dd));const _0x4c7e15=getValueByPath(_0x13427b,[_0x44ec90(0x38c)]);return _0x4c7e15!=null&&setValueByPath(_0x1deeb5,[_0x44ec90(0x38c)],_0x4c7e15),_0x1deeb5;}function listModelsConfigToMldev(_0x415225,_0x4416ea,_0x4301fc,_0x49765f){const _0x3ac601=a0_0x254c3a,_0xdab7d8={},_0x2fe6b7=getValueByPath(_0x4416ea,[_0x3ac601(0x2a3)]);_0x4301fc!==undefined&&_0x2fe6b7!=null&&setValueByPath(_0x4301fc,[_0x3ac601(0x32f),_0x3ac601(0x2a3)],_0x2fe6b7);const _0x56e074=getValueByPath(_0x4416ea,[_0x3ac601(0x6d9)]);_0x4301fc!==undefined&&_0x56e074!=null&&setValueByPath(_0x4301fc,[_0x3ac601(0x32f),_0x3ac601(0x6d9)],_0x56e074);const _0x17e0b9=getValueByPath(_0x4416ea,[_0x3ac601(0x38a)]);_0x4301fc!==undefined&&_0x17e0b9!=null&&setValueByPath(_0x4301fc,[_0x3ac601(0x32f),_0x3ac601(0x38a)],_0x17e0b9);const _0x27fbd5=getValueByPath(_0x4416ea,[_0x3ac601(0x6bc)]);return _0x4301fc!==undefined&&_0x27fbd5!=null&&setValueByPath(_0x4301fc,[_0x3ac601(0x1fb),_0x3ac601(0x5ed)],tModelsUrl(_0x415225,_0x27fbd5)),_0xdab7d8;}function listModelsConfigToVertex(_0x53f53f,_0xa7f9e9,_0x403090,_0x2a4955){const _0x4c3624=a0_0x254c3a,_0x588196={},_0x52f23d=getValueByPath(_0xa7f9e9,['pageSize']);_0x403090!==undefined&&_0x52f23d!=null&&setValueByPath(_0x403090,[_0x4c3624(0x32f),_0x4c3624(0x2a3)],_0x52f23d);const _0x35c72e=getValueByPath(_0xa7f9e9,['pageToken']);_0x403090!==undefined&&_0x35c72e!=null&&setValueByPath(_0x403090,[_0x4c3624(0x32f),_0x4c3624(0x6d9)],_0x35c72e);const _0x117772=getValueByPath(_0xa7f9e9,[_0x4c3624(0x38a)]);_0x403090!==undefined&&_0x117772!=null&&setValueByPath(_0x403090,[_0x4c3624(0x32f),'filter'],_0x117772);const _0x44c9e8=getValueByPath(_0xa7f9e9,[_0x4c3624(0x6bc)]);return _0x403090!==undefined&&_0x44c9e8!=null&&setValueByPath(_0x403090,['_url','models_url'],tModelsUrl(_0x53f53f,_0x44c9e8)),_0x588196;}function listModelsParametersToMldev(_0x1285fc,_0x15aa29,_0x3e577c){const _0x339a0c=a0_0x254c3a,_0x57ef2f={},_0x58e055=getValueByPath(_0x15aa29,[_0x339a0c(0x563)]);return _0x58e055!=null&&listModelsConfigToMldev(_0x1285fc,_0x58e055,_0x57ef2f),_0x57ef2f;}function listModelsParametersToVertex(_0xce6e4d,_0xf98991,_0x3a8699){const _0x5bf054=a0_0x254c3a,_0x27d356={},_0x35963e=getValueByPath(_0xf98991,[_0x5bf054(0x563)]);return _0x35963e!=null&&listModelsConfigToVertex(_0xce6e4d,_0x35963e,_0x27d356),_0x27d356;}function listModelsResponseFromMldev(_0x4fadc0,_0x3bb833){const _0x12e3ec=a0_0x254c3a,_0x1cc955={},_0x3005ea=getValueByPath(_0x4fadc0,[_0x12e3ec(0x1ab)]);_0x3005ea!=null&&setValueByPath(_0x1cc955,['sdkHttpResponse'],_0x3005ea);const _0x11f979=getValueByPath(_0x4fadc0,['nextPageToken']);_0x11f979!=null&&setValueByPath(_0x1cc955,[_0x12e3ec(0x4e2)],_0x11f979);const _0xed789f=getValueByPath(_0x4fadc0,[_0x12e3ec(0x33f)]);if(_0xed789f!=null){let _0xeb19a3=tExtractModels(_0xed789f);Array[_0x12e3ec(0x192)](_0xeb19a3)&&(_0xeb19a3=_0xeb19a3['map'](_0x1922e8=>{return modelFromMldev(_0x1922e8);})),setValueByPath(_0x1cc955,['models'],_0xeb19a3);}return _0x1cc955;}function listModelsResponseFromVertex(_0x30bcf4,_0x59702e){const _0x707e40=a0_0x254c3a,_0x47d7ef={},_0x46bf76=getValueByPath(_0x30bcf4,['sdkHttpResponse']);_0x46bf76!=null&&setValueByPath(_0x47d7ef,['sdkHttpResponse'],_0x46bf76);const _0xa73ef0=getValueByPath(_0x30bcf4,[_0x707e40(0x4e2)]);_0xa73ef0!=null&&setValueByPath(_0x47d7ef,[_0x707e40(0x4e2)],_0xa73ef0);const _0xe9dee1=getValueByPath(_0x30bcf4,[_0x707e40(0x33f)]);if(_0xe9dee1!=null){let _0x4afd2e=tExtractModels(_0xe9dee1);Array[_0x707e40(0x192)](_0x4afd2e)&&(_0x4afd2e=_0x4afd2e[_0x707e40(0x221)](_0x28b48e=>{return modelFromVertex(_0x28b48e);})),setValueByPath(_0x47d7ef,['models'],_0x4afd2e);}return _0x47d7ef;}function maskReferenceConfigToVertex(_0x1ca8c5,_0x248811){const _0x3c0ecc=a0_0x254c3a,_0x3d4109={},_0x3b2e97=getValueByPath(_0x1ca8c5,['maskMode']);_0x3b2e97!=null&&setValueByPath(_0x3d4109,[_0x3c0ecc(0x478)],_0x3b2e97);const _0x11330f=getValueByPath(_0x1ca8c5,[_0x3c0ecc(0x6f8)]);_0x11330f!=null&&setValueByPath(_0x3d4109,[_0x3c0ecc(0x497)],_0x11330f);const _0x2b6fba=getValueByPath(_0x1ca8c5,[_0x3c0ecc(0x1e1)]);return _0x2b6fba!=null&&setValueByPath(_0x3d4109,[_0x3c0ecc(0x3cf)],_0x2b6fba),_0x3d4109;}function modelFromMldev(_0x183e37,_0x260a81){const _0x35eaa8=a0_0x254c3a,_0x3a2766={},_0x303e41=getValueByPath(_0x183e37,[_0x35eaa8(0x68e)]);_0x303e41!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x68e)],_0x303e41);const _0x1e5306=getValueByPath(_0x183e37,[_0x35eaa8(0x462)]);_0x1e5306!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x462)],_0x1e5306);const _0x471225=getValueByPath(_0x183e37,[_0x35eaa8(0x3b3)]);_0x471225!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x3b3)],_0x471225);const _0x4e46cc=getValueByPath(_0x183e37,['version']);_0x4e46cc!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x4f8)],_0x4e46cc);const _0x434a30=getValueByPath(_0x183e37,[_0x35eaa8(0x33f)]);_0x434a30!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x460)],tunedModelInfoFromMldev(_0x434a30));const _0x385bfe=getValueByPath(_0x183e37,[_0x35eaa8(0x41f)]);_0x385bfe!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x41f)],_0x385bfe);const _0x305fba=getValueByPath(_0x183e37,[_0x35eaa8(0x30b)]);_0x305fba!=null&&setValueByPath(_0x3a2766,['outputTokenLimit'],_0x305fba);const _0x1ada30=getValueByPath(_0x183e37,[_0x35eaa8(0x4de)]);_0x1ada30!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x481)],_0x1ada30);const _0x222695=getValueByPath(_0x183e37,[_0x35eaa8(0x1e2)]);_0x222695!=null&&setValueByPath(_0x3a2766,['temperature'],_0x222695);const _0x1649a7=getValueByPath(_0x183e37,[_0x35eaa8(0x568)]);_0x1649a7!=null&&setValueByPath(_0x3a2766,['maxTemperature'],_0x1649a7);const _0x7efd6d=getValueByPath(_0x183e37,[_0x35eaa8(0x651)]);_0x7efd6d!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x651)],_0x7efd6d);const _0xb535c4=getValueByPath(_0x183e37,[_0x35eaa8(0x1a6)]);_0xb535c4!=null&&setValueByPath(_0x3a2766,[_0x35eaa8(0x1a6)],_0xb535c4);const _0x286080=getValueByPath(_0x183e37,[_0x35eaa8(0x70d)]);return _0x286080!=null&&setValueByPath(_0x3a2766,['thinking'],_0x286080),_0x3a2766;}function modelFromVertex(_0x5c2ab8,_0x54d8af){const _0x20b83b=a0_0x254c3a,_0x4fa274={},_0x25e2ee=getValueByPath(_0x5c2ab8,[_0x20b83b(0x68e)]);_0x25e2ee!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x68e)],_0x25e2ee);const _0x4814c4=getValueByPath(_0x5c2ab8,['displayName']);_0x4814c4!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x462)],_0x4814c4);const _0x3345dc=getValueByPath(_0x5c2ab8,[_0x20b83b(0x3b3)]);_0x3345dc!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x3b3)],_0x3345dc);const _0x3666bc=getValueByPath(_0x5c2ab8,[_0x20b83b(0x508)]);_0x3666bc!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x4f8)],_0x3666bc);const _0x495616=getValueByPath(_0x5c2ab8,[_0x20b83b(0x608)]);if(_0x495616!=null){let _0x40eeeb=_0x495616;Array['isArray'](_0x40eeeb)&&(_0x40eeeb=_0x40eeeb[_0x20b83b(0x221)](_0x44b7b6=>{return endpointFromVertex(_0x44b7b6);})),setValueByPath(_0x4fa274,[_0x20b83b(0x6d5)],_0x40eeeb);}const _0x30b0fb=getValueByPath(_0x5c2ab8,['labels']);_0x30b0fb!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x266)],_0x30b0fb);const _0x15dc54=getValueByPath(_0x5c2ab8,[_0x20b83b(0x33f)]);_0x15dc54!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x460)],tunedModelInfoFromVertex(_0x15dc54));const _0x465b2a=getValueByPath(_0x5c2ab8,['defaultCheckpointId']);_0x465b2a!=null&&setValueByPath(_0x4fa274,[_0x20b83b(0x3e4)],_0x465b2a);const _0x110e4a=getValueByPath(_0x5c2ab8,[_0x20b83b(0x5b3)]);if(_0x110e4a!=null){let _0x22f163=_0x110e4a;Array[_0x20b83b(0x192)](_0x22f163)&&(_0x22f163=_0x22f163[_0x20b83b(0x221)](_0x982307=>{return _0x982307;})),setValueByPath(_0x4fa274,[_0x20b83b(0x5b3)],_0x22f163);}return _0x4fa274;}function partToMldev$1(_0x409f45,_0x4de576){const _0x25a3e2=a0_0x254c3a,_0x11b8ef={},_0xa69beb=getValueByPath(_0x409f45,[_0x25a3e2(0x667)]);_0xa69beb!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x667)],_0xa69beb);const _0x462ce2=getValueByPath(_0x409f45,[_0x25a3e2(0x282)]);_0x462ce2!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x282)],_0x462ce2);const _0x342eef=getValueByPath(_0x409f45,[_0x25a3e2(0x386)]);_0x342eef!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x386)],_0x342eef);const _0x4c7684=getValueByPath(_0x409f45,[_0x25a3e2(0x26e)]);_0x4c7684!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x26e)],fileDataToMldev$1(_0x4c7684));const _0x4ef1be=getValueByPath(_0x409f45,[_0x25a3e2(0x5ff)]);_0x4ef1be!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x5ff)],functionCallToMldev$1(_0x4ef1be));const _0x1bff01=getValueByPath(_0x409f45,[_0x25a3e2(0x2af)]);_0x1bff01!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x2af)],_0x1bff01);const _0xdd0e35=getValueByPath(_0x409f45,[_0x25a3e2(0x59d)]);_0xdd0e35!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x59d)],blobToMldev$1(_0xdd0e35));const _0x1bfc97=getValueByPath(_0x409f45,[_0x25a3e2(0x2ab)]);_0x1bfc97!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x2ab)],_0x1bfc97);const _0x6a4d53=getValueByPath(_0x409f45,[_0x25a3e2(0x50b)]);_0x6a4d53!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x50b)],_0x6a4d53);const _0x485165=getValueByPath(_0x409f45,[_0x25a3e2(0x5ba)]);_0x485165!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x5ba)],_0x485165);const _0x3a893a=getValueByPath(_0x409f45,[_0x25a3e2(0x64b)]);return _0x3a893a!=null&&setValueByPath(_0x11b8ef,[_0x25a3e2(0x64b)],_0x3a893a),_0x11b8ef;}function productImageToVertex(_0xa93cf,_0xc73b58){const _0x5bda82=a0_0x254c3a,_0x433731={},_0x3ea692=getValueByPath(_0xa93cf,['productImage']);return _0x3ea692!=null&&setValueByPath(_0x433731,[_0x5bda82(0x299)],imageToVertex(_0x3ea692)),_0x433731;}function recontextImageConfigToVertex(_0x3661ac,_0x3a1e9a,_0x1577bf){const _0x419dc7=a0_0x254c3a,_0x17703a={},_0x10eaec=getValueByPath(_0x3661ac,['numberOfImages']);_0x3a1e9a!==undefined&&_0x10eaec!=null&&setValueByPath(_0x3a1e9a,['parameters',_0x419dc7(0x493)],_0x10eaec);const _0x32a9db=getValueByPath(_0x3661ac,['baseSteps']);_0x3a1e9a!==undefined&&_0x32a9db!=null&&setValueByPath(_0x3a1e9a,['parameters',_0x419dc7(0x348)],_0x32a9db);const _0x58e2f9=getValueByPath(_0x3661ac,[_0x419dc7(0x53d)]);_0x3a1e9a!==undefined&&_0x58e2f9!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),'storageUri'],_0x58e2f9);const _0x50b688=getValueByPath(_0x3661ac,[_0x419dc7(0x1f8)]);_0x3a1e9a!==undefined&&_0x50b688!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),'seed'],_0x50b688);const _0x315d18=getValueByPath(_0x3661ac,[_0x419dc7(0x454)]);_0x3a1e9a!==undefined&&_0x315d18!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),'safetySetting'],_0x315d18);const _0x394bb7=getValueByPath(_0x3661ac,[_0x419dc7(0x39d)]);_0x3a1e9a!==undefined&&_0x394bb7!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),_0x419dc7(0x39d)],_0x394bb7);const _0x2fbb86=getValueByPath(_0x3661ac,['addWatermark']);_0x3a1e9a!==undefined&&_0x2fbb86!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),_0x419dc7(0x273)],_0x2fbb86);const _0x4f5e65=getValueByPath(_0x3661ac,['outputMimeType']);_0x3a1e9a!==undefined&&_0x4f5e65!=null&&setValueByPath(_0x3a1e9a,['parameters','outputOptions','mimeType'],_0x4f5e65);const _0x1c4e90=getValueByPath(_0x3661ac,[_0x419dc7(0x2c1)]);_0x3a1e9a!==undefined&&_0x1c4e90!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),'outputOptions','compressionQuality'],_0x1c4e90);const _0x4d38b5=getValueByPath(_0x3661ac,[_0x419dc7(0x343)]);_0x3a1e9a!==undefined&&_0x4d38b5!=null&&setValueByPath(_0x3a1e9a,[_0x419dc7(0x34d),_0x419dc7(0x343)],_0x4d38b5);const _0x36dd65=getValueByPath(_0x3661ac,['labels']);return _0x3a1e9a!==undefined&&_0x36dd65!=null&&setValueByPath(_0x3a1e9a,['labels'],_0x36dd65),_0x17703a;}function recontextImageParametersToVertex(_0x2d136b,_0x57a46f,_0x5205e6){const _0x51782f=a0_0x254c3a,_0x127766={},_0xec638a=getValueByPath(_0x57a46f,['model']);_0xec638a!=null&&setValueByPath(_0x127766,[_0x51782f(0x1fb),_0x51782f(0x492)],tModel(_0x2d136b,_0xec638a));const _0x5f4a7d=getValueByPath(_0x57a46f,['source']);_0x5f4a7d!=null&&recontextImageSourceToVertex(_0x5f4a7d,_0x127766);const _0x2b8154=getValueByPath(_0x57a46f,[_0x51782f(0x563)]);return _0x2b8154!=null&&recontextImageConfigToVertex(_0x2b8154,_0x127766),_0x127766;}function recontextImageResponseFromVertex(_0x7e5c5f,_0x23183c){const _0x5d3501=a0_0x254c3a,_0x1757ba={},_0x11f239=getValueByPath(_0x7e5c5f,[_0x5d3501(0x6dc)]);if(_0x11f239!=null){let _0x57cfc2=_0x11f239;Array[_0x5d3501(0x192)](_0x57cfc2)&&(_0x57cfc2=_0x57cfc2[_0x5d3501(0x221)](_0x141cdd=>{return generatedImageFromVertex(_0x141cdd);})),setValueByPath(_0x1757ba,[_0x5d3501(0x6be)],_0x57cfc2);}return _0x1757ba;}function recontextImageSourceToVertex(_0x4ab7e2,_0xa800c6,_0x332930){const _0x46a5b9=a0_0x254c3a,_0x56a4ba={},_0x2b3973=getValueByPath(_0x4ab7e2,[_0x46a5b9(0x34a)]);_0xa800c6!==undefined&&_0x2b3973!=null&&setValueByPath(_0xa800c6,['instances[0]',_0x46a5b9(0x34a)],_0x2b3973);const _0x4cb2bf=getValueByPath(_0x4ab7e2,['personImage']);_0xa800c6!==undefined&&_0x4cb2bf!=null&&setValueByPath(_0xa800c6,[_0x46a5b9(0x2cb),_0x46a5b9(0x5ea),_0x46a5b9(0x299)],imageToVertex(_0x4cb2bf));const _0x506e52=getValueByPath(_0x4ab7e2,[_0x46a5b9(0x423)]);if(_0xa800c6!==undefined&&_0x506e52!=null){let _0x3eb973=_0x506e52;Array[_0x46a5b9(0x192)](_0x3eb973)&&(_0x3eb973=_0x3eb973[_0x46a5b9(0x221)](_0x680f05=>{return productImageToVertex(_0x680f05);})),setValueByPath(_0xa800c6,['instances[0]',_0x46a5b9(0x423)],_0x3eb973);}return _0x56a4ba;}function referenceImageAPIInternalToVertex(_0x4be2a3,_0x419cc0){const _0x172e8b=a0_0x254c3a,_0x3f9e2c={},_0x38ffa0=getValueByPath(_0x4be2a3,[_0x172e8b(0x353)]);_0x38ffa0!=null&&setValueByPath(_0x3f9e2c,['referenceImage'],imageToVertex(_0x38ffa0));const _0x65dd62=getValueByPath(_0x4be2a3,['referenceId']);_0x65dd62!=null&&setValueByPath(_0x3f9e2c,['referenceId'],_0x65dd62);const _0x4402c0=getValueByPath(_0x4be2a3,['referenceType']);_0x4402c0!=null&&setValueByPath(_0x3f9e2c,['referenceType'],_0x4402c0);const _0x1e855c=getValueByPath(_0x4be2a3,[_0x172e8b(0x2d3)]);_0x1e855c!=null&&setValueByPath(_0x3f9e2c,[_0x172e8b(0x2d3)],maskReferenceConfigToVertex(_0x1e855c));const _0x5cc248=getValueByPath(_0x4be2a3,[_0x172e8b(0x602)]);_0x5cc248!=null&&setValueByPath(_0x3f9e2c,['controlImageConfig'],controlReferenceConfigToVertex(_0x5cc248));const _0x184bc0=getValueByPath(_0x4be2a3,[_0x172e8b(0x395)]);_0x184bc0!=null&&setValueByPath(_0x3f9e2c,[_0x172e8b(0x395)],_0x184bc0);const _0x4b91b0=getValueByPath(_0x4be2a3,[_0x172e8b(0x24c)]);return _0x4b91b0!=null&&setValueByPath(_0x3f9e2c,['subjectImageConfig'],_0x4b91b0),_0x3f9e2c;}function safetyAttributesFromMldev(_0x3055a6,_0x5f164a){const _0x1fd3d7=a0_0x254c3a,_0x46699c={},_0x3ec0e0=getValueByPath(_0x3055a6,['safetyAttributes',_0x1fd3d7(0x491)]);_0x3ec0e0!=null&&setValueByPath(_0x46699c,[_0x1fd3d7(0x491)],_0x3ec0e0);const _0x39ea59=getValueByPath(_0x3055a6,[_0x1fd3d7(0x25b),_0x1fd3d7(0x6bd)]);_0x39ea59!=null&&setValueByPath(_0x46699c,[_0x1fd3d7(0x6bd)],_0x39ea59);const _0x2d8064=getValueByPath(_0x3055a6,[_0x1fd3d7(0x6dd)]);return _0x2d8064!=null&&setValueByPath(_0x46699c,[_0x1fd3d7(0x6dd)],_0x2d8064),_0x46699c;}function safetyAttributesFromVertex(_0x27d397,_0x23c360){const _0x4ac89d=a0_0x254c3a,_0x37bdd6={},_0x523161=getValueByPath(_0x27d397,[_0x4ac89d(0x25b),_0x4ac89d(0x491)]);_0x523161!=null&&setValueByPath(_0x37bdd6,[_0x4ac89d(0x491)],_0x523161);const _0x24c807=getValueByPath(_0x27d397,[_0x4ac89d(0x25b),_0x4ac89d(0x6bd)]);_0x24c807!=null&&setValueByPath(_0x37bdd6,[_0x4ac89d(0x6bd)],_0x24c807);const _0x152e82=getValueByPath(_0x27d397,['contentType']);return _0x152e82!=null&&setValueByPath(_0x37bdd6,['contentType'],_0x152e82),_0x37bdd6;}function safetySettingToMldev(_0xfbfd2d,_0x209730){const _0x4805a2=a0_0x254c3a,_0x128269={},_0x43f3cb=getValueByPath(_0xfbfd2d,[_0x4805a2(0x363)]);_0x43f3cb!=null&&setValueByPath(_0x128269,[_0x4805a2(0x363)],_0x43f3cb);if(getValueByPath(_0xfbfd2d,['method'])!==undefined)throw new Error(_0x4805a2(0x65d));const _0x58d524=getValueByPath(_0xfbfd2d,[_0x4805a2(0x2fe)]);return _0x58d524!=null&&setValueByPath(_0x128269,[_0x4805a2(0x2fe)],_0x58d524),_0x128269;}function scribbleImageToVertex(_0x1dcf85,_0x5cae34){const _0x2c64dc=a0_0x254c3a,_0x4f4ecd={},_0x26cbd7=getValueByPath(_0x1dcf85,[_0x2c64dc(0x299)]);return _0x26cbd7!=null&&setValueByPath(_0x4f4ecd,[_0x2c64dc(0x299)],imageToVertex(_0x26cbd7)),_0x4f4ecd;}function segmentImageConfigToVertex(_0x10dc37,_0xdf4b8b,_0x8e27c0){const _0x2372b8=a0_0x254c3a,_0x394375={},_0x282b40=getValueByPath(_0x10dc37,[_0x2372b8(0x19e)]);_0xdf4b8b!==undefined&&_0x282b40!=null&&setValueByPath(_0xdf4b8b,['parameters',_0x2372b8(0x19e)],_0x282b40);const _0x43c18f=getValueByPath(_0x10dc37,['maxPredictions']);_0xdf4b8b!==undefined&&_0x43c18f!=null&&setValueByPath(_0xdf4b8b,['parameters',_0x2372b8(0x179)],_0x43c18f);const _0x21eb88=getValueByPath(_0x10dc37,[_0x2372b8(0x40d)]);_0xdf4b8b!==undefined&&_0x21eb88!=null&&setValueByPath(_0xdf4b8b,['parameters',_0x2372b8(0x40d)],_0x21eb88);const _0x645823=getValueByPath(_0x10dc37,[_0x2372b8(0x1e1)]);_0xdf4b8b!==undefined&&_0x645823!=null&&setValueByPath(_0xdf4b8b,[_0x2372b8(0x34d),_0x2372b8(0x1e1)],_0x645823);const _0x2ce921=getValueByPath(_0x10dc37,[_0x2372b8(0x360)]);_0xdf4b8b!==undefined&&_0x2ce921!=null&&setValueByPath(_0xdf4b8b,['parameters',_0x2372b8(0x360)],_0x2ce921);const _0x48f97d=getValueByPath(_0x10dc37,[_0x2372b8(0x266)]);return _0xdf4b8b!==undefined&&_0x48f97d!=null&&setValueByPath(_0xdf4b8b,[_0x2372b8(0x266)],_0x48f97d),_0x394375;}function segmentImageParametersToVertex(_0x64a6f6,_0x1c8ee8,_0x50f5b9){const _0x1cda29=a0_0x254c3a,_0xb04c8d={},_0x2b8b68=getValueByPath(_0x1c8ee8,['model']);_0x2b8b68!=null&&setValueByPath(_0xb04c8d,[_0x1cda29(0x1fb),_0x1cda29(0x492)],tModel(_0x64a6f6,_0x2b8b68));const _0x4fecf9=getValueByPath(_0x1c8ee8,['source']);_0x4fecf9!=null&&segmentImageSourceToVertex(_0x4fecf9,_0xb04c8d);const _0x2cc32c=getValueByPath(_0x1c8ee8,[_0x1cda29(0x563)]);return _0x2cc32c!=null&&segmentImageConfigToVertex(_0x2cc32c,_0xb04c8d),_0xb04c8d;}function segmentImageResponseFromVertex(_0x16a19c,_0x351511){const _0x17410c=a0_0x254c3a,_0x827eb0={},_0x47a678=getValueByPath(_0x16a19c,[_0x17410c(0x6dc)]);if(_0x47a678!=null){let _0x218e71=_0x47a678;Array[_0x17410c(0x192)](_0x218e71)&&(_0x218e71=_0x218e71[_0x17410c(0x221)](_0x5f2ed2=>{return generatedImageMaskFromVertex(_0x5f2ed2);})),setValueByPath(_0x827eb0,['generatedMasks'],_0x218e71);}return _0x827eb0;}function segmentImageSourceToVertex(_0x4716bc,_0x42fa47,_0x1beb8c){const _0x52c228=a0_0x254c3a,_0x628041={},_0xae6e09=getValueByPath(_0x4716bc,[_0x52c228(0x34a)]);_0x42fa47!==undefined&&_0xae6e09!=null&&setValueByPath(_0x42fa47,['instances[0]','prompt'],_0xae6e09);const _0x543371=getValueByPath(_0x4716bc,[_0x52c228(0x299)]);_0x42fa47!==undefined&&_0x543371!=null&&setValueByPath(_0x42fa47,[_0x52c228(0x2cb),_0x52c228(0x299)],imageToVertex(_0x543371));const _0x51cb3c=getValueByPath(_0x4716bc,[_0x52c228(0x341)]);return _0x42fa47!==undefined&&_0x51cb3c!=null&&setValueByPath(_0x42fa47,[_0x52c228(0x2cb),_0x52c228(0x559)],scribbleImageToVertex(_0x51cb3c)),_0x628041;}function toolConfigToMldev(_0x3c4059,_0x4e9e62){const _0xf3d8c9=a0_0x254c3a,_0x47bc8d={},_0x35b9eb=getValueByPath(_0x3c4059,[_0xf3d8c9(0x4e6)]);_0x35b9eb!=null&&setValueByPath(_0x47bc8d,[_0xf3d8c9(0x4e6)],_0x35b9eb);const _0x46a23f=getValueByPath(_0x3c4059,[_0xf3d8c9(0x3f1)]);return _0x46a23f!=null&&setValueByPath(_0x47bc8d,[_0xf3d8c9(0x3f1)],functionCallingConfigToMldev(_0x46a23f)),_0x47bc8d;}function toolToMldev$1(_0x35824f,_0x251ee1){const _0x1929e1=a0_0x254c3a,_0x465b9f={};if(getValueByPath(_0x35824f,[_0x1929e1(0x71e)])!==undefined)throw new Error(_0x1929e1(0x2ae));const _0x4e3d5c=getValueByPath(_0x35824f,[_0x1929e1(0x698)]);_0x4e3d5c!=null&&setValueByPath(_0x465b9f,[_0x1929e1(0x698)],_0x4e3d5c);const _0x34fdc5=getValueByPath(_0x35824f,[_0x1929e1(0x47d)]);_0x34fdc5!=null&&setValueByPath(_0x465b9f,[_0x1929e1(0x47d)],_0x34fdc5);const _0x1ceb80=getValueByPath(_0x35824f,[_0x1929e1(0x32b)]);_0x1ceb80!=null&&setValueByPath(_0x465b9f,[_0x1929e1(0x32b)],_0x1ceb80);if(getValueByPath(_0x35824f,['enterpriseWebSearch'])!==undefined)throw new Error(_0x1929e1(0x450));const _0x32a215=getValueByPath(_0x35824f,[_0x1929e1(0x4b0)]);if(_0x32a215!=null){let _0x3c0144=_0x32a215;Array['isArray'](_0x3c0144)&&(_0x3c0144=_0x3c0144[_0x1929e1(0x221)](_0x1ca155=>{return _0x1ca155;})),setValueByPath(_0x465b9f,['functionDeclarations'],_0x3c0144);}const _0xf88a0e=getValueByPath(_0x35824f,[_0x1929e1(0x688)]);_0xf88a0e!=null&&setValueByPath(_0x465b9f,['googleMaps'],googleMapsToMldev$1(_0xf88a0e));const _0x2228b5=getValueByPath(_0x35824f,[_0x1929e1(0x436)]);_0x2228b5!=null&&setValueByPath(_0x465b9f,['googleSearch'],googleSearchToMldev$1(_0x2228b5));const _0x247509=getValueByPath(_0x35824f,['googleSearchRetrieval']);_0x247509!=null&&setValueByPath(_0x465b9f,[_0x1929e1(0x503)],_0x247509);const _0x3ec301=getValueByPath(_0x35824f,[_0x1929e1(0x39b)]);return _0x3ec301!=null&&setValueByPath(_0x465b9f,[_0x1929e1(0x39b)],_0x3ec301),_0x465b9f;}function a0_0x3530(_0x1fc2a8,_0xde3966){_0x1fc2a8=_0x1fc2a8-0x172;const _0x1905c4=a0_0x1905();let _0x353092=_0x1905c4[_0x1fc2a8];return _0x353092;}function toolToVertex(_0x38a86d,_0x7144b4){const _0x144683=a0_0x254c3a,_0x5edc95={},_0x6f29b4=getValueByPath(_0x38a86d,[_0x144683(0x71e)]);_0x6f29b4!=null&&setValueByPath(_0x5edc95,[_0x144683(0x71e)],_0x6f29b4);const _0x4c6be3=getValueByPath(_0x38a86d,[_0x144683(0x698)]);_0x4c6be3!=null&&setValueByPath(_0x5edc95,[_0x144683(0x698)],_0x4c6be3);if(getValueByPath(_0x38a86d,['fileSearch'])!==undefined)throw new Error('fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');const _0x54590a=getValueByPath(_0x38a86d,[_0x144683(0x32b)]);_0x54590a!=null&&setValueByPath(_0x5edc95,['codeExecution'],_0x54590a);const _0x420093=getValueByPath(_0x38a86d,['enterpriseWebSearch']);_0x420093!=null&&setValueByPath(_0x5edc95,['enterpriseWebSearch'],_0x420093);const _0x21f87f=getValueByPath(_0x38a86d,['functionDeclarations']);if(_0x21f87f!=null){let _0x428795=_0x21f87f;Array[_0x144683(0x192)](_0x428795)&&(_0x428795=_0x428795[_0x144683(0x221)](_0x163102=>{return functionDeclarationToVertex(_0x163102);})),setValueByPath(_0x5edc95,['functionDeclarations'],_0x428795);}const _0xa86897=getValueByPath(_0x38a86d,[_0x144683(0x688)]);_0xa86897!=null&&setValueByPath(_0x5edc95,[_0x144683(0x688)],_0xa86897);const _0x3f6140=getValueByPath(_0x38a86d,[_0x144683(0x436)]);_0x3f6140!=null&&setValueByPath(_0x5edc95,[_0x144683(0x436)],_0x3f6140);const _0x4ead76=getValueByPath(_0x38a86d,[_0x144683(0x503)]);_0x4ead76!=null&&setValueByPath(_0x5edc95,[_0x144683(0x503)],_0x4ead76);const _0x20ae0c=getValueByPath(_0x38a86d,[_0x144683(0x39b)]);return _0x20ae0c!=null&&setValueByPath(_0x5edc95,[_0x144683(0x39b)],_0x20ae0c),_0x5edc95;}function tunedModelInfoFromMldev(_0x122501,_0x142162){const _0x4d9211=a0_0x254c3a,_0x5e02e0={},_0x3c9e1b=getValueByPath(_0x122501,[_0x4d9211(0x451)]);_0x3c9e1b!=null&&setValueByPath(_0x5e02e0,[_0x4d9211(0x451)],_0x3c9e1b);const _0x49a55c=getValueByPath(_0x122501,[_0x4d9211(0x3ff)]);_0x49a55c!=null&&setValueByPath(_0x5e02e0,[_0x4d9211(0x3ff)],_0x49a55c);const _0xb2471b=getValueByPath(_0x122501,[_0x4d9211(0x4af)]);return _0xb2471b!=null&&setValueByPath(_0x5e02e0,[_0x4d9211(0x4af)],_0xb2471b),_0x5e02e0;}function tunedModelInfoFromVertex(_0x47d24f,_0xc8777e){const _0x184c19=a0_0x254c3a,_0x487dde={},_0x38cdbf=getValueByPath(_0x47d24f,[_0x184c19(0x266),_0x184c19(0x35c)]);_0x38cdbf!=null&&setValueByPath(_0x487dde,[_0x184c19(0x451)],_0x38cdbf);const _0x2d9b30=getValueByPath(_0x47d24f,[_0x184c19(0x3ff)]);_0x2d9b30!=null&&setValueByPath(_0x487dde,['createTime'],_0x2d9b30);const _0x587205=getValueByPath(_0x47d24f,[_0x184c19(0x4af)]);return _0x587205!=null&&setValueByPath(_0x487dde,[_0x184c19(0x4af)],_0x587205),_0x487dde;}function updateModelConfigToMldev(_0x5d9d85,_0x10bc0e,_0xc945dc){const _0x1fab4c=a0_0x254c3a,_0x5643a9={},_0x30b23a=getValueByPath(_0x5d9d85,[_0x1fab4c(0x462)]);_0x10bc0e!==undefined&&_0x30b23a!=null&&setValueByPath(_0x10bc0e,[_0x1fab4c(0x462)],_0x30b23a);const _0xf0b8db=getValueByPath(_0x5d9d85,[_0x1fab4c(0x3b3)]);_0x10bc0e!==undefined&&_0xf0b8db!=null&&setValueByPath(_0x10bc0e,[_0x1fab4c(0x3b3)],_0xf0b8db);const _0x5c7aa7=getValueByPath(_0x5d9d85,[_0x1fab4c(0x3e4)]);return _0x10bc0e!==undefined&&_0x5c7aa7!=null&&setValueByPath(_0x10bc0e,[_0x1fab4c(0x3e4)],_0x5c7aa7),_0x5643a9;}function updateModelConfigToVertex(_0x2e724e,_0x30d588,_0x238284){const _0x2b550c=a0_0x254c3a,_0x450711={},_0xadf372=getValueByPath(_0x2e724e,[_0x2b550c(0x462)]);_0x30d588!==undefined&&_0xadf372!=null&&setValueByPath(_0x30d588,[_0x2b550c(0x462)],_0xadf372);const _0x506ec9=getValueByPath(_0x2e724e,['description']);_0x30d588!==undefined&&_0x506ec9!=null&&setValueByPath(_0x30d588,[_0x2b550c(0x3b3)],_0x506ec9);const _0x114c3a=getValueByPath(_0x2e724e,[_0x2b550c(0x3e4)]);return _0x30d588!==undefined&&_0x114c3a!=null&&setValueByPath(_0x30d588,[_0x2b550c(0x3e4)],_0x114c3a),_0x450711;}function updateModelParametersToMldev(_0x269d69,_0x25f445,_0x873fba){const _0x27e762=a0_0x254c3a,_0xb2f3a8={},_0x380589=getValueByPath(_0x25f445,[_0x27e762(0x492)]);_0x380589!=null&&setValueByPath(_0xb2f3a8,[_0x27e762(0x1fb),_0x27e762(0x68e)],tModel(_0x269d69,_0x380589));const _0x4c9f1c=getValueByPath(_0x25f445,[_0x27e762(0x563)]);return _0x4c9f1c!=null&&updateModelConfigToMldev(_0x4c9f1c,_0xb2f3a8),_0xb2f3a8;}function updateModelParametersToVertex(_0x12fb34,_0x46fef0,_0x524a56){const _0x265487=a0_0x254c3a,_0xee4c9d={},_0x584b55=getValueByPath(_0x46fef0,[_0x265487(0x492)]);_0x584b55!=null&&setValueByPath(_0xee4c9d,[_0x265487(0x1fb),_0x265487(0x492)],tModel(_0x12fb34,_0x584b55));const _0x3efb17=getValueByPath(_0x46fef0,[_0x265487(0x563)]);return _0x3efb17!=null&&updateModelConfigToVertex(_0x3efb17,_0xee4c9d),_0xee4c9d;}function upscaleImageAPIConfigInternalToVertex(_0x5dfbca,_0x2a85e8,_0x3abf70){const _0x39e7cc=a0_0x254c3a,_0x491608={},_0x1c568c=getValueByPath(_0x5dfbca,[_0x39e7cc(0x53d)]);_0x2a85e8!==undefined&&_0x1c568c!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),_0x39e7cc(0x1fe)],_0x1c568c);const _0x56a4e3=getValueByPath(_0x5dfbca,['safetyFilterLevel']);_0x2a85e8!==undefined&&_0x56a4e3!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),_0x39e7cc(0x5bc)],_0x56a4e3);const _0xd7ad3f=getValueByPath(_0x5dfbca,[_0x39e7cc(0x39d)]);_0x2a85e8!==undefined&&_0xd7ad3f!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),'personGeneration'],_0xd7ad3f);const _0x25b835=getValueByPath(_0x5dfbca,['includeRaiReason']);_0x2a85e8!==undefined&&_0x25b835!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),'includeRaiReason'],_0x25b835);const _0xa726f7=getValueByPath(_0x5dfbca,['outputMimeType']);_0x2a85e8!==undefined&&_0xa726f7!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),_0x39e7cc(0x3f3),_0x39e7cc(0x38c)],_0xa726f7);const _0x4a6e4a=getValueByPath(_0x5dfbca,['outputCompressionQuality']);_0x2a85e8!==undefined&&_0x4a6e4a!=null&&setValueByPath(_0x2a85e8,['parameters',_0x39e7cc(0x3f3),_0x39e7cc(0x3bd)],_0x4a6e4a);const _0x5ac1a8=getValueByPath(_0x5dfbca,[_0x39e7cc(0x200)]);_0x2a85e8!==undefined&&_0x5ac1a8!=null&&setValueByPath(_0x2a85e8,['parameters','upscaleConfig','enhanceInputImage'],_0x5ac1a8);const _0x52786e=getValueByPath(_0x5dfbca,[_0x39e7cc(0x36c)]);_0x2a85e8!==undefined&&_0x52786e!=null&&setValueByPath(_0x2a85e8,['parameters',_0x39e7cc(0x615),_0x39e7cc(0x36c)],_0x52786e);const _0x449c80=getValueByPath(_0x5dfbca,['labels']);_0x2a85e8!==undefined&&_0x449c80!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x266)],_0x449c80);const _0x553f23=getValueByPath(_0x5dfbca,[_0x39e7cc(0x66e)]);_0x2a85e8!==undefined&&_0x553f23!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),_0x39e7cc(0x493)],_0x553f23);const _0x199047=getValueByPath(_0x5dfbca,[_0x39e7cc(0x19e)]);return _0x2a85e8!==undefined&&_0x199047!=null&&setValueByPath(_0x2a85e8,[_0x39e7cc(0x34d),_0x39e7cc(0x19e)],_0x199047),_0x491608;}function upscaleImageAPIParametersInternalToVertex(_0x24ba5d,_0x29990e,_0x24557e){const _0x1ed63f=a0_0x254c3a,_0x22a452={},_0x3abd5c=getValueByPath(_0x29990e,[_0x1ed63f(0x492)]);_0x3abd5c!=null&&setValueByPath(_0x22a452,['_url',_0x1ed63f(0x492)],tModel(_0x24ba5d,_0x3abd5c));const _0x53b93d=getValueByPath(_0x29990e,[_0x1ed63f(0x299)]);_0x53b93d!=null&&setValueByPath(_0x22a452,['instances[0]',_0x1ed63f(0x299)],imageToVertex(_0x53b93d));const _0x1ca367=getValueByPath(_0x29990e,[_0x1ed63f(0x2a9)]);_0x1ca367!=null&&setValueByPath(_0x22a452,[_0x1ed63f(0x34d),_0x1ed63f(0x615),_0x1ed63f(0x2a9)],_0x1ca367);const _0xcd3cbe=getValueByPath(_0x29990e,['config']);return _0xcd3cbe!=null&&upscaleImageAPIConfigInternalToVertex(_0xcd3cbe,_0x22a452),_0x22a452;}function upscaleImageResponseFromVertex(_0x2bb983,_0x526c07){const _0x5e82ae=a0_0x254c3a,_0x7a014f={},_0x4226b7=getValueByPath(_0x2bb983,['sdkHttpResponse']);_0x4226b7!=null&&setValueByPath(_0x7a014f,['sdkHttpResponse'],_0x4226b7);const _0x516cd9=getValueByPath(_0x2bb983,[_0x5e82ae(0x6dc)]);if(_0x516cd9!=null){let _0x14f99b=_0x516cd9;Array[_0x5e82ae(0x192)](_0x14f99b)&&(_0x14f99b=_0x14f99b[_0x5e82ae(0x221)](_0x464a5c=>{return generatedImageFromVertex(_0x464a5c);})),setValueByPath(_0x7a014f,['generatedImages'],_0x14f99b);}return _0x7a014f;}function videoFromMldev(_0xf41a4,_0x3b5af1){const _0x245a11=a0_0x254c3a,_0x2131e6={},_0x51d632=getValueByPath(_0xf41a4,['uri']);_0x51d632!=null&&setValueByPath(_0x2131e6,['uri'],_0x51d632);const _0x41b53d=getValueByPath(_0xf41a4,['encodedVideo']);_0x41b53d!=null&&setValueByPath(_0x2131e6,[_0x245a11(0x255)],tBytes(_0x41b53d));const _0x421d71=getValueByPath(_0xf41a4,[_0x245a11(0x5fa)]);return _0x421d71!=null&&setValueByPath(_0x2131e6,['mimeType'],_0x421d71),_0x2131e6;}function videoFromVertex(_0x1cb960,_0x2cc08d){const _0x2038bc=a0_0x254c3a,_0x26023d={},_0x1974bf=getValueByPath(_0x1cb960,['gcsUri']);_0x1974bf!=null&&setValueByPath(_0x26023d,[_0x2038bc(0x1d1)],_0x1974bf);const _0x2dc344=getValueByPath(_0x1cb960,[_0x2038bc(0x178)]);_0x2dc344!=null&&setValueByPath(_0x26023d,['videoBytes'],tBytes(_0x2dc344));const _0x3b0545=getValueByPath(_0x1cb960,[_0x2038bc(0x38c)]);return _0x3b0545!=null&&setValueByPath(_0x26023d,[_0x2038bc(0x38c)],_0x3b0545),_0x26023d;}function videoGenerationMaskToVertex(_0x5bd641,_0x829cb8){const _0x505f51=a0_0x254c3a,_0x279bf0={},_0x1749fb=getValueByPath(_0x5bd641,[_0x505f51(0x299)]);_0x1749fb!=null&&setValueByPath(_0x279bf0,[_0x505f51(0x33f)],imageToVertex(_0x1749fb));const _0x446948=getValueByPath(_0x5bd641,[_0x505f51(0x478)]);return _0x446948!=null&&setValueByPath(_0x279bf0,[_0x505f51(0x478)],_0x446948),_0x279bf0;}function videoGenerationReferenceImageToMldev(_0x2bce0f,_0x25b992){const _0x11fd06=a0_0x254c3a,_0x15410d={},_0x18b43d=getValueByPath(_0x2bce0f,[_0x11fd06(0x299)]);_0x18b43d!=null&&setValueByPath(_0x15410d,[_0x11fd06(0x299)],imageToMldev(_0x18b43d));const _0x512fe1=getValueByPath(_0x2bce0f,['referenceType']);return _0x512fe1!=null&&setValueByPath(_0x15410d,[_0x11fd06(0x217)],_0x512fe1),_0x15410d;}function videoGenerationReferenceImageToVertex(_0x1227c1,_0x88284c){const _0x313afb=a0_0x254c3a,_0x1b5a21={},_0x2dbf4d=getValueByPath(_0x1227c1,[_0x313afb(0x299)]);_0x2dbf4d!=null&&setValueByPath(_0x1b5a21,[_0x313afb(0x299)],imageToVertex(_0x2dbf4d));const _0x20f305=getValueByPath(_0x1227c1,[_0x313afb(0x217)]);return _0x20f305!=null&&setValueByPath(_0x1b5a21,[_0x313afb(0x217)],_0x20f305),_0x1b5a21;}function videoToMldev(_0x19ffe9,_0x8bd864){const _0x2061f9=a0_0x254c3a,_0x10cde9={},_0x5a7603=getValueByPath(_0x19ffe9,['uri']);_0x5a7603!=null&&setValueByPath(_0x10cde9,['uri'],_0x5a7603);const _0x2382df=getValueByPath(_0x19ffe9,[_0x2061f9(0x255)]);_0x2382df!=null&&setValueByPath(_0x10cde9,['encodedVideo'],tBytes(_0x2382df));const _0x89bf6=getValueByPath(_0x19ffe9,[_0x2061f9(0x38c)]);return _0x89bf6!=null&&setValueByPath(_0x10cde9,[_0x2061f9(0x5fa)],_0x89bf6),_0x10cde9;}function videoToVertex(_0x4bcb41,_0x402081){const _0x52c250=a0_0x254c3a,_0x51a1fb={},_0x42d61f=getValueByPath(_0x4bcb41,[_0x52c250(0x1d1)]);_0x42d61f!=null&&setValueByPath(_0x51a1fb,[_0x52c250(0x569)],_0x42d61f);const _0x3b7dc9=getValueByPath(_0x4bcb41,[_0x52c250(0x255)]);_0x3b7dc9!=null&&setValueByPath(_0x51a1fb,[_0x52c250(0x178)],tBytes(_0x3b7dc9));const _0x3b96c1=getValueByPath(_0x4bcb41,[_0x52c250(0x38c)]);return _0x3b96c1!=null&&setValueByPath(_0x51a1fb,[_0x52c250(0x38c)],_0x3b96c1),_0x51a1fb;}/**
217
+ * @license
218
+ * Copyright 2025 Google LLC
219
+ * SPDX-License-Identifier: Apache-2.0
220
+ */
221
+ const MCP_LABEL=a0_0x254c3a(0x24b);let hasMcpToolUsageFromMcpToTool=![];function hasMcpToolUsage(_0x179d1d){const _0x597bab=a0_0x254c3a;for(const _0x2d4178 of _0x179d1d){if(isMcpCallableTool(_0x2d4178))return!![];if(typeof _0x2d4178===_0x597bab(0x46a)&&'inputSchema'in _0x2d4178)return!![];}return hasMcpToolUsageFromMcpToTool;}function setMcpUsageHeader(_0x378a39){const _0x3fd011=a0_0x254c3a;var _0x470aa3;const _0x59b455=(_0x470aa3=_0x378a39[GOOGLE_API_CLIENT_HEADER])!==null&&_0x470aa3!==void 0x0?_0x470aa3:'';_0x378a39[GOOGLE_API_CLIENT_HEADER]=(_0x59b455+('\x20'+MCP_LABEL))[_0x3fd011(0x323)]();}function isMcpCallableTool(_0x58f1f1){return _0x58f1f1!==null&&typeof _0x58f1f1==='object'&&_0x58f1f1 instanceof McpCallableTool;}function listAllTools(_0x42ca36){return __asyncGenerator(this,arguments,function*_0x1d93ff(_0x350e6c,_0x21d3c5=0x64){const _0xcd8bb2=a0_0x3530;let _0x1b43fb=undefined,_0x586762=0x0;while(_0x586762<_0x21d3c5){const _0xf37f7d=yield __await(_0x350e6c[_0xcd8bb2(0x715)]({'cursor':_0x1b43fb}));for(const _0x4c9d33 of _0xf37f7d['tools']){yield yield __await(_0x4c9d33),_0x586762++;}if(!_0xf37f7d[_0xcd8bb2(0x40c)])break;_0x1b43fb=_0xf37f7d[_0xcd8bb2(0x40c)];}});}class McpCallableTool{constructor(_0x448bbf=[],_0xcc0ca){const _0x58bfee=a0_0x254c3a;this[_0x58bfee(0x66f)]=[],this[_0x58bfee(0x67d)]={},this[_0x58bfee(0x5f9)]=_0x448bbf,this['config']=_0xcc0ca;}static[a0_0x254c3a(0x1b6)](_0x368943,_0x3f9b57){return new McpCallableTool(_0x368943,_0x3f9b57);}async[a0_0x254c3a(0x430)](){const _0x1baacb=a0_0x254c3a;var _0x1f4c81,_0x1c2c1a,_0x2e2d49,_0x20070a;if(this[_0x1baacb(0x66f)][_0x1baacb(0x3d2)]>0x0)return;const _0x4e39fd={},_0x2a5333=[];for(const _0x17cf0f of this[_0x1baacb(0x5f9)]){try{for(var _0x10c091=!![],_0x28301b=(_0x1c2c1a=void 0x0,__asyncValues(listAllTools(_0x17cf0f))),_0x52d015;_0x52d015=await _0x28301b['next'](),_0x1f4c81=_0x52d015['done'],!_0x1f4c81;_0x10c091=!![]){_0x20070a=_0x52d015[_0x1baacb(0x484)],_0x10c091=![];const _0x130d3d=_0x20070a;_0x2a5333['push'](_0x130d3d);const _0x2c47c8=_0x130d3d[_0x1baacb(0x68e)];if(_0x4e39fd[_0x2c47c8])throw new Error('Duplicate\x20function\x20name\x20'+_0x2c47c8+_0x1baacb(0x337));_0x4e39fd[_0x2c47c8]=_0x17cf0f;}}catch(_0x5e4f36){_0x1c2c1a={'error':_0x5e4f36};}finally{try{if(!_0x10c091&&!_0x1f4c81&&(_0x2e2d49=_0x28301b[_0x1baacb(0x3fd)]))await _0x2e2d49[_0x1baacb(0x49b)](_0x28301b);}finally{if(_0x1c2c1a)throw _0x1c2c1a[_0x1baacb(0x20b)];}}}this[_0x1baacb(0x66f)]=_0x2a5333,this['functionNameToMcpClient']=_0x4e39fd;}async[a0_0x254c3a(0x6ff)](){const _0x17fb3e=a0_0x254c3a;return await this[_0x17fb3e(0x430)](),mcpToolsToGeminiTool(this['mcpTools'],this[_0x17fb3e(0x563)]);}async['callTool'](_0x40fc07){const _0x399c16=a0_0x254c3a;await this[_0x399c16(0x430)]();const _0x54dd27=[];for(const _0xe462bb of _0x40fc07){if(_0xe462bb[_0x399c16(0x68e)]in this[_0x399c16(0x67d)]){const _0x4e50b0=this['functionNameToMcpClient'][_0xe462bb[_0x399c16(0x68e)]];let _0x52b69a=undefined;this[_0x399c16(0x563)][_0x399c16(0x4a1)]&&(_0x52b69a={'timeout':this[_0x399c16(0x563)][_0x399c16(0x4a1)]});const _0x16988b=await _0x4e50b0[_0x399c16(0x240)]({'name':_0xe462bb[_0x399c16(0x68e)],'arguments':_0xe462bb[_0x399c16(0x4d6)]},undefined,_0x52b69a);_0x54dd27['push']({'functionResponse':{'name':_0xe462bb['name'],'response':_0x16988b[_0x399c16(0x565)]?{'error':_0x16988b}:_0x16988b}});}}return _0x54dd27;}}function isMcpClient(_0x4a98bf){const _0x23b23f=a0_0x254c3a;return _0x4a98bf!==null&&typeof _0x4a98bf===_0x23b23f(0x46a)&&_0x23b23f(0x715)in _0x4a98bf&&typeof _0x4a98bf[_0x23b23f(0x715)]==='function';}function mcpToTool(..._0x405a2b){const _0x5b4198=a0_0x254c3a;hasMcpToolUsageFromMcpToTool=!![];if(_0x405a2b[_0x5b4198(0x3d2)]===0x0)throw new Error(_0x5b4198(0x544));const _0x31f307=_0x405a2b[_0x405a2b['length']-0x1];if(isMcpClient(_0x31f307))return McpCallableTool[_0x5b4198(0x1b6)](_0x405a2b,{});return McpCallableTool[_0x5b4198(0x1b6)](_0x405a2b[_0x5b4198(0x26b)](0x0,_0x405a2b[_0x5b4198(0x3d2)]-0x1),_0x31f307);}/**
222
+ * @license
223
+ * Copyright 2025 Google LLC
224
+ * SPDX-License-Identifier: Apache-2.0
225
+ */
226
+ async function handleWebSocketMessage$1(_0x215b06,_0x4030cb,_0x45d1d7){const _0x51cedd=a0_0x254c3a,_0x58f391=new LiveMusicServerMessage();let _0x1c15fa;_0x45d1d7[_0x51cedd(0x526)]instanceof Blob?_0x1c15fa=JSON[_0x51cedd(0x5c1)](await _0x45d1d7[_0x51cedd(0x526)][_0x51cedd(0x2ab)]()):_0x1c15fa=JSON[_0x51cedd(0x5c1)](_0x45d1d7[_0x51cedd(0x526)]),Object[_0x51cedd(0x64e)](_0x58f391,_0x1c15fa),_0x4030cb(_0x58f391);}class LiveMusic{constructor(_0x288a13,_0x4dfc71,_0x4b8183){const _0x2ab3a1=a0_0x254c3a;this[_0x2ab3a1(0x6cf)]=_0x288a13,this[_0x2ab3a1(0x52e)]=_0x4dfc71,this[_0x2ab3a1(0x309)]=_0x4b8183;}async[a0_0x254c3a(0x592)](_0x15a764){const _0x3b6e35=a0_0x254c3a;var _0x37e330,_0x2fb490;if(this[_0x3b6e35(0x6cf)][_0x3b6e35(0x2b9)]())throw new Error(_0x3b6e35(0x379));console[_0x3b6e35(0x69c)](_0x3b6e35(0x197));const _0x447939=this[_0x3b6e35(0x6cf)]['getWebsocketBaseUrl'](),_0x146bcf=this[_0x3b6e35(0x6cf)]['getApiVersion'](),_0x146d1e=mapToHeaders$1(this[_0x3b6e35(0x6cf)][_0x3b6e35(0x38f)]()),_0x3bf316=this[_0x3b6e35(0x6cf)][_0x3b6e35(0x402)](),_0x4eef22=_0x447939+_0x3b6e35(0x60b)+_0x146bcf+_0x3b6e35(0x20c)+_0x3bf316;let _0x468082=()=>{};const _0x68a243=new Promise(_0x22e230=>{_0x468082=_0x22e230;}),_0x360bbb=_0x15a764['callbacks'],_0x411065=function(){_0x468082({});},_0x103e47=this[_0x3b6e35(0x6cf)],_0x3bdef8={'onopen':_0x411065,'onmessage':_0x4a83a0=>{const _0x496abc=_0x3b6e35;void handleWebSocketMessage$1(_0x103e47,_0x360bbb[_0x496abc(0x6e6)],_0x4a83a0);},'onerror':(_0x37e330=_0x360bbb===null||_0x360bbb===void 0x0?void 0x0:_0x360bbb[_0x3b6e35(0x23c)])!==null&&_0x37e330!==void 0x0?_0x37e330:function(_0x166145){},'onclose':(_0x2fb490=_0x360bbb===null||_0x360bbb===void 0x0?void 0x0:_0x360bbb[_0x3b6e35(0x1dd)])!==null&&_0x2fb490!==void 0x0?_0x2fb490:function(_0x9b3a33){}},_0x1da690=this[_0x3b6e35(0x309)][_0x3b6e35(0x1b6)](_0x4eef22,headersToMap$1(_0x146d1e),_0x3bdef8);_0x1da690[_0x3b6e35(0x592)](),await _0x68a243;const _0x23fb48=tModel(this[_0x3b6e35(0x6cf)],_0x15a764[_0x3b6e35(0x492)]),_0x622e1b={'model':_0x23fb48},_0x469d6c={'setup':_0x622e1b};return _0x1da690[_0x3b6e35(0x319)](JSON['stringify'](_0x469d6c)),new LiveMusicSession(_0x1da690,this['apiClient']);}}class LiveMusicSession{constructor(_0x531a37,_0x27698d){const _0x1c17ab=a0_0x254c3a;this['conn']=_0x531a37,this[_0x1c17ab(0x6cf)]=_0x27698d;}async['setWeightedPrompts'](_0x1997f0){const _0x544515=a0_0x254c3a;if(!_0x1997f0[_0x544515(0x4d5)]||Object[_0x544515(0x421)](_0x1997f0['weightedPrompts'])[_0x544515(0x3d2)]===0x0)throw new Error(_0x544515(0x522));const _0x669280=liveMusicSetWeightedPromptsParametersToMldev(_0x1997f0);this[_0x544515(0x5a9)][_0x544515(0x319)](JSON['stringify']({'clientContent':_0x669280}));}async[a0_0x254c3a(0x599)](_0x54e4f2){const _0x4a8454=a0_0x254c3a;!_0x54e4f2[_0x4a8454(0x175)]&&(_0x54e4f2[_0x4a8454(0x175)]={});const _0x612f61=liveMusicSetConfigParametersToMldev(_0x54e4f2);this[_0x4a8454(0x5a9)][_0x4a8454(0x319)](JSON['stringify'](_0x612f61));}[a0_0x254c3a(0x317)](_0x302449){const _0x6ff191={'playbackControl':_0x302449};this['conn']['send'](JSON['stringify'](_0x6ff191));}[a0_0x254c3a(0x5be)](){const _0x1e821b=a0_0x254c3a;this[_0x1e821b(0x317)](exports['LiveMusicPlaybackControl'][_0x1e821b(0x1d7)]);}[a0_0x254c3a(0x1ad)](){const _0x207527=a0_0x254c3a;this[_0x207527(0x317)](exports[_0x207527(0x301)][_0x207527(0x383)]);}[a0_0x254c3a(0x6a8)](){const _0x522b65=a0_0x254c3a;this['sendPlaybackControl'](exports['LiveMusicPlaybackControl'][_0x522b65(0x1e7)]);}[a0_0x254c3a(0x32a)](){const _0x55209b=a0_0x254c3a;this[_0x55209b(0x317)](exports[_0x55209b(0x301)]['RESET_CONTEXT']);}[a0_0x254c3a(0x588)](){const _0x19a135=a0_0x254c3a;this[_0x19a135(0x5a9)][_0x19a135(0x588)]();}}function headersToMap$1(_0x393696){const _0x4a2c09={};return _0x393696['forEach']((_0x5c6439,_0x27218)=>{_0x4a2c09[_0x27218]=_0x5c6439;}),_0x4a2c09;}function mapToHeaders$1(_0x5983d9){const _0x501d0c=a0_0x254c3a,_0x14733d=new Headers();for(const [_0x52ea44,_0x16a153]of Object[_0x501d0c(0x1ae)](_0x5983d9)){_0x14733d[_0x501d0c(0x30e)](_0x52ea44,_0x16a153);}return _0x14733d;}/**
227
+ * @license
228
+ * Copyright 2025 Google LLC
229
+ * SPDX-License-Identifier: Apache-2.0
230
+ */
231
+ const FUNCTION_RESPONSE_REQUIRES_ID=a0_0x254c3a(0x658);async function handleWebSocketMessage(_0xe3c48d,_0x2eefa3,_0x51c99c){const _0x5defce=a0_0x254c3a,_0x3ac0b9=new LiveServerMessage();let _0x481ead;if(_0x51c99c[_0x5defce(0x526)]instanceof Blob)_0x481ead=await _0x51c99c[_0x5defce(0x526)]['text']();else _0x51c99c['data']instanceof ArrayBuffer?_0x481ead=new TextDecoder()[_0x5defce(0x2d7)](_0x51c99c[_0x5defce(0x526)]):_0x481ead=_0x51c99c['data'];const _0x16fb68=JSON[_0x5defce(0x5c1)](_0x481ead);if(_0xe3c48d['isVertexAI']()){const _0x13538d=liveServerMessageFromVertex(_0x16fb68);Object[_0x5defce(0x64e)](_0x3ac0b9,_0x13538d);}else{const _0x1d5933=_0x16fb68;Object[_0x5defce(0x64e)](_0x3ac0b9,_0x1d5933);}_0x2eefa3(_0x3ac0b9);}class Live{constructor(_0x23aee1,_0x5c3dbd,_0x45b8bf){const _0x2988d9=a0_0x254c3a;this[_0x2988d9(0x6cf)]=_0x23aee1,this[_0x2988d9(0x52e)]=_0x5c3dbd,this['webSocketFactory']=_0x45b8bf,this['music']=new LiveMusic(this[_0x2988d9(0x6cf)],this[_0x2988d9(0x52e)],this['webSocketFactory']);}async[a0_0x254c3a(0x592)](_0x3ed71a){const _0x3d5342=a0_0x254c3a;var _0x5d10aa,_0x5743d0,_0x29e64f,_0x58ace1,_0x49f9c8,_0x387152;if(_0x3ed71a[_0x3d5342(0x563)]&&_0x3ed71a[_0x3d5342(0x563)][_0x3d5342(0x234)])throw new Error(_0x3d5342(0x425)+_0x3d5342(0x298)+'\x20configuration\x20instead.');const _0x38429f=this[_0x3d5342(0x6cf)][_0x3d5342(0x49c)](),_0x5692c7=this[_0x3d5342(0x6cf)]['getApiVersion']();let _0x4516ac;const _0x7cd06c=this[_0x3d5342(0x6cf)][_0x3d5342(0x29d)]();_0x3ed71a[_0x3d5342(0x563)]&&_0x3ed71a[_0x3d5342(0x563)][_0x3d5342(0x1e6)]&&hasMcpToolUsage(_0x3ed71a['config'][_0x3d5342(0x1e6)])&&setMcpUsageHeader(_0x7cd06c);const _0x134c11=mapToHeaders(_0x7cd06c);if(this['apiClient']['isVertexAI']()){const _0x4e5c4d=this['apiClient'][_0x3d5342(0x709)](),_0x590fac=this[_0x3d5342(0x6cf)]['getLocation'](),_0x37cf78=this[_0x3d5342(0x6cf)][_0x3d5342(0x402)](),_0x152492=!!_0x4e5c4d&&!!_0x590fac||!!_0x37cf78;this['apiClient'][_0x3d5342(0x206)]()&&!_0x152492?_0x4516ac=_0x38429f:(_0x4516ac=_0x38429f+_0x3d5342(0x652)+_0x5692c7+_0x3d5342(0x4ad),await this['auth'][_0x3d5342(0x267)](_0x134c11,_0x4516ac));}else{const _0x31c91d=this['apiClient'][_0x3d5342(0x402)]();let _0x2997fd=_0x3d5342(0x60c),_0x350017=_0x3d5342(0x42d);(_0x31c91d===null||_0x31c91d===void 0x0?void 0x0:_0x31c91d[_0x3d5342(0x320)](_0x3d5342(0x427)))&&(console[_0x3d5342(0x69c)](_0x3d5342(0x598)),_0x5692c7!==_0x3d5342(0x676)&&console[_0x3d5342(0x69c)]('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.'),_0x2997fd=_0x3d5342(0x30f),_0x350017=_0x3d5342(0x5ae)),_0x4516ac=_0x38429f+'/ws/google.ai.generativelanguage.'+_0x5692c7+_0x3d5342(0x1a5)+_0x2997fd+'?'+_0x350017+'='+_0x31c91d;}let _0x536590=()=>{};const _0x1c01a0=new Promise(_0x540860=>{_0x536590=_0x540860;}),_0x64fce0=_0x3ed71a[_0x3d5342(0x67b)],_0x43f736=function(){const _0x4adf3c=_0x3d5342;var _0x4fb893;(_0x4fb893=_0x64fce0===null||_0x64fce0===void 0x0?void 0x0:_0x64fce0['onopen'])===null||_0x4fb893===void 0x0?void 0x0:_0x4fb893[_0x4adf3c(0x49b)](_0x64fce0),_0x536590({});},_0x136ed2=this['apiClient'],_0x493748={'onopen':_0x43f736,'onmessage':_0xbcb5e0=>{void handleWebSocketMessage(_0x136ed2,_0x64fce0['onmessage'],_0xbcb5e0);},'onerror':(_0x5d10aa=_0x64fce0===null||_0x64fce0===void 0x0?void 0x0:_0x64fce0[_0x3d5342(0x23c)])!==null&&_0x5d10aa!==void 0x0?_0x5d10aa:function(_0x18d535){},'onclose':(_0x5743d0=_0x64fce0===null||_0x64fce0===void 0x0?void 0x0:_0x64fce0[_0x3d5342(0x1dd)])!==null&&_0x5743d0!==void 0x0?_0x5743d0:function(_0x1c153b){}},_0x1ab981=this['webSocketFactory'][_0x3d5342(0x1b6)](_0x4516ac,headersToMap(_0x134c11),_0x493748);_0x1ab981[_0x3d5342(0x592)](),await _0x1c01a0;let _0xf1f20c=tModel(this[_0x3d5342(0x6cf)],_0x3ed71a[_0x3d5342(0x492)]);if(this[_0x3d5342(0x6cf)][_0x3d5342(0x2b9)]()&&_0xf1f20c['startsWith'](_0x3d5342(0x564))){const _0x44bee0=this[_0x3d5342(0x6cf)][_0x3d5342(0x709)](),_0x50eac0=this['apiClient']['getLocation']();_0x44bee0&&_0x50eac0&&(_0xf1f20c=_0x3d5342(0x332)+_0x44bee0+_0x3d5342(0x238)+_0x50eac0+'/'+_0xf1f20c);}let _0x425dab={};this['apiClient'][_0x3d5342(0x2b9)]()&&((_0x29e64f=_0x3ed71a[_0x3d5342(0x563)])===null||_0x29e64f===void 0x0?void 0x0:_0x29e64f[_0x3d5342(0x6d4)])===undefined&&(_0x3ed71a[_0x3d5342(0x563)]===undefined?_0x3ed71a[_0x3d5342(0x563)]={'responseModalities':[exports[_0x3d5342(0x5cd)][_0x3d5342(0x40f)]]}:_0x3ed71a[_0x3d5342(0x563)][_0x3d5342(0x6d4)]=[exports[_0x3d5342(0x5cd)][_0x3d5342(0x40f)]]);((_0x58ace1=_0x3ed71a['config'])===null||_0x58ace1===void 0x0?void 0x0:_0x58ace1[_0x3d5342(0x324)])&&console[_0x3d5342(0x69c)]('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).');const _0x2dd4e5=(_0x387152=(_0x49f9c8=_0x3ed71a[_0x3d5342(0x563)])===null||_0x49f9c8===void 0x0?void 0x0:_0x49f9c8['tools'])!==null&&_0x387152!==void 0x0?_0x387152:[],_0x5c85ed=[];for(const _0x3cf487 of _0x2dd4e5){if(this[_0x3d5342(0x434)](_0x3cf487)){const _0x5d230f=_0x3cf487;_0x5c85ed[_0x3d5342(0x417)](await _0x5d230f['tool']());}else _0x5c85ed['push'](_0x3cf487);}_0x5c85ed['length']>0x0&&(_0x3ed71a[_0x3d5342(0x563)][_0x3d5342(0x1e6)]=_0x5c85ed);const _0x2c7acc={'model':_0xf1f20c,'config':_0x3ed71a[_0x3d5342(0x563)],'callbacks':_0x3ed71a['callbacks']};return this[_0x3d5342(0x6cf)]['isVertexAI']()?_0x425dab=liveConnectParametersToVertex(this['apiClient'],_0x2c7acc):_0x425dab=liveConnectParametersToMldev(this[_0x3d5342(0x6cf)],_0x2c7acc),delete _0x425dab[_0x3d5342(0x563)],_0x1ab981[_0x3d5342(0x319)](JSON[_0x3d5342(0x59a)](_0x425dab)),new Session(_0x1ab981,this[_0x3d5342(0x6cf)]);}[a0_0x254c3a(0x434)](_0x56ef4c){const _0x217962=a0_0x254c3a;return _0x217962(0x240)in _0x56ef4c&&typeof _0x56ef4c['callTool']===_0x217962(0x304);}}const defaultLiveSendClientContentParamerters={'turnComplete':!![]};class Session{constructor(_0x330d47,_0x5c8b04){const _0x3b34ef=a0_0x254c3a;this[_0x3b34ef(0x5a9)]=_0x330d47,this['apiClient']=_0x5c8b04;}['tLiveClientContent'](_0x3d1463,_0x5c7c40){const _0x527671=a0_0x254c3a;if(_0x5c7c40[_0x527671(0x621)]!==null&&_0x5c7c40[_0x527671(0x621)]!==undefined){let _0x1664ec=[];try{_0x1664ec=tContents(_0x5c7c40[_0x527671(0x621)]),!_0x3d1463[_0x527671(0x2b9)]()&&(_0x1664ec=_0x1664ec[_0x527671(0x221)](_0x238697=>contentToMldev$1(_0x238697)));}catch(_0x431fd5){throw new Error(_0x527671(0x1f0)+typeof _0x5c7c40['turns']+'\x27');}return{'clientContent':{'turns':_0x1664ec,'turnComplete':_0x5c7c40[_0x527671(0x723)]}};}return{'clientContent':{'turnComplete':_0x5c7c40[_0x527671(0x723)]}};}[a0_0x254c3a(0x2e2)](_0x40a9dd,_0x3888b6){const _0x20c814=a0_0x254c3a;let _0x3649d7=[];if(_0x3888b6[_0x20c814(0x44e)]==null)throw new Error(_0x20c814(0x2c9));!Array['isArray'](_0x3888b6['functionResponses'])?_0x3649d7=[_0x3888b6['functionResponses']]:_0x3649d7=_0x3888b6[_0x20c814(0x44e)];if(_0x3649d7[_0x20c814(0x3d2)]===0x0)throw new Error(_0x20c814(0x2c9));for(const _0xc95c13 of _0x3649d7){if(typeof _0xc95c13!==_0x20c814(0x46a)||_0xc95c13===null||!(_0x20c814(0x68e)in _0xc95c13)||!(_0x20c814(0x218)in _0xc95c13))throw new Error('Could\x20not\x20parse\x20function\x20response,\x20type\x20\x27'+typeof _0xc95c13+'\x27.');if(!_0x40a9dd[_0x20c814(0x2b9)]()&&!('id'in _0xc95c13))throw new Error(FUNCTION_RESPONSE_REQUIRES_ID);}const _0x1c7469={'toolResponse':{'functionResponses':_0x3649d7}};return _0x1c7469;}[a0_0x254c3a(0x18c)](_0x4ee8ba){const _0x5b8eb3=a0_0x254c3a;_0x4ee8ba=Object['assign'](Object[_0x5b8eb3(0x64e)]({},defaultLiveSendClientContentParamerters),_0x4ee8ba);const _0x41d163=this[_0x5b8eb3(0x5b5)](this['apiClient'],_0x4ee8ba);this['conn'][_0x5b8eb3(0x319)](JSON[_0x5b8eb3(0x59a)](_0x41d163));}['sendRealtimeInput'](_0x207a35){const _0x553d93=a0_0x254c3a;let _0xeaca2={};this[_0x553d93(0x6cf)]['isVertexAI']()?_0xeaca2={'realtimeInput':liveSendRealtimeInputParametersToVertex(_0x207a35)}:_0xeaca2={'realtimeInput':liveSendRealtimeInputParametersToMldev(_0x207a35)},this[_0x553d93(0x5a9)][_0x553d93(0x319)](JSON[_0x553d93(0x59a)](_0xeaca2));}[a0_0x254c3a(0x1e8)](_0x50a5b8){const _0x3eacec=a0_0x254c3a;if(_0x50a5b8['functionResponses']==null)throw new Error(_0x3eacec(0x5af));const _0x5bf358=this[_0x3eacec(0x2e2)](this[_0x3eacec(0x6cf)],_0x50a5b8);this['conn'][_0x3eacec(0x319)](JSON[_0x3eacec(0x59a)](_0x5bf358));}[a0_0x254c3a(0x588)](){const _0x2fed8d=a0_0x254c3a;this[_0x2fed8d(0x5a9)][_0x2fed8d(0x588)]();}}function headersToMap(_0x3ef5a3){const _0x423fd8=a0_0x254c3a,_0x56824a={};return _0x3ef5a3[_0x423fd8(0x5fb)]((_0x4f5772,_0x3e5126)=>{_0x56824a[_0x3e5126]=_0x4f5772;}),_0x56824a;}function mapToHeaders(_0x5a21df){const _0x31e88a=new Headers();for(const [_0xe544b0,_0x10958f]of Object['entries'](_0x5a21df)){_0x31e88a['append'](_0xe544b0,_0x10958f);}return _0x31e88a;}/**
232
+ * @license
233
+ * Copyright 2025 Google LLC
234
+ * SPDX-License-Identifier: Apache-2.0
235
+ */
236
+ const DEFAULT_MAX_REMOTE_CALLS=0xa;function shouldDisableAfc(_0x3b5783){const _0x5d4dc1=a0_0x254c3a;var _0x1b3af0,_0x3c5328,_0x1b754d;if((_0x1b3af0=_0x3b5783===null||_0x3b5783===void 0x0?void 0x0:_0x3b5783[_0x5d4dc1(0x5e1)])===null||_0x1b3af0===void 0x0?void 0x0:_0x1b3af0[_0x5d4dc1(0x69f)])return!![];let _0x361394=![];for(const _0x3ae8e5 of(_0x3c5328=_0x3b5783===null||_0x3b5783===void 0x0?void 0x0:_0x3b5783['tools'])!==null&&_0x3c5328!==void 0x0?_0x3c5328:[]){if(isCallableTool(_0x3ae8e5)){_0x361394=!![];break;}}if(!_0x361394)return!![];const _0x4cc189=(_0x1b754d=_0x3b5783===null||_0x3b5783===void 0x0?void 0x0:_0x3b5783['automaticFunctionCalling'])===null||_0x1b754d===void 0x0?void 0x0:_0x1b754d['maximumRemoteCalls'];if(_0x4cc189&&(_0x4cc189<0x0||!Number[_0x5d4dc1(0x2b0)](_0x4cc189))||_0x4cc189==0x0)return console[_0x5d4dc1(0x69c)](_0x5d4dc1(0x285),_0x4cc189),!![];return![];}function isCallableTool(_0x29daa0){const _0x545969=a0_0x254c3a;return _0x545969(0x240)in _0x29daa0&&typeof _0x29daa0['callTool']==='function';}function hasCallableTools(_0x448665){const _0x4c9bb4=a0_0x254c3a;var _0x23238c,_0x569d2c,_0x2774e5;return(_0x2774e5=(_0x569d2c=(_0x23238c=_0x448665[_0x4c9bb4(0x563)])===null||_0x23238c===void 0x0?void 0x0:_0x23238c['tools'])===null||_0x569d2c===void 0x0?void 0x0:_0x569d2c[_0x4c9bb4(0x59f)](_0x49ef35=>isCallableTool(_0x49ef35)))!==null&&_0x2774e5!==void 0x0?_0x2774e5:![];}function findAfcIncompatibleToolIndexes(_0x2faf93){const _0x17d863=a0_0x254c3a;var _0x5ef6d1;const _0x3bd499=[];if(!((_0x5ef6d1=_0x2faf93===null||_0x2faf93===void 0x0?void 0x0:_0x2faf93[_0x17d863(0x563)])===null||_0x5ef6d1===void 0x0?void 0x0:_0x5ef6d1['tools']))return _0x3bd499;return _0x2faf93[_0x17d863(0x563)][_0x17d863(0x1e6)]['forEach']((_0x3b700d,_0x32c3a0)=>{const _0x431584=_0x17d863;if(isCallableTool(_0x3b700d))return;const _0x5c7ae1=_0x3b700d;_0x5c7ae1['functionDeclarations']&&_0x5c7ae1[_0x431584(0x4b0)][_0x431584(0x3d2)]>0x0&&_0x3bd499[_0x431584(0x417)](_0x32c3a0);}),_0x3bd499;}function shouldAppendAfcHistory(_0x559e22){const _0x54b73f=a0_0x254c3a;var _0x2fc620;return!((_0x2fc620=_0x559e22===null||_0x559e22===void 0x0?void 0x0:_0x559e22[_0x54b73f(0x5e1)])===null||_0x2fc620===void 0x0?void 0x0:_0x2fc620[_0x54b73f(0x1fd)]);}/**
237
+ * @license
238
+ * Copyright 2025 Google LLC
239
+ * SPDX-License-Identifier: Apache-2.0
240
+ */
241
+ class Models extends BaseModule{constructor(_0xa0e9dd){const _0x486dfb=a0_0x254c3a;super(),this['apiClient']=_0xa0e9dd,this[_0x486dfb(0x701)]=async _0x559cd8=>{const _0x1248fe=_0x486dfb;var _0x4ee88f,_0x1f50ff,_0x1811e0,_0x2d4f91,_0x4ae698;const _0x47409b=await this[_0x1248fe(0x408)](_0x559cd8);this[_0x1248fe(0x5a7)](_0x559cd8);if(!hasCallableTools(_0x559cd8)||shouldDisableAfc(_0x559cd8[_0x1248fe(0x563)]))return await this[_0x1248fe(0x23e)](_0x47409b);const _0x5f573a=findAfcIncompatibleToolIndexes(_0x559cd8);if(_0x5f573a[_0x1248fe(0x3d2)]>0x0){const _0x19260c=_0x5f573a[_0x1248fe(0x221)](_0x4353d4=>'tools['+_0x4353d4+']')[_0x1248fe(0x173)](',\x20');throw new Error(_0x1248fe(0x67f)+_0x19260c+'.');}let _0x2f0d98,_0x25ff08;const _0x488d4a=tContents(_0x47409b[_0x1248fe(0x1ea)]),_0x2867a3=(_0x1811e0=(_0x1f50ff=(_0x4ee88f=_0x47409b['config'])===null||_0x4ee88f===void 0x0?void 0x0:_0x4ee88f[_0x1248fe(0x5e1)])===null||_0x1f50ff===void 0x0?void 0x0:_0x1f50ff[_0x1248fe(0x720)])!==null&&_0x1811e0!==void 0x0?_0x1811e0:DEFAULT_MAX_REMOTE_CALLS;let _0x4aeb98=0x0;while(_0x4aeb98<_0x2867a3){_0x2f0d98=await this['generateContentInternal'](_0x47409b);if(!_0x2f0d98[_0x1248fe(0x6fb)]||_0x2f0d98[_0x1248fe(0x6fb)][_0x1248fe(0x3d2)]===0x0)break;const _0x44071c=_0x2f0d98[_0x1248fe(0x711)][0x0][_0x1248fe(0x60e)],_0x16d0b9=[];for(const _0x266717 of(_0x4ae698=(_0x2d4f91=_0x559cd8[_0x1248fe(0x563)])===null||_0x2d4f91===void 0x0?void 0x0:_0x2d4f91[_0x1248fe(0x1e6)])!==null&&_0x4ae698!==void 0x0?_0x4ae698:[]){if(isCallableTool(_0x266717)){const _0x108979=_0x266717,_0x59e65f=await _0x108979[_0x1248fe(0x240)](_0x2f0d98[_0x1248fe(0x6fb)]);_0x16d0b9['push'](..._0x59e65f);}}_0x4aeb98++,_0x25ff08={'role':_0x1248fe(0x699),'parts':_0x16d0b9},_0x47409b[_0x1248fe(0x1ea)]=tContents(_0x47409b[_0x1248fe(0x1ea)]),_0x47409b['contents'][_0x1248fe(0x417)](_0x44071c),_0x47409b[_0x1248fe(0x1ea)][_0x1248fe(0x417)](_0x25ff08),shouldAppendAfcHistory(_0x47409b[_0x1248fe(0x563)])&&(_0x488d4a[_0x1248fe(0x417)](_0x44071c),_0x488d4a['push'](_0x25ff08));}return shouldAppendAfcHistory(_0x47409b['config'])&&(_0x2f0d98[_0x1248fe(0x378)]=_0x488d4a),_0x2f0d98;},this[_0x486dfb(0x49d)]=async _0x416438=>{const _0x3ace0c=_0x486dfb;var _0x5372b9,_0x78afe1,_0xfee18d,_0x66ea9b,_0x1d8826;this['maybeMoveToResponseJsonSchem'](_0x416438);if(shouldDisableAfc(_0x416438[_0x3ace0c(0x563)])){const _0x152fc9=await this[_0x3ace0c(0x408)](_0x416438);return await this[_0x3ace0c(0x4b5)](_0x152fc9);}const _0x4f8161=findAfcIncompatibleToolIndexes(_0x416438);if(_0x4f8161[_0x3ace0c(0x3d2)]>0x0){const _0x38c238=_0x4f8161['map'](_0x5c4326=>_0x3ace0c(0x6ef)+_0x5c4326+']')[_0x3ace0c(0x173)](',\x20');throw new Error(_0x3ace0c(0x2e6)+_0x38c238+_0x3ace0c(0x371));}const _0x3c6ee7=(_0xfee18d=(_0x78afe1=(_0x5372b9=_0x416438===null||_0x416438===void 0x0?void 0x0:_0x416438['config'])===null||_0x5372b9===void 0x0?void 0x0:_0x5372b9[_0x3ace0c(0x440)])===null||_0x78afe1===void 0x0?void 0x0:_0x78afe1[_0x3ace0c(0x3f1)])===null||_0xfee18d===void 0x0?void 0x0:_0xfee18d[_0x3ace0c(0x557)],_0x3f7123=(_0x1d8826=(_0x66ea9b=_0x416438===null||_0x416438===void 0x0?void 0x0:_0x416438[_0x3ace0c(0x563)])===null||_0x66ea9b===void 0x0?void 0x0:_0x66ea9b[_0x3ace0c(0x5e1)])===null||_0x1d8826===void 0x0?void 0x0:_0x1d8826[_0x3ace0c(0x69f)];if(_0x3c6ee7&&!_0x3f7123)throw new Error('Running\x20in\x20streaming\x20mode\x20with\x20\x27streamFunctionCallArguments\x27\x20enabled,\x20'+_0x3ace0c(0x4c1)+'Please\x20set\x20\x27config.automaticFunctionCalling.disable\x27\x20to\x20true\x20to\x20disable\x20AFC\x20'+_0x3ace0c(0x642)+_0x3ace0c(0x4f0));return await this[_0x3ace0c(0x4aa)](_0x416438);},this[_0x486dfb(0x34c)]=async _0x2ce898=>{const _0x23e9dd=_0x486dfb;return await this[_0x23e9dd(0x5e0)](_0x2ce898)[_0x23e9dd(0x3a5)](_0x328709=>{const _0x1971bd=_0x23e9dd;var _0x42b1b1;let _0x4a87bf;const _0x33d0c6=[];if(_0x328709===null||_0x328709===void 0x0?void 0x0:_0x328709[_0x1971bd(0x6be)])for(const _0x21ef10 of _0x328709[_0x1971bd(0x6be)]){_0x21ef10&&(_0x21ef10===null||_0x21ef10===void 0x0?void 0x0:_0x21ef10[_0x1971bd(0x25b)])&&((_0x42b1b1=_0x21ef10===null||_0x21ef10===void 0x0?void 0x0:_0x21ef10['safetyAttributes'])===null||_0x42b1b1===void 0x0?void 0x0:_0x42b1b1[_0x1971bd(0x6dd)])===_0x1971bd(0x336)?_0x4a87bf=_0x21ef10===null||_0x21ef10===void 0x0?void 0x0:_0x21ef10[_0x1971bd(0x25b)]:_0x33d0c6[_0x1971bd(0x417)](_0x21ef10);}let _0x32b017;return _0x4a87bf?_0x32b017={'generatedImages':_0x33d0c6,'positivePromptSafetyAttributes':_0x4a87bf,'sdkHttpResponse':_0x328709['sdkHttpResponse']}:_0x32b017={'generatedImages':_0x33d0c6,'sdkHttpResponse':_0x328709['sdkHttpResponse']},_0x32b017;});},this['list']=async _0x3d34fe=>{const _0x5b0c81=_0x486dfb;var _0x2a6aed;const _0x40d112={'queryBase':!![]},_0x22fed6=Object[_0x5b0c81(0x64e)](Object[_0x5b0c81(0x64e)]({},_0x40d112),_0x3d34fe===null||_0x3d34fe===void 0x0?void 0x0:_0x3d34fe[_0x5b0c81(0x563)]),_0x35670={'config':_0x22fed6};if(this['apiClient'][_0x5b0c81(0x2b9)]()){if(!_0x35670['config'][_0x5b0c81(0x6bc)]){if((_0x2a6aed=_0x35670[_0x5b0c81(0x563)])===null||_0x2a6aed===void 0x0?void 0x0:_0x2a6aed[_0x5b0c81(0x38a)])throw new Error(_0x5b0c81(0x44d));else _0x35670[_0x5b0c81(0x563)][_0x5b0c81(0x38a)]=_0x5b0c81(0x66b);}}return new Pager(exports[_0x5b0c81(0x666)][_0x5b0c81(0x507)],_0xdbbd8a=>this[_0x5b0c81(0x475)](_0xdbbd8a),await this[_0x5b0c81(0x475)](_0x35670),_0x35670);},this['editImage']=async _0x418e72=>{const _0x3f4b98=_0x486dfb,_0x45698b={'model':_0x418e72[_0x3f4b98(0x492)],'prompt':_0x418e72['prompt'],'referenceImages':[],'config':_0x418e72[_0x3f4b98(0x563)]};return _0x418e72[_0x3f4b98(0x3c7)]&&(_0x418e72[_0x3f4b98(0x3c7)]&&(_0x45698b['referenceImages']=_0x418e72[_0x3f4b98(0x3c7)][_0x3f4b98(0x221)](_0x3470e6=>_0x3470e6['toReferenceImageAPI']()))),await this[_0x3f4b98(0x3e5)](_0x45698b);},this[_0x486dfb(0x263)]=async _0x19f4c5=>{const _0x473b17=_0x486dfb;let _0xe80b01={'numberOfImages':0x1,'mode':_0x473b17(0x6ba)};_0x19f4c5[_0x473b17(0x563)]&&(_0xe80b01=Object['assign'](Object[_0x473b17(0x64e)]({},_0xe80b01),_0x19f4c5['config']));const _0x5d5e2d={'model':_0x19f4c5[_0x473b17(0x492)],'image':_0x19f4c5[_0x473b17(0x299)],'upscaleFactor':_0x19f4c5[_0x473b17(0x2a9)],'config':_0xe80b01};return await this['upscaleImageInternal'](_0x5d5e2d);},this[_0x486dfb(0x23f)]=async _0x25b573=>{const _0x3e3bce=_0x486dfb;var _0x47537c,_0xc1c940,_0x1dcc8e,_0x19e193,_0x43a133,_0x49d1c8;if((_0x25b573['prompt']||_0x25b573[_0x3e3bce(0x299)]||_0x25b573[_0x3e3bce(0x315)])&&_0x25b573[_0x3e3bce(0x547)])throw new Error(_0x3e3bce(0x3e2));if(!this[_0x3e3bce(0x6cf)][_0x3e3bce(0x2b9)]()){if(((_0x47537c=_0x25b573['video'])===null||_0x47537c===void 0x0?void 0x0:_0x47537c[_0x3e3bce(0x1d1)])&&((_0xc1c940=_0x25b573[_0x3e3bce(0x315)])===null||_0xc1c940===void 0x0?void 0x0:_0xc1c940['videoBytes']))_0x25b573[_0x3e3bce(0x315)]={'uri':_0x25b573[_0x3e3bce(0x315)]['uri'],'mimeType':_0x25b573[_0x3e3bce(0x315)][_0x3e3bce(0x38c)]};else((_0x19e193=(_0x1dcc8e=_0x25b573[_0x3e3bce(0x547)])===null||_0x1dcc8e===void 0x0?void 0x0:_0x1dcc8e['video'])===null||_0x19e193===void 0x0?void 0x0:_0x19e193[_0x3e3bce(0x1d1)])&&((_0x49d1c8=(_0x43a133=_0x25b573[_0x3e3bce(0x547)])===null||_0x43a133===void 0x0?void 0x0:_0x43a133[_0x3e3bce(0x315)])===null||_0x49d1c8===void 0x0?void 0x0:_0x49d1c8[_0x3e3bce(0x255)])&&(_0x25b573[_0x3e3bce(0x547)][_0x3e3bce(0x315)]={'uri':_0x25b573[_0x3e3bce(0x547)][_0x3e3bce(0x315)][_0x3e3bce(0x1d1)],'mimeType':_0x25b573[_0x3e3bce(0x547)][_0x3e3bce(0x315)][_0x3e3bce(0x38c)]});}return await this['generateVideosInternal'](_0x25b573);};}[a0_0x254c3a(0x5a7)](_0x11284b){const _0x5db891=a0_0x254c3a;_0x11284b[_0x5db891(0x563)]&&_0x11284b[_0x5db891(0x563)][_0x5db891(0x1cb)]&&(!_0x11284b[_0x5db891(0x563)][_0x5db891(0x2a6)]&&(Object['keys'](_0x11284b['config'][_0x5db891(0x1cb)])[_0x5db891(0x566)](_0x5db891(0x4b4))&&(_0x11284b['config'][_0x5db891(0x2a6)]=_0x11284b[_0x5db891(0x563)][_0x5db891(0x1cb)],delete _0x11284b[_0x5db891(0x563)][_0x5db891(0x1cb)])));return;}async[a0_0x254c3a(0x408)](_0xedff5){const _0x16bb53=a0_0x254c3a;var _0x9e2982,_0x3a09e5,_0x4abe95;const _0x434b58=(_0x9e2982=_0xedff5['config'])===null||_0x9e2982===void 0x0?void 0x0:_0x9e2982[_0x16bb53(0x1e6)];if(!_0x434b58)return _0xedff5;const _0x3c16d7=await Promise['all'](_0x434b58[_0x16bb53(0x221)](async _0x30eca7=>{const _0x3e6dfb=_0x16bb53;if(isCallableTool(_0x30eca7)){const _0x167d09=_0x30eca7;return await _0x167d09[_0x3e6dfb(0x6ff)]();}return _0x30eca7;})),_0x35392c={'model':_0xedff5['model'],'contents':_0xedff5[_0x16bb53(0x1ea)],'config':Object['assign'](Object[_0x16bb53(0x64e)]({},_0xedff5[_0x16bb53(0x563)]),{'tools':_0x3c16d7})};_0x35392c[_0x16bb53(0x563)][_0x16bb53(0x1e6)]=_0x3c16d7;if(_0xedff5[_0x16bb53(0x563)]&&_0xedff5[_0x16bb53(0x563)]['tools']&&hasMcpToolUsage(_0xedff5[_0x16bb53(0x563)][_0x16bb53(0x1e6)])){const _0x3dec76=(_0x4abe95=(_0x3a09e5=_0xedff5[_0x16bb53(0x563)][_0x16bb53(0x234)])===null||_0x3a09e5===void 0x0?void 0x0:_0x3a09e5['headers'])!==null&&_0x4abe95!==void 0x0?_0x4abe95:{};let _0xa463f1=Object['assign']({},_0x3dec76);Object[_0x16bb53(0x421)](_0xa463f1)['length']===0x0&&(_0xa463f1=this['apiClient'][_0x16bb53(0x38f)]()),setMcpUsageHeader(_0xa463f1),_0x35392c[_0x16bb53(0x563)]['httpOptions']=Object['assign'](Object[_0x16bb53(0x64e)]({},_0xedff5[_0x16bb53(0x563)][_0x16bb53(0x234)]),{'headers':_0xa463f1});}return _0x35392c;}async[a0_0x254c3a(0x3cc)](_0x2b0a30){const _0x23f763=a0_0x254c3a;var _0x515790,_0x4364bb,_0x4b0665;const _0x149f87=new Map();for(const _0xc47f0e of(_0x4364bb=(_0x515790=_0x2b0a30['config'])===null||_0x515790===void 0x0?void 0x0:_0x515790[_0x23f763(0x1e6)])!==null&&_0x4364bb!==void 0x0?_0x4364bb:[]){if(isCallableTool(_0xc47f0e)){const _0x4b02b2=_0xc47f0e,_0x11f3ea=await _0x4b02b2[_0x23f763(0x6ff)]();for(const _0x48490d of(_0x4b0665=_0x11f3ea[_0x23f763(0x4b0)])!==null&&_0x4b0665!==void 0x0?_0x4b0665:[]){if(!_0x48490d[_0x23f763(0x68e)])throw new Error('Function\x20declaration\x20name\x20is\x20required.');if(_0x149f87['has'](_0x48490d[_0x23f763(0x68e)]))throw new Error('Duplicate\x20tool\x20declaration\x20name:\x20'+_0x48490d[_0x23f763(0x68e)]);_0x149f87[_0x23f763(0x4f2)](_0x48490d[_0x23f763(0x68e)],_0x4b02b2);}}}return _0x149f87;}async[a0_0x254c3a(0x4aa)](_0x3138fd){const _0xcbdcc5=a0_0x254c3a;var _0x3343eb,_0x394ec8,_0x405f3b;const _0x33dad9=(_0x405f3b=(_0x394ec8=(_0x3343eb=_0x3138fd['config'])===null||_0x3343eb===void 0x0?void 0x0:_0x3343eb[_0xcbdcc5(0x5e1)])===null||_0x394ec8===void 0x0?void 0x0:_0x394ec8[_0xcbdcc5(0x720)])!==null&&_0x405f3b!==void 0x0?_0x405f3b:DEFAULT_MAX_REMOTE_CALLS;let _0x458f74=![],_0x59c21d=0x0;const _0x2af5b4=await this[_0xcbdcc5(0x3cc)](_0x3138fd);return function(_0x1ba699,_0x54739c,_0x1634ee){return __asyncGenerator(this,arguments,function*(){const _0x3df57a=a0_0x3530;var _0x1e8bbe,_0xfda2b6,_0x5eda33,_0x49456c,_0x869794,_0x34bd8e;while(_0x59c21d<_0x33dad9){_0x458f74&&(_0x59c21d++,_0x458f74=![]);const _0x548fef=yield __await(_0x1ba699[_0x3df57a(0x408)](_0x1634ee)),_0x26b084=yield __await(_0x1ba699[_0x3df57a(0x4b5)](_0x548fef)),_0x3929b1=[],_0x18add9=[];try{for(var _0x3afd89=!![],_0x312100=(_0xfda2b6=void 0x0,__asyncValues(_0x26b084)),_0x3b57db;_0x3b57db=yield __await(_0x312100[_0x3df57a(0x33e)]()),_0x1e8bbe=_0x3b57db[_0x3df57a(0x183)],!_0x1e8bbe;_0x3afd89=!![]){_0x49456c=_0x3b57db['value'],_0x3afd89=![];const _0x3d8ec3=_0x49456c;yield yield __await(_0x3d8ec3);if(_0x3d8ec3[_0x3df57a(0x711)]&&((_0x869794=_0x3d8ec3[_0x3df57a(0x711)][0x0])===null||_0x869794===void 0x0?void 0x0:_0x869794[_0x3df57a(0x60e)])){_0x18add9['push'](_0x3d8ec3['candidates'][0x0][_0x3df57a(0x60e)]);for(const _0x14ded3 of(_0x34bd8e=_0x3d8ec3[_0x3df57a(0x711)][0x0][_0x3df57a(0x60e)][_0x3df57a(0x435)])!==null&&_0x34bd8e!==void 0x0?_0x34bd8e:[]){if(_0x59c21d<_0x33dad9&&_0x14ded3['functionCall']){if(!_0x14ded3[_0x3df57a(0x5ff)][_0x3df57a(0x68e)])throw new Error(_0x3df57a(0x5d4));if(!_0x54739c[_0x3df57a(0x399)](_0x14ded3[_0x3df57a(0x5ff)][_0x3df57a(0x68e)]))throw new Error(_0x3df57a(0x4a2)+_0x54739c[_0x3df57a(0x421)]()+_0x3df57a(0x4d3)+_0x14ded3[_0x3df57a(0x5ff)][_0x3df57a(0x68e)]);else{const _0x25538d=yield __await(_0x54739c['get'](_0x14ded3[_0x3df57a(0x5ff)]['name'])[_0x3df57a(0x240)]([_0x14ded3['functionCall']]));_0x3929b1[_0x3df57a(0x417)](..._0x25538d);}}}}}}catch(_0x11aef5){_0xfda2b6={'error':_0x11aef5};}finally{try{if(!_0x3afd89&&!_0x1e8bbe&&(_0x5eda33=_0x312100[_0x3df57a(0x3fd)]))yield __await(_0x5eda33[_0x3df57a(0x49b)](_0x312100));}finally{if(_0xfda2b6)throw _0xfda2b6[_0x3df57a(0x20b)];}}if(_0x3929b1[_0x3df57a(0x3d2)]>0x0){_0x458f74=!![];const _0x241355=new GenerateContentResponse();_0x241355[_0x3df57a(0x711)]=[{'content':{'role':_0x3df57a(0x699),'parts':_0x3929b1}}],yield yield __await(_0x241355);const _0x28d9f7=[];_0x28d9f7['push'](..._0x18add9),_0x28d9f7[_0x3df57a(0x417)]({'role':'user','parts':_0x3929b1});const _0x35fca9=tContents(_0x1634ee['contents'])['concat'](_0x28d9f7);_0x1634ee[_0x3df57a(0x1ea)]=_0x35fca9;}else break;}});}(this,_0x2af5b4,_0x3138fd);}async[a0_0x254c3a(0x23e)](_0x3d983e){const _0x487384=a0_0x254c3a;var _0x351026,_0x27451d,_0x56a620,_0x1eba93;let _0x5b5771,_0x2c9251='',_0x4a4c6e={};if(this[_0x487384(0x6cf)][_0x487384(0x2b9)]()){const _0x56bed5=generateContentParametersToVertex(this[_0x487384(0x6cf)],_0x3d983e);return _0x2c9251=formatMap('{model}:generateContent',_0x56bed5[_0x487384(0x1fb)]),_0x4a4c6e=_0x56bed5[_0x487384(0x32f)],delete _0x56bed5['_url'],delete _0x56bed5[_0x487384(0x32f)],_0x5b5771=this['apiClient']['request']({'path':_0x2c9251,'queryParams':_0x4a4c6e,'body':JSON[_0x487384(0x59a)](_0x56bed5),'httpMethod':_0x487384(0x5f7),'httpOptions':(_0x351026=_0x3d983e[_0x487384(0x563)])===null||_0x351026===void 0x0?void 0x0:_0x351026[_0x487384(0x234)],'abortSignal':(_0x27451d=_0x3d983e[_0x487384(0x563)])===null||_0x27451d===void 0x0?void 0x0:_0x27451d[_0x487384(0x546)]})[_0x487384(0x3a5)](_0x29c3ff=>{const _0x2dfb2a=_0x487384;return _0x29c3ff[_0x2dfb2a(0x288)]()[_0x2dfb2a(0x3a5)](_0x175863=>{const _0x215931=_0x2dfb2a,_0x3a30c5=_0x175863;return _0x3a30c5[_0x215931(0x1ab)]={'headers':_0x29c3ff['headers']},_0x3a30c5;});}),_0x5b5771[_0x487384(0x3a5)](_0x44a699=>{const _0x46ec92=_0x487384,_0x2d57f2=generateContentResponseFromVertex(_0x44a699),_0xb0ebdf=new GenerateContentResponse();return Object[_0x46ec92(0x64e)](_0xb0ebdf,_0x2d57f2),_0xb0ebdf;});}else{const _0x23027f=generateContentParametersToMldev(this['apiClient'],_0x3d983e);return _0x2c9251=formatMap(_0x487384(0x1cd),_0x23027f[_0x487384(0x1fb)]),_0x4a4c6e=_0x23027f[_0x487384(0x32f)],delete _0x23027f[_0x487384(0x1fb)],delete _0x23027f[_0x487384(0x32f)],_0x5b5771=this[_0x487384(0x6cf)][_0x487384(0x610)]({'path':_0x2c9251,'queryParams':_0x4a4c6e,'body':JSON[_0x487384(0x59a)](_0x23027f),'httpMethod':'POST','httpOptions':(_0x56a620=_0x3d983e['config'])===null||_0x56a620===void 0x0?void 0x0:_0x56a620[_0x487384(0x234)],'abortSignal':(_0x1eba93=_0x3d983e[_0x487384(0x563)])===null||_0x1eba93===void 0x0?void 0x0:_0x1eba93['abortSignal']})['then'](_0x467087=>{const _0xa3c967=_0x487384;return _0x467087['json']()[_0xa3c967(0x3a5)](_0xb5b0b6=>{const _0x28a3f0=_0xa3c967,_0x1017be=_0xb5b0b6;return _0x1017be[_0x28a3f0(0x1ab)]={'headers':_0x467087['headers']},_0x1017be;});}),_0x5b5771[_0x487384(0x3a5)](_0x66836d=>{const _0xa30dce=_0x487384,_0x2ef0cf=generateContentResponseFromMldev(_0x66836d),_0x43ca09=new GenerateContentResponse();return Object[_0xa30dce(0x64e)](_0x43ca09,_0x2ef0cf),_0x43ca09;});}}async[a0_0x254c3a(0x4b5)](_0x49029d){const _0x343369=a0_0x254c3a;var _0x400d8f,_0x35bb23,_0x1f259f,_0x472c0d;let _0x34b44c,_0x5f4785='',_0x45b1cc={};if(this[_0x343369(0x6cf)][_0x343369(0x2b9)]()){const _0x543559=generateContentParametersToVertex(this[_0x343369(0x6cf)],_0x49029d);_0x5f4785=formatMap(_0x343369(0x3d6),_0x543559[_0x343369(0x1fb)]),_0x45b1cc=_0x543559[_0x343369(0x32f)],delete _0x543559['_url'],delete _0x543559[_0x343369(0x32f)];const _0xa0a5c6=this[_0x343369(0x6cf)];return _0x34b44c=_0xa0a5c6[_0x343369(0x4d1)]({'path':_0x5f4785,'queryParams':_0x45b1cc,'body':JSON[_0x343369(0x59a)](_0x543559),'httpMethod':'POST','httpOptions':(_0x400d8f=_0x49029d['config'])===null||_0x400d8f===void 0x0?void 0x0:_0x400d8f['httpOptions'],'abortSignal':(_0x35bb23=_0x49029d[_0x343369(0x563)])===null||_0x35bb23===void 0x0?void 0x0:_0x35bb23[_0x343369(0x546)]}),_0x34b44c[_0x343369(0x3a5)](function(_0x11ed3a){return __asyncGenerator(this,arguments,function*(){const _0x2fee2d=a0_0x3530;var _0x57d177,_0xb60551,_0x1e1804,_0x4ab25e;try{for(var _0x5700ea=!![],_0x3c4433=__asyncValues(_0x11ed3a),_0x12ca0c;_0x12ca0c=yield __await(_0x3c4433[_0x2fee2d(0x33e)]()),_0x57d177=_0x12ca0c[_0x2fee2d(0x183)],!_0x57d177;_0x5700ea=!![]){_0x4ab25e=_0x12ca0c['value'],_0x5700ea=![];const _0xbf45cd=_0x4ab25e,_0x37d765=generateContentResponseFromVertex(yield __await(_0xbf45cd['json']()),_0x49029d);_0x37d765[_0x2fee2d(0x1ab)]={'headers':_0xbf45cd[_0x2fee2d(0x4e8)]};const _0x435c27=new GenerateContentResponse();Object['assign'](_0x435c27,_0x37d765),yield yield __await(_0x435c27);}}catch(_0x7939a0){_0xb60551={'error':_0x7939a0};}finally{try{if(!_0x5700ea&&!_0x57d177&&(_0x1e1804=_0x3c4433[_0x2fee2d(0x3fd)]))yield __await(_0x1e1804[_0x2fee2d(0x49b)](_0x3c4433));}finally{if(_0xb60551)throw _0xb60551['error'];}}});});}else{const _0xf090e2=generateContentParametersToMldev(this[_0x343369(0x6cf)],_0x49029d);_0x5f4785=formatMap(_0x343369(0x3d6),_0xf090e2[_0x343369(0x1fb)]),_0x45b1cc=_0xf090e2[_0x343369(0x32f)],delete _0xf090e2[_0x343369(0x1fb)],delete _0xf090e2[_0x343369(0x32f)];const _0x3eb053=this['apiClient'];return _0x34b44c=_0x3eb053[_0x343369(0x4d1)]({'path':_0x5f4785,'queryParams':_0x45b1cc,'body':JSON[_0x343369(0x59a)](_0xf090e2),'httpMethod':'POST','httpOptions':(_0x1f259f=_0x49029d[_0x343369(0x563)])===null||_0x1f259f===void 0x0?void 0x0:_0x1f259f[_0x343369(0x234)],'abortSignal':(_0x472c0d=_0x49029d[_0x343369(0x563)])===null||_0x472c0d===void 0x0?void 0x0:_0x472c0d[_0x343369(0x546)]}),_0x34b44c[_0x343369(0x3a5)](function(_0x2f92c9){return __asyncGenerator(this,arguments,function*(){const _0x21f123=a0_0x3530;var _0x1ea019,_0x496c04,_0x4b0ff7,_0x317875;try{for(var _0x107dcb=!![],_0x5dd17f=__asyncValues(_0x2f92c9),_0x4c96f0;_0x4c96f0=yield __await(_0x5dd17f[_0x21f123(0x33e)]()),_0x1ea019=_0x4c96f0[_0x21f123(0x183)],!_0x1ea019;_0x107dcb=!![]){_0x317875=_0x4c96f0[_0x21f123(0x484)],_0x107dcb=![];const _0xca53fc=_0x317875,_0x4d46c1=generateContentResponseFromMldev(yield __await(_0xca53fc['json']()),_0x49029d);_0x4d46c1[_0x21f123(0x1ab)]={'headers':_0xca53fc[_0x21f123(0x4e8)]};const _0x5cd34f=new GenerateContentResponse();Object[_0x21f123(0x64e)](_0x5cd34f,_0x4d46c1),yield yield __await(_0x5cd34f);}}catch(_0x5f995a){_0x496c04={'error':_0x5f995a};}finally{try{if(!_0x107dcb&&!_0x1ea019&&(_0x4b0ff7=_0x5dd17f[_0x21f123(0x3fd)]))yield __await(_0x4b0ff7[_0x21f123(0x49b)](_0x5dd17f));}finally{if(_0x496c04)throw _0x496c04[_0x21f123(0x20b)];}}});});}}async[a0_0x254c3a(0x21a)](_0x2680ca){const _0x572883=a0_0x254c3a;var _0x134864,_0x5978a2,_0xf84a88,_0x404460;let _0x66fddf,_0x49c8ba='',_0x4e5080={};if(this['apiClient'][_0x572883(0x2b9)]()){const _0x4ce16d=embedContentParametersToVertex(this[_0x572883(0x6cf)],_0x2680ca);return _0x49c8ba=formatMap(_0x572883(0x31f),_0x4ce16d[_0x572883(0x1fb)]),_0x4e5080=_0x4ce16d[_0x572883(0x32f)],delete _0x4ce16d[_0x572883(0x1fb)],delete _0x4ce16d['_query'],_0x66fddf=this[_0x572883(0x6cf)]['request']({'path':_0x49c8ba,'queryParams':_0x4e5080,'body':JSON[_0x572883(0x59a)](_0x4ce16d),'httpMethod':_0x572883(0x5f7),'httpOptions':(_0x134864=_0x2680ca[_0x572883(0x563)])===null||_0x134864===void 0x0?void 0x0:_0x134864['httpOptions'],'abortSignal':(_0x5978a2=_0x2680ca[_0x572883(0x563)])===null||_0x5978a2===void 0x0?void 0x0:_0x5978a2[_0x572883(0x546)]})[_0x572883(0x3a5)](_0x33311f=>{const _0x4ed2fb=_0x572883;return _0x33311f[_0x4ed2fb(0x288)]()[_0x4ed2fb(0x3a5)](_0x1cc0e5=>{const _0x10e4bc=_0x1cc0e5;return _0x10e4bc['sdkHttpResponse']={'headers':_0x33311f['headers']},_0x10e4bc;});}),_0x66fddf[_0x572883(0x3a5)](_0x2141b4=>{const _0xcf3cd0=_0x572883,_0x47103f=embedContentResponseFromVertex(_0x2141b4),_0x5e98e0=new EmbedContentResponse();return Object[_0xcf3cd0(0x64e)](_0x5e98e0,_0x47103f),_0x5e98e0;});}else{const _0x19aab1=embedContentParametersToMldev(this['apiClient'],_0x2680ca);return _0x49c8ba=formatMap(_0x572883(0x5eb),_0x19aab1[_0x572883(0x1fb)]),_0x4e5080=_0x19aab1[_0x572883(0x32f)],delete _0x19aab1[_0x572883(0x1fb)],delete _0x19aab1[_0x572883(0x32f)],_0x66fddf=this['apiClient'][_0x572883(0x610)]({'path':_0x49c8ba,'queryParams':_0x4e5080,'body':JSON[_0x572883(0x59a)](_0x19aab1),'httpMethod':_0x572883(0x5f7),'httpOptions':(_0xf84a88=_0x2680ca[_0x572883(0x563)])===null||_0xf84a88===void 0x0?void 0x0:_0xf84a88[_0x572883(0x234)],'abortSignal':(_0x404460=_0x2680ca[_0x572883(0x563)])===null||_0x404460===void 0x0?void 0x0:_0x404460[_0x572883(0x546)]})[_0x572883(0x3a5)](_0x3998a7=>{const _0x1a7b58=_0x572883;return _0x3998a7[_0x1a7b58(0x288)]()[_0x1a7b58(0x3a5)](_0x2cbd86=>{const _0x112269=_0x1a7b58,_0x5ccfc5=_0x2cbd86;return _0x5ccfc5[_0x112269(0x1ab)]={'headers':_0x3998a7[_0x112269(0x4e8)]},_0x5ccfc5;});}),_0x66fddf[_0x572883(0x3a5)](_0x3de9da=>{const _0x1c549c=_0x572883,_0x1ab3ee=embedContentResponseFromMldev(_0x3de9da),_0x38658c=new EmbedContentResponse();return Object[_0x1c549c(0x64e)](_0x38658c,_0x1ab3ee),_0x38658c;});}}async[a0_0x254c3a(0x5e0)](_0x4b23ec){const _0x4eae86=a0_0x254c3a;var _0x3a0144,_0x3b53c8,_0x2c92ac,_0x467806;let _0x325689,_0x49b893='',_0x378e17={};if(this[_0x4eae86(0x6cf)][_0x4eae86(0x2b9)]()){const _0x2b7b1e=generateImagesParametersToVertex(this[_0x4eae86(0x6cf)],_0x4b23ec);return _0x49b893=formatMap(_0x4eae86(0x31f),_0x2b7b1e[_0x4eae86(0x1fb)]),_0x378e17=_0x2b7b1e[_0x4eae86(0x32f)],delete _0x2b7b1e['_url'],delete _0x2b7b1e[_0x4eae86(0x32f)],_0x325689=this['apiClient'][_0x4eae86(0x610)]({'path':_0x49b893,'queryParams':_0x378e17,'body':JSON['stringify'](_0x2b7b1e),'httpMethod':_0x4eae86(0x5f7),'httpOptions':(_0x3a0144=_0x4b23ec[_0x4eae86(0x563)])===null||_0x3a0144===void 0x0?void 0x0:_0x3a0144['httpOptions'],'abortSignal':(_0x3b53c8=_0x4b23ec[_0x4eae86(0x563)])===null||_0x3b53c8===void 0x0?void 0x0:_0x3b53c8[_0x4eae86(0x546)]})[_0x4eae86(0x3a5)](_0x48cc73=>{return _0x48cc73['json']()['then'](_0x1bb47a=>{const _0x616e54=a0_0x3530,_0x48d791=_0x1bb47a;return _0x48d791['sdkHttpResponse']={'headers':_0x48cc73[_0x616e54(0x4e8)]},_0x48d791;});}),_0x325689[_0x4eae86(0x3a5)](_0x59a358=>{const _0x2e958c=_0x4eae86,_0x4fea59=generateImagesResponseFromVertex(_0x59a358),_0x203b6f=new GenerateImagesResponse();return Object[_0x2e958c(0x64e)](_0x203b6f,_0x4fea59),_0x203b6f;});}else{const _0x5018cf=generateImagesParametersToMldev(this[_0x4eae86(0x6cf)],_0x4b23ec);return _0x49b893=formatMap('{model}:predict',_0x5018cf[_0x4eae86(0x1fb)]),_0x378e17=_0x5018cf['_query'],delete _0x5018cf[_0x4eae86(0x1fb)],delete _0x5018cf[_0x4eae86(0x32f)],_0x325689=this[_0x4eae86(0x6cf)][_0x4eae86(0x610)]({'path':_0x49b893,'queryParams':_0x378e17,'body':JSON[_0x4eae86(0x59a)](_0x5018cf),'httpMethod':'POST','httpOptions':(_0x2c92ac=_0x4b23ec[_0x4eae86(0x563)])===null||_0x2c92ac===void 0x0?void 0x0:_0x2c92ac['httpOptions'],'abortSignal':(_0x467806=_0x4b23ec['config'])===null||_0x467806===void 0x0?void 0x0:_0x467806[_0x4eae86(0x546)]})[_0x4eae86(0x3a5)](_0x4dd588=>{const _0x1dfb32=_0x4eae86;return _0x4dd588[_0x1dfb32(0x288)]()[_0x1dfb32(0x3a5)](_0x5631e2=>{const _0x478ecf=_0x1dfb32,_0x39edd3=_0x5631e2;return _0x39edd3[_0x478ecf(0x1ab)]={'headers':_0x4dd588['headers']},_0x39edd3;});}),_0x325689[_0x4eae86(0x3a5)](_0x2e4f23=>{const _0x32b8f4=_0x4eae86,_0x6c79c=generateImagesResponseFromMldev(_0x2e4f23),_0x4f866=new GenerateImagesResponse();return Object[_0x32b8f4(0x64e)](_0x4f866,_0x6c79c),_0x4f866;});}}async[a0_0x254c3a(0x3e5)](_0x57cc11){const _0x49dcea=a0_0x254c3a;var _0x19ba08,_0x126770;let _0x2e3121,_0x20ed6b='',_0x1f9310={};if(this['apiClient'][_0x49dcea(0x2b9)]()){const _0x942f2a=editImageParametersInternalToVertex(this[_0x49dcea(0x6cf)],_0x57cc11);return _0x20ed6b=formatMap('{model}:predict',_0x942f2a[_0x49dcea(0x1fb)]),_0x1f9310=_0x942f2a[_0x49dcea(0x32f)],delete _0x942f2a[_0x49dcea(0x1fb)],delete _0x942f2a[_0x49dcea(0x32f)],_0x2e3121=this[_0x49dcea(0x6cf)][_0x49dcea(0x610)]({'path':_0x20ed6b,'queryParams':_0x1f9310,'body':JSON[_0x49dcea(0x59a)](_0x942f2a),'httpMethod':_0x49dcea(0x5f7),'httpOptions':(_0x19ba08=_0x57cc11[_0x49dcea(0x563)])===null||_0x19ba08===void 0x0?void 0x0:_0x19ba08['httpOptions'],'abortSignal':(_0x126770=_0x57cc11['config'])===null||_0x126770===void 0x0?void 0x0:_0x126770['abortSignal']})[_0x49dcea(0x3a5)](_0x8d4869=>{return _0x8d4869['json']()['then'](_0x20c230=>{const _0xc2768=a0_0x3530,_0x32f4ca=_0x20c230;return _0x32f4ca[_0xc2768(0x1ab)]={'headers':_0x8d4869['headers']},_0x32f4ca;});}),_0x2e3121[_0x49dcea(0x3a5)](_0x487fbd=>{const _0x54f97a=_0x49dcea,_0x31c3e7=editImageResponseFromVertex(_0x487fbd),_0x4fe76b=new EditImageResponse();return Object[_0x54f97a(0x64e)](_0x4fe76b,_0x31c3e7),_0x4fe76b;});}else throw new Error(_0x49dcea(0x53f));}async['upscaleImageInternal'](_0x4f3ca7){const _0x35435b=a0_0x254c3a;var _0x3d1abc,_0x3a88b6;let _0x2e6af2,_0x230ae4='',_0x5985c8={};if(this[_0x35435b(0x6cf)][_0x35435b(0x2b9)]()){const _0x4a41c0=upscaleImageAPIParametersInternalToVertex(this[_0x35435b(0x6cf)],_0x4f3ca7);return _0x230ae4=formatMap(_0x35435b(0x31f),_0x4a41c0[_0x35435b(0x1fb)]),_0x5985c8=_0x4a41c0[_0x35435b(0x32f)],delete _0x4a41c0[_0x35435b(0x1fb)],delete _0x4a41c0['_query'],_0x2e6af2=this[_0x35435b(0x6cf)][_0x35435b(0x610)]({'path':_0x230ae4,'queryParams':_0x5985c8,'body':JSON[_0x35435b(0x59a)](_0x4a41c0),'httpMethod':_0x35435b(0x5f7),'httpOptions':(_0x3d1abc=_0x4f3ca7[_0x35435b(0x563)])===null||_0x3d1abc===void 0x0?void 0x0:_0x3d1abc['httpOptions'],'abortSignal':(_0x3a88b6=_0x4f3ca7[_0x35435b(0x563)])===null||_0x3a88b6===void 0x0?void 0x0:_0x3a88b6[_0x35435b(0x546)]})[_0x35435b(0x3a5)](_0x544759=>{const _0x269aa6=_0x35435b;return _0x544759[_0x269aa6(0x288)]()[_0x269aa6(0x3a5)](_0x690b2f=>{const _0xe2def=_0x269aa6,_0x5d8f21=_0x690b2f;return _0x5d8f21['sdkHttpResponse']={'headers':_0x544759[_0xe2def(0x4e8)]},_0x5d8f21;});}),_0x2e6af2[_0x35435b(0x3a5)](_0x523441=>{const _0x49a0b7=upscaleImageResponseFromVertex(_0x523441),_0x358f83=new UpscaleImageResponse();return Object['assign'](_0x358f83,_0x49a0b7),_0x358f83;});}else throw new Error(_0x35435b(0x53f));}async[a0_0x254c3a(0x1c0)](_0x574eb1){const _0x486119=a0_0x254c3a;var _0x3f1d35,_0x40a6e2;let _0x5a104a,_0x551eaf='',_0x5550ce={};if(this[_0x486119(0x6cf)]['isVertexAI']()){const _0x455114=recontextImageParametersToVertex(this[_0x486119(0x6cf)],_0x574eb1);return _0x551eaf=formatMap(_0x486119(0x31f),_0x455114['_url']),_0x5550ce=_0x455114[_0x486119(0x32f)],delete _0x455114[_0x486119(0x1fb)],delete _0x455114[_0x486119(0x32f)],_0x5a104a=this[_0x486119(0x6cf)][_0x486119(0x610)]({'path':_0x551eaf,'queryParams':_0x5550ce,'body':JSON[_0x486119(0x59a)](_0x455114),'httpMethod':_0x486119(0x5f7),'httpOptions':(_0x3f1d35=_0x574eb1[_0x486119(0x563)])===null||_0x3f1d35===void 0x0?void 0x0:_0x3f1d35[_0x486119(0x234)],'abortSignal':(_0x40a6e2=_0x574eb1[_0x486119(0x563)])===null||_0x40a6e2===void 0x0?void 0x0:_0x40a6e2[_0x486119(0x546)]})[_0x486119(0x3a5)](_0x2da414=>{return _0x2da414['json']();}),_0x5a104a[_0x486119(0x3a5)](_0x590311=>{const _0x9751c6=_0x486119,_0x46eea1=recontextImageResponseFromVertex(_0x590311),_0x31ac9c=new RecontextImageResponse();return Object[_0x9751c6(0x64e)](_0x31ac9c,_0x46eea1),_0x31ac9c;});}else throw new Error(_0x486119(0x53f));}async['segmentImage'](_0x39653e){const _0xe9f363=a0_0x254c3a;var _0x1d09ac,_0x5977d6;let _0x4df4ac,_0x40e435='',_0x22634d={};if(this[_0xe9f363(0x6cf)][_0xe9f363(0x2b9)]()){const _0xf1ad9=segmentImageParametersToVertex(this[_0xe9f363(0x6cf)],_0x39653e);return _0x40e435=formatMap(_0xe9f363(0x31f),_0xf1ad9[_0xe9f363(0x1fb)]),_0x22634d=_0xf1ad9[_0xe9f363(0x32f)],delete _0xf1ad9[_0xe9f363(0x1fb)],delete _0xf1ad9[_0xe9f363(0x32f)],_0x4df4ac=this[_0xe9f363(0x6cf)][_0xe9f363(0x610)]({'path':_0x40e435,'queryParams':_0x22634d,'body':JSON[_0xe9f363(0x59a)](_0xf1ad9),'httpMethod':_0xe9f363(0x5f7),'httpOptions':(_0x1d09ac=_0x39653e[_0xe9f363(0x563)])===null||_0x1d09ac===void 0x0?void 0x0:_0x1d09ac['httpOptions'],'abortSignal':(_0x5977d6=_0x39653e[_0xe9f363(0x563)])===null||_0x5977d6===void 0x0?void 0x0:_0x5977d6[_0xe9f363(0x546)]})['then'](_0x461571=>{const _0x2577a6=_0xe9f363;return _0x461571[_0x2577a6(0x288)]();}),_0x4df4ac[_0xe9f363(0x3a5)](_0xdff5d6=>{const _0x50b5d3=_0xe9f363,_0x582634=segmentImageResponseFromVertex(_0xdff5d6),_0x38745c=new SegmentImageResponse();return Object[_0x50b5d3(0x64e)](_0x38745c,_0x582634),_0x38745c;});}else throw new Error(_0xe9f363(0x53f));}async[a0_0x254c3a(0x296)](_0x47ba6f){const _0x552bc3=a0_0x254c3a;var _0x417dce,_0x43712f,_0x29179d,_0x4475be;let _0x1b6de6,_0x2f0ea8='',_0x6f273a={};if(this[_0x552bc3(0x6cf)][_0x552bc3(0x2b9)]()){const _0x4502ba=getModelParametersToVertex(this[_0x552bc3(0x6cf)],_0x47ba6f);return _0x2f0ea8=formatMap(_0x552bc3(0x188),_0x4502ba[_0x552bc3(0x1fb)]),_0x6f273a=_0x4502ba[_0x552bc3(0x32f)],delete _0x4502ba[_0x552bc3(0x1fb)],delete _0x4502ba[_0x552bc3(0x32f)],_0x1b6de6=this[_0x552bc3(0x6cf)][_0x552bc3(0x610)]({'path':_0x2f0ea8,'queryParams':_0x6f273a,'body':JSON[_0x552bc3(0x59a)](_0x4502ba),'httpMethod':_0x552bc3(0x525),'httpOptions':(_0x417dce=_0x47ba6f[_0x552bc3(0x563)])===null||_0x417dce===void 0x0?void 0x0:_0x417dce[_0x552bc3(0x234)],'abortSignal':(_0x43712f=_0x47ba6f['config'])===null||_0x43712f===void 0x0?void 0x0:_0x43712f[_0x552bc3(0x546)]})['then'](_0x309ae4=>{const _0x829c3f=_0x552bc3;return _0x309ae4[_0x829c3f(0x288)]();}),_0x1b6de6[_0x552bc3(0x3a5)](_0x3f53e3=>{const _0x7d9216=modelFromVertex(_0x3f53e3);return _0x7d9216;});}else{const _0x1bd1fb=getModelParametersToMldev(this[_0x552bc3(0x6cf)],_0x47ba6f);return _0x2f0ea8=formatMap(_0x552bc3(0x188),_0x1bd1fb[_0x552bc3(0x1fb)]),_0x6f273a=_0x1bd1fb[_0x552bc3(0x32f)],delete _0x1bd1fb[_0x552bc3(0x1fb)],delete _0x1bd1fb[_0x552bc3(0x32f)],_0x1b6de6=this['apiClient'][_0x552bc3(0x610)]({'path':_0x2f0ea8,'queryParams':_0x6f273a,'body':JSON[_0x552bc3(0x59a)](_0x1bd1fb),'httpMethod':'GET','httpOptions':(_0x29179d=_0x47ba6f[_0x552bc3(0x563)])===null||_0x29179d===void 0x0?void 0x0:_0x29179d[_0x552bc3(0x234)],'abortSignal':(_0x4475be=_0x47ba6f['config'])===null||_0x4475be===void 0x0?void 0x0:_0x4475be[_0x552bc3(0x546)]})[_0x552bc3(0x3a5)](_0x2a7d05=>{const _0x266406=_0x552bc3;return _0x2a7d05[_0x266406(0x288)]();}),_0x1b6de6[_0x552bc3(0x3a5)](_0x1e4ecb=>{const _0x9e9695=modelFromMldev(_0x1e4ecb);return _0x9e9695;});}}async[a0_0x254c3a(0x475)](_0x34691b){const _0x533173=a0_0x254c3a;var _0xdd8e56,_0x169875,_0x40c0b5,_0x5984ab;let _0x741a68,_0x5a35d2='',_0x3b3000={};if(this[_0x533173(0x6cf)][_0x533173(0x2b9)]()){const _0x1789be=listModelsParametersToVertex(this[_0x533173(0x6cf)],_0x34691b);return _0x5a35d2=formatMap(_0x533173(0x277),_0x1789be[_0x533173(0x1fb)]),_0x3b3000=_0x1789be[_0x533173(0x32f)],delete _0x1789be[_0x533173(0x1fb)],delete _0x1789be[_0x533173(0x32f)],_0x741a68=this[_0x533173(0x6cf)]['request']({'path':_0x5a35d2,'queryParams':_0x3b3000,'body':JSON['stringify'](_0x1789be),'httpMethod':_0x533173(0x525),'httpOptions':(_0xdd8e56=_0x34691b[_0x533173(0x563)])===null||_0xdd8e56===void 0x0?void 0x0:_0xdd8e56[_0x533173(0x234)],'abortSignal':(_0x169875=_0x34691b[_0x533173(0x563)])===null||_0x169875===void 0x0?void 0x0:_0x169875[_0x533173(0x546)]})[_0x533173(0x3a5)](_0x3589fe=>{const _0x2df271=_0x533173;return _0x3589fe[_0x2df271(0x288)]()['then'](_0x22193b=>{const _0x241022=_0x22193b;return _0x241022['sdkHttpResponse']={'headers':_0x3589fe['headers']},_0x241022;});}),_0x741a68[_0x533173(0x3a5)](_0x23c619=>{const _0x212b64=_0x533173,_0x25a0d2=listModelsResponseFromVertex(_0x23c619),_0x3842e3=new ListModelsResponse();return Object[_0x212b64(0x64e)](_0x3842e3,_0x25a0d2),_0x3842e3;});}else{const _0x22eef2=listModelsParametersToMldev(this['apiClient'],_0x34691b);return _0x5a35d2=formatMap(_0x533173(0x277),_0x22eef2[_0x533173(0x1fb)]),_0x3b3000=_0x22eef2[_0x533173(0x32f)],delete _0x22eef2[_0x533173(0x1fb)],delete _0x22eef2[_0x533173(0x32f)],_0x741a68=this['apiClient'][_0x533173(0x610)]({'path':_0x5a35d2,'queryParams':_0x3b3000,'body':JSON[_0x533173(0x59a)](_0x22eef2),'httpMethod':_0x533173(0x525),'httpOptions':(_0x40c0b5=_0x34691b[_0x533173(0x563)])===null||_0x40c0b5===void 0x0?void 0x0:_0x40c0b5['httpOptions'],'abortSignal':(_0x5984ab=_0x34691b[_0x533173(0x563)])===null||_0x5984ab===void 0x0?void 0x0:_0x5984ab[_0x533173(0x546)]})[_0x533173(0x3a5)](_0x304e40=>{const _0x517bf3=_0x533173;return _0x304e40[_0x517bf3(0x288)]()[_0x517bf3(0x3a5)](_0x494be9=>{const _0x3c51e5=_0x517bf3,_0x2605bb=_0x494be9;return _0x2605bb[_0x3c51e5(0x1ab)]={'headers':_0x304e40[_0x3c51e5(0x4e8)]},_0x2605bb;});}),_0x741a68[_0x533173(0x3a5)](_0x3d8291=>{const _0x2fec43=listModelsResponseFromMldev(_0x3d8291),_0x267558=new ListModelsResponse();return Object['assign'](_0x267558,_0x2fec43),_0x267558;});}}async[a0_0x254c3a(0x6cd)](_0x44444d){const _0x5bb552=a0_0x254c3a;var _0x583eb5,_0x4271cf,_0x45758d,_0x48d06a;let _0x2cd661,_0x7ac101='',_0x3404e9={};if(this[_0x5bb552(0x6cf)][_0x5bb552(0x2b9)]()){const _0x52ce1c=updateModelParametersToVertex(this[_0x5bb552(0x6cf)],_0x44444d);return _0x7ac101=formatMap(_0x5bb552(0x384),_0x52ce1c[_0x5bb552(0x1fb)]),_0x3404e9=_0x52ce1c[_0x5bb552(0x32f)],delete _0x52ce1c['_url'],delete _0x52ce1c[_0x5bb552(0x32f)],_0x2cd661=this[_0x5bb552(0x6cf)]['request']({'path':_0x7ac101,'queryParams':_0x3404e9,'body':JSON[_0x5bb552(0x59a)](_0x52ce1c),'httpMethod':'PATCH','httpOptions':(_0x583eb5=_0x44444d[_0x5bb552(0x563)])===null||_0x583eb5===void 0x0?void 0x0:_0x583eb5[_0x5bb552(0x234)],'abortSignal':(_0x4271cf=_0x44444d[_0x5bb552(0x563)])===null||_0x4271cf===void 0x0?void 0x0:_0x4271cf[_0x5bb552(0x546)]})['then'](_0x232bf1=>{const _0x3b877d=_0x5bb552;return _0x232bf1[_0x3b877d(0x288)]();}),_0x2cd661[_0x5bb552(0x3a5)](_0x59326c=>{const _0x263c35=modelFromVertex(_0x59326c);return _0x263c35;});}else{const _0x51b2af=updateModelParametersToMldev(this['apiClient'],_0x44444d);return _0x7ac101=formatMap(_0x5bb552(0x188),_0x51b2af[_0x5bb552(0x1fb)]),_0x3404e9=_0x51b2af[_0x5bb552(0x32f)],delete _0x51b2af['_url'],delete _0x51b2af[_0x5bb552(0x32f)],_0x2cd661=this[_0x5bb552(0x6cf)][_0x5bb552(0x610)]({'path':_0x7ac101,'queryParams':_0x3404e9,'body':JSON[_0x5bb552(0x59a)](_0x51b2af),'httpMethod':'PATCH','httpOptions':(_0x45758d=_0x44444d[_0x5bb552(0x563)])===null||_0x45758d===void 0x0?void 0x0:_0x45758d[_0x5bb552(0x234)],'abortSignal':(_0x48d06a=_0x44444d[_0x5bb552(0x563)])===null||_0x48d06a===void 0x0?void 0x0:_0x48d06a[_0x5bb552(0x546)]})[_0x5bb552(0x3a5)](_0x5b471f=>{const _0x37a331=_0x5bb552;return _0x5b471f[_0x37a331(0x288)]();}),_0x2cd661[_0x5bb552(0x3a5)](_0x4b35e9=>{const _0x27e479=modelFromMldev(_0x4b35e9);return _0x27e479;});}}async[a0_0x254c3a(0x625)](_0x478e3e){const _0x67c518=a0_0x254c3a;var _0x22bf74,_0x3ecd1c,_0x1d3d42,_0xf7fb62;let _0x5503fd,_0x4f1f4c='',_0x10d3b={};if(this[_0x67c518(0x6cf)][_0x67c518(0x2b9)]()){const _0x21eb30=deleteModelParametersToVertex(this[_0x67c518(0x6cf)],_0x478e3e);return _0x4f1f4c=formatMap('{name}',_0x21eb30['_url']),_0x10d3b=_0x21eb30['_query'],delete _0x21eb30[_0x67c518(0x1fb)],delete _0x21eb30['_query'],_0x5503fd=this[_0x67c518(0x6cf)][_0x67c518(0x610)]({'path':_0x4f1f4c,'queryParams':_0x10d3b,'body':JSON[_0x67c518(0x59a)](_0x21eb30),'httpMethod':'DELETE','httpOptions':(_0x22bf74=_0x478e3e[_0x67c518(0x563)])===null||_0x22bf74===void 0x0?void 0x0:_0x22bf74[_0x67c518(0x234)],'abortSignal':(_0x3ecd1c=_0x478e3e[_0x67c518(0x563)])===null||_0x3ecd1c===void 0x0?void 0x0:_0x3ecd1c['abortSignal']})['then'](_0xcc104a=>{const _0x572b2e=_0x67c518;return _0xcc104a[_0x572b2e(0x288)]()['then'](_0x210fe4=>{const _0x102980=_0x572b2e,_0x1dad53=_0x210fe4;return _0x1dad53[_0x102980(0x1ab)]={'headers':_0xcc104a[_0x102980(0x4e8)]},_0x1dad53;});}),_0x5503fd[_0x67c518(0x3a5)](_0x3e1e3d=>{const _0x4615f8=_0x67c518,_0x47b647=deleteModelResponseFromVertex(_0x3e1e3d),_0x3babdd=new DeleteModelResponse();return Object[_0x4615f8(0x64e)](_0x3babdd,_0x47b647),_0x3babdd;});}else{const _0x1b6e81=deleteModelParametersToMldev(this[_0x67c518(0x6cf)],_0x478e3e);return _0x4f1f4c=formatMap(_0x67c518(0x188),_0x1b6e81[_0x67c518(0x1fb)]),_0x10d3b=_0x1b6e81[_0x67c518(0x32f)],delete _0x1b6e81[_0x67c518(0x1fb)],delete _0x1b6e81[_0x67c518(0x32f)],_0x5503fd=this[_0x67c518(0x6cf)][_0x67c518(0x610)]({'path':_0x4f1f4c,'queryParams':_0x10d3b,'body':JSON[_0x67c518(0x59a)](_0x1b6e81),'httpMethod':_0x67c518(0x27a),'httpOptions':(_0x1d3d42=_0x478e3e[_0x67c518(0x563)])===null||_0x1d3d42===void 0x0?void 0x0:_0x1d3d42[_0x67c518(0x234)],'abortSignal':(_0xf7fb62=_0x478e3e[_0x67c518(0x563)])===null||_0xf7fb62===void 0x0?void 0x0:_0xf7fb62[_0x67c518(0x546)]})['then'](_0x162aff=>{const _0x3d99ff=_0x67c518;return _0x162aff[_0x3d99ff(0x288)]()[_0x3d99ff(0x3a5)](_0x384627=>{const _0x5442a8=_0x3d99ff,_0x2995f9=_0x384627;return _0x2995f9[_0x5442a8(0x1ab)]={'headers':_0x162aff[_0x5442a8(0x4e8)]},_0x2995f9;});}),_0x5503fd[_0x67c518(0x3a5)](_0xcfeeb8=>{const _0x3dd438=deleteModelResponseFromMldev(_0xcfeeb8),_0x1b18b9=new DeleteModelResponse();return Object['assign'](_0x1b18b9,_0x3dd438),_0x1b18b9;});}}async['countTokens'](_0x222404){const _0x323612=a0_0x254c3a;var _0x4e9d29,_0x14f27f,_0x1d6dd7,_0x2d0170;let _0x4e7290,_0xd3590d='',_0x7b09bc={};if(this[_0x323612(0x6cf)][_0x323612(0x2b9)]()){const _0x3569bd=countTokensParametersToVertex(this['apiClient'],_0x222404);return _0xd3590d=formatMap('{model}:countTokens',_0x3569bd[_0x323612(0x1fb)]),_0x7b09bc=_0x3569bd[_0x323612(0x32f)],delete _0x3569bd[_0x323612(0x1fb)],delete _0x3569bd[_0x323612(0x32f)],_0x4e7290=this[_0x323612(0x6cf)][_0x323612(0x610)]({'path':_0xd3590d,'queryParams':_0x7b09bc,'body':JSON['stringify'](_0x3569bd),'httpMethod':_0x323612(0x5f7),'httpOptions':(_0x4e9d29=_0x222404[_0x323612(0x563)])===null||_0x4e9d29===void 0x0?void 0x0:_0x4e9d29[_0x323612(0x234)],'abortSignal':(_0x14f27f=_0x222404[_0x323612(0x563)])===null||_0x14f27f===void 0x0?void 0x0:_0x14f27f[_0x323612(0x546)]})[_0x323612(0x3a5)](_0x9ac642=>{const _0xb360c8=_0x323612;return _0x9ac642[_0xb360c8(0x288)]()[_0xb360c8(0x3a5)](_0x1a0e58=>{const _0x2119a3=_0xb360c8,_0x10393a=_0x1a0e58;return _0x10393a[_0x2119a3(0x1ab)]={'headers':_0x9ac642['headers']},_0x10393a;});}),_0x4e7290[_0x323612(0x3a5)](_0x26bcaa=>{const _0x24cba0=_0x323612,_0x39b201=countTokensResponseFromVertex(_0x26bcaa),_0x16ad7d=new CountTokensResponse();return Object[_0x24cba0(0x64e)](_0x16ad7d,_0x39b201),_0x16ad7d;});}else{const _0x4c8659=countTokensParametersToMldev(this[_0x323612(0x6cf)],_0x222404);return _0xd3590d=formatMap(_0x323612(0x36d),_0x4c8659[_0x323612(0x1fb)]),_0x7b09bc=_0x4c8659[_0x323612(0x32f)],delete _0x4c8659[_0x323612(0x1fb)],delete _0x4c8659[_0x323612(0x32f)],_0x4e7290=this[_0x323612(0x6cf)][_0x323612(0x610)]({'path':_0xd3590d,'queryParams':_0x7b09bc,'body':JSON[_0x323612(0x59a)](_0x4c8659),'httpMethod':_0x323612(0x5f7),'httpOptions':(_0x1d6dd7=_0x222404['config'])===null||_0x1d6dd7===void 0x0?void 0x0:_0x1d6dd7[_0x323612(0x234)],'abortSignal':(_0x2d0170=_0x222404[_0x323612(0x563)])===null||_0x2d0170===void 0x0?void 0x0:_0x2d0170['abortSignal']})[_0x323612(0x3a5)](_0xc51a8b=>{const _0x242259=_0x323612;return _0xc51a8b['json']()[_0x242259(0x3a5)](_0x16c600=>{const _0x355136=_0x16c600;return _0x355136['sdkHttpResponse']={'headers':_0xc51a8b['headers']},_0x355136;});}),_0x4e7290['then'](_0x2d7126=>{const _0x4580ba=_0x323612,_0x5727ad=countTokensResponseFromMldev(_0x2d7126),_0x35593b=new CountTokensResponse();return Object[_0x4580ba(0x64e)](_0x35593b,_0x5727ad),_0x35593b;});}}async[a0_0x254c3a(0x6bf)](_0x463abe){const _0x32e3f2=a0_0x254c3a;var _0x566a17,_0x40ab77;let _0x2bd029,_0x333eb7='',_0x14324c={};if(this['apiClient'][_0x32e3f2(0x2b9)]()){const _0x3caebe=computeTokensParametersToVertex(this['apiClient'],_0x463abe);return _0x333eb7=formatMap('{model}:computeTokens',_0x3caebe[_0x32e3f2(0x1fb)]),_0x14324c=_0x3caebe[_0x32e3f2(0x32f)],delete _0x3caebe[_0x32e3f2(0x1fb)],delete _0x3caebe[_0x32e3f2(0x32f)],_0x2bd029=this[_0x32e3f2(0x6cf)][_0x32e3f2(0x610)]({'path':_0x333eb7,'queryParams':_0x14324c,'body':JSON[_0x32e3f2(0x59a)](_0x3caebe),'httpMethod':'POST','httpOptions':(_0x566a17=_0x463abe['config'])===null||_0x566a17===void 0x0?void 0x0:_0x566a17[_0x32e3f2(0x234)],'abortSignal':(_0x40ab77=_0x463abe['config'])===null||_0x40ab77===void 0x0?void 0x0:_0x40ab77[_0x32e3f2(0x546)]})['then'](_0xce6836=>{const _0x46aa3a=_0x32e3f2;return _0xce6836[_0x46aa3a(0x288)]()[_0x46aa3a(0x3a5)](_0x11e00f=>{const _0x3cdbf5=_0x46aa3a,_0x138ec2=_0x11e00f;return _0x138ec2[_0x3cdbf5(0x1ab)]={'headers':_0xce6836['headers']},_0x138ec2;});}),_0x2bd029['then'](_0x5b0f32=>{const _0x291111=computeTokensResponseFromVertex(_0x5b0f32),_0x46ff61=new ComputeTokensResponse();return Object['assign'](_0x46ff61,_0x291111),_0x46ff61;});}else throw new Error(_0x32e3f2(0x53f));}async[a0_0x254c3a(0x504)](_0x58975f){const _0x2400c7=a0_0x254c3a;var _0x57bd5a,_0x429957,_0x222adf,_0x155573;let _0x1d43bb,_0x373b3b='',_0x5c8ab3={};if(this[_0x2400c7(0x6cf)]['isVertexAI']()){const _0x5db24f=generateVideosParametersToVertex(this['apiClient'],_0x58975f);return _0x373b3b=formatMap('{model}:predictLongRunning',_0x5db24f[_0x2400c7(0x1fb)]),_0x5c8ab3=_0x5db24f[_0x2400c7(0x32f)],delete _0x5db24f[_0x2400c7(0x1fb)],delete _0x5db24f[_0x2400c7(0x32f)],_0x1d43bb=this['apiClient'][_0x2400c7(0x610)]({'path':_0x373b3b,'queryParams':_0x5c8ab3,'body':JSON[_0x2400c7(0x59a)](_0x5db24f),'httpMethod':_0x2400c7(0x5f7),'httpOptions':(_0x57bd5a=_0x58975f['config'])===null||_0x57bd5a===void 0x0?void 0x0:_0x57bd5a[_0x2400c7(0x234)],'abortSignal':(_0x429957=_0x58975f['config'])===null||_0x429957===void 0x0?void 0x0:_0x429957[_0x2400c7(0x546)]})['then'](_0x5c9b1e=>{return _0x5c9b1e['json']();}),_0x1d43bb[_0x2400c7(0x3a5)](_0x475918=>{const _0x453aa2=_0x2400c7,_0x39289d=generateVideosOperationFromVertex(_0x475918),_0x256f03=new GenerateVideosOperation();return Object[_0x453aa2(0x64e)](_0x256f03,_0x39289d),_0x256f03;});}else{const _0x1ba54b=generateVideosParametersToMldev(this[_0x2400c7(0x6cf)],_0x58975f);return _0x373b3b=formatMap('{model}:predictLongRunning',_0x1ba54b[_0x2400c7(0x1fb)]),_0x5c8ab3=_0x1ba54b[_0x2400c7(0x32f)],delete _0x1ba54b[_0x2400c7(0x1fb)],delete _0x1ba54b[_0x2400c7(0x32f)],_0x1d43bb=this[_0x2400c7(0x6cf)][_0x2400c7(0x610)]({'path':_0x373b3b,'queryParams':_0x5c8ab3,'body':JSON[_0x2400c7(0x59a)](_0x1ba54b),'httpMethod':_0x2400c7(0x5f7),'httpOptions':(_0x222adf=_0x58975f[_0x2400c7(0x563)])===null||_0x222adf===void 0x0?void 0x0:_0x222adf[_0x2400c7(0x234)],'abortSignal':(_0x155573=_0x58975f[_0x2400c7(0x563)])===null||_0x155573===void 0x0?void 0x0:_0x155573[_0x2400c7(0x546)]})['then'](_0x31c367=>{return _0x31c367['json']();}),_0x1d43bb['then'](_0x36624d=>{const _0xc9a207=generateVideosOperationFromMldev(_0x36624d),_0x2d4831=new GenerateVideosOperation();return Object['assign'](_0x2d4831,_0xc9a207),_0x2d4831;});}}}/**
242
+ * @license
243
+ * Copyright 2025 Google LLC
244
+ * SPDX-License-Identifier: Apache-2.0
245
+ */
246
+ class Operations extends BaseModule{constructor(_0xf01b5b){const _0x570015=a0_0x254c3a;super(),this[_0x570015(0x6cf)]=_0xf01b5b;}async['getVideosOperation'](_0x560738){const _0x5b906d=a0_0x254c3a,_0x4f14f1=_0x560738[_0x5b906d(0x2f5)],_0x1a2bfa=_0x560738[_0x5b906d(0x563)];if(_0x4f14f1[_0x5b906d(0x68e)]===undefined||_0x4f14f1['name']==='')throw new Error('Operation\x20name\x20is\x20required.');if(this[_0x5b906d(0x6cf)][_0x5b906d(0x2b9)]()){const _0x39b1f4=_0x4f14f1['name'][_0x5b906d(0x406)](_0x5b906d(0x500))[0x0];let _0x3fe624=undefined;_0x1a2bfa&&_0x5b906d(0x234)in _0x1a2bfa&&(_0x3fe624=_0x1a2bfa['httpOptions']);const _0x469ca2=await this[_0x5b906d(0x465)]({'operationName':_0x4f14f1['name'],'resourceName':_0x39b1f4,'config':{'httpOptions':_0x3fe624}});return _0x4f14f1[_0x5b906d(0x24e)]({'apiResponse':_0x469ca2,'_isVertexAI':!![]});}else{const _0x5990fe=await this[_0x5b906d(0x445)]({'operationName':_0x4f14f1[_0x5b906d(0x68e)],'config':_0x1a2bfa});return _0x4f14f1['_fromAPIResponse']({'apiResponse':_0x5990fe,'_isVertexAI':![]});}}async[a0_0x254c3a(0x296)](_0x3a44d3){const _0x1df135=a0_0x254c3a,_0x2c2377=_0x3a44d3[_0x1df135(0x2f5)],_0x54e05b=_0x3a44d3[_0x1df135(0x563)];if(_0x2c2377[_0x1df135(0x68e)]===undefined||_0x2c2377['name']==='')throw new Error(_0x1df135(0x1a0));if(this[_0x1df135(0x6cf)][_0x1df135(0x2b9)]()){const _0x8d8f73=_0x2c2377[_0x1df135(0x68e)]['split']('/operations/')[0x0];let _0x1a4a3c=undefined;_0x54e05b&&_0x1df135(0x234)in _0x54e05b&&(_0x1a4a3c=_0x54e05b[_0x1df135(0x234)]);const _0x24145c=await this[_0x1df135(0x465)]({'operationName':_0x2c2377[_0x1df135(0x68e)],'resourceName':_0x8d8f73,'config':{'httpOptions':_0x1a4a3c}});return _0x2c2377[_0x1df135(0x24e)]({'apiResponse':_0x24145c,'_isVertexAI':!![]});}else{const _0x4b5857=await this['getVideosOperationInternal']({'operationName':_0x2c2377[_0x1df135(0x68e)],'config':_0x54e05b});return _0x2c2377[_0x1df135(0x24e)]({'apiResponse':_0x4b5857,'_isVertexAI':![]});}}async['getVideosOperationInternal'](_0x242f53){const _0x3ff450=a0_0x254c3a;var _0x22169b,_0x5c0ae9,_0x2bbfc5,_0x1aca0a;let _0x1ece34,_0x4c02e7='',_0x494066={};if(this[_0x3ff450(0x6cf)][_0x3ff450(0x2b9)]()){const _0x1caf46=getOperationParametersToVertex(_0x242f53);return _0x4c02e7=formatMap(_0x3ff450(0x22f),_0x1caf46['_url']),_0x494066=_0x1caf46[_0x3ff450(0x32f)],delete _0x1caf46[_0x3ff450(0x1fb)],delete _0x1caf46[_0x3ff450(0x32f)],_0x1ece34=this[_0x3ff450(0x6cf)][_0x3ff450(0x610)]({'path':_0x4c02e7,'queryParams':_0x494066,'body':JSON['stringify'](_0x1caf46),'httpMethod':'GET','httpOptions':(_0x22169b=_0x242f53[_0x3ff450(0x563)])===null||_0x22169b===void 0x0?void 0x0:_0x22169b[_0x3ff450(0x234)],'abortSignal':(_0x5c0ae9=_0x242f53[_0x3ff450(0x563)])===null||_0x5c0ae9===void 0x0?void 0x0:_0x5c0ae9[_0x3ff450(0x546)]})[_0x3ff450(0x3a5)](_0x44bc49=>{return _0x44bc49['json']();}),_0x1ece34;}else{const _0x381975=getOperationParametersToMldev(_0x242f53);return _0x4c02e7=formatMap(_0x3ff450(0x22f),_0x381975['_url']),_0x494066=_0x381975[_0x3ff450(0x32f)],delete _0x381975[_0x3ff450(0x1fb)],delete _0x381975[_0x3ff450(0x32f)],_0x1ece34=this[_0x3ff450(0x6cf)][_0x3ff450(0x610)]({'path':_0x4c02e7,'queryParams':_0x494066,'body':JSON['stringify'](_0x381975),'httpMethod':'GET','httpOptions':(_0x2bbfc5=_0x242f53['config'])===null||_0x2bbfc5===void 0x0?void 0x0:_0x2bbfc5[_0x3ff450(0x234)],'abortSignal':(_0x1aca0a=_0x242f53[_0x3ff450(0x563)])===null||_0x1aca0a===void 0x0?void 0x0:_0x1aca0a['abortSignal']})[_0x3ff450(0x3a5)](_0x2a1872=>{return _0x2a1872['json']();}),_0x1ece34;}}async[a0_0x254c3a(0x465)](_0x1ef686){const _0x33324c=a0_0x254c3a;var _0x2851cc,_0x5e4585;let _0x4fade4,_0x5c22b8='',_0x24d82d={};if(this[_0x33324c(0x6cf)][_0x33324c(0x2b9)]()){const _0x3532cd=fetchPredictOperationParametersToVertex(_0x1ef686);return _0x5c22b8=formatMap('{resourceName}:fetchPredictOperation',_0x3532cd['_url']),_0x24d82d=_0x3532cd[_0x33324c(0x32f)],delete _0x3532cd[_0x33324c(0x1fb)],delete _0x3532cd['_query'],_0x4fade4=this[_0x33324c(0x6cf)][_0x33324c(0x610)]({'path':_0x5c22b8,'queryParams':_0x24d82d,'body':JSON[_0x33324c(0x59a)](_0x3532cd),'httpMethod':_0x33324c(0x5f7),'httpOptions':(_0x2851cc=_0x1ef686['config'])===null||_0x2851cc===void 0x0?void 0x0:_0x2851cc[_0x33324c(0x234)],'abortSignal':(_0x5e4585=_0x1ef686['config'])===null||_0x5e4585===void 0x0?void 0x0:_0x5e4585[_0x33324c(0x546)]})[_0x33324c(0x3a5)](_0x2e55f4=>{const _0x339934=_0x33324c;return _0x2e55f4[_0x339934(0x288)]();}),_0x4fade4;}else throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.');}}/**
247
+ * @license
248
+ * Copyright 2025 Google LLC
249
+ * SPDX-License-Identifier: Apache-2.0
250
+ */
251
+ function blobToMldev(_0x59eaae){const _0x567116=a0_0x254c3a,_0x5643ce={},_0x119076=getValueByPath(_0x59eaae,[_0x567116(0x526)]);_0x119076!=null&&setValueByPath(_0x5643ce,[_0x567116(0x526)],_0x119076);if(getValueByPath(_0x59eaae,[_0x567116(0x462)])!==undefined)throw new Error(_0x567116(0x24a));const _0x242cd2=getValueByPath(_0x59eaae,['mimeType']);return _0x242cd2!=null&&setValueByPath(_0x5643ce,[_0x567116(0x38c)],_0x242cd2),_0x5643ce;}function contentToMldev(_0x4a32f3){const _0x3e578f=a0_0x254c3a,_0x1622f8={},_0xd66543=getValueByPath(_0x4a32f3,[_0x3e578f(0x435)]);if(_0xd66543!=null){let _0x16f6e4=_0xd66543;Array[_0x3e578f(0x192)](_0x16f6e4)&&(_0x16f6e4=_0x16f6e4['map'](_0x17d610=>{return partToMldev(_0x17d610);})),setValueByPath(_0x1622f8,[_0x3e578f(0x435)],_0x16f6e4);}const _0x1dae3a=getValueByPath(_0x4a32f3,[_0x3e578f(0x5ca)]);return _0x1dae3a!=null&&setValueByPath(_0x1622f8,['role'],_0x1dae3a),_0x1622f8;}function createAuthTokenConfigToMldev(_0x51b200,_0x454629,_0x5343ef){const _0x2eb62f=a0_0x254c3a,_0x1975f0={},_0x21f015=getValueByPath(_0x454629,[_0x2eb62f(0x311)]);_0x5343ef!==undefined&&_0x21f015!=null&&setValueByPath(_0x5343ef,['expireTime'],_0x21f015);const _0x483152=getValueByPath(_0x454629,['newSessionExpireTime']);_0x5343ef!==undefined&&_0x483152!=null&&setValueByPath(_0x5343ef,[_0x2eb62f(0x191)],_0x483152);const _0x572f88=getValueByPath(_0x454629,[_0x2eb62f(0x265)]);_0x5343ef!==undefined&&_0x572f88!=null&&setValueByPath(_0x5343ef,[_0x2eb62f(0x265)],_0x572f88);const _0x436ff0=getValueByPath(_0x454629,[_0x2eb62f(0x2ff)]);_0x5343ef!==undefined&&_0x436ff0!=null&&setValueByPath(_0x5343ef,[_0x2eb62f(0x34e)],liveConnectConstraintsToMldev(_0x51b200,_0x436ff0));const _0x3435bd=getValueByPath(_0x454629,[_0x2eb62f(0x314)]);return _0x5343ef!==undefined&&_0x3435bd!=null&&setValueByPath(_0x5343ef,[_0x2eb62f(0x3a4)],_0x3435bd),_0x1975f0;}function createAuthTokenParametersToMldev(_0x594334,_0x53bb05){const _0x5cd9b4=a0_0x254c3a,_0x4c4640={},_0x10b9ef=getValueByPath(_0x53bb05,[_0x5cd9b4(0x563)]);return _0x10b9ef!=null&&setValueByPath(_0x4c4640,[_0x5cd9b4(0x563)],createAuthTokenConfigToMldev(_0x594334,_0x10b9ef,_0x4c4640)),_0x4c4640;}function fileDataToMldev(_0x4ce118){const _0x4850f1=a0_0x254c3a,_0x367b15={};if(getValueByPath(_0x4ce118,[_0x4850f1(0x462)])!==undefined)throw new Error(_0x4850f1(0x24a));const _0x4f547c=getValueByPath(_0x4ce118,[_0x4850f1(0x617)]);_0x4f547c!=null&&setValueByPath(_0x367b15,['fileUri'],_0x4f547c);const _0x197200=getValueByPath(_0x4ce118,[_0x4850f1(0x38c)]);return _0x197200!=null&&setValueByPath(_0x367b15,[_0x4850f1(0x38c)],_0x197200),_0x367b15;}function functionCallToMldev(_0x1063a9){const _0x19a3e5=a0_0x254c3a,_0x134030={},_0x3647ae=getValueByPath(_0x1063a9,['id']);_0x3647ae!=null&&setValueByPath(_0x134030,['id'],_0x3647ae);const _0x52ea56=getValueByPath(_0x1063a9,[_0x19a3e5(0x4d6)]);_0x52ea56!=null&&setValueByPath(_0x134030,[_0x19a3e5(0x4d6)],_0x52ea56);const _0x2f526a=getValueByPath(_0x1063a9,[_0x19a3e5(0x68e)]);_0x2f526a!=null&&setValueByPath(_0x134030,['name'],_0x2f526a);if(getValueByPath(_0x1063a9,[_0x19a3e5(0x374)])!==undefined)throw new Error(_0x19a3e5(0x19a));if(getValueByPath(_0x1063a9,[_0x19a3e5(0x480)])!==undefined)throw new Error(_0x19a3e5(0x17d));return _0x134030;}function googleMapsToMldev(_0x1ba5ec){const _0x2f0ff7=a0_0x254c3a,_0x2781d6={};if(getValueByPath(_0x1ba5ec,['authConfig'])!==undefined)throw new Error(_0x2f0ff7(0x40b));const _0x11ad7b=getValueByPath(_0x1ba5ec,[_0x2f0ff7(0x5f5)]);return _0x11ad7b!=null&&setValueByPath(_0x2781d6,[_0x2f0ff7(0x5f5)],_0x11ad7b),_0x2781d6;}function googleSearchToMldev(_0x4ac057){const _0x5e45d5=a0_0x254c3a,_0x1f78d0={};if(getValueByPath(_0x4ac057,[_0x5e45d5(0x242)])!==undefined)throw new Error(_0x5e45d5(0x51f));if(getValueByPath(_0x4ac057,['blockingConfidence'])!==undefined)throw new Error(_0x5e45d5(0x4ef));const _0x376923=getValueByPath(_0x4ac057,['timeRangeFilter']);return _0x376923!=null&&setValueByPath(_0x1f78d0,['timeRangeFilter'],_0x376923),_0x1f78d0;}function liveConnectConfigToMldev(_0x2d5141,_0x4d1dc4){const _0x28737d=a0_0x254c3a,_0x59efd7={},_0x1131e8=getValueByPath(_0x2d5141,[_0x28737d(0x324)]);_0x4d1dc4!==undefined&&_0x1131e8!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x324)],_0x1131e8);const _0xed99f9=getValueByPath(_0x2d5141,[_0x28737d(0x6d4)]);_0x4d1dc4!==undefined&&_0xed99f9!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x324),_0x28737d(0x6d4)],_0xed99f9);const _0x15f453=getValueByPath(_0x2d5141,[_0x28737d(0x1e2)]);_0x4d1dc4!==undefined&&_0x15f453!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x324),_0x28737d(0x1e2)],_0x15f453);const _0x48c538=getValueByPath(_0x2d5141,['topP']);_0x4d1dc4!==undefined&&_0x48c538!=null&&setValueByPath(_0x4d1dc4,['setup',_0x28737d(0x324),_0x28737d(0x651)],_0x48c538);const _0xf8c9ad=getValueByPath(_0x2d5141,['topK']);_0x4d1dc4!==undefined&&_0xf8c9ad!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x324),'topK'],_0xf8c9ad);const _0x2610c9=getValueByPath(_0x2d5141,[_0x28737d(0x1a3)]);_0x4d1dc4!==undefined&&_0x2610c9!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),'generationConfig',_0x28737d(0x1a3)],_0x2610c9);const _0x597e7c=getValueByPath(_0x2d5141,[_0x28737d(0x667)]);_0x4d1dc4!==undefined&&_0x597e7c!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x324),_0x28737d(0x667)],_0x597e7c);const _0x553352=getValueByPath(_0x2d5141,[_0x28737d(0x1f8)]);_0x4d1dc4!==undefined&&_0x553352!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x324),_0x28737d(0x1f8)],_0x553352);const _0x7fcd99=getValueByPath(_0x2d5141,[_0x28737d(0x540)]);_0x4d1dc4!==undefined&&_0x7fcd99!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),'generationConfig',_0x28737d(0x540)],tLiveSpeechConfig(_0x7fcd99));const _0x19c09e=getValueByPath(_0x2d5141,[_0x28737d(0x414)]);_0x4d1dc4!==undefined&&_0x19c09e!=null&&setValueByPath(_0x4d1dc4,['setup',_0x28737d(0x324),_0x28737d(0x414)],_0x19c09e);const _0x5186eb=getValueByPath(_0x2d5141,[_0x28737d(0x691)]);_0x4d1dc4!==undefined&&_0x5186eb!=null&&setValueByPath(_0x4d1dc4,['setup',_0x28737d(0x324),_0x28737d(0x691)],_0x5186eb);const _0x5cc38b=getValueByPath(_0x2d5141,['systemInstruction']);_0x4d1dc4!==undefined&&_0x5cc38b!=null&&setValueByPath(_0x4d1dc4,['setup',_0x28737d(0x2ba)],contentToMldev(tContent(_0x5cc38b)));const _0x22f26b=getValueByPath(_0x2d5141,[_0x28737d(0x1e6)]);if(_0x4d1dc4!==undefined&&_0x22f26b!=null){let _0x3690b0=tTools(_0x22f26b);Array['isArray'](_0x3690b0)&&(_0x3690b0=_0x3690b0[_0x28737d(0x221)](_0x39abb6=>{return toolToMldev(tTool(_0x39abb6));})),setValueByPath(_0x4d1dc4,['setup','tools'],_0x3690b0);}const _0x12ca40=getValueByPath(_0x2d5141,[_0x28737d(0x619)]);_0x4d1dc4!==undefined&&_0x12ca40!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x619)],sessionResumptionConfigToMldev(_0x12ca40));const _0x326098=getValueByPath(_0x2d5141,[_0x28737d(0x278)]);_0x4d1dc4!==undefined&&_0x326098!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x278)],_0x326098);const _0x3aa5e6=getValueByPath(_0x2d5141,[_0x28737d(0x3bf)]);_0x4d1dc4!==undefined&&_0x3aa5e6!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),'outputAudioTranscription'],_0x3aa5e6);const _0x41f0d0=getValueByPath(_0x2d5141,[_0x28737d(0x2bd)]);_0x4d1dc4!==undefined&&_0x41f0d0!=null&&setValueByPath(_0x4d1dc4,['setup',_0x28737d(0x2bd)],_0x41f0d0);const _0x3329e4=getValueByPath(_0x2d5141,[_0x28737d(0x722)]);_0x4d1dc4!==undefined&&_0x3329e4!=null&&setValueByPath(_0x4d1dc4,[_0x28737d(0x390),_0x28737d(0x722)],_0x3329e4);const _0x10ad31=getValueByPath(_0x2d5141,[_0x28737d(0x571)]);_0x4d1dc4!==undefined&&_0x10ad31!=null&&setValueByPath(_0x4d1dc4,['setup',_0x28737d(0x571)],_0x10ad31);if(getValueByPath(_0x2d5141,[_0x28737d(0x601)])!==undefined)throw new Error(_0x28737d(0x4bf));return _0x59efd7;}function liveConnectConstraintsToMldev(_0x21dc92,_0x26f533){const _0x27e0e6=a0_0x254c3a,_0x1e4848={},_0x4127c3=getValueByPath(_0x26f533,['model']);_0x4127c3!=null&&setValueByPath(_0x1e4848,[_0x27e0e6(0x390),_0x27e0e6(0x492)],tModel(_0x21dc92,_0x4127c3));const _0xed9fdc=getValueByPath(_0x26f533,[_0x27e0e6(0x563)]);return _0xed9fdc!=null&&setValueByPath(_0x1e4848,['config'],liveConnectConfigToMldev(_0xed9fdc,_0x1e4848)),_0x1e4848;}function partToMldev(_0x268a65){const _0xee141c=a0_0x254c3a,_0x5a18e4={},_0x7ab357=getValueByPath(_0x268a65,[_0xee141c(0x667)]);_0x7ab357!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x667)],_0x7ab357);const _0x5d4b91=getValueByPath(_0x268a65,[_0xee141c(0x282)]);_0x5d4b91!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x282)],_0x5d4b91);const _0x3918a6=getValueByPath(_0x268a65,[_0xee141c(0x386)]);_0x3918a6!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x386)],_0x3918a6);const _0xd8978=getValueByPath(_0x268a65,[_0xee141c(0x26e)]);_0xd8978!=null&&setValueByPath(_0x5a18e4,['fileData'],fileDataToMldev(_0xd8978));const _0x2231bf=getValueByPath(_0x268a65,[_0xee141c(0x5ff)]);_0x2231bf!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x5ff)],functionCallToMldev(_0x2231bf));const _0xcbdc88=getValueByPath(_0x268a65,[_0xee141c(0x2af)]);_0xcbdc88!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x2af)],_0xcbdc88);const _0x5dffb1=getValueByPath(_0x268a65,[_0xee141c(0x59d)]);_0x5dffb1!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x59d)],blobToMldev(_0x5dffb1));const _0x474f9c=getValueByPath(_0x268a65,['text']);_0x474f9c!=null&&setValueByPath(_0x5a18e4,['text'],_0x474f9c);const _0x1b40a0=getValueByPath(_0x268a65,[_0xee141c(0x50b)]);_0x1b40a0!=null&&setValueByPath(_0x5a18e4,['thought'],_0x1b40a0);const _0x634c98=getValueByPath(_0x268a65,[_0xee141c(0x5ba)]);_0x634c98!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x5ba)],_0x634c98);const _0xdd7042=getValueByPath(_0x268a65,[_0xee141c(0x64b)]);return _0xdd7042!=null&&setValueByPath(_0x5a18e4,[_0xee141c(0x64b)],_0xdd7042),_0x5a18e4;}function sessionResumptionConfigToMldev(_0x5611f6){const _0x1fe24a=a0_0x254c3a,_0x3bf221={},_0x9ed774=getValueByPath(_0x5611f6,['handle']);_0x9ed774!=null&&setValueByPath(_0x3bf221,[_0x1fe24a(0x3a8)],_0x9ed774);if(getValueByPath(_0x5611f6,[_0x1fe24a(0x1b0)])!==undefined)throw new Error(_0x1fe24a(0x629));return _0x3bf221;}function toolToMldev(_0x5e046b){const _0x307a6b=a0_0x254c3a,_0x17f684={};if(getValueByPath(_0x5e046b,['retrieval'])!==undefined)throw new Error(_0x307a6b(0x2ae));const _0x42aa8b=getValueByPath(_0x5e046b,[_0x307a6b(0x698)]);_0x42aa8b!=null&&setValueByPath(_0x17f684,[_0x307a6b(0x698)],_0x42aa8b);const _0x4ef8fa=getValueByPath(_0x5e046b,[_0x307a6b(0x47d)]);_0x4ef8fa!=null&&setValueByPath(_0x17f684,[_0x307a6b(0x47d)],_0x4ef8fa);const _0x58e099=getValueByPath(_0x5e046b,[_0x307a6b(0x32b)]);_0x58e099!=null&&setValueByPath(_0x17f684,['codeExecution'],_0x58e099);if(getValueByPath(_0x5e046b,['enterpriseWebSearch'])!==undefined)throw new Error(_0x307a6b(0x450));const _0x301b89=getValueByPath(_0x5e046b,[_0x307a6b(0x4b0)]);if(_0x301b89!=null){let _0x9fa581=_0x301b89;Array[_0x307a6b(0x192)](_0x9fa581)&&(_0x9fa581=_0x9fa581[_0x307a6b(0x221)](_0x5d8e8c=>{return _0x5d8e8c;})),setValueByPath(_0x17f684,['functionDeclarations'],_0x9fa581);}const _0x24396e=getValueByPath(_0x5e046b,['googleMaps']);_0x24396e!=null&&setValueByPath(_0x17f684,['googleMaps'],googleMapsToMldev(_0x24396e));const _0x33f821=getValueByPath(_0x5e046b,['googleSearch']);_0x33f821!=null&&setValueByPath(_0x17f684,[_0x307a6b(0x436)],googleSearchToMldev(_0x33f821));const _0x3de294=getValueByPath(_0x5e046b,[_0x307a6b(0x503)]);_0x3de294!=null&&setValueByPath(_0x17f684,[_0x307a6b(0x503)],_0x3de294);const _0x5d9768=getValueByPath(_0x5e046b,[_0x307a6b(0x39b)]);return _0x5d9768!=null&&setValueByPath(_0x17f684,[_0x307a6b(0x39b)],_0x5d9768),_0x17f684;}/**
252
+ * @license
253
+ * Copyright 2025 Google LLC
254
+ * SPDX-License-Identifier: Apache-2.0
255
+ */
256
+ function getFieldMasks(_0x19c7b1){const _0x560a1b=a0_0x254c3a,_0x2cc73b=[];for(const _0xe2de61 in _0x19c7b1){if(Object[_0x560a1b(0x6b5)][_0x560a1b(0x54e)][_0x560a1b(0x49b)](_0x19c7b1,_0xe2de61)){const _0x18e139=_0x19c7b1[_0xe2de61];if(typeof _0x18e139==='object'&&_0x18e139!=null&&Object[_0x560a1b(0x421)](_0x18e139)[_0x560a1b(0x3d2)]>0x0){const _0x1a61f5=Object['keys'](_0x18e139)[_0x560a1b(0x221)](_0x238ff1=>_0xe2de61+'.'+_0x238ff1);_0x2cc73b[_0x560a1b(0x417)](..._0x1a61f5);}else _0x2cc73b['push'](_0xe2de61);}}return _0x2cc73b[_0x560a1b(0x173)](',');}function convertBidiSetupToTokenSetup(_0x2e6563,_0x373e6d){const _0x260780=a0_0x254c3a;let _0xf55b01=null;const _0x15c6c9=_0x2e6563[_0x260780(0x34e)];if(typeof _0x15c6c9===_0x260780(0x46a)&&_0x15c6c9!==null&&_0x260780(0x390)in _0x15c6c9){const _0x56a450=_0x15c6c9['setup'];typeof _0x56a450===_0x260780(0x46a)&&_0x56a450!==null?(_0x2e6563[_0x260780(0x34e)]=_0x56a450,_0xf55b01=_0x56a450):delete _0x2e6563['bidiGenerateContentSetup'];}else _0x15c6c9!==undefined&&delete _0x2e6563[_0x260780(0x34e)];const _0x9feb2e=_0x2e6563['fieldMask'];if(_0xf55b01){const _0x22fcd5=getFieldMasks(_0xf55b01);if(Array[_0x260780(0x192)](_0x373e6d===null||_0x373e6d===void 0x0?void 0x0:_0x373e6d[_0x260780(0x314)])&&(_0x373e6d===null||_0x373e6d===void 0x0?void 0x0:_0x373e6d[_0x260780(0x314)]['length'])===0x0)_0x22fcd5?_0x2e6563['fieldMask']=_0x22fcd5:delete _0x2e6563[_0x260780(0x3a4)];else{if((_0x373e6d===null||_0x373e6d===void 0x0?void 0x0:_0x373e6d[_0x260780(0x314)])&&_0x373e6d[_0x260780(0x314)][_0x260780(0x3d2)]>0x0&&_0x9feb2e!==null&&Array[_0x260780(0x192)](_0x9feb2e)&&_0x9feb2e[_0x260780(0x3d2)]>0x0){const _0x582eae=[_0x260780(0x1e2),_0x260780(0x1a6),'topP','maxOutputTokens',_0x260780(0x6d4),_0x260780(0x1f8),'speechConfig'];let _0x3847e7=[];_0x9feb2e[_0x260780(0x3d2)]>0x0&&(_0x3847e7=_0x9feb2e[_0x260780(0x221)](_0x5e4cd1=>{const _0x35fc7c=_0x260780;if(_0x582eae[_0x35fc7c(0x566)](_0x5e4cd1))return _0x35fc7c(0x1bf)+_0x5e4cd1;return _0x5e4cd1;}));const _0x33eb7d=[];_0x22fcd5&&_0x33eb7d[_0x260780(0x417)](_0x22fcd5),_0x3847e7[_0x260780(0x3d2)]>0x0&&_0x33eb7d['push'](..._0x3847e7),_0x33eb7d[_0x260780(0x3d2)]>0x0?_0x2e6563['fieldMask']=_0x33eb7d[_0x260780(0x173)](','):delete _0x2e6563[_0x260780(0x3a4)];}else delete _0x2e6563[_0x260780(0x3a4)];}}else _0x9feb2e!==null&&Array['isArray'](_0x9feb2e)&&_0x9feb2e[_0x260780(0x3d2)]>0x0?_0x2e6563[_0x260780(0x3a4)]=_0x9feb2e['join'](','):delete _0x2e6563[_0x260780(0x3a4)];return _0x2e6563;}class Tokens extends BaseModule{constructor(_0x3f7368){const _0x23a9fe=a0_0x254c3a;super(),this[_0x23a9fe(0x6cf)]=_0x3f7368;}async[a0_0x254c3a(0x1b6)](_0x4025ba){const _0x522d13=a0_0x254c3a;var _0x21bd5f,_0x262520;let _0x522df0,_0x2485b0='',_0xa868c={};if(this[_0x522d13(0x6cf)][_0x522d13(0x2b9)]())throw new Error(_0x522d13(0x19d));else{const _0x186164=createAuthTokenParametersToMldev(this['apiClient'],_0x4025ba);_0x2485b0=formatMap(_0x522d13(0x581),_0x186164['_url']),_0xa868c=_0x186164[_0x522d13(0x32f)],delete _0x186164['config'],delete _0x186164['_url'],delete _0x186164['_query'];const _0x3d55cb=convertBidiSetupToTokenSetup(_0x186164,_0x4025ba['config']);return _0x522df0=this[_0x522d13(0x6cf)]['request']({'path':_0x2485b0,'queryParams':_0xa868c,'body':JSON[_0x522d13(0x59a)](_0x3d55cb),'httpMethod':_0x522d13(0x5f7),'httpOptions':(_0x21bd5f=_0x4025ba[_0x522d13(0x563)])===null||_0x21bd5f===void 0x0?void 0x0:_0x21bd5f[_0x522d13(0x234)],'abortSignal':(_0x262520=_0x4025ba[_0x522d13(0x563)])===null||_0x262520===void 0x0?void 0x0:_0x262520[_0x522d13(0x546)]})['then'](_0x43861e=>{const _0x4273c0=_0x522d13;return _0x43861e[_0x4273c0(0x288)]();}),_0x522df0[_0x522d13(0x3a5)](_0x497f26=>{return _0x497f26;});}}}/**
257
+ * @license
258
+ * Copyright 2025 Google LLC
259
+ * SPDX-License-Identifier: Apache-2.0
260
+ */
261
+ function cancelTuningJobParametersToMldev(_0x370b0c,_0x5c4831){const _0x5b8286=a0_0x254c3a,_0x543e39={},_0x4fe92e=getValueByPath(_0x370b0c,[_0x5b8286(0x68e)]);return _0x4fe92e!=null&&setValueByPath(_0x543e39,[_0x5b8286(0x1fb),'name'],_0x4fe92e),_0x543e39;}function cancelTuningJobParametersToVertex(_0x3a7667,_0x358b6a){const _0x10c9ea=a0_0x254c3a,_0x148854={},_0x4f012b=getValueByPath(_0x3a7667,[_0x10c9ea(0x68e)]);return _0x4f012b!=null&&setValueByPath(_0x148854,[_0x10c9ea(0x1fb),'name'],_0x4f012b),_0x148854;}function cancelTuningJobResponseFromMldev(_0x4bf9f0,_0x28561d){const _0x3dc4b8=a0_0x254c3a,_0x277751={},_0x179f1e=getValueByPath(_0x4bf9f0,[_0x3dc4b8(0x1ab)]);return _0x179f1e!=null&&setValueByPath(_0x277751,[_0x3dc4b8(0x1ab)],_0x179f1e),_0x277751;}function cancelTuningJobResponseFromVertex(_0x5dc156,_0x419d66){const _0x303551=a0_0x254c3a,_0xc37136={},_0x54141a=getValueByPath(_0x5dc156,['sdkHttpResponse']);return _0x54141a!=null&&setValueByPath(_0xc37136,[_0x303551(0x1ab)],_0x54141a),_0xc37136;}function createTuningJobConfigToMldev(_0x534f86,_0x440a46,_0x6ea47e){const _0x1ad09d=a0_0x254c3a,_0x39b9c4={};if(getValueByPath(_0x534f86,[_0x1ad09d(0x3f5)])!==undefined)throw new Error('validationDataset\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x481d2f=getValueByPath(_0x534f86,[_0x1ad09d(0x345)]);_0x440a46!==undefined&&_0x481d2f!=null&&setValueByPath(_0x440a46,['displayName'],_0x481d2f);if(getValueByPath(_0x534f86,[_0x1ad09d(0x3b3)])!==undefined)throw new Error(_0x1ad09d(0x377));const _0xdb571=getValueByPath(_0x534f86,[_0x1ad09d(0x586)]);_0x440a46!==undefined&&_0xdb571!=null&&setValueByPath(_0x440a46,['tuningTask',_0x1ad09d(0x2e8),'epochCount'],_0xdb571);const _0x18fb77=getValueByPath(_0x534f86,['learningRateMultiplier']);_0x18fb77!=null&&setValueByPath(_0x39b9c4,['tuningTask',_0x1ad09d(0x2e8),_0x1ad09d(0x195)],_0x18fb77);if(getValueByPath(_0x534f86,[_0x1ad09d(0x21d)])!==undefined)throw new Error(_0x1ad09d(0x17f));if(getValueByPath(_0x534f86,[_0x1ad09d(0x452)])!==undefined)throw new Error(_0x1ad09d(0x2c8));if(getValueByPath(_0x534f86,[_0x1ad09d(0x4c3)])!==undefined)throw new Error('adapterSize\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x534f86,[_0x1ad09d(0x387)])!==undefined)throw new Error('tuningMode\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x534f86,[_0x1ad09d(0x313)])!==undefined)throw new Error(_0x1ad09d(0x316));const _0x3dd029=getValueByPath(_0x534f86,['batchSize']);_0x440a46!==undefined&&_0x3dd029!=null&&setValueByPath(_0x440a46,[_0x1ad09d(0x380),'hyperparameters',_0x1ad09d(0x342)],_0x3dd029);const _0x3e4059=getValueByPath(_0x534f86,['learningRate']);_0x440a46!==undefined&&_0x3e4059!=null&&setValueByPath(_0x440a46,['tuningTask',_0x1ad09d(0x2e8),_0x1ad09d(0x5df)],_0x3e4059);if(getValueByPath(_0x534f86,[_0x1ad09d(0x266)])!==undefined)throw new Error(_0x1ad09d(0x639));if(getValueByPath(_0x534f86,[_0x1ad09d(0x233)])!==undefined)throw new Error(_0x1ad09d(0x284));if(getValueByPath(_0x534f86,[_0x1ad09d(0x2aa)])!==undefined)throw new Error(_0x1ad09d(0x2fc));if(getValueByPath(_0x534f86,[_0x1ad09d(0x356)])!==undefined)throw new Error('tunedTeacherModelSource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x534f86,[_0x1ad09d(0x6cc)])!==undefined)throw new Error(_0x1ad09d(0x432));if(getValueByPath(_0x534f86,[_0x1ad09d(0x2fa)])!==undefined)throw new Error('outputUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x39b9c4;}function createTuningJobConfigToVertex(_0x484e9e,_0x152c47,_0x2c1b46){const _0x39cc69=a0_0x254c3a,_0x137c7a={};let _0x5670ce=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),_0x39cc69(0x4d8)]);_0x5670ce===undefined&&(_0x5670ce=_0x39cc69(0x2e5));if(_0x5670ce===_0x39cc69(0x2e5)){const _0x60eb56=getValueByPath(_0x484e9e,[_0x39cc69(0x3f5)]);_0x152c47!==undefined&&_0x60eb56!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be)],tuningValidationDatasetToVertex(_0x60eb56));}else{if(_0x5670ce===_0x39cc69(0x4ea)){const _0x54944a=getValueByPath(_0x484e9e,[_0x39cc69(0x3f5)]);_0x152c47!==undefined&&_0x54944a!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x5a6)],tuningValidationDatasetToVertex(_0x54944a));}else{if(_0x5670ce===_0x39cc69(0x53a)){const _0x4dbb1b=getValueByPath(_0x484e9e,[_0x39cc69(0x3f5)]);_0x152c47!==undefined&&_0x4dbb1b!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a)],tuningValidationDatasetToVertex(_0x4dbb1b));}}}const _0x131504=getValueByPath(_0x484e9e,[_0x39cc69(0x345)]);_0x152c47!==undefined&&_0x131504!=null&&setValueByPath(_0x152c47,['tunedModelDisplayName'],_0x131504);const _0x233f12=getValueByPath(_0x484e9e,[_0x39cc69(0x3b3)]);_0x152c47!==undefined&&_0x233f12!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3b3)],_0x233f12);let _0x294ba1=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),'method']);_0x294ba1===undefined&&(_0x294ba1=_0x39cc69(0x2e5));if(_0x294ba1===_0x39cc69(0x2e5)){const _0x48e886=getValueByPath(_0x484e9e,[_0x39cc69(0x586)]);_0x152c47!==undefined&&_0x48e886!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x4b3),_0x39cc69(0x586)],_0x48e886);}else{if(_0x294ba1==='PREFERENCE_TUNING'){const _0xff07bc=getValueByPath(_0x484e9e,[_0x39cc69(0x586)]);_0x152c47!==undefined&&_0xff07bc!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x5a6),_0x39cc69(0x4b3),'epochCount'],_0xff07bc);}else{if(_0x294ba1===_0x39cc69(0x53a)){const _0x2fd5bc=getValueByPath(_0x484e9e,[_0x39cc69(0x586)]);_0x152c47!==undefined&&_0x2fd5bc!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x4b3),_0x39cc69(0x586)],_0x2fd5bc);}}}let _0x10c787=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),_0x39cc69(0x4d8)]);_0x10c787===undefined&&(_0x10c787=_0x39cc69(0x2e5));if(_0x10c787===_0x39cc69(0x2e5)){const _0x2339bb=getValueByPath(_0x484e9e,[_0x39cc69(0x195)]);_0x152c47!==undefined&&_0x2339bb!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x4b3),'learningRateMultiplier'],_0x2339bb);}else{if(_0x10c787===_0x39cc69(0x4ea)){const _0x5bef91=getValueByPath(_0x484e9e,[_0x39cc69(0x195)]);_0x152c47!==undefined&&_0x5bef91!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x5a6),_0x39cc69(0x4b3),'learningRateMultiplier'],_0x5bef91);}else{if(_0x10c787===_0x39cc69(0x53a)){const _0x3c4fe5=getValueByPath(_0x484e9e,[_0x39cc69(0x195)]);_0x152c47!==undefined&&_0x3c4fe5!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x4b3),'learningRateMultiplier'],_0x3c4fe5);}}}let _0x1f13bb=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),_0x39cc69(0x4d8)]);_0x1f13bb===undefined&&(_0x1f13bb=_0x39cc69(0x2e5));if(_0x1f13bb===_0x39cc69(0x2e5)){const _0x4d83da=getValueByPath(_0x484e9e,[_0x39cc69(0x21d)]);_0x152c47!==undefined&&_0x4d83da!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x21d)],_0x4d83da);}else{if(_0x1f13bb===_0x39cc69(0x4ea)){const _0x34a8e6=getValueByPath(_0x484e9e,['exportLastCheckpointOnly']);_0x152c47!==undefined&&_0x34a8e6!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x5a6),_0x39cc69(0x21d)],_0x34a8e6);}else{if(_0x1f13bb===_0x39cc69(0x53a)){const _0xbdd5dd=getValueByPath(_0x484e9e,[_0x39cc69(0x21d)]);_0x152c47!==undefined&&_0xbdd5dd!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x21d)],_0xbdd5dd);}}}let _0x311652=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),'method']);_0x311652===undefined&&(_0x311652='SUPERVISED_FINE_TUNING');if(_0x311652===_0x39cc69(0x2e5)){const _0x188fd5=getValueByPath(_0x484e9e,['adapterSize']);_0x152c47!==undefined&&_0x188fd5!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x4b3),_0x39cc69(0x4c3)],_0x188fd5);}else{if(_0x311652==='PREFERENCE_TUNING'){const _0x51e7c8=getValueByPath(_0x484e9e,[_0x39cc69(0x4c3)]);_0x152c47!==undefined&&_0x51e7c8!=null&&setValueByPath(_0x152c47,['preferenceOptimizationSpec','hyperParameters',_0x39cc69(0x4c3)],_0x51e7c8);}else{if(_0x311652===_0x39cc69(0x53a)){const _0x5e4529=getValueByPath(_0x484e9e,['adapterSize']);_0x152c47!==undefined&&_0x5e4529!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x4b3),'adapterSize'],_0x5e4529);}}}let _0x3d80aa=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),_0x39cc69(0x4d8)]);_0x3d80aa===undefined&&(_0x3d80aa='SUPERVISED_FINE_TUNING');if(_0x3d80aa===_0x39cc69(0x2e5)){const _0x21fe1b=getValueByPath(_0x484e9e,[_0x39cc69(0x387)]);_0x152c47!==undefined&&_0x21fe1b!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x387)],_0x21fe1b);}const _0x140078=getValueByPath(_0x484e9e,[_0x39cc69(0x313)]);_0x152c47!==undefined&&_0x140078!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x313)],_0x140078);let _0x32a476=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),_0x39cc69(0x4d8)]);_0x32a476===undefined&&(_0x32a476=_0x39cc69(0x2e5));if(_0x32a476===_0x39cc69(0x2e5)){const _0x58ad71=getValueByPath(_0x484e9e,['batchSize']);_0x152c47!==undefined&&_0x58ad71!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x4b3),_0x39cc69(0x342)],_0x58ad71);}let _0x5abfa3=getValueByPath(_0x2c1b46,[_0x39cc69(0x563),_0x39cc69(0x4d8)]);_0x5abfa3===undefined&&(_0x5abfa3='SUPERVISED_FINE_TUNING');if(_0x5abfa3===_0x39cc69(0x2e5)){const _0x522ce4=getValueByPath(_0x484e9e,[_0x39cc69(0x5df)]);_0x152c47!==undefined&&_0x522ce4!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x3be),_0x39cc69(0x4b3),_0x39cc69(0x5df)],_0x522ce4);}const _0x542ab2=getValueByPath(_0x484e9e,[_0x39cc69(0x266)]);_0x152c47!==undefined&&_0x542ab2!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x266)],_0x542ab2);const _0x9511a2=getValueByPath(_0x484e9e,[_0x39cc69(0x233)]);_0x152c47!==undefined&&_0x9511a2!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x5a6),_0x39cc69(0x4b3),_0x39cc69(0x233)],_0x9511a2);const _0x419dfa=getValueByPath(_0x484e9e,[_0x39cc69(0x2aa)]);_0x152c47!==undefined&&_0x419dfa!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x2aa)],_0x419dfa);const _0x14bbda=getValueByPath(_0x484e9e,[_0x39cc69(0x356)]);_0x152c47!==undefined&&_0x14bbda!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x356)],_0x14bbda);const _0x1f9378=getValueByPath(_0x484e9e,[_0x39cc69(0x6cc)]);_0x152c47!==undefined&&_0x1f9378!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x57a),_0x39cc69(0x4b3),'sftLossWeightMultiplier'],_0x1f9378);const _0x827a8f=getValueByPath(_0x484e9e,[_0x39cc69(0x2fa)]);return _0x152c47!==undefined&&_0x827a8f!=null&&setValueByPath(_0x152c47,[_0x39cc69(0x2fa)],_0x827a8f),_0x137c7a;}function createTuningJobParametersPrivateToMldev(_0x57342f,_0x3a3f92){const _0x57eae9=a0_0x254c3a,_0xc63377={},_0x5029d0=getValueByPath(_0x57342f,['baseModel']);_0x5029d0!=null&&setValueByPath(_0xc63377,[_0x57eae9(0x451)],_0x5029d0);const _0xa5a0cb=getValueByPath(_0x57342f,[_0x57eae9(0x1de)]);_0xa5a0cb!=null&&setValueByPath(_0xc63377,[_0x57eae9(0x1de)],_0xa5a0cb);const _0x4f467a=getValueByPath(_0x57342f,[_0x57eae9(0x6a1)]);_0x4f467a!=null&&tuningDatasetToMldev(_0x4f467a);const _0x10718f=getValueByPath(_0x57342f,[_0x57eae9(0x563)]);return _0x10718f!=null&&createTuningJobConfigToMldev(_0x10718f,_0xc63377),_0xc63377;}function createTuningJobParametersPrivateToVertex(_0x4cdd83,_0x3aab9b){const _0xfe1b51=a0_0x254c3a,_0x502ca3={},_0x77a0ed=getValueByPath(_0x4cdd83,[_0xfe1b51(0x451)]);_0x77a0ed!=null&&setValueByPath(_0x502ca3,[_0xfe1b51(0x451)],_0x77a0ed);const _0x3a25c0=getValueByPath(_0x4cdd83,[_0xfe1b51(0x1de)]);_0x3a25c0!=null&&setValueByPath(_0x502ca3,[_0xfe1b51(0x1de)],_0x3a25c0);const _0x9b5c1e=getValueByPath(_0x4cdd83,[_0xfe1b51(0x6a1)]);_0x9b5c1e!=null&&tuningDatasetToVertex(_0x9b5c1e,_0x502ca3,_0x3aab9b);const _0x4afaef=getValueByPath(_0x4cdd83,[_0xfe1b51(0x563)]);return _0x4afaef!=null&&createTuningJobConfigToVertex(_0x4afaef,_0x502ca3,_0x3aab9b),_0x502ca3;}function getTuningJobParametersToMldev(_0x176795,_0x5d0c4e){const _0x6929d9=a0_0x254c3a,_0x84fc3e={},_0x9a8be1=getValueByPath(_0x176795,[_0x6929d9(0x68e)]);return _0x9a8be1!=null&&setValueByPath(_0x84fc3e,[_0x6929d9(0x1fb),_0x6929d9(0x68e)],_0x9a8be1),_0x84fc3e;}function getTuningJobParametersToVertex(_0x4a37b3,_0x25acd6){const _0x27c0bc=a0_0x254c3a,_0x4e2156={},_0x1478c9=getValueByPath(_0x4a37b3,[_0x27c0bc(0x68e)]);return _0x1478c9!=null&&setValueByPath(_0x4e2156,['_url',_0x27c0bc(0x68e)],_0x1478c9),_0x4e2156;}function listTuningJobsConfigToMldev(_0x49fb37,_0x3e3d45,_0x2e88ec){const _0x58a7a1=a0_0x254c3a,_0x100e6c={},_0x3d062b=getValueByPath(_0x49fb37,[_0x58a7a1(0x2a3)]);_0x3e3d45!==undefined&&_0x3d062b!=null&&setValueByPath(_0x3e3d45,[_0x58a7a1(0x32f),_0x58a7a1(0x2a3)],_0x3d062b);const _0x11b707=getValueByPath(_0x49fb37,[_0x58a7a1(0x6d9)]);_0x3e3d45!==undefined&&_0x11b707!=null&&setValueByPath(_0x3e3d45,[_0x58a7a1(0x32f),_0x58a7a1(0x6d9)],_0x11b707);const _0x5f5a7f=getValueByPath(_0x49fb37,['filter']);return _0x3e3d45!==undefined&&_0x5f5a7f!=null&&setValueByPath(_0x3e3d45,[_0x58a7a1(0x32f),_0x58a7a1(0x38a)],_0x5f5a7f),_0x100e6c;}function listTuningJobsConfigToVertex(_0x20cac8,_0x337858,_0x25dac3){const _0x44653d=a0_0x254c3a,_0x24f1cb={},_0x1d3522=getValueByPath(_0x20cac8,[_0x44653d(0x2a3)]);_0x337858!==undefined&&_0x1d3522!=null&&setValueByPath(_0x337858,['_query',_0x44653d(0x2a3)],_0x1d3522);const _0x3ffbc8=getValueByPath(_0x20cac8,[_0x44653d(0x6d9)]);_0x337858!==undefined&&_0x3ffbc8!=null&&setValueByPath(_0x337858,[_0x44653d(0x32f),'pageToken'],_0x3ffbc8);const _0x32010b=getValueByPath(_0x20cac8,[_0x44653d(0x38a)]);return _0x337858!==undefined&&_0x32010b!=null&&setValueByPath(_0x337858,[_0x44653d(0x32f),_0x44653d(0x38a)],_0x32010b),_0x24f1cb;}function listTuningJobsParametersToMldev(_0xe53882,_0x5bb29c){const _0x5d3b5d=a0_0x254c3a,_0x1d6b96={},_0x40a961=getValueByPath(_0xe53882,[_0x5d3b5d(0x563)]);return _0x40a961!=null&&listTuningJobsConfigToMldev(_0x40a961,_0x1d6b96),_0x1d6b96;}function listTuningJobsParametersToVertex(_0x417aea,_0x54cc8a){const _0x91d57d=a0_0x254c3a,_0x17c3a7={},_0x334b2b=getValueByPath(_0x417aea,[_0x91d57d(0x563)]);return _0x334b2b!=null&&listTuningJobsConfigToVertex(_0x334b2b,_0x17c3a7),_0x17c3a7;}function listTuningJobsResponseFromMldev(_0x50d924,_0x4676c2){const _0x25f8d3=a0_0x254c3a,_0x22b311={},_0x29632c=getValueByPath(_0x50d924,['sdkHttpResponse']);_0x29632c!=null&&setValueByPath(_0x22b311,[_0x25f8d3(0x1ab)],_0x29632c);const _0x365eaf=getValueByPath(_0x50d924,[_0x25f8d3(0x4e2)]);_0x365eaf!=null&&setValueByPath(_0x22b311,[_0x25f8d3(0x4e2)],_0x365eaf);const _0x56c837=getValueByPath(_0x50d924,['tunedModels']);if(_0x56c837!=null){let _0x356aa0=_0x56c837;Array['isArray'](_0x356aa0)&&(_0x356aa0=_0x356aa0[_0x25f8d3(0x221)](_0x55fdc1=>{return tuningJobFromMldev(_0x55fdc1);})),setValueByPath(_0x22b311,[_0x25f8d3(0x661)],_0x356aa0);}return _0x22b311;}function listTuningJobsResponseFromVertex(_0x51ae14,_0x12afd4){const _0x297d7f=a0_0x254c3a,_0x42b1ec={},_0x258adb=getValueByPath(_0x51ae14,[_0x297d7f(0x1ab)]);_0x258adb!=null&&setValueByPath(_0x42b1ec,[_0x297d7f(0x1ab)],_0x258adb);const _0xb4f157=getValueByPath(_0x51ae14,[_0x297d7f(0x4e2)]);_0xb4f157!=null&&setValueByPath(_0x42b1ec,['nextPageToken'],_0xb4f157);const _0x1f78e5=getValueByPath(_0x51ae14,[_0x297d7f(0x661)]);if(_0x1f78e5!=null){let _0xb58600=_0x1f78e5;Array[_0x297d7f(0x192)](_0xb58600)&&(_0xb58600=_0xb58600[_0x297d7f(0x221)](_0x41a78b=>{return tuningJobFromVertex(_0x41a78b);})),setValueByPath(_0x42b1ec,[_0x297d7f(0x661)],_0xb58600);}return _0x42b1ec;}function tunedModelFromMldev(_0xbbc17d,_0xe29b3a){const _0x4748bd=a0_0x254c3a,_0x5ec072={},_0x71a4d=getValueByPath(_0xbbc17d,['name']);_0x71a4d!=null&&setValueByPath(_0x5ec072,['model'],_0x71a4d);const _0x5a1f2d=getValueByPath(_0xbbc17d,[_0x4748bd(0x68e)]);return _0x5a1f2d!=null&&setValueByPath(_0x5ec072,['endpoint'],_0x5a1f2d),_0x5ec072;}function tuningDatasetToMldev(_0x32e51e,_0x410dd4){const _0x32b854=a0_0x254c3a,_0x4676e7={};if(getValueByPath(_0x32e51e,['gcsUri'])!==undefined)throw new Error('gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x32e51e,[_0x32b854(0x54b)])!==undefined)throw new Error('vertexDatasetResource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x372f73=getValueByPath(_0x32e51e,['examples']);if(_0x372f73!=null){let _0x4395d6=_0x372f73;Array[_0x32b854(0x192)](_0x4395d6)&&(_0x4395d6=_0x4395d6[_0x32b854(0x221)](_0x3a0655=>{return _0x3a0655;})),setValueByPath(_0x4676e7,[_0x32b854(0x589),_0x32b854(0x589)],_0x4395d6);}return _0x4676e7;}function tuningDatasetToVertex(_0x1e5b16,_0x301a12,_0x3a486e){const _0x2514e=a0_0x254c3a,_0x83c42a={};let _0x15a0f2=getValueByPath(_0x3a486e,['config',_0x2514e(0x4d8)]);_0x15a0f2===undefined&&(_0x15a0f2='SUPERVISED_FINE_TUNING');if(_0x15a0f2===_0x2514e(0x2e5)){const _0x526c5a=getValueByPath(_0x1e5b16,[_0x2514e(0x569)]);_0x301a12!==undefined&&_0x526c5a!=null&&setValueByPath(_0x301a12,[_0x2514e(0x3be),_0x2514e(0x3fa)],_0x526c5a);}else{if(_0x15a0f2===_0x2514e(0x4ea)){const _0x3402ed=getValueByPath(_0x1e5b16,[_0x2514e(0x569)]);_0x301a12!==undefined&&_0x3402ed!=null&&setValueByPath(_0x301a12,[_0x2514e(0x5a6),_0x2514e(0x3fa)],_0x3402ed);}else{if(_0x15a0f2===_0x2514e(0x53a)){const _0x5177c4=getValueByPath(_0x1e5b16,[_0x2514e(0x569)]);_0x301a12!==undefined&&_0x5177c4!=null&&setValueByPath(_0x301a12,[_0x2514e(0x57a),_0x2514e(0x5a4)],_0x5177c4);}}}let _0x27d900=getValueByPath(_0x3a486e,[_0x2514e(0x563),_0x2514e(0x4d8)]);_0x27d900===undefined&&(_0x27d900=_0x2514e(0x2e5));if(_0x27d900===_0x2514e(0x2e5)){const _0x3538d6=getValueByPath(_0x1e5b16,[_0x2514e(0x54b)]);_0x301a12!==undefined&&_0x3538d6!=null&&setValueByPath(_0x301a12,['supervisedTuningSpec',_0x2514e(0x3fa)],_0x3538d6);}else{if(_0x27d900===_0x2514e(0x4ea)){const _0x524324=getValueByPath(_0x1e5b16,['vertexDatasetResource']);_0x301a12!==undefined&&_0x524324!=null&&setValueByPath(_0x301a12,['preferenceOptimizationSpec','trainingDatasetUri'],_0x524324);}else{if(_0x27d900===_0x2514e(0x53a)){const _0x48ee67=getValueByPath(_0x1e5b16,[_0x2514e(0x54b)]);_0x301a12!==undefined&&_0x48ee67!=null&&setValueByPath(_0x301a12,[_0x2514e(0x57a),'promptDatasetUri'],_0x48ee67);}}}if(getValueByPath(_0x1e5b16,[_0x2514e(0x589)])!==undefined)throw new Error(_0x2514e(0x322));return _0x83c42a;}function tuningJobFromMldev(_0x5baf6a,_0x1bc44d){const _0x57fe9e=a0_0x254c3a,_0x41e72a={},_0x473710=getValueByPath(_0x5baf6a,['sdkHttpResponse']);_0x473710!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x1ab)],_0x473710);const _0x5f4c0=getValueByPath(_0x5baf6a,[_0x57fe9e(0x68e)]);_0x5f4c0!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x68e)],_0x5f4c0);const _0x318809=getValueByPath(_0x5baf6a,[_0x57fe9e(0x292)]);_0x318809!=null&&setValueByPath(_0x41e72a,['state'],tTuningJobStatus(_0x318809));const _0x660ff7=getValueByPath(_0x5baf6a,[_0x57fe9e(0x3ff)]);_0x660ff7!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x3ff)],_0x660ff7);const _0x22fc49=getValueByPath(_0x5baf6a,[_0x57fe9e(0x380),'startTime']);_0x22fc49!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x208)],_0x22fc49);const _0x15e55c=getValueByPath(_0x5baf6a,['tuningTask',_0x57fe9e(0x2ce)]);_0x15e55c!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x6de)],_0x15e55c);const _0x198df5=getValueByPath(_0x5baf6a,[_0x57fe9e(0x4af)]);_0x198df5!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x4af)],_0x198df5);const _0x4f80c5=getValueByPath(_0x5baf6a,[_0x57fe9e(0x3b3)]);_0x4f80c5!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x3b3)],_0x4f80c5);const _0x1cd61d=getValueByPath(_0x5baf6a,[_0x57fe9e(0x451)]);_0x1cd61d!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x451)],_0x1cd61d);const _0x1e18cc=getValueByPath(_0x5baf6a,[_0x57fe9e(0x33f)]);return _0x1e18cc!=null&&setValueByPath(_0x41e72a,[_0x57fe9e(0x259)],tunedModelFromMldev(_0x1e18cc)),_0x41e72a;}function tuningJobFromVertex(_0x1fdb46,_0x30d9b4){const _0x1936ae=a0_0x254c3a,_0x269bd3={},_0x47014b=getValueByPath(_0x1fdb46,['sdkHttpResponse']);_0x47014b!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x1ab)],_0x47014b);const _0x557b03=getValueByPath(_0x1fdb46,[_0x1936ae(0x68e)]);_0x557b03!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x68e)],_0x557b03);const _0xeaa948=getValueByPath(_0x1fdb46,[_0x1936ae(0x292)]);_0xeaa948!=null&&setValueByPath(_0x269bd3,['state'],tTuningJobStatus(_0xeaa948));const _0x158867=getValueByPath(_0x1fdb46,[_0x1936ae(0x3ff)]);_0x158867!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x3ff)],_0x158867);const _0x28fed4=getValueByPath(_0x1fdb46,['startTime']);_0x28fed4!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x208)],_0x28fed4);const _0x141d44=getValueByPath(_0x1fdb46,[_0x1936ae(0x6de)]);_0x141d44!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x6de)],_0x141d44);const _0x5cbaef=getValueByPath(_0x1fdb46,[_0x1936ae(0x4af)]);_0x5cbaef!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x4af)],_0x5cbaef);const _0x415c9d=getValueByPath(_0x1fdb46,[_0x1936ae(0x20b)]);_0x415c9d!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x20b)],_0x415c9d);const _0x2b2446=getValueByPath(_0x1fdb46,[_0x1936ae(0x3b3)]);_0x2b2446!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x3b3)],_0x2b2446);const _0x57cc0f=getValueByPath(_0x1fdb46,[_0x1936ae(0x451)]);_0x57cc0f!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x451)],_0x57cc0f);const _0x165c17=getValueByPath(_0x1fdb46,[_0x1936ae(0x259)]);_0x165c17!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x259)],_0x165c17);const _0x187171=getValueByPath(_0x1fdb46,[_0x1936ae(0x1de)]);_0x187171!=null&&setValueByPath(_0x269bd3,['preTunedModel'],_0x187171);const _0x4c0b16=getValueByPath(_0x1fdb46,[_0x1936ae(0x3be)]);_0x4c0b16!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x3be)],_0x4c0b16);const _0x5c1e77=getValueByPath(_0x1fdb46,[_0x1936ae(0x5a6)]);_0x5c1e77!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x5a6)],_0x5c1e77);const _0x55052b=getValueByPath(_0x1fdb46,[_0x1936ae(0x57a)]);_0x55052b!=null&&setValueByPath(_0x269bd3,['distillationSpec'],_0x55052b);const _0x3c2638=getValueByPath(_0x1fdb46,['tuningDataStats']);_0x3c2638!=null&&setValueByPath(_0x269bd3,['tuningDataStats'],_0x3c2638);const _0x4e2bc4=getValueByPath(_0x1fdb46,['encryptionSpec']);_0x4e2bc4!=null&&setValueByPath(_0x269bd3,['encryptionSpec'],_0x4e2bc4);const _0x192d47=getValueByPath(_0x1fdb46,[_0x1936ae(0x1d5)]);_0x192d47!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x1d5)],_0x192d47);const _0x2d016c=getValueByPath(_0x1fdb46,[_0x1936ae(0x313)]);_0x2d016c!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x313)],_0x2d016c);const _0x1aa146=getValueByPath(_0x1fdb46,['experiment']);_0x1aa146!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x4ce)],_0x1aa146);const _0x5c253a=getValueByPath(_0x1fdb46,['labels']);_0x5c253a!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x266)],_0x5c253a);const _0xf87a67=getValueByPath(_0x1fdb46,[_0x1936ae(0x2fa)]);_0xf87a67!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x2fa)],_0xf87a67);const _0xe50c36=getValueByPath(_0x1fdb46,[_0x1936ae(0x5b4)]);_0xe50c36!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x5b4)],_0xe50c36);const _0x19253b=getValueByPath(_0x1fdb46,[_0x1936ae(0x3d1)]);_0x19253b!=null&&setValueByPath(_0x269bd3,['serviceAccount'],_0x19253b);const _0x4f93d8=getValueByPath(_0x1fdb46,[_0x1936ae(0x345)]);_0x4f93d8!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x345)],_0x4f93d8);const _0xc8c7ca=getValueByPath(_0x1fdb46,[_0x1936ae(0x375)]);return _0xc8c7ca!=null&&setValueByPath(_0x269bd3,[_0x1936ae(0x375)],_0xc8c7ca),_0x269bd3;}function tuningOperationFromMldev(_0x15e806,_0x1a2629){const _0xd3c303=a0_0x254c3a,_0x405dbc={},_0x3a2204=getValueByPath(_0x15e806,[_0xd3c303(0x1ab)]);_0x3a2204!=null&&setValueByPath(_0x405dbc,[_0xd3c303(0x1ab)],_0x3a2204);const _0x3b2add=getValueByPath(_0x15e806,[_0xd3c303(0x68e)]);_0x3b2add!=null&&setValueByPath(_0x405dbc,[_0xd3c303(0x68e)],_0x3b2add);const _0x6e0eb0=getValueByPath(_0x15e806,[_0xd3c303(0x3d3)]);_0x6e0eb0!=null&&setValueByPath(_0x405dbc,[_0xd3c303(0x3d3)],_0x6e0eb0);const _0x91a3d2=getValueByPath(_0x15e806,[_0xd3c303(0x183)]);_0x91a3d2!=null&&setValueByPath(_0x405dbc,['done'],_0x91a3d2);const _0xf2223a=getValueByPath(_0x15e806,[_0xd3c303(0x20b)]);return _0xf2223a!=null&&setValueByPath(_0x405dbc,[_0xd3c303(0x20b)],_0xf2223a),_0x405dbc;}function tuningValidationDatasetToVertex(_0x29835c,_0x129c4f){const _0x4f465c=a0_0x254c3a,_0x5d8e79={},_0x4a7898=getValueByPath(_0x29835c,[_0x4f465c(0x569)]);_0x4a7898!=null&&setValueByPath(_0x5d8e79,[_0x4f465c(0x570)],_0x4a7898);const _0x5d88c8=getValueByPath(_0x29835c,[_0x4f465c(0x54b)]);return _0x5d88c8!=null&&setValueByPath(_0x5d8e79,[_0x4f465c(0x570)],_0x5d88c8),_0x5d8e79;}/**
262
+ * @license
263
+ * Copyright 2025 Google LLC
264
+ * SPDX-License-Identifier: Apache-2.0
265
+ */
266
+ class Tunings extends BaseModule{constructor(_0x5c31c6){const _0xc14743=a0_0x254c3a;super(),this[_0xc14743(0x6cf)]=_0x5c31c6,this['list']=async(_0x33743f={})=>{const _0x1895d4=_0xc14743;return new Pager(exports[_0x1895d4(0x666)][_0x1895d4(0x552)],_0x6619ce=>this[_0x1895d4(0x475)](_0x6619ce),await this['listInternal'](_0x33743f),_0x33743f);},this[_0xc14743(0x296)]=async _0x2e31c8=>{const _0x43a0ff=_0xc14743;return await this[_0x43a0ff(0x261)](_0x2e31c8);},this[_0xc14743(0x21f)]=async _0x100b1e=>{const _0x4ebf61=_0xc14743;var _0x1a447d;if(this[_0x4ebf61(0x6cf)]['isVertexAI']()){if(_0x100b1e[_0x4ebf61(0x451)][_0x4ebf61(0x320)](_0x4ebf61(0x332))){const _0x32f617={'tunedModelName':_0x100b1e[_0x4ebf61(0x451)]};((_0x1a447d=_0x100b1e[_0x4ebf61(0x563)])===null||_0x1a447d===void 0x0?void 0x0:_0x1a447d[_0x4ebf61(0x452)])&&(_0x32f617[_0x4ebf61(0x63a)]=_0x100b1e[_0x4ebf61(0x563)][_0x4ebf61(0x452)]);const _0x5281b4=Object[_0x4ebf61(0x64e)](Object[_0x4ebf61(0x64e)]({},_0x100b1e),{'preTunedModel':_0x32f617});return _0x5281b4[_0x4ebf61(0x451)]=undefined,await this[_0x4ebf61(0x3a2)](_0x5281b4);}else{const _0x350f58=Object['assign']({},_0x100b1e);return await this[_0x4ebf61(0x3a2)](_0x350f58);}}else{const _0x5ec3f0=Object['assign']({},_0x100b1e),_0x275f3e=await this[_0x4ebf61(0x209)](_0x5ec3f0);let _0x5381d8='';if(_0x275f3e['metadata']!==undefined&&_0x275f3e[_0x4ebf61(0x3d3)][_0x4ebf61(0x259)]!==undefined)_0x5381d8=_0x275f3e[_0x4ebf61(0x3d3)]['tunedModel'];else _0x275f3e[_0x4ebf61(0x68e)]!==undefined&&_0x275f3e[_0x4ebf61(0x68e)][_0x4ebf61(0x566)](_0x4ebf61(0x500))&&(_0x5381d8=_0x275f3e['name'][_0x4ebf61(0x406)]('/operations/')[0x0]);const _0x53927a={'name':_0x5381d8,'state':exports[_0x4ebf61(0x415)][_0x4ebf61(0x657)]};return _0x53927a;}};}async[a0_0x254c3a(0x261)](_0x5440dd){const _0x378b9b=a0_0x254c3a;var _0x28f08b,_0x410970,_0x4b588f,_0x50ec60;let _0x480ada,_0x30db92='',_0x2844df={};if(this[_0x378b9b(0x6cf)][_0x378b9b(0x2b9)]()){const _0x35d796=getTuningJobParametersToVertex(_0x5440dd);return _0x30db92=formatMap(_0x378b9b(0x188),_0x35d796[_0x378b9b(0x1fb)]),_0x2844df=_0x35d796[_0x378b9b(0x32f)],delete _0x35d796[_0x378b9b(0x1fb)],delete _0x35d796[_0x378b9b(0x32f)],_0x480ada=this['apiClient'][_0x378b9b(0x610)]({'path':_0x30db92,'queryParams':_0x2844df,'body':JSON['stringify'](_0x35d796),'httpMethod':_0x378b9b(0x525),'httpOptions':(_0x28f08b=_0x5440dd[_0x378b9b(0x563)])===null||_0x28f08b===void 0x0?void 0x0:_0x28f08b['httpOptions'],'abortSignal':(_0x410970=_0x5440dd['config'])===null||_0x410970===void 0x0?void 0x0:_0x410970['abortSignal']})['then'](_0x2cd0ee=>{const _0x10afc9=_0x378b9b;return _0x2cd0ee[_0x10afc9(0x288)]()[_0x10afc9(0x3a5)](_0x27771a=>{const _0x883097=_0x10afc9,_0x12127d=_0x27771a;return _0x12127d[_0x883097(0x1ab)]={'headers':_0x2cd0ee[_0x883097(0x4e8)]},_0x12127d;});}),_0x480ada[_0x378b9b(0x3a5)](_0x442b39=>{const _0x39f8a8=tuningJobFromVertex(_0x442b39);return _0x39f8a8;});}else{const _0x295cf0=getTuningJobParametersToMldev(_0x5440dd);return _0x30db92=formatMap(_0x378b9b(0x188),_0x295cf0[_0x378b9b(0x1fb)]),_0x2844df=_0x295cf0[_0x378b9b(0x32f)],delete _0x295cf0[_0x378b9b(0x1fb)],delete _0x295cf0[_0x378b9b(0x32f)],_0x480ada=this['apiClient'][_0x378b9b(0x610)]({'path':_0x30db92,'queryParams':_0x2844df,'body':JSON[_0x378b9b(0x59a)](_0x295cf0),'httpMethod':_0x378b9b(0x525),'httpOptions':(_0x4b588f=_0x5440dd[_0x378b9b(0x563)])===null||_0x4b588f===void 0x0?void 0x0:_0x4b588f[_0x378b9b(0x234)],'abortSignal':(_0x50ec60=_0x5440dd[_0x378b9b(0x563)])===null||_0x50ec60===void 0x0?void 0x0:_0x50ec60['abortSignal']})[_0x378b9b(0x3a5)](_0x4d0830=>{const _0x1e927e=_0x378b9b;return _0x4d0830[_0x1e927e(0x288)]()['then'](_0x4595ff=>{const _0x3ed5a1=_0x4595ff;return _0x3ed5a1['sdkHttpResponse']={'headers':_0x4d0830['headers']},_0x3ed5a1;});}),_0x480ada['then'](_0x3ae427=>{const _0x4aeef3=tuningJobFromMldev(_0x3ae427);return _0x4aeef3;});}}async['listInternal'](_0x4182f8){const _0x261826=a0_0x254c3a;var _0x20261e,_0x43379d,_0x553a90,_0x2d8679;let _0x510803,_0x48bec3='',_0x16ef31={};if(this[_0x261826(0x6cf)]['isVertexAI']()){const _0x1a0e43=listTuningJobsParametersToVertex(_0x4182f8);return _0x48bec3=formatMap(_0x261826(0x661),_0x1a0e43[_0x261826(0x1fb)]),_0x16ef31=_0x1a0e43[_0x261826(0x32f)],delete _0x1a0e43[_0x261826(0x1fb)],delete _0x1a0e43[_0x261826(0x32f)],_0x510803=this['apiClient'][_0x261826(0x610)]({'path':_0x48bec3,'queryParams':_0x16ef31,'body':JSON['stringify'](_0x1a0e43),'httpMethod':_0x261826(0x525),'httpOptions':(_0x20261e=_0x4182f8[_0x261826(0x563)])===null||_0x20261e===void 0x0?void 0x0:_0x20261e[_0x261826(0x234)],'abortSignal':(_0x43379d=_0x4182f8[_0x261826(0x563)])===null||_0x43379d===void 0x0?void 0x0:_0x43379d[_0x261826(0x546)]})[_0x261826(0x3a5)](_0x5a039e=>{const _0x28eeda=_0x261826;return _0x5a039e[_0x28eeda(0x288)]()[_0x28eeda(0x3a5)](_0x500126=>{const _0x10e47d=_0x28eeda,_0x1686cd=_0x500126;return _0x1686cd['sdkHttpResponse']={'headers':_0x5a039e[_0x10e47d(0x4e8)]},_0x1686cd;});}),_0x510803[_0x261826(0x3a5)](_0x45431c=>{const _0x5c743b=_0x261826,_0x1e4d9b=listTuningJobsResponseFromVertex(_0x45431c),_0x3a4c0c=new ListTuningJobsResponse();return Object[_0x5c743b(0x64e)](_0x3a4c0c,_0x1e4d9b),_0x3a4c0c;});}else{const _0xd0959a=listTuningJobsParametersToMldev(_0x4182f8);return _0x48bec3=formatMap(_0x261826(0x3cd),_0xd0959a['_url']),_0x16ef31=_0xd0959a[_0x261826(0x32f)],delete _0xd0959a['_url'],delete _0xd0959a[_0x261826(0x32f)],_0x510803=this[_0x261826(0x6cf)]['request']({'path':_0x48bec3,'queryParams':_0x16ef31,'body':JSON[_0x261826(0x59a)](_0xd0959a),'httpMethod':_0x261826(0x525),'httpOptions':(_0x553a90=_0x4182f8['config'])===null||_0x553a90===void 0x0?void 0x0:_0x553a90[_0x261826(0x234)],'abortSignal':(_0x2d8679=_0x4182f8['config'])===null||_0x2d8679===void 0x0?void 0x0:_0x2d8679[_0x261826(0x546)]})['then'](_0x1e806e=>{const _0x12fc1a=_0x261826;return _0x1e806e[_0x12fc1a(0x288)]()[_0x12fc1a(0x3a5)](_0x728d56=>{const _0x44e296=_0x12fc1a,_0x1572c5=_0x728d56;return _0x1572c5[_0x44e296(0x1ab)]={'headers':_0x1e806e[_0x44e296(0x4e8)]},_0x1572c5;});}),_0x510803['then'](_0x11e427=>{const _0x2f759d=_0x261826,_0x5dfe96=listTuningJobsResponseFromMldev(_0x11e427),_0x55f1ed=new ListTuningJobsResponse();return Object[_0x2f759d(0x64e)](_0x55f1ed,_0x5dfe96),_0x55f1ed;});}}async[a0_0x254c3a(0x50d)](_0x1ee697){const _0x56b0d7=a0_0x254c3a;var _0x1e7b24,_0x16964b,_0x251c55,_0x167b59;let _0x3e499b,_0x5c10d9='',_0x2acec7={};if(this[_0x56b0d7(0x6cf)][_0x56b0d7(0x2b9)]()){const _0xbc3059=cancelTuningJobParametersToVertex(_0x1ee697);return _0x5c10d9=formatMap(_0x56b0d7(0x2dd),_0xbc3059[_0x56b0d7(0x1fb)]),_0x2acec7=_0xbc3059['_query'],delete _0xbc3059[_0x56b0d7(0x1fb)],delete _0xbc3059['_query'],_0x3e499b=this[_0x56b0d7(0x6cf)][_0x56b0d7(0x610)]({'path':_0x5c10d9,'queryParams':_0x2acec7,'body':JSON['stringify'](_0xbc3059),'httpMethod':'POST','httpOptions':(_0x1e7b24=_0x1ee697['config'])===null||_0x1e7b24===void 0x0?void 0x0:_0x1e7b24[_0x56b0d7(0x234)],'abortSignal':(_0x16964b=_0x1ee697[_0x56b0d7(0x563)])===null||_0x16964b===void 0x0?void 0x0:_0x16964b[_0x56b0d7(0x546)]})['then'](_0x50efcf=>{const _0x20ecee=_0x56b0d7;return _0x50efcf[_0x20ecee(0x288)]()['then'](_0x1a36fd=>{const _0x1c5228=_0x20ecee,_0x5858ce=_0x1a36fd;return _0x5858ce[_0x1c5228(0x1ab)]={'headers':_0x50efcf[_0x1c5228(0x4e8)]},_0x5858ce;});}),_0x3e499b[_0x56b0d7(0x3a5)](_0x52f1e7=>{const _0x2c53ac=cancelTuningJobResponseFromVertex(_0x52f1e7),_0x400807=new CancelTuningJobResponse();return Object['assign'](_0x400807,_0x2c53ac),_0x400807;});}else{const _0x682d9a=cancelTuningJobParametersToMldev(_0x1ee697);return _0x5c10d9=formatMap(_0x56b0d7(0x2dd),_0x682d9a['_url']),_0x2acec7=_0x682d9a[_0x56b0d7(0x32f)],delete _0x682d9a[_0x56b0d7(0x1fb)],delete _0x682d9a[_0x56b0d7(0x32f)],_0x3e499b=this[_0x56b0d7(0x6cf)][_0x56b0d7(0x610)]({'path':_0x5c10d9,'queryParams':_0x2acec7,'body':JSON['stringify'](_0x682d9a),'httpMethod':_0x56b0d7(0x5f7),'httpOptions':(_0x251c55=_0x1ee697[_0x56b0d7(0x563)])===null||_0x251c55===void 0x0?void 0x0:_0x251c55[_0x56b0d7(0x234)],'abortSignal':(_0x167b59=_0x1ee697[_0x56b0d7(0x563)])===null||_0x167b59===void 0x0?void 0x0:_0x167b59[_0x56b0d7(0x546)]})[_0x56b0d7(0x3a5)](_0x1c1a0a=>{const _0x3ffe37=_0x56b0d7;return _0x1c1a0a[_0x3ffe37(0x288)]()[_0x3ffe37(0x3a5)](_0x201b23=>{const _0x2d4d05=_0x3ffe37,_0xb0fa8c=_0x201b23;return _0xb0fa8c[_0x2d4d05(0x1ab)]={'headers':_0x1c1a0a[_0x2d4d05(0x4e8)]},_0xb0fa8c;});}),_0x3e499b[_0x56b0d7(0x3a5)](_0x657e5a=>{const _0x820b17=_0x56b0d7,_0xe4dfbc=cancelTuningJobResponseFromMldev(_0x657e5a),_0x4d9af6=new CancelTuningJobResponse();return Object[_0x820b17(0x64e)](_0x4d9af6,_0xe4dfbc),_0x4d9af6;});}}async[a0_0x254c3a(0x3a2)](_0x47d7f6){const _0x3c20bc=a0_0x254c3a;var _0x9f0034,_0x3042fe;let _0x490aa0,_0x1d1550='',_0x445061={};if(this['apiClient']['isVertexAI']()){const _0x296b4b=createTuningJobParametersPrivateToVertex(_0x47d7f6,_0x47d7f6);return _0x1d1550=formatMap(_0x3c20bc(0x661),_0x296b4b['_url']),_0x445061=_0x296b4b[_0x3c20bc(0x32f)],delete _0x296b4b[_0x3c20bc(0x1fb)],delete _0x296b4b[_0x3c20bc(0x32f)],_0x490aa0=this['apiClient'][_0x3c20bc(0x610)]({'path':_0x1d1550,'queryParams':_0x445061,'body':JSON[_0x3c20bc(0x59a)](_0x296b4b),'httpMethod':'POST','httpOptions':(_0x9f0034=_0x47d7f6[_0x3c20bc(0x563)])===null||_0x9f0034===void 0x0?void 0x0:_0x9f0034['httpOptions'],'abortSignal':(_0x3042fe=_0x47d7f6['config'])===null||_0x3042fe===void 0x0?void 0x0:_0x3042fe['abortSignal']})[_0x3c20bc(0x3a5)](_0x10ddc8=>{const _0x101b49=_0x3c20bc;return _0x10ddc8[_0x101b49(0x288)]()[_0x101b49(0x3a5)](_0x240459=>{const _0x28ca84=_0x101b49,_0x43833f=_0x240459;return _0x43833f[_0x28ca84(0x1ab)]={'headers':_0x10ddc8['headers']},_0x43833f;});}),_0x490aa0[_0x3c20bc(0x3a5)](_0x76031=>{const _0x36fcf4=tuningJobFromVertex(_0x76031);return _0x36fcf4;});}else throw new Error(_0x3c20bc(0x53f));}async['tuneMldevInternal'](_0xbbacd){const _0x24f6bd=a0_0x254c3a;var _0x5d88d6,_0x2232cc;let _0x1c51a9,_0x43950c='',_0x122d5f={};if(this[_0x24f6bd(0x6cf)][_0x24f6bd(0x2b9)]())throw new Error(_0x24f6bd(0x367));else{const _0x5087ce=createTuningJobParametersPrivateToMldev(_0xbbacd);return _0x43950c=formatMap('tunedModels',_0x5087ce[_0x24f6bd(0x1fb)]),_0x122d5f=_0x5087ce['_query'],delete _0x5087ce[_0x24f6bd(0x1fb)],delete _0x5087ce[_0x24f6bd(0x32f)],_0x1c51a9=this[_0x24f6bd(0x6cf)]['request']({'path':_0x43950c,'queryParams':_0x122d5f,'body':JSON['stringify'](_0x5087ce),'httpMethod':'POST','httpOptions':(_0x5d88d6=_0xbbacd[_0x24f6bd(0x563)])===null||_0x5d88d6===void 0x0?void 0x0:_0x5d88d6[_0x24f6bd(0x234)],'abortSignal':(_0x2232cc=_0xbbacd[_0x24f6bd(0x563)])===null||_0x2232cc===void 0x0?void 0x0:_0x2232cc[_0x24f6bd(0x546)]})[_0x24f6bd(0x3a5)](_0x3d2adb=>{const _0xe9598a=_0x24f6bd;return _0x3d2adb[_0xe9598a(0x288)]()[_0xe9598a(0x3a5)](_0x5be729=>{const _0x51b6c7=_0xe9598a,_0x3ecaf5=_0x5be729;return _0x3ecaf5['sdkHttpResponse']={'headers':_0x3d2adb[_0x51b6c7(0x4e8)]},_0x3ecaf5;});}),_0x1c51a9[_0x24f6bd(0x3a5)](_0x1ab228=>{const _0x83572b=tuningOperationFromMldev(_0x1ab228);return _0x83572b;});}}}/**
267
+ * @license
268
+ * Copyright 2025 Google LLC
269
+ * SPDX-License-Identifier: Apache-2.0
270
+ */
271
+ const GOOGLE_API_KEY_HEADER=a0_0x254c3a(0x4e3);class WebAuth{constructor(_0x23d9fa){const _0x531c25=a0_0x254c3a;this[_0x531c25(0x6a4)]=_0x23d9fa;}async[a0_0x254c3a(0x267)](_0x34f330,_0x26d910){const _0x29e7c0=a0_0x254c3a;if(_0x34f330['get'](GOOGLE_API_KEY_HEADER)!==null)return;if(this[_0x29e7c0(0x6a4)][_0x29e7c0(0x320)](_0x29e7c0(0x427)))throw new Error(_0x29e7c0(0x358));if(!this[_0x29e7c0(0x6a4)])throw new Error('API\x20key\x20is\x20missing.\x20Please\x20provide\x20a\x20valid\x20API\x20key.');_0x34f330[_0x29e7c0(0x30e)](GOOGLE_API_KEY_HEADER,this[_0x29e7c0(0x6a4)]);}}/**
272
+ * @license
273
+ * Copyright 2025 Google LLC
274
+ * SPDX-License-Identifier: Apache-2.0
275
+ */
276
+ const LANGUAGE_LABEL_PREFIX=a0_0x254c3a(0x25a);class GoogleGenAI{get[a0_0x254c3a(0x204)](){const _0x42b6b7=a0_0x254c3a;if(this[_0x42b6b7(0x4cd)]!==undefined)return this[_0x42b6b7(0x4cd)];console['warn']('GoogleGenAI.interactions:\x20Interactions\x20usage\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.');if(this['vertexai'])throw new Error('This\x20version\x20of\x20the\x20GenAI\x20SDK\x20does\x20not\x20support\x20Vertex\x20AI\x20API\x20for\x20interactions.');const _0x464203=this[_0x42b6b7(0x234)];(_0x464203===null||_0x464203===void 0x0?void 0x0:_0x464203[_0x42b6b7(0x55c)])&&console[_0x42b6b7(0x69c)]('GoogleGenAI.interactions:\x20Client\x20level\x20httpOptions.extraBody\x20is\x20not\x20supported\x20by\x20the\x20interactions\x20client\x20and\x20will\x20be\x20ignored.');const _0x5b196b=new GeminiNextGenAPIClient({'baseURL':this[_0x42b6b7(0x6cf)][_0x42b6b7(0x67a)](),'apiKey':this['apiKey'],'apiVersion':this[_0x42b6b7(0x6cf)][_0x42b6b7(0x33c)](),'clientAdapter':this[_0x42b6b7(0x6cf)],'defaultHeaders':this['apiClient'][_0x42b6b7(0x38f)](),'timeout':_0x464203===null||_0x464203===void 0x0?void 0x0:_0x464203[_0x42b6b7(0x4a1)]});return this[_0x42b6b7(0x4cd)]=_0x5b196b[_0x42b6b7(0x204)],this[_0x42b6b7(0x4cd)];}constructor(_0x3edf8e){const _0x46cd54=a0_0x254c3a;var _0x2a19b4;if(_0x3edf8e[_0x46cd54(0x6a4)]==null)throw new Error(_0x46cd54(0x6b7)+crossError()[_0x46cd54(0x2c2)]);this['vertexai']=(_0x2a19b4=_0x3edf8e[_0x46cd54(0x3d4)])!==null&&_0x2a19b4!==void 0x0?_0x2a19b4:![],this[_0x46cd54(0x6a4)]=_0x3edf8e[_0x46cd54(0x6a4)],this['apiVersion']=_0x3edf8e[_0x46cd54(0x2d1)],this[_0x46cd54(0x234)]=_0x3edf8e[_0x46cd54(0x234)];const _0x28f9e4=new WebAuth(this[_0x46cd54(0x6a4)]);this['apiClient']=new ApiClient({'auth':_0x28f9e4,'apiVersion':this[_0x46cd54(0x2d1)],'apiKey':this[_0x46cd54(0x6a4)],'vertexai':this['vertexai'],'httpOptions':this[_0x46cd54(0x234)],'userAgentExtra':LANGUAGE_LABEL_PREFIX+'cross','uploader':new CrossUploader(),'downloader':new CrossDownloader()}),this[_0x46cd54(0x70b)]=new Models(this['apiClient']),this[_0x46cd54(0x536)]=new Live(this['apiClient'],_0x28f9e4,new CrossWebSocketFactory()),this[_0x46cd54(0x196)]=new Chats(this['models'],this[_0x46cd54(0x6cf)]),this[_0x46cd54(0x5f8)]=new Batches(this[_0x46cd54(0x6cf)]),this[_0x46cd54(0x172)]=new Caches(this[_0x46cd54(0x6cf)]),this[_0x46cd54(0x3c1)]=new Files(this[_0x46cd54(0x6cf)]),this[_0x46cd54(0x185)]=new Operations(this[_0x46cd54(0x6cf)]),this['authTokens']=new Tokens(this['apiClient']),this[_0x46cd54(0x577)]=new Tunings(this['apiClient']),this['fileSearchStores']=new FileSearchStores(this[_0x46cd54(0x6cf)]);}}exports[a0_0x254c3a(0x3a9)]=ApiError,exports[a0_0x254c3a(0x41d)]=Batches,exports[a0_0x254c3a(0x397)]=Caches,exports[a0_0x254c3a(0x373)]=CancelTuningJobResponse,exports[a0_0x254c3a(0x3ce)]=Chat,exports['Chats']=Chats,exports[a0_0x254c3a(0x4f4)]=ComputeTokensResponse,exports[a0_0x254c3a(0x1ed)]=ContentReferenceImage,exports[a0_0x254c3a(0x2f8)]=ControlReferenceImage,exports[a0_0x254c3a(0x5e2)]=CountTokensResponse,exports[a0_0x254c3a(0x529)]=CreateFileResponse,exports[a0_0x254c3a(0x4e5)]=DeleteCachedContentResponse,exports[a0_0x254c3a(0x50c)]=DeleteFileResponse,exports[a0_0x254c3a(0x1db)]=DeleteModelResponse,exports[a0_0x254c3a(0x609)]=EditImageResponse,exports[a0_0x254c3a(0x6df)]=EmbedContentResponse,exports[a0_0x254c3a(0x5dd)]=Files,exports[a0_0x254c3a(0x5ef)]=FunctionResponse,exports[a0_0x254c3a(0x385)]=FunctionResponseBlob,exports[a0_0x254c3a(0x38b)]=FunctionResponseFileData,exports['FunctionResponsePart']=FunctionResponsePart,exports[a0_0x254c3a(0x365)]=GenerateContentResponse,exports[a0_0x254c3a(0x410)]=GenerateContentResponsePromptFeedback,exports['GenerateContentResponseUsageMetadata']=GenerateContentResponseUsageMetadata,exports['GenerateImagesResponse']=GenerateImagesResponse,exports[a0_0x254c3a(0x4c6)]=GenerateVideosOperation,exports[a0_0x254c3a(0x64f)]=GenerateVideosResponse,exports[a0_0x254c3a(0x2de)]=GoogleGenAI,exports[a0_0x254c3a(0x70f)]=HttpResponse,exports[a0_0x254c3a(0x551)]=ImportFileOperation,exports['ImportFileResponse']=ImportFileResponse,exports[a0_0x254c3a(0x3b8)]=InlinedEmbedContentResponse,exports['InlinedResponse']=InlinedResponse,exports[a0_0x254c3a(0x672)]=ListBatchJobsResponse,exports[a0_0x254c3a(0x58f)]=ListCachedContentsResponse,exports[a0_0x254c3a(0x6b0)]=ListDocumentsResponse,exports[a0_0x254c3a(0x4e4)]=ListFileSearchStoresResponse,exports[a0_0x254c3a(0x41b)]=ListFilesResponse,exports[a0_0x254c3a(0x1c4)]=ListModelsResponse,exports['ListTuningJobsResponse']=ListTuningJobsResponse,exports[a0_0x254c3a(0x54c)]=Live,exports['LiveClientToolResponse']=LiveClientToolResponse,exports[a0_0x254c3a(0x52f)]=LiveMusicServerMessage,exports[a0_0x254c3a(0x419)]=LiveSendToolResponseParameters,exports['LiveServerMessage']=LiveServerMessage,exports['MaskReferenceImage']=MaskReferenceImage,exports['Models']=Models,exports[a0_0x254c3a(0x1b5)]=Operations,exports['Pager']=Pager,exports[a0_0x254c3a(0x5f4)]=RawReferenceImage,exports[a0_0x254c3a(0x37e)]=RecontextImageResponse,exports[a0_0x254c3a(0x6af)]=RegisterFilesResponse,exports[a0_0x254c3a(0x582)]=ReplayResponse,exports['SegmentImageResponse']=SegmentImageResponse,exports['Session']=Session,exports['SingleEmbedContentResponse']=SingleEmbedContentResponse,exports[a0_0x254c3a(0x575)]=StyleReferenceImage,exports[a0_0x254c3a(0x494)]=SubjectReferenceImage,exports[a0_0x254c3a(0x441)]=Tokens,exports[a0_0x254c3a(0x372)]=UploadToFileSearchStoreOperation,exports[a0_0x254c3a(0x675)]=UploadToFileSearchStoreResponse,exports[a0_0x254c3a(0x485)]=UploadToFileSearchStoreResumableResponse,exports[a0_0x254c3a(0x2b8)]=UpscaleImageResponse,exports[a0_0x254c3a(0x54a)]=createFunctionResponsePartFromBase64,exports[a0_0x254c3a(0x6f0)]=createFunctionResponsePartFromUri,exports['createModelContent']=createModelContent,exports[a0_0x254c3a(0x6ac)]=createPartFromBase64,exports[a0_0x254c3a(0x2ef)]=createPartFromCodeExecutionResult,exports[a0_0x254c3a(0x48a)]=createPartFromExecutableCode,exports[a0_0x254c3a(0x653)]=createPartFromFunctionCall,exports[a0_0x254c3a(0x32d)]=createPartFromFunctionResponse,exports['createPartFromText']=createPartFromText,exports[a0_0x254c3a(0x4fa)]=createPartFromUri,exports[a0_0x254c3a(0x517)]=createUserContent,exports[a0_0x254c3a(0x5c2)]=mcpToTool,exports['setDefaultBaseUrls']=setDefaultBaseUrls;