(self.webpackChunkangular_ai_writing=self.webpackChunkangular_ai_writing||[]).push([[85],{99085:function(g){var n={default:this,call:function(e,t,a){var s="";"function"==typeof t&&(a=t,t={});var i={data:void 0===t?null:t};if("function"==typeof a){var r="dscb"+window.dscb++;window[r]=a,i._dscbstub=r}return i=JSON.stringify(i),window._dsbridge?s=_dsbridge.call(e,i):(window._dswk||-1!=navigator.userAgent.indexOf("_dsbridge"))&&(s=prompt("_dsbridge="+e,i)),JSON.parse(s||"{}").data},register:function(e,t,a){var s=a?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){n.call("_dsb.dsinit")},0)),"object"==typeof t?s._obs[e]=t:s[e]=t},registerAsyn:function(e,t){this.register(e,t,!0)},hasNativeMethod:function(e,t){return this.call("_dsb.hasNativeMethod",{name:e,type:t||"all"})},disableJavascriptDialogBlock:function(e){this.call("_dsb.disableJavascriptDialogBlock",{disable:!1!==e})}};(function(){if(!window._dsf){var e={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:n,close:function(){n.call("_dsb.closePage")},_handleMessageFromNative:function(a){var s=JSON.parse(a.data),i={id:a.callbackId,complete:!0},r=this._dsf[a.method],l=this._dsaf[a.method],v=function(_,c){i.data=_.apply(c,s),n.call("_dsb.returnValue",i)},p=function(_,c){s.push(function(b,y){i.data=b,i.complete=!1!==y,n.call("_dsb.returnValue",i)}),_.apply(c,s)};if(r)v(r,this._dsf);else if(l)p(l,this._dsaf);else{var o=a.method.split(".");if(o.length<2)return;var h=o.pop(),w=o.join("."),u=this._dsf._obs,f=u[w]||{},d=f[h];if(d&&"function"==typeof d)return void v(d,f);if((d=(f=(u=this._dsaf._obs)[w]||{})[h])&&"function"==typeof d)return void p(d,f)}}};for(var t in e)window[t]=e[t];n.register("_hasJavascriptMethod",function(a,s){var i=a.split(".");if(i.length<2)return!(!_dsf[i]&&!_dsaf[i]);a=i.pop();var r=i.join("."),l=_dsf._obs[r]||_dsaf._obs[r];return l&&!!l[a]})}})(),g.exports=n}}]);