1 line
679 KiB
JavaScript
1 line
679 KiB
JavaScript
|
|
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define==="function"&&define.amd?define(factory):(global=typeof globalThis!=="undefined"?globalThis:global||self,global.AS3CF_Settings=factory())})(this,(function(){"use strict";function noop(){}const identity=x=>x;function assign(tar,src){for(const k in src)tar[k]=src[k];return tar}function is_promise(value){return!!value&&(typeof value==="object"||typeof value==="function")&&typeof value.then==="function"}function add_location(element,file,line,column,char){element.__svelte_meta={loc:{file:file,line:line,column:column,char:char}}}function run(fn){return fn()}function blank_object(){return Object.create(null)}function run_all(fns){fns.forEach(run)}function is_function(thing){return typeof thing==="function"}function safe_not_equal(a,b){return a!=a?b==b:a!==b||a&&typeof a==="object"||typeof a==="function"}let src_url_equal_anchor;function src_url_equal(element_src,url){if(element_src===url)return true;if(!src_url_equal_anchor){src_url_equal_anchor=document.createElement("a")}src_url_equal_anchor.href=url;return element_src===src_url_equal_anchor.href}function is_empty(obj){return Object.keys(obj).length===0}function validate_store(store,name){if(store!=null&&typeof store.subscribe!=="function"){throw new Error(`'${name}' is not a store with a 'subscribe' method`)}}function subscribe(store,...callbacks){if(store==null){for(const callback of callbacks){callback(undefined)}return noop}const unsub=store.subscribe(...callbacks);return unsub.unsubscribe?()=>unsub.unsubscribe():unsub}function get_store_value(store){let value;subscribe(store,(_=>value=_))();return value}function component_subscribe(component,store,callback){component.$$.on_destroy.push(subscribe(store,callback))}function create_slot(definition,ctx,$$scope,fn){if(definition){const slot_ctx=get_slot_context(definition,ctx,$$scope,fn);return definition[0](slot_ctx)}}function get_slot_context(definition,ctx,$$scope,fn){return definition[1]&&fn?assign($$scope.ctx.slice(),definition[1](fn(ctx))):$$scope.ctx}function get_slot_changes(definition,$$scope,dirty,fn){if(definition[2]&&fn){const lets=definition[2](fn(dirty));if($$scope.dirty===undefined){return lets}if(typeof lets==="object"){const merged=[];const len=Math.max($$scope.dirty.length,lets.length);for(let i=0;i<len;i+=1){merged[i]=$$scope.dirty[i]|lets[i]}return merged}return $$scope.dirty|lets}return $$scope.dirty}function update_slot_base(slot,slot_definition,ctx,$$scope,slot_changes,get_slot_context_fn){if(slot_changes){const slot_context=get_slot_context(slot_definition,ctx,$$scope,get_slot_context_fn);slot.p(slot_context,slot_changes)}}function get_all_dirty_from_scope($$scope){if($$scope.ctx.length>32){const dirty=[];const length=$$scope.ctx.length/32;for(let i=0;i<length;i++){dirty[i]=-1}return dirty}return-1}function exclude_internal_props(props){const result={};for(const k in props)if(k[0]!=="$")result[k]=props[k];return result}function set_store_value(store,ret,value){store.set(value);return ret}function action_destroyer(action_result){return action_result&&is_function(action_result.destroy)?action_result.destroy:noop}const is_client=typeof window!=="undefined";let now=is_client?()=>window.performance.now():()=>Date.now();let raf=is_client?cb=>requestAnimationFrame(cb):noop;const tasks=new Set;function run_tasks(now){tasks.forEach((task=>{if(!task.c(now)){tasks.delete(task);task.f()}}));if(tasks.size!==0)raf(run_tasks)}function loop(callback){let task;if(tasks.size===0)raf(run_tasks);return{promise:new Promise((fulfill=>{tasks.add(task={c:callback,f:fulfill})})),abort(){tasks.delete(task)}}}const globals=typeof window!=="undefined"?window:typeof globalThis!=="undefined"?globalThis:global;function append(target,node){target.appendChild(node)}function get_root_for_style(node){if(!node)return document;const root=node.getRootNode?node.getRootNode():node.ownerDocument;if(root&&root.host){return root}return node.ownerDocument}function append_empty_stylesheet(node){const style_element=element("styl
|