@sava-info-systems/api-maker-with-extensions 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +1 -1
  2. package/dist/1025.js +1 -1
  3. package/dist/148.js +1 -1
  4. package/dist/1558.js +1 -1
  5. package/dist/1678.js +1 -1
  6. package/dist/2295.js +1 -1
  7. package/dist/2443.js +1 -1
  8. package/dist/2473.js +1 -1
  9. package/dist/2714.js +1 -1
  10. package/dist/3139.js +1 -1
  11. package/dist/4181.js +1 -1
  12. package/dist/4186.js +1 -1
  13. package/dist/4211.js +1 -1
  14. package/dist/485.js +1 -1
  15. package/dist/4895.js +1 -1
  16. package/dist/5334.js +1 -1
  17. package/dist/5421.js +1 -1
  18. package/dist/5679.js +1 -1
  19. package/dist/5765.js +1 -0
  20. package/dist/6236.js +1 -1
  21. package/dist/6393.js +1 -1
  22. package/dist/6401.js +1 -1
  23. package/dist/6855.js +1 -0
  24. package/dist/7436.js +1 -1
  25. package/dist/7470.js +1 -1
  26. package/dist/7987.js +1 -1
  27. package/dist/8125.js +1 -1
  28. package/dist/8266.js +1 -1
  29. package/dist/8296.js +1 -1
  30. package/dist/885.js +1 -1
  31. package/dist/9243.js +1 -1
  32. package/dist/assets/images/icons/api-group.svg +10 -9
  33. package/dist/assets/images/icons/api-user.svg +9 -6
  34. package/dist/assets/images/icons/comparator.svg +13 -4
  35. package/dist/assets/images/icons/custom.svg +5 -8
  36. package/dist/assets/images/icons/database.svg +28 -11
  37. package/dist/assets/images/icons/db-m.svg +9 -27
  38. package/dist/assets/images/icons/dev.svg +10 -6
  39. package/dist/assets/images/icons/diagram.svg +27 -6
  40. package/dist/assets/images/icons/event.svg +16 -0
  41. package/dist/assets/images/icons/film-movies-icon.svg +3 -13
  42. package/dist/assets/images/icons/finder.svg +9 -6
  43. package/dist/assets/images/icons/i18n.svg +10 -8
  44. package/dist/assets/images/icons/increment.svg +4 -3
  45. package/dist/assets/images/icons/license.svg +6 -0
  46. package/dist/assets/images/icons/log-profile.svg +20 -6
  47. package/dist/assets/images/icons/log.svg +14 -6
  48. package/dist/assets/images/icons/masters.svg +14 -0
  49. package/dist/assets/images/icons/nodes.svg +4 -2
  50. package/dist/assets/images/icons/notes.svg +11 -18
  51. package/dist/assets/images/icons/process_initializers.svg +19 -12
  52. package/dist/assets/images/icons/redis.svg +17 -6
  53. package/dist/assets/images/icons/sandbox.svg +10 -3
  54. package/dist/assets/images/icons/schedulers.svg +7 -11
  55. package/dist/assets/images/icons/secret.svg +12 -6
  56. package/dist/assets/images/icons/systems.svg +7 -8
  57. package/dist/assets/images/icons/testing.svg +11 -3
  58. package/dist/assets/images/icons/third-party.svg +16 -6
  59. package/dist/assets/images/icons/typescript.svg +7 -6
  60. package/dist/assets/images/icons/ui-maker.svg +11 -0
  61. package/dist/assets/images/icons/utility.svg +18 -6
  62. package/dist/assets/images/icons/vulnerability.svg +19 -11
  63. package/dist/assets/images/icons/web.svg +3 -9
  64. package/dist/assets/schema-types/InterfaceProps.ts +8 -0
  65. package/dist/assets/schema-types/types.ts +1358 -140
  66. package/dist/assets/styles/out/styles.css +1 -1
  67. package/dist/assets/styles/out/styles.css.map +1 -1
  68. package/dist/assets/styles/styles.scss +2 -2
  69. package/dist/common.js +1 -1
  70. package/dist/main.js +1 -1
  71. package/dist/primeicons.eot +0 -0
  72. package/dist/primeicons.svg +62 -9
  73. package/dist/primeicons.ttf +0 -0
  74. package/dist/primeicons.woff +0 -0
  75. package/dist/primeicons.woff2 +0 -0
  76. package/dist/styles.css +1 -1
  77. package/license.txt +2 -1
  78. package/main.js +1 -1
  79. package/package.json +5 -4
  80. package/sandbox/assets/schema-types/types.js +179 -9
  81. package/sandbox/package.json +1 -0
  82. package/sandbox/sandbox.js +1 -1
  83. package/src/assets/schema-types/types.ts +1358 -140
  84. package/src/public/dist-db-masters/3rdpartylicenses.txt +1 -1
  85. package/src/public/dist-db-masters/browser/assets/data/mime_types.json +819 -0
  86. package/src/public/dist-db-masters/browser/assets/iframe_test.html +34 -1
  87. package/src/public/dist-db-masters/browser/assets/themes/arya-blue/theme.css +117 -5
  88. package/src/public/dist-db-masters/browser/assets/themes/arya-green/theme.css +117 -5
  89. package/src/public/dist-db-masters/browser/assets/themes/arya-orange/theme.css +117 -5
  90. package/src/public/dist-db-masters/browser/assets/themes/arya-purple/theme.css +117 -5
  91. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-amber/theme.css +174 -2
  92. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-blue/theme.css +174 -2
  93. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-cyan/theme.css +174 -2
  94. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-green/theme.css +174 -2
  95. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-indigo/theme.css +174 -2
  96. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-lime/theme.css +174 -2
  97. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-noir/theme.css +174 -2
  98. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-pink/theme.css +174 -2
  99. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-purple/theme.css +174 -2
  100. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-teal/theme.css +174 -2
  101. package/src/public/dist-db-masters/browser/assets/themes/aura-light-amber/theme.css +174 -2
  102. package/src/public/dist-db-masters/browser/assets/themes/aura-light-blue/theme.css +174 -2
  103. package/src/public/dist-db-masters/browser/assets/themes/aura-light-cyan/theme.css +174 -2
  104. package/src/public/dist-db-masters/browser/assets/themes/aura-light-green/theme.css +174 -2
  105. package/src/public/dist-db-masters/browser/assets/themes/aura-light-indigo/theme.css +174 -2
  106. package/src/public/dist-db-masters/browser/assets/themes/aura-light-lime/theme.css +174 -2
  107. package/src/public/dist-db-masters/browser/assets/themes/aura-light-noir/theme.css +174 -2
  108. package/src/public/dist-db-masters/browser/assets/themes/aura-light-pink/theme.css +174 -2
  109. package/src/public/dist-db-masters/browser/assets/themes/aura-light-purple/theme.css +174 -2
  110. package/src/public/dist-db-masters/browser/assets/themes/aura-light-teal/theme.css +174 -2
  111. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-dark-blue/theme.css +166 -5
  112. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-dark-purple/theme.css +166 -5
  113. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-light-blue/theme.css +166 -5
  114. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-light-purple/theme.css +166 -5
  115. package/src/public/dist-db-masters/browser/assets/themes/fluent-light/theme.css +117 -5
  116. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-blue/theme.css +173 -1
  117. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-indigo/theme.css +173 -1
  118. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-purple/theme.css +173 -1
  119. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-teal/theme.css +173 -1
  120. package/src/public/dist-db-masters/browser/assets/themes/lara-light-blue/theme.css +222 -1
  121. package/src/public/dist-db-masters/browser/assets/themes/lara-light-indigo/theme.css +222 -1
  122. package/src/public/dist-db-masters/browser/assets/themes/lara-light-purple/theme.css +222 -1
  123. package/src/public/dist-db-masters/browser/assets/themes/lara-light-teal/theme.css +222 -1
  124. package/src/public/dist-db-masters/browser/assets/themes/luna-amber/theme.css +117 -5
  125. package/src/public/dist-db-masters/browser/assets/themes/luna-blue/theme.css +117 -5
  126. package/src/public/dist-db-masters/browser/assets/themes/luna-green/theme.css +117 -5
  127. package/src/public/dist-db-masters/browser/assets/themes/luna-pink/theme.css +117 -5
  128. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/theme.css +187 -4
  129. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/theme.css +187 -4
  130. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/theme.css +187 -4
  131. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/theme.css +187 -4
  132. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/theme.css +187 -4
  133. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/theme.css +187 -4
  134. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/theme.css +187 -4
  135. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/theme.css +187 -4
  136. package/src/public/dist-db-masters/browser/assets/themes/mira/theme.css +117 -5
  137. package/src/public/dist-db-masters/browser/assets/themes/nano/theme.css +117 -5
  138. package/src/public/dist-db-masters/browser/assets/themes/nova/theme.css +117 -5
  139. package/src/public/dist-db-masters/browser/assets/themes/nova-accent/theme.css +117 -5
  140. package/src/public/dist-db-masters/browser/assets/themes/nova-alt/theme.css +117 -5
  141. package/src/public/dist-db-masters/browser/assets/themes/rhea/theme.css +117 -5
  142. package/src/public/dist-db-masters/browser/assets/themes/saga-blue/theme.css +117 -5
  143. package/src/public/dist-db-masters/browser/assets/themes/saga-green/theme.css +117 -5
  144. package/src/public/dist-db-masters/browser/assets/themes/saga-orange/theme.css +117 -5
  145. package/src/public/dist-db-masters/browser/assets/themes/saga-purple/theme.css +117 -5
  146. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/theme.css +117 -5
  147. package/src/public/dist-db-masters/browser/assets/themes/soho-light/theme.css +117 -5
  148. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/theme.css +117 -5
  149. package/src/public/dist-db-masters/browser/assets/themes/vela-blue/theme.css +117 -5
  150. package/src/public/dist-db-masters/browser/assets/themes/vela-green/theme.css +117 -5
  151. package/src/public/dist-db-masters/browser/assets/themes/vela-orange/theme.css +117 -5
  152. package/src/public/dist-db-masters/browser/assets/themes/vela-purple/theme.css +117 -5
  153. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/theme.css +117 -5
  154. package/src/public/dist-db-masters/browser/assets/themes/viva-light/theme.css +117 -5
  155. package/src/public/dist-db-masters/browser/index.html +2 -0
  156. package/src/public/dist-db-masters/browser/main.js +58 -62
  157. package/src/public/dist-db-masters/browser/polyfills.js +2 -2
  158. package/dist/1840.js +0 -1
  159. package/dist/9208.js +0 -1
  160. package/dist/assets/images/icons/event.png +0 -0
  161. package/dist/assets/images/icons/license.png +0 -0
  162. package/dist/assets/images/icons/masters.png +0 -0
@@ -1,2 +1,2 @@
1
- (function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"<root>",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new p(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new p(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new p(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;v<o.length;v++)o[v]._updateTaskCount(t.type,s)}};se.__symbol__=l;let _=se,b={name:"",onHasTask:(L,t,s,o)=>L.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class p{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=p.invokeTask:this.invoke=function(){return p.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;t<L.length;t++){let s=L[t];try{s.zone.runTask(s,null,null)}catch(o){z.onUnhandledError(o)}}}z.microtaskDrainDone(),j=!1}}let $={name:"NO ZONE"},H="notScheduled",X="scheduling",M="scheduled",T="running",x="canceling",d="unknown",N="microTask",P="macroTask",K="eventTask",oe={},z={symbol:l,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var ge=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",me=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r<n.length;r++){let a=n[r],l=e[a];if(l){let y=ge(e,a);if(!$e(y))continue;e[a]=(_=>{let b=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(b,_),b})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&Te.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&Te.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=ge(e,n);if(!r&&c&&ge(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=Pe[_];b||(b=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let p=this;if(!p&&e===Y&&(p=Y),!p)return;typeof p[b]=="function"&&p.removeEventListener(_,qe),y&&y.call(p,null),p[b]=k,typeof k=="function"&&p.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let p=k[b];if(p)return p;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;r<n.length;r++)Xe(e,"on"+n[r],c);else{let r=[];for(let a in e)a.slice(0,2)=="on"&&r.push(a);for(let a=0;a<r.length;a++)Xe(e,r[a],c)}}var re=A("originalInstance");function ke(e){let n=Y[e];if(!n)return;Y[A(e)]=n,Y[e]=function(){let a=xe(arguments,e);switch(a.length){case 0:this[re]=new n;break;case 1:this[re]=new n(a[0]);break;case 2:this[re]=new n(a[0],a[1]);break;case 3:this[re]=new n(a[0],a[1],a[2]);break;case 4:this[re]=new n(a[0],a[1],a[2],a[3]);break;default:throw new Error("Arg list too long.")}},le(Y[e],n);let c=new n(function(){}),r;for(r in c)e==="XMLHttpRequest"&&r==="responseBlob"||function(a){typeof c[a]=="function"?Y[e].prototype[a]=function(){return this[re][a].apply(this[re],arguments)}:Ie(Y[e].prototype,a,{set:function(l){typeof l=="function"?(this[re][a]=Ae(l,e+"."+a),le(this[re][a],l)):this[re][a]=l},get:function(){return this[re][a]}})}(r);for(r in n)r!=="prototype"&&n.hasOwnProperty(r)&&(Y[e][r]=n[r])}function ue(e,n,c){let r=e;for(;r&&!r.hasOwnProperty(n);)r=Me(r);!r&&e[n]&&(r=e);let a=A(n),l=null;if(r&&(!(l=r[a])||!r.hasOwnProperty(a))){l=r[a]=r[n];let y=r&&ge(r,n);if($e(y)){let _=c(l,a,n);r[n]=function(){return _(this,arguments)},le(r[n],l)}}return l}function ft(e,n,c){let r=null;function a(l){let y=l.data;return y.args[y.cbIdx]=function(){l.invoke.apply(this,arguments)},r.apply(y.target,y.args),l}r=ue(e,n,l=>function(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?He(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),p=y("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=y("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let P=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=y("currentTaskTrace");function z(f,u,i){let h=P();if(f===i)throw new TypeError(K);if(f[q]===M){let m=null;try{(typeof i=="object"||typeof i=="function")&&(m=i&&i.then)}catch(w){return h(()=>{z(f,!1,w)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof m=="function")try{m.call(i,h(N(f,u)),h(N(f,!1)))}catch(w){h(()=>{z(f,!1,w)})()}else{f[q]=u;let w=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let g=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];g&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g<w.length;)ee(f,w[g++],w[g++],w[g++],w[g++]);if(w.length==0&&u==x){f[q]=d;let g=i;try{throw new Error("Uncaught (in promise): "+l(i)+(i&&i.stack?`
2
- `+i.stack:""))}catch(C){g=C}b&&(g.throwOriginal=!0),g.rejection=i,g.promise=f,g.zone=n.current,g.task=n.currentTask,_.push(g),c.scheduleMicroTask()}}}return f}let U=y("rejectionHandledHandler");function ne(f){if(f[q]===d){try{let u=n[U];u&&typeof u=="function"&&u.call(this,{rejection:f[R],promise:f})}catch{}f[q]=x;for(let u=0;u<_.length;u++)f===_[u].promise&&_.splice(u,1)}}function ee(f,u,i,h,m){ne(f);let w=f[q],g=w?typeof h=="function"?h:j:typeof m=="function"?m:J;u.scheduleMicroTask(X,()=>{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=u.run(g,void 0,S&&g!==J&&g!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let g of u)h++,i.push(t.resolve(g))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let m=!1,w=[];return new t((g,C)=>{for(let S=0;S<i.length;S++)i[S].then(D=>{m||(m=!0,g(D))},D=>{w.push(D),h--,h===0&&(m=!0,C(new L(w,"All promises were rejected")))})})}static race(u){let i,h,m=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function g(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(w,g);return m}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,m,w=new this((D,G)=>{h=D,m=G}),g=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,g--,g===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),g--,g===0&&h(S)):m(V)})}catch(V){m(V)}g++,C++}return g-=2,g===0&&h(S),w}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let m=new h(se),w=n.current;return this[q]==M?this[R].push(w,m,u,i):ee(this,w,m,u,i),m}catch(u){return this.then(null,u)}finally(u){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let m=n.current;return this[q]==M?this[R].push(m,h,u,u):ee(this,m,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[p]=h,f.prototype.then=function(m,w){return new t((C,S)=>{h.call(this,C,S)}).then(m,w)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let m=h.constructor;return m[o]||v(m),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let p=e[r];if(p)return n.call(p)}if(this===Error){let p=e[a];if(p)return n.call(p)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+me+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=me+c,l=me+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=A(a),k="."+a+":",p="prependListener",I="."+p+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x<T.length&&!(E&&E[nt]===!0);x++){let d=O(T[x],H,E);d&&M.push(d)}}if(M.length===1)throw M[0];for(let T=0;T<M.length;T++){let x=M[T];n.nativeScheduleMicroTask(()=>{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[A(l)]=T[l],K=T[A(y)]=T[y],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],m;h&&(m=h[i.capture?ce:ae]);let w=m&&i.target[m];if(w){for(let g=0;g<w.length;g++)if(w[g]===i){w.splice(g,1),i.isRemoved=!0,w.length===0&&(i.allRemoved=!0,i.target[m]=null);break}}}if(i.allRemoved)return P.call(i.target,i.eventName,i.capture?j:B,i.options)},W=function(i){return N.call(d.target,d.eventName,i.invoke,d.options)},se=function(i){return z.call(d.target,d.eventName,i.invoke,d.options)},L=function(i){return P.call(i.target,i.eventName,i.invoke,i.options)},t=$?ne:W,s=$?ee:L,o=function(i,h){let m=typeof h;return m==="function"&&i.callback===h||m==="object"&&i.originalDelegate===h},v=E&&E.diff?E.diff:o,F=Zone[A("UNPATCHED_EVENTS")],f=e[A("PASSIVE_EVENTS")],u=function(i,h,m,w,g=!1,C=!1){return function(){let S=this||e,D=arguments[0];E&&E.transferEventName&&(D=E.transferEventName(D));let G=arguments[1];if(!G)return i.apply(this,arguments);if(Re&&D==="uncaughtException")return i.apply(this,arguments);let V=!1;if(typeof G!="function"){if(!G.handleEvent)return i.apply(this,arguments);V=!0}if(H&&!H(i,G,S,arguments))return;let fe=_e&&!!f&&f.indexOf(D)!==-1,Q=U(arguments[2],fe),ye=Q&&typeof Q=="object"&&Q.signal&&typeof Q.signal=="object"?Q.signal:void 0;if(ye?.aborted)return;if(F){for(let he=0;he<F.length;he++)if(D===F[he])return fe?i.call(S,D,G,Q):i.apply(this,arguments)}let Ce=Q?typeof Q=="boolean"?!0:Q.capture:!1,Ve=Q&&typeof Q=="object"?Q.once:!1,it=Zone.current,Se=te[D];Se||(rt(D,x),Se=te[D]);let Fe=Se[Ce?ce:ae],de=S[Fe],Be=!1;if(de){if(Be=!0,X){for(let he=0;he<de.length;he++)if(v(de[he],G))return}}else de=S[Fe]=[];let ve,Ue=S.constructor.name,We=et[Ue];We&&(ve=We[D]),ve||(ve=Ue+h+(x?x(D):D)),d.options=Q,Ve&&(d.options.once=!1),d.target=S,d.capture=Ce,d.eventName=D,d.isExisting=Be;let pe=$?_t:void 0;pe&&(pe.taskData=d),ye&&(d.options.signal=void 0);let ie=it.scheduleEventTask(ve,G,pe,m,w);if(ye&&(d.options.signal=ye,i.call(ye,"abort",()=>{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,pe&&(pe.taskData=null),Ve&&(Q.once=!0),!_e&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?de.unshift(ie):de.push(ie),g)return S}};return T[a]=u(N,k,t,s,M),z&&(T[p]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let m=arguments[2],w=m?typeof m=="boolean"?!0:m.capture:!1,g=arguments[1];if(!g)return P.apply(this,arguments);if(H&&!H(P,g,i,arguments))return;let C=te[h],S;C&&(S=C[w?ce:ae]);let D=S&&i[S];if(D)for(let G=0;G<D.length;G++){let V=D[G];if(v(V,g)){if(D.splice(G,1),V.isRemoved=!0,D.length===0&&(V.allRemoved=!0,i[S]=null,typeof h=="string")){let fe=me+"ON_PROPERTY"+h;i[fe]=null}return V.zone.cancelTask(V),M?i:void 0}}return P.apply(this,arguments)},T[y]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let m=[],w=ot(i,x?x(h):h);for(let g=0;g<w.length;g++){let C=w[g],S=C.originalDelegate?C.originalDelegate:C.callback;m.push(S)}return m},T[_]=function(){let i=this||e,h=arguments[0];if(h){E&&E.transferEventName&&(h=E.transferEventName(h));let m=te[h];if(m){let w=m[ae],g=m[ce],C=i[w],S=i[g];if(C){let D=C.slice();for(let G=0;G<D.length;G++){let V=D[G],fe=V.originalDelegate?V.originalDelegate:V.callback;this[l].call(this,h,fe,V.options)}}if(S){let D=S.slice();for(let G=0;G<D.length;G++){let V=D[G],fe=V.originalDelegate?V.originalDelegate:V.callback;this[l].call(this,h,fe,V.options)}}}}else{let m=Object.keys(i);for(let w=0;w<m.length;w++){let g=m[w],C=tt.exec(g),S=C&&C[1];S&&S!=="removeListener"&&this[_].call(this,S)}this[_].call(this,"removeListener")}if(M)return this},le(T[a],N),le(T[l],P),oe&&le(T[_],oe),K&&le(T[y],K),!0}let q=[];for(let R=0;R<c.length;R++)q[R]=J(c[R],r);return q}function ot(e,n){if(!n){let l=[];for(let y in e){let _=tt.exec(y),b=_&&_[1];if(b&&(!n||b===n)){let k=e[y];if(k)for(let p=0;p<k.length;p++)l.push(k[p])}}return l}let c=te[n];c||(rt(n),c=te[n]);let r=e[c[ae]],a=e[c[ce]];return r?a?r.concat(a):r.slice():a?a.slice():[]}function Tt(e,n){let c=e.Event;c&&c.prototype&&n.patchMethod(c.prototype,"stopImmediatePropagation",r=>function(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(p){let I=`${c}.${r}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){let Z=e.ObjectGetOwnPropertyDescriptor(O,p);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(b.prototype,p,Z)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function pt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a<r.length;a++){let l=n[r[a]];l&&l.prototype&&Ye(l.prototype,Ne(l.prototype),c)}}Zone.__load_patch("util",(e,n,c)=>{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=ge,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function gt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let p=k.data;return p.args[0]=function(){return k.invoke.apply(this,arguments)},p.handleId=a.apply(e,p.args),k}function b(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(p,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete y[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,b);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?y[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(p,I){let O=I[0],Z;typeof O=="number"?Z=y[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete y[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function mt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b<c.length;b++){let k=c[b],p=k+l,I=k+a,O=y+p,Z=y+I;r[k]={},r[k][l]=O,r[k][a]=Z}let _=e.EventTarget;if(!(!_||!_.prototype))return n.patchEventTarget(e,n,[_&&_.prototype]),!0}function vt(e,n){n.patchEventPrototype(e,n)}Zone.__load_patch("legacy",e=>{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;r<c.length;r++){let a=c[r];ue(e,a,(l,y,_)=>function(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{pt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{mt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),y=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function b(k){let p=k.XMLHttpRequest;if(!p)return;let I=p.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];Z||(Z=P[De],B=P[Oe]),K&&B.call(P,j,K);let oe=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===d&&ee.splice(W,1);!N.aborted&&d.state===J&&ne.call(d)},U.push(d)}else d.invoke()}else!N.aborted&&P[l]===!1&&(P[_]=!0)};return Z.call(P,j,oe),P[c]||(P[c]=d),T.apply(P,N.args),P[l]=!0,d}function R(){}function E(d){let N=d.data;return N.aborted=!0,x.apply(N.target,N.args)}let $=ue(I,"open",()=>function(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{gt(e,c)});
1
+ var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"<root>",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;b<s.length;b++)s[b]._updateTaskCount(r.type,i)}};$.__symbol__=Q;let t=$,c={name:"",onHasTask:(j,r,i,s)=>j.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;r<j.length;r++){let i=j[r];try{i.zone.runTask(i,null,null)}catch(s){w.onUnhandledError(s)}}}w.microtaskDrainDone(),I=!1}}let te={name:"NO ZONE"},X="notScheduled",v="scheduling",d="scheduled",F="running",q="canceling",Y="unknown",B="microTask",g="macroTask",U="eventTask",D={},w={symbol:Q,currentZoneFrame:()=>k,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t<n.length;t++){let c=n[t],f=e[c];if(f){let _=ve(e,c);if(!Qe(_))continue;e[c]=(E=>{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;t<n.length;t++)$e(e,"on"+n[t],a);else{let t=[];for(let c in e)c.slice(0,2)=="on"&&t.push(c);for(let c=0;c<t.length;c++)$e(e,t[c],a)}}var re=H("originalInstance");function ke(e){let n=J[e];if(!n)return;J[H(e)]=n,J[e]=function(){let c=Fe(arguments,e);switch(c.length){case 0:this[re]=new n;break;case 1:this[re]=new n(c[0]);break;case 2:this[re]=new n(c[0],c[1]);break;case 3:this[re]=new n(c[0],c[1],c[2]);break;case 4:this[re]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ue(J[e],n);let a=new n(function(){}),t;for(t in a)e==="XMLHttpRequest"&&t==="responseBlob"||function(c){typeof a[c]=="function"?J[e].prototype[c]=function(){return this[re][c].apply(this[re],arguments)}:Ae(J[e].prototype,c,{set:function(f){typeof f=="function"?(this[re][c]=Ge(f,e+"."+c),ue(this[re][c],f)):this[re][c]=f},get:function(){return this[re][c]}})}(t);for(t in n)t!=="prototype"&&n.hasOwnProperty(t)&&(J[e][t]=n[t])}function le(e,n,a){let t=e;for(;t&&!t.hasOwnProperty(n);)t=je(t);!t&&e[n]&&(t=e);let c=H(n),f=null;if(t&&(!(f=t[c])||!t.hasOwnProperty(c))){f=t[c]=t[n];let _=t&&ve(t,n);if(Qe(_)){let E=a(f,c,n);t[n]=function(){return E(this,arguments)},ue(t[n],f)}}return f}function gt(e,n,a){let t=null;function c(f){let _=f.data;return _.args[_.cbIdx]=function(){f.invoke.apply(this,arguments)},t.apply(_.target,_.args),f}t=le(e,n,f=>function(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U<g.length&&!(d&&d[st]===!0);U++){let D=P(g[U],q,d);D&&B.push(D)}}if(B.length===1)throw B[0];for(let g=0;g<B.length;g++){let U=B[g];n.nativeScheduleMicroTask(()=>{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;y<R.length;y++)if(R[y]===o){R.splice(y,1),o.isRemoved=!0,o.removeAbortListener&&(o.removeAbortListener(),o.removeAbortListener=null),R.length===0&&(o.allRemoved=!0,o.target[p]=null);break}}}if(o.allRemoved)return k.call(o.target,o.eventName,o.capture?A:W,o.options)},i=function(o){return w.call(D.target,D.eventName,o.invoke,D.options)},s=function(o){return z.call(D.target,D.eventName,o.invoke,D.options)},b=function(o){return k.call(o.target,o.eventName,o.invoke,o.options)},x=F?j:i,M=F?r:b,de=function(o,u){let p=typeof u;return p==="function"&&o.callback===u||p==="object"&&o.originalDelegate===u},me=d&&d.diff?d.diff:de,he=Zone[H("UNPATCHED_EVENTS")],Pe=e[H("PASSIVE_EVENTS")];function h(o){if(typeof o=="object"&&o!==null){let u={...o};return o.signal&&(u.signal=o.signal),u}return o}let l=function(o,u,p,R,y=!1,O=!1){return function(){let N=this||e,L=arguments[0];d&&d.transferEventName&&(L=d.transferEventName(L));let G=arguments[1];if(!G)return o.apply(this,arguments);if(De&&L==="uncaughtException")return o.apply(this,arguments);let V=!1;if(typeof G!="function"){if(!G.handleEvent)return o.apply(this,arguments);V=!0}if(q&&!q(o,G,N,arguments))return;let fe=ge&&!!Pe&&Pe.indexOf(L)!==-1,oe=h($(arguments[2],fe)),_e=oe?.signal;if(_e?.aborted)return;if(he){for(let se=0;se<he.length;se++)if(L===he[se])return fe?o.call(N,L,G,oe):o.apply(this,arguments)}let Oe=oe?typeof oe=="boolean"?!0:oe.capture:!1,Ue=oe&&typeof oe=="object"?oe.once:!1,ut=Zone.current,Ne=ee[L];Ne||(it(L,U),Ne=ee[L]);let We=Ne[Oe?ce:ae],Ee=N[We],qe=!1;if(Ee){if(qe=!0,Y){for(let se=0;se<Ee.length;se++)if(me(Ee[se],G))return}}else Ee=N[We]=[];let we,ze=N.constructor.name,Xe=rt[ze];Xe&&(we=Xe[L]),we||(we=ze+u+(U?U(L):L)),D.options=oe,Ue&&(D.options.once=!1),D.target=N,D.capture=Oe,D.eventName=L,D.isExisting=qe;let pe=F?pt:void 0;pe&&(pe.taskData=D),_e&&(D.options.signal=void 0);let ne=ut.scheduleEventTask(we,G,pe,p,R);if(_e){D.options.signal=_e;let se=()=>ne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;G<L.length;G++){let V=L[G];if(me(V,y)){if(L.splice(G,1),V.isRemoved=!0,L.length===0&&(V.allRemoved=!0,o[N]=null,!R&&typeof u=="string")){let fe=be+"ON_PROPERTY"+u;o[fe]=null}return V.zone.cancelTask(V),B?o:void 0}}return k.apply(this,arguments)},g[_]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=[],R=ct(o,U?U(u):u);for(let y=0;y<R.length;y++){let O=R[y],N=O.originalDelegate?O.originalDelegate:O.callback;p.push(N)}return p},g[E]=function(){let o=this||e,u=arguments[0];if(u){d&&d.transferEventName&&(u=d.transferEventName(u));let p=ee[u];if(p){let R=p[ae],y=p[ce],O=o[R],N=o[y];if(O){let L=O.slice();for(let G=0;G<L.length;G++){let V=L[G],fe=V.originalDelegate?V.originalDelegate:V.callback;this[f].call(this,u,fe,V.options)}}if(N){let L=N.slice();for(let G=0;G<L.length;G++){let V=L[G],fe=V.originalDelegate?V.originalDelegate:V.callback;this[f].call(this,u,fe,V.options)}}}}else{let p=Object.keys(o);for(let R=0;R<p.length;R++){let y=p[R],O=ot.exec(y),N=O&&O[1];N&&N!=="removeListener"&&this[E].call(this,N)}this[E].call(this,"removeListener")}if(B)return this},ue(g[c],w),ue(g[f],k),K&&ue(g[E],K),S&&ue(g[_],S),!0}let X=[];for(let v=0;v<a.length;v++)X[v]=te(a[v],t);return X}function ct(e,n){if(!n){let f=[];for(let _ in e){let E=ot.exec(_),m=E&&E[1];if(m&&(!n||m===n)){let C=e[_];if(C)for(let T=0;T<C.length;T++)f.push(C[T])}}return f}let a=ee[n];a||(it(n),a=ee[n]);let t=e[a[ae]],c=e[a[ce]];return t?c?t.concat(c):t.slice():c?c.slice():[]}function vt(e,n){let a=e.Event;a&&a.prototype&&n.patchMethod(a.prototype,"stopImmediatePropagation",t=>function(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;m<a.length;m++){let C=a[m],T=C+f,I=C+c,P=_+T,Z=_+I;t[C]={},t[C][f]=P,t[C][c]=Z}let E=e.EventTarget;if(!(!E||!E.prototype))return n.patchEventTarget(e,n,[E&&E.prototype]),!0}function Rt(e,n){n.patchEventPrototype(e,n)}function at(e,n,a){if(!a||a.length===0)return n;let t=a.filter(f=>f.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<t.length;c++){let f=n[t[c]];f&&f.prototype&&Ke(f.prototype,Ze(f.prototype),a)}}function St(e){e.__load_patch("legacy",n=>{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;c<t.length;c++){let f=t[c];le(n,f,(_,E,m)=>function(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;s<i.length;s++)i[s]===w&&i.splice(s,1);!k.aborted&&w.state===X&&r.call(w)},j.push(w)}else w.invoke()}else!k.aborted&&S[_]===!1&&(S[m]=!0)};return W.call(S,te,z),S[t]||(S[t]=w),U.apply(S,k.args),S[_]=!0,w}function d(){}function F(w){let k=w.data;return k.aborted=!0,D.apply(k.target,k.args)}let q=le(P,"open",()=>function(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<R.length;)i(h,R[y++],R[y++],R[y++],R[y++]);if(R.length==0&&l==D){h[v]=w;let y=o;try{throw new Error("Uncaught (in promise): "+_(o)+(o&&o.stack?`
2
+ `+o.stack:""))}catch(O){y=O}C&&(y.throwOriginal=!0),y.rejection=o,y.promise=h,y.zone=a.current,y.task=a.currentTask,m.push(y),t.scheduleMicroTask()}}}return h}let j=E("rejectionHandledHandler");function r(h){if(h[v]===w){try{let l=a[j];l&&typeof l=="function"&&l.call(this,{rejection:h[d],promise:h})}catch{}h[v]=D;for(let l=0;l<m.length;l++)h===m[l].promise&&m.splice(l,1)}}function i(h,l,o,u,p){r(h);let R=h[v],y=R?typeof u=="function"?u:te:typeof p=="function"?p:X;l.scheduleMicroTask(B,()=>{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N<o.length;N++)o[N].then(L=>{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt);
package/dist/1840.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[1840,6925,8374,8682,1617],{1840:(X,v,i)=>{i.r(v),i.d(v,{DbMastersM:()=>Ft});var S=i(7664),M=i(8176),Z=i(3726),t=i(4946),d=i(5861),f=i(6990),u=i(3157),h=i(328),D=i(6212),g=i(1162),N=i(6925),T=i(553),s=i(5085),q=i(921),Y=i(9729),O=i(7240),x=i(9961),R=i(2189),tt=i(5561),J=i(5852),et=i(4795),I=i(7414),B=i(2915),L=i(3835),P=i(3429),k=i(5219),Q=i(6814),A=i(5431),G=i(7680),z=i(3259),m=i(95),j=i(9361),at=i(1601),y=i(3531),st=i(9989),ot=i(2304),nt=i(2660),it=i(5860),rt=i(756),V=i(4844),lt=i(3965),dt=i(5025);const ct=["insertCodeModalC"],mt=["monacoEditorModalC"];function ft(n,c){1&n&&(t.TgZ(0,"span"),t._UZ(1,"i",35),t._uU(2," Add Database Master"),t.qZA())}function ut(n,c){1&n&&(t.TgZ(0,"span"),t._UZ(1,"i",36),t._uU(2," View Database Master"),t.qZA())}function pt(n,c){1&n&&(t.TgZ(0,"span"),t._UZ(1,"i",37),t._uU(2," Edit Database Master"),t.qZA())}function ht(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"div",38)(1,"app-monaco-editor",39),t.NdJ("editorGenerated",function(o){t.CHM(e);const r=t.oxw();return t.KtG(r.editorGenerated(o))}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("isSchemaEditor",!0)("editorOptions",e.editorOptionsDBMasters)}}function bt(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"a",40),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.viewError())}),t._uU(1,"View error"),t.qZA()}}function gt(n,c){1&n&&(t.TgZ(0,"span"),t._uU(1,"Update"),t.qZA())}function _t(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.save(!1))}),t._UZ(1,"i",42),t.YNc(2,gt,2,0,"span",4),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.form.invalid),t.xp6(2),t.Q6J("ngIf",e.data.mode===e.EFormMode.EDIT)}}function Ct(n,c){1&n&&(t.TgZ(0,"span"),t._uU(1,"Save"),t.qZA())}function Dt(n,c){1&n&&(t.TgZ(0,"span"),t._uU(1,"Update & Close"),t.qZA())}function Mt(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.save(!0))}),t._UZ(1,"i",42),t.YNc(2,Ct,2,0,"span",4),t.YNc(3,Dt,2,0,"span",4),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.form.invalid),t.xp6(2),t.Q6J("ngIf",e.data.mode===e.EFormMode.ADD),t.xp6(1),t.Q6J("ngIf",e.data.mode===e.EFormMode.EDIT)}}function Tt(n,c){1&n&&t._UZ(0,"p-progressSpinner",43)}let K=(()=>{class n{fb;ns;generalS;constantsS;dbMastersS;authCS;monacoS;instanceS;eventCenterS;generalCS;navigationCS;userS;cd;data;loading={form:!1};EFormMode=h.D;form;subscriptions=[];formData;IEventData=u.F;id;BE_HOST_PORT=T.N.BE_HOST_PORT;DOCS_HOST_PORT=T.N.DOCS_HOST_PORT;instances=[];editorDBMaster;editorOptionsDBMasters={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};insertCodeModalC;viewDockerfileModelC;shouldLoadMonacoEditor=!1;monacoDecorations=[];tab={};dbIdMap={};colIdMap={};formDataTemp=null;constructor(e,a,o,r,l,_,C,b,p,E,w,F,U){this.fb=e,this.ns=a,this.generalS=o,this.constantsS=r,this.dbMastersS=l,this.authCS=_,this.monacoS=C,this.instanceS=b,this.eventCenterS=p,this.generalCS=E,this.navigationCS=w,this.userS=F,this.cd=U}ngOnInit(){var e=this;return(0,d.Z)(function*(){e.createForm(),e.subscriptions.push(e.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){if(o)if(e.form.enable(),o.action===u.F.OPEN_FORM_IN_EDIT_MODE)yield e.editViewLoadData(),e.cd.detectChanges();else if(o.action===u.F.OPEN_FORM_IN_VIEW_MODE)yield e.editViewLoadData(),e.form.disable(),e.cd.detectChanges();else if(o.action===u.F.OPEN_FORM_IN_ADD_MODE){e.form.reset(),e.resetDependentObjects("INSTANCE"),yield e.loadInstances();const r=yield e.instanceS.getDefaultContent(e.BE_HOST_PORT,s.R.DB_MASTERS_JSON).toPromise();e.editorOptionsDBMasters={readOnly:!1},e.generalCS.setValueInEditor(e,"editorDBMaster",r.data),e.cd.detectChanges()}});return function(o){return a.apply(this,arguments)}}()))})()}editViewLoadData(){var e=this;return(0,d.Z)(function*(){const a=yield e.dbMastersS.getById(e.data.formData._id).toPromise();e.form.reset(),e.resetDependentObjects("INSTANCE"),e.form.patchValue(a.data),e.formDataTemp=a.data,e.generalCS.setValueInEditor(e,"editorDBMaster",a.data?.dbMasterConfigCode||""),yield e.loadInstances(),e.formDataTemp=null})()}createForm(){this.form=this.fb.group({name:[null,[m.kI.required,m.kI.minLength(3),m.kI.maxLength(50),m.kI.pattern("[a-zA-Z0-9_-]*$")]],instanceName:[null,[m.kI.required]],databaseName:[null,[m.kI.required]],collectionName:[null,[m.kI.required]]})}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idDBMastersForm").modal("show")},100)}hideModal(){$("#idDBMastersForm").modal("hide")}save(e){var a=this;return(0,d.Z)(function*(){const o=a.form.getRawValue();let C;o.instanceName=o.instanceName.name,o.databaseName=o.databaseName.db,o.collectionName=o.collectionName.name,C=a.data.formData&&a.data.formData._id?(yield a.dbMastersS.getById(a.data.formData._id).toPromise()).data:{};const b=Object.assign({},C,o);b.user=a.authCS.getUserId(),b.dbMasterConfigCode=a.editorDBMaster.getValue();try{let p;a.loading.form=!0,a.lastError=void 0,a.monacoS.clearEditorDecorations(a.editorDBMaster,a.monacoDecorations),a.data.mode===h.D.ADD?p=yield a.dbMastersS.post(b).toPromise():a.data.mode===h.D.EDIT&&(p=yield a.dbMastersS.put(b._id,b,{select:g.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===h.D.ADD?a.constantsS.dbMaster.addSuccess:a.constantsS.dbMaster.editSuccess),e&&a.data.eventChannel.emit({action:a.data.mode===h.D.ADD?u.F.SAVED:u.F.UPDATED,data:p}),a.loading.form=!1}catch(p){a.loading.form=!1,a.ns.showErrorFromResponse(p.error||p,"Unable to save database master."),a.lastError=p.error,a.tab={axiosResponse:{data:p.error}},a.monacoS.highlightErrorInMonacoEditor(a.editorDBMaster,a.tab,"MainSandbox.ts",a.monacoDecorations)}a.cd.detectChanges()})()}showInsertCodeModel(){this.generalCS.messageReceivedFor=j.H.All,this.insertCodeModalC.showModal(y.b.CodeFinderResultC)}editorGenerated(e){var a=this;return(0,d.Z)(function*(){a.editorDBMaster=e,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(e,o=>{a.form.valid&&a.save(!1)}),a.monacoS.addInsertCodeKeyBinding(e,o=>{a.generalCS.messageReceivedFor=j.H.All,a.data.mode!==h.D.VIEW&&a.insertCodeModalC.showModal(y.b.DBMastersFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(o=>{o.type&&o.type===st.g.TEXT_COPIED&&o.componentName===y.b.DBMastersFormC&&(a.monacoS.insertAtCursor(e,o.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),at.d.json)}loadInstances(){var e=this;return(0,d.Z)(function*(){e.resetDependentObjects("INSTANCE"),e.loading.form=!0;try{const a={find:{user:e.authCS.getUserId(),active:!0},select:{name:1,active:1,user:1}};e.tab.allInstances=(yield e.instanceS.query(a).toPromise()).data||[]}catch(a){e.ns.showErrorMessageFromErrorObject(a),e.tab.allInstances=[]}if(e.formDataTemp){const a=e.form.controls.instanceName;e.tab.instance=f.find(e.tab.allInstances,{name:e.formDataTemp.instanceName}),e.tab.instance&&a.setValue(e.tab.instance)}else e.tab.instance=e.tab.allInstances[0];yield e.loadDatabases(),e.loading.form=!1,e.cd.detectChanges()})()}loadDatabases(){var e=this;return(0,d.Z)(function*(){if(e.loading.form=!0,e.resetDependentObjects("DATABASE"),!e.tab.instance)return e.tab.allDatabases=[],void(e.tab.allCollections=[]);try{e.tab.allDatabases=((yield e.instanceS.getDatabases([e.tab.instance]).toPromise()).data||[])[0]||[],e.dbIdMap=f.keyBy(e.tab.allDatabases,g.N7.db)}catch(a){e.ns.showErrorMessageFromErrorObject(a),e.tab.allDatabases=[]}if(e.formDataTemp){const a=e.form.get("databaseName");e.tab.database=f.find(e.tab.allDatabases,{db:e.formDataTemp.databaseName}),e.tab.database&&a.patchValue(e.tab.database)}else e.tab.database=e.tab.allDatabases[0];yield e.loadCollections(),e.loading.form=!1})()}loadCollections(){var e=this;return(0,d.Z)(function*(){if(e.loading.form=!0,e.resetDependentObjects("COLLECTION"),e.tab.instance&&e.tab.database){try{e.tab.allCollections=((yield e.instanceS.getCollections([e.tab.database]).toPromise()).data||[])[0]||[],e.colIdMap=f.keyBy(e.tab.allCollections,g.GR.name)}catch(a){e.ns.showErrorMessageFromErrorObject(a),e.tab.allCollections=[]}if(e.formDataTemp){const a=e.form.get("collectionName");e.tab.collection=f.find(e.tab.allCollections,{name:e.formDataTemp.collectionName}),e.tab.collection&&a.patchValue(e.tab.collection)}else e.tab.collection=e.tab.allCollections[0];e.loading.form=!1,e.cd.detectChanges()}else e.tab.allCollections=[]})()}resetDependentObjects(e){"INSTANCE"===e?(this.tab.allInstances=this.tab.allDatabases=this.tab.allCollections=[],this.tab.instance=this.tab.database=this.tab.collection=this.tab.api=void 0):"DATABASE"===e?(this.tab.allDatabases=this.tab.allCollections=[],this.tab.database=this.tab.collection=this.tab.api=void 0):"COLLECTION"===e&&(this.tab.allCollections=[],this.tab.collection=this.tab.api=void 0)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(a){return new(a||n)(t.Y36(m.qu),t.Y36(x.W),t.Y36(O.b),t.Y36(I.L),t.Y36(Y.z),t.Y36(J.D),t.Y36(ot.b),t.Y36(P.E),t.Y36(B.u),t.Y36(O.b),t.Y36(R.S),t.Y36(L.K),t.Y36(t.sBO))};static \u0275cmp=t.Xpm({type:n,selectors:[["app-db-masters-form"]],viewQuery:function(a,o){if(1&a&&(t.Gf(ct,5),t.Gf(mt,5)),2&a){let r;t.iGM(r=t.CRH())&&(o.insertCodeModalC=r.first),t.iGM(r=t.CRH())&&(o.viewDockerfileModelC=r.first)}},inputs:{data:"data"},decls:53,vars:21,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idDBMastersForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/features/db-masters.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],["header","Basic Info"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["optionLabel","name","filterBy","name","appendTo","body","formControlName","instanceName","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["formControlName","databaseName","optionLabel","db","filterBy","db","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["formControlName","collectionName","optionLabel","name","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter","onChange"],["header","Code"],["class","overflow-hidden","style","height: calc(100vh - 206px);",4,"ngIf"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"overflow-hidden",2,"height","calc(100vh - 206px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,ft,3,0,"span",4),t.YNc(5,ut,3,0,"span",4),t.YNc(6,pt,3,0,"span",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.hideModal()}),t.TgZ(9,"span",7),t._UZ(10,"i",8),t.qZA()(),t.TgZ(11,"span",9),t.NdJ("click",function(){return o.showInsertCodeModel()}),t._UZ(12,"i",10),t.qZA(),t.TgZ(13,"a",11),t._UZ(14,"img",12),t.qZA()()(),t.TgZ(15,"div",13)(16,"p-tabView")(17,"p-tabPanel",14)(18,"form",15)(19,"div",16)(20,"label",17),t._uU(21,"Name"),t.qZA(),t.TgZ(22,"div",18),t._UZ(23,"input",19),t.qZA()(),t.TgZ(24,"div",16)(25,"label",17),t._uU(26,"Instance"),t.qZA(),t.TgZ(27,"div",18)(28,"p-dropdown",20),t.NdJ("onChange",function(l){return o.tab.instance=l.value,o.loadDatabases()}),t.qZA()()(),t.TgZ(29,"div",16)(30,"label",17),t._uU(31,"Database"),t.qZA(),t.TgZ(32,"div",18)(33,"p-dropdown",21),t.NdJ("onChange",function(l){return o.tab.database=l.value,o.loadCollections()}),t.qZA()()(),t.TgZ(34,"div",16)(35,"label",17),t._uU(36,"Collection"),t.qZA(),t.TgZ(37,"div",18)(38,"p-dropdown",22),t.NdJ("onChange",function(l){return o.tab.collection=l.value}),t.qZA()()()()(),t.TgZ(39,"p-tabPanel",23),t.YNc(40,ht,2,2,"div",24),t.qZA()()(),t.TgZ(41,"div",25),t.YNc(42,bt,2,0,"a",26),t.TgZ(43,"button",27),t.NdJ("click",function(){return o.hideModal()}),t._UZ(44,"i",28),t._uU(45," Close"),t.qZA(),t.YNc(46,_t,3,2,"button",29),t.YNc(47,Mt,4,3,"button",29),t.qZA(),t.YNc(48,Tt,1,0,"p-progressSpinner",30),t.qZA()()(),t._UZ(49,"app-insert-code-modal",31,32)(51,"app-monaco-editor-modal",33,34)),2&a&&(t.xp6(4),t.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),t.xp6(1),t.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),t.xp6(1),t.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),t.xp6(12),t.Q6J("formGroup",o.form),t.xp6(10),t.Q6J("options",o.tab.allInstances)("filter",!0),t.xp6(5),t.Q6J("options",o.tab.allDatabases)("filter",!0),t.xp6(5),t.Q6J("options",o.tab.allCollections)("filter",!0),t.xp6(2),t.Q6J("ngIf",o.shouldLoadMonacoEditor),t.xp6(2),t.Q6J("ngIf",o.lastError),t.xp6(4),t.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),t.xp6(1),t.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),t.xp6(1),t.Q6J("ngIf",o.loading.form),t.xp6(1),t.Q6J("frameId","idInsertCodeDbMig")("modalId","idInsertCodeDbMigForm")("docsHostPort",o.DOCS_HOST_PORT),t.xp6(2),t.Q6J("modalId","idMonacoEditorModalDBMaster")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,m.sg,m.u,Q.O5,nt.y,it.P,rt.O,G.G,V.xf,V.x4,z.u,lt.Lt,dt.A],encapsulation:2,changeDetection:0})}return n})();const vt=["DBMastersFormC"];function St(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"span",16),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.edit())}),t._UZ(1,"i",17),t.qZA()}}function Zt(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"span",18),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.removePermanent())}),t._UZ(1,"i",19),t.qZA()}}function Nt(n,c){1&n&&(t.TgZ(0,"th",23),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function At(n,c){if(1&n&&(t.TgZ(0,"tr"),t.YNc(1,Nt,2,0,"th",20),t.TgZ(2,"th",21),t._uU(3,"Name"),t.qZA(),t.TgZ(4,"th"),t._uU(5,"Instance \u2192 Database \u2192 Collection"),t.qZA(),t.TgZ(6,"th"),t._uU(7,"Required Auth Headers"),t.qZA(),t._UZ(8,"th",22),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.showCheckbox)}}function Ot(n,c){if(1&n&&(t.TgZ(0,"td"),t._UZ(1,"p-tableCheckbox",29),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("value",e)("pSelectableRow",e)}}function xt(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"tr",24),t.YNc(1,Ot,2,2,"td",25),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td")(9,"div",26)(10,"button",27),t.NdJ("click",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.openMasterPageInNewTab(r))}),t._UZ(11,"i",28),t.qZA()()()()}if(2&n){const e=c.$implicit,a=t.oxw();t.Q6J("pSelectableRow",e),t.xp6(1),t.Q6J("ngIf",a.showCheckbox),t.xp6(2),t.Oqu(e.name),t.xp6(2),t.lnq("",e.instanceName," \u2192 ",e.databaseName," \u2192 ",e.collectionName,""),t.xp6(2),t.Oqu(e.authHeadersGrid)}}function It(n,c){1&n&&t._UZ(0,"p-progressSpinner",30)}let H=(()=>{class n{dbMastersS;generalS;notificationS;navigationCS;navigationS;authCS;authS;constantsS;eventCenterS;router;userS;instanceS;ns;cs;confirmationService;cd;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={mode:h.D.ADD,eventChannel:new t.vpe,formData:void 0};rows=[];rowsMap={};EUserType=q.dN;gridKey=g.iH._id;EAPICategory=s.R;selectedRows=[];dbMastersFormC;constructor(e,a,o,r,l,_,C,b,p,E,w,F,U,Ut,Yt,Rt){this.dbMastersS=e,this.generalS=a,this.notificationS=o,this.navigationCS=r,this.navigationS=l,this.authCS=_,this.authS=C,this.constantsS=b,this.eventCenterS=p,this.router=E,this.userS=w,this.instanceS=F,this.ns=U,this.cs=Ut,this.confirmationService=Yt,this.cd=Rt}ngOnInit(){var e=this;return(0,d.Z)(function*(){if(!e.authS.backendSettings.extensions)return e.navigationS.gotoDashboard();e.eventCenterS.dbMasters.selectedDBMaster.next(void 0),yield e.loadGridData(),e.subscriptions.push(e.data.eventChannel.subscribe(function(){var a=(0,d.Z)(function*(o){(o.action===u.F.SAVED||o.action===u.F.UPDATED)&&(e.dbMastersFormC.hideModal(),yield e.loadGridData())});return function(o){return a.apply(this,arguments)}}())),e.generalS.setNewTitle("API Maker - Database Masters")})()}loadGridData(){var e=this;return(0,d.Z)(function*(){e.loading.grid=!0;const a=yield e.dbMastersS.getDBMastersGrid({}).toPromise();if(a){e.selectedRows=[],e.rows=a.data,e.rowsMap=f.keyBy(e.rows,g.iH._id);for(const r of e.rows){const l=[];for(const _ of r.authHeaders||[])l.push(_.name);r.authHeadersGrid=l.join(", ")}}let o=e.navigationCS.getQueryParam(D.p.am_db_master);o&&!e.rowsMap[o]&&e.rows.length&&(o=e.rows[0]._id),e.rowsMap[o]?yield e.fillData():e.eventCenterS.dbMasters.selectedDBMaster.next(void 0),e.loading.grid=!1,e.cd.detectChanges()})()}add(){this.data.formData={order:(f.max(f.map(this.rows,"order"))||0)+1},this.data.mode=h.D.ADD,this.data.eventChannel.emit({action:u.F.OPEN_FORM_IN_ADD_MODE,data:this.data.formData}),this.dbMastersFormC.showModal()}edit(){this.data.formData=this.rowsMap[f.map(this.selectedRows,"_id")[0]],this.data.mode=h.D.EDIT,this.data.eventChannel.emit({action:u.F.OPEN_FORM_IN_EDIT_MODE}),this.dbMastersFormC.showModal()}removePermanent(){var e=this;return(0,d.Z)(function*(){var a;e.confirmationService.confirm({message:e.cs.dbMaster.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,d.Z)(function*(){for(const o of e.selectedRows)yield e.hardDelete(o._id);e.ns.showSuccess(e.cs.dbMaster.removePermanent),yield e.loadGridData()}),function(){return a.apply(this,arguments)})})})()}hardDelete(e){var a=this;return(0,d.Z)(function*(){yield a.dbMastersS.permanentDelete(e).toPromise()})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.dbMasters.selectedDBMaster.next(void 0)}resetThisUrl(){var e=this;return(0,d.Z)(function*(){e.eventCenterS.dbMasters.selectedDBMaster.next(void 0),yield e.navigationCS.setQueryParam(D.p.am_db_master,null)})()}itemSelected(){var e=this;return(0,d.Z)(function*(){yield e.resetThisUrl(),setTimeout(e.fillData.bind(e))})()}fillData(){var e=this;return(0,d.Z)(function*(){if(!e.selectedRows.length)return yield e.navigationCS.setQueryParam(D.p.am_db_master,""),void e.eventCenterS.dbMasters.selectedDBMaster.next(null);const a=e.selectedRows[0];a?(yield e.navigationCS.setQueryParam(D.p.am_db_master,a._id),e.eventCenterS.dbMasters.selectedDBMaster.next(a)):yield e.resetThisUrl()})()}dblClick(){this.selectedRows.length&&this.edit()}openMasterPageInNewTab(e){const a=this.authCS.getUserPath();let o=[T.N.BE_HOST_PORT,"/dist-db-masters/browser/",`?${N.ZF.ADMIN_PATH}=${a}&`].join("");const r=[`${N.ZF.DB_MASTER_NAME}=${e.name}`];for(const l of e.authHeaders)r.push(`${l.name}=____actual_header_value____`);o+=r.join("&"),window.open(o,"_blank")}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}clone=f.clone;static \u0275fac=function(a){return new(a||n)(t.Y36(Y.z),t.Y36(O.b),t.Y36(x.W),t.Y36(R.S),t.Y36(tt.X),t.Y36(J.D),t.Y36(et.e),t.Y36(I.L),t.Y36(B.u),t.Y36(S.F0),t.Y36(L.K),t.Y36(P.E),t.Y36(x.W),t.Y36(I.L),t.Y36(k.YP),t.Y36(t.sBO))};static \u0275cmp=t.Xpm({type:n,selectors:[["app-db-masters-list"]],viewQuery:function(a,o){if(1&a&&t.Gf(vt,5),2&a){let r;t.iGM(r=t.CRH())&&(o.dbMastersFormC=r.first)}},inputs:{showCheckbox:"showCheckbox"},decls:18,vars:10,consts:[[1,"card","shadow-sm","h-100"],["pTooltip","",1,"card-header"],["src","/assets/images/icons/masters.png","alt","Database master image",1,"fa-fw","mr-1",2,"width","27px"],["href","https://docs.apimaker.dev/v1/docs/features/database-masters.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 82px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["DBMastersFormC",""],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["style","width: 45px;",4,"ngIf"],[2,"width","25%"],[2,"width","70px"],[2,"width","45px"],[3,"pSelectableRow"],[4,"ngIf"],[1,"text-center"],["tooltipPosition","left","pTooltip","Open master page",1,"btn","btn-xsm-custom",3,"click"],[1,"fas","fa-external-link-alt","text-info","fa-fw"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,o){1&a&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._UZ(3,"img",2),t._uU(4," Database Masters"),t.qZA(),t.TgZ(5,"a",3),t._UZ(6,"img",4),t.qZA(),t.TgZ(7,"span",5),t.NdJ("click",function(){return o.add()}),t._UZ(8,"i",6),t.qZA(),t.YNc(9,St,2,0,"span",7),t.YNc(10,Zt,2,0,"span",8),t.qZA(),t.TgZ(11,"div",9)(12,"p-table",10),t.NdJ("selectionChange",function(l){return o.selectedRows=l})("selectionChange",function(){return o.itemSelected()})("dblclick",function(){return o.dblClick()}),t.YNc(13,At,9,1,"ng-template",11),t.YNc(14,xt,12,7,"ng-template",12),t.qZA(),t.YNc(15,It,1,0,"p-progressSpinner",13),t.qZA()(),t._UZ(16,"app-db-masters-form",14,15)),2&a&&(t.xp6(9),t.Q6J("ngIf",o.selectedRows.length&&o.selectedRows.length<2),t.xp6(1),t.Q6J("ngIf",o.selectedRows.length),t.xp6(2),t.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",o.selectedRows)("dataKey",o.gridKey)("scrollable",!0)("value",o.rows),t.xp6(3),t.Q6J("ngIf",o.loading.grid),t.xp6(1),t.Q6J("data",o.data))},dependencies:[Q.O5,A.iA,k.jx,A.Ei,A.UA,A.Mo,G.G,z.u,K],encapsulation:2,changeDetection:0})}return n})(),W=(()=>{class n{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.Xpm({type:n,selectors:[["app-db-masters-layout"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1","overflow-auto"]],template:function(a,o){1&a&&(t.TgZ(0,"div",0),t._UZ(1,"app-db-masters-list"),t.qZA())},dependencies:[H],encapsulation:2})}return n})();var yt=i(4950);let Et=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=t.oAB({type:n});static \u0275inj=t.cJS({imports:[M.u,yt.A]})}return n})();const wt=[{path:"main",component:W,canActivate:[Z.P]}];let Ft=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=t.oAB({type:n});static \u0275inj=t.cJS({imports:[S.Bz.forChild(wt),M.u,Et]})}return n})()},6925:(X,v,i)=>{i.d(v,{Eg:()=>f,Yp:()=>Z,ZF:()=>u,vT:()=>M});var M=function(s){return s.FORM_DATA="FORM_DATA",s.JSON="JSON",s.TEXT="TEXT",s}(M||{}),Z=function(s){return s.GET="GET",s.POST="POST",s.PUT="PUT",s.DELETE="DELETE",s}(Z||{}),f=function(s){return s.CONTENT_TYPE="content-type",s.ACCEPT_ENCODING="accept-encoding",s.NO_COMPRESSION_STD="x-no-compression",s.AUTHORIZATION_AM="x-am-authorization",s.AUTHORIZATION_AM_USER="x-am-user-authorization",s.AUTHORIZATION_AWS="x-aws-authorization",s.AUTHORIZATION_GOOGLE="x-google-authorization",s.AUTHORIZATION_AZURE="x-azure-authorization",s.RUN_IN_SANDBOX="x-am-run-in-sandbox",s.ORIGIN="origin",s.AUTHORIZATION="authorization",s.META="x-am-meta",s.SECRET="x-am-secret",s.CONTENT_TYPE_RESPONSE="x-am-content-type-response",s.CACHE_CONTROL="x-am-cache-control",s.CODE_HASH="x-am-code-hash",s.SANDBOX_TIMEOUT="x-am-sandbox-timeout",s.GET_ENCRYPTED_DATA="x-am-get-encrypted-data",s.ENCRYPTED_PAYLOAD="x-am-encrypted-payload",s.RESPONSE_CASE="x-am-response-case",s.RESPONSE_OBJECT_TYPE="x-am-response-object-type",s.AM_I18N="x-am-internationalization",s.DATA_SOURCE="x-am-data-source",s.TEST_HOOK="x-am-test-hook",s.TEST_EVENT="x-am-test-event",s.INTER_COMM="x-am-inter-comm",s.SEND_ONLY_OBJECTS="x-am-send-only-objects-in-stream",s.AM_REQUEST_ID="x-am-request-id",s.AM_STORE_TOKEN="x-am-store-token",s}(f||{}),u=function(s){return s.DB_MASTER_NAME="db-master-name",s.ADMIN_PATH="admin-path",s}(u||{})}}]);
package/dist/9208.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9208],{7595:(dt,x,r)=>{r.d(x,{G:()=>o});var d=r(5861),t=r(4946),P=r(3157),h=r(328),u=r(6212),n=r(6990),v=r(5085),g=r(1162),E=r(6925),U=r(553),F=r(921),N=r(7629),L=r(7240),b=r(9961),K=r(2189),J=r(5852),k=r(7414),Y=r(2915),O=r(7664),Q=r(9862),D=r(5219),I=r(95),S=r(6814),B=r(7797),M=r(5431),W=r(7680),H=r(3259),q=r(8057),j=r(1137);const V=["funManFormC"],$=["cloneApiModalC"];function X(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"span",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.edit())}),t._UZ(1,"i",21),t.qZA()}}function z(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"span",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.clone())}),t._UZ(1,"i",23),t.qZA()}}function tt(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"span",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removePermanentDialog())}),t._UZ(1,"i",25),t.qZA()}}function et(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"span")(1,"span",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.navigateToTreeView())}),t._UZ(2,"i",14),t.qZA(),t.TgZ(3,"span",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._UZ(4,"i",16),t.qZA(),t.YNc(5,X,2,0,"span",17),t.YNc(6,z,2,0,"span",18),t.YNc(7,tt,2,0,"span",19),t.qZA()}if(2&s){const e=t.oxw();t.xp6(5),t.Q6J("ngIf",1===e.selectedRows.length),t.xp6(1),t.Q6J("ngIf",1===e.selectedRows.length),t.xp6(1),t.Q6J("ngIf",1===e.selectedRows.length)}}function nt(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"span",26)(1,"label",27)(2,"p-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);const p=t.oxw();return t.KtG(p.eventCenterS.group.apisRegex.allCustomApis=a)}),t.qZA()()()}if(2&s){const e=t.oxw();t.xp6(2),t.Q6J("ngModel",e.eventCenterS.group.apisRegex.allCustomApis)("binary",!0)}}function ot(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"span",26)(1,"label",27)(2,"p-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);const p=t.oxw();return t.KtG(p.eventCenterS.filterInLog.apisRegex.allCustomApis=a)}),t.qZA()()()}if(2&s){const e=t.oxw();t.xp6(2),t.Q6J("ngModel",e.eventCenterS.filterInLog.apisRegex.allCustomApis)("binary",!0)}}function st(s,c){if(1&s&&(t.TgZ(0,"div")(1,"div",29),t._uU(2),t.qZA()()),2&s){const e=t.oxw();t.xp6(2),t.Oqu(e.constantsS.group.allCustomApisPermitted)}}function it(s,c){1&s&&(t.TgZ(0,"th",38),t._UZ(1,"p-tableHeaderCheckbox"),t.qZA())}function at(s,c){if(1&s&&(t.TgZ(0,"tr"),t.YNc(1,it,2,0,"th",35),t._UZ(2,"th",36)(3,"th",36),t.TgZ(4,"th"),t._uU(5,"Name"),t.qZA(),t.TgZ(6,"th"),t._uU(7,"Path"),t.qZA(),t._UZ(8,"th",37),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.showCheckbox)}}function w(s,c){if(1&s&&(t.TgZ(0,"td"),t._UZ(1,"p-tableCheckbox",44),t.qZA()),2&s){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("value",e)("pSelectableRow",e)}}function rt(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"div")(1,"label",45)(2,"p-checkbox",46),t.NdJ("ngModelChange",function(a){t.CHM(e);const p=t.oxw(2).$implicit;return t.KtG(p.saveResponseInLog=a)})("ngModelChange",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.saveResponseInLogCheckData())})("click",function(a){t.CHM(e);const p=t.oxw(4);return t.KtG(p.generalS.stopPropagation(a))}),t.qZA()()()}if(2&s){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngModel",e.saveResponseInLog)("binary",!0)}}function y(s,c){if(1&s&&(t.TgZ(0,"td"),t.YNc(1,rt,3,2,"div",5),t.qZA()),2&s){const e=t.oxw().$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(null==i.selectedRows?null:i.selectedRows.indexOf(e))>=0)}}const R=function(s,c,e,i){return{get:s,put:c,post:e,delete:i}},ct=function(){return["/api-info/api-testing/testing"]},pt=function(s,c,e){return{at_category:s,at_user:c,at_api:e}};function lt(s,c){if(1&s&&(t.TgZ(0,"tr",39),t.YNc(1,w,2,2,"td",5),t.TgZ(2,"td",40)(3,"span"),t._uU(4),t.qZA()(),t.TgZ(5,"td")(6,"span",41),t._uU(7),t.qZA()(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.qZA(),t.YNc(12,y,2,1,"td",5),t.TgZ(13,"td")(14,"div",40)(15,"a",42),t.NdJ("click",function(i){return i.stopPropagation()}),t._UZ(16,"i",43),t.qZA()()()()),2&s){const e=c.$implicit,i=c.rowIndex,a=t.oxw(2);t.Q6J("pSelectableRow",e),t.xp6(1),t.Q6J("ngIf",a.showCheckbox),t.xp6(3),t.Oqu(i+1),t.xp6(2),t.Q6J("ngClass",t.l5B(10,R,e.requestMethod===a.ERequestMethod.GET,e.requestMethod===a.ERequestMethod.PUT,e.requestMethod===a.ERequestMethod.POST,e.requestMethod===a.ERequestMethod.DELETE)),t.xp6(1),t.Oqu(e.requestMethod),t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.path),t.xp6(1),t.Q6J("ngIf",a.isLPM),t.xp6(3),t.Q6J("routerLink",t.DdM(15,ct))("queryParams",t.kEZ(16,pt,a.EAPICategory.CUSTOM_APIS,a.authCS.getUserId(),e._id))}}function l(s,c){1&s&&t._UZ(0,"p-progressSpinner",47)}function m(s,c){if(1&s){const e=t.EpF();t.TgZ(0,"div",30)(1,"p-table",31),t.NdJ("selectionChange",function(a){t.CHM(e);const p=t.oxw();return t.KtG(p.selectedRows=a)})("selectionChange",function(a){t.CHM(e);const p=t.oxw();return t.KtG(p.functionSelected(a))})("dblclick",function(a){t.CHM(e);const p=t.oxw();return t.KtG(p.dblClickCustomAPIsGrid(a))}),t.YNc(2,at,9,1,"ng-template",32),t.YNc(3,lt,17,20,"ng-template",33),t.qZA(),t.YNc(4,l,1,0,"p-progressSpinner",34),t.qZA()}if(2&s){const e=t.oxw();t.xp6(1),t.Q6J("selectionMode","multiple")("metaKeySelection",e.metaKeySelection)("selection",e.selectedRows)("dataKey",e.gridKey)("scrollable",!0)("value",e.rows),t.xp6(3),t.Q6J("ngIf",e.loading.grid)}}let o=(()=>{class s{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;showCheckbox=!0;isReadOnly=!1;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;metaKeySelection=!0;loading={grid:!1};subscriptions=[];data={mode:h.D.ADD,eventChannel:new t.vpe,formData:void 0};rows=[];rowsMap={};rowsMapName={};showAll=!1;selectedRows=[];gridKey=g.iH._id;EUserType=F.dN;BE_HOST_PORT=U.N.BE_HOST_PORT;EAPICategory=v.R;FunManFormC;cloneApiModalC;constructor(e,i,a,p,T,_,f,A,Z,C,ut){this.functionS=e,this.generalS=i,this.notificationS=a,this.navigationCS=p,this.authCS=T,this.constantsS=_,this.eventCenterS=f,this.cd=A,this.router=Z,this.http=C,this.confirmationService=ut}ngOnInit(){var e=this;this.eventCenterS.functions.selectedFunctions.next([]),this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(i=>{this.FunManFormC.hideModal(),this.loadGridData()})),this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var i=(0,d.Z)(function*(a){a.length&&(yield e.loadGridData())});return function(a){return i.apply(this,arguments)}}())),this.isLPM&&(this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(i=>{i&&this.loadGridData()})),this.subscriptions.push(this.eventCenterS.filterInLog.functionIds.subscribe((0,d.Z)(function*(){e.loadGridData()})))),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToTreeView(){var e=this;return(0,d.Z)(function*(){yield e.router.navigate(["api-info","custom-api","functions-tree"])})()}loadGridData(){var e=this;if(this.isDependentOnGroup&&0===this.eventCenterS.group.selectedGroups.value.length)return void this.resetGridAndUrl();this.loading.grid=!0;const i={find:{user:this.authCS.getUserId(),active:!0},select:{name:1,label:1,path:1,active:1,requestMethod:1},sort:{path:1}};this.showAll&&delete i.find.active,this.subscriptions.push(this.functionS.query(i).subscribe(function(){var a=(0,d.Z)(function*(p){p.success?(e.selectedRows=[],e.rows=p.data||[],e.rowsMap=n.keyBy(e.rows,g.iH._id),e.rowsMapName=n.keyBy(e.rows,g.eb.name)):e.resetGridAndUrl();const T=e.navigationCS.getQueryParam(u.p.custom_api)||(e.isFilterLogTable?e.eventCenterS.filterInLog.functionIds.value.join(","):e.eventCenterS.group.customApiIds.value.join(","))||(e.isDependentOnGroup&&e.eventCenterS.group.selectedGroups.value[0].queryParams.customApiNames?e.eventCenterS.group.selectedGroups.value[0].queryParams.customApiNames.join(","):"");if(T){const _=T.split(","),f=n.intersection(n.keys(e.rowsMap),_),A=[];for(const C of f)e.rowsMap[C]&&A.push(e.rowsMap[C]);const Z=[];for(const C of f)e.rowsMap[C]&&Z.push(e.rowsMap[C]);e.selectedRows=Z,e.eventCenterS.functions.selectedFunctions.next(A)}if(e.isLPM&&e.eventCenterS.group.selectedGroups.value[0]?.queryParams?.customApiNames?.length){const _=e.eventCenterS.group.selectedGroups.value[0];for(const f of _?.queryParams?.customApiNames)e.rowsMapName[f]&&(e.rowsMapName[f].saveResponseInLog=_.functionsLog?.[f]?.saveResponseInLog||!1);e.setResDataInEventCenter()}if(e.isDependentOnGroup){e.selectedRows=[];for(const _ of e.eventCenterS.group.customApiIds.value)e.rowsMap[_]&&e.selectedRows.push(e.rowsMap[_])}if(e.isFilterLogTable){e.selectedRows=[];for(const _ of e.eventCenterS.filterInLog.functionIds.value)e.rowsMap[_]&&e.selectedRows.push(e.rowsMap[_])}e.loading.grid=!1,e.cd.detectChanges()});return function(p){return a.apply(this,arguments)}}()))}add(){this.data.formData=void 0,this.data.mode=h.D.ADD,this.data.eventChannel.emit({action:P.F.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}view(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=h.D.VIEW,this.data.eventChannel.emit({action:P.F.OPEN_FORM_IN_VIEW_MODE}),this.FunManFormC.showModal()}edit(){this.data.formData=this.rowsMap[this.getSelectedRowId()],this.data.mode=h.D.EDIT,this.data.eventChannel.emit({action:P.F.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal()}removePermanentDialog(){var i,e=this;this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(i=(0,d.Z)(function*(){yield e.removePermanent()}),function(){return i.apply(this,arguments)})})}removePermanent(){var e=this;return(0,d.Z)(function*(){if(e.getSelectedRowId()){e.loading.grid=!0;try{const i=yield e.functionS.permanentDelete(e.getSelectedRowId()).toPromise();i.success?(e.notificationS.showSuccess(e.constantsS.functions.removePermanent),e.resetGridAndUrl(),e.loadGridData()):e.notificationS.showErrorFromResponse(i,e.constantsS.functions.removePermanentError)}catch{e.notificationS.showError(e.constantsS.functions.removePermanentError)}e.loading.grid=!1}})()}resetDependents(){var e=this;return(0,d.Z)(function*(){e.eventCenterS.functions.selectedFunctions.next([]),yield e.navigationCS.setQueryParam(u.p.custom_api,null)})()}functionSelected(e){var i=this;return(0,d.Z)(function*(){i.selectedRows=e,i.resetDependents().then();for(const a of i.rows)-1===i.selectedRows.indexOf(a)&&(a.saveResponseInLog=!1);i.fillData().then(),i.getSelectedRowId()?i.generalS.setNewTitle(i.rowsMap[i.getSelectedRowId()].name,v.R.CUSTOM_APIS):i.generalS.setNewTitle("API Maker - Custom APIs")})()}resetGridAndUrl(){this.rows=[],this.selectedRows=[],this.rowsMap={},this.eventCenterS.functions.selectedFunctions.next([])}fillData(){var e=this;return(0,d.Z)(function*(){if(!e.selectedRows||Array.isArray(e.selectedRows)&&!e.selectedRows.length)return yield e.navigationCS.setQueryParam(u.p.custom_api,""),e.eventCenterS.group.customApis.next([]),e.eventCenterS.functions.selectedFunctions.next([]),e.eventCenterS.group.customApiIds.next([]),void e.eventCenterS.group.customApis.next([]);if(e.isDependentOnGroup||e.isFilterLogTable){const i=n.map(e.selectedRows,"_id");e.eventCenterS.group.customApiIds.next(i),e.eventCenterS.group.customApis.next(e.selectedRows),e.isFilterLogTable&&(e.eventCenterS.filterInLog.functionIds.next(i),e.eventCenterS.filterInLog.functions.next(e.selectedRows))}else{const i=e.getSelectedRowId(),a=(yield e.functionS.getById(i).toPromise()).data;a._id?(yield e.navigationCS.setQueryParam(u.p.custom_api,a._id),e.eventCenterS.functions.selectedFunctions.next([a])):e.resetDependents().then()}})()}getSelectedRowId(){return this.selectedRows[0]?._id}dblClickCustomAPIsGrid(e){setTimeout(()=>{this.edit()},10)}setResDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.customApis.next(this.selectedRows),this.eventCenterS.group.selectedFunctions.next(this.selectedRows)),this.isFilterLogTable&&this.eventCenterS.filterInLog.functions.next(this.selectedRows)}saveResponseInLogCheckData(){this.setResDataInEventCenter()}clone(){var e=this;return(0,d.Z)(function*(){yield e.cloneApiModalC.showModal(e.getSelectedRowId(),function(){var i=(0,d.Z)(function*(a){a&&(yield e.loadGridData()),e.cd.detectChanges()});return function(a){return i.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}ERequestMethod=E.Yp;static \u0275fac=function(i){return new(i||s)(t.Y36(N.d),t.Y36(L.b),t.Y36(b.W),t.Y36(K.S),t.Y36(J.D),t.Y36(k.L),t.Y36(Y.u),t.Y36(t.sBO),t.Y36(O.F0),t.Y36(Q.eN),t.Y36(D.YP))};static \u0275cmp=t.Xpm({type:s,selectors:[["app-custom-api-grid"]],viewQuery:function(i,a){if(1&i&&(t.Gf(V,5),t.Gf($,5)),2&i){let p;t.iGM(p=t.CRH())&&(a.FunManFormC=p.first),t.iGM(p=t.CRH())&&(a.cloneApiModalC=p.first)}},inputs:{showCheckbox:"showCheckbox",isReadOnly:["IsReadOnly","isReadOnly"],isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable",metaKeySelection:"metaKeySelection"},decls:17,vars:9,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/custom.svg","alt","Custom API",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],[4,"ngIf"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All Custom APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["class","h-100",4,"ngIf"],[3,"data"],["funManFormC",""],[3,"modalId","hostAndPort","apiCategory"],["cloneApiModalC",""],[1,"float-right","cursor-pointer","ml-3",3,"click"],["tooltipPosition","left","pTooltip","Tree View","tooltipPosition","left",1,"fas","fa-sitemap","text-yellow","fa-fw","fa-rotate-270"],["tooltipPosition","left","pTooltip","Add New","tooltipPosition","left",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","tooltipPosition","left","pTooltip","Permanent Delete",3,"click",4,"ngIf"],["tooltipPosition","left","pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["tooltipPosition","left","pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],["tooltipPosition","left","pTooltip","All Custom APIs",1,"float-right","cursor-pointer"],[1,"mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["styleClass","p-datatable-striped custom-api-grid-height","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["style","width: 45px;",4,"ngIf"],[2,"width","80px"],[2,"width","60px"],[2,"width","45px"],[3,"pSelectableRow"],[1,"text-center"],[1,"small","font-weight-bold","d-inline-block","mr-2",3,"ngClass"],["href","javascript:",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],[3,"value","pSelectableRow"],[1,"m-0","vertical-align-sub"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,a){1&i&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._UZ(3,"img",2),t._uU(4," Custom APIs"),t.qZA(),t.TgZ(5,"a",3),t._UZ(6,"img",4),t.qZA(),t.YNc(7,et,8,3,"span",5),t.YNc(8,nt,3,2,"span",6),t.YNc(9,ot,3,2,"span",6),t.qZA(),t.TgZ(10,"div",7),t.YNc(11,st,3,1,"div",5),t.YNc(12,m,5,7,"div",8),t.qZA()(),t._UZ(13,"app-w-fun-man-form",9,10)(15,"app-clone-api-modal",11,12)),2&i&&(t.xp6(7),t.Q6J("ngIf",!a.isReadOnly),t.xp6(1),t.Q6J("ngIf",a.isDependentOnGroup),t.xp6(1),t.Q6J("ngIf",a.isFilterLogTable),t.xp6(2),t.Q6J("ngIf",a.eventCenterS.group.apisRegex.allCustomApis||a.eventCenterS.filterInLog.apisRegex.allCustomApis),t.xp6(1),t.Q6J("ngIf",!(a.eventCenterS.group.apisRegex.allCustomApis||a.eventCenterS.filterInLog.apisRegex.allCustomApis)),t.xp6(1),t.Q6J("data",a.data),t.xp6(2),t.Q6J("modalId","idCloneCustomAPI")("hostAndPort",a.BE_HOST_PORT)("apiCategory",a.EAPICategory.CUSTOM_APIS))},dependencies:[O.rH,I.JJ,I.On,S.mk,S.O5,B.s,M.iA,D.jx,M.Ei,M.UA,M.Mo,W.G,H.u,q.XZ,j.u],styles:[".custom-tab-title[_ngcontent-%COMP%]{padding:.5rem}.min-width[_ngcontent-%COMP%], .none[_ngcontent-%COMP%], .delete[_ngcontent-%COMP%], .post[_ngcontent-%COMP%], .put[_ngcontent-%COMP%], .get[_ngcontent-%COMP%]{width:45px;display:inline-block}.get[_ngcontent-%COMP%]{color:var(--accent-success)}.put[_ngcontent-%COMP%]{color:var(--brand-secondary)}.post[_ngcontent-%COMP%]{color:var(--accent-warning)}.delete[_ngcontent-%COMP%]{color:var(--accent-error)}.none[_ngcontent-%COMP%]{color:var(--accent-success--shade--three)}.width-160[_ngcontent-%COMP%]{width:160px}"]})}return s})()},9208:(dt,x,r)=>{r.r(x),r.d(x,{FunctionManM:()=>lt});var d=r(7664),t=r(3726),P=r(8176),h=r(7595),u=r(5861),n=r(4946),G=r(3157),v=r(328),g=r(6212),E=r(5085),U=r(1162),F=r(6925),N=r(553),L=r(921),b=r(7629),K=r(7240),J=r(9961),k=r(2189),Y=r(5852),O=r(7414),Q=r(2915),D=r(9862),I=r(5219),S=r(6814),B=r(7797),M=r(7526),W=r(7680),H=r(3259),q=r(1137);const j=["funManFormC"],V=["cloneApiModalC"];function $(l,m){if(1&l){const o=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(o);const c=n.oxw();return n.KtG(c.edit())}),n._UZ(1,"i",22),n.qZA()}}function X(l,m){if(1&l){const o=n.EpF();n.TgZ(0,"span",23),n.NdJ("click",function(){n.CHM(o);const c=n.oxw();return n.KtG(c.clone())}),n._UZ(1,"i",24),n.qZA()}}function z(l,m){if(1&l){const o=n.EpF();n.TgZ(0,"span",25),n.NdJ("click",function(){n.CHM(o);const c=n.oxw();return n.KtG(c.removePermanentDialog())}),n._UZ(1,"i",26),n.qZA()}}function tt(l,m){if(1&l&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&l){const o=n.oxw().$implicit;n.xp6(1),n.Oqu(o.label)}}const et=function(l,m,o,s){return{get:l,put:m,post:o,delete:s}},nt=function(){return["/api-info/api-testing/testing"]},ot=function(l,m,o){return{at_category:l,at_user:m,at_api:o}};function st(l,m){if(1&l&&(n.TgZ(0,"div")(1,"div")(2,"table",29)(3,"tr")(4,"td",30)(5,"span",31),n._uU(6),n.qZA(),n.TgZ(7,"span"),n._uU(8),n.qZA()(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.TgZ(11,"td",32)(12,"a",33),n.NdJ("click",function(s){return s.stopPropagation()}),n._UZ(13,"i",34),n.qZA()()()()()()),2&l){const o=n.oxw().$implicit,s=n.oxw();n.xp6(5),n.Q6J("ngClass",n.l5B(6,et,o.data.requestMethod===s.ERequestMethod.GET,o.data.requestMethod===s.ERequestMethod.PUT,o.data.requestMethod===s.ERequestMethod.POST,o.data.requestMethod===s.ERequestMethod.DELETE)),n.xp6(1),n.Oqu(o.data.requestMethod),n.xp6(2),n.Oqu(o.data.name),n.xp6(2),n.Oqu(o.data.path),n.xp6(2),n.Q6J("routerLink",n.DdM(11,nt))("queryParams",n.kEZ(12,ot,s.EAPICategory.CUSTOM_APIS,s.authCS.getUserId(),o.data._id))}}function it(l,m){if(1&l&&(n.TgZ(0,"div",27),n.YNc(1,tt,2,1,"div",28),n.YNc(2,st,14,16,"div",28),n.qZA()),2&l){const o=m.$implicit;n.xp6(1),n.Q6J("ngIf",null==o.children?null:o.children.length),n.xp6(1),n.Q6J("ngIf",!(null!=o.children&&o.children.length))}}function at(l,m){1&l&&n._UZ(0,"p-progressSpinner",35)}let w=(()=>{class l{functionS;generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;cd;router;http;confirmationService;loading={grid:!1};subscriptions=[];data={mode:v.D.ADD,eventChannel:new n.vpe,formData:void 0};gridKey=U.iH._id;EUserType=L.dN;BE_HOST_PORT=N.N.BE_HOST_PORT;EAPICategory=E.R;EQueryParam=g.p;leafSelected=!1;selectedRows=void 0;treeNodes=[];allTreeItemsMap={};FunManFormC;cloneApiModalC;constructor(o,s,c,e,i,a,p,T,_,f,A){this.functionS=o,this.generalS=s,this.notificationS=c,this.navigationCS=e,this.authCS=i,this.constantsS=a,this.eventCenterS=p,this.cd=T,this.router=_,this.http=f,this.confirmationService=A}ngOnInit(){this.loadTreeData(),this.subscriptions.push(this.data.eventChannel.subscribe(o=>{this.FunManFormC.hideModal(),this.loadTreeData()})),this.generalS.setNewTitle("API Maker - Custom APIs")}navigateToGridView(){var o=this;return(0,u.Z)(function*(){yield o.router.navigate(["api-info","custom-api","functions"])})()}loadTreeData(){var o=this;return(0,u.Z)(function*(){const s=(yield o.functionS.getCustomAPITree().toPromise()).data;for(const e of s)o.generalS.convertKTreeItemToPrimeNGTreeItem(e);const c={};o.generalS.getMapOfAllItems(c,s);for(const e of Object.keys(c)){const i=o.allTreeItemsMap[e];i&&(c[e].expanded=i.expanded)}o.treeNodes=s,o.allTreeItemsMap=c,o.loading.grid=!1,o.cd.detectChanges()})()}add(){this.data.formData=void 0,this.data.mode=v.D.ADD,this.data.eventChannel.emit({action:G.F.OPEN_FORM_IN_ADD_MODE}),this.FunManFormC.showModal()}edit(){this.leafSelected&&(this.data.formData=this.selectedRows[0].data,this.data.mode=v.D.EDIT,this.data.eventChannel.emit({action:G.F.OPEN_FORM_IN_EDIT_MODE}),this.FunManFormC.showModal())}removePermanentDialog(){var s,o=this;this.leafSelected&&this.confirmationService.confirm({message:this.constantsS.functions.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(s=(0,u.Z)(function*(){yield o.removePermanent()}),function(){return s.apply(this,arguments)})})}removePermanent(){var o=this;return(0,u.Z)(function*(){if(o.getSelectedRowId()){o.loading.grid=!0;try{const s=yield o.functionS.permanentDelete(o.getSelectedRowId()).toPromise();s.success?(o.notificationS.showSuccess(o.constantsS.functions.removePermanent),o.resetGridAndUrl(),yield o.loadTreeData(),o.leafSelected=!1):o.notificationS.showErrorFromResponse(s,o.constantsS.functions.removePermanentError)}catch{o.notificationS.showError(o.constantsS.functions.removePermanentError)}o.loading.grid=!1}})()}resetDependents(){var o=this;return(0,u.Z)(function*(){yield o.navigationCS.setQueryParam(g.p.custom_api,null)})()}functionSelected(){var o=this;return(0,u.Z)(function*(){o.resetDependents(),o.fillData(),o.getSelectedRowId()?o.generalS.setNewTitle(o.selectedRows[0].data.name,E.R.CUSTOM_APIS):o.generalS.setNewTitle("API Maker - Custom APIs"),o.leafSelected=!(!o.getSelectedRowId()||o.selectedRows[0].children?.length)})()}resetGridAndUrl(){this.selectedRows=void 0}fillData(){var o=this;return(0,u.Z)(function*(){if(!o.selectedRows)return void(yield o.navigationCS.setQueryParam(g.p.custom_api,""));const s=o.getSelectedRowId();s?yield o.navigationCS.setQueryParam(g.p.custom_api,s):o.resetDependents()})()}getSelectedRowId(){return this.selectedRows?.[0]?.data?._id}dblClickCustomAPIsGrid(){setTimeout(()=>{this.edit()},10)}clone(){var o=this;return(0,u.Z)(function*(){yield o.cloneApiModalC.showModal(o.getSelectedRowId(),function(){var s=(0,u.Z)(function*(c){c&&(yield o.loadTreeData()),o.cd.detectChanges()});return function(c){return s.apply(this,arguments)}}())})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}ERequestMethod=F.Yp;static \u0275fac=function(s){return new(s||l)(n.Y36(b.d),n.Y36(K.b),n.Y36(J.W),n.Y36(k.S),n.Y36(Y.D),n.Y36(O.L),n.Y36(Q.u),n.Y36(n.sBO),n.Y36(d.F0),n.Y36(D.eN),n.Y36(I.YP))};static \u0275cmp=n.Xpm({type:l,selectors:[["app-custom-api-tree"]],viewQuery:function(s,c){if(1&s&&(n.Gf(j,5),n.Gf(V,5)),2&s){let e;n.iGM(e=n.CRH())&&(c.FunManFormC=e.first),n.iGM(e=n.CRH())&&(c.cloneApiModalC=e.first)}},decls:24,vars:10,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/custom.svg","alt","Custom API",1,"fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],[1,"float-right","cursor-pointer","ml-3",3,"click"],["pTooltip","Grid View",1,"fas","fa-table","text-yellow","fa-fw"],["pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Clone",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"h-100"],["scrollHeight","calc(100vh - 82px)","selectionMode","multiple",1,"w-full",3,"value","selection","selectionChange","dblclick"],["pTemplate","default"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["funManFormC",""],[3,"modalId","hostAndPort","apiCategory"],["cloneApiModalC",""],["pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["pTooltip","Clone",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-copy","text-warning","fa-fw"],["pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[1,"w-100","prevent-text-selection","cursor-pointer"],[4,"ngIf"],[1,"w-100"],[2,"width","45%"],[1,"small","font-weight-bold","d-inline-block","mr-2",3,"ngClass"],[2,"text-align","right"],["href","javascript:",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(s,c){1&s&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"img",2),n._uU(4," Custom APIs"),n.qZA(),n.TgZ(5,"a",3),n._UZ(6,"img",4),n.qZA(),n.TgZ(7,"span")(8,"span",5),n.NdJ("click",function(){return c.navigateToGridView()}),n._UZ(9,"i",6),n.qZA(),n.TgZ(10,"span",7),n.NdJ("click",function(){return c.add()}),n._UZ(11,"i",8),n.qZA(),n.YNc(12,$,2,0,"span",9),n.YNc(13,X,2,0,"span",10),n.YNc(14,z,2,0,"span",11),n.qZA()(),n.TgZ(15,"div",12)(16,"div",13)(17,"p-tree",14),n.NdJ("selectionChange",function(i){return c.selectedRows=i})("dblclick",function(){return c.dblClickCustomAPIsGrid()})("selectionChange",function(){return c.functionSelected()}),n.YNc(18,it,3,2,"ng-template",15),n.qZA(),n.YNc(19,at,1,0,"p-progressSpinner",16),n.qZA()()(),n._UZ(20,"app-w-fun-man-form",17,18)(22,"app-clone-api-modal",19,20)),2&s&&(n.xp6(12),n.Q6J("ngIf",c.leafSelected),n.xp6(1),n.Q6J("ngIf",c.leafSelected),n.xp6(1),n.Q6J("ngIf",c.leafSelected),n.xp6(3),n.Q6J("value",c.treeNodes)("selection",c.selectedRows),n.xp6(2),n.Q6J("ngIf",c.loading.grid),n.xp6(1),n.Q6J("data",c.data),n.xp6(2),n.Q6J("modalId","idCloneCustomAPI")("hostAndPort",c.BE_HOST_PORT)("apiCategory",c.EAPICategory.CUSTOM_APIS))},dependencies:[d.rH,S.mk,S.O5,B.s,I.jx,M.mp,W.G,H.u,q.u],styles:[".custom-tab-title[_ngcontent-%COMP%]{padding:.5rem}.min-width[_ngcontent-%COMP%], .none[_ngcontent-%COMP%], .delete[_ngcontent-%COMP%], .post[_ngcontent-%COMP%], .put[_ngcontent-%COMP%], .get[_ngcontent-%COMP%]{width:45px;display:inline-block}.get[_ngcontent-%COMP%]{color:var(--accent-success)}.put[_ngcontent-%COMP%]{color:var(--brand-secondary)}.post[_ngcontent-%COMP%]{color:var(--accent-warning)}.delete[_ngcontent-%COMP%]{color:var(--accent-error)}.none[_ngcontent-%COMP%]{color:var(--accent-success--shade--three)}.width-160[_ngcontent-%COMP%]{width:160px}"]})}return l})();var rt=r(7987);const ct=[{path:"",redirectTo:"functions-tree",pathMatch:"full"},{path:"functions-tree",component:(()=>{class l{route;constructor(o){this.route=o}ngOnInit(){}static \u0275fac=function(s){return new(s||l)(n.Y36(d.gz))};static \u0275cmp=n.Xpm({type:l,selectors:[["app-fun-man-layout-tree"]],decls:2,vars:0,consts:[[1,"pt-1","pl-1","pr-1"]],template:function(s,c){1&s&&(n.TgZ(0,"div",0),n._UZ(1,"app-custom-api-tree"),n.qZA())},dependencies:[w],encapsulation:2})}return l})(),canActivate:[t.P]},{path:"functions",component:(()=>{class l{route;mode="tree";constructor(o){this.route=o}ngOnInit(){this.route.queryParams.subscribe(o=>{o.mode&&(this.mode=o.mode)})}static \u0275fac=function(s){return new(s||l)(n.Y36(d.gz))};static \u0275cmp=n.Xpm({type:l,selectors:[["app-fun-man-layout"]],decls:2,vars:1,consts:[[1,"pt-1","pl-1","pr-1"],[3,"showCheckbox"]],template:function(s,c){1&s&&(n.TgZ(0,"div",0),n._UZ(1,"app-custom-api-grid",1),n.qZA()),2&s&&(n.xp6(1),n.Q6J("showCheckbox",!1))},dependencies:[h.G],encapsulation:2})}return l})(),canActivate:[t.P]}];let lt=(()=>{class l{static \u0275fac=function(s){return new(s||l)};static \u0275mod=n.oAB({type:l});static \u0275inj=n.cJS({imports:[d.Bz.forChild(ct),P.u,rt.X]})}return l})()}}]);
Binary file