multi-account-post-schedule.../assets/documents/elements_carto_osm_fichiers/hook.js

1 line
184 KiB
JavaScript
Raw Permalink Normal View History

2022-08-04 14:16:43 +02:00
(()=>{var e={2634:(e,t,r)=>{"use strict";r.d(t,{ApolloCache:()=>j,Cache:()=>L,InMemoryCache:()=>xe,MissingFieldError:()=>Q,cacheSlot:()=>ce,defaultDataIdFromObject:()=>ye,makeVar:()=>he});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}();var u=null,c={},l=1,p="@wry/context:Slot",f=Array,h=f[p]||function(){var e=function(){function e(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=u;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===c)break;return e!==u&&(u.slots[this.id]=t),!0}return u&&(u.slots[this.id]=c),!1},e.prototype.getValue=function(){if(this.hasValue())return u.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=u;u={parent:a,slots:o};try{return t.apply(n,r)}finally{u=a}},e.bind=function(e){var t=u;return function(){var r=u;try{return u=t,e.apply(this,arguments)}finally{u=r}}},e.noContext=function(e,t,r){if(!u)return e.apply(r,t);var n=u;try{return u=null,e.apply(r,t)}finally{u=n}},e}();try{Object.defineProperty(f,p,{value:f[p]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();h.bind,h.noContext;function d(){}var v=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=d),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),y=new h;function m(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var b=[];function g(e,t){if(!e)throw new Error(t||"assertion failure")}function E(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var O=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!S(this))return this.value[0]},e.prototype.recompute=function(e){return g(!this.recomputing,"already recomputing"),function(e){var t=y.getValue();if(t)e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?_(t,e):I(t,e)}(this),S(this)?function(e,t){x(e),y.withValue(e,T,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{m(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,S(e))return;k(e)}(e);return E(e.value)}(this,e):E(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirt