Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/UXP/com.adobe.cclibrariespanel/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/UXP/com.adobe.cclibrariespanel/6823.bundle.js

(self.webpackChunkCCLibraries=self.webpackChunkCCLibraries||[]).push([[6823],{75895:e=>{function t(e,t){var n=e.toString();if(n.length<t){var s=[];s.length=t-n.length+1,n=s.join("0")+n}return n}function n(e,t){return Object.getOwnPropertyNames(t).forEach((function(s){if("object"==typeof t[s])"object"!=typeof e[s]&&(e[s]={}),n(e[s],t[s]);else{var i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i)}})),e}function s(e,t,n){e.forEach((function(e){setTimeout((function(){e(t,n)}))}))}var i={prod:"cc-api-data.adobe.io",stage:"cc-api-data-stage.adobe.io",dev:"cc-api-data-dev.adobe.io"},o="/ingest",_={ENVIRONMENT:"prod",ALLOW_NO_TOKEN:!1,ANALYTICS_INGEST_TYPE:"dunamis",ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_DEBOUNCE:1e4,ANALYTICS_API_KEY:null,ANALYTICS_X_PRODUCT:null,ANALYTICS_X_PRODUCT_LOCATION:void 0,ANALYTICS_PROJECT:null,ANALYTICS_USER_REGION:"UNKNOWN",TIMESTAMP_PROPERTY_NAME:"event.dts_end"},a=["ANALYTICS_API_KEY","ANALYTICS_X_PRODUCT","ANALYTICS_PROJECT"];function h(e,t){e=e||{},t=t||{};var s=e=>{throw this._log(e),new Error("ERROR: "+e)};this._queuedEvents=[],this._queuedCallbacks=[],this._lastSendTime=0,this._isEnabled=!1,this._dependencies=n({},e),e.getAccessToken&&"function"==typeof e.getAccessToken||s("Missing dependency: getAccessToken"),this._options={},Object.keys(_).forEach((e=>{this._options[e]=t[e]||_[e]})),a.forEach((e=>{this._options[e]||s("Missing option: "+e)})),"undefined"==typeof fetch&&s("Ingest requires fetch - if in a node environment, set 'global.fetch = require('node-fetch');'")}h.prototype._log=function(e){var t=this._dependencies.log;t&&t("Ingest :: "+e)},h.prototype._getAgent=function(e,t){this._dependencies.getAgent?this._dependencies.getAgent(e,t):t(null,{})},h.prototype._getAccessToken=function(e){this._dependencies.getAccessToken(e)},h.prototype._clearAccessToken=function(){this._dependencies.clearAccessToken&&this._dependencies.clearAccessToken()},h.prototype._getEnvironment=function(){return i[this._options.ENVIRONMENT]?this._options.ENVIRONMENT:"prod"},h.prototype._getAnalyticsHost=function(){return i[this._getEnvironment()]},h.prototype._formatTimestamp=function(e){var n=e.getFullYear(),s=t(e.getMonth()+1,2),i=t(e.getDate(),2),o=t(e.getHours(),2),_=t(e.getMinutes(),2),a=t(e.getSeconds(),2),h=t(e.getMilliseconds(),3),r=e.getTimezoneOffset(),c=r<0?"+":"-",d=Math.floor(Math.abs(r)/60),u=Math.abs(r)%60;return n+"-"+s+"-"+i+"T"+o+":"+_+":"+a+"."+h+(c+t(d,2)+t(u,2))},h.prototype._updateDebounce=function(e){var t=e&&(e["retry-after"]||e["Retry-After"]),n=0;if(t){var s;try{s=parseInt(t,10)}catch(e){}if(s)n=Math.max(0,s);else{var i=Date.parse(t);if(i){var o=(new Date).valueOf();n=Math.max(0,i-o)/1e3+Math.floor(10*Math.random())}}}this._options.ANALYTICS_DEBOUNCE=Math.max(1e3*n,this._options.ANALYTICS_DEBOUNCE)},h.prototype._queueEvent=function(e){this._queuedEvents.length>=this._options.ANALYTICS_MAX_QUEUED_EVENTS&&this._queuedEvents.shift(),this._queuedEvents.push(e)},h.prototype._requeueEvents=function(e){this._queuedEvents=e.concat(this._queuedEvents),this._queuedEvents=function(e,t){var n=e;if(e&&e.length>t&&t>0){var s=e.length-t;n=e.slice(s,e.length)}return n}(this._queuedEvents,this._options.ANALYTICS_MAX_QUEUED_EVENTS)},h.prototype._sendAnalytics=function(e,t,i){if(i=i||0,t&&this._queuedCallbacks.push(t),!this._isEnabled||0===this._queuedEvents.length){var _=this._queuedCallbacks;return this._queuedCallbacks=[],void(this._isEnabled?s(_,null,0):s(_,new Error("Analytics Disabled")))}var a=this._options.ANALYTICS_DEBOUNCE;if(e&&(a=0,clearTimeout(this._pendingSendAnalyticsTimeout),this._pendingSendAnalyticsTimeout=void 0),this._sendingEvents||this._pendingSendAnalyticsTimeout)e&&(this._fastFollow=!0);else{var h=(new Date).valueOf();if(h-this._lastSendTime<a)this._pendingSendAnalyticsTimeout=setTimeout((()=>{this._pendingSendAnalyticsTimeout=void 0,this._sendAnalytics()}),a);else{this._lastSendTime=h,this._sendingEvents=this._queuedEvents,this._sendingCallbacks=this._queuedCallbacks,this._queuedEvents=[],this._queuedCallbacks=[];var r,c=(r=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)})()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r(),d="["+c+"] ",u={events:this._sendingEvents},l=e=>{var t=this._queuedEvents?this._queuedEvents.length:0;if(this._sendingEvents){var n=this._sendingEvents.length;e?(this._requeueEvents(this._sendingEvents),this._log(d+"Error sending "+n+" events: "+e)):this._log(d+"Success sending "+n+" events: "+JSON.stringify(this._sendingEvents)),delete this._sendingEvents;var i=this._sendingCallbacks;delete this._sendingCallbacks,e?s(i,e):s(i,null,n)}t>0&&this._sendAnalytics(this._fastFollow),this._fastFollow=!1},A=(e,t)=>{if(this._updateDebounce(t),401===e&&0===i)return this._clearAccessToken(),this._requeueEvents(this._sendingEvents),delete this._sendingEvents,this._queuedCallbacks=this._sendingCallbacks.concat(this._queuedCallbacks),delete this._sendingCallbacks,this._log(d+"Access token is expired. Retry one more time."),void this._sendAnalytics(!0,void 0,i+1);200===e?l():l(new Error("Unexpected Response: "+e))};this._getAccessToken(((e,t)=>{if(e&&!this._options.ALLOW_NO_TOKEN)return void l(e);if(!(t&&0!==t.length||this._options.ALLOW_NO_TOKEN))return void l(new Error("No access token"));var s="https://"+this._getAnalyticsHost();this._log(d+"Sending analytics to "+s+o);const i={"x-api-key":this._options.ANALYTICS_API_KEY,"X-Product":this._options.ANALYTICS_X_PRODUCT,"User-Agent":this._options.ANALYTICS_USER_AGENT||this._options.ANALYTICS_API_KEY,"X-Request-Id":c,"Content-Type":"application/json"};t&&(i.Authorization="Bearer "+t),this._options.ANALYTICS_X_PRODUCT_LOCATION&&(i["X-Product-Location"]=this._options.ANALYTICS_X_PRODUCT_LOCATION),this._getAgent(s,((e,t)=>{const _={method:"POST",headers:i,body:JSON.stringify(u)};t&&t.agent?_.agent=t&&t.agent:n(_,t||{}),fetch(s+o,_).then((e=>{A(e.status,e.headers)}),l)}))}))}}},h.prototype.enable=function(e){this._isEnabled=e,e&&this._sendAnalytics(!0)},h.prototype.postEvent=function(e,t,n){var i=n||{},o="event.dts_start",_="event.coll_dts",a=i.TIMESTAMP_PROPERTY_NAME||this._options.TIMESTAMP_PROPERTY_NAME,h=i.ANALYTICS_PROJECT||this._options.ANALYTICS_PROJECT,r=i.ANALYTICS_INGEST_TYPE||this._options.ANALYTICS_INGEST_TYPE;e[_]&&e[_]instanceof Date&&(e[_]=this._formatTimestamp(e[_])),e[o]&&e[o]instanceof Date&&(e[o]=this._formatTimestamp(e[o])),e[a]||(e[a]=this._formatTimestamp(new Date)),e[a]instanceof Date&&(e[a]=this._formatTimestamp(e[a]));var c={time:e[a],project:h,environment:this._getEnvironment(),ingesttype:r,data:e};e.simulate?(this._log("event sim:"+JSON.stringify(c)),t&&s([t],null,0)):(this._queueEvent(c),this._sendAnalytics(!1,t))},h.prototype.flush=function(e,t){this._sendAnalytics(e,t)},e.exports=h}}]);