shuziren/job-seeker/miniprogram-2/miniprogram_npm/miniprogram-computed/index.js

2 lines
9.2 KiB
JavaScript
Raw Permalink Normal View History

2024-02-29 08:06:26 +00:00
var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var H=E(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(M,{parseMultiDataPaths:function(){return it},getDataOnPath:function(){return ut}});var N=/^\s/,C=function(t,e){throw Error('Parsing data path "'+t+'" failed at char "'+t[e]+'" (index '+e+")")},rt=function(t,e){for(var r=e.index;e.index<e.length;){var i=t[e.index];if(/^[0-9]/.test(i)){e.index++;continue}break}return r===e.index&&C(t,e.index),parseInt(t.slice(r,e.index),10)},$=function(t,e){var r=e.index,i=t[r];if(/^[_a-zA-Z$]/.test(i))for(e.index++;e.index<e.length;){var f=t[e.index];if(/^[_a-zA-Z0-9$]/.test(f)){e.index++;continue}break}else C(t,e.index);return t.slice(r,e.index)},q=function(t,e){for(var r=[$(t,e)],i={deepCmp:!1};e.index<e.length;){var f=t[e.index];if(f==="[")e.index++,r.push(""+rt(t,e)),t[e.index]!=="]"&&C(t,e.index),e.index++;else if(f==="."){if(e.index++,t[e.index]==="*"){if(e.index++,t[e.index]==="*"){e.index++,i.deepCmp=!0;break}C(t,e.index)}r.push($(t,e))}else break}return{path:r,options:i}},nt=function(t,e){for(;N.test(t[e.index]);)e.index++;for(var r=[q(t,e)],i=!1;e.index<e.length;){var f=t[e.index];N.test(f)?e.index++:f===","?(i=!0,e.index++):i?(i=!1,r.push(q(t,e))):C(t,e.index)}return r},ot=function(t,e){e.index<e.length&&C(t,e.index)},it=function(t){var e={length:t.length,index:0},r=nt(t,e);return ot(t,e),r},ut=function(t,e){var r=t;return e.forEach(function(i){r=typeof r!="object"||r===null?void 0:r[i]}),r}});var z=E((mt,U)=>{U.exports=function(){let e=null,r;function i(n){return n?typeof n=="object"||typeof n=="function":!1}function f(n){if(n!==null&&!i(n))throw new TypeError("Object prototype may only be an Object or null: "+n)}let a=Object,u=Boolean(a.create)||!({__proto__:null}instanceof a),d=a.create||(u?function(o){return f(o),{__proto__:o}}:function(o){if(f(o),o===null)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var h=function(){};return h.prototype=o,new h}),m=function(){return null},p=a.getPrototypeOf||([].__proto__===Array.prototype?function(o){let h=o.__proto__;return i(h)?h:null}:m);return r=function(n,o){if((this&&this instanceof r?this.constructor:void 0)===void 0)throw new TypeError("Constructor Proxy requires 'new'");if(!i(n)||!i(o))throw new TypeError("Cannot create proxy with a non-object as target or handler");let y=function(){};e=function(){n=null,y=function(c){throw new TypeError(`Cannot perform '${c}' on a proxy that has been revoked`)}},setTimeout(function(){e=null},0);let v=o;o={get:null,set:null,apply:null,construct:null};for(let c in v){if(!(c in o))throw new TypeError(`Proxy polyfill does not support trap '${c}'`);o[c]=v[c]}typeof v=="function"&&(o.apply=v.apply.bind(v));let P=p(n),s,l=!1,b=!1;typeof n=="function"?(s=function(){let _=this&&this.constructor===s,x=Array.prototype.slice.call(arguments);if(y(_?"construct":"apply"),_&&o.construct)return o.construct.call(this,n,x);if(!_&&o.apply)return o.apply(n,this,x);if(_){x.unshift(n);let j=n.bind.apply(n,x);return new j}return n.apply(this,x)},l=!0):n instanceof Array?(s=[],b=!0):s=u||P!==null?d(P):{};let g=o.get?function(c){return y("get"),o.get(this,c,s)}:function(c){return y("get"),this[c]},w=o.set?function(c,_){y("set");let x=o.set(this,c,_,s)}:function(c,_){y("set"),this[c]=_},A=a.getOwnPropertyNames(n),D={};A.forEach(function(c){if((l||b)&&c in s)return;let _=a.getOwnPropertyDescriptor(n,c),x={enumerable:Boolean(_.enumerable),get:g.bind(n,c),set:w.bind(n,c)};a.defineProperty(s,c,x),D[c]=!0});let k=!0;if(l||b){let c=a.setPrototypeOf||([].__proto__===Array.prototype?function(x,j){return f(j),x.__proto__=j,x}:m);P&&c(s,P)||(k=!1)}if(o.get||!k)for(let c in n)D[c]||a.defineProperty(s,c,{get:g.bind(n,c)});return a.seal(n),a.seal(s),s},r.revocable=function(n,o){return{proxy:new r(n,o),revoke:e}},r}});var S=E(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}