PageSourceSearch

https://www.seeedstudio.com/_next/static/chunks/9793-f535a1cb29b42ea4.js

js seeedstudio.com collected 2026-09-24 08:29:11 UTC 8,957 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9793],{29793:(e,t,o)=>{o.d(t,{lT:()=>h,vD:()=>l});var r,i,n,s=o(34369),a=o(76704);let c=a.createContext(new s.A),{Provider:u,Consumer:f}=c;class l extends a.Component{constructor(e){super(e),e.cookies?this.cookies=e.cookies:this.cookies=new s.A(void 0,e.defaultSetOptions)}render(){return a.createElement(u,{value:this.cookies},this.props.children)}}"function"==typeof SuppressedError&&SuppressedError;var p={exports:{}},d={};function h(e,t){let o=(0,a.useContext)(c);if(!o)throw Error("Missing <CookiesProvider>");let r=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,n]=(0,a.useState)(()=>o.getAll(r));"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,a.useLayoutEffect)(()=>{function t(){let t=o.getAll(r);(function(e,t,o){if(!e)return!0;for(let r of e)if(t[r]!==o[r])return!0;return!1})(e||null,t,i)&&n(t)}return o.addChangeListener(t),()=>{o.removeChangeListener(t)}},[o,i]);let s=(0,a.useMemo)(()=>o.set.bind(o),[o]);return[i,s,(0,a.useMemo)(()=>o.remove.bind(o),[o]),(0,a.useMemo)(()=>o.update.bind(o),[o])]}!function(){if(!n){n=1;var e=(i||(i=1,p.exports=function(){if(r)return d;r=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case u:case f:case i:case s:case n:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case m:case y:case a:return e;default:return r}}case o:return r}}}function w(e){return v(e)===f}return d.AsyncMode=u,d.ConcurrentMode=f,d.ContextConsumer=c,d.ContextProvider=a,d.Element=t,d.ForwardRef=l,d.Fragment=i,d.Lazy=m,d.Memo=y,d.Portal=o,d.Profiler=s,d.StrictMode=n,d.Suspense=p,d.isAsyncMode=function(e){return w(e)||v(e)===u},d.isConcurrentMode=w,d.isContextConsumer=function(e){return v(e)===c},d.isContextProvider=function(e){return v(e)===a},d.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},d.isForwardRef=function(e){return v(e)===l},d.isFragment=function(e){return v(e)===i},d.isLazy=function(e){return v(e)===m},d.isMemo=function(e){return v(e)===y},d.isPortal=function(e){return v(e)===o},d.isProfiler=function(e){return v(e)===s},d.isStrictMode=function(e){return v(e)===n},d.isSuspense=function(e){return v(e)===p},d.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===n||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===b||e.$$typeof===S||e.$$typeof===O||e.$$typeof===g)},d.typeOf=v,d}()),p.exports),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[e.Memo]=s;Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype}}()},34369:(e,t,o)=>{o.d(t,{A:()=>a});var r,i={},n=function(){if(r)return i;r=1,i.parse=function(e,o){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},i=e.length;if(i<2)return r;var n=o&&o.decode||f,s=0,a=0,l=0;do{if(-1===(a=e.indexOf("=",s)))break;if(-1===(l=e.indexOf(";",s)))l=i;else if(a>l){s=e.lastIndexOf(";",a-1)+1;continue}var p=c(e,s,a),d=u(e,a,p),h=e.slice(p,d);if(!t.call(r,h)){var y=c(e,a+1,l),m=u(e,l,y);34===e.charCodeAt(y)&&34===e.charCodeAt(m-1)&&(y++,m--);var g=e.slice(y,m);r[h]=function(e,t){try{return t(e)}catch(t){return e}}(g,n)}s=l+1}while(s<i);return r},i.serialize=function(t,r,i){var c=i&&i.encode||encodeURIComponent;if("function"!=typeof c)throw TypeError("option encode is invali
1d");if(!o.test(t))throw TypeError("argument name is invalid");var u=c(r);if(!n.test(u))throw TypeError("argument val is invalid");var f=t+"="+u;if(!i)return f;if(null!=i.maxAge){var l=Math.floor(i.maxAge);if(!isFinite(l))throw TypeError("option maxAge is invalid");f+="; Max-Age="+l}if(i.domain){if(!s.test(i.domain))throw TypeError("option domain is invalid");f+="; Domain="+i.domain}if(i.path){if(!a.test(i.path))throw TypeError("option path is invalid");f+="; Path="+i.path}if(i.expires){var p,d=i.expires;if(p=d,"[object Date]"!==e.call(p)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");f+="; Expires="+d.toUTCString()}if(i.httpOnly&&(f+="; HttpOnly"),i.secure&&(f+="; Secure"),i.partitioned&&(f+="; Partitioned"),i.priority)switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"none":f+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return f};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,o=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function c(e,t,o){do{var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<o);return o}function u(e,t,o){for(;t>o;){var r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return o}
1function f(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}return i}();function s(e,t={}){var o;let r=(o=e)&&"j"===o[0]&&":"===o[1]?o.substr(2):o;if(!t.doNotParse)try{return JSON.parse(r)}catch(e){}return e}class a{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=n.parse(document.cookie),this._checkChanges(e)};let o="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?n.parse(e):"object"==typeof e&&null!==e?e:{}}(e||o),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){let e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:s(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),s(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let o in this.cookies)t[o]=s(this.cookies[o],e);return t}set(e,t,o){o=o?Object.assign(Object.assign({},this.defaultSetOptions),o):this.defaultSetOptions;let r="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.serialize(e,r,o)),this._emitChange({name:e,value:t,options:o})}remove(e,t){let o=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.serialize(e,"",o)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.