@nutanix-scratch/objects-js-client 4.0.1-alpha.2 → 4.0.1

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.
Files changed (197) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +39 -27
  3. package/dist/Ntnx-Objects-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Objects-js-client.js +227 -96
  5. package/dist/es/ApiClient.d.ts +8 -1
  6. package/dist/es/ApiClient.js +249 -189
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +9 -9
  9. package/dist/es/apis/objectstores-endpoints.d.ts +66 -95
  10. package/dist/es/apis/objectstores-endpoints.js +205 -170
  11. package/dist/es/apis/stats-endpoints.d.ts +69 -0
  12. package/dist/es/apis/stats-endpoints.js +154 -0
  13. package/dist/es/index.d.ts +43 -21
  14. package/dist/es/index.js +135 -47
  15. package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
  16. package/dist/es/models/common/v1/config/FQDN.js +56 -21
  17. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  18. package/dist/es/models/common/v1/config/Flag.js +65 -21
  19. package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
  20. package/dist/es/models/common/v1/config/IPAddress.js +53 -21
  21. package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
  22. package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
  23. package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
  24. package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
  25. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  26. package/dist/es/models/common/v1/config/KVPair.js +70 -24
  27. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  28. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  29. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  30. package/dist/es/models/common/v1/config/Message.js +57 -25
  31. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
  32. package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
  33. package/dist/es/models/common/v1/config/Metadata.js +65 -27
  34. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  35. package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
  36. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  37. package/dist/es/models/common/v1/response/ApiLink.js +53 -21
  38. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  39. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
  40. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  41. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  42. package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  43. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
  44. package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
  45. package/dist/es/models/common/v1/stats/TimeIntValuePair.js +313 -0
  46. package/dist/es/models/objects/v4/config/Certificate.d.ts +146 -0
  47. package/dist/es/models/objects/v4/{operations → config}/Certificate.js +184 -43
  48. package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  49. package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +41 -17
  50. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
  51. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  52. package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  53. package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
  54. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  55. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  56. package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
  57. package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
  58. package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  59. package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
  60. package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
  61. package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  62. package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  63. package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  64. package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  65. package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  66. package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
  67. package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  68. package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
  69. package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  70. package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  71. package/dist/es/models/objects/v4/config/State.js +133 -0
  72. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  73. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  74. package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
  75. package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
  76. package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  77. package/dist/es/models/objects/v4/error/ErrorResponse.js +62 -25
  78. package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  79. package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
  80. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  81. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  82. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
  83. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
  84. package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
  85. package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
  86. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
  87. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
  88. package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
  89. package/dist/es/models/prism/v4/config/TaskReference.js +55 -20
  90. package/dist/es/models/validation/ValidationError.js +5 -5
  91. package/dist/es/utils/ValidationUtils.js +5 -5
  92. package/dist/lib/ApiClient.d.ts +8 -1
  93. package/dist/lib/ApiClient.js +249 -189
  94. package/dist/lib/Paginable.d.ts +1 -1
  95. package/dist/lib/Paginable.js +9 -9
  96. package/dist/lib/apis/objectstores-endpoints.d.ts +66 -95
  97. package/dist/lib/apis/objectstores-endpoints.js +205 -170
  98. package/dist/lib/apis/stats-endpoints.d.ts +69 -0
  99. package/dist/lib/apis/stats-endpoints.js +154 -0
  100. package/dist/lib/index.d.ts +43 -21
  101. package/dist/lib/index.js +135 -47
  102. package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
  103. package/dist/lib/models/common/v1/config/FQDN.js +56 -21
  104. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  105. package/dist/lib/models/common/v1/config/Flag.js +65 -21
  106. package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
  107. package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
  108. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
  109. package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
  110. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
  111. package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
  112. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  113. package/dist/lib/models/common/v1/config/KVPair.js +70 -24
  114. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  115. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  116. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  117. package/dist/lib/models/common/v1/config/Message.js +57 -25
  118. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
  119. package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
  120. package/dist/lib/models/common/v1/config/Metadata.js +65 -27
  121. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  122. package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
  123. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  124. package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
  125. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  126. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
  127. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  128. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  129. package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  130. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
  131. package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
  132. package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +313 -0
  133. package/dist/lib/models/objects/v4/config/Certificate.d.ts +146 -0
  134. package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +184 -43
  135. package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  136. package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +41 -17
  137. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
  138. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  139. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  140. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
  141. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  142. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  143. package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
  144. package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
  145. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  146. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
  147. package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
  148. package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  149. package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  150. package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  151. package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  152. package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  153. package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
  154. package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  155. package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
  156. package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  157. package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  158. package/dist/lib/models/objects/v4/config/State.js +133 -0
  159. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  160. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  161. package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
  162. package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
  163. package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  164. package/dist/lib/models/objects/v4/error/ErrorResponse.js +62 -25
  165. package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  166. package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
  167. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  168. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  169. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
  170. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
  171. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
  172. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
  173. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
  174. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
  175. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
  176. package/dist/lib/models/prism/v4/config/TaskReference.js +55 -20
  177. package/dist/lib/models/validation/ValidationError.js +5 -5
  178. package/dist/lib/utils/ValidationUtils.js +5 -5
  179. package/package.json +1 -1
  180. package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
  181. package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  182. package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  183. package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
  184. package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  185. package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  186. package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  187. package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
  188. package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
  189. package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
  190. package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  191. package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  192. package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
  193. package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  194. package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  195. package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  196. package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
  197. package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Objects=t())}("undefined"==typeof self?this:self,(()=>(()=>{var e={960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=s,s.default=s,s.stable=f,s.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var s;void 0===r&&(r=a()),l(e,"",0,[],void 0,0,r);try{s=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function u(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);void 0!==a.get?a.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,a])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,a,s,c,f){var p;if(c+=1,"object"===t(e)&&null!==e){for(p=0;p<a.length;p++)if(a[p]===e)return void u(r,e,o,s);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,s);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(p=0;p<e.length;p++)l(e[p],p,p,a,e,c,f);else{var d=Object.keys(e);for(p=0;p<d.length;p++){var h=d[p];l(e[h],h,p,a,e,c,f)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=a());var s,u=p(e,"",0,[],void 0,0,r)||e;try{s=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function p(e,i,a,s,l,f,d){var h;if(f+=1,"object"===t(e)&&null!==e){for(h=0;h<s.length;h++)if(s[h]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&f>d.depthLimit)return void u(n,e,i,l);if(void 0!==d.edgesLimit&&a+1>d.edgesLimit)return void u(n,e,i,l);if(s.push(e),Array.isArray(e))for(h=0;h<e.length;h++)p(e[h],h,h,s,e,f,d);else{var y={},v=Object.keys(e).sort(c);for(h=0;h<v.length;h++){var b=v[h];p(e[b],b,h,s,e,f,d),y[b]=e[b]}if(void 0===l)return y;o.push([l,i,e]),l[i]=y}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function p(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function d(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var s=p(o),u=s.device,l=s.isUnc,c=s.isAbsolute,f=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=d(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=p(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=d(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return p(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),l=u,f=0;f<u;f++)if(i[f]!==a[f]){l=f;break}if(0==l)return t;var p=[];for(f=l;f<i.length;f++)p.push("..");return(p=p.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var h=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return h.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},y.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},y.sep="/",y.delimiter=":",e.exports=o?c:y,e.exports.posix=y,e.exports.win32=c},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var a=t[o-1],s=0;s<i+1;s++)t.push(a)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},e.exports=n},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),a=n(340),s=n(695),u=n(388),l=n(19),c=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=m,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var d="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function h(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&y(t,n,e[n]);return t.join("&")}function y(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){y(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&y(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function g(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(n=i[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=d(n.slice(t+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function m(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new g(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=h,p.parseString=v,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":h,"application/json":a},p.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},g.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=g,i(m.prototype),s(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},m.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},m.prototype.query=function(e){return"string"!=typeof e&&(e=h(e)),e&&this._query.push(e),this},m.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},m.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},m.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},m.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},m.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},m.prototype.ca=m.prototype.agent,m.prototype.buffer=m.prototype.ca,m.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},m.prototype.pipe=m.prototype.write,m.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},m.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},m.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},m.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])y(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,r){if(g(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),j(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",$=!1,P=["{","}"];return d(n)&&($=!0,P=["[","]"]),k(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==a.length||$&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=$?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)E(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return p(e,n,r,s,t,$)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,P)):P[0]+w+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===$(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===$(e)}function j(e){return w(e)&&("[object Error]"===$(e)||e instanceof Error)}function k(e){return"function"==typeof e}function $(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=g,t.isRegExp=m,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>di});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=Z.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],h=0;h<256;++h)d.push((h+256).toString(16).substr(1));const y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&p.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return y(r)};var b,g=n(540),m=n.n(g),w=n(545),O=n.n(w),j=n(799),k=n.n(j),$=n(784),P=n.n($),T=n(548);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function S(){S=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),F(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=E(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},S.apply(this,arguments)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=_(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function _(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function C(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t){return e.get(J(e,t))}function L(e,t,n){return e.set(J(e,t),n),n}function J(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}m()(t());var U=new WeakMap,B=new WeakMap,q=new WeakMap,V=new WeakMap,z=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap,H=new WeakSet,Z=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),x(this,n=H),n.add(this),C(this,U,void 0),C(this,B,void 0),C(this,q,void 0),C(this,V,void 0),C(this,z,void 0),C(this,W,void 0),C(this,G,void 0),C(this,K,void 0),L(K,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},L(z,this,3e4),L(W,this,3e4),L(G,this,18e5),this.readTimeout=M(W,this),this.connectTimeout=M(z,this),this.cache=!0,L(B,this,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,L(q,this,null),this.username=null,this.password=null,L(V,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===E(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var s={};for(var a in t)if(t.hasOwnProperty(a)){var u=e.convertToType(a,o),l=e.convertToType(t[a],i);s[u]=l}return s}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],(o=[{key:"verifySsl",get:function(){return M(V,this)},set:function(e){this.requestAgent=e?null:new(O().Agent)({rejectUnauthorized:!1}),L(V,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=k().createWriteStream(e,{flags:"a"})),L(q,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&L(B,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),L(U,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==M(U,this)&&""!==this.host&&""!==this.port?r=M(U,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=I(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,a,s,u,l,c,f,p){var d=this,h=this.buildUrl(e,o),y=t()(r,h);if(y.oldCallback=y.callback,y.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},J(H,this,te).call(this,y,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),y.query(J(H,this,ee).call(this,i)),y.set(this.defaultHeaders).set(J(H,this,ee).call(this,a)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==a["NTNX-Request-Id"]&&void 0!==a["NTNX-Request-Id"])){var b=v();y.set(J(H,this,ee).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||y.set(J(H,this,ee).call(this,{"User-Agent":"Nutanix-objects-js-client/4.0.1-alpha.2"})),this.requestAgent&&y.agent(this.requestAgent);var m={};m.response=J(H,this,ie).call(this,this.connectTimeout,M(z,this)),m.deadline=J(H,this,ie).call(this,this.readTimeout,M(W,this)),y.timeout(m);var w=a.hasOwnProperty("Content-Type")?a["Content-Type"]:J(H,this,Q).call(this,c);if(w?"multipart/form-data"!=w&&y.type(w):y.header["Content-Type"]||y.type("application/json"),J(H,this,ue).call(this,M(K,this).INFO,null,"Request URL :",r,h),J(H,this,ue).call(this,M(K,this).DEBUG,J(H,this,fe),"Request Headers :",void 0===y.header?"":y.header),"application/x-www-form-urlencoded"===w)y.send(J(H,this,ee).call(this,s));else if("multipart/form-data"==w){var O=J(H,this,ee).call(this,s);for(var j in O)O.hasOwnProperty(j)&&(J(H,this,Y).call(this,O[j])?y.attach(j,O[j]):y.field(j,O[j]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(J(H,this,ue).call(this,M(K,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(y);else{var $;try{$=n(965)}catch(e){J(H,this,ue).call(this,M(K,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){y.write(e)},close:function(){J(H,this,ue).call(this,M(K,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){J(H,this,ue).call(this,M(K,this).ERROR,null,"READABLE STREAM ABORTED")}})):y.send(u)}return new Promise((function(t,n){y.on("error",(function(e){J(H,d,ue).call(d,M(K,d).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){J(H,d,pe).call(d,r,e,i,p,t,n)}))}))}u&&y.send(u)}"Blob"==typeof p?y.responseType("blob"):"String"===p&&y.responseType("string"),J(H,this,se).call(this,y),J(H,this,ue).call(this,M(K,this).DEBUG,null,"Request Body :",void 0===y._data?"":y._data);var T=a.hasOwnProperty("Accept")?a.Accept:J(H,this,Q).call(this,f);return a.hasOwnProperty("Accept")&&"application/octet-stream"===a.Accept||1==f.length&&"application/octet-stream"===f[0]?(y.accept("application/octet-stream"),y.buffer(!1),new Promise((function(e,t){var r=null;if(g){var o;try{o=n(965)}catch(e){J(H,d,ue).call(d,M(K,d).ERROR,null,"Error fetching steam/web")}if(d.downloadDestination instanceof o.WritableStream){var i=d.downloadDestination.getWriter();try{y.on("data",(function(e){i.write(e)}))}catch(e){J(H,d,ue).call(d,M(K,d).ERROR,null,"Issue while downloading file",e)}y.on("response",(function(t){J(H,d,ue).call(d,M(K,d).INFO,null,"Response Status :",t.status),J(H,d,ue).call(d,M(K,d).DEBUG,J(H,d,fe),"Response Headers :",t.headers);var n=J(H,d,re).call(d,t,p);e({data:n,response:t})})).on("error",(function(e){J(H,d,ue).call(d,M(K,d).ERROR,null,"Caught the following error :",e),t(e)}))}else{var a="Incompatible downloadDestination for Browser Environment, must be WritableStream";J(H,d,ue).call(d,M(K,d).ERROR,null,a),t(a)}}else{null!==d.downloadDestination&&void 0!==d.downloadDestination&&"string"==typeof d.downloadDestination||(J(H,d,ue).call(d,M(K,d).ERROR,null,"Incompatible downloadDestination must be string, is",d.downloadDestination),J(H,d,ue).call(d,M(K,d).ERROR,null,"Downloading file to base directory"),d.downloadDestination="."),r=d.downloadDestination+"/downloaded_file_"+Date.now()+".txt";var s=k().createWriteStream(r);J(H,d,ue).call(d,M(K,d).INFO,null,"Streaming response to : ",r),y.pipe(s),y.on("response",(function(n){J(H,d,ue).call(d,M(K,d).INFO,null,"Response Status :",n.status),J(H,d,ue).call(d,M(K,d).DEBUG,J(H,d,fe),"Response Headers :",n.headers);var o=J(H,d,re).call(d,n,p);n.ok||(J(H,d,ue).call(d,M(K,d).ERROR,null,o),t(A(A({},n.error),{},{data:o})));var i="";if(void 0!==n.headers["content-disposition"]&&null!==n.headers["content-disposition"]){var a=n.headers["content-disposition"].match(S(/.*filename="(.*)".*/,{filename:1})),u=P().parse(a.groups.filename);i=d.downloadDestination+"/"+u.name+"_"+Date.now()+u.ext,void 0===o&&((o=new p).data={path:P().parse(i),$objectType:"Path"})}s.on("finish",(function(){J(H,d,ue).call(d,M(K,d).INFO,null,"Finished streaming response"),0!==i.length?(J(H,d,ue).call(d,M(K,d).INFO,null,"Content-Disposition header found [",i,"] is final filename"),s.close(),k().rename(r,i,(function(){e({data:o,response:n})}))):(J(H,d,ue).call(d,M(K,d).ERROR,null,"Content-Disposition header not found [",r,"] is final filename"),e({data:o,response:n}))})).on("error",(function(e){J(H,d,ue).call(d,M(K,d).ERROR,null,"Caught the following error :",e),error.data=J(H,d,ne).call(d,error),t(e)}))})).on("error",(function(e){J(H,d,ue).call(d,M(K,d).ERROR,null,"Caught the following error :",err),null!==e.response&&void 0!==e.response?e.data=J(H,d,re).call(d,e.response,p):e.data=J(H,d,ne).call(d,e),t(e)}))}}))):(T&&y.accept(T),new Promise((function(t,n){y.on("error",(function(e){J(H,d,ue).call(d,M(K,d).DEBUG,null,"Caught the following error :",e)})).retry(d.maxRetryAttempts,d.retryInterval,[]).then((function(r){J(H,d,pe).call(d,r,e,i,p,t,n)})).catch((function(e){J(H,d,ue).call(d,M(K,d).DEBUG,null,"Caught error during the request!"),J(H,d,ue).call(d,M(K,d).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=J(H,d,re).call(d,e.response,p):e.data=J(H,d,ne).call(d,e),n(e)}))})))}}])&&N(r.prototype,o),i&&N(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function X(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function Q(e){for(var t=0;t<e.length;t++)if(J(H,this,X).call(this,e[t]))return e[t];return e[0]}function Y(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof T.Blob&&e instanceof T.Blob||"function"==typeof File&&e instanceof File}function ee(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];J(H,this,Y).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function te(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),J(H,n,ue).call(n,M(K,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}J(H,n,ue).call(n,M(K,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),J(H,n,ue).call(n,M(K,n).DEBUG,null,"oauth2 applied to request");break;default:throw J(H,n,ue).call(n,M(K,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ne(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function re(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===E(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),b.convertToType(n,t)}function oe(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function ie(e,t){return e<=0?e=t:e>M(G,this)&&(e=M(G,this)),e}function ae(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=I(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}L(B,this,t),J(H,this,ue).call(this,M(K,this).DEBUG,null,"Retained cookie :",t)}else L(B,this,null)}function se(e){null!=M(B,this)&&e.set(J(H,this,ee).call(this,{Cookie:M(B,this)}))}function ue(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===E(e)&&"key"in e&&"value"in e&&"symbol"===E(e.value)||(e=M(K,this).INFO),!J(H,this,le).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=J(H,this,ce).call(this)+" "+e.key+" - "+i,void 0!==M(q,this)&&null!==M(q,this)&&"function"==typeof M(q,this).log?M(q,this).log(i):console.log(i)}}function le(e){return!this.debug&&e===M(K,this).DEBUG}function ce(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function fe(e){if("object"!==E(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function pe(e,t,n,r,o,i){try{J(H,this,ue).call(this,M(K,this).INFO,null,"Response Status :",e.status),J(H,this,ue).call(this,M(K,this).DEBUG,J(H,this,fe),"Response Headers :",e.headers),J(H,this,ae).call(this,e||{});var a=J(H,this,re).call(this,e,r);J(H,this,ue).call(this,M(K,this).DEBUG,null,"Response Body :",a),e.ok?(this.addEtagToReservedMap(e,a),J(H,this,oe).call(this,a,t,n),o({data:a,response:e})):(J(H,this,ue).call(this,M(K,this).ERROR,null,a),i(A(A({},e.error),{},{data:a})))}catch(e){J(H,this,ue).call(this,M(K,this).DEBUG,null,"Caught error while processing response!"),J(H,this,ue).call(this,M(K,this).ERROR,null,e),e.data=J(H,this,ne).call(this,e),i(e)}}b=Z,Z.instance=new Z;var de={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return de[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===de.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(de);const he=de;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var ge=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&ve(e.prototype,null),t&&ve(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oe(r.key),r)}}function Oe(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}var je=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&we(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ee(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e,t){if("object"!=ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(t)?t:t+""}var Se=new WeakSet,Fe=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Se),n.add(t),this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pe(Pe(Pe({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new je("value","undefined or null");if(!ge.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new je("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new je("prefixLength","undefined or null");if(!ge.validateMaximum(this.prefixLength,32))return new je("prefixLength","does not satisfy required maximum constraint: 32");if(!ge.validateMinimum(this.prefixLength,0))return new je("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ne(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ne(r.key),r)}}function Ne(e){var t=function(e,t){if("object"!=Re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Re(t)?t:t+""}Fe.prototype.value=void 0,Fe.prototype.prefixLength=32,Fe.prototype.$reserved=void 0,Fe.prototype.$objectType=void 0,Fe.prototype.$unknownFields=void 0;var _e=new WeakSet,Ce=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=_e),n.add(t),this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ie(Ie(Ie({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new je("value","undefined or null");if(!ge.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new je("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new je("prefixLength","undefined or null");if(!ge.validateMaximum(this.prefixLength,128))return new je("prefixLength","does not satisfy required maximum constraint: 128");if(!ge.validateMinimum(this.prefixLength,0))return new je("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ie({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ue(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ue(r.key),r)}}function Ue(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xe(t)?t:t+""}Ce.prototype.value=void 0,Ce.prototype.prefixLength=128,Ce.prototype.$reserved=void 0,Ce.prototype.$objectType=void 0,Ce.prototype.$unknownFields=void 0;var Be=new WeakSet,qe=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Be),n.add(t),this.$objectType="common.v1.config.IPAddress",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return Le(Le(Le({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("ipv6","undefined or null"):new je("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Fe.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(Ce.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Le({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Je(t.prototype,n),r&&Je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ke(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e,t){if("object"!=Ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ve(t)?t:t+""}qe.prototype.ipv4=void 0,qe.prototype.ipv6=void 0,qe.prototype.$reserved=void 0,qe.prototype.$objectType=void 0,qe.prototype.$unknownFields=void 0;var He=new WeakSet,Ze=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=He),n.add(t),this.$objectType="common.v1.config.Metadata",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getOwnerReferenceId",value:function(){return this.ownerReferenceId}},{key:"setOwnerReferenceId",value:function(e){this.ownerReferenceId=e}},{key:"getOwnerUserName",value:function(){return this.ownerUserName}},{key:"setOwnerUserName",value:function(e){this.ownerUserName=e}},{key:"getProjectReferenceId",value:function(){return this.projectReferenceId}},{key:"setProjectReferenceId",value:function(e){this.projectReferenceId=e}},{key:"getProjectName",value:function(){return this.projectName}},{key:"setProjectName",value:function(e){this.projectName=e}},{key:"getCategoryIds",value:function(){return this.categoryIds}},{key:"setCategoryIds",value:function(e){this.categoryIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return We(We(We(We(We(We({},void 0!==this.getOwnerReferenceId()&&null!==this.getOwnerReferenceId()?{ownerReferenceId:this.getOwnerReferenceId()}:{}),void 0!==this.getOwnerUserName()&&null!==this.getOwnerUserName()?{ownerUserName:this.getOwnerUserName()}:{}),void 0!==this.getProjectReferenceId()&&null!==this.getProjectReferenceId()?{projectReferenceId:this.getProjectReferenceId()}:{}),void 0!==this.getProjectName()&&null!==this.getProjectName()?{projectName:this.getProjectName()}:{}),void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("ownerReferenceId"===t){if(void 0===this.ownerReferenceId||null===this.ownerReferenceId)return new je("ownerReferenceId","undefined or null");if(!ge.validatePattern(this.ownerReferenceId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("ownerReferenceId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("ownerUserName"===t){if(void 0===this.ownerUserName||null===this.ownerUserName)return new je("ownerUserName","undefined or null");if(!ge.validateMaxLength(this.ownerUserName,128))return new je("ownerUserName","does not satisfy required maxLength constraint: 128")}if("projectReferenceId"===t){if(void 0===this.projectReferenceId||null===this.projectReferenceId)return new je("projectReferenceId","undefined or null");if(!ge.validatePattern(this.projectReferenceId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("projectReferenceId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("projectName"===t){if(void 0===this.projectName||null===this.projectName)return new je("projectName","undefined or null");if(!ge.validateMaxLength(this.projectName,128))return new je("projectName","does not satisfy required maxLength constraint: 128")}return"categoryIds"!==t||void 0!==this.categoryIds&&null!==this.categoryIds?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("categoryIds","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ownerReferenceId")&&null!==t.ownerReferenceId&&void 0!==t.ownerReferenceId&&n.setOwnerReferenceId(t.ownerReferenceId),t.hasOwnProperty("ownerUserName")&&null!==t.ownerUserName&&void 0!==t.ownerUserName&&n.setOwnerUserName(t.ownerUserName),t.hasOwnProperty("projectReferenceId")&&null!==t.projectReferenceId&&void 0!==t.projectReferenceId&&n.setProjectReferenceId(t.projectReferenceId),t.hasOwnProperty("projectName")&&null!==t.projectName&&void 0!==t.projectName&&n.setProjectName(t.projectName),t.hasOwnProperty("categoryIds")&&null!==t.categoryIds&&void 0!==t.categoryIds){for(i=[],r=t.categoryIds,o=0;o<r.length;o++)i.push(r[o]);n.setCategoryIds(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var s in n.$unknownFields=We({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],n&&Ge(t.prototype,n),r&&Ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=tt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tt(r.key),r)}}function tt(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xe(t)?t:t+""}Ze.prototype.ownerReferenceId=void 0,Ze.prototype.ownerUserName=void 0,Ze.prototype.projectReferenceId=void 0,Ze.prototype.projectName=void 0,Ze.prototype.categoryIds=void 0,Ze.prototype.$reserved=void 0,Ze.prototype.$objectType=void 0,Ze.prototype.$unknownFields=void 0;var nt=new WeakSet,rt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=nt),n.add(t),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ye(Ye(Ye({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("rel","undefined or null"):new je("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ye({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&et(t.prototype,n),r&&et(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ot(e){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ot(e)}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ut(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ut(r.key),r)}}function ut(e){var t=function(e,t){if("object"!=ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ot(t)?t:t+""}rt.prototype.href=void 0,rt.prototype.rel=void 0,rt.prototype.$reserved=void 0,rt.prototype.$objectType=void 0,rt.prototype.$unknownFields=void 0;var lt=new WeakSet,ct=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=lt),n.add(t),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?at(at({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new je("tenantId","undefined or null");if(!ge.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=at({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&st(t.prototype,n),r&&st(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ft(e){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ft(e)}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=yt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yt(r.key),r)}}function yt(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ft(t)?t:t+""}function vt(e,t,n){return t=gt(t),function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bt()?Reflect.construct(t,n||[],gt(e).constructor):t.apply(e,n))}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bt=function(){return!!e})()}function gt(e){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gt(e)}function mt(e,t){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mt(e,t)}ct.prototype.tenantId=void 0,ct.prototype.$reserved=void 0,ct.prototype.$objectType=void 0,ct.prototype.$unknownFields=void 0;var wt=new WeakSet,Ot=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=vt(this,t),r=wt),r.add(n),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mt(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return dt(!1===e?dt(dt(dt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):dt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new je("extId","undefined or null");if(null==e){if(!ge.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===he.update&&!ge.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new je(t,"no such property exists"):new je("links","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,ct.constructFromObject(e,n,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&n.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(a=[],r=e.links,i=0;i<r.length;i++)o=rt.constructFromObject(r[i],void 0),a.push(o);n.setLinks(a)}if(!s)for(var u in n.$unknownFields=dt({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&ht(n.prototype,r),o&&ht(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ct);Ot.prototype.extId=void 0,Ot.prototype.links=void 0;var jt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OBJECT_STORE_DEPLOYMENT_ERROR:"OBJECT_STORE_DEPLOYMENT_ERROR",OBJECT_STORE_CREATE_CERT_ERROR:"OBJECT_STORE_CREATE_CERT_ERROR",OBJECT_STORE_DELETE_ERROR:"OBJECT_STORE_DELETE_ERROR",OBJECT_STORE_DELETE_INPUT_ERROR:"OBJECT_STORE_DELETE_INPUT_ERROR",OBJECT_STORE_INPUT:"OBJECT_STORE_INPUT",OBJECT_STORE_DEPLOYING:"OBJECT_STORE_DEPLOYING",OBJECT_STORE_CREATING_CERT:"OBJECT_STORE_CREATING_CERT",OBJECT_STORE_DELETING:"OBJECT_STORE_DELETING",OBJECT_STORE_DELETING_INPUT:"OBJECT_STORE_DELETING_INPUT",OBJECT_STORE_AVAILABLE:"OBJECT_STORE_AVAILABLE",OBJECT_STORE_OPERATION_PENDING:"OBJECT_STORE_OPERATION_PENDING",OBJECT_STORE_OPERATION_ERROR:"OBJECT_STORE_OPERATION_ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(jt).find((function(t){return jt[t]===e}));return null==t?jt.$UNKNOWN:jt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case jt.$UNKNOWN:case jt.$REDACTED:case jt.OBJECT_STORE_DEPLOYMENT_ERROR:case jt.OBJECT_STORE_CREATE_CERT_ERROR:case jt.OBJECT_STORE_DELETE_ERROR:case jt.OBJECT_STORE_DELETE_INPUT_ERROR:case jt.OBJECT_STORE_INPUT:case jt.OBJECT_STORE_DEPLOYING:case jt.OBJECT_STORE_CREATING_CERT:case jt.OBJECT_STORE_DELETING:case jt.OBJECT_STORE_DELETING_INPUT:case jt.OBJECT_STORE_AVAILABLE:case jt.OBJECT_STORE_OPERATION_PENDING:case jt.OBJECT_STORE_OPERATION_ERROR:return;default:throw new Error("Invalid : must be StateEnum.{ $UNKNOWN|$REDACTED|OBJECT_STORE_DEPLOYMENT_ERROR|OBJECT_STORE_CREATE_CERT_ERROR|OBJECT_STORE_DELETE_ERROR|OBJECT_STORE_DELETE_INPUT_ERROR|OBJECT_STORE_INPUT|OBJECT_STORE_DEPLOYING|OBJECT_STORE_CREATING_CERT|OBJECT_STORE_DELETING|OBJECT_STORE_DELETING_INPUT|OBJECT_STORE_AVAILABLE|OBJECT_STORE_OPERATION_PENDING|OBJECT_STORE_OPERATION_ERROR }")}}};Object.freeze(jt);const kt=jt;function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=St(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,St(r.key),r)}}function St(e){var t=function(e,t){if("object"!=$t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$t(t)?t:t+""}function Ft(e,t,n){return t=At(t),function(e,t){if(t&&("object"===$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rt()?Reflect.construct(t,n||[],At(e).constructor):t.apply(e,n))}function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rt=function(){return!!e})()}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function It(e,t){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},It(e,t)}var Dt=new WeakSet,Nt=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=n=Ft(this,t),o=Dt),o.add(r),n.name=e,n.$objectType="objects.v4.operations.Objectstore",n.$reserved={$fv:"v4.r0.a2"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&It(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getLastUpdateTime",value:function(){return this.lastUpdateTime}},{key:"setLastUpdateTime",value:function(e){this.lastUpdateTime=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getDeploymentVersion",value:function(){return this.deploymentVersion}},{key:"setDeploymentVersion",value:function(e){this.deploymentVersion=e}},{key:"getDomain",value:function(){return this.domain}},{key:"setDomain",value:function(e){this.domain=e}},{key:"getRegion",value:function(){return this.region}},{key:"setRegion",value:function(e){this.region=e}},{key:"getNumWorkerNodes",value:function(){return this.numWorkerNodes}},{key:"setNumWorkerNodes",value:function(e){this.numWorkerNodes=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getStorageNetworkReference",value:function(){return this.storageNetworkReference}},{key:"setStorageNetworkReference",value:function(e){this.storageNetworkReference=e}},{key:"getStorageNetworkVip",value:function(){return this.storageNetworkVip}},{key:"setStorageNetworkVip",value:function(e){this.storageNetworkVip=e}},{key:"getStorageNetworkDnsIp",value:function(){return this.storageNetworkDnsIp}},{key:"setStorageNetworkDnsIp",value:function(e){this.storageNetworkDnsIp=e}},{key:"getPublicNetworkReference",value:function(){return this.publicNetworkReference}},{key:"setPublicNetworkReference",value:function(e){this.publicNetworkReference=e}},{key:"getPublicNetworkIps",value:function(){return this.publicNetworkIps}},{key:"setPublicNetworkIps",value:function(e){this.publicNetworkIps=e}},{key:"getTotalCapacityGiB",value:function(){return this.totalCapacityGiB}},{key:"setTotalCapacityGiB",value:function(e){this.totalCapacityGiB=e}},{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"getCertificateReference",value:function(){return this.certificateReference}},{key:"setCertificateReference",value:function(e){this.certificateReference=e}},{key:"toJson",value:function(e){return Tt(!1===e?Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:this.getLastUpdateTime()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getCertificateReference()&&null!==this.getCertificateReference()?{certificateReference:this.getCertificateReference()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("metadata"===t&&(void 0===this.metadata||null===this.metadata))return new je("metadata","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new je("name","undefined or null");if(!ge.validateMaxLength(this.name,50))return new je("name","does not satisfy required maxLength constraint: 50");if(!ge.validateMinLength(this.name,1))return new je("name","does not satisfy required minLength constraint: 1");if(!ge.validatePattern(this.name,/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/))return new je("name","does not satisfy required pattern: /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/")}if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new je("creationTime","undefined or null");if("lastUpdateTime"===t&&(void 0===this.lastUpdateTime||null===this.lastUpdateTime))return new je("lastUpdateTime","undefined or null");if("description"===t){if(void 0===this.description||null===this.description)return new je("description","undefined or null");if(!ge.validateMaxLength(this.description,1e3))return new je("description","does not satisfy required maxLength constraint: 1000")}if("deploymentVersion"===t){if(void 0===this.deploymentVersion||null===this.deploymentVersion)return new je("deploymentVersion","undefined or null");if(!ge.validateMaxLength(this.deploymentVersion,50))return new je("deploymentVersion","does not satisfy required maxLength constraint: 50");if(!ge.validateMinLength(this.deploymentVersion,1))return new je("deploymentVersion","does not satisfy required minLength constraint: 1");if(!ge.validatePattern(this.deploymentVersion,/^[a-zA-z0-9][a-zA-z0-9\\.]*[a-zA-Z0-9]?$/))return new je("deploymentVersion","does not satisfy required pattern: /^[a-zA-z0-9][a-zA-z0-9\\.]*[a-zA-Z0-9]?$/")}if("domain"===t){if(void 0===this.domain||null===this.domain)return new je("domain","undefined or null");if(!ge.validateMaxLength(this.domain,1e3))return new je("domain","does not satisfy required maxLength constraint: 1000");if(!ge.validateMinLength(this.domain,1))return new je("domain","does not satisfy required minLength constraint: 1");if(!ge.validatePattern(this.domain,/^(([a-zA-Z0-9_\\-]{1,63})\\.)+([a-zA-Z0-9_\\-]{1,63})$/))return new je("domain","does not satisfy required pattern: /^(([a-zA-Z0-9_\\-]{1,63})\\.)+([a-zA-Z0-9_\\-]{1,63})$/")}if("region"===t){if(void 0===this.region||null===this.region)return new je("region","undefined or null");if(!ge.validateMaxLength(this.region,50))return new je("region","does not satisfy required maxLength constraint: 50");if(!ge.validateMinLength(this.region,1))return new je("region","does not satisfy required minLength constraint: 1");if(!ge.validatePattern(this.region,/^[a-z]+\\-[a-z]+\\-[0-9]$/))return new je("region","does not satisfy required pattern: /^[a-z]+\\-[a-z]+\\-[0-9]$/")}if("numWorkerNodes"===t){if(void 0===this.numWorkerNodes||null===this.numWorkerNodes)return new je("numWorkerNodes","undefined or null");if(!ge.validateMaximum(this.numWorkerNodes,1e3))return new je("numWorkerNodes","does not satisfy required maximum constraint: 1000");if(!ge.validateMinimum(this.numWorkerNodes,1))return new je("numWorkerNodes","does not satisfy required minimum constraint: 1")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new je("clusterReference","undefined or null");if(!ge.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("storageNetworkReference"===t){if(void 0===this.storageNetworkReference||null===this.storageNetworkReference)return new je("storageNetworkReference","undefined or null");if(!ge.validateMaxLength(this.storageNetworkReference,1e3))return new je("storageNetworkReference","does not satisfy required maxLength constraint: 1000")}if("storageNetworkVip"===t&&(void 0===this.storageNetworkVip||null===this.storageNetworkVip))return new je("storageNetworkVip","undefined or null");if("storageNetworkDnsIp"===t&&(void 0===this.storageNetworkDnsIp||null===this.storageNetworkDnsIp))return new je("storageNetworkDnsIp","undefined or null");if("publicNetworkReference"===t){if(void 0===this.publicNetworkReference||null===this.publicNetworkReference)return new je("publicNetworkReference","undefined or null");if(!ge.validateMaxLength(this.publicNetworkReference,1e3))return new je("publicNetworkReference","does not satisfy required maxLength constraint: 1000")}if("publicNetworkIps"===t){if(void 0===this.publicNetworkIps||null===this.publicNetworkIps)return new je("publicNetworkIps","undefined or null");if(!ge.validateMaxItems(this.publicNetworkIps,1e3))return new je("publicNetworkIps","does not satisfy required maxItems constraint: 1000");if(!ge.validateMinItems(this.publicNetworkIps,1))return new je("publicNetworkIps","does not satisfy required minItems constraint: 1")}if("totalCapacityGiB"===t){if(void 0===this.totalCapacityGiB||null===this.totalCapacityGiB)return new je("totalCapacityGiB","undefined or null");if(!ge.validateMaximum(this.totalCapacityGiB,178814713856))return new je("totalCapacityGiB","does not satisfy required maximum constraint: 178814713856");if(!ge.validateMinimum(this.totalCapacityGiB,1))return new je("totalCapacityGiB","does not satisfy required minimum constraint: 1")}if("state"===t&&(void 0===this.state||null===this.state))return new je("state","undefined or null");if("certificateReference"===t){if(void 0===this.certificateReference||null===this.certificateReference)return new je("certificateReference","undefined or null");if(!ge.validatePattern(this.certificateReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new je("certificateReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new je(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Ot.constructFromObject(e,n,!0),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(Ze.constructFromObject(e.metadata)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("lastUpdateTime")&&null!==e.lastUpdateTime&&void 0!==e.lastUpdateTime&&n.setLastUpdateTime(e.lastUpdateTime),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&n.setDescription(e.description),e.hasOwnProperty("deploymentVersion")&&null!==e.deploymentVersion&&void 0!==e.deploymentVersion&&n.setDeploymentVersion(e.deploymentVersion),e.hasOwnProperty("domain")&&null!==e.domain&&void 0!==e.domain&&n.setDomain(e.domain),e.hasOwnProperty("region")&&null!==e.region&&void 0!==e.region&&n.setRegion(e.region),e.hasOwnProperty("numWorkerNodes")&&null!==e.numWorkerNodes&&void 0!==e.numWorkerNodes&&n.setNumWorkerNodes(e.numWorkerNodes),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&n.setClusterReference(e.clusterReference),e.hasOwnProperty("storageNetworkReference")&&null!==e.storageNetworkReference&&void 0!==e.storageNetworkReference&&n.setStorageNetworkReference(e.storageNetworkReference),e.hasOwnProperty("storageNetworkVip")&&null!==e.storageNetworkVip&&void 0!==e.storageNetworkVip&&n.setStorageNetworkVip(qe.constructFromObject(e.storageNetworkVip)),e.hasOwnProperty("storageNetworkDnsIp")&&null!==e.storageNetworkDnsIp&&void 0!==e.storageNetworkDnsIp&&n.setStorageNetworkDnsIp(qe.constructFromObject(e.storageNetworkDnsIp)),e.hasOwnProperty("publicNetworkReference")&&null!==e.publicNetworkReference&&void 0!==e.publicNetworkReference&&n.setPublicNetworkReference(e.publicNetworkReference),e.hasOwnProperty("publicNetworkIps")&&null!==e.publicNetworkIps&&void 0!==e.publicNetworkIps){for(a=[],r=e.publicNetworkIps,i=0;i<r.length;i++)o=qe.constructFromObject(r[i],void 0),a.push(o);n.setPublicNetworkIps(a)}if(e.hasOwnProperty("totalCapacityGiB")&&null!==e.totalCapacityGiB&&void 0!==e.totalCapacityGiB&&n.setTotalCapacityGiB(e.totalCapacityGiB),e.hasOwnProperty("state")&&null!==e.state&&void 0!==e.state&&n.setState(kt.constructFromObject(e.state)),e.hasOwnProperty("certificateReference")&&null!==e.certificateReference&&void 0!==e.certificateReference&&n.setCertificateReference(e.certificateReference),!s)for(var u in n.$unknownFields=Tt({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Et(n.prototype,r),o&&Et(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ot);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Lt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lt(r.key),r)}}function Lt(e){var t=function(e,t){if("object"!=_t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}Nt.prototype.metadata=void 0,Nt.prototype.name=void 0,Nt.prototype.creationTime=void 0,Nt.prototype.lastUpdateTime=void 0,Nt.prototype.description=void 0,Nt.prototype.deploymentVersion=void 0,Nt.prototype.domain=void 0,Nt.prototype.region=void 0,Nt.prototype.numWorkerNodes=void 0,Nt.prototype.clusterReference=void 0,Nt.prototype.storageNetworkReference=void 0,Nt.prototype.storageNetworkVip=void 0,Nt.prototype.storageNetworkDnsIp=void 0,Nt.prototype.publicNetworkReference=void 0,Nt.prototype.publicNetworkIps=void 0,Nt.prototype.totalCapacityGiB=void 0,Nt.prototype.state=void 0,Nt.prototype.certificateReference=void 0;var Jt=new WeakSet,Ut=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Jt),n.add(t),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xt(xt(xt({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("value","undefined or null"):new je("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=xt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Mt(t.prototype,n),r&&Mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qt(e){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(e)}function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Gt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gt(r.key),r)}}function Gt(e){var t=function(e,t){if("object"!=qt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=qt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qt(t)?t:t+""}function Kt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ut.prototype.name=void 0,Ut.prototype.value=!1,Ut.prototype.$reserved=void 0,Ut.prototype.$objectType=void 0,Ut.prototype.$unknownFields=void 0;var Ht=new WeakSet,Zt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ht),n.add(t),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zt(zt(zt({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Kt(Ht,this,Xt).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Kt(Ht,this,Xt).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("value","undefined or null"):new je("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(i=[],a=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:qt(r[0]),o=0;o<r.length;o++)switch(a){case"string":case"number":i.push(r[o]);break;default:throw"Unknown list of type "+a+" in data"}n.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:qt(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var u in n.$unknownFields=zt({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Wt(t.prototype,n),r&&Wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qt(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Zt.prototype.name=void 0,Zt.prototype.value=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var Qt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Qt).find((function(t){return Qt[t]===e}));return null==t?Qt.$UNKNOWN:Qt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Qt.$UNKNOWN:case Qt.$REDACTED:case Qt.INFO:case Qt.WARNING:case Qt.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(Qt);const Yt=Qt;function en(e){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(e)}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=on(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,on(r.key),r)}}function on(e){var t=function(e,t){if("object"!=en(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=en(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==en(t)?t:t+""}var an=new WeakSet,sn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=an),n.add(t),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nn(nn(nn(nn(nn({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("severity","undefined or null"):new je("locale","undefined or null"):new je("message","undefined or null"):new je("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Yt.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=nn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&rn(t.prototype,n),r&&rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function un(e){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(e)}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=pn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pn(r.key),r)}}function pn(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==un(t)?t:t+""}sn.prototype.code=void 0,sn.prototype.message=void 0,sn.prototype.locale="en_US",sn.prototype.severity=void 0,sn.prototype.$reserved=void 0,sn.prototype.$objectType=void 0,sn.prototype.$unknownFields=void 0;var dn=new WeakSet,hn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dn),n.add(t),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cn(cn(cn(cn(cn(cn({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("extraInfo","undefined or null"):new je("messages","undefined or null"):new je("totalAvailableResults","undefined or null"):new je("links","undefined or null"):new je("flags","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(a=[],r=t.flags,i=0;i<r.length;i++)o=Ut.constructFromObject(r[i],void 0),a.push(o);n.setFlags(a)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(a=[],r=t.links,i=0;i<r.length;i++)o=rt.constructFromObject(r[i],void 0),a.push(o);n.setLinks(a)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(a=[],r=t.messages,i=0;i<r.length;i++)o=sn.constructFromObject(r[i],void 0),a.push(o);n.setMessages(a)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(a=[],r=t.extraInfo,i=0;i<r.length;i++)o=Zt.constructFromObject(r[i],void 0),a.push(o);n.setExtraInfo(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var u in n.$unknownFields=cn({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&fn(t.prototype,n),r&&fn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=wn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wn(r.key),r)}}function wn(e){var t=function(e,t){if("object"!=yn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:t+""}function On(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}hn.prototype.flags=void 0,hn.prototype.links=void 0,hn.prototype.totalAvailableResults=void 0,hn.prototype.messages=void 0,hn.prototype.extraInfo=void 0,hn.prototype.$reserved=void 0,hn.prototype.$objectType=void 0,hn.prototype.$unknownFields=void 0;var jn=new WeakSet,kn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=jn),n.add(t),this.$objectType="objects.v4.error.AppMessage",this.$reserved={$fv:"v4.r0.a2"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gn(gn(gn(gn(gn(gn(gn({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:On(jn,this,$n).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:On(jn,this,$n).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("argumentsMap","undefined or null"):new je("errorGroup","undefined or null"):new je("locale","undefined or null"):new je("code","undefined or null"):new je("severity","undefined or null"):new je("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Yt.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=gn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $n(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===yn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Fn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fn(r.key),r)}}function Fn(e){var t=function(e,t){if("object"!=Pn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pn(t)?t:t+""}kn.prototype.message=void 0,kn.prototype.severity=void 0,kn.prototype.code=void 0,kn.prototype.locale="en_US",kn.prototype.errorGroup=void 0,kn.prototype.argumentsMap=void 0,kn.prototype.$reserved=void 0,kn.prototype.$objectType=void 0,kn.prototype.$unknownFields=void 0;var Rn=new WeakSet,An=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Rn),n.add(t),this.$objectType="objects.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0.a2"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return En(En(En(En({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("attributePath","undefined or null"):new je("message","undefined or null"):new je("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=En({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Sn(t.prototype,n),r&&Sn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function In(e){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Cn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cn(r.key),r)}}function Cn(e){var t=function(e,t){if("object"!=In(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=In(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==In(t)?t:t+""}An.prototype.location=void 0,An.prototype.message=void 0,An.prototype.attributePath=void 0,An.prototype.$reserved=void 0,An.prototype.$objectType=void 0,An.prototype.$unknownFields=void 0;var xn=new WeakSet,Mn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=xn),n.add(t),this.$objectType="objects.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0.a2"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Nn(Nn(Nn(Nn(Nn(Nn({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("validationErrorMessages","undefined or null"):new je("path","undefined or null"):new je("error","undefined or null"):new je("statusCode","undefined or null"):new je("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(a=[],r=t.validationErrorMessages,i=0;i<r.length;i++)o=An.constructFromObject(r[i],void 0),a.push(o);n.setValidationErrorMessages(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var u in n.$unknownFields=Nn({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&_n(t.prototype,n),r&&_n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Vn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vn(r.key),r)}}function Vn(e){var t=function(e,t){if("object"!=Jn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jn(t)?t:t+""}function zn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Mn.prototype.timestamp=void 0,Mn.prototype.statusCode=void 0,Mn.prototype.error=void 0,Mn.prototype.path=void 0,Mn.prototype.validationErrorMessages=void 0,Mn.prototype.$reserved=void 0,Mn.prototype.$objectType=void 0,Mn.prototype.$unknownFields=void 0;var Wn=new WeakSet,Gn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Wn),n.add(t),this.$objectType="objects.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0.a2"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bn(Bn({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):zn(Wn,this,Kn).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):zn(Wn,this,Kn).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,s,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(a=[],s=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:Jn(r[0]),i=0;i<r.length;i++){if("objects.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";o=kn.constructFromObject(r[i],void 0),a.push(o)}n.setError(a)}else{if("objects.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:Jn(t.error)))throw"Unknown datatype "+s+" in data";n.setError(Mn.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=Bn({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Kn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ln(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Jn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Yn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yn(r.key),r)}}function Yn(e){var t=function(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hn(t)?t:t+""}Gn.prototype.error=void 0,Gn.prototype.$reserved=void 0,Gn.prototype.$objectType=void 0,Gn.prototype.$unknownFields=void 0;var er=new WeakSet,tr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=er),n.add(t),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xn(Xn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new je("extId","undefined or null");if(!ge.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new je("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Xn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Qn(t.prototype,n),r&&Qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=sr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sr(r.key),r)}}function sr(e){var t=function(e,t){if("object"!=rr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rr(t)?t:t+""}function ur(e,t,n){return t=cr(t),function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lr()?Reflect.construct(t,n||[],cr(e).constructor):t.apply(e,n))}function lr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lr=function(){return!!e})()}function cr(e){return cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cr(e)}function fr(e,t){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fr(e,t)}function pr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}tr.prototype.extId=void 0,tr.prototype.$reserved=void 0,tr.prototype.$objectType=void 0,tr.prototype.$unknownFields=void 0;var dr=new WeakSet,hr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ur(this,t),r=dr),r.add(n),e.$objectType="objects.v4.operations.TaskReferenceApiResponse",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fr(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ir(ir(ir({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):pr(dr,this,yr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):pr(dr,this,yr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("data","undefined or null"):new je("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(hn.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:rr(e.data)){case"prism.v4.config.TaskReference":n.setData(tr.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":n.setData(Gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=ir({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&ar(n.prototype,r),o&&ar(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function yr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===rr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function vr(e){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(e)}function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=wr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wr(r.key),r)}}function wr(e){var t=function(e,t){if("object"!=vr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vr(t)?t:t+""}hr.prototype.metadata=void 0,hr.prototype.data=void 0,hr.prototype.$reserved=void 0,hr.prototype.$objectType=void 0,hr.prototype.$unknownFields=void 0;var Or=new WeakSet,jr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Or),n.add(t),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gr(gr({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new je("value","undefined or null");if(!ge.validatePattern(this.value,/^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/))return new je("value","does not satisfy required pattern: /^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=gr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&mr(t.prototype,n),r&&mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function kr(e){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(e)}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Er(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Er(r.key),r)}}function Er(e){var t=function(e,t){if("object"!=kr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kr(t)?t:t+""}function Sr(e,t,n){return t=Rr(t),function(e,t){if(t&&("object"===kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fr()?Reflect.construct(t,n||[],Rr(e).constructor):t.apply(e,n))}function Fr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fr=function(){return!!e})()}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Ar(e,t){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ar(e,t)}jr.prototype.value=void 0,jr.prototype.$reserved=void 0,jr.prototype.$objectType=void 0,jr.prototype.$unknownFields=void 0;var Ir=new WeakSet,Dr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Sr(this,t),r=Ir),r.add(n),e.$objectType="objects.v4.operations.Certificate",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ar(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getPublicCert",value:function(){return this.publicCert}},{key:"setPublicCert",value:function(e){this.publicCert=e}},{key:"getPrivateKey",value:function(){return this.privateKey}},{key:"setPrivateKey",value:function(e){this.privateKey=e}},{key:"getCa",value:function(){return this.ca}},{key:"setCa",value:function(e){this.ca=e}},{key:"getAlternateFqdns",value:function(){return this.alternateFqdns}},{key:"setAlternateFqdns",value:function(e){this.alternateFqdns=e}},{key:"toJson",value:function(e){return Pr(!1===e?Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getPublicCert()&&null!==this.getPublicCert()?{publicCert:this.getPublicCert()}:{}),void 0!==this.getPrivateKey()&&null!==this.getPrivateKey()?{privateKey:this.getPrivateKey()}:{}),void 0!==this.getCa()&&null!==this.getCa()?{ca:this.getCa()}:{}),void 0!==this.getAlternateFqdns()&&null!==this.getAlternateFqdns()?{alternateFqdns:this.getAlternateFqdns().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Pr(Pr(Pr(Pr(Pr(Pr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getPublicCert()&&null!==this.getPublicCert()?{publicCert:this.getPublicCert()}:{}),void 0!==this.getPrivateKey()&&null!==this.getPrivateKey()?{privateKey:this.getPrivateKey()}:{}),void 0!==this.getCa()&&null!==this.getCa()?{ca:this.getCa()}:{}),void 0!==this.getAlternateFqdns()&&null!==this.getAlternateFqdns()?{alternateFqdns:this.getAlternateFqdns().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("metadata"===t&&(void 0===this.metadata||null===this.metadata))return new je("metadata","undefined or null");if("publicCert"===t){if(void 0===this.publicCert||null===this.publicCert)return new je("publicCert","undefined or null");if(!ge.validateMaxLength(this.publicCert,2e6))return new je("publicCert","does not satisfy required maxLength constraint: 2000000");if(!ge.validateMinLength(this.publicCert,1))return new je("publicCert","does not satisfy required minLength constraint: 1")}if("privateKey"===t){if(void 0===this.privateKey||null===this.privateKey)return new je("privateKey","undefined or null");if(!ge.validateMaxLength(this.privateKey,2e6))return new je("privateKey","does not satisfy required maxLength constraint: 2000000");if(!ge.validateMinLength(this.privateKey,1))return new je("privateKey","does not satisfy required minLength constraint: 1")}if("ca"===t){if(void 0===this.ca||null===this.ca)return new je("ca","undefined or null");if(!ge.validateMaxLength(this.ca,2e6))return new je("ca","does not satisfy required maxLength constraint: 2000000");if(!ge.validateMinLength(this.ca,1))return new je("ca","does not satisfy required minLength constraint: 1")}if("alternateFqdns"===t){if(void 0===this.alternateFqdns||null===this.alternateFqdns)return new je("alternateFqdns","undefined or null");if(!ge.validateMaxItems(this.alternateFqdns,1e3))return new je("alternateFqdns","does not satisfy required maxItems constraint: 1000");if(!ge.validateMinItems(this.alternateFqdns,1))return new je("alternateFqdns","does not satisfy required minItems constraint: 1")}return new je(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Ot.constructFromObject(e,n,!0),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(Ze.constructFromObject(e.metadata)),e.hasOwnProperty("publicCert")&&null!==e.publicCert&&void 0!==e.publicCert&&n.setPublicCert(e.publicCert),e.hasOwnProperty("privateKey")&&null!==e.privateKey&&void 0!==e.privateKey&&n.setPrivateKey(e.privateKey),e.hasOwnProperty("ca")&&null!==e.ca&&void 0!==e.ca&&n.setCa(e.ca),e.hasOwnProperty("alternateFqdns")&&null!==e.alternateFqdns&&void 0!==e.alternateFqdns){for(a=[],r=e.alternateFqdns,i=0;i<r.length;i++)o=jr.constructFromObject(r[i],void 0),a.push(o);n.setAlternateFqdns(a)}if(!s)for(var u in n.$unknownFields=Pr({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Tr(n.prototype,r),o&&Tr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ot);function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _r(e){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(e)}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Lr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lr(r.key),r)}}function Lr(e){var t=function(e,t){if("object"!=_r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_r(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_r(t)?t:t+""}function Jr(e,t,n){return t=Br(t),function(e,t){if(t&&("object"===_r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ur()?Reflect.construct(t,n||[],Br(e).constructor):t.apply(e,n))}function Ur(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ur=function(){return!!e})()}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function qr(e,t){return qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qr(e,t)}function Vr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Dr.prototype.metadata=void 0,Dr.prototype.publicCert=void 0,Dr.prototype.privateKey=void 0,Dr.prototype.ca=void 0,Dr.prototype.alternateFqdns=void 0;var zr=new WeakSet,Wr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Jr(this,t),r=zr),r.add(n),e.$objectType="objects.v4.operations.CertificateApiResponse",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qr(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xr(xr(xr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Vr(zr,this,Gr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Vr(zr,this,Gr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("data","undefined or null"):new je("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(hn.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_r(e.data)){case"objects.v4.operations.Certificate":n.setData(Dr.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":n.setData(Gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=xr({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Mr(n.prototype,r),o&&Mr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Gr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===_r(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Kr(e){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(e)}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e,t,n){return(t=Qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qr(r.key),r)}}function Qr(e){var t=function(e,t){if("object"!=Kr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kr(t)?t:t+""}function Yr(e,t,n){return t=to(t),function(e,t){if(t&&("object"===Kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eo()?Reflect.construct(t,n||[],to(e).constructor):t.apply(e,n))}function eo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eo=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},to(e)}function no(e,t){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},no(e,t)}Wr.prototype.metadata=void 0,Wr.prototype.data=void 0,Wr.prototype.$reserved=void 0,Wr.prototype.$objectType=void 0,Wr.prototype.$unknownFields=void 0;var ro=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Yr(this,t)).$objectType="objects.v4.operations.CertificateProjection",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new je(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Dr.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&Xr(n.prototype,r),o&&Xr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Dr);function oo(e){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oo(e)}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=uo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function so(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uo(r.key),r)}}function uo(e){var t=function(e,t){if("object"!=oo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oo(t)?t:t+""}function lo(e,t,n){return t=fo(t),function(e,t){if(t&&("object"===oo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,co()?Reflect.construct(t,n||[],fo(e).constructor):t.apply(e,n))}function co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(co=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}function po(e,t){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},po(e,t)}var ho=new WeakSet,yo=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=n=lo(this,t,[e]),o=ho),o.add(r),n.$objectType="objects.v4.operations.ObjectstoreProjection",n.$reserved={$fv:"v4.r0.a2"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&po(e,t)}(t,e),n=t,r=[{key:"getCertificateProjection",value:function(){return this.certificateProjection}},{key:"setCertificateProjection",value:function(e){this.certificateProjection=e}},{key:"toJson",value:function(e){return ao(!1===e?ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao({},void 0!==this.getCertificateProjection()&&null!==this.getCertificateProjection()?{certificateProjection:this.getCertificateProjection().toJson(!1)}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:this.getLastUpdateTime()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getCertificateReference()&&null!==this.getCertificateReference()?{certificateReference:this.getCertificateReference()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao({},void 0!==this.getCertificateProjection()&&null!==this.getCertificateProjection()?{certificateProjection:this.getCertificateProjection().toJson(!1)}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"certificateProjection"!==t||void 0!==this.certificateProjection&&null!==this.certificateProjection?new je(t,"no such property exists"):new je("certificateProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Nt.constructFromObject(e,n,!0),e.hasOwnProperty("certificateProjection")&&null!==e.certificateProjection&&void 0!==e.certificateProjection&&n.setCertificateProjection(ro.constructFromObject(e.certificateProjection)),!r))for(var o in n.$unknownFields=ao({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&so(n.prototype,r),o&&so(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Nt);function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bo(e){return bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo(e)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Oo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oo(r.key),r)}}function Oo(e){var t=function(e,t){if("object"!=bo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bo(t)?t:t+""}function jo(e,t,n){return t=$o(t),function(e,t){if(t&&("object"===bo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ko()?Reflect.construct(t,n||[],$o(e).constructor):t.apply(e,n))}function ko(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ko=function(){return!!e})()}function $o(e){return $o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$o(e)}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}function To(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}yo.prototype.certificateProjection=void 0;var Eo=new WeakSet,So=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=jo(this,t),r=Eo),r.add(n),e.$objectType="objects.v4.operations.ObjectstoreListApiResponse",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Po(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mo(mo(mo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):To(Eo,this,Fo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):To(Eo,this,Fo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("data","undefined or null"):new je("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,a,s,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(hn.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(a=[],s=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:bo(r[0]),i=0;i<r.length;i++)switch(s){case"objects.v4.operations.Objectstore":o=Nt.constructFromObject(r[i],void 0),a.push(o);break;case"objects.v4.operations.ObjectstoreProjection":o=yo.constructFromObject(r[i],void 0),a.push(o);break;default:throw"Unknown list of type "+s+" in data"}n.setData(a)}else{if("objects.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:bo(e.data)))throw"Unknown datatype "+s+" in data";n.setData(Gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=mo({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&wo(n.prototype,r),o&&wo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Fo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===bo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ao(e){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(e)}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=_o(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_o(r.key),r)}}function _o(e){var t=function(e,t){if("object"!=Ao(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ao(t)?t:t+""}function Co(e,t,n){return t=Mo(t),function(e,t){if(t&&("object"===Ao(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xo()?Reflect.construct(t,n||[],Mo(e).constructor):t.apply(e,n))}function xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xo=function(){return!!e})()}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}function Lo(e,t){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lo(e,t)}function Jo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}So.prototype.metadata=void 0,So.prototype.data=void 0,So.prototype.$reserved=void 0,So.prototype.$objectType=void 0,So.prototype.$unknownFields=void 0;var Uo=new WeakSet,Bo=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Co(this,t),r=Uo),r.add(n),e.$objectType="objects.v4.operations.CertificateListApiResponse",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Do(Do(Do({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Jo(Uo,this,qo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Jo(Uo,this,qo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("data","undefined or null"):new je("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,a,s,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(hn.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(a=[],s=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:Ao(r[0]),i=0;i<r.length;i++)switch(s){case"objects.v4.operations.Certificate":o=Dr.constructFromObject(r[i],void 0),a.push(o);break;case"objects.v4.operations.CertificateProjection":o=ro.constructFromObject(r[i],void 0),a.push(o);break;default:throw"Unknown list of type "+s+" in data"}n.setData(a)}else{if("objects.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ao(e.data)))throw"Unknown datatype "+s+" in data";n.setData(Gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=Do({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&No(n.prototype,r),o&&No(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function qo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ro(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Ao(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zo(e){return zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zo(e)}function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ho(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ho(r.key),r)}}function Ho(e){var t=function(e,t){if("object"!=zo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zo(t)?t:t+""}function Zo(e,t,n){return t=Qo(t),function(e,t){if(t&&("object"===zo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xo()?Reflect.construct(t,n||[],Qo(e).constructor):t.apply(e,n))}function Xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xo=function(){return!!e})()}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qo(e)}function Yo(e,t){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yo(e,t)}function ei(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Bo.prototype.metadata=void 0,Bo.prototype.data=void 0,Bo.prototype.$reserved=void 0,Bo.prototype.$objectType=void 0,Bo.prototype.$unknownFields=void 0;var ti=new WeakSet,ni=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Zo(this,t),r=ti),r.add(n),e.$objectType="objects.v4.operations.ObjectstoreApiResponse",e.$reserved={$fv:"v4.r0.a2"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Go(Go(Go({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ei(ti,this,ri).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ei(ti,this,ri).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof he?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new je(t,"no such property exists"):new je("$unknownFields","undefined or null"):new je("$objectType","undefined or null"):new je("$reserved","undefined or null"):new je("data","undefined or null"):new je("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(hn.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:zo(e.data)){case"objects.v4.operations.Objectstore":n.setData(Nt.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":n.setData(Gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Go({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Ko(n.prototype,r),o&&Ko(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ri(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===zo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function oi(e){return oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oi(e)}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ui(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ui(r.key),r)}}function ui(e){var t=function(e,t){if("object"!=oi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oi(t)?t:t+""}function li(e,t){return e.get(ci(e,t))}function ci(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ni.prototype.metadata=void 0,ni.prototype.data=void 0,ni.prototype.$reserved=void 0,ni.prototype.$objectType=void 0,ni.prototype.$unknownFields=void 0;var fi=new WeakMap,pi=function(){return e=function e(t){var n,r,o,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=fi),i.set(o,a),this.apiClient=t||Z.instance,n=fi,r=new Set,n.set(ci(n,this),r),li(fi,this).add("authorization"),li(fi,this).add("cookie"),li(fi,this).add("host"),li(fi,this).add("user-agent")},t=[{key:"createCertificate",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling createCertificate");var o={objectStoreExtId:e},i={};Object.keys(r).forEach((function(e){li(fi,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=ai({},i),s={publicCert:t.publicCert,privateKey:t.privateKey,metadata:t.metadata,alternateFqdns:this.apiClient.buildCollectionParam(t.alternateFqdns,"multi"),tenantId:t.tenantId,links:this.apiClient.buildCollectionParam(t.links,"multi"),extId:t.extId,ca:t.ca},u=hr;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates","POST",o,{},a,s,null,["basicAuthScheme"],["multipart/form-data"],["application/json"],u)}},{key:"createObjectstore",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Nt&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createObjectstore");var o={};Object.keys(r).forEach((function(e){li(fi,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=ai({},o);Z.addEtagReferenceToHeader(e,i);var a=hr;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores","POST",{},{},i,{},t,["basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteObjectstore",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteObjectstore");var r={extId:e},o={};Object.keys(n).forEach((function(e){li(fi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ai({},o),a=hr;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores/{extId}","DELETE",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],a)}},{key:"getCertificate",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCertificate");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getCertificate");var o={objectStoreExtId:e,extId:t},i={};Object.keys(r).forEach((function(e){li(fi,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=ai({},i),s=Wr;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates/{extId}","GET",o,{},a,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"getCertificates",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCertificates");var o={objectStoreExtId:e},i=ai(ai(ai(ai(ai({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),a={};Object.keys(r).forEach((function(e){li(fi,n).has(e.toLowerCase())||(a[e]=r[e])}));var s=ai({},a),u=Bo;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates","GET",o,i,s,{},null,["basicAuthScheme"],[],["application/json"],u)}},{key:"getObjectstore",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getObjectstore");var o={extId:e},i=ai({},t.hasOwnProperty("$expand")?{$expand:t.$expand}:{}),a={};Object.keys(r).forEach((function(e){li(fi,n).has(e.toLowerCase())||(a[e]=r[e])}));var s=ai({},a),u=ni;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores/{extId}","GET",o,i,s,{},null,["basicAuthScheme"],[],["application/json"],u)}},{key:"getObjectstores",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ai(ai(ai(ai(ai(ai({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){li(fi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ai({},o),a=So;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores","GET",{},r,i,{},null,["basicAuthScheme"],[],["application/json"],a)}},{key:"updateObjectstore",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Nt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateObjectstore");if(null==n)throw new Error("Invalid body when calling updateObjectstore");var i={extId:e},a={};Object.keys(o).forEach((function(e){li(fi,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=ai({},a);Z.addEtagReferenceToHeader(t,s);var u=hr;return this.apiClient.callApi("/api/objects/v4.0.a2/operations/object-stores/{extId}","PUT",i,{},s,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return Z}}],t&&si(e.prototype,t),n&&si(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const di={ApiClient:Z,ObjectStoresApi:pi,FQDN:jr,Flag:Ut,IPAddress:qe,IPv4Address:Fe,IPv6Address:Ce,KVPair:Zt,Message:sn,MessageSeverity:Yt,Metadata:Ze,TenantAwareModel:ct,ApiLink:rt,ApiResponseMetadata:hn,ExternalizableAbstractModel:Ot,AppMessage:kn,ErrorResponse:Gn,SchemaValidationError:Mn,SchemaValidationErrorMessage:An,Certificate:Dr,CertificateApiResponse:Wr,CertificateListApiResponse:Bo,CertificateProjection:ro,Objectstore:Nt,ObjectstoreApiResponse:ni,ObjectstoreListApiResponse:So,ObjectstoreProjection:yo,StateEnum:kt,TaskReferenceApiResponse:hr,TaskReference:tr}})(),r.default})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Objects=t())}("undefined"==typeof self?this:self,(()=>(()=>{var e={19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=a,a.default=a,a.stable=f,a.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,s])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,s,a,c,f){var d;if(c+=1,"object"===t(e)&&null!==e){for(d=0;d<s.length;d++)if(s[d]===e)return void u(r,e,o,a);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,a);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,a);if(s.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,s,e,c,f);else{var p=Object.keys(e);for(d=0;d<p.length;d++){var h=p[d];l(e[h],h,d,s,e,c,f)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=s());var a,u=d(e,"",0,[],void 0,0,r)||e;try{a=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function d(e,i,s,a,l,f,p){var h;if(f+=1,"object"===t(e)&&null!==e){for(h=0;h<a.length;h++)if(a[h]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&f>p.depthLimit)return void u(n,e,i,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,i,l);if(a.push(e),Array.isArray(e))for(h=0;h<e.length;h++)d(e[h],h,h,a,e,f,p);else{var y={},v=Object.keys(e).sort(c);for(h=0;h<v.length;h++){var b=v[h];d(e[b],b,h,a,e,f,p),y[b]=e[b]}if(void 0===l)return y;o.push([l,i,e]),l[i]=y}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var s=t[o-1],a=0;a<i+1;a++)t.push(s)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},545:()=>{},548:()=>{},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var d=t=e.exports;t.Request=m,d.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function h(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&y(t,n,e[n]);return t.join("&")}function y(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){y(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&y(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function g(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function m(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new g(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=h,d.parseString=v,d.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":h,"application/json":s},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=d.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},g.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},d.Response=g,i(m.prototype),a(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},m.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},m.prototype.query=function(e){return"string"!=typeof e&&(e=h(e)),e&&this._query.push(e),this},m.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},m.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},m.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},m.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},m.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},m.prototype.ca=m.prototype.agent,m.prototype.buffer=m.prototype.ca,m.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},m.prototype.pipe=m.prototype.write,m.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},m.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},m.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},m.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=d.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||d.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},d.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=w,d.delete=w,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},e.exports=n},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function a(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function d(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var a=d(o),u=a.device,l=a.isUnc,c=a.isAbsolute,f=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=d(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,a=/[\\\/]$/.test(i);return(i=s(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&a&&(i+="\\"),r&&(n=p(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return d(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=a(t.split("\\")),i=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(i.length,s.length),l=u,f=0;f<u;f++)if(i[f]!==s[f]){l=f;break}if(0==l)return t;var d=[];for(f=l;f<i.length;f++)d.push("..");return(d=d.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var h=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return h.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),o=Math.min(n.length,r.length),i=o,s=0;s<o;s++)if(n[s]!==r[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},y.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},y.sep="/",y.delimiter=":",e.exports=o?c:y,e.exports.posix=y,e.exports.win32=c},799:()=>{},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])y(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(e,r){if(g(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,s={};function a(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",P=!1,$=["{","}"];return p(n)&&(P=!0,$=["[","]"]),k(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==s.length||P&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=P?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)T(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,P)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,$)):$[0]+w+$[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),T(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=y(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),g(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===P(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===P(e)}function j(e){return w(e)&&("[object Error]"===P(e)||e instanceof Error)}function k(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function $(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=g,t.isRegExp=m,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[$((e=new Date).getHours()),$(e.getMinutes()),$(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965:()=>{},975:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>Ya});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=[],h=0;h<256;++h)p.push((h+256).toString(16).substr(1));const y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&d.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return y(r)};var b=n(540),g=n.n(b),m=n(545),w=n.n(m),O=n(799),j=n.n(O),k=n(784),P=n.n(k),$=n(548),S={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return S[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===S.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(S);const T=S;function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F(r.key),r)}}function F(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}var I=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&R(e.prototype,null),t&&R(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function A(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var x=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&C(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return(t=U(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U(r.key),r)}}function U(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var J=new WeakSet,L=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,J),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return M(M(M({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!I.validateMaxLength(this.name,128))return new x("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,3))return new x("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=M({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function Z(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}function X(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}L.prototype.name=void 0,L.prototype.value=!1,L.prototype.$reserved=void 0,L.prototype.$objectType=void 0,L.prototype.$unknownFields=void 0;var Y=new WeakSet,Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Y),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return z(z({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:X(Y,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:X(Y,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=z({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===W(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ae(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Q.prototype.map=void 0,Q.prototype.$reserved=void 0,Q.prototype.$objectType=void 0,Q.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oe(oe(oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ue(le,this,fe).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ue(le,this,fe).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!I.validateMaxLength(this.name,128))return new x("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,3))return new x("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&a.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)a.setValue([]);else{for(i=[],s=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(s){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Q.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setValue(i)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":a.setValue(t.value);break;case"object":a.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=oe({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}ce.prototype.name=void 0,ce.prototype.value=void 0,ce.prototype.$reserved=void 0,ce.prototype.$objectType=void 0,ce.prototype.$unknownFields=void 0;var de={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(de).find((function(t){return de[t]===e}));return null==t?de.$UNKNOWN:de[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case de.$UNKNOWN:case de.$REDACTED:case de.INFO:case de.WARNING:case de.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(de);const pe=de;function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,me(r.key),r)}}function me(e){var t=function(e){if("object"!=he(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ve(ve(ve(ve(ve({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("severity","undefined or null"):new x("locale","undefined or null"):new x("message","undefined or null"):new x("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ve({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ge(t.prototype,n),r&&ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e,t,n){return(t=Te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Te(r.key),r)}}function Te(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Ee=new WeakSet,Re=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ee),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pe(Pe(Pe({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("rel","undefined or null"):new x("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pe({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Se(t.prototype,n),r&&Se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return(t=xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xe(r.key),r)}}function xe(e){var t=function(e){if("object"!=Fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fe(t)?t:t+""}Re.prototype.href=void 0,Re.prototype.rel=void 0,Re.prototype.$reserved=void 0,Re.prototype.$objectType=void 0,Re.prototype.$unknownFields=void 0;var Ne,_e=new WeakSet,Me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,_e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return De(De(De(De(De(De({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new x("flags","undefined or null");if(!I.validateMaxItems(this.flags,20))return new x("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new x("links","undefined or null");if(!I.validateMaxItems(this.links,20))return new x("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new x("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new x("messages","undefined or null");if(!I.validateMaxItems(this.messages,20))return new x("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new x("extraInfo","undefined or null");if(!I.validateMaxItems(this.extraInfo,20))return new x("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=L.constructFromObject(n[o],void 0),i.push(r);s.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Re.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&s.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);s.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=De({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ae(t.prototype,n),r&&Ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function qe(){qe=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),Be(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Be(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)(>|$)/g,(function(e,t,n){if(""===n)return e;var r=i[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=We(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},qe.apply(this,arguments)}function Be(e,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Be(e,t)}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ge(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}function He(e,t,n){Ze(e,t),t.set(e,n)}function Ze(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Qe(e,t))}function Ye(e,t,n){return e.set(Qe(e,t),n),n}function Qe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Me.prototype.flags=void 0,Me.prototype.links=void 0,Me.prototype.totalAvailableResults=void 0,Me.prototype.messages=void 0,Me.prototype.extraInfo=void 0,Me.prototype.$reserved=void 0,Me.prototype.$objectType=void 0,Me.prototype.$unknownFields=void 0,g()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,at=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ze(this,n=ut),n.add(this),He(this,et,void 0),He(this,tt,void 0),He(this,nt,void 0),He(this,rt,void 0),He(this,ot,void 0),He(this,it,void 0),He(this,st,void 0),He(this,at,void 0),Ye(at,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Ye(ot,this,3e4),Ye(it,this,3e4),Ye(st,this,108e5),this.readTimeout=Xe(it,this),this.connectTimeout=Xe(ot,this),this.cache=!0,Ye(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Ye(nt,this,null),this.username=null,this.password=null,Ye(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Xe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Ye(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Ye(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Ye(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Ye(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Xe(et,this)&&""!==this.host&&""!==this.port?r=Xe(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=Ge(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,s,a,u,l,c,f,d){var p=this,h=this.buildUrl(e,o),y=t()(r,h);if(y.oldCallback=y.callback,y.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Qe(ut,this,ht).call(this,y,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),y.query(Qe(ut,this,pt).call(this,i)),y.set(this.defaultHeaders).set(Qe(ut,this,pt).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();y.set(Qe(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||(this.downloadDestination=".",y.set(Qe(ut,this,pt).call(this,{"User-Agent":"Nutanix-objects-js-client/4.0.1"}))),this.requestAgent&&y.agent(this.requestAgent);var m={};m.response=Qe(ut,this,gt).call(this,this.connectTimeout,Xe(ot,this)),m.deadline=Qe(ut,this,gt).call(this,this.readTimeout,Xe(it,this)),y.timeout(m);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:Qe(ut,this,ft).call(this,c);if(w?"multipart/form-data"!=w&&y.type(w):y.header["Content-Type"]||y.type("application/json"),Qe(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Request URL :",r,h),Qe(ut,this,Ot).call(this,Xe(at,this).DEBUG,Qe(ut,this,Pt),"Request Headers :",void 0===y.header?"":y.header),"application/x-www-form-urlencoded"===w)y.send(Qe(ut,this,pt).call(this,a));else if("multipart/form-data"==w){var O=Qe(ut,this,pt).call(this,a);for(var k in O)O.hasOwnProperty(k)&&(Qe(ut,this,dt).call(this,O[k])?y.attach(k,O[k]):y.field(k,O[k]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Qe(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(y);else{var P;try{P=n(965)}catch(e){Qe(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"Error fetching steam/web")}u instanceof P.ReadableStream?u.pipeTo(new P.WritableStream({write:function(e){y.write(e)},close:function(){Qe(ut,this,Ot).call(this,Xe(at,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Qe(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"READABLE STREAM ABORTED")}})):y.send(u)}return new Promise((function(t,n){y.on("error",(function(e){Qe(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){Qe(ut,p,$t).call(p,r,e,i,d,t,n)}))}))}u&&y.send(u)}"Blob"==typeof d?y.responseType("blob"):"String"===d&&y.responseType("string"),Qe(ut,this,wt).call(this,y),Qe(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Request Body :",void 0===y._data?"":y._data);var $=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:f.join(", "),S=["application/octet-stream","application/pdf","application/zip"];return $&&y.accept($),new Promise((function(o,s){y.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).on("error",(function(e){Qe(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught the following error :",e)})).end((function(a,u){if(a)Qe(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught error during the request!"),Qe(ut,p,Ot).call(p,Xe(at,p).ERROR,null,a),null!==a.response&&void 0!==a.response?a.data=Qe(ut,p,vt).call(p,a.response,d):a.data=Qe(ut,p,yt).call(p,a),s(a);else{Qe(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Response Status :",u.status),Qe(ut,p,Ot).call(p,Xe(at,p).DEBUG,Qe(ut,p,Pt),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),S.some((function(e){return l.includes(e)})))if(g){var c;try{c=n(965)}catch(e){Qe(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var f=p.downloadDestination.getWriter();try{u.on("data",(function(e){f.write(e)}))}catch(e){Qe(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Issue while downloading file",e)}u.on("end",(function(){Qe(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Finished streaming response"),f.close();var e=Qe(ut,p,vt).call(p,u,d);o({data:e,response:u})})).on("error",(function(e){Qe(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Caught the following error :",e),e.data=Qe(ut,p,yt).call(p,e),s(e)}))}else{var h="Incompatible downloadDestination for Browser Environment, must be WritableStream";Qe(ut,p,Ot).call(p,Xe(at,p).ERROR,null,h),s(h)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Qe(ut,p,St).call(p,u,b,v,o,s,d)}else if(302==u.status){var m=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Qe(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(y.header),u.headers.hasOwnProperty("x-redirect-token")&&(Qe(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.buffer(!1);var k=j().createWriteStream(m);O.pipe(k),O.on("response",(function(e){Qe(ut,w,Ot).call(w,Xe(at,w).INFO,null,"Received response after redirection :",e.status),Qe(ut,w,St).call(w,e,k,m,o,s,d)}))}else Qe(ut,p,$t).call(p,u,e,i,d,o,s)}}))}))}}],i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(i,"=([0-9]+)")));s&&(o=s[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===We(n)){var o,i;for(var s in n)if(n.hasOwnProperty(s)){o=s,i=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,o),l=e.convertToType(t[s],i);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],o&&ze(r.prototype,o),i&&ze(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ft(e){for(var t=0;t<e.length;t++)if(Qe(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function dt(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof $.Blob&&e instanceof $.Blob||"function"==typeof File&&e instanceof File}function pt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Qe(ut,this,dt).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function ht(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Qe(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}Qe(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Qe(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"oauth2 applied to request");break;default:throw Qe(ut,n,Ot).call(n,Xe(at,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function yt(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function vt(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new $.Blob([e.text],{type:e.headers["content-type"]});var n=new L;n.name="hasError",n.value=!1;var r=[n],o=new Me;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===We(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Ne.convertToType(i,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function gt(e,t){return e<=0?e=t:e>Xe(st,this)&&(e=Xe(st,this)),e}function mt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=Ge(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}Ye(tt,this,t),Qe(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Retained cookie :",t)}else Ye(tt,this,null)}function wt(e){null!=Xe(tt,this)&&e.set(Qe(ut,this,pt).call(this,{Cookie:Xe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===We(e)&&"key"in e&&"value"in e&&"symbol"===We(e.value)||(e=Xe(at,this).INFO),!Qe(ut,this,jt).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=Qe(ut,this,kt).call(this)+" "+e.key+" - "+i,void 0!==Xe(nt,this)&&null!==Xe(nt,this)&&"function"==typeof Xe(nt,this).log?Xe(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Xe(at,this).DEBUG}function kt(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function Pt(e){if("object"!==We(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function $t(e,t,n,r,o,i){try{var s=Qe(ut,this,vt).call(this,e,r);Qe(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Response Status :",e.status),Qe(ut,this,Ot).call(this,Xe(at,this).DEBUG,Qe(ut,this,Pt),"Response Headers :",e.headers),Qe(ut,this,mt).call(this,e||{}),Qe(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Response Body :",s),204==e.status&&null==s?o({data:s,response:e}):e.ok&&null!=s?(this.addEtagToReservedMap(e,s),Qe(ut,this,bt).call(this,s,t,n),o({data:s,response:e})):(Qe(ut,this,Ot).call(this,Xe(at,this).ERROR,null,s),i(Je(Je({},e.error),{},{data:s})))}catch(e){Qe(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Caught error while processing response!"),Qe(ut,this,Ot).call(this,Xe(at,this).ERROR,null,e),e.data=Qe(ut,this,yt).call(this,e),i(e)}}function St(e,t,n,r,o,i){var s=this;Qe(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Streaming response to : ",n);try{e.on("data",(function(e){t.write(e)}))}catch(e){Qe(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"Issue while downloading file",e)}var a=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(qe(/.*filename="(.*)".*/,{filename:1})),c=P().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,a.data={path:P().parse(u),$objectType:"Path"};var f=new L;f.name="hasError",f.value=!1;var d=[f],p=new Me;p.flags=d,a.metadata=p}e.on("end",(function(){Qe(ut,s,Ot).call(s,Xe(at,s).INFO,null,"Finished streaming response"),0!==u.length?(Qe(ut,s,Ot).call(s,Xe(at,s).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:a,response:e})):(Qe(ut,s,Ot).call(s,Xe(at,s).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:a,response:e}))})),e.on("error",(function(e){Qe(ut,s,Ot).call(s,Xe(at,s).ERROR,null,"Caught the following error :",e),error.data=Qe(ut,s,yt).call(s,error),o(e)}))}function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e,t,n){return(t=Dt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dt(r.key),r)}}function Dt(e){var t=function(e){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}Ne=lt,lt.instance=new lt;var Ct=new WeakSet,At=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ct),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Rt(Rt({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new x("value","undefined or null");if(!I.validatePattern(this.value,/^([a-z0-9]+(-[a-z0-9]+)*\\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/))return new x("value","does not satisfy required pattern: /^([a-z0-9]+(-[a-z0-9]+)*\\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Rt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xt(e){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xt(e)}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bt(r.key),r)}}function Bt(e){var t=function(e){if("object"!=xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}At.prototype.value=void 0,At.prototype.$reserved=void 0,At.prototype.$objectType=void 0,At.prototype.$unknownFields=void 0;var Ut=new WeakSet,Jt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ut),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _t(_t(_t({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new x("value","undefined or null");if(!I.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new x("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new x("prefixLength","undefined or null");if(!I.validateMaximum(this.prefixLength,32))return new x("prefixLength","does not satisfy required maximum constraint: 32");if(!I.validateMinimum(this.prefixLength,0))return new x("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=_t({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&qt(t.prototype,n),r&&qt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){Vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return(t=Kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kt(r.key),r)}}function Kt(e){var t=function(e){if("object"!=Lt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lt(t)?t:t+""}Jt.prototype.value=void 0,Jt.prototype.prefixLength=32,Jt.prototype.$reserved=void 0,Jt.prototype.$objectType=void 0,Jt.prototype.$unknownFields=void 0;var Ht=new WeakSet,Zt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ht),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gt(Gt(Gt({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new x("value","undefined or null");if(!I.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new x("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new x("prefixLength","undefined or null");if(!I.validateMaximum(this.prefixLength,128))return new x("prefixLength","does not satisfy required maximum constraint: 128");if(!I.validateMinimum(this.prefixLength,0))return new x("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Gt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&zt(t.prototype,n),r&&zt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e,t,n){return(t=nn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nn(r.key),r)}}function nn(e){var t=function(e){if("object"!=Xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:t+""}Zt.prototype.value=void 0,Zt.prototype.prefixLength=128,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var rn=new WeakSet,on=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rn),this.$objectType="common.v1.config.IPAddress",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return Qt(Qt(Qt({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("ipv6","undefined or null"):new x("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Jt.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(Zt.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Qt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&tn(t.prototype,n),r&&tn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ln(e,t,n){return(t=fn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fn(r.key),r)}}function fn(e){var t=function(e){if("object"!=sn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sn(t)?t:t+""}on.prototype.ipv4=void 0,on.prototype.ipv6=void 0,on.prototype.$reserved=void 0,on.prototype.$objectType=void 0,on.prototype.$unknownFields=void 0;var dn=new WeakSet,pn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,dn),this.$objectType="common.v1.config.Metadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getOwnerReferenceId",value:function(){return this.ownerReferenceId}},{key:"setOwnerReferenceId",value:function(e){this.ownerReferenceId=e}},{key:"getOwnerUserName",value:function(){return this.ownerUserName}},{key:"setOwnerUserName",value:function(e){this.ownerUserName=e}},{key:"getProjectReferenceId",value:function(){return this.projectReferenceId}},{key:"setProjectReferenceId",value:function(e){this.projectReferenceId=e}},{key:"getProjectName",value:function(){return this.projectName}},{key:"setProjectName",value:function(e){this.projectName=e}},{key:"getCategoryIds",value:function(){return this.categoryIds}},{key:"setCategoryIds",value:function(e){this.categoryIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return un(un(un(un(un(un({},void 0!==this.getOwnerReferenceId()&&null!==this.getOwnerReferenceId()?{ownerReferenceId:this.getOwnerReferenceId()}:{}),void 0!==this.getOwnerUserName()&&null!==this.getOwnerUserName()?{ownerUserName:this.getOwnerUserName()}:{}),void 0!==this.getProjectReferenceId()&&null!==this.getProjectReferenceId()?{projectReferenceId:this.getProjectReferenceId()}:{}),void 0!==this.getProjectName()&&null!==this.getProjectName()?{projectName:this.getProjectName()}:{}),void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("ownerReferenceId"===t){if(void 0===this.ownerReferenceId||null===this.ownerReferenceId)return new x("ownerReferenceId","undefined or null");if(!I.validatePattern(this.ownerReferenceId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("ownerReferenceId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("ownerUserName"===t){if(void 0===this.ownerUserName||null===this.ownerUserName)return new x("ownerUserName","undefined or null");if(!I.validateMaxLength(this.ownerUserName,128))return new x("ownerUserName","does not satisfy required maxLength constraint: 128")}if("projectReferenceId"===t){if(void 0===this.projectReferenceId||null===this.projectReferenceId)return new x("projectReferenceId","undefined or null");if(!I.validatePattern(this.projectReferenceId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("projectReferenceId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("projectName"===t){if(void 0===this.projectName||null===this.projectName)return new x("projectName","undefined or null");if(!I.validateMaxLength(this.projectName,128))return new x("projectName","does not satisfy required maxLength constraint: 128")}if("categoryIds"===t){if(void 0===this.categoryIds||null===this.categoryIds)return new x("categoryIds","undefined or null");if(!I.validateMaxItems(this.categoryIds,256))return new x("categoryIds","does not satisfy required maxItems constraint: 256");if(!I.validateMinItems(this.categoryIds,1))return new x("categoryIds","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("ownerReferenceId")&&null!==t.ownerReferenceId&&void 0!==t.ownerReferenceId&&i.setOwnerReferenceId(t.ownerReferenceId),t.hasOwnProperty("ownerUserName")&&null!==t.ownerUserName&&void 0!==t.ownerUserName&&i.setOwnerUserName(t.ownerUserName),t.hasOwnProperty("projectReferenceId")&&null!==t.projectReferenceId&&void 0!==t.projectReferenceId&&i.setProjectReferenceId(t.projectReferenceId),t.hasOwnProperty("projectName")&&null!==t.projectName&&void 0!==t.projectName&&i.setProjectName(t.projectName),t.hasOwnProperty("categoryIds")&&null!==t.categoryIds&&void 0!==t.categoryIds){for(o=[],n=t.categoryIds,r=0;r<n.length;r++)o.push(n[r]);i.setCategoryIds(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!s)for(var a in i.$unknownFields=un({},t.$unknownFields),t)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=t[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&cn(t.prototype,n),r&&cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hn(e){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return(t=mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}function mn(e){var t=function(e){if("object"!=hn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hn(t)?t:t+""}pn.prototype.ownerReferenceId=void 0,pn.prototype.ownerUserName=void 0,pn.prototype.projectReferenceId=void 0,pn.prototype.projectName=void 0,pn.prototype.categoryIds=void 0,pn.prototype.$reserved=void 0,pn.prototype.$objectType=void 0,pn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,wn),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?vn(vn({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new x("tenantId","undefined or null");if(!I.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=vn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&gn(t.prototype,n),r&&gn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $n(e,t,n){return(t=Tn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tn(r.key),r)}}function Tn(e){var t=function(e){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(En=function(){return!!e})()}function Rn(e){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rn(e)}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fn(e,t)}On.prototype.tenantId=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var In=new WeakSet,Dn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Rn(t),function(e,t){if(t&&("object"==jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,En()?Reflect.construct(t,n||[],Rn(e).constructor):t.apply(e,n))}(this,t),In),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fn(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return!1===e?Pn(Pn(Pn(Pn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(null==e){if(!I.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===T.update&&!I.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new x("links","undefined or null");if(!I.validateMaxItems(this.links,20))return new x("links","does not satisfy required maxItems constraint: 20")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,On.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Re.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(!a)for(var u in s.$unknownFields=Pn({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Sn(n.prototype,r),o&&Sn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(On);function Cn(e){return Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(e)}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){Nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nn(e,t,n){return(t=Mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mn(r.key),r)}}function Mn(e){var t=function(e){if("object"!=Cn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cn(t)?t:t+""}function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qn=function(){return!!e})()}function Bn(e){return Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bn(e)}function Un(e,t){return Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Un(e,t)}Dn.prototype.extId=void 0,Dn.prototype.links=void 0,On.prototype.tenantId=void 0;var Jn=new WeakSet,Ln=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Bn(t),function(e,t){if(t&&("object"==Cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qn()?Reflect.construct(t,n||[],Bn(e).constructor):t.apply(e,n))}(this,t),Jn),e.$objectType="objects.v4.config.Certificate",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Un(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getPublicCert",value:function(){return this.publicCert}},{key:"setPublicCert",value:function(e){this.publicCert=e}},{key:"getPrivateKey",value:function(){return this.privateKey}},{key:"setPrivateKey",value:function(e){this.privateKey=e}},{key:"getCa",value:function(){return this.ca}},{key:"setCa",value:function(e){this.ca=e}},{key:"getAlternateFqdns",value:function(){return this.alternateFqdns}},{key:"setAlternateFqdns",value:function(e){this.alternateFqdns=e}},{key:"getShouldGenerate",value:function(){return this.shouldGenerate}},{key:"setShouldGenerate",value:function(e){this.shouldGenerate=e}},{key:"getAlternateIps",value:function(){return this.alternateIps}},{key:"setAlternateIps",value:function(e){this.alternateIps=e}},{key:"toJson",value:function(e){return xn(!1===e?xn(xn(xn(xn(xn(xn(xn(xn(xn(xn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getPublicCert()&&null!==this.getPublicCert()?{publicCert:this.getPublicCert()}:{}),void 0!==this.getPrivateKey()&&null!==this.getPrivateKey()?{privateKey:this.getPrivateKey()}:{}),void 0!==this.getCa()&&null!==this.getCa()?{ca:this.getCa()}:{}),void 0!==this.getAlternateFqdns()&&null!==this.getAlternateFqdns()?{alternateFqdns:this.getAlternateFqdns().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getShouldGenerate()&&null!==this.getShouldGenerate()?{shouldGenerate:this.getShouldGenerate()}:{}),void 0!==this.getAlternateIps()&&null!==this.getAlternateIps()?{alternateIps:this.getAlternateIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):xn(xn(xn(xn(xn(xn(xn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getPublicCert()&&null!==this.getPublicCert()?{publicCert:this.getPublicCert()}:{}),void 0!==this.getPrivateKey()&&null!==this.getPrivateKey()?{privateKey:this.getPrivateKey()}:{}),void 0!==this.getCa()&&null!==this.getCa()?{ca:this.getCa()}:{}),void 0!==this.getAlternateFqdns()&&null!==this.getAlternateFqdns()?{alternateFqdns:this.getAlternateFqdns().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getShouldGenerate()&&null!==this.getShouldGenerate()?{shouldGenerate:this.getShouldGenerate()}:{}),void 0!==this.getAlternateIps()&&null!==this.getAlternateIps()?{alternateIps:this.getAlternateIps().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("metadata"===t&&(void 0===this.metadata||null===this.metadata))return new x("metadata","undefined or null");if("publicCert"===t){if(void 0===this.publicCert||null===this.publicCert)return new x("publicCert","undefined or null");if(!I.validateMaxLength(this.publicCert,2e6))return new x("publicCert","does not satisfy required maxLength constraint: 2000000");if(!I.validateMinLength(this.publicCert,1))return new x("publicCert","does not satisfy required minLength constraint: 1")}if("privateKey"===t){if(void 0===this.privateKey||null===this.privateKey)return new x("privateKey","undefined or null");if(!I.validateMaxLength(this.privateKey,2e6))return new x("privateKey","does not satisfy required maxLength constraint: 2000000");if(!I.validateMinLength(this.privateKey,1))return new x("privateKey","does not satisfy required minLength constraint: 1")}if("ca"===t){if(void 0===this.ca||null===this.ca)return new x("ca","undefined or null");if(!I.validateMaxLength(this.ca,2e6))return new x("ca","does not satisfy required maxLength constraint: 2000000");if(!I.validateMinLength(this.ca,1))return new x("ca","does not satisfy required minLength constraint: 1")}if("alternateFqdns"===t){if(void 0===this.alternateFqdns||null===this.alternateFqdns)return new x("alternateFqdns","undefined or null");if(!I.validateMaxItems(this.alternateFqdns,999))return new x("alternateFqdns","does not satisfy required maxItems constraint: 999");if(!I.validateMinItems(this.alternateFqdns,1))return new x("alternateFqdns","does not satisfy required minItems constraint: 1")}if("shouldGenerate"===t&&(void 0===this.shouldGenerate||null===this.shouldGenerate))return new x("shouldGenerate","undefined or null");if("alternateIps"===t){if(void 0===this.alternateIps||null===this.alternateIps)return new x("alternateIps","undefined or null");if(!I.validateMaxItems(this.alternateIps,1e3))return new x("alternateIps","does not satisfy required maxItems constraint: 1000");if(!I.validateMinItems(this.alternateIps,1))return new x("alternateIps","does not satisfy required minItems constraint: 1")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Dn.constructFromObject(e,s,!0),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(pn.constructFromObject(e.metadata)),e.hasOwnProperty("publicCert")&&null!==e.publicCert&&void 0!==e.publicCert&&s.setPublicCert(e.publicCert),e.hasOwnProperty("privateKey")&&null!==e.privateKey&&void 0!==e.privateKey&&s.setPrivateKey(e.privateKey),e.hasOwnProperty("ca")&&null!==e.ca&&void 0!==e.ca&&s.setCa(e.ca),e.hasOwnProperty("alternateFqdns")&&null!==e.alternateFqdns&&void 0!==e.alternateFqdns){for(i=[],n=e.alternateFqdns,o=0;o<n.length;o++)r=At.constructFromObject(n[o],void 0),i.push(r);s.setAlternateFqdns(i)}if(e.hasOwnProperty("shouldGenerate")&&null!==e.shouldGenerate&&void 0!==e.shouldGenerate&&s.setShouldGenerate(e.shouldGenerate),e.hasOwnProperty("alternateIps")&&null!==e.alternateIps&&void 0!==e.alternateIps){for(i=[],n=e.alternateIps,o=0;o<n.length;o++)r=on.constructFromObject(n[o],void 0),i.push(r);s.setAlternateIps(i)}if(!a)for(var u in s.$unknownFields=xn({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&_n(n.prototype,r),o&&_n(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Dn);function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach((function(t){Kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kn(e,t,n){return(t=Zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zn(r.key),r)}}function Zn(e){var t=function(e){if("object"!=Wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}function Xn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ln.prototype.metadata=void 0,Ln.prototype.publicCert=void 0,Ln.prototype.privateKey=void 0,Ln.prototype.ca=void 0,Ln.prototype.alternateFqdns=void 0,Ln.prototype.shouldGenerate=!1,Ln.prototype.alternateIps=void 0,Dn.prototype.extId=void 0,Dn.prototype.links=void 0,On.prototype.tenantId=void 0;var Yn=new WeakSet,Qn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Yn),this.$objectType="objects.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zn(zn(zn(zn(zn(zn(zn({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Xn(Yn,this,er).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Xn(Yn,this,er).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("argumentsMap","undefined or null"):new x("errorGroup","undefined or null"):new x("locale","undefined or null"):new x("code","undefined or null"):new x("severity","undefined or null"):new x("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Hn(t.prototype,n),r&&Hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function er(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Gn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Wn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function tr(e){return tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(e)}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){or(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function or(e,t,n){return(t=sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sr(r.key),r)}}function sr(e){var t=function(e){if("object"!=tr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tr(t)?t:t+""}Qn.prototype.message=void 0,Qn.prototype.severity=void 0,Qn.prototype.code=void 0,Qn.prototype.locale="en_US",Qn.prototype.errorGroup=void 0,Qn.prototype.argumentsMap=void 0,Qn.prototype.$reserved=void 0,Qn.prototype.$objectType=void 0,Qn.prototype.$unknownFields=void 0;var ar=new WeakSet,ur=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ar),this.$objectType="objects.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rr(rr(rr(rr({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("attributePath","undefined or null"):new x("message","undefined or null"):new x("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=rr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ir(t.prototype,n),r&&ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function lr(e){return lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(e)}function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(e,t,n){return(t=hr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hr(r.key),r)}}function hr(e){var t=function(e){if("object"!=lr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lr(t)?t:t+""}function yr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ur.prototype.location=void 0,ur.prototype.message=void 0,ur.prototype.attributePath=void 0,ur.prototype.$reserved=void 0,ur.prototype.$objectType=void 0,ur.prototype.$unknownFields=void 0;var vr=new WeakSet,br=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,vr),this.$objectType="objects.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fr(fr(fr(fr(fr(fr({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:yr(vr,this,gr).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("validationErrorMessages","undefined or null"):new x("path","undefined or null"):new x("error","undefined or null"):new x("statusCode","undefined or null"):new x("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&s.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&s.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&s.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&s.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=ur.constructFromObject(n[o],void 0),i.push(r);s.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=fr({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&pr(t.prototype,n),r&&pr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gr(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wr(e){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wr(e)}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kr(e,t,n){return(t=$r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$r(r.key),r)}}function $r(e){var t=function(e){if("object"!=wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wr(t)?t:t+""}function Sr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}br.prototype.timestamp=void 0,br.prototype.statusCode=void 0,br.prototype.error=void 0,br.prototype.path=void 0,br.prototype.validationErrorMessages=void 0,br.prototype.$reserved=void 0,br.prototype.$objectType=void 0,br.prototype.$unknownFields=void 0;var Tr=new WeakSet,Er=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Tr),this.$objectType="objects.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return jr(jr({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Sr(Tr,this,Rr).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):Sr(Tr,this,Rr).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)a.setError([]);else{for(i=[],s=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:wr(n[0]),o=0;o<n.length;o++){if("objects.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Qn.constructFromObject(n[o],void 0),i.push(r)}a.setError(i)}else{if("objects.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:wr(t.error)))throw"Unknown datatype "+s+" in data";a.setError(br.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=jr({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Pr(t.prototype,n),r&&Pr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mr(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===wr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ir(e){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(e)}function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){Ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(e,t,n){return(t=Nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nr(r.key),r)}}function Nr(e){var t=function(e){if("object"!=Ir(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ir(t)?t:t+""}function _r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_r=function(){return!!e})()}function Mr(e){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mr(e)}function qr(e,t){return qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qr(e,t)}function Br(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Er.prototype.error=void 0,Er.prototype.$reserved=void 0,Er.prototype.$objectType=void 0,Er.prototype.$unknownFields=void 0;var Ur=new WeakSet,Jr=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Mr(t),function(e,t){if(t&&("object"==Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_r()?Reflect.construct(t,n||[],Mr(e).constructor):t.apply(e,n))}(this,t),Ur),e.$objectType="objects.v4.config.GetCertificateApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qr(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cr(Cr(Cr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Br(Ur,this,Lr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Br(Ur,this,Lr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ir(e.data)){case"objects.v4.config.Certificate":r.setData(Ln.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Cr({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&xr(n.prototype,r),o&&xr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Lr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Fr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ir(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Jr.prototype.metadata=void 0,Jr.prototype.data=void 0,Jr.prototype.$reserved=void 0,Jr.prototype.$objectType=void 0,Jr.prototype.$unknownFields=void 0;var Wr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OBJECT_STORE_DEPLOYMENT_FAILED:"OBJECT_STORE_DEPLOYMENT_FAILED",OBJECT_STORE_CERT_CREATION_FAILED:"OBJECT_STORE_CERT_CREATION_FAILED",OBJECT_STORE_DELETION_FAILED:"OBJECT_STORE_DELETION_FAILED",UNDEPLOYED_OBJECT_STORE:"UNDEPLOYED_OBJECT_STORE",DEPLOYING_OBJECT_STORE:"DEPLOYING_OBJECT_STORE",CREATING_OBJECT_STORE_CERT:"CREATING_OBJECT_STORE_CERT",DELETING_OBJECT_STORE:"DELETING_OBJECT_STORE",OBJECT_STORE_AVAILABLE:"OBJECT_STORE_AVAILABLE",OBJECT_STORE_OPERATION_PENDING:"OBJECT_STORE_OPERATION_PENDING",OBJECT_STORE_OPERATION_FAILED:"OBJECT_STORE_OPERATION_FAILED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Wr).find((function(t){return Wr[t]===e}));return null==t?Wr.$UNKNOWN:Wr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wr.$UNKNOWN:case Wr.$REDACTED:case Wr.OBJECT_STORE_DEPLOYMENT_FAILED:case Wr.OBJECT_STORE_CERT_CREATION_FAILED:case Wr.OBJECT_STORE_DELETION_FAILED:case Wr.UNDEPLOYED_OBJECT_STORE:case Wr.DEPLOYING_OBJECT_STORE:case Wr.CREATING_OBJECT_STORE_CERT:case Wr.DELETING_OBJECT_STORE:case Wr.OBJECT_STORE_AVAILABLE:case Wr.OBJECT_STORE_OPERATION_PENDING:case Wr.OBJECT_STORE_OPERATION_FAILED:return;default:throw new Error("Invalid : must be State.{ $UNKNOWN|$REDACTED|OBJECT_STORE_DEPLOYMENT_FAILED|OBJECT_STORE_CERT_CREATION_FAILED|OBJECT_STORE_DELETION_FAILED|UNDEPLOYED_OBJECT_STORE|DEPLOYING_OBJECT_STORE|CREATING_OBJECT_STORE_CERT|DELETING_OBJECT_STORE|OBJECT_STORE_AVAILABLE|OBJECT_STORE_OPERATION_PENDING|OBJECT_STORE_OPERATION_FAILED }")}}};Object.freeze(Wr);const Gr=Wr;function Vr(e){return Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(e)}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hr(e,t,n){return(t=Xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xr(r.key),r)}}function Xr(e){var t=function(e){if("object"!=Vr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vr(t)?t:t+""}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qr(e)}function eo(e,t){return eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eo(e,t)}function to(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var no=new WeakSet,ro=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=Qr(t),function(e,t){if(t&&("object"==Vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yr()?Reflect.construct(t,n||[],Qr(e).constructor):t.apply(e,n))}(this,t),no),n.name=e,n.$objectType="objects.v4.config.ObjectStore",n.$reserved={$fv:"v4.r0"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getLastUpdateTime",value:function(){return this.lastUpdateTime}},{key:"setLastUpdateTime",value:function(e){this.lastUpdateTime=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getDeploymentVersion",value:function(){return this.deploymentVersion}},{key:"setDeploymentVersion",value:function(e){this.deploymentVersion=e}},{key:"getDomain",value:function(){return this.domain}},{key:"setDomain",value:function(e){this.domain=e}},{key:"getRegion",value:function(){return this.region}},{key:"setRegion",value:function(e){this.region=e}},{key:"getNumWorkerNodes",value:function(){return this.numWorkerNodes}},{key:"setNumWorkerNodes",value:function(e){this.numWorkerNodes=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getStorageNetworkReference",value:function(){return this.storageNetworkReference}},{key:"setStorageNetworkReference",value:function(e){this.storageNetworkReference=e}},{key:"getStorageNetworkVip",value:function(){return this.storageNetworkVip}},{key:"setStorageNetworkVip",value:function(e){this.storageNetworkVip=e}},{key:"getStorageNetworkDnsIp",value:function(){return this.storageNetworkDnsIp}},{key:"setStorageNetworkDnsIp",value:function(e){this.storageNetworkDnsIp=e}},{key:"getPublicNetworkReference",value:function(){return this.publicNetworkReference}},{key:"setPublicNetworkReference",value:function(e){this.publicNetworkReference=e}},{key:"getPublicNetworkIps",value:function(){return this.publicNetworkIps}},{key:"setPublicNetworkIps",value:function(e){this.publicNetworkIps=e}},{key:"getTotalCapacityGiB",value:function(){return this.totalCapacityGiB}},{key:"setTotalCapacityGiB",value:function(e){this.totalCapacityGiB=e}},{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"getCertificateExtIds",value:function(){return this.certificateExtIds}},{key:"setCertificateExtIds",value:function(e){this.certificateExtIds=e}},{key:"toJson",value:function(e){return Kr(!1===e?Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:to(no,this,oo).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:to(no,this,oo).call(this,this.getLastUpdateTime(),!1)}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getCertificateExtIds()&&null!==this.getCertificateExtIds()?{certificateExtIds:this.getCertificateExtIds()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("metadata"===t&&(void 0===this.metadata||null===this.metadata))return new x("metadata","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!I.validateMaxLength(this.name,50))return new x("name","does not satisfy required maxLength constraint: 50");if(!I.validateMinLength(this.name,1))return new x("name","does not satisfy required minLength constraint: 1");if(!I.validatePattern(this.name,/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/))return new x("name","does not satisfy required pattern: /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/")}if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new x("creationTime","undefined or null");if("lastUpdateTime"===t&&(void 0===this.lastUpdateTime||null===this.lastUpdateTime))return new x("lastUpdateTime","undefined or null");if("description"===t){if(void 0===this.description||null===this.description)return new x("description","undefined or null");if(!I.validateMaxLength(this.description,1e3))return new x("description","does not satisfy required maxLength constraint: 1000")}if("deploymentVersion"===t){if(void 0===this.deploymentVersion||null===this.deploymentVersion)return new x("deploymentVersion","undefined or null");if(!I.validateMaxLength(this.deploymentVersion,50))return new x("deploymentVersion","does not satisfy required maxLength constraint: 50");if(!I.validateMinLength(this.deploymentVersion,1))return new x("deploymentVersion","does not satisfy required minLength constraint: 1");if(!I.validatePattern(this.deploymentVersion,/^[a-zA-z0-9][a-zA-z0-9\\.]*[a-zA-Z0-9]?$/))return new x("deploymentVersion","does not satisfy required pattern: /^[a-zA-z0-9][a-zA-z0-9\\.]*[a-zA-Z0-9]?$/")}if("domain"===t){if(void 0===this.domain||null===this.domain)return new x("domain","undefined or null");if(!I.validateMaxLength(this.domain,1e3))return new x("domain","does not satisfy required maxLength constraint: 1000");if(!I.validateMinLength(this.domain,1))return new x("domain","does not satisfy required minLength constraint: 1");if(!I.validatePattern(this.domain,/^(([a-zA-Z0-9_\\-]{1,63})\\.)+([a-zA-Z0-9_\\-]{1,63})$/))return new x("domain","does not satisfy required pattern: /^(([a-zA-Z0-9_\\-]{1,63})\\.)+([a-zA-Z0-9_\\-]{1,63})$/")}if("region"===t){if(void 0===this.region||null===this.region)return new x("region","undefined or null");if(!I.validateMaxLength(this.region,50))return new x("region","does not satisfy required maxLength constraint: 50");if(!I.validateMinLength(this.region,1))return new x("region","does not satisfy required minLength constraint: 1");if(!I.validatePattern(this.region,/^[a-z]+\\-[a-z]+\\-[0-9]$/))return new x("region","does not satisfy required pattern: /^[a-z]+\\-[a-z]+\\-[0-9]$/")}if("numWorkerNodes"===t){if(void 0===this.numWorkerNodes||null===this.numWorkerNodes)return new x("numWorkerNodes","undefined or null");if(!I.validateMaximum(this.numWorkerNodes,1e3))return new x("numWorkerNodes","does not satisfy required maximum constraint: 1000");if(!I.validateMinimum(this.numWorkerNodes,1))return new x("numWorkerNodes","does not satisfy required minimum constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new x("clusterExtId","undefined or null");if(!I.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("storageNetworkReference"===t){if(void 0===this.storageNetworkReference||null===this.storageNetworkReference)return new x("storageNetworkReference","undefined or null");if(!I.validateMaxLength(this.storageNetworkReference,1e3))return new x("storageNetworkReference","does not satisfy required maxLength constraint: 1000")}if("storageNetworkVip"===t&&(void 0===this.storageNetworkVip||null===this.storageNetworkVip))return new x("storageNetworkVip","undefined or null");if("storageNetworkDnsIp"===t&&(void 0===this.storageNetworkDnsIp||null===this.storageNetworkDnsIp))return new x("storageNetworkDnsIp","undefined or null");if("publicNetworkReference"===t){if(void 0===this.publicNetworkReference||null===this.publicNetworkReference)return new x("publicNetworkReference","undefined or null");if(!I.validateMaxLength(this.publicNetworkReference,1e3))return new x("publicNetworkReference","does not satisfy required maxLength constraint: 1000")}if("publicNetworkIps"===t){if(void 0===this.publicNetworkIps||null===this.publicNetworkIps)return new x("publicNetworkIps","undefined or null");if(!I.validateMaxItems(this.publicNetworkIps,1e3))return new x("publicNetworkIps","does not satisfy required maxItems constraint: 1000");if(!I.validateMinItems(this.publicNetworkIps,1))return new x("publicNetworkIps","does not satisfy required minItems constraint: 1")}if("totalCapacityGiB"===t){if(void 0===this.totalCapacityGiB||null===this.totalCapacityGiB)return new x("totalCapacityGiB","undefined or null");if(!I.validateMaximum(this.totalCapacityGiB,178814713856))return new x("totalCapacityGiB","does not satisfy required maximum constraint: 178814713856");if(!I.validateMinimum(this.totalCapacityGiB,1))return new x("totalCapacityGiB","does not satisfy required minimum constraint: 1")}if("state"===t&&(void 0===this.state||null===this.state))return new x("state","undefined or null");if("certificateExtIds"===t){if(void 0===this.certificateExtIds||null===this.certificateExtIds)return new x("certificateExtIds","undefined or null");if(!I.validateMaxItems(this.certificateExtIds,100))return new x("certificateExtIds","does not satisfy required maxItems constraint: 100");if(!I.validateMinItems(this.certificateExtIds,1))return new x("certificateExtIds","does not satisfy required minItems constraint: 1")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Dn.constructFromObject(e,s,!0),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(pn.constructFromObject(e.metadata)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&s.setName(e.name),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),e.hasOwnProperty("lastUpdateTime")&&null!==e.lastUpdateTime&&void 0!==e.lastUpdateTime&&s.setLastUpdateTime(e.lastUpdateTime),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("deploymentVersion")&&null!==e.deploymentVersion&&void 0!==e.deploymentVersion&&s.setDeploymentVersion(e.deploymentVersion),e.hasOwnProperty("domain")&&null!==e.domain&&void 0!==e.domain&&s.setDomain(e.domain),e.hasOwnProperty("region")&&null!==e.region&&void 0!==e.region&&s.setRegion(e.region),e.hasOwnProperty("numWorkerNodes")&&null!==e.numWorkerNodes&&void 0!==e.numWorkerNodes&&s.setNumWorkerNodes(e.numWorkerNodes),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),e.hasOwnProperty("storageNetworkReference")&&null!==e.storageNetworkReference&&void 0!==e.storageNetworkReference&&s.setStorageNetworkReference(e.storageNetworkReference),e.hasOwnProperty("storageNetworkVip")&&null!==e.storageNetworkVip&&void 0!==e.storageNetworkVip&&s.setStorageNetworkVip(on.constructFromObject(e.storageNetworkVip)),e.hasOwnProperty("storageNetworkDnsIp")&&null!==e.storageNetworkDnsIp&&void 0!==e.storageNetworkDnsIp&&s.setStorageNetworkDnsIp(on.constructFromObject(e.storageNetworkDnsIp)),e.hasOwnProperty("publicNetworkReference")&&null!==e.publicNetworkReference&&void 0!==e.publicNetworkReference&&s.setPublicNetworkReference(e.publicNetworkReference),e.hasOwnProperty("publicNetworkIps")&&null!==e.publicNetworkIps&&void 0!==e.publicNetworkIps){for(i=[],n=e.publicNetworkIps,o=0;o<n.length;o++)r=on.constructFromObject(n[o],void 0),i.push(r);s.setPublicNetworkIps(i)}if(e.hasOwnProperty("totalCapacityGiB")&&null!==e.totalCapacityGiB&&void 0!==e.totalCapacityGiB&&s.setTotalCapacityGiB(e.totalCapacityGiB),e.hasOwnProperty("state")&&null!==e.state&&void 0!==e.state&&s.setState(Gr.constructFromObject(e.state)),e.hasOwnProperty("certificateExtIds")&&null!==e.certificateExtIds&&void 0!==e.certificateExtIds){for(i=[],n=e.certificateExtIds,o=0;o<n.length;o++)i.push(n[o]);s.setCertificateExtIds(i)}if(!a)for(var u in s.$unknownFields=Kr({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Zr(n.prototype,r),o&&Zr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Dn);function oo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function io(e){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},io(e)}function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uo(e,t,n){return(t=co(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,co(r.key),r)}}function co(e){var t=function(e){if("object"!=io(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=io(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==io(t)?t:t+""}ro.prototype.metadata=void 0,ro.prototype.name=void 0,ro.prototype.creationTime=void 0,ro.prototype.lastUpdateTime=void 0,ro.prototype.description=void 0,ro.prototype.deploymentVersion=void 0,ro.prototype.domain=void 0,ro.prototype.region=void 0,ro.prototype.numWorkerNodes=void 0,ro.prototype.clusterExtId=void 0,ro.prototype.storageNetworkReference=void 0,ro.prototype.storageNetworkVip=void 0,ro.prototype.storageNetworkDnsIp=void 0,ro.prototype.publicNetworkReference=void 0,ro.prototype.publicNetworkIps=void 0,ro.prototype.totalCapacityGiB=void 0,ro.prototype.state=void 0,ro.prototype.certificateExtIds=void 0,Dn.prototype.extId=void 0,Dn.prototype.links=void 0,On.prototype.tenantId=void 0;var fo=new WeakSet,po=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,fo),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ao(ao({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(!I.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new x("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ao({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&lo(t.prototype,n),r&&lo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){return yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(e)}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function go(e,t,n){return(t=wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wo(r.key),r)}}function wo(e){var t=function(e){if("object"!=yo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yo(t)?t:t+""}function Oo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oo=function(){return!!e})()}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jo(e)}function ko(e,t){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ko(e,t)}function Po(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}po.prototype.extId=void 0,po.prototype.$reserved=void 0,po.prototype.$objectType=void 0,po.prototype.$unknownFields=void 0;var $o=new WeakSet,So=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=jo(t),function(e,t){if(t&&("object"==yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oo()?Reflect.construct(t,n||[],jo(e).constructor):t.apply(e,n))}(this,t),$o),e.$objectType="objects.v4.config.CreateObjectstoreApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bo(bo(bo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Po($o,this,To).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Po($o,this,To).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:yo(e.data)){case"prism.v4.config.TaskReference":r.setData(po.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=bo({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&mo(n.prototype,r),o&&mo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function To(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ho(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ho(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===yo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Eo(e){return Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eo(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e,t,n){return(t=Do(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Do(r.key),r)}}function Do(e){var t=function(e){if("object"!=Eo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eo(t)?t:t+""}function Co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Co=function(){return!!e})()}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function xo(e,t){return xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xo(e,t)}So.prototype.metadata=void 0,So.prototype.data=void 0,So.prototype.$reserved=void 0,So.prototype.$objectType=void 0,So.prototype.$unknownFields=void 0;var No=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Ao(t),function(e,t){if(t&&("object"==Eo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Co()?Reflect.construct(t,n||[],Ao(e).constructor):t.apply(e,n))}(this,t)).$objectType="objects.v4.config.CertificateProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xo(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ln.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Io(n.prototype,r),o&&Io(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ln);function _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mo(e){return Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mo(e)}function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lo(r.key),r)}}function Lo(e){var t=function(e){if("object"!=Mo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mo(t)?t:t+""}function Wo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wo=function(){return!!e})()}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Go(e)}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vo(e,t)}function zo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ko=new WeakSet,Ho=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Go(t),function(e,t){if(t&&("object"==Mo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wo()?Reflect.construct(t,n||[],Go(e).constructor):t.apply(e,n))}(this,t),Ko),e.$objectType="objects.v4.config.ListCertificatesApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bo(Bo(Bo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):zo(Ko,this,Zo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):zo(Ko,this,Zo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Mo(n[0]),o=0;o<n.length;o++)switch(s){case"objects.v4.config.Certificate":r=Ln.constructFromObject(n[o],void 0),i.push(r);break;case"objects.v4.config.CertificateProjection":r=No.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(i)}else{if("objects.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Mo(e.data)))throw"Unknown datatype "+s+" in data";a.setData(Er.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Bo({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Jo(n.prototype,r),o&&Jo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Zo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_o(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Mo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yo(e)}function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ti(e,t,n){return(t=ri(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ri(r.key),r)}}function ri(e){var t=function(e){if("object"!=Yo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yo(t)?t:t+""}function oi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oi=function(){return!!e})()}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(e)}function si(e,t){return si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},si(e,t)}function ai(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ho.prototype.metadata=void 0,Ho.prototype.data=void 0,Ho.prototype.$reserved=void 0,Ho.prototype.$objectType=void 0,Ho.prototype.$unknownFields=void 0;var ui=new WeakSet,li=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ii(t),function(e,t){if(t&&("object"==Yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oi()?Reflect.construct(t,n||[],ii(e).constructor):t.apply(e,n))}(this,t),ui),e.$objectType="objects.v4.config.DeleteObjectstoreApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&si(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ei(ei(ei({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ai(ui,this,ci).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ai(ui,this,ci).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yo(e.data)){case"prism.v4.config.TaskReference":r.setData(po.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ei({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ni(n.prototype,r),o&&ni(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ci(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Xo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Yo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function di(e){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(e)}function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(n),!0).forEach((function(t){yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(e,t,n){return(t=bi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bi(r.key),r)}}function bi(e){var t=function(e){if("object"!=di(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=di(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==di(t)?t:t+""}function gi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gi=function(){return!!e})()}function mi(e){return mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mi(e)}function wi(e,t){return wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wi(e,t)}function Oi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}li.prototype.metadata=void 0,li.prototype.data=void 0,li.prototype.$reserved=void 0,li.prototype.$objectType=void 0,li.prototype.$unknownFields=void 0;var ji=new WeakSet,ki=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mi(t),function(e,t){if(t&&("object"==di(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gi()?Reflect.construct(t,n||[],mi(e).constructor):t.apply(e,n))}(this,t),ji),e.$objectType="objects.v4.config.UpdateObjectstoreApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wi(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hi(hi(hi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Oi(ji,this,Pi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Oi(ji,this,Pi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:di(e.data)){case"prism.v4.config.TaskReference":r.setData(po.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=hi({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&vi(n.prototype,r),o&&vi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Pi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return fi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===di(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Si(e){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(e)}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ri(e,t,n){return(t=Ii(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ii(r.key),r)}}function Ii(e){var t=function(e){if("object"!=Si(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Si(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Si(t)?t:t+""}function Di(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Di=function(){return!!e})()}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ci(e)}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ai(e,t)}function xi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ki.prototype.metadata=void 0,ki.prototype.data=void 0,ki.prototype.$reserved=void 0,ki.prototype.$objectType=void 0,ki.prototype.$unknownFields=void 0;var Ni=new WeakSet,_i=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ci(t),function(e,t){if(t&&("object"==Si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Di()?Reflect.construct(t,n||[],Ci(e).constructor):t.apply(e,n))}(this,t),Ni),e.$objectType="objects.v4.config.GetObjectstoreApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ei(Ei(Ei({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xi(Ni,this,Mi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):xi(Ni,this,Mi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Si(e.data)){case"objects.v4.config.ObjectStore":r.setData(ro.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ei({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Fi(n.prototype,r),o&&Fi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Mi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return $i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$i(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Si(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bi(e){return Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(e)}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){Li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Li(e,t,n){return(t=Gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gi(r.key),r)}}function Gi(e){var t=function(e){if("object"!=Bi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bi(t)?t:t+""}function Vi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vi=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}function Ki(e,t){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ki(e,t)}function Hi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_i.prototype.metadata=void 0,_i.prototype.data=void 0,_i.prototype.$reserved=void 0,_i.prototype.$objectType=void 0,_i.prototype.$unknownFields=void 0;var Zi=new WeakSet,Xi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zi(t),function(e,t){if(t&&("object"==Bi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vi()?Reflect.construct(t,n||[],zi(e).constructor):t.apply(e,n))}(this,t),Zi),e.$objectType="objects.v4.config.CreateCertificateApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ki(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ji(Ji(Ji({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Hi(Zi,this,Yi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Hi(Zi,this,Yi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Bi(e.data)){case"prism.v4.config.TaskReference":r.setData(po.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ji({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wi(n.prototype,r),o&&Wi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Yi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Bi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function es(e){return es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(e)}function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach((function(t){rs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rs(e,t,n){return(t=is(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,is(r.key),r)}}function is(e){var t=function(e){if("object"!=es(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=es(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==es(t)?t:t+""}function ss(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ss=function(){return!!e})()}function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},as(e)}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},us(e,t)}function ls(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xi.prototype.metadata=void 0,Xi.prototype.data=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;var cs=new WeakSet,fs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=as(t),function(e,t){if(t&&("object"==es(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ss()?Reflect.construct(t,n||[],as(e).constructor):t.apply(e,n))}(this,t),cs),e.$objectType="objects.v4.config.GetCaApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&us(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ns(ns(ns({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ls(cs,this,ds).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ls(cs,this,ds).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:es(e.data)){case"Map":r.setData(e.data);break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ns({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&os(n.prototype,r),o&&os(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ds(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Qi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===es(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ps(e){return ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ps(e)}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){vs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vs(e,t,n){return(t=gs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gs(r.key),r)}}function gs(e){var t=function(e){if("object"!=ps(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ps(t)?t:t+""}function ms(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ms=function(){return!!e})()}function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ws(e)}function Os(e,t){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Os(e,t)}function js(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}fs.prototype.metadata=void 0,fs.prototype.data=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var ks=new WeakSet,Ps=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=ws(t),function(e,t){if(t&&("object"==ps(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ms()?Reflect.construct(t,n||[],ws(e).constructor):t.apply(e,n))}(this,t,[e]),ks),n.$objectType="objects.v4.config.ObjectStoreProjection",n.$reserved={$fv:"v4.r0"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Os(e,t)}(t,e),n=t,r=[{key:"getCertificateProjection",value:function(){return this.certificateProjection}},{key:"setCertificateProjection",value:function(e){this.certificateProjection=e}},{key:"toJson",value:function(e){return ys(!1===e?ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys({},void 0!==this.getCertificateProjection()&&null!==this.getCertificateProjection()?{certificateProjection:this.getCertificateProjection().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:js(ks,this,$s).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:js(ks,this,$s).call(this,this.getLastUpdateTime(),!1)}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getCertificateExtIds()&&null!==this.getCertificateExtIds()?{certificateExtIds:this.getCertificateExtIds()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys(ys({},void 0!==this.getCertificateProjection()&&null!==this.getCertificateProjection()?{certificateProjection:this.getCertificateProjection().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDeploymentVersion()&&null!==this.getDeploymentVersion()?{deploymentVersion:this.getDeploymentVersion()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getNumWorkerNodes()&&null!==this.getNumWorkerNodes()?{numWorkerNodes:this.getNumWorkerNodes()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getStorageNetworkReference()&&null!==this.getStorageNetworkReference()?{storageNetworkReference:this.getStorageNetworkReference()}:{}),void 0!==this.getStorageNetworkVip()&&null!==this.getStorageNetworkVip()?{storageNetworkVip:this.getStorageNetworkVip().toJson(!1)}:{}),void 0!==this.getStorageNetworkDnsIp()&&null!==this.getStorageNetworkDnsIp()?{storageNetworkDnsIp:this.getStorageNetworkDnsIp().toJson(!1)}:{}),void 0!==this.getPublicNetworkReference()&&null!==this.getPublicNetworkReference()?{publicNetworkReference:this.getPublicNetworkReference()}:{}),void 0!==this.getPublicNetworkIps()&&null!==this.getPublicNetworkIps()?{publicNetworkIps:this.getPublicNetworkIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalCapacityGiB()&&null!==this.getTotalCapacityGiB()?{totalCapacityGiB:this.getTotalCapacityGiB()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"certificateProjection"!==t||void 0!==this.certificateProjection&&null!==this.certificateProjection?new x(t,"no such property exists"):new x("certificateProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,ro.constructFromObject(e,s,!0),e.hasOwnProperty("certificateProjection")&&null!==e.certificateProjection&&void 0!==e.certificateProjection){for(i=[],n=e.certificateProjection,o=0;o<n.length;o++)r=No.constructFromObject(n[o],void 0),i.push(r);s.setCertificateProjection(i)}if(!a)for(var u in s.$unknownFields=ys({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&bs(n.prototype,r),o&&bs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ro);function $s(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ts(e){return Ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(e)}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){Fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fs(e,t,n){return(t=Ds(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ds(r.key),r)}}function Ds(e){var t=function(e){if("object"!=Ts(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ts(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ts(t)?t:t+""}function Cs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cs=function(){return!!e})()}function As(e){return As=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},As(e)}function xs(e,t){return xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xs(e,t)}function Ns(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ps.prototype.certificateProjection=void 0,ro.prototype.metadata=void 0,ro.prototype.name=void 0,ro.prototype.creationTime=void 0,ro.prototype.lastUpdateTime=void 0,ro.prototype.description=void 0,ro.prototype.deploymentVersion=void 0,ro.prototype.domain=void 0,ro.prototype.region=void 0,ro.prototype.numWorkerNodes=void 0,ro.prototype.clusterExtId=void 0,ro.prototype.storageNetworkReference=void 0,ro.prototype.storageNetworkVip=void 0,ro.prototype.storageNetworkDnsIp=void 0,ro.prototype.publicNetworkReference=void 0,ro.prototype.publicNetworkIps=void 0,ro.prototype.totalCapacityGiB=void 0,ro.prototype.state=void 0,ro.prototype.certificateExtIds=void 0,Dn.prototype.extId=void 0,Dn.prototype.links=void 0,On.prototype.tenantId=void 0;var _s=new WeakSet,Ms=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=As(t),function(e,t){if(t&&("object"==Ts(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Cs()?Reflect.construct(t,n||[],As(e).constructor):t.apply(e,n))}(this,t),_s),e.$objectType="objects.v4.config.ListObjectstoresApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xs(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Rs(Rs(Rs({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ns(_s,this,qs).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ns(_s,this,qs).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ts(n[0]),o=0;o<n.length;o++)switch(s){case"objects.v4.config.ObjectStore":r=ro.constructFromObject(n[o],void 0),i.push(r);break;case"objects.v4.config.ObjectStoreProjection":r=Ps.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(i)}else{if("objects.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ts(e.data)))throw"Unknown datatype "+s+" in data";a.setData(Er.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Rs({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Is(n.prototype,r),o&&Is(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function qs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ss(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ss(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ts(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Bs(e){return Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(e)}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ls(e,t,n){return(t=Gs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gs(r.key),r)}}function Gs(e){var t=function(e){if("object"!=Bs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bs(t)?t:t+""}function Vs(e,t){return e.get(zs(e,t))}function zs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ms.prototype.metadata=void 0,Ms.prototype.data=void 0,Ms.prototype.$reserved=void 0,Ms.prototype.$objectType=void 0,Ms.prototype.$unknownFields=void 0;var Ks=new WeakMap,Hs=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Ks,void 0),this.apiClient=t||lt.instance,n=Ks,r=new Set,n.set(zs(n,this),r),Vs(Ks,this).add("authorization"),Vs(Ks,this).add("cookie"),Vs(Ks,this).add("host"),Vs(Ks,this).add("user-agent")},t=[{key:"createCertificate",value:function(e,t){var r,o=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},s=null;try{r=n(975)}catch(e){}if("function"==typeof t.pipe)s=t,i["Content-Length"]=r.statSync(t.path).size,i.hasOwnProperty("Content-Disposition")||(i["Content-Disposition"]='attachment; filename="'+P().parse(t.path).base+'"');else if("string"==typeof t){var a;try{a=n(784)}catch(e){throw new Error("Cannot find module 'path'. Ensure you are using a Node.js environment. If not, use ReadableStream for body parameter.")}try{s=r.createReadStream(t),i["Content-Length"]=r.statSync(t).size,i.hasOwnProperty("Content-Disposition")||(i["Content-Disposition"]='attachment; filename="'+a.basename(t)+'"')}catch(e){throw new Error("Cannot read file: "+t+". Error: "+e.message)}}else s=t;if(null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling createCertificate");if(null==s)throw new Error("Invalid body when calling createCertificate");var u={objectStoreExtId:e},l={};Object.keys(i).forEach((function(e){Vs(Ks,o).has(e.toLowerCase())||(l[e]=i[e])}));var c=Js({},l);lt.addEtagReferenceToHeader(t,c);var f=Xi;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates","POST",u,{},c,{},s,["basicAuthScheme"],["application/octet-stream"],["application/json"],f)}},{key:"createObjectstore",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof ro&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createObjectstore");var o={};Object.keys(r).forEach((function(e){Vs(Ks,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=Js({},o);lt.addEtagReferenceToHeader(e,i);var s=So;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores","POST",{},{},i,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteObjectstoreById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteObjectstoreById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Vs(Ks,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Js({},o),s=li;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{extId}","DELETE",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"getCaByCertificateId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCaByCertificateId");if(null==t)throw new Error("Missing the required parameter 'certificateExtId' when calling getCaByCertificateId");var o={objectStoreExtId:e,certificateExtId:t},i={};Object.keys(r).forEach((function(e){Vs(Ks,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=Js({},i),a=fs;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{certificateExtId}/certificate-authority","GET",o,{},s,{},null,["basicAuthScheme"],[],["application/octet-stream","application/json"],a)}},{key:"getCertificateById",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCertificateById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getCertificateById");var o={objectStoreExtId:e,extId:t},i={};Object.keys(r).forEach((function(e){Vs(Ks,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=Js({},i),a=Jr;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{extId}","GET",o,{},s,{},null,["basicAuthScheme"],[],["application/json"],a)}},{key:"getObjectstoreById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getObjectstoreById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Vs(Ks,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Js({},o),s=_i;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{extId}","GET",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listCertificatesByObjectstoreId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'objectStoreExtId' when calling listCertificatesByObjectstoreId");var o={objectStoreExtId:e},i=Js(Js(Js(Js({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach((function(e){Vs(Ks,n).has(e.toLowerCase())||(s[e]=r[e])}));var a=Js({},s),u=Ho;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates","GET",o,i,a,{},null,["basicAuthScheme"],[],["application/json"],u)}},{key:"listObjectstores",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Js(Js(Js(Js(Js(Js({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Vs(Ks,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Js({},o),s=Ms;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores","GET",{},r,i,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"updateObjectstoreById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof ro&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateObjectstoreById");if(null==n)throw new Error("Invalid body when calling updateObjectstoreById");var i={extId:e},s={};Object.keys(o).forEach((function(e){Vs(Ks,r).has(e.toLowerCase())||(s[e]=o[e])}));var a=Js({},s);lt.addEtagReferenceToHeader(t,a);var u=ki;return this.apiClient.callApi("/api/objects/v4.0/config/object-stores/{extId}","PUT",i,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],r=[{key:"ApiClient",get:function(){return lt}}],t&&Ws(e.prototype,t),r&&Ws(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Zs(e){return Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(e)}function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){Qs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qs(e,t,n){return(t=ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ta(r.key),r)}}function ta(e){var t=function(e){if("object"!=Zs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zs(t)?t:t+""}function na(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ra=new WeakSet,oa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ra),this.$objectType="common.v1.stats.TimeIntValuePair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ys(Ys(Ys({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:na(ra,this,ia).call(this,this.getTimestamp(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("timestamp","undefined or null"):new x("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ys({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ea(t.prototype,n),r&&ea(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ia(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function sa(e){return sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sa(e)}function aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach((function(t){la(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function la(e,t,n){return(t=fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fa(r.key),r)}}function fa(e){var t=function(e){if("object"!=sa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sa(t)?t:t+""}function da(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}oa.prototype.value=void 0,oa.prototype.timestamp=void 0,oa.prototype.$reserved=void 0,oa.prototype.$objectType=void 0,oa.prototype.$unknownFields=void 0;var pa=new WeakSet,ha=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,pa),this.$objectType="objects.v4.stats.TimeFloatValuePair",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ua(ua(ua({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:da(pa,this,ya).call(this,this.getTimestamp(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("timestamp","undefined or null"):new x("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ua({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ca(t.prototype,n),r&&ca(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ya(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function va(e){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(e)}function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach((function(t){ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(e,t,n){return(t=Oa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oa(r.key),r)}}function Oa(e){var t=function(e){if("object"!=va(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=va(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==va(t)?t:t+""}function ja(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ja=function(){return!!e})()}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ka(e)}function Pa(e,t){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pa(e,t)}ha.prototype.value=void 0,ha.prototype.timestamp=void 0,ha.prototype.$reserved=void 0,ha.prototype.$objectType=void 0,ha.prototype.$unknownFields=void 0;var $a=new WeakSet,Sa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ka(t),function(e,t){if(t&&("object"==va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ja()?Reflect.construct(t,n||[],ka(e).constructor):t.apply(e,n))}(this,t),$a),e.$objectType="objects.v4.stats.ObjectstoreStats",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pa(e,t)}(t,e),n=t,r=[{key:"getObjectCount",value:function(){return this.objectCount}},{key:"setObjectCount",value:function(e){this.objectCount=e}},{key:"getBucketCount",value:function(){return this.bucketCount}},{key:"setBucketCount",value:function(e){this.bucketCount=e}},{key:"getStorageUsageBytes",value:function(){return this.storageUsageBytes}},{key:"setStorageUsageBytes",value:function(e){this.storageUsageBytes=e}},{key:"getInboundBytesPerSecond",value:function(){return this.inboundBytesPerSecond}},{key:"setInboundBytesPerSecond",value:function(e){this.inboundBytesPerSecond=e}},{key:"getOutboundBytesPerSecond",value:function(){return this.outboundBytesPerSecond}},{key:"setOutboundBytesPerSecond",value:function(e){this.outboundBytesPerSecond=e}},{key:"getGetRequestThroughputBytesPerSecond",value:function(){return this.getRequestThroughputBytesPerSecond}},{key:"setGetRequestThroughputBytesPerSecond",value:function(e){this.getRequestThroughputBytesPerSecond=e}},{key:"getPutRequestThroughputBytesPerSecond",value:function(){return this.putRequestThroughputBytesPerSecond}},{key:"setPutRequestThroughputBytesPerSecond",value:function(e){this.putRequestThroughputBytesPerSecond=e}},{key:"getPostRequestsPerSecond",value:function(){return this.postRequestsPerSecond}},{key:"setPostRequestsPerSecond",value:function(e){this.postRequestsPerSecond=e}},{key:"getHeadRequestsPerSecond",value:function(){return this.headRequestsPerSecond}},{key:"setHeadRequestsPerSecond",value:function(e){this.headRequestsPerSecond=e}},{key:"getGetRequestsPerSecond",value:function(){return this.getRequestsPerSecond}},{key:"setGetRequestsPerSecond",value:function(e){this.getRequestsPerSecond=e}},{key:"getPutRequestsPerSecond",value:function(){return this.putRequestsPerSecond}},{key:"setPutRequestsPerSecond",value:function(e){this.putRequestsPerSecond=e}},{key:"getDeleteRequestsPerSecond",value:function(){return this.deleteRequestsPerSecond}},{key:"setDeleteRequestsPerSecond",value:function(e){this.deleteRequestsPerSecond=e}},{key:"getObjectOperationsPerSecond",value:function(){return this.objectOperationsPerSecond}},{key:"setObjectOperationsPerSecond",value:function(e){this.objectOperationsPerSecond=e}},{key:"getGetObjectTtfbMsecs",value:function(){return this.getObjectTtfbMsecs}},{key:"setGetObjectTtfbMsecs",value:function(e){this.getObjectTtfbMsecs=e}},{key:"getGetBucketOperationsPerSecond",value:function(){return this.getBucketOperationsPerSecond}},{key:"setGetBucketOperationsPerSecond",value:function(e){this.getBucketOperationsPerSecond=e}},{key:"getListMultipartUploadsOperationsPerSecond",value:function(){return this.listMultipartUploadsOperationsPerSecond}},{key:"setListMultipartUploadsOperationsPerSecond",value:function(e){this.listMultipartUploadsOperationsPerSecond=e}},{key:"getMultipartUploadStartOperationsPerSecond",value:function(){return this.multipartUploadStartOperationsPerSecond}},{key:"setMultipartUploadStartOperationsPerSecond",value:function(e){this.multipartUploadStartOperationsPerSecond=e}},{key:"getSelectObjectContentOperationsPerSecond",value:function(){return this.selectObjectContentOperationsPerSecond}},{key:"setSelectObjectContentOperationsPerSecond",value:function(e){this.selectObjectContentOperationsPerSecond=e}},{key:"getNfsReadRequestsPerSecond",value:function(){return this.nfsReadRequestsPerSecond}},{key:"setNfsReadRequestsPerSecond",value:function(e){this.nfsReadRequestsPerSecond=e}},{key:"getNfsWriteRequestsPerSecond",value:function(){return this.nfsWriteRequestsPerSecond}},{key:"setNfsWriteRequestsPerSecond",value:function(e){this.nfsWriteRequestsPerSecond=e}},{key:"getNfsReadThroughputBytesPerSecond",value:function(){return this.nfsReadThroughputBytesPerSecond}},{key:"setNfsReadThroughputBytesPerSecond",value:function(e){this.nfsReadThroughputBytesPerSecond=e}},{key:"getNfsWriteThroughputBytesPerSecond",value:function(){return this.nfsWriteThroughputBytesPerSecond}},{key:"setNfsWriteThroughputBytesPerSecond",value:function(e){this.nfsWriteThroughputBytesPerSecond=e}},{key:"toJson",value:function(e){return ga(!1===e?ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga({},void 0!==this.getObjectCount()&&null!==this.getObjectCount()?{objectCount:this.getObjectCount().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getBucketCount()&&null!==this.getBucketCount()?{bucketCount:this.getBucketCount().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getStorageUsageBytes()&&null!==this.getStorageUsageBytes()?{storageUsageBytes:this.getStorageUsageBytes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getInboundBytesPerSecond()&&null!==this.getInboundBytesPerSecond()?{inboundBytesPerSecond:this.getInboundBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOutboundBytesPerSecond()&&null!==this.getOutboundBytesPerSecond()?{outboundBytesPerSecond:this.getOutboundBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetRequestThroughputBytesPerSecond()&&null!==this.getGetRequestThroughputBytesPerSecond()?{getRequestThroughputBytesPerSecond:this.getGetRequestThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getPutRequestThroughputBytesPerSecond()&&null!==this.getPutRequestThroughputBytesPerSecond()?{putRequestThroughputBytesPerSecond:this.getPutRequestThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getPostRequestsPerSecond()&&null!==this.getPostRequestsPerSecond()?{postRequestsPerSecond:this.getPostRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getHeadRequestsPerSecond()&&null!==this.getHeadRequestsPerSecond()?{headRequestsPerSecond:this.getHeadRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetRequestsPerSecond()&&null!==this.getGetRequestsPerSecond()?{getRequestsPerSecond:this.getGetRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getPutRequestsPerSecond()&&null!==this.getPutRequestsPerSecond()?{putRequestsPerSecond:this.getPutRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDeleteRequestsPerSecond()&&null!==this.getDeleteRequestsPerSecond()?{deleteRequestsPerSecond:this.getDeleteRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getObjectOperationsPerSecond()&&null!==this.getObjectOperationsPerSecond()?{objectOperationsPerSecond:this.getObjectOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetObjectTtfbMsecs()&&null!==this.getGetObjectTtfbMsecs()?{getObjectTtfbMsecs:this.getGetObjectTtfbMsecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetBucketOperationsPerSecond()&&null!==this.getGetBucketOperationsPerSecond()?{getBucketOperationsPerSecond:this.getGetBucketOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getListMultipartUploadsOperationsPerSecond()&&null!==this.getListMultipartUploadsOperationsPerSecond()?{listMultipartUploadsOperationsPerSecond:this.getListMultipartUploadsOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMultipartUploadStartOperationsPerSecond()&&null!==this.getMultipartUploadStartOperationsPerSecond()?{multipartUploadStartOperationsPerSecond:this.getMultipartUploadStartOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSelectObjectContentOperationsPerSecond()&&null!==this.getSelectObjectContentOperationsPerSecond()?{selectObjectContentOperationsPerSecond:this.getSelectObjectContentOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsReadRequestsPerSecond()&&null!==this.getNfsReadRequestsPerSecond()?{nfsReadRequestsPerSecond:this.getNfsReadRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsWriteRequestsPerSecond()&&null!==this.getNfsWriteRequestsPerSecond()?{nfsWriteRequestsPerSecond:this.getNfsWriteRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsReadThroughputBytesPerSecond()&&null!==this.getNfsReadThroughputBytesPerSecond()?{nfsReadThroughputBytesPerSecond:this.getNfsReadThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsWriteThroughputBytesPerSecond()&&null!==this.getNfsWriteThroughputBytesPerSecond()?{nfsWriteThroughputBytesPerSecond:this.getNfsWriteThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga(ga({},void 0!==this.getObjectCount()&&null!==this.getObjectCount()?{objectCount:this.getObjectCount().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getBucketCount()&&null!==this.getBucketCount()?{bucketCount:this.getBucketCount().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getStorageUsageBytes()&&null!==this.getStorageUsageBytes()?{storageUsageBytes:this.getStorageUsageBytes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getInboundBytesPerSecond()&&null!==this.getInboundBytesPerSecond()?{inboundBytesPerSecond:this.getInboundBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOutboundBytesPerSecond()&&null!==this.getOutboundBytesPerSecond()?{outboundBytesPerSecond:this.getOutboundBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetRequestThroughputBytesPerSecond()&&null!==this.getGetRequestThroughputBytesPerSecond()?{getRequestThroughputBytesPerSecond:this.getGetRequestThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getPutRequestThroughputBytesPerSecond()&&null!==this.getPutRequestThroughputBytesPerSecond()?{putRequestThroughputBytesPerSecond:this.getPutRequestThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getPostRequestsPerSecond()&&null!==this.getPostRequestsPerSecond()?{postRequestsPerSecond:this.getPostRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getHeadRequestsPerSecond()&&null!==this.getHeadRequestsPerSecond()?{headRequestsPerSecond:this.getHeadRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetRequestsPerSecond()&&null!==this.getGetRequestsPerSecond()?{getRequestsPerSecond:this.getGetRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getPutRequestsPerSecond()&&null!==this.getPutRequestsPerSecond()?{putRequestsPerSecond:this.getPutRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDeleteRequestsPerSecond()&&null!==this.getDeleteRequestsPerSecond()?{deleteRequestsPerSecond:this.getDeleteRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getObjectOperationsPerSecond()&&null!==this.getObjectOperationsPerSecond()?{objectOperationsPerSecond:this.getObjectOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetObjectTtfbMsecs()&&null!==this.getGetObjectTtfbMsecs()?{getObjectTtfbMsecs:this.getGetObjectTtfbMsecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGetBucketOperationsPerSecond()&&null!==this.getGetBucketOperationsPerSecond()?{getBucketOperationsPerSecond:this.getGetBucketOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getListMultipartUploadsOperationsPerSecond()&&null!==this.getListMultipartUploadsOperationsPerSecond()?{listMultipartUploadsOperationsPerSecond:this.getListMultipartUploadsOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMultipartUploadStartOperationsPerSecond()&&null!==this.getMultipartUploadStartOperationsPerSecond()?{multipartUploadStartOperationsPerSecond:this.getMultipartUploadStartOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSelectObjectContentOperationsPerSecond()&&null!==this.getSelectObjectContentOperationsPerSecond()?{selectObjectContentOperationsPerSecond:this.getSelectObjectContentOperationsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsReadRequestsPerSecond()&&null!==this.getNfsReadRequestsPerSecond()?{nfsReadRequestsPerSecond:this.getNfsReadRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsWriteRequestsPerSecond()&&null!==this.getNfsWriteRequestsPerSecond()?{nfsWriteRequestsPerSecond:this.getNfsWriteRequestsPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsReadThroughputBytesPerSecond()&&null!==this.getNfsReadThroughputBytesPerSecond()?{nfsReadThroughputBytesPerSecond:this.getNfsReadThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNfsWriteThroughputBytesPerSecond()&&null!==this.getNfsWriteThroughputBytesPerSecond()?{nfsWriteThroughputBytesPerSecond:this.getNfsWriteThroughputBytesPerSecond().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("objectCount"===t){if(void 0===this.objectCount||null===this.objectCount)return new x("objectCount","undefined or null");if(!I.validateMaxItems(this.objectCount,150))return new x("objectCount","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.objectCount,1))return new x("objectCount","does not satisfy required minItems constraint: 1")}if("bucketCount"===t){if(void 0===this.bucketCount||null===this.bucketCount)return new x("bucketCount","undefined or null");if(!I.validateMaxItems(this.bucketCount,150))return new x("bucketCount","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.bucketCount,1))return new x("bucketCount","does not satisfy required minItems constraint: 1")}if("storageUsageBytes"===t){if(void 0===this.storageUsageBytes||null===this.storageUsageBytes)return new x("storageUsageBytes","undefined or null");if(!I.validateMaxItems(this.storageUsageBytes,150))return new x("storageUsageBytes","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.storageUsageBytes,1))return new x("storageUsageBytes","does not satisfy required minItems constraint: 1")}if("inboundBytesPerSecond"===t){if(void 0===this.inboundBytesPerSecond||null===this.inboundBytesPerSecond)return new x("inboundBytesPerSecond","undefined or null");if(!I.validateMaxItems(this.inboundBytesPerSecond,150))return new x("inboundBytesPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.inboundBytesPerSecond,1))return new x("inboundBytesPerSecond","does not satisfy required minItems constraint: 1")}if("outboundBytesPerSecond"===t){if(void 0===this.outboundBytesPerSecond||null===this.outboundBytesPerSecond)return new x("outboundBytesPerSecond","undefined or null");if(!I.validateMaxItems(this.outboundBytesPerSecond,150))return new x("outboundBytesPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.outboundBytesPerSecond,1))return new x("outboundBytesPerSecond","does not satisfy required minItems constraint: 1")}if("getRequestThroughputBytesPerSecond"===t){if(void 0===this.getRequestThroughputBytesPerSecond||null===this.getRequestThroughputBytesPerSecond)return new x("getRequestThroughputBytesPerSecond","undefined or null");if(!I.validateMaxItems(this.getRequestThroughputBytesPerSecond,150))return new x("getRequestThroughputBytesPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.getRequestThroughputBytesPerSecond,1))return new x("getRequestThroughputBytesPerSecond","does not satisfy required minItems constraint: 1")}if("putRequestThroughputBytesPerSecond"===t){if(void 0===this.putRequestThroughputBytesPerSecond||null===this.putRequestThroughputBytesPerSecond)return new x("putRequestThroughputBytesPerSecond","undefined or null");if(!I.validateMaxItems(this.putRequestThroughputBytesPerSecond,150))return new x("putRequestThroughputBytesPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.putRequestThroughputBytesPerSecond,1))return new x("putRequestThroughputBytesPerSecond","does not satisfy required minItems constraint: 1")}if("postRequestsPerSecond"===t){if(void 0===this.postRequestsPerSecond||null===this.postRequestsPerSecond)return new x("postRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.postRequestsPerSecond,150))return new x("postRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.postRequestsPerSecond,1))return new x("postRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("headRequestsPerSecond"===t){if(void 0===this.headRequestsPerSecond||null===this.headRequestsPerSecond)return new x("headRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.headRequestsPerSecond,150))return new x("headRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.headRequestsPerSecond,1))return new x("headRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("getRequestsPerSecond"===t){if(void 0===this.getRequestsPerSecond||null===this.getRequestsPerSecond)return new x("getRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.getRequestsPerSecond,150))return new x("getRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.getRequestsPerSecond,1))return new x("getRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("putRequestsPerSecond"===t){if(void 0===this.putRequestsPerSecond||null===this.putRequestsPerSecond)return new x("putRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.putRequestsPerSecond,150))return new x("putRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.putRequestsPerSecond,1))return new x("putRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("deleteRequestsPerSecond"===t){if(void 0===this.deleteRequestsPerSecond||null===this.deleteRequestsPerSecond)return new x("deleteRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.deleteRequestsPerSecond,150))return new x("deleteRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.deleteRequestsPerSecond,1))return new x("deleteRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("objectOperationsPerSecond"===t){if(void 0===this.objectOperationsPerSecond||null===this.objectOperationsPerSecond)return new x("objectOperationsPerSecond","undefined or null");if(!I.validateMaxItems(this.objectOperationsPerSecond,150))return new x("objectOperationsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.objectOperationsPerSecond,1))return new x("objectOperationsPerSecond","does not satisfy required minItems constraint: 1")}if("getObjectTtfbMsecs"===t){if(void 0===this.getObjectTtfbMsecs||null===this.getObjectTtfbMsecs)return new x("getObjectTtfbMsecs","undefined or null");if(!I.validateMaxItems(this.getObjectTtfbMsecs,150))return new x("getObjectTtfbMsecs","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.getObjectTtfbMsecs,1))return new x("getObjectTtfbMsecs","does not satisfy required minItems constraint: 1")}if("getBucketOperationsPerSecond"===t){if(void 0===this.getBucketOperationsPerSecond||null===this.getBucketOperationsPerSecond)return new x("getBucketOperationsPerSecond","undefined or null");if(!I.validateMaxItems(this.getBucketOperationsPerSecond,150))return new x("getBucketOperationsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.getBucketOperationsPerSecond,1))return new x("getBucketOperationsPerSecond","does not satisfy required minItems constraint: 1")}if("listMultipartUploadsOperationsPerSecond"===t){if(void 0===this.listMultipartUploadsOperationsPerSecond||null===this.listMultipartUploadsOperationsPerSecond)return new x("listMultipartUploadsOperationsPerSecond","undefined or null");if(!I.validateMaxItems(this.listMultipartUploadsOperationsPerSecond,150))return new x("listMultipartUploadsOperationsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.listMultipartUploadsOperationsPerSecond,1))return new x("listMultipartUploadsOperationsPerSecond","does not satisfy required minItems constraint: 1")}if("multipartUploadStartOperationsPerSecond"===t){if(void 0===this.multipartUploadStartOperationsPerSecond||null===this.multipartUploadStartOperationsPerSecond)return new x("multipartUploadStartOperationsPerSecond","undefined or null");if(!I.validateMaxItems(this.multipartUploadStartOperationsPerSecond,150))return new x("multipartUploadStartOperationsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.multipartUploadStartOperationsPerSecond,1))return new x("multipartUploadStartOperationsPerSecond","does not satisfy required minItems constraint: 1")}if("selectObjectContentOperationsPerSecond"===t){if(void 0===this.selectObjectContentOperationsPerSecond||null===this.selectObjectContentOperationsPerSecond)return new x("selectObjectContentOperationsPerSecond","undefined or null");if(!I.validateMaxItems(this.selectObjectContentOperationsPerSecond,150))return new x("selectObjectContentOperationsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.selectObjectContentOperationsPerSecond,1))return new x("selectObjectContentOperationsPerSecond","does not satisfy required minItems constraint: 1")}if("nfsReadRequestsPerSecond"===t){if(void 0===this.nfsReadRequestsPerSecond||null===this.nfsReadRequestsPerSecond)return new x("nfsReadRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.nfsReadRequestsPerSecond,150))return new x("nfsReadRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.nfsReadRequestsPerSecond,1))return new x("nfsReadRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("nfsWriteRequestsPerSecond"===t){if(void 0===this.nfsWriteRequestsPerSecond||null===this.nfsWriteRequestsPerSecond)return new x("nfsWriteRequestsPerSecond","undefined or null");if(!I.validateMaxItems(this.nfsWriteRequestsPerSecond,150))return new x("nfsWriteRequestsPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.nfsWriteRequestsPerSecond,1))return new x("nfsWriteRequestsPerSecond","does not satisfy required minItems constraint: 1")}if("nfsReadThroughputBytesPerSecond"===t){if(void 0===this.nfsReadThroughputBytesPerSecond||null===this.nfsReadThroughputBytesPerSecond)return new x("nfsReadThroughputBytesPerSecond","undefined or null");if(!I.validateMaxItems(this.nfsReadThroughputBytesPerSecond,150))return new x("nfsReadThroughputBytesPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.nfsReadThroughputBytesPerSecond,1))return new x("nfsReadThroughputBytesPerSecond","does not satisfy required minItems constraint: 1")}if("nfsWriteThroughputBytesPerSecond"===t){if(void 0===this.nfsWriteThroughputBytesPerSecond||null===this.nfsWriteThroughputBytesPerSecond)return new x("nfsWriteThroughputBytesPerSecond","undefined or null");if(!I.validateMaxItems(this.nfsWriteThroughputBytesPerSecond,150))return new x("nfsWriteThroughputBytesPerSecond","does not satisfy required maxItems constraint: 150");if(!I.validateMinItems(this.nfsWriteThroughputBytesPerSecond,1))return new x("nfsWriteThroughputBytesPerSecond","does not satisfy required minItems constraint: 1")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Dn.constructFromObject(e,s,!0),e.hasOwnProperty("objectCount")&&null!==e.objectCount&&void 0!==e.objectCount){for(i=[],n=e.objectCount,o=0;o<n.length;o++)r=oa.constructFromObject(n[o],void 0),i.push(r);s.setObjectCount(i)}if(e.hasOwnProperty("bucketCount")&&null!==e.bucketCount&&void 0!==e.bucketCount){for(i=[],n=e.bucketCount,o=0;o<n.length;o++)r=oa.constructFromObject(n[o],void 0),i.push(r);s.setBucketCount(i)}if(e.hasOwnProperty("storageUsageBytes")&&null!==e.storageUsageBytes&&void 0!==e.storageUsageBytes){for(i=[],n=e.storageUsageBytes,o=0;o<n.length;o++)r=oa.constructFromObject(n[o],void 0),i.push(r);s.setStorageUsageBytes(i)}if(e.hasOwnProperty("inboundBytesPerSecond")&&null!==e.inboundBytesPerSecond&&void 0!==e.inboundBytesPerSecond){for(i=[],n=e.inboundBytesPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setInboundBytesPerSecond(i)}if(e.hasOwnProperty("outboundBytesPerSecond")&&null!==e.outboundBytesPerSecond&&void 0!==e.outboundBytesPerSecond){for(i=[],n=e.outboundBytesPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setOutboundBytesPerSecond(i)}if(e.hasOwnProperty("getRequestThroughputBytesPerSecond")&&null!==e.getRequestThroughputBytesPerSecond&&void 0!==e.getRequestThroughputBytesPerSecond){for(i=[],n=e.getRequestThroughputBytesPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setGetRequestThroughputBytesPerSecond(i)}if(e.hasOwnProperty("putRequestThroughputBytesPerSecond")&&null!==e.putRequestThroughputBytesPerSecond&&void 0!==e.putRequestThroughputBytesPerSecond){for(i=[],n=e.putRequestThroughputBytesPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setPutRequestThroughputBytesPerSecond(i)}if(e.hasOwnProperty("postRequestsPerSecond")&&null!==e.postRequestsPerSecond&&void 0!==e.postRequestsPerSecond){for(i=[],n=e.postRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setPostRequestsPerSecond(i)}if(e.hasOwnProperty("headRequestsPerSecond")&&null!==e.headRequestsPerSecond&&void 0!==e.headRequestsPerSecond){for(i=[],n=e.headRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setHeadRequestsPerSecond(i)}if(e.hasOwnProperty("getRequestsPerSecond")&&null!==e.getRequestsPerSecond&&void 0!==e.getRequestsPerSecond){for(i=[],n=e.getRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setGetRequestsPerSecond(i)}if(e.hasOwnProperty("putRequestsPerSecond")&&null!==e.putRequestsPerSecond&&void 0!==e.putRequestsPerSecond){for(i=[],n=e.putRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setPutRequestsPerSecond(i)}if(e.hasOwnProperty("deleteRequestsPerSecond")&&null!==e.deleteRequestsPerSecond&&void 0!==e.deleteRequestsPerSecond){for(i=[],n=e.deleteRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setDeleteRequestsPerSecond(i)}if(e.hasOwnProperty("objectOperationsPerSecond")&&null!==e.objectOperationsPerSecond&&void 0!==e.objectOperationsPerSecond){for(i=[],n=e.objectOperationsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setObjectOperationsPerSecond(i)}if(e.hasOwnProperty("getObjectTtfbMsecs")&&null!==e.getObjectTtfbMsecs&&void 0!==e.getObjectTtfbMsecs){for(i=[],n=e.getObjectTtfbMsecs,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setGetObjectTtfbMsecs(i)}if(e.hasOwnProperty("getBucketOperationsPerSecond")&&null!==e.getBucketOperationsPerSecond&&void 0!==e.getBucketOperationsPerSecond){for(i=[],n=e.getBucketOperationsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setGetBucketOperationsPerSecond(i)}if(e.hasOwnProperty("listMultipartUploadsOperationsPerSecond")&&null!==e.listMultipartUploadsOperationsPerSecond&&void 0!==e.listMultipartUploadsOperationsPerSecond){for(i=[],n=e.listMultipartUploadsOperationsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setListMultipartUploadsOperationsPerSecond(i)}if(e.hasOwnProperty("multipartUploadStartOperationsPerSecond")&&null!==e.multipartUploadStartOperationsPerSecond&&void 0!==e.multipartUploadStartOperationsPerSecond){for(i=[],n=e.multipartUploadStartOperationsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setMultipartUploadStartOperationsPerSecond(i)}if(e.hasOwnProperty("selectObjectContentOperationsPerSecond")&&null!==e.selectObjectContentOperationsPerSecond&&void 0!==e.selectObjectContentOperationsPerSecond){for(i=[],n=e.selectObjectContentOperationsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setSelectObjectContentOperationsPerSecond(i)}if(e.hasOwnProperty("nfsReadRequestsPerSecond")&&null!==e.nfsReadRequestsPerSecond&&void 0!==e.nfsReadRequestsPerSecond){for(i=[],n=e.nfsReadRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setNfsReadRequestsPerSecond(i)}if(e.hasOwnProperty("nfsWriteRequestsPerSecond")&&null!==e.nfsWriteRequestsPerSecond&&void 0!==e.nfsWriteRequestsPerSecond){for(i=[],n=e.nfsWriteRequestsPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setNfsWriteRequestsPerSecond(i)}if(e.hasOwnProperty("nfsReadThroughputBytesPerSecond")&&null!==e.nfsReadThroughputBytesPerSecond&&void 0!==e.nfsReadThroughputBytesPerSecond){for(i=[],n=e.nfsReadThroughputBytesPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setNfsReadThroughputBytesPerSecond(i)}if(e.hasOwnProperty("nfsWriteThroughputBytesPerSecond")&&null!==e.nfsWriteThroughputBytesPerSecond&&void 0!==e.nfsWriteThroughputBytesPerSecond){for(i=[],n=e.nfsWriteThroughputBytesPerSecond,o=0;o<n.length;o++)r=ha.constructFromObject(n[o],void 0),i.push(r);s.setNfsWriteThroughputBytesPerSecond(i)}if(!a)for(var u in s.$unknownFields=ga({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&wa(n.prototype,r),o&&wa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Dn);function Ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ea(e){return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(e)}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Ia(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ia(e,t,n){return(t=Ca(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ca(r.key),r)}}function Ca(e){var t=function(e){if("object"!=Ea(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ea(t)?t:t+""}function Aa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Aa=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xa(e)}function Na(e,t){return Na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Na(e,t)}function _a(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Sa.prototype.objectCount=void 0,Sa.prototype.bucketCount=void 0,Sa.prototype.storageUsageBytes=void 0,Sa.prototype.inboundBytesPerSecond=void 0,Sa.prototype.outboundBytesPerSecond=void 0,Sa.prototype.getRequestThroughputBytesPerSecond=void 0,Sa.prototype.putRequestThroughputBytesPerSecond=void 0,Sa.prototype.postRequestsPerSecond=void 0,Sa.prototype.headRequestsPerSecond=void 0,Sa.prototype.getRequestsPerSecond=void 0,Sa.prototype.putRequestsPerSecond=void 0,Sa.prototype.deleteRequestsPerSecond=void 0,Sa.prototype.objectOperationsPerSecond=void 0,Sa.prototype.getObjectTtfbMsecs=void 0,Sa.prototype.getBucketOperationsPerSecond=void 0,Sa.prototype.listMultipartUploadsOperationsPerSecond=void 0,Sa.prototype.multipartUploadStartOperationsPerSecond=void 0,Sa.prototype.selectObjectContentOperationsPerSecond=void 0,Sa.prototype.nfsReadRequestsPerSecond=void 0,Sa.prototype.nfsWriteRequestsPerSecond=void 0,Sa.prototype.nfsReadThroughputBytesPerSecond=void 0,Sa.prototype.nfsWriteThroughputBytesPerSecond=void 0,Dn.prototype.extId=void 0,Dn.prototype.links=void 0,On.prototype.tenantId=void 0;var Ma=new WeakSet,qa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xa(t),function(e,t){if(t&&("object"==Ea(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Aa()?Reflect.construct(t,n||[],xa(e).constructor):t.apply(e,n))}(this,t),Ma),e.$objectType="objects.v4.stats.GetObjectstoreStatsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Na(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fa(Fa(Fa({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_a(Ma,this,Ba).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):_a(Ma,this,Ba).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ea(e.data)){case"objects.v4.stats.ObjectstoreStats":r.setData(Sa.constructFromObject(e.data,void 0));break;case"objects.v4.error.ErrorResponse":r.setData(Er.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Fa({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Da(n.prototype,r),o&&Da(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ba(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ta(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ta(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ea(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}qa.prototype.metadata=void 0,qa.prototype.data=void 0,qa.prototype.$reserved=void 0,qa.prototype.$objectType=void 0,qa.prototype.$unknownFields=void 0;var Ua={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ua).find((function(t){return Ua[t]===e}));return null==t?Ua.$UNKNOWN:Ua[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ua.$UNKNOWN:case Ua.$REDACTED:case Ua.SUM:case Ua.MIN:case Ua.MAX:case Ua.AVG:case Ua.COUNT:case Ua.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Ua);const Ja=Ua;function La(e){return La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(e)}function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(n),!0).forEach((function(t){Va(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Va(e,t,n){return(t=Ka(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ka(r.key),r)}}function Ka(e){var t=function(e){if("object"!=La(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=La(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==La(t)?t:t+""}function Ha(e,t){return e.get(Za(e,t))}function Za(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Xa=new WeakMap;const Ya={ApiClient:lt,ObjectStoresApi:Hs,StatsApi:function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Xa,void 0),this.apiClient=t||lt.instance,n=Xa,r=new Set,n.set(Za(n,this),r),Ha(Xa,this).add("authorization"),Ha(Xa,this).add("cookie"),Ha(Xa,this).add("host"),Ha(Xa,this).add("user-agent")},t=[{key:"getObjectstoreStatsById",value:function(e,t,n,r){var o=this,i=(arguments.length<=4?0:arguments.length-4)>0?arguments.length<=4?void 0:arguments[4]:{};if(r=r||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getObjectstoreStatsById");if(null==t)throw new Error("Missing the required parameter '$startTime' when calling getObjectstoreStatsById");if(null==n)throw new Error("Missing the required parameter '$endTime' when calling getObjectstoreStatsById");var s={extId:e},a=Ga(Ga(Ga(Ga(Ga({},{$startTime:t}),{$endTime:n}),r.hasOwnProperty("$samplingInterval")?{$samplingInterval:r.$samplingInterval}:{}),r.hasOwnProperty("$statType")?{$statType:r.$statType}:{}),r.hasOwnProperty("$select")?{$select:r.$select}:{}),u={};Object.keys(i).forEach((function(e){Ha(Xa,o).has(e.toLowerCase())||(u[e]=i[e])}));var l=Ga({},u),c=qa;return this.apiClient.callApi("/api/objects/v4.0/stats/object-stores/{extId}","GET",s,a,l,{},null,["basicAuthScheme"],[],["application/json"],c)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&za(e.prototype,t),n&&za(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),FQDN:At,Flag:L,IPAddress:on,IPv4Address:Jt,IPv6Address:Zt,KVPair:ce,MapOfStringWrapper:Q,Message:Oe,MessageSeverity:pe,Metadata:pn,TenantAwareModel:On,ApiLink:Re,ApiResponseMetadata:Me,ExternalizableAbstractModel:Dn,DownSamplingOperator:Ja,TimeIntValuePair:oa,Certificate:Ln,CertificateProjection:No,CreateCertificateApiResponse:Xi,CreateObjectstoreApiResponse:So,DeleteObjectstoreApiResponse:li,GetCaApiResponse:fs,GetCertificateApiResponse:Jr,GetObjectstoreApiResponse:_i,ListCertificatesApiResponse:Ho,ListObjectstoresApiResponse:Ms,ObjectStore:ro,ObjectStoreProjection:Ps,State:Gr,UpdateObjectstoreApiResponse:ki,AppMessage:Qn,ErrorResponse:Er,SchemaValidationError:br,SchemaValidationErrorMessage:ur,GetObjectstoreStatsApiResponse:qa,ObjectstoreStats:Sa,TimeFloatValuePair:ha,TaskReference:po}})(),r.default})()));