moving-leads-form / src / admin / dist / assets / vendor.bce6a7dd.js
vendor.bce6a7dd.js
Raw
function t(){}function n(t,n){for(const e in n)t[e]=n[e];return t}function e(t){return t()}function o(){return Object.create(null)}function r(t){t.forEach(e)}function s(t){return"function"==typeof t}function i(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function c(n,...e){if(null==n)return t;const o=n.subscribe(...e);return o.unsubscribe?()=>o.unsubscribe():o}function u(t,n,e){t.$$.on_destroy.push(c(n,e))}function a(t,n){t.appendChild(n)}function l(t,n,e){t.insertBefore(n,e||null)}function f(t){t.parentNode.removeChild(t)}function p(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function h(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function g(){return d(" ")}function $(){return d("")}function m(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function b(t){return function(n){return n.preventDefault(),t.call(this,n)}}function y(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function w(t){return Array.from(t.childNodes)}function v(t,n,e,o){for(let r=0;r<t.length;r+=1){const o=t[r];if(o.nodeName===n){let n=0;const s=[];for(;n<o.attributes.length;){const t=o.attributes[n++];e[t.name]||s.push(t.name)}for(let t=0;t<s.length;t++)o.removeAttribute(s[t]);return t.splice(r,1)[0]}}return o?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(n):h(n)}function x(t,n){for(let e=0;e<t.length;e+=1){const o=t[e];if(3===o.nodeType)return o.data=""+n,t.splice(e,1)[0]}return d(n)}function E(t){return x(t," ")}function _(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function k(t,n){t.value=null==n?"":n}let j;function O(t){j=t}function S(){if(!j)throw new Error("Function called outside component initialization");return j}function A(t){S().$$.on_mount.push(t)}function C(){const t=S();return(n,e)=>{const o=t.$$.callbacks[n];if(o){const r=function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(n,e);o.slice().forEach((n=>{n.call(t,r)}))}}}function L(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach((t=>t(n)))}const N=[],R=[],q=[],D=[],T=Promise.resolve();let I=!1;function P(){I||(I=!0,T.then(M))}function z(t){q.push(t)}let B=!1;const F=new Set;function M(){if(!B){B=!0;do{for(let t=0;t<N.length;t+=1){const n=N[t];O(n),Y(n.$$)}for(O(null),N.length=0;R.length;)R.pop()();for(let t=0;t<q.length;t+=1){const n=q[t];F.has(n)||(F.add(n),n())}q.length=0}while(N.length);for(;D.length;)D.pop()();I=!1,B=!1,F.clear()}}function Y(t){if(null!==t.fragment){t.update(),r(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(z)}}const U=new Set;let W;function X(){W={r:0,c:[],p:W}}function G(){W.r||r(W.c),W=W.p}function H(t,n){t&&t.i&&(U.delete(t),t.i(n))}function J(t,n,e,o){if(t&&t.o){if(U.has(t))return;U.add(t),W.c.push((()=>{U.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}function K(t,n){const e={},o={},r={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=n[s];if(c){for(const t in i)t in c||(o[t]=1);for(const t in c)r[t]||(e[t]=c[t],r[t]=1);t[s]=c}else for(const t in i)r[t]=1}for(const i in o)i in e||(e[i]=void 0);return e}function Q(t){return"object"==typeof t&&null!==t?t:{}}function V(t){t&&t.c()}function Z(t,n){t&&t.l(n)}function tt(t,n,o,i){const{fragment:c,on_mount:u,on_destroy:a,after_update:l}=t.$$;c&&c.m(n,o),i||z((()=>{const n=u.map(e).filter(s);a?a.push(...n):r(n),t.$$.on_mount=[]})),l.forEach(z)}function nt(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function et(n,e,s,i,c,u,a=[-1]){const l=j;O(n);const p=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:o(),dirty:a,skip_bound:!1};let h=!1;if(p.ctx=s?s(n,e.props||{},((t,e,...o)=>{const r=o.length?o[0]:e;return p.ctx&&c(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),h&&function(t,n){-1===t.$$.dirty[0]&&(N.push(t),P(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}(n,t)),e})):[],p.update(),h=!0,r(p.before_update),p.fragment=!!i&&i(p.ctx),e.target){if(e.hydrate){const t=w(e.target);p.fragment&&p.fragment.l(t),t.forEach(f)}else p.fragment&&p.fragment.c();e.intro&&H(n.$$.fragment),tt(n,e.target,e.anchor,e.customElement),M()}O(l)}class ot{$destroy(){nt(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const rt=[];function st(t,n){return{subscribe:it(t,n).subscribe}}function it(n,e=t){let o;const r=[];function s(t){if(i(n,t)&&(n=t,o)){const t=!rt.length;for(let e=0;e<r.length;e+=1){const t=r[e];t[1](),rt.push(t,n)}if(t){for(let t=0;t<rt.length;t+=2)rt[t][0](rt[t+1]);rt.length=0}}}return{set:s,update:function(t){s(t(n))},subscribe:function(i,c=t){const u=[i,c];return r.push(u),1===r.length&&(o=e(s)||t),i(n),()=>{const t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(o(),o=null)}}}}function ct(n,e,o){const i=!Array.isArray(n),u=i?[n]:n,a=e.length<2;return st(o,(n=>{let o=!1;const l=[];let f=0,p=t;const h=()=>{if(f)return;p();const o=e(i?l[0]:l,n);a?n(o):p=s(o)?o:t},d=u.map(((t,n)=>c(t,(t=>{l[n]=t,f&=~(1<<n),o&&h()}),(()=>{f|=1<<n}))));return o=!0,h(),function(){r(d),p()}}))}function ut(t){let e,o,r;const s=[t[2]];var i=t[0];function c(t){let e={};for(let o=0;o<s.length;o+=1)e=n(e,s[o]);return{props:e}}return i&&(e=new i(c()),e.$on("routeEvent",t[7])),{c(){e&&V(e.$$.fragment),o=$()},l(t){e&&Z(e.$$.fragment,t),o=$()},m(t,n){e&&tt(e,t,n),l(t,o,n),r=!0},p(t,n){const r=4&n?K(s,[Q(t[2])]):{};if(i!==(i=t[0])){if(e){X();const t=e;J(t.$$.fragment,1,0,(()=>{nt(t,1)})),G()}i?(e=new i(c()),e.$on("routeEvent",t[7]),V(e.$$.fragment),H(e.$$.fragment,1),tt(e,o.parentNode,o)):e=null}else i&&e.$set(r)},i(t){r||(e&&H(e.$$.fragment,t),r=!0)},o(t){e&&J(e.$$.fragment,t),r=!1},d(t){t&&f(o),e&&nt(e,t)}}}function at(t){let e,o,r;const s=[{params:t[1]},t[2]];var i=t[0];function c(t){let e={};for(let o=0;o<s.length;o+=1)e=n(e,s[o]);return{props:e}}return i&&(e=new i(c()),e.$on("routeEvent",t[6])),{c(){e&&V(e.$$.fragment),o=$()},l(t){e&&Z(e.$$.fragment,t),o=$()},m(t,n){e&&tt(e,t,n),l(t,o,n),r=!0},p(t,n){const r=6&n?K(s,[2&n&&{params:t[1]},4&n&&Q(t[2])]):{};if(i!==(i=t[0])){if(e){X();const t=e;J(t.$$.fragment,1,0,(()=>{nt(t,1)})),G()}i?(e=new i(c()),e.$on("routeEvent",t[6]),V(e.$$.fragment),H(e.$$.fragment,1),tt(e,o.parentNode,o)):e=null}else i&&e.$set(r)},i(t){r||(e&&H(e.$$.fragment,t),r=!0)},o(t){e&&J(e.$$.fragment,t),r=!1},d(t){t&&f(o),e&&nt(e,t)}}}function lt(t){let n,e,o,r;const s=[at,ut],i=[];function c(t,n){return t[1]?0:1}return n=c(t),e=i[n]=s[n](t),{c(){e.c(),o=$()},l(t){e.l(t),o=$()},m(t,e){i[n].m(t,e),l(t,o,e),r=!0},p(t,[r]){let u=n;n=c(t),n===u?i[n].p(t,r):(X(),J(i[u],1,1,(()=>{i[u]=null})),G(),e=i[n],e?e.p(t,r):(e=i[n]=s[n](t),e.c()),H(e,1),e.m(o.parentNode,o))},i(t){r||(H(e),r=!0)},o(t){J(e),r=!1},d(t){i[n].d(t),t&&f(o)}}}function ft(){const t=window.location.href.indexOf("#/");let n=t>-1?window.location.href.substr(t+1):"/";const e=n.indexOf("?");let o="";return e>-1&&(o=n.substr(e+1),n=n.substr(0,e)),{location:n,querystring:o}}const pt=st(null,(function(t){t(ft());const n=()=>{t(ft())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}})),ht=ct(pt,(t=>t.location));function dt(t,n,e){let{routes:o={}}=n,{prefix:r=""}=n,{restoreScrollState:s=!1}=n;class i{constructor(t,n){if(!n||"function"!=typeof n&&("object"!=typeof n||!0!==n._sveltesparouter))throw Error("Invalid component object");if(!t||"string"==typeof t&&(t.length<1||"/"!=t.charAt(0)&&"*"!=t.charAt(0))||"object"==typeof t&&!(t instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:e,keys:o}=function(t,n){if(t instanceof RegExp)return{keys:!1,pattern:t};var e,o,r,s,i=[],c="",u=t.split("/");for(u[0]||u.shift();r=u.shift();)"*"===(e=r[0])?(i.push("wild"),c+="/(.*)"):":"===e?(o=r.indexOf("?",1),s=r.indexOf(".",1),i.push(r.substring(1,~o?o:~s?s:r.length)),c+=~o&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(c+=(~o?"?":"")+"\\"+r.substring(s))):c+="/"+r;return{keys:i,pattern:new RegExp("^"+c+(n?"(?=$|/)":"/?$"),"i")}}(t);this.path=t,"object"==typeof n&&!0===n._sveltesparouter?(this.component=n.component,this.conditions=n.conditions||[],this.userData=n.userData,this.props=n.props||{}):(this.component=()=>Promise.resolve(n),this.conditions=[],this.props={}),this._pattern=e,this._keys=o}match(t){if(r)if("string"==typeof r){if(!t.startsWith(r))return null;t=t.substr(r.length)||"/"}else if(r instanceof RegExp){const n=t.match(r);if(!n||!n[0])return null;t=t.substr(n[0].length)||"/"}const n=this._pattern.exec(t);if(null===n)return null;if(!1===this._keys)return n;const e={};let o=0;for(;o<this._keys.length;){try{e[this._keys[o]]=decodeURIComponent(n[o+1]||"")||null}catch(s){e[this._keys[o]]=null}o++}return e}async checkConditions(t){for(let n=0;n<this.conditions.length;n++)if(!(await this.conditions[n](t)))return!1;return!0}}const c=[];o instanceof Map?o.forEach(((t,n)=>{c.push(new i(n,t))})):Object.keys(o).forEach((t=>{c.push(new i(t,o[t]))}));let u=null,a=null,l={};const f=C();async function p(t,n){await(P(),T),f(t,n)}let h=null;var d;s&&(window.addEventListener("popstate",(t=>{h=t.state&&t.state.scrollY?t.state:null})),d=()=>{h?window.scrollTo(h.scrollX,h.scrollY):window.scrollTo(0,0)},S().$$.after_update.push(d));let g=null,$=null;return pt.subscribe((async t=>{g=t;let n=0;for(;n<c.length;){const o=c[n].match(t.location);if(!o){n++;continue}const r={route:c[n].path,location:t.location,querystring:t.querystring,userData:c[n].userData};if(!(await c[n].checkConditions(r)))return e(0,u=null),$=null,void p("conditionsFailed",r);p("routeLoading",Object.assign({},r));const s=c[n].component;if($!=s){s.loading?(e(0,u=s.loading),$=s,e(1,a=s.loadingParams),e(2,l={}),p("routeLoaded",Object.assign({},r,{component:u,name:u.name}))):(e(0,u=null),$=null);const n=await s();if(t!=g)return;e(0,u=n&&n.default||n),$=s}return o&&"object"==typeof o&&Object.keys(o).length?e(1,a=o):e(1,a=null),e(2,l=c[n].props),void p("routeLoaded",Object.assign({},r,{component:u,name:u.name}))}e(0,u=null),$=null})),t.$$set=t=>{"routes"in t&&e(3,o=t.routes),"prefix"in t&&e(4,r=t.prefix),"restoreScrollState"in t&&e(5,s=t.restoreScrollState)},t.$$.update=()=>{32&t.$$.dirty&&(history.scrollRestoration=s?"manual":"auto")},[u,a,l,o,r,s,function(n){L(t,n)},function(n){L(t,n)}]}ct(pt,(t=>t.querystring));class gt extends ot{constructor(t){super(),et(this,t,dt,lt,i,{routes:3,prefix:4,restoreScrollState:5})}}export{p as A,r as B,u as C,ht as D,b as E,gt as R,ot as S,g as a,w as b,v as c,x as d,h as e,f,E as g,y as h,et as i,l as j,a as k,_ as l,V as m,t as n,A as o,Z as p,tt as q,H as r,i as s,d as t,J as u,nt as v,k as w,m as x,X as y,G as z};